@flamingo-stack/openframe-frontend-core 0.0.777 → 0.0.780
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-FMH622O5.cjs → case-study-card-WXMWYGSW.cjs} +2 -2
- package/dist/{chunk-JMFF3L3T.cjs → chunk-2JO5HNEF.cjs} +23 -23
- package/dist/{chunk-SDZG7VV7.cjs → chunk-2W3VDE4D.cjs} +2 -2
- package/dist/{chunk-4JZDJ34E.cjs → chunk-4BBOHZM3.cjs} +4 -4
- package/dist/{chunk-QIATO42V.cjs → chunk-4NRVV3KO.cjs} +3 -3
- package/dist/{chunk-BDDOC425.cjs → chunk-AQXEM7GI.cjs} +3 -3
- package/dist/{chunk-ALA4KHTE.cjs → chunk-DQALLDTZ.cjs} +4 -4
- package/dist/{chunk-LU2DGST4.cjs → chunk-F3BASIMT.cjs} +78 -78
- package/dist/{chunk-Y6MQBLTZ.cjs → chunk-HUPDPANN.cjs} +4 -4
- package/dist/{chunk-3PCSEZNZ.cjs → chunk-I4IC3BRC.cjs} +39 -39
- package/dist/{chunk-7LJSGOWS.cjs → chunk-IE3QCYBT.cjs} +13 -13
- package/dist/{chunk-VY3NGJRH.cjs → chunk-ILRQXZBA.cjs} +52 -52
- package/dist/{chunk-T47VAUYR.cjs → chunk-KA3VQ6X2.cjs} +69 -69
- package/dist/{chunk-WCSWWVPF.cjs → chunk-MLX6Z7TU.cjs} +2 -2
- package/dist/{chunk-MQPTOJMF.cjs → chunk-OH5LAH3X.cjs} +3 -51
- package/dist/{chunk-G2N7INFT.cjs → chunk-OMHQZXCD.cjs} +11 -11
- package/dist/{chunk-TZP7PSPG.cjs → chunk-OWQVDWTK.cjs} +109 -103
- package/dist/{chunk-XVAVQ4BK.cjs → chunk-PQBGSVZE.cjs} +38 -38
- package/dist/{chunk-LGNJTSKB.cjs → chunk-QEFDGI3Z.cjs} +29 -29
- package/dist/{chunk-WMZIBRTR.cjs → chunk-QIQYD75I.cjs} +2 -2
- package/dist/{chunk-T7NDPPLF.cjs → chunk-TVDQMG7I.cjs} +18 -18
- package/dist/{chunk-HXLOCZMG.cjs → chunk-UPAE4IV5.cjs} +167 -167
- package/dist/{chunk-DOM5CUEY.cjs → chunk-WR7KJML6.cjs} +30 -30
- package/dist/{chunk-CGQ7CL62.cjs → chunk-YG72MEHY.cjs} +98 -98
- package/dist/{chunk-U5VQFKRZ.cjs → chunk-YNECNYQF.cjs} +4 -4
- package/dist/{chunk-S3YDUX2I.cjs → chunk-YWQ3VXPL.cjs} +75 -75
- package/dist/{chunk-UW6AOF42.cjs → chunk-ZGWS3NJR.cjs} +13 -13
- package/dist/{cloud-tenants-EUH42CCL.cjs → cloud-tenants-2ZLGCSGK.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +24 -24
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -4
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.js +2 -0
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/chat/types/component.types.d.ts +9 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +2 -5
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +1 -44
- package/dist/components/help-center-pages/index.cjs +84 -84
- package/dist/components/index.cjs +56 -56
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +17 -17
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/index.cjs +8 -8
- package/dist/{devices-WL3I23EE.cjs → devices-UOBQFPV3.cjs} +9 -9
- package/dist/{embeddable-chat-KEWUGQIF.cjs → embeddable-chat-SFQWRUIV.cjs} +74 -74
- package/dist/index.cjs +12 -12
- package/dist/{knowledge-O3PXUX73.cjs → knowledge-5K3LTHGB.cjs} +9 -9
- package/dist/{logs-XODCXWYI.cjs → logs-WU3N6ESS.cjs} +16 -16
- package/dist/{policies-CQACBIKK.cjs → policies-2IYASCQO.cjs} +12 -12
- package/dist/{scripts-QMM6SEB5.cjs → scripts-IQBKOQEY.cjs} +13 -13
- package/dist/{software-update-CCCKS4ZE.cjs → software-update-GJLDO5X5.cjs} +11 -11
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +13 -4
- package/src/components/chat/chat-message-list.tsx +2 -0
- package/src/components/chat/types/component.types.ts +9 -0
- package/src/components/features/video-hover-preview.tsx +37 -46
- package/src/components/features/video.tsx +1 -61
|
@@ -1,29 +1,29 @@
|
|
|
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 _chunk2W3VDE4Dcjs = require('./chunk-2W3VDE4D.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkIE3QCYBTcjs = require('./chunk-IE3QCYBT.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkUPAE4IV5cjs = require('./chunk-UPAE4IV5.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkSIDDZZKLcjs = require('./chunk-SIDDZZKL.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkYWQ3VXPLcjs = require('./chunk-YWQ3VXPL.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkOWQVDWTKcjs = require('./chunk-OWQVDWTK.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkKKAY6GPUcjs = require('./chunk-KKAY6GPU.cjs');
|
|
@@ -33,15 +33,15 @@ var _chunkKKAY6GPUcjs = require('./chunk-KKAY6GPU.cjs');
|
|
|
33
33
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkQEFDGI3Zcjs = require('./chunk-QEFDGI3Z.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkYG72MEHYcjs = require('./chunk-YG72MEHY.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkOH5LAH3Xcjs = require('./chunk-OH5LAH3X.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunk3LW5TD54cjs = require('./chunk-3LW5TD54.cjs');
|
|
@@ -82,7 +82,7 @@ function OnboardingCatalogSectionsSkeleton() {
|
|
|
82
82
|
] }),
|
|
83
83
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: Array.from({ length: ONBOARDING_CATALOG_SKELETON_CARDS }, (_, i) => (
|
|
84
84
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
85
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
85
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYG72MEHYcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, i)
|
|
86
86
|
)) })
|
|
87
87
|
] }) });
|
|
88
88
|
}
|
|
@@ -107,10 +107,10 @@ function OnboardingGuidesCatalogView({
|
|
|
107
107
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
108
108
|
const activeSection = sectionValue || "all";
|
|
109
109
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
110
|
-
const guidesRes =
|
|
110
|
+
const guidesRes = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0,
|
|
111
111
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
112
112
|
);
|
|
113
|
-
const sectionsRes =
|
|
113
|
+
const sectionsRes = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
114
114
|
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])]);
|
|
115
115
|
const sections = _react.useMemo.call(void 0,
|
|
116
116
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -154,25 +154,25 @@ function OnboardingGuidesCatalogView({
|
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
156
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
157
|
-
const docSearch =
|
|
157
|
+
const docSearch = _chunkIE3QCYBTcjs.useDocSearch.call(void 0, {
|
|
158
158
|
source,
|
|
159
159
|
baseRoute: basePath,
|
|
160
160
|
onNavigate: (path) => router.push(path),
|
|
161
161
|
tableIds: ["onboarding-guides"]
|
|
162
162
|
});
|
|
163
163
|
const defaultRenderCard = (guide) => {
|
|
164
|
-
const cta =
|
|
164
|
+
const cta = _chunkYWQ3VXPLcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
165
165
|
type: "onboarding_guide",
|
|
166
166
|
slug: guide.slug,
|
|
167
167
|
basePath,
|
|
168
168
|
platforms: guide.onboarding_guide_platforms
|
|
169
169
|
});
|
|
170
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
170
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYG72MEHYcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
171
171
|
};
|
|
172
172
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
173
173
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
174
174
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
175
|
-
|
|
175
|
+
_chunkIE3QCYBTcjs.DocSearchBar,
|
|
176
176
|
{
|
|
177
177
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
178
178
|
query: docSearch.query,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
186
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
-
|
|
187
|
+
_chunkUPAE4IV5cjs.FilterPillRow,
|
|
188
188
|
{
|
|
189
189
|
label: "Section",
|
|
190
190
|
selectedValue: activeSection,
|
|
@@ -195,7 +195,7 @@ function OnboardingGuidesCatalogView({
|
|
|
195
195
|
)
|
|
196
196
|
] });
|
|
197
197
|
if (!loading && selfFetch && guidesRes.error) {
|
|
198
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
198
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
199
199
|
}
|
|
200
200
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
201
201
|
preControls,
|
|
@@ -315,7 +315,7 @@ function OnboardingGuideDetailView({
|
|
|
315
315
|
slug,
|
|
316
316
|
guideEndpoint,
|
|
317
317
|
related = [],
|
|
318
|
-
MarkdownRenderer =
|
|
318
|
+
MarkdownRenderer = _chunkUPAE4IV5cjs.RichMarkdownRenderer,
|
|
319
319
|
renderRelatedCard,
|
|
320
320
|
backHref,
|
|
321
321
|
backLabel = "Back to Getting Started",
|
|
@@ -325,9 +325,9 @@ function OnboardingGuideDetailView({
|
|
|
325
325
|
}) {
|
|
326
326
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
327
327
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
328
|
-
const captions =
|
|
328
|
+
const captions = _chunkOWQVDWTKcjs.useCaptions.call(void 0, );
|
|
329
329
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
330
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
330
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
331
331
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
332
332
|
const scoped = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
333
333
|
const {
|
|
@@ -335,7 +335,7 @@ function OnboardingGuideDetailView({
|
|
|
335
335
|
isLoading,
|
|
336
336
|
error,
|
|
337
337
|
reload
|
|
338
|
-
} =
|
|
338
|
+
} = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
339
339
|
initialData
|
|
340
340
|
});
|
|
341
341
|
const { ref: videoWarmupRef } = _chunkKKAY6GPUcjs.useVideoWarmup.call(void 0, {
|
|
@@ -345,7 +345,7 @@ function OnboardingGuideDetailView({
|
|
|
345
345
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
346
346
|
const loading = scoped || !guide && isLoading;
|
|
347
347
|
if (!loading && (error || !guide)) {
|
|
348
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
348
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
349
349
|
}
|
|
350
350
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
351
351
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -353,19 +353,19 @@ function OnboardingGuideDetailView({
|
|
|
353
353
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
354
354
|
_chunk3LW5TD54cjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
355
355
|
const defaultRenderRelatedCard = (g) => {
|
|
356
|
-
const cta =
|
|
356
|
+
const cta = _chunkYWQ3VXPLcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
357
357
|
type: "onboarding_guide",
|
|
358
358
|
slug: g.slug,
|
|
359
359
|
basePath,
|
|
360
360
|
platforms: g.onboarding_guide_platforms
|
|
361
361
|
});
|
|
362
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
362
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYG72MEHYcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
363
363
|
};
|
|
364
364
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
365
365
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSIDDZZKLcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
366
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
366
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
367
367
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
368
|
-
|
|
368
|
+
_chunkYG72MEHYcjs.EntityAuthorCard,
|
|
369
369
|
{
|
|
370
370
|
author: view.author,
|
|
371
371
|
authorHref,
|
|
@@ -381,7 +381,7 @@ function OnboardingGuideDetailView({
|
|
|
381
381
|
),
|
|
382
382
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
383
383
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
384
|
-
|
|
384
|
+
_chunkOWQVDWTKcjs.EntityVideoSection,
|
|
385
385
|
{
|
|
386
386
|
mainVideoUrl: view.main_video_url,
|
|
387
387
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -398,17 +398,17 @@ function OnboardingGuideDetailView({
|
|
|
398
398
|
) }),
|
|
399
399
|
(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, () => ( "")) }) }),
|
|
400
400
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
401
|
-
|
|
401
|
+
_chunkOWQVDWTKcjs.VideoBitesStrip,
|
|
402
402
|
{
|
|
403
403
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
404
404
|
filterPublished: true,
|
|
405
405
|
showTitle: false,
|
|
406
|
-
profile:
|
|
406
|
+
profile: _chunkOH5LAH3Xcjs.toStripProfile.call(void 0, view.author),
|
|
407
407
|
href: `/onboarding-guides/${view.slug}`
|
|
408
408
|
}
|
|
409
409
|
) }),
|
|
410
410
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
411
|
-
|
|
411
|
+
_chunk2W3VDE4Dcjs.ArticleAuthorByline,
|
|
412
412
|
{
|
|
413
413
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
414
414
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|