@storybook/addon-links 5.3.13 → 5.3.14
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-links",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.14",
|
|
4
4
|
"description": "Story Links addon for storybook",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"addon",
|
|
@@ -16,23 +16,24 @@
|
|
|
16
16
|
"directory": "addons/links"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
|
+
"main": "dist/index.js",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
19
21
|
"files": [
|
|
20
22
|
"dist/**/*",
|
|
21
23
|
"README.md",
|
|
22
24
|
"*.js",
|
|
23
|
-
"*.d.ts"
|
|
25
|
+
"*.d.ts",
|
|
26
|
+
"ts3.5/**/*"
|
|
24
27
|
],
|
|
25
|
-
"main": "dist/index.js",
|
|
26
|
-
"types": "dist/index.d.ts",
|
|
27
28
|
"scripts": {
|
|
28
29
|
"prepare": "node ../../scripts/prepare.js"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@storybook/addons": "5.3.
|
|
32
|
-
"@storybook/client-logger": "5.3.
|
|
33
|
-
"@storybook/core-events": "5.3.
|
|
32
|
+
"@storybook/addons": "5.3.14",
|
|
33
|
+
"@storybook/client-logger": "5.3.14",
|
|
34
|
+
"@storybook/core-events": "5.3.14",
|
|
34
35
|
"@storybook/csf": "0.0.1",
|
|
35
|
-
"@storybook/router": "5.3.
|
|
36
|
+
"@storybook/router": "5.3.14",
|
|
36
37
|
"core-js": "^3.0.1",
|
|
37
38
|
"global": "^4.3.2",
|
|
38
39
|
"prop-types": "^15.7.2",
|
|
@@ -48,5 +49,12 @@
|
|
|
48
49
|
"publishConfig": {
|
|
49
50
|
"access": "public"
|
|
50
51
|
},
|
|
51
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "91d9c0c4e0afd7e494b23ec8076b21e45b7a8906",
|
|
53
|
+
"typesVersions": {
|
|
54
|
+
"<=3.5": {
|
|
55
|
+
"*": [
|
|
56
|
+
"ts3.5/*"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
52
60
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const register: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ParamsId {
|
|
2
|
+
storyId: string;
|
|
3
|
+
}
|
|
4
|
+
interface ParamsCombo {
|
|
5
|
+
kind: string;
|
|
6
|
+
story: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const navigate: (params: ParamsId | ParamsCombo) => void;
|
|
9
|
+
export declare const linkTo: (idOrKindInput: string, storyInput?: string | ((...args: any[]) => string)) => (...args: any[]) => void;
|
|
10
|
+
export declare const hrefTo: (kind: string, name: string) => Promise<string>;
|
|
11
|
+
export declare const withLinks: (storyFn: () => void) => void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PureComponent, ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
kind: string;
|
|
4
|
+
story: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
interface State {
|
|
8
|
+
href: string;
|
|
9
|
+
}
|
|
10
|
+
export default class LinkTo extends PureComponent<Props, State> {
|
|
11
|
+
static defaultProps: Props;
|
|
12
|
+
state: State;
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentDidUpdate(prevProps: Props): void;
|
|
15
|
+
updateHref: () => Promise<void>;
|
|
16
|
+
handleClick: () => void;
|
|
17
|
+
render(): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export {};
|