@storybook/preact 7.0.0-alpha.2 → 7.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.
@@ -18,6 +18,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
18
18
  let renderedStory;
19
19
 
20
20
  function preactRender(story, domElement) {
21
+ // @ts-ignore
21
22
  if (preact.Fragment) {
22
23
  // Preact 10 only:
23
24
  preact.render(story, domElement);
@@ -3,6 +3,7 @@ import dedent from 'ts-dedent';
3
3
  let renderedStory;
4
4
 
5
5
  function preactRender(story, domElement) {
6
+ // @ts-ignore
6
7
  if (preact.Fragment) {
7
8
  // Preact 10 only:
8
9
  preact.render(story, domElement);
@@ -1,3 +1,3 @@
1
1
  import { RenderContext } from '@storybook/store';
2
2
  import { PreactFramework } from './types-6-0';
3
- export declare function renderToDOM({ storyFn, title, name, showMain, showError, forceRemount }: RenderContext<PreactFramework>, domElement: HTMLElement): void;
3
+ export declare function renderToDOM({ storyFn, title, name, showMain, showError, forceRemount }: RenderContext<PreactFramework>, domElement: Element): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/preact",
3
- "version": "7.0.0-alpha.2",
3
+ "version": "7.0.0-alpha.5",
4
4
  "description": "Storybook Preact renderer",
5
5
  "keywords": [
6
6
  "storybook"
@@ -32,15 +32,14 @@
32
32
  "prepare": "node ../../scripts/prepare.js"
33
33
  },
34
34
  "dependencies": {
35
- "@storybook/addons": "7.0.0-alpha.2",
36
- "@storybook/core-client": "7.0.0-alpha.2",
35
+ "@storybook/addons": "7.0.0-alpha.5",
36
+ "@storybook/core-client": "7.0.0-alpha.5",
37
37
  "@storybook/csf": "0.0.2--canary.4566f4d.1",
38
- "@storybook/store": "7.0.0-alpha.2",
38
+ "@storybook/store": "7.0.0-alpha.5",
39
39
  "core-js": "^3.8.2",
40
40
  "global": "^4.4.0",
41
41
  "react": "16.14.0",
42
42
  "react-dom": "16.14.0",
43
- "regenerator-runtime": "^0.13.7",
44
43
  "ts-dedent": "^2.0.0"
45
44
  },
46
45
  "devDependencies": {
@@ -55,5 +54,5 @@
55
54
  "publishConfig": {
56
55
  "access": "public"
57
56
  },
58
- "gitHead": "44920e2b6bd51981bac5124743c29fb9f5517e44"
57
+ "gitHead": "3dd46982823b34d9f37be917b6247631081feff7"
59
58
  }