@luminati-io/uikit 3.0.24 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
package/index.js ADDED
@@ -0,0 +1,6 @@
1
+ // LICENSE_CODE ZON
2
+ 'use strict'; /*jslint node:true*/
3
+ if (process.env.NODE_ENV==='production')
4
+ module.exports = require('./dist/umd/uikit.production.min.js');
5
+ else
6
+ module.exports = require('./dist/umd/uikit.development.js');
package/package.json CHANGED
@@ -1,16 +1,24 @@
1
1
  {
2
2
  "name": "@luminati-io/uikit",
3
- "version": "3.0.24",
3
+ "version": "3.1.1",
4
4
  "author": "Bright Data (http://brightdata.com)",
5
5
  "license": "ISC",
6
6
  "description": "brightdata's design system",
7
- "main": "./dist/umd/uikit.production.min.js",
7
+ "main": "index.js",
8
+ "module": "dist/esm/index.js",
9
+ "jsnext:main": "dist/esm/index.js",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/esm/index.js",
13
+ "default": "./dist/cjs/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
8
17
  "files": [
9
18
  "dist"
10
19
  ],
11
20
  "dependencies": {
12
21
  "@popperjs/core": "^2.11.8",
13
- "babel-plugin-prismjs": "^2.1.0",
14
22
  "date-fns": "^2.30.0",
15
23
  "lodash": "^4.17.21",
16
24
  "prismjs": "^1.29.0",
@@ -39,6 +47,10 @@
39
47
  "@babel/preset-env": "7.20.2",
40
48
  "@babel/preset-react": "7.18.6",
41
49
  "@react-spring/web": "^9.7.2",
50
+ "@rollup/plugin-alias": "^5.0.1",
51
+ "@rollup/plugin-babel": "^6.0.4",
52
+ "@rollup/plugin-commonjs": "^25.0.7",
53
+ "@rollup/plugin-node-resolve": "^15.2.3",
42
54
  "@storybook/addon-a11y": "^6.5.16",
43
55
  "@storybook/addon-actions": "^6.5.16",
44
56
  "@storybook/addon-essentials": "^6.5.16",
@@ -61,12 +73,16 @@
61
73
  "@visx/xychart": "^3.1.2",
62
74
  "babel-loader": "9.1.3",
63
75
  "babel-plugin-lodash": "^3.3.4",
76
+ "babel-plugin-prismjs": "^2.1.0",
64
77
  "babel-plugin-styled-components": "^2.1.4",
65
78
  "prop-types": "^15.8.1",
66
79
  "react": "^16.9.0",
67
80
  "react-dom": "^16.9.0",
68
81
  "react-table": "^7.8.0",
69
82
  "react-virtualized": "^9.22.5",
83
+ "rollup": "^3.29.4",
84
+ "rollup-plugin-peer-deps-external": "^2.2.4",
85
+ "rollup-plugin-svg-sprites": "^1.2.5",
70
86
  "styled-components": "^6.1.0",
71
87
  "svg-sprite-loader": "^6.0.11",
72
88
  "svgo": "^3.0.2",
@@ -78,8 +94,9 @@
78
94
  "storybook": "start-storybook -p 6006 -c storybook_config",
79
95
  "build-storybook": "build-storybook -c storybook_config",
80
96
  "test": "test-storybook --verbose -c storybook_config",
97
+ "build-rollup": "rollup -c",
81
98
  "build-webpack": "webpack",
82
- "build": "rm -rf dist&&npm run build-webpack",
99
+ "build": "rm -rf dist&&npm run build-rollup&&npm run build-webpack",
83
100
  "prepublishOnly": "npm run build",
84
101
  "minify-svg": "svgo -i ./assets/icons --final-newline",
85
102
  "dry-publish": "npm publish --access public --dry-run",