@storybook/addon-docs 6.4.0-rc.1 → 6.4.0-rc.10
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/ArgsTable.js +3 -1
- package/dist/cjs/blocks/Story.js +48 -16
- package/dist/cjs/frameworks/angular/compodoc.js +5 -3
- package/dist/esm/blocks/ArgsTable.js +3 -1
- package/dist/esm/blocks/Story.js +43 -12
- package/dist/esm/frameworks/angular/compodoc.js +5 -3
- package/dist/modern/blocks/ArgsTable.js +3 -1
- package/dist/modern/blocks/Story.js +30 -7
- package/dist/modern/frameworks/angular/compodoc.js +5 -3
- package/dist/ts3.4/frameworks/web-components/sourceDecorator.d.ts +1 -1
- package/dist/ts3.9/frameworks/web-components/sourceDecorator.d.ts +1 -1
- package/package.json +31 -31
|
@@ -234,7 +234,9 @@ var StoryTable = function StoryTable(props) {
|
|
|
234
234
|
resetArgs = _useArgs2[2];
|
|
235
235
|
|
|
236
236
|
if (!story) return /*#__PURE__*/_react.default.createElement(_components.ArgsTable, {
|
|
237
|
-
isLoading: true
|
|
237
|
+
isLoading: true,
|
|
238
|
+
updateArgs: updateArgs,
|
|
239
|
+
resetArgs: resetArgs
|
|
238
240
|
});
|
|
239
241
|
var argTypes = (0, _store.filterArgTypes)(story.argTypes, include, exclude);
|
|
240
242
|
var mainLabel = (0, _utils.getComponentName)(component) || 'Story';
|
package/dist/cjs/blocks/Story.js
CHANGED
|
@@ -6,16 +6,8 @@ require("core-js/modules/es.symbol.js");
|
|
|
6
6
|
|
|
7
7
|
require("core-js/modules/es.symbol.description.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.object.to-string.js");
|
|
10
|
-
|
|
11
9
|
require("core-js/modules/es.symbol.iterator.js");
|
|
12
10
|
|
|
13
|
-
require("core-js/modules/es.string.iterator.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.array.iterator.js");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
|
-
|
|
19
11
|
require("core-js/modules/es.array.slice.js");
|
|
20
12
|
|
|
21
13
|
require("core-js/modules/es.array.from.js");
|
|
@@ -33,6 +25,16 @@ require("core-js/modules/es.function.name.js");
|
|
|
33
25
|
|
|
34
26
|
require("core-js/modules/es.object.assign.js");
|
|
35
27
|
|
|
28
|
+
require("core-js/modules/es.promise.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.object.to-string.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.string.iterator.js");
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.array.iterator.js");
|
|
35
|
+
|
|
36
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
37
|
+
|
|
36
38
|
require("core-js/modules/es.array.concat.js");
|
|
37
39
|
|
|
38
40
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -151,8 +153,16 @@ var getStoryProps = function getStoryProps(_ref4, story, context, onStoryFnCalle
|
|
|
151
153
|
|
|
152
154
|
exports.getStoryProps = getStoryProps;
|
|
153
155
|
|
|
156
|
+
function makeGate() {
|
|
157
|
+
var open;
|
|
158
|
+
var gate = new Promise(function (r) {
|
|
159
|
+
open = r;
|
|
160
|
+
});
|
|
161
|
+
return [gate, open];
|
|
162
|
+
}
|
|
163
|
+
|
|
154
164
|
var Story = function Story(props) {
|
|
155
|
-
var _global$FEATURES;
|
|
165
|
+
var _global$FEATURES, _global$FEATURES2;
|
|
156
166
|
|
|
157
167
|
var context = (0, _react.useContext)(_DocsContext.DocsContext);
|
|
158
168
|
|
|
@@ -200,22 +210,44 @@ var Story = function Story(props) {
|
|
|
200
210
|
};
|
|
201
211
|
}, [story]);
|
|
202
212
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
213
|
+
var _makeGate = makeGate(),
|
|
214
|
+
_makeGate2 = _slicedToArray(_makeGate, 2),
|
|
215
|
+
storyFnRan = _makeGate2[0],
|
|
216
|
+
onStoryFnRan = _makeGate2[1];
|
|
217
|
+
|
|
218
|
+
var _makeGate3 = makeGate(),
|
|
219
|
+
_makeGate4 = _slicedToArray(_makeGate3, 2),
|
|
220
|
+
rendered = _makeGate4[0],
|
|
221
|
+
onRendered = _makeGate4[1];
|
|
222
|
+
|
|
223
|
+
(0, _react.useEffect)(onRendered); // If we are rendering a old-style inline Story via `PureStory` below, we want to emit
|
|
206
224
|
// the `STORY_RENDERED` event when it renders. The modern mode below calls out to
|
|
207
225
|
// `Preview.renderStoryToDom()` which itself emits the event.
|
|
208
226
|
|
|
227
|
+
if (story && !(_global.default !== null && _global.default !== void 0 && (_global$FEATURES = _global.default.FEATURES) !== null && _global$FEATURES !== void 0 && _global$FEATURES.modernInlineRender)) {
|
|
228
|
+
// We need to wait for two things before we can consider the story rendered:
|
|
229
|
+
// (a) React's `useEffect` hook needs to fire. This is needed for React stories, as
|
|
230
|
+
// decorators of the form `<A><B/></A>` will not actually execute `B` in the first
|
|
231
|
+
// call to the story function.
|
|
232
|
+
// (b) The story function needs to actually have been called.
|
|
233
|
+
// Certain frameworks (i.e.angular) don't actually render the component in the very first
|
|
234
|
+
// React render cycle, so we need to wait for the framework to actually do that
|
|
235
|
+
Promise.all([storyFnRan, rendered]).then(function () {
|
|
236
|
+
channel.emit(_coreEvents.default.STORY_RENDERED, storyId);
|
|
237
|
+
});
|
|
238
|
+
}
|
|
209
239
|
|
|
210
|
-
|
|
211
|
-
return
|
|
212
|
-
}
|
|
240
|
+
if (!story) {
|
|
241
|
+
return /*#__PURE__*/_react.default.createElement(_components.StorySkeleton, null);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
var storyProps = getStoryProps(props, story, context, onStoryFnRan);
|
|
213
245
|
|
|
214
246
|
if (!storyProps) {
|
|
215
247
|
return null;
|
|
216
248
|
}
|
|
217
249
|
|
|
218
|
-
if (_global.default !== null && _global.default !== void 0 && (_global$
|
|
250
|
+
if (_global.default !== null && _global.default !== void 0 && (_global$FEATURES2 = _global.default.FEATURES) !== null && _global$FEATURES2 !== void 0 && _global$FEATURES2.modernInlineRender) {
|
|
219
251
|
// We do this so React doesn't complain when we replace the span in a secondary render
|
|
220
252
|
var htmlContents = "<span></span>"; // FIXME: height/style/etc. lifted from PureStory
|
|
221
253
|
|
|
@@ -187,8 +187,10 @@ var extractTypeFromValue = function extractTypeFromValue(defaultValue) {
|
|
|
187
187
|
};
|
|
188
188
|
|
|
189
189
|
var extractEnumValues = function extractEnumValues(compodocType) {
|
|
190
|
+
var _compodocJson$miscell, _compodocJson$miscell2;
|
|
191
|
+
|
|
190
192
|
var compodocJson = getCompodocJson();
|
|
191
|
-
var enumType = compodocJson === null || compodocJson === void 0 ? void 0 : compodocJson.miscellaneous.enumerations.find(function (x) {
|
|
193
|
+
var enumType = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$miscell = compodocJson.miscellaneous) === null || _compodocJson$miscell === void 0 ? void 0 : (_compodocJson$miscell2 = _compodocJson$miscell.enumerations) === null || _compodocJson$miscell2 === void 0 ? void 0 : _compodocJson$miscell2.find(function (x) {
|
|
192
194
|
return x.name === compodocType;
|
|
193
195
|
});
|
|
194
196
|
|
|
@@ -316,10 +318,10 @@ var extractDefaultValue = function extractDefaultValue(property) {
|
|
|
316
318
|
};
|
|
317
319
|
|
|
318
320
|
var resolveTypealias = function resolveTypealias(compodocType) {
|
|
319
|
-
var _compodocJson$
|
|
321
|
+
var _compodocJson$miscell3, _compodocJson$miscell4;
|
|
320
322
|
|
|
321
323
|
var compodocJson = getCompodocJson();
|
|
322
|
-
var typeAlias = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$
|
|
324
|
+
var typeAlias = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$miscell3 = compodocJson.miscellaneous) === null || _compodocJson$miscell3 === void 0 ? void 0 : (_compodocJson$miscell4 = _compodocJson$miscell3.typealiases) === null || _compodocJson$miscell4 === void 0 ? void 0 : _compodocJson$miscell4.find(function (x) {
|
|
323
325
|
return x.name === compodocType;
|
|
324
326
|
});
|
|
325
327
|
return typeAlias ? resolveTypealias(typeAlias.rawtype) : compodocType;
|
|
@@ -186,7 +186,9 @@ export var StoryTable = function StoryTable(props) {
|
|
|
186
186
|
resetArgs = _useArgs2[2];
|
|
187
187
|
|
|
188
188
|
if (!story) return /*#__PURE__*/React.createElement(PureArgsTable, {
|
|
189
|
-
isLoading: true
|
|
189
|
+
isLoading: true,
|
|
190
|
+
updateArgs: updateArgs,
|
|
191
|
+
resetArgs: resetArgs
|
|
190
192
|
});
|
|
191
193
|
var argTypes = filterArgTypes(story.argTypes, include, exclude);
|
|
192
194
|
var mainLabel = getComponentName(component) || 'Story';
|
package/dist/esm/blocks/Story.js
CHANGED
|
@@ -12,14 +12,15 @@ 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.
|
|
16
|
-
import "core-js/modules/es.symbol.js";
|
|
17
|
-
import "core-js/modules/es.symbol.description.js";
|
|
15
|
+
import "core-js/modules/es.promise.js";
|
|
18
16
|
import "core-js/modules/es.object.to-string.js";
|
|
19
|
-
import "core-js/modules/es.symbol.iterator.js";
|
|
20
17
|
import "core-js/modules/es.string.iterator.js";
|
|
21
18
|
import "core-js/modules/es.array.iterator.js";
|
|
22
19
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
20
|
+
import "core-js/modules/es.array.concat.js";
|
|
21
|
+
import "core-js/modules/es.symbol.js";
|
|
22
|
+
import "core-js/modules/es.symbol.description.js";
|
|
23
|
+
import "core-js/modules/es.symbol.iterator.js";
|
|
23
24
|
import "core-js/modules/es.array.slice.js";
|
|
24
25
|
import "core-js/modules/es.array.from.js";
|
|
25
26
|
import React, { useContext, useRef, useEffect, useState } from 'react';
|
|
@@ -99,8 +100,16 @@ export var getStoryProps = function getStoryProps(_ref4, story, context, onStory
|
|
|
99
100
|
});
|
|
100
101
|
};
|
|
101
102
|
|
|
103
|
+
function makeGate() {
|
|
104
|
+
var open;
|
|
105
|
+
var gate = new Promise(function (r) {
|
|
106
|
+
open = r;
|
|
107
|
+
});
|
|
108
|
+
return [gate, open];
|
|
109
|
+
}
|
|
110
|
+
|
|
102
111
|
var Story = function Story(props) {
|
|
103
|
-
var _global$FEATURES;
|
|
112
|
+
var _global$FEATURES, _global$FEATURES2;
|
|
104
113
|
|
|
105
114
|
var context = useContext(DocsContext);
|
|
106
115
|
var channel = addons.getChannel();
|
|
@@ -146,22 +155,44 @@ var Story = function Story(props) {
|
|
|
146
155
|
};
|
|
147
156
|
}, [story]);
|
|
148
157
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
158
|
+
var _makeGate = makeGate(),
|
|
159
|
+
_makeGate2 = _slicedToArray(_makeGate, 2),
|
|
160
|
+
storyFnRan = _makeGate2[0],
|
|
161
|
+
onStoryFnRan = _makeGate2[1];
|
|
162
|
+
|
|
163
|
+
var _makeGate3 = makeGate(),
|
|
164
|
+
_makeGate4 = _slicedToArray(_makeGate3, 2),
|
|
165
|
+
rendered = _makeGate4[0],
|
|
166
|
+
onRendered = _makeGate4[1];
|
|
167
|
+
|
|
168
|
+
useEffect(onRendered); // If we are rendering a old-style inline Story via `PureStory` below, we want to emit
|
|
152
169
|
// the `STORY_RENDERED` event when it renders. The modern mode below calls out to
|
|
153
170
|
// `Preview.renderStoryToDom()` which itself emits the event.
|
|
154
171
|
|
|
172
|
+
if (story && !(global !== null && global !== void 0 && (_global$FEATURES = global.FEATURES) !== null && _global$FEATURES !== void 0 && _global$FEATURES.modernInlineRender)) {
|
|
173
|
+
// We need to wait for two things before we can consider the story rendered:
|
|
174
|
+
// (a) React's `useEffect` hook needs to fire. This is needed for React stories, as
|
|
175
|
+
// decorators of the form `<A><B/></A>` will not actually execute `B` in the first
|
|
176
|
+
// call to the story function.
|
|
177
|
+
// (b) The story function needs to actually have been called.
|
|
178
|
+
// Certain frameworks (i.e.angular) don't actually render the component in the very first
|
|
179
|
+
// React render cycle, so we need to wait for the framework to actually do that
|
|
180
|
+
Promise.all([storyFnRan, rendered]).then(function () {
|
|
181
|
+
channel.emit(Events.STORY_RENDERED, storyId);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (!story) {
|
|
186
|
+
return /*#__PURE__*/React.createElement(StorySkeleton, null);
|
|
187
|
+
}
|
|
155
188
|
|
|
156
|
-
var storyProps = getStoryProps(props, story, context,
|
|
157
|
-
return channel.emit(Events.STORY_RENDERED, storyId);
|
|
158
|
-
});
|
|
189
|
+
var storyProps = getStoryProps(props, story, context, onStoryFnRan);
|
|
159
190
|
|
|
160
191
|
if (!storyProps) {
|
|
161
192
|
return null;
|
|
162
193
|
}
|
|
163
194
|
|
|
164
|
-
if (global !== null && global !== void 0 && (_global$
|
|
195
|
+
if (global !== null && global !== void 0 && (_global$FEATURES2 = global.FEATURES) !== null && _global$FEATURES2 !== void 0 && _global$FEATURES2.modernInlineRender) {
|
|
165
196
|
// We do this so React doesn't complain when we replace the span in a secondary render
|
|
166
197
|
var htmlContents = "<span></span>"; // FIXME: height/style/etc. lifted from PureStory
|
|
167
198
|
|
|
@@ -148,8 +148,10 @@ var extractTypeFromValue = function extractTypeFromValue(defaultValue) {
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
var extractEnumValues = function extractEnumValues(compodocType) {
|
|
151
|
+
var _compodocJson$miscell, _compodocJson$miscell2;
|
|
152
|
+
|
|
151
153
|
var compodocJson = getCompodocJson();
|
|
152
|
-
var enumType = compodocJson === null || compodocJson === void 0 ? void 0 : compodocJson.miscellaneous.enumerations.find(function (x) {
|
|
154
|
+
var enumType = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$miscell = compodocJson.miscellaneous) === null || _compodocJson$miscell === void 0 ? void 0 : (_compodocJson$miscell2 = _compodocJson$miscell.enumerations) === null || _compodocJson$miscell2 === void 0 ? void 0 : _compodocJson$miscell2.find(function (x) {
|
|
153
155
|
return x.name === compodocType;
|
|
154
156
|
});
|
|
155
157
|
|
|
@@ -274,10 +276,10 @@ var extractDefaultValue = function extractDefaultValue(property) {
|
|
|
274
276
|
};
|
|
275
277
|
|
|
276
278
|
var resolveTypealias = function resolveTypealias(compodocType) {
|
|
277
|
-
var _compodocJson$
|
|
279
|
+
var _compodocJson$miscell3, _compodocJson$miscell4;
|
|
278
280
|
|
|
279
281
|
var compodocJson = getCompodocJson();
|
|
280
|
-
var typeAlias = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$
|
|
282
|
+
var typeAlias = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$miscell3 = compodocJson.miscellaneous) === null || _compodocJson$miscell3 === void 0 ? void 0 : (_compodocJson$miscell4 = _compodocJson$miscell3.typealiases) === null || _compodocJson$miscell4 === void 0 ? void 0 : _compodocJson$miscell4.find(function (x) {
|
|
281
283
|
return x.name === compodocType;
|
|
282
284
|
});
|
|
283
285
|
return typeAlias ? resolveTypealias(typeAlias.rawtype) : compodocType;
|
|
@@ -140,7 +140,9 @@ export const StoryTable = props => {
|
|
|
140
140
|
|
|
141
141
|
let [args, updateArgs, resetArgs] = useArgs(storyId, context);
|
|
142
142
|
if (!story) return /*#__PURE__*/React.createElement(PureArgsTable, {
|
|
143
|
-
isLoading: true
|
|
143
|
+
isLoading: true,
|
|
144
|
+
updateArgs: updateArgs,
|
|
145
|
+
resetArgs: resetArgs
|
|
144
146
|
});
|
|
145
147
|
const argTypes = filterArgTypes(story.argTypes, include, exclude);
|
|
146
148
|
const mainLabel = getComponentName(component) || 'Story';
|
|
@@ -76,8 +76,16 @@ export const getStoryProps = ({
|
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
+
function makeGate() {
|
|
80
|
+
let open;
|
|
81
|
+
const gate = new Promise(r => {
|
|
82
|
+
open = r;
|
|
83
|
+
});
|
|
84
|
+
return [gate, open];
|
|
85
|
+
}
|
|
86
|
+
|
|
79
87
|
const Story = props => {
|
|
80
|
-
var _global$FEATURES;
|
|
88
|
+
var _global$FEATURES, _global$FEATURES2;
|
|
81
89
|
|
|
82
90
|
const context = useContext(DocsContext);
|
|
83
91
|
const channel = addons.getChannel();
|
|
@@ -117,21 +125,36 @@ const Story = props => {
|
|
|
117
125
|
|
|
118
126
|
return () => cleanup && cleanup();
|
|
119
127
|
}, [story]);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
} // If we are rendering a old-style inline Story via `PureStory` below, we want to emit
|
|
128
|
+
const [storyFnRan, onStoryFnRan] = makeGate();
|
|
129
|
+
const [rendered, onRendered] = makeGate();
|
|
130
|
+
useEffect(onRendered); // If we are rendering a old-style inline Story via `PureStory` below, we want to emit
|
|
124
131
|
// the `STORY_RENDERED` event when it renders. The modern mode below calls out to
|
|
125
132
|
// `Preview.renderStoryToDom()` which itself emits the event.
|
|
126
133
|
|
|
134
|
+
if (story && !(global !== null && global !== void 0 && (_global$FEATURES = global.FEATURES) !== null && _global$FEATURES !== void 0 && _global$FEATURES.modernInlineRender)) {
|
|
135
|
+
// We need to wait for two things before we can consider the story rendered:
|
|
136
|
+
// (a) React's `useEffect` hook needs to fire. This is needed for React stories, as
|
|
137
|
+
// decorators of the form `<A><B/></A>` will not actually execute `B` in the first
|
|
138
|
+
// call to the story function.
|
|
139
|
+
// (b) The story function needs to actually have been called.
|
|
140
|
+
// Certain frameworks (i.e.angular) don't actually render the component in the very first
|
|
141
|
+
// React render cycle, so we need to wait for the framework to actually do that
|
|
142
|
+
Promise.all([storyFnRan, rendered]).then(() => {
|
|
143
|
+
channel.emit(Events.STORY_RENDERED, storyId);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (!story) {
|
|
148
|
+
return /*#__PURE__*/React.createElement(StorySkeleton, null);
|
|
149
|
+
}
|
|
127
150
|
|
|
128
|
-
const storyProps = getStoryProps(props, story, context,
|
|
151
|
+
const storyProps = getStoryProps(props, story, context, onStoryFnRan);
|
|
129
152
|
|
|
130
153
|
if (!storyProps) {
|
|
131
154
|
return null;
|
|
132
155
|
}
|
|
133
156
|
|
|
134
|
-
if (global !== null && global !== void 0 && (_global$
|
|
157
|
+
if (global !== null && global !== void 0 && (_global$FEATURES2 = global.FEATURES) !== null && _global$FEATURES2 !== void 0 && _global$FEATURES2.modernInlineRender) {
|
|
135
158
|
// We do this so React doesn't complain when we replace the span in a secondary render
|
|
136
159
|
const htmlContents = `<span></span>`; // FIXME: height/style/etc. lifted from PureStory
|
|
137
160
|
|
|
@@ -107,8 +107,10 @@ const extractTypeFromValue = defaultValue => {
|
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
const extractEnumValues = compodocType => {
|
|
110
|
+
var _compodocJson$miscell, _compodocJson$miscell2;
|
|
111
|
+
|
|
110
112
|
const compodocJson = getCompodocJson();
|
|
111
|
-
const enumType = compodocJson === null || compodocJson === void 0 ? void 0 : compodocJson.miscellaneous.enumerations.find(x => x.name === compodocType);
|
|
113
|
+
const enumType = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$miscell = compodocJson.miscellaneous) === null || _compodocJson$miscell === void 0 ? void 0 : (_compodocJson$miscell2 = _compodocJson$miscell.enumerations) === null || _compodocJson$miscell2 === void 0 ? void 0 : _compodocJson$miscell2.find(x => x.name === compodocType);
|
|
112
114
|
|
|
113
115
|
if (enumType !== null && enumType !== void 0 && enumType.childs.every(x => x.value)) {
|
|
114
116
|
return enumType.childs.map(x => x.value);
|
|
@@ -225,10 +227,10 @@ const extractDefaultValue = property => {
|
|
|
225
227
|
};
|
|
226
228
|
|
|
227
229
|
const resolveTypealias = compodocType => {
|
|
228
|
-
var _compodocJson$
|
|
230
|
+
var _compodocJson$miscell3, _compodocJson$miscell4;
|
|
229
231
|
|
|
230
232
|
const compodocJson = getCompodocJson();
|
|
231
|
-
const typeAlias = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$
|
|
233
|
+
const typeAlias = compodocJson === null || compodocJson === void 0 ? void 0 : (_compodocJson$miscell3 = compodocJson.miscellaneous) === null || _compodocJson$miscell3 === void 0 ? void 0 : (_compodocJson$miscell4 = _compodocJson$miscell3.typealiases) === null || _compodocJson$miscell4 === void 0 ? void 0 : _compodocJson$miscell4.find(x => x.name === compodocType);
|
|
232
234
|
return typeAlias ? resolveTypealias(typeAlias.rawtype) : compodocType;
|
|
233
235
|
};
|
|
234
236
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PartialStoryFn, StoryContext } from '@storybook/csf';
|
|
2
2
|
import { WebComponentsFramework } from '@storybook/web-components';
|
|
3
|
-
export declare function sourceDecorator(storyFn: PartialStoryFn<WebComponentsFramework>, context: StoryContext<WebComponentsFramework>):
|
|
3
|
+
export declare function sourceDecorator(storyFn: PartialStoryFn<WebComponentsFramework>, context: StoryContext<WebComponentsFramework>): WebComponentsFramework['storyResult'];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PartialStoryFn, StoryContext } from '@storybook/csf';
|
|
2
2
|
import { WebComponentsFramework } from '@storybook/web-components';
|
|
3
|
-
export declare function sourceDecorator(storyFn: PartialStoryFn<WebComponentsFramework>, context: StoryContext<WebComponentsFramework>):
|
|
3
|
+
export declare function sourceDecorator(storyFn: PartialStoryFn<WebComponentsFramework>, context: StoryContext<WebComponentsFramework>): WebComponentsFramework['storyResult'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "6.4.0-rc.
|
|
3
|
+
"version": "6.4.0-rc.10",
|
|
4
4
|
"description": "Document component usage and properties in Markdown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"addon",
|
|
@@ -63,21 +63,21 @@
|
|
|
63
63
|
"@mdx-js/loader": "^1.6.22",
|
|
64
64
|
"@mdx-js/mdx": "^1.6.22",
|
|
65
65
|
"@mdx-js/react": "^1.6.22",
|
|
66
|
-
"@storybook/addons": "6.4.0-rc.
|
|
67
|
-
"@storybook/api": "6.4.0-rc.
|
|
68
|
-
"@storybook/builder-webpack4": "6.4.0-rc.
|
|
69
|
-
"@storybook/client-logger": "6.4.0-rc.
|
|
70
|
-
"@storybook/components": "6.4.0-rc.
|
|
71
|
-
"@storybook/core": "6.4.0-rc.
|
|
72
|
-
"@storybook/core-events": "6.4.0-rc.
|
|
66
|
+
"@storybook/addons": "6.4.0-rc.10",
|
|
67
|
+
"@storybook/api": "6.4.0-rc.10",
|
|
68
|
+
"@storybook/builder-webpack4": "6.4.0-rc.10",
|
|
69
|
+
"@storybook/client-logger": "6.4.0-rc.10",
|
|
70
|
+
"@storybook/components": "6.4.0-rc.10",
|
|
71
|
+
"@storybook/core": "6.4.0-rc.10",
|
|
72
|
+
"@storybook/core-events": "6.4.0-rc.10",
|
|
73
73
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
74
|
-
"@storybook/csf-tools": "6.4.0-rc.
|
|
75
|
-
"@storybook/node-logger": "6.4.0-rc.
|
|
76
|
-
"@storybook/postinstall": "6.4.0-rc.
|
|
77
|
-
"@storybook/preview-web": "6.4.0-rc.
|
|
78
|
-
"@storybook/source-loader": "6.4.0-rc.
|
|
79
|
-
"@storybook/store": "6.4.0-rc.
|
|
80
|
-
"@storybook/theming": "6.4.0-rc.
|
|
74
|
+
"@storybook/csf-tools": "6.4.0-rc.10",
|
|
75
|
+
"@storybook/node-logger": "6.4.0-rc.10",
|
|
76
|
+
"@storybook/postinstall": "6.4.0-rc.10",
|
|
77
|
+
"@storybook/preview-web": "6.4.0-rc.10",
|
|
78
|
+
"@storybook/source-loader": "6.4.0-rc.10",
|
|
79
|
+
"@storybook/store": "6.4.0-rc.10",
|
|
80
|
+
"@storybook/theming": "6.4.0-rc.10",
|
|
81
81
|
"acorn": "^7.4.1",
|
|
82
82
|
"acorn-jsx": "^5.3.1",
|
|
83
83
|
"acorn-walk": "^7.2.0",
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
"@babel/core": "^7.12.10",
|
|
107
107
|
"@emotion/core": "^10.1.1",
|
|
108
108
|
"@emotion/styled": "^10.0.27",
|
|
109
|
-
"@storybook/angular": "6.4.0-rc.
|
|
110
|
-
"@storybook/html": "6.4.0-rc.
|
|
111
|
-
"@storybook/react": "6.4.0-rc.
|
|
112
|
-
"@storybook/vue": "6.4.0-rc.
|
|
113
|
-
"@storybook/web-components": "6.4.0-rc.
|
|
109
|
+
"@storybook/angular": "6.4.0-rc.10",
|
|
110
|
+
"@storybook/html": "6.4.0-rc.10",
|
|
111
|
+
"@storybook/react": "6.4.0-rc.10",
|
|
112
|
+
"@storybook/vue": "6.4.0-rc.10",
|
|
113
|
+
"@storybook/web-components": "6.4.0-rc.10",
|
|
114
114
|
"@types/cross-spawn": "^6.0.2",
|
|
115
115
|
"@types/doctrine": "^0.0.3",
|
|
116
116
|
"@types/enzyme": "^3.10.8",
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
"fs-extra": "^9.0.1",
|
|
127
127
|
"jest": "^26.6.3",
|
|
128
128
|
"jest-specific-snapshot": "^4.0.0",
|
|
129
|
-
"lit-element": "^3.0.
|
|
130
|
-
"lit-html": "^2.0.
|
|
129
|
+
"lit-element": "^3.0.2",
|
|
130
|
+
"lit-html": "^2.0.2",
|
|
131
131
|
"require-from-string": "^2.0.2",
|
|
132
132
|
"rxjs": "^6.6.3",
|
|
133
133
|
"styled-components": "^5.2.1",
|
|
@@ -140,14 +140,14 @@
|
|
|
140
140
|
"zone.js": "^0.11.3"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {
|
|
143
|
-
"@storybook/angular": "6.4.0-rc.
|
|
144
|
-
"@storybook/html": "6.4.0-rc.
|
|
145
|
-
"@storybook/react": "6.4.0-rc.
|
|
146
|
-
"@storybook/vue": "6.4.0-rc.
|
|
147
|
-
"@storybook/vue3": "6.4.0-rc.
|
|
148
|
-
"@storybook/web-components": "6.4.0-rc.
|
|
149
|
-
"lit": "^2.0.0
|
|
150
|
-
"lit-html": "^1.4.1 || ^2.0.0
|
|
143
|
+
"@storybook/angular": "6.4.0-rc.10",
|
|
144
|
+
"@storybook/html": "6.4.0-rc.10",
|
|
145
|
+
"@storybook/react": "6.4.0-rc.10",
|
|
146
|
+
"@storybook/vue": "6.4.0-rc.10",
|
|
147
|
+
"@storybook/vue3": "6.4.0-rc.10",
|
|
148
|
+
"@storybook/web-components": "6.4.0-rc.10",
|
|
149
|
+
"lit": "^2.0.0",
|
|
150
|
+
"lit-html": "^1.4.1 || ^2.0.0",
|
|
151
151
|
"react": "^16.8.0 || ^17.0.0",
|
|
152
152
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
153
153
|
"svelte": "^3.31.2",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"publishConfig": {
|
|
203
203
|
"access": "public"
|
|
204
204
|
},
|
|
205
|
-
"gitHead": "
|
|
205
|
+
"gitHead": "5ae60fc639dfd19becda5dcf42f4e42e6f88b02f",
|
|
206
206
|
"sbmodern": "dist/modern/index.js",
|
|
207
207
|
"storybook": {
|
|
208
208
|
"displayName": "Docs",
|