@storybook/preact 6.4.0-beta.6 → 6.4.0-rc.0
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/server/framework-preset-preact.js +10 -1
- package/dist/esm/server/framework-preset-preact.js +5 -1
- package/dist/modern/server/framework-preset-preact.js +5 -1
- package/dist/ts3.4/server/framework-preset-preact.d.ts +2 -0
- package/dist/ts3.9/server/framework-preset-preact.d.ts +2 -0
- package/package.json +7 -7
- package/preset.js +1 -7
- package/types-7-0.d.ts +1 -0
@@ -5,9 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.babelDefault = babelDefault;
|
7
7
|
exports.webpackFinal = webpackFinal;
|
8
|
+
exports.config = void 0;
|
8
9
|
|
9
10
|
var _path = _interopRequireDefault(require("path"));
|
10
11
|
|
12
|
+
var _coreCommon = require("@storybook/core-common");
|
13
|
+
|
11
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
15
|
|
13
16
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
@@ -34,4 +37,10 @@ function webpackFinal(config) {
|
|
34
37
|
})
|
35
38
|
})
|
36
39
|
});
|
37
|
-
}
|
40
|
+
}
|
41
|
+
|
42
|
+
var config = function (entry = []) {
|
43
|
+
return [...entry, (0, _coreCommon.findDistEsm)(__dirname, 'client/preview/config')];
|
44
|
+
};
|
45
|
+
|
46
|
+
exports.config = config;
|
@@ -5,6 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
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
|
|
7
7
|
import path from 'path';
|
8
|
+
import { findDistEsm } from '@storybook/core-common';
|
8
9
|
export function babelDefault(config) {
|
9
10
|
return _objectSpread(_objectSpread({}, config), {}, {
|
10
11
|
plugins: [...config.plugins, [require.resolve('@babel/plugin-transform-react-jsx'), {
|
@@ -22,4 +23,7 @@ export function webpackFinal(config) {
|
|
22
23
|
})
|
23
24
|
})
|
24
25
|
});
|
25
|
-
}
|
26
|
+
}
|
27
|
+
export var config = function (entry = []) {
|
28
|
+
return [...entry, findDistEsm(__dirname, 'client/preview/config')];
|
29
|
+
};
|
@@ -5,6 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
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
|
|
7
7
|
import path from 'path';
|
8
|
+
import { findDistEsm } from '@storybook/core-common';
|
8
9
|
export function babelDefault(config) {
|
9
10
|
return _objectSpread(_objectSpread({}, config), {}, {
|
10
11
|
plugins: [...config.plugins, [require.resolve('@babel/plugin-transform-react-jsx'), {
|
@@ -22,4 +23,7 @@ export function webpackFinal(config) {
|
|
22
23
|
})
|
23
24
|
})
|
24
25
|
});
|
25
|
-
}
|
26
|
+
}
|
27
|
+
export var config = function (entry = []) {
|
28
|
+
return [...entry, findDistEsm(__dirname, 'client/preview/config')];
|
29
|
+
};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { TransformOptions } from '@babel/core';
|
2
2
|
import { Configuration } from 'webpack';
|
3
|
+
import { StorybookConfig } from '@storybook/core-common';
|
3
4
|
export declare function babelDefault(config: TransformOptions): {
|
4
5
|
plugins: (string | object)[];
|
5
6
|
ast?: boolean;
|
@@ -98,3 +99,4 @@ export declare function webpackFinal(config: Configuration): {
|
|
98
99
|
parallelism?: number;
|
99
100
|
optimization?: import("webpack").Options.Optimization;
|
100
101
|
};
|
102
|
+
export declare const config: StorybookConfig['config'];
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { TransformOptions } from '@babel/core';
|
2
2
|
import { Configuration } from 'webpack';
|
3
|
+
import { StorybookConfig } from '@storybook/core-common';
|
3
4
|
export declare function babelDefault(config: TransformOptions): {
|
4
5
|
plugins: (string | object)[];
|
5
6
|
ast?: boolean;
|
@@ -98,3 +99,4 @@ export declare function webpackFinal(config: Configuration): {
|
|
98
99
|
parallelism?: number;
|
99
100
|
optimization?: import("webpack").Options.Optimization;
|
100
101
|
};
|
102
|
+
export declare const config: StorybookConfig['config'];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preact",
|
3
|
-
"version": "6.4.0-
|
3
|
+
"version": "6.4.0-rc.0",
|
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.4.0-
|
50
|
-
"@storybook/core": "6.4.0-
|
51
|
-
"@storybook/core-common": "6.4.0-
|
52
|
-
"@storybook/csf": "0.0.2--canary.
|
53
|
-
"@storybook/store": "6.4.0-
|
49
|
+
"@storybook/addons": "6.4.0-rc.0",
|
50
|
+
"@storybook/core": "6.4.0-rc.0",
|
51
|
+
"@storybook/core-common": "6.4.0-rc.0",
|
52
|
+
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
53
|
+
"@storybook/store": "6.4.0-rc.0",
|
54
54
|
"@types/webpack-env": "^1.16.0",
|
55
55
|
"core-js": "^3.8.2",
|
56
56
|
"global": "^4.4.0",
|
@@ -74,6 +74,6 @@
|
|
74
74
|
"publishConfig": {
|
75
75
|
"access": "public"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "812e75b32c7fe222b872961a83c05cc8ece36a36",
|
78
78
|
"sbmodern": "dist/modern/client/index.js"
|
79
79
|
}
|
package/preset.js
CHANGED
package/types-7-0.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dist/ts3.9/client/preview/types-7-0.d';
|