storybook 10.1.0-alpha.12 → 10.1.0-alpha.14
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/_browser-chunks/{chunk-74YHFU5B.js → chunk-2XZMBGTA.js} +1 -1
- package/dist/_browser-chunks/{chunk-EBHB6RPS.js → chunk-FQ7SLVLR.js} +6 -1
- package/dist/_browser-chunks/{chunk-X3DUQ5RA.js → chunk-GFY5R5EY.js} +1 -1
- package/dist/_browser-chunks/{chunk-WXP2XJ3O.js → chunk-P4F4UVXX.js} +1 -0
- package/dist/_browser-chunks/{chunk-BE2DAXKJ.js → chunk-SS2NHR7W.js} +4 -1
- package/dist/_browser-chunks/{syntaxhighlighter-WKBQ5RC7.js → syntaxhighlighter-IQDEPFLK.js} +1 -1
- package/dist/_node-chunks/{builder-manager-YUOHSIUB.js → builder-manager-FQ5J6V3U.js} +32 -22
- package/dist/_node-chunks/{chunk-B6JWY6PC.js → camelcase-VGUYV77Z.js} +8 -8
- package/dist/_node-chunks/{chunk-FZLRAH4N.js → chunk-2JR3QBT2.js} +7 -7
- package/dist/_node-chunks/chunk-3EBH66BB.js +23 -0
- package/dist/_node-chunks/{chunk-E5FJS66Z.js → chunk-4ZFHN3ZY.js} +6 -6
- package/dist/_node-chunks/{chunk-5HV3B5OP.js → chunk-63PL4NNE.js} +1104 -13
- package/dist/_node-chunks/{chunk-NAOYEL54.js → chunk-A4KENTXT.js} +7 -7
- package/dist/_node-chunks/{chunk-4FT2DHGE.js → chunk-ALIA3J6S.js} +44 -10
- package/dist/_node-chunks/{chunk-WFLWJO24.js → chunk-C2HKH2XQ.js} +5710 -2414
- package/dist/_node-chunks/{chunk-WA6KZQZ2.js → chunk-DQNBAQYT.js} +6 -6
- package/dist/_node-chunks/{chunk-JARUEMEP.js → chunk-F74UHHR6.js} +7 -7
- package/dist/_node-chunks/{chunk-WUXQMQCB.js → chunk-H5XWXVWR.js} +6 -6
- package/dist/_node-chunks/{chunk-OP3INKUD.js → chunk-JMP7YFX2.js} +6 -6
- package/dist/_node-chunks/{chunk-DWXTZT3D.js → chunk-JZR4DHG2.js} +19 -7
- package/dist/_node-chunks/{chunk-QCO2ZM7F.js → chunk-KEA7CVMZ.js} +122 -32
- package/dist/_node-chunks/{chunk-DUXPWBOK.js → chunk-KF3WTAEP.js} +7 -7
- package/dist/_node-chunks/{chunk-2D2IODUU.js → chunk-LPPM7L5D.js} +51 -71
- package/dist/_node-chunks/{chunk-2DMESZFJ.js → chunk-MJUDR7HQ.js} +7 -7
- package/dist/_node-chunks/chunk-NPB4THZQ.js +18 -0
- package/dist/_node-chunks/chunk-NZBK3DSJ.js +29 -0
- package/dist/_node-chunks/{chunk-5KLIDWFN.js → chunk-Q2QUNQK6.js} +7 -7
- package/dist/_node-chunks/{chunk-EZWWR7AR.js → chunk-TMCKISJR.js} +101 -118
- package/dist/_node-chunks/chunk-TWK7AR3U.js +6024 -0
- package/dist/_node-chunks/{chunk-CZ5GHJCC.js → chunk-V7CXWJXC.js} +7 -7
- package/dist/_node-chunks/chunk-W4F3T6CY.js +3781 -0
- package/dist/_node-chunks/{chunk-SEMIAAWG.js → chunk-WACDSFMO.js} +9 -9
- package/dist/_node-chunks/{chunk-A4APXFQ2.js → chunk-WVXZFQQU.js} +14 -8
- package/dist/_node-chunks/chunk-XBPE4PT7.js +78 -0
- package/dist/_node-chunks/chunk-YMM6BYF2.js +61 -0
- package/dist/_node-chunks/{chunk-XXPJ7XR3.js → chunk-ZGZKNZ5S.js} +6 -6
- package/dist/_node-chunks/{dist-DS2B5A3J.js → dist-DR3AP3RJ.js} +9 -9
- package/dist/_node-chunks/{globby-6THB7HVX.js → globby-D4FPSHY2.js} +9 -9
- package/dist/_node-chunks/{lib-5NKX4YGG.js → lib-ZEFOVNTK.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-ZLT3QOFF.js → mdx-N42X6CFJ-PJF3ICCG.js} +8 -8
- package/dist/_node-chunks/{p-limit-PDMWNG7W.js → p-limit-CYQOFYPV.js} +7 -7
- package/dist/babel/index.js +10 -11
- package/dist/bin/core.js +33 -26
- package/dist/bin/dispatcher.js +31 -20
- package/dist/bin/loader.js +10 -13
- package/dist/cli/index.d.ts +1479 -133
- package/dist/cli/index.js +30 -5159
- package/dist/common/index.d.ts +139 -62
- package/dist/common/index.js +66 -51
- package/dist/components/index.d.ts +136 -26
- package/dist/components/index.js +3163 -2859
- package/dist/core-server/index.d.ts +3 -2
- package/dist/core-server/index.js +112 -1486
- package/dist/core-server/presets/common-manager.js +5 -5
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +272 -81
- package/dist/csf/index.js +2 -2
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +21557 -21133
- package/dist/manager/manager-stores.d.ts +1 -0
- package/dist/manager/manager-stores.js +23 -0
- package/dist/manager/runtime.js +6695 -720
- package/dist/manager-api/index.d.ts +1802 -1
- package/dist/manager-api/index.js +105 -11
- package/dist/manager-errors.d.ts +6 -0
- package/dist/manager-errors.js +2 -2
- package/dist/mocking-utils/index.d.ts +1126 -0
- package/dist/{_node-chunks/chunk-ZXSD6L3S.js → mocking-utils/index.js} +441 -16
- package/dist/node-logger/index.d.ts +192 -24
- package/dist/node-logger/index.js +23 -3148
- package/dist/preview/runtime.js +35 -3
- package/dist/preview-api/index.d.ts +69 -68
- package/dist/preview-api/index.js +2 -2
- package/dist/preview-errors.d.ts +6 -0
- package/dist/preview-errors.js +2 -2
- package/dist/server-errors.d.ts +31 -1
- package/dist/server-errors.js +17 -10
- package/dist/telemetry/index.d.ts +24 -3
- package/dist/telemetry/index.js +25 -24
- package/dist/types/index.d.ts +71 -8
- package/dist/types/index.js +25 -1
- package/package.json +11 -9
- package/dist/_node-chunks/camelcase-JREIL7NV.js +0 -18
- package/dist/_node-chunks/chunk-FDXFVHIL.js +0 -1114
- package/dist/_node-chunks/chunk-HZG65SU3.js +0 -34
- package/dist/_node-chunks/chunk-IXVYNBMD.js +0 -18
- package/dist/_node-chunks/chunk-LIH7MTP7.js +0 -3214
- package/dist/_node-chunks/chunk-N5GIRUP5.js +0 -1047
- package/dist/_node-chunks/chunk-O5DA7YLO.js +0 -3171
- package/dist/_node-chunks/chunk-QYQIZBS6.js +0 -26
- package/dist/_node-chunks/chunk-TS2UUH2J.js +0 -301
- package/dist/_node-chunks/chunk-Y4E6IGQF.js +0 -61
- package/dist/_node-chunks/chunk-ZL3AFKRX.js +0 -1029
- package/dist/_node-chunks/plugin-6XMWOGPO.js +0 -123
- package/dist/_node-chunks/plugin-LTOXVT6A.js +0 -109
- package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-2SFE5LQS.js +0 -46582
- package/dist/_node-chunks/webpack-mock-plugin-CX5J2U56.js +0 -92
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -32
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -28
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,105 +1,11 @@
|
|
|
1
|
-
import { PackageJsonWithMaybeDeps, JsPackageManager as JsPackageManager$1, PackageJson } from 'storybook/internal/common';
|
|
2
|
-
import { SupportedFrameworks, SupportedRenderers, PackageJson as PackageJson$1 } from 'storybook/internal/types';
|
|
3
1
|
import * as semver from 'semver';
|
|
2
|
+
import { JsPackageManager as JsPackageManager$1, PackageJson } from 'storybook/internal/common';
|
|
3
|
+
import { SupportedFramework as SupportedFramework$1, SupportedRenderer, SupportedLanguage, Feature, PackageJson as PackageJson$1, NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
|
|
4
4
|
import { Buffer } from 'node:buffer';
|
|
5
5
|
import { ChildProcess } from 'node:child_process';
|
|
6
6
|
import { Readable, Writable, Stream } from 'node:stream';
|
|
7
7
|
|
|
8
|
-
/** A list of all frameworks that are supported, but use a package outside the storybook monorepo */
|
|
9
|
-
type ExternalFramework = {
|
|
10
|
-
name: SupportedFrameworks;
|
|
11
|
-
packageName?: string;
|
|
12
|
-
frameworks?: string[];
|
|
13
|
-
renderer?: string;
|
|
14
|
-
};
|
|
15
|
-
declare const externalFrameworks: ExternalFramework[];
|
|
16
|
-
declare const SUPPORTED_RENDERERS: SupportedRenderers[];
|
|
17
|
-
declare enum ProjectType {
|
|
18
|
-
UNDETECTED = "UNDETECTED",
|
|
19
|
-
UNSUPPORTED = "UNSUPPORTED",
|
|
20
|
-
REACT = "REACT",
|
|
21
|
-
REACT_SCRIPTS = "REACT_SCRIPTS",
|
|
22
|
-
REACT_NATIVE = "REACT_NATIVE",
|
|
23
|
-
REACT_NATIVE_WEB = "REACT_NATIVE_WEB",
|
|
24
|
-
REACT_NATIVE_AND_RNW = "REACT_NATIVE_AND_RNW",
|
|
25
|
-
REACT_PROJECT = "REACT_PROJECT",
|
|
26
|
-
WEBPACK_REACT = "WEBPACK_REACT",
|
|
27
|
-
NEXTJS = "NEXTJS",
|
|
28
|
-
VUE3 = "VUE3",
|
|
29
|
-
NUXT = "NUXT",
|
|
30
|
-
ANGULAR = "ANGULAR",
|
|
31
|
-
EMBER = "EMBER",
|
|
32
|
-
WEB_COMPONENTS = "WEB_COMPONENTS",
|
|
33
|
-
HTML = "HTML",
|
|
34
|
-
QWIK = "QWIK",
|
|
35
|
-
PREACT = "PREACT",
|
|
36
|
-
SVELTE = "SVELTE",
|
|
37
|
-
SVELTEKIT = "SVELTEKIT",
|
|
38
|
-
SERVER = "SERVER",
|
|
39
|
-
NX = "NX",
|
|
40
|
-
SOLID = "SOLID"
|
|
41
|
-
}
|
|
42
|
-
declare enum CoreBuilder {
|
|
43
|
-
Webpack5 = "webpack5",
|
|
44
|
-
Vite = "vite"
|
|
45
|
-
}
|
|
46
|
-
declare enum CoreWebpackCompilers {
|
|
47
|
-
Babel = "babel",
|
|
48
|
-
SWC = "swc"
|
|
49
|
-
}
|
|
50
|
-
declare enum CommunityBuilder {
|
|
51
|
-
Rsbuild = "rsbuild"
|
|
52
|
-
}
|
|
53
|
-
declare const compilerNameToCoreCompiler: Record<string, CoreWebpackCompilers>;
|
|
54
|
-
declare const builderNameToCoreBuilder: Record<string, CoreBuilder>;
|
|
55
|
-
type Builder = CoreBuilder | (string & {});
|
|
56
|
-
declare enum SupportedLanguage {
|
|
57
|
-
JAVASCRIPT = "javascript",
|
|
58
|
-
TYPESCRIPT = "typescript"
|
|
59
|
-
}
|
|
60
|
-
type TemplateMatcher = {
|
|
61
|
-
files?: boolean[];
|
|
62
|
-
dependencies?: boolean[];
|
|
63
|
-
peerDependencies?: boolean[];
|
|
64
|
-
};
|
|
65
|
-
type TemplateConfiguration = {
|
|
66
|
-
preset: ProjectType;
|
|
67
|
-
/** Will be checked both against dependencies and devDependencies */
|
|
68
|
-
dependencies?: string[] | {
|
|
69
|
-
[dependency: string]: (version: string) => boolean;
|
|
70
|
-
};
|
|
71
|
-
peerDependencies?: string[] | {
|
|
72
|
-
[dependency: string]: (version: string) => boolean;
|
|
73
|
-
};
|
|
74
|
-
files?: string[];
|
|
75
|
-
matcherFunction: (matcher: TemplateMatcher) => boolean;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Configuration to match a storybook preset template.
|
|
79
|
-
*
|
|
80
|
-
* This has to be an array sorted in order of specificity/priority. Reason: both REACT and
|
|
81
|
-
* WEBPACK_REACT have react as dependency, therefore WEBPACK_REACT has to come first, as it's more
|
|
82
|
-
* specific.
|
|
83
|
-
*/
|
|
84
|
-
declare const supportedTemplates: TemplateConfiguration[];
|
|
85
|
-
declare const unsupportedTemplate: TemplateConfiguration;
|
|
86
|
-
declare const installableProjectTypes: string[];
|
|
87
|
-
|
|
88
|
-
declare function detectFrameworkPreset(packageJson?: PackageJsonWithMaybeDeps): ProjectType | null;
|
|
89
|
-
/**
|
|
90
|
-
* Attempts to detect which builder to use, by searching for a vite config file or webpack
|
|
91
|
-
* installation. If neither are found it will choose the default builder based on the project type.
|
|
92
|
-
*
|
|
93
|
-
* @returns CoreBuilder
|
|
94
|
-
*/
|
|
95
|
-
declare function detectBuilder(packageManager: JsPackageManager$1, projectType: ProjectType): Promise<any>;
|
|
96
|
-
declare function isStorybookInstantiated(configDir?: string): boolean;
|
|
97
8
|
declare function detectPnp(): Promise<boolean>;
|
|
98
|
-
declare function detectLanguage(packageManager: JsPackageManager$1): Promise<SupportedLanguage>;
|
|
99
|
-
declare function detect(packageManager: JsPackageManager$1, options?: {
|
|
100
|
-
force?: boolean;
|
|
101
|
-
html?: boolean;
|
|
102
|
-
}): Promise<ProjectType | null>;
|
|
103
9
|
|
|
104
10
|
declare function readFileAsJson(jsonPath: string, allowComments?: boolean): any;
|
|
105
11
|
declare const writeFileAsJson: (jsonPath: string, content: unknown) => boolean;
|
|
@@ -129,13 +35,12 @@ declare function addToDevDependenciesIfNotPresent(packageJson: PackageJson, name
|
|
|
129
35
|
declare function copyTemplate(templateRoot: string, destination?: string): void;
|
|
130
36
|
type CopyTemplateFilesOptions = {
|
|
131
37
|
packageManager: JsPackageManager$1;
|
|
132
|
-
templateLocation:
|
|
38
|
+
templateLocation: SupportedFramework$1 | SupportedRenderer;
|
|
133
39
|
language: SupportedLanguage;
|
|
134
40
|
commonAssetsDir?: string;
|
|
135
41
|
destination?: string;
|
|
136
|
-
features:
|
|
42
|
+
features: Set<Feature>;
|
|
137
43
|
};
|
|
138
|
-
declare const frameworkToDefaultBuilder: Record<SupportedFrameworks, CoreBuilder | CommunityBuilder>;
|
|
139
44
|
/**
|
|
140
45
|
* Return the installed version of a package, or the coerced version specifier from package.json if
|
|
141
46
|
* it's a dependency but not installed (e.g. in a fresh project)
|
|
@@ -144,13 +49,10 @@ declare function getVersionSafe(packageManager: JsPackageManager$1, packageName:
|
|
|
144
49
|
declare const cliStoriesTargetPath: () => Promise<"./src/stories" | "./stories">;
|
|
145
50
|
declare function copyTemplateFiles({ packageManager, templateLocation, language, destination, commonAssetsDir, features, }: CopyTemplateFilesOptions): Promise<void>;
|
|
146
51
|
declare function adjustTemplate(templatePath: string, templateData: Record<string, any>): Promise<void>;
|
|
147
|
-
declare function isNxProject(): Promise<string | undefined>;
|
|
148
52
|
declare function coerceSemver(version: string): semver.SemVer;
|
|
149
53
|
declare function hasStorybookDependencies(packageManager: JsPackageManager$1): boolean;
|
|
150
54
|
|
|
151
55
|
declare const ANGULAR_JSON_PATH = "angular.json";
|
|
152
|
-
declare const compoDocPreviewPrefix: string;
|
|
153
|
-
declare const promptForCompoDocs: () => Promise<boolean>;
|
|
154
56
|
declare class AngularJSON {
|
|
155
57
|
json: {
|
|
156
58
|
projects: Record<string, {
|
|
@@ -177,7 +79,7 @@ declare class AngularJSON {
|
|
|
177
79
|
projectType: string;
|
|
178
80
|
architect: Record<string, any>;
|
|
179
81
|
};
|
|
180
|
-
getProjectName(): Promise<
|
|
82
|
+
getProjectName(): Promise<string>;
|
|
181
83
|
addStorybookEntries({ angularProjectName, storybookFolder, useCompodoc, root, }: {
|
|
182
84
|
angularProjectName: string;
|
|
183
85
|
storybookFolder: string;
|
|
@@ -187,7 +89,32 @@ declare class AngularJSON {
|
|
|
187
89
|
write(): void;
|
|
188
90
|
}
|
|
189
91
|
|
|
190
|
-
declare function getRendererDir(packageManager: JsPackageManager$1, renderer:
|
|
92
|
+
declare function getRendererDir(packageManager: JsPackageManager$1, renderer: SupportedFramework$1 | SupportedRenderer): Promise<string>;
|
|
93
|
+
|
|
94
|
+
declare enum ProjectType {
|
|
95
|
+
ANGULAR = "angular",
|
|
96
|
+
EMBER = "ember",
|
|
97
|
+
HTML = "html",
|
|
98
|
+
NEXTJS = "nextjs",
|
|
99
|
+
NUXT = "nuxt",
|
|
100
|
+
NX = "nx",
|
|
101
|
+
PREACT = "preact",
|
|
102
|
+
QWIK = "qwik",
|
|
103
|
+
REACT = "react",
|
|
104
|
+
REACT_NATIVE = "react_native",
|
|
105
|
+
REACT_NATIVE_AND_RNW = "react_native_and_rnw",
|
|
106
|
+
REACT_NATIVE_WEB = "react_native_web",
|
|
107
|
+
REACT_PROJECT = "react_project",
|
|
108
|
+
REACT_SCRIPTS = "react_scripts",
|
|
109
|
+
SERVER = "server",
|
|
110
|
+
SOLID = "solid",
|
|
111
|
+
SVELTE = "svelte",
|
|
112
|
+
SVELTEKIT = "sveltekit",
|
|
113
|
+
UNDETECTED = "undetected",
|
|
114
|
+
UNSUPPORTED = "unsupported",
|
|
115
|
+
VUE3 = "vue3",
|
|
116
|
+
WEB_COMPONENTS = "web_components"
|
|
117
|
+
}
|
|
191
118
|
|
|
192
119
|
type StdioOption =
|
|
193
120
|
| 'pipe'
|
|
@@ -664,6 +591,14 @@ type ExecaChildProcess<StdoutStderrType extends StdoutStderrAll = string> = Chil
|
|
|
664
591
|
ExecaChildPromise<StdoutStderrType> &
|
|
665
592
|
Promise<ExecaReturnValue<StdoutStderrType>>;
|
|
666
593
|
|
|
594
|
+
type ExecuteCommandOptions = CommonOptions<'utf8'> & {
|
|
595
|
+
command: string;
|
|
596
|
+
args?: string[];
|
|
597
|
+
cwd?: string;
|
|
598
|
+
ignoreError?: boolean;
|
|
599
|
+
env?: Record<string, any>;
|
|
600
|
+
};
|
|
601
|
+
|
|
667
602
|
type PackageJsonWithDepsAndDevDeps = PackageJson$1 & Required<Pick<PackageJson$1, 'dependencies' | 'devDependencies'>>;
|
|
668
603
|
|
|
669
604
|
type PackageMetadata = {
|
|
@@ -678,7 +613,13 @@ type InstallationMetadata = {
|
|
|
678
613
|
dedupeCommand: string;
|
|
679
614
|
};
|
|
680
615
|
|
|
681
|
-
|
|
616
|
+
declare enum PackageManagerName {
|
|
617
|
+
NPM = "npm",
|
|
618
|
+
YARN1 = "yarn1",
|
|
619
|
+
YARN2 = "yarn2",
|
|
620
|
+
PNPM = "pnpm",
|
|
621
|
+
BUN = "bun"
|
|
622
|
+
}
|
|
682
623
|
interface JsPackageManagerOptions {
|
|
683
624
|
cwd?: string;
|
|
684
625
|
configDir?: string;
|
|
@@ -707,14 +648,11 @@ declare abstract class JsPackageManager {
|
|
|
707
648
|
static readonly latestVersionCache: Map<string, string | null>;
|
|
708
649
|
/** Cache for installed version results to avoid repeated file system calls. */
|
|
709
650
|
static readonly installedVersionCache: Map<string, string | null>;
|
|
651
|
+
/** Cache for package.json files to avoid repeated file system calls. */
|
|
652
|
+
static readonly packageJsonCache: Map<string, PackageJsonWithDepsAndDevDeps>;
|
|
710
653
|
constructor(options?: JsPackageManagerOptions);
|
|
711
654
|
/** Runs arbitrary package scripts. */
|
|
712
655
|
abstract getRunCommand(command: string): string;
|
|
713
|
-
/**
|
|
714
|
-
* Run a command from a local or remote. Fetches a package from the registry without installing it
|
|
715
|
-
* as a dependency, hotloads it, and runs whatever default command binary it exposes.
|
|
716
|
-
*/
|
|
717
|
-
abstract getRemoteRunCommand(pkg: string, args: string[], specifier?: string): string;
|
|
718
656
|
/** Get the package.json file for a given module. */
|
|
719
657
|
abstract getModulePackageJSON(packageName: string): Promise<PackageJson$1 | null>;
|
|
720
658
|
isStorybookInMonorepo(): boolean;
|
|
@@ -846,33 +784,14 @@ declare abstract class JsPackageManager {
|
|
|
846
784
|
protected abstract runGetVersions<T extends boolean>(packageName: string, fetchAllVersions: T): Promise<T extends true ? string[] : string>;
|
|
847
785
|
abstract getRegistryURL(): Promise<string | undefined>;
|
|
848
786
|
abstract runInternalCommand(command: string, args: string[], cwd?: string, stdio?: 'inherit' | 'pipe' | 'ignore'): ExecaChildProcess;
|
|
849
|
-
abstract runPackageCommand(
|
|
850
|
-
|
|
787
|
+
abstract runPackageCommand(options: Omit<ExecuteCommandOptions, 'command'> & {
|
|
788
|
+
args: string[];
|
|
789
|
+
}): ExecaChildProcess;
|
|
851
790
|
abstract findInstallations(pattern?: string[]): Promise<InstallationMetadata | undefined>;
|
|
852
791
|
abstract findInstallations(pattern?: string[], options?: {
|
|
853
792
|
depth: number;
|
|
854
793
|
}): Promise<InstallationMetadata | undefined>;
|
|
855
794
|
abstract parseErrorFromLogs(logs?: string): string;
|
|
856
|
-
executeCommandSync({ command, args, stdio, cwd, ignoreError, env, ...execaOptions }: CommonOptions<'utf8'> & {
|
|
857
|
-
command: string;
|
|
858
|
-
args: string[];
|
|
859
|
-
cwd?: string;
|
|
860
|
-
ignoreError?: boolean;
|
|
861
|
-
}): string;
|
|
862
|
-
/**
|
|
863
|
-
* Execute a command asynchronously and return the execa process. This allows you to hook into
|
|
864
|
-
* stdout/stderr streams and monitor the process.
|
|
865
|
-
*
|
|
866
|
-
* @example Const process = packageManager.executeCommand({ command: 'npm', args: ['install'] });
|
|
867
|
-
* process.stdout?.on('data', (data) => console.log(data.toString())); const result = await
|
|
868
|
-
* process;
|
|
869
|
-
*/
|
|
870
|
-
executeCommand({ command, args, stdio, cwd, ignoreError, env, ...execaOptions }: CommonOptions<'utf8'> & {
|
|
871
|
-
command: string;
|
|
872
|
-
args: string[];
|
|
873
|
-
cwd?: string;
|
|
874
|
-
ignoreError?: boolean;
|
|
875
|
-
}): ExecaChildProcess;
|
|
876
795
|
/** Returns the installed (within node_modules or pnp zip) version of a specified package */
|
|
877
796
|
getInstalledVersion(packageName: string): Promise<string | null>;
|
|
878
797
|
isPackageInstalled(packageName: string): Promise<boolean>;
|
|
@@ -1835,18 +1754,805 @@ declare const userSettingSchema: ZodObject<{
|
|
|
1835
1754
|
}, {
|
|
1836
1755
|
skipOnboarding?: boolean | undefined;
|
|
1837
1756
|
}>>;
|
|
1757
|
+
checklist: ZodOptional<ZodObject<{
|
|
1758
|
+
items: ZodOptional<ZodObject<{
|
|
1759
|
+
accessibilityTests: ZodOptional<ZodObject<{
|
|
1760
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1761
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1762
|
+
}, "strict", ZodTypeAny, {
|
|
1763
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1764
|
+
mutedAt?: number | undefined;
|
|
1765
|
+
}, {
|
|
1766
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1767
|
+
mutedAt?: number | undefined;
|
|
1768
|
+
}>>;
|
|
1769
|
+
autodocs: ZodOptional<ZodObject<{
|
|
1770
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1771
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1772
|
+
}, "strict", ZodTypeAny, {
|
|
1773
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1774
|
+
mutedAt?: number | undefined;
|
|
1775
|
+
}, {
|
|
1776
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1777
|
+
mutedAt?: number | undefined;
|
|
1778
|
+
}>>;
|
|
1779
|
+
ciTests: ZodOptional<ZodObject<{
|
|
1780
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1781
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1782
|
+
}, "strict", ZodTypeAny, {
|
|
1783
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1784
|
+
mutedAt?: number | undefined;
|
|
1785
|
+
}, {
|
|
1786
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1787
|
+
mutedAt?: number | undefined;
|
|
1788
|
+
}>>;
|
|
1789
|
+
controls: ZodOptional<ZodObject<{
|
|
1790
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1791
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1792
|
+
}, "strict", ZodTypeAny, {
|
|
1793
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1794
|
+
mutedAt?: number | undefined;
|
|
1795
|
+
}, {
|
|
1796
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1797
|
+
mutedAt?: number | undefined;
|
|
1798
|
+
}>>;
|
|
1799
|
+
coverage: ZodOptional<ZodObject<{
|
|
1800
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1801
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1802
|
+
}, "strict", ZodTypeAny, {
|
|
1803
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1804
|
+
mutedAt?: number | undefined;
|
|
1805
|
+
}, {
|
|
1806
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1807
|
+
mutedAt?: number | undefined;
|
|
1808
|
+
}>>;
|
|
1809
|
+
guidedTour: ZodOptional<ZodObject<{
|
|
1810
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1811
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1812
|
+
}, "strict", ZodTypeAny, {
|
|
1813
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1814
|
+
mutedAt?: number | undefined;
|
|
1815
|
+
}, {
|
|
1816
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1817
|
+
mutedAt?: number | undefined;
|
|
1818
|
+
}>>;
|
|
1819
|
+
installA11y: ZodOptional<ZodObject<{
|
|
1820
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1821
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1822
|
+
}, "strict", ZodTypeAny, {
|
|
1823
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1824
|
+
mutedAt?: number | undefined;
|
|
1825
|
+
}, {
|
|
1826
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1827
|
+
mutedAt?: number | undefined;
|
|
1828
|
+
}>>;
|
|
1829
|
+
installChromatic: ZodOptional<ZodObject<{
|
|
1830
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1831
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1832
|
+
}, "strict", ZodTypeAny, {
|
|
1833
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1834
|
+
mutedAt?: number | undefined;
|
|
1835
|
+
}, {
|
|
1836
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1837
|
+
mutedAt?: number | undefined;
|
|
1838
|
+
}>>;
|
|
1839
|
+
installDocs: ZodOptional<ZodObject<{
|
|
1840
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1841
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1842
|
+
}, "strict", ZodTypeAny, {
|
|
1843
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1844
|
+
mutedAt?: number | undefined;
|
|
1845
|
+
}, {
|
|
1846
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1847
|
+
mutedAt?: number | undefined;
|
|
1848
|
+
}>>;
|
|
1849
|
+
installVitest: ZodOptional<ZodObject<{
|
|
1850
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1851
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1852
|
+
}, "strict", ZodTypeAny, {
|
|
1853
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1854
|
+
mutedAt?: number | undefined;
|
|
1855
|
+
}, {
|
|
1856
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1857
|
+
mutedAt?: number | undefined;
|
|
1858
|
+
}>>;
|
|
1859
|
+
mdxDocs: ZodOptional<ZodObject<{
|
|
1860
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1861
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1862
|
+
}, "strict", ZodTypeAny, {
|
|
1863
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1864
|
+
mutedAt?: number | undefined;
|
|
1865
|
+
}, {
|
|
1866
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1867
|
+
mutedAt?: number | undefined;
|
|
1868
|
+
}>>;
|
|
1869
|
+
moreComponents: ZodOptional<ZodObject<{
|
|
1870
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1871
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1872
|
+
}, "strict", ZodTypeAny, {
|
|
1873
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1874
|
+
mutedAt?: number | undefined;
|
|
1875
|
+
}, {
|
|
1876
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1877
|
+
mutedAt?: number | undefined;
|
|
1878
|
+
}>>;
|
|
1879
|
+
moreStories: ZodOptional<ZodObject<{
|
|
1880
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1881
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1882
|
+
}, "strict", ZodTypeAny, {
|
|
1883
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1884
|
+
mutedAt?: number | undefined;
|
|
1885
|
+
}, {
|
|
1886
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1887
|
+
mutedAt?: number | undefined;
|
|
1888
|
+
}>>;
|
|
1889
|
+
onboardingSurvey: ZodOptional<ZodObject<{
|
|
1890
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1891
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1892
|
+
}, "strict", ZodTypeAny, {
|
|
1893
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1894
|
+
mutedAt?: number | undefined;
|
|
1895
|
+
}, {
|
|
1896
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1897
|
+
mutedAt?: number | undefined;
|
|
1898
|
+
}>>;
|
|
1899
|
+
organizeStories: ZodOptional<ZodObject<{
|
|
1900
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1901
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1902
|
+
}, "strict", ZodTypeAny, {
|
|
1903
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1904
|
+
mutedAt?: number | undefined;
|
|
1905
|
+
}, {
|
|
1906
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1907
|
+
mutedAt?: number | undefined;
|
|
1908
|
+
}>>;
|
|
1909
|
+
publishStorybook: ZodOptional<ZodObject<{
|
|
1910
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1911
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1912
|
+
}, "strict", ZodTypeAny, {
|
|
1913
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1914
|
+
mutedAt?: number | undefined;
|
|
1915
|
+
}, {
|
|
1916
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1917
|
+
mutedAt?: number | undefined;
|
|
1918
|
+
}>>;
|
|
1919
|
+
renderComponent: ZodOptional<ZodObject<{
|
|
1920
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1921
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1922
|
+
}, "strict", ZodTypeAny, {
|
|
1923
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1924
|
+
mutedAt?: number | undefined;
|
|
1925
|
+
}, {
|
|
1926
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1927
|
+
mutedAt?: number | undefined;
|
|
1928
|
+
}>>;
|
|
1929
|
+
runTests: ZodOptional<ZodObject<{
|
|
1930
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1931
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1932
|
+
}, "strict", ZodTypeAny, {
|
|
1933
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1934
|
+
mutedAt?: number | undefined;
|
|
1935
|
+
}, {
|
|
1936
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1937
|
+
mutedAt?: number | undefined;
|
|
1938
|
+
}>>;
|
|
1939
|
+
viewports: ZodOptional<ZodObject<{
|
|
1940
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1941
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1942
|
+
}, "strict", ZodTypeAny, {
|
|
1943
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1944
|
+
mutedAt?: number | undefined;
|
|
1945
|
+
}, {
|
|
1946
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1947
|
+
mutedAt?: number | undefined;
|
|
1948
|
+
}>>;
|
|
1949
|
+
visualTests: ZodOptional<ZodObject<{
|
|
1950
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1951
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1952
|
+
}, "strict", ZodTypeAny, {
|
|
1953
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1954
|
+
mutedAt?: number | undefined;
|
|
1955
|
+
}, {
|
|
1956
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1957
|
+
mutedAt?: number | undefined;
|
|
1958
|
+
}>>;
|
|
1959
|
+
whatsNewStorybook10: ZodOptional<ZodObject<{
|
|
1960
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1961
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1962
|
+
}, "strict", ZodTypeAny, {
|
|
1963
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1964
|
+
mutedAt?: number | undefined;
|
|
1965
|
+
}, {
|
|
1966
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1967
|
+
mutedAt?: number | undefined;
|
|
1968
|
+
}>>;
|
|
1969
|
+
writeInteractions: ZodOptional<ZodObject<{
|
|
1970
|
+
status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
|
|
1971
|
+
mutedAt: ZodOptional<ZodNumber>;
|
|
1972
|
+
}, "strict", ZodTypeAny, {
|
|
1973
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1974
|
+
mutedAt?: number | undefined;
|
|
1975
|
+
}, {
|
|
1976
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1977
|
+
mutedAt?: number | undefined;
|
|
1978
|
+
}>>;
|
|
1979
|
+
}, "strip", ZodTypeAny, {
|
|
1980
|
+
controls?: {
|
|
1981
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1982
|
+
mutedAt?: number | undefined;
|
|
1983
|
+
} | undefined;
|
|
1984
|
+
autodocs?: {
|
|
1985
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1986
|
+
mutedAt?: number | undefined;
|
|
1987
|
+
} | undefined;
|
|
1988
|
+
accessibilityTests?: {
|
|
1989
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1990
|
+
mutedAt?: number | undefined;
|
|
1991
|
+
} | undefined;
|
|
1992
|
+
ciTests?: {
|
|
1993
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1994
|
+
mutedAt?: number | undefined;
|
|
1995
|
+
} | undefined;
|
|
1996
|
+
coverage?: {
|
|
1997
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
1998
|
+
mutedAt?: number | undefined;
|
|
1999
|
+
} | undefined;
|
|
2000
|
+
guidedTour?: {
|
|
2001
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2002
|
+
mutedAt?: number | undefined;
|
|
2003
|
+
} | undefined;
|
|
2004
|
+
installA11y?: {
|
|
2005
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2006
|
+
mutedAt?: number | undefined;
|
|
2007
|
+
} | undefined;
|
|
2008
|
+
installChromatic?: {
|
|
2009
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2010
|
+
mutedAt?: number | undefined;
|
|
2011
|
+
} | undefined;
|
|
2012
|
+
installDocs?: {
|
|
2013
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2014
|
+
mutedAt?: number | undefined;
|
|
2015
|
+
} | undefined;
|
|
2016
|
+
installVitest?: {
|
|
2017
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2018
|
+
mutedAt?: number | undefined;
|
|
2019
|
+
} | undefined;
|
|
2020
|
+
mdxDocs?: {
|
|
2021
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2022
|
+
mutedAt?: number | undefined;
|
|
2023
|
+
} | undefined;
|
|
2024
|
+
moreComponents?: {
|
|
2025
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2026
|
+
mutedAt?: number | undefined;
|
|
2027
|
+
} | undefined;
|
|
2028
|
+
moreStories?: {
|
|
2029
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2030
|
+
mutedAt?: number | undefined;
|
|
2031
|
+
} | undefined;
|
|
2032
|
+
onboardingSurvey?: {
|
|
2033
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2034
|
+
mutedAt?: number | undefined;
|
|
2035
|
+
} | undefined;
|
|
2036
|
+
organizeStories?: {
|
|
2037
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2038
|
+
mutedAt?: number | undefined;
|
|
2039
|
+
} | undefined;
|
|
2040
|
+
publishStorybook?: {
|
|
2041
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2042
|
+
mutedAt?: number | undefined;
|
|
2043
|
+
} | undefined;
|
|
2044
|
+
renderComponent?: {
|
|
2045
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2046
|
+
mutedAt?: number | undefined;
|
|
2047
|
+
} | undefined;
|
|
2048
|
+
runTests?: {
|
|
2049
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2050
|
+
mutedAt?: number | undefined;
|
|
2051
|
+
} | undefined;
|
|
2052
|
+
viewports?: {
|
|
2053
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2054
|
+
mutedAt?: number | undefined;
|
|
2055
|
+
} | undefined;
|
|
2056
|
+
visualTests?: {
|
|
2057
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2058
|
+
mutedAt?: number | undefined;
|
|
2059
|
+
} | undefined;
|
|
2060
|
+
whatsNewStorybook10?: {
|
|
2061
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2062
|
+
mutedAt?: number | undefined;
|
|
2063
|
+
} | undefined;
|
|
2064
|
+
writeInteractions?: {
|
|
2065
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2066
|
+
mutedAt?: number | undefined;
|
|
2067
|
+
} | undefined;
|
|
2068
|
+
}, {
|
|
2069
|
+
controls?: {
|
|
2070
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2071
|
+
mutedAt?: number | undefined;
|
|
2072
|
+
} | undefined;
|
|
2073
|
+
autodocs?: {
|
|
2074
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2075
|
+
mutedAt?: number | undefined;
|
|
2076
|
+
} | undefined;
|
|
2077
|
+
accessibilityTests?: {
|
|
2078
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2079
|
+
mutedAt?: number | undefined;
|
|
2080
|
+
} | undefined;
|
|
2081
|
+
ciTests?: {
|
|
2082
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2083
|
+
mutedAt?: number | undefined;
|
|
2084
|
+
} | undefined;
|
|
2085
|
+
coverage?: {
|
|
2086
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2087
|
+
mutedAt?: number | undefined;
|
|
2088
|
+
} | undefined;
|
|
2089
|
+
guidedTour?: {
|
|
2090
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2091
|
+
mutedAt?: number | undefined;
|
|
2092
|
+
} | undefined;
|
|
2093
|
+
installA11y?: {
|
|
2094
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2095
|
+
mutedAt?: number | undefined;
|
|
2096
|
+
} | undefined;
|
|
2097
|
+
installChromatic?: {
|
|
2098
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2099
|
+
mutedAt?: number | undefined;
|
|
2100
|
+
} | undefined;
|
|
2101
|
+
installDocs?: {
|
|
2102
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2103
|
+
mutedAt?: number | undefined;
|
|
2104
|
+
} | undefined;
|
|
2105
|
+
installVitest?: {
|
|
2106
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2107
|
+
mutedAt?: number | undefined;
|
|
2108
|
+
} | undefined;
|
|
2109
|
+
mdxDocs?: {
|
|
2110
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2111
|
+
mutedAt?: number | undefined;
|
|
2112
|
+
} | undefined;
|
|
2113
|
+
moreComponents?: {
|
|
2114
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2115
|
+
mutedAt?: number | undefined;
|
|
2116
|
+
} | undefined;
|
|
2117
|
+
moreStories?: {
|
|
2118
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2119
|
+
mutedAt?: number | undefined;
|
|
2120
|
+
} | undefined;
|
|
2121
|
+
onboardingSurvey?: {
|
|
2122
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2123
|
+
mutedAt?: number | undefined;
|
|
2124
|
+
} | undefined;
|
|
2125
|
+
organizeStories?: {
|
|
2126
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2127
|
+
mutedAt?: number | undefined;
|
|
2128
|
+
} | undefined;
|
|
2129
|
+
publishStorybook?: {
|
|
2130
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2131
|
+
mutedAt?: number | undefined;
|
|
2132
|
+
} | undefined;
|
|
2133
|
+
renderComponent?: {
|
|
2134
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2135
|
+
mutedAt?: number | undefined;
|
|
2136
|
+
} | undefined;
|
|
2137
|
+
runTests?: {
|
|
2138
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2139
|
+
mutedAt?: number | undefined;
|
|
2140
|
+
} | undefined;
|
|
2141
|
+
viewports?: {
|
|
2142
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2143
|
+
mutedAt?: number | undefined;
|
|
2144
|
+
} | undefined;
|
|
2145
|
+
visualTests?: {
|
|
2146
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2147
|
+
mutedAt?: number | undefined;
|
|
2148
|
+
} | undefined;
|
|
2149
|
+
whatsNewStorybook10?: {
|
|
2150
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2151
|
+
mutedAt?: number | undefined;
|
|
2152
|
+
} | undefined;
|
|
2153
|
+
writeInteractions?: {
|
|
2154
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2155
|
+
mutedAt?: number | undefined;
|
|
2156
|
+
} | undefined;
|
|
2157
|
+
}>>;
|
|
2158
|
+
widget: ZodOptional<ZodObject<{
|
|
2159
|
+
disable: ZodOptional<ZodBoolean>;
|
|
2160
|
+
}, "strip", ZodTypeAny, {
|
|
2161
|
+
disable?: boolean | undefined;
|
|
2162
|
+
}, {
|
|
2163
|
+
disable?: boolean | undefined;
|
|
2164
|
+
}>>;
|
|
2165
|
+
}, "strip", ZodTypeAny, {
|
|
2166
|
+
items?: {
|
|
2167
|
+
controls?: {
|
|
2168
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2169
|
+
mutedAt?: number | undefined;
|
|
2170
|
+
} | undefined;
|
|
2171
|
+
autodocs?: {
|
|
2172
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2173
|
+
mutedAt?: number | undefined;
|
|
2174
|
+
} | undefined;
|
|
2175
|
+
accessibilityTests?: {
|
|
2176
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2177
|
+
mutedAt?: number | undefined;
|
|
2178
|
+
} | undefined;
|
|
2179
|
+
ciTests?: {
|
|
2180
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2181
|
+
mutedAt?: number | undefined;
|
|
2182
|
+
} | undefined;
|
|
2183
|
+
coverage?: {
|
|
2184
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2185
|
+
mutedAt?: number | undefined;
|
|
2186
|
+
} | undefined;
|
|
2187
|
+
guidedTour?: {
|
|
2188
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2189
|
+
mutedAt?: number | undefined;
|
|
2190
|
+
} | undefined;
|
|
2191
|
+
installA11y?: {
|
|
2192
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2193
|
+
mutedAt?: number | undefined;
|
|
2194
|
+
} | undefined;
|
|
2195
|
+
installChromatic?: {
|
|
2196
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2197
|
+
mutedAt?: number | undefined;
|
|
2198
|
+
} | undefined;
|
|
2199
|
+
installDocs?: {
|
|
2200
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2201
|
+
mutedAt?: number | undefined;
|
|
2202
|
+
} | undefined;
|
|
2203
|
+
installVitest?: {
|
|
2204
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2205
|
+
mutedAt?: number | undefined;
|
|
2206
|
+
} | undefined;
|
|
2207
|
+
mdxDocs?: {
|
|
2208
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2209
|
+
mutedAt?: number | undefined;
|
|
2210
|
+
} | undefined;
|
|
2211
|
+
moreComponents?: {
|
|
2212
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2213
|
+
mutedAt?: number | undefined;
|
|
2214
|
+
} | undefined;
|
|
2215
|
+
moreStories?: {
|
|
2216
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2217
|
+
mutedAt?: number | undefined;
|
|
2218
|
+
} | undefined;
|
|
2219
|
+
onboardingSurvey?: {
|
|
2220
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2221
|
+
mutedAt?: number | undefined;
|
|
2222
|
+
} | undefined;
|
|
2223
|
+
organizeStories?: {
|
|
2224
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2225
|
+
mutedAt?: number | undefined;
|
|
2226
|
+
} | undefined;
|
|
2227
|
+
publishStorybook?: {
|
|
2228
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2229
|
+
mutedAt?: number | undefined;
|
|
2230
|
+
} | undefined;
|
|
2231
|
+
renderComponent?: {
|
|
2232
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2233
|
+
mutedAt?: number | undefined;
|
|
2234
|
+
} | undefined;
|
|
2235
|
+
runTests?: {
|
|
2236
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2237
|
+
mutedAt?: number | undefined;
|
|
2238
|
+
} | undefined;
|
|
2239
|
+
viewports?: {
|
|
2240
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2241
|
+
mutedAt?: number | undefined;
|
|
2242
|
+
} | undefined;
|
|
2243
|
+
visualTests?: {
|
|
2244
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2245
|
+
mutedAt?: number | undefined;
|
|
2246
|
+
} | undefined;
|
|
2247
|
+
whatsNewStorybook10?: {
|
|
2248
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2249
|
+
mutedAt?: number | undefined;
|
|
2250
|
+
} | undefined;
|
|
2251
|
+
writeInteractions?: {
|
|
2252
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2253
|
+
mutedAt?: number | undefined;
|
|
2254
|
+
} | undefined;
|
|
2255
|
+
} | undefined;
|
|
2256
|
+
widget?: {
|
|
2257
|
+
disable?: boolean | undefined;
|
|
2258
|
+
} | undefined;
|
|
2259
|
+
}, {
|
|
2260
|
+
items?: {
|
|
2261
|
+
controls?: {
|
|
2262
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2263
|
+
mutedAt?: number | undefined;
|
|
2264
|
+
} | undefined;
|
|
2265
|
+
autodocs?: {
|
|
2266
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2267
|
+
mutedAt?: number | undefined;
|
|
2268
|
+
} | undefined;
|
|
2269
|
+
accessibilityTests?: {
|
|
2270
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2271
|
+
mutedAt?: number | undefined;
|
|
2272
|
+
} | undefined;
|
|
2273
|
+
ciTests?: {
|
|
2274
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2275
|
+
mutedAt?: number | undefined;
|
|
2276
|
+
} | undefined;
|
|
2277
|
+
coverage?: {
|
|
2278
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2279
|
+
mutedAt?: number | undefined;
|
|
2280
|
+
} | undefined;
|
|
2281
|
+
guidedTour?: {
|
|
2282
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2283
|
+
mutedAt?: number | undefined;
|
|
2284
|
+
} | undefined;
|
|
2285
|
+
installA11y?: {
|
|
2286
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2287
|
+
mutedAt?: number | undefined;
|
|
2288
|
+
} | undefined;
|
|
2289
|
+
installChromatic?: {
|
|
2290
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2291
|
+
mutedAt?: number | undefined;
|
|
2292
|
+
} | undefined;
|
|
2293
|
+
installDocs?: {
|
|
2294
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2295
|
+
mutedAt?: number | undefined;
|
|
2296
|
+
} | undefined;
|
|
2297
|
+
installVitest?: {
|
|
2298
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2299
|
+
mutedAt?: number | undefined;
|
|
2300
|
+
} | undefined;
|
|
2301
|
+
mdxDocs?: {
|
|
2302
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2303
|
+
mutedAt?: number | undefined;
|
|
2304
|
+
} | undefined;
|
|
2305
|
+
moreComponents?: {
|
|
2306
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2307
|
+
mutedAt?: number | undefined;
|
|
2308
|
+
} | undefined;
|
|
2309
|
+
moreStories?: {
|
|
2310
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2311
|
+
mutedAt?: number | undefined;
|
|
2312
|
+
} | undefined;
|
|
2313
|
+
onboardingSurvey?: {
|
|
2314
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2315
|
+
mutedAt?: number | undefined;
|
|
2316
|
+
} | undefined;
|
|
2317
|
+
organizeStories?: {
|
|
2318
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2319
|
+
mutedAt?: number | undefined;
|
|
2320
|
+
} | undefined;
|
|
2321
|
+
publishStorybook?: {
|
|
2322
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2323
|
+
mutedAt?: number | undefined;
|
|
2324
|
+
} | undefined;
|
|
2325
|
+
renderComponent?: {
|
|
2326
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2327
|
+
mutedAt?: number | undefined;
|
|
2328
|
+
} | undefined;
|
|
2329
|
+
runTests?: {
|
|
2330
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2331
|
+
mutedAt?: number | undefined;
|
|
2332
|
+
} | undefined;
|
|
2333
|
+
viewports?: {
|
|
2334
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2335
|
+
mutedAt?: number | undefined;
|
|
2336
|
+
} | undefined;
|
|
2337
|
+
visualTests?: {
|
|
2338
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2339
|
+
mutedAt?: number | undefined;
|
|
2340
|
+
} | undefined;
|
|
2341
|
+
whatsNewStorybook10?: {
|
|
2342
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2343
|
+
mutedAt?: number | undefined;
|
|
2344
|
+
} | undefined;
|
|
2345
|
+
writeInteractions?: {
|
|
2346
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2347
|
+
mutedAt?: number | undefined;
|
|
2348
|
+
} | undefined;
|
|
2349
|
+
} | undefined;
|
|
2350
|
+
widget?: {
|
|
2351
|
+
disable?: boolean | undefined;
|
|
2352
|
+
} | undefined;
|
|
2353
|
+
}>>;
|
|
1838
2354
|
}, "strip", ZodTypeAny, {
|
|
1839
2355
|
version: number;
|
|
1840
2356
|
init?: {
|
|
1841
2357
|
skipOnboarding?: boolean | undefined;
|
|
1842
2358
|
} | undefined;
|
|
1843
2359
|
userSince?: number | undefined;
|
|
2360
|
+
checklist?: {
|
|
2361
|
+
items?: {
|
|
2362
|
+
controls?: {
|
|
2363
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2364
|
+
mutedAt?: number | undefined;
|
|
2365
|
+
} | undefined;
|
|
2366
|
+
autodocs?: {
|
|
2367
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2368
|
+
mutedAt?: number | undefined;
|
|
2369
|
+
} | undefined;
|
|
2370
|
+
accessibilityTests?: {
|
|
2371
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2372
|
+
mutedAt?: number | undefined;
|
|
2373
|
+
} | undefined;
|
|
2374
|
+
ciTests?: {
|
|
2375
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2376
|
+
mutedAt?: number | undefined;
|
|
2377
|
+
} | undefined;
|
|
2378
|
+
coverage?: {
|
|
2379
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2380
|
+
mutedAt?: number | undefined;
|
|
2381
|
+
} | undefined;
|
|
2382
|
+
guidedTour?: {
|
|
2383
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2384
|
+
mutedAt?: number | undefined;
|
|
2385
|
+
} | undefined;
|
|
2386
|
+
installA11y?: {
|
|
2387
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2388
|
+
mutedAt?: number | undefined;
|
|
2389
|
+
} | undefined;
|
|
2390
|
+
installChromatic?: {
|
|
2391
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2392
|
+
mutedAt?: number | undefined;
|
|
2393
|
+
} | undefined;
|
|
2394
|
+
installDocs?: {
|
|
2395
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2396
|
+
mutedAt?: number | undefined;
|
|
2397
|
+
} | undefined;
|
|
2398
|
+
installVitest?: {
|
|
2399
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2400
|
+
mutedAt?: number | undefined;
|
|
2401
|
+
} | undefined;
|
|
2402
|
+
mdxDocs?: {
|
|
2403
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2404
|
+
mutedAt?: number | undefined;
|
|
2405
|
+
} | undefined;
|
|
2406
|
+
moreComponents?: {
|
|
2407
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2408
|
+
mutedAt?: number | undefined;
|
|
2409
|
+
} | undefined;
|
|
2410
|
+
moreStories?: {
|
|
2411
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2412
|
+
mutedAt?: number | undefined;
|
|
2413
|
+
} | undefined;
|
|
2414
|
+
onboardingSurvey?: {
|
|
2415
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2416
|
+
mutedAt?: number | undefined;
|
|
2417
|
+
} | undefined;
|
|
2418
|
+
organizeStories?: {
|
|
2419
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2420
|
+
mutedAt?: number | undefined;
|
|
2421
|
+
} | undefined;
|
|
2422
|
+
publishStorybook?: {
|
|
2423
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2424
|
+
mutedAt?: number | undefined;
|
|
2425
|
+
} | undefined;
|
|
2426
|
+
renderComponent?: {
|
|
2427
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2428
|
+
mutedAt?: number | undefined;
|
|
2429
|
+
} | undefined;
|
|
2430
|
+
runTests?: {
|
|
2431
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2432
|
+
mutedAt?: number | undefined;
|
|
2433
|
+
} | undefined;
|
|
2434
|
+
viewports?: {
|
|
2435
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2436
|
+
mutedAt?: number | undefined;
|
|
2437
|
+
} | undefined;
|
|
2438
|
+
visualTests?: {
|
|
2439
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2440
|
+
mutedAt?: number | undefined;
|
|
2441
|
+
} | undefined;
|
|
2442
|
+
whatsNewStorybook10?: {
|
|
2443
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2444
|
+
mutedAt?: number | undefined;
|
|
2445
|
+
} | undefined;
|
|
2446
|
+
writeInteractions?: {
|
|
2447
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2448
|
+
mutedAt?: number | undefined;
|
|
2449
|
+
} | undefined;
|
|
2450
|
+
} | undefined;
|
|
2451
|
+
widget?: {
|
|
2452
|
+
disable?: boolean | undefined;
|
|
2453
|
+
} | undefined;
|
|
2454
|
+
} | undefined;
|
|
1844
2455
|
}, {
|
|
1845
2456
|
version: number;
|
|
1846
2457
|
init?: {
|
|
1847
2458
|
skipOnboarding?: boolean | undefined;
|
|
1848
2459
|
} | undefined;
|
|
1849
2460
|
userSince?: number | undefined;
|
|
2461
|
+
checklist?: {
|
|
2462
|
+
items?: {
|
|
2463
|
+
controls?: {
|
|
2464
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2465
|
+
mutedAt?: number | undefined;
|
|
2466
|
+
} | undefined;
|
|
2467
|
+
autodocs?: {
|
|
2468
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2469
|
+
mutedAt?: number | undefined;
|
|
2470
|
+
} | undefined;
|
|
2471
|
+
accessibilityTests?: {
|
|
2472
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2473
|
+
mutedAt?: number | undefined;
|
|
2474
|
+
} | undefined;
|
|
2475
|
+
ciTests?: {
|
|
2476
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2477
|
+
mutedAt?: number | undefined;
|
|
2478
|
+
} | undefined;
|
|
2479
|
+
coverage?: {
|
|
2480
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2481
|
+
mutedAt?: number | undefined;
|
|
2482
|
+
} | undefined;
|
|
2483
|
+
guidedTour?: {
|
|
2484
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2485
|
+
mutedAt?: number | undefined;
|
|
2486
|
+
} | undefined;
|
|
2487
|
+
installA11y?: {
|
|
2488
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2489
|
+
mutedAt?: number | undefined;
|
|
2490
|
+
} | undefined;
|
|
2491
|
+
installChromatic?: {
|
|
2492
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2493
|
+
mutedAt?: number | undefined;
|
|
2494
|
+
} | undefined;
|
|
2495
|
+
installDocs?: {
|
|
2496
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2497
|
+
mutedAt?: number | undefined;
|
|
2498
|
+
} | undefined;
|
|
2499
|
+
installVitest?: {
|
|
2500
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2501
|
+
mutedAt?: number | undefined;
|
|
2502
|
+
} | undefined;
|
|
2503
|
+
mdxDocs?: {
|
|
2504
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2505
|
+
mutedAt?: number | undefined;
|
|
2506
|
+
} | undefined;
|
|
2507
|
+
moreComponents?: {
|
|
2508
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2509
|
+
mutedAt?: number | undefined;
|
|
2510
|
+
} | undefined;
|
|
2511
|
+
moreStories?: {
|
|
2512
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2513
|
+
mutedAt?: number | undefined;
|
|
2514
|
+
} | undefined;
|
|
2515
|
+
onboardingSurvey?: {
|
|
2516
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2517
|
+
mutedAt?: number | undefined;
|
|
2518
|
+
} | undefined;
|
|
2519
|
+
organizeStories?: {
|
|
2520
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2521
|
+
mutedAt?: number | undefined;
|
|
2522
|
+
} | undefined;
|
|
2523
|
+
publishStorybook?: {
|
|
2524
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2525
|
+
mutedAt?: number | undefined;
|
|
2526
|
+
} | undefined;
|
|
2527
|
+
renderComponent?: {
|
|
2528
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2529
|
+
mutedAt?: number | undefined;
|
|
2530
|
+
} | undefined;
|
|
2531
|
+
runTests?: {
|
|
2532
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2533
|
+
mutedAt?: number | undefined;
|
|
2534
|
+
} | undefined;
|
|
2535
|
+
viewports?: {
|
|
2536
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2537
|
+
mutedAt?: number | undefined;
|
|
2538
|
+
} | undefined;
|
|
2539
|
+
visualTests?: {
|
|
2540
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2541
|
+
mutedAt?: number | undefined;
|
|
2542
|
+
} | undefined;
|
|
2543
|
+
whatsNewStorybook10?: {
|
|
2544
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2545
|
+
mutedAt?: number | undefined;
|
|
2546
|
+
} | undefined;
|
|
2547
|
+
writeInteractions?: {
|
|
2548
|
+
status?: "open" | "done" | "accepted" | "skipped" | undefined;
|
|
2549
|
+
mutedAt?: number | undefined;
|
|
2550
|
+
} | undefined;
|
|
2551
|
+
} | undefined;
|
|
2552
|
+
widget?: {
|
|
2553
|
+
disable?: boolean | undefined;
|
|
2554
|
+
} | undefined;
|
|
2555
|
+
} | undefined;
|
|
1850
2556
|
}>;
|
|
1851
2557
|
declare function globalSettings(filePath?: string): Promise<Settings>;
|
|
1852
2558
|
declare function _clearGlobalSettings(): void;
|
|
@@ -1868,4 +2574,644 @@ declare class Settings {
|
|
|
1868
2574
|
save(): Promise<void>;
|
|
1869
2575
|
}
|
|
1870
2576
|
|
|
1871
|
-
|
|
2577
|
+
/**
|
|
2578
|
+
* Actions represent the type of change to a location value.
|
|
2579
|
+
*/
|
|
2580
|
+
declare enum Action {
|
|
2581
|
+
/**
|
|
2582
|
+
* A POP indicates a change to an arbitrary index in the history stack, such
|
|
2583
|
+
* as a back or forward navigation. It does not describe the direction of the
|
|
2584
|
+
* navigation, only that the current index changed.
|
|
2585
|
+
*
|
|
2586
|
+
* Note: This is the default action for newly created history objects.
|
|
2587
|
+
*/
|
|
2588
|
+
Pop = "POP",
|
|
2589
|
+
/**
|
|
2590
|
+
* A PUSH indicates a new entry being added to the history stack, such as when
|
|
2591
|
+
* a link is clicked and a new page loads. When this happens, all subsequent
|
|
2592
|
+
* entries in the stack are lost.
|
|
2593
|
+
*/
|
|
2594
|
+
Push = "PUSH",
|
|
2595
|
+
/**
|
|
2596
|
+
* A REPLACE indicates the entry at the current index in the history stack
|
|
2597
|
+
* being replaced by a new one.
|
|
2598
|
+
*/
|
|
2599
|
+
Replace = "REPLACE"
|
|
2600
|
+
}
|
|
2601
|
+
/**
|
|
2602
|
+
* The pathname, search, and hash values of a URL.
|
|
2603
|
+
*/
|
|
2604
|
+
interface Path {
|
|
2605
|
+
/**
|
|
2606
|
+
* A URL pathname, beginning with a /.
|
|
2607
|
+
*/
|
|
2608
|
+
pathname: string;
|
|
2609
|
+
/**
|
|
2610
|
+
* A URL search string, beginning with a ?.
|
|
2611
|
+
*/
|
|
2612
|
+
search: string;
|
|
2613
|
+
/**
|
|
2614
|
+
* A URL fragment identifier, beginning with a #.
|
|
2615
|
+
*/
|
|
2616
|
+
hash: string;
|
|
2617
|
+
}
|
|
2618
|
+
/**
|
|
2619
|
+
* An entry in a history stack. A location contains information about the
|
|
2620
|
+
* URL path, as well as possibly some arbitrary state and a key.
|
|
2621
|
+
*/
|
|
2622
|
+
interface Location extends Path {
|
|
2623
|
+
/**
|
|
2624
|
+
* A value of arbitrary data associated with this location.
|
|
2625
|
+
*/
|
|
2626
|
+
state: any;
|
|
2627
|
+
/**
|
|
2628
|
+
* A unique string associated with this location. May be used to safely store
|
|
2629
|
+
* and retrieve data in some other storage API, like `localStorage`.
|
|
2630
|
+
*
|
|
2631
|
+
* Note: This value is always "default" on the initial location.
|
|
2632
|
+
*/
|
|
2633
|
+
key: string;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* Map of routeId -> data returned from a loader/action/error
|
|
2638
|
+
*/
|
|
2639
|
+
interface RouteData {
|
|
2640
|
+
[routeId: string]: any;
|
|
2641
|
+
}
|
|
2642
|
+
declare enum ResultType {
|
|
2643
|
+
data = "data",
|
|
2644
|
+
deferred = "deferred",
|
|
2645
|
+
redirect = "redirect",
|
|
2646
|
+
error = "error"
|
|
2647
|
+
}
|
|
2648
|
+
/**
|
|
2649
|
+
* Successful result from a loader or action
|
|
2650
|
+
*/
|
|
2651
|
+
interface SuccessResult {
|
|
2652
|
+
type: ResultType.data;
|
|
2653
|
+
data: any;
|
|
2654
|
+
statusCode?: number;
|
|
2655
|
+
headers?: Headers;
|
|
2656
|
+
}
|
|
2657
|
+
/**
|
|
2658
|
+
* Successful defer() result from a loader or action
|
|
2659
|
+
*/
|
|
2660
|
+
interface DeferredResult {
|
|
2661
|
+
type: ResultType.deferred;
|
|
2662
|
+
deferredData: DeferredData;
|
|
2663
|
+
statusCode?: number;
|
|
2664
|
+
headers?: Headers;
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
* Redirect result from a loader or action
|
|
2668
|
+
*/
|
|
2669
|
+
interface RedirectResult {
|
|
2670
|
+
type: ResultType.redirect;
|
|
2671
|
+
status: number;
|
|
2672
|
+
location: string;
|
|
2673
|
+
revalidate: boolean;
|
|
2674
|
+
reloadDocument?: boolean;
|
|
2675
|
+
}
|
|
2676
|
+
/**
|
|
2677
|
+
* Unsuccessful result from a loader or action
|
|
2678
|
+
*/
|
|
2679
|
+
interface ErrorResult {
|
|
2680
|
+
type: ResultType.error;
|
|
2681
|
+
error: any;
|
|
2682
|
+
headers?: Headers;
|
|
2683
|
+
}
|
|
2684
|
+
/**
|
|
2685
|
+
* Result from a loader or action - potentially successful or unsuccessful
|
|
2686
|
+
*/
|
|
2687
|
+
type DataResult = SuccessResult | DeferredResult | RedirectResult | ErrorResult;
|
|
2688
|
+
type LowerCaseFormMethod = "get" | "post" | "put" | "patch" | "delete";
|
|
2689
|
+
type UpperCaseFormMethod = Uppercase<LowerCaseFormMethod>;
|
|
2690
|
+
/**
|
|
2691
|
+
* Active navigation/fetcher form methods are exposed in lowercase on the
|
|
2692
|
+
* RouterState
|
|
2693
|
+
*/
|
|
2694
|
+
type FormMethod = LowerCaseFormMethod;
|
|
2695
|
+
/**
|
|
2696
|
+
* In v7, active navigation/fetcher form methods are exposed in uppercase on the
|
|
2697
|
+
* RouterState. This is to align with the normalization done via fetch().
|
|
2698
|
+
*/
|
|
2699
|
+
type V7_FormMethod = UpperCaseFormMethod;
|
|
2700
|
+
type FormEncType = "application/x-www-form-urlencoded" | "multipart/form-data" | "application/json" | "text/plain";
|
|
2701
|
+
type JsonObject = {
|
|
2702
|
+
[Key in string]: JsonValue;
|
|
2703
|
+
} & {
|
|
2704
|
+
[Key in string]?: JsonValue | undefined;
|
|
2705
|
+
};
|
|
2706
|
+
type JsonArray = JsonValue[] | readonly JsonValue[];
|
|
2707
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
2708
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
2709
|
+
/**
|
|
2710
|
+
* @private
|
|
2711
|
+
* Internal interface to pass around for action submissions, not intended for
|
|
2712
|
+
* external consumption
|
|
2713
|
+
*/
|
|
2714
|
+
type Submission = {
|
|
2715
|
+
formMethod: FormMethod | V7_FormMethod;
|
|
2716
|
+
formAction: string;
|
|
2717
|
+
formEncType: FormEncType;
|
|
2718
|
+
formData: FormData;
|
|
2719
|
+
json: undefined;
|
|
2720
|
+
text: undefined;
|
|
2721
|
+
} | {
|
|
2722
|
+
formMethod: FormMethod | V7_FormMethod;
|
|
2723
|
+
formAction: string;
|
|
2724
|
+
formEncType: FormEncType;
|
|
2725
|
+
formData: undefined;
|
|
2726
|
+
json: JsonValue;
|
|
2727
|
+
text: undefined;
|
|
2728
|
+
} | {
|
|
2729
|
+
formMethod: FormMethod | V7_FormMethod;
|
|
2730
|
+
formAction: string;
|
|
2731
|
+
formEncType: FormEncType;
|
|
2732
|
+
formData: undefined;
|
|
2733
|
+
json: undefined;
|
|
2734
|
+
text: string;
|
|
2735
|
+
};
|
|
2736
|
+
/**
|
|
2737
|
+
* @private
|
|
2738
|
+
* Arguments passed to route loader/action functions. Same for now but we keep
|
|
2739
|
+
* this as a private implementation detail in case they diverge in the future.
|
|
2740
|
+
*/
|
|
2741
|
+
interface DataFunctionArgs {
|
|
2742
|
+
request: Request;
|
|
2743
|
+
params: Params;
|
|
2744
|
+
context?: any;
|
|
2745
|
+
}
|
|
2746
|
+
/**
|
|
2747
|
+
* Arguments passed to loader functions
|
|
2748
|
+
*/
|
|
2749
|
+
interface LoaderFunctionArgs extends DataFunctionArgs {
|
|
2750
|
+
}
|
|
2751
|
+
/**
|
|
2752
|
+
* Arguments passed to action functions
|
|
2753
|
+
*/
|
|
2754
|
+
interface ActionFunctionArgs extends DataFunctionArgs {
|
|
2755
|
+
}
|
|
2756
|
+
/**
|
|
2757
|
+
* Loaders and actions can return anything except `undefined` (`null` is a
|
|
2758
|
+
* valid return value if there is no data to return). Responses are preferred
|
|
2759
|
+
* and will ease any future migration to Remix
|
|
2760
|
+
*/
|
|
2761
|
+
type DataFunctionValue = Response | NonNullable<unknown> | null;
|
|
2762
|
+
/**
|
|
2763
|
+
* Route loader function signature
|
|
2764
|
+
*/
|
|
2765
|
+
interface LoaderFunction {
|
|
2766
|
+
(args: LoaderFunctionArgs): Promise<DataFunctionValue> | DataFunctionValue;
|
|
2767
|
+
}
|
|
2768
|
+
/**
|
|
2769
|
+
* Route action function signature
|
|
2770
|
+
*/
|
|
2771
|
+
interface ActionFunction {
|
|
2772
|
+
(args: ActionFunctionArgs): Promise<DataFunctionValue> | DataFunctionValue;
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
* Route shouldRevalidate function signature. This runs after any submission
|
|
2776
|
+
* (navigation or fetcher), so we flatten the navigation/fetcher submission
|
|
2777
|
+
* onto the arguments. It shouldn't matter whether it came from a navigation
|
|
2778
|
+
* or a fetcher, what really matters is the URLs and the formData since loaders
|
|
2779
|
+
* have to re-run based on the data models that were potentially mutated.
|
|
2780
|
+
*/
|
|
2781
|
+
interface ShouldRevalidateFunction {
|
|
2782
|
+
(args: {
|
|
2783
|
+
currentUrl: URL;
|
|
2784
|
+
currentParams: AgnosticDataRouteMatch["params"];
|
|
2785
|
+
nextUrl: URL;
|
|
2786
|
+
nextParams: AgnosticDataRouteMatch["params"];
|
|
2787
|
+
formMethod?: Submission["formMethod"];
|
|
2788
|
+
formAction?: Submission["formAction"];
|
|
2789
|
+
formEncType?: Submission["formEncType"];
|
|
2790
|
+
text?: Submission["text"];
|
|
2791
|
+
formData?: Submission["formData"];
|
|
2792
|
+
json?: Submission["json"];
|
|
2793
|
+
actionResult?: DataResult;
|
|
2794
|
+
defaultShouldRevalidate: boolean;
|
|
2795
|
+
}): boolean;
|
|
2796
|
+
}
|
|
2797
|
+
/**
|
|
2798
|
+
* Keys we cannot change from within a lazy() function. We spread all other keys
|
|
2799
|
+
* onto the route. Either they're meaningful to the router, or they'll get
|
|
2800
|
+
* ignored.
|
|
2801
|
+
*/
|
|
2802
|
+
type ImmutableRouteKey = "lazy" | "caseSensitive" | "path" | "id" | "index" | "children";
|
|
2803
|
+
type RequireOne<T, Key = keyof T> = Exclude<{
|
|
2804
|
+
[K in keyof T]: K extends Key ? Omit<T, K> & Required<Pick<T, K>> : never;
|
|
2805
|
+
}[keyof T], undefined>;
|
|
2806
|
+
/**
|
|
2807
|
+
* lazy() function to load a route definition, which can add non-matching
|
|
2808
|
+
* related properties to a route
|
|
2809
|
+
*/
|
|
2810
|
+
interface LazyRouteFunction<R extends AgnosticRouteObject> {
|
|
2811
|
+
(): Promise<RequireOne<Omit<R, ImmutableRouteKey>>>;
|
|
2812
|
+
}
|
|
2813
|
+
/**
|
|
2814
|
+
* Base RouteObject with common props shared by all types of routes
|
|
2815
|
+
*/
|
|
2816
|
+
type AgnosticBaseRouteObject = {
|
|
2817
|
+
caseSensitive?: boolean;
|
|
2818
|
+
path?: string;
|
|
2819
|
+
id?: string;
|
|
2820
|
+
loader?: LoaderFunction;
|
|
2821
|
+
action?: ActionFunction;
|
|
2822
|
+
hasErrorBoundary?: boolean;
|
|
2823
|
+
shouldRevalidate?: ShouldRevalidateFunction;
|
|
2824
|
+
handle?: any;
|
|
2825
|
+
lazy?: LazyRouteFunction<AgnosticBaseRouteObject>;
|
|
2826
|
+
};
|
|
2827
|
+
/**
|
|
2828
|
+
* Index routes must not have children
|
|
2829
|
+
*/
|
|
2830
|
+
type AgnosticIndexRouteObject = AgnosticBaseRouteObject & {
|
|
2831
|
+
children?: undefined;
|
|
2832
|
+
index: true;
|
|
2833
|
+
};
|
|
2834
|
+
/**
|
|
2835
|
+
* Non-index routes may have children, but cannot have index
|
|
2836
|
+
*/
|
|
2837
|
+
type AgnosticNonIndexRouteObject = AgnosticBaseRouteObject & {
|
|
2838
|
+
children?: AgnosticRouteObject[];
|
|
2839
|
+
index?: false;
|
|
2840
|
+
};
|
|
2841
|
+
/**
|
|
2842
|
+
* A route object represents a logical route, with (optionally) its child
|
|
2843
|
+
* routes organized in a tree-like structure.
|
|
2844
|
+
*/
|
|
2845
|
+
type AgnosticRouteObject = AgnosticIndexRouteObject | AgnosticNonIndexRouteObject;
|
|
2846
|
+
type AgnosticDataIndexRouteObject = AgnosticIndexRouteObject & {
|
|
2847
|
+
id: string;
|
|
2848
|
+
};
|
|
2849
|
+
type AgnosticDataNonIndexRouteObject = AgnosticNonIndexRouteObject & {
|
|
2850
|
+
children?: AgnosticDataRouteObject[];
|
|
2851
|
+
id: string;
|
|
2852
|
+
};
|
|
2853
|
+
/**
|
|
2854
|
+
* A data route object, which is just a RouteObject with a required unique ID
|
|
2855
|
+
*/
|
|
2856
|
+
type AgnosticDataRouteObject = AgnosticDataIndexRouteObject | AgnosticDataNonIndexRouteObject;
|
|
2857
|
+
/**
|
|
2858
|
+
* The parameters that were parsed from the URL path.
|
|
2859
|
+
*/
|
|
2860
|
+
type Params<Key extends string = string> = {
|
|
2861
|
+
readonly [key in Key]: string | undefined;
|
|
2862
|
+
};
|
|
2863
|
+
/**
|
|
2864
|
+
* A RouteMatch contains info about how a route matched a URL.
|
|
2865
|
+
*/
|
|
2866
|
+
interface AgnosticRouteMatch<ParamKey extends string = string, RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject> {
|
|
2867
|
+
/**
|
|
2868
|
+
* The names and values of dynamic parameters in the URL.
|
|
2869
|
+
*/
|
|
2870
|
+
params: Params<ParamKey>;
|
|
2871
|
+
/**
|
|
2872
|
+
* The portion of the URL pathname that was matched.
|
|
2873
|
+
*/
|
|
2874
|
+
pathname: string;
|
|
2875
|
+
/**
|
|
2876
|
+
* The portion of the URL pathname that was matched before child routes.
|
|
2877
|
+
*/
|
|
2878
|
+
pathnameBase: string;
|
|
2879
|
+
/**
|
|
2880
|
+
* The route object that was used to match.
|
|
2881
|
+
*/
|
|
2882
|
+
route: RouteObjectType;
|
|
2883
|
+
}
|
|
2884
|
+
interface AgnosticDataRouteMatch extends AgnosticRouteMatch<string, AgnosticDataRouteObject> {
|
|
2885
|
+
}
|
|
2886
|
+
declare class DeferredData {
|
|
2887
|
+
private pendingKeysSet;
|
|
2888
|
+
private controller;
|
|
2889
|
+
private abortPromise;
|
|
2890
|
+
private unlistenAbortSignal;
|
|
2891
|
+
private subscribers;
|
|
2892
|
+
data: Record<string, unknown>;
|
|
2893
|
+
init?: ResponseInit;
|
|
2894
|
+
deferredKeys: string[];
|
|
2895
|
+
constructor(data: Record<string, unknown>, responseInit?: ResponseInit);
|
|
2896
|
+
private trackPromise;
|
|
2897
|
+
private onSettle;
|
|
2898
|
+
private emit;
|
|
2899
|
+
subscribe(fn: (aborted: boolean, settledKey?: string) => void): () => boolean;
|
|
2900
|
+
cancel(): void;
|
|
2901
|
+
resolveData(signal: AbortSignal): Promise<boolean>;
|
|
2902
|
+
get done(): boolean;
|
|
2903
|
+
get unwrappedData(): {};
|
|
2904
|
+
get pendingKeys(): string[];
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
* State maintained internally by the router. During a navigation, all states
|
|
2909
|
+
* reflect the the "old" location unless otherwise noted.
|
|
2910
|
+
*/
|
|
2911
|
+
interface RouterState {
|
|
2912
|
+
/**
|
|
2913
|
+
* The action of the most recent navigation
|
|
2914
|
+
*/
|
|
2915
|
+
historyAction: Action;
|
|
2916
|
+
/**
|
|
2917
|
+
* The current location reflected by the router
|
|
2918
|
+
*/
|
|
2919
|
+
location: Location;
|
|
2920
|
+
/**
|
|
2921
|
+
* The current set of route matches
|
|
2922
|
+
*/
|
|
2923
|
+
matches: AgnosticDataRouteMatch[];
|
|
2924
|
+
/**
|
|
2925
|
+
* Tracks whether we've completed our initial data load
|
|
2926
|
+
*/
|
|
2927
|
+
initialized: boolean;
|
|
2928
|
+
/**
|
|
2929
|
+
* Current scroll position we should start at for a new view
|
|
2930
|
+
* - number -> scroll position to restore to
|
|
2931
|
+
* - false -> do not restore scroll at all (used during submissions)
|
|
2932
|
+
* - null -> don't have a saved position, scroll to hash or top of page
|
|
2933
|
+
*/
|
|
2934
|
+
restoreScrollPosition: number | false | null;
|
|
2935
|
+
/**
|
|
2936
|
+
* Indicate whether this navigation should skip resetting the scroll position
|
|
2937
|
+
* if we are unable to restore the scroll position
|
|
2938
|
+
*/
|
|
2939
|
+
preventScrollReset: boolean;
|
|
2940
|
+
/**
|
|
2941
|
+
* Tracks the state of the current navigation
|
|
2942
|
+
*/
|
|
2943
|
+
navigation: Navigation;
|
|
2944
|
+
/**
|
|
2945
|
+
* Tracks any in-progress revalidations
|
|
2946
|
+
*/
|
|
2947
|
+
revalidation: RevalidationState;
|
|
2948
|
+
/**
|
|
2949
|
+
* Data from the loaders for the current matches
|
|
2950
|
+
*/
|
|
2951
|
+
loaderData: RouteData;
|
|
2952
|
+
/**
|
|
2953
|
+
* Data from the action for the current matches
|
|
2954
|
+
*/
|
|
2955
|
+
actionData: RouteData | null;
|
|
2956
|
+
/**
|
|
2957
|
+
* Errors caught from loaders for the current matches
|
|
2958
|
+
*/
|
|
2959
|
+
errors: RouteData | null;
|
|
2960
|
+
/**
|
|
2961
|
+
* Map of current fetchers
|
|
2962
|
+
*/
|
|
2963
|
+
fetchers: Map<string, Fetcher>;
|
|
2964
|
+
/**
|
|
2965
|
+
* Map of current blockers
|
|
2966
|
+
*/
|
|
2967
|
+
blockers: Map<string, Blocker>;
|
|
2968
|
+
}
|
|
2969
|
+
/**
|
|
2970
|
+
* Data that can be passed into hydrate a Router from SSR
|
|
2971
|
+
*/
|
|
2972
|
+
type HydrationState = Partial<Pick<RouterState, "loaderData" | "actionData" | "errors">>;
|
|
2973
|
+
/**
|
|
2974
|
+
* Potential states for state.navigation
|
|
2975
|
+
*/
|
|
2976
|
+
type NavigationStates = {
|
|
2977
|
+
Idle: {
|
|
2978
|
+
state: "idle";
|
|
2979
|
+
location: undefined;
|
|
2980
|
+
formMethod: undefined;
|
|
2981
|
+
formAction: undefined;
|
|
2982
|
+
formEncType: undefined;
|
|
2983
|
+
formData: undefined;
|
|
2984
|
+
json: undefined;
|
|
2985
|
+
text: undefined;
|
|
2986
|
+
};
|
|
2987
|
+
Loading: {
|
|
2988
|
+
state: "loading";
|
|
2989
|
+
location: Location;
|
|
2990
|
+
formMethod: Submission["formMethod"] | undefined;
|
|
2991
|
+
formAction: Submission["formAction"] | undefined;
|
|
2992
|
+
formEncType: Submission["formEncType"] | undefined;
|
|
2993
|
+
formData: Submission["formData"] | undefined;
|
|
2994
|
+
json: Submission["json"] | undefined;
|
|
2995
|
+
text: Submission["text"] | undefined;
|
|
2996
|
+
};
|
|
2997
|
+
Submitting: {
|
|
2998
|
+
state: "submitting";
|
|
2999
|
+
location: Location;
|
|
3000
|
+
formMethod: Submission["formMethod"];
|
|
3001
|
+
formAction: Submission["formAction"];
|
|
3002
|
+
formEncType: Submission["formEncType"];
|
|
3003
|
+
formData: Submission["formData"];
|
|
3004
|
+
json: Submission["json"];
|
|
3005
|
+
text: Submission["text"];
|
|
3006
|
+
};
|
|
3007
|
+
};
|
|
3008
|
+
type Navigation = NavigationStates[keyof NavigationStates];
|
|
3009
|
+
type RevalidationState = "idle" | "loading";
|
|
3010
|
+
/**
|
|
3011
|
+
* Potential states for fetchers
|
|
3012
|
+
*/
|
|
3013
|
+
type FetcherStates<TData = any> = {
|
|
3014
|
+
Idle: {
|
|
3015
|
+
state: "idle";
|
|
3016
|
+
formMethod: undefined;
|
|
3017
|
+
formAction: undefined;
|
|
3018
|
+
formEncType: undefined;
|
|
3019
|
+
text: undefined;
|
|
3020
|
+
formData: undefined;
|
|
3021
|
+
json: undefined;
|
|
3022
|
+
data: TData | undefined;
|
|
3023
|
+
" _hasFetcherDoneAnything "?: boolean;
|
|
3024
|
+
};
|
|
3025
|
+
Loading: {
|
|
3026
|
+
state: "loading";
|
|
3027
|
+
formMethod: Submission["formMethod"] | undefined;
|
|
3028
|
+
formAction: Submission["formAction"] | undefined;
|
|
3029
|
+
formEncType: Submission["formEncType"] | undefined;
|
|
3030
|
+
text: Submission["text"] | undefined;
|
|
3031
|
+
formData: Submission["formData"] | undefined;
|
|
3032
|
+
json: Submission["json"] | undefined;
|
|
3033
|
+
data: TData | undefined;
|
|
3034
|
+
" _hasFetcherDoneAnything "?: boolean;
|
|
3035
|
+
};
|
|
3036
|
+
Submitting: {
|
|
3037
|
+
state: "submitting";
|
|
3038
|
+
formMethod: Submission["formMethod"];
|
|
3039
|
+
formAction: Submission["formAction"];
|
|
3040
|
+
formEncType: Submission["formEncType"];
|
|
3041
|
+
text: Submission["text"];
|
|
3042
|
+
formData: Submission["formData"];
|
|
3043
|
+
json: Submission["json"];
|
|
3044
|
+
data: TData | undefined;
|
|
3045
|
+
" _hasFetcherDoneAnything "?: boolean;
|
|
3046
|
+
};
|
|
3047
|
+
};
|
|
3048
|
+
type Fetcher<TData = any> = FetcherStates<TData>[keyof FetcherStates<TData>];
|
|
3049
|
+
interface BlockerBlocked {
|
|
3050
|
+
state: "blocked";
|
|
3051
|
+
reset(): void;
|
|
3052
|
+
proceed(): void;
|
|
3053
|
+
location: Location;
|
|
3054
|
+
}
|
|
3055
|
+
interface BlockerUnblocked {
|
|
3056
|
+
state: "unblocked";
|
|
3057
|
+
reset: undefined;
|
|
3058
|
+
proceed: undefined;
|
|
3059
|
+
location: undefined;
|
|
3060
|
+
}
|
|
3061
|
+
interface BlockerProceeding {
|
|
3062
|
+
state: "proceeding";
|
|
3063
|
+
reset: undefined;
|
|
3064
|
+
proceed: undefined;
|
|
3065
|
+
location: Location;
|
|
3066
|
+
}
|
|
3067
|
+
type Blocker = BlockerUnblocked | BlockerBlocked | BlockerProceeding;
|
|
3068
|
+
|
|
3069
|
+
/**
|
|
3070
|
+
* NOTE: If you refactor this to split up the modules into separate files,
|
|
3071
|
+
* you'll need to update the rollup config for react-router-dom-v5-compat.
|
|
3072
|
+
*/
|
|
3073
|
+
|
|
3074
|
+
declare global {
|
|
3075
|
+
var __staticRouterHydrationData: HydrationState | undefined;
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
declare global {
|
|
3079
|
+
interface SymbolConstructor {
|
|
3080
|
+
readonly observable: symbol;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
declare enum SupportedBuilder {
|
|
3085
|
+
WEBPACK5 = "webpack5",
|
|
3086
|
+
VITE = "vite",
|
|
3087
|
+
RSBUILD = "rsbuild"
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
declare enum SupportedFramework {
|
|
3091
|
+
ANGULAR = "angular",
|
|
3092
|
+
EMBER = "ember",
|
|
3093
|
+
HTML_VITE = "html-vite",
|
|
3094
|
+
NEXTJS = "nextjs",
|
|
3095
|
+
NEXTJS_VITE = "nextjs-vite",
|
|
3096
|
+
PREACT_VITE = "preact-vite",
|
|
3097
|
+
REACT_NATIVE_WEB_VITE = "react-native-web-vite",
|
|
3098
|
+
REACT_VITE = "react-vite",
|
|
3099
|
+
REACT_WEBPACK5 = "react-webpack5",
|
|
3100
|
+
SERVER_WEBPACK5 = "server-webpack5",
|
|
3101
|
+
SVELTE_VITE = "svelte-vite",
|
|
3102
|
+
SVELTEKIT = "sveltekit",
|
|
3103
|
+
VUE3_VITE = "vue3-vite",
|
|
3104
|
+
WEB_COMPONENTS_VITE = "web-components-vite",
|
|
3105
|
+
HTML_RSBUILD = "html-rsbuild",
|
|
3106
|
+
NUXT = "nuxt",
|
|
3107
|
+
QWIK = "qwik",
|
|
3108
|
+
REACT_RSBUILD = "react-rsbuild",
|
|
3109
|
+
SOLID = "solid",
|
|
3110
|
+
VUE3_RSBUILD = "vue3-rsbuild",
|
|
3111
|
+
WEB_COMPONENTS_RSBUILD = "web-components-rsbuild"
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
declare global {
|
|
3115
|
+
var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
|
|
3116
|
+
var defaultProjectAnnotations: ProjectAnnotations<any>;
|
|
3117
|
+
}
|
|
3118
|
+
type WrappedStoryRef = {
|
|
3119
|
+
__pw_type: 'jsx';
|
|
3120
|
+
props: Record<string, any>;
|
|
3121
|
+
} | {
|
|
3122
|
+
__pw_type: 'importRef';
|
|
3123
|
+
};
|
|
3124
|
+
type UnwrappedJSXStoryRef = {
|
|
3125
|
+
__pw_type: 'jsx';
|
|
3126
|
+
type: UnwrappedImportStoryRef;
|
|
3127
|
+
};
|
|
3128
|
+
type UnwrappedImportStoryRef = ComposedStoryFn;
|
|
3129
|
+
declare global {
|
|
3130
|
+
function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
type Result = {
|
|
3134
|
+
compatible: boolean;
|
|
3135
|
+
reasons?: string[];
|
|
3136
|
+
};
|
|
3137
|
+
interface AddonVitestCompatibilityOptions {
|
|
3138
|
+
packageManager: JsPackageManager$1;
|
|
3139
|
+
builder?: SupportedBuilder;
|
|
3140
|
+
framework?: SupportedFramework | null;
|
|
3141
|
+
projectRoot?: string;
|
|
3142
|
+
}
|
|
3143
|
+
/**
|
|
3144
|
+
* Centralized service for @storybook/addon-vitest dependency collection and compatibility
|
|
3145
|
+
* validation
|
|
3146
|
+
*
|
|
3147
|
+
* This service consolidates logic from:
|
|
3148
|
+
*
|
|
3149
|
+
* - Code/addons/vitest/src/postinstall.ts
|
|
3150
|
+
* - Code/lib/create-storybook/src/addon-dependencies/addon-vitest.ts
|
|
3151
|
+
* - Code/lib/create-storybook/src/services/FeatureCompatibilityService.ts
|
|
3152
|
+
*/
|
|
3153
|
+
declare class AddonVitestService {
|
|
3154
|
+
readonly supportedFrameworks: SupportedFramework[];
|
|
3155
|
+
/**
|
|
3156
|
+
* Collect all dependencies needed for @storybook/addon-vitest
|
|
3157
|
+
*
|
|
3158
|
+
* Returns versioned package strings ready for installation:
|
|
3159
|
+
*
|
|
3160
|
+
* - Base packages: vitest, @vitest/browser, playwright
|
|
3161
|
+
* - Next.js specific: @storybook/nextjs-vite
|
|
3162
|
+
* - Coverage reporter: @vitest/coverage-v8
|
|
3163
|
+
*/
|
|
3164
|
+
collectDependencies(packageManager: JsPackageManager$1): Promise<string[]>;
|
|
3165
|
+
/**
|
|
3166
|
+
* Install Playwright browser binaries for @storybook/addon-vitest
|
|
3167
|
+
*
|
|
3168
|
+
* Installs Chromium with dependencies via `npx playwright install chromium --with-deps`
|
|
3169
|
+
*
|
|
3170
|
+
* @param packageManager - The package manager to use for installation
|
|
3171
|
+
* @param prompt - The prompt instance for displaying progress
|
|
3172
|
+
* @param logger - The logger instance for displaying messages
|
|
3173
|
+
* @param options - Installation options
|
|
3174
|
+
* @returns Array of error messages if installation fails
|
|
3175
|
+
*/
|
|
3176
|
+
installPlaywright(packageManager: JsPackageManager$1, options?: {
|
|
3177
|
+
yes?: boolean;
|
|
3178
|
+
}): Promise<{
|
|
3179
|
+
errors: string[];
|
|
3180
|
+
}>;
|
|
3181
|
+
/**
|
|
3182
|
+
* Validate full compatibility for @storybook/addon-vitest
|
|
3183
|
+
*
|
|
3184
|
+
* Checks:
|
|
3185
|
+
*
|
|
3186
|
+
* - Webpack configuration compatibility
|
|
3187
|
+
* - Builder compatibility (Vite or Next.js)
|
|
3188
|
+
* - Renderer/framework support
|
|
3189
|
+
* - Vitest version (>=3.0.0)
|
|
3190
|
+
* - MSW version (>=2.0.0 if installed)
|
|
3191
|
+
* - Next.js installation (if using @storybook/nextjs)
|
|
3192
|
+
* - Vitest config files (if configDir provided)
|
|
3193
|
+
*/
|
|
3194
|
+
validateCompatibility(options: AddonVitestCompatibilityOptions): Promise<Result>;
|
|
3195
|
+
/**
|
|
3196
|
+
* Validate package versions for addon-vitest compatibility Public method to allow early
|
|
3197
|
+
* validation before framework detection
|
|
3198
|
+
*/
|
|
3199
|
+
validatePackageVersions(packageManager: JsPackageManager$1): Promise<Result>;
|
|
3200
|
+
/**
|
|
3201
|
+
* Validate vitest config files for addon compatibility
|
|
3202
|
+
*
|
|
3203
|
+
* Public method that can be used by both postinstall and create-storybook flows
|
|
3204
|
+
*/
|
|
3205
|
+
validateConfigFiles(directory: string): Promise<Result>;
|
|
3206
|
+
/** Validate workspace config file structure */
|
|
3207
|
+
private isValidWorkspaceConfigFile;
|
|
3208
|
+
/** Validate Vitest config file structure */
|
|
3209
|
+
private isValidVitestConfig;
|
|
3210
|
+
private isWorkspaceConfigArray;
|
|
3211
|
+
private isDefineWorkspaceExpression;
|
|
3212
|
+
private isDefineConfigExpression;
|
|
3213
|
+
private isMergeConfigExpression;
|
|
3214
|
+
private isSafeToExtendWorkspace;
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3217
|
+
export { ANGULAR_JSON_PATH, type AddonVitestCompatibilityOptions, AddonVitestService, AngularJSON, type NpmOptions, ProjectType, SUPPORTED_ESLINT_EXTENSIONS, Settings, _clearGlobalSettings, addToDevDependenciesIfNotPresent, adjustTemplate, cliStoriesTargetPath, coerceSemver, configureEslintPlugin, configureFlatConfig, copyTemplate, copyTemplateFiles, detectPnp, extractEslintInfo, findEslintFile, getBabelDependencies, getRendererDir, getVersionSafe, globalSettings, hasStorybookDependencies, normalizeExtends, readFileAsJson, suggestESLintPlugin, writeFileAsJson };
|