Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5bd041

Browse files
committed
Change usage outside of core package
1 parent 57a8edd commit d5bd041

File tree

20 files changed

+20
-20
lines changed

20 files changed

+20
-20
lines changed

code/addons/a11y/src/preview.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @vitest-environment happy-dom
22
import { beforeEach, describe, expect, it, vi } from 'vitest';
33

4-
import type { StoryContext } from '@storybook/csf';
4+
import type { StoryContext } from '@storybook/internal/csf';
55

66
import { run } from './a11yRunner';
77
import { A11Y_TEST_TAG } from './constants';

code/addons/controls/src/manager.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from 'storybook/internal/manager-api';
1616
import { color } from 'storybook/internal/theming';
1717

18-
import type { Args } from '@storybook/csf';
18+
import type { Args } from '@storybook/internal/csf';
1919

2020
import { dequal as deepEqual } from 'dequal';
2121

code/addons/links/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { SELECT_STORY, STORY_CHANGED } from 'storybook/internal/core-events';
22
import { addons, makeDecorator } from 'storybook/internal/preview-api';
33
import type { ComponentTitle, StoryId, StoryKind, StoryName } from 'storybook/internal/types';
44

5-
import { toId } from '@storybook/csf';
65
import { global } from '@storybook/global';
6+
import { toId } from '@storybook/internal/csf';
77

88
import { PARAM_KEY } from './constants';
99

code/addons/test/src/components/TestProviderRender.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { addons, useStorybookState } from 'storybook/internal/manager-api';
2424
import type { API } from 'storybook/internal/manager-api';
2525
import { styled, useTheme } from 'storybook/internal/theming';
2626

27-
import type { Tag } from '@storybook/csf';
2827
import {
2928
AccessibilityIcon,
3029
EditIcon,
@@ -34,6 +33,7 @@ import {
3433
ShieldIcon,
3534
StopAltIcon,
3635
} from '@storybook/icons';
36+
import type { Tag } from '@storybook/internal/csf';
3737

3838
import { isEqual } from 'es-toolkit';
3939
import { debounce } from 'es-toolkit/compat';

code/addons/test/src/vitest-plugin/viewports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-underscore-dangle */
22
import { UnsupportedViewportDimensionError } from 'storybook/internal/preview-errors';
33

4-
import type { Globals, Parameters } from '@storybook/csf';
4+
import type { Globals, Parameters } from '@storybook/internal/csf';
55

66
import { MINIMAL_VIEWPORTS } from '../../../viewport/src/defaults';
77
import type { ViewportMap, ViewportStyles } from '../../../viewport/src/types';

code/e2e-tests/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable local-rules/no-uncategorized-errors */
2-
import { toId } from '@storybook/csf';
2+
import { toId } from '@storybook/internal/csf';
33

44
import type { Expect, Page } from '@playwright/test';
55

code/lib/blocks/src/blocks/ArgTypes.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import type { PlayFunctionContext } from '@storybook/csf';
3+
import type { PlayFunctionContext } from '@storybook/internal/csf';
44
import type { Meta, StoryObj } from '@storybook/react';
55
import { within } from '@storybook/test';
66

code/lib/blocks/src/blocks/ArgTypes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { PropDescriptor } from 'storybook/internal/preview-api';
77
import { filterArgTypes } from 'storybook/internal/preview-api';
88
import type { ModuleExports } from 'storybook/internal/types';
99

10-
import type { Parameters, Renderer, StrictArgTypes } from '@storybook/csf';
10+
import type { Parameters, Renderer, StrictArgTypes } from '@storybook/internal/csf';
1111

1212
import type { SortType } from '../components';
1313
import { ArgsTableError, ArgsTable as PureArgsTable, TabbedArgsTable } from '../components';

code/lib/blocks/src/blocks/Controls.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import type { PlayFunctionContext } from '@storybook/csf';
3+
import type { PlayFunctionContext } from '@storybook/internal/csf';
44
import type { Meta, StoryObj } from '@storybook/react';
55
import { within } from '@storybook/test';
66

code/lib/blocks/src/blocks/Controls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { filterArgTypes } from 'storybook/internal/preview-api';
77
import type { PropDescriptor } from 'storybook/internal/preview-api';
88
import type { ModuleExports } from 'storybook/internal/types';
99

10-
import type { Parameters, Renderer, StrictArgTypes } from '@storybook/csf';
10+
import type { Parameters, Renderer, StrictArgTypes } from '@storybook/internal/csf';
1111

1212
import type { SortType } from '../components';
1313
import { ArgsTableError, ArgsTable as PureArgsTable, TabbedArgsTable } from '../components';

0 commit comments

Comments
 (0)