gov-ui-core 0.2.1 → 0.2.3

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.
@@ -23,9 +23,9 @@ object-assign
23
23
 
24
24
  /**
25
25
  * @license React
26
- * react-is.production.min.js
26
+ * react-is.production.js
27
27
  *
28
- * Copyright (c) Facebook, Inc. and its affiliates.
28
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
29
29
  *
30
30
  * This source code is licensed under the MIT license found in the
31
31
  * LICENSE file in the root directory of this source tree.
@@ -33,7 +33,7 @@ object-assign
33
33
 
34
34
  /**
35
35
  * @license React
36
- * react-jsx-runtime.production.min.js
36
+ * react-is.production.min.js
37
37
  *
38
38
  * Copyright (c) Facebook, Inc. and its affiliates.
39
39
  *
@@ -41,8 +41,9 @@ object-assign
41
41
  * LICENSE file in the root directory of this source tree.
42
42
  */
43
43
 
44
- /** @license React v16.13.1
45
- * react-is.production.min.js
44
+ /**
45
+ * @license React
46
+ * react-jsx-runtime.production.min.js
46
47
  *
47
48
  * Copyright (c) Facebook, Inc. and its affiliates.
48
49
  *
@@ -50,8 +51,8 @@ object-assign
50
51
  * LICENSE file in the root directory of this source tree.
51
52
  */
52
53
 
53
- /** @license React v16.8.6
54
- * react.production.min.js
54
+ /** @license React v16.13.1
55
+ * react-is.production.min.js
55
56
  *
56
57
  * Copyright (c) Facebook, Inc. and its affiliates.
57
58
  *
@@ -59,8 +60,8 @@ object-assign
59
60
  * LICENSE file in the root directory of this source tree.
60
61
  */
61
62
 
