impact-nova 2.5.6 → 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.
- package/dist/components/data-display/calendar/calendar-apply-validation.js +45 -33
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +62 -54
- package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +88 -85
- package/dist/components/data-display/calendar/calendar-week-utils.js +23 -22
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +1 -1
- package/dist/components/data-display/calendar/use-calendar-state.js +47 -47
- package/dist/components/flows/guidance/guidance-error-boundary.js +22 -14
- package/dist/components/flows/guidance/guidance-layer.js +34 -32
- package/dist/components/flows/guidance/help-center/assets/whats-new-guide-icon.svg.js +4 -0
- package/dist/components/flows/guidance/help-center/filter-help-center-guides.js +10 -7
- package/dist/components/flows/guidance/help-center/guide-catalog-section.d.ts +7 -0
- package/dist/components/flows/guidance/help-center/guide-catalog-section.js +24 -0
- package/dist/components/flows/guidance/help-center/guide-catalog-utils.d.ts +3 -0
- package/dist/components/flows/guidance/help-center/guide-catalog-utils.js +19 -0
- package/dist/components/flows/guidance/help-center/guide-catalog.d.ts +1 -1
- package/dist/components/flows/guidance/help-center/guide-catalog.js +89 -79
- package/dist/components/flows/guidance/help-center/help-center-guide-labels.d.ts +6 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-labels.js +33 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-row.d.ts +12 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-row.js +57 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.d.ts +9 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.js +114 -0
- package/dist/components/flows/guidance/help-center/help-center-header.d.ts +1 -1
- package/dist/components/flows/guidance/help-center/help-center-header.js +20 -16
- package/dist/components/flows/guidance/help-center/help-center.constants.d.ts +1 -1
- package/dist/components/flows/guidance/help-center/help-center.constants.js +1 -1
- package/dist/components/flows/guidance/help-center/help-center.d.ts +3 -1
- package/dist/components/flows/guidance/help-center/help-center.js +74 -51
- package/dist/components/flows/guidance/help-center/help-center.types.d.ts +9 -1
- package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.d.ts +4 -0
- package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.js +18 -0
- package/dist/components/flows/guidance/help-center.d.ts +4 -2
- package/dist/components/flows/guidance/help-center.js +23 -14
- package/dist/components/flows/guidance/hooks/useGuidanceOverlayGeometry.js +19 -17
- package/dist/components/flows/guidance/index.d.ts +1 -1
- package/dist/components/flows/guidance/renderers/announcement-renderer.d.ts +1 -1
- package/dist/components/flows/guidance/renderers/announcement-renderer.js +20 -12
- package/dist/components/flows/guidance/renderers/guidance-card-shared.d.ts +9 -11
- package/dist/components/flows/guidance/renderers/guidance-card-shared.js +124 -177
- package/dist/components/flows/guidance/renderers/guidance-renderer-shared.d.ts +1 -1
- package/dist/components/flows/guidance/renderers/guidance-renderer-shared.js +57 -72
- package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +23 -23
- package/dist/components/flows/wizard/wizard.js +41 -38
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +35 -53
- package/dist/form-react/registry/defaultFieldRegistrations.js +36 -28
- package/dist/form-react/types/fields.types.d.ts +3 -3
- package/dist/form-react/utils/date.utils.d.ts +3 -1
- package/dist/form-react/utils/date.utils.js +84 -55
- package/dist/i18n/defaultMessages.d.ts +10 -0
- package/dist/i18n/defaultMessages.js +17 -7
- package/dist/i18n/locales/de.js +13 -3
- package/dist/i18n/locales/es.js +13 -3
- package/dist/i18n/locales/hi.js +13 -3
- package/dist/i18n/locales/kn.js +13 -3
- package/dist/impact-nova.css +1 -1
- package/dist/lib/guidance/engine/guidance-engine.d.ts +7 -5
- package/dist/lib/guidance/engine/guidance-engine.js +115 -47
- package/dist/lib/guidance/triggers/trigger-registry.js +6 -6
- package/dist/lib/guidance/types/guidance.types.d.ts +11 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ function Rn({
|
|
|
7
7
|
selected: t,
|
|
8
8
|
onSelect: C,
|
|
9
9
|
pickerType: r,
|
|
10
|
-
weekMode:
|
|
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:
|
|
19
|
+
monthMode: x,
|
|
20
20
|
selectedMonths: g,
|
|
21
21
|
onMonthSelect: m,
|
|
22
|
-
month:
|
|
22
|
+
month: A,
|
|
23
23
|
defaultMonth: N,
|
|
24
24
|
onMonthChange: O,
|
|
25
25
|
resolvedStartMonth: Q,
|
|
26
26
|
resolvedEndMonth: S,
|
|
27
|
-
disabled:
|
|
28
|
-
onApply:
|
|
27
|
+
disabled: R,
|
|
28
|
+
onApply: Y,
|
|
29
29
|
onCancel: U,
|
|
30
30
|
onClear: V
|
|
31
31
|
}) {
|
|
32
|
-
const [
|
|
33
|
-
if (
|
|
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,
|
|
44
|
+
}), [s, _] = i.useState(f), [b, $] = i.useState(g), [h, M] = i.useState(
|
|
45
45
|
X.getFullYear()
|
|
46
46
|
);
|
|
47
47
|
i.useEffect(() => {
|
|
48
|
-
|
|
49
|
-
}, [
|
|
50
|
-
|
|
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
|
-
|
|
81
|
-
const
|
|
82
|
-
return l?.(
|
|
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,
|
|
86
|
+
const u = W(n, f, v);
|
|
87
87
|
l?.(
|
|
88
|
-
|
|
88
|
+
v === "multiple" ? Array.isArray(u) && u.length > 0 ? u : void 0 : u
|
|
89
89
|
);
|
|
90
90
|
},
|
|
91
|
-
[
|
|
91
|
+
[v, a, f, l]
|
|
92
92
|
), w = i.useCallback(
|
|
93
93
|
(n, u) => {
|
|
94
|
-
const
|
|
94
|
+
const D = { year: n, month: u };
|
|
95
95
|
if (a) {
|
|
96
|
-
|
|
97
|
-
const o = y(
|
|
96
|
+
$((sn) => {
|
|
97
|
+
const o = y(D, sn, x);
|
|
98
98
|
return m?.(o), o;
|
|
99
99
|
});
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const c = y(D, g, x);
|
|
103
103
|
m?.(
|
|
104
|
-
|
|
104
|
+
x === "multiple" ? Array.isArray(c) && c.length > 0 ? c : void 0 : c
|
|
105
105
|
);
|
|
106
106
|
},
|
|
107
|
-
[
|
|
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,
|
|
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
|
-
|
|
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
|
|
122
|
-
if (
|
|
123
|
-
q(j(
|
|
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 &&
|
|
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),
|
|
131
|
+
r === "week" ? (l?.(s), Y?.(s)) : r === "month" ? (m?.(b), Y?.(b)) : (C?.(P), Y?.(P));
|
|
132
132
|
}, [
|
|
133
|
-
|
|
133
|
+
P,
|
|
134
134
|
s,
|
|
135
135
|
b,
|
|
136
136
|
C,
|
|
137
137
|
l,
|
|
138
138
|
m,
|
|
139
|
-
|
|
139
|
+
Y,
|
|
140
140
|
r
|
|
141
141
|
]), nn = i.useCallback(() => {
|
|
142
|
-
r === "week" ?
|
|
142
|
+
r === "week" ? _(f) : r === "month" ? $(g) : I(t), U?.();
|
|
143
143
|
}, [t, f, g, U, r]), an = i.useCallback(() => {
|
|
144
|
-
r === "week" ? (
|
|
145
|
-
}, [a, C, l, m, V, r]),
|
|
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,
|
|
153
|
-
[
|
|
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:
|
|
159
|
-
pendingSelection:
|
|
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
|
-
|
|
167
|
-
|
|
166
|
+
R,
|
|
167
|
+
P,
|
|
168
168
|
s,
|
|
169
169
|
b
|
|
170
170
|
]
|
|
171
171
|
);
|
|
172
172
|
return {
|
|
173
|
-
pendingSelection:
|
|
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
|
|
5
|
-
constructor(
|
|
6
|
-
super(
|
|
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(
|
|
12
|
-
this.props.onError?.(
|
|
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
|
|
19
|
-
const { engine:
|
|
20
|
-
if (!
|
|
18
|
+
function u() {
|
|
19
|
+
const { engine: n, debug: r } = d();
|
|
20
|
+
if (!r)
|
|
21
21
|
return null;
|
|
22
|
-
const s =
|
|
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
|
-
|
|
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
|
-
|
|
46
|
+
e.guideId ? /* @__PURE__ */ t("div", { className: "mt-1 text-content-secondary", children: [
|
|
39
47
|
"Active: ",
|
|
40
|
-
|
|
48
|
+
e.guideId
|
|
41
49
|
] }) : null
|
|
42
50
|
]
|
|
43
51
|
}
|
|
44
52
|
);
|
|
45
53
|
}
|
|
46
54
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
55
|
+
u as GuidanceDebugPanel,
|
|
56
|
+
l as GuidanceErrorBoundary
|
|
49
57
|
};
|
|
@@ -1,49 +1,51 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { useSyncExternalStore as
|
|
4
|
-
import { useGuidanceContext as
|
|
5
|
-
import { SpotlightRenderer as
|
|
6
|
-
import { CoachMarkRenderer as
|
|
7
|
-
import { AnnouncementRenderer as
|
|
8
|
-
import { endTourScrollSnapshot as
|
|
9
|
-
import { Button as
|
|
10
|
-
function
|
|
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
|
-
...
|
|
13
|
+
...s
|
|
14
14
|
};
|
|
15
15
|
switch (e.renderer) {
|
|
16
16
|
case "spotlight":
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ n(f, { ...r });
|
|
18
18
|
case "coach-mark":
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ n(b, { ...r });
|
|
20
20
|
case "announcement":
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ n(h, { ...r });
|
|
22
22
|
default:
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
const { engine: e } =
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
function z() {
|
|
27
|
+
const { engine: e } = p();
|
|
28
|
+
t.useEffect(() => e.on("guideEnd", () => {
|
|
29
|
+
k();
|
|
30
30
|
}), [e]);
|
|
31
|
-
const
|
|
31
|
+
const s = c(
|
|
32
32
|
(o) => e.subscribe(o),
|
|
33
33
|
() => e.state,
|
|
34
34
|
() => ({ status: "idle" })
|
|
35
|
-
), r =
|
|
35
|
+
), r = c(
|
|
36
36
|
(o) => e.subscribe(o),
|
|
37
37
|
() => e.getRenderInstruction(),
|
|
38
38
|
() => null
|
|
39
|
-
),
|
|
39
|
+
), l = t.useCallback(() => {
|
|
40
40
|
e.advanceStep();
|
|
41
|
-
}, [e]), u =
|
|
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
|
|
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
|
-
|
|
57
|
+
s.reason
|
|
56
58
|
] }),
|
|
57
59
|
/* @__PURE__ */ i("div", { className: "mt-2 flex gap-2", children: [
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
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 ?
|
|
64
|
-
onNext:
|
|
65
|
+
) : r ? x(r, {
|
|
66
|
+
onNext: l,
|
|
65
67
|
onSkip: u,
|
|
66
|
-
onDismiss:
|
|
68
|
+
onDismiss: a
|
|
67
69
|
}) : null;
|
|
68
70
|
}
|
|
69
71
|
export {
|
|
70
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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,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,
|
|
3
|
+
export declare function GuideCatalog({ guides, onLaunchGuide, replayLabel, getLaunchLabel, getGuideTypeLabel, emptyStateMessage, scrollable, className, }: GuideCatalogProps): React.ReactElement;
|