@storybook/core-common 6.4.0-alpha.38 → 6.4.0-alpha.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,7 +196,7 @@ interface StoriesSpecifier {
196
196
  titlePrefix?: string;
197
197
  }
198
198
  export declare type StoriesEntry = string | StoriesSpecifier;
199
- export interface NormalizedStoriesEntry {
199
+ export interface NormalizedStoriesSpecifier {
200
200
  glob: string;
201
201
  specifier?: StoriesSpecifier;
202
202
  }
@@ -226,6 +226,8 @@ export interface StorybookConfig {
226
226
  buildStoriesJson?: boolean;
227
227
  /**
228
228
  * Activate preview of CSF v3.0
229
+ *
230
+ * @deprecated This is always on now from 6.4 regardless of the setting
229
231
  */
230
232
  previewCsfV3?: boolean;
231
233
  /**
@@ -1,5 +1,5 @@
1
- import { StoriesEntry, NormalizedStoriesEntry } from '../types';
2
- export declare const normalizeStoriesEntry: (entry: StoriesEntry, configDir: string) => NormalizedStoriesEntry;
1
+ import { StoriesEntry, NormalizedStoriesSpecifier } from '../types';
2
+ export declare const normalizeStoriesEntry: (entry: StoriesEntry, configDir: string) => NormalizedStoriesSpecifier;
3
3
  interface NormalizeOptions {
4
4
  configDir: string;
5
5
  workingDir: string;
@@ -9,6 +9,6 @@ interface NormalizeOptions {
9
9
  * current working directory. This function rewrites the specifier.directory relative to the current working
10
10
  * directory.
11
11
  */
12
- export declare const normalizeDirectory: (entry: NormalizedStoriesEntry, { configDir, workingDir }: NormalizeOptions) => NormalizedStoriesEntry;
13
- export declare const normalizeStories: (entries: StoriesEntry[], options: NormalizeOptions) => NormalizedStoriesEntry[];
12
+ export declare const normalizeDirectory: (entry: NormalizedStoriesSpecifier, { configDir, workingDir }: NormalizeOptions) => NormalizedStoriesSpecifier;
13
+ export declare const normalizeStories: (entries: StoriesEntry[], options: NormalizeOptions) => NormalizedStoriesSpecifier[];
14
14
  export {};
@@ -1,3 +1,3 @@
1
- import { NormalizedStoriesEntry } from '../types';
2
- export declare function toImportFnPart(entry: NormalizedStoriesEntry): string;
3
- export declare function toImportFn(stories: NormalizedStoriesEntry[]): string;
1
+ import { NormalizedStoriesSpecifier } from '../types';
2
+ export declare function toImportFnPart(entry: NormalizedStoriesSpecifier): string;
3
+ export declare function toImportFn(stories: NormalizedStoriesSpecifier[]): string;
@@ -192,7 +192,7 @@ interface StoriesSpecifier {
192
192
  titlePrefix?: string;
193
193
  }
194
194
  export declare type StoriesEntry = string | StoriesSpecifier;
195
- export interface NormalizedStoriesEntry {
195
+ export interface NormalizedStoriesSpecifier {
196
196
  glob: string;
197
197
  specifier?: StoriesSpecifier;
198
198
  }
@@ -222,6 +222,8 @@ export interface StorybookConfig {
222
222
  buildStoriesJson?: boolean;
223
223
  /**
224
224
  * Activate preview of CSF v3.0
225
+ *
226
+ * @deprecated This is always on now from 6.4 regardless of the setting
225
227
  */
226
228
  previewCsfV3?: boolean;
227
229
  /**
@@ -1,5 +1,5 @@
1
- import type { StoriesEntry, NormalizedStoriesEntry } from '../types';
2
- export declare const normalizeStoriesEntry: (entry: StoriesEntry, configDir: string) => NormalizedStoriesEntry;
1
+ import type { StoriesEntry, NormalizedStoriesSpecifier } from '../types';
2
+ export declare const normalizeStoriesEntry: (entry: StoriesEntry, configDir: string) => NormalizedStoriesSpecifier;
3
3
  interface NormalizeOptions {
4
4
  configDir: string;
5
5
  workingDir: string;
@@ -9,6 +9,6 @@ interface NormalizeOptions {
9
9
  * current working directory. This function rewrites the specifier.directory relative to the current working
10
10
  * directory.
11
11
  */
12
- export declare const normalizeDirectory: (entry: NormalizedStoriesEntry, { configDir, workingDir }: NormalizeOptions) => NormalizedStoriesEntry;
13
- export declare const normalizeStories: (entries: StoriesEntry[], options: NormalizeOptions) => NormalizedStoriesEntry[];
12
+ export declare const normalizeDirectory: (entry: NormalizedStoriesSpecifier, { configDir, workingDir }: NormalizeOptions) => NormalizedStoriesSpecifier;
13
+ export declare const normalizeStories: (entries: StoriesEntry[], options: NormalizeOptions) => NormalizedStoriesSpecifier[];
14
14
  export {};
@@ -1,3 +1,3 @@
1
- import type { NormalizedStoriesEntry } from '../types';
2
- export declare function toImportFnPart(entry: NormalizedStoriesEntry): string;
3
- export declare function toImportFn(stories: NormalizedStoriesEntry[]): string;
1
+ import type { NormalizedStoriesSpecifier } from '../types';
2
+ export declare function toImportFnPart(entry: NormalizedStoriesSpecifier): string;
3
+ export declare function toImportFn(stories: NormalizedStoriesSpecifier[]): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/core-common",
3
- "version": "6.4.0-alpha.38",
3
+ "version": "6.4.0-alpha.39",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"
@@ -61,7 +61,7 @@
61
61
  "@babel/preset-react": "^7.12.10",
62
62
  "@babel/preset-typescript": "^7.12.7",
63
63
  "@babel/register": "^7.12.1",
64
- "@storybook/node-logger": "6.4.0-alpha.38",
64
+ "@storybook/node-logger": "6.4.0-alpha.39",
65
65
  "@storybook/semver": "^7.3.2",
66
66
  "@types/micromatch": "^4.0.1",
67
67
  "@types/node": "^14.0.10",
@@ -107,6 +107,6 @@
107
107
  "publishConfig": {
108
108
  "access": "public"
109
109
  },
110
- "gitHead": "14b9d19e7e9e3de84729ce0c7989efa372c6987c",
110
+ "gitHead": "b1d5f20b2fb6c52f06a85cba6e644629d9bd2e15",
111
111
  "sbmodern": "dist/modern/index.js"
112
112
  }