Skip to content

Commit

Permalink
remove references to storybook/addons
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Oct 20, 2023
1 parent fd0e908 commit f78038b
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion code/frameworks/html-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "workspace:*",
"@storybook/builder-vite": "workspace:*",
"@storybook/client-api": "workspace:*",
"@storybook/core-server": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export function getMigrationSummary({
const allowList = [
'@storybook/csf',
// see this file for more info: code/lib/preview/src/globals/types.ts
'@storybook/addons',
'@storybook/channel-postmessage', // @deprecated: remove in 8.0
'@storybook/channel-websocket', // @deprecated: remove in 8.0
'@storybook/channels',
Expand Down
1 change: 0 additions & 1 deletion code/lib/cli/src/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default {
'@storybook/addon-storysource': '7.6.0-alpha.0',
'@storybook/addon-toolbars': '7.6.0-alpha.0',
'@storybook/addon-viewport': '7.6.0-alpha.0',
'@storybook/addons': '7.6.0-alpha.0',
'@storybook/angular': '7.6.0-alpha.0',
'@storybook/api': '7.6.0-alpha.0',
'@storybook/blocks': '7.6.0-alpha.0',
Expand Down
5 changes: 0 additions & 5 deletions code/lib/preview-api/src/modules/addons/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,4 @@ function getAddonsStore(): AddonStore {
return global[KEY];
}

// Exporting this twice in order to to be able to import it like { addons } instead of 'addons'
// prefer import { addons } from '@storybook/addons' over import addons from '@storybook/addons'
//
// See public_api.ts

export const addons = getAddonsStore();
2 changes: 0 additions & 2 deletions code/lib/preview/src/globals/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import * as PREVIEW_API from '@storybook/preview-api';
import * as GLOBAL from '@storybook/global';

// DEPRECATED, remove in 8.0
import * as ADDONS from '@storybook/preview-api/dist/addons';
import * as CLIENT_API from '@storybook/preview-api/dist/client-api';
import * as CORE_CLIENT from '@storybook/preview-api/dist/core-client';
import * as PREVIEW_WEB from '@storybook/preview-api/dist/preview-web';
Expand All @@ -26,7 +25,6 @@ export const values: Required<Record<keyof typeof globals, any>> = {
'@storybook/global': GLOBAL,

// DEPRECATED, remove in 8.0
'@storybook/addons': ADDONS,
'@storybook/client-api': CLIENT_API,
'@storybook/core-client': CORE_CLIENT,
'@storybook/preview-web': PREVIEW_WEB,
Expand Down
1 change: 0 additions & 1 deletion code/lib/preview/src/globals/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Here we map the name of a module to their NAME in the global scope.
export const globals = {
'@storybook/addons': '__STORYBOOK_MODULE_ADDONS__',
'@storybook/global': '__STORYBOOK_MODULE_GLOBAL__',
'@storybook/channel-postmessage': '__STORYBOOK_MODULE_CHANNEL_POSTMESSAGE__', // @deprecated: remove in 8.0
'@storybook/channel-websocket': '__STORYBOOK_MODULE_CHANNEL_WEBSOCKET__', // @deprecated: remove in 8.0
Expand Down
1 change: 0 additions & 1 deletion code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
"@storybook/addon-storysource": "workspace:*",
"@storybook/addon-toolbars": "workspace:*",
"@storybook/addon-viewport": "workspace:*",
"@storybook/addons": "workspace:*",
"@storybook/angular": "workspace:*",
"@storybook/api": "workspace:*",
"@storybook/babel-plugin-require-context-hook": "1.0.1",
Expand Down
1 change: 0 additions & 1 deletion code/ui/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"devDependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
"@storybook/addon-designs": "^7.0.4",
"@storybook/addons": "workspace:*",
"@storybook/channels": "workspace:*",
"@storybook/client-logger": "workspace:*",
"@storybook/components": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion code/ui/manager/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const resolve = resolveFrom.bind(null, __dirname);
// These paths need to be aliased in the manager webpack config to ensure that all
// code running inside the manager uses the *same* version of react[-dom] that we use.
module.exports = {
'@storybook/addons': dirname(resolve('@storybook/addons/package.json')),
'@storybook/channels': dirname(resolve('@storybook/channels/package.json')),
'@storybook/components': dirname(resolve('@storybook/components/package.json')),
'@storybook/core-events': dirname(resolve('@storybook/core-events/package.json')),
Expand Down
1 change: 0 additions & 1 deletion code/ui/manager/src/globals/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,5 @@ export default {
'useStorybookApi',
'useStorybookState',
],
'@storybook/addons': ['addons', 'types', 'mockChannel'],
'@storybook/client-logger': ['deprecate', 'logger', 'once', 'pretty'],
} as const;
6 changes: 0 additions & 6 deletions code/ui/manager/src/globals/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,5 @@ export const values: Required<Record<keyof typeof Keys, any>> = {
'@storybook/theming': STORYBOOKTHEMING,
'@storybook/api': STORYBOOKMANAGERAPI, // deprecated, remove in 8.0
'@storybook/manager-api': STORYBOOKMANAGERAPI,
// backwards compatibility
'@storybook/addons': {
addons: STORYBOOKMANAGERAPI.addons,
types: STORYBOOKMANAGERAPI.types,
mockChannel: STORYBOOKMANAGERAPI.mockChannel,
},
'@storybook/client-logger': STORYBOOKCLIENTLOGGER,
};
1 change: 0 additions & 1 deletion code/ui/manager/src/globals/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export enum Keys {
'@storybook/api' = '__STORYBOOKAPI__', // deprecated, remove in 8.0
'@storybook/icons' = '__STORYBOOKICONS__',
'@storybook/manager-api' = '__STORYBOOKAPI__',
'@storybook/addons' = '__STORYBOOKADDONS__',
'@storybook/client-logger' = '__STORYBOOKCLIENTLOGGER__',
}

Expand Down
2 changes: 0 additions & 2 deletions test-storybooks/ember-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@storybook/addon-storysource": "portal:../../code/addons/storysource",
"@storybook/addon-toolbars": "portal:../../code/addons/toolbars",
"@storybook/addon-viewport": "portal:../../code/addons/viewport",
"@storybook/addons": "portal:../../code/deprecated/addons",
"@storybook/angular": "portal:../../code/frameworks/angular",
"@storybook/blocks": "portal:../../code/lib/blocks",
"@storybook/builder-manager": "portal:../../code/builders/builder-manager",
Expand Down Expand Up @@ -105,7 +104,6 @@
"@storybook/addon-links": "7.2.0-alpha.0",
"@storybook/addon-storysource": "7.2.0-alpha.0",
"@storybook/addon-viewport": "7.2.0-alpha.0",
"@storybook/addons": "7.2.0-alpha.0",
"@storybook/ember": "7.2.0-alpha.0",
"@storybook/ember-cli-storybook": "^0.2.1",
"@storybook/source-loader": "7.2.0-alpha.0",
Expand Down
1 change: 0 additions & 1 deletion test-storybooks/external-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@storybook/addon-storysource": "portal:../../code/addons/storysource",
"@storybook/addon-toolbars": "portal:../../code/addons/toolbars",
"@storybook/addon-viewport": "portal:../../code/addons/viewport",
"@storybook/addons": "portal:../../code/deprecated/addons",
"@storybook/angular": "portal:../../code/frameworks/angular",
"@storybook/blocks": "portal:../../code/ui/blocks",
"@storybook/builder-manager": "portal:../../code/builders/builder-manager",
Expand Down
1 change: 0 additions & 1 deletion test-storybooks/server-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@storybook/addon-storysource": "portal:../../code/addons/storysource",
"@storybook/addon-toolbars": "portal:../../code/addons/toolbars",
"@storybook/addon-viewport": "portal:../../code/addons/viewport",
"@storybook/addons": "portal:../../code/deprecated/addons",
"@storybook/angular": "portal:../../code/frameworks/angular",
"@storybook/blocks": "portal:../../code/lib/blocks",
"@storybook/builder-manager": "portal:../../code/builders/builder-manager",
Expand Down
1 change: 0 additions & 1 deletion test-storybooks/standalone-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@storybook/addon-storysource": "portal:../../code/addons/storysource",
"@storybook/addon-toolbars": "portal:../../code/addons/toolbars",
"@storybook/addon-viewport": "portal:../../code/addons/viewport",
"@storybook/addons": "portal:../../code/deprecated/addons",
"@storybook/angular": "portal:../../code/frameworks/angular",
"@storybook/blocks": "portal:../../code/lib/blocks",
"@storybook/builder-manager": "portal:../../code/builders/builder-manager",
Expand Down

0 comments on commit f78038b

Please sign in to comment.