@storybook/react-webpack5 7.0.0-alpha.8 → 7.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -12,7 +12,7 @@ So you can develop UI components in isolation without worrying about app specifi
12
12
 
13
13
  ```sh
14
14
  cd my-react-app
15
- npx sb init
15
+ npx storybook init
16
16
  ```
17
17
 
18
18
  For more information visit: [storybook.js.org](https://storybook.js.org)
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export * from '@storybook/react';
2
- export { F as FrameworkOptions, S as StorybookConfig } from './types-e3f39788.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './types-6a41b796.js';
3
2
  import '@storybook/preset-react-webpack';
4
3
  import '@storybook/builder-webpack5';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=(r,o,x,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of c(o))!d.call(r,p)&&p!==x&&a(r,p,{get:()=>o[p],enumerable:!(m=b(o,p))||m.enumerable});return r},t=(r,o,x)=>(f(r,o,"default"),x&&f(x,o,"default"));var g=r=>f(a({},"__esModule",{value:!0}),r);var e={};module.exports=g(e);t(e,require("@storybook/react"),module.exports);
1
+ "use strict";var m=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var b=(r,o,p,f)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of x(o))!a.call(r,e)&&e!==p&&m(r,e,{get:()=>o[e],enumerable:!(f=t(o,e))||f.enumerable});return r};var c=r=>b(m({},"__esModule",{value:!0}),r);var d={};module.exports=c(d);
package/dist/index.mjs CHANGED
@@ -1 +0,0 @@
1
- export*from"@storybook/react";
package/dist/preset.d.ts CHANGED
@@ -1,10 +1,769 @@
1
+ import { FileSystemCache } from 'file-system-cache';
1
2
  import { TransformOptions } from '@babel/core';
2
3
  import { Server } from 'http';
3
- import { S as StorybookConfig$1 } from './types-e3f39788.js';
4
+ import { S as StorybookConfig$1 } from './types-6a41b796.js';
4
5
  import '@storybook/preset-react-webpack';
5
6
  import '@storybook/builder-webpack5';
6
7
 
