storybook 9.0.0-alpha.7 → 9.0.0-alpha.9
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/bin/index.cjs +63 -63
- package/dist/bin/index.js +63 -63
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +146 -132
- package/dist/common/index.d.ts +2 -1
- package/dist/common/index.js +146 -132
- package/dist/core-server/index.cjs +1412 -1390
- package/dist/core-server/index.js +1833 -1812
- package/dist/instrumenter/index.cjs +7 -4
- package/dist/instrumenter/index.js +7 -4
- package/dist/manager/globals-runtime.js +8 -5
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +7 -4
- package/dist/telemetry/index.cjs +1050 -1977
- package/dist/telemetry/index.d.ts +25 -4
- package/dist/telemetry/index.js +1085 -2008
- package/dist/types/index.d.ts +0 -4
- package/package.json +2 -2
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import { TypescriptOptions, StorybookConfig, PackageJson } from 'storybook/internal/types';
|
|
2
2
|
import { BinaryLike } from 'crypto';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type Agent = 'npm' | 'yarn' | 'yarn@berry' | 'pnpm' | 'pnpm@6' | 'bun' | 'deno';
|
|
5
|
+
type AgentName = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'deno';
|
|
6
|
+
interface DetectResult {
|
|
7
|
+
/**
|
|
8
|
+
* Agent name without the specifier.
|
|
9
|
+
*
|
|
10
|
+
* Can be `npm`, `yarn`, `pnpm`, `bun`, or `deno`.
|
|
11
|
+
*/
|
|
12
|
+
name: AgentName;
|
|
13
|
+
/**
|
|
14
|
+
* Agent specifier to resolve the command.
|
|
15
|
+
*
|
|
16
|
+
* May contain '@' to differentiate the version (e.g. 'yarn@berry').
|
|
17
|
+
* Use `name` for the agent name without the specifier.
|
|
18
|
+
*/
|
|
19
|
+
agent: Agent;
|
|
20
|
+
/**
|
|
21
|
+
* Specific version of the agent, read from `packageManager` field in package.json.
|
|
22
|
+
*/
|
|
23
|
+
version?: string;
|
|
24
|
+
}
|
|
5
25
|
|
|
6
26
|
declare const monorepoConfigs: {
|
|
7
27
|
readonly Nx: "nx.json";
|
|
@@ -33,8 +53,9 @@ type StorybookMetadata = {
|
|
|
33
53
|
renderer?: string;
|
|
34
54
|
monorepo?: MonorepoType;
|
|
35
55
|
packageManager?: {
|
|
36
|
-
type:
|
|
37
|
-
version:
|
|
56
|
+
type: DetectResult['name'];
|
|
57
|
+
version: DetectResult['version'];
|
|
58
|
+
agent: DetectResult['agent'];
|
|
38
59
|
};
|
|
39
60
|
typescriptOptions?: Partial<TypescriptOptions>;
|
|
40
61
|
addons?: Record<string, StorybookAddon>;
|
|
@@ -82,7 +103,7 @@ declare const sanitizeAddonName: (name: string) => string;
|
|
|
82
103
|
declare const computeStorybookMetadata: ({ packageJsonPath, packageJson, mainConfig, }: {
|
|
83
104
|
packageJsonPath: string;
|
|
84
105
|
packageJson: PackageJson;
|
|
85
|
-
mainConfig
|
|
106
|
+
mainConfig?: StorybookConfig & Record<string, any>;
|
|
86
107
|
}) => Promise<StorybookMetadata>;
|
|
87
108
|
declare const getStorybookMetadata: (_configDir?: string) => Promise<StorybookMetadata>;
|
|
88
109
|
|