@storybook/html 6.4.0-beta.9 → 6.4.0-rc.11
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-html.js +10 -1
- package/dist/esm/server/framework-preset-html.js +5 -1
- package/dist/modern/server/framework-preset-html.js +5 -1
- package/dist/ts3.4/server/framework-preset-html.d.ts +2 -0
- package/dist/ts3.9/server/framework-preset-html.d.ts +2 -0
- package/package.json +9 -9
- package/preset.js +1 -7
- package/types-7-0.d.ts +1 -0
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.webpack = webpack;
|
|
7
|
+
exports.config = void 0;
|
|
8
|
+
|
|
9
|
+
var _coreCommon = require("@storybook/core-common");
|
|
7
10
|
|
|
8
11
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
9
12
|
function webpack(config) {
|
|
@@ -12,4 +15,10 @@ function webpack(config) {
|
|
|
12
15
|
use: require.resolve('html-loader')
|
|
13
16
|
});
|
|
14
17
|
return config;
|
|
15
|
-
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
var config = function (entry = []) {
|
|
21
|
+
return [...entry, (0, _coreCommon.findDistEsm)(__dirname, 'client/preview/config')];
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.config = config;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
+
import { findDistEsm } from '@storybook/core-common';
|
|
2
3
|
export function webpack(config) {
|
|
3
4
|
config.module.rules.push({
|
|
4
5
|
test: /\.html$/,
|
|
5
6
|
use: require.resolve('html-loader')
|
|
6
7
|
});
|
|
7
8
|
return config;
|
|
8
|
-
}
|
|
9
|
+
}
|
|
10
|
+
export var config = function (entry = []) {
|
|
11
|
+
return [...entry, findDistEsm(__dirname, 'client/preview/config')];
|
|
12
|
+
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
+
import { findDistEsm } from '@storybook/core-common';
|
|
2
3
|
export function webpack(config) {
|
|
3
4
|
config.module.rules.push({
|
|
4
5
|
test: /\.html$/,
|
|
5
6
|
use: require.resolve('html-loader')
|
|
6
7
|
});
|
|
7
8
|
return config;
|
|
8
|
-
}
|
|
9
|
+
}
|
|
10
|
+
export var config = function (entry = []) {
|
|
11
|
+
return [...entry, findDistEsm(__dirname, 'client/preview/config')];
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/html",
|
|
3
|
-
"version": "6.4.0-
|
|
3
|
+
"version": "6.4.0-rc.11",
|
|
4
4
|
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"prepare": "node ../../scripts/prepare.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@storybook/addons": "6.4.0-
|
|
49
|
-
"@storybook/client-api": "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/preview-web": "6.4.0-
|
|
54
|
-
"@storybook/store": "6.4.0-
|
|
48
|
+
"@storybook/addons": "6.4.0-rc.11",
|
|
49
|
+
"@storybook/client-api": "6.4.0-rc.11",
|
|
50
|
+
"@storybook/core": "6.4.0-rc.11",
|
|
51
|
+
"@storybook/core-common": "6.4.0-rc.11",
|
|
52
|
+
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
53
|
+
"@storybook/preview-web": "6.4.0-rc.11",
|
|
54
|
+
"@storybook/store": "6.4.0-rc.11",
|
|
55
55
|
"@types/webpack-env": "^1.16.0",
|
|
56
56
|
"core-js": "^3.8.2",
|
|
57
57
|
"global": "^4.4.0",
|
|
@@ -71,6 +71,6 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "77eb43c5f02179fb2a823f975448e706710931fc",
|
|
75
75
|
"sbmodern": "dist/modern/client/index.js"
|
|
76
76
|
}
|
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';
|