impact-nova 2.5.5 → 2.5.7

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.
Files changed (93) hide show
  1. package/dist/components/data-display/calendar/calendar-apply-validation.js +45 -33
  2. package/dist/components/data-display/calendar/calendar-day-picker-components.js +62 -54
  3. package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +1 -1
  4. package/dist/components/data-display/calendar/calendar-day-picker-view.js +88 -85
  5. package/dist/components/data-display/calendar/calendar-week-utils.js +23 -22
  6. package/dist/components/data-display/calendar/use-calendar-state.d.ts +1 -1
  7. package/dist/components/data-display/calendar/use-calendar-state.js +47 -47
  8. package/dist/components/flows/guidance/guidance-error-boundary.js +22 -14
  9. package/dist/components/flows/guidance/guidance-layer.js +34 -32
  10. package/dist/components/flows/guidance/help-center/assets/whats-new-guide-icon.svg.js +4 -0
  11. package/dist/components/flows/guidance/help-center/filter-help-center-guides.js +10 -7
  12. package/dist/components/flows/guidance/help-center/guide-catalog-section.d.ts +7 -0
  13. package/dist/components/flows/guidance/help-center/guide-catalog-section.js +24 -0
  14. package/dist/components/flows/guidance/help-center/guide-catalog-utils.d.ts +3 -0
  15. package/dist/components/flows/guidance/help-center/guide-catalog-utils.js +19 -0
  16. package/dist/components/flows/guidance/help-center/guide-catalog.d.ts +1 -1
  17. package/dist/components/flows/guidance/help-center/guide-catalog.js +89 -79
  18. package/dist/components/flows/guidance/help-center/help-center-guide-labels.d.ts +6 -0
  19. package/dist/components/flows/guidance/help-center/help-center-guide-labels.js +33 -0
  20. package/dist/components/flows/guidance/help-center/help-center-guide-row.d.ts +12 -0
  21. package/dist/components/flows/guidance/help-center/help-center-guide-row.js +57 -0
  22. package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.d.ts +9 -0
  23. package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.js +114 -0
  24. package/dist/components/flows/guidance/help-center/help-center-header.d.ts +1 -1
  25. package/dist/components/flows/guidance/help-center/help-center-header.js +20 -16
  26. package/dist/components/flows/guidance/help-center/help-center.constants.d.ts +1 -1
  27. package/dist/components/flows/guidance/help-center/help-center.constants.js +1 -1
  28. package/dist/components/flows/guidance/help-center/help-center.d.ts +3 -1
  29. package/dist/components/flows/guidance/help-center/help-center.js +74 -51
  30. package/dist/components/flows/guidance/help-center/help-center.types.d.ts +9 -1
  31. package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.d.ts +4 -0
  32. package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.js +18 -0
  33. package/dist/components/flows/guidance/help-center.d.ts +4 -2
  34. package/dist/components/flows/guidance/help-center.js +23 -14
  35. package/dist/components/flows/guidance/hooks/useGuidanceOverlayGeometry.js +19 -17
  36. package/dist/components/flows/guidance/index.d.ts +1 -1
  37. package/dist/components/flows/guidance/renderers/announcement-renderer.d.ts +1 -1
  38. package/dist/components/flows/guidance/renderers/announcement-renderer.js +20 -12
  39. package/dist/components/flows/guidance/renderers/guidance-card-shared.d.ts +9 -11
  40. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +124 -177
  41. package/dist/components/flows/guidance/renderers/guidance-renderer-shared.d.ts +1 -1
  42. package/dist/components/flows/guidance/renderers/guidance-renderer-shared.js +57 -72
  43. package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +23 -23
  44. package/dist/components/flows/wizard/wizard.js +41 -38
  45. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +35 -53
  46. package/dist/form-engine/field-dependency-graph.d.ts +1 -4
  47. package/dist/form-engine/field-dependency-graph.js +53 -57
  48. package/dist/form-engine/field-groups.d.ts +15 -0
  49. package/dist/form-engine/field-groups.js +60 -0
  50. package/dist/form-engine/index.d.ts +3 -2
  51. package/dist/form-engine/index.js +17 -14
  52. package/dist/form-engine/types.d.ts +17 -0
  53. package/dist/form-react/Fields/RichTextField.d.ts +3 -0
  54. package/dist/form-react/Fields/RichTextField.js +214 -0
  55. package/dist/form-react/Fields/SelectField.js +27 -28
  56. package/dist/form-react/Fields/SliderRangeField.d.ts +3 -0
  57. package/dist/form-react/Fields/SliderRangeField.js +69 -0
  58. package/dist/form-react/ReactHooksForm.js +149 -87
  59. package/dist/form-react/fields.d.ts +2 -0
  60. package/dist/form-react/fields.js +22 -18
  61. package/dist/form-react/hooks/useCascadingForm.d.ts +1 -2
  62. package/dist/form-react/hooks/useCascadingForm.js +59 -67
  63. package/dist/form-react/hooks/useFieldVisibility.d.ts +1 -2
  64. package/dist/form-react/hooks/useFieldVisibility.js +36 -43
  65. package/dist/form-react/hooks/useFormSteps.d.ts +29 -0
  66. package/dist/form-react/hooks/useFormSteps.js +96 -0
  67. package/dist/form-react/hooks/useReactHookForm.js +17 -18
  68. package/dist/form-react/hooks/useSelectOptions.d.ts +1 -1
  69. package/dist/form-react/hooks/useSelectOptions.js +80 -83
  70. package/dist/form-react/index.d.ts +5 -3
  71. package/dist/form-react/index.js +93 -88
  72. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  73. package/dist/form-react/registry/defaultFieldRegistrations.js +36 -26
  74. package/dist/form-react/types/fields.types.d.ts +34 -15
  75. package/dist/form-react/types/fieldsOutput.types.d.ts +5 -1
  76. package/dist/form-react/types/reactHookForm.types.d.ts +31 -2
  77. package/dist/form-react/utils/date.utils.d.ts +3 -1
  78. package/dist/form-react/utils/date.utils.js +84 -55
  79. package/dist/form-react/utils/fieldDefaults.utils.js +28 -13
  80. package/dist/i18n/defaultMessages.d.ts +10 -0
  81. package/dist/i18n/defaultMessages.js +17 -7
  82. package/dist/i18n/locales/de.js +13 -3
  83. package/dist/i18n/locales/es.js +13 -3
  84. package/dist/i18n/locales/hi.js +13 -3
  85. package/dist/i18n/locales/kn.js +13 -3
  86. package/dist/impact-nova.css +1 -1
  87. package/dist/lib/guidance/engine/guidance-engine.d.ts +7 -5
  88. package/dist/lib/guidance/engine/guidance-engine.js +115 -47
  89. package/dist/lib/guidance/triggers/trigger-registry.js +6 -6
  90. package/dist/lib/guidance/types/guidance.types.d.ts +11 -1
  91. package/dist/llms/rules/installation.js +1 -1
  92. package/dist/llms/rules/requirements.js +1 -1
  93. package/package.json +17 -2
