@storybook/addon-docs 6.5.0-alpha.24 → 6.5.0-alpha.25
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/frameworks/svelte/prepareForInline.js +2 -2
- package/dist/esm/frameworks/svelte/prepareForInline.js +2 -2
- package/dist/modern/frameworks/svelte/prepareForInline.js +2 -2
- package/package.json +28 -27
- package/{dist/cjs/frameworks/svelte → svelte}/HOC.svelte +0 -0
- package/dist/cjs/frameworks/svelte/sample/MockButton.svelte +0 -45
- package/dist/cjs/typings.d.ts +0 -14
- package/dist/esm/frameworks/svelte/HOC.svelte +0 -7
- package/dist/esm/frameworks/svelte/sample/MockButton.svelte +0 -45
- package/dist/esm/typings.d.ts +0 -14
- package/dist/modern/frameworks/svelte/HOC.svelte +0 -7
- package/dist/modern/frameworks/svelte/sample/MockButton.svelte +0 -45
- package/dist/modern/typings.d.ts +0 -14
|
@@ -7,11 +7,11 @@ exports.prepareForInline = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _HOC = _interopRequireDefault(require("
|
|
10
|
+
var _HOC = _interopRequireDefault(require("@storybook/addon-docs/svelte/HOC.svelte"));
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
//
|
|
14
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
15
15
|
var prepareForInline = function prepareForInline(storyFn) {
|
|
16
16
|
var el = _react.default.useRef(null);
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react'; //
|
|
1
|
+
import React from 'react'; // eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
2
|
|
|
3
|
-
import HOC from '
|
|
3
|
+
import HOC from '@storybook/addon-docs/svelte/HOC.svelte';
|
|
4
4
|
export var prepareForInline = function prepareForInline(storyFn) {
|
|
5
5
|
var el = React.useRef(null);
|
|
6
6
|
React.useEffect(function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react'; //
|
|
1
|
+
import React from 'react'; // eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
2
|
|
|
3
|
-
import HOC from '
|
|
3
|
+
import HOC from '@storybook/addon-docs/svelte/HOC.svelte';
|
|
4
4
|
export const prepareForInline = storyFn => {
|
|
5
5
|
const el = React.useRef(null);
|
|
6
6
|
React.useEffect(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "6.5.0-alpha.
|
|
3
|
+
"version": "6.5.0-alpha.25",
|
|
4
4
|
"description": "Document component usage and properties in Markdown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"addon",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"common/**/*",
|
|
41
41
|
"ember/**/*",
|
|
42
42
|
"html/**/*",
|
|
43
|
+
"svelte/**/*",
|
|
43
44
|
"postinstall/**/*",
|
|
44
45
|
"react/**/*",
|
|
45
46
|
"vue/**/*",
|
|
@@ -63,21 +64,21 @@
|
|
|
63
64
|
"@mdx-js/loader": "^1.6.22",
|
|
64
65
|
"@mdx-js/mdx": "^1.6.22",
|
|
65
66
|
"@mdx-js/react": "^1.6.22",
|
|
66
|
-
"@storybook/addons": "6.5.0-alpha.
|
|
67
|
-
"@storybook/api": "6.5.0-alpha.
|
|
68
|
-
"@storybook/builder-webpack4": "6.5.0-alpha.
|
|
69
|
-
"@storybook/client-logger": "6.5.0-alpha.
|
|
70
|
-
"@storybook/components": "6.5.0-alpha.
|
|
71
|
-
"@storybook/core": "6.5.0-alpha.
|
|
72
|
-
"@storybook/core-events": "6.5.0-alpha.
|
|
67
|
+
"@storybook/addons": "6.5.0-alpha.25",
|
|
68
|
+
"@storybook/api": "6.5.0-alpha.25",
|
|
69
|
+
"@storybook/builder-webpack4": "6.5.0-alpha.25",
|
|
70
|
+
"@storybook/client-logger": "6.5.0-alpha.25",
|
|
71
|
+
"@storybook/components": "6.5.0-alpha.25",
|
|
72
|
+
"@storybook/core": "6.5.0-alpha.25",
|
|
73
|
+
"@storybook/core-events": "6.5.0-alpha.25",
|
|
73
74
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
74
|
-
"@storybook/csf-tools": "6.5.0-alpha.
|
|
75
|
-
"@storybook/node-logger": "6.5.0-alpha.
|
|
76
|
-
"@storybook/postinstall": "6.5.0-alpha.
|
|
77
|
-
"@storybook/preview-web": "6.5.0-alpha.
|
|
78
|
-
"@storybook/source-loader": "6.5.0-alpha.
|
|
79
|
-
"@storybook/store": "6.5.0-alpha.
|
|
80
|
-
"@storybook/theming": "6.5.0-alpha.
|
|
75
|
+
"@storybook/csf-tools": "6.5.0-alpha.25",
|
|
76
|
+
"@storybook/node-logger": "6.5.0-alpha.25",
|
|
77
|
+
"@storybook/postinstall": "6.5.0-alpha.25",
|
|
78
|
+
"@storybook/preview-web": "6.5.0-alpha.25",
|
|
79
|
+
"@storybook/source-loader": "6.5.0-alpha.25",
|
|
80
|
+
"@storybook/store": "6.5.0-alpha.25",
|
|
81
|
+
"@storybook/theming": "6.5.0-alpha.25",
|
|
81
82
|
"acorn": "^7.4.1",
|
|
82
83
|
"acorn-jsx": "^5.3.1",
|
|
83
84
|
"acorn-walk": "^7.2.0",
|
|
@@ -106,11 +107,11 @@
|
|
|
106
107
|
"@babel/core": "^7.12.10",
|
|
107
108
|
"@emotion/core": "^10.3.1",
|
|
108
109
|
"@emotion/styled": "^10.0.27",
|
|
109
|
-
"@storybook/angular": "6.5.0-alpha.
|
|
110
|
-
"@storybook/html": "6.5.0-alpha.
|
|
111
|
-
"@storybook/react": "6.5.0-alpha.
|
|
112
|
-
"@storybook/vue": "6.5.0-alpha.
|
|
113
|
-
"@storybook/web-components": "6.5.0-alpha.
|
|
110
|
+
"@storybook/angular": "6.5.0-alpha.25",
|
|
111
|
+
"@storybook/html": "6.5.0-alpha.25",
|
|
112
|
+
"@storybook/react": "6.5.0-alpha.25",
|
|
113
|
+
"@storybook/vue": "6.5.0-alpha.25",
|
|
114
|
+
"@storybook/web-components": "6.5.0-alpha.25",
|
|
114
115
|
"@types/cross-spawn": "^6.0.2",
|
|
115
116
|
"@types/doctrine": "^0.0.3",
|
|
116
117
|
"@types/enzyme": "^3.10.8",
|
|
@@ -141,12 +142,12 @@
|
|
|
141
142
|
"zone.js": "^0.11.3"
|
|
142
143
|
},
|
|
143
144
|
"peerDependencies": {
|
|
144
|
-
"@storybook/angular": "6.5.0-alpha.
|
|
145
|
-
"@storybook/html": "6.5.0-alpha.
|
|
146
|
-
"@storybook/react": "6.5.0-alpha.
|
|
147
|
-
"@storybook/vue": "6.5.0-alpha.
|
|
148
|
-
"@storybook/vue3": "6.5.0-alpha.
|
|
149
|
-
"@storybook/web-components": "6.5.0-alpha.
|
|
145
|
+
"@storybook/angular": "6.5.0-alpha.25",
|
|
146
|
+
"@storybook/html": "6.5.0-alpha.25",
|
|
147
|
+
"@storybook/react": "6.5.0-alpha.25",
|
|
148
|
+
"@storybook/vue": "6.5.0-alpha.25",
|
|
149
|
+
"@storybook/vue3": "6.5.0-alpha.25",
|
|
150
|
+
"@storybook/web-components": "6.5.0-alpha.25",
|
|
150
151
|
"lit": "^2.0.0",
|
|
151
152
|
"lit-html": "^1.4.1 || ^2.0.0",
|
|
152
153
|
"react": "^16.8.0 || ^17.0.0",
|
|
@@ -203,7 +204,7 @@
|
|
|
203
204
|
"publishConfig": {
|
|
204
205
|
"access": "public"
|
|
205
206
|
},
|
|
206
|
-
"gitHead": "
|
|
207
|
+
"gitHead": "25ed23c17e07452af0dbd34665eb9a6dfdac526c",
|
|
207
208
|
"sbmodern": "dist/modern/index.js",
|
|
208
209
|
"storybook": {
|
|
209
210
|
"displayName": "Docs",
|
|
File without changes
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { createEventDispatcher, afterUpdate } from 'svelte';
|
|
3
|
-
export let text = '';
|
|
4
|
-
export let rounded = true;
|
|
5
|
-
|
|
6
|
-
const dispatch = createEventDispatcher();
|
|
7
|
-
|
|
8
|
-
function onClick(event) {
|
|
9
|
-
rounded = !rounded;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Click Event
|
|
13
|
-
*/
|
|
14
|
-
dispatch('click', event);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
afterUpdate(() => {
|
|
18
|
-
/**
|
|
19
|
-
* After Update
|
|
20
|
-
*/
|
|
21
|
-
dispatch('afterUpdate');
|
|
22
|
-
});
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
.rounded {
|
|
27
|
-
border-radius: 35px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.button {
|
|
31
|
-
border: 3px solid;
|
|
32
|
-
padding: 10px 20px;
|
|
33
|
-
background-color: white;
|
|
34
|
-
outline: none;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
|
-
|
|
38
|
-
<svelte:options accessors={true} />
|
|
39
|
-
<button class="button" class:rounded on:click={onClick}>
|
|
40
|
-
<strong>{rounded ? 'Round' : 'Square'} corners</strong>
|
|
41
|
-
<br />
|
|
42
|
-
{text}
|
|
43
|
-
<!-- Default Slot -->
|
|
44
|
-
<slot {rounded}/>
|
|
45
|
-
</button>
|
package/dist/cjs/typings.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare module '@mdx-js/react';
|
|
2
|
-
declare module 'global';
|
|
3
|
-
declare module '@egoist/vue-to-react';
|
|
4
|
-
declare module 'remark-slug';
|
|
5
|
-
declare module 'remark-external-links';
|
|
6
|
-
declare module 'babel-plugin-react-docgen';
|
|
7
|
-
declare module 'require-from-string';
|
|
8
|
-
declare module 'styled-components';
|
|
9
|
-
declare module 'acorn-jsx';
|
|
10
|
-
declare module 'vue/dist/vue';
|
|
11
|
-
|
|
12
|
-
declare module 'sveltedoc-parser' {
|
|
13
|
-
export function parse(options: any): Promise<any>;
|
|
14
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { createEventDispatcher, afterUpdate } from 'svelte';
|
|
3
|
-
export let text = '';
|
|
4
|
-
export let rounded = true;
|
|
5
|
-
|
|
6
|
-
const dispatch = createEventDispatcher();
|
|
7
|
-
|
|
8
|
-
function onClick(event) {
|
|
9
|
-
rounded = !rounded;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Click Event
|
|
13
|
-
*/
|
|
14
|
-
dispatch('click', event);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
afterUpdate(() => {
|
|
18
|
-
/**
|
|
19
|
-
* After Update
|
|
20
|
-
*/
|
|
21
|
-
dispatch('afterUpdate');
|
|
22
|
-
});
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
.rounded {
|
|
27
|
-
border-radius: 35px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.button {
|
|
31
|
-
border: 3px solid;
|
|
32
|
-
padding: 10px 20px;
|
|
33
|
-
background-color: white;
|
|
34
|
-
outline: none;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
|
-
|
|
38
|
-
<svelte:options accessors={true} />
|
|
39
|
-
<button class="button" class:rounded on:click={onClick}>
|
|
40
|
-
<strong>{rounded ? 'Round' : 'Square'} corners</strong>
|
|
41
|
-
<br />
|
|
42
|
-
{text}
|
|
43
|
-
<!-- Default Slot -->
|
|
44
|
-
<slot {rounded}/>
|
|
45
|
-
</button>
|
package/dist/esm/typings.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare module '@mdx-js/react';
|
|
2
|
-
declare module 'global';
|
|
3
|
-
declare module '@egoist/vue-to-react';
|
|
4
|
-
declare module 'remark-slug';
|
|
5
|
-
declare module 'remark-external-links';
|
|
6
|
-
declare module 'babel-plugin-react-docgen';
|
|
7
|
-
declare module 'require-from-string';
|
|
8
|
-
declare module 'styled-components';
|
|
9
|
-
declare module 'acorn-jsx';
|
|
10
|
-
declare module 'vue/dist/vue';
|
|
11
|
-
|
|
12
|
-
declare module 'sveltedoc-parser' {
|
|
13
|
-
export function parse(options: any): Promise<any>;
|
|
14
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { createEventDispatcher, afterUpdate } from 'svelte';
|
|
3
|
-
export let text = '';
|
|
4
|
-
export let rounded = true;
|
|
5
|
-
|
|
6
|
-
const dispatch = createEventDispatcher();
|
|
7
|
-
|
|
8
|
-
function onClick(event) {
|
|
9
|
-
rounded = !rounded;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Click Event
|
|
13
|
-
*/
|
|
14
|
-
dispatch('click', event);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
afterUpdate(() => {
|
|
18
|
-
/**
|
|
19
|
-
* After Update
|
|
20
|
-
*/
|
|
21
|
-
dispatch('afterUpdate');
|
|
22
|
-
});
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
.rounded {
|
|
27
|
-
border-radius: 35px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.button {
|
|
31
|
-
border: 3px solid;
|
|
32
|
-
padding: 10px 20px;
|
|
33
|
-
background-color: white;
|
|
34
|
-
outline: none;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
|
-
|
|
38
|
-
<svelte:options accessors={true} />
|
|
39
|
-
<button class="button" class:rounded on:click={onClick}>
|
|
40
|
-
<strong>{rounded ? 'Round' : 'Square'} corners</strong>
|
|
41
|
-
<br />
|
|
42
|
-
{text}
|
|
43
|
-
<!-- Default Slot -->
|
|
44
|
-
<slot {rounded}/>
|
|
45
|
-
</button>
|
package/dist/modern/typings.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare module '@mdx-js/react';
|
|
2
|
-
declare module 'global';
|
|
3
|
-
declare module '@egoist/vue-to-react';
|
|
4
|
-
declare module 'remark-slug';
|
|
5
|
-
declare module 'remark-external-links';
|
|
6
|
-
declare module 'babel-plugin-react-docgen';
|
|
7
|
-
declare module 'require-from-string';
|
|
8
|
-
declare module 'styled-components';
|
|
9
|
-
declare module 'acorn-jsx';
|
|
10
|
-
declare module 'vue/dist/vue';
|
|
11
|
-
|
|
12
|
-
declare module 'sveltedoc-parser' {
|
|
13
|
-
export function parse(options: any): Promise<any>;
|
|
14
|
-
}
|