@storybook/react-webpack5 7.0.0-alpha.11 → 7.0.0-alpha.16
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/index.mjs +1 -1
- package/dist/preset.d.ts +19 -0
- package/dist/preset.mjs +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export*from"@storybook/react";
|
package/dist/preset.d.ts
CHANGED
|
@@ -173,6 +173,7 @@ interface StoryIndex {
|
|
|
173
173
|
interface StoryIndexer {
|
|
174
174
|
test: RegExp;
|
|
175
175
|
indexer: (fileName: string, options: IndexerOptions) => Promise<StoryIndex>;
|
|
176
|
+
addDocsTemplate?: boolean;
|
|
176
177
|
}
|
|
177
178
|
/**
|
|
178
179
|
* Options for TypeScript usage within Storybook.
|
|
@@ -223,6 +224,20 @@ declare type StorybookRefs = Record<string, {
|
|
|
223
224
|
} | {
|
|
224
225
|
disable: boolean;
|
|
225
226
|
}>;
|
|
227
|
+
declare type DocsOptions = {
|
|
228
|
+
/**
|
|
229
|
+
* Should we generate docs entries at all under any circumstances? (i.e. can they be rendered)
|
|
230
|
+
*/
|
|
231
|
+
enabled?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* What should we call the generated docs entries?
|
|
234
|
+
*/
|
|
235
|
+
defaultName?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Should we generate a docs entry per CSF file?
|
|
238
|
+
*/
|
|
239
|
+
docsPage?: boolean;
|
|
240
|
+
};
|
|
226
241
|
/**
|
|
227
242
|
* The interface for Storybook configuration in `main.ts` files.
|
|
228
243
|
*/
|
|
@@ -326,6 +341,10 @@ interface StorybookConfig {
|
|
|
326
341
|
* Process CSF files for the story index.
|
|
327
342
|
*/
|
|
328
343
|
storyIndexers?: (indexers: StoryIndexer[], options: Options$1) => StoryIndexer[];
|
|
344
|
+
/**
|
|
345
|
+
* Docs related features in index generation
|
|
346
|
+
*/
|
|
347
|
+
docs?: DocsOptions;
|
|
329
348
|
}
|
|
330
349
|
declare type PresetProperty<K, TStorybookConfig = StorybookConfig> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
|
|
331
350
|
declare type PresetPropertyFn<K, TStorybookConfig = StorybookConfig, TOptions = {}> = (config: TStorybookConfig[K extends keyof TStorybookConfig ? K : never], options: Options$1 & TOptions) => TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | Promise<TStorybookConfig[K extends keyof TStorybookConfig ? K : never]>;
|
package/dist/preset.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var n=Object.defineProperty;var t=(e,o)=>n(e,"name",{value:o,configurable:!0}),a=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(o,s)=>(typeof require!="undefined"?require:o)[s]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});import r from"path";var k=[r.dirname(a.resolve(r.join("@storybook/preset-react-webpack","package.json"))),r.dirname(a.resolve(r.join("@storybook/react","package.json")))],l=t(async(e,o)=>{let s=await o.presets.apply("framework");return{...e,builder:{name:r.dirname(a.resolve(r.join("@storybook/builder-webpack5","package.json"))),options:typeof s=="string"?{}:s.options.builder||{}}}},"core"),b=t(async e=>(e.resolve=e.resolve||{},e.resolve.alias={...e.resolve?.alias,"@storybook/react":r.dirname(a.resolve(r.join("@storybook/react","package.json")))},e),"webpack");export{k as addons,l as core,b as webpack};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-webpack5",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.16",
|
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"prepare": "esrun ../../scripts/prepare/bundle.ts"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@storybook/builder-webpack5": "7.0.0-alpha.
|
|
55
|
-
"@storybook/preset-react-webpack": "7.0.0-alpha.
|
|
56
|
-
"@storybook/react": "7.0.0-alpha.
|
|
54
|
+
"@storybook/builder-webpack5": "7.0.0-alpha.16",
|
|
55
|
+
"@storybook/preset-react-webpack": "7.0.0-alpha.16",
|
|
56
|
+
"@storybook/react": "7.0.0-alpha.16",
|
|
57
57
|
"@types/node": "^14.14.20 || ^16.0.0",
|
|
58
58
|
"core-js": "^3.8.2"
|
|
59
59
|
},
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
],
|
|
89
89
|
"platform": "node"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "df30e7db2b251418af106345e5722477f057ec36"
|
|
92
92
|
}
|