@buildocsdev/sdk 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +13 -0
  2. package/dist/buildocslib.esm-7H4WK2QM.js +1 -0
  3. package/dist/chunk-7RKPIXVG.js +1 -0
  4. package/dist/chunk-EK7ODJWE.js +1 -0
  5. package/dist/chunk-EXE2TZP4.js +1 -0
  6. package/dist/chunk-FRAOYRZD.js +1 -0
  7. package/dist/chunk-GLSA7ZBG.js +1 -0
  8. package/dist/chunk-KMT3KKZP.js +1 -0
  9. package/dist/chunk-LBMVBVXW.js +1 -0
  10. package/dist/chunk-LQXFE73I.js +2 -0
  11. package/dist/chunk-NOHQQSA7.js +2 -0
  12. package/dist/chunk-OPK746DI.js +4 -0
  13. package/dist/chunk-SDIZEEZP.js +1 -0
  14. package/dist/chunk-SYCZSSRF.js +1 -0
  15. package/dist/chunk-TO4AS5KE.js +2 -0
  16. package/dist/chunk-U4T4ACDE.js +0 -0
  17. package/dist/chunk-UB4UI4WT.js +14 -0
  18. package/dist/chunk-X2F7ACCC.js +4 -0
  19. package/dist/chunk-XUX4HB5C.js +11 -0
  20. package/dist/datatable-JUVSEKE5.js +1 -0
  21. package/dist/fileviewer-47WRW232.css +1 -0
  22. package/dist/fileviewer-CW5UNGEV.js +1 -0
  23. package/dist/form.css +1 -0
  24. package/dist/form.d.ts +14 -0
  25. package/dist/form.js +1 -0
  26. package/dist/formeditor-UE4HC4V2.js +1 -0
  27. package/dist/formeditor-WIH4NSK4.css +1 -0
  28. package/dist/formeditor.css +1 -0
  29. package/dist/formeditor.d.ts +16 -0
  30. package/dist/formeditor.js +1 -0
  31. package/dist/imageviewer-UDUGX2II.js +32 -0
  32. package/dist/index.d.ts +1068 -0
  33. package/dist/index.esm-BDKPT66B.js +1 -0
  34. package/dist/index.esm-EQZLQZWV.js +1 -0
  35. package/dist/index.esm-JIDMKFSE.js +1 -0
  36. package/dist/index.js +2 -0
  37. package/dist/loadingcomponent-XO7SMUYB.js +1 -0
  38. package/dist/mdaviewer-K7TPDII4.js +2 -0
  39. package/dist/metafile-esm.json +1 -0
  40. package/dist/nopreviewer-GNJFARBH.js +1 -0
  41. package/dist/pdfviewer-45IJHO46.js +2 -0
  42. package/dist/providers/theme.css +1 -0
  43. package/dist/style.d.ts +1 -0
  44. package/dist/tabulator-SQ554EQC.js +1 -0
  45. package/dist/tabulator-TN7JIT3J.css +1 -0
  46. package/dist/ui/css/fonts.css +1 -0
  47. package/dist/ui/css/form.css +1 -0
  48. package/dist/ui/css/formcanvas.css +1 -0
  49. package/dist/ui/css/formeditor.css +1 -0
  50. package/dist/ui/css/office.css +1 -0
  51. package/dist/ui/css/tabulator.css +1 -0
  52. package/dist/ui/img/form-grid.png +0 -0
  53. package/dist/videopreviewer-CADOHSNG.js +1 -0
  54. package/dist/xlsxviewer-FA53RTSZ.js +1 -0
  55. package/dist/xlsxviewer-REJCVNUX.css +1 -0
  56. package/img/form-grid.png +0 -0
  57. package/package.json +325 -0
