@storybook/preact-vite 0.0.0-pr-25540-sha-c0037961 → 0.0.0-pr-25664-sha-00f9feb2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -22,7 +22,7 @@ npx storybook@latest init
22
22
  This framework is designed to work with Storybook 7. If you’re not already using v7, upgrade with this command:
23
23
 
24
24
  ```bash
25
- npx storybook@latest upgrade --prerelease
25
+ npx storybook@latest upgrade
26
26
  ```
27
27
 
28
28
  #### Manual migration
@@ -721,7 +721,7 @@ PackageJson$1.JSPMConfiguration;
721
721
  type StoryId = string;
722
722
  type ComponentTitle = string;
723
723
  type StoryName = string;
724
- type Tag = string;
724
+ type Tag$1 = string;
725
725
 
726
726
  interface Options$1 {
727
727
  allowRegExp: boolean;
@@ -799,7 +799,9 @@ type BaseIndexInput = {
799
799
  */
800
800
  metaId?: MetaId;
801
801
  /** Tags for filtering entries in Storybook and its tools. */
802
- tags?: Tag[];
802
+ tags?: Tag$1[];
803
+ /** Tags from the meta for filtering entries in Storybook and its tools. */
804
+ metaTags?: Tag$1[];
803
805
  /**
804
806
  * The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if unspecified.
805
807
  * If specified, the story in the CSF file _must_ have a matching id set at `parameters.__id`, to be correctly matched.
@@ -1037,6 +1039,12 @@ interface TestBuildFlags {
1037
1039
  interface TestBuildConfig {
1038
1040
  test?: TestBuildFlags;
1039
1041
  }
1042
+ type Tag = string;
1043
+ interface TagOptions {
1044
+ excludeFromSidebar: boolean;
1045
+ excludeFromDocsStories: boolean;
1046
+ }
1047
+ type TagsOptions = Record<Tag, Partial<TagOptions>>;
1040
1048
  /**
1041
1049
  * The interface for Storybook configuration used internally in presets
1042
1050
  * The difference is that these values are the raw values, AKA, not wrapped with `PresetValue<>`
@@ -1071,9 +1079,9 @@ interface StorybookConfigRaw {
1071
1079
  */
1072
1080
  disallowImplicitActionsInRenderV8?: boolean;
1073
1081
  /**
1074
- * Enable asynchronous component rendering in NextJS framework
1082
+ * Enable asynchronous component rendering in React renderer
1075
1083
  */
1076
- experimentalNextRSC?: boolean;
1084
+ experimentalRSC?: boolean;
1077
1085
  };
1078
1086
  build?: TestBuildConfig;
1079
1087
  stories: StoriesEntry[];
@@ -1084,7 +1092,6 @@ interface StorybookConfigRaw {
1084
1092
  swc?: any;
1085
1093
  env?: Record<string, string>;
1086
1094
  babelDefault?: any;
1087
- config?: Entry[];
1088
1095
  previewAnnotations?: Entry[];
1089
1096
  experimental_indexers?: Indexer[];
1090
1097
  docs?: DocsOptions;
@@ -1092,6 +1099,7 @@ interface StorybookConfigRaw {
1092
1099
  previewBody?: string;
1093
1100
  previewMainTemplate?: string;
1094
1101
  managerHead?: string;
1102
+ tags?: TagsOptions;
1095
1103
  }
1096
1104
  /**
1097
1105
  * The interface for Storybook configuration in `main.ts` files.
@@ -1149,12 +1157,6 @@ interface StorybookConfig$1 {
1149
1157
  * Modify or return babel config.
1150
1158
  */
1151
1159
  babelDefault?: PresetValue<StorybookConfigRaw['babelDefault']>;
1152
- /**
1153
- * Add additional scripts to run in the preview a la `.storybook/preview.js`
1154
- *
1155
- * @deprecated use `previewAnnotations` or `/preview.js` file instead
1156
- */
1157
- config?: PresetValue<StorybookConfigRaw['config']>;
1158
1160
  /**
1159
1161
  * Add additional scripts to run in the preview a la `.storybook/preview.js`
1160
1162
  */
@@ -1188,6 +1190,10 @@ interface StorybookConfig$1 {
1188
1190
  * which is the existing head content, and return a modified string.
1189
1191
  */
1190
1192
  managerHead?: PresetValue<StorybookConfigRaw['managerHead']>;
1193
+ /**
1194
+ * Configure non-standard tag behaviors
1195
+ */
1196
+ tags?: PresetValue<StorybookConfigRaw['tags']>;
1191
1197
  }
1192
1198
  type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
1193
1199
  type PresetProperty<K, TStorybookConfig = StorybookConfigRaw> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { F as FrameworkOptions, S as StorybookConfig } from './index-acafa58a.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './index-4e455ce6.js';
2
2
  import 'file-system-cache';
3
3
  import 'http';
4
4
  import '@storybook/builder-vite';
package/dist/preset.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PresetProperty, S as StorybookConfig } from './index-acafa58a.js';
1
+ import { P as PresetProperty, S as StorybookConfig } from './index-4e455ce6.js';
2
2
  import 'file-system-cache';
3
3
  import 'http';
4
4
  import '@storybook/builder-vite';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/preact-vite",
3
- "version": "0.0.0-pr-25540-sha-c0037961",
3
+ "version": "0.0.0-pr-25664-sha-00f9feb2",
4
4
  "description": "Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,8 +47,8 @@
47
47
  "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/builder-vite": "0.0.0-pr-25540-sha-c0037961",
51
- "@storybook/preact": "0.0.0-pr-25540-sha-c0037961"
50
+ "@storybook/builder-vite": "0.0.0-pr-25664-sha-00f9feb2",
51
+ "@storybook/preact": "0.0.0-pr-25664-sha-00f9feb2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^18.0.0",