@storybook/web-components-vite 0.0.0-pr-24997-sha-c414978b → 0.0.0-pr-25079-sha-65111396
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.
@@ -2785,13 +2785,9 @@ interface Presets {
|
|
2785
2785
|
apply(extension: 'entries', config?: [], args?: any): Promise<unknown>;
|
2786
2786
|
apply(extension: 'stories', config?: [], args?: any): Promise<StoriesEntry[]>;
|
2787
2787
|
apply(extension: 'managerEntries', config: [], args?: any): Promise<string[]>;
|
2788
|
-
apply(extension: 'refs', config?: [], args?: any): Promise<
|
2789
|
-
apply(extension: 'core', config?:
|
2790
|
-
apply(extension: '
|
2791
|
-
apply(extension: 'features', config?: StorybookConfigRaw['features'], args?: any): Promise<NonNullable<StorybookConfigRaw['features']>>;
|
2792
|
-
apply(extension: 'typescript', config?: StorybookConfigRaw['typescript'], args?: any): Promise<NonNullable<StorybookConfigRaw['typescript']>>;
|
2793
|
-
apply(extension: 'build', config?: StorybookConfigRaw['build'], args?: any): Promise<NonNullable<StorybookConfigRaw['build']>>;
|
2794
|
-
apply(extension: 'staticDirs', config?: StorybookConfigRaw['staticDirs'], args?: any): Promise<StorybookConfigRaw['staticDirs']>;
|
2788
|
+
apply(extension: 'refs', config?: [], args?: any): Promise<unknown>;
|
2789
|
+
apply(extension: 'core', config?: {}, args?: any): Promise<CoreConfig>;
|
2790
|
+
apply(extension: 'build', config?: {}, args?: any): Promise<StorybookConfig$1['build']>;
|
2795
2791
|
apply<T>(extension: string, config?: T, args?: unknown): Promise<T>;
|
2796
2792
|
}
|
2797
2793
|
interface LoadedPreset {
|
@@ -2851,7 +2847,7 @@ interface BuilderOptions {
|
|
2851
2847
|
cache?: FileSystemCache;
|
2852
2848
|
configDir: string;
|
2853
2849
|
docsMode?: boolean;
|
2854
|
-
features?:
|
2850
|
+
features?: StorybookConfig$1['features'];
|
2855
2851
|
versionCheck?: VersionCheck;
|
2856
2852
|
disableWebpackDefaults?: boolean;
|
2857
2853
|
serverChannelUrl?: string;
|
@@ -2957,10 +2953,9 @@ interface TestBuildConfig {
|
|
2957
2953
|
test?: TestBuildFlags;
|
2958
2954
|
}
|
2959
2955
|
/**
|
2960
|
-
* The interface for Storybook configuration
|
2961
|
-
* The difference is that these values are the raw values, AKA, not wrapped with `PresetValue<>`
|
2956
|
+
* The interface for Storybook configuration in `main.ts` files.
|
2962
2957
|
*/
|
2963
|
-
interface
|
2958
|
+
interface StorybookConfig$1 {
|
2964
2959
|
/**
|
2965
2960
|
* Sets the addons you want to use with Storybook.
|
2966
2961
|
*
|
@@ -2968,6 +2963,11 @@ interface StorybookConfigRaw {
|
|
2968
2963
|
*/
|
2969
2964
|
addons?: Preset[];
|
2970
2965
|
core?: CoreConfig;
|
2966
|
+
/**
|
2967
|
+
* Sets a list of directories of static files to be loaded by Storybook server
|
2968
|
+
*
|
2969
|
+
* @example `['./public']` or `[{from: './public', 'to': '/assets'}]`
|
2970
|
+
*/
|
2971
2971
|
staticDirs?: (DirectoryMapping | string)[];
|
2972
2972
|
logLevel?: string;
|
2973
2973
|
features?: {
|
@@ -3009,110 +3009,70 @@ interface StorybookConfigRaw {
|
|
3009
3009
|
disallowImplicitActionsInRenderV8?: boolean;
|
3010
3010
|
};
|
3011
3011
|
build?: TestBuildConfig;
|
3012
|
-
stories: StoriesEntry[];
|
3013
|
-
framework?: Preset;
|
3014
|
-
typescript?: Partial<TypescriptOptions>;
|
3015
|
-
refs?: CoreCommon_StorybookRefs;
|
3016
|
-
babel?: TransformOptions;
|
3017
|
-
swc?: Options$2;
|
3018
|
-
env?: Record<string, string>;
|
3019
|
-
babelDefault?: TransformOptions;
|
3020
|
-
config?: Entry[];
|
3021
|
-
previewAnnotations?: Entry[];
|
3022
|
-
storyIndexers?: StoryIndexer[];
|
3023
|
-
experimental_indexers?: Indexer[];
|
3024
|
-
docs?: DocsOptions;
|
3025
|
-
previewHead?: string;
|
3026
|
-
previewBody?: string;
|
3027
|
-
previewMainTemplate?: string;
|
3028
|
-
managerHead?: string;
|
3029
|
-
}
|
3030
|
-
/**
|
3031
|
-
* The interface for Storybook configuration in `main.ts` files.
|
3032
|
-
* This interface is public
|
3033
|
-
* All values should be wrapped with `PresetValue<>`, though there are a few exceptions: `addons`, `framework`
|
3034
|
-
*/
|
3035
|
-
interface StorybookConfig$1 {
|
3036
|
-
/**
|
3037
|
-
* Sets the addons you want to use with Storybook.
|
3038
|
-
*
|
3039
|
-
* @example `['@storybook/addon-essentials']` or `[{ name: '@storybook/addon-essentials', options: { backgrounds: false } }]`
|
3040
|
-
*/
|
3041
|
-
addons?: StorybookConfigRaw['addons'];
|
3042
|
-
core?: PresetValue<StorybookConfigRaw['core']>;
|
3043
|
-
/**
|
3044
|
-
* Sets a list of directories of static files to be loaded by Storybook server
|
3045
|
-
*
|
3046
|
-
* @example `['./public']` or `[{from: './public', 'to': '/assets'}]`
|
3047
|
-
*/
|
3048
|
-
staticDirs?: PresetValue<StorybookConfigRaw['staticDirs']>;
|
3049
|
-
logLevel?: PresetValue<StorybookConfigRaw['logLevel']>;
|
3050
|
-
features?: PresetValue<StorybookConfigRaw['features']>;
|
3051
|
-
build?: PresetValue<StorybookConfigRaw['build']>;
|
3052
3012
|
/**
|
3053
3013
|
* Tells Storybook where to find stories.
|
3054
3014
|
*
|
3055
|
-
* @example `['./src/*.stories.@(j|t)sx?']`
|
3015
|
+
* @example `['./src/*.stories.@(j|t)sx?']`
|
3056
3016
|
*/
|
3057
|
-
stories:
|
3017
|
+
stories: StoriesEntry[];
|
3058
3018
|
/**
|
3059
3019
|
* Framework, e.g. '@storybook/react-vite', required in v7
|
3060
3020
|
*/
|
3061
|
-
framework?:
|
3021
|
+
framework?: Preset;
|
3062
3022
|
/**
|
3063
3023
|
* Controls how Storybook handles TypeScript files.
|
3064
3024
|
*/
|
3065
|
-
typescript?:
|
3025
|
+
typescript?: Partial<TypescriptOptions>;
|
3066
3026
|
/**
|
3067
3027
|
* References external Storybooks
|
3068
3028
|
*/
|
3069
|
-
refs?: PresetValue<
|
3029
|
+
refs?: PresetValue<CoreCommon_StorybookRefs>;
|
3070
3030
|
/**
|
3071
3031
|
* Modify or return babel config.
|
3072
3032
|
*/
|
3073
|
-
babel?:
|
3033
|
+
babel?: (config: TransformOptions, options: Options) => TransformOptions | Promise<TransformOptions>;
|
3074
3034
|
/**
|
3075
3035
|
* Modify or return swc config.
|
3076
3036
|
*/
|
3077
|
-
swc?:
|
3037
|
+
swc?: (config: Options$2, options: Options) => Options$2 | Promise<Options$2>;
|
3078
3038
|
/**
|
3079
3039
|
* Modify or return env config.
|
3080
3040
|
*/
|
3081
|
-
env?: PresetValue<
|
3041
|
+
env?: PresetValue<Record<string, string>>;
|
3082
3042
|
/**
|
3083
3043
|
* Modify or return babel config.
|
3084
3044
|
*/
|
3085
|
-
babelDefault?:
|
3045
|
+
babelDefault?: (config: TransformOptions, options: Options) => TransformOptions | Promise<TransformOptions>;
|
3086
3046
|
/**
|
3087
3047
|
* Add additional scripts to run in the preview a la `.storybook/preview.js`
|
3088
3048
|
*
|
3089
3049
|
* @deprecated use `previewAnnotations` or `/preview.js` file instead
|
3090
3050
|
*/
|
3091
|
-
config?: PresetValue<
|
3051
|
+
config?: PresetValue<Entry[]>;
|
3092
3052
|
/**
|
3093
3053
|
* Add additional scripts to run in the preview a la `.storybook/preview.js`
|
3094
3054
|
*/
|
3095
|
-
previewAnnotations?: PresetValue<
|
3055
|
+
previewAnnotations?: PresetValue<Entry[]>;
|
3096
3056
|
/**
|
3097
3057
|
* Process CSF files for the story index.
|
3098
3058
|
* @deprecated use {@link experimental_indexers} instead
|
3099
3059
|
*/
|
3100
|
-
storyIndexers?: PresetValue<
|
3060
|
+
storyIndexers?: PresetValue<StoryIndexer[]>;
|
3101
3061
|
/**
|
3102
3062
|
* Process CSF files for the story index.
|
3103
3063
|
*/
|
3104
|
-
experimental_indexers?: PresetValue<
|
3064
|
+
experimental_indexers?: PresetValue<Indexer[]>;
|
3105
3065
|
/**
|
3106
3066
|
* Docs related features in index generation
|
3107
3067
|
*/
|
3108
|
-
docs?:
|
3068
|
+
docs?: DocsOptions;
|
3109
3069
|
/**
|
3110
3070
|
* Programmatically modify the preview head/body HTML.
|
3111
3071
|
* The previewHead and previewBody functions accept a string,
|
3112
3072
|
* which is the existing head/body, and return a modified string.
|
3113
3073
|
*/
|
3114
|
-
previewHead?: PresetValue<
|
3115
|
-
previewBody?: PresetValue<
|
3074
|
+
previewHead?: PresetValue<string>;
|
3075
|
+
previewBody?: PresetValue<string>;
|
3116
3076
|
/**
|
3117
3077
|
* Programmatically override the preview's main page template.
|
3118
3078
|
* This should return a reference to a file containing an `.ejs` template
|
@@ -3120,17 +3080,17 @@ interface StorybookConfig$1 {
|
|
3120
3080
|
*
|
3121
3081
|
* @example '.storybook/index.ejs'
|
3122
3082
|
*/
|
3123
|
-
previewMainTemplate?:
|
3083
|
+
previewMainTemplate?: string;
|
3124
3084
|
/**
|
3125
3085
|
* Programmatically modify the preview head/body HTML.
|
3126
3086
|
* The managerHead function accept a string,
|
3127
3087
|
* which is the existing head content, and return a modified string.
|
3128
3088
|
*/
|
3129
|
-
managerHead?: PresetValue<
|
3089
|
+
managerHead?: PresetValue<string>;
|
3130
3090
|
}
|
3131
3091
|
type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
|
3132
|
-
type PresetProperty<K, TStorybookConfig =
|
3133
|
-
type PresetPropertyFn<K, TStorybookConfig =
|
3092
|
+
type PresetProperty<K, TStorybookConfig = StorybookConfig$1> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
|
3093
|
+
type PresetPropertyFn<K, TStorybookConfig = StorybookConfig$1, TOptions = {}> = (config: TStorybookConfig[K extends keyof TStorybookConfig ? K : never], options: Options & TOptions) => TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | Promise<TStorybookConfig[K extends keyof TStorybookConfig ? K : never]>;
|
3134
3094
|
type Path = string;
|
3135
3095
|
|
3136
3096
|
type FrameworkName = '@storybook/web-components-vite';
|
package/dist/index.d.ts
CHANGED
package/dist/preset.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/web-components-vite",
|
3
|
-
"version": "0.0.0-pr-
|
3
|
+
"version": "0.0.0-pr-25079-sha-65111396",
|
4
4
|
"description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,15 +47,15 @@
|
|
47
47
|
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@storybook/builder-vite": "0.0.0-pr-
|
51
|
-
"@storybook/core-server": "0.0.0-pr-
|
52
|
-
"@storybook/node-logger": "0.0.0-pr-
|
53
|
-
"@storybook/web-components": "0.0.0-pr-
|
50
|
+
"@storybook/builder-vite": "0.0.0-pr-25079-sha-65111396",
|
51
|
+
"@storybook/core-server": "0.0.0-pr-25079-sha-65111396",
|
52
|
+
"@storybook/node-logger": "0.0.0-pr-25079-sha-65111396",
|
53
|
+
"@storybook/web-components": "0.0.0-pr-25079-sha-65111396",
|
54
54
|
"magic-string": "^0.30.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
57
57
|
"@types/node": "^18.0.0",
|
58
|
-
"typescript": "
|
58
|
+
"typescript": "~4.9.3"
|
59
59
|
},
|
60
60
|
"engines": {
|
61
61
|
"node": "^14.18 || >=16"
|