@storybook/telemetry 7.0.0-alpha.50 → 7.0.0-alpha.52
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/index.d.ts +13 -13
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -738,8 +738,8 @@ interface Options$1 {
|
|
|
738
738
|
/**
|
|
739
739
|
* ⚠️ This file contains internal WIP types they MUST NOT be exported outside this package for now!
|
|
740
740
|
*/
|
|
741
|
-
|
|
742
|
-
|
|
741
|
+
type BuilderName = 'webpack5' | '@storybook/builder-webpack5' | string;
|
|
742
|
+
type RendererName = string;
|
|
743
743
|
interface CoreConfig {
|
|
744
744
|
builder?: BuilderName | {
|
|
745
745
|
name: BuilderName;
|
|
@@ -803,7 +803,7 @@ interface ReleaseNotesData {
|
|
|
803
803
|
currentVersion: string;
|
|
804
804
|
showOnFirstLaunch: boolean;
|
|
805
805
|
}
|
|
806
|
-
|
|
806
|
+
type PackageJson = PackageJson$1 & Record<string, any>;
|
|
807
807
|
interface LoadOptions {
|
|
808
808
|
packageJson: PackageJson;
|
|
809
809
|
outputDir?: string;
|
|
@@ -860,7 +860,7 @@ interface StorybookConfigOptions {
|
|
|
860
860
|
presets: Presets;
|
|
861
861
|
presetsList?: LoadedPreset[];
|
|
862
862
|
}
|
|
863
|
-
|
|
863
|
+
type Options$2 = LoadOptions & StorybookConfigOptions & CLIOptions & BuilderOptions;
|
|
864
864
|
interface CoreCommon_IndexerOptions {
|
|
865
865
|
makeTitle: (userTitle?: string) => string;
|
|
866
866
|
}
|
|
@@ -914,8 +914,8 @@ interface CoreCommon_StoriesSpecifier {
|
|
|
914
914
|
*/
|
|
915
915
|
files?: string;
|
|
916
916
|
}
|
|
917
|
-
|
|
918
|
-
|
|
917
|
+
type CoreCommon_StoriesEntry = string | CoreCommon_StoriesSpecifier;
|
|
918
|
+
type Preset = string | {
|
|
919
919
|
name: string;
|
|
920
920
|
options?: any;
|
|
921
921
|
};
|
|
@@ -923,14 +923,14 @@ declare type Preset = string | {
|
|
|
923
923
|
* An additional script that gets injected into the
|
|
924
924
|
* preview or the manager,
|
|
925
925
|
*/
|
|
926
|
-
|
|
927
|
-
|
|
926
|
+
type Entry = string;
|
|
927
|
+
type CoreCommon_StorybookRefs = Record<string, {
|
|
928
928
|
title: string;
|
|
929
929
|
url: string;
|
|
930
930
|
} | {
|
|
931
931
|
disable: boolean;
|
|
932
932
|
}>;
|
|
933
|
-
|
|
933
|
+
type DocsOptions = {
|
|
934
934
|
/**
|
|
935
935
|
* Should we generate docs entries at all under any circumstances? (i.e. can they be rendered)
|
|
936
936
|
*/
|
|
@@ -1068,16 +1068,16 @@ declare const monorepoConfigs: {
|
|
|
1068
1068
|
readonly Rush: "rush.json";
|
|
1069
1069
|
readonly Lage: "lage.config.json";
|
|
1070
1070
|
};
|
|
1071
|
-
|
|
1071
|
+
type MonorepoType = keyof typeof monorepoConfigs | 'Workspaces' | undefined;
|
|
1072
1072
|
|
|
1073
|
-
|
|
1073
|
+
type EventType = 'boot' | 'dev' | 'build' | 'upgrade' | 'init' | 'error' | 'error-metadata';
|
|
1074
1074
|
interface Dependency {
|
|
1075
1075
|
version: string | undefined;
|
|
1076
1076
|
}
|
|
1077
1077
|
interface StorybookAddon extends Dependency {
|
|
1078
1078
|
options: any;
|
|
1079
1079
|
}
|
|
1080
|
-
|
|
1080
|
+
type StorybookMetadata = {
|
|
1081
1081
|
storybookVersion: string;
|
|
1082
1082
|
generatedAt?: number;
|
|
1083
1083
|
language: 'typescript' | 'javascript';
|
|
@@ -1129,7 +1129,7 @@ declare const computeStorybookMetadata: ({ packageJson, mainConfig, }: {
|
|
|
1129
1129
|
packageJson: PackageJson;
|
|
1130
1130
|
mainConfig: StorybookConfig & Record<string, any>;
|
|
1131
1131
|
}) => Promise<StorybookMetadata>;
|
|
1132
|
-
declare const getStorybookMetadata: (_configDir?: string
|
|
1132
|
+
declare const getStorybookMetadata: (_configDir?: string) => Promise<StorybookMetadata>;
|
|
1133
1133
|
|
|
1134
1134
|
declare const telemetry: (eventType: EventType, payload?: Payload, options?: Partial<Options>) => Promise<void>;
|
|
1135
1135
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/telemetry",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.52",
|
|
4
4
|
"description": "Telemetry logging for crash reports and usage statistics",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@storybook/client-logger": "7.0.0-alpha.
|
|
46
|
-
"@storybook/core-common": "7.0.0-alpha.
|
|
45
|
+
"@storybook/client-logger": "7.0.0-alpha.52",
|
|
46
|
+
"@storybook/core-common": "7.0.0-alpha.52",
|
|
47
47
|
"chalk": "^4.1.0",
|
|
48
48
|
"detect-package-manager": "^2.0.1",
|
|
49
49
|
"fetch-retry": "^5.0.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"read-pkg-up": "^7.0.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"typescript": "
|
|
56
|
+
"typescript": "^4.9.3"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
],
|
|
65
65
|
"platform": "node"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "d2494e3f51ce0f55bcb1ef693a6477c669fbe666"
|
|
68
68
|
}
|