@@ -7,7 +7,7 @@ function Rn({
7
7
  selected: t,
8
8
  onSelect: C,
9
9
  pickerType: r,
10
- weekMode: c,
10
+ weekMode: v,
11
11
  selectedWeeks: f,
12
12
  onWeekSelect: l,
13
13
  calendarType: B,
@@ -16,21 +16,21 @@ function Rn({
16
16
  resolvedFiscalPattern: J,
17
17
  fiscalYearStartMonth: K,
18
18
  weekStartsOn: L,
19
- monthMode: P,
19
+ monthMode: x,
20
20
  selectedMonths: g,
21
21
  onMonthSelect: m,
22
- month: v,
22
+ month: A,
23
23
  defaultMonth: N,
24
24
  onMonthChange: O,
25
25
  resolvedStartMonth: Q,
26
26
  resolvedEndMonth: S,
27
- disabled: x,
28
- onApply: R,
27
+ disabled: R,
28
+ onApply: Y,
29
29
  onCancel: U,
30
30
  onClear: V
31
31
  }) {
32
- const [A, Y] = i.useState(t), [X, Z] = i.useState(() => {
33
- if (v) return v;
32
+ const [P, I] = i.useState(t), [X, Z] = i.useState(() => {
33
+ if (A) return A;
34
34
  if (N) return N;
35
35
  if (t) {
36
36
  if (Array.isArray(t))
@@ -41,13 +41,13 @@ function Rn({
41
41
  return t.from;
42
42
  }
43
43
  return /* @__PURE__ */ new Date();
44
- }), [s, I] = i.useState(f), [b, _] = i.useState(g), [h, M] = i.useState(
44
+ }), [s, _] = i.useState(f), [b, $] = i.useState(g), [h, M] = i.useState(
45
45
  X.getFullYear()
46
46
  );
47
47
  i.useEffect(() => {
48
- v && (Z(v), M(v.getFullYear()));
49
- }, [v]), i.useEffect(() => {
50
- Y(t), I(f), _(g);
48
+ A && (Z(A), M(A.getFullYear()));
49
+ }, [A]), i.useEffect(() => {
50
+ I(t), _(f), $(g);
51
51
  }, [t, f, g]);
52
52
  const F = i.useCallback(
53
53
  (n) => {
@@ -77,100 +77,100 @@ function Rn({
77
77
  ), q = i.useCallback(
78
78
  (n) => {
79
79
  if (a) {
80
- I((E) => {
81
- const D = W(n, E, c);
82
- return l?.(D), D;
80
+ _((D) => {
81
+ const c = W(n, D, v);
82
+ return l?.(c), c;
83
83
  });
84
84
  return;
85
85
  }
86
- const u = W(n, f, c);
86
+ const u = W(n, f, v);
87
87
  l?.(
88
- c === "multiple" ? Array.isArray(u) && u.length > 0 ? u : void 0 : u
88
+ v === "multiple" ? Array.isArray(u) && u.length > 0 ? u : void 0 : u
89
89
  );
90
90
  },
91
- [c, a, f, l]
91
+ [v, a, f, l]
92
92
  ), w = i.useCallback(
93
93
  (n, u) => {
94
- const E = { year: n, month: u };
94
+ const D = { year: n, month: u };
95
95
  if (a) {
96
- _((sn) => {
97
- const o = y(E, sn, P);
96
+ $((sn) => {
97
+ const o = y(D, sn, x);
98
98
  return m?.(o), o;
99
99
  });
100
100
  return;
101
101
  }
102
- const D = y(E, g, P);
102
+ const c = y(D, g, x);
103
103
  m?.(
104
- P === "multiple" ? Array.isArray(D) && D.length > 0 ? D : void 0 : D
104
+ x === "multiple" ? Array.isArray(c) && c.length > 0 ? c : void 0 : c
105
105
  );
106
106
  },
107
- [P, a, g, m]
107
+ [x, a, g, m]
108
108
  ), T = i.useMemo(
109
109
  () => gn(Q, S),
110
110
  [Q, S]
111
- ), z = i.useMemo(() => r !== "week" ? void 0 : cn(a ? s : f), [r, a, s, f]), p = i.useMemo(() => r !== "week" ? { range_start: [], range_middle: [], range_end: [] } : vn(z, c, a ? s : f), [
111
+ ), z = i.useMemo(() => r !== "week" ? void 0 : cn(a ? s : f), [r, a, s, f]), p = i.useMemo(() => r !== "week" ? { range_start: [], range_middle: [], range_end: [] } : vn(z, v, a ? s : f), [
112
112
  r,
113
113
  z,
114
- c,
114
+ v,
115
115
  a,
116
116
  s,
117
117
  f
118
118
  ]), d = i.useCallback(
119
- (n) => {
119
+ (n, u) => {
120
120
  if (r === "week" && n) {
121
- const u = Array.isArray(n) ? n[n.length - 1] : n instanceof Date ? n : void 0;
122
- if (u) {
123
- q(j(u));
121
+ const D = u ?? (Array.isArray(n) ? n[n.length - 1] : n instanceof Date ? n : void 0);
122
+ if (D) {
123
+ q(j(D));
124
124
  return;
125
125
  }
126
126
  }
127
- a && Y(n), C?.(n);
127
+ a && I(n), C?.(n);
128
128
  },
129
129
  [a, C, r, j, q]
130
130
  ), e = i.useCallback(() => {
131
- r === "week" ? (l?.(s), R?.(s)) : r === "month" ? (m?.(b), R?.(b)) : (C?.(A), R?.(A));
131
+ r === "week" ? (l?.(s), Y?.(s)) : r === "month" ? (m?.(b), Y?.(b)) : (C?.(P), Y?.(P));
132
132
  }, [
133
- A,
133
+ P,
134
134
  s,
135
135
  b,
136
136
  C,
137
137
  l,
138
138
  m,
139
- R,
139
+ Y,
140
140
  r
141
141
  ]), nn = i.useCallback(() => {
142
- r === "week" ? I(f) : r === "month" ? _(g) : Y(t), U?.();
142
+ r === "week" ? _(f) : r === "month" ? $(g) : I(t), U?.();
143
143
  }, [t, f, g, U, r]), an = i.useCallback(() => {
144
- r === "week" ? (I(void 0), a || l?.(void 0)) : r === "month" ? (_(void 0), a || m?.(void 0)) : (Y(void 0), a || C?.(void 0)), V?.();
145
- }, [a, C, l, m, V, r]), $ = a ? b : g, rn = i.useCallback(
146
- (n, u) => mn(n, u, $),
147
- [$]
144
+ r === "week" ? (_(void 0), a || l?.(void 0)) : r === "month" ? ($(void 0), a || m?.(void 0)) : (I(void 0), a || C?.(void 0)), V?.();
145
+ }, [a, C, l, m, V, r]), E = a ? b : g, rn = i.useCallback(
146
+ (n, u) => mn(n, u, E),
147
+ [E]
148
148
  ), un = i.useCallback(
149
- (n, u) => Cn(n, u, $),
150
- [$]
149
+ (n, u) => Cn(n, u, E),
150
+ [E]
151
151
  ), tn = i.useCallback(
152
- (n, u) => bn(n, u, x),
153
- [x]
152
+ (n, u) => bn(n, u, R),
153
+ [R]
154
154
  ), fn = i.useMemo(
155
155
  () => ln({
156
156
  showFooter: a,
157
157
  pickerType: r,
158
- disabled: x,
159
- pendingSelection: A,
158
+ disabled: R,
159
+ pendingSelection: P,
160
160
  pendingWeekSelection: s,
161
161
  pendingMonthSelection: b
162
162
  }),
163
163
  [
164
164
  a,
165
165
  r,
166
- x,
167
- A,
166
+ R,
167
+ P,
168
168
  s,
169
169
  b
170
170
  ]
171
171
  );
172
172
  return {
173
- pendingSelection: A,
173
+ pendingSelection: P,
174
174
  currentMonth: X,
175
175
  pendingWeekSelection: s,
176
176
  pendingMonthSelection: b,
@@ -1,25 +1,25 @@
1
1
  import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
3
  import { useGuidanceContext as d } from "./guidance-context.js";
4
- class u extends a.Component {
5
- constructor(e) {
6
- super(e), this.state = { hasError: !1 };
4
+ class l extends a.Component {
5
+ constructor(r) {
6
+ super(r), this.state = { hasError: !1 };
7
7
  }
8
8
  static getDerivedStateFromError() {
9
9
  return { hasError: !0 };
10
10
  }
11
- componentDidCatch(e) {
12
- this.props.onError?.(e);
11
+ componentDidCatch(r) {
12
+ this.props.onError?.(r);
13
13
  }
14
14
  render() {
15
15
  return this.state.hasError ? null : this.props.children;
16
16
  }
17
17
  }
18
- function l() {
19
- const { engine: r, debug: e } = d();
20
- if (!e)
18
+ function u() {
19
+ const { engine: n, debug: r } = d();
20
+ if (!r)
21
21
  return null;
22
- const s = r.registry.getAll(), n = r.state;
22
+ const s = n.registry.getAll(), e = n.state;
23
23
  return /* @__PURE__ */ t(
24
24
  "div",
25
25
  {
@@ -29,21 +29,29 @@ function l() {
29
29
  /* @__PURE__ */ o("div", { className: "font-semibold text-content-primary", children: "Guidance Debug" }),
30
30
  /* @__PURE__ */ t("div", { className: "mt-1 text-content-secondary", children: [
31
31
  "Status: ",
32
- n.status
32
+ e.status
33
33
  ] }),
34
+ e.stepId ? /* @__PURE__ */ t("div", { className: "mt-1 text-content-secondary", children: [
35
+ "Step: ",
36
+ e.stepId
37
+ ] }) : null,
38
+ "reason" in e && e.reason ? /* @__PURE__ */ t("div", { className: "mt-1 text-content-secondary", children: [
39
+ "Reason: ",
40
+ e.reason
41
+ ] }) : null,
34
42
  /* @__PURE__ */ t("div", { className: "mt-1 text-content-secondary", children: [
35
43
  "Registered guides: ",
36
44
  s.length
37
45
  ] }),
38
- n.guideId ? /* @__PURE__ */ t("div", { className: "mt-1 text-content-secondary", children: [
46
+ e.guideId ? /* @__PURE__ */ t("div", { className: "mt-1 text-content-secondary", children: [
39
47
  "Active: ",
40
- n.guideId
48
+ e.guideId
41
49
  ] }) : null
42
50
  ]
43
51
  }
44
52
  );
45
53
  }
46
54
  export {
47
- l as GuidanceDebugPanel,
48
- u as GuidanceErrorBoundary
55
+ u as GuidanceDebugPanel,
56
+ l as GuidanceErrorBoundary
49
57
  };
@@ -1,49 +1,51 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { useSyncExternalStore as d } from "react";
4
- import { useGuidanceContext as m } from "./guidance-context.js";
5
- import { SpotlightRenderer as p } from "./renderers/spotlight-renderer.js";
6
- import { CoachMarkRenderer as f } from "./renderers/coach-mark-renderer.js";
7
- import { AnnouncementRenderer as b } from "./renderers/announcement-renderer.js";
8
- import { endTourScrollSnapshot as h } from "./renderers/guidance-renderer-shared.js";
9
- import { Button as l } from "../../primitives/button/button.js";
10
- function k(e, n) {
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { useSyncExternalStore as c } from "react";
4
+ import { useGuidanceContext as p } from "./guidance-context.js";
5
+ import { SpotlightRenderer as f } from "./renderers/spotlight-renderer.js";
6
+ import { CoachMarkRenderer as b } from "./renderers/coach-mark-renderer.js";
7
+ import { AnnouncementRenderer as h } from "./renderers/announcement-renderer.js";
8
+ import { endTourScrollSnapshot as k } from "./renderers/guidance-renderer-shared.js";
9
+ import { Button as d } from "../../primitives/button/button.js";
10
+ function x(e, s) {
11
11
  const r = {
12
12
  instruction: e,
13
- ...n
13
+ ...s
14
14
  };
15
15
  switch (e.renderer) {
16
16
  case "spotlight":
17
- return /* @__PURE__ */ t(p, { ...r });
17
+ return /* @__PURE__ */ n(f, { ...r });
18
18
  case "coach-mark":
19
- return /* @__PURE__ */ t(f, { ...r });
19
+ return /* @__PURE__ */ n(b, { ...r });
20
20
  case "announcement":
21
- return /* @__PURE__ */ t(b, { ...r });
21
+ return /* @__PURE__ */ n(h, { ...r });
22
22
  default:
23
23
  return null;
24
24
  }
25
25
  }
26
- function G() {
27
- const { engine: e } = m();
28
- s.useEffect(() => e.on("guideEnd", () => {
29
- h();
26
+ function z() {
27
+ const { engine: e } = p();
28
+ t.useEffect(() => e.on("guideEnd", () => {
29
+ k();
30
30
  }), [e]);
31
- const n = d(
31
+ const s = c(
32
32
  (o) => e.subscribe(o),
33
33
  () => e.state,
34
34
  () => ({ status: "idle" })
35
- ), r = d(
35
+ ), r = c(
36
36
  (o) => e.subscribe(o),
37
37
  () => e.getRenderInstruction(),
38
38
  () => null
39
- ), a = s.useCallback(() => {
39
+ ), l = t.useCallback(() => {
40
40
  e.advanceStep();
41
- }, [e]), u = s.useCallback(() => {
42
- e.skipStep();
43
- }, [e]), c = s.useCallback(() => {
41
+ }, [e]), u = t.useCallback(() => {
44
42
  e.dismiss("session");
43
+ }, [e]), a = t.useCallback(() => {
44
+ e.dismiss("session");
45
+ }, [e]), m = t.useCallback(() => {
46
+ e.retryCurrentStep();
45
47
  }, [e]);
46
- return n.status === "blocked" ? /* @__PURE__ */ i(
48
+ return s.status === "blocked" ? /* @__PURE__ */ i(
47
49
  "div",
48
50
  {
49
51
  "data-component": "guidance-blocked",
@@ -52,20 +54,20 @@ function G() {
52
54
  children: [
53
55
  /* @__PURE__ */ i("p", { className: "text-sm text-content-secondary", children: [
54
56
  "Guide step is blocked: ",
55
- n.reason
57
+ s.reason
56
58
  ] }),
57
59
  /* @__PURE__ */ i("div", { className: "mt-2 flex gap-2", children: [
58
- /* @__PURE__ */ t(l, { size: "sm", onClick: a, children: "Retry" }),
59
- /* @__PURE__ */ t(l, { variant: "secondary", size: "sm", onClick: c, children: "Dismiss" })
60
+ /* @__PURE__ */ n(d, { size: "sm", onClick: m, children: "Retry" }),
61
+ /* @__PURE__ */ n(d, { variant: "secondary", size: "sm", onClick: a, children: "Dismiss" })
60
62
  ] })
61
63
  ]
62
64
  }
63
- ) : r ? k(r, {
64
- onNext: a,
65
+ ) : r ? x(r, {
66
+ onNext: l,
65
67
  onSkip: u,
66
- onDismiss: c
68
+ onDismiss: a
67
69
  }) : null;
68
70
  }
69
71
  export {
70
- G as GuidanceLayer
72
+ z as GuidanceLayer
71
73
  };
@@ -0,0 +1,4 @@
1
+ const c = "data:image/svg+xml,%3csvg%20viewBox='0%200%20128%20128'%20xmlns='http://www.w3.org/2000/svg'%20aria-hidden='true'%3e%3cpath%20d='M121.59%2060.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95%207.27c-.16-.59-.55-1.38-1.75-1.38c-1.01%200-1.59.79-1.75%201.38l-6.13%2029.87c-2.46%209.06-7.67%2016.27-16.58%2019.21l-13.93%204.49c-1.97.64-2%203.42-.04%204.09l14.03%204.83c8.88%202.95%2014.06%2010.15%2016.52%2019.17l6.14%2029.53c.16.59.49%201.65%201.75%201.65c1.33%200%201.59-1.06%201.75-1.65l6.14-29.53c2.46-9.03%207.64-16.23%2016.52-19.17l14.03-4.83c1.94-.68%201.91-3.46-.06-4.1z'%20fill='%23fdd835'/%3e%3cpath%20d='M122.91%2062.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95%207.27c-.09-.34-.41-.96-.78-1.14l1.98%2029.97c1.47%2013.68%202.73%2020.12%2013.65%2022c9.38%201.62%2020.23%203.48%2023.11%203.98z'%20fill='%23ffee58'/%3e%3cpath%20d='M122.94%2063.64l-24.16%205.54c-8.51%202.16-13.2%207.09-13.2%2019.99l-2.37%2030.94c.81-.08%201.47-.52%201.75-1.65l6.14-29.53c2.46-9.03%207.64-16.23%2016.52-19.17l14.03-4.83c.66-.24%201.08-.73%201.29-1.29z'%20fill='%23f4b400'/%3e%3cpath%20d='M41.81%2086.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49%200L22.97%2074.8c-1.41%205.21-4.41%209.35-9.53%2011.04l-8.16%203.54c-1.13.37-1.15%201.97-.02%202.35l8.22%202.91c5.1%201.69%208.08%205.83%209.5%2011.02l2.37%2010.82c.22.79%202.27.79%202.48%200l2.78-10.77c1.41-5.22%203.57-9.37%2010.5-11.07l7.72-2.91c1.13-.39%201.12-1.99-.02-2.36l-7-2.56z'%20fill='%23fdd835'/%3e%3cpath%20d='M28.49%2075.55c.85%207.86%201.28%2010.04%207.65%2011.67l13.27%202.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46%2012.59z'%20fill='%23ffee58'/%3e%3cpath%20d='M28.73%20102.99c0-7.41%204.05-11.08%2010.49-11.08l10.02-.41s-.58.77-1.59%201.01l-6.54%202.13c-5.55%202.23-8.08%203.35-9.8%2010.94c0%200-2.22%208.83-2.64%209.76c-.58%201.3-1.27%201.57-1.27%201.57l1.33-13.92z'%20fill='%23f4b400'/%3e%3cpath%20d='M59.74%2028.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77%204.77%200%200%201-3.34-3.3L45.61%209.06c-.15-.61-1.02-.61-1.17.01l-2.86%2012.5a4.734%204.734%200%200%201-3.4%203.37l-7.67%201.99c-.57.15-.61.95-.05%201.15l8.09%202.8c1.45.5%202.57%201.68%203.01%203.15l2.89%2011.59c.15.6%201.01.61%201.16%200l2.99-11.63a4.773%204.773%200%200%201%203.04-3.13l8.1-2.72z'%20fill='%23f4b400'%20stroke='%23f4b400'%20stroke-miterlimit='10'/%3e%3c/svg%3e";
2
+ export {
3
+ c as default
4
+ };
@@ -1,11 +1,14 @@
1
- import { HELP_CENTER_ALL_CATEGORY_VALUE as u } from "./help-center.constants.js";
2
- function y(o, e) {
3
- const l = e.allCategoryValue ?? u, r = e.categoryValue === l ? null : e.categoryValue, t = e.searchQuery.trim().toLowerCase();
4
- return o.filter((a) => {
5
- const c = a.metadata.category ?? "general", s = !r || c === r, n = !t || a.metadata.title?.toLowerCase().includes(t) || a.metadata.description?.toLowerCase().includes(t) || a.id.toLowerCase().includes(t);
6
- return s && n;
1
+ import { HELP_CENTER_ALL_CATEGORY_VALUE as i } from "./help-center.constants.js";
2
+ import { getGuideTypeSearchTerms as y, resolveGuideType as C } from "./guide-catalog-utils.js";
3
+ function g(o, r) {
4
+ const c = r.allCategoryValue ?? i, a = r.categoryValue === c ? null : r.categoryValue, e = r.searchQuery.trim().toLowerCase();
5
+ return o.filter((t) => {
6
+ const s = t.metadata.category ?? "general", l = !a || s === a, n = y(C(t)), u = !e || t.metadata.title?.toLowerCase().includes(e) || t.metadata.description?.toLowerCase().includes(e) || t.id.toLowerCase().includes(e) || n.some(
7
+ (m) => m.toLowerCase().includes(e)
8
+ );
9
+ return l && u;
7
10
  });
8
11
  }
9
12
  export {
10
- y as filterHelpCenterGuides
13
+ g as filterHelpCenterGuides
11
14
  };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface GuideCatalogSectionProps {
3
+ title: string;
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ }
7
+ export declare function GuideCatalogSection({ title, children, className, }: GuideCatalogSectionProps): React.ReactElement;
@@ -0,0 +1,24 @@
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import "react";
3
+ import { cn as r } from "../../../../lib/utils.js";
4
+ function m({
5
+ title: t,
6
+ children: e,
7
+ className: a
8
+ }) {
9
+ return /* @__PURE__ */ i(
10
+ "section",
11
+ {
12
+ className: r("px-4 pb-2 last:pb-3", a),
13
+ "data-component": "guidance-guide-catalog-section",
14
+ "aria-label": t,
15
+ children: [
16
+ /* @__PURE__ */ o("h2", { className: "mb-2 mt-5 text-xs font-semibold uppercase tracking-wider text-content-tertiary first:mt-3", children: t }),
17
+ e
18
+ ]
19
+ }
20
+ );
21
+ }
22
+ export {
23
+ m as GuideCatalogSection
24
+ };
@@ -0,0 +1,3 @@
1
+ import { GuideManifest, GuideType } from '../../../../lib/guidance';
2
+ export declare function resolveGuideType(guide: GuideManifest): GuideType;
3
+ export declare function getGuideTypeSearchTerms(guideType: GuideType): string[];
@@ -0,0 +1,19 @@
1
+ function t(e) {
2
+ return e.metadata.guideType ? e.metadata.guideType : e.metadata.category === "announcements" ? "whats-new" : "tour";
3
+ }
4
+ function r(e) {
5
+ switch (e) {
6
+ case "whats-new":
7
+ return ["whats new", "what's new", "update", "release", "announcement"];
8
+ case "how-to":
9
+ return ["how to", "how-to", "workflow", "walkthrough"];
10
+ case "tip":
11
+ return ["tip", "quick tip", "shortcut"];
12
+ default:
13
+ return ["tour", "guided tour", "onboarding"];
14
+ }
15
+ }
16
+ export {
17
+ r as getGuideTypeSearchTerms,
18
+ t as resolveGuideType
19
+ };
@@ -1,3 +1,3 @@
1
1
  import { GuideCatalogProps } from './help-center.types';
2
2
  import * as React from 'react';
3
- export declare function GuideCatalog({ guides, onLaunchGuide, replayLabel, emptyStateMessage, getStepCountLabel, className, }: GuideCatalogProps): React.ReactElement;
3
+ export declare function GuideCatalog({ guides, onLaunchGuide, replayLabel, getLaunchLabel, getGuideTypeLabel, emptyStateMessage, scrollable, className, }: GuideCatalogProps): React.ReactElement;