forked from box/box-ui-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
367 lines (367 loc) · 15.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
{
"name": "box-ui-elements",
"version": "0.0.0-semantically-released",
"description": "Box UI Elements",
"author": "Box (https://www.box.com/)",
"license": "SEE LICENSE IN LICENSE",
"homepage": "https://developer.box.com/docs/box-ui-elements",
"main": "es/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"types": "es/types.d.ts",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"box",
"box platform",
"box-platform",
"box content",
"box-content",
"ui elements",
"preview",
"uploader",
"picker",
"explorer",
"box-content-ui-elements",
"box-content-preview",
"box-content-uploader",
"box-content-picker",
"box-content-explorer",
"box-content-openwith",
"box-content-sidebar"
],
"repository": {
"type": "git",
"url": "[email protected]:box/box-ui-elements.git"
},
"bugs": {
"url": "https://github.com/box/box-ui-elements/issues"
},
"scripts": {
"build": "yarn build:dev:dist",
"build:ci:es": "yarn build:prod:es",
"build:ci:dist": "LANGUAGE=en-US ENTRY=explorer REACT=true yarn build:prod:dist",
"build:dev:dist": "LANGUAGE=en-US BABEL_ENV=development NODE_ENV=development webpack --config scripts/webpack.config.js --mode development --progress",
"build:dev:es": "BABEL_ENV=development NODE_ENV=development yarn build:es --copy-files --source-maps inline --watch --ignore \"**/*.d.ts,**/__tests__/**,**/__mocks__/**\"",
"build:es": "babel src --extensions '.js,.tsx,.ts' --out-dir es",
"build:i18n": "props2es",
"build:npm": "npm-run-all clean build:i18n build:prod:npm build:prod:es",
"build:prod:analyze": "BUNDLE_ANALYSIS=true npm-run-all setup build:prod:npm",
"build:prod:es": "BABEL_ENV=npm NODE_ENV=production yarn build:es --source-maps --ignore \"**/*.d.ts,**/__tests__/**,**/__mocks__/**\"",
"build:prod:dist": "NODE_ENV=production webpack --config scripts/webpack.config.js --mode production",
"build:prod:examples": "LANGUAGE=en-US REACT=true NODE_ENV=production node --max_old_space_size=8192 node_modules/.bin/styleguidist build --config scripts/styleguide.config.js --mode production",
"build:prod:npm": "BABEL_ENV=production OUTPUT=dist LANGUAGE=en-US REACT=true yarn build:prod:dist",
"build:prod:storybook": "LANGUAGE=en-US REACT=true BROWSERSLIST_ENV=production BABEL_ENV=development NODE_ENV=development storybook build -c .storybook -o styleguide/storybook",
"build:sync": "LANGUAGE=en-US BABEL_ENV=development NODE_ENV=development RSYNC=true webpack --config scripts/webpack.config.js --mode development",
"chromatic": "chromatic",
"clean": "rm -rf dist es i18n/json i18n/*.js reports styleguide",
"copy:flow": "flow-copy-source --ignore \"**/__tests__/**\" --ignore \"**/__mocks__/**\" --ignore \"**/*.ts\" ./src ./es && copyfiles './src/**/*.js.flow' es --up 1",
"copy:styles": "copyfiles './src/**/*.scss' es --up 1",
"cy:open": "yarn cy:wait; yarn cypress open",
"cy:run": "yarn cy:wait; yarn cypress run --spec \"test/integration/**/*.cy.js\"",
"cy:wait": "wait-on http-get://127.0.0.1:6060/#",
"lint": "npm-run-all lint:*",
"lint:js": "eslint --max-warnings=0 .",
"lint:ts": "tsc",
"lint:css": "stylelint \"src/**/*.scss\" --syntax scss",
"prebuild:es": "npm-run-all copy:styles ts:defs copy:flow",
"release": "yarn release:beta",
"release:beta": "DIST=beta BRANCH=master ./scripts/release.sh",
"release:hotfix": "DIST=latest HOTFIX=true ./scripts/release.sh",
"release:latest": "DIST=latest BRANCH=master ./scripts/release.sh",
"release:next": "DIST=next BRANCH=next ./scripts/release.sh",
"release:cdn": "yarn setup; node ./scripts/prod.js",
"setup": "yarn install --frozen-lockfile; npm-run-all clean build:i18n",
"start": "npm-run-all setup start:examples",
"start:dev": "yarn setup; LANGUAGE=en-US BABEL_ENV=development NODE_ENV=development node --max_old_space_size=8192 node_modules/.bin/webpack-dev-server --config scripts/webpack.config.js --mode development",
"start:examples": "EXAMPLES=true LANGUAGE=en-US REACT=true BABEL_ENV=development NODE_ENV=development node --max_old_space_size=8192 node_modules/.bin/styleguidist server --config scripts/styleguide.config.js --mode development",
"start:npm": "yarn setup; yarn build:dev:es",
"start:storybook": "LANGUAGE=en-US REACT=true BABEL_ENV=development NODE_ENV=development storybook dev -p 6061",
"start:storybook:ci": "yarn start:storybook --ci",
"test": "BABEL_ENV=test NODE_ENV=test yarn jest -c scripts/jest/jest.config.js",
"test:e2e": "BROWSERSLIST_ENV=test npm-run-all -p -r start:examples cy:run",
"test:e2e:open": "BROWSERSLIST_ENV=test npm-run-all -p -r start:examples cy:open",
"ts:defs": "tsc --declaration --emitDeclarationOnly --declarationDir es --noEmit false"
},
"browserslist": {
"production": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions",
"last 2 iOS versions"
],
"development": ["last 1 Chrome versions", "last 1 Firefox versions", "last 1 Safari versions"]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged -c scripts/lint-staged.config.js",
"pre-push": "scripts/prepush.sh",
"commit-msg": "commitlint -e"
}
},
"engines": {
"node": ">=18.x",
"yarn": ">=1.10.0"
},
"devDependencies": {
"@babel/cli": "^7.24.7",
"@babel/core": "^7.24.7",
"@babel/eslint-parser": "^7.24.7",
"@babel/helper-create-class-features-plugin": "^7.24.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-class-properties": "^7.24.7",
"@babel/plugin-transform-flow-strip-types": "^7.24.7",
"@babel/plugin-transform-modules-commonjs": "^7.24.7",
"@babel/plugin-transform-object-assign": "^7.24.7",
"@babel/plugin-transform-object-rest-spread": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-flow": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@babel/template": "^7.24.7",
"@babel/types": "^7.24.7",
"@box/blueprint-web": "^7.30.1",
"@box/blueprint-web-assets": "^4.21.0",
"@box/box-ai-content-answers": "^0.49.1",
"@box/cldr-data": "^34.2.0",
"@box/frontend": "^10.0.0",
"@box/languages": "^1.0.0",
"@box/metadata-editor": "^0.54.0",
"@box/react-virtualized": "9.22.3-rc-box.9",
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
"@chromatic-com/storybook": "^1.6.1",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.6.0",
"@formatjs/intl-pluralrules": "^1.5.2",
"@formatjs/intl-relativetimeformat": "^4.5.9",
"@formatjs/intl-unified-numberformat": "^3.2.0",
"@hapi/address": "^2.1.4",
"@storybook/addon-actions": "^8.2.4",
"@storybook/addon-docs": "^8.2.4",
"@storybook/addon-essentials": "^8.2.4",
"@storybook/addon-interactions": "^8.2.4",
"@storybook/addon-knobs": "^8.0.1",
"@storybook/addon-links": "^8.2.4",
"@storybook/addon-styling": "^1.3.7",
"@storybook/addon-styling-webpack": "^1.0.0",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/blocks": "^8.2.4",
"@storybook/manager-api": "^8.2.4",
"@storybook/preview-api": "^8.2.4",
"@storybook/react-webpack5": "^8.2.4",
"@storybook/test": "^8.2.4",
"@storybook/theming": "^8.2.4",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/classnames": "^2.2.9",
"@types/color": "^3.0.2",
"@types/enzyme": "^3.10.18",
"@types/history": "^4.7.5",
"@types/jest": "^29.5.12",
"@types/jest-image-snapshot": "^6.4.0",
"@types/lodash": "^4.14.149",
"@types/node": "^13.5.2",
"@types/pikaday": "^1.7.4",
"@types/puppeteer": "^2.0.1",
"@types/react": "^18.3.0",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/react-dom": "^18.3.0",
"@types/react-measure": "^2.0.6",
"@types/react-router-dom": "^5.1.3",
"@types/sinon": "^7.5.1",
"@types/webpack": "^4.41.3",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"autoprefixer": "^10.4.19",
"axios": "0.25.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"babel-plugin-dynamic-import-node": "^2.3.0",
"babel-plugin-flow-react-proptypes": "^25.1.0",
"babel-plugin-react-intl": "^5.1.18",
"babel-plugin-react-remove-properties": "^0.3.0",
"babel-plugin-rewire": "^1.0.0",
"babel-plugin-styled-components": "^1.10.7",
"babel-preset-react-app": "^9.1.0",
"chromatic": "^10.6.1",
"circular-dependency-plugin": "^5.2.2",
"classnames": "^2.2.6",
"color": "^3.1.2",
"conventional-changelog": "^3.1.18",
"conventional-changelog-cli": "^2.0.31",
"conventional-github-releaser": "^3.1.3",
"copyfiles": "^2.2.0",
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^7.0.0",
"cssnano": "^4.1.10",
"cypress": "^13.7.3",
"deepmerge": "^4.2.2",
"draft-js": "^0.11.7",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.4.3",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^3.3.0",
"eslint-plugin-formatjs": "^4.13.3",
"eslint-plugin-ft-flow": "^3.0.7",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"filesize": "^4.1.2",
"flow-bin": "^0.95.1",
"flow-copy-source": "^2.0.9",
"flow-typed": "^2.6.2",
"form-serialize": "^0.7.2",
"formik": "^2.0.3",
"husky": "^4.0.10",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"intl": "^1.2.5",
"intl-messageformat": "^7.8.4",
"intl-messageformat-parser": "^3.6.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-image-snapshot": "^6.4.0",
"jest-puppeteer": "^10.0.1",
"js-sha1": "0.6.0",
"jsuri": "^1.3.1",
"lint-staged": "^9.5.0",
"lodash": "^4.17.15",
"message-accumulator": "^2.1.1",
"mini-css-extract-plugin": "^2.9.0",
"mousetrap": "^1.6.3",
"msw": "^2.1.5",
"msw-storybook-addon": "^2.0.2",
"npm-run-all": "^4.1.5",
"pikaday": "^1.8.0",
"postcss": "^8.4.31",
"postcss-loader": "^8.1.1",
"prettier": "^3.2.5",
"prettier-eslint-cli": "^5.0.0",
"prop-types": "^15.7.2",
"properties-parser": "^0.3.1",
"puppeteer": "^2.0.0",
"query-string": "5.1.1",
"react": "^18.3.1",
"react-animate-height": "^3.2.3",
"react-beautiful-dnd": "^13.1.1",
"react-docgen-typescript": "^1.16.1",
"react-docgen-typescript-loader": "^3.6.0",
"react-dom": "^18.3.1",
"react-draggable": "^4.4.6",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^6.6.8",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-popper": "^1.3.4",
"react-process-string": "^1.2.0",
"react-responsive": "^10.0.0",
"react-router-dom": "^5.3.4",
"react-scrollbars-custom": "^4.0.21",
"react-styleguidist": "^13.1.3",
"react-tether": "^1.0.5",
"react-textarea-autosize": "^8.5.3",
"regenerator-runtime": "^0.14.1",
"sanitize-html": "^1.21.1",
"sass": "^1.34.1",
"sass-lint": "^1.13.1",
"sass-loader": "^8.0.2",
"scroll-into-view-if-needed": "^2.2.20",
"semantic-release": "^16.0.2",
"sinon": "^2.3.7",
"source-map-loader": "^0.2.4",
"start-server-and-test": "^1.10.8",
"storybook": "^8.2.4",
"storybook-react-intl": "^3.1.1",
"string-replace-loader": "^3.1.0",
"styled-components": "5.0.0",
"stylelint": "^12.0.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^19.0.0",
"stylelint-order": "^3.1.1",
"tabbable": "^1.1.3",
"ts-loader": "^6.2.1",
"typescript": "5.2.2",
"uuid": "^8.3.2",
"wait-on": "^3.3.0",
"webpack": "^5.92.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"worker-farm": "^1.7.0"
},
"peerDependencies": {
"@box/blueprint-web": "^7.30.1",
"@box/blueprint-web-assets": "^4.21.0",
"@box/box-ai-content-answers": "^0.49.1",
"@box/cldr-data": ">=34.2.0",
"@box/metadata-editor": "^0.54.0",
"@box/react-virtualized": "9.22.3-rc-box.9",
"@hapi/address": "^2.1.4",
"axios": "^0.25.0",
"classnames": "^2.2.5",
"color": "^3.1.2",
"draft-js": "^0.11.7",
"filesize": "^4.1.2",
"form-serialize": "^0.7.2",
"formik": "^2.0.0",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"intl-messageformat": "^7.8.4",
"js-sha1": "0.6.0",
"jsuri": "^1.3.1",
"lodash": "^4.17.5",
"message-accumulator": "^2.1.1",
"mousetrap": "^1.6.3",
"pikaday": "^1.8.0",
"query-string": "5.1.1",
"react": "^17.0.1 || ^18.0.0",
"react-animate-height": "^3.2.3",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^17.0.1 || ^18.0.0",
"react-draggable": "^4.4.6",
"react-immutable-proptypes": "^2.1.0",
"react-intl": ">=2.9.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-popper": "^1.3.4",
"react-process-string": "^1.2.0",
"react-responsive": "^10.0.0",
"react-router-dom": "5.3.4",
"react-scrollbars-custom": "^4.0.21",
"react-tether": "^1.0.5",
"react-textarea-autosize": "^8.5.3",
"regenerator-runtime": "^0.13.2",
"sanitize-html": "^1.21.1",
"sass": "^1.34.1",
"scroll-into-view-if-needed": "^2.2.20",
"tabbable": "^1.1.2",
"uuid": "^8.3.2"
},
"comments": {
"dependencies": {
"react-tether": "Version 2.x has too many breaking changes and requires forwardRef on all components"
}
},
"resolutions": {
"ip": "1.1.8"
},
"overrides": {
"react-tether": {
"react": "$react",
"react-dom": "$react-dom"
}
},
"msw": {
"workerDirectory": [".storybook/public"]
}
}