storybook 9.1.0-alpha.6 → 9.1.0-alpha.8
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/assets/browser/favicon-wrapper.svg +46 -0
- package/assets/browser/favicon.svg +1 -1
- package/dist/bin/index.cjs +43 -43
- package/dist/bin/index.js +43 -43
- package/dist/cli/bin/index.cjs +513 -513
- package/dist/cli/bin/index.js +535 -535
- package/dist/cli/index.cjs +2454 -2453
- package/dist/cli/index.d.ts +10 -3
- package/dist/cli/index.js +2436 -2435
- package/dist/common/index.cjs +64 -61
- package/dist/common/index.d.ts +9 -3
- package/dist/common/index.js +64 -61
- package/dist/components/index.cjs +4602 -4427
- package/dist/components/index.d.ts +9 -11
- package/dist/components/index.js +2760 -2580
- package/dist/core-server/index.cjs +5833 -5819
- package/dist/core-server/index.d.ts +4 -1
- package/dist/core-server/index.js +4848 -4835
- package/dist/core-server/presets/common-manager.js +3410 -3332
- package/dist/core-server/presets/common-preset.cjs +1831 -1837
- package/dist/core-server/presets/common-preset.js +1787 -1792
- package/dist/csf/index.cjs +2536 -736
- package/dist/csf/index.d.ts +250 -9
- package/dist/csf/index.js +2558 -749
- package/dist/csf-tools/index.cjs +319 -321
- package/dist/csf-tools/index.js +239 -241
- package/dist/instrumenter/index.cjs +1150 -1099
- package/dist/instrumenter/index.d.ts +1 -0
- package/dist/instrumenter/index.js +1261 -1214
- package/dist/manager/globals-module-info.cjs +0 -1
- package/dist/manager/globals-module-info.js +0 -1
- package/dist/manager/globals-runtime.js +21740 -24218
- package/dist/manager/runtime.js +3715 -3536
- package/dist/manager-api/index.cjs +3 -3
- package/dist/manager-api/index.d.ts +4 -1
- package/dist/manager-api/index.js +3 -3
- package/dist/node-logger/index.cjs +1620 -1620
- package/dist/node-logger/index.js +1619 -1619
- package/dist/preview/runtime.js +13337 -16032
- package/dist/preview-api/index.cjs +273 -271
- package/dist/preview-api/index.d.ts +4 -1
- package/dist/preview-api/index.js +14 -12
- package/dist/telemetry/index.cjs +500 -500
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +478 -478
- package/dist/test/index.cjs +9136 -9815
- package/dist/test/index.js +8339 -9025
- package/dist/types/index.d.ts +12 -12
- package/package.json +5 -196
- package/dist/actions/preview.cjs +0 -159
- package/dist/actions/preview.d.ts +0 -45
- package/dist/actions/preview.js +0 -149
- package/dist/backgrounds/index.cjs +0 -16
- package/dist/backgrounds/index.d.ts +0 -2
- package/dist/backgrounds/index.js +0 -0
- package/dist/backgrounds/preview.cjs +0 -143
- package/dist/backgrounds/preview.d.ts +0 -53
- package/dist/backgrounds/preview.js +0 -127
- package/dist/component-testing/index.cjs +0 -23
- package/dist/component-testing/index.d.ts +0 -3
- package/dist/component-testing/index.js +0 -5
- package/dist/component-testing/preview.cjs +0 -40
- package/dist/component-testing/preview.d.ts +0 -5
- package/dist/component-testing/preview.js +0 -25
- package/dist/controls/preview.cjs +0 -26
- package/dist/controls/preview.d.ts +0 -43
- package/dist/controls/preview.js +0 -9
- package/dist/highlight/preview.cjs +0 -590
- package/dist/highlight/preview.d.ts +0 -20
- package/dist/highlight/preview.js +0 -575
- package/dist/measure/index.cjs +0 -16
- package/dist/measure/index.d.ts +0 -2
- package/dist/measure/index.js +0 -0
- package/dist/measure/preview.cjs +0 -466
- package/dist/measure/preview.d.ts +0 -25
- package/dist/measure/preview.js +0 -450
- package/dist/outline/index.cjs +0 -16
- package/dist/outline/index.d.ts +0 -2
- package/dist/outline/index.js +0 -0
- package/dist/outline/preview.cjs +0 -518
- package/dist/outline/preview.d.ts +0 -25
- package/dist/outline/preview.js +0 -486
- package/dist/test/preview.cjs +0 -73
- package/dist/test/preview.d.ts +0 -17
- package/dist/test/preview.js +0 -66
- package/dist/viewport/preview.cjs +0 -35
- package/dist/viewport/preview.d.ts +0 -62
- package/dist/viewport/preview.js +0 -19
package/dist/cli/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare enum ProjectType {
|
|
|
21
21
|
REACT_SCRIPTS = "REACT_SCRIPTS",
|
|
22
22
|
REACT_NATIVE = "REACT_NATIVE",
|
|
23
23
|
REACT_NATIVE_WEB = "REACT_NATIVE_WEB",
|
|
24
|
+
REACT_NATIVE_AND_RNW = "REACT_NATIVE_AND_RNW",
|
|
24
25
|
REACT_PROJECT = "REACT_PROJECT",
|
|
25
26
|
WEBPACK_REACT = "WEBPACK_REACT",
|
|
26
27
|
NEXTJS = "NEXTJS",
|
|
@@ -717,8 +718,12 @@ declare abstract class JsPackageManager {
|
|
|
717
718
|
/** Get the package.json file for a given module. */
|
|
718
719
|
abstract getModulePackageJSON(packageName: string): PackageJson$1 | null;
|
|
719
720
|
isStorybookInMonorepo(): boolean;
|
|
720
|
-
installDependencies(
|
|
721
|
-
|
|
721
|
+
installDependencies(options?: {
|
|
722
|
+
force?: boolean;
|
|
723
|
+
}): Promise<void>;
|
|
724
|
+
dedupeDependencies(options?: {
|
|
725
|
+
force?: boolean;
|
|
726
|
+
}): Promise<void>;
|
|
722
727
|
/** Read the `package.json` file available in the provided directory */
|
|
723
728
|
static getPackageJson(packageJsonPath: string): PackageJsonWithDepsAndDevDeps;
|
|
724
729
|
writePackageJson(packageJson: PackageJson$1, directory?: string): void;
|
|
@@ -827,7 +832,9 @@ declare abstract class JsPackageManager {
|
|
|
827
832
|
}): void;
|
|
828
833
|
addScripts(scripts: Record<string, string>): void;
|
|
829
834
|
addPackageResolutions(versions: Record<string, string>): void;
|
|
830
|
-
protected abstract runInstall(
|
|
835
|
+
protected abstract runInstall(options?: {
|
|
836
|
+
force?: boolean;
|
|
837
|
+
}): ExecaChildProcess;
|
|
831
838
|
protected abstract runAddDeps(dependencies: string[], installAsDevDependencies: boolean, writeOutputToFile?: boolean): ExecaChildProcess;
|
|
832
839
|
protected abstract getResolutions(packageJson: PackageJson$1, versions: Record<string, string>): Record<string, any>;
|
|
833
840
|
/**
|