62
- /** @license React v17.0.2
63
- * react-is.production.min.js
63
+ /** @license React v16.8.6
64
+ * react.production.min.js
64
65
  *
65
66
  * Copyright (c) Facebook, Inc. and its affiliates.
66
67
  *
@@ -19,11 +19,5 @@ import AppendTable from './components/Table/AppendTable';
19
19
  import ThemeProvider from './components/ThemeProvider';
20
20
  import { Methods } from './components/Form';
21
21
  import defaultTheme from './theme';
22
- import 'antd/lib/table/style/index.css';
23
- import 'antd/lib/dropdown/style/index.css';
24
- import 'antd/lib/style/index.css';
25
- import 'antd/lib/switch/style/index.css';
26
- import 'antd/lib/spin/style/index.css';
27
- import 'antd/lib/tooltip/style/index.css';
28
22
  export { AppendTable, Button, Calendar, Carousel, ContentHeader, Directory, DropdownButton, EmptyBox, Form, Icons, Input, ErrorMessage, OverlayLoading, SwitchButton, Table, TableBase, ThemeProvider, AutoTooltip, IntlText, defaultTheme, };
29
23
  export type { Methods, };
@@ -0,0 +1,98 @@
1
+ 🔎 checking possible migrations..
2
+
3
+ 🔎 found a 'upgradeStorybookRelatedDependencies' migration:
4
+ ╭ Automigration detected ────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
5
+ │ │
6
+ │ You're upgrading to the latest version of Storybook. We recommend upgrading the following packages: │
7
+ │ - @chromatic-com/storybook: 1.2.25 => 3.2.2 │
8
+ │ - @storybook/addon-knobs: 7.0.2 => 8.0.1 │
9
+ │ - eslint-plugin-storybook: 0.8.0 => 0.11.1 │
10
+ │ │
11
+ │ After upgrading, we will run the dedupe command, which could possibly have effects on dependencies that are not Storybook related. │
12
+ │ see: https://docs.npmjs.com/cli/commands/npm-dedupe │
13
+ │ │
14
+ │ Do you want to proceed (upgrade the detected packages)? │
15
+ │ │
16
+ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
17
+ ? Do you want to run the 'upgradeStorybookRelatedDependencies' migration on your project? › (y/N)✔ Do you want to run the 'upgradeStorybookRelatedDependencies' migration on your project? … yes
18
+ Installing dependencies...
19
+
20
+ An error occurred while installing dependencies.
21
+ ❌ error when running upgradeStorybookRelatedDependencies migration
22
+ HandledError: Error: Command failed with exit code 1: npm install
23
+ at Ar.installDependencies (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:18947:75)
24
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
25
+ at async Object.run (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:448:541)
26
+ ... 2 lines matching cause stack trace ...
27
+ at async doUpgrade (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:600:1612)
28
+ at async withTelemetry (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/core-server/index.cjs:35757:12)
29
+ at async upgrade (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:600:2078) {
30
+ handled: true,
31
+ cause: Error: Command failed with exit code 1: npm install
32
+ at makeError (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:18141:67)
33
+ at handlePromise (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:18759:16)
34
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
35
+ at async Ar.executeCommand (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:19205:15)
36
+ at async Ar.runInstall (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:19339:5)
37
+ at async Ar.installDependencies (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/core/dist/common/index.cjs:18945:7)
38
+ at async Object.run (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:448:541)
39
+ at async runFixes (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:533:1801)
40
+ at async automigrate (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:531:1625)
41
+ at async doUpgrade (/Users/yoon/.npm/_npx/7122ab1f221a777a/node_modules/@storybook/cli/dist/bin/index.cjs:600:1612) {
42
+ shortMessage: 'Command failed with exit code 1: npm install',
43
+ command: 'npm install',
44
+ escapedCommand: 'npm install',
45
+ exitCode: 1,
46
+ signal: undefined,
47
+ signalDescription: undefined,
48
+ stdout: undefined,
49
+ stderr: undefined,
50
+ cwd: '/Users/yoon/WebstormProjects/nexr/gov-ui-core',
51
+ failed: true,
52
+ timedOut: false,
53
+ isCanceled: false,
54
+ killed: false
55
+ }
56
+ }
57
+
58
+
59
+ 🔎 found a 'autodocs-tags' migration:
60
+ ╭ Automigration detected ───────────────────────────────────────────────────────────────────────────────────────────╮
61
+ │ │
62
+ │ The docs.autodocs setting in .storybook/main.ts is deprecated. │
63
+ │ │
64
+ │ Learn more: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-docsautodocs-is-deprecated │
65
+ │ │
66
+ │ Remove docs.autodocs and update .storybook/preview.tsx? │
67
+ │ │
68
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
69
+ ? Do you want to run the 'autodocs-tags' migration on your project? › (Y/n)✔ Do you want to run the 'autodocs-tags' migration on your project? … yes
70
+ ✅ Adding "autodocs" tag to .storybook/preview.tsx
71
+ ✅ Removing "docs.autodocs" from .storybook/main.ts
72
+ ✅ ran autodocs-tags migration
73
+ WARN An issue occurred while trying to find dependencies metadata using npm.
74
+
75
+ ╭ Migration check ran with failures ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
76
+ │ │
77
+ │ Successful migrations: │
78
+ │ │
79
+ │ autodocs-tags │
80
+ │ │
81
+ │ Failed migrations: │
82
+ │ │
83
+ │ upgradeStorybookRelatedDependencies: │
84
+ │ Error: Command failed with exit code 1: npm install │
85
+ │ │
86
+ │ You can find the full logs in /Users/yoon/WebstormProjects/nexr/gov-ui-core/migration-storybook.log │
87
+ │ │
88
+ │ ───────────────────────────────────────────────── │
89
+ │ │
90
+ │ If you'd like to run the migrations again, you can do so by running 'npx storybook automigrate' │
91
+ │ │
92
+ │ The automigrations try to migrate common patterns in your project, but might not contain everything needed to migrate to the latest version of Storybook. │
93
+ │ │
94
+ │ Please check the changelog and migration guide for manual migrations and more information: https://storybook.js.org/docs/migration-guide │
95
+ │ And reach out on Discord if you need help: https://discord.gg/storybook │
96
+ │ │
97
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
98
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gov-ui-core",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.js",
6
6
  "types": "./build/modules.d.ts",
@@ -16,7 +16,6 @@
16
16
  "@testing-library/jest-dom": "^5.17.0",
17
17
  "@testing-library/react": "^13.4.0",
18
18
  "@testing-library/user-event": "^13.5.0",
19
- "@types/jest": "^27.5.2",
20
19
  "@types/node": "^16.18.90",
21
20
  "@types/react": "^18.2.67",
22
21
  "@types/react-date-range": "^1.4.9",
@@ -89,8 +88,8 @@
89
88
  "types": "tsc --emitDeclarationOnly && tscpaths -p ./tsconfig.json -s ./src -o ./build",
90
89
  "build": "node scripts/build.js && npm run types",
91
90
  "test": "node node scripts/test.js",
92
- "storybook": "sb dev",
93
- "build-storybook": "sb build",
91
+ "storybook": "storybook dev -p 6006",
92
+ "build-storybook": "storybook build",
94
93
  "deploy-storybook": "gh-pages -d storybook-static -r https://github.com/nexr/neb-ui.git"
95
94
  },
96
95
  "eslintConfig": {
@@ -118,29 +117,31 @@
118
117
  },
119
118
  "devDependencies": {
120
119
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
121
- "@chromatic-com/storybook": "^1.2.25",
122
- "@storybook/addon-actions": "^8.0.4",
123
- "@storybook/addon-essentials": "^8.0.4",
124
- "@storybook/addon-interactions": "^8.0.4",
125
- "@storybook/addon-knobs": "^7.0.2",
126
- "@storybook/addon-links": "^8.0.4",
127
- "@storybook/addon-onboarding": "^8.0.4",
128
- "@storybook/blocks": "^8.0.4",
129
- "@storybook/preset-create-react-app": "^8.0.4",
130
- "@storybook/react": "^8.0.4",
131
- "@storybook/react-webpack5": "^8.0.4",
132
- "@storybook/test": "^8.0.4",
120
+ "@chromatic-com/storybook": "^3.2.2",
121
+ "@storybook/addon-actions": "^8.4.7",
122
+ "@storybook/addon-essentials": "^8.4.7",
123
+ "@storybook/addon-interactions": "^8.4.7",
124
+ "@storybook/addon-knobs": "^8.0.1",
125
+ "@storybook/addon-links": "^8.4.7",
126
+ "@storybook/addon-onboarding": "^8.4.7",
127
+ "@storybook/addon-webpack5-compiler-swc": "^1.0.5",
128
+ "@storybook/blocks": "^8.4.7",
129
+ "@storybook/preset-create-react-app": "^8.4.7",
130
+ "@storybook/react": "^8.4.7",
131
+ "@storybook/react-webpack5": "^8.4.7",
132
+ "@storybook/test": "^8.4.7",
133
+ "@types/jest": "^29.5.14",
133
134
  "@types/lodash": "^4.17.0",
134
135
  "@types/ramda": "^0.29.11",
135
136
  "@types/react-slick": "^0.23.13",
136
137
  "@types/slick-carousel": "^1.6.40",
137
138
  "@types/styled-components": "^5.1.34",
138
139
  "clean-webpack-plugin": "^4.0.0",
139
- "eslint-plugin-storybook": "^0.8.0",
140
+ "eslint-plugin-storybook": "^0.11.1",
140
141
  "prop-types": "^15.8.1",
141
142
  "sass": "^1.72.0",
142
143
  "sass-loader": "^16.0.3",
143
- "storybook": "^8.0.4",
144
+ "storybook": "^8.4.7",
144
145
  "ts-loader": "^9.5.1",
145
146
  "tscpaths": "^0.0.9",
146
147
  "url-loader": "^4.1.1",
package/tsconfig.json CHANGED
@@ -26,6 +26,7 @@
26
26
  "@/*": ["./src/*"]
27
27
  },
28
28
  "typeRoots": ["./@types", "../node_modules/@types"],
29
+ "types": ["@types/jest"],
29
30
  "downlevelIteration": true
30
31
  },
31
32
  "include": ["@types", "src/modules.ts", "src/index.tsx", "src/react-app-env.d.ts"],