Skip to content

Commit 27c1650

Browse files
committed
[add] File View button & example of File Picker component
[optimize] support Source Object for Image & File Preview components [optimize] upload files to Fake API as an example [optimize] add ESM bundle with NPM exports
1 parent 908465f commit 27c1650

12 files changed

Lines changed: 2205 additions & 220 deletions

‎package.json‎

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobx-restful-table",
3-
"version": "2.6.6",
3+
"version": "2.7.0",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
66
"description": "A Pagination Table & Scroll List component suite for CRUD operation, which is based on MobX RESTful & React.",
@@ -23,50 +23,69 @@
2323
},
2424
"source": "source/index.ts",
2525
"types": "dist/index.d.ts",
26+
"module": "dist/esm/index.js",
2627
"main": "dist/index.js",
28+
"exports": {
29+
"types": "./dist/index.d.ts",
30+
"import": "./dist/esm/index.js",
31+
"require": "./dist/index.js"
32+
},
2733
"dependencies": {
2834
"@swc/helpers": "^0.5.23",
2935
"classnames": "^2.5.1",
3036
"lodash": "^4.18.1",
31-
"mobx": ">=6",
32-
"mobx-i18n": ">=0.6",
33-
"mobx-react": ">=9",
34-
"mobx-react-helper": "^0.5.1",
35-
"mobx-restful": "^2.1.4",
37+
"mobx-react-helper": "^0.5.3",
38+
"mobx-restful": "^2.1.5",
3639
"react-bootstrap": "^2.10.10",
37-
"react-bootstrap-editor": "^2.1.3",
40+
"react-bootstrap-editor": "^2.1.4",
3841
"regenerator-runtime": "^0.14.1",
3942
"web-utility": "^4.7.2"
4043
},
4144
"peerDependencies": {
45+
"mobx": ">=6.11",
46+
"mobx-i18n": ">=0.6",
47+
"mobx-react": ">=9",
4248
"react": ">=16.8"
4349
},
4450
"devDependencies": {
45-
"@octokit/openapi-types": "^27.0.0",
51+
"@mlightcad/cad-simple-viewer": "^1.5.9",
52+
"@mlightcad/data-model": "^1.12.3",
53+
"@octokit/openapi-types": "^28.0.0",
54+
"@open-file-viewer/core": "^0.1.33",
55+
"@open-file-viewer/react": "^0.1.33",
4656
"@parcel/config-default": "~2.16.4",
4757
"@parcel/packager-ts": "~2.16.4",
4858
"@parcel/transformer-less": "~2.16.4",
4959
"@parcel/transformer-typescript-tsc": "~2.16.4",
5060
"@parcel/transformer-typescript-types": "~2.16.4",
51-
"@types/lodash": "^4.17.24",
61+
"@types/lodash": "^4.17.25",
5262
"@types/node": "^24.13.3",
53-
"@types/react": "^19.2.17",
54-
"@types/react-dom": "^19.2.3",
63+
"@types/react": "^19.2.18",
64+
"@types/react-dom": "^19.2.4",
5565
"buffer": "^6.0.3",
5666
"husky": "^9.1.7",
57-
"idea-react": "^2.2.2",
67+
"idea-react": "^2.3.0",
5868
"koajax": "^3.3.0",
59-
"lint-staged": "^17.2.0",
60-
"mobx-github": "^0.7.0",
69+
"lint-staged": "^17.3.0",
70+
"marked": "^18.0.9",
71+
"mobx": "^7.0.0",
72+
"mobx-github": "^0.7.1",
73+
"mobx-i18n": "^0.7.6",
74+
"mobx-react": "^10.0.0",
6175
"parcel": "~2.16.4",
76+
"pdfjs-dist": "^6.2.108",
6277
"prettier": "^3.9.6",
6378
"prismjs": "^1.30.0",
79+
"process": "^0.11.10",
6480
"react": "^19.2.8",
6581
"react-dom": "^19.2.8",
82+
"react-element-to-jsx-string": "^17.0.1",
6683
"rimraf": "^6.1.3",
84+
"string_decoder": "^1.3.0",
6785
"typedoc": "^0.28.20",
6886
"typedoc-plugin-mdn-links": "^5.1.1",
69-
"typescript": "~5.9.3"
87+
"typescript": "~5.9.3",
88+
"util": "^0.12.5"
7089
},
7190
"prettier": {
7291
"singleQuote": true,
@@ -82,15 +101,22 @@
82101
"targets": {
83102
"main": {
84103
"optimize": true
104+
},
105+
"module": {
106+
"optimize": true
85107
}
86108
},
109+
"@parcel/resolver-default": {
110+
"packageExports": true
111+
},
87112
"scripts": {
88113
"prepare": "husky",
89114
"preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel --open",
90115
"test": "lint-staged",
91116
"pack-preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel build --public-url=. --dist-dir=../docs/preview/",
92117
"pack-dist": "rm -rf dist/ docs/ && parcel build && sed -i 's/^require(\"\\.\\/index\\.css\");//' dist/index.js && rimraf dist/index.js.map",
93-
"build": "npm run pack-dist && typedoc source/ && npm run pack-preview",
118+
"fix-esm": "cd dist/esm/ && rm index.css* && sed -i 's/^import\"\\.\\/index\\.css\";//' index.js && rimraf index.js.map",
119+
"build": "npm run pack-dist && npm run fix-esm && typedoc source/ && npm run pack-preview",
94120
"prepublishOnly": "npm test && npm run build"
95121
}
96122
}

0 commit comments

Comments
 (0)