7
- interface Options {
8
+ /**
9
+ Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
10
+
11
+ @category Type
12
+ */
13
+ type Primitive =
14
+ | null
15
+ | undefined
16
+ | string
17
+ | number
18
+ | boolean
19
+ | symbol
20
+ | bigint;
21
+
22
+ declare global {
23
+ interface SymbolConstructor {
24
+ readonly observable: symbol;
25
+ }
26
+ }
27
+
28
+ /**
29
+ Allows creating a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union.
30
+
31
+ Currently, when a union type of a primitive type is combined with literal types, TypeScript loses all information about the combined literals. Thus, when such type is used in an IDE with autocompletion, no suggestions are made for the declared literals.
32
+
33
+ This type is a workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). It will be removed as soon as it's not needed anymore.
34
+
35
+ @example
36
+ ```
37
+ import type {LiteralUnion} from 'type-fest';
38
+
39
+ // Before
40
+
41
+ type Pet = 'dog' | 'cat' | string;
42
+
43
+ const pet: Pet = '';
44
+ // Start typing in your TypeScript-enabled IDE.
45
+ // You **will not** get auto-completion for `dog` and `cat` literals.
46
+
47
+ // After
48
+
49
+ type Pet2 = LiteralUnion<'dog' | 'cat', string>;
50
+
51
+ const pet: Pet2 = '';
52
+ // You **will** get auto-completion for `dog` and `cat` literals.
53
+ ```
54
+
55
+ @category Type
56
+ */
57
+ type LiteralUnion<
58
+ LiteralType,
59
+ BaseType extends Primitive,
60
+ > = LiteralType | (BaseType & Record<never, never>);
61
+
62
+ declare namespace PackageJson$1 {
63
+ /**
64
+ A person who has been involved in creating or maintaining the package.
65
+ */
66
+ export type Person =
67
+ | string
68
+ | {
69
+ name: string;
70
+ url?: string;
71
+ email?: string;
72
+ };
73
+
74
+ export type BugsLocation =
75
+ | string
76
+ | {
77
+ /**
78
+ The URL to the package's issue tracker.
79
+ */
80
+ url?: string;
81
+
82
+ /**
83
+ The email address to which issues should be reported.
84
+ */
85
+ email?: string;
86
+ };
87
+
88
+ export interface DirectoryLocations {
89
+ [directoryType: string]: unknown;
90
+
91
+ /**
92
+ Location for executable scripts. Sugar to generate entries in the `bin` property by walking the folder.
93
+ */
94
+ bin?: string;
95
+
96
+ /**
97
+ Location for Markdown files.
98
+ */
99
+ doc?: string;
100
+
101
+ /**
102
+ Location for example scripts.
103
+ */
104
+ example?: string;
105
+
106
+ /**
107
+ Location for the bulk of the library.
108
+ */
109
+ lib?: string;
110
+
111
+ /**
112
+ Location for man pages. Sugar to generate a `man` array by walking the folder.
113
+ */
114
+ man?: string;
115
+
116
+ /**
117
+ Location for test files.
118
+ */
119
+ test?: string;
120
+ }
121
+
122
+ export type Scripts = {
123
+ /**
124
+ Run **before** the package is published (Also run on local `npm install` without any arguments).
125
+ */
126
+ prepublish?: string;
127
+
128
+ /**
129
+ Run both **before** the package is packed and published, and on local `npm install` without any arguments. This is run **after** `prepublish`, but **before** `prepublishOnly`.
130
+ */
131
+ prepare?: string;
132
+
133
+ /**
134
+ Run **before** the package is prepared and packed, **only** on `npm publish`.
135
+ */
136
+ prepublishOnly?: string;
137
+
138
+ /**
139
+ Run **before** a tarball is packed (on `npm pack`, `npm publish`, and when installing git dependencies).
140
+ */
141
+ prepack?: string;
142
+
143
+ /**
144
+ Run **after** the tarball has been generated and moved to its final destination.
145
+ */
146
+ postpack?: string;
147
+
148
+ /**
149
+ Run **after** the package is published.
150
+ */
151
+ publish?: string;
152
+
153
+ /**
154
+ Run **after** the package is published.
155
+ */
156
+ postpublish?: string;
157
+
158
+ /**
159
+ Run **before** the package is installed.
160
+ */
161
+ preinstall?: string;
162
+
163
+ /**
164
+ Run **after** the package is installed.
165
+ */
166
+ install?: string;
167
+
168
+ /**
169
+ Run **after** the package is installed and after `install`.
170
+ */
171
+ postinstall?: string;
172
+
173
+ /**
174
+ Run **before** the package is uninstalled and before `uninstall`.
175
+ */
176
+ preuninstall?: string;
177
+
178
+ /**
179
+ Run **before** the package is uninstalled.
180
+ */
181
+ uninstall?: string;
182
+
183
+ /**
184
+ Run **after** the package is uninstalled.
185
+ */
186
+ postuninstall?: string;
187
+
188
+ /**
189
+ Run **before** bump the package version and before `version`.
190
+ */
191
+ preversion?: string;
192
+
193
+ /**
194
+ Run **before** bump the package version.
195
+ */
196
+ version?: string;
197
+
198
+ /**
199
+ Run **after** bump the package version.
200
+ */
201
+ postversion?: string;
202
+
203
+ /**
204
+ Run with the `npm test` command, before `test`.
205
+ */
206
+ pretest?: string;
207
+
208
+ /**
209
+ Run with the `npm test` command.
210
+ */
211
+ test?: string;
212
+
213
+ /**
214
+ Run with the `npm test` command, after `test`.
215
+ */
216
+ posttest?: string;
217
+
218
+ /**
219
+ Run with the `npm stop` command, before `stop`.
220
+ */
221
+ prestop?: string;
222
+
223
+ /**
224
+ Run with the `npm stop` command.
225
+ */
226
+ stop?: string;
227
+
228
+ /**
229
+ Run with the `npm stop` command, after `stop`.
230
+ */
231
+ poststop?: string;
232
+
233
+ /**
234
+ Run with the `npm start` command, before `start`.
235
+ */
236
+ prestart?: string;
237
+
238
+ /**
239
+ Run with the `npm start` command.
240
+ */
241
+ start?: string;
242
+
243
+ /**
244
+ Run with the `npm start` command, after `start`.
245
+ */
246
+ poststart?: string;
247
+
248
+ /**
249
+ Run with the `npm restart` command, before `restart`. Note: `npm restart` will run the `stop` and `start` scripts if no `restart` script is provided.
250
+ */
251
+ prerestart?: string;
252
+
253
+ /**
254
+ Run with the `npm restart` command. Note: `npm restart` will run the `stop` and `start` scripts if no `restart` script is provided.
255
+ */
256
+ restart?: string;
257
+
258
+ /**
259
+ Run with the `npm restart` command, after `restart`. Note: `npm restart` will run the `stop` and `start` scripts if no `restart` script is provided.
260
+ */
261
+ postrestart?: string;
262
+ } & Partial<Record<string, string>>;
263
+
264
+ /**
265
+ Dependencies of the package. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or Git URL.
266
+ */
267
+ export type Dependency = Partial<Record<string, string>>;
268
+
269
+ /**
270
+ Conditions which provide a way to resolve a package entry point based on the environment.
271
+ */
272
+ export type ExportCondition = LiteralUnion<
273
+ | 'import'
274
+ | 'require'
275
+ | 'node'
276
+ | 'node-addons'
277
+ | 'deno'
278
+ | 'browser'
279
+ | 'electron'
280
+ | 'react-native'
281
+ | 'default',
282
+ string
283
+ >;
284
+
285
+ type ExportConditions = {[condition in ExportCondition]: Exports};
286
+
287
+ /**
288
+ Entry points of a module, optionally with conditions and subpath exports.
289
+ */
290
+ export type Exports =
291
+ | null
292
+ | string
293
+ | Array<string | ExportConditions>
294
+ | ExportConditions
295
+ | {[path: string]: Exports}; // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
296
+
297
+ /**
298
+ Import map entries of a module, optionally with conditions.
299
+ */
300
+ export type Imports = { // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
301
+ [key: string]: string | {[key in ExportCondition]: Exports};
302
+ };
303
+
304
+ export interface NonStandardEntryPoints {
305
+ /**
306
+ An ECMAScript module ID that is the primary entry point to the program.
307
+ */
308
+ module?: string;
309
+
310
+ /**
311
+ A module ID with untranspiled code that is the primary entry point to the program.
312
+ */
313
+ esnext?:
314
+ | string
315
+ | {
316
+ [moduleName: string]: string | undefined;
317
+ main?: string;
318
+ browser?: string;
319
+ };
320
+
321
+ /**
322
+ A hint to JavaScript bundlers or component tools when packaging modules for client side use.
323
+ */
324
+ browser?:
325
+ | string
326
+ | Partial<Record<string, string | false>>;
327
+
328
+ /**
329
+ Denote which files in your project are "pure" and therefore safe for Webpack to prune if unused.
330
+
331
+ [Read more.](https://webpack.js.org/guides/tree-shaking/)
332
+ */
333
+ sideEffects?: boolean | string[];
334
+ }
335
+
336
+ export interface TypeScriptConfiguration {
337
+ /**
338
+ Location of the bundled TypeScript declaration file.
339
+ */
340
+ types?: string;
341
+
342
+ /**
343
+ Version selection map of TypeScript.
344
+ */
345
+ typesVersions?: Partial<Record<string, Partial<Record<string, string[]>>>>;
346
+
347
+ /**
348
+ Location of the bundled TypeScript declaration file. Alias of `types`.
349
+ */
350
+ typings?: string;
351
+ }
352
+
353
+ /**
354
+ An alternative configuration for Yarn workspaces.
355
+ */
356
+ export interface WorkspaceConfig {
357
+ /**
358
+ An array of workspace pattern strings which contain the workspace packages.
359
+ */
360
+ packages?: WorkspacePattern[];
361
+
362
+ /**
363
+ 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.
364
+
365
+ [Read more](https://classic.yarnpkg.com/blog/2018/02/15/nohoist/)
366
+ */
367
+ nohoist?: WorkspacePattern[];
368
+ }
369
+
370
+ /**
371
+ A workspace pattern points to a directory or group of directories which contain packages that should be included in the workspace installation process.
372
+
373
+ The patterns are handled with [minimatch](https://github.com/isaacs/minimatch).
374
+
375
+ @example
376
+ `docs` → Include the docs directory and install its dependencies.
377
+ `packages/*` → Include all nested directories within the packages directory, like `packages/cli` and `packages/core`.
378
+ */
379
+ type WorkspacePattern = string;
380
+
381
+ export interface YarnConfiguration {
382
+ /**
383
+ Used to configure [Yarn workspaces](https://classic.yarnpkg.com/docs/workspaces/).
384
+
385
+ 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.
386
+
387
+ Please note that the top-level `private` property of `package.json` **must** be set to `true` in order to use workspaces.
388
+ */
389
+ workspaces?: WorkspacePattern[] | WorkspaceConfig;
390
+
391
+ /**
392
+ 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`.
393
+
394
+ Note that if your `package.json` contains `"flat": true` and other packages depend on yours (e.g. you are building a library rather than an app), those other packages will also need `"flat": true` in their `package.json` or be installed with `yarn install --flat` on the command-line.
395
+ */
396
+ flat?: boolean;
397
+
398
+ /**
399
+ Selective version resolutions. Allows the definition of custom package versions inside dependencies without manual edits in the `yarn.lock` file.
400
+ */
401
+ resolutions?: Dependency;
402
+ }
403
+
404
+ export interface JSPMConfiguration {
405
+ /**
406
+ JSPM configuration.
407
+ */
408
+ jspm?: PackageJson$1;
409
+ }
410
+
411
+ /**
412
+ Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). Containing standard npm properties.
413
+ */
414
+ export interface PackageJsonStandard {
415
+ /**
416
+ The name of the package.
417
+ */
418
+ name?: string;
419
+
420
+ /**
421
+ Package version, parseable by [`node-semver`](https://github.com/npm/node-semver).
422
+ */
423
+ version?: string;
424
+
425
+ /**
426
+ Package description, listed in `npm search`.
427
+ */
428
+ description?: string;
429
+
430
+ /**
431
+ Keywords associated with package, listed in `npm search`.
432
+ */
433
+ keywords?: string[];
434
+
435
+ /**
436
+ The URL to the package's homepage.
437
+ */
438
+ homepage?: LiteralUnion<'.', string>;
439
+
440
+ /**
441
+ The URL to the package's issue tracker and/or the email address to which issues should be reported.
442
+ */
443
+ bugs?: BugsLocation;
444
+
445
+ /**
446
+ The license for the package.
447
+ */
448
+ license?: string;
449
+
450
+ /**
451
+ The licenses for the package.
452
+ */
453
+ licenses?: Array<{
454
+ type?: string;
455
+ url?: string;
456
+ }>;
457
+
458
+ author?: Person;
459
+
460
+ /**
461
+ A list of people who contributed to the package.
462
+ */
463
+ contributors?: Person[];
464
+
465
+ /**
466
+ A list of people who maintain the package.
467
+ */
468
+ maintainers?: Person[];
469
+
470
+ /**
471
+ The files included in the package.
472
+ */
473
+ files?: string[];
474
+
475
+ /**
476
+ Resolution algorithm for importing ".js" files from the package's scope.
477
+
478
+ [Read more.](https://nodejs.org/api/esm.html#esm_package_json_type_field)
479
+ */
480
+ type?: 'module' | 'commonjs';
481
+
482
+ /**
483
+ The module ID that is the primary entry point to the program.
484
+ */
485
+ main?: string;
486
+
487
+ /**
488
+ Subpath exports to define entry points of the package.
489
+
490
+ [Read more.](https://nodejs.org/api/packages.html#subpath-exports)
491
+ */
492
+ exports?: Exports;
493
+
494
+ /**
495
+ Subpath imports to define internal package import maps that only apply to import specifiers from within the package itself.
496
+
497
+ [Read more.](https://nodejs.org/api/packages.html#subpath-imports)
498
+ */
499
+ imports?: Imports;
500
+
501
+ /**
502
+ The executable files that should be installed into the `PATH`.
503
+ */
504
+ bin?:
505
+ | string
506
+ | Partial<Record<string, string>>;
507
+
508
+ /**
509
+ Filenames to put in place for the `man` program to find.
510
+ */
511
+ man?: string | string[];
512
+
513
+ /**
514
+ Indicates the structure of the package.
515
+ */
516
+ directories?: DirectoryLocations;
517
+
518
+ /**
519
+ Location for the code repository.
520
+ */
521
+ repository?:
522
+ | string
523
+ | {
524
+ type: string;
525
+ url: string;
526
+
527
+ /**
528
+ Relative path to package.json if it is placed in non-root directory (for example if it is part of a monorepo).
529
+
530
+ [Read more.](https://github.com/npm/rfcs/blob/latest/implemented/0010-monorepo-subdirectory-declaration.md)
531
+ */
532
+ directory?: string;
533
+ };
534
+
535
+ /**
536
+ Script commands that are run at various times in the lifecycle of the package. The key is the lifecycle event, and the value is the command to run at that point.
537
+ */
538
+ scripts?: Scripts;
539
+
540
+ /**
541
+ Is used to set configuration parameters used in package scripts that persist across upgrades.
542
+ */
543
+ config?: Record<string, unknown>;
544
+
545
+ /**
546
+ The dependencies of the package.
547
+ */
548
+ dependencies?: Dependency;
549
+
550
+ /**
551
+ Additional tooling dependencies that are not required for the package to work. Usually test, build, or documentation tooling.
552
+ */
553
+ devDependencies?: Dependency;
554
+
555
+ /**
556
+ Dependencies that are skipped if they fail to install.
557
+ */
558
+ optionalDependencies?: Dependency;
559
+
560
+ /**
561
+ Dependencies that will usually be required by the package user directly or via another dependency.
562
+ */
563
+ peerDependencies?: Dependency;
564
+
565
+ /**
566
+ Indicate peer dependencies that are optional.
567
+ */
568
+ peerDependenciesMeta?: Partial<Record<string, {optional: true}>>;
569
+
570
+ /**
571
+ Package names that are bundled when the package is published.
572
+ */
573
+ bundledDependencies?: string[];
574
+
575
+ /**
576
+ Alias of `bundledDependencies`.
577
+ */
578
+ bundleDependencies?: string[];
579
+
580
+ /**
581
+ Engines that this package runs on.
582
+ */
583
+ engines?: {
584
+ [EngineName in 'npm' | 'node' | string]?: string;
585
+ };
586
+
587
+ /**
588
+ @deprecated
589
+ */
590
+ engineStrict?: boolean;
591
+
592
+ /**
593
+ Operating systems the module runs on.
594
+ */
595
+ os?: Array<LiteralUnion<
596
+ | 'aix'
597
+ | 'darwin'
598
+ | 'freebsd'
599
+ | 'linux'
600
+ | 'openbsd'
601
+ | 'sunos'
602
+ | 'win32'
603
+ | '!aix'
604
+ | '!darwin'
605
+ | '!freebsd'
606
+ | '!linux'
607
+ | '!openbsd'
608
+ | '!sunos'
609
+ | '!win32',
610
+ string
611
+ >>;
612
+
613
+ /**
614
+ CPU architectures the module runs on.
615
+ */
616
+ cpu?: Array<LiteralUnion<
617
+ | 'arm'
618
+ | 'arm64'
619
+ | 'ia32'
620
+ | 'mips'
621
+ | 'mipsel'
622
+ | 'ppc'
623
+ | 'ppc64'
624
+ | 's390'
625
+ | 's390x'
626
+ | 'x32'
627
+ | 'x64'
628
+ | '!arm'
629
+ | '!arm64'
630
+ | '!ia32'
631
+ | '!mips'
632
+ | '!mipsel'
633
+ | '!ppc'
634
+ | '!ppc64'
635
+ | '!s390'
636
+ | '!s390x'
637
+ | '!x32'
638
+ | '!x64',
639
+ string
640
+ >>;
641
+
642
+ /**
643
+ If set to `true`, a warning will be shown if package is installed locally. Useful if the package is primarily a command-line application that should be installed globally.
644
+
645
+ @deprecated
646
+ */
647
+ preferGlobal?: boolean;
648
+
649
+ /**
650
+ If set to `true`, then npm will refuse to publish it.
651
+ */
652
+ private?: boolean;
653
+
654
+ /**
655
+ A set of config values that will be used at publish-time. It's especially handy to set the tag, registry or access, to ensure that a given package is not tagged with 'latest', published to the global public registry or that a scoped module is private by default.
656
+ */
657
+ publishConfig?: PublishConfig;
658
+
659
+ /**
660
+ Describes and notifies consumers of a package's monetary support information.
661
+
662
+ [Read more.](https://github.com/npm/rfcs/blob/latest/accepted/0017-add-funding-support.md)
663
+ */
664
+ funding?: string | {
665
+ /**
666
+ The type of funding.
667
+ */
668
+ type?: LiteralUnion<
669
+ | 'github'
670
+ | 'opencollective'
671
+ | 'patreon'
672
+ | 'individual'
673
+ | 'foundation'
674
+ | 'corporation',
675
+ string
676
+ >;
677
+
678
+ /**
679
+ The URL to the funding page.
680
+ */
681
+ url: string;
682
+ };
683
+ }
684
+
685
+ export interface PublishConfig {
686
+ /**
687
+ Additional, less common properties from the [npm docs on `publishConfig`](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#publishconfig).
688
+ */
689
+ [additionalProperties: string]: unknown;
690
+
691
+ /**
692
+ 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.
693
+ */
694
+ access?: 'public' | 'restricted';
695
+
696
+ /**
697
+ The base URL of the npm registry.
698
+
699
+ Default: `'https://registry.npmjs.org/'`
700
+ */
701
+ registry?: string;
702
+
703
+ /**
704
+ The tag to publish the package under.
705
+
706
+ Default: `'latest'`
707
+ */
708
+ tag?: string;
709
+ }
710
+ }
711
+
712
+ /**
713
+ Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). Also includes types for fields used by other popular projects, like TypeScript and Yarn.
714
+
715
+ @category File
716
+ */
717
+ type PackageJson$1 =
718
+ PackageJson$1.PackageJsonStandard &
719
+ PackageJson$1.NonStandardEntryPoints &
720
+ PackageJson$1.TypeScriptConfiguration &
721
+ PackageJson$1.YarnConfiguration &
722
+ PackageJson$1.JSPMConfiguration;
723
+ declare type Tag = string;
724
+ interface Parameters {
725
+ [name: string]: any;
726
+ }
727
+
728
+ interface StoriesSpecifier {
729
+ /**
730
+ * When auto-titling, what to prefix all generated titles with (default: '')
731
+ */
732
+ titlePrefix?: string;
733
+ /**
734
+ * Where to start looking for story files
735
+ */
736
+ directory: string;
737
+ /**
738
+ * What does the filename of a story file look like?
739
+ * (a glob, relative to directory, no leading `./`)
740
+ * If unset, we use `** / *.@(mdx|stories.@(mdx|tsx|ts|jsx|js))` (no spaces)
741
+ */
742
+ files?: string;
743
+ }
744
+ type StoriesEntry = string | StoriesSpecifier;
745
+ interface IndexerOptions {
746
+ makeTitle: (userTitle?: string) => string;
747
+ }
748
+ interface IndexedStory {
749
+ id: string;
750
+ name: string;
751
+ tags?: Tag[];
752
+ parameters?: Parameters;
753
+ }
754
+ interface IndexedCSFFile {
755
+ meta: {
756
+ title?: string;
757
+ tags?: Tag[];
758
+ };
759
+ stories: IndexedStory[];
760
+ }
761
+ interface StoryIndexer {
762
+ test: RegExp;
763
+ indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
764
+ }
765
+
766
+ interface Options$1 {
8
767
  allowRegExp: boolean;
9
768
  allowFunction: boolean;
10
769
  allowSymbol: boolean;
@@ -16,51 +775,19 @@ interface Options {
16
775
  lazyEval: boolean;
17
776
  }
18
777
 
19
- declare type Parameters = {
20
- [name: string]: any;
21
- };
22
-
23
- interface Options$2 {
24
- basePath?: string;
25
- ns?: string | string[];
26
- extension?: string;
27
- }
28
- declare class FileSystemCache {
29
- constructor(options: Options$2);
30
- private internal;
31
- path(key: string): string;
32
- fileExists(key: string): Promise<boolean>;
33
- ensureBasePath(): Promise<void>;
34
- get(key: string, defaultValue?: any): Promise<any | typeof defaultValue>;
35
- getSync(key: string, defaultValue?: any): any | typeof defaultValue;
36
- set(key: string, value: any): Promise<{
37
- path: string;
38
- }>;
39
- setSync(key: string, value: any): this;
40
- remove(key: string): Promise<void>;
41
- clear(): Promise<void>;
42
- save(): Promise<{
43
- paths: string[];
44
- }>;
45
- load(): Promise<{
46
- files: Array<{
47
- path: string;
48
- value: any;
49
- }>;
50
- }>;
51
- }
52
-
53
778
  /**
54
779
  * ⚠️ This file contains internal WIP types they MUST NOT be exported outside this package for now!
55
780
  */
56
- declare type BuilderName = 'webpack5' | '@storybook/builder-webpack5' | string;
781
+ type BuilderName = 'webpack5' | '@storybook/builder-webpack5' | string;
782
+ type RendererName = string;
57
783
  interface CoreConfig {
58
784
  builder?: BuilderName | {
59
785
  name: BuilderName;
60
786
  options?: Record<string, any>;
61
787
  };
788
+ renderer?: RendererName;
62
789
  disableWebpackDefaults?: boolean;
63
- channelOptions?: Partial<Options>;
790
+ channelOptions?: Partial<Options$1>;
64
791
  /**
65
792
  * Disables the generation of project.json, a file containing Storybook metadata
66
793
  */
@@ -89,14 +816,14 @@ interface DirectoryMapping {
89
816
  to: string;
90
817
  }
91
818
  interface Presets {
92
- apply(extension: 'typescript', config: TypescriptOptions, args?: Options$1): Promise<TypescriptOptions>;
93
- apply(extension: 'framework', config: {}, args: any): Promise<Preset>;
94
- apply(extension: 'babel', config: {}, args: any): Promise<TransformOptions>;
95
- apply(extension: 'entries', config: [], args: any): Promise<unknown>;
96
- apply(extension: 'stories', config: [], args: any): Promise<StoriesEntry[]>;
97
- apply(extension: 'managerEntries', config: [], args: any): Promise<string[]>;
98
- apply(extension: 'refs', config: [], args: any): Promise<unknown>;
99
- apply(extension: 'core', config: {}, args: any): Promise<CoreConfig>;
819
+ apply(extension: 'typescript', config: TypescriptOptions, args?: Options): Promise<TypescriptOptions>;
820
+ apply(extension: 'framework', config?: {}, args?: any): Promise<Preset>;
821
+ apply(extension: 'babel', config?: {}, args?: any): Promise<TransformOptions>;
822
+ apply(extension: 'entries', config?: [], args?: any): Promise<unknown>;
823
+ apply(extension: 'stories', config?: [], args?: any): Promise<StoriesEntry[]>;
824
+ apply(extension: 'managerEntries', config: [], args?: any): Promise<string[]>;
825
+ apply(extension: 'refs', config?: [], args?: any): Promise<unknown>;
826
+ apply(extension: 'core', config?: {}, args?: any): Promise<CoreConfig>;
100
827
  apply<T>(extension: string, config?: T, args?: unknown): Promise<T>;
101
828
  }
102
829
  interface LoadedPreset {
@@ -106,6 +833,7 @@ interface LoadedPreset {
106
833
  }
107
834
  interface VersionCheck {
108
835
  success: boolean;
836
+ cached: boolean;
109
837
  data?: any;
110
838
  error?: any;
111
839
  time: number;
@@ -115,17 +843,7 @@ interface ReleaseNotesData {
115
843
  currentVersion: string;
116
844
  showOnFirstLaunch: boolean;
117
845
  }
118
- interface PackageJson {
119
- name: string;
120
- version: string;
121
- dependencies?: Record<string, string>;
122
- devDependencies?: Record<string, string>;
123
- peerDependencies?: Record<string, string>;
124
- scripts?: Record<string, string>;
125
- eslintConfig?: Record<string, any>;
126
- type?: 'module';
127
- [key: string]: any;
128
- }
846
+ type PackageJson = PackageJson$1 & Record<string, any>;
129
847
  interface LoadOptions {
130
848
  packageJson: PackageJson;
131
849
  outputDir?: string;
@@ -182,25 +900,7 @@ interface StorybookConfigOptions {
182
900
  presets: Presets;
183
901
  presetsList?: LoadedPreset[];
184
902
  }
185
- declare type Options$1 = LoadOptions & StorybookConfigOptions & CLIOptions & BuilderOptions;
186
- interface IndexerOptions {
187
- makeTitle: (userTitle?: string) => string;
188
- }
189
- interface IndexedStory {
190
- id: string;
191
- name: string;
192
- parameters?: Parameters;
193
- }
194
- interface StoryIndex {
195
- meta: {
196
- title?: string;
197
- };
198
- stories: IndexedStory[];
199
- }
200
- interface StoryIndexer {
201
- test: RegExp;
202
- indexer: (fileName: string, options: IndexerOptions) => Promise<StoryIndex>;
203
- }
903
+ type Options = LoadOptions & StorybookConfigOptions & CLIOptions & BuilderOptions;
204
904
  /**
205
905
  * Options for TypeScript usage within Storybook.
206
906
  */
@@ -218,24 +918,7 @@ interface TypescriptOptions {
218
918
  */
219
919
  skipBabel: boolean;
220
920
  }
221
- interface StoriesSpecifier {
222
- /**
223
- * When auto-titling, what to prefix all generated titles with (default: '')
224
- */
225
- titlePrefix?: string;
226
- /**
227
- * Where to start looking for story files
228
- */
229
- directory: string;
230
- /**
231
- * What does the filename of a story file look like?
232
- * (a glob, relative to directory, no leading `./`)
233
- * If unset, we use `** / *.stories.@(mdx|tsx|ts|jsx|js)` (no spaces)
234
- */
235
- files?: string;
236
- }
237
- declare type StoriesEntry = string | StoriesSpecifier;
238
- declare type Preset = string | {
921
+ type Preset = string | {
239
922
  name: string;
240
923
  options?: any;
241
924
  };
@@ -243,13 +926,32 @@ declare type Preset = string | {
243
926
  * An additional script that gets injected into the
244
927
  * preview or the manager,
245
928
  */
246
- declare type Entry = string;
247
- declare type StorybookRefs = Record<string, {
929
+ type Entry = string;
930
+ type CoreCommon_StorybookRefs = Record<string, {
248
931
  title: string;
249
932
  url: string;
250
933
  } | {
251
934
  disable: boolean;
252
935
  }>;
936
+ type DocsOptions = {
937
+ /**
938
+ * Should we generate docs entries at all under any circumstances? (i.e. can they be rendered)
939
+ */
940
+ enabled?: boolean;
941
+ /**
942
+ * What should we call the generated docs entries?
943
+ */
944
+ defaultName?: string;
945
+ /**
946
+ * Should we generate a docs entry per CSF file with the `docsPage` tag?
947
+ * Set to 'automatic' to generate an entry irrespective of tag.
948
+ */
949
+ docsPage?: boolean | 'automatic';
950
+ /**
951
+ * Only show doc entries in the side bar (usually set with the `--docs` CLI flag)
952
+ */
953
+ docsMode?: boolean;
954
+ };
253
955
  /**
254
956
  * The interface for Storybook configuration in `main.ts` files.
255
957
  */
@@ -269,10 +971,6 @@ interface StorybookConfig {
269
971
  staticDirs?: (DirectoryMapping | string)[];
270
972
  logLevel?: string;
271
973
  features?: {
272
- /**
273
- * Allows to disable deprecated implicit PostCSS loader. (will be removed in 7.0)
274
- */
275
- postcss?: boolean;
276
974
  /**
277
975
  * Build stories.json automatically on start/build
278
976
  */
@@ -295,10 +993,6 @@ interface StorybookConfig {
295
993
  * Enable the step debugger functionality in Addon-interactions.
296
994
  */
297
995
  interactionsDebugger?: boolean;
298
- /**
299
- * Use Storybook 7.0 babel config scheme
300
- */
301
- babelModeV7?: boolean;
302
996
  /**
303
997
  * Filter args with a "target" on the type from the render function (EXPERIMENTAL)
304
998
  */
@@ -308,10 +1002,6 @@ interface StorybookConfig {
308
1002
  * Will be removed in 7.0.
309
1003
  */
310
1004
  warnOnLegacyHierarchySeparator?: boolean;
311
- /**
312
- * Preview MDX2 support, will become default in 7.0
313
- */
314
- previewMdx2?: boolean;
315
1005
  };
316
1006
  /**
317
1007
  * Tells Storybook where to find stories.
@@ -330,35 +1020,47 @@ interface StorybookConfig {
330
1020
  /**
331
1021
  * References external Storybooks
332
1022
  */
333
- refs?: StorybookRefs | ((config: any, options: Options$1) => StorybookRefs);
1023
+ refs?: CoreCommon_StorybookRefs | ((config: any, options: Options) => CoreCommon_StorybookRefs);
334
1024
  /**
335
1025
  * Modify or return babel config.
336
1026
  */
337
- babel?: (config: TransformOptions, options: Options$1) => TransformOptions | Promise<TransformOptions>;
1027
+ babel?: (config: TransformOptions, options: Options) => TransformOptions | Promise<TransformOptions>;
338
1028
  /**
339
1029
  * Modify or return babel config.
340
1030
  */
341
- babelDefault?: (config: TransformOptions, options: Options$1) => TransformOptions | Promise<TransformOptions>;
1031
+ babelDefault?: (config: TransformOptions, options: Options) => TransformOptions | Promise<TransformOptions>;
342
1032
  /**
343
1033
  * Add additional scripts to run in the preview a la `.storybook/preview.js`
344
1034
  *
345
1035
  * @deprecated use `previewAnnotations` or `/preview.js` file instead
346
1036
  */
347
- config?: (entries: Entry[], options: Options$1) => Entry[];
1037
+ config?: (entries: Entry[], options: Options) => Entry[];
348
1038
  /**
349
1039
  * Add additional scripts to run in the preview a la `.storybook/preview.js`
350
1040
  */
351
- previewAnnotations?: (entries: Entry[], options: Options$1) => Entry[];
1041
+ previewAnnotations?: (entries: Entry[], options: Options) => Entry[];
352
1042
  /**
353
1043
  * Process CSF files for the story index.
354
1044
  */
355
- storyIndexers?: (indexers: StoryIndexer[], options: Options$1) => StoryIndexer[];
1045
+ storyIndexers?: (indexers: StoryIndexer[], options: Options) => StoryIndexer[];
1046
+ /**
1047
+ * Docs related features in index generation
1048
+ */
1049
+ docs?: DocsOptions;
1050
+ /**
1051
+ * Programmatically modify the preview head/body HTML.
1052
+ * The previewHead and previewBody functions accept a string,
1053
+ * which is the existing head/body, and return a modified string.
1054
+ */
1055
+ previewHead?: (head: string, options: Options) => string;
1056
+ previewBody?: (body: string, options: Options) => string;
356
1057
  }
357
- declare type PresetProperty<K, TStorybookConfig = StorybookConfig> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
358
- 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]>;
1058
+ type PresetProperty<K, TStorybookConfig = StorybookConfig> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
1059
+ type PresetPropertyFn<K, TStorybookConfig = StorybookConfig, TOptions = {}> = (config: TStorybookConfig[K extends keyof TStorybookConfig ? K : never], options: Options & TOptions) => TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | Promise<TStorybookConfig[K extends keyof TStorybookConfig ? K : never]>;
359
1060
 
360
1061
  declare const addons: PresetProperty<'addons', StorybookConfig$1>;
1062
+ declare const frameworkOptions: (_: never, options: Options) => Promise<StorybookConfig$1['framework']>;
361
1063
  declare const core: PresetProperty<'core', StorybookConfig$1>;
362
1064
  declare const webpack: StorybookConfig$1['webpack'];
363
1065
 
364
- export { addons, core, webpack };
1066
+ export { addons, core, frameworkOptions, webpack };
package/dist/preset.js CHANGED
@@ -1 +1 @@
1
- var m=Object.create;var s=Object.defineProperty,u=Object.defineProperties,y=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertyNames,k=Object.getOwnPropertySymbols,w=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var l=(e,r,o)=>r in e?s(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,n=(e,r)=>{for(var o in r||(r={}))b.call(r,o)&&l(e,o,r[o]);if(k)for(var o of k(r))q.call(r,o)&&l(e,o,r[o]);return e},p=(e,r)=>u(e,j(r)),i=(e,r)=>s(e,"name",{value:r,configurable:!0});var x=(e,r)=>{for(var o in r)s(e,o,{get:r[o],enumerable:!0})},d=(e,r,o,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of v(r))!b.call(e,t)&&t!==o&&s(e,t,{get:()=>r[t],enumerable:!(c=y(r,t))||c.enumerable});return e};var g=(e,r,o)=>(o=e!=null?m(w(e)):{},d(r||!e||!e.__esModule?s(o,"default",{value:e,enumerable:!0}):o,e)),h=e=>d(s({},"__esModule",{value:!0}),e);var B={};x(B,{addons:()=>f,core:()=>z,webpack:()=>A});module.exports=h(B);var a=g(require("path")),f=[a.default.dirname(require.resolve(a.default.join("@storybook/preset-react-webpack","package.json"))),a.default.dirname(require.resolve(a.default.join("@storybook/react","package.json")))],z=i(async(e,r)=>{let o=await r.presets.apply("framework");return p(n({},e),{builder:{name:a.default.dirname(require.resolve(a.default.join("@storybook/builder-webpack5","package.json"))),options:typeof o=="string"?{}:o.options.builder||{}}})},"core"),A=i(async e=>{var r;return e.resolve=e.resolve||{},e.resolve.alias=p(n({},(r=e.resolve)==null?void 0:r.alias),{"@storybook/react":a.default.dirname(require.resolve(a.default.join("@storybook/react","package.json")))}),e},"webpack");0&&(module.exports={addons,core,webpack});
1
+ "use strict";var y=Object.create;var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var l=(o,e)=>{for(var r in e)a(o,r,{get:e[r],enumerable:!0})},i=(o,e,r,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of b(e))!f.call(o,s)&&s!==r&&a(o,s,{get:()=>e[s],enumerable:!(p=m(e,s))||p.enumerable});return o};var k=(o,e,r)=>(r=o!=null?y(c(o)):{},i(e||!o||!o.__esModule?a(r,"default",{value:o,enumerable:!0}):r,o)),w=o=>i(a({},"__esModule",{value:!0}),o);var j={};l(j,{addons:()=>u,core:()=>g,frameworkOptions:()=>d,webpack:()=>v});module.exports=w(j);var t=k(require("path")),u=[t.default.dirname(require.resolve(t.default.join("@storybook/preset-react-webpack","package.json")))],n={legacyRootApi:!0},d=async(o,e)=>{let r=await e.presets.apply("framework");return typeof r=="string"?{name:r,options:n}:typeof r>"u"?{name:require.resolve("@storybook/react-webpack5"),options:n}:{name:r.name,options:{...n,...r.options}}},g=async(o,e)=>{let r=await e.presets.apply("framework");return{...o,builder:{name:t.default.dirname(require.resolve(t.default.join("@storybook/builder-webpack5","package.json"))),options:typeof r=="string"?{}:r.options.builder||{}},renderer:t.default.dirname(require.resolve(t.default.join("@storybook/react","package.json")))}},v=async o=>{var e;return o.resolve=o.resolve||{},o.resolve.alias={...(e=o.resolve)==null?void 0:e.alias,"@storybook/react":t.default.dirname(require.resolve(t.default.join("@storybook/react","package.json")))},o};0&&(module.exports={addons,core,frameworkOptions,webpack});
package/dist/preset.mjs CHANGED
@@ -1 +1 @@
1
- var k=Object.defineProperty,l=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var c=(e,r,o)=>r in e?k(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,t=(e,r)=>{for(var o in r||(r={}))d.call(r,o)&&c(e,o,r[o]);if(i)for(var o of i(r))m.call(r,o)&&c(e,o,r[o]);return e},n=(e,r)=>l(e,b(r)),p=(e,r)=>k(e,"name",{value:r,configurable:!0}),s=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,o)=>(typeof require!="undefined"?require:r)[o]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});import a from"path";var w=[a.dirname(s.resolve(a.join("@storybook/preset-react-webpack","package.json"))),a.dirname(s.resolve(a.join("@storybook/react","package.json")))],q=p(async(e,r)=>{let o=await r.presets.apply("framework");return n(t({},e),{builder:{name:a.dirname(s.resolve(a.join("@storybook/builder-webpack5","package.json"))),options:typeof o=="string"?{}:o.options.builder||{}}})},"core"),x=p(async e=>{var r;return e.resolve=e.resolve||{},e.resolve.alias=n(t({},(r=e.resolve)==null?void 0:r.alias),{"@storybook/react":a.dirname(s.resolve(a.join("@storybook/react","package.json")))}),e},"webpack");export{w as addons,q as core,x as webpack};
1
+ var __require=(x=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(x,{get:(a,b)=>(typeof require!="undefined"?require:a)[b]}):x)(function(x){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+x+'" is not supported')});import path from"path";var addons=[path.dirname(__require.resolve(path.join("@storybook/preset-react-webpack","package.json")))],defaultFrameworkOptions={legacyRootApi:!0},frameworkOptions=async(_,options)=>{let config=await options.presets.apply("framework");return typeof config=="string"?{name:config,options:defaultFrameworkOptions}:typeof config>"u"?{name:__require.resolve("@storybook/react-webpack5"),options:defaultFrameworkOptions}:{name:config.name,options:{...defaultFrameworkOptions,...config.options}}},core=async(config,options)=>{let framework=await options.presets.apply("framework");return{...config,builder:{name:path.dirname(__require.resolve(path.join("@storybook/builder-webpack5","package.json"))),options:typeof framework=="string"?{}:framework.options.builder||{}},renderer:path.dirname(__require.resolve(path.join("@storybook/react","package.json")))}},webpack=async config=>(config.resolve=config.resolve||{},config.resolve.alias={...config.resolve?.alias,"@storybook/react":path.dirname(__require.resolve(path.join("@storybook/react","package.json")))},config);export{addons,core,frameworkOptions,webpack};
@@ -1,12 +1,12 @@
1
1
  import { ReactOptions, StorybookConfig as StorybookConfig$1, TypescriptOptions as TypescriptOptions$1 } from '@storybook/preset-react-webpack';
2
2
  import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from '@storybook/builder-webpack5';
3
3
 
4
- declare type FrameworkName = '@storybook/react-webpack5';
5
- declare type BuilderName = '@storybook/builder-webpack5';
6
- declare type FrameworkOptions = ReactOptions & {
4
+ type FrameworkName = '@storybook/react-webpack5';
5
+ type BuilderName = '@storybook/builder-webpack5';
6
+ type FrameworkOptions = ReactOptions & {
7
7
  builder?: BuilderOptions;
8
8
  };
9
- declare type StorybookConfigFramework = {
9
+ type StorybookConfigFramework = {
10
10
  framework: FrameworkName | {
11
11
  name: FrameworkName;
12
12
  options: FrameworkOptions;
@@ -22,6 +22,6 @@ declare type StorybookConfigFramework = {
22
22
  /**
23
23
  * The interface for Storybook configuration in `main.ts` files.
24
24
  */
25
- declare type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
25
+ type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
26
26
 
27
27
  export { FrameworkOptions as F, StorybookConfig as S };
package/jest.config.js ADDED
@@ -0,0 +1,7 @@
1
+ const path = require('path');
2
+ const baseConfig = require('../../jest.config.node');
3
+
4
+ module.exports = {
5
+ ...baseConfig,
6
+ displayName: __dirname.split(path.sep).slice(-2).join(path.posix.sep),
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-webpack5",
3
- "version": "7.0.0-alpha.8",
3
+ "version": "7.0.0-beta.1",
4
4
  "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,18 +47,18 @@
47
47
  "*.d.ts"
48
48
  ],
49
49
  "scripts": {
50
- "prepare": "esrun ../../scripts/prepare/bundle.ts"
50
+ "check": "../../../scripts/node_modules/.bin/tsc --noEmit",
51
+ "prep": "../../../scripts/prepare/bundle.ts"
51
52
  },
52
53
  "dependencies": {
53
- "@storybook/builder-webpack5": "7.0.0-alpha.8",
54
- "@storybook/preset-react-webpack": "7.0.0-alpha.8",
55
- "@storybook/react": "7.0.0-alpha.8",
56
- "@types/node": "^14.14.20 || ^16.0.0",
57
- "core-js": "^3.8.2"
54
+ "@storybook/builder-webpack5": "7.0.0-beta.1",
55
+ "@storybook/preset-react-webpack": "7.0.0-beta.1",
56
+ "@storybook/react": "7.0.0-beta.1",
57
+ "@types/node": "^16.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@digitak/esrun": "^3.2.2",
61
- "jest-specific-snapshot": "^4.0.0"
60
+ "jest-specific-snapshot": "^7.0.0",
61
+ "typescript": "~4.9.3"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@babel/core": "^7.11.5",
@@ -79,9 +79,12 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "bundlerEntrypoint": [
83
- "./src/index.ts",
84
- "./src/preset.ts"
85
- ],
86
- "gitHead": "24725501c32a073cebc6bf2674a47357136fbe3a"
82
+ "bundler": {
83
+ "entries": [
84
+ "./src/index.ts",
85
+ "./src/preset.ts"
86
+ ],
87
+ "platform": "node"
88
+ },
89
+ "gitHead": "42c08678ac06d9c2c8e7a4c31a91e0a14bf5c2cd"
87
90
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 Kadira Inc. <hello@kadira.io>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.