@flamingo-stack/openframe-frontend-core 0.0.810 → 0.0.811
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/{case-study-card-MEWJNF4N.cjs → case-study-card-AMINZROX.cjs} +5 -5
- package/dist/{chunk-FRS2VO22.cjs → chunk-243TS7YL.cjs} +38 -38
- package/dist/{chunk-GAHXURKJ.cjs → chunk-5QLDHPPU.cjs} +2 -2
- package/dist/{chunk-MAQFG62O.cjs → chunk-66J7ZSI5.cjs} +34 -34
- package/dist/{chunk-RKNCNL6K.cjs → chunk-6GT3ZL27.cjs} +28 -28
- package/dist/{chunk-PRCGRDHV.cjs → chunk-7Y6M4FW4.cjs} +5 -5
- package/dist/{chunk-TOWVMBAP.cjs → chunk-ACCZCRXT.cjs} +14 -14
- package/dist/{chunk-VXAKQRV7.cjs → chunk-APOMNC7H.cjs} +5 -5
- package/dist/{chunk-3FBXQSSC.cjs → chunk-CB77J5L7.cjs} +858 -664
- package/dist/{chunk-VHX4A4SA.cjs → chunk-CC3Q3MQG.cjs} +2 -2
- package/dist/{chunk-TOTR2WMH.cjs → chunk-CJ7W2SY4.cjs} +8 -8
- package/dist/{chunk-CZWQCYKV.cjs → chunk-CLU2KJFB.cjs} +3 -3
- package/dist/{chunk-OJZBZH56.cjs → chunk-CNTBGJA7.cjs} +3 -3
- package/dist/{chunk-F26COFTW.cjs → chunk-CPP2APON.cjs} +89 -89
- package/dist/{chunk-TT64NRFU.cjs → chunk-ERLMCSGF.cjs} +3 -3
- package/dist/{chunk-RPBOWCME.cjs → chunk-FK2WFU7R.cjs} +17 -17
- package/dist/{chunk-7PNRXJX2.cjs → chunk-FX35L4Y6.cjs} +3 -3
- package/dist/{chunk-5GJM7VRR.cjs → chunk-GI3MMBP3.cjs} +91 -26
- package/dist/{chunk-EKDLVUEA.cjs → chunk-GU3GJ5DH.cjs} +48 -48
- package/dist/{chunk-X2JSCOOR.cjs → chunk-IQLXO6EI.cjs} +97 -97
- package/dist/{chunk-J4QORJMC.cjs → chunk-J6C7F63P.cjs} +113 -113
- package/dist/{chunk-PIKHEBG5.cjs → chunk-JNWJB4Z5.cjs} +52 -52
- package/dist/{chunk-5MTYKS2Q.cjs → chunk-KVDUWXVZ.cjs} +4 -4
- package/dist/{chunk-V4FXUIMH.cjs → chunk-LC65AC6M.cjs} +4 -4
- package/dist/{chunk-FCFYZIOY.cjs → chunk-MDBOYMCW.cjs} +22 -22
- package/dist/{chunk-AQXKXZWB.cjs → chunk-MG3HJIGG.cjs} +4 -4
- package/dist/{chunk-KVJKKVB3.cjs → chunk-NZSWROGM.cjs} +7 -7
- package/dist/{chunk-B6DIM5JG.cjs → chunk-O32RLIN4.cjs} +6 -6
- package/dist/{chunk-2C63MX75.cjs → chunk-O4MEG2ZS.cjs} +21 -21
- package/dist/{chunk-4W77VLQV.cjs → chunk-OQDPZOGC.cjs} +6 -6
- package/dist/{chunk-ZXBRPQND.cjs → chunk-PCVY63WQ.cjs} +17 -17
- package/dist/{chunk-ML3DG4SS.cjs → chunk-PMOMZSCX.cjs} +5 -5
- package/dist/{chunk-TUZV2ZQY.cjs → chunk-Q7QYAINS.cjs} +2 -2
- package/dist/{chunk-ETI7OMPU.cjs → chunk-R55KNVPR.cjs} +71 -71
- package/dist/{chunk-NG3RKTQU.cjs → chunk-SFUNXMY3.cjs} +8 -8
- package/dist/{chunk-GG36TCKP.cjs → chunk-TKK66KHU.cjs} +6 -6
- package/dist/{chunk-TGOJHOQR.cjs → chunk-U2MHQBL4.cjs} +3 -3
- package/dist/{chunk-I3RJLXEL.cjs → chunk-UP3TLY2V.cjs} +131 -131
- package/dist/{chunk-CLMUD56S.cjs → chunk-VXMPVDOS.cjs} +26 -26
- package/dist/{chunk-MSAXZRXZ.cjs → chunk-WX5WDSKV.cjs} +583 -582
- package/dist/{chunk-R2ABQG2T.cjs → chunk-XLEWM5X5.cjs} +53 -53
- package/dist/{chunk-SZHDXXMK.cjs → chunk-YSDB6HGQ.cjs} +3 -3
- package/dist/{chunk-JLKGLPDC.cjs → chunk-ZW25QUJK.cjs} +16 -16
- package/dist/{chunk-FLW2VL5W.cjs → chunk-ZZO3FGPM.cjs} +24 -24
- package/dist/{cloud-tenants-QTASS5KP.cjs → cloud-tenants-XGGQG7SO.cjs} +24 -24
- package/dist/components/case-studies/index.cjs +40 -40
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -1
- package/dist/components/chat/index.cjs +18 -18
- package/dist/components/contact/index.cjs +25 -25
- package/dist/components/docs/index.cjs +28 -28
- package/dist/components/embeds/index.cjs +25 -25
- package/dist/components/faq/index.cjs +26 -26
- package/dist/components/features/index.cjs +24 -24
- package/dist/components/help-center-pages/index.cjs +129 -129
- package/dist/components/index.cjs +89 -89
- package/dist/components/meeting-scheduler/index.cjs +93 -93
- package/dist/components/navigation/index.cjs +27 -27
- package/dist/components/onboarding-guides/index.cjs +27 -27
- package/dist/components/product-demo/index.cjs +35 -35
- package/dist/components/related-content/index.cjs +14 -14
- package/dist/components/tickets/index.cjs +31 -31
- package/dist/components/ui/index.cjs +24 -24
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +6 -7
- package/dist/components/ui/markdown/engine.d.ts +7 -0
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +12 -3
- package/dist/components/ui/markdown/external-media-notice.d.ts +33 -0
- package/dist/components/ui/markdown/external-media-notice.d.ts.map +1 -0
- package/dist/components/ui/markdown/external-media-notice.js +56 -0
- package/dist/components/ui/markdown/mermaid-diagram.d.ts +24 -2
- package/dist/components/ui/markdown/mermaid-diagram.d.ts.map +1 -1
- package/dist/components/ui/markdown/mermaid-diagram.js +66 -6
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts +4 -4
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.js +2 -1
- package/dist/components/ui/markdown/sanitize.d.ts +28 -3
- package/dist/components/ui/markdown/sanitize.d.ts.map +1 -1
- package/dist/components/ui/markdown/sanitize.js +84 -12
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts +3 -2
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts.map +1 -1
- package/dist/{devices-KPMQI57Y.cjs → devices-H5Y4DBVC.cjs} +25 -25
- package/dist/{embeddable-chat-LB7NDFVQ.cjs → embeddable-chat-77ZOLCCK.cjs} +88 -88
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +29 -29
- package/dist/{knowledge-JWGBY3ZJ.cjs → knowledge-MGH65HXM.cjs} +25 -25
- package/dist/{logs-QENTXKWY.cjs → logs-OL7ETVK6.cjs} +32 -32
- package/dist/{policies-2HXFZ2EL.cjs → policies-BCECWQ3F.cjs} +28 -28
- package/dist/{remote-session-LMUFV2RZ.cjs → remote-session-HML4UF7W.cjs} +11 -11
- package/dist/{scripts-TMXULK6L.cjs → scripts-XCD6V2JB.cjs} +31 -31
- package/dist/{software-update-H2LAEWDN.cjs → software-update-U5ESXRG5.cjs} +28 -28
- package/dist/{tickets-board-QF5JNSH2.cjs → tickets-board-EICQ5VLE.cjs} +14 -14
- package/dist/utils/app-origins.d.ts +41 -0
- package/dist/utils/app-origins.d.ts.map +1 -0
- package/dist/utils/app-origins.js +51 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts +7 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts.map +1 -0
- package/dist/utils/embed-auth-adapter-registry.js +34 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +6 -19
- package/dist/utils/index.cjs +28 -12
- package/dist/{video-file-player-2FMFCGXE.cjs → video-file-player-4QMVTOBE.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +12 -1
- package/src/components/ui/markdown/base-components.tsx +6 -7
- package/src/components/ui/markdown/engine.tsx +29 -5
- package/src/components/ui/markdown/external-media-notice.tsx +84 -0
- package/src/components/ui/markdown/mermaid-diagram.tsx +107 -5
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +11 -5
- package/src/components/ui/markdown/sanitize.ts +162 -15
- package/src/components/ui/markdown/simple-markdown-renderer.tsx +6 -2
- package/src/utils/app-origins.ts +95 -0
- package/src/utils/embed-auth-adapter-registry.ts +49 -0
- package/src/utils/embed-authed-fetch.ts +7 -35
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWX5WDSKVcjs = require('./chunk-WX5WDSKV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk243TS7YLcjs = require('./chunk-243TS7YL.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkGU3GJ5DHcjs = require('./chunk-GU3GJ5DH.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkJ6C7F63Pcjs = require('./chunk-J6C7F63P.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkCB77J5L7cjs = require('./chunk-CB77J5L7.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkUP3TLY2Vcjs = require('./chunk-UP3TLY2V.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -119,14 +119,14 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
123
|
-
const builtInSubmission =
|
|
122
|
+
const attachments = _chunkCB77J5L7cjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunkGU3GJ5DHcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
126
126
|
successToastMessage
|
|
127
127
|
});
|
|
128
128
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
129
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
129
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkGU3GJ5DHcjs.useHumanitySignals.call(void 0, );
|
|
130
130
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
131
131
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
132
132
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -152,7 +152,7 @@ function ContactForm({
|
|
|
152
152
|
),
|
|
153
153
|
[hideFields]
|
|
154
154
|
);
|
|
155
|
-
const rescue =
|
|
155
|
+
const rescue = _chunkGU3GJ5DHcjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
156
156
|
const handleFormSubmit = async (data) => {
|
|
157
157
|
if (isSubmitting) return;
|
|
158
158
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -190,7 +190,7 @@ function ContactForm({
|
|
|
190
190
|
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" : ""}`,
|
|
191
191
|
children: [
|
|
192
192
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
193
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
193
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkUP3TLY2Vcjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkUP3TLY2Vcjs.accentSentenceMarks.call(void 0, title) }),
|
|
194
194
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunkJ6C7F63Pcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWX5WDSKVcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
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: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -261,17 +261,17 @@ function ContactForm({
|
|
|
261
261
|
{
|
|
262
262
|
control,
|
|
263
263
|
name: "companySize",
|
|
264
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunk243TS7YLcjs.SelectTrigger,
|
|
267
267
|
{
|
|
268
268
|
id: "companySize",
|
|
269
269
|
"aria-label": "Company Size",
|
|
270
270
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
271
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
@@ -284,17 +284,17 @@ function ContactForm({
|
|
|
284
284
|
{
|
|
285
285
|
control,
|
|
286
286
|
name: "referralSource",
|
|
287
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunk243TS7YLcjs.SelectTrigger,
|
|
290
290
|
{
|
|
291
291
|
id: "referralSource",
|
|
292
292
|
"aria-label": "Referral Source",
|
|
293
293
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -311,18 +311,18 @@ function ContactForm({
|
|
|
311
311
|
{
|
|
312
312
|
control,
|
|
313
313
|
name: "helpCategory",
|
|
314
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
314
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk243TS7YLcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunk243TS7YLcjs.SelectTrigger,
|
|
317
317
|
{
|
|
318
318
|
id: "helpCategory",
|
|
319
319
|
"aria-label": "Help Category",
|
|
320
320
|
"aria-required": true,
|
|
321
321
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
322
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk243TS7YLcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7RM4NM2Ccjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkWX5WDSKVcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkCB77J5L7cjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkCB77J5L7cjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOQDPZOGCcjs = require('./chunk-OQDPZOGC.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -123,7 +123,7 @@ var filePlayerLoad = null;
|
|
|
123
123
|
var filePlayerListeners = /* @__PURE__ */ new Set();
|
|
124
124
|
function loadFilePlayer() {
|
|
125
125
|
if (filePlayer || filePlayerLoad) return;
|
|
126
|
-
filePlayerLoad = Promise.resolve().then(() => _interopRequireWildcard(require("./video-file-player-
|
|
126
|
+
filePlayerLoad = Promise.resolve().then(() => _interopRequireWildcard(require("./video-file-player-4QMVTOBE.cjs"))).then((module) => {
|
|
127
127
|
filePlayer = module.default;
|
|
128
128
|
for (const listener of filePlayerListeners) listener();
|
|
129
129
|
}).catch(() => void 0).finally(() => {
|
|
@@ -612,7 +612,7 @@ function EntityIcon({
|
|
|
612
612
|
size = _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.glyph,
|
|
613
613
|
className
|
|
614
614
|
}) {
|
|
615
|
-
const identity =
|
|
615
|
+
const identity = _chunkOQDPZOGCcjs.useAgentIdentityIcon.call(void 0, _optionalChain([icon, 'optionalAccess', _19 => _19.url]) ? null : _optionalChain([icon, 'optionalAccess', _20 => _20.name]));
|
|
616
616
|
const held = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
617
617
|
if (held) {
|
|
618
618
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -633,7 +633,7 @@ function EntityIcon({
|
|
|
633
633
|
alt: "",
|
|
634
634
|
width: size,
|
|
635
635
|
height: size,
|
|
636
|
-
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
636
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkOQDPZOGCcjs.AGENT_PICTURE_CLASS, className),
|
|
637
637
|
unoptimized: true
|
|
638
638
|
}
|
|
639
639
|
);
|
|
@@ -653,7 +653,7 @@ function EntityIcon({
|
|
|
653
653
|
);
|
|
654
654
|
}
|
|
655
655
|
const Glyph = _chunkVXXOUM2Kcjs.resolveIcon.call(void 0, _nullishCoalesce(_nullishCoalesce(_optionalChain([identity, 'optionalAccess', _24 => _24.name]), () => ( _optionalChain([icon, 'optionalAccess', _25 => _25.name]))), () => ( void 0)));
|
|
656
|
-
const agentColor = identity ? { color:
|
|
656
|
+
const agentColor = identity ? { color: _chunkOQDPZOGCcjs.AGENT_GLYPH_COLOR } : {};
|
|
657
657
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Glyph, { size, className, ...agentColor, ..._nullishCoalesce(_optionalChain([identity, 'optionalAccess', _26 => _26.props]), () => ( {})), ..._nullishCoalesce(_optionalChain([icon, 'optionalAccess', _27 => _27.props]), () => ( {})) });
|
|
658
658
|
}
|
|
659
659
|
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkUP3TLY2Vcjs = require('./chunk-UP3TLY2V.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7Y6M4FW4cjs = require('./chunk-7Y6M4FW4.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkU2MHQBL4cjs = require('./chunk-U2MHQBL4.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkVXXOUM2Kcjs = require('./chunk-VXXOUM2K.cjs');
|
|
@@ -56,7 +56,7 @@ function pickBadgePaletteColor({
|
|
|
56
56
|
var _jsxruntime = require('react/jsx-runtime');
|
|
57
57
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
58
58
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
59
|
-
|
|
59
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
60
60
|
{
|
|
61
61
|
text,
|
|
62
62
|
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
@@ -145,12 +145,12 @@ var STATUS_BADGE_SCHEME = {
|
|
|
145
145
|
abandoned: "default"
|
|
146
146
|
};
|
|
147
147
|
function EmployeeEntryBadge({ children }) {
|
|
148
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
148
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Y6M4FW4cjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
149
149
|
}
|
|
150
150
|
function EmployeeEntryCard(props) {
|
|
151
151
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
152
152
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
|
|
153
|
+
_chunkUP3TLY2Vcjs.AdminContentCard,
|
|
154
154
|
{
|
|
155
155
|
loading: true,
|
|
156
156
|
title: "",
|
|
@@ -172,9 +172,9 @@ function LoadedEmployeeEntryCard({
|
|
|
172
172
|
anchorProps,
|
|
173
173
|
className
|
|
174
174
|
}) {
|
|
175
|
-
const authorAvatar =
|
|
175
|
+
const authorAvatar = _chunkUP3TLY2Vcjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
176
176
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
177
|
-
|
|
177
|
+
_chunkUP3TLY2Vcjs.AdminContentCard,
|
|
178
178
|
{
|
|
179
179
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
180
180
|
placeholderUrl,
|
|
@@ -182,7 +182,7 @@ function LoadedEmployeeEntryCard({
|
|
|
182
182
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
183
183
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
184
184
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
|
-
|
|
185
|
+
_chunk7Y6M4FW4cjs.StatusBadge,
|
|
186
186
|
{
|
|
187
187
|
text: entry.status,
|
|
188
188
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -227,7 +227,7 @@ function WhatIShippedCard(props) {
|
|
|
227
227
|
EmployeeEntryCard,
|
|
228
228
|
{
|
|
229
229
|
entry,
|
|
230
|
-
dateLabel:
|
|
230
|
+
dateLabel: _chunkU2MHQBL4cjs.formatEntryMonthUTC.call(void 0, entry.entry_month, "short"),
|
|
231
231
|
placeholderUrl,
|
|
232
232
|
actions,
|
|
233
233
|
anchorProps,
|
|
@@ -248,7 +248,7 @@ function HowIWorkCard(props) {
|
|
|
248
248
|
EmployeeEntryCard,
|
|
249
249
|
{
|
|
250
250
|
entry,
|
|
251
|
-
dateLabel: entry.session_date ?
|
|
251
|
+
dateLabel: entry.session_date ? _chunkU2MHQBL4cjs.formatDateUTC.call(void 0, entry.session_date, { fallback: "" }) || null : null,
|
|
252
252
|
extraBadges: entry.discipline ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: disciplineLabel(entry.discipline) }) : null,
|
|
253
253
|
untitledLabel: "Untitled session",
|
|
254
254
|
placeholderUrl,
|
|
@@ -270,7 +270,7 @@ function AiPromptCard(props) {
|
|
|
270
270
|
EmployeeEntryCard,
|
|
271
271
|
{
|
|
272
272
|
entry,
|
|
273
|
-
dateLabel: entry.published_at ?
|
|
273
|
+
dateLabel: entry.published_at ? _chunkU2MHQBL4cjs.formatDateUTC.call(void 0, entry.published_at, { fallback: "" }) || null : null,
|
|
274
274
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
275
275
|
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _15 => _15.department, 'optionalAccess', _16 => _16.color]), () => ( null)) } }) : null,
|
|
276
276
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
@@ -319,7 +319,7 @@ function useSelfFetch(givenUrl, options) {
|
|
|
319
319
|
try {
|
|
320
320
|
setIsLoading(true);
|
|
321
321
|
setError(false);
|
|
322
|
-
const res = await
|
|
322
|
+
const res = await _chunkFX35L4Y6cjs.contentFetch.call(void 0, url, { signal: ctrl.signal });
|
|
323
323
|
if (!res.ok) throw new Error(`Request failed (${res.status})`);
|
|
324
324
|
const json = await res.json();
|
|
325
325
|
if (!cancelled) {
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
9
9
|
|
|
10
10
|
// src/hooks/ui/use-drag-and-drop-enabled.ts
|
|
11
|
-
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${
|
|
11
|
+
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${_chunkLC65AC6Mcjs.breakpoints.md}`;
|
|
12
12
|
function useDragAndDropEnabled() {
|
|
13
|
-
return _nullishCoalesce(
|
|
13
|
+
return _nullishCoalesce(_chunkLC65AC6Mcjs.useMediaQuery.call(void 0, DRAG_AND_DROP_MEDIA_QUERY), () => ( false));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// src/hooks/ui/use-horizontal-scrollbar.ts
|
|
@@ -236,7 +236,7 @@ function useLocalStorage(key, initialValue, options) {
|
|
|
236
236
|
});
|
|
237
237
|
const validate = _optionalChain([options, 'optionalAccess', _ => _.validate]);
|
|
238
238
|
const storage = _react.useMemo.call(void 0,
|
|
239
|
-
() =>
|
|
239
|
+
() => _chunkGI3MMBP3cjs.createLocalStorageAdapter.call(void 0, { key, validate, logTag: `[useLocalStorage:${key}]` }),
|
|
240
240
|
[key, validate]
|
|
241
241
|
);
|
|
242
242
|
const [storedValue, setStoredValue] = _react.useState.call(void 0, () => _nullishCoalesce(storage.load(), () => ( initialValue)));
|