@storybook/web-components-vite 0.0.0-pr-23691-sha-8f3fbd86 → 0.0.0-pr-23697-sha-615db423
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.
@@ -718,17 +718,11 @@ PackageJson$1.NonStandardEntryPoints &
|
|
718
718
|
PackageJson$1.TypeScriptConfiguration &
|
719
719
|
PackageJson$1.YarnConfiguration &
|
720
720
|
PackageJson$1.JSPMConfiguration;
|
721
|
-
|
722
|
-
type StoryId = string;
|
723
|
-
type ComponentTitle = string;
|
724
|
-
type StoryName = string;
|
725
721
|
type Tag = string;
|
726
722
|
interface Parameters {
|
727
723
|
[name: string]: any;
|
728
724
|
}
|
729
725
|
|
730
|
-
type ExportName = string;
|
731
|
-
type MetaId = string;
|
732
726
|
interface StoriesSpecifier {
|
733
727
|
/**
|
734
728
|
* When auto-titling, what to prefix all generated titles with (default: '')
|
@@ -763,83 +757,10 @@ interface IndexedCSFFile {
|
|
763
757
|
};
|
764
758
|
stories: IndexedStory[];
|
765
759
|
}
|
766
|
-
|
767
|
-
* FIXME: This is a temporary type to allow us to deprecate the old indexer API.
|
768
|
-
* We should remove this type and the deprecated indexer API in 8.0.
|
769
|
-
*/
|
770
|
-
type BaseIndexer = {
|
771
|
-
/**
|
772
|
-
* A regular expression that should match all files to be handled by this indexer
|
773
|
-
*/
|
760
|
+
interface StoryIndexer {
|
774
761
|
test: RegExp;
|
775
|
-
};
|
776
|
-
/**
|
777
|
-
* An indexer describes which filenames it handles, and how to index each individual file - turning it into an entry in the index.
|
778
|
-
*/
|
779
|
-
type Indexer = BaseIndexer & {
|
780
|
-
/**
|
781
|
-
* Indexes a file containing stories or docs.
|
782
|
-
* @param fileName The name of the file to index.
|
783
|
-
* @param options {@link IndexerOptions} for indexing the file.
|
784
|
-
* @returns A promise that resolves to an array of {@link IndexInput} objects.
|
785
|
-
*/
|
786
|
-
index: (fileName: string, options: IndexerOptions) => Promise<IndexInput[]>;
|
787
|
-
/**
|
788
|
-
* @soonDeprecated Use {@link index} instead
|
789
|
-
*/
|
790
|
-
indexer?: never;
|
791
|
-
};
|
792
|
-
type DeprecatedIndexer = BaseIndexer & {
|
793
762
|
indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
|
794
|
-
|
795
|
-
};
|
796
|
-
/**
|
797
|
-
* @soonDeprecated Use {@link Indexer} instead
|
798
|
-
*/
|
799
|
-
type StoryIndexer = Indexer | DeprecatedIndexer;
|
800
|
-
/**
|
801
|
-
* The base input for indexing a story or docs entry.
|
802
|
-
*/
|
803
|
-
type BaseIndexInput = {
|
804
|
-
/** The file to import from e.g. the story file. */
|
805
|
-
importPath: Path;
|
806
|
-
/** The name of the export to import. */
|
807
|
-
exportName: ExportName;
|
808
|
-
/** The name of the entry, auto-generated from {@link exportName} if unspecified. */
|
809
|
-
name?: StoryName;
|
810
|
-
/** The location in the sidebar, auto-generated from {@link importPath} if unspecified. */
|
811
|
-
title?: ComponentTitle;
|
812
|
-
/**
|
813
|
-
* The custom id optionally set at `meta.id` if it needs to differ from the id generated via {@link title}.
|
814
|
-
* If unspecified, the meta id will be auto-generated from {@link title}.
|
815
|
-
* If specified, the meta in the CSF file _must_ have a matching id set at `meta.id`, to be correctly matched.
|
816
|
-
*/
|
817
|
-
metaId?: MetaId;
|
818
|
-
/** Tags for filtering entries in Storybook and its tools. */
|
819
|
-
tags?: Tag[];
|
820
|
-
/**
|
821
|
-
* The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if unspecified.
|
822
|
-
* If specified, the story in the CSF file _must_ have a matching id set at `parameters.__id`, to be correctly matched.
|
823
|
-
* Only use this if you need to override the auto-generated id.
|
824
|
-
*/
|
825
|
-
__id?: StoryId;
|
826
|
-
};
|
827
|
-
/**
|
828
|
-
* The input for indexing a story entry.
|
829
|
-
*/
|
830
|
-
type StoryIndexInput = BaseIndexInput & {
|
831
|
-
type: 'story';
|
832
|
-
};
|
833
|
-
/**
|
834
|
-
* The input for indexing a docs entry.
|
835
|
-
*/
|
836
|
-
type DocsIndexInput = BaseIndexInput & {
|
837
|
-
type: 'docs';
|
838
|
-
/** Paths to story files that must be pre-loaded for this docs entry. */
|
839
|
-
storiesImports?: Path[];
|
840
|
-
};
|
841
|
-
type IndexInput = StoryIndexInput | DocsIndexInput;
|
842
|
-
type Path = string;
|
763
|
+
}
|
843
764
|
|
844
765
|
interface Options$1 {
|
845
766
|
allowRegExp: boolean;
|
@@ -1115,13 +1036,8 @@ interface StorybookConfig$1 {
|
|
1115
1036
|
previewAnnotations?: PresetValue<Entry[]>;
|
1116
1037
|
/**
|
1117
1038
|
* Process CSF files for the story index.
|
1118
|
-
* @soonDeprecated use {@link experimental_indexers} instead
|
1119
1039
|
*/
|
1120
1040
|
storyIndexers?: PresetValue<StoryIndexer[]>;
|
1121
|
-
/**
|
1122
|
-
* Process CSF files for the story index.
|
1123
|
-
*/
|
1124
|
-
experimental_indexers?: PresetValue<Indexer[]>;
|
1125
1041
|
/**
|
1126
1042
|
* Docs related features in index generation
|
1127
1043
|
*/
|
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-23697-sha-615db423",
|
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-23697-sha-615db423",
|
51
|
+
"@storybook/core-server": "0.0.0-pr-23697-sha-615db423",
|
52
|
+
"@storybook/node-logger": "0.0.0-pr-23697-sha-615db423",
|
53
|
+
"@storybook/web-components": "0.0.0-pr-23697-sha-615db423",
|
54
54
|
"magic-string": "^0.30.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|