@storybook/html-webpack5 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.
- package/dist/preset.d.ts +12 -0
- package/package.json +5 -5
package/dist/preset.d.ts
CHANGED
@@ -2621,6 +2621,11 @@ interface Options$1 {
|
|
2621
2621
|
|
2622
2622
|
type ExportName = string;
|
2623
2623
|
type MetaId = string;
|
2624
|
+
/**
|
2625
|
+
* StaticParameters are a subset of the parameters
|
2626
|
+
* that have been statically analyzed.
|
2627
|
+
*/
|
2628
|
+
type StaticParameters = Parameters;
|
2624
2629
|
interface StoriesSpecifier {
|
2625
2630
|
/**
|
2626
2631
|
* When auto-titling, what to prefix all generated titles with (default: '')
|
@@ -2640,12 +2645,14 @@ interface StoriesSpecifier {
|
|
2640
2645
|
type StoriesEntry = string | StoriesSpecifier;
|
2641
2646
|
interface IndexerOptions {
|
2642
2647
|
makeTitle: (userTitle?: string) => string;
|
2648
|
+
staticParameters?: string[];
|
2643
2649
|
}
|
2644
2650
|
interface IndexedStory {
|
2645
2651
|
id: string;
|
2646
2652
|
name: string;
|
2647
2653
|
tags?: Tag[];
|
2648
2654
|
parameters?: Parameters;
|
2655
|
+
staticParameters?: StaticParameters;
|
2649
2656
|
}
|
2650
2657
|
interface IndexedCSFFile {
|
2651
2658
|
meta: {
|
@@ -2709,6 +2716,10 @@ type BaseIndexInput = {
|
|
2709
2716
|
metaId?: MetaId;
|
2710
2717
|
/** Tags for filtering entries in Storybook and its tools. */
|
2711
2718
|
tags?: Tag[];
|
2719
|
+
/**
|
2720
|
+
* Experimental statically extracted parameters for the entry.
|
2721
|
+
*/
|
2722
|
+
staticParameters?: Parameters;
|
2712
2723
|
/**
|
2713
2724
|
* The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if unspecified.
|
2714
2725
|
* If specified, the story in the CSF file _must_ have a matching id set at `parameters.__id`, to be correctly matched.
|
@@ -2844,6 +2855,7 @@ interface CLIOptions {
|
|
2844
2855
|
debugWebpack?: boolean;
|
2845
2856
|
webpackStatsJson?: string | boolean;
|
2846
2857
|
outputDir?: string;
|
2858
|
+
experimentalStaticParameters?: string[];
|
2847
2859
|
}
|
2848
2860
|
interface BuilderOptions {
|
2849
2861
|
configType?: 'DEVELOPMENT' | 'PRODUCTION';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/html-webpack5",
|
3
|
-
"version": "0.0.0-pr-
|
3
|
+
"version": "0.0.0-pr-25254-sha-a6f30dbc",
|
4
4
|
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,11 +47,11 @@
|
|
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-webpack5": "0.0.0-pr-
|
51
|
-
"@storybook/core-common": "0.0.0-pr-
|
50
|
+
"@storybook/builder-webpack5": "0.0.0-pr-25254-sha-a6f30dbc",
|
51
|
+
"@storybook/core-common": "0.0.0-pr-25254-sha-a6f30dbc",
|
52
52
|
"@storybook/global": "^5.0.0",
|
53
|
-
"@storybook/html": "0.0.0-pr-
|
54
|
-
"@storybook/preset-html-webpack": "0.0.0-pr-
|
53
|
+
"@storybook/html": "0.0.0-pr-25254-sha-a6f30dbc",
|
54
|
+
"@storybook/preset-html-webpack": "0.0.0-pr-25254-sha-a6f30dbc",
|
55
55
|
"@types/node": "^18.0.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|