@storybook/web-components-vite 0.0.0-pr-25244-sha-bd2cf8e0 → 0.0.0-pr-25254-sha-a6f30dbc

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.
@@ -2622,6 +2622,11 @@ interface Options$1 {
2622
2622
 
2623
2623
  type ExportName = string;
2624
2624
  type MetaId = string;
2625
+ /**
2626
+ * StaticParameters are a subset of the parameters
2627
+ * that have been statically analyzed.
2628
+ */
2629
+ type StaticParameters = Parameters;
2625
2630
  interface StoriesSpecifier {
2626
2631
  /**
2627
2632
  * When auto-titling, what to prefix all generated titles with (default: '')
@@ -2641,12 +2646,14 @@ interface StoriesSpecifier {
2641
2646
  type StoriesEntry = string | StoriesSpecifier;
2642
2647
  interface IndexerOptions {
2643
2648
  makeTitle: (userTitle?: string) => string;
2649
+ staticParameters?: string[];
2644
2650
  }
2645
2651
  interface IndexedStory {
2646
2652
  id: string;
2647
2653
  name: string;
2648
2654
  tags?: Tag[];
2649
2655
  parameters?: Parameters;
2656
+ staticParameters?: StaticParameters;
2650
2657
  }
2651
2658
  interface IndexedCSFFile {
2652
2659
  meta: {
@@ -2710,6 +2717,10 @@ type BaseIndexInput = {
2710
2717
  metaId?: MetaId;
2711
2718
  /** Tags for filtering entries in Storybook and its tools. */
2712
2719
  tags?: Tag[];
2720
+ /**
2721
+ * Experimental statically extracted parameters for the entry.
2722
+ */
2723
+ staticParameters?: Parameters;
2713
2724
  /**
2714
2725
  * The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if unspecified.
2715
2726
  * If specified, the story in the CSF file _must_ have a matching id set at `parameters.__id`, to be correctly matched.
@@ -2845,6 +2856,7 @@ interface CLIOptions {
2845
2856
  debugWebpack?: boolean;
2846
2857
  webpackStatsJson?: string | boolean;
2847
2858
  outputDir?: string;
2859
+ experimentalStaticParameters?: string[];
2848
2860
  }
2849
2861
  interface BuilderOptions {
2850
2862
  configType?: 'DEVELOPMENT' | 'PRODUCTION';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { F as FrameworkOptions, S as StorybookConfig } from './index-9f4e99a1.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './index-bb792f99.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
package/dist/preset.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PresetProperty, S as StorybookConfig } from './index-9f4e99a1.js';
1
+ import { P as PresetProperty, S as StorybookConfig } from './index-bb792f99.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/web-components-vite",
3
- "version": "0.0.0-pr-25244-sha-bd2cf8e0",
3
+ "version": "0.0.0-pr-25254-sha-a6f30dbc",
4
4
  "description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,10 +47,10 @@
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-25244-sha-bd2cf8e0",
51
- "@storybook/core-server": "0.0.0-pr-25244-sha-bd2cf8e0",
52
- "@storybook/node-logger": "0.0.0-pr-25244-sha-bd2cf8e0",
53
- "@storybook/web-components": "0.0.0-pr-25244-sha-bd2cf8e0",
50
+ "@storybook/builder-vite": "0.0.0-pr-25254-sha-a6f30dbc",
51
+ "@storybook/core-server": "0.0.0-pr-25254-sha-a6f30dbc",
52
+ "@storybook/node-logger": "0.0.0-pr-25254-sha-a6f30dbc",
53
+ "@storybook/web-components": "0.0.0-pr-25254-sha-a6f30dbc",
54
54
  "magic-string": "^0.30.0"
55
55
  },
56
56
  "devDependencies": {