@storybook/react 7.0.0-alpha.4 → 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.
@@ -162,4 +162,5 @@ async function renderToDOM({
162
162
  }
163
163
 
164
164
  await renderElement(element, domElement);
165
+ return () => unmountElement(domElement);
165
166
  }
@@ -138,4 +138,5 @@ export async function renderToDOM({
138
138
  }
139
139
 
140
140
  await renderElement(element, domElement);
141
+ return () => unmountElement(domElement);
141
142
  }
@@ -2,4 +2,4 @@ import type { RenderContext } from '@storybook/store';
2
2
  import { ArgsStoryFn } from '@storybook/csf';
3
3
  import { ReactFramework } from './types-6-0';
4
4
  export declare const render: ArgsStoryFn<ReactFramework>;
5
- export declare function renderToDOM({ storyContext, unboundStoryFn, showMain, showException, forceRemount, }: RenderContext<ReactFramework>, domElement: Element): Promise<void>;
5
+ export declare function renderToDOM({ storyContext, unboundStoryFn, showMain, showException, forceRemount, }: RenderContext<ReactFramework>, domElement: Element): Promise<() => void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react",
3
- "version": "7.0.0-alpha.4",
3
+ "version": "7.0.0-alpha.5",
4
4
  "description": "Storybook React renderer",
5
5
  "keywords": [
6
6
  "storybook"
@@ -33,12 +33,12 @@
33
33
  "prepare": "node ../../scripts/prepare.js"
34
34
  },
35
35
  "dependencies": {
36
- "@storybook/addons": "7.0.0-alpha.4",
37
- "@storybook/client-logger": "7.0.0-alpha.4",
38
- "@storybook/core-client": "7.0.0-alpha.4",
36
+ "@storybook/addons": "7.0.0-alpha.5",
37
+ "@storybook/client-logger": "7.0.0-alpha.5",
38
+ "@storybook/core-client": "7.0.0-alpha.5",
39
39
  "@storybook/csf": "0.0.2--canary.4566f4d.1",
40
- "@storybook/docs-tools": "7.0.0-alpha.4",
41
- "@storybook/store": "7.0.0-alpha.4",
40
+ "@storybook/docs-tools": "7.0.0-alpha.5",
41
+ "@storybook/store": "7.0.0-alpha.5",
42
42
  "@types/estree": "^0.0.51",
43
43
  "@types/node": "^14.14.20 || ^16.0.0",
44
44
  "acorn": "^7.4.1",
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "006ed54452dd7c37a8cbe91a84f5312182f7ca00"
78
+ "gitHead": "3dd46982823b34d9f37be917b6247631081feff7"
79
79
  }