@storybook/types 7.5.0-alpha.2 → 7.5.0-alpha.4

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -7
  2. package/package.json +4 -3
package/dist/index.d.ts CHANGED
@@ -1413,6 +1413,7 @@ interface ThemeVarsColors {
1413
1413
  textInverseColor: string;
1414
1414
  textMutedColor: string;
1415
1415
  barTextColor: string;
1416
+ barHoverColor: string;
1416
1417
  barSelectedColor: string;
1417
1418
  barBg: string;
1418
1419
  buttonBg: string;
@@ -1548,18 +1549,18 @@ type Indexer = BaseIndexer & {
1548
1549
  * @param options {@link IndexerOptions} for indexing the file.
1549
1550
  * @returns A promise that resolves to an array of {@link IndexInput} objects.
1550
1551
  */
1551
- index: (fileName: string, options: IndexerOptions) => Promise<IndexInput[]>;
1552
+ createIndex: (fileName: string, options: IndexerOptions) => Promise<IndexInput[]>;
1552
1553
  /**
1553
- * @soonDeprecated Use {@link index} instead
1554
+ * @deprecated Use {@link index} instead
1554
1555
  */
1555
1556
  indexer?: never;
1556
1557
  };
1557
1558
  type DeprecatedIndexer = BaseIndexer & {
1558
1559
  indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
1559
- index?: never;
1560
+ createIndex?: never;
1560
1561
  };
1561
1562
  /**
1562
- * @soonDeprecated Use {@link Indexer} instead
1563
+ * @deprecated Use {@link Indexer} instead
1563
1564
  */
1564
1565
  type StoryIndexer = Indexer | DeprecatedIndexer;
1565
1566
  interface BaseIndexEntry {
@@ -1944,7 +1945,7 @@ interface StorybookConfig {
1944
1945
  previewAnnotations?: PresetValue<Entry[]>;
1945
1946
  /**
1946
1947
  * Process CSF files for the story index.
1947
- * @soonDeprecated use {@link experimental_indexers} instead
1948
+ * @deprecated use {@link experimental_indexers} instead
1948
1949
  */
1949
1950
  storyIndexers?: PresetValue<StoryIndexer[]>;
1950
1951
  /**
@@ -2168,7 +2169,7 @@ interface API_StatusObject {
2168
2169
  data?: any;
2169
2170
  }
2170
2171
  type API_StatusState = Record<StoryId, Record<string, API_StatusObject>>;
2171
- type API_StatusUpdate = Record<StoryId, API_StatusObject>;
2172
+ type API_StatusUpdate = Record<StoryId, API_StatusObject | null>;
2172
2173
  type API_FilterFunction = (item: API_PreparedIndexEntry & {
2173
2174
  status: Record<string, API_StatusObject | null>;
2174
2175
  }) => boolean;
@@ -2455,7 +2456,7 @@ interface Addon_BaseAnnotations<TArgs, StoryFnReturnType, TRenderer extends Rend
2455
2456
  argTypes?: Addons_ArgTypes<TArgs>;
2456
2457
  /**
2457
2458
  * Custom metadata for a story.
2458
- * @see [Parameters](https://storybook.js.org/docs/basics/writing-stories/#parameters)
2459
+ * @see [Parameters](https://storybook.js.org/docs/react/writing-stories/parameters)
2459
2460
  */
2460
2461
  parameters?: Parameters;
2461
2462
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/types",
3
- "version": "7.5.0-alpha.2",
3
+ "version": "7.5.0-alpha.4",
4
4
  "description": "Core Storybook TS Types",
5
5
  "keywords": [
6
6
  "storybook"
@@ -44,13 +44,14 @@
44
44
  "prep": "../../../scripts/prepare/bundle.ts"
45
45
  },
46
46
  "dependencies": {
47
- "@storybook/channels": "7.5.0-alpha.2",
47
+ "@storybook/channels": "7.5.0-alpha.4",
48
48
  "@types/babel__core": "^7.0.0",
49
49
  "@types/express": "^4.7.0",
50
- "file-system-cache": "2.3.0"
50
+ "file-system-cache": "^2.4.4"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@storybook/csf": "^0.1.0",
54
+ "@types/fs-extra": "^11.0.1",
54
55
  "@types/node": "^16.0.0",
55
56
  "typescript": "~4.9.3"
56
57
  },