@storybook/html-webpack5 0.0.0-pr-23626-sha-0d5a537f → 0.0.0-pr-23435-sha-7496d4ba
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/preset.d.ts +1 -65
- package/package.json +5 -5
package/dist/preset.d.ts
CHANGED
@@ -720,16 +720,11 @@ PackageJson$1.NonStandardEntryPoints &
|
|
720
720
|
PackageJson$1.TypeScriptConfiguration &
|
721
721
|
PackageJson$1.YarnConfiguration &
|
722
722
|
PackageJson$1.JSPMConfiguration;
|
723
|
-
|
724
|
-
type StoryId = string;
|
725
|
-
type ComponentTitle = string;
|
726
|
-
type StoryName = string;
|
727
723
|
type Tag = string;
|
728
724
|
interface Parameters {
|
729
725
|
[name: string]: any;
|
730
726
|
}
|
731
727
|
|
732
|
-
type ExportKey = string;
|
733
728
|
interface StoriesSpecifier {
|
734
729
|
/**
|
735
730
|
* When auto-titling, what to prefix all generated titles with (default: '')
|
@@ -763,64 +758,10 @@ interface IndexedCSFFile {
|
|
763
758
|
};
|
764
759
|
stories: IndexedStory[];
|
765
760
|
}
|
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
|
-
*/
|
761
|
+
interface StoryIndexer {
|
774
762
|
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
|
-
* @deprecated Use {@link index} instead
|
789
|
-
*/
|
790
|
-
indexer?: never;
|
791
|
-
};
|
792
|
-
type DeprecatedIndexer = BaseIndexer & {
|
793
763
|
indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
|
794
|
-
index?: never;
|
795
|
-
};
|
796
|
-
/**
|
797
|
-
* @deprecated Use {@link Indexer} instead
|
798
|
-
*/
|
799
|
-
type StoryIndexer = Indexer | DeprecatedIndexer;
|
800
|
-
interface BaseIndexInput {
|
801
|
-
/** the file to import from e.g. the story file */
|
802
|
-
importPath: Path;
|
803
|
-
/** the key to import from the file e.g. the story export for this entry */
|
804
|
-
key: ExportKey;
|
805
|
-
/** the location in the sidebar, auto-generated from {@link importPath} if unspecified */
|
806
|
-
title?: ComponentTitle;
|
807
|
-
/** the name of the story, auto-generated from {@link key} if unspecified */
|
808
|
-
name?: StoryName;
|
809
|
-
/** the unique story ID, auto-generated from {@link title} and {@link name} if unspecified */
|
810
|
-
id?: StoryId;
|
811
|
-
/** tags for filtering entries in Storybook and its tools */
|
812
|
-
tags?: Tag[];
|
813
764
|
}
|
814
|
-
type StoryIndexInput = BaseIndexInput & {
|
815
|
-
type: 'story';
|
816
|
-
};
|
817
|
-
type DocsIndexInput = BaseIndexInput & {
|
818
|
-
type: 'docs';
|
819
|
-
/** paths to story files that must be pre-loaded for this docs entry */
|
820
|
-
storiesImports?: Path[];
|
821
|
-
};
|
822
|
-
type IndexInput = StoryIndexInput | DocsIndexInput;
|
823
|
-
type Path = string;
|
824
765
|
|
825
766
|
interface Options$1 {
|
826
767
|
allowRegExp: boolean;
|
@@ -1096,13 +1037,8 @@ interface StorybookConfig {
|
|
1096
1037
|
previewAnnotations?: PresetValue<Entry[]>;
|
1097
1038
|
/**
|
1098
1039
|
* Process CSF files for the story index.
|
1099
|
-
* @deprecated use {@link indexers} instead
|
1100
1040
|
*/
|
1101
1041
|
storyIndexers?: PresetValue<StoryIndexer[]>;
|
1102
|
-
/**
|
1103
|
-
* Process CSF files for the story index.
|
1104
|
-
*/
|
1105
|
-
indexers?: PresetValue<Indexer[]>;
|
1106
1042
|
/**
|
1107
1043
|
* Docs related features in index generation
|
1108
1044
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/html-webpack5",
|
3
|
-
"version": "0.0.0-pr-
|
3
|
+
"version": "0.0.0-pr-23435-sha-7496d4ba",
|
4
4
|
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,11 +47,11 @@
|
|
47
47
|
"prep": "../../../scripts/prepare/bundle.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@storybook/builder-webpack5": "0.0.0-pr-
|
51
|
-
"@storybook/core-common": "0.0.0-pr-
|
50
|
+
"@storybook/builder-webpack5": "0.0.0-pr-23435-sha-7496d4ba",
|
51
|
+
"@storybook/core-common": "0.0.0-pr-23435-sha-7496d4ba",
|
52
52
|
"@storybook/global": "^5.0.0",
|
53
|
-
"@storybook/html": "0.0.0-pr-
|
54
|
-
"@storybook/preset-html-webpack": "0.0.0-pr-
|
53
|
+
"@storybook/html": "0.0.0-pr-23435-sha-7496d4ba",
|
54
|
+
"@storybook/preset-html-webpack": "0.0.0-pr-23435-sha-7496d4ba",
|
55
55
|
"@types/node": "^16.0.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|