@storybook/web-components-vite 0.0.0-pr-23626-sha-e84041f2 → 0.0.0-pr-23611-sha-0c8cd76e
Sign up to get free protection for your applications and to get access to all the features.
@@ -763,16 +763,11 @@ PackageJson$1.NonStandardEntryPoints &
|
|
763
763
|
PackageJson$1.TypeScriptConfiguration &
|
764
764
|
PackageJson$1.YarnConfiguration &
|
765
765
|
PackageJson$1.JSPMConfiguration;
|
766
|
-
|
767
|
-
type StoryId = string;
|
768
|
-
type ComponentTitle = string;
|
769
|
-
type StoryName = string;
|
770
766
|
type Tag = string;
|
771
767
|
interface Parameters {
|
772
768
|
[name: string]: any;
|
773
769
|
}
|
774
770
|
|
775
|
-
type ExportKey = string;
|
776
771
|
interface StoriesSpecifier {
|
777
772
|
/**
|
778
773
|
* When auto-titling, what to prefix all generated titles with (default: '')
|
@@ -806,64 +801,10 @@ interface IndexedCSFFile {
|
|
806
801
|
};
|
807
802
|
stories: IndexedStory[];
|
808
803
|
}
|
809
|
-
|
810
|
-
* FIXME: This is a temporary type to allow us to deprecate the old indexer API.
|
811
|
-
* We should remove this type and the deprecated indexer API in 8.0.
|
812
|
-
*/
|
813
|
-
type BaseIndexer = {
|
814
|
-
/**
|
815
|
-
* A regular expression that should match all files to be handled by this indexer
|
816
|
-
*/
|
804
|
+
interface StoryIndexer {
|
817
805
|
test: RegExp;
|
818
|
-
};
|
819
|
-
/**
|
820
|
-
* An indexer describes which filenames it handles, and how to index each individual file - turning it into an entry in the index.
|
821
|
-
*/
|
822
|
-
type Indexer = BaseIndexer & {
|
823
|
-
/**
|
824
|
-
* Indexes a file containing stories or docs.
|
825
|
-
* @param fileName The name of the file to index.
|
826
|
-
* @param options {@link IndexerOptions} for indexing the file.
|
827
|
-
* @returns A promise that resolves to an array of {@link IndexInput} objects.
|
828
|
-
*/
|
829
|
-
index: (fileName: string, options: IndexerOptions) => Promise<IndexInput[]>;
|
830
|
-
/**
|
831
|
-
* @deprecated Use {@link index} instead
|
832
|
-
*/
|
833
|
-
indexer?: never;
|
834
|
-
};
|
835
|
-
type DeprecatedIndexer = BaseIndexer & {
|
836
806
|
indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
|
837
|
-
index?: never;
|
838
|
-
};
|
839
|
-
/**
|
840
|
-
* @deprecated Use {@link Indexer} instead
|
841
|
-
*/
|
842
|
-
type StoryIndexer = Indexer | DeprecatedIndexer;
|
843
|
-
interface BaseIndexInput {
|
844
|
-
/** the file to import from e.g. the story file */
|
845
|
-
importPath: Path;
|
846
|
-
/** the key to import from the file e.g. the story export for this entry */
|
847
|
-
key: ExportKey;
|
848
|
-
/** the location in the sidebar, auto-generated from {@link importPath} if unspecified */
|
849
|
-
title?: ComponentTitle;
|
850
|
-
/** the name of the story, auto-generated from {@link key} if unspecified */
|
851
|
-
name?: StoryName;
|
852
|
-
/** the unique story ID, auto-generated from {@link title} and {@link name} if unspecified */
|
853
|
-
id?: StoryId;
|
854
|
-
/** tags for filtering entries in Storybook and its tools */
|
855
|
-
tags?: Tag[];
|
856
807
|
}
|
857
|
-
type StoryIndexInput = BaseIndexInput & {
|
858
|
-
type: 'story';
|
859
|
-
};
|
860
|
-
type DocsIndexInput = BaseIndexInput & {
|
861
|
-
type: 'docs';
|
862
|
-
/** paths to story files that must be pre-loaded for this docs entry */
|
863
|
-
storiesImports?: Path[];
|
864
|
-
};
|
865
|
-
type IndexInput = StoryIndexInput | DocsIndexInput;
|
866
|
-
type Path = string;
|
867
808
|
|
868
809
|
interface Options$1 {
|
869
810
|
allowRegExp: boolean;
|
@@ -1138,13 +1079,8 @@ interface StorybookConfig$1 {
|
|
1138
1079
|
previewAnnotations?: PresetValue<Entry[]>;
|
1139
1080
|
/**
|
1140
1081
|
* Process CSF files for the story index.
|
1141
|
-
* @deprecated use {@link indexers} instead
|
1142
1082
|
*/
|
1143
1083
|
storyIndexers?: PresetValue<StoryIndexer[]>;
|
1144
|
-
/**
|
1145
|
-
* Process CSF files for the story index.
|
1146
|
-
*/
|
1147
|
-
indexers?: PresetValue<Indexer[]>;
|
1148
1084
|
/**
|
1149
1085
|
* Docs related features in index generation
|
1150
1086
|
*/
|
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-23611-sha-0c8cd76e",
|
4
4
|
"description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,10 +47,10 @@
|
|
47
47
|
"prep": "../../../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-23611-sha-0c8cd76e",
|
51
|
+
"@storybook/core-server": "0.0.0-pr-23611-sha-0c8cd76e",
|
52
|
+
"@storybook/node-logger": "0.0.0-pr-23611-sha-0c8cd76e",
|
53
|
+
"@storybook/web-components": "0.0.0-pr-23611-sha-0c8cd76e",
|
54
54
|
"magic-string": "^0.30.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|