@storybook/addon-docs 6.5.0-alpha.22 → 6.5.0-alpha.23
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.
- package/dist/cjs/blocks/Anchor.js +1 -1
- package/dist/cjs/blocks/ArgsTable.js +13 -9
- package/dist/cjs/blocks/Canvas.js +13 -11
- package/dist/cjs/blocks/Description.js +6 -6
- package/dist/cjs/blocks/DocsContainer.js +8 -6
- package/dist/cjs/blocks/Heading.js +2 -2
- package/dist/cjs/blocks/Meta.js +8 -6
- package/dist/cjs/blocks/Primary.js +7 -7
- package/dist/cjs/blocks/Source.js +8 -8
- package/dist/cjs/blocks/SourceContainer.js +9 -7
- package/dist/cjs/blocks/Stories.js +7 -7
- package/dist/cjs/blocks/Story.js +10 -8
- package/dist/cjs/blocks/Subheading.js +2 -2
- package/dist/cjs/blocks/Subtitle.js +5 -5
- package/dist/cjs/blocks/Title.js +8 -8
- package/dist/cjs/blocks/enhanceSource.js +5 -5
- package/dist/cjs/blocks/index.js +6 -4
- package/dist/cjs/blocks/mdx.js +17 -9
- package/dist/cjs/blocks/useStory.js +8 -6
- package/dist/cjs/blocks/utils.js +3 -3
- package/dist/cjs/frameworks/angular/compodoc.js +8 -8
- package/dist/cjs/frameworks/angular/config.js +1 -1
- package/dist/cjs/frameworks/angular/index.js +2 -0
- package/dist/cjs/frameworks/angular/prepareForInline.js +2 -2
- package/dist/cjs/frameworks/angular/sourceDecorator.js +7 -7
- package/dist/cjs/frameworks/common/config.js +8 -8
- package/dist/cjs/frameworks/common/preset.js +10 -8
- package/dist/cjs/frameworks/ember/jsondoc.js +3 -1
- package/dist/cjs/frameworks/html/sourceDecorator.js +2 -2
- package/dist/cjs/frameworks/react/config.js +1 -1
- package/dist/cjs/frameworks/react/extractArgTypes.js +2 -0
- package/dist/cjs/frameworks/react/extractProps.js +2 -2
- package/dist/cjs/frameworks/react/jsxDecorator.js +12 -10
- package/dist/cjs/frameworks/react/lib/captions.js +1 -1
- package/dist/cjs/frameworks/react/lib/componentTypes.js +1 -1
- package/dist/cjs/frameworks/react/lib/defaultValues/createFromRawDefaultProp.js +7 -7
- package/dist/cjs/frameworks/react/lib/defaultValues/index.js +2 -0
- package/dist/cjs/frameworks/react/lib/defaultValues/prettyIdentifier.js +2 -2
- package/dist/cjs/frameworks/react/lib/generateCode.js +3 -3
- package/dist/cjs/frameworks/react/lib/index.js +2 -0
- package/dist/cjs/frameworks/react/lib/inspection/acornParser.js +7 -7
- package/dist/cjs/frameworks/react/lib/inspection/index.js +2 -0
- package/dist/cjs/frameworks/react/propTypes/createType.js +4 -2
- package/dist/cjs/frameworks/react/propTypes/generateFuncSignature.js +2 -2
- package/dist/cjs/frameworks/react/propTypes/sortProps.js +2 -0
- package/dist/cjs/frameworks/react/react-argtypes.stories.js +10 -8
- package/dist/cjs/frameworks/svelte/config.js +1 -1
- package/dist/cjs/frameworks/svelte/extractArgTypes.js +4 -1
- package/dist/cjs/frameworks/svelte/preset.js +2 -2
- package/dist/cjs/frameworks/svelte/sourceDecorator.js +7 -5
- package/dist/cjs/frameworks/svelte/svelte-docgen-loader.js +7 -7
- package/dist/cjs/frameworks/vue/config.js +1 -1
- package/dist/cjs/frameworks/vue/extractArgTypes.js +5 -3
- package/dist/cjs/frameworks/vue/preset.js +2 -0
- package/dist/cjs/frameworks/vue/sourceDecorator.js +12 -12
- package/dist/cjs/frameworks/vue3/extractArgTypes.js +2 -0
- package/dist/cjs/frameworks/vue3/prepareForInline.js +5 -5
- package/dist/cjs/frameworks/vue3/preset.js +2 -0
- package/dist/cjs/frameworks/web-components/custom-elements.js +5 -3
- package/dist/cjs/frameworks/web-components/prepareForInline.js +8 -8
- package/dist/cjs/frameworks/web-components/sourceDecorator.js +2 -2
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/lib/convert/flow/convert.js +3 -1
- package/dist/cjs/lib/convert/flow/index.js +2 -0
- package/dist/cjs/lib/convert/proptypes/convert.js +2 -2
- package/dist/cjs/lib/convert/proptypes/index.js +2 -0
- package/dist/cjs/lib/convert/typescript/convert.js +2 -0
- package/dist/cjs/lib/convert/typescript/index.js +2 -0
- package/dist/cjs/lib/convert/utils.js +2 -2
- package/dist/cjs/lib/docgen/createPropDef.js +3 -1
- package/dist/cjs/lib/docgen/extractDocgenProps.js +3 -1
- package/dist/cjs/lib/docgen/flow/createType.js +2 -2
- package/dist/cjs/lib/docgen/index.js +2 -0
- package/dist/cjs/lib/docgen/typeScript/createType.js +2 -2
- package/dist/cjs/lib/docgen/utils/defaultValue.js +3 -0
- package/dist/cjs/lib/docgen/utils/docgenInfo.js +2 -2
- package/dist/cjs/lib/docgen/utils/index.js +2 -0
- package/dist/cjs/lib/index.js +2 -0
- package/dist/cjs/lib/jsdocParser.js +2 -2
- package/dist/cjs/lib/utils.js +6 -5
- package/dist/cjs/typings.d.ts +14 -0
- package/dist/esm/blocks/ArgsTable.js +5 -3
- package/dist/esm/blocks/Canvas.js +5 -3
- package/dist/esm/blocks/DocsContainer.js +3 -2
- package/dist/esm/blocks/Heading.js +1 -1
- package/dist/esm/blocks/Meta.js +3 -2
- package/dist/esm/blocks/Primary.js +1 -0
- package/dist/esm/blocks/Source.js +1 -0
- package/dist/esm/blocks/SourceContainer.js +3 -2
- package/dist/esm/blocks/Stories.js +1 -0
- package/dist/esm/blocks/Story.js +4 -3
- package/dist/esm/blocks/Subheading.js +1 -1
- package/dist/esm/blocks/Title.js +1 -1
- package/dist/esm/blocks/enhanceSource.js +3 -3
- package/dist/esm/blocks/mdx.js +15 -8
- package/dist/esm/blocks/useStory.js +15 -15
- package/dist/esm/blocks/utils.js +1 -1
- package/dist/esm/frameworks/angular/compodoc.js +4 -4
- package/dist/esm/frameworks/angular/prepareForInline.js +1 -1
- package/dist/esm/frameworks/angular/sourceDecorator.js +1 -1
- package/dist/esm/frameworks/common/config.js +1 -1
- package/dist/esm/frameworks/common/preset.js +8 -6
- package/dist/esm/frameworks/ember/jsondoc.js +1 -0
- package/dist/esm/frameworks/html/sourceDecorator.js +2 -2
- package/dist/esm/frameworks/react/extractArgTypes.js +1 -0
- package/dist/esm/frameworks/react/extractProps.js +1 -1
- package/dist/esm/frameworks/react/jsxDecorator.js +5 -4
- package/dist/esm/frameworks/react/lib/defaultValues/createFromRawDefaultProp.js +3 -3
- package/dist/esm/frameworks/react/lib/generateCode.js +1 -1
- package/dist/esm/frameworks/react/lib/inspection/acornParser.js +1 -0
- package/dist/esm/frameworks/react/propTypes/createType.js +2 -1
- package/dist/esm/frameworks/react/propTypes/generateFuncSignature.js +1 -1
- package/dist/esm/frameworks/react/propTypes/sortProps.js +1 -0
- package/dist/esm/frameworks/react/react-argtypes.stories.js +4 -3
- package/dist/esm/frameworks/svelte/extractArgTypes.js +2 -0
- package/dist/esm/frameworks/svelte/preset.js +1 -1
- package/dist/esm/frameworks/svelte/sourceDecorator.js +4 -3
- package/dist/esm/frameworks/svelte/svelte-docgen-loader.js +1 -1
- package/dist/esm/frameworks/vue/extractArgTypes.js +3 -2
- package/dist/esm/frameworks/vue/preset.js +1 -0
- package/dist/esm/frameworks/vue/sourceDecorator.js +6 -6
- package/dist/esm/frameworks/vue3/extractArgTypes.js +1 -0
- package/dist/esm/frameworks/vue3/preset.js +1 -0
- package/dist/esm/frameworks/web-components/custom-elements.js +2 -1
- package/dist/esm/frameworks/web-components/prepareForInline.js +6 -6
- package/dist/esm/frameworks/web-components/sourceDecorator.js +1 -1
- package/dist/esm/lib/convert/flow/convert.js +2 -1
- package/dist/esm/lib/convert/proptypes/convert.js +1 -1
- package/dist/esm/lib/convert/typescript/convert.js +1 -0
- package/dist/esm/lib/convert/utils.js +1 -1
- package/dist/esm/lib/docgen/createPropDef.js +1 -0
- package/dist/esm/lib/docgen/extractDocgenProps.js +1 -0
- package/dist/esm/lib/docgen/flow/createType.js +1 -1
- package/dist/esm/lib/docgen/typeScript/createType.js +1 -1
- package/dist/esm/lib/docgen/utils/defaultValue.js +1 -0
- package/dist/esm/lib/jsdocParser.js +1 -1
- package/dist/esm/lib/utils.js +1 -1
- package/dist/esm/typings.d.ts +14 -0
- package/dist/modern/blocks/Canvas.js +3 -1
- package/dist/modern/blocks/mdx.js +12 -7
- package/dist/modern/frameworks/common/preset.js +2 -1
- package/dist/modern/frameworks/html/sourceDecorator.js +2 -2
- package/dist/modern/frameworks/react/jsxDecorator.js +3 -1
- package/dist/modern/frameworks/svelte/extractArgTypes.js +1 -0
- package/dist/modern/typings.d.ts +14 -0
- package/package.json +28 -27
- package/register.js +1 -0
- package/dist/cjs/typings.d.js +0 -1
- package/dist/esm/typings.d.js +0 -0
- package/dist/modern/typings.d.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import "core-js/modules/es.array.filter.js";
|
|
4
|
+
import "core-js/modules/es.object.to-string.js";
|
|
4
5
|
import "core-js/modules/es.array.slice.js";
|
|
5
6
|
import "core-js/modules/es.array.map.js";
|
|
6
7
|
import "core-js/modules/es.object.assign.js";
|
package/dist/esm/blocks/Story.js
CHANGED
|
@@ -6,16 +6,16 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
6
6
|
|
|
7
7
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
8
|
|
|
9
|
-
function _iterableToArrayLimit(arr, i) {
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import "core-js/modules/es.function.name.js";
|
|
14
14
|
import "core-js/modules/es.object.assign.js";
|
|
15
|
-
import "core-js/modules/es.promise.js";
|
|
16
15
|
import "core-js/modules/es.object.to-string.js";
|
|
17
|
-
import "core-js/modules/es.
|
|
16
|
+
import "core-js/modules/es.promise.js";
|
|
18
17
|
import "core-js/modules/es.array.iterator.js";
|
|
18
|
+
import "core-js/modules/es.string.iterator.js";
|
|
19
19
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
20
20
|
import "core-js/modules/es.array.concat.js";
|
|
21
21
|
import "core-js/modules/es.symbol.js";
|
|
@@ -23,6 +23,7 @@ import "core-js/modules/es.symbol.description.js";
|
|
|
23
23
|
import "core-js/modules/es.symbol.iterator.js";
|
|
24
24
|
import "core-js/modules/es.array.slice.js";
|
|
25
25
|
import "core-js/modules/es.array.from.js";
|
|
26
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
26
27
|
import React, { useContext, useRef, useEffect, useState } from 'react';
|
|
27
28
|
import { MDXProvider } from '@mdx-js/react';
|
|
28
29
|
import global from 'global';
|
package/dist/esm/blocks/Title.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "core-js/modules/es.string.split.js";
|
|
2
1
|
import "core-js/modules/es.regexp.exec.js";
|
|
2
|
+
import "core-js/modules/es.string.split.js";
|
|
3
3
|
import "core-js/modules/es.string.trim.js";
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
5
|
import { Title as PureTitle } from '@storybook/components';
|
|
@@ -4,7 +4,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
4
4
|
|
|
5
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
6
|
|
|
7
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
7
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
8
|
|
|
9
9
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
10
|
|
|
@@ -13,15 +13,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
13
13
|
import "core-js/modules/es.array.join.js";
|
|
14
14
|
import "core-js/modules/es.array.concat.js";
|
|
15
15
|
import "core-js/modules/es.array.slice.js";
|
|
16
|
-
import "core-js/modules/es.string.replace.js";
|
|
17
16
|
import "core-js/modules/es.regexp.exec.js";
|
|
17
|
+
import "core-js/modules/es.string.replace.js";
|
|
18
18
|
import "core-js/modules/es.string.split.js";
|
|
19
19
|
import "core-js/modules/es.symbol.js";
|
|
20
20
|
import "core-js/modules/es.symbol.description.js";
|
|
21
21
|
import "core-js/modules/es.object.to-string.js";
|
|
22
22
|
import "core-js/modules/es.symbol.iterator.js";
|
|
23
|
-
import "core-js/modules/es.string.iterator.js";
|
|
24
23
|
import "core-js/modules/es.array.iterator.js";
|
|
24
|
+
import "core-js/modules/es.string.iterator.js";
|
|
25
25
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
26
26
|
import "core-js/modules/es.array.from.js";
|
|
27
27
|
import "core-js/modules/es.function.name.js";
|
package/dist/esm/blocks/mdx.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
var _excluded = ["children"],
|
|
4
|
+
_excluded2 = ["className", "children"],
|
|
5
|
+
_excluded3 = ["href", "target", "children"],
|
|
6
|
+
_excluded4 = ["as", "id", "children"],
|
|
7
|
+
_excluded5 = ["as", "id", "children"];
|
|
8
|
+
|
|
1
9
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
10
|
|
|
3
11
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
12
|
|
|
5
13
|
import "core-js/modules/es.object.assign.js";
|
|
6
|
-
import "core-js/modules/es.string.match.js";
|
|
7
14
|
import "core-js/modules/es.regexp.exec.js";
|
|
15
|
+
import "core-js/modules/es.string.match.js";
|
|
8
16
|
import "core-js/modules/es.string.split.js";
|
|
9
17
|
import "core-js/modules/es.string.starts-with.js";
|
|
10
|
-
import "core-js/modules/es.object.
|
|
11
|
-
import "core-js/modules/es.symbol.js";
|
|
18
|
+
import "core-js/modules/es.object.to-string.js";
|
|
12
19
|
|
|
13
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
21
|
|
|
@@ -33,7 +40,7 @@ export var assertIsFn = function assertIsFn(val) {
|
|
|
33
40
|
|
|
34
41
|
export var AddContext = function AddContext(props) {
|
|
35
42
|
var children = props.children,
|
|
36
|
-
rest = _objectWithoutProperties(props,
|
|
43
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
37
44
|
|
|
38
45
|
var parentContext = React.useContext(DocsContext);
|
|
39
46
|
return /*#__PURE__*/React.createElement(DocsContext.Provider, {
|
|
@@ -43,7 +50,7 @@ export var AddContext = function AddContext(props) {
|
|
|
43
50
|
export var CodeOrSourceMdx = function CodeOrSourceMdx(_ref) {
|
|
44
51
|
var className = _ref.className,
|
|
45
52
|
children = _ref.children,
|
|
46
|
-
rest = _objectWithoutProperties(_ref,
|
|
53
|
+
rest = _objectWithoutProperties(_ref, _excluded2);
|
|
47
54
|
|
|
48
55
|
// markdown-to-jsx does not add className to inline code
|
|
49
56
|
if (typeof className !== 'string' && (typeof children !== 'string' || !children.match(/[\n\r]/g))) {
|
|
@@ -87,7 +94,7 @@ export var AnchorMdx = function AnchorMdx(props) {
|
|
|
87
94
|
var href = props.href,
|
|
88
95
|
target = props.target,
|
|
89
96
|
children = props.children,
|
|
90
|
-
rest = _objectWithoutProperties(props,
|
|
97
|
+
rest = _objectWithoutProperties(props, _excluded3);
|
|
91
98
|
|
|
92
99
|
if (href) {
|
|
93
100
|
// Enable scrolling for in-page anchors.
|
|
@@ -140,7 +147,7 @@ var HeaderWithOcticonAnchor = function HeaderWithOcticonAnchor(_ref3) {
|
|
|
140
147
|
var as = _ref3.as,
|
|
141
148
|
id = _ref3.id,
|
|
142
149
|
children = _ref3.children,
|
|
143
|
-
rest = _objectWithoutProperties(_ref3,
|
|
150
|
+
rest = _objectWithoutProperties(_ref3, _excluded4);
|
|
144
151
|
|
|
145
152
|
// @ts-ignore
|
|
146
153
|
var OcticonHeader = OcticonHeaders[as];
|
|
@@ -176,7 +183,7 @@ export var HeaderMdx = function HeaderMdx(props) {
|
|
|
176
183
|
var as = props.as,
|
|
177
184
|
id = props.id,
|
|
178
185
|
children = props.children,
|
|
179
|
-
rest = _objectWithoutProperties(props,
|
|
186
|
+
rest = _objectWithoutProperties(props, _excluded5); // An id should have been added on every header by the "remark-slug" plugin.
|
|
180
187
|
|
|
181
188
|
|
|
182
189
|
if (id) {
|
|
@@ -6,20 +6,6 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
6
6
|
|
|
7
7
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
8
8
|
|
|
9
|
-
import "core-js/modules/es.promise.js";
|
|
10
|
-
import "core-js/modules/es.object.to-string.js";
|
|
11
|
-
import "core-js/modules/es.string.iterator.js";
|
|
12
|
-
import "core-js/modules/es.array.iterator.js";
|
|
13
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
|
14
|
-
import "core-js/modules/es.array.map.js";
|
|
15
|
-
import "core-js/modules/es.object.assign.js";
|
|
16
|
-
import "core-js/modules/es.symbol.js";
|
|
17
|
-
import "core-js/modules/es.symbol.description.js";
|
|
18
|
-
import "core-js/modules/es.symbol.iterator.js";
|
|
19
|
-
import "core-js/modules/es.array.slice.js";
|
|
20
|
-
import "core-js/modules/es.function.name.js";
|
|
21
|
-
import "core-js/modules/es.array.from.js";
|
|
22
|
-
|
|
23
9
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
24
10
|
|
|
25
11
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -28,10 +14,24 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
28
14
|
|
|
29
15
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
30
16
|
|
|
31
|
-
function _iterableToArrayLimit(arr, i) {
|
|
17
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
32
18
|
|
|
33
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
34
20
|
|
|
21
|
+
import "core-js/modules/es.object.to-string.js";
|
|
22
|
+
import "core-js/modules/es.array.iterator.js";
|
|
23
|
+
import "core-js/modules/es.promise.js";
|
|
24
|
+
import "core-js/modules/es.string.iterator.js";
|
|
25
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
26
|
+
import "core-js/modules/es.array.map.js";
|
|
27
|
+
import "core-js/modules/es.object.assign.js";
|
|
28
|
+
import "core-js/modules/es.symbol.js";
|
|
29
|
+
import "core-js/modules/es.symbol.description.js";
|
|
30
|
+
import "core-js/modules/es.symbol.iterator.js";
|
|
31
|
+
import "core-js/modules/es.array.slice.js";
|
|
32
|
+
import "core-js/modules/es.function.name.js";
|
|
33
|
+
import "core-js/modules/es.array.from.js";
|
|
34
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
35
35
|
import { useState, useEffect } from 'react';
|
|
36
36
|
export function useStory(storyId, context) {
|
|
37
37
|
var stories = useStories([storyId], context);
|
package/dist/esm/blocks/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "core-js/modules/es.array.join.js";
|
|
2
2
|
import "core-js/modules/es.array.map.js";
|
|
3
|
-
import "core-js/modules/es.string.split.js";
|
|
4
3
|
import "core-js/modules/es.regexp.exec.js";
|
|
4
|
+
import "core-js/modules/es.string.split.js";
|
|
5
5
|
import "core-js/modules/es.array.slice.js";
|
|
6
6
|
import "core-js/modules/es.array.includes.js";
|
|
7
7
|
import "core-js/modules/es.string.includes.js";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
2
|
|
|
3
3
|
import "core-js/modules/es.function.name.js";
|
|
4
4
|
import "core-js/modules/es.array.find.js";
|
|
5
|
+
import "core-js/modules/es.object.to-string.js";
|
|
5
6
|
import "core-js/modules/es.array.map.js";
|
|
6
7
|
import "core-js/modules/es.array.concat.js";
|
|
7
8
|
import "core-js/modules/es.array.join.js";
|
|
8
|
-
import "core-js/modules/es.string.split.js";
|
|
9
9
|
import "core-js/modules/es.regexp.exec.js";
|
|
10
|
+
import "core-js/modules/es.string.split.js";
|
|
10
11
|
import "core-js/modules/es.array.includes.js";
|
|
11
12
|
import "core-js/modules/es.number.constructor.js";
|
|
12
13
|
import "core-js/modules/web.dom-collections.for-each.js";
|
|
@@ -14,10 +15,9 @@ import "core-js/modules/es.string.replace.js";
|
|
|
14
15
|
import "core-js/modules/es.object.assign.js";
|
|
15
16
|
import "core-js/modules/es.symbol.js";
|
|
16
17
|
import "core-js/modules/es.symbol.description.js";
|
|
17
|
-
import "core-js/modules/es.object.to-string.js";
|
|
18
18
|
import "core-js/modules/es.symbol.iterator.js";
|
|
19
|
-
import "core-js/modules/es.string.iterator.js";
|
|
20
19
|
import "core-js/modules/es.array.iterator.js";
|
|
20
|
+
import "core-js/modules/es.string.iterator.js";
|
|
21
21
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
22
22
|
|
|
23
23
|
/* eslint-disable no-underscore-dangle */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "regenerator-runtime/runtime.js";
|
|
2
2
|
import "core-js/modules/es.array.concat.js";
|
|
3
|
-
import "core-js/modules/es.promise.js";
|
|
4
3
|
import "core-js/modules/es.object.to-string.js";
|
|
4
|
+
import "core-js/modules/es.promise.js";
|
|
5
5
|
|
|
6
6
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "regenerator-runtime/runtime.js";
|
|
2
|
-
import "core-js/modules/es.promise.js";
|
|
3
2
|
import "core-js/modules/es.object.to-string.js";
|
|
3
|
+
import "core-js/modules/es.promise.js";
|
|
4
4
|
|
|
5
5
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "regenerator-runtime/runtime.js";
|
|
2
|
-
import "core-js/modules/es.promise.js";
|
|
3
2
|
import "core-js/modules/es.object.to-string.js";
|
|
3
|
+
import "core-js/modules/es.promise.js";
|
|
4
4
|
|
|
5
5
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
6
|
|
|
@@ -6,8 +6,9 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
6
6
|
|
|
7
7
|
import "core-js/modules/es.array.concat.js";
|
|
8
8
|
import "core-js/modules/es.object.assign.js";
|
|
9
|
-
import "core-js/modules/es.
|
|
9
|
+
import "core-js/modules/es.function.name.js";
|
|
10
10
|
import "core-js/modules/es.regexp.exec.js";
|
|
11
|
+
import "core-js/modules/es.string.match.js";
|
|
11
12
|
import "core-js/modules/es.array.filter.js";
|
|
12
13
|
import "core-js/modules/es.object.to-string.js";
|
|
13
14
|
import "core-js/modules/es.regexp.to-string.js";
|
|
@@ -15,12 +16,11 @@ import "core-js/modules/es.regexp.constructor.js";
|
|
|
15
16
|
import "core-js/modules/es.symbol.js";
|
|
16
17
|
import "core-js/modules/es.symbol.description.js";
|
|
17
18
|
import "core-js/modules/es.symbol.iterator.js";
|
|
18
|
-
import "core-js/modules/es.string.iterator.js";
|
|
19
19
|
import "core-js/modules/es.array.iterator.js";
|
|
20
|
+
import "core-js/modules/es.string.iterator.js";
|
|
20
21
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
21
22
|
import "core-js/modules/es.array.from.js";
|
|
22
23
|
import "core-js/modules/es.array.slice.js";
|
|
23
|
-
import "core-js/modules/es.function.name.js";
|
|
24
24
|
import "core-js/modules/es.promise.js";
|
|
25
25
|
|
|
26
26
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -29,7 +29,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
29
29
|
|
|
30
30
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
31
|
|
|
32
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
32
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
33
33
|
|
|
34
34
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
35
35
|
|
|
@@ -71,6 +71,7 @@ function _webpack() {
|
|
|
71
71
|
_yield$options$preset,
|
|
72
72
|
_yield$options$preset2,
|
|
73
73
|
builder,
|
|
74
|
+
builderName,
|
|
74
75
|
resolvedBabelLoader,
|
|
75
76
|
_webpackConfig$module,
|
|
76
77
|
module,
|
|
@@ -101,8 +102,9 @@ function _webpack() {
|
|
|
101
102
|
_yield$options$preset = _context.sent;
|
|
102
103
|
_yield$options$preset2 = _yield$options$preset.builder;
|
|
103
104
|
builder = _yield$options$preset2 === void 0 ? 'webpack4' : _yield$options$preset2;
|
|
105
|
+
builderName = typeof builder === 'string' ? builder : builder.name;
|
|
104
106
|
resolvedBabelLoader = require.resolve('babel-loader', {
|
|
105
|
-
paths:
|
|
107
|
+
paths: builderName.match(/(webpack4|webpack5)/) ? [require.resolve("@storybook/builder-".concat(builder))] : [builderName]
|
|
106
108
|
});
|
|
107
109
|
_webpackConfig$module = webpackConfig.module, module = _webpackConfig$module === void 0 ? {} : _webpackConfig$module; // it will reuse babel options that are already in use in storybook
|
|
108
110
|
// also, these babel options are chained with other presets.
|
|
@@ -192,7 +194,7 @@ function _webpack() {
|
|
|
192
194
|
});
|
|
193
195
|
return _context.abrupt("return", result);
|
|
194
196
|
|
|
195
|
-
case
|
|
197
|
+
case 17:
|
|
196
198
|
case "end":
|
|
197
199
|
return _context.stop();
|
|
198
200
|
}
|
|
@@ -43,8 +43,8 @@ export function sourceDecorator(storyFn, context) {
|
|
|
43
43
|
source = story;
|
|
44
44
|
} // eslint-disable-next-line no-undef
|
|
45
45
|
else if (story instanceof Element) {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
source = story.outerHTML;
|
|
47
|
+
}
|
|
48
48
|
|
|
49
49
|
if (source) source = applyTransformSource(source, context);
|
|
50
50
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import "core-js/modules/es.array.iterator.js";
|
|
1
2
|
import "core-js/modules/es.map.js";
|
|
2
3
|
import "core-js/modules/es.object.to-string.js";
|
|
3
4
|
import "core-js/modules/es.string.iterator.js";
|
|
4
|
-
import "core-js/modules/es.array.iterator.js";
|
|
5
5
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
6
6
|
import "core-js/modules/web.dom-collections.for-each.js";
|
|
7
7
|
import "core-js/modules/es.object.keys.js";
|
|
@@ -4,10 +4,11 @@ import "core-js/modules/es.object.keys.js";
|
|
|
4
4
|
import "core-js/modules/es.symbol.js";
|
|
5
5
|
import "core-js/modules/es.symbol.description.js";
|
|
6
6
|
import "core-js/modules/es.symbol.iterator.js";
|
|
7
|
-
import "core-js/modules/es.string.iterator.js";
|
|
8
7
|
import "core-js/modules/es.array.iterator.js";
|
|
8
|
+
import "core-js/modules/es.string.iterator.js";
|
|
9
9
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
10
10
|
import "core-js/modules/es.array.from.js";
|
|
11
|
+
var _excluded = ["mdxType", "originalType", "children"];
|
|
11
12
|
|
|
12
13
|
var _templateObject;
|
|
13
14
|
|
|
@@ -17,7 +18,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
17
18
|
|
|
18
19
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
20
|
|
|
20
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
21
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
21
22
|
|
|
22
23
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
23
24
|
|
|
@@ -33,8 +34,8 @@ import "core-js/modules/es.array.join.js";
|
|
|
33
34
|
import "core-js/modules/es.array.map.js";
|
|
34
35
|
import "core-js/modules/es.object.to-string.js";
|
|
35
36
|
import "core-js/modules/es.regexp.to-string.js";
|
|
36
|
-
import "core-js/modules/es.string.match.js";
|
|
37
37
|
import "core-js/modules/es.regexp.exec.js";
|
|
38
|
+
import "core-js/modules/es.string.match.js";
|
|
38
39
|
import "core-js/modules/web.dom-collections.for-each.js";
|
|
39
40
|
import "core-js/modules/es.string.replace.js";
|
|
40
41
|
import "core-js/modules/es.array.concat.js";
|
|
@@ -176,7 +177,7 @@ var mdxToJsx = function mdxToJsx(node) {
|
|
|
176
177
|
mdxType = _node$props2.mdxType,
|
|
177
178
|
originalType = _node$props2.originalType,
|
|
178
179
|
children = _node$props2.children,
|
|
179
|
-
rest = _objectWithoutProperties(_node$props2,
|
|
180
|
+
rest = _objectWithoutProperties(_node$props2, _excluded);
|
|
180
181
|
|
|
181
182
|
var jsxChildren = [];
|
|
182
183
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
2
|
|
|
3
3
|
import "core-js/modules/es.function.name.js";
|
|
4
|
-
import "core-js/modules/es.string.replace.js";
|
|
5
4
|
import "core-js/modules/es.regexp.exec.js";
|
|
5
|
+
import "core-js/modules/es.string.replace.js";
|
|
6
6
|
import "core-js/modules/es.object.to-string.js";
|
|
7
7
|
import "core-js/modules/es.regexp.to-string.js";
|
|
8
8
|
import "core-js/modules/es.object.assign.js";
|
|
9
9
|
import "core-js/modules/es.symbol.js";
|
|
10
10
|
import "core-js/modules/es.symbol.description.js";
|
|
11
11
|
import "core-js/modules/es.symbol.iterator.js";
|
|
12
|
-
import "core-js/modules/es.string.iterator.js";
|
|
13
12
|
import "core-js/modules/es.array.iterator.js";
|
|
13
|
+
import "core-js/modules/es.string.iterator.js";
|
|
14
14
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
15
15
|
import isPlainObject from 'lodash/isPlainObject';
|
|
16
16
|
import isFunction from 'lodash/isFunction';
|
|
@@ -2,8 +2,8 @@ import "core-js/modules/es.object.assign.js";
|
|
|
2
2
|
import "core-js/modules/es.string.ends-with.js";
|
|
3
3
|
import "core-js/modules/es.array.slice.js";
|
|
4
4
|
import "core-js/modules/es.string.starts-with.js";
|
|
5
|
-
import "core-js/modules/es.string.replace.js";
|
|
6
5
|
import "core-js/modules/es.regexp.exec.js";
|
|
6
|
+
import "core-js/modules/es.string.replace.js";
|
|
7
7
|
import { generate } from 'escodegen';
|
|
8
8
|
import dedent from 'ts-dedent';
|
|
9
9
|
var BASIC_OPTIONS = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "core-js/modules/es.object.assign.js";
|
|
2
2
|
import "core-js/modules/es.function.name.js";
|
|
3
3
|
import "core-js/modules/es.array.filter.js";
|
|
4
|
+
import "core-js/modules/es.object.to-string.js";
|
|
4
5
|
import { Parser } from 'acorn';
|
|
5
6
|
import jsx from 'acorn-jsx'; // eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
7
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "core-js/modules/es.function.name.js";
|
|
2
|
-
import "core-js/modules/es.string.replace.js";
|
|
3
2
|
import "core-js/modules/es.regexp.exec.js";
|
|
3
|
+
import "core-js/modules/es.string.replace.js";
|
|
4
4
|
import "core-js/modules/es.string.split.js";
|
|
5
5
|
import "core-js/modules/es.array.join.js";
|
|
6
6
|
import "core-js/modules/es.array.map.js";
|
|
7
7
|
import "core-js/modules/es.object.keys.js";
|
|
8
8
|
import "core-js/modules/es.array.concat.js";
|
|
9
|
+
import "core-js/modules/es.object.to-string.js";
|
|
9
10
|
import { createSummaryValue, isTooLongForTypeSummary } from '../../../lib';
|
|
10
11
|
import { generateFuncSignature, generateShortFuncSignature, toMultilineSignature } from './generateFuncSignature';
|
|
11
12
|
import { OBJECT_CAPTION, ARRAY_CAPTION, CLASS_CAPTION, FUNCTION_CAPTION, ELEMENT_CAPTION, CUSTOM_CAPTION, isHtmlTag, generateObjectCode, generateCode } from '../lib';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "core-js/modules/es.array.map.js";
|
|
2
2
|
import "core-js/modules/es.array.concat.js";
|
|
3
3
|
import "core-js/modules/es.array.join.js";
|
|
4
|
-
import "core-js/modules/es.string.replace.js";
|
|
5
4
|
import "core-js/modules/es.regexp.exec.js";
|
|
5
|
+
import "core-js/modules/es.string.replace.js";
|
|
6
6
|
export function generateFuncSignature(params, returns) {
|
|
7
7
|
var hasParams = params != null;
|
|
8
8
|
var hasReturns = returns != null;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import "core-js/modules/es.object.assign.js";
|
|
2
2
|
import "core-js/modules/es.array.map.js";
|
|
3
3
|
import "core-js/modules/es.object.entries.js";
|
|
4
|
+
import "core-js/modules/es.object.to-string.js";
|
|
4
5
|
import "core-js/modules/es.symbol.js";
|
|
5
6
|
import "core-js/modules/es.symbol.description.js";
|
|
6
|
-
import "core-js/modules/es.object.to-string.js";
|
|
7
7
|
import "core-js/modules/es.symbol.iterator.js";
|
|
8
|
-
import "core-js/modules/es.string.iterator.js";
|
|
9
8
|
import "core-js/modules/es.array.iterator.js";
|
|
9
|
+
import "core-js/modules/es.string.iterator.js";
|
|
10
10
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
11
11
|
import "core-js/modules/es.array.slice.js";
|
|
12
12
|
import "core-js/modules/es.function.name.js";
|
|
13
13
|
import "core-js/modules/es.array.from.js";
|
|
14
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
14
15
|
|
|
15
16
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
17
|
|
|
@@ -20,7 +21,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
20
21
|
|
|
21
22
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
22
23
|
|
|
23
|
-
function _iterableToArrayLimit(arr, i) {
|
|
24
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
24
25
|
|
|
25
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
27
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "core-js/modules/es.array.find.js";
|
|
2
|
+
import "core-js/modules/es.object.to-string.js";
|
|
2
3
|
import "core-js/modules/es.function.name.js";
|
|
3
4
|
import "core-js/modules/web.dom-collections.for-each.js";
|
|
4
5
|
import "core-js/modules/es.symbol.js";
|
|
@@ -120,6 +121,7 @@ var parseTypeToControl = function parseTypeToControl(type) {
|
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
123
|
} else if (type.kind === 'union') {
|
|
124
|
+
// @ts-ignore TODO: fix, this seems like a broke in package update
|
|
123
125
|
if (Array.isArray(type.type) && !type.type.find(function (t) {
|
|
124
126
|
return t.type !== 'string';
|
|
125
127
|
})) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "regenerator-runtime/runtime.js";
|
|
2
|
-
import "core-js/modules/es.promise.js";
|
|
3
2
|
import "core-js/modules/es.object.to-string.js";
|
|
3
|
+
import "core-js/modules/es.promise.js";
|
|
4
4
|
|
|
5
5
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
6
|
|
|
@@ -6,7 +6,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
6
6
|
|
|
7
7
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
8
|
|
|
9
|
-
function _iterableToArrayLimit(arr, i) {
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
@@ -15,18 +15,19 @@ import "core-js/modules/es.function.name.js";
|
|
|
15
15
|
import "core-js/modules/es.string.ends-with.js";
|
|
16
16
|
import "core-js/modules/es.array.join.js";
|
|
17
17
|
import "core-js/modules/es.array.filter.js";
|
|
18
|
+
import "core-js/modules/es.object.to-string.js";
|
|
18
19
|
import "core-js/modules/es.array.map.js";
|
|
19
20
|
import "core-js/modules/es.object.entries.js";
|
|
20
21
|
import "core-js/modules/es.array.find.js";
|
|
21
22
|
import "core-js/modules/es.symbol.js";
|
|
22
23
|
import "core-js/modules/es.symbol.description.js";
|
|
23
|
-
import "core-js/modules/es.object.to-string.js";
|
|
24
24
|
import "core-js/modules/es.symbol.iterator.js";
|
|
25
|
-
import "core-js/modules/es.string.iterator.js";
|
|
26
25
|
import "core-js/modules/es.array.iterator.js";
|
|
26
|
+
import "core-js/modules/es.string.iterator.js";
|
|
27
27
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
28
28
|
import "core-js/modules/es.array.slice.js";
|
|
29
29
|
import "core-js/modules/es.array.from.js";
|
|
30
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
30
31
|
import { addons, useEffect } from '@storybook/addons';
|
|
31
32
|
import { SourceType, SNIPPET_RENDERED } from '../../shared';
|
|
32
33
|
/**
|
|
@@ -12,8 +12,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
12
12
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
13
13
|
|
|
14
14
|
import "core-js/modules/es.array.map.js";
|
|
15
|
-
import "core-js/modules/es.string.split.js";
|
|
16
15
|
import "core-js/modules/es.regexp.exec.js";
|
|
16
|
+
import "core-js/modules/es.string.split.js";
|
|
17
17
|
import "core-js/modules/es.string.match.js";
|
|
18
18
|
import "core-js/modules/es.string.replace.js";
|
|
19
19
|
import "core-js/modules/es.array.slice.js";
|
|
@@ -6,12 +6,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
6
6
|
|
|
7
7
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
8
|
|
|
9
|
-
function _iterableToArrayLimit(arr, i) {
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
|
-
import "core-js/modules/es.object.to-string.js";
|
|
14
13
|
import "core-js/modules/es.array.iterator.js";
|
|
14
|
+
import "core-js/modules/es.object.to-string.js";
|
|
15
15
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
16
16
|
import "core-js/modules/es.function.name.js";
|
|
17
17
|
import "core-js/modules/es.array.join.js";
|
|
@@ -24,6 +24,7 @@ import "core-js/modules/es.symbol.iterator.js";
|
|
|
24
24
|
import "core-js/modules/es.string.iterator.js";
|
|
25
25
|
import "core-js/modules/es.array.slice.js";
|
|
26
26
|
import "core-js/modules/es.array.from.js";
|
|
27
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
27
28
|
import { hasDocgen, extractComponentProps } from '../../lib/docgen';
|
|
28
29
|
import { convert } from '../../lib/convert';
|
|
29
30
|
var SECTIONS = ['props', 'events', 'slots', 'methods'];
|