@storybook/vue3 10.3.0-beta.1 → 10.3.0-beta.3
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.
|
@@ -162,17 +162,18 @@ async function renderToCanvas({ storyFn, forceRemount, showMain, showException,
|
|
|
162
162
|
let existingApp = map.get(canvasElement);
|
|
163
163
|
if (existingApp && !forceRemount) {
|
|
164
164
|
let element = storyFn(), args = getArgs(element, storyContext);
|
|
165
|
-
return updateArgs(existingApp.reactiveArgs, args), () => {
|
|
165
|
+
return updateArgs(existingApp.reactiveArgs, args), updateArgs(existingApp.reactiveGlobals, storyContext.globals), () => {
|
|
166
166
|
teardown(existingApp.vueApp, canvasElement);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
existingApp && forceRemount && teardown(existingApp.vueApp, canvasElement);
|
|
170
170
|
let vueApp = createApp({
|
|
171
171
|
setup() {
|
|
172
|
-
storyContext.args = reactive(storyContext.args);
|
|
172
|
+
storyContext.args = reactive(storyContext.args), storyContext.globals = reactive(storyContext.globals);
|
|
173
173
|
let rootElement = storyFn(), args = getArgs(rootElement, storyContext), appState = {
|
|
174
174
|
vueApp,
|
|
175
|
-
reactiveArgs: reactive(args)
|
|
175
|
+
reactiveArgs: reactive(args),
|
|
176
|
+
reactiveGlobals: storyContext.globals
|
|
176
177
|
};
|
|
177
178
|
return map.set(canvasElement, appState), () => h(rootElement);
|
|
178
179
|
}
|
package/dist/entry-preview.js
CHANGED
package/dist/index.js
CHANGED
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5yt21wi0ts7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5yt21wi0ts7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5yt21wi0ts7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5yt21wi0ts7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5yt21wi0ts7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5yt21wi0ts7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/vue3",
|
|
3
|
-
"version": "10.3.0-beta.
|
|
3
|
+
"version": "10.3.0-beta.3",
|
|
4
4
|
"description": "Storybook Vue 3 renderer: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"vue-tsc": "latest"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"storybook": "^10.3.0-beta.
|
|
64
|
+
"storybook": "^10.3.0-beta.3",
|
|
65
65
|
"vue": "^3.0.0"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|