@flamingo-stack/openframe-frontend-core 0.0.704 → 0.0.705-snapshot.20261006160157
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/{chunk-7LFIKJX2.js → chunk-3EZ4HHAP.js} +3 -3
- package/dist/{chunk-I7DFUQMN.js → chunk-3NCM4ZQB.js} +17 -18
- package/dist/{chunk-4DQMTBMK.cjs → chunk-3PLDQDE6.cjs} +15 -15
- package/dist/{chunk-VTASHWER.js → chunk-4CJMQLB5.js} +4 -4
- package/dist/{chunk-VR2ZLFCP.js → chunk-4IBPRIQH.js} +1 -1
- package/dist/{chunk-ZQFZSFQI.js → chunk-4ILM7W2R.js} +2 -2
- package/dist/{chunk-FXENTYE5.js → chunk-6232S532.js} +3 -3
- package/dist/{chunk-MMOODW57.cjs → chunk-6NTPY5QA.cjs} +1887 -94
- package/dist/{chunk-2JDVL7UV.js → chunk-7GEBFJT2.js} +1829 -3447
- package/dist/{chunk-LDPEQGKT.cjs → chunk-7OFPU7WE.cjs} +942 -2560
- package/dist/{chunk-L3IC42IF.cjs → chunk-7SCNMP2B.cjs} +57 -58
- package/dist/{chunk-2G546OND.js → chunk-BHI6GVC4.js} +1094 -693
- package/dist/{chunk-MP2C3LJ4.js → chunk-CUME3VTQ.js} +1 -1
- package/dist/{chunk-WUJNYGO2.js → chunk-CZ7Y7UG4.js} +4 -76
- package/dist/{chunk-7JIL3WOH.cjs → chunk-DDVBX42E.cjs} +21 -21
- package/dist/{chunk-6WQIUQUC.js → chunk-DWPAAWMR.js} +6 -6
- package/dist/{chunk-MFFCUVWG.js → chunk-F57ECE2I.js} +1 -1
- package/dist/{chunk-CH5232HV.js → chunk-FI6GMDO7.js} +2455 -662
- package/dist/{chunk-NDESEPW5.js → chunk-FXJ3WWUB.js} +68 -0
- package/dist/{chunk-4KGXLVCF.js → chunk-G6UMNAVI.js} +57 -61
- package/dist/{chunk-LTSTC3N5.cjs → chunk-GWQEYPYM.cjs} +728 -732
- package/dist/{chunk-N3TO7JV3.cjs → chunk-HZ7CBXPL.cjs} +89 -89
- package/dist/{chunk-XATTBO5X.js → chunk-IKJA3Y7Z.js} +2 -2
- package/dist/{chunk-5HBHO5TB.js → chunk-JPG7OHEG.js} +1 -1
- package/dist/{chunk-AMYY3PNL.cjs → chunk-K6O43WDL.cjs} +46 -46
- package/dist/{chunk-IHU5ANUY.js → chunk-KUC673HM.js} +383 -142
- package/dist/{chunk-X72J4ACL.cjs → chunk-LLSUVPQC.cjs} +252 -8
- package/dist/{chunk-RKV5B7EU.cjs → chunk-LM7TXMLU.cjs} +72 -4
- package/dist/{chunk-XJKZ4IKT.cjs → chunk-LVSFKENJ.cjs} +4 -4
- package/dist/{chunk-IZGDG5X6.cjs → chunk-M75XEEGT.cjs} +940 -539
- package/dist/{chunk-UK62YTH6.cjs → chunk-MB4PNY7C.cjs} +6 -6
- package/dist/{chunk-2YXVWZVF.js → chunk-N45D4ZXQ.js} +959 -715
- package/dist/{chunk-Z2VNQQ74.js → chunk-NCPTID44.js} +978 -942
- package/dist/{chunk-JEYRXT5L.js → chunk-O2RSAA5M.js} +11 -11
- package/dist/{chunk-ABU3TGXA.cjs → chunk-OF6GEI5A.cjs} +3 -3
- package/dist/{chunk-OHFS7VOU.cjs → chunk-PLYEKV3N.cjs} +2 -2
- package/dist/{chunk-5QJDM6UV.js → chunk-PXOQIA5K.js} +5 -5
- package/dist/{chunk-VHCACDKP.cjs → chunk-RQRX4YC3.cjs} +39 -39
- package/dist/{chunk-HFJW24JJ.cjs → chunk-RTIPR53L.cjs} +104 -104
- package/dist/{chunk-262YQFOS.cjs → chunk-SEKYEWQG.cjs} +26 -26
- package/dist/{chunk-SYXQLETR.cjs → chunk-STHZBOQI.cjs} +17 -17
- package/dist/{chunk-MI3JUJ75.cjs → chunk-SW5ZV2BN.cjs} +34 -34
- package/dist/{chunk-QVSFBSWV.js → chunk-T5TMCHWM.js} +9 -9
- package/dist/{chunk-ERCV6HHJ.js → chunk-TE773HEH.js} +10 -10
- package/dist/{chunk-C7XGRLT5.cjs → chunk-TQ4LB2DS.cjs} +14 -14
- package/dist/{chunk-XOYH2YQE.cjs → chunk-UDFRUKLC.cjs} +2 -2
- package/dist/{chunk-XIFOBQRQ.cjs → chunk-UJ33ZXDT.cjs} +6 -6
- package/dist/{chunk-C3BWIU7R.cjs → chunk-UVTD52MD.cjs} +14 -86
- package/dist/{chunk-N3COXDBH.cjs → chunk-VX4E6YSB.cjs} +41 -5
- package/dist/{chunk-HJAYVKWQ.js → chunk-VZICIQW2.js} +15 -15
- package/dist/{chunk-MGGGBHYD.cjs → chunk-WCVZCGK5.cjs} +312 -71
- package/dist/{chunk-6XIF2Z7I.js → chunk-WMX26HB5.js} +3 -3
- package/dist/{chunk-D7BTSVMS.cjs → chunk-Y2GSOUCS.cjs} +2 -2
- package/dist/{chunk-NRLJUBCS.js → chunk-YGJKKDDM.js} +6 -6
- package/dist/components/case-studies/index.cjs +30 -32
- package/dist/components/case-studies/index.js +14 -16
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +8 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts +11 -4
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +11 -11
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +16 -16
- package/dist/components/chat/mingo-chat-rail.d.ts +3 -1
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +12 -14
- package/dist/components/contact/index.js +11 -13
- package/dist/components/docs/index.cjs +15 -17
- package/dist/components/docs/index.js +14 -16
- package/dist/components/embeds/index.cjs +12 -14
- package/dist/components/embeds/index.js +11 -13
- package/dist/components/faq/index.cjs +13 -15
- package/dist/components/faq/index.js +12 -14
- package/dist/components/features/index.cjs +12 -14
- package/dist/components/features/index.js +21 -23
- package/dist/components/help-center-pages/index.cjs +118 -120
- package/dist/components/help-center-pages/index.js +33 -35
- package/dist/components/icons/index.cjs +3 -5
- package/dist/components/icons/index.js +9 -11
- package/dist/components/icons-v2-generated/index.cjs +3 -5
- package/dist/components/icons-v2-generated/index.js +2 -4
- package/dist/components/index.cjs +89 -158
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +333 -402
- package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
- package/dist/components/meeting-scheduler/index.cjs +62 -64
- package/dist/components/meeting-scheduler/index.js +12 -14
- package/dist/components/navigation/app-layout-side-panel.d.ts +18 -1
- package/dist/components/navigation/app-layout-side-panel.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +30 -16
- package/dist/components/navigation/index.d.ts +15 -10
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +40 -26
- package/dist/components/navigation/mingo-ai-button.d.ts +38 -3
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts +3 -0
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +1 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts +48 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts.map +1 -0
- package/dist/components/navigation/nav-item-row.d.ts +27 -0
- package/dist/components/navigation/nav-item-row.d.ts.map +1 -0
- package/dist/components/navigation/nav-panel.d.ts +43 -0
- package/dist/components/navigation/nav-panel.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -2
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.d.ts +28 -0
- package/dist/components/navigation/site-footer.d.ts.map +1 -0
- package/dist/components/navigation/site-header.d.ts +61 -0
- package/dist/components/navigation/site-header.d.ts.map +1 -0
- package/dist/components/navigation/site-nav-link.d.ts +26 -0
- package/dist/components/navigation/site-nav-link.d.ts.map +1 -0
- package/dist/components/navigation/top-navigation.d.ts +2 -2
- package/dist/components/navigation/top-navigation.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +15 -17
- package/dist/components/onboarding-guides/index.js +14 -16
- package/dist/components/related-content/index.cjs +10 -8
- package/dist/components/related-content/index.js +9 -7
- package/dist/components/tickets/index.cjs +16 -18
- package/dist/components/tickets/index.js +15 -17
- package/dist/components/ui/index.cjs +14 -14
- package/dist/components/ui/index.js +19 -19
- package/dist/hooks/index.cjs +19 -11
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +19 -11
- package/dist/hooks/ui/index.d.ts +3 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-active-section.d.ts +10 -0
- package/dist/hooks/ui/use-active-section.d.ts.map +1 -0
- package/dist/hooks/ui/use-nav-menus.d.ts +48 -0
- package/dist/hooks/ui/use-nav-menus.d.ts.map +1 -0
- package/dist/hooks/ui/use-visitor-os.d.ts +15 -0
- package/dist/hooks/ui/use-visitor-os.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +9 -0
- package/dist/hooks/use-location-hash.d.ts.map +1 -0
- package/dist/index.cjs +58 -21
- package/dist/index.js +233 -196
- package/dist/types/case-study.d.ts +9 -0
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/navigation.d.ts +95 -65
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +55 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +50 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/visitor-os.d.ts +45 -0
- package/dist/utils/visitor-os.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/chat/chat-input.tsx +5 -1
- package/src/components/chat/chat-message-enhanced.tsx +4 -3
- package/src/components/chat/embeddable-chat.tsx +64 -6
- package/src/components/chat/entity-cards/case-study-card.tsx +115 -5
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/mingo-chat-rail.tsx +24 -7
- package/src/components/chat/utils/icon-library.tsx +35 -1
- package/src/components/index.ts +0 -2
- package/src/components/loading/page-layout-skeleton.tsx +1 -1
- package/src/components/navigation/app-layout-side-panel.tsx +30 -2
- package/src/components/navigation/index.ts +22 -14
- package/src/components/navigation/mingo-ai-button.tsx +139 -63
- package/src/components/navigation/mobile-nav-sheet-id.ts +2 -0
- package/src/components/navigation/mobile-nav-sheet.tsx +241 -0
- package/src/components/navigation/nav-item-row.tsx +129 -0
- package/src/components/navigation/nav-panel.tsx +196 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +1 -2
- package/src/components/navigation/site-footer.tsx +256 -0
- package/src/components/navigation/site-header.tsx +339 -0
- package/src/components/navigation/site-nav-link.tsx +41 -0
- package/src/components/navigation/ticket-alerts-button.tsx +2 -2
- package/src/components/navigation/top-navigation.tsx +2 -2
- package/src/components/platform/SoftwareSourceBadge.tsx +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/ui/index.ts +3 -0
- package/src/hooks/ui/use-active-section.ts +44 -0
- package/src/hooks/ui/use-nav-menus.ts +200 -0
- package/src/hooks/ui/use-visitor-os.ts +33 -0
- package/src/hooks/use-location-hash.ts +34 -0
- package/src/styles/app-globals.css +13 -0
- package/src/styles/chat-animations.css +57 -2
- package/src/types/case-study.ts +16 -0
- package/src/types/navigation.ts +80 -66
- package/src/utils/index.ts +1 -0
- package/src/utils/source-icons.ts +13 -0
- package/src/utils/visitor-os.ts +84 -0
- package/dist/chunk-LMBC5FFP.js +0 -43
- package/dist/chunk-O43V3EOS.js +0 -252
- package/dist/chunk-QZVSJF2K.cjs +0 -252
- package/dist/chunk-RALRPFDW.cjs +0 -43
- package/dist/components/footer-waitlist-button.d.ts +0 -29
- package/dist/components/footer-waitlist-button.d.ts.map +0 -1
- package/dist/components/footer.d.ts +0 -47
- package/dist/components/footer.d.ts.map +0 -1
- package/dist/components/navigation/client-only-header.d.ts +0 -8
- package/dist/components/navigation/client-only-header.d.ts.map +0 -1
- package/dist/components/navigation/header-skeleton.d.ts +0 -12
- package/dist/components/navigation/header-skeleton.d.ts.map +0 -1
- package/dist/components/navigation/header.d.ts +0 -9
- package/dist/components/navigation/header.d.ts.map +0 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts +0 -10
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +0 -1
- package/src/components/footer-waitlist-button.tsx +0 -53
- package/src/components/footer.tsx +0 -195
- package/src/components/navigation/client-only-header.tsx +0 -22
- package/src/components/navigation/header-skeleton.tsx +0 -74
- package/src/components/navigation/header.tsx +0 -429
- package/src/components/navigation/mobile-nav-panel.tsx +0 -155
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkGWQEYPYMcjs = require('./chunk-GWQEYPYM.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWCVZCGK5cjs = require('./chunk-WCVZCGK5.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk7OFPU7WEcjs = require('./chunk-7OFPU7WE.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -113,14 +113,14 @@ function ContactForm({
|
|
|
113
113
|
successToastMessage = "Redirecting you to join our community...",
|
|
114
114
|
rescue: rescueForm = null
|
|
115
115
|
} = {}) {
|
|
116
|
-
const attachments =
|
|
117
|
-
const builtInSubmission =
|
|
116
|
+
const attachments = _chunk7OFPU7WEcjs.useChatAttachments.call(void 0, );
|
|
117
|
+
const builtInSubmission = _chunkWCVZCGK5cjs.useContactSubmission.call(void 0, {
|
|
118
118
|
userId,
|
|
119
119
|
successRedirectUrl,
|
|
120
120
|
successToastMessage
|
|
121
121
|
});
|
|
122
122
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
123
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
123
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkWCVZCGK5cjs.useHumanitySignals.call(void 0, );
|
|
124
124
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
125
125
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
126
126
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -146,7 +146,7 @@ function ContactForm({
|
|
|
146
146
|
),
|
|
147
147
|
[hideFields]
|
|
148
148
|
);
|
|
149
|
-
const rescue =
|
|
149
|
+
const rescue = _chunkWCVZCGK5cjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
150
150
|
const handleFormSubmit = async (data) => {
|
|
151
151
|
if (isSubmitting) return;
|
|
152
152
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -184,7 +184,7 @@ function ContactForm({
|
|
|
184
184
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
185
185
|
children: [
|
|
186
186
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
187
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
187
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk6NTPY5QAcjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunk6NTPY5QAcjs.accentSentenceMarks.call(void 0, title) }),
|
|
188
188
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
189
189
|
] }),
|
|
190
190
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -197,13 +197,13 @@ function ContactForm({
|
|
|
197
197
|
);
|
|
198
198
|
}),
|
|
199
199
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
200
|
-
...
|
|
200
|
+
..._chunkGWQEYPYMcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
201
201
|
children: [
|
|
202
202
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
203
203
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
204
204
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
205
205
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
206
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
206
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.HoneypotField, { ...honeypotInputProps }),
|
|
207
207
|
extraTopField,
|
|
208
208
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
209
209
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -255,17 +255,17 @@ function ContactForm({
|
|
|
255
255
|
{
|
|
256
256
|
control,
|
|
257
257
|
name: "companySize",
|
|
258
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
258
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGWQEYPYMcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
260
|
-
|
|
260
|
+
_chunkGWQEYPYMcjs.SelectTrigger,
|
|
261
261
|
{
|
|
262
262
|
id: "companySize",
|
|
263
263
|
"aria-label": "Company Size",
|
|
264
264
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
265
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectValue, { placeholder: "Select company size" })
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
268
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
269
269
|
] })
|
|
270
270
|
}
|
|
271
271
|
),
|
|
@@ -278,17 +278,17 @@ function ContactForm({
|
|
|
278
278
|
{
|
|
279
279
|
control,
|
|
280
280
|
name: "referralSource",
|
|
281
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
281
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGWQEYPYMcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
282
282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
283
|
-
|
|
283
|
+
_chunkGWQEYPYMcjs.SelectTrigger,
|
|
284
284
|
{
|
|
285
285
|
id: "referralSource",
|
|
286
286
|
"aria-label": "Referral Source",
|
|
287
287
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
288
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
288
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectValue, { placeholder: "Select an option" })
|
|
289
289
|
}
|
|
290
290
|
),
|
|
291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
291
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
292
292
|
] })
|
|
293
293
|
}
|
|
294
294
|
),
|
|
@@ -305,18 +305,18 @@ function ContactForm({
|
|
|
305
305
|
{
|
|
306
306
|
control,
|
|
307
307
|
name: "helpCategory",
|
|
308
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
308
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGWQEYPYMcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
309
309
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
|
-
|
|
310
|
+
_chunkGWQEYPYMcjs.SelectTrigger,
|
|
311
311
|
{
|
|
312
312
|
id: "helpCategory",
|
|
313
313
|
"aria-label": "Help Category",
|
|
314
314
|
"aria-required": true,
|
|
315
315
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
316
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
317
317
|
}
|
|
318
318
|
),
|
|
319
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
320
320
|
] })
|
|
321
321
|
}
|
|
322
322
|
),
|
|
@@ -328,7 +328,7 @@ function ContactForm({
|
|
|
328
328
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBM5MVGH3cjs.RequiredMark, {})
|
|
329
329
|
] }),
|
|
330
330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
331
|
-
|
|
331
|
+
_chunkGWQEYPYMcjs.Textarea,
|
|
332
332
|
{
|
|
333
333
|
id: "message",
|
|
334
334
|
...register("message"),
|
|
@@ -343,7 +343,7 @@ function ContactForm({
|
|
|
343
343
|
] }),
|
|
344
344
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
345
345
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
346
|
-
|
|
346
|
+
_chunk7OFPU7WEcjs.ChatAttachmentChipStrip,
|
|
347
347
|
{
|
|
348
348
|
attachments: attachments.attachments,
|
|
349
349
|
onRemove: attachments.removeAttachment,
|
|
@@ -352,7 +352,7 @@ function ContactForm({
|
|
|
352
352
|
),
|
|
353
353
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
354
354
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
-
|
|
355
|
+
_chunk7OFPU7WEcjs.ChatAttachmentAddButton,
|
|
356
356
|
{
|
|
357
357
|
attachmentsEnabled: true,
|
|
358
358
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPLYEKV3Ncjs = require('./chunk-PLYEKV3N.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ var _chunkOHFS7VOUcjs = require('./chunk-OHFS7VOU.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkGWQEYPYMcjs = require('./chunk-GWQEYPYM.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkLLRGR4I5cjs = require('./chunk-LLRGR4I5.cjs');
|
|
@@ -33,7 +33,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
33
33
|
function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
34
34
|
if (isFiltered) {
|
|
35
35
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36
|
-
|
|
36
|
+
_chunkPLYEKV3Ncjs.EmptyState,
|
|
37
37
|
{
|
|
38
38
|
type: "search",
|
|
39
39
|
title: filtered.title,
|
|
@@ -46,7 +46,7 @@ function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
|
46
46
|
}
|
|
47
47
|
const hasCta = Boolean(empty.ctaText && (empty.onCtaClick || empty.ctaHref));
|
|
48
48
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49
|
-
|
|
49
|
+
_chunkPLYEKV3Ncjs.EmptyState,
|
|
50
50
|
{
|
|
51
51
|
type: "generic",
|
|
52
52
|
title: empty.title,
|
|
@@ -63,7 +63,7 @@ function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
|
63
63
|
var _react = require('react');
|
|
64
64
|
|
|
65
65
|
function DevSectionView({ sectionKey, hero, preControls, children, showHeading = true }) {
|
|
66
|
-
const section =
|
|
66
|
+
const section = _chunkGWQEYPYMcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
67
67
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
68
68
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
69
69
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
@@ -114,7 +114,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
|
|
|
114
114
|
preControls,
|
|
115
115
|
(search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
116
116
|
search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
117
|
-
|
|
117
|
+
_chunkGWQEYPYMcjs.SearchInput,
|
|
118
118
|
{
|
|
119
119
|
showDropdown: false,
|
|
120
120
|
placeholder: search.placeholder,
|
|
@@ -124,7 +124,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
|
|
|
124
124
|
}
|
|
125
125
|
),
|
|
126
126
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
127
|
-
|
|
127
|
+
_chunkGWQEYPYMcjs.StatusFilterComponent,
|
|
128
128
|
{
|
|
129
129
|
selectedStatus: currentFilterValue,
|
|
130
130
|
onStatusChange: handleFilterChange,
|
|
@@ -148,7 +148,7 @@ function DevSectionPage({
|
|
|
148
148
|
shell = true
|
|
149
149
|
}) {
|
|
150
150
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
151
|
-
const section =
|
|
151
|
+
const section = _chunkGWQEYPYMcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
152
152
|
const backCfg = backButton === false ? void 0 : {
|
|
153
153
|
label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
|
|
154
154
|
onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
|
|
@@ -161,7 +161,7 @@ function DevSectionPage({
|
|
|
161
161
|
// duplicate title. (The hero icon is intentionally dropped: TitleBlock is
|
|
162
162
|
// frozen and renders title-only.)
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkGWQEYPYMcjs.PageLayout,
|
|
165
165
|
{
|
|
166
166
|
title: _nullishCoalesce(title, () => ( section.hero.title)),
|
|
167
167
|
subtitle: _nullishCoalesce(subtitle, () => ( section.hero.description)),
|
|
@@ -172,7 +172,7 @@ function DevSectionPage({
|
|
|
172
172
|
}
|
|
173
173
|
)
|
|
174
174
|
);
|
|
175
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
175
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
@@ -230,9 +230,9 @@ function getRelativeTime(timestamp) {
|
|
|
230
230
|
}
|
|
231
231
|
function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
232
232
|
const taskType = item.taskType;
|
|
233
|
-
const typeBadgeLabel =
|
|
234
|
-
const typeBadgeTextColor =
|
|
235
|
-
const statusBadgeScheme =
|
|
233
|
+
const typeBadgeLabel = _chunkGWQEYPYMcjs.TASK_TYPE_LABELS[taskType] || "TASK";
|
|
234
|
+
const typeBadgeTextColor = _chunkGWQEYPYMcjs.TASK_TYPE_TEXT_COLORS[taskType] || "";
|
|
235
|
+
const statusBadgeScheme = _chunk6NTPY5QAcjs.getStatusColorScheme.call(void 0, item.status);
|
|
236
236
|
const relativeTime = getRelativeTime(item.dateUpdated);
|
|
237
237
|
const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(", ")}` : ""}, ${item.id}`;
|
|
238
238
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start justify-between gap-[12px] content-md:flex-row content-md:gap-[16px]", children: [
|
|
@@ -244,7 +244,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
244
244
|
] }),
|
|
245
245
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-shrink-0 flex-row items-center gap-2 self-stretch content-md:w-auto content-md:flex-col content-md:items-end content-md:self-start", children: [
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
247
|
-
|
|
247
|
+
_chunk6NTPY5QAcjs.StatusBadge,
|
|
248
248
|
{
|
|
249
249
|
text: item.status.toUpperCase(),
|
|
250
250
|
colorScheme: statusBadgeScheme,
|
|
@@ -253,7 +253,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
253
253
|
}
|
|
254
254
|
),
|
|
255
255
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
256
|
-
|
|
256
|
+
_chunk6NTPY5QAcjs.StatusBadge,
|
|
257
257
|
{
|
|
258
258
|
text: typeBadgeLabel,
|
|
259
259
|
variant: "card",
|
|
@@ -261,7 +261,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
|
|
|
261
261
|
}
|
|
262
262
|
),
|
|
263
263
|
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
264
|
-
|
|
264
|
+
_chunk6NTPY5QAcjs.AvatarStack,
|
|
265
265
|
{
|
|
266
266
|
size: "xs",
|
|
267
267
|
className: "ml-auto content-md:ml-0",
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMB4PNY7Ccjs = require('./chunk-MB4PNY7C.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3PLDQDE6cjs = require('./chunk-3PLDQDE6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkUDFRUKLCcjs = require('./chunk-UDFRUKLC.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,13 +18,12 @@ var _chunkXOYH2YQEcjs = require('./chunk-XOYH2YQE.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkGWQEYPYMcjs = require('./chunk-GWQEYPYM.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
var _chunkLDPEQGKTcjs = require('./chunk-LDPEQGKT.cjs');
|
|
26
|
+
var _chunk7OFPU7WEcjs = require('./chunk-7OFPU7WE.cjs');
|
|
28
27
|
|
|
29
28
|
|
|
30
29
|
|
|
@@ -34,10 +33,11 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
34
33
|
|
|
35
34
|
|
|
36
35
|
|
|
37
|
-
|
|
36
|
+
|
|
37
|
+
var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkLM7TXMLUcjs = require('./chunk-LM7TXMLU.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -62,7 +62,7 @@ function OnboardingGuidesCatalogSkeleton() {
|
|
|
62
62
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-6 w-40 rounded bg-ods-border/70" }),
|
|
63
63
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-8 rounded-full bg-ods-text-secondary/20" })
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
65
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
|
|
66
66
|
] }, sectionIdx)) })
|
|
67
67
|
] });
|
|
68
68
|
}
|
|
@@ -86,10 +86,10 @@ function OnboardingGuidesCatalogView({
|
|
|
86
86
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
87
87
|
const activeSection = sectionValue || "all";
|
|
88
88
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
89
|
-
const guidesRes =
|
|
89
|
+
const guidesRes = _chunkUDFRUKLCcjs.useSelfFetch.call(void 0,
|
|
90
90
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
91
91
|
);
|
|
92
|
-
const sectionsRes =
|
|
92
|
+
const sectionsRes = _chunkUDFRUKLCcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
93
93
|
const guides = _react.useMemo.call(void 0, () => _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( [])), [initialGuides, _optionalChain([guidesRes, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.data])]);
|
|
94
94
|
const sections = _react.useMemo.call(void 0,
|
|
95
95
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -132,25 +132,25 @@ function OnboardingGuidesCatalogView({
|
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
134
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
135
|
-
const docSearch =
|
|
135
|
+
const docSearch = _chunk3PLDQDE6cjs.useDocSearch.call(void 0, {
|
|
136
136
|
source,
|
|
137
137
|
baseRoute: basePath,
|
|
138
138
|
onNavigate: (path) => router.push(path),
|
|
139
139
|
tableIds: ["onboarding-guides"]
|
|
140
140
|
});
|
|
141
141
|
const defaultRenderCard = (guide) => {
|
|
142
|
-
const cta =
|
|
142
|
+
const cta = _chunkGWQEYPYMcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
143
143
|
type: "onboarding_guide",
|
|
144
144
|
slug: guide.slug,
|
|
145
145
|
basePath,
|
|
146
146
|
platforms: guide.onboarding_guide_platforms
|
|
147
147
|
});
|
|
148
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
148
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
149
149
|
};
|
|
150
150
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
151
151
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
152
152
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
|
|
153
|
+
_chunk3PLDQDE6cjs.DocSearchBar,
|
|
154
154
|
{
|
|
155
155
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
156
156
|
query: docSearch.query,
|
|
@@ -162,7 +162,7 @@ function OnboardingGuidesCatalogView({
|
|
|
162
162
|
}
|
|
163
163
|
),
|
|
164
164
|
sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
165
|
-
|
|
165
|
+
_chunkGWQEYPYMcjs.FilterPillRow,
|
|
166
166
|
{
|
|
167
167
|
label: "Section",
|
|
168
168
|
selectedValue: activeSection,
|
|
@@ -172,7 +172,7 @@ function OnboardingGuidesCatalogView({
|
|
|
172
172
|
)
|
|
173
173
|
] });
|
|
174
174
|
if (selfFetch && guidesRes.error) {
|
|
175
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
175
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
176
176
|
}
|
|
177
177
|
if (selfFetch && guidesRes.data == null && isLoading) {
|
|
178
178
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
|
|
@@ -204,7 +204,7 @@ function OnboardingGuideDetailView({
|
|
|
204
204
|
slug,
|
|
205
205
|
guideEndpoint,
|
|
206
206
|
related = [],
|
|
207
|
-
MarkdownRenderer =
|
|
207
|
+
MarkdownRenderer = _chunkGWQEYPYMcjs.RichMarkdownRenderer,
|
|
208
208
|
renderRelatedCard,
|
|
209
209
|
backHref,
|
|
210
210
|
backLabel = "Back to Getting Started",
|
|
@@ -214,51 +214,51 @@ function OnboardingGuideDetailView({
|
|
|
214
214
|
}) {
|
|
215
215
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
216
216
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
217
|
-
const captions =
|
|
217
|
+
const captions = _chunk7OFPU7WEcjs.useCaptions.call(void 0, );
|
|
218
218
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
219
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
219
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
220
220
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
221
|
-
const { data: guide, isLoading, error, reload } =
|
|
222
|
-
const { ref: videoWarmupRef } =
|
|
221
|
+
const { data: guide, isLoading, error, reload } = _chunkUDFRUKLCcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
222
|
+
const { ref: videoWarmupRef } = _chunk6NTPY5QAcjs.useVideoWarmup.call(void 0, {
|
|
223
223
|
videoUrl: _optionalChain([guide, 'optionalAccess', _8 => _8.main_video_url]),
|
|
224
224
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
|
|
225
225
|
});
|
|
226
226
|
if (error || !guide && !isLoading) {
|
|
227
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
227
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
228
228
|
}
|
|
229
229
|
if (!guide) {
|
|
230
230
|
return renderShell(
|
|
231
231
|
// Match the loaded page's top offset (TitleBlock's
|
|
232
232
|
// `pt-[var(--spacing-system-l)]`) so content doesn't jump on load.
|
|
233
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMB4PNY7Ccjs.DetailPageSkeleton, { bare: true, showImageGallery: false }) })
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", guide);
|
|
237
237
|
const videoPoster = guide.main_video_thumbnail || guide.featured_image || guide.og_image_url || // `buildOgPlaceholderUrl` always returns a usable string (relative route at
|
|
238
238
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
239
|
-
|
|
239
|
+
_chunkLM7TXMLUcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), guide.title, { aspect: "wide" });
|
|
240
240
|
const defaultRenderRelatedCard = (g) => {
|
|
241
|
-
const cta =
|
|
241
|
+
const cta = _chunkGWQEYPYMcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
242
242
|
type: "onboarding_guide",
|
|
243
243
|
slug: g.slug,
|
|
244
244
|
basePath,
|
|
245
245
|
platforms: g.onboarding_guide_platforms
|
|
246
246
|
});
|
|
247
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
247
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
248
248
|
};
|
|
249
249
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
250
250
|
return renderShell(
|
|
251
251
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
252
|
-
|
|
252
|
+
_chunkGWQEYPYMcjs.PageLayout,
|
|
253
253
|
{
|
|
254
254
|
title: guide.title,
|
|
255
255
|
titleSize: "h1",
|
|
256
256
|
titleWrap: true,
|
|
257
257
|
backButton: { label: backLabel, onClick: () => router.push(resolvedBackHref) },
|
|
258
258
|
children: [
|
|
259
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
259
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
260
260
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
261
|
-
|
|
261
|
+
_chunk6NTPY5QAcjs.EntityAuthorCard,
|
|
262
262
|
{
|
|
263
263
|
author: guide.author,
|
|
264
264
|
authorHref,
|
|
@@ -273,7 +273,7 @@ function OnboardingGuideDetailView({
|
|
|
273
273
|
}
|
|
274
274
|
),
|
|
275
275
|
(guide.main_video_url || guide.youtube_url) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
276
|
-
|
|
276
|
+
_chunk7OFPU7WEcjs.EntityVideoSection,
|
|
277
277
|
{
|
|
278
278
|
mainVideoUrl: guide.main_video_url,
|
|
279
279
|
youtubeUrl: guide.youtube_url || void 0,
|
|
@@ -291,17 +291,17 @@ function OnboardingGuideDetailView({
|
|
|
291
291
|
) }),
|
|
292
292
|
guide.content && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: guide.content }) }),
|
|
293
293
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
-
|
|
294
|
+
_chunk7OFPU7WEcjs.VideoBitesStrip,
|
|
295
295
|
{
|
|
296
296
|
bites: _nullishCoalesce(guide.video_bites, () => ( [])),
|
|
297
297
|
filterPublished: true,
|
|
298
298
|
showTitle: false,
|
|
299
|
-
profile:
|
|
299
|
+
profile: _chunk6NTPY5QAcjs.toStripProfile.call(void 0, guide.author),
|
|
300
300
|
href: `/onboarding-guides/${guide.slug}`
|
|
301
301
|
}
|
|
302
302
|
),
|
|
303
303
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
304
|
-
|
|
304
|
+
_chunkMB4PNY7Ccjs.ArticleAuthorByline,
|
|
305
305
|
{
|
|
306
306
|
author: _nullishCoalesce(_optionalChain([guide, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
307
307
|
avatar: _optionalChain([guide, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useSelfFetch
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4IBPRIQH.js";
|
|
5
5
|
import {
|
|
6
6
|
PageLayout,
|
|
7
7
|
PageShell
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G6UMNAVI.js";
|
|
9
9
|
import {
|
|
10
10
|
useScrollToHash
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KUC673HM.js";
|
|
12
12
|
import {
|
|
13
13
|
buildSuggestionUrl
|
|
14
14
|
} from "./chunk-UT4YHQZW.js";
|
|
@@ -16,21 +16,21 @@ import {
|
|
|
16
16
|
faqItemAnchor,
|
|
17
17
|
faqSectionSlug,
|
|
18
18
|
parseFaqHash
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7GEBFJT2.js";
|
|
20
20
|
import {
|
|
21
21
|
STICKY_HEADER_OFFSET_PX,
|
|
22
22
|
navigateSamePageHash,
|
|
23
23
|
serializeJsonLd
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CZ7Y7UG4.js";
|
|
25
25
|
import {
|
|
26
26
|
useRouter
|
|
27
27
|
} from "./chunk-GY4IZG22.js";
|
|
28
|
-
import {
|
|
29
|
-
Chevron02DownIcon
|
|
30
|
-
} from "./chunk-Z2VNQQ74.js";
|
|
31
28
|
import {
|
|
32
29
|
SECTION_HEADING_CLASS
|
|
33
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FI6GMDO7.js";
|
|
31
|
+
import {
|
|
32
|
+
Chevron02DownIcon
|
|
33
|
+
} from "./chunk-NCPTID44.js";
|
|
34
34
|
import {
|
|
35
35
|
cn
|
|
36
36
|
} from "./chunk-7RXWKTAP.js";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ArticleAuthorByline,
|
|
4
4
|
DetailPageSkeleton
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IKJA3Y7Z.js";
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PXOQIA5K.js";
|
|
10
10
|
import {
|
|
11
11
|
useSelfFetch
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4IBPRIQH.js";
|
|
13
13
|
import {
|
|
14
14
|
EntityTagBadges,
|
|
15
15
|
FilterPillRow,
|
|
@@ -18,13 +18,12 @@ import {
|
|
|
18
18
|
PageShell,
|
|
19
19
|
RichMarkdownRenderer,
|
|
20
20
|
resolveContentHref
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-G6UMNAVI.js";
|
|
22
22
|
import {
|
|
23
23
|
EntityVideoSection,
|
|
24
24
|
VideoBitesStrip,
|
|
25
|
-
useCaptions
|
|
26
|
-
|
|
27
|
-
} from "./chunk-2JDVL7UV.js";
|
|
25
|
+
useCaptions
|
|
26
|
+
} from "./chunk-7GEBFJT2.js";
|
|
28
27
|
import {
|
|
29
28
|
useRouter,
|
|
30
29
|
useSearchParams
|
|
@@ -33,11 +32,12 @@ import {
|
|
|
33
32
|
EntityAuthorCard,
|
|
34
33
|
OnboardingGuideCard,
|
|
35
34
|
OnboardingGuideCardSkeleton,
|
|
36
|
-
toStripProfile
|
|
37
|
-
|
|
35
|
+
toStripProfile,
|
|
36
|
+
useVideoWarmup
|
|
37
|
+
} from "./chunk-FI6GMDO7.js";
|
|
38
38
|
import {
|
|
39
39
|
buildOgPlaceholderUrl
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FXJ3WWUB.js";
|
|
41
41
|
import {
|
|
42
42
|
useChatRuntime
|
|
43
43
|
} from "./chunk-E4ABZWTJ.js";
|