@storybook/html 11.0.0-rc.0 → 11.0.0-rc.1
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.
|
@@ -13,10 +13,9 @@ __export(entry_preview_exports, {
|
|
|
13
13
|
import { enhanceArgTypes } from "storybook/internal/docs-tools";
|
|
14
14
|
|
|
15
15
|
// src/render.ts
|
|
16
|
-
import { global } from "@storybook/global";
|
|
17
16
|
import { simulateDOMContentLoaded, simulatePageLoad } from "storybook/preview-api";
|
|
18
17
|
import { dedent } from "ts-dedent";
|
|
19
|
-
var
|
|
18
|
+
var render = (args, context) => {
|
|
20
19
|
let { id, component: Component } = context;
|
|
21
20
|
if (typeof Component == "string") {
|
|
22
21
|
let output = Component;
|
|
@@ -44,7 +43,7 @@ function renderToCanvas({ storyFn, title, name, showMain, showError, forceRemoun
|
|
|
44
43
|
let element = storyFn();
|
|
45
44
|
if (showMain(), typeof element == "string")
|
|
46
45
|
canvasElement.innerHTML = element, simulatePageLoad(canvasElement);
|
|
47
|
-
else if (element instanceof Node) {
|
|
46
|
+
else if (element instanceof globalThis.Node) {
|
|
48
47
|
if (canvasElement.firstChild === element && forceRemount === !1)
|
|
49
48
|
return;
|
|
50
49
|
canvasElement.innerHTML = "", canvasElement.appendChild(element), simulateDOMContentLoaded();
|
package/dist/entry-preview.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
entry_preview_exports
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-CLWD6UO7.js";
|
|
4
4
|
import "./_browser-chunks/chunk-4BE7D4DS.js";
|
|
5
5
|
|
|
6
6
|
// src/globals.ts
|
|
7
|
-
|
|
8
|
-
var { window: globalWindow } = global;
|
|
9
|
-
globalWindow.STORYBOOK_ENV = "HTML";
|
|
7
|
+
globalThis.STORYBOOK_ENV = "HTML";
|
|
10
8
|
|
|
11
9
|
// src/portable-stories.ts
|
|
12
10
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/html",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.1",
|
|
4
4
|
"description": "Storybook HTML renderer: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -44,14 +44,13 @@
|
|
|
44
44
|
"!src/**/*"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@storybook/global": "^5.0.0",
|
|
48
47
|
"ts-dedent": "^2.2.0"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
50
|
"typescript": "^6.0.3"
|
|
52
51
|
},
|
|
53
52
|
"peerDependencies": {
|
|
54
|
-
"storybook": "^11.0.0-rc.
|
|
53
|
+
"storybook": "^11.0.0-rc.1"
|
|
55
54
|
},
|
|
56
55
|
"publishConfig": {
|
|
57
56
|
"access": "public"
|