@storybook/react 6.3.0-beta.9 → 6.3.0-rc.11
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.
|
@@ -7,6 +7,8 @@ exports.raw = exports.getStorybook = exports.forceReRender = exports.setAddon =
|
|
|
7
7
|
|
|
8
8
|
require("core-js/modules/es.array.concat.js");
|
|
9
9
|
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
10
12
|
var _client = require("@storybook/core/client");
|
|
11
13
|
|
|
12
14
|
require("./globals");
|
|
@@ -17,7 +19,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
19
|
|
|
18
20
|
/* eslint-disable prefer-destructuring */
|
|
19
21
|
var framework = 'react';
|
|
22
|
+
|
|
23
|
+
var globalRender = function globalRender(args, _ref) {
|
|
24
|
+
var parameters = _ref.parameters;
|
|
25
|
+
var Component = parameters.component;
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(Component, args);
|
|
27
|
+
};
|
|
28
|
+
|
|
20
29
|
var api = (0, _client.start)(_render.default);
|
|
30
|
+
api.clientApi.globalRender = globalRender;
|
|
21
31
|
|
|
22
32
|
var storiesOf = function storiesOf(kind, m) {
|
|
23
33
|
return api.clientApi.storiesOf(kind, m).addParameters({
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import "core-js/modules/es.array.concat.js";
|
|
2
2
|
|
|
3
3
|
/* eslint-disable prefer-destructuring */
|
|
4
|
+
import React from 'react';
|
|
4
5
|
import { start } from '@storybook/core/client';
|
|
5
6
|
import './globals';
|
|
6
7
|
import render from './render';
|
|
7
8
|
var framework = 'react';
|
|
9
|
+
|
|
10
|
+
var globalRender = function globalRender(args, _ref) {
|
|
11
|
+
var parameters = _ref.parameters;
|
|
12
|
+
var Component = parameters.component;
|
|
13
|
+
return /*#__PURE__*/React.createElement(Component, args);
|
|
14
|
+
};
|
|
15
|
+
|
|
8
16
|
var api = start(render);
|
|
17
|
+
api.clientApi.globalRender = globalRender;
|
|
9
18
|
export var storiesOf = function storiesOf(kind, m) {
|
|
10
19
|
return api.clientApi.storiesOf(kind, m).addParameters({
|
|
11
20
|
framework: framework
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
/* eslint-disable prefer-destructuring */
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { start } from '@storybook/core/client';
|
|
3
4
|
import './globals';
|
|
4
5
|
import render from './render';
|
|
5
6
|
const framework = 'react';
|
|
7
|
+
|
|
8
|
+
const globalRender = (args, {
|
|
9
|
+
parameters
|
|
10
|
+
}) => {
|
|
11
|
+
const Component = parameters.component;
|
|
12
|
+
return /*#__PURE__*/React.createElement(Component, args);
|
|
13
|
+
};
|
|
14
|
+
|
|
6
15
|
const api = start(render);
|
|
16
|
+
api.clientApi.globalRender = globalRender;
|
|
7
17
|
export const storiesOf = (kind, m) => {
|
|
8
18
|
return api.clientApi.storiesOf(kind, m).addParameters({
|
|
9
19
|
framework
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react",
|
|
3
|
-
"version": "6.3.0-
|
|
3
|
+
"version": "6.3.0-rc.11",
|
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@babel/preset-flow": "^7.12.1",
|
|
50
50
|
"@babel/preset-react": "^7.12.10",
|
|
51
51
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
|
52
|
-
"@storybook/addons": "6.3.0-
|
|
53
|
-
"@storybook/core": "6.3.0-
|
|
54
|
-
"@storybook/core-common": "6.3.0-
|
|
55
|
-
"@storybook/node-logger": "6.3.0-
|
|
56
|
-
"@storybook/react-docgen-typescript-plugin": "0.
|
|
52
|
+
"@storybook/addons": "6.3.0-rc.11",
|
|
53
|
+
"@storybook/core": "6.3.0-rc.11",
|
|
54
|
+
"@storybook/core-common": "6.3.0-rc.11",
|
|
55
|
+
"@storybook/node-logger": "6.3.0-rc.11",
|
|
56
|
+
"@storybook/react-docgen-typescript-plugin": "1.0.2-canary.3c70e01.0",
|
|
57
57
|
"@storybook/semver": "^7.3.2",
|
|
58
58
|
"@types/webpack-env": "^1.16.0",
|
|
59
59
|
"babel-plugin-add-react-displayname": "^0.0.5",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"webpack": "4"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@storybook/client-api": "6.3.0-
|
|
74
|
+
"@storybook/client-api": "6.3.0-rc.11",
|
|
75
75
|
"@types/node": "^14.14.20",
|
|
76
76
|
"@types/prompts": "^2.0.9"
|
|
77
77
|
},
|
|
@@ -94,6 +94,6 @@
|
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "db9968a8a241edf423c5780e229eca3f5e5ce773",
|
|
98
98
|
"sbmodern": "dist/modern/client/index.js"
|
|
99
99
|
}
|