@storybook/react-vite 7.2.0-alpha.0 → 7.2.0-canary-23572-1690275421-726e1551.0
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.
|
@@ -18,40 +18,7 @@ type Primitive =
|
|
|
18
18
|
| symbol
|
|
19
19
|
| bigint;
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
Matches a JSON object.
|
|
23
|
-
|
|
24
|
-
This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. Don't use this as a direct return type as the user would have to double-cast it: `jsonObject as unknown as CustomResponse`. Instead, you could extend your CustomResponse type from it to ensure your type only uses JSON-compatible types: `interface CustomResponse extends JsonObject { … }`.
|
|
25
|
-
|
|
26
|
-
@category JSON
|
|
27
|
-
*/
|
|
28
|
-
type JsonObject = {[Key in string]: JsonValue} & {[Key in string]?: JsonValue | undefined};
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
Matches a JSON array.
|
|
32
|
-
|
|
33
|
-
@category JSON
|
|
34
|
-
*/
|
|
35
|
-
type JsonArray = JsonValue[] | readonly JsonValue[];
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
Matches any valid JSON primitive value.
|
|
39
|
-
|
|
40
|
-
@category JSON
|
|
41
|
-
*/
|
|
42
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
Matches any valid JSON value.
|
|
46
|
-
|
|
47
|
-
@see `Jsonify` if you need to transform a type to one that is assignable to `JsonValue`.
|
|
48
|
-
|
|
49
|
-
@category JSON
|
|
50
|
-
*/
|
|
51
|
-
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
52
|
-
|
|
53
21
|
declare global {
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
55
22
|
interface SymbolConstructor {
|
|
56
23
|
readonly observable: symbol;
|
|
57
24
|
}
|
|
@@ -117,8 +84,8 @@ declare namespace PackageJson$1 {
|
|
|
117
84
|
email?: string;
|
|
118
85
|
};
|
|
119
86
|
|
|
120
|
-
export
|
|
121
|
-
[directoryType: string]:
|
|
87
|
+
export interface DirectoryLocations {
|
|
88
|
+
[directoryType: string]: unknown;
|
|
122
89
|
|
|
123
90
|
/**
|
|
124
91
|
Location for executable scripts. Sugar to generate entries in the `bin` property by walking the folder.
|
|
@@ -149,7 +116,7 @@ declare namespace PackageJson$1 {
|
|
|
149
116
|
Location for test files.
|
|
150
117
|
*/
|
|
151
118
|
test?: string;
|
|
152
|
-
}
|
|
119
|
+
}
|
|
153
120
|
|
|
154
121
|
export type Scripts = {
|
|
155
122
|
/**
|
|
@@ -299,11 +266,22 @@ declare namespace PackageJson$1 {
|
|
|
299
266
|
export type Dependency = Partial<Record<string, string>>;
|
|
300
267
|
|
|
301
268
|
/**
|
|
302
|
-
|
|
269
|
+
Conditions which provide a way to resolve a package entry point based on the environment.
|
|
303
270
|
*/
|
|
304
|
-
type
|
|
305
|
-
|
|
306
|
-
|
|
271
|
+
export type ExportCondition = LiteralUnion<
|
|
272
|
+
| 'import'
|
|
273
|
+
| 'require'
|
|
274
|
+
| 'node'
|
|
275
|
+
| 'node-addons'
|
|
276
|
+
| 'deno'
|
|
277
|
+
| 'browser'
|
|
278
|
+
| 'electron'
|
|
279
|
+
| 'react-native'
|
|
280
|
+
| 'default',
|
|
281
|
+
string
|
|
282
|
+
>;
|
|
283
|
+
|
|
284
|
+
type ExportConditions = {[condition in ExportCondition]: Exports};
|
|
307
285
|
|
|
308
286
|
/**
|
|
309
287
|
Entry points of a module, optionally with conditions and subpath exports.
|
|
@@ -312,16 +290,16 @@ declare namespace PackageJson$1 {
|
|
|
312
290
|
| null
|
|
313
291
|
| string
|
|
314
292
|
| Array<string | ExportConditions>
|
|
315
|
-
| ExportConditions
|
|
293
|
+
| ExportConditions
|
|
294
|
+
| {[path: string]: Exports}; // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
|
|
316
295
|
|
|
317
296
|
/**
|
|
318
|
-
Import map entries of a module, optionally with conditions
|
|
297
|
+
Import map entries of a module, optionally with conditions.
|
|
319
298
|
*/
|
|
320
299
|
export type Imports = { // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
|
|
321
|
-
[key:
|
|
300
|
+
[key: string]: string | {[key in ExportCondition]: Exports};
|
|
322
301
|
};
|
|
323
302
|
|
|
324
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
325
303
|
export interface NonStandardEntryPoints {
|
|
326
304
|
/**
|
|
327
305
|
An ECMAScript module ID that is the primary entry point to the program.
|
|
@@ -354,7 +332,7 @@ declare namespace PackageJson$1 {
|
|
|
354
332
|
sideEffects?: boolean | string[];
|
|
355
333
|
}
|
|
356
334
|
|
|
357
|
-
export
|
|
335
|
+
export interface TypeScriptConfiguration {
|
|
358
336
|
/**
|
|
359
337
|
Location of the bundled TypeScript declaration file.
|
|
360
338
|
*/
|
|
@@ -369,12 +347,12 @@ declare namespace PackageJson$1 {
|
|
|
369
347
|
Location of the bundled TypeScript declaration file. Alias of `types`.
|
|
370
348
|
*/
|
|
371
349
|
typings?: string;
|
|
372
|
-
}
|
|
350
|
+
}
|
|
373
351
|
|
|
374
352
|
/**
|
|
375
|
-
An alternative configuration for workspaces.
|
|
353
|
+
An alternative configuration for Yarn workspaces.
|
|
376
354
|
*/
|
|
377
|
-
export
|
|
355
|
+
export interface WorkspaceConfig {
|
|
378
356
|
/**
|
|
379
357
|
An array of workspace pattern strings which contain the workspace packages.
|
|
380
358
|
*/
|
|
@@ -383,11 +361,10 @@ declare namespace PackageJson$1 {
|
|
|
383
361
|
/**
|
|
384
362
|
Designed to solve the problem of packages which break when their `node_modules` are moved to the root workspace directory - a process known as hoisting. For these packages, both within your workspace, and also some that have been installed via `node_modules`, it is important to have a mechanism for preventing the default Yarn workspace behavior. By adding workspace pattern strings here, Yarn will resume non-workspace behavior for any package which matches the defined patterns.
|
|
385
363
|
|
|
386
|
-
[
|
|
387
|
-
[Not supported](https://github.com/npm/rfcs/issues/287) by npm.
|
|
364
|
+
[Read more](https://classic.yarnpkg.com/blog/2018/02/15/nohoist/)
|
|
388
365
|
*/
|
|
389
366
|
nohoist?: WorkspacePattern[];
|
|
390
|
-
}
|
|
367
|
+
}
|
|
391
368
|
|
|
392
369
|
/**
|
|
393
370
|
A workspace pattern points to a directory or group of directories which contain packages that should be included in the workspace installation process.
|
|
@@ -400,7 +377,16 @@ declare namespace PackageJson$1 {
|
|
|
400
377
|
*/
|
|
401
378
|
type WorkspacePattern = string;
|
|
402
379
|
|
|
403
|
-
export
|
|
380
|
+
export interface YarnConfiguration {
|
|
381
|
+
/**
|
|
382
|
+
Used to configure [Yarn workspaces](https://classic.yarnpkg.com/docs/workspaces/).
|
|
383
|
+
|
|
384
|
+
Workspaces allow you to manage multiple packages within the same repository in such a way that you only need to run `yarn install` once to install all of them in a single pass.
|
|
385
|
+
|
|
386
|
+
Please note that the top-level `private` property of `package.json` **must** be set to `true` in order to use workspaces.
|
|
387
|
+
*/
|
|
388
|
+
workspaces?: WorkspacePattern[] | WorkspaceConfig;
|
|
389
|
+
|
|
404
390
|
/**
|
|
405
391
|
If your package only allows one version of a given dependency, and you’d like to enforce the same behavior as `yarn install --flat` on the command-line, set this to `true`.
|
|
406
392
|
|
|
@@ -412,19 +398,18 @@ declare namespace PackageJson$1 {
|
|
|
412
398
|
Selective version resolutions. Allows the definition of custom package versions inside dependencies without manual edits in the `yarn.lock` file.
|
|
413
399
|
*/
|
|
414
400
|
resolutions?: Dependency;
|
|
415
|
-
}
|
|
401
|
+
}
|
|
416
402
|
|
|
417
|
-
export
|
|
403
|
+
export interface JSPMConfiguration {
|
|
418
404
|
/**
|
|
419
405
|
JSPM configuration.
|
|
420
406
|
*/
|
|
421
407
|
jspm?: PackageJson$1;
|
|
422
|
-
}
|
|
408
|
+
}
|
|
423
409
|
|
|
424
410
|
/**
|
|
425
411
|
Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). Containing standard npm properties.
|
|
426
412
|
*/
|
|
427
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
428
413
|
export interface PackageJsonStandard {
|
|
429
414
|
/**
|
|
430
415
|
The name of the package.
|
|
@@ -554,7 +539,7 @@ declare namespace PackageJson$1 {
|
|
|
554
539
|
/**
|
|
555
540
|
Is used to set configuration parameters used in package scripts that persist across upgrades.
|
|
556
541
|
*/
|
|
557
|
-
config?:
|
|
542
|
+
config?: Record<string, unknown>;
|
|
558
543
|
|
|
559
544
|
/**
|
|
560
545
|
The dependencies of the package.
|
|
@@ -595,7 +580,7 @@ declare namespace PackageJson$1 {
|
|
|
595
580
|
Engines that this package runs on.
|
|
596
581
|
*/
|
|
597
582
|
engines?: {
|
|
598
|
-
[EngineName in 'npm' | 'node' | string]?: string;
|
|
583
|
+
[EngineName in 'npm' | 'node' | string]?: string;
|
|
599
584
|
};
|
|
600
585
|
|
|
601
586
|
/**
|
|
@@ -694,41 +679,13 @@ declare namespace PackageJson$1 {
|
|
|
694
679
|
*/
|
|
695
680
|
url: string;
|
|
696
681
|
};
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
Used to configure [npm workspaces](https://docs.npmjs.com/cli/using-npm/workspaces) / [Yarn workspaces](https://classic.yarnpkg.com/docs/workspaces/).
|
|
700
|
-
|
|
701
|
-
Workspaces allow you to manage multiple packages within the same repository in such a way that you only need to run your install command once in order to install all of them in a single pass.
|
|
702
|
-
|
|
703
|
-
Please note that the top-level `private` property of `package.json` **must** be set to `true` in order to use workspaces.
|
|
704
|
-
*/
|
|
705
|
-
workspaces?: WorkspacePattern[] | WorkspaceConfig;
|
|
706
682
|
}
|
|
707
683
|
|
|
708
|
-
|
|
709
|
-
Type for [`package.json` file used by the Node.js runtime](https://nodejs.org/api/packages.html#nodejs-packagejson-field-definitions).
|
|
710
|
-
*/
|
|
711
|
-
export type NodeJsStandard = {
|
|
712
|
-
/**
|
|
713
|
-
Defines which package manager is expected to be used when working on the current project. It can set to any of the [supported package managers](https://nodejs.org/api/corepack.html#supported-package-managers), and will ensure that your teams use the exact same package manager versions without having to install anything else than Node.js.
|
|
714
|
-
|
|
715
|
-
__This field is currently experimental and needs to be opted-in; check the [Corepack](https://nodejs.org/api/corepack.html) page for details about the procedure.__
|
|
716
|
-
|
|
717
|
-
@example
|
|
718
|
-
```json
|
|
719
|
-
{
|
|
720
|
-
"packageManager": "<package manager name>@<version>"
|
|
721
|
-
}
|
|
722
|
-
```
|
|
723
|
-
*/
|
|
724
|
-
packageManager?: string;
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
export type PublishConfig = {
|
|
684
|
+
export interface PublishConfig {
|
|
728
685
|
/**
|
|
729
686
|
Additional, less common properties from the [npm docs on `publishConfig`](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#publishconfig).
|
|
730
687
|
*/
|
|
731
|
-
[additionalProperties: string]:
|
|
688
|
+
[additionalProperties: string]: unknown;
|
|
732
689
|
|
|
733
690
|
/**
|
|
734
691
|
When publishing scoped packages, the access level defaults to restricted. If you want your scoped package to be publicly viewable (and installable) set `--access=public`. The only valid values for access are public and restricted. Unscoped packages always have an access level of public.
|
|
@@ -748,7 +705,7 @@ declare namespace PackageJson$1 {
|
|
|
748
705
|
Default: `'latest'`
|
|
749
706
|
*/
|
|
750
707
|
tag?: string;
|
|
751
|
-
}
|
|
708
|
+
}
|
|
752
709
|
}
|
|
753
710
|
|
|
754
711
|
/**
|
|
@@ -757,8 +714,6 @@ Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-j
|
|
|
757
714
|
@category File
|
|
758
715
|
*/
|
|
759
716
|
type PackageJson$1 =
|
|
760
|
-
JsonObject &
|
|
761
|
-
PackageJson$1.NodeJsStandard &
|
|
762
717
|
PackageJson$1.PackageJsonStandard &
|
|
763
718
|
PackageJson$1.NonStandardEntryPoints &
|
|
764
719
|
PackageJson$1.TypeScriptConfiguration &
|
package/dist/index.d.ts
CHANGED
package/dist/preset.d.ts
CHANGED
package/dist/preset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);function actualNameHandler(documentation,path2,importer){if(import_ast_types.namedTypes.ClassDeclaration.check(path2.node)||import_ast_types.namedTypes.FunctionDeclaration.check(path2.node))documentation.set("actualName",(0,import_utils.getNameOrValue)(path2.get("id")));else if(import_ast_types.namedTypes.ArrowFunctionExpression.check(path2.node)||import_ast_types.namedTypes.FunctionExpression.check(path2.node)||(0,import_utils.isReactForwardRefCall)(path2,importer)){let currentPath=path2;for(;currentPath.parent;){if(import_ast_types.namedTypes.VariableDeclarator.check(currentPath.parent.node)){documentation.set("actualName",(0,import_utils.getNameOrValue)(currentPath.parent.get("id")));return}if(import_ast_types.namedTypes.AssignmentExpression.check(currentPath.parent.node)){let leftPath=currentPath.parent.get("left");if(import_ast_types.namedTypes.Identifier.check(leftPath.node)||import_ast_types.namedTypes.Literal.check(leftPath.node)){documentation.set("actualName",(0,import_utils.getNameOrValue)(leftPath));return}}currentPath=currentPath.parent}documentation.set("actualName","")}}var import_ast_types,import_utils,init_actualNameHandler=__esm({"src/plugins/docgen-handlers/actualNameHandler.ts"(){"use strict";import_ast_types=require("ast-types"),import_utils=require("react-docgen/dist/utils")}});var react_docgen_exports={};__export(react_docgen_exports,{reactDocgen:()=>reactDocgen});function reactDocgen({include=/\.(mjs|tsx?|jsx?)$/,exclude=[/node_modules\/.*/]}={}){let cwd=process.cwd(),filter=(0,import_pluginutils.createFilter)(include,exclude);return{name:"storybook:react-docgen-plugin",enforce:"pre",async transform(src,id){let relPath=import_path.default.relative(cwd,id);if(filter(relPath))try{let docgenResults=(0,import_react_docgen.parse)(src,defaultResolver,handlers,{importer:defaultImporter,filename:id}),s=new import_magic_string.default(src);return docgenResults.forEach(info=>{let{actualName,...docgenInfo}=info;if(actualName){let docNode=JSON.stringify(docgenInfo);s.append(`;${actualName}.__docgenInfo=${docNode}`)}}),{code:s.toString(),map:s.generateMap()}}catch{}}}}var import_path,import_pluginutils,import_react_docgen,import_magic_string,defaultHandlers,defaultResolver,defaultImporter,handlers,init_react_docgen=__esm({"src/plugins/react-docgen.ts"(){"use strict";import_path=__toESM(require("path")),import_pluginutils=require("@rollup/pluginutils"),import_react_docgen=require("react-docgen"),import_magic_string=__toESM(require("magic-string"));init_actualNameHandler();defaultHandlers=Object.values(import_react_docgen.handlers).map(handler=>handler),defaultResolver=import_react_docgen.resolver.findAllExportedComponentDefinitions,defaultImporter=import_react_docgen.importers.makeFsImporter(),handlers=[...defaultHandlers,actualNameHandler]}});var preset_exports={};__export(preset_exports,{core:()=>core,viteFinal:()=>viteFinal});module.exports=__toCommonJS(preset_exports);var import_builder_vite=require("@storybook/builder-vite"),import_path2=require("path"),
|
|
1
|
+
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);function actualNameHandler(documentation,path2,importer){if(import_ast_types.namedTypes.ClassDeclaration.check(path2.node)||import_ast_types.namedTypes.FunctionDeclaration.check(path2.node))documentation.set("actualName",(0,import_utils.getNameOrValue)(path2.get("id")));else if(import_ast_types.namedTypes.ArrowFunctionExpression.check(path2.node)||import_ast_types.namedTypes.FunctionExpression.check(path2.node)||(0,import_utils.isReactForwardRefCall)(path2,importer)){let currentPath=path2;for(;currentPath.parent;){if(import_ast_types.namedTypes.VariableDeclarator.check(currentPath.parent.node)){documentation.set("actualName",(0,import_utils.getNameOrValue)(currentPath.parent.get("id")));return}if(import_ast_types.namedTypes.AssignmentExpression.check(currentPath.parent.node)){let leftPath=currentPath.parent.get("left");if(import_ast_types.namedTypes.Identifier.check(leftPath.node)||import_ast_types.namedTypes.Literal.check(leftPath.node)){documentation.set("actualName",(0,import_utils.getNameOrValue)(leftPath));return}}currentPath=currentPath.parent}documentation.set("actualName","")}}var import_ast_types,import_utils,init_actualNameHandler=__esm({"src/plugins/docgen-handlers/actualNameHandler.ts"(){"use strict";import_ast_types=require("ast-types"),import_utils=require("react-docgen/dist/utils")}});var react_docgen_exports={};__export(react_docgen_exports,{reactDocgen:()=>reactDocgen});function reactDocgen({include=/\.(mjs|tsx?|jsx?)$/,exclude=[/node_modules\/.*/]}={}){let cwd=process.cwd(),filter=(0,import_pluginutils.createFilter)(include,exclude);return{name:"storybook:react-docgen-plugin",enforce:"pre",async transform(src,id){let relPath=import_path.default.relative(cwd,id);if(filter(relPath))try{let docgenResults=(0,import_react_docgen.parse)(src,defaultResolver,handlers,{importer:defaultImporter,filename:id}),s=new import_magic_string.default(src);return docgenResults.forEach(info=>{let{actualName,...docgenInfo}=info;if(actualName){let docNode=JSON.stringify(docgenInfo);s.append(`;${actualName}.__docgenInfo=${docNode}`)}}),{code:s.toString(),map:s.generateMap()}}catch{}}}}var import_path,import_pluginutils,import_react_docgen,import_magic_string,defaultHandlers,defaultResolver,defaultImporter,handlers,init_react_docgen=__esm({"src/plugins/react-docgen.ts"(){"use strict";import_path=__toESM(require("path")),import_pluginutils=require("@rollup/pluginutils"),import_react_docgen=require("react-docgen"),import_magic_string=__toESM(require("magic-string"));init_actualNameHandler();defaultHandlers=Object.values(import_react_docgen.handlers).map(handler=>handler),defaultResolver=import_react_docgen.resolver.findAllExportedComponentDefinitions,defaultImporter=import_react_docgen.importers.makeFsImporter(),handlers=[...defaultHandlers,actualNameHandler]}});var preset_exports={};__export(preset_exports,{core:()=>core,viteFinal:()=>viteFinal});module.exports=__toCommonJS(preset_exports);var import_builder_vite=require("@storybook/builder-vite"),import_path2=require("path"),getAbsolutePath=input=>(0,import_path2.dirname)(require.resolve((0,import_path2.join)(input,"package.json"))),core={builder:getAbsolutePath("@storybook/builder-vite"),renderer:getAbsolutePath("@storybook/react")},viteFinal=async(config,{presets})=>{let{plugins=[]}=config;if(!await(0,import_builder_vite.hasVitePlugins)(plugins,["vite:react-babel","vite:react-swc"])){let{default:react}=await import("@vitejs/plugin-react");plugins.push(react())}let{reactDocgen:reactDocgenOption,reactDocgenTypescriptOptions}=await presets.apply("typescript",{}),typescriptPresent;try{require.resolve("typescript"),typescriptPresent=!0}catch{typescriptPresent=!1}if(reactDocgenOption==="react-docgen-typescript"&&typescriptPresent&&plugins.push(require("@joshwooding/vite-plugin-react-docgen-typescript")({...reactDocgenTypescriptOptions,savePropValueAsString:!0})),typeof reactDocgenOption=="string"){let{reactDocgen:reactDocgen2}=await Promise.resolve().then(()=>(init_react_docgen(),react_docgen_exports));plugins.unshift(reactDocgen2({include:reactDocgenOption==="react-docgen"?/\.(mjs|tsx?|jsx?)$/:/\.(mjs|jsx?)$/}))}return config};0&&(module.exports={core,viteFinal});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-vite",
|
|
3
|
-
"version": "7.2.0-
|
|
3
|
+
"version": "7.2.0-canary-23572-1690275421-726e1551.0",
|
|
4
4
|
"description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@joshwooding/vite-plugin-react-docgen-typescript": "0.2.1",
|
|
51
51
|
"@rollup/pluginutils": "^5.0.2",
|
|
52
|
-
"@storybook/builder-vite": "7.2.0-
|
|
53
|
-
"@storybook/react": "7.2.0-
|
|
52
|
+
"@storybook/builder-vite": "7.2.0-canary-23572-1690275421-726e1551.0",
|
|
53
|
+
"@storybook/react": "7.2.0-canary-23572-1690275421-726e1551.0",
|
|
54
54
|
"@vitejs/plugin-react": "^3.0.1",
|
|
55
55
|
"ast-types": "^0.14.2",
|
|
56
56
|
"magic-string": "^0.30.0",
|