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

Build: split lib/addons into manager & preview part, move code to manager-api #19952

Merged
merged 21 commits into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d336e12
start moving the addons package into preview-api
ndelangen Nov 24, 2022
9b31d98
fix references to addons inside preview-api internally
ndelangen Nov 24, 2022
0860911
add new export to package
ndelangen Nov 24, 2022
70e28a9
oops, manager should continue to import from addons for now
ndelangen Nov 24, 2022
eb1c495
ensure using lib/addons for manager related code
ndelangen Nov 24, 2022
22f829e
fix lockfile
ndelangen Nov 24, 2022
94fe6d4
move code from lib/addons to manager-api, reference manager-api or pr…
ndelangen Nov 24, 2022
068df71
update lockfile & exports file
ndelangen Nov 24, 2022
0edbbe4
change unique keys, so when a story imports the manager-api it gets i…
ndelangen Nov 24, 2022
90808fb
remove duplicate code
ndelangen Nov 24, 2022
66c273e
cleanup of deps
ndelangen Nov 24, 2022
4158d9b
lockfile update & update exports file
ndelangen Nov 24, 2022
3e96c7b
fix linting in scripts
ndelangen Nov 24, 2022
0cb84fc
cleanup dependencies & add yarn plugin for running tasks
ndelangen Nov 24, 2022
bd6f401
cleanup
ndelangen Nov 24, 2022
70761af
import the correct api... this is in a story, aka preview
ndelangen Nov 24, 2022
35d360a
add a delay to story that seems to render inconsistently
ndelangen Nov 25, 2022
11b4522
Merge branch 'next' into tech/split-addons
ndelangen Nov 25, 2022
d30b1a0
Update code/addons/docs/docs/multiframework.md
ndelangen Nov 25, 2022
f6d9509
remove unclear documentation
ndelangen Nov 25, 2022
a97a762
Merge branch 'tech/split-addons' of github.com:storybookjs/storybook …
ndelangen Nov 25, 2022
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
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions code/.yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ plugins:
spec: '@yarnpkg/plugin-typescript'
- path: ../.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
- path: ../.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'

unsafeHttpWhitelist:
- localhost
Expand Down
1 change: 0 additions & 1 deletion code/addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
},
"dependencies": {
"@storybook/addon-highlight": "7.0.0-alpha.53",
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/channels": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
Expand Down
4 changes: 1 addition & 3 deletions code/addons/a11y/src/manager.test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { addons } from '@storybook/addons';
import * as api from '@storybook/manager-api';
import { PANEL_ID } from './constants';
import './manager';

jest.mock('@storybook/manager-api');
jest.mock('@storybook/addons');
const mockedApi = api as unknown as jest.Mocked<api.API>;
mockedApi.getAddonState = jest.fn();
const mockedAddons = addons as jest.Mocked<typeof addons>;
const mockedAddons = api.addons as jest.Mocked<typeof api.addons>;
const registrationImpl = mockedAddons.register.mock.calls[0][1];

describe('A11yManager', () => {
Expand Down
2 changes: 1 addition & 1 deletion code/addons/a11y/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants';
import { VisionSimulator } from './components/VisionSimulator';
import { A11YPanel } from './components/A11YPanel';
Expand Down
1 change: 0 additions & 1 deletion code/addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/actions/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';
import { STORY_CHANGED } from '@storybook/core-events';
import ActionLogger from './containers/ActionLogger';
import { ADDON_ID, EVENT_ID, PANEL_ID, PARAM_KEY } from './constants';
Expand Down
1 change: 0 additions & 1 deletion code/addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/backgrounds/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Fragment } from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';

import { ADDON_ID } from './constants';
import { BackgroundSelector } from './containers/BackgroundSelector';
Expand Down
1 change: 0 additions & 1 deletion code/addons/controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/blocks": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
Expand Down
3 changes: 1 addition & 2 deletions code/addons/controls/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types, type API, useArgTypes } from '@storybook/manager-api';
import { AddonPanel } from '@storybook/components';
import { type API, useArgTypes } from '@storybook/manager-api';
import { ControlsPanel } from './ControlsPanel';
import { ADDON_ID, PARAM_KEY } from './constants';

Expand Down
2 changes: 2 additions & 0 deletions code/addons/docs/docs/multiframework.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ This dynamic rendering is framework-specific, meaning it needs a custom implemen

Let's take a look at the React framework implementation of `dynamic` snippets as a reference for implementing this feature in other frameworks:

TODO: understanding this better, should probably import from `preview-api` instead of `addons`?

```tsx
import { addons, StoryContext } from '@storybook/addons';
ndelangen marked this conversation as resolved.
Show resolved Hide resolved
ndelangen marked this conversation as resolved.
Show resolved Hide resolved
import { SNIPPET_RENDERED } from '../../shared';
Expand Down
2 changes: 1 addition & 1 deletion code/addons/docs/docs/theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Storybook theming is the **recommended way** to theme your docs. Docs uses the s
Supposing you have a Storybook theme defined for the main UI in `.storybook/manager.js`:

```js
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';
// or a custom theme
import { themes } from '@storybook/theming';

Expand Down
1 change: 0 additions & 1 deletion code/addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"@storybook/addon-outline": "7.0.0-alpha.53",
"@storybook/addon-toolbars": "7.0.0-alpha.53",
"@storybook/addon-viewport": "7.0.0-alpha.53",
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/core-common": "7.0.0-alpha.53",
"@storybook/manager-api": "7.0.0-alpha.53",
"@storybook/node-logger": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/highlight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Highlight DOM nodes by emitting the `HIGHLIGHT` event from within a story or an

```js
import React, { useEffect } from 'react';
import { useChannel } from '@storybook/addons';
import { useChannel } from '@storybook/preview-api';
import { HIGHLIGHT, RESET_HIGHLIGHT } from '@storybook/addon-highlight';
import { MyComponent } form './MyComponent';

Expand Down
1 change: 0 additions & 1 deletion code/addons/highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
"@storybook/preview-api": "7.0.0-alpha.53",
"global": "^4.4.0"
Expand Down
1 change: 0 additions & 1 deletion code/addons/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
},
"dependencies": {
"@devtools-ds/object-inspector": "^1.1.2",
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/core-common": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/interactions/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';

import { ADDON_ID, PANEL_ID } from './constants';
import { Panel } from './Panel';
Expand Down
1 change: 0 additions & 1 deletion code/addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/jest/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './shared';

import Panel from './components/Panel';
Expand Down
2 changes: 1 addition & 1 deletion code/addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
"@storybook/csf": "next",
"@storybook/manager-api": "7.0.0-alpha.53",
"@storybook/preview-api": "7.0.0-alpha.53",
"@storybook/router": "7.0.0-alpha.53",
"@storybook/types": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/links/src/manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from '@storybook/preview-api';
import { addons } from '@storybook/manager-api';

import EVENTS, { ADDON_ID } from './constants';

Expand Down
1 change: 0 additions & 1 deletion code/addons/measure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/measure/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';

import { ADDON_ID, TOOL_ID } from './constants';
import { Tool } from './Tool';
Expand Down
1 change: 0 additions & 1 deletion code/addons/outline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/outline/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';

import { ADDON_ID } from './constants';
import { OutlineSelector } from './OutlineSelector';
Expand Down
1 change: 0 additions & 1 deletion code/addons/storyshots/storyshots-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
},
"dependencies": {
"@jest/transform": "^29.3.1",
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/babel-plugin-require-context-hook": "1.0.1",
"@storybook/client-api": "7.0.0-alpha.53",
"@storybook/core-common": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/storyshots/storyshots-core/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import global from 'global';
import { addons, mockChannel } from '@storybook/addons';
import { addons, mockChannel } from '@storybook/preview-api';
import ensureOptionsDefaults from './ensureOptionsDefaults';
import snapshotsTests from './snapshotsTestsTemplate';
import integrityTest from './integrityTestTemplate';
Expand Down
1 change: 0 additions & 1 deletion code/addons/storysource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/manager-api": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/storysource/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';

import { StoryPanel } from './StoryPanel';
import { ADDON_ID, PANEL_ID } from './index';
Expand Down
1 change: 0 additions & 1 deletion code/addons/toolbars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/manager-api": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/toolbars/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';
import { ToolbarManager } from './components/ToolbarManager';
import { ADDON_ID } from './constants';

Expand Down
1 change: 0 additions & 1 deletion code/addons/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/components": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
Expand Down
2 changes: 1 addition & 1 deletion code/addons/viewport/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';

import { ADDON_ID } from './constants';

Expand Down
1 change: 0 additions & 1 deletion code/frameworks/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"prep": "rimraf dist && ../../../scripts/node_modules/.bin/tsc --project tsconfig.build.json && echo \"Preventing passing flags to tsc\""
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/builder-webpack5": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/core-client": "7.0.0-alpha.53",
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/builder-webpack5": "7.0.0-alpha.53",
"@storybook/core-common": "7.0.0-alpha.53",
"@storybook/node-logger": "7.0.0-alpha.53",
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"dependencies": {
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.0.5",
"@rollup/pluginutils": "^4.2.0",
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/builder-vite": "7.0.0-alpha.53",
"@storybook/channel-postmessage": "7.0.0-alpha.53",
"@storybook/channel-websocket": "7.0.0-alpha.53",
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/svelte-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
},
"dependencies": {
"@storybook/addon-svelte-csf": "^2.0.0",
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/builder-vite": "7.0.0-alpha.53",
"@storybook/channel-postmessage": "7.0.0-alpha.53",
"@storybook/channel-websocket": "7.0.0-alpha.53",
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/vue-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/builder-vite": "7.0.0-alpha.53",
"@storybook/channel-postmessage": "7.0.0-alpha.53",
"@storybook/channel-websocket": "7.0.0-alpha.53",
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/vue3-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/builder-vite": "7.0.0-alpha.53",
"@storybook/channel-postmessage": "7.0.0-alpha.53",
"@storybook/channel-websocket": "7.0.0-alpha.53",
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/web-components-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.53",
"@storybook/builder-vite": "7.0.0-alpha.53",
"@storybook/channel-postmessage": "7.0.0-alpha.53",
"@storybook/channel-websocket": "7.0.0-alpha.53",
Expand Down
10 changes: 2 additions & 8 deletions code/lib/addons/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Storybook Addons
The contents of this package have moved to `@storybook/preview-api` and `@storybook/manager-api`. Please update your import depending on where are are using this API.

Storybook Addons is a node module which is used to load custom addons to storybook.

It stores addon loaders, communication channel and other resources which can be used by storybook implementations where required.

---

For more information visit: [storybook.js.org](https://storybook.js.org)
This package will no longer be released as part of the 8.0 release of storybook.
9 changes: 2 additions & 7 deletions code/lib/addons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/channels": "7.0.0-alpha.53",
"@storybook/client-logger": "7.0.0-alpha.53",
"@storybook/core-events": "7.0.0-alpha.53",
"@storybook/manager-api": "7.0.0-alpha.53",
"@storybook/router": "7.0.0-alpha.53",
"@storybook/theming": "7.0.0-alpha.53",
"@storybook/types": "7.0.0-alpha.53",
"global": "^4.4.0"
"@storybook/preview-api": "7.0.0-alpha.53",
"@storybook/types": "7.0.0-alpha.53"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
Expand Down
38 changes: 23 additions & 15 deletions code/lib/addons/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
/// <reference types="webpack-env" />
import { type Addon_Type, Addon_TypesEnum } from '@storybook/types';

// There can only be 1 default export per entry point and it has to be directly from index
// 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 main.ts
export { type Addon_Type as Addon, Addon_TypesEnum as types };

import { addons } from './main';
export { addons, type AddonStore, mockChannel } from '@storybook/manager-api';

export * from './make-decorator';

export * from './main';
export * from './storybook-channel-mock';
// eslint-disable-next-line import/no-cycle
export * from './hooks';

export default addons;
export {
type EventMap,
HooksContext,
type Listener,
type MakeDecoratorOptions,
type MakeDecoratorResult,
applyHooks,
makeDecorator,
useArgs,
useCallback,
useChannel,
useEffect,
useGlobals,
useMemo,
useParameter,
useReducer,
useRef,
useState,
useStoryContext,
} from '@storybook/preview-api/dist/addons';
2 changes: 0 additions & 2 deletions code/lib/addons/src/typings.d.ts

This file was deleted.

Loading