@storybook/addon-onboarding 10.4.5 → 10.4.6
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/_browser-chunks/{Onboarding-Q5GKVBY2.js → Onboarding-ISBUXTH6.js} +5 -13
- package/dist/_browser-chunks/{Survey-DWFAZIJS.js → Survey-ONUNS54C.js} +1 -1
- package/dist/_browser-chunks/{chunk-ZYVL3X5E.js → chunk-UBBB7RW7.js} +5 -1
- package/dist/index.js +1 -1
- package/dist/manager.js +2 -2
- package/dist/preset.js +7 -7
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
__commonJS,
|
|
10
10
|
__toESM
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UBBB7RW7.js";
|
|
12
12
|
|
|
13
13
|
// ../../../node_modules/scroll/index.js
|
|
14
14
|
var require_scroll = __commonJS({
|
|
@@ -98,7 +98,7 @@ var require_cjs = __commonJS({
|
|
|
98
98
|
var stringValue = Object.prototype.toString.call(value);
|
|
99
99
|
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
100
100
|
}
|
|
101
|
-
var canUseSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
101
|
+
var canUseSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = canUseSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
|
|
102
102
|
function isReactElement(value) {
|
|
103
103
|
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
104
104
|
}
|
|
@@ -166,7 +166,7 @@ var require_cjs = __commonJS({
|
|
|
166
166
|
var require_react_is_production_min = __commonJS({
|
|
167
167
|
"../../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
168
168
|
"use strict";
|
|
169
|
-
var b2 = typeof Symbol == "function" && Symbol.for, c2 = b2 ? Symbol.for("react.element") : 60103, d2 = b2 ? Symbol.for("react.portal") : 60106, e2 = b2 ? Symbol.for("react.fragment") : 60107, f2 = b2 ? Symbol.for("react.strict_mode") : 60108, g2 = b2 ? Symbol.for("react.profiler") : 60114, h2 = b2 ? Symbol.for("react.provider") : 60109, k2 = b2 ? Symbol.for("react.context") : 60110, l2 = b2 ? Symbol.for("react.async_mode") : 60111, m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111, n2 = b2 ? Symbol.for("react.forward_ref") : 60112, p2 = b2 ? Symbol.for("react.suspense") : 60113, q = b2 ? Symbol.for("react.suspense_list") : 60120, r2 = b2 ? Symbol.for("react.memo") : 60115, t2 = b2 ? Symbol.for("react.lazy") : 60116, v2 = b2 ? Symbol.for("react.block") : 60121, w2 = b2 ? Symbol.for("react.fundamental") : 60117, x2 = b2 ? Symbol.for("react.responder") : 60118, y2 = b2 ? Symbol.for("react.scope") : 60119;
|
|
169
|
+
var b2 = typeof Symbol == "function" && Symbol.for, c2 = b2 ? /* @__PURE__ */ Symbol.for("react.element") : 60103, d2 = b2 ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, e2 = b2 ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f2 = b2 ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, g2 = b2 ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, h2 = b2 ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, k2 = b2 ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l2 = b2 ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m2 = b2 ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, n2 = b2 ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p2 = b2 ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = b2 ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, r2 = b2 ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, t2 = b2 ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v2 = b2 ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w2 = b2 ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x2 = b2 ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, y2 = b2 ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
170
170
|
function z2(a2) {
|
|
171
171
|
if (typeof a2 == "object" && a2 !== null) {
|
|
172
172
|
var u2 = a2.$$typeof;
|
|
@@ -263,7 +263,7 @@ var require_react_is_development = __commonJS({
|
|
|
263
263
|
"use strict";
|
|
264
264
|
process.env.NODE_ENV !== "production" && (function() {
|
|
265
265
|
"use strict";
|
|
266
|
-
var hasSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103, REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106, REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107, REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108, REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114, REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109, REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110, REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111, REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111, REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112, REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113, REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120, REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115, REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116, REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121, REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117, REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118, REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
266
|
+
var hasSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103, REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110, REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121, REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
267
267
|
function isValidElementType(type) {
|
|
268
268
|
return typeof type == "string" || typeof type == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
269
269
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
@@ -2598,15 +2598,7 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
|
|
|
2598
2598
|
return str;
|
|
2599
2599
|
if (unit.indexOf("%") === 0) {
|
|
2600
2600
|
var element = void 0;
|
|
2601
|
-
|
|
2602
|
-
case "%p":
|
|
2603
|
-
element = popperOffsets;
|
|
2604
|
-
break;
|
|
2605
|
-
case "%":
|
|
2606
|
-
case "%r":
|
|
2607
|
-
default:
|
|
2608
|
-
element = referenceOffsets;
|
|
2609
|
-
}
|
|
2601
|
+
unit === "%p" ? element = popperOffsets : element = referenceOffsets;
|
|
2610
2602
|
var rect = getClientRect(element);
|
|
2611
2603
|
return rect[measurement] / 100 * value;
|
|
2612
2604
|
} else if (unit === "vh" || unit === "vw") {
|
|
@@ -4,7 +4,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __commonJS = (cb, mod) => function() {
|
|
7
|
-
|
|
7
|
+
try {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
} catch (e) {
|
|
10
|
+
throw mod = 0, e;
|
|
11
|
+
}
|
|
8
12
|
};
|
|
9
13
|
var __copyProps = (to, from, except, desc) => {
|
|
10
14
|
if (from && typeof from == "object" || typeof from == "function")
|
package/dist/index.js
CHANGED
package/dist/manager.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ADDON_CONTROLS_ID,
|
|
3
3
|
ADDON_ID
|
|
4
4
|
} from "./_browser-chunks/chunk-VFOIHBP2.js";
|
|
5
|
-
import "./_browser-chunks/chunk-
|
|
5
|
+
import "./_browser-chunks/chunk-UBBB7RW7.js";
|
|
6
6
|
|
|
7
7
|
// src/manager.tsx
|
|
8
8
|
import React, { Suspense, lazy } from "react";
|
|
9
9
|
import { createRoot } from "react-dom/client";
|
|
10
10
|
import { STORY_SPECIFIED } from "storybook/internal/core-events";
|
|
11
11
|
import { addons, internal_universalChecklistStore as checklistStore } from "storybook/manager-api";
|
|
12
|
-
var Onboarding = lazy(() => import("./_browser-chunks/Onboarding-
|
|
12
|
+
var Onboarding = lazy(() => import("./_browser-chunks/Onboarding-ISBUXTH6.js")), Survey = lazy(() => import("./_browser-chunks/Survey-ONUNS54C.js")), root = null, render = (node) => {
|
|
13
13
|
let container = document.getElementById("storybook-addon-onboarding");
|
|
14
14
|
container || (container = document.createElement("div"), container.id = "storybook-addon-onboarding", document.body.appendChild(container)), root = root ?? createRoot(container), root.render(React.createElement(Suspense, { fallback: React.createElement("div", null) }, node));
|
|
15
15
|
};
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_mt7gxdn0geg from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_mt7gxdn0geg from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_mt7gxdn0geg from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_mt7gxdn0geg.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_mt7gxdn0geg.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_mt7gxdn0geg.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ var require = CJS_COMPAT_NODE_MODULE_a4ud8ra4opf.createRequire(import.meta.url);
|
|
|
14
14
|
import { telemetry } from "storybook/internal/telemetry";
|
|
15
15
|
|
|
16
16
|
// package.json
|
|
17
|
-
var version = "10.4.
|
|
17
|
+
var version = "10.4.6";
|
|
18
18
|
|
|
19
19
|
// src/constants.ts
|
|
20
20
|
var ADDON_ID = "storybook/onboarding", ADDON_ONBOARDING_CHANNEL = `${ADDON_ID}/channel`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-onboarding",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.6",
|
|
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.
|
|
59
|
+
"storybook": "^10.4.6"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|