@storybook/preact 11.0.0-alpha.3 → 11.0.0-alpha.5
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.
|
@@ -20,9 +20,9 @@ var { h: h2 } = preact, render2 = (args, context) => {
|
|
|
20
20
|
`Unable to render story ${id} as the component annotation is missing from the default export`
|
|
21
21
|
);
|
|
22
22
|
return h2(Component, args);
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
function preactRender(story, canvasElement) {
|
|
25
|
-
preact.
|
|
25
|
+
preact.render(story, canvasElement);
|
|
26
26
|
}
|
|
27
27
|
var StoryHarness = ({ showError, name, title, storyFn, canvasElement }) => {
|
|
28
28
|
let content = preact.h(storyFn, null);
|
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_32b1leduly2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_32b1leduly2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_32b1leduly2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_32b1leduly2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_32b1leduly2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_32b1leduly2.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/preact",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.5",
|
|
4
4
|
"description": "Storybook Preact renderer: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"ts-dedent": "^2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"preact": "^
|
|
51
|
+
"preact": "^11.0.0",
|
|
52
52
|
"typescript": "^6.0.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"preact": "^10.8.0 || >= 11.0.0-0",
|
|
56
|
-
"storybook": "^11.0.0-alpha.
|
|
56
|
+
"storybook": "^11.0.0-alpha.5"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|