gov-ui-core 1.0.30 → 1.0.32

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.
@@ -26,7 +26,7 @@ import Modal from './components/Modal';
26
26
  import Tabs from './components/Tabs';
27
27
  import ThemeProvider from './components/ThemeProvider';
28
28
  import { Methods } from './components/Form';
29
- import Sliders from './components/Sliders';
29
+ import Slider from './components/Slider';
30
30
  import Tooltips from './components/Tooltips';
31
31
  import Breadcrumb from './components/Breadcrumb';
32
32
  import Toast from './components/Toast';
@@ -34,5 +34,5 @@ import Panel from './components/Panel';
34
34
  import { TextBox } from './components/TextBox';
35
35
  import Datepicker from './components/Datepicker';
36
36
  import defaultTheme from './theme';
37
- export { AppendTable, Button, TextButton, Calendar, Carousel, ContentHeader, Chip, Card, Directory, DropdownButton, EmptyBox, Form, Icons, Input, ErrorMessage, OverlayLoading, Progress, SwitchButton, Table, TableBase, Tree, ThemeProvider, AutoTooltip, Menu, Modal, Tabs, IntlText, defaultTheme, Sliders, Tooltips, Breadcrumb, Toast, Panel, TextBox, useAppendTable, Datepicker, };
37
+ export { AppendTable, Button, TextButton, Calendar, Carousel, ContentHeader, Chip, Card, Directory, DropdownButton, EmptyBox, Form, Icons, Input, ErrorMessage, OverlayLoading, Progress, SwitchButton, Table, TableBase, Tree, ThemeProvider, AutoTooltip, Menu, Modal, Tabs, IntlText, defaultTheme, Slider, Tooltips, Breadcrumb, Toast, Panel, TextBox, useAppendTable, Datepicker, };
38
38
  export type { Methods };
@@ -0,0 +1,6 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface ISelectSampleProps {
3
+ children?: ReactNode;
4
+ }
5
+ declare const SelectSample: React.FC<ISelectSampleProps>;
6
+ export default SelectSample;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface ISliderProps {
3
+ }
4
+ declare const SliderSample: React.FC<ISliderProps>;
5
+ export default SliderSample;
@@ -0,0 +1,18 @@
1
+ 🩺 The doctor is checking the health of your Storybook..
2
+ ╭ Incompatible packages found ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
3
+ │ │
4
+ │ The following packages are incompatible with Storybook 8.0.4 as they depend on different major versions of Storybook packages: │
5
+ │ - @storybook/addon-knobs@7.0.2 │
6
+ │ │
7
+ │ │
8
+ │ Please consider updating your packages or contacting the maintainers for compatibility details. │
9
+ │ For more on Storybook 8 compatibility, see the linked GitHub issue: │
10
+ │ https://github.com/storybookjs/storybook/issues/26031 │
11
+ │ │
12
+ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
13
+
14
+ You can always recheck the health of your project by running:
15
+ npx storybook doctor
16
+
17
+ Full logs are available in /Users/yoon/WebstormProjects/nexr/neb-ui-new/doctor-storybook.log
18
+
@@ -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": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "repository": "https://github.com/liamyoon/gov-ui-core",
5
5
  "main": "./build/index.js",
6
6
  "module": "./build/index.js",
@@ -128,6 +128,7 @@
128
128
  "camelcase": "^6.2.1",
129
129
  "classnames": "^2.5.1",
130
130
  "date-fns": "^2.30.0",
131
+ "dompurify": "^3.2.6",
131
132
  "dotenv": "^10.0.0",
132
133
  "dotenv-expand": "^5.1.0",
133
134
  "dynamic-antd-theme": "^0.8.7",
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export interface ISlidersProps {
3
- type?: 'default' | 'range';
4
- min?: number;
5
- max?: number;
6
- disabled?: boolean;
7
- value?: number;
8
- minValue?: number;
9
- maxValue?: number;
10
- onChange?: any;
11
- }
12
- declare const Sliders: React.FC<ISlidersProps>;
13
- export default Sliders;
@@ -1,10 +0,0 @@
1
- export declare const SliderBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
- type?: string | undefined;
3
- slidersHoverd?: boolean | undefined;
4
- disabled?: boolean | undefined;
5
- minBarPosition?: number | undefined;
6
- maxBarPosition?: number | undefined;
7
- min?: number | undefined;
8
- max?: number | undefined;
9
- sliderWidth?: number | undefined;
10
- }, never>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- interface ISample4Props {
3
- }
4
- declare const SlidersSample: React.FC<ISample4Props>;
5
- export default SlidersSample;