Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to official Storybook 7 release #1147

Merged
merged 8 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
jattasNI marked this conversation as resolved.
Show resolved Hide resolved
"type": "none",
"comment": "Move to official Storybook 7 release",
"packageName": "@ni/nimble-components",
"email": "[email protected]",
"dependentChangeType": "none"
}
3,224 changes: 1,642 additions & 1,582 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion packages/nimble-components/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const parameters = {
expanded: true
},
docs: {
transformSource
source: {
transform: transformSource
}
}
};

Expand Down
24 changes: 12 additions & 12 deletions packages/nimble-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@storybook/addon-a11y": "^7.0.0-rc.8",
"@storybook/addon-actions": "^7.0.0-rc.8",
"@storybook/addon-docs": "^7.0.0-rc.8",
"@storybook/addon-essentials": "^7.0.0-rc.8",
"@storybook/addon-interactions": "^7.0.0-rc.8",
"@storybook/addon-links": "^7.0.0-rc.8",
"@storybook/addons": "^7.0.0-rc.8",
"@storybook/cli": "^7.0.0-rc.8",
"@storybook/addon-a11y": "^7.0.4",
"@storybook/addon-actions": "^7.0.4",
"@storybook/addon-docs": "^7.0.4",
"@storybook/addon-essentials": "^7.0.4",
"@storybook/addon-interactions": "^7.0.4",
"@storybook/addon-links": "^7.0.4",
"@storybook/addons": "^7.0.4",
"@storybook/cli": "^7.0.4",
"@storybook/csf": "0.0.2-next.10",
"@storybook/html": "^7.0.0-rc.8",
"@storybook/html-webpack5": "^7.0.0-rc.8",
"@storybook/theming": "^7.0.0-rc.8",
"@storybook/html": "^7.0.4",
"@storybook/html-webpack5": "^7.0.4",
"@storybook/theming": "^7.0.4",
"@types/jasmine": "^4.3.1",
"@types/webpack-env": "^1.15.2",
"babel-loader": "^ 9.1.2",
Expand Down Expand Up @@ -126,7 +126,7 @@
"remark-gfm": "^3.0.1",
"rollup": "^3.10.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"storybook": "^7.0.0-rc.8",
"storybook": "^7.0.4",
"ts-loader": "^9.2.5",
"typescript": "~4.7.4",
"webpack": "^5.75.0",
Expand Down

This file was deleted.

10 changes: 10 additions & 0 deletions patches/@storybook+addon-actions+7.0.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/node_modules/@storybook/addon-actions/dist/decorator.d.ts b/node_modules/@storybook/addon-actions/dist/decorator.d.ts
index 0497cfe..3b84204 100644
--- a/node_modules/@storybook/addon-actions/dist/decorator.d.ts
+++ b/node_modules/@storybook/addon-actions/dist/decorator.d.ts
@@ -1,4 +1,4 @@
-import * as lib_preview_api_dist_storybook_channel_mock_a19cd233 from 'lib/preview-api/dist/storybook-channel-mock-a19cd233';
+import * as lib_preview_api_dist_storybook_channel_mock_a19cd233 from '@storybook/preview-api/dist/storybook-channel-mock-a19cd233';

declare const withActions: lib_preview_api_dist_storybook_channel_mock_a19cd233.M;

13 changes: 0 additions & 13 deletions patches/@storybook+html+7.0.0-rc.8.patch

This file was deleted.

13 changes: 13 additions & 0 deletions patches/@storybook+html+7.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/@storybook/html/dist/types-ccac9448.d.ts b/node_modules/@storybook/html/dist/types-ccac9448.d.ts
index a973f71..558cacb 100644
--- a/node_modules/@storybook/html/dist/types-ccac9448.d.ts
+++ b/node_modules/@storybook/html/dist/types-ccac9448.d.ts
@@ -1,6 +1,6 @@
import { PartialStoryFn, ArgsStoryFn, RenderContext, WebRenderer, StoryContext as StoryContext$1 } from '@storybook/types';
-import * as lib_docs_tools_dist from 'lib/docs-tools/dist';
-import * as lib_types_dist from 'lib/types/dist';
+import * as lib_docs_tools_dist from '@storybook/docs-tools/dist';
+import * as lib_types_dist from '@storybook/types/dist';

declare function sourceDecorator(storyFn: PartialStoryFn<HtmlRenderer>, context: StoryContext): StoryFnHtmlReturnType;