package/package.json ADDED
@@ -0,0 +1,325 @@
1
+ {
2
+ "name": "@buildocsdev/sdk",
3
+ "version": "1.1.0",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org/"
6
+ },
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./form": {
15
+ "types": "./dist/form.d.ts",
16
+ "import": "./dist/form.js"
17
+ },
18
+ "./formeditor": {
19
+ "types": "./dist/formeditor.d.ts",
20
+ "import": "./dist/formeditor.js"
21
+ },
22
+ "./index.css": {
23
+ "types": "./dist/style.d.ts",
24
+ "default": "./dist/index.css"
25
+ },
26
+ "./form.css": {
27
+ "types": "./dist/style.d.ts",
28
+ "default": "./dist/ui/css/form.css"
29
+ },
30
+ "./formeditor.css": {
31
+ "types": "./dist/style.d.ts",
32
+ "default": "./dist/ui/css/formeditor.css"
33
+ },
34
+ "./formcanvas.css": {
35
+ "types": "./dist/style.d.ts",
36
+ "default": "./dist/ui/css/formcanvas.css"
37
+ },
38
+ "./office.css": {
39
+ "types": "./dist/style.d.ts",
40
+ "default": "./dist/ui/css/office.css"
41
+ },
42
+ "./tabulator.css": {
43
+ "types": "./dist/style.d.ts",
44
+ "default": "./dist/ui/css/tabulator.css"
45
+ },
46
+ "./providers/theme.css": {
47
+ "types": "./dist/style.d.ts",
48
+ "default": "./dist/providers/theme.css"
49
+ },
50
+ "./img/*": "./dist/ui/img/*"
51
+ },
52
+ "files": [
53
+ "dist",
54
+ "img"
55
+ ],
56
+ "scripts": {
57
+ "start": "set PORT=3001&&craco start",
58
+ "start:analyze": "set PORT=3001&&set ANALYZE=true&&craco start",
59
+ "dev": "npm run build:styles:dev && cross-env NODE_ENV=development tsup --watch --config tsup.config.ts --onSuccess=\"serve dist-dev -l 3000\"",
60
+ "dev:link": "npm run build:styles && cross-env NODE_ENV=production tsup --watch --no-dts --no-clean",
61
+ "build:styles:dev": "sass --load-path=node_modules --load-path=src --quiet-deps --silence-deprecation=import --silence-deprecation=global-builtin --silence-deprecation=color-functions src:dist-dev --no-source-map --style=expanded && postcss \"dist-dev/**/*.css\" --config postcss.config.mjs --replace",
62
+ "build:styles": "sass --load-path=node_modules --load-path=src --quiet-deps --silence-deprecation=import --silence-deprecation=global-builtin --silence-deprecation=color-functions src:dist --no-source-map --style=compressed && postcss \"dist/**/*.css\" --config postcss.config.mjs --replace && npm run build:assets",
63
+ "create:css-dts": "node -e \"require('fs').writeFileSync('dist/style.d.ts', 'export {};\\n')\"",
64
+ "build": "cross-env NODE_ENV=production tsup && npm run fix:dts && npm run create:css-dts && npm run build:styles",
65
+ "build:local": "cross-env NODE_ENV=production tsup --no-dts && npm run build:styles",
66
+ "build:cra": "craco build",
67
+ "build:analyze": "set ANALYZE=true&&craco build",
68
+ "analyze": "set ANALYZE=true&&craco build --stats",
69
+ "build:assets": "cpy \"src/ui/img/**/*\" dist/ui/img/ && cpy \"src/ui/img/**/*\" img/",
70
+ "prepare": "npm run build",
71
+ "build:watch": "tsup --watch",
72
+ "clean": "rimraf dist",
73
+ "build:types": "tsc -p tsconfig.build.json",
74
+ "analyze:tsup": "tsup --analyze",
75
+ "fix:dts": "node -e \"const fs=require('fs'); fs.readdirSync('dist').filter(f=>f.endsWith('.d.mts')).forEach(f=>fs.renameSync('dist/'+f, 'dist/'+f.replace('.d.mts','.d.ts')))\"",
76
+ "test": "jest",
77
+ "test:watch": "jest --watch",
78
+ "test:coverage": "jest --coverage"
79
+ },
80
+ "sideEffects": [
81
+ "*.css",
82
+ "*.scss",
83
+ "*.sass"
84
+ ],
85
+ "overrides": {
86
+ "react-tag-autocomplete": "^7.3.0",
87
+ "jest-watch-typeahead": "^2.2.2",
88
+ "react-pro-sidebar": {
89
+ "react-slidedown": "^2.4.7"
90
+ },
91
+ "@storybook/addon-actions": {
92
+ "react-inspector": "^6.0.0"
93
+ },
94
+ "@storybook/addon-docs": {
95
+ "@mdx-js/react": "^2.0.0"
96
+ }
97
+ },
98
+ "keywords": [
99
+ "backend-driven-ui",
100
+ "dynamic-ui",
101
+ "ui-runtime",
102
+ "schema-driven-ui",
103
+ "enterprise-ui",
104
+ "workflow-engine",
105
+ "react-components"
106
+ ],
107
+ "author": "Aleksandr Russakov",
108
+ "license": "Apache 2.0",
109
+ "description": "Buildocs SDK is a backend-driven UI runtime for rendering dynamic interfaces, workflows, tables, and modals inside React applications.",
110
+ "repository": {
111
+ "type": "git",
112
+ "url": "https://github.com/Buildocsdev/sdk.git"
113
+ },
114
+ "homepage": "https://github.com/Buildocsdev/sdk#readme",
115
+ "bugs": {
116
+ "url": "https://github.com/Buildocsdev/sdk/issues"
117
+ },
118
+ "engines": {
119
+ "node": ">=18.0.0",
120
+ "npm": ">=9.0.0"
121
+ },
122
+ "dependencies": {},
123
+ "peerDependencies": {
124
+ "@lagarsoft/forge-viewer-react": "^0.3.5",
125
+ "@emotion/react": "^11",
126
+ "@emotion/styled": "^11",
127
+ "@mui/icons-material": "^5",
128
+ "@mui/material": "^5",
129
+ "@mui/system": "^5",
130
+ "@mui/x-tree-view": "^7",
131
+ "@react-spring/web": "^9.7.4",
132
+ "@reduxjs/toolkit": "^1.8.3",
133
+ "@types/pdfjs-dist": "^2.10.378",
134
+ "axios": ">=0.27.2",
135
+ "bootstrap": "^5.3.8",
136
+ "i18next-http-backend": "^2.1.0",
137
+ "react": ">=18 <19",
138
+ "react-color": "^2.19.3",
139
+ "react-dnd": "^16.0.1",
140
+ "react-dnd-html5-backend": "^16.0.1",
141
+ "react-dnd-scrolling": "^1.3.3",
142
+ "react-dnd-touch-backend": "^16.0.1",
143
+ "react-dom": ">=18 <19",
144
+ "react-hook-form": "^7.66.1",
145
+ "react-player": "^2.16.0",
146
+ "react-icons": "^5.5.0",
147
+ "react-pdf": "^10.3.0",
148
+ "react-redux": "^8.0.2",
149
+ "react-router-dom": "^6.4.1",
150
+ "react-tabulator": "^0.21.0",
151
+ "xlsx": "^0.18.5"
152
+ },
153
+ "peerDependenciesMeta": {
154
+ "@lagarsoft/forge-viewer-react": {
155
+ "optional": true
156
+ },
157
+ "react-color": {
158
+ "optional": true
159
+ },
160
+ "react-dnd": {
161
+ "optional": true
162
+ },
163
+ "react-dnd-html5-backend": {
164
+ "optional": true
165
+ },
166
+ "react-dnd-scrolling": {
167
+ "optional": true
168
+ },
169
+ "react-dnd-touch-backend": {
170
+ "optional": true
171
+ },
172
+ "react-player": {
173
+ "optional": true
174
+ }
175
+ },
176
+ "devDependencies": {
177
+ "@lagarsoft/forge-viewer-react": "^0.3.5",
178
+ "buildocslib": "^0.2.179",
179
+ "immutability-helper": "^3.1.1",
180
+ "prop-types": "^15.8.1",
181
+ "react-hook-form": "^7.66.1",
182
+ "react-indiana-drag-scroll": "^2.2.0",
183
+ "react-player": "^2.16.0",
184
+ "react-select": "^5.7.0",
185
+ "react-tabs": "^6.0.0",
186
+ "react-use-draggable-scroll": "^0.4.7",
187
+ "stylis-plugin-rtl": "^2.1.1",
188
+ "typescript": "^4.9.5",
189
+ "@craco/craco": "^7.1.0",
190
+ "@emotion/react": "^11.13.3",
191
+ "@emotion/styled": "^11.13.0",
192
+ "@fullhuman/postcss-purgecss": "^7.0.2",
193
+ "@headlessui/react": "^1.7.3",
194
+ "@mui/icons-material": "^5.16.7",
195
+ "@mui/lab": "^5.0.0-alpha.173",
196
+ "@mui/material": "^5.16.7",
197
+ "@mui/styled-engine-sc": "^5.8.0",
198
+ "@mui/system": "^5.16.7",
199
+ "@mui/x-date-pickers": "^6.20.2",
200
+ "@mui/x-tree-view": "^7.13.0",
201
+ "@react-spring/web": "^9.7.4",
202
+ "@reduxjs/toolkit": "^1.8.3",
203
+ "@testing-library/jest-dom": "^6.6.3",
204
+ "@testing-library/react": "^13.3.0",
205
+ "@testing-library/user-event": "^13.5.0",
206
+ "@types/feather-icons": "^4.7.0",
207
+ "@types/forge-viewer": "^7.99.1",
208
+ "@types/jest": "^29.5.14",
209
+ "@types/js-cookie": "^3.0.6",
210
+ "@types/lodash.debounce": "^4.0.9",
211
+ "@types/node": "^20.19.39",
212
+ "@types/react": "^18.3.25",
213
+ "@types/react-color": "^3.0.13",
214
+ "@types/react-dom": "^18.3.7",
215
+ "@types/react-input-mask": "^3.0.6",
216
+ "@types/sanitize-html": "^2.11.0",
217
+ "@types/stylis": "^4.2.7",
218
+ "@types/tabulator-tables": "^6.2.3",
219
+ "@types/three": "^0.160.0",
220
+ "@types/webpack-bundle-analyzer": "^4.7.0",
221
+ "autoprefixer": "^10.4.21",
222
+ "axios": "^0.27.2",
223
+ "babel-plugin-named-exports-order": "^0.0.2",
224
+ "baseline-browser-mapping": "^1.0.0",
225
+ "bim-fragment": "^1.2.6",
226
+ "bootstrap": "^5.3.8",
227
+ "buffer": "^6.0.3",
228
+ "cpy-cli": "^6.0.0",
229
+ "cross-env": "^10.1.0",
230
+ "css-pro-layout": "^1.1.0",
231
+ "dayjs": "^1.11.18",
232
+ "dayjs-plugin-utc": "^0.1.2",
233
+ "esbuild-sass-plugin": "^3.3.1",
234
+ "i18next": "^25.8.4",
235
+ "i18next-http-backend": "^2.1.0",
236
+ "jest": "^29.7.0",
237
+ "jest-environment-jsdom": "^29.7.0",
238
+ "js-cookie": "^3.0.5",
239
+ "postcss": "^8.5.6",
240
+ "postcss-cli": "^11.0.1",
241
+ "postcss-import": "^15.1.0",
242
+ "postcss-nesting": "^12.0.2",
243
+ "react": "^18.3.1",
244
+ "react-app-rewired": "^2.2.1",
245
+ "react-color": "^2.19.3",
246
+ "react-dnd": "^16.0.1",
247
+ "react-dnd-html5-backend": "^16.0.1",
248
+ "react-dnd-scrolling": "^1.3.3",
249
+ "react-dnd-touch-backend": "^16.0.1",
250
+ "react-dom": "^18.3.1",
251
+ "react-i18next": "^16.5.4",
252
+ "react-icons": "^5.5.0",
253
+ "react-input-mask": "^2.0.4",
254
+ "react-number-format": "^5.3.4",
255
+ "react-pdf": "^10.3.0",
256
+ "react-pro-sidebar": "^1.1.0",
257
+ "react-redux": "^8.0.2",
258
+ "react-responsive": "^9.0.0-beta.10",
259
+ "react-router-dom": "^6.4.1",
260
+ "react-scripts": "^5.0.1",
261
+ "react-tabulator": "^0.21.0",
262
+ "react-toastify": "^9.0.6",
263
+ "sass": "^1.90.0",
264
+ "sass-loader": "^12.3.0",
265
+ "serve": "^14.2.5",
266
+ "source-map-explorer": "^2.5.3",
267
+ "storybook-addon-designs": "^6.3.1",
268
+ "terser-webpack-plugin": "^5.3.10",
269
+ "ts-jest": "^29.2.5",
270
+ "ts-loader": "^9.4.2",
271
+ "tsdx": "^0.14.1",
272
+ "tslib": "^2.4.1",
273
+ "tsup": "^8.5.0",
274
+ "use-debounce": "^9.0.3",
275
+ "usehooks-ts": "^2.9.1",
276
+ "web-vitals": "^2.1.4",
277
+ "webpack": "^5.74.0",
278
+ "webpack-bundle-analyzer": "^4.10.2",
279
+ "xlsx": "^0.18.5"
280
+ },
281
+ "eslintConfig": {
282
+ "extends": [
283
+ "react-app",
284
+ "react-app/jest"
285
+ ],
286
+ "overrides": [
287
+ {
288
+ "files": [
289
+ "**/*.stories.*"
290
+ ],
291
+ "rules": {
292
+ "import/no-anonymous-default-export": "off"
293
+ }
294
+ },
295
+ {
296
+ "files": [
297
+ "**/*.stories.*"
298
+ ],
299
+ "rules": {
300
+ "import/no-anonymous-default-export": "off"
301
+ }
302
+ },
303
+ {
304
+ "files": [
305
+ "**/*.stories.*"
306
+ ],
307
+ "rules": {
308
+ "import/no-anonymous-default-export": "off"
309
+ }
310
+ }
311
+ ]
312
+ },
313
+ "browserslist": {
314
+ "production": [
315
+ ">0.2%",
316
+ "not dead",
317
+ "not op_mini all"
318
+ ],
319
+ "development": [
320
+ "last 1 chrome version",
321
+ "last 1 firefox version",
322
+ "last 1 safari version"
323
+ ]
324
+ }
325
+ }