storybook 9.1.0-alpha.3 → 9.1.0-alpha.5
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/actions/index.cjs +16 -16
- package/dist/actions/index.d.ts +1 -38
- package/dist/actions/index.js +12 -12
- package/dist/actions/preview.cjs +25 -25
- package/dist/actions/preview.d.ts +37 -547
- package/dist/actions/preview.js +18 -18
- package/dist/backgrounds/index.cjs +12 -144
- package/dist/backgrounds/index.d.ts +1 -591
- package/dist/backgrounds/index.js +0 -130
- package/dist/backgrounds/preview.cjs +63 -63
- package/dist/backgrounds/preview.d.ts +40 -542
- package/dist/backgrounds/preview.js +47 -47
- package/dist/bin/index.cjs +50 -50
- package/dist/bin/index.js +50 -50
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +755 -756
- package/dist/common/index.d.ts +9 -5
- package/dist/common/index.js +700 -700
- package/dist/component-testing/preview.cjs +12 -12
- package/dist/component-testing/preview.d.ts +2 -2
- package/dist/component-testing/preview.js +7 -7
- package/dist/controls/index.cjs +16 -16
- package/dist/controls/index.d.ts +1 -36
- package/dist/controls/preview.cjs +17 -17
- package/dist/controls/preview.d.ts +34 -546
- package/dist/controls/preview.js +3 -3
- package/dist/csf/index.cjs +1210 -95
- package/dist/csf/index.d.ts +59 -18
- package/dist/csf/index.js +1214 -90
- package/dist/csf-tools/index.cjs +2 -1
- package/dist/csf-tools/index.js +2 -2
- package/dist/highlight/index.cjs +15 -15
- package/dist/highlight/index.d.ts +1 -12
- package/dist/highlight/index.js +4 -4
- package/dist/highlight/preview.cjs +63 -63
- package/dist/highlight/preview.d.ts +11 -546
- package/dist/highlight/preview.js +11 -10
- package/dist/manager/globals-runtime.js +29776 -29777
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/measure/index.cjs +12 -472
- package/dist/measure/index.d.ts +1 -566
- package/dist/measure/index.js +0 -464
- package/dist/measure/preview.cjs +104 -104
- package/dist/measure/preview.d.ts +11 -546
- package/dist/measure/preview.js +105 -105
- package/dist/outline/index.cjs +12 -524
- package/dist/outline/index.d.ts +1 -566
- package/dist/outline/index.js +0 -500
- package/dist/outline/preview.cjs +32 -32
- package/dist/outline/preview.d.ts +11 -546
- package/dist/outline/preview.js +27 -27
- package/dist/preview/runtime.js +8259 -8266
- package/dist/preview-api/index.cjs +1228 -1261
- package/dist/preview-api/index.d.ts +6 -8
- package/dist/preview-api/index.js +927 -963
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/test/preview.cjs +42 -42
- package/dist/test/preview.d.ts +12 -550
- package/dist/test/preview.js +36 -36
- package/dist/types/index.d.ts +5 -3
- package/dist/viewport/index.cjs +17 -24
- package/dist/viewport/index.d.ts +9 -532
- package/dist/viewport/index.js +9 -16
- package/dist/viewport/preview.cjs +22 -22
- package/dist/viewport/preview.d.ts +45 -552
- package/dist/viewport/preview.js +8 -8
- package/package.json +1 -1
package/dist/common/index.d.ts
CHANGED
|
@@ -523,11 +523,15 @@ declare abstract class JsPackageManager {
|
|
|
523
523
|
* @param {Array} dependencies Contains a list of packages to add.
|
|
524
524
|
*/
|
|
525
525
|
addDependencies(options: {
|
|
526
|
-
skipInstall?: boolean;
|
|
527
526
|
installAsDevDependencies?: boolean;
|
|
528
|
-
packageJson?: PackageJson;
|
|
529
527
|
writeOutputToFile?: boolean;
|
|
530
|
-
}
|
|
528
|
+
} & ({
|
|
529
|
+
skipInstall?: false;
|
|
530
|
+
packageJson?: PackageJson;
|
|
531
|
+
} | {
|
|
532
|
+
skipInstall: true;
|
|
533
|
+
packageJson: PackageJson;
|
|
534
|
+
}), dependencies: string[]): Promise<void>;
|
|
531
535
|
/**
|
|
532
536
|
* Remove dependencies from a project using `yarn remove` or `npm uninstall`.
|
|
533
537
|
*
|
|
@@ -940,8 +944,8 @@ declare const posix: (localPath: string, seperator?: string) => string;
|
|
|
940
944
|
|
|
941
945
|
declare const getAddonNames: (mainConfig: StorybookConfig) => string[];
|
|
942
946
|
|
|
943
|
-
declare function syncStorybookAddons(mainConfig: StorybookConfig, previewConfigPath: string): Promise<void>;
|
|
944
|
-
declare function getSyncedStorybookAddons(mainConfig: StorybookConfig, previewConfig: ConfigFile): Promise<ConfigFile>;
|
|
947
|
+
declare function syncStorybookAddons(mainConfig: StorybookConfig, previewConfigPath: string, configDir: string): Promise<void>;
|
|
948
|
+
declare function getSyncedStorybookAddons(mainConfig: StorybookConfig, previewConfig: ConfigFile, configDir: string): Promise<ConfigFile>;
|
|
945
949
|
|
|
946
950
|
/**
|
|
947
951
|
* Helper function to scan for files matching a glob pattern and transform them
|