@storybook/preact 6.5.0-alpha.5 → 6.5.0-alpha.50
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/cjs/client/index.js +18 -16
- package/dist/cjs/client/preview/config.js +1 -1
- package/dist/cjs/client/preview/index.js +1 -1
- package/dist/cjs/client/preview/render.js +5 -5
- package/dist/cjs/client/preview/types-6-0.js +5 -1
- package/dist/cjs/client/preview/types-7-0.js +5 -1
- package/dist/cjs/server/framework-preset-preact.js +3 -3
- package/dist/esm/client/preview/types-6-0.js +1 -0
- package/dist/esm/client/preview/types-7-0.js +1 -0
- package/dist/esm/server/framework-preset-preact.js +2 -2
- package/dist/modern/client/preview/types-6-0.js +1 -0
- package/dist/modern/client/preview/types-7-0.js +1 -0
- package/dist/modern/server/framework-preset-preact.js +2 -2
- package/dist/ts3.4/server/framework-preset-preact.d.ts +2 -98
- package/dist/ts3.9/client/preview/index.d.ts +3 -3
- package/dist/ts3.9/client/preview/types-6-0.d.ts +3 -3
- package/dist/ts3.9/client/preview/types-7-0.d.ts +1 -1
- package/dist/ts3.9/server/framework-preset-preact.d.ts +5 -101
- package/dist/ts3.9/server/options.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cjs/typings.d.js +0 -1
- package/dist/esm/typings.d.js +0 -0
- package/dist/modern/typings.d.js +0 -0
package/dist/cjs/client/index.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
require("core-js/modules/es.object.to-string.js");
|
4
|
+
|
3
5
|
require("core-js/modules/web.dom-collections.for-each.js");
|
4
6
|
|
5
7
|
require("core-js/modules/es.object.keys.js");
|
@@ -17,18 +19,6 @@ var _exportNames = {
|
|
17
19
|
forceReRender: true,
|
18
20
|
raw: true
|
19
21
|
};
|
20
|
-
Object.defineProperty(exports, "storiesOf", {
|
21
|
-
enumerable: true,
|
22
|
-
get: function get() {
|
23
|
-
return _preview.storiesOf;
|
24
|
-
}
|
25
|
-
});
|
26
|
-
Object.defineProperty(exports, "setAddon", {
|
27
|
-
enumerable: true,
|
28
|
-
get: function get() {
|
29
|
-
return _preview.setAddon;
|
30
|
-
}
|
31
|
-
});
|
32
22
|
Object.defineProperty(exports, "addDecorator", {
|
33
23
|
enumerable: true,
|
34
24
|
get: function get() {
|
@@ -47,16 +37,16 @@ Object.defineProperty(exports, "configure", {
|
|
47
37
|
return _preview.configure;
|
48
38
|
}
|
49
39
|
});
|
50
|
-
Object.defineProperty(exports, "
|
40
|
+
Object.defineProperty(exports, "forceReRender", {
|
51
41
|
enumerable: true,
|
52
42
|
get: function get() {
|
53
|
-
return _preview.
|
43
|
+
return _preview.forceReRender;
|
54
44
|
}
|
55
45
|
});
|
56
|
-
Object.defineProperty(exports, "
|
46
|
+
Object.defineProperty(exports, "getStorybook", {
|
57
47
|
enumerable: true,
|
58
48
|
get: function get() {
|
59
|
-
return _preview.
|
49
|
+
return _preview.getStorybook;
|
60
50
|
}
|
61
51
|
});
|
62
52
|
Object.defineProperty(exports, "raw", {
|
@@ -65,6 +55,18 @@ Object.defineProperty(exports, "raw", {
|
|
65
55
|
return _preview.raw;
|
66
56
|
}
|
67
57
|
});
|
58
|
+
Object.defineProperty(exports, "setAddon", {
|
59
|
+
enumerable: true,
|
60
|
+
get: function get() {
|
61
|
+
return _preview.setAddon;
|
62
|
+
}
|
63
|
+
});
|
64
|
+
Object.defineProperty(exports, "storiesOf", {
|
65
|
+
enumerable: true,
|
66
|
+
get: function get() {
|
67
|
+
return _preview.storiesOf;
|
68
|
+
}
|
69
|
+
});
|
68
70
|
|
69
71
|
var _preview = require("./preview");
|
70
72
|
|
@@ -3,13 +3,13 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
exports.parameters = void 0;
|
6
7
|
Object.defineProperty(exports, "renderToDOM", {
|
7
8
|
enumerable: true,
|
8
9
|
get: function get() {
|
9
10
|
return _render.renderToDOM;
|
10
11
|
}
|
11
12
|
});
|
12
|
-
exports.parameters = void 0;
|
13
13
|
|
14
14
|
var _render = require("./render");
|
15
15
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.storiesOf = exports.setAddon = exports.raw = exports.getStorybook = exports.forceReRender = exports.configure = exports.clearDecorators = exports.addParameters = exports.addDecorator = void 0;
|
7
7
|
|
8
8
|
require("core-js/modules/es.array.concat.js");
|
9
9
|
|
@@ -1,18 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
4
4
|
|
5
5
|
require("core-js/modules/es.array.slice.js");
|
6
6
|
|
7
7
|
require("core-js/modules/es.object.freeze.js");
|
8
8
|
|
9
|
-
require("core-js/modules/es.
|
9
|
+
require("core-js/modules/es.array.iterator.js");
|
10
10
|
|
11
11
|
require("core-js/modules/es.object.to-string.js");
|
12
12
|
|
13
13
|
require("core-js/modules/es.string.iterator.js");
|
14
14
|
|
15
|
-
require("core-js/modules/es.
|
15
|
+
require("core-js/modules/es.weak-map.js");
|
16
16
|
|
17
17
|
require("core-js/modules/web.dom-collections.iterator.js");
|
18
18
|
|
@@ -41,9 +41,9 @@ var _templateObject;
|
|
41
41
|
|
42
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
43
43
|
|
44
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
44
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
45
45
|
|
46
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
46
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
47
47
|
|
48
48
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
49
49
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.babelDefault = babelDefault;
|
7
|
-
exports.webpackFinal = webpackFinal;
|
8
7
|
exports.config = void 0;
|
8
|
+
exports.webpackFinal = webpackFinal;
|
9
9
|
|
10
10
|
var _path = _interopRequireDefault(require("path"));
|
11
11
|
|
@@ -13,9 +13,9 @@ var _coreCommon = require("@storybook/core-common");
|
|
13
13
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
15
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
17
17
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
19
19
|
|
20
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
21
21
|
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
2
2
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
4
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
6
|
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
2
2
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
4
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
6
|
|
@@ -1,102 +1,6 @@
|
|
1
1
|
import { TransformOptions } from '@babel/core';
|
2
2
|
import { Configuration } from 'webpack';
|
3
3
|
import { StorybookConfig } from '@storybook/core-common';
|
4
|
-
export declare function babelDefault(config: TransformOptions):
|
5
|
-
|
6
|
-
ast?: boolean;
|
7
|
-
auxiliaryCommentAfter?: string;
|
8
|
-
auxiliaryCommentBefore?: string;
|
9
|
-
root?: string;
|
10
|
-
rootMode?: "root" | "upward" | "upward-optional";
|
11
|
-
configFile?: string | boolean;
|
12
|
-
babelrc?: boolean;
|
13
|
-
babelrcRoots?: string | boolean | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
14
|
-
envName?: string;
|
15
|
-
exclude?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
16
|
-
code?: boolean;
|
17
|
-
comments?: boolean;
|
18
|
-
compact?: boolean | "auto";
|
19
|
-
cwd?: string;
|
20
|
-
caller?: import("@babel/core").TransformCaller;
|
21
|
-
env?: {
|
22
|
-
[index: string]: TransformOptions;
|
23
|
-
};
|
24
|
-
extends?: string;
|
25
|
-
filename?: string;
|
26
|
-
filenameRelative?: string;
|
27
|
-
generatorOpts?: import("@babel/generator").GeneratorOptions;
|
28
|
-
getModuleId?: (moduleName: string) => string;
|
29
|
-
highlightCode?: boolean;
|
30
|
-
ignore?: import("@babel/core").MatchPattern[];
|
31
|
-
include?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
32
|
-
inputSourceMap?: object;
|
33
|
-
minified?: boolean;
|
34
|
-
moduleId?: string;
|
35
|
-
moduleIds?: boolean;
|
36
|
-
moduleRoot?: string;
|
37
|
-
only?: import("@babel/core").MatchPattern[];
|
38
|
-
overrides?: TransformOptions[];
|
39
|
-
parserOpts?: import("@babel/parser").ParserOptions;
|
40
|
-
presets?: import("@babel/core").PluginItem[];
|
41
|
-
retainLines?: boolean;
|
42
|
-
shouldPrintComment?: (commentContents: string) => boolean;
|
43
|
-
sourceFileName?: string;
|
44
|
-
sourceMaps?: boolean | "inline" | "both";
|
45
|
-
sourceRoot?: string;
|
46
|
-
sourceType?: "script" | "module" | "unambiguous";
|
47
|
-
test?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
48
|
-
wrapPluginVisitorMethod?: (pluginAlias: string, visitorType: "enter" | "exit", callback: (path: import("@babel/traverse").NodePath<import("@babel/types").Node>, state: any) => void) => (path: import("@babel/traverse").NodePath<import("@babel/types").Node>, state: any) => void;
|
49
|
-
};
|
50
|
-
export declare function webpackFinal(config: Configuration): {
|
51
|
-
resolve: {
|
52
|
-
alias: {
|
53
|
-
react: string;
|
54
|
-
'react-dom/test-utils': string;
|
55
|
-
'react-dom': string;
|
56
|
-
};
|
57
|
-
modules?: string[];
|
58
|
-
descriptionFiles?: string[];
|
59
|
-
mainFields?: string[] | string[][];
|
60
|
-
aliasFields?: string[] | string[][];
|
61
|
-
mainFiles?: string[];
|
62
|
-
extensions?: string[];
|
63
|
-
enforceExtension?: boolean;
|
64
|
-
unsafeCache?: boolean | {};
|
65
|
-
cachePredicate?(data: {
|
66
|
-
path: string;
|
67
|
-
request: string;
|
68
|
-
}): boolean;
|
69
|
-
plugins?: import("webpack").ResolvePlugin[];
|
70
|
-
symlinks?: boolean;
|
71
|
-
cacheWithContext?: boolean;
|
72
|
-
roots?: string[];
|
73
|
-
};
|
74
|
-
mode?: "development" | "production" | "none";
|
75
|
-
name?: string;
|
76
|
-
context?: string;
|
77
|
-
entry?: string | string[] | import("webpack").Entry | import("webpack").EntryFunc;
|
78
|
-
devtool?: import("webpack").Options.Devtool;
|
79
|
-
output?: import("webpack").Output;
|
80
|
-
module?: import("webpack").Module;
|
81
|
-
resolveLoader?: import("webpack").ResolveLoader;
|
82
|
-
externals?: string | RegExp | import("webpack").ExternalsObjectElement | import("webpack").ExternalsFunctionElement | import("webpack").ExternalsElement[];
|
83
|
-
target?: "node" | "web" | "webworker" | "async-node" | "node-webkit" | "atom" | "electron" | "electron-renderer" | "electron-preload" | "electron-main" | ((compiler?: any) => void);
|
84
|
-
bail?: boolean;
|
85
|
-
profile?: boolean;
|
86
|
-
cache?: boolean | object;
|
87
|
-
watch?: boolean;
|
88
|
-
watchOptions?: import("webpack").ICompiler.WatchOptions;
|
89
|
-
node?: false | import("webpack").Node;
|
90
|
-
amd?: {
|
91
|
-
[moduleName: string]: boolean;
|
92
|
-
};
|
93
|
-
recordsPath?: string;
|
94
|
-
recordsInputPath?: string;
|
95
|
-
recordsOutputPath?: string;
|
96
|
-
plugins?: import("webpack").Plugin[];
|
97
|
-
stats?: import("webpack").Stats.ToStringOptions;
|
98
|
-
performance?: false | import("webpack").Options.Performance;
|
99
|
-
parallelism?: number;
|
100
|
-
optimization?: import("webpack").Options.Optimization;
|
101
|
-
};
|
4
|
+
export declare function babelDefault(config: TransformOptions): TransformOptions;
|
5
|
+
export declare function webpackFinal(config: Configuration): Configuration;
|
102
6
|
export declare const config: StorybookConfig['config'];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="webpack-env" />
|
2
2
|
/// <reference types="node" />
|
3
|
-
import { ClientStoryApi, Loadable } from '@storybook/addons';
|
3
|
+
import type { ClientStoryApi, Loadable } from '@storybook/addons';
|
4
4
|
import './globals';
|
5
|
-
import { IStorybookSection } from './types';
|
6
|
-
import { PreactFramework } from './types-6-0';
|
5
|
+
import type { IStorybookSection } from './types';
|
6
|
+
import type { PreactFramework } from './types-6-0';
|
7
7
|
export interface ClientApi extends ClientStoryApi<PreactFramework['storyResult']> {
|
8
8
|
setAddon(addon: any): void;
|
9
9
|
configure(loader: Loadable, module: NodeModule): void;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { AnyComponent } from 'preact';
|
2
|
-
import { Args, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
3
|
-
import { StoryFnPreactReturnType } from './types';
|
1
|
+
import type { AnyComponent } from 'preact';
|
2
|
+
import type { Args, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
3
|
+
import type { StoryFnPreactReturnType } from './types';
|
4
4
|
export type { Args, ArgTypes, Parameters, StoryContext } from '@storybook/csf';
|
5
5
|
export declare type PreactFramework = {
|
6
6
|
component: AnyComponent<any, any>;
|
@@ -1,102 +1,6 @@
|
|
1
|
-
import { TransformOptions } from '@babel/core';
|
2
|
-
import { Configuration } from 'webpack';
|
3
|
-
import { StorybookConfig } from '@storybook/core-common';
|
4
|
-
export declare function babelDefault(config: TransformOptions):
|
5
|
-
|
6
|
-
ast?: boolean;
|
7
|
-
auxiliaryCommentAfter?: string;
|
8
|
-
auxiliaryCommentBefore?: string;
|
9
|
-
root?: string;
|
10
|
-
rootMode?: "root" | "upward" | "upward-optional";
|
11
|
-
configFile?: string | boolean;
|
12
|
-
babelrc?: boolean;
|
13
|
-
babelrcRoots?: string | boolean | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
14
|
-
envName?: string;
|
15
|
-
exclude?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
16
|
-
code?: boolean;
|
17
|
-
comments?: boolean;
|
18
|
-
compact?: boolean | "auto";
|
19
|
-
cwd?: string;
|
20
|
-
caller?: import("@babel/core").TransformCaller;
|
21
|
-
env?: {
|
22
|
-
[index: string]: TransformOptions;
|
23
|
-
};
|
24
|
-
extends?: string;
|
25
|
-
filename?: string;
|
26
|
-
filenameRelative?: string;
|
27
|
-
generatorOpts?: import("@babel/generator").GeneratorOptions;
|
28
|
-
getModuleId?: (moduleName: string) => string;
|
29
|
-
highlightCode?: boolean;
|
30
|
-
ignore?: import("@babel/core").MatchPattern[];
|
31
|
-
include?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
32
|
-
inputSourceMap?: object;
|
33
|
-
minified?: boolean;
|
34
|
-
moduleId?: string;
|
35
|
-
moduleIds?: boolean;
|
36
|
-
moduleRoot?: string;
|
37
|
-
only?: import("@babel/core").MatchPattern[];
|
38
|
-
overrides?: TransformOptions[];
|
39
|
-
parserOpts?: import("@babel/parser").ParserOptions;
|
40
|
-
presets?: import("@babel/core").PluginItem[];
|
41
|
-
retainLines?: boolean;
|
42
|
-
shouldPrintComment?: (commentContents: string) => boolean;
|
43
|
-
sourceFileName?: string;
|
44
|
-
sourceMaps?: boolean | "inline" | "both";
|
45
|
-
sourceRoot?: string;
|
46
|
-
sourceType?: "script" | "module" | "unambiguous";
|
47
|
-
test?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
48
|
-
wrapPluginVisitorMethod?: (pluginAlias: string, visitorType: "enter" | "exit", callback: (path: import("@babel/traverse").NodePath<import("@babel/types").Node>, state: any) => void) => (path: import("@babel/traverse").NodePath<import("@babel/types").Node>, state: any) => void;
|
49
|
-
};
|
50
|
-
export declare function webpackFinal(config: Configuration): {
|
51
|
-
resolve: {
|
52
|
-
alias: {
|
53
|
-
react: string;
|
54
|
-
'react-dom/test-utils': string;
|
55
|
-
'react-dom': string;
|
56
|
-
};
|
57
|
-
modules?: string[];
|
58
|
-
descriptionFiles?: string[];
|
59
|
-
mainFields?: string[] | string[][];
|
60
|
-
aliasFields?: string[] | string[][];
|
61
|
-
mainFiles?: string[];
|
62
|
-
extensions?: string[];
|
63
|
-
enforceExtension?: boolean;
|
64
|
-
unsafeCache?: boolean | {};
|
65
|
-
cachePredicate?(data: {
|
66
|
-
path: string;
|
67
|
-
request: string;
|
68
|
-
}): boolean;
|
69
|
-
plugins?: import("webpack").ResolvePlugin[];
|
70
|
-
symlinks?: boolean;
|
71
|
-
cacheWithContext?: boolean;
|
72
|
-
roots?: string[];
|
73
|
-
};
|
74
|
-
mode?: "development" | "production" | "none";
|
75
|
-
name?: string;
|
76
|
-
context?: string;
|
77
|
-
entry?: string | string[] | import("webpack").Entry | import("webpack").EntryFunc;
|
78
|
-
devtool?: import("webpack").Options.Devtool;
|
79
|
-
output?: import("webpack").Output;
|
80
|
-
module?: import("webpack").Module;
|
81
|
-
resolveLoader?: import("webpack").ResolveLoader;
|
82
|
-
externals?: string | RegExp | import("webpack").ExternalsObjectElement | import("webpack").ExternalsFunctionElement | import("webpack").ExternalsElement[];
|
83
|
-
target?: "node" | "web" | "webworker" | "async-node" | "node-webkit" | "atom" | "electron" | "electron-renderer" | "electron-preload" | "electron-main" | ((compiler?: any) => void);
|
84
|
-
bail?: boolean;
|
85
|
-
profile?: boolean;
|
86
|
-
cache?: boolean | object;
|
87
|
-
watch?: boolean;
|
88
|
-
watchOptions?: import("webpack").ICompiler.WatchOptions;
|
89
|
-
node?: false | import("webpack").Node;
|
90
|
-
amd?: {
|
91
|
-
[moduleName: string]: boolean;
|
92
|
-
};
|
93
|
-
recordsPath?: string;
|
94
|
-
recordsInputPath?: string;
|
95
|
-
recordsOutputPath?: string;
|
96
|
-
plugins?: import("webpack").Plugin[];
|
97
|
-
stats?: import("webpack").Stats.ToStringOptions;
|
98
|
-
performance?: false | import("webpack").Options.Performance;
|
99
|
-
parallelism?: number;
|
100
|
-
optimization?: import("webpack").Options.Optimization;
|
101
|
-
};
|
1
|
+
import type { TransformOptions } from '@babel/core';
|
2
|
+
import type { Configuration } from 'webpack';
|
3
|
+
import type { StorybookConfig } from '@storybook/core-common';
|
4
|
+
export declare function babelDefault(config: TransformOptions): TransformOptions;
|
5
|
+
export declare function webpackFinal(config: Configuration): Configuration;
|
102
6
|
export declare const config: StorybookConfig['config'];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preact",
|
3
|
-
"version": "6.5.0-alpha.
|
3
|
+
"version": "6.5.0-alpha.50",
|
4
4
|
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -46,11 +46,11 @@
|
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
48
|
"@babel/plugin-transform-react-jsx": "^7.12.12",
|
49
|
-
"@storybook/addons": "6.5.0-alpha.
|
50
|
-
"@storybook/core": "6.5.0-alpha.
|
51
|
-
"@storybook/core-common": "6.5.0-alpha.
|
52
|
-
"@storybook/csf": "0.0.2--canary.
|
53
|
-
"@storybook/store": "6.5.0-alpha.
|
49
|
+
"@storybook/addons": "6.5.0-alpha.50",
|
50
|
+
"@storybook/core": "6.5.0-alpha.50",
|
51
|
+
"@storybook/core-common": "6.5.0-alpha.50",
|
52
|
+
"@storybook/csf": "0.0.2--canary.507502b.0",
|
53
|
+
"@storybook/store": "6.5.0-alpha.50",
|
54
54
|
"@types/node": "^14.14.20 || ^16.0.0",
|
55
55
|
"@types/webpack-env": "^1.16.0",
|
56
56
|
"core-js": "^3.8.2",
|
@@ -75,6 +75,6 @@
|
|
75
75
|
"publishConfig": {
|
76
76
|
"access": "public"
|
77
77
|
},
|
78
|
-
"gitHead": "
|
78
|
+
"gitHead": "6cf4571e5a1200613de94aa066fe93f75aec6ad1",
|
79
79
|
"sbmodern": "dist/modern/client/index.js"
|
80
80
|
}
|
package/dist/cjs/typings.d.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";
|
package/dist/esm/typings.d.js
DELETED
File without changes
|
package/dist/modern/typings.d.js
DELETED
File without changes
|