@storybook/addon-onboarding 10.4.0-alpha.9 → 10.4.0-beta.0
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/preset.js +10 -13
- package/package.json +3 -3
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_575p0cv42y4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_575p0cv42y4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_575p0cv42y4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_575p0cv42y4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_575p0cv42y4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_575p0cv42y4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,18 +14,15 @@ var require = CJS_COMPAT_NODE_MODULE_mzlvgp8ddi.createRequire(import.meta.url);
|
|
|
14
14
|
import { telemetry } from "storybook/internal/telemetry";
|
|
15
15
|
|
|
16
16
|
// package.json
|
|
17
|
-
var version = "10.4.0-
|
|
17
|
+
var version = "10.4.0-beta.0";
|
|
18
18
|
|
|
19
19
|
// src/constants.ts
|
|
20
20
|
var ADDON_ID = "storybook/onboarding", ADDON_ONBOARDING_CHANNEL = `${ADDON_ID}/channel`;
|
|
21
21
|
|
|
22
22
|
// src/preset.ts
|
|
23
|
-
var experimental_serverChannel = async (channel, options) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
type === "telemetry" ? telemetry("addon-onboarding", { ...event, addonVersion: version }) : type === "survey" && telemetry("onboarding-survey", { ...event, addonVersion: version });
|
|
27
|
-
}), channel;
|
|
28
|
-
};
|
|
23
|
+
var experimental_serverChannel = async (channel, options) => (channel.on(ADDON_ONBOARDING_CHANNEL, ({ type, ...event }) => {
|
|
24
|
+
type === "telemetry" ? telemetry("addon-onboarding", { ...event, addonVersion: version }) : type === "survey" && telemetry("onboarding-survey", { ...event, addonVersion: version });
|
|
25
|
+
}), channel);
|
|
29
26
|
export {
|
|
30
27
|
experimental_serverChannel
|
|
31
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-onboarding",
|
|
3
|
-
"version": "10.4.0-
|
|
3
|
+
"version": "10.4.0-beta.0",
|
|
4
4
|
"description": "Storybook Onboarding: Help new users learn how to write stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@neoconfetti/react": "^1.0.0",
|
|
52
|
-
"@storybook/icons": "^2.0.
|
|
52
|
+
"@storybook/icons": "^2.0.2",
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-dom": "^18.2.0",
|
|
55
55
|
"react-joyride": "^2.8.2",
|
|
56
56
|
"typescript": "^5.9.3"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"storybook": "^10.4.0-
|
|
59
|
+
"storybook": "^10.4.0-beta.0"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|