This commit is contained in:
Norbert de Langen 2022-11-03 14:39:43 +01:00
parent c1b3c2d19f
commit ed3a8ec642
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
124 changed files with 246 additions and 155 deletions

View File

@ -69,6 +69,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"axe-core": "^4.2.0",

View File

@ -1,7 +1,7 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { EVENTS } from './constants';
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
const mockedAddons = addons as jest.Mocked<typeof addons>;
describe('a11yRunner', () => {

View File

@ -1,5 +1,5 @@
import global from 'global';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { EVENTS } from './constants';
import type { A11yParameters } from './params';

View File

@ -1,10 +1,10 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import * as api from '@storybook/api';
import { PANEL_ID } from './constants';
import './manager';
jest.mock('@storybook/api');
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
const mockedApi = api as unknown as jest.Mocked<api.API>;
mockedApi.getAddonState = jest.fn();
const mockedAddons = addons as jest.Mocked<typeof addons>;

View File

@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants';
import { VisionSimulator } from './components/VisionSimulator';
import { A11YPanel } from './components/A11YPanel';

View File

@ -68,6 +68,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"dequal": "^2.0.2",

View File

@ -1,5 +1,5 @@
import global from 'global';
import { useEffect, makeDecorator } from '@storybook/addons';
import { useEffect, makeDecorator } from '@storybook/preview-api';
import { actions } from './runtime/actions';
import { PARAM_KEY } from './constants';

View File

@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { STORY_CHANGED } from '@storybook/core-events';
import ActionLogger from './containers/ActionLogger';
import { ADDON_ID, EVENT_ID, PANEL_ID, PARAM_KEY } from './constants';

View File

@ -1,7 +1,7 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { action, configureActions } from '../..';
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
const createChannel = () => {
const channel = { emit: jest.fn() };

View File

@ -1,7 +1,7 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { actions } from '../..';
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
const createChannel = () => {
const channel = { emit: jest.fn() };

View File

@ -1,5 +1,5 @@
import uuidv4 from 'uuid-browser/v4';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { EVENT_ID } from '../constants';
import type { ActionDisplay, ActionOptions, HandlerFunction } from '../models';
import { config } from './configureActions';

View File

@ -67,6 +67,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0",

View File

@ -1,4 +1,4 @@
import { useMemo, useEffect } from '@storybook/addons';
import { useMemo, useEffect } from '@storybook/preview-api';
import type { AnyFramework, PartialStoryFn as StoryFunction, StoryContext } from '@storybook/types';
import { PARAM_KEY as BACKGROUNDS_PARAM_KEY } from '../constants';

View File

@ -1,4 +1,4 @@
import { useMemo, useEffect } from '@storybook/addons';
import { useMemo, useEffect } from '@storybook/preview-api';
import type { AnyFramework, PartialStoryFn as StoryFunction, StoryContext } from '@storybook/types';
import { clearStyles, addGridStyle } from '../helpers';

View File

@ -1,5 +1,5 @@
import React, { Fragment } from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { ADDON_ID } from './constants';
import { BackgroundSelector } from './containers/BackgroundSelector';

View File

@ -64,6 +64,7 @@
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-common": "7.0.0-alpha.47",
"@storybook/node-logger": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",

View File

@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { AddonPanel } from '@storybook/components';
import { type API, useArgTypes } from '@storybook/api';
import { ControlsPanel } from './ControlsPanel';

View File

@ -64,6 +64,7 @@
"@storybook/mdx2-csf": "next",
"@storybook/node-logger": "7.0.0-alpha.47",
"@storybook/postinstall": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/preview-web": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",

View File

@ -54,6 +54,7 @@
"@storybook/api": "7.0.0-alpha.47",
"@storybook/core-common": "7.0.0-alpha.47",
"@storybook/node-logger": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"ts-dedent": "^2.0.0"
},
"devDependencies": {

View File

@ -52,6 +52,7 @@
"dependencies": {
"@storybook/addons": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"global": "^4.4.0"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
/* eslint-env browser */
import global from 'global';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { STORY_CHANGED } from '@storybook/core-events';
import { HIGHLIGHT, RESET_HIGHLIGHT, HIGHLIGHT_STYLE_ID } from './constants';

View File

@ -66,6 +66,7 @@
"@storybook/core-common": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/instrumenter": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0",

View File

@ -1,4 +1,4 @@
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { ADDON_ID, PANEL_ID } from './constants';
import { Panel } from './Panel';

View File

@ -1,6 +1,6 @@
/// <reference types="node" />
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { FORCE_REMOUNT, STORY_RENDER_PHASE_CHANGED } from '@storybook/core-events';
import type {
AnyFramework,

View File

@ -64,6 +64,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",
"global": "^4.4.0",
"react-sizeme": "^3.0.1",

View File

@ -1,6 +1,6 @@
/// <reference types="webpack-env" />
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { normalize, sep } from 'upath';
import { ADD_TESTS, defineJestParameter } from './shared';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './shared';
import Panel from './components/Panel';

View File

@ -67,6 +67,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/csf": "next",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/router": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0",

View File

@ -1,4 +1,4 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import EVENTS, { ADDON_ID } from './constants';

View File

@ -1,11 +1,11 @@
import React from 'react';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { SELECT_STORY } from '@storybook/core-events';
import LinkTo from './link';
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
jest.mock('global', () => ({
document: {
location: {

View File

@ -1,9 +1,9 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { SELECT_STORY } from '@storybook/core-events';
import { linkTo, hrefTo } from './utils';
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
jest.mock('global', () => ({
// @ts-expect-error (Converted from ts-ignore)
document: global.document,

View File

@ -1,5 +1,5 @@
import global from 'global';
import { addons, makeDecorator } from '@storybook/addons';
import { addons, makeDecorator } from '@storybook/preview-api';
import { STORY_CHANGED, SELECT_STORY } from '@storybook/core-events';
import type { StoryId, StoryName, ComponentTitle } from '@storybook/types';
import { toId } from '@storybook/csf';

View File

@ -66,6 +66,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0"
},

View File

@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { ADDON_ID, TOOL_ID } from './constants';
import { Tool } from './Tool';

View File

@ -1,5 +1,5 @@
/* eslint-env browser */
import { useEffect } from '@storybook/addons';
import { useEffect } from '@storybook/preview-api';
import type { AnyFramework, PartialStoryFn as StoryFunction, StoryContext } from '@storybook/types';
import { drawSelectedElement } from './box-model/visualizer';
import { init, rescale, destroy } from './box-model/canvas';

View File

@ -69,6 +69,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0",
"ts-dedent": "^2.0.0"

View File

@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { ADDON_ID } from './constants';
import { OutlineSelector } from './OutlineSelector';

View File

@ -1,4 +1,4 @@
import { useMemo, useEffect } from '@storybook/addons';
import { useMemo, useEffect } from '@storybook/preview-api';
import type { AnyFramework, PartialStoryFn as StoryFunction, StoryContext } from '@storybook/types';
import { clearStyles, addOutlineStyles } from './helpers';

View File

@ -44,6 +44,7 @@
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/core-common": "7.0.0-alpha.47",
"@storybook/core-webpack": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"@types/glob": "^7.1.3",
"@types/jest": "^26.0.16",

View File

@ -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';

View File

@ -57,6 +57,7 @@
"@storybook/api": "7.0.0-alpha.47",
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/router": "7.0.0-alpha.47",
"@storybook/source-loader": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",

View File

@ -1,5 +1,5 @@
import React from 'react';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { StoryPanel } from './StoryPanel';
import { ADDON_ID, PANEL_ID } from './index';

View File

@ -61,6 +61,7 @@
"@storybook/api": "7.0.0-alpha.47",
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47"
},
"devDependencies": {

View File

@ -1,5 +1,5 @@
import React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { ToolbarManager } from './components/ToolbarManager';
import { ADDON_ID } from './constants';

View File

@ -64,6 +64,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",
"global": "^4.4.0",
"memoizerific": "^1.11.3",

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/preview-api';
import { ADDON_ID } from './constants';

View File

@ -45,6 +45,7 @@
"@storybook/core-webpack": "7.0.0-alpha.47",
"@storybook/docs-tools": "7.0.0-alpha.47",
"@storybook/node-logger": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"@types/node": "^16.0.0",

View File

@ -1,4 +1,4 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { DOCS_RENDERED, STORY_CHANGED } from '@storybook/core-events';
import { AbstractRenderer } from './AbstractRenderer';
import { StoryFnAngularReturnType, Parameters } from '../types';

View File

@ -1,4 +1,4 @@
import { addons, useEffect } from '@storybook/addons';
import { addons, useEffect } from '@storybook/preview-api';
import { PartialStoryFn } from '@storybook/types';
import { SNIPPET_RENDERED, SourceType } from '@storybook/docs-tools';
import { StoryContext, AngularFramework } from '../types';

View File

@ -815,7 +815,7 @@ const newWebpackConfiguration = (
modules: ['node_modules'],
mainFields: ['browser', 'main'],
alias: {
'@storybook/addons': '/Users/joe/storybook/lib/addons',
'@storybook/preview-api': '/Users/joe/storybook/lib/addons',
'@storybook/api': '/Users/joe/storybook/lib/api',
'@storybook/channels': '/Users/joe/storybook/lib/channels',
'@storybook/channel-postmessage': '/Users/joe/storybook/lib/channel-postmessage',

View File

@ -65,6 +65,7 @@
"@storybook/core-common": "7.0.0-alpha.47",
"@storybook/node-logger": "7.0.0-alpha.47",
"@storybook/preset-react-webpack": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/react": "7.0.0-alpha.47",
"@types/node": "^14.14.20 || ^16.0.0",
"find-up": "^5.0.0",

View File

@ -1,7 +1,7 @@
// exports for builder-vite
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';
export { addons } from '@storybook/addons';
export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-web';
export { ClientApi } from '@storybook/preview-api';

View File

@ -1,7 +1,7 @@
// exports for builder-vite
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';
export { addons } from '@storybook/addons';
export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-web';
export { ClientApi } from '@storybook/preview-api';

View File

@ -1,7 +1,7 @@
// exports for builder-vite
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';
export { addons } from '@storybook/addons';
export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-web';
export { ClientApi } from '@storybook/preview-api';

View File

@ -1,7 +1,7 @@
// exports for builder-vite
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';
export { addons } from '@storybook/addons';
export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-web';
export { ClientApi } from '@storybook/preview-api';

View File

@ -1,7 +1,7 @@
// exports for builder-vite
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';
export { addons } from '@storybook/addons';
export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-web';
export { ClientApi } from '@storybook/preview-api';

View File

@ -13,7 +13,7 @@ const INCLUDE_CANDIDATES = [
'@mdx-js/react',
'@storybook/addon-docs > acorn-jsx',
'@storybook/addon-docs',
'@storybook/addons',
'@storybook/preview-api',
'@storybook/channel-postmessage',
'@storybook/channel-websocket',
'@storybook/client-api',

View File

@ -3,7 +3,7 @@ import global from 'global';
import { PreviewWeb } from '@storybook/preview-web';
import { composeConfigs } from '@storybook/store';
import { ClientApi } from '@storybook/preview-api';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
import { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';

View File

@ -132,7 +132,7 @@ export abstract class JsPackageManager {
* `@storybook/react@${storybookVersion}`,
* `@storybook/addon-actions@${actionsVersion}`,
* `@storybook/addon-links@${linksVersion}`,
* `@storybook/addons@${addonsVersion}`,
* `@storybook/preview-api@${addonsVersion}`,
* ]);
*/
public addDependencies(

View File

@ -63,27 +63,27 @@ describe('NPM Proxy', () => {
describe('addDependencies', () => {
describe('npm6', () => {
it('with devDep it should run `npm install -D @storybook/addons`', () => {
it('with devDep it should run `npm install -D @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(npmProxy, 'executeCommand').mockReturnValue('6.0.0');
npmProxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/addons']);
npmProxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenLastCalledWith(
'npm',
['install', '-D', '@storybook/addons'],
['install', '-D', '@storybook/preview-api'],
expect.any(String)
);
});
});
describe('npm7', () => {
it('with devDep it should run `npm install -D @storybook/addons`', () => {
it('with devDep it should run `npm install -D @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(npmProxy, 'executeCommand').mockReturnValue('7.0.0');
npmProxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/addons']);
npmProxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenLastCalledWith(
'npm',
['install', '--legacy-peer-deps', '-D', '@storybook/addons'],
['install', '--legacy-peer-deps', '-D', '@storybook/preview-api'],
expect.any(String)
);
});
@ -92,27 +92,27 @@ describe('NPM Proxy', () => {
describe('removeDependencies', () => {
describe('npm6', () => {
it('with devDep it should run `npm uninstall @storybook/addons`', () => {
it('with devDep it should run `npm uninstall @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(npmProxy, 'executeCommand').mockReturnValue('6.0.0');
npmProxy.removeDependencies({}, ['@storybook/addons']);
npmProxy.removeDependencies({}, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenLastCalledWith(
'npm',
['uninstall', '@storybook/addons'],
['uninstall', '@storybook/preview-api'],
expect.any(String)
);
});
});
describe('npm7', () => {
it('with devDep it should run `npm uninstall @storybook/addons`', () => {
it('with devDep it should run `npm uninstall @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(npmProxy, 'executeCommand').mockReturnValue('7.0.0');
npmProxy.removeDependencies({}, ['@storybook/addons']);
npmProxy.removeDependencies({}, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenLastCalledWith(
'npm',
['uninstall', '--legacy-peer-deps', '@storybook/addons'],
['uninstall', '--legacy-peer-deps', '@storybook/preview-api'],
expect.any(String)
);
});
@ -151,11 +151,11 @@ describe('NPM Proxy', () => {
it('without constraint it returns the latest version', async () => {
const executeCommandSpy = jest.spyOn(npmProxy, 'executeCommand').mockReturnValue('"5.3.19"');
const version = await npmProxy.latestVersion('@storybook/addons');
const version = await npmProxy.latestVersion('@storybook/preview-api');
expect(executeCommandSpy).toHaveBeenCalledWith('npm', [
'info',
'@storybook/addons',
'@storybook/preview-api',
'version',
'--json',
]);
@ -167,11 +167,11 @@ describe('NPM Proxy', () => {
.spyOn(npmProxy, 'executeCommand')
.mockReturnValue('["4.25.3","5.3.19","6.0.0-beta.23"]');
const version = await npmProxy.latestVersion('@storybook/addons', '5.X');
const version = await npmProxy.latestVersion('@storybook/preview-api', '5.X');
expect(executeCommandSpy).toHaveBeenCalledWith('npm', [
'info',
'@storybook/addons',
'@storybook/preview-api',
'versions',
'--json',
]);
@ -181,7 +181,7 @@ describe('NPM Proxy', () => {
it('throws an error if command output is not a valid JSON', async () => {
jest.spyOn(npmProxy, 'executeCommand').mockReturnValue('NOT A JSON');
await expect(npmProxy.latestVersion('@storybook/addons')).rejects.toThrow();
await expect(npmProxy.latestVersion('@storybook/preview-api')).rejects.toThrow();
});
});

View File

@ -47,28 +47,28 @@ describe('NPM Proxy', () => {
});
describe('addDependencies', () => {
it('with devDep it should run `pnpm add -D @storybook/addons`', () => {
it('with devDep it should run `pnpm add -D @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(pnpmProxy, 'executeCommand').mockReturnValue('6.0.0');
pnpmProxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/addons']);
pnpmProxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenLastCalledWith(
'pnpm',
['add', '-D', '@storybook/addons'],
['add', '-D', '@storybook/preview-api'],
expect.any(String)
);
});
});
describe('removeDependencies', () => {
it('with devDep it should run `npm uninstall @storybook/addons`', () => {
it('with devDep it should run `npm uninstall @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(pnpmProxy, 'executeCommand').mockReturnValue('6.0.0');
pnpmProxy.removeDependencies({}, ['@storybook/addons']);
pnpmProxy.removeDependencies({}, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenLastCalledWith(
'pnpm',
['remove', '@storybook/addons'],
['remove', '@storybook/preview-api'],
expect.any(String)
);
});
@ -107,11 +107,11 @@ describe('NPM Proxy', () => {
it('without constraint it returns the latest version', async () => {
const executeCommandSpy = jest.spyOn(pnpmProxy, 'executeCommand').mockReturnValue('"5.3.19"');
const version = await pnpmProxy.latestVersion('@storybook/addons');
const version = await pnpmProxy.latestVersion('@storybook/preview-api');
expect(executeCommandSpy).toHaveBeenCalledWith('pnpm', [
'info',
'@storybook/addons',
'@storybook/preview-api',
'version',
'--json',
]);
@ -123,11 +123,11 @@ describe('NPM Proxy', () => {
.spyOn(pnpmProxy, 'executeCommand')
.mockReturnValue('["4.25.3","5.3.19","6.0.0-beta.23"]');
const version = await pnpmProxy.latestVersion('@storybook/addons', '5.X');
const version = await pnpmProxy.latestVersion('@storybook/preview-api', '5.X');
expect(executeCommandSpy).toHaveBeenCalledWith('pnpm', [
'info',
'@storybook/addons',
'@storybook/preview-api',
'versions',
'--json',
]);
@ -137,7 +137,7 @@ describe('NPM Proxy', () => {
it('throws an error if command output is not a valid JSON', async () => {
jest.spyOn(pnpmProxy, 'executeCommand').mockReturnValue('NOT A JSON');
await expect(pnpmProxy.latestVersion('@storybook/addons')).rejects.toThrow();
await expect(pnpmProxy.latestVersion('@storybook/preview-api')).rejects.toThrow();
});
});

View File

@ -47,28 +47,28 @@ describe('Yarn 1 Proxy', () => {
});
describe('addDependencies', () => {
it('with devDep it should run `yarn install -D --ignore-workspace-root-check @storybook/addons`', () => {
it('with devDep it should run `yarn install -D --ignore-workspace-root-check @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(yarn1Proxy, 'executeCommand').mockReturnValue('');
yarn1Proxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/addons']);
yarn1Proxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenCalledWith(
'yarn',
['add', '-D', '--ignore-workspace-root-check', '@storybook/addons'],
['add', '-D', '--ignore-workspace-root-check', '@storybook/preview-api'],
expect.any(String)
);
});
});
describe('removeDependencies', () => {
it('should run `yarn remove --ignore-workspace-root-check @storybook/addons`', () => {
it('should run `yarn remove --ignore-workspace-root-check @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(yarn1Proxy, 'executeCommand').mockReturnValue('');
yarn1Proxy.removeDependencies({}, ['@storybook/addons']);
yarn1Proxy.removeDependencies({}, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenCalledWith(
'yarn',
['remove', '--ignore-workspace-root-check', '@storybook/addons'],
['remove', '--ignore-workspace-root-check', '@storybook/preview-api'],
expect.any(String)
);
});
@ -107,11 +107,11 @@ describe('Yarn 1 Proxy', () => {
.spyOn(yarn1Proxy, 'executeCommand')
.mockReturnValue('{"type":"inspect","data":"5.3.19"}');
const version = await yarn1Proxy.latestVersion('@storybook/addons');
const version = await yarn1Proxy.latestVersion('@storybook/preview-api');
expect(executeCommandSpy).toHaveBeenCalledWith('yarn', [
'info',
'@storybook/addons',
'@storybook/preview-api',
'version',
'--json',
]);
@ -123,11 +123,11 @@ describe('Yarn 1 Proxy', () => {
.spyOn(yarn1Proxy, 'executeCommand')
.mockReturnValue('{"type":"inspect","data":["4.25.3","5.3.19","6.0.0-beta.23"]}');
const version = await yarn1Proxy.latestVersion('@storybook/addons', '5.X');
const version = await yarn1Proxy.latestVersion('@storybook/preview-api', '5.X');
expect(executeCommandSpy).toHaveBeenCalledWith('yarn', [
'info',
'@storybook/addons',
'@storybook/preview-api',
'versions',
'--json',
]);
@ -137,7 +137,7 @@ describe('Yarn 1 Proxy', () => {
it('throws an error if command output is not a valid JSON', async () => {
jest.spyOn(yarn1Proxy, 'executeCommand').mockReturnValue('NOT A JSON');
await expect(yarn1Proxy.latestVersion('@storybook/addons')).rejects.toThrow();
await expect(yarn1Proxy.latestVersion('@storybook/preview-api')).rejects.toThrow();
});
});

View File

@ -47,28 +47,28 @@ describe('Yarn 2 Proxy', () => {
});
describe('addDependencies', () => {
it('with devDep it should run `yarn install -D @storybook/addons`', () => {
it('with devDep it should run `yarn install -D @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(yarn2Proxy, 'executeCommand').mockReturnValue('');
yarn2Proxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/addons']);
yarn2Proxy.addDependencies({ installAsDevDependencies: true }, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenCalledWith(
'yarn',
['add', '-D', '@storybook/addons'],
['add', '-D', '@storybook/preview-api'],
expect.any(String)
);
});
});
describe('removeDependencies', () => {
it('should run `yarn remove @storybook/addons`', () => {
it('should run `yarn remove @storybook/preview-api`', () => {
const executeCommandSpy = jest.spyOn(yarn2Proxy, 'executeCommand').mockReturnValue('');
yarn2Proxy.removeDependencies({}, ['@storybook/addons']);
yarn2Proxy.removeDependencies({}, ['@storybook/preview-api']);
expect(executeCommandSpy).toHaveBeenCalledWith(
'yarn',
['remove', '@storybook/addons'],
['remove', '@storybook/preview-api'],
expect.any(String)
);
});
@ -105,14 +105,14 @@ describe('Yarn 2 Proxy', () => {
it('without constraint it returns the latest version', async () => {
const executeCommandSpy = jest
.spyOn(yarn2Proxy, 'executeCommand')
.mockReturnValue('{"name":"@storybook/addons","version":"5.3.19"}');
.mockReturnValue('{"name":"@storybook/preview-api","version":"5.3.19"}');
const version = await yarn2Proxy.latestVersion('@storybook/addons');
const version = await yarn2Proxy.latestVersion('@storybook/preview-api');
expect(executeCommandSpy).toHaveBeenCalledWith('yarn', [
'npm',
'info',
'@storybook/addons',
'@storybook/preview-api',
'--fields',
'version',
'--json',
@ -124,15 +124,15 @@ describe('Yarn 2 Proxy', () => {
const executeCommandSpy = jest
.spyOn(yarn2Proxy, 'executeCommand')
.mockReturnValue(
'{"name":"@storybook/addons","versions":["4.25.3","5.3.19","6.0.0-beta.23"]}'
'{"name":"@storybook/preview-api","versions":["4.25.3","5.3.19","6.0.0-beta.23"]}'
);
const version = await yarn2Proxy.latestVersion('@storybook/addons', '5.X');
const version = await yarn2Proxy.latestVersion('@storybook/preview-api', '5.X');
expect(executeCommandSpy).toHaveBeenCalledWith('yarn', [
'npm',
'info',
'@storybook/addons',
'@storybook/preview-api',
'--fields',
'versions',
'--json',
@ -143,7 +143,7 @@ describe('Yarn 2 Proxy', () => {
it('throws an error if command output is not a valid JSON', async () => {
jest.spyOn(yarn2Proxy, 'executeCommand').mockReturnValue('NOT A JSON');
await expect(yarn2Proxy.latestVersion('@storybook/addons')).rejects.toThrow();
await expect(yarn2Proxy.latestVersion('@storybook/preview-api')).rejects.toThrow();
});
});

View File

@ -17,7 +17,7 @@ export default {
'@storybook/addon-storysource': '7.0.0-alpha.47',
'@storybook/addon-toolbars': '7.0.0-alpha.47',
'@storybook/addon-viewport': '7.0.0-alpha.47',
'@storybook/addons': '7.0.0-alpha.47',
'@storybook/preview-api': '7.0.0-alpha.47',
'@storybook/angular': '7.0.0-alpha.47',
'@storybook/api': '7.0.0-alpha.47',
'@storybook/blocks': '7.0.0-alpha.47',

View File

@ -1,6 +1,6 @@
export const packageNames = {
'@kadira/react-storybook-decorator-centered': '@storybook/addon-centered',
'@kadira/storybook-addons': '@storybook/addons',
'@kadira/storybook-addons': '@storybook/preview-api',
'@kadira/storybook-addon-actions': '@storybook/addon-actions',
'@kadira/storybook-addon-comments': '@storybook/addon-comments',
'@kadira/storybook-addon-graphql': '@storybook/addon-graphql',

View File

@ -46,6 +46,7 @@
"@storybook/channels": "7.0.0-alpha.47",
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"core-js": "^3.8.2",
"global": "^4.4.0"
},

View File

@ -1,7 +1,7 @@
/// <reference types="@types/jest" />;
/* eslint-disable no-underscore-dangle */
import { addons, mockChannel } from '@storybook/addons';
import { addons, mockChannel } from '@storybook/preview-api';
import { logger } from '@storybook/client-logger';
import {
FORCE_REMOUNT,

View File

@ -1,6 +1,6 @@
/* eslint-disable no-underscore-dangle */
import type { Channel } from '@storybook/channels';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import type { StoryId } from '@storybook/types';
import { once, logger } from '@storybook/client-logger';
import {

View File

@ -9,7 +9,7 @@ const VUE = {
};
const NONE = {
'@storybook/addons': '5.2.5',
'@storybook/preview-api': '5.2.5',
lodash: '^4.17.15',
};

View File

@ -45,6 +45,7 @@
"@storybook/addons": "7.0.0-alpha.47",
"@storybook/client-api": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/preview-web": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47"
},

View File

@ -19,6 +19,7 @@ export const {
useRef,
useState,
useStoryContext,
applyHooks,
HooksContext,
} = ADDONS;
@ -27,6 +28,12 @@ export const {
*/
export const { makeDecorator } = ADDONS;
/**
* ADDON API
* @deprecated
*/
export const { addons } = ADDONS;
/**
* STORIES API
*/

View File

@ -209,6 +209,7 @@
"@storybook/preset-vue-webpack": "workspace:*",
"@storybook/preset-vue3-webpack": "workspace:*",
"@storybook/preset-web-components-webpack": "workspace:*",
"@storybook/preview-api": "workspace:*",
"@storybook/preview-web": "workspace:*",
"@storybook/react": "workspace:*",
"@storybook/react-vite": "workspace:*",

View File

@ -54,6 +54,7 @@
"@storybook/addons": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/docs-tools": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/preview-web": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",

View File

@ -1,9 +1,9 @@
import { SNIPPET_RENDERED } from '@storybook/docs-tools';
import { addons, useEffect } from '@storybook/addons';
import { addons, useEffect } from '@storybook/preview-api';
import { sourceDecorator } from './sourceDecorator';
import type { StoryContext } from '../types';
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
const mockedAddons = addons as jest.Mocked<typeof addons>;
const mockedUseEffect = useEffect as jest.Mocked<typeof useEffect>;

View File

@ -1,7 +1,7 @@
/* eslint-disable no-underscore-dangle */
/* global window */
import { SNIPPET_RENDERED, SourceType } from '@storybook/docs-tools';
import { addons, useEffect } from '@storybook/addons';
import { addons, useEffect } from '@storybook/preview-api';
import type { PartialStoryFn } from '@storybook/types';
import { dedent } from 'ts-dedent';

View File

@ -53,6 +53,7 @@
"dependencies": {
"@storybook/addons": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0",

View File

@ -56,6 +56,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/docs-tools": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"@types/estree": "^0.0.51",

View File

@ -1,7 +1,7 @@
/// <reference types="@types/jest" />;
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import React from 'react';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { render, screen } from '@testing-library/react';
import { composeStories, composeStory } from '..';

View File

@ -2,11 +2,11 @@
import type { FC, PropsWithChildren } from 'react';
import React, { createElement, Profiler } from 'react';
import PropTypes from 'prop-types';
import { addons, useEffect } from '@storybook/addons';
import { addons, useEffect } from '@storybook/preview-api';
import { SNIPPET_RENDERED } from '@storybook/docs-tools';
import { renderJsx, jsxDecorator } from './jsxDecorator';
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
const mockedAddons = addons as jest.Mocked<typeof addons>;
const mockedUseEffect = useEffect as jest.Mocked<typeof useEffect>;

View File

@ -4,7 +4,7 @@ import React, { createElement } from 'react';
import type { Options } from 'react-element-to-jsx-string';
import reactElementToJSXString from 'react-element-to-jsx-string';
import { addons, useEffect } from '@storybook/addons';
import { addons, useEffect } from '@storybook/preview-api';
import type { StoryContext, ArgsStoryFn, PartialStoryFn } from '@storybook/types';
import { SourceType, SNIPPET_RENDERED, getDocgenSection } from '@storybook/docs-tools';
import { logger } from '@storybook/client-logger';

View File

@ -53,6 +53,7 @@
"dependencies": {
"@storybook/addons": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/preview-web": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",

View File

@ -59,6 +59,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/docs-tools": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0",

View File

@ -1,5 +1,5 @@
/* eslint-disable no-underscore-dangle */
import { addons, useEffect } from '@storybook/addons';
import { addons, useEffect } from '@storybook/preview-api';
import { deprecate } from '@storybook/client-logger';
import type { ArgTypes, Args, StoryContext, AnyFramework } from '@storybook/types';

View File

@ -55,6 +55,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/docs-tools": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0",

View File

@ -1,7 +1,7 @@
/* eslint-disable no-underscore-dangle */
/* eslint no-underscore-dangle: ["error", { "allow": ["_vnode"] }] */
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import { logger } from '@storybook/client-logger';
import { SourceType, SNIPPET_RENDERED } from '@storybook/docs-tools';
import type { ComponentOptions } from 'vue';

View File

@ -54,6 +54,7 @@
"@storybook/addons": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/docs-tools": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",
"global": "^4.4.0",

View File

@ -58,6 +58,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/core-client": "7.0.0-alpha.47",
"@storybook/docs-tools": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/preview-web": "7.0.0-alpha.47",
"@storybook/store": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",

View File

@ -1,12 +1,12 @@
/* eslint-disable import/extensions */
import { html } from 'lit-html';
import { styleMap } from 'lit-html/directives/style-map.js';
import { addons, useEffect } from '@storybook/addons';
import { addons, useEffect } from '@storybook/preview-api';
import { SNIPPET_RENDERED } from '@storybook/docs-tools';
import type { StoryContext } from '../types';
import { sourceDecorator } from './sourceDecorator';
jest.mock('@storybook/addons');
jest.mock('@storybook/preview-api');
const mockedAddons = addons as jest.Mocked<typeof addons>;
const mockedUseEffect = useEffect as jest.Mock;

View File

@ -2,7 +2,7 @@
/* global window */
import { render } from 'lit-html';
import type { ArgsStoryFn, PartialStoryFn, StoryContext } from '@storybook/types';
import { addons, useEffect } from '@storybook/addons';
import { addons, useEffect } from '@storybook/preview-api';
import { SNIPPET_RENDERED, SourceType } from '@storybook/docs-tools';
import type { WebComponentsFramework } from '../types';

View File

@ -1,4 +1,4 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import startCase from 'lodash/startCase';
addons.setConfig({

View File

@ -67,6 +67,7 @@
"devDependencies": {
"@storybook/addon-actions": "7.0.0-alpha.47",
"@storybook/addons": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@types/color-convert": "^2.0.0"
},
"peerDependencies": {

View File

@ -61,6 +61,7 @@
"@storybook/client-logger": "7.0.0-alpha.47",
"@storybook/components": "7.0.0-alpha.47",
"@storybook/core-events": "7.0.0-alpha.47",
"@storybook/preview-api": "7.0.0-alpha.47",
"@storybook/router": "7.0.0-alpha.47",
"@storybook/theming": "7.0.0-alpha.47",
"@storybook/types": "7.0.0-alpha.47",

View File

@ -6,7 +6,7 @@ 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/preview-api': dirname(resolve('@storybook/preview-api/package.json')),
'@storybook/api': dirname(resolve('@storybook/api/package.json')),
'@storybook/channels': dirname(resolve('@storybook/channels/package.json')),
'@storybook/components': dirname(resolve('@storybook/components/package.json')),

View File

@ -1,6 +1,6 @@
import React from 'react';
import { styled } from '@storybook/theming';
import { addons } from '@storybook/addons';
import { addons } from '@storybook/preview-api';
import Provider from './provider';
export class FakeProvider extends Provider {

View File

@ -1,4 +1,4 @@
import { types, type Addon } from '@storybook/addons';
import { types, type Addon } from '@storybook/preview-api';
import type { API, State } from '@storybook/api';
import type { PreviewProps } from './utils/types';

View File

@ -1,7 +1,7 @@
import React from 'react';
import { IconButton, Icons } from '@storybook/components';
import { Consumer, type Combo } from '@storybook/api';
import type { Addon } from '@storybook/addons';
import type { Addon } from '@storybook/preview-api';
const menuMapper = ({ api, state }: Combo) => ({
isVisible: state.layout.showPanel,

View File

@ -3,7 +3,7 @@ import React from 'react';
import copy from 'copy-to-clipboard';
import { getStoryHref, IconButton, Icons } from '@storybook/components';
import { Consumer, type Combo } from '@storybook/api';
import type { Addon } from '@storybook/addons';
import type { Addon } from '@storybook/preview-api';
const { PREVIEW_URL, document } = global;

View File

@ -2,7 +2,7 @@ import global from 'global';
import React from 'react';
import { getStoryHref, IconButton, Icons } from '@storybook/components';
import { Consumer, type Combo } from '@storybook/api';
import type { Addon } from '@storybook/addons';
import type { Addon } from '@storybook/preview-api';
const { PREVIEW_URL } = global;

View File

@ -1,7 +1,7 @@
import React from 'react';
import { IconButton, Icons, Separator } from '@storybook/components';
import { Consumer, type Combo } from '@storybook/api';
import type { Addon } from '@storybook/addons';
import type { Addon } from '@storybook/preview-api';
const menuMapper = ({ api, state }: Combo) => ({
isVisible: state.layout.showNav,

View File

@ -2,7 +2,7 @@ import type { ComponentProps } from 'react';
import React, { useState } from 'react';
import { IconButton, Icons } from '@storybook/components';
import { Consumer, type Combo } from '@storybook/api';
import type { Addon } from '@storybook/addons';
import type { Addon } from '@storybook/preview-api';
import { styled } from '@storybook/theming';
import { FORCE_REMOUNT } from '@storybook/core-events';

Some files were not shown because too many files have changed in this diff Show More