@flamingo-stack/openframe-frontend-core 0.0.704-snapshot.20261006133653 → 0.0.704
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-3256UJXS.cjs → chunk-262YQFOS.cjs} +24 -24
- package/dist/{chunk-PPEZGUL7.js → chunk-2G546OND.js} +5 -5
- package/dist/{chunk-IZHZMBIX.js → chunk-2JDVL7UV.js} +1 -3
- package/dist/{chunk-M6HTJTFH.cjs → chunk-4DQMTBMK.cjs} +11 -11
- package/dist/{chunk-5EFZO5EB.js → chunk-4KGXLVCF.js} +3 -3
- package/dist/{chunk-64HOMVYC.js → chunk-5QJDM6UV.js} +3 -3
- package/dist/{chunk-PFC2HWQA.js → chunk-6WQIUQUC.js} +5 -5
- package/dist/{chunk-QC7Q3XCE.cjs → chunk-7JIL3WOH.cjs} +14 -14
- package/dist/{chunk-4S7TJYRQ.js → chunk-7LFIKJX2.js} +2 -2
- package/dist/{chunk-7ZYIC7NA.cjs → chunk-AMYY3PNL.cjs} +42 -42
- package/dist/{chunk-TYWLNCNH.cjs → chunk-C3BWIU7R.cjs} +5 -1
- package/dist/{chunk-SAAZEWUR.cjs → chunk-C7XGRLT5.cjs} +6 -6
- package/dist/{chunk-VMAZCLX4.js → chunk-ERCV6HHJ.js} +4 -4
- package/dist/{chunk-NJDHFC55.js → chunk-FXENTYE5.js} +1 -1
- package/dist/{chunk-7GHB2IK6.cjs → chunk-HFJW24JJ.cjs} +79 -79
- package/dist/{chunk-A6WVQKOZ.js → chunk-HJAYVKWQ.js} +6 -6
- package/dist/{chunk-POZ7F77D.js → chunk-I7DFUQMN.js} +6 -5
- package/dist/{chunk-MKXO4Q5P.js → chunk-IHU5ANUY.js} +1 -1
- package/dist/{chunk-JKEEFQOX.cjs → chunk-IZGDG5X6.cjs} +32 -32
- package/dist/{chunk-IFUQVZF4.js → chunk-JEYRXT5L.js} +7 -7
- package/dist/{chunk-ZQZFIE2K.cjs → chunk-L3IC42IF.cjs} +18 -17
- package/dist/{chunk-XBWE423R.cjs → chunk-LDPEQGKT.cjs} +52 -54
- package/dist/{chunk-P23CRLU4.cjs → chunk-LTSTC3N5.cjs} +379 -379
- package/dist/{chunk-2QEUFXNS.cjs → chunk-MGGGBHYD.cjs} +10 -10
- package/dist/{chunk-UBP5RNGK.cjs → chunk-MI3JUJ75.cjs} +21 -21
- package/dist/{chunk-IXPUM3AW.cjs → chunk-N3TO7JV3.cjs} +49 -49
- package/dist/{chunk-OSNIZNVH.js → chunk-NRLJUBCS.js} +2 -2
- package/dist/{chunk-OUHMD6EU.js → chunk-QVSFBSWV.js} +4 -4
- package/dist/{chunk-BH6PJP66.cjs → chunk-SYXQLETR.cjs} +9 -9
- package/dist/{chunk-V3H26CNS.cjs → chunk-UK62YTH6.cjs} +2 -2
- package/dist/{chunk-VYWMEL5F.js → chunk-VTASHWER.js} +3 -3
- package/dist/{chunk-PDWVPI3S.js → chunk-WUJNYGO2.js} +4 -0
- package/dist/{chunk-MV4HYG3B.js → chunk-XATTBO5X.js} +1 -1
- package/dist/{chunk-F7Y2ZS5U.cjs → chunk-XIFOBQRQ.cjs} +4 -4
- package/dist/{chunk-ACV4DFQ3.cjs → chunk-XJKZ4IKT.cjs} +4 -4
- package/dist/{chunk-IKCQK67U.js → chunk-ZQFZSFQI.js} +2 -2
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/case-studies/index.js +5 -5
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/contact/index.js +5 -5
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/docs/index.js +8 -8
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/embeds/index.js +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/index.js +4 -4
- package/dist/components/help-center-pages/index.cjs +81 -81
- package/dist/components/help-center-pages/index.js +16 -16
- package/dist/components/index.cjs +47 -47
- package/dist/components/index.js +15 -15
- package/dist/components/meeting-scheduler/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.js +4 -4
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/navigation/index.js +7 -7
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/tickets/index.js +8 -8
- package/dist/components/ui/index.cjs +5 -5
- package/dist/components/ui/index.js +4 -4
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/src/components/chat/chat-input.tsx +1 -5
- package/src/components/platform/SoftwareSourceBadge.tsx +1 -1
- package/src/styles/app-globals.css +0 -13
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkLTSTC3N5cjs = require('./chunk-LTSTC3N5.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkMGGGBHYDcjs = require('./chunk-MGGGBHYD.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkLDPEQGKTcjs = require('./chunk-LDPEQGKT.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -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 = _chunkLDPEQGKTcjs.useChatAttachments.call(void 0, );
|
|
117
|
+
const builtInSubmission = _chunkMGGGBHYDcjs.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 } = _chunkMGGGBHYDcjs.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 = _chunkMGGGBHYDcjs.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;
|
|
@@ -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
|
+
..._chunkLTSTC3N5cjs.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, _chunkLTSTC3N5cjs.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, _chunkLTSTC3N5cjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
260
|
-
|
|
260
|
+
_chunkLTSTC3N5cjs.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, _chunkLTSTC3N5cjs.SelectValue, { placeholder: "Select company size" })
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
268
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.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, _chunkLTSTC3N5cjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
282
282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
283
|
-
|
|
283
|
+
_chunkLTSTC3N5cjs.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, _chunkLTSTC3N5cjs.SelectValue, { placeholder: "Select an option" })
|
|
289
289
|
}
|
|
290
290
|
),
|
|
291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
291
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.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, _chunkLTSTC3N5cjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
309
309
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
|
-
|
|
310
|
+
_chunkLTSTC3N5cjs.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, _chunkLTSTC3N5cjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
317
317
|
}
|
|
318
318
|
),
|
|
319
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.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
|
+
_chunkLTSTC3N5cjs.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
|
+
_chunkLDPEQGKTcjs.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
|
+
_chunkLDPEQGKTcjs.ChatAttachmentAddButton,
|
|
356
356
|
{
|
|
357
357
|
attachmentsEnabled: true,
|
|
358
358
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useOptionalTicketLive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7LFIKJX2.js";
|
|
5
5
|
import {
|
|
6
6
|
AppLayoutDrawerContainerContext,
|
|
7
7
|
AppLayoutDrawerCoordinationContext,
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
UnreadDot,
|
|
14
14
|
buildTicketOpenHref,
|
|
15
15
|
useOptionalNotifications
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4KGXLVCF.js";
|
|
17
17
|
import {
|
|
18
18
|
useFocusTrap,
|
|
19
19
|
useLocalStorage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IHU5ANUY.js";
|
|
21
21
|
import {
|
|
22
22
|
OVERLAY_BACKDROP_CLASS,
|
|
23
23
|
useIsHydrated
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2JDVL7UV.js";
|
|
25
25
|
import {
|
|
26
26
|
useHeaderHeight
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WUJNYGO2.js";
|
|
28
28
|
import {
|
|
29
29
|
LogOutIcon,
|
|
30
30
|
MingoIcon,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
useNearViewport,
|
|
22
22
|
useResetOnPageHidden,
|
|
23
23
|
useSuppressCloneFocus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WUJNYGO2.js";
|
|
25
25
|
import {
|
|
26
26
|
useRouter
|
|
27
27
|
} from "./chunk-GY4IZG22.js";
|
|
@@ -6306,7 +6306,6 @@ var ChatInput = forwardRef15((allProps, ref) => {
|
|
|
6306
6306
|
isEmpty && !showPreview && /* @__PURE__ */ jsx31(
|
|
6307
6307
|
"span",
|
|
6308
6308
|
{
|
|
6309
|
-
"data-editor-ghost": true,
|
|
6310
6309
|
className: cn(
|
|
6311
6310
|
// One line, clipped with an ellipsis (Figma 954:28455): the
|
|
6312
6311
|
// disabled copy is a sentence, and the panel's narrowest
|
|
@@ -6322,7 +6321,6 @@ var ChatInput = forwardRef15((allProps, ref) => {
|
|
|
6322
6321
|
showPreview && /* @__PURE__ */ jsx31(
|
|
6323
6322
|
"p",
|
|
6324
6323
|
{
|
|
6325
|
-
"data-editor-ghost": true,
|
|
6326
6324
|
className: cn(
|
|
6327
6325
|
"pointer-events-none absolute inset-x-0 top-0 m-0 select-none truncate text-ods-text-secondary text-h4",
|
|
6328
6326
|
hasChips && "!leading-9"
|
|
@@ -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(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLTSTC3N5cjs = require('./chunk-LTSTC3N5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkABU3TGXAcjs = require('./chunk-ABU3TGXA.cjs');
|
|
@@ -12,10 +12,10 @@ var _chunkABU3TGXAcjs = require('./chunk-ABU3TGXA.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkLDPEQGKTcjs = require('./chunk-LDPEQGKT.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkC3BWIU7Rcjs = require('./chunk-C3BWIU7R.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
39
39
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
40
40
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
41
41
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
42
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
42
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkLDPEQGKTcjs.resolveSourceIcon.call(void 0, {
|
|
43
43
|
sourceRepo,
|
|
44
44
|
documentType: docType
|
|
45
45
|
});
|
|
@@ -69,7 +69,7 @@ function DocSearchBar({
|
|
|
69
69
|
renderResult
|
|
70
70
|
}) {
|
|
71
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
|
|
72
|
+
_chunkLTSTC3N5cjs.SearchInput,
|
|
73
73
|
{
|
|
74
74
|
placeholder,
|
|
75
75
|
value: query,
|
|
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
|
|
|
119
119
|
results.push({
|
|
120
120
|
id: `group-${entry.repo}`,
|
|
121
121
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
122
|
-
title: `${
|
|
122
|
+
title: `${_chunkLDPEQGKTcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkLDPEQGKTcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
123
123
|
path: rows[0].path,
|
|
124
124
|
type: "file",
|
|
125
125
|
metadata: {
|
|
@@ -254,7 +254,7 @@ function useDocSearch(config) {
|
|
|
254
254
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
255
255
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
256
256
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
257
|
-
const debouncedQuery =
|
|
257
|
+
const debouncedQuery = _chunkC3BWIU7Rcjs.useDebounce.call(void 0, query, 300);
|
|
258
258
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
259
259
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
260
260
|
if (wasSearchable !== searchable) {
|
|
@@ -311,27 +311,27 @@ function useDocSearch(config) {
|
|
|
311
311
|
case "navigate-same-tab": {
|
|
312
312
|
if (wantsNewTab) {
|
|
313
313
|
setKeepOpen(true);
|
|
314
|
-
window.open(action.href, "_blank",
|
|
314
|
+
window.open(action.href, "_blank", _chunkLDPEQGKTcjs.NEW_TAB_FEATURES);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
setKeepOpen(false);
|
|
318
318
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
319
319
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
320
|
-
router.push(
|
|
320
|
+
router.push(_chunkLDPEQGKTcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
case "navigate-new-tab":
|
|
324
324
|
setKeepOpen(true);
|
|
325
325
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
326
326
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
327
|
-
|
|
327
|
+
_chunkLDPEQGKTcjs.resolveExternalNavigation.call(void 0, {
|
|
328
328
|
href: action.href,
|
|
329
329
|
targetPlatform,
|
|
330
330
|
runtime
|
|
331
331
|
}).open();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
window.open(action.href, "_blank",
|
|
334
|
+
window.open(action.href, "_blank", _chunkLDPEQGKTcjs.NEW_TAB_FEATURES);
|
|
335
335
|
return;
|
|
336
336
|
case "ask-ai":
|
|
337
337
|
setKeepOpen(false);
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
useLocalStorage,
|
|
24
24
|
useNotificationPermission,
|
|
25
25
|
useToast
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IHU5ANUY.js";
|
|
27
27
|
import {
|
|
28
28
|
Pagination
|
|
29
29
|
} from "./chunk-UT4YHQZW.js";
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
useIsHydrated,
|
|
98
98
|
useResizablePanelSize,
|
|
99
99
|
useScrollFade
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-2JDVL7UV.js";
|
|
101
101
|
import {
|
|
102
102
|
NEAR_VIEWPORT_ROOT_MARGIN,
|
|
103
103
|
ToolIcon,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
useDebounce,
|
|
111
111
|
useInView,
|
|
112
112
|
useNearViewport
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-WUJNYGO2.js";
|
|
114
114
|
import {
|
|
115
115
|
usePathname,
|
|
116
116
|
useRouter,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
SearchInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4KGXLVCF.js";
|
|
5
5
|
import {
|
|
6
6
|
contentFetch
|
|
7
7
|
} from "./chunk-MP2C3LJ4.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
resolveExternalNavigation,
|
|
13
13
|
resolveSourceIcon,
|
|
14
14
|
stripSameOriginToPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2JDVL7UV.js";
|
|
16
16
|
import {
|
|
17
17
|
useDebounce
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WUJNYGO2.js";
|
|
19
19
|
import {
|
|
20
20
|
useRouter
|
|
21
21
|
} from "./chunk-GY4IZG22.js";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
FileDownloadCard,
|
|
4
4
|
GoogleSheetsViewer,
|
|
5
5
|
PdfViewer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NRLJUBCS.js";
|
|
7
7
|
import {
|
|
8
8
|
MobileNavigationDropdown,
|
|
9
9
|
MultiLevelNavigation,
|
|
10
10
|
StickySectionNav
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZQFZSFQI.js";
|
|
12
12
|
import {
|
|
13
13
|
DocSearchBar,
|
|
14
14
|
useDocSearch
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5QJDM6UV.js";
|
|
16
16
|
import {
|
|
17
17
|
CategorySidebarSkeleton,
|
|
18
18
|
DEFAULT_FOLDER_INDEX_FILE,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
findDocNodeByPath,
|
|
23
23
|
getDocAncestorNodeIds,
|
|
24
24
|
stripFolderIndexFromPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4KGXLVCF.js";
|
|
26
26
|
import {
|
|
27
27
|
contentFetch
|
|
28
28
|
} from "./chunk-MP2C3LJ4.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
getScrollableAncestor,
|
|
33
33
|
navigateSamePageHash,
|
|
34
34
|
scrollElementIntoView
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WUJNYGO2.js";
|
|
36
36
|
import {
|
|
37
37
|
useRouter
|
|
38
38
|
} from "./chunk-GY4IZG22.js";
|
|
@@ -5,10 +5,10 @@ var _chunkXOYH2YQEcjs = require('./chunk-XOYH2YQE.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLTSTC3N5cjs = require('./chunk-LTSTC3N5.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkMGGGBHYDcjs = require('./chunk-MGGGBHYD.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkBIZNSF3Ucjs = require('./chunk-BIZNSF3U.cjs');
|
|
@@ -16,12 +16,12 @@ var _chunkBIZNSF3Ucjs = require('./chunk-BIZNSF3U.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkLDPEQGKTcjs = require('./chunk-LDPEQGKT.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkC3BWIU7Rcjs = require('./chunk-C3BWIU7R.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -56,7 +56,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
56
56
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
|
-
id:
|
|
59
|
+
id: _chunkLDPEQGKTcjs.faqItemAnchor.call(void 0, item.id),
|
|
60
60
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
61
61
|
children: [
|
|
62
62
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -149,7 +149,7 @@ function groupFaqsBySection(faqs) {
|
|
|
149
149
|
}
|
|
150
150
|
let group = byName.get(name);
|
|
151
151
|
if (!group) {
|
|
152
|
-
group = { section: name, slug:
|
|
152
|
+
group = { section: name, slug: _chunkLDPEQGKTcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
153
153
|
byName.set(name, group);
|
|
154
154
|
}
|
|
155
155
|
group.items.push(item);
|
|
@@ -192,7 +192,7 @@ function GroupedFaqList({
|
|
|
192
192
|
}
|
|
193
193
|
if (bestId) setActiveSlug(bestId);
|
|
194
194
|
},
|
|
195
|
-
{ rootMargin: `-${
|
|
195
|
+
{ rootMargin: `-${_chunkC3BWIU7Rcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
196
196
|
);
|
|
197
197
|
for (const group of navGroupsRef.current) {
|
|
198
198
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -202,7 +202,7 @@ function GroupedFaqList({
|
|
|
202
202
|
}, [slugKey]);
|
|
203
203
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
204
204
|
_react.useEffect.call(void 0, () => {
|
|
205
|
-
const refresh = () => setHashTarget(
|
|
205
|
+
const refresh = () => setHashTarget(_chunkLDPEQGKTcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
206
206
|
refresh();
|
|
207
207
|
window.addEventListener("hashchange", refresh);
|
|
208
208
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -219,7 +219,7 @@ function GroupedFaqList({
|
|
|
219
219
|
}, [groups, hashTarget]);
|
|
220
220
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
221
221
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _10 => _10.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
222
|
-
|
|
222
|
+
_chunkMGGGBHYDcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkC3BWIU7Rcjs.STICKY_HEADER_OFFSET_PX });
|
|
223
223
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
224
224
|
if (pillSyncedHash !== hashTarget) {
|
|
225
225
|
setPillSyncedHash(hashTarget);
|
|
@@ -227,8 +227,8 @@ function GroupedFaqList({
|
|
|
227
227
|
}
|
|
228
228
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
229
229
|
e.preventDefault();
|
|
230
|
-
|
|
231
|
-
headerOffset:
|
|
230
|
+
_chunkC3BWIU7Rcjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
231
|
+
headerOffset: _chunkC3BWIU7Rcjs.STICKY_HEADER_OFFSET_PX,
|
|
232
232
|
history: "replace"
|
|
233
233
|
});
|
|
234
234
|
}, []);
|
|
@@ -310,7 +310,7 @@ function FaqSection({
|
|
|
310
310
|
"script",
|
|
311
311
|
{
|
|
312
312
|
type: "application/ld+json",
|
|
313
|
-
dangerouslySetInnerHTML: { __html:
|
|
313
|
+
dangerouslySetInnerHTML: { __html: _chunkC3BWIU7Rcjs.serializeJsonLd.call(void 0, schema) }
|
|
314
314
|
}
|
|
315
315
|
)
|
|
316
316
|
] });
|
|
@@ -336,7 +336,7 @@ function FaqDocumentPage({
|
|
|
336
336
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
|
|
337
337
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
|
|
338
338
|
};
|
|
339
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
339
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
340
340
|
FaqSection,
|
|
341
341
|
{
|
|
342
342
|
initialFaqs,
|
|
@@ -349,7 +349,7 @@ function FaqDocumentPage({
|
|
|
349
349
|
minResults
|
|
350
350
|
}
|
|
351
351
|
) });
|
|
352
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLTSTC3N5cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createSseSubscription
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4KGXLVCF.js";
|
|
5
5
|
import {
|
|
6
6
|
useChatIdentity
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2JDVL7UV.js";
|
|
8
8
|
import {
|
|
9
9
|
embedAuthedFetch
|
|
10
10
|
} from "./chunk-NDESEPW5.js";
|