@flamingo-stack/openframe-frontend-core 0.0.799 → 0.0.801
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-4RK62AMV.cjs → chunk-237MLBT7.cjs} +68 -68
- package/dist/{chunk-IJGIWG6G.cjs → chunk-3W2PBWD5.cjs} +4 -4
- package/dist/{chunk-BSBCZIPQ.cjs → chunk-3YPEXJVQ.cjs} +39 -39
- package/dist/{chunk-GRNTIKPD.cjs → chunk-7E4BC3AF.cjs} +68 -51
- package/dist/{chunk-6CB3AXZM.cjs → chunk-CJSUMYTH.cjs} +30 -30
- package/dist/{chunk-PPORXZI7.cjs → chunk-CRVXQYUZ.cjs} +25 -25
- package/dist/{chunk-FDDM5Z52.cjs → chunk-DYDS2P5G.cjs} +2 -2
- package/dist/{chunk-FIKIPO4F.cjs → chunk-FAUVDMH4.cjs} +1 -1
- package/dist/{chunk-SDV335EO.cjs → chunk-FFRFKWTZ.cjs} +4 -4
- package/dist/{chunk-XJD7IZR2.cjs → chunk-FS4TVAE7.cjs} +48 -48
- package/dist/{chunk-AVAE5B2A.cjs → chunk-KVGWOJCX.cjs} +2 -2
- package/dist/{chunk-HB7FVY46.cjs → chunk-LEEBFBI4.cjs} +32 -32
- package/dist/{chunk-UFCKY7OL.cjs → chunk-LOCJD7TD.cjs} +16 -16
- package/dist/{chunk-6EDOASF4.cjs → chunk-PJMLRXAG.cjs} +11 -11
- package/dist/{chunk-TETW5NR4.cjs → chunk-PY6SPYUR.cjs} +3 -3
- package/dist/{chunk-2KEBGXA4.cjs → chunk-QAUQYQWT.cjs} +4 -4
- package/dist/{chunk-CS2KLF4O.cjs → chunk-QNIUDJAK.cjs} +13 -13
- package/dist/{chunk-B3X4J4HQ.cjs → chunk-SHOE6ATQ.cjs} +14 -14
- package/dist/{chunk-PO5IIN4S.cjs → chunk-THQKEA2T.cjs} +11 -11
- package/dist/{chunk-O6KQ64RI.cjs → chunk-UYGXJ5SQ.cjs} +2 -2
- package/dist/{chunk-3MRK7X6Z.cjs → chunk-XYPNYTCV.cjs} +3 -3
- package/dist/{chunk-ZOK4OWMJ.cjs → chunk-Y5XHMEBB.cjs} +2 -2
- package/dist/{chunk-247LDSQE.cjs → chunk-YUGX72P4.cjs} +61 -61
- package/dist/{chunk-DBRXZC2I.cjs → chunk-Z66FOMSA.cjs} +136 -129
- package/dist/{chunk-T5OCU3EL.cjs → chunk-ZPVFFPQM.cjs} +4 -4
- package/dist/{cloud-tenants-BQAVRN44.cjs → cloud-tenants-X7QHAIX2.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +16 -14
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +82 -82
- package/dist/components/index.cjs +52 -52
- package/dist/components/layout/page-heading.js +1 -1
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/fade-preview.d.ts.map +1 -1
- package/dist/components/ui/fade-preview.js +9 -2
- package/dist/components/ui/index.cjs +6 -6
- package/dist/{devices-KDT5ZGSG.cjs → devices-VBFYZVVG.cjs} +7 -7
- package/dist/{embeddable-chat-ODKTSW3C.cjs → embeddable-chat-XZDZOHFY.cjs} +62 -62
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-4NLP77HP.cjs → knowledge-RJZJFD2Y.cjs} +7 -7
- package/dist/loading-standard/engine.d.mts +1 -0
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/loading-standard/rule-examples.d.mts.map +1 -1
- package/dist/{logs-U6VMTY4N.cjs → logs-3WZ4GROE.cjs} +14 -14
- package/dist/{policies-TBLFBRFM.cjs → policies-E6WQEXDF.cjs} +10 -10
- package/dist/{scripts-ZMNJWX7I.cjs → scripts-JLCM42F4.cjs} +11 -11
- package/dist/{software-update-Q5AEQ4A4.cjs → software-update-BVBHAROC.cjs} +9 -9
- package/dist/utils/index.cjs +16 -1
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +16 -1
- package/package.json +1 -1
- package/src/components/chat/chat-context-picker.tsx +30 -16
- package/src/components/layout/page-heading.tsx +3 -1
- package/src/components/ui/fade-preview.tsx +13 -2
- package/src/loading-standard/engine.mjs +49 -2
- package/src/loading-standard/rule-examples.mjs +35 -3
- package/src/utils/markdown-to-plain.ts +23 -4
|
@@ -1,30 +1,30 @@
|
|
|
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 _chunkY5XHMEBBcjs = require('./chunk-Y5XHMEBB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPJMLRXAGcjs = require('./chunk-PJMLRXAG.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkZ66FOMSAcjs = require('./chunk-Z66FOMSA.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkCRVXQYUZcjs = require('./chunk-CRVXQYUZ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk7E4BC3AFcjs = require('./chunk-7E4BC3AF.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
|
|
@@ -34,11 +34,11 @@ var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
|
|
|
34
34
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkFFRFKWTZcjs = require('./chunk-FFRFKWTZ.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkYBTORXFYcjs = require('./chunk-YBTORXFY.cjs');
|
|
@@ -75,7 +75,7 @@ function OnboardingCatalogSectionsSkeleton() {
|
|
|
75
75
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }),
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CATALOG_SECTION_COUNT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-3" }) })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.OnboardingGuideCard, { loading: true, size: "catalog" }) }) }) })
|
|
79
79
|
] }) });
|
|
80
80
|
}
|
|
81
81
|
function OnboardingGuidesCatalogView({
|
|
@@ -96,10 +96,10 @@ function OnboardingGuidesCatalogView({
|
|
|
96
96
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
97
97
|
const activeSection = sectionValue || "all";
|
|
98
98
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
99
|
-
const guidesRes =
|
|
99
|
+
const guidesRes = _chunkFFRFKWTZcjs.useSelfFetch.call(void 0,
|
|
100
100
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
101
101
|
);
|
|
102
|
-
const sectionsRes =
|
|
102
|
+
const sectionsRes = _chunkFFRFKWTZcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
103
103
|
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])]);
|
|
104
104
|
const sections = _react.useMemo.call(void 0,
|
|
105
105
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -143,25 +143,25 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunkPJMLRXAGcjs.useDocSearch.call(void 0, {
|
|
147
147
|
source,
|
|
148
148
|
baseRoute: basePath,
|
|
149
149
|
onNavigate: (path) => router.push(path),
|
|
150
150
|
tableIds: ["onboarding-guides"]
|
|
151
151
|
});
|
|
152
152
|
const defaultRenderCard = (guide) => {
|
|
153
|
-
const cta =
|
|
153
|
+
const cta = _chunkCRVXQYUZcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
154
154
|
type: "onboarding_guide",
|
|
155
155
|
slug: guide.slug,
|
|
156
156
|
basePath,
|
|
157
157
|
platforms: guide.onboarding_guide_platforms
|
|
158
158
|
});
|
|
159
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
159
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
160
160
|
};
|
|
161
161
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
162
162
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkPJMLRXAGcjs.DocSearchBar,
|
|
165
165
|
{
|
|
166
166
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
167
167
|
query: docSearch.query,
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkZ66FOMSAcjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ66FOMSAcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -200,7 +200,7 @@ function OnboardingGuidesCatalogView({
|
|
|
200
200
|
)
|
|
201
201
|
] });
|
|
202
202
|
if (!loading) return view;
|
|
203
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7E4BC3AFcjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
|
|
204
204
|
}
|
|
205
205
|
function OnboardingCatalogSections({
|
|
206
206
|
grouped,
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkZ66FOMSAcjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -314,9 +314,9 @@ function OnboardingGuideDetailView({
|
|
|
314
314
|
}) {
|
|
315
315
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
|
-
const captions =
|
|
317
|
+
const captions = _chunk7E4BC3AFcjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ66FOMSAcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
321
|
const scoped = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -324,7 +324,7 @@ function OnboardingGuideDetailView({
|
|
|
324
324
|
isLoading,
|
|
325
325
|
error,
|
|
326
326
|
reload
|
|
327
|
-
} =
|
|
327
|
+
} = _chunkFFRFKWTZcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
328
328
|
initialData
|
|
329
329
|
});
|
|
330
330
|
const { ref: videoWarmupRef } = _chunkZD6SZLO2cjs.useVideoWarmup.call(void 0, {
|
|
@@ -334,7 +334,7 @@ function OnboardingGuideDetailView({
|
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ66FOMSAcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -342,19 +342,19 @@ function OnboardingGuideDetailView({
|
|
|
342
342
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
343
343
|
_chunkXR323UBYcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
344
344
|
const defaultRenderRelatedCard = (g) => {
|
|
345
|
-
const cta =
|
|
345
|
+
const cta = _chunkCRVXQYUZcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
346
346
|
type: "onboarding_guide",
|
|
347
347
|
slug: g.slug,
|
|
348
348
|
basePath,
|
|
349
349
|
platforms: g.onboarding_guide_platforms
|
|
350
350
|
});
|
|
351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
354
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkE56LN23Hcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ66FOMSAcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
-
|
|
357
|
+
_chunkFAUVDMH4cjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
359
359
|
author: view.author,
|
|
360
360
|
authorHref,
|
|
@@ -370,7 +370,7 @@ function OnboardingGuideDetailView({
|
|
|
370
370
|
),
|
|
371
371
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
373
|
-
|
|
373
|
+
_chunk7E4BC3AFcjs.EntityVideoSection,
|
|
374
374
|
{
|
|
375
375
|
mainVideoUrl: view.main_video_url,
|
|
376
376
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -387,7 +387,7 @@ function OnboardingGuideDetailView({
|
|
|
387
387
|
) }),
|
|
388
388
|
(loading || view.content) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: BODY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: _nullishCoalesce(view.content, () => ( "")) }) }),
|
|
389
389
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
-
|
|
390
|
+
_chunk7E4BC3AFcjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
@@ -397,7 +397,7 @@ function OnboardingGuideDetailView({
|
|
|
397
397
|
}
|
|
398
398
|
) }),
|
|
399
399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
400
|
-
|
|
400
|
+
_chunkY5XHMEBBcjs.ArticleAuthorByline,
|
|
401
401
|
{
|
|
402
402
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
403
403
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -410,7 +410,7 @@ function OnboardingGuideDetailView({
|
|
|
410
410
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelatedGuides, { section: view.section, related, renderCard: renderRelatedCardFn }),
|
|
411
411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: relatedContent }, "related-content")
|
|
412
412
|
] });
|
|
413
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7E4BC3AFcjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7E4BC3AFcjs = require('./chunk-7E4BC3AF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -107,13 +107,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
107
107
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkFFRFKWTZcjs = require('./chunk-FFRFKWTZ.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -204,7 +204,7 @@ function ChatMessageRow(props) {
|
|
|
204
204
|
}
|
|
205
205
|
function ChatMessageRowLoaded(props) {
|
|
206
206
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
207
|
-
const proxiedAvatar =
|
|
207
|
+
const proxiedAvatar = _chunkFAUVDMH4cjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
208
208
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
209
209
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
210
210
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
@@ -2046,7 +2046,7 @@ function lastPathSegment(url) {
|
|
|
2046
2046
|
function makeComposeContentUrl(opts) {
|
|
2047
2047
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2048
2048
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2049
|
-
const type =
|
|
2049
|
+
const type = _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, rawType);
|
|
2050
2050
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2051
2051
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2052
2052
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2057,8 +2057,8 @@ function makeComposeContentUrl(opts) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2059
2059
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2060
|
-
const owner = claimedOwner &&
|
|
2061
|
-
const origin = owner ?
|
|
2060
|
+
const owner = claimedOwner && _chunk7E4BC3AFcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2061
|
+
const origin = owner ? _chunk7E4BC3AFcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2062
2062
|
return {
|
|
2063
2063
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()]) || identifier}`,
|
|
2064
2064
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2239,7 +2239,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2239
2239
|
if (heading.level > opts.maxLevel) continue;
|
|
2240
2240
|
let title = heading.text;
|
|
2241
2241
|
if (opts.stripFormattingMarkers) {
|
|
2242
|
-
title =
|
|
2242
|
+
title = _chunk7E4BC3AFcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2243
2243
|
}
|
|
2244
2244
|
const baseId = _chunkOJZBZH56cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkOJZBZH56cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2245
2245
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2554,7 +2554,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2554
2554
|
function openAskAi(source, options) {
|
|
2555
2555
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2556
2556
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2557
|
-
window.dispatchEvent(new CustomEvent(
|
|
2557
|
+
window.dispatchEvent(new CustomEvent(_chunk7E4BC3AFcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2558
2558
|
}
|
|
2559
2559
|
function MingoAiButton({
|
|
2560
2560
|
source,
|
|
@@ -2597,7 +2597,7 @@ function MingoAiButton({
|
|
|
2597
2597
|
{
|
|
2598
2598
|
...props,
|
|
2599
2599
|
type: "button",
|
|
2600
|
-
...{ [
|
|
2600
|
+
...{ [_chunk7E4BC3AFcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2601
2601
|
variant: field ? "glyph" : "transparent",
|
|
2602
2602
|
size: "wrap",
|
|
2603
2603
|
font: "regular",
|
|
@@ -2699,7 +2699,7 @@ function useAskPrompts({
|
|
|
2699
2699
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2700
2700
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2701
2701
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2702
|
-
const { data, dataUrl, error } =
|
|
2702
|
+
const { data, dataUrl, error } = _chunkFFRFKWTZcjs.useSelfFetch.call(void 0, url);
|
|
2703
2703
|
const landed = url !== null && (dataUrl === url || error);
|
|
2704
2704
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2705
2705
|
}
|
|
@@ -2838,9 +2838,9 @@ function QuestionChips({
|
|
|
2838
2838
|
{
|
|
2839
2839
|
"data-loading-item": true,
|
|
2840
2840
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2841
|
-
...prompt ? { [
|
|
2841
|
+
...prompt ? { [_chunk7E4BC3AFcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2842
2842
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2843
|
-
|
|
2843
|
+
_chunk7E4BC3AFcjs.QuickActionChipButton,
|
|
2844
2844
|
{
|
|
2845
2845
|
loading,
|
|
2846
2846
|
variant: "question",
|
|
@@ -3050,7 +3050,7 @@ function QuickActionMarquee({
|
|
|
3050
3050
|
);
|
|
3051
3051
|
if (items.length === 0) return null;
|
|
3052
3052
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3053
|
-
|
|
3053
|
+
_chunk7E4BC3AFcjs.QuickActionWall,
|
|
3054
3054
|
{
|
|
3055
3055
|
chips,
|
|
3056
3056
|
mode,
|
|
@@ -3265,7 +3265,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3265
3265
|
hasNextPage,
|
|
3266
3266
|
isFetchingNextPage,
|
|
3267
3267
|
onLoadMore,
|
|
3268
|
-
pageSize =
|
|
3268
|
+
pageSize = _chunk7E4BC3AFcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3269
3269
|
...props
|
|
3270
3270
|
}, ref) => {
|
|
3271
3271
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3549,7 +3549,7 @@ function OnboardingCarousel({
|
|
|
3549
3549
|
|
|
3550
3550
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3551
3551
|
var GRID_CELL_CLASS = "h-full";
|
|
3552
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3552
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3553
3553
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3554
3554
|
if (loadingCard !== void 0) return loadingCard;
|
|
3555
3555
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3563,7 +3563,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3563
3563
|
label = "Loading",
|
|
3564
3564
|
region = true
|
|
3565
3565
|
}) {
|
|
3566
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3566
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7E4BC3AFcjs.LoadingFallback, { label, status: region, className: _chunk7JWFMAQBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3567
3567
|
}
|
|
3568
3568
|
function AdminContentCardGrid({
|
|
3569
3569
|
items,
|
|
@@ -3859,7 +3859,7 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3859
3859
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3860
3860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3861
3861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3862
|
-
campaign.start_date ?
|
|
3862
|
+
campaign.start_date ? _chunkFAUVDMH4cjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3863
3863
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3864
3864
|
"Marketing campaign"
|
|
3865
3865
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
@@ -5155,7 +5155,7 @@ function Section({ title, description, children }) {
|
|
|
5155
5155
|
] });
|
|
5156
5156
|
}
|
|
5157
5157
|
function ProxyCredentialsPanel({ description }) {
|
|
5158
|
-
const hydrated =
|
|
5158
|
+
const hydrated = _chunk7E4BC3AFcjs.useIsHydrated.call(void 0, );
|
|
5159
5159
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5160
5160
|
ProxyCredentialsForm,
|
|
5161
5161
|
{
|
|
@@ -5319,21 +5319,21 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5319
5319
|
|
|
5320
5320
|
// src/components/chat/index.ts
|
|
5321
5321
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5322
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5322
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-XZDZOHFY.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5323
5323
|
);
|
|
5324
5324
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5325
5325
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5326
5326
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5327
|
-
_react.useEffect.call(void 0, () =>
|
|
5327
|
+
_react.useEffect.call(void 0, () => _chunk7E4BC3AFcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5328
5328
|
_react.useEffect.call(void 0, () => {
|
|
5329
5329
|
if (load) return void 0;
|
|
5330
5330
|
const start = () => setLoadRequested(true);
|
|
5331
|
-
if (
|
|
5332
|
-
for (const name of
|
|
5333
|
-
const cancel =
|
|
5331
|
+
if (_chunk7E4BC3AFcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5332
|
+
for (const name of _chunk7E4BC3AFcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5333
|
+
const cancel = _chunk7E4BC3AFcjs.onAskAiIntent.call(void 0, start);
|
|
5334
5334
|
return () => {
|
|
5335
5335
|
cancel();
|
|
5336
|
-
for (const name of
|
|
5336
|
+
for (const name of _chunk7E4BC3AFcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5337
5337
|
};
|
|
5338
5338
|
}, [load]);
|
|
5339
5339
|
if (!load) return null;
|
|
@@ -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 _chunkCRVXQYUZcjs = require('./chunk-CRVXQYUZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3NGJ7NPTcjs = require('./chunk-3NGJ7NPT.cjs');
|
|
@@ -396,7 +396,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
396
396
|
// src/components/navigation/multi-level-navigation.tsx
|
|
397
397
|
var _lucidereact = require('lucide-react');
|
|
398
398
|
|
|
399
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
399
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkCRVXQYUZcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
400
400
|
var NAV_LIST_CLASS = "space-y-2";
|
|
401
401
|
var NAV_ITEM_CLASS = "space-y-1";
|
|
402
402
|
var NAV_ROW_FRAME_CLASS = "relative w-full rounded-lg border transition-all duration-150";
|
|
@@ -1411,7 +1411,7 @@ function SectionHeadingSkeleton({
|
|
|
1411
1411
|
const layout = SECTION_HEADING_LAYOUT[level];
|
|
1412
1412
|
const introByBreakpoint = typeof intro === "object" ? intro : null;
|
|
1413
1413
|
const introLines = typeof intro === "number" ? intro : intro === true ? 2 : 0;
|
|
1414
|
-
const stack = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: layout.stack, "aria-hidden": true, children: [
|
|
1414
|
+
const stack = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: level === "section" ? `${layout.stack} w-full` : layout.stack, "aria-hidden": true, children: [
|
|
1415
1415
|
eyebrow ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionEyebrow, { platform, tone, children: eyebrow }) : null,
|
|
1416
1416
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: layout.heading, children: titleLines ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLinesByBreakpointSkeleton, { lines: titleLines }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", className: titleWidth }) }),
|
|
1417
1417
|
introByBreakpoint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: layout.intro, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLinesByBreakpointSkeleton, { lines: introByBreakpoint }) }) : null,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkYBTORXFYcjs = require('./chunk-YBTORXFY.cjs');
|
|
@@ -147,7 +147,7 @@ function EmployeeEntryBadge({ children }) {
|
|
|
147
147
|
function EmployeeEntryCard(props) {
|
|
148
148
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunkFAUVDMH4cjs.AdminContentCard,
|
|
151
151
|
{
|
|
152
152
|
loading: true,
|
|
153
153
|
title: "",
|
|
@@ -169,9 +169,9 @@ function LoadedEmployeeEntryCard({
|
|
|
169
169
|
anchorProps,
|
|
170
170
|
className
|
|
171
171
|
}) {
|
|
172
|
-
const authorAvatar =
|
|
172
|
+
const authorAvatar = _chunkFAUVDMH4cjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
173
173
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
174
|
-
|
|
174
|
+
_chunkFAUVDMH4cjs.AdminContentCard,
|
|
175
175
|
{
|
|
176
176
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
177
177
|
placeholderUrl,
|