@epam/ai-dial-onboarding-tour 1.4.0-dev.91 → 1.4.0-dev.92

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.
@@ -1 +1 @@
1
- {"version":3,"file":"OnboardingHints.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingHints/OnboardingHints.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAItC,mIAAmI;AACnI,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA6CpD,CAAC"}
1
+ {"version":3,"file":"OnboardingHints.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingHints/OnboardingHints.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAItC,mIAAmI;AACnI,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA8CpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OnboardingTour.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTour.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAOL,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AAQf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAgBxE,kLAAkL;AAClL,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0PlD,CAAC"}
1
+ {"version":3,"file":"OnboardingTour.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTour.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAOL,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AAQf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAgBxE,kLAAkL;AAClL,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAgQlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOnboardingHints.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOnboardingHints/useOnboardingHints.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAMtC,iIAAiI;AACjI,eAAO,MAAM,kBAAkB,GAAI,yEAOhC,yBAAyB,KAAG,wBAyE9B,CAAC"}
1
+ {"version":3,"file":"useOnboardingHints.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOnboardingHints/useOnboardingHints.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAMtC,iIAAiI;AACjI,eAAO,MAAM,kBAAkB,GAAI,yEAOhC,yBAAyB,KAAG,wBAoG9B,CAAC"}
package/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { buildCssVars as e } from "@epam/ai-dial-chat-shared";
2
2
  import { CloseButton as t, DIAL_ICON_SIZE as n, DIAL_KIT_ICON_STROKE as r, ElementSize as i, GhostButton as a, NeutralButton as o, PrimaryButton as s, mergeClasses as c } from "@epam/ai-dial-ui-kit";
3
- import { FloatingArrow as l, FloatingFocusManager as u, FloatingPortal as d, arrow as f, autoUpdate as p, flip as m, hide as h, offset as g, shift as _, useDismiss as ee, useFloating as v, useInteractions as te, useMergeRefs as y } from "@floating-ui/react";
4
- import { createElement as b, forwardRef as ne, useCallback as x, useEffect as S, useId as C, useLayoutEffect as w, useMemo as T, useRef as E, useState as D } from "react";
5
- import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
3
+ import { FloatingArrow as l, FloatingFocusManager as u, FloatingPortal as d, arrow as f, autoUpdate as p, flip as m, hide as h, offset as g, shift as _, useDismiss as ee, useFloating as v, useInteractions as y, useMergeRefs as b } from "@floating-ui/react";
4
+ import { createElement as x, forwardRef as S, useCallback as C, useEffect as w, useId as T, useLayoutEffect as E, useMemo as D, useRef as O, useState as k } from "react";
5
+ import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
6
6
  //#region src/constants/layout.ts
7
- var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
7
+ var N = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", te = {
8
8
  root: "dial-onboarding-tour-root",
9
9
  card: "dial-onboarding-tour-card"
10
- }, N = {
10
+ }, P = {
11
11
  root: "dial-onboarding-anchor-map-root",
12
12
  outline: "dial-onboarding-anchor-map-outline",
13
13
  tag: "dial-onboarding-anchor-map-tag",
14
14
  panel: "dial-onboarding-anchor-map-panel"
15
- }, P = (e) => (e.target instanceof Element ? e.target : e.target.parentElement)?.closest(j) != null, re = (e) => {
16
- let [t, n] = D(null);
17
- return w(() => {
15
+ }, ne = (e) => (e.target instanceof Element ? e.target : e.target.parentElement)?.closest(N) != null, re = (e) => {
16
+ let [t, n] = k(null);
17
+ return E(() => {
18
18
  if (!e) {
19
19
  n(null);
20
20
  return;
@@ -26,7 +26,7 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
26
26
  r = 0, t();
27
27
  }, 250));
28
28
  }, a = typeof MutationObserver > "u" ? null : new MutationObserver((e) => {
29
- e.some((e) => !P(e)) && i();
29
+ e.some((e) => !ne(e)) && i();
30
30
  });
31
31
  return a?.observe(document.body, {
32
32
  childList: !0,
@@ -95,36 +95,36 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
95
95
  title: "_title_1bnm0_11",
96
96
  description: "_description_1bnm0_15"
97
97
  }, ce = ({ ref: e, heading: n, description: r, counter: a, closeLabel: o, onClose: s, footer: l, arrow: u, counterClassName: d, titleClassName: f, descriptionClassName: p, className: m, ...h }) => {
98
- let g = C(), _ = C();
99
- return /* @__PURE__ */ A("div", {
98
+ let g = T(), _ = T();
99
+ return /* @__PURE__ */ M("div", {
100
100
  ...h,
101
101
  ref: e,
102
102
  role: "dialog",
103
103
  "aria-labelledby": g,
104
104
  "aria-describedby": r ? _ : void 0,
105
105
  tabIndex: -1,
106
- className: c(M.card, V.card, "flex flex-col gap-3 rounded-lg p-4 outline-none", m),
106
+ className: c(te.card, V.card, "flex flex-col gap-3 rounded-lg p-4 outline-none", m),
107
107
  children: [
108
108
  u,
109
- /* @__PURE__ */ A("div", {
109
+ /* @__PURE__ */ M("div", {
110
110
  className: "flex items-start gap-2",
111
- children: [/* @__PURE__ */ A("div", {
111
+ children: [/* @__PURE__ */ M("div", {
112
112
  className: "flex min-w-0 flex-1 flex-col gap-1",
113
- children: [a && /* @__PURE__ */ k("span", {
113
+ children: [a && /* @__PURE__ */ j("span", {
114
114
  className: c(V.counter, d),
115
115
  children: a
116
- }), /* @__PURE__ */ k("h2", {
116
+ }), /* @__PURE__ */ j("h2", {
117
117
  id: g,
118
118
  className: c(V.title, f),
119
119
  children: n
120
120
  })]
121
- }), s && o && /* @__PURE__ */ k(t, {
121
+ }), s && o && /* @__PURE__ */ j(t, {
122
122
  ariaLabel: o,
123
123
  size: i.Small,
124
124
  onClose: s
125
125
  })]
126
126
  }),
127
- r && /* @__PURE__ */ k("p", {
127
+ r && /* @__PURE__ */ j("p", {
128
128
  id: _,
129
129
  className: c(V.description, p),
130
130
  children: r
@@ -136,66 +136,68 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
136
136
  backdrop: "_backdrop_by4yl_1",
137
137
  cutout: "_cutout_by4yl_6",
138
138
  arrow: "_arrow_by4yl_11"
139
- }, le = (e, t) => `Step ${e} of ${t}`, U = ({ steps: t, onFinish: n, isMobile: r = !1, dir: i, labels: m, colors: h, counterClassName: g = "dial-tiny-text", titleClassName: _ = "dial-body-semi-text", descriptionClassName: b = "dial-small-paragraph-text", className: ne }) => {
140
- let [C, O] = D(0), [j, N] = D(t), P = E(null), L = E(null);
141
- j !== t && (N(t), O(0));
142
- let R = t[C] ?? null, z = R != null, B = re(R?.getTarget), V = E(null), U = T(() => B ? se(B, 6) : void 0, [B]);
143
- w(() => {
144
- z && (L.current = document.activeElement);
145
- }, [z]);
146
- let W = E(/* @__PURE__ */ new Set());
147
- w(() => {
139
+ }, le = (e, t) => `Step ${e} of ${t}`, U = ({ steps: t, onFinish: n, onStepComplete: r, isMobile: i = !1, dir: m, labels: h, colors: g, counterClassName: _ = "dial-tiny-text", titleClassName: x = "dial-body-semi-text", descriptionClassName: S = "dial-small-paragraph-text", className: T }) => {
140
+ let [A, N] = k(0), [P, ne] = k(t), L = O(null), R = O(null);
141
+ P !== t && (ne(t), N(0));
142
+ let z = t[A] ?? null, B = z != null, V = re(z?.getTarget), U = O(null), ue = D(() => V ? se(V, 6) : void 0, [V]);
143
+ E(() => {
144
+ B && (R.current = document.activeElement);
145
+ }, [B]);
146
+ let W = O(/* @__PURE__ */ new Set());
147
+ E(() => {
148
148
  W.current = /* @__PURE__ */ new Set();
149
- }, [t]), w(() => {
150
- R && B && R.getTarget() && W.current.add(R.id);
151
- }, [R, B]);
152
- let G = x((e) => {
149
+ }, [t]), E(() => {
150
+ z && V && z.getTarget() && W.current.add(z.id);
151
+ }, [z, V]);
152
+ let G = C((e) => {
153
153
  n([...W.current], e);
154
- }, [n]), K = x(() => G(F.Done), [G]), q = x(() => G(F.Dismissed), [G]), { refs: J, floatingStyles: ue, context: Y, middlewareData: de, isPositioned: fe } = v({
155
- open: z,
154
+ }, [n]), K = C(() => G(F.Done), [G]), q = C(() => G(F.Dismissed), [G]), { refs: de, floatingStyles: J, context: Y, middlewareData: fe, isPositioned: pe } = v({
155
+ open: B,
156
156
  onOpenChange: (e) => {
157
157
  e || q();
158
158
  },
159
- elements: { reference: B },
159
+ elements: { reference: V },
160
160
  strategy: "fixed",
161
161
  placement: "bottom-start",
162
162
  middleware: [
163
163
  ...oe(8),
164
164
  f({
165
- element: V,
165
+ element: U,
166
166
  padding: 12
167
167
  }),
168
168
  ae()
169
169
  ],
170
170
  whileElementsMounted: p
171
- }), pe = ee(Y, { outsidePress: !1 }), { getFloatingProps: me } = te([pe]), he = y([J.setFloating, P]);
172
- w(() => {
173
- R && !R.getTarget() && (C < t.length - 1 ? O(C + 1) : K());
171
+ }), me = ee(Y, { outsidePress: !1 }), { getFloatingProps: he } = y([me]), X = b([de.setFloating, L]);
172
+ E(() => {
173
+ z && !z.getTarget() && (A < t.length - 1 ? N(A + 1) : K());
174
174
  }, [
175
- R,
176
- C,
175
+ z,
176
+ A,
177
177
  t.length,
178
178
  K
179
- ]), w(() => {
180
- B?.scrollIntoView?.({
179
+ ]), E(() => {
180
+ V?.scrollIntoView?.({
181
181
  block: "nearest",
182
182
  inline: "nearest"
183
183
  });
184
- }, [B]), S(() => {
185
- R && P.current?.focus();
186
- }, [R]);
187
- let X = x(() => O((e) => e - 1), []), Z = x(() => O((e) => e + 1), []);
188
- if (!R) return null;
189
- let ge = t.length, _e = C === ge - 1, ve = m?.stepCounter ?? le, Q = r || !B, $ = B ? de[I] : void 0, ye = $ != null && $.top + $.height / 2 > window.innerHeight / 2, be = e({
190
- ...ie(h),
191
- "--ot-backdrop": h?.backdrop,
192
- "--ot-counter-text": h?.counterText
184
+ }, [V]), w(() => {
185
+ z && L.current?.focus();
186
+ }, [z]);
187
+ let Z = C(() => N((e) => e - 1), []), ge = C(() => {
188
+ z && r?.(z.id), N((e) => e + 1);
189
+ }, [z, r]);
190
+ if (!z) return null;
191
+ let _e = t.length, ve = A === _e - 1, ye = h?.stepCounter ?? le, Q = i || !V, $ = V ? fe[I] : void 0, be = $ != null && $.top + $.height / 2 > window.innerHeight / 2, xe = e({
192
+ ...ie(g),
193
+ "--ot-backdrop": g?.backdrop,
194
+ "--ot-counter-text": g?.counterText
193
195
  });
194
- return /* @__PURE__ */ k(d, { children: /* @__PURE__ */ A("div", {
195
- dir: i,
196
- style: be,
197
- className: c(M.root, "pointer-events-none fixed inset-0 z-60", ne),
198
- children: [$ ? /* @__PURE__ */ k("div", {
196
+ return /* @__PURE__ */ j(d, { children: /* @__PURE__ */ M("div", {
197
+ dir: m,
198
+ style: xe,
199
+ className: c(te.root, "pointer-events-none fixed inset-0 z-60", T),
200
+ children: [$ ? /* @__PURE__ */ j("div", {
199
201
  "aria-hidden": !0,
200
202
  className: c(H.cutout, "absolute"),
201
203
  style: {
@@ -203,57 +205,57 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
203
205
  left: $.left - 6,
204
206
  width: $.width + 12,
205
207
  height: $.height + 12,
206
- borderRadius: U
208
+ borderRadius: ue
207
209
  }
208
- }) : /* @__PURE__ */ k("div", {
210
+ }) : /* @__PURE__ */ j("div", {
209
211
  "aria-hidden": !0,
210
212
  className: c(H.backdrop, "absolute inset-0")
211
- }), /* @__PURE__ */ k(u, {
213
+ }), /* @__PURE__ */ j(u, {
212
214
  context: Y,
213
215
  modal: !1,
214
216
  closeOnFocusOut: !1,
215
- initialFocus: P,
216
- returnFocus: L,
217
- children: /* @__PURE__ */ k(ce, {
218
- ...me(),
219
- ref: he,
220
- heading: R.title,
221
- description: R.description,
222
- counter: ve(C + 1, ge),
223
- closeLabel: m?.close ?? "Close tour",
217
+ initialFocus: L,
218
+ returnFocus: R,
219
+ children: /* @__PURE__ */ j(ce, {
220
+ ...he(),
221
+ ref: X,
222
+ heading: z.title,
223
+ description: z.description,
224
+ counter: ye(A + 1, _e),
225
+ closeLabel: h?.close ?? "Close tour",
224
226
  onClose: q,
225
- counterClassName: g,
226
- titleClassName: _,
227
- descriptionClassName: b,
228
- className: c("pointer-events-auto", Q && ye && "fixed inset-x-4 top-4", Q && !ye && "fixed inset-x-4 bottom-4", !Q && "w-90 max-w-[calc(100vw-32px)]", !Q && !fe && "invisible"),
229
- style: Q ? void 0 : ue,
230
- arrow: Q ? void 0 : /* @__PURE__ */ k(l, {
231
- ref: V,
227
+ counterClassName: _,
228
+ titleClassName: x,
229
+ descriptionClassName: S,
230
+ className: c("pointer-events-auto", Q && be && "fixed inset-x-4 top-4", Q && !be && "fixed inset-x-4 bottom-4", !Q && "w-90 max-w-[calc(100vw-32px)]", !Q && !pe && "invisible"),
231
+ style: Q ? void 0 : J,
232
+ arrow: Q ? void 0 : /* @__PURE__ */ j(l, {
233
+ ref: U,
232
234
  context: Y,
233
235
  width: 16,
234
236
  height: 8,
235
237
  className: H.arrow
236
238
  }),
237
- footer: /* @__PURE__ */ A("div", {
239
+ footer: /* @__PURE__ */ M("div", {
238
240
  className: "flex items-center justify-between gap-2",
239
- children: [_e ? /* @__PURE__ */ k("span", {}) : /* @__PURE__ */ k(a, {
240
- label: m?.skip ?? "Skip tour",
241
+ children: [ve ? /* @__PURE__ */ j("span", {}) : /* @__PURE__ */ j(a, {
242
+ label: h?.skip ?? "Skip tour",
241
243
  onClick: q
242
- }), /* @__PURE__ */ A("div", {
244
+ }), /* @__PURE__ */ M("div", {
243
245
  className: "flex items-center gap-2",
244
- children: [C > 0 && /* @__PURE__ */ k(o, {
245
- label: m?.back ?? "Back",
246
- onClick: X
247
- }), /* @__PURE__ */ k(s, {
248
- label: _e ? m?.done ?? "Done" : m?.next ?? "Next",
249
- onClick: _e ? K : Z
246
+ children: [A > 0 && /* @__PURE__ */ j(o, {
247
+ label: h?.back ?? "Back",
248
+ onClick: Z
249
+ }), /* @__PURE__ */ j(s, {
250
+ label: ve ? h?.done ?? "Done" : h?.next ?? "Next",
251
+ onClick: ve ? K : ge
250
252
  })]
251
253
  })]
252
254
  })
253
255
  })
254
256
  })]
255
257
  }) });
256
- }, W = {
258
+ }, ue = {
257
259
  outline: {
258
260
  xmlns: "http://www.w3.org/2000/svg",
259
261
  width: 24,
@@ -273,10 +275,10 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
273
275
  fill: "currentColor",
274
276
  stroke: "none"
275
277
  }
276
- }, G = ((e, t, n, r) => {
277
- let i = ne(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => b("svg", {
278
+ }, W = ((e, t, n, r) => {
279
+ let i = S(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => x("svg", {
278
280
  ref: u,
279
- ...W[e],
281
+ ...ue[e],
280
282
  width: i,
281
283
  height: i,
282
284
  className: [
@@ -288,20 +290,20 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
288
290
  stroke: n,
289
291
  ...l
290
292
  }, [
291
- o && b("title", { key: "svg-title" }, o),
292
- ...r.map(([e, t]) => b(e, t)),
293
+ o && x("title", { key: "svg-title" }, o),
294
+ ...r.map(([e, t]) => x(e, t)),
293
295
  ...Array.isArray(c) ? c : [c]
294
296
  ]));
295
297
  return i.displayName = `${n}`, i;
296
298
  })("outline", "chevron-down", "ChevronDown", [["path", {
297
299
  d: "M6 9l6 6l6 -6",
298
300
  key: "svg-0"
299
- }]]), K = {
301
+ }]]), G = {
300
302
  outline: "_outline_ny19w_1",
301
303
  tag: "_tag_ny19w_5"
302
- }, q = ({ anchor: e, onAvailabilityChange: t, tagClassName: n }) => {
304
+ }, K = ({ anchor: e, onAvailabilityChange: t, tagClassName: n }) => {
303
305
  let r = re(e.getTarget), i = r != null;
304
- S(() => {
306
+ w(() => {
305
307
  t(e.id, i);
306
308
  }, [
307
309
  e.id,
@@ -318,12 +320,12 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
318
320
  R()
319
321
  ],
320
322
  whileElementsMounted: (e, t, n) => p(e, t, n, { animationFrame: !0 })
321
- }), u = T(() => r ? se(r, 0) : void 0, [r]);
323
+ }), u = D(() => r ? se(r, 0) : void 0, [r]);
322
324
  if (!r) return null;
323
325
  let d = s[I], f = !l || s.hide?.referenceHidden || s.occlusion?.isCovered;
324
- return /* @__PURE__ */ A(O, { children: [d && /* @__PURE__ */ k("div", {
326
+ return /* @__PURE__ */ M(A, { children: [d && /* @__PURE__ */ j("div", {
325
327
  "aria-hidden": !0,
326
- className: c(N.outline, K.outline, "fixed border-2 border-dashed", f && "invisible"),
328
+ className: c(P.outline, G.outline, "fixed border-2 border-dashed", f && "invisible"),
327
329
  style: {
328
330
  top: d.top,
329
331
  left: d.left,
@@ -331,22 +333,22 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
331
333
  height: d.height,
332
334
  borderRadius: u
333
335
  }
334
- }), /* @__PURE__ */ k("span", {
336
+ }), /* @__PURE__ */ j("span", {
335
337
  ref: a.setFloating,
336
338
  style: o,
337
- className: c(N.tag, K.tag, "rounded px-1 whitespace-nowrap", n, f && "invisible"),
339
+ className: c(P.tag, G.tag, "rounded px-1 whitespace-nowrap", n, f && "invisible"),
338
340
  children: e.id
339
341
  })] });
340
- }, J = {
342
+ }, q = {
341
343
  panel: "_panel_puhv9_1",
342
344
  summary: "_summary_puhv9_7",
343
345
  item: "_item_puhv9_11"
344
- }, ue = (e, t) => `${e} of ${t} anchors on this page`, Y = ({ anchors: o, onClose: s, dir: l, labels: u, colors: f, tagClassName: p = "dial-tiny-semi-text", summaryClassName: m = "dial-small-semi-text", itemClassName: h = "dial-tiny-text", className: g }) => {
345
- let [_, ee] = D(() => /* @__PURE__ */ new Set()), v = C(), te = C(), [y, b] = D(!1), ne = x(() => b((e) => !e), []), S = x((e, t) => ee((n) => {
346
+ }, de = (e, t) => `${e} of ${t} anchors on this page`, J = ({ anchors: o, onClose: s, dir: l, labels: u, colors: f, tagClassName: p = "dial-tiny-semi-text", summaryClassName: m = "dial-small-semi-text", itemClassName: h = "dial-tiny-text", className: g }) => {
347
+ let [_, ee] = k(() => /* @__PURE__ */ new Set()), v = T(), y = T(), [b, x] = k(!1), S = C(() => x((e) => !e), []), w = C((e, t) => ee((n) => {
346
348
  if (n.has(e) === t) return n;
347
349
  let r = new Set(n);
348
350
  return t ? r.add(e) : r.delete(e), r;
349
- }), []), w = o.filter(({ id: e }) => !_.has(e)), T = o.length - w.length, E = (u?.summary ?? ue)(T, o.length), j = e({
351
+ }), []), E = o.filter(({ id: e }) => !_.has(e)), D = o.length - E.length, O = (u?.summary ?? de)(D, o.length), N = e({
350
352
  "--oam-outline": f?.outline,
351
353
  "--oam-tag-bg": f?.tagBackground,
352
354
  "--oam-tag-text": f?.tagText,
@@ -356,55 +358,55 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
356
358
  "--oam-panel-text": f?.panelText,
357
359
  "--oam-panel-muted-text": f?.panelMutedText
358
360
  });
359
- return /* @__PURE__ */ k(d, { children: /* @__PURE__ */ A("div", {
361
+ return /* @__PURE__ */ j(d, { children: /* @__PURE__ */ M("div", {
360
362
  dir: l,
361
- style: j,
362
- className: c(N.root, "pointer-events-none fixed inset-0 z-70", g),
363
- children: [o.map((e) => /* @__PURE__ */ k(q, {
363
+ style: N,
364
+ className: c(P.root, "pointer-events-none fixed inset-0 z-70", g),
365
+ children: [o.map((e) => /* @__PURE__ */ j(K, {
364
366
  anchor: e,
365
- onAvailabilityChange: S,
367
+ onAvailabilityChange: w,
366
368
  tagClassName: p
367
- }, e.id)), /* @__PURE__ */ A("section", {
369
+ }, e.id)), /* @__PURE__ */ M("section", {
368
370
  "aria-labelledby": v,
369
- className: c(N.panel, J.panel, "pointer-events-auto fixed inset-e-4 bottom-4 flex max-h-[50vh] w-72 max-w-[calc(100vw-32px)] flex-col gap-2 overflow-auto rounded-lg border p-3"),
370
- children: [/* @__PURE__ */ A("div", {
371
+ className: c(P.panel, q.panel, "pointer-events-auto fixed inset-e-4 bottom-4 flex max-h-[50vh] w-72 max-w-[calc(100vw-32px)] flex-col gap-2 overflow-auto rounded-lg border p-3"),
372
+ children: [/* @__PURE__ */ M("div", {
371
373
  className: "flex items-start justify-between gap-2",
372
- children: [/* @__PURE__ */ k("h2", {
374
+ children: [/* @__PURE__ */ j("h2", {
373
375
  id: v,
374
- className: c(J.summary, m),
375
- children: E
376
- }), /* @__PURE__ */ k(t, {
376
+ className: c(q.summary, m),
377
+ children: O
378
+ }), /* @__PURE__ */ j(t, {
377
379
  ariaLabel: u?.close ?? "Close anchor view",
378
380
  size: i.Standard,
379
381
  onClose: s
380
382
  })]
381
- }), w.length > 0 ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("h3", { children: /* @__PURE__ */ k(a, {
382
- label: `${u?.missingHeading ?? "Not on this page"} (${w.length})`,
383
- "aria-expanded": y,
384
- "aria-controls": te,
385
- onClick: ne,
386
- iconAfter: /* @__PURE__ */ k(G, {
383
+ }), E.length > 0 ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("h3", { children: /* @__PURE__ */ j(a, {
384
+ label: `${u?.missingHeading ?? "Not on this page"} (${E.length})`,
385
+ "aria-expanded": b,
386
+ "aria-controls": y,
387
+ onClick: S,
388
+ iconAfter: /* @__PURE__ */ j(W, {
387
389
  size: n.SM,
388
390
  stroke: r,
389
- className: c("transition-transform", y && "rotate-180"),
391
+ className: c("transition-transform", b && "rotate-180"),
390
392
  "aria-hidden": !0
391
393
  }),
392
- textClassName: c(J.item, h)
393
- }) }), /* @__PURE__ */ k("ul", {
394
- id: te,
395
- hidden: !y,
396
- className: c(y ? "flex" : "hidden", "flex-col gap-1"),
397
- children: w.map(({ id: e }) => /* @__PURE__ */ k("li", {
398
- className: c(J.item, h),
399
- children: /* @__PURE__ */ k("code", { children: e })
394
+ textClassName: c(q.item, h)
395
+ }) }), /* @__PURE__ */ j("ul", {
396
+ id: y,
397
+ hidden: !b,
398
+ className: c(b ? "flex" : "hidden", "flex-col gap-1"),
399
+ children: E.map(({ id: e }) => /* @__PURE__ */ j("li", {
400
+ className: c(q.item, h),
401
+ children: /* @__PURE__ */ j("code", { children: e })
400
402
  }, e))
401
- })] }) : /* @__PURE__ */ k("p", {
402
- className: c(J.item, h),
403
+ })] }) : /* @__PURE__ */ j("p", {
404
+ className: c(q.item, h),
403
405
  children: u?.noneMissing ?? "Every anchor is on this page"
404
406
  })]
405
407
  })]
406
408
  }) });
407
- }, de = 800, fe = 500, pe = 20, me = /* @__PURE__ */ new Set([
409
+ }, Y = 800, fe = 500, pe = 20, me = /* @__PURE__ */ new Set([
408
410
  "button",
409
411
  "checkbox",
410
412
  "color",
@@ -415,7 +417,14 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
415
417
  "reset",
416
418
  "submit"
417
419
  ]), he = (e) => e instanceof HTMLElement ? e instanceof HTMLInputElement ? !me.has(e.type) : e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement || e.isContentEditable : !1, X = [], Z = ({ hints: e, seenIds: t, onSeenIdsChange: n, resolveTarget: r, isEnabled: i, pageKey: a }) => {
418
- let [o, s] = D(X), c = T(() => e.filter((e) => !t.includes(e.id)).map((e) => ({
420
+ let [o, s] = k(X), c = O(t);
421
+ w(() => {
422
+ c.current = t;
423
+ }, [t]);
424
+ let l = C((e) => {
425
+ let t = [...c.current.filter((t) => !e.includes(t)), ...e];
426
+ c.current = t, n(t);
427
+ }, [n]), u = D(() => e.filter((e) => !t.includes(e.id)).map((e) => ({
419
428
  id: e.id,
420
429
  title: e.title,
421
430
  description: e.description ?? void 0,
@@ -425,57 +434,58 @@ var j = ".dial-onboarding-tour-root, .dial-onboarding-anchor-map-root", M = {
425
434
  t,
426
435
  r
427
436
  ]);
428
- S(() => {
437
+ w(() => {
429
438
  s(X);
430
439
  }, [a]);
431
- let l = o.length > 0;
432
- return S(() => {
433
- if (!i || l || c.length === 0) return;
440
+ let d = o.length > 0;
441
+ w(() => {
442
+ if (!i || d || u.length === 0) return;
434
443
  let e = 0, t = 0, n = () => {
435
444
  if (he(document.activeElement)) {
436
445
  t = window.setTimeout(n, 500);
437
446
  return;
438
447
  }
439
- let r = c.filter((e) => e.getTarget() != null);
448
+ let r = u.filter((e) => e.getTarget() != null);
440
449
  r.length > 0 ? s(r) : (e += 1, e < 20 && (t = window.setTimeout(n, 500)));
441
450
  };
442
451
  return t = window.setTimeout(n, 800), () => window.clearTimeout(t);
443
452
  }, [
444
453
  i,
445
- l,
446
- c,
454
+ d,
455
+ u,
447
456
  a
448
- ]), {
457
+ ]);
458
+ let f = C((e) => {
459
+ c.current.includes(e) || l([e]);
460
+ }, [l]);
461
+ return {
449
462
  steps: o,
450
- onFinish: x((r, i) => {
451
- let a = i === F.Dismissed ? [.../* @__PURE__ */ new Set([...r, ...e.map(({ id: e }) => e)])] : r;
452
- n([...t.filter((e) => !a.includes(e)), ...a]), s(X);
453
- }, [
454
- e,
455
- t,
456
- n
457
- ])
463
+ onFinish: C((t, n) => {
464
+ l(n === F.Dismissed ? [.../* @__PURE__ */ new Set([...t, ...e.map(({ id: e }) => e)])] : t), s(X);
465
+ }, [e, l]),
466
+ onStepComplete: f
458
467
  };
459
468
  }, ge = ({ anchorTargets: e, isAnchorView: t = !1, onCloseAnchorView: n, isMobile: r = !1, dir: i, labels: a, isEnabled: o, ...s }) => {
460
- let { resolveTarget: c } = s, { steps: l, onFinish: u } = Z({
469
+ let { resolveTarget: c } = s, { steps: l, onFinish: u, onStepComplete: d } = Z({
461
470
  ...s,
462
471
  isEnabled: o && !t
463
- }), d = T(() => e.map((e) => ({
472
+ }), f = D(() => e.map((e) => ({
464
473
  id: e,
465
474
  getTarget: () => c(e)
466
475
  })), [e, c]);
467
- return t ? /* @__PURE__ */ k(Y, {
468
- anchors: d,
476
+ return t ? /* @__PURE__ */ j(J, {
477
+ anchors: f,
469
478
  onClose: n ?? (() => void 0),
470
479
  dir: i,
471
480
  labels: a?.anchorMap
472
- }) : /* @__PURE__ */ k(U, {
481
+ }) : /* @__PURE__ */ j(U, {
473
482
  steps: l,
474
483
  onFinish: u,
484
+ onStepComplete: d,
475
485
  isMobile: r,
476
486
  dir: i,
477
487
  labels: a?.tour
478
488
  });
479
489
  };
480
490
  //#endregion
481
- export { N as ONBOARDING_ANCHOR_MAP_CLASS, pe as ONBOARDING_RETRY_ATTEMPTS, fe as ONBOARDING_RETRY_INTERVAL_MS, de as ONBOARDING_START_DELAY_MS, M as ONBOARDING_TOUR_CLASS, Y as OnboardingAnchorMap, ge as OnboardingHints, U as OnboardingTour, F as OnboardingTourEndReason, Z as useOnboardingHints };
491
+ export { P as ONBOARDING_ANCHOR_MAP_CLASS, pe as ONBOARDING_RETRY_ATTEMPTS, fe as ONBOARDING_RETRY_INTERVAL_MS, Y as ONBOARDING_START_DELAY_MS, te as ONBOARDING_TOUR_CLASS, J as OnboardingAnchorMap, ge as OnboardingHints, U as OnboardingTour, F as OnboardingTourEndReason, Z as useOnboardingHints };
@@ -49,6 +49,8 @@ export interface OnboardingTourProps {
49
49
  steps: OnboardingTourStep[];
50
50
  /** Called with the ids of the steps that were on screen when the tour ends, and why it ended; the host clears `steps` in response. */
51
51
  onFinish: (shownStepIds: string[], reason: OnboardingTourEndReason) => void;
52
+ /** Called with a step's id when the user moves past it with Next, so the host can keep the progress of a tour that is left unfinished. */
53
+ onStepComplete?: (stepId: string) => void;
52
54
  /** When `true`, the card is a bottom sheet instead of a popover next to the target. Defaults to `false`. */
53
55
  isMobile?: boolean;
54
56
  /** Text direction of the overlay, used to align the card with its target. Defaults to the direction inherited from the document. */
@@ -141,7 +143,7 @@ export interface UseOnboardingHintsOptions {
141
143
  hints: OnboardingHint[];
142
144
  /** Ids of the hints this user has already seen. */
143
145
  seenIds: string[];
144
- /** Called with the new list of seen ids once a tour ends; the host persists it. */
146
+ /** Called with the new list of seen ids each time the user moves past a hint with Next and once a tour ends; the host persists it. */
145
147
  onSeenIdsChange: (seenIds: string[]) => void;
146
148
  /** Returns the on-screen element of a target, or `null` when the page does not render it. */
147
149
  resolveTarget: (target: string) => HTMLElement | null;
@@ -156,6 +158,8 @@ export interface UseOnboardingHintsResult {
156
158
  steps: OnboardingTourStep[];
157
159
  /** Pass to `OnboardingTour` as `onFinish`: marks the shown ids seen (every hint's id when dismissed) and ends the tour. */
158
160
  onFinish: (shownIds: string[], reason: OnboardingTourEndReason) => void;
161
+ /** Pass to `OnboardingTour` as `onStepComplete`: marks a hint seen as soon as the user moves past it. */
162
+ onStepComplete: (stepId: string) => void;
159
163
  }
160
164
  /** User-visible strings of the `OnboardingHints` component. */
161
165
  export interface OnboardingHintsLabels {
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-tour.d.ts","sourceRoot":"","sources":["../../src/models/onboarding-tour.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAEnF,yEAAyE;AACzE,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0HAA0H;IAC1H,SAAS,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;CACrC;AAED,mDAAmD;AACnD,MAAM,WAAW,oBAAoB;IACnC,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,8DAA8D;AAC9D,MAAM,WAAW,oBAAoB;IACnC,yGAAyG;IACzG,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACzD,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,gFAAgF;IAChF,QAAQ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MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,6FAA6F;IAC7F,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,WAAW,GAAG,IAAI,CAAC;IACtD,oFAAoF;IACpF,SAAS,EAAE,OAAO,CAAC;IACnB,mGAAmG;IACnG,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,4CAA4C;AAC5C,MAAM,WAAW,wBAAwB;IACvC,mEAAmE;IACnE,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,2HAA2H;IAC3H,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACxE,yGAAyG;IACzG,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED,+DAA+D;AAC/D,MAAM,WAAW,qBAAqB;IACpC,iFAAiF;IACjF,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,uFAAuF;IACvF,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACvC;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAqB,SAAQ,yBAAyB;IACrE,oFAAoF;IACpF,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,oGAAoG;IACpG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gGAAgG;IAChG,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4GAA4G;IAC5G,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACpB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-onboarding-tour",
3
3
  "description": "Onboarding hints over any page, shown as hint cards one after another next to the elements they explain",
4
- "version": "1.4.0-dev.91",
4
+ "version": "1.4.0-dev.92",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -21,7 +21,7 @@
21
21
  "@tabler/icons-react": "^3.50.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "@epam/ai-dial-chat-shared": "1.4.0-dev.91",
24
+ "@epam/ai-dial-chat-shared": "1.4.0-dev.92",
25
25
  "@epam/ai-dial-ui-kit": "^0.16.0",
26
26
  "react": "^19.2.8"
27
27
  },