@storybook/addon-onboarding 0.0.29--canary.40.3282e5c.0 → 0.0.29
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/manager.js +88 -312
- package/dist/manager.js.map +1 -1
- package/dist/manager.mjs +82 -308
- package/dist/manager.mjs.map +1 -1
- package/dist/preview.d.ts +9 -0
- package/dist/preview.js +7 -0
- package/dist/preview.js.map +1 -0
- package/dist/preview.mjs +5 -0
- package/dist/preview.mjs.map +1 -0
- package/manager.js +1 -0
- package/package.json +39 -30
- package/preview.js +1 -0
- package/dist/preset.d.ts +0 -50
- package/dist/preset.js +0 -223
- package/dist/preset.js.map +0 -1
- package/dist/preset.mjs +0 -221
- package/dist/preset.mjs.map +0 -1
- package/preset.js +0 -8
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProjectAnnotations, Renderer } from '@storybook/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Note: if you want to use JSX in this file, rename it to `preview.tsx`
|
|
5
|
+
* and update the entry prop in tsup.config.ts to use "src/preview.tsx",
|
|
6
|
+
*/
|
|
7
|
+
declare const preview: ProjectAnnotations<Renderer>;
|
|
8
|
+
|
|
9
|
+
export { preview as default };
|
package/dist/preview.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/preview.ts"],"names":["preview","preview_default"],"mappings":"AAOA,IAAMA,EAAwC,CAAC,EAExCC,EAAQD","sourcesContent":["import type { Renderer, ProjectAnnotations } from \"@storybook/types\";\n\n/**\n * Note: if you want to use JSX in this file, rename it to `preview.tsx`\n * and update the entry prop in tsup.config.ts to use \"src/preview.tsx\",\n */\n\nconst preview: ProjectAnnotations<Renderer> = {};\n\nexport default preview;\n"]}
|
package/dist/preview.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/preview.ts"],"names":["preview","preview_default"],"mappings":"AAOA,IAAMA,EAAwC,CAAC,EAExCC,EAAQD","sourcesContent":["import type { Renderer, ProjectAnnotations } from \"@storybook/types\";\n\n/**\n * Note: if you want to use JSX in this file, rename it to `preview.tsx`\n * and update the entry prop in tsup.config.ts to use \"src/preview.tsx\",\n */\n\nconst preview: ProjectAnnotations<Renderer> = {};\n\nexport default preview;\n"]}
|
package/manager.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dist/manager";
|
package/package.json
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-onboarding",
|
|
3
|
-
"version": "0.0.29
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"description": "Storybook Addon Onboarding - Introduces a new onboarding experience",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook-addons",
|
|
7
7
|
"addon-onboarding"
|
|
8
8
|
],
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"url": "https://github.com/storybookjs/addon-onboarding/issues"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/storybookjs/addon-onboarding.git"
|
|
16
|
-
},
|
|
9
|
+
"repository": "git+https://github.com/storybookjs/addon-onboarding.git",
|
|
10
|
+
"author": "@storybookjs/core",
|
|
17
11
|
"license": "MIT",
|
|
18
|
-
"author": {
|
|
19
|
-
"name": "@storybookjs/core"
|
|
20
|
-
},
|
|
21
12
|
"exports": {
|
|
22
13
|
".": {
|
|
23
14
|
"require": "./dist/index.js",
|
|
24
15
|
"import": "./dist/index.mjs",
|
|
25
16
|
"types": "./dist/index.d.ts"
|
|
26
17
|
},
|
|
27
|
-
"./
|
|
28
|
-
"require": "./dist/
|
|
29
|
-
"import": "./dist/
|
|
30
|
-
"types": "./dist/
|
|
18
|
+
"./manager": {
|
|
19
|
+
"require": "./dist/manager.js",
|
|
20
|
+
"import": "./dist/manager.mjs",
|
|
21
|
+
"types": "./dist/manager.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./preview": {
|
|
24
|
+
"require": "./dist/preview.js",
|
|
25
|
+
"import": "./dist/preview.mjs",
|
|
26
|
+
"types": "./dist/preview.d.ts"
|
|
31
27
|
},
|
|
32
28
|
"./package.json": "./package.json"
|
|
33
29
|
},
|
|
@@ -42,8 +38,8 @@
|
|
|
42
38
|
],
|
|
43
39
|
"scripts": {
|
|
44
40
|
"build": "tsup",
|
|
41
|
+
"postinstall": "yarn build",
|
|
45
42
|
"build:watch": "yarn build --watch",
|
|
46
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
47
43
|
"start": "run-p build:watch 'storybook --quiet'",
|
|
48
44
|
"release": "yarn build && auto shipit",
|
|
49
45
|
"storybook": "storybook dev -p 6006",
|
|
@@ -52,8 +48,6 @@
|
|
|
52
48
|
"chromatic": "npx chromatic"
|
|
53
49
|
},
|
|
54
50
|
"nodemonConfig": {
|
|
55
|
-
"exec": "yarn storybook --ci",
|
|
56
|
-
"ext": "js,jsx,ts,tsx",
|
|
57
51
|
"ignore": [
|
|
58
52
|
"src/stories",
|
|
59
53
|
"src/**/*.stories.*"
|
|
@@ -62,14 +56,9 @@
|
|
|
62
56
|
"src",
|
|
63
57
|
".storybook/main.ts",
|
|
64
58
|
"vite.config.ts"
|
|
65
|
-
]
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"@radix-ui/react-dialog": "^1.0.4",
|
|
69
|
-
"framer-motion": "^6.5.1",
|
|
70
|
-
"react-confetti": "^6.1.0",
|
|
71
|
-
"react-joyride": "^2.5.4",
|
|
72
|
-
"react-use-measure": "^2.1.1"
|
|
59
|
+
],
|
|
60
|
+
"ext": "js,jsx,ts,tsx",
|
|
61
|
+
"exec": "yarn storybook --ci"
|
|
73
62
|
},
|
|
74
63
|
"devDependencies": {
|
|
75
64
|
"@storybook/addon-essentials": "^7.1.0-alpha.32",
|
|
@@ -83,14 +72,13 @@
|
|
|
83
72
|
"@storybook/react": "^7.1.0-alpha.32",
|
|
84
73
|
"@storybook/react-vite": "^7.1.0-alpha.32",
|
|
85
74
|
"@storybook/testing-library": "^0.0.14-next.1",
|
|
86
|
-
"@storybook/telemetry": "^7.1.0-alpha.32",
|
|
87
75
|
"@storybook/theming": "^7.1.0-alpha.32",
|
|
88
|
-
"@storybook/types": "^7.1.0-alpha.32",
|
|
89
76
|
"@types/node": "^18.15.0",
|
|
90
77
|
"@types/react": "^18.2.7",
|
|
91
78
|
"@types/react-dom": "^18.2.4",
|
|
92
79
|
"@vitejs/plugin-react": "^3.1.0",
|
|
93
80
|
"auto": "^10.3.0",
|
|
81
|
+
"boxen": "^5.0.1",
|
|
94
82
|
"chromatic": "^6.17.4",
|
|
95
83
|
"dedent": "^0.7.0",
|
|
96
84
|
"nodemon": "^2.0.22",
|
|
@@ -109,9 +97,30 @@
|
|
|
109
97
|
"@storybook/core-events": "^7.0.0",
|
|
110
98
|
"@storybook/manager-api": "^7.0.0",
|
|
111
99
|
"@storybook/theming": "^7.0.0",
|
|
112
|
-
"@storybook/types": "^7.0.0"
|
|
100
|
+
"@storybook/types": "^7.0.0",
|
|
101
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
102
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
103
|
+
},
|
|
104
|
+
"peerDependenciesMeta": {
|
|
105
|
+
"react": {
|
|
106
|
+
"optional": true
|
|
107
|
+
},
|
|
108
|
+
"react-dom": {
|
|
109
|
+
"optional": true
|
|
110
|
+
}
|
|
113
111
|
},
|
|
114
112
|
"publishConfig": {
|
|
115
113
|
"access": "public"
|
|
114
|
+
},
|
|
115
|
+
"bugs": {
|
|
116
|
+
"url": "https://github.com/storybookjs/addon-onboarding/issues"
|
|
117
|
+
},
|
|
118
|
+
"homepage": "https://github.com/storybookjs/addon-onboarding#readme",
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"@radix-ui/react-dialog": "^1.0.4",
|
|
121
|
+
"framer-motion": "^6.5.1",
|
|
122
|
+
"react-confetti": "^6.1.0",
|
|
123
|
+
"react-joyride": "^2.5.4",
|
|
124
|
+
"react-use-measure": "^2.1.1"
|
|
116
125
|
}
|
|
117
126
|
}
|
package/preview.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dist/preview";
|
package/dist/preset.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Options } from '@storybook/types';
|
|
2
|
-
|
|
3
|
-
type ChannelHandler = (event: ChannelEvent) => void;
|
|
4
|
-
interface ChannelTransport {
|
|
5
|
-
send(event: ChannelEvent, options?: any): void;
|
|
6
|
-
setHandler(handler: ChannelHandler): void;
|
|
7
|
-
}
|
|
8
|
-
interface ChannelEvent {
|
|
9
|
-
type: string;
|
|
10
|
-
from: string;
|
|
11
|
-
args: any[];
|
|
12
|
-
}
|
|
13
|
-
interface Listener {
|
|
14
|
-
(...args: any[]): void;
|
|
15
|
-
}
|
|
16
|
-
interface ChannelArgsSingle {
|
|
17
|
-
transport?: ChannelTransport;
|
|
18
|
-
async?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface ChannelArgsMulti {
|
|
21
|
-
transports: ChannelTransport[];
|
|
22
|
-
async?: boolean;
|
|
23
|
-
}
|
|
24
|
-
declare class Channel {
|
|
25
|
-
readonly isAsync: boolean;
|
|
26
|
-
private sender;
|
|
27
|
-
private events;
|
|
28
|
-
private data;
|
|
29
|
-
private readonly transports;
|
|
30
|
-
constructor(input: ChannelArgsMulti);
|
|
31
|
-
constructor(input: ChannelArgsSingle);
|
|
32
|
-
get hasTransport(): boolean;
|
|
33
|
-
addListener(eventName: string, listener: Listener): void;
|
|
34
|
-
emit(eventName: string, ...args: any): void;
|
|
35
|
-
last(eventName: string): any;
|
|
36
|
-
eventNames(): string[];
|
|
37
|
-
listenerCount(eventName: string): number;
|
|
38
|
-
listeners(eventName: string): Listener[] | undefined;
|
|
39
|
-
once(eventName: string, listener: Listener): void;
|
|
40
|
-
removeAllListeners(eventName?: string): void;
|
|
41
|
-
removeListener(eventName: string, listener: Listener): void;
|
|
42
|
-
on(eventName: string, listener: Listener): void;
|
|
43
|
-
off(eventName: string, listener: Listener): void;
|
|
44
|
-
private handleEvent;
|
|
45
|
-
private onceListener;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare const experimental_serverChannel: (channel: Channel, options: Options) => Promise<Channel>;
|
|
49
|
-
|
|
50
|
-
export { experimental_serverChannel };
|