@storybook/preset-vue3-webpack 7.0.0-alpha.3 → 7.0.0-alpha.33
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/chunk-HKSD7XQF.mjs +1 -0
- package/dist/framework-preset-vue3-docs.d.ts +5 -0
- package/dist/framework-preset-vue3-docs.js +1 -0
- package/dist/framework-preset-vue3-docs.mjs +1 -0
- package/dist/framework-preset-vue3.d.ts +5 -0
- package/dist/framework-preset-vue3.js +1 -0
- package/dist/framework-preset-vue3.mjs +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +45 -11
- package/preset.js +1 -1
- package/LICENSE +0 -21
- package/dist/cjs/framework-preset-vue3-docs.js +0 -36
- package/dist/cjs/framework-preset-vue3.js +0 -53
- package/dist/cjs/index.js +0 -8
- package/dist/esm/framework-preset-vue3-docs.js +0 -24
- package/dist/esm/framework-preset-vue3.js +0 -42
- package/dist/esm/index.js +0 -1
- package/dist/types/framework-preset-vue3-docs.d.ts +0 -2
- package/dist/types/framework-preset-vue3.d.ts +0 -2
- package/dist/types/index.d.ts +0 -2
@@ -0,0 +1 @@
|
|
1
|
+
var d=(a=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(a,{get:(b,c)=>(typeof require!="undefined"?require:b)[c]}):a)(function(a){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+a+'" is not supported')});export{d as a};
|
@@ -0,0 +1 @@
|
|
1
|
+
var l=Object.create;var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var b=(o,e)=>{for(var r in e)n(o,r,{get:e[r],enumerable:!0})},a=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of u(e))!v.call(o,s)&&s!==r&&n(o,s,{get:()=>e[s],enumerable:!(t=c(e,s))||t.enumerable});return o};var k=(o,e,r)=>(r=o!=null?l(d(o)):{},a(e||!o||!o.__esModule?n(r,"default",{value:o,enumerable:!0}):r,o)),m=o=>a(n({},"__esModule",{value:!0}),o);var f={};b(f,{webpackFinal:()=>O});module.exports=m(f);var i=require("@storybook/docs-tools"),O=(o,e)=>{var t;if(!(0,i.hasDocsOrControls)(e))return o;let r={};return(t=e.presetsList)==null||t.forEach(s=>{if(s.name.includes("addon-docs")&&s.options.vueDocgenOptions){let p=s.options.vueDocgenOptions;r={...r,...p}}}),o.module.rules.push({test:/\.vue$/,loader:require.resolve("vue-docgen-loader",{paths:[require.resolve("@storybook/preset-vue3-webpack")]}),enforce:"post",options:{docgenOptions:{alias:o.resolve.alias,...r}}}),o};0&&(module.exports={webpackFinal});
|
@@ -0,0 +1 @@
|
|
1
|
+
import{a as s}from"./chunk-HKSD7XQF.mjs";import{hasDocsOrControls as p}from"@storybook/docs-tools";var l=(o,t)=>{if(!p(t))return o;let e={};return t.presetsList?.forEach(r=>{if(r.name.includes("addon-docs")&&r.options.vueDocgenOptions){let n=r.options.vueDocgenOptions;e={...e,...n}}}),o.module.rules.push({test:/\.vue$/,loader:s.resolve("vue-docgen-loader",{paths:[s.resolve("@storybook/preset-vue3-webpack")]}),enforce:"post",options:{docgenOptions:{alias:o.resolve.alias,...e}}}),o};export{l as webpackFinal};
|
@@ -0,0 +1 @@
|
|
1
|
+
var a=Object.create;var t=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var O=(e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})},i=(e,r,o,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of _(r))!m.call(e,s)&&s!==o&&t(e,s,{get:()=>r[s],enumerable:!(l=v(r,s))||l.enumerable});return e};var u=(e,r,o)=>(o=e!=null?a(d(e)):{},i(r||!e||!e.__esModule?t(o,"default",{value:e,enumerable:!0}):o,e)),y=e=>i(t({},"__esModule",{value:!0}),e);var x={};O(x,{webpack:()=>S});module.exports=y(x);var n=require("vue-loader"),p=require("webpack"),S=e=>({...e,plugins:[...e.plugins,new n.VueLoaderPlugin,new p.DefinePlugin({__VUE_OPTIONS_API__:JSON.stringify(!0),__VUE_PROD_DEVTOOLS__:JSON.stringify(!0)})],module:{...e.module,rules:[...e.module.rules,{test:/\.vue$/,loader:require.resolve("vue-loader"),options:{}},{test:/\.ts$/,use:[{loader:require.resolve("ts-loader"),options:{transpileOnly:!0,appendTsSuffixTo:[/\.vue$/]}}]},{test:/\.tsx$/,use:[{loader:require.resolve("ts-loader"),options:{transpileOnly:!0,appendTsxSuffixTo:[/\.vue$/]}}]}]},resolve:{...e.resolve,extensions:[...e.resolve.extensions,".vue"],alias:{...e.resolve.alias,vue$:require.resolve("vue/dist/vue.esm-bundler.js")}}});0&&(module.exports={webpack});
|
@@ -0,0 +1 @@
|
|
1
|
+
import{a as r}from"./chunk-HKSD7XQF.mjs";import{VueLoaderPlugin as o}from"vue-loader";import{DefinePlugin as s}from"webpack";var i=e=>({...e,plugins:[...e.plugins,new o,new s({__VUE_OPTIONS_API__:JSON.stringify(!0),__VUE_PROD_DEVTOOLS__:JSON.stringify(!0)})],module:{...e.module,rules:[...e.module.rules,{test:/\.vue$/,loader:r.resolve("vue-loader"),options:{}},{test:/\.ts$/,use:[{loader:r.resolve("ts-loader"),options:{transpileOnly:!0,appendTsSuffixTo:[/\.vue$/]}}]},{test:/\.tsx$/,use:[{loader:r.resolve("ts-loader"),options:{transpileOnly:!0,appendTsxSuffixTo:[/\.vue$/]}}]}]},resolve:{...e.resolve,extensions:[...e.resolve.extensions,".vue"],alias:{...e.resolve.alias,vue$:r.resolve("vue/dist/vue.esm-bundler.js")}}});export{i as webpack};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
var d=Object.create;var s=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty;var b=(o,r)=>{for(var e in r)s(o,e,{get:r[e],enumerable:!0})},n=(o,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of y(r))!a.call(o,t)&&t!==e&&s(o,t,{get:()=>r[t],enumerable:!(i=f(r,t))||i.enumerable});return o};var p=(o,r,e)=>(e=o!=null?d(m(o)):{},n(r||!o||!o.__esModule?s(e,"default",{value:o,enumerable:!0}):e,o)),g=o=>n(s({},"__esModule",{value:!0}),o);var l={};b(l,{addons:()=>k});module.exports=g(l);var k=[require.resolve("@storybook/preset-vue3-webpack/dist/framework-preset-vue3"),require.resolve("@storybook/preset-vue3-webpack/dist/framework-preset-vue3-docs")];0&&(module.exports={addons});
|
package/dist/index.mjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
import{a as o}from"./chunk-HKSD7XQF.mjs";var r=[o.resolve("@storybook/preset-vue3-webpack/dist/framework-preset-vue3"),o.resolve("@storybook/preset-vue3-webpack/dist/framework-preset-vue3-docs")];export{r as addons};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preset-vue3-webpack",
|
3
|
-
"version": "7.0.0-alpha.
|
3
|
+
"version": "7.0.0-alpha.33",
|
4
4
|
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -19,27 +19,52 @@
|
|
19
19
|
"url": "https://opencollective.com/storybook"
|
20
20
|
},
|
21
21
|
"license": "MIT",
|
22
|
-
"
|
23
|
-
|
24
|
-
|
22
|
+
"exports": {
|
23
|
+
".": {
|
24
|
+
"require": "./dist/index.js",
|
25
|
+
"import": "./dist/index.mjs",
|
26
|
+
"types": "./dist/index.d.ts"
|
27
|
+
},
|
28
|
+
"./preset": {
|
29
|
+
"require": "./dist/index.js",
|
30
|
+
"import": "./dist/index.mjs",
|
31
|
+
"types": "./dist/index.d.ts"
|
32
|
+
},
|
33
|
+
"./dist/framework-preset-vue3-docs": {
|
34
|
+
"require": "./dist/framework-preset-vue3-docs.js",
|
35
|
+
"import": "./dist/framework-preset-vue3-docs.mjs",
|
36
|
+
"types": "./dist/framework-preset-vue3-docs.d.ts"
|
37
|
+
},
|
38
|
+
"./dist/framework-preset-vue3": {
|
39
|
+
"require": "./dist/framework-preset-vue3.js",
|
40
|
+
"import": "./dist/framework-preset-vue3.mjs",
|
41
|
+
"types": "./dist/framework-preset-vue3.d.ts"
|
42
|
+
},
|
43
|
+
"./package.json": {
|
44
|
+
"require": "./package.json",
|
45
|
+
"import": "./package.json",
|
46
|
+
"types": "./package.json"
|
47
|
+
}
|
48
|
+
},
|
49
|
+
"main": "dist/index.js",
|
50
|
+
"module": "dist/index.mjs",
|
51
|
+
"types": "dist/index.d.ts",
|
25
52
|
"files": [
|
26
|
-
"bin/**/*",
|
27
53
|
"dist/**/*",
|
28
54
|
"README.md",
|
29
55
|
"*.js",
|
30
56
|
"*.d.ts"
|
31
57
|
],
|
32
58
|
"scripts": {
|
33
|
-
"
|
59
|
+
"check": "tsc --noEmit",
|
60
|
+
"prep": "../../../scripts/prepare/bundle.ts"
|
34
61
|
},
|
35
62
|
"dependencies": {
|
36
|
-
"@storybook/core-webpack": "7.0.0-alpha.
|
37
|
-
"@storybook/docs-tools": "7.0.0-alpha.
|
63
|
+
"@storybook/core-webpack": "7.0.0-alpha.33",
|
64
|
+
"@storybook/docs-tools": "7.0.0-alpha.33",
|
38
65
|
"@types/node": "^14.14.20 || ^16.0.0",
|
39
|
-
"core-js": "^3.8.2",
|
40
66
|
"react": "16.14.0",
|
41
67
|
"react-dom": "16.14.0",
|
42
|
-
"regenerator-runtime": "^0.13.7",
|
43
68
|
"ts-loader": "^9.2.8",
|
44
69
|
"vue-docgen-api": "^4.46.0",
|
45
70
|
"vue-docgen-loader": "^1.5.1",
|
@@ -48,6 +73,7 @@
|
|
48
73
|
},
|
49
74
|
"devDependencies": {
|
50
75
|
"@vue/compiler-sfc": "^3.2.33",
|
76
|
+
"typescript": "~4.6.3",
|
51
77
|
"vue": "^3.2.33"
|
52
78
|
},
|
53
79
|
"peerDependencies": {
|
@@ -62,5 +88,13 @@
|
|
62
88
|
"publishConfig": {
|
63
89
|
"access": "public"
|
64
90
|
},
|
65
|
-
"
|
91
|
+
"bundler": {
|
92
|
+
"entries": [
|
93
|
+
"./src/index.ts",
|
94
|
+
"./src/framework-preset-vue3-docs.ts",
|
95
|
+
"./src/framework-preset-vue3.ts"
|
96
|
+
],
|
97
|
+
"platform": "node"
|
98
|
+
},
|
99
|
+
"gitHead": "5da5b0fabd04cc5cd5771e8242a960f05d03234a"
|
66
100
|
}
|
package/preset.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
module.exports = require('./dist/
|
1
|
+
module.exports = require('./dist/index');
|
package/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2017 Kadira Inc. <hello@kadira.io>
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.webpackFinal = void 0;
|
7
|
-
|
8
|
-
var _docsTools = require("@storybook/docs-tools");
|
9
|
-
|
10
|
-
const webpackFinal = (config, options) => {
|
11
|
-
var _options$presetsList;
|
12
|
-
|
13
|
-
if (!(0, _docsTools.hasDocsOrControls)(options)) return config;
|
14
|
-
let vueDocgenOptions = {};
|
15
|
-
(_options$presetsList = options.presetsList) === null || _options$presetsList === void 0 ? void 0 : _options$presetsList.forEach(preset => {
|
16
|
-
if (preset.name.includes('addon-docs') && preset.options.vueDocgenOptions) {
|
17
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
18
|
-
vueDocgenOptions = Object.assign({}, vueDocgenOptions, appendableOptions);
|
19
|
-
}
|
20
|
-
});
|
21
|
-
config.module.rules.push({
|
22
|
-
test: /\.vue$/,
|
23
|
-
loader: require.resolve('vue-docgen-loader', {
|
24
|
-
paths: [require.resolve('@storybook/preset-vue3-webpack')]
|
25
|
-
}),
|
26
|
-
enforce: 'post',
|
27
|
-
options: {
|
28
|
-
docgenOptions: Object.assign({
|
29
|
-
alias: config.resolve.alias
|
30
|
-
}, vueDocgenOptions)
|
31
|
-
}
|
32
|
-
});
|
33
|
-
return config;
|
34
|
-
};
|
35
|
-
|
36
|
-
exports.webpackFinal = webpackFinal;
|
@@ -1,53 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.webpack = void 0;
|
7
|
-
|
8
|
-
var _vueLoader = require("vue-loader");
|
9
|
-
|
10
|
-
var _webpack = require("webpack");
|
11
|
-
|
12
|
-
const webpack = config => {
|
13
|
-
return Object.assign({}, config, {
|
14
|
-
plugins: [...config.plugins, new _vueLoader.VueLoaderPlugin(), new _webpack.DefinePlugin({
|
15
|
-
__VUE_OPTIONS_API__: JSON.stringify(true),
|
16
|
-
__VUE_PROD_DEVTOOLS__: JSON.stringify(true)
|
17
|
-
})],
|
18
|
-
module: Object.assign({}, config.module, {
|
19
|
-
rules: [...config.module.rules, {
|
20
|
-
test: /\.vue$/,
|
21
|
-
loader: require.resolve('vue-loader'),
|
22
|
-
options: {}
|
23
|
-
}, {
|
24
|
-
test: /\.ts$/,
|
25
|
-
use: [{
|
26
|
-
loader: require.resolve('ts-loader'),
|
27
|
-
options: {
|
28
|
-
transpileOnly: true,
|
29
|
-
appendTsSuffixTo: [/\.vue$/]
|
30
|
-
}
|
31
|
-
}]
|
32
|
-
}, {
|
33
|
-
test: /\.tsx$/,
|
34
|
-
use: [{
|
35
|
-
loader: require.resolve('ts-loader'),
|
36
|
-
options: {
|
37
|
-
transpileOnly: true,
|
38
|
-
// Note this is different from the `appendTsSuffixTo` above!
|
39
|
-
appendTsxSuffixTo: [/\.vue$/]
|
40
|
-
}
|
41
|
-
}]
|
42
|
-
}]
|
43
|
-
}),
|
44
|
-
resolve: Object.assign({}, config.resolve, {
|
45
|
-
extensions: [...config.resolve.extensions, '.vue'],
|
46
|
-
alias: Object.assign({}, config.resolve.alias, {
|
47
|
-
vue$: require.resolve('vue/dist/vue.esm-bundler.js')
|
48
|
-
})
|
49
|
-
})
|
50
|
-
});
|
51
|
-
};
|
52
|
-
|
53
|
-
exports.webpack = webpack;
|
package/dist/cjs/index.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import { hasDocsOrControls } from '@storybook/docs-tools';
|
2
|
-
export const webpackFinal = (config, options) => {
|
3
|
-
if (!hasDocsOrControls(options)) return config;
|
4
|
-
let vueDocgenOptions = {};
|
5
|
-
options.presetsList?.forEach(preset => {
|
6
|
-
if (preset.name.includes('addon-docs') && preset.options.vueDocgenOptions) {
|
7
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
8
|
-
vueDocgenOptions = Object.assign({}, vueDocgenOptions, appendableOptions);
|
9
|
-
}
|
10
|
-
});
|
11
|
-
config.module.rules.push({
|
12
|
-
test: /\.vue$/,
|
13
|
-
loader: require.resolve('vue-docgen-loader', {
|
14
|
-
paths: [require.resolve('@storybook/preset-vue3-webpack')]
|
15
|
-
}),
|
16
|
-
enforce: 'post',
|
17
|
-
options: {
|
18
|
-
docgenOptions: Object.assign({
|
19
|
-
alias: config.resolve.alias
|
20
|
-
}, vueDocgenOptions)
|
21
|
-
}
|
22
|
-
});
|
23
|
-
return config;
|
24
|
-
};
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { VueLoaderPlugin } from 'vue-loader';
|
2
|
-
import { DefinePlugin } from 'webpack';
|
3
|
-
export const webpack = config => {
|
4
|
-
return Object.assign({}, config, {
|
5
|
-
plugins: [...config.plugins, new VueLoaderPlugin(), new DefinePlugin({
|
6
|
-
__VUE_OPTIONS_API__: JSON.stringify(true),
|
7
|
-
__VUE_PROD_DEVTOOLS__: JSON.stringify(true)
|
8
|
-
})],
|
9
|
-
module: Object.assign({}, config.module, {
|
10
|
-
rules: [...config.module.rules, {
|
11
|
-
test: /\.vue$/,
|
12
|
-
loader: require.resolve('vue-loader'),
|
13
|
-
options: {}
|
14
|
-
}, {
|
15
|
-
test: /\.ts$/,
|
16
|
-
use: [{
|
17
|
-
loader: require.resolve('ts-loader'),
|
18
|
-
options: {
|
19
|
-
transpileOnly: true,
|
20
|
-
appendTsSuffixTo: [/\.vue$/]
|
21
|
-
}
|
22
|
-
}]
|
23
|
-
}, {
|
24
|
-
test: /\.tsx$/,
|
25
|
-
use: [{
|
26
|
-
loader: require.resolve('ts-loader'),
|
27
|
-
options: {
|
28
|
-
transpileOnly: true,
|
29
|
-
// Note this is different from the `appendTsSuffixTo` above!
|
30
|
-
appendTsxSuffixTo: [/\.vue$/]
|
31
|
-
}
|
32
|
-
}]
|
33
|
-
}]
|
34
|
-
}),
|
35
|
-
resolve: Object.assign({}, config.resolve, {
|
36
|
-
extensions: [...config.resolve.extensions, '.vue'],
|
37
|
-
alias: Object.assign({}, config.resolve.alias, {
|
38
|
-
vue$: require.resolve('vue/dist/vue.esm-bundler.js')
|
39
|
-
})
|
40
|
-
})
|
41
|
-
});
|
42
|
-
};
|
package/dist/esm/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export const addons = [require.resolve('./framework-preset-vue3'), require.resolve('./framework-preset-vue3-docs')];
|
package/dist/types/index.d.ts
DELETED