@storybook/preact 10.6.1 → 10.6.2

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
- }, renderedStory;
23
+ };
24
24
  function preactRender(story, canvasElement) {
25
- preact.Fragment ? preact.render(story, canvasElement) : renderedStory = preact.render(story, canvasElement, renderedStory);
25
+ preact.render(story, canvasElement);
26
26
  }
27
27
  var StoryHarness = ({ showError, name, title, storyFn, canvasElement }) => {
28
28
  let content = preact.h(storyFn, null);
@@ -2,7 +2,7 @@ import {
2
2
  parameters,
3
3
  render,
4
4
  renderToCanvas
5
- } from "./_browser-chunks/chunk-6ALRTL7G.js";
5
+ } from "./_browser-chunks/chunk-3LP7CDUO.js";
6
6
  import "./_browser-chunks/chunk-4BE7D4DS.js";
7
7
  export {
8
8
  parameters,
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  entry_preview_exports
3
- } from "./_browser-chunks/chunk-6ALRTL7G.js";
3
+ } from "./_browser-chunks/chunk-3LP7CDUO.js";
4
4
  import "./_browser-chunks/chunk-4BE7D4DS.js";
5
5
 
6
6
  // src/globals.ts
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_luk9ilhqvb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_luk9ilhqvb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_luk9ilhqvb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kijn4es4spm from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kijn4es4spm from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kijn4es4spm from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_luk9ilhqvb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_luk9ilhqvb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_luk9ilhqvb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kijn4es4spm.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kijn4es4spm.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kijn4es4spm.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": "10.6.1",
3
+ "version": "10.6.2",
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": "^10.5.13",
51
+ "preact": "^11.0.0",
52
52
  "typescript": "^6.0.3"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "preact": "^8.0.0||^10.0.0",
56
- "storybook": "^10.6.1"
56
+ "storybook": "^10.6.2"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"