@storybook/addon-onboarding 10.4.0-alpha.1 → 10.4.0-alpha.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/preset.js +10 -13
- package/package.json +2 -2
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xq4j45uje5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xq4j45uje5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xq4j45uje5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xq4j45uje5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xq4j45uje5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xq4j45uje5.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_cz0wwnxiv8q.createRequire(import.meta.url);
|
|
|
14
14
|
import { telemetry } from "storybook/internal/telemetry";
|
|
15
15
|
|
|
16
16
|
// package.json
|
|
17
|
-
var version = "10.4.0-alpha.
|
|
17
|
+
var version = "10.4.0-alpha.10";
|
|
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-alpha.
|
|
3
|
+
"version": "10.4.0-alpha.10",
|
|
4
4
|
"description": "Storybook Onboarding: Help new users learn how to write stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"typescript": "^5.9.3"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"storybook": "^10.4.0-alpha.
|
|
59
|
+
"storybook": "^10.4.0-alpha.10"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|