@flamingo-stack/openframe-frontend-core 0.0.775 → 0.0.776
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-L5CKY5WA.cjs → chunk-24OYQQZC.cjs} +13 -13
- package/dist/{chunk-F67SEXCW.cjs → chunk-2AZAJ7RK.cjs} +39 -39
- package/dist/{chunk-6SJYFUGD.cjs → chunk-2MF547RG.cjs} +22 -22
- package/dist/{chunk-VAGZJRYV.cjs → chunk-2YB4X5WT.cjs} +4 -4
- package/dist/{chunk-SWEPHSIP.cjs → chunk-3V27UHSH.cjs} +4 -4
- package/dist/{chunk-EQBJHJS7.cjs → chunk-6HY2NH7D.cjs} +2 -2
- package/dist/{chunk-5YJWT5ZQ.cjs → chunk-AMVI5VXM.cjs} +68 -68
- package/dist/{chunk-PMX6QNNN.cjs → chunk-BDYI6HBT.cjs} +12 -12
- package/dist/{chunk-VISK6LKE.cjs → chunk-DDXQGTWB.cjs} +2 -2
- package/dist/{chunk-IQQ3SLUK.cjs → chunk-F65RSJVV.cjs} +17 -17
- package/dist/{chunk-36GYLB3Z.cjs → chunk-IXZNBDXT.cjs} +11 -11
- package/dist/{chunk-KWZ62LPZ.cjs → chunk-KM2TVQCH.cjs} +98 -98
- package/dist/{chunk-ODF3KCRK.cjs → chunk-L55XLH5A.cjs} +29 -29
- package/dist/{chunk-TOPGBOCN.cjs → chunk-LNCBN4BL.cjs} +2 -2
- package/dist/{chunk-FHTTRWAK.cjs → chunk-MWH5ZTMB.cjs} +77 -77
- package/dist/{chunk-Y3EBUFX4.cjs → chunk-MYHS4W2H.cjs} +1 -1
- package/dist/{chunk-BTVO676B.cjs → chunk-NWZSYG4S.cjs} +74 -74
- package/dist/{chunk-TUXPFF4P.cjs → chunk-OJLZ7PGO.cjs} +28 -28
- package/dist/{chunk-4LFB4YY3.cjs → chunk-OTZQP53Y.cjs} +3 -3
- package/dist/{chunk-3XLDYEQD.cjs → chunk-UM6HFGTI.cjs} +51 -51
- package/dist/{chunk-USMR73ND.cjs → chunk-WAQPW4CB.cjs} +4 -4
- package/dist/{chunk-42JGOJCB.cjs → chunk-XN6LXMH5.cjs} +166 -166
- package/dist/{chunk-TF2XYDH3.cjs → chunk-XT5WEHFM.cjs} +3 -3
- package/dist/{chunk-VDXBACD3.cjs → chunk-YFTQ2ALU.cjs} +37 -37
- package/dist/{chunk-5AOKXXHV.cjs → chunk-Z5KX56TK.cjs} +4 -4
- package/dist/{cloud-tenants-ISGAMTJD.cjs → cloud-tenants-QFE6QMR5.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/features/use-file-playback.d.ts +6 -4
- package/dist/components/features/use-file-playback.d.ts.map +1 -1
- package/dist/components/features/use-file-playback.js +16 -7
- package/dist/components/help-center-pages/index.cjs +83 -83
- package/dist/components/index.cjs +55 -55
- package/dist/components/meeting-scheduler/index.cjs +37 -37
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/product-demo/index.cjs +16 -16
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/index.cjs +7 -7
- package/dist/{devices-AHJX6ACJ.cjs → devices-SFJDLXSW.cjs} +8 -8
- package/dist/{embeddable-chat-DI7ZZTBP.cjs → embeddable-chat-XZUWAK4W.cjs} +73 -73
- package/dist/index.cjs +11 -11
- package/dist/{knowledge-FH5GVRVP.cjs → knowledge-SAK3ZGCO.cjs} +8 -8
- package/dist/{logs-JBIHHLUQ.cjs → logs-CYBGMFA5.cjs} +15 -15
- package/dist/{policies-XLJ2ABY5.cjs → policies-XXDOICWF.cjs} +11 -11
- package/dist/{scripts-CQLXM7PP.cjs → scripts-C5T2AQPA.cjs} +12 -12
- package/dist/{software-update-7NYZ7L76.cjs → software-update-XU5AI4TP.cjs} +10 -10
- package/dist/{video-file-player-4TXA7BZF.cjs → video-file-player-6ZFOZFER.cjs} +16 -7
- package/package.json +1 -1
- package/src/components/features/use-file-playback.ts +33 -14
|
@@ -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 _chunkDDXQGTWBcjs = require('./chunk-DDXQGTWB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkBDYI6HBTcjs = require('./chunk-BDYI6HBT.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkXN6LXMH5cjs = require('./chunk-XN6LXMH5.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkNWZSYG4Scjs = require('./chunk-NWZSYG4S.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkKM2TVQCHcjs = require('./chunk-KM2TVQCH.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkKKAY6GPUcjs = require('./chunk-KKAY6GPU.cjs');
|
|
@@ -33,13 +33,13 @@ var _chunkKKAY6GPUcjs = require('./chunk-KKAY6GPU.cjs');
|
|
|
33
33
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkOJLZ7PGOcjs = require('./chunk-OJLZ7PGO.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkMYHS4W2Hcjs = require('./chunk-MYHS4W2H.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunk3LW5TD54cjs = require('./chunk-3LW5TD54.cjs');
|
|
@@ -80,7 +80,7 @@ function OnboardingCatalogSectionsSkeleton() {
|
|
|
80
80
|
] }),
|
|
81
81
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: Array.from({ length: ONBOARDING_CATALOG_SKELETON_CARDS }, (_, i) => (
|
|
82
82
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
83
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, i)
|
|
84
84
|
)) })
|
|
85
85
|
] }) });
|
|
86
86
|
}
|
|
@@ -105,10 +105,10 @@ function OnboardingGuidesCatalogView({
|
|
|
105
105
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
106
106
|
const activeSection = sectionValue || "all";
|
|
107
107
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
108
|
-
const guidesRes =
|
|
108
|
+
const guidesRes = _chunkOJLZ7PGOcjs.useSelfFetch.call(void 0,
|
|
109
109
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
110
110
|
);
|
|
111
|
-
const sectionsRes =
|
|
111
|
+
const sectionsRes = _chunkOJLZ7PGOcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
112
112
|
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])]);
|
|
113
113
|
const sections = _react.useMemo.call(void 0,
|
|
114
114
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -152,25 +152,25 @@ function OnboardingGuidesCatalogView({
|
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
155
|
-
const docSearch =
|
|
155
|
+
const docSearch = _chunkBDYI6HBTcjs.useDocSearch.call(void 0, {
|
|
156
156
|
source,
|
|
157
157
|
baseRoute: basePath,
|
|
158
158
|
onNavigate: (path) => router.push(path),
|
|
159
159
|
tableIds: ["onboarding-guides"]
|
|
160
160
|
});
|
|
161
161
|
const defaultRenderCard = (guide) => {
|
|
162
|
-
const cta =
|
|
162
|
+
const cta = _chunkNWZSYG4Scjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
163
163
|
type: "onboarding_guide",
|
|
164
164
|
slug: guide.slug,
|
|
165
165
|
basePath,
|
|
166
166
|
platforms: guide.onboarding_guide_platforms
|
|
167
167
|
});
|
|
168
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
168
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
169
169
|
};
|
|
170
170
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
171
171
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
172
172
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
173
|
-
|
|
173
|
+
_chunkBDYI6HBTcjs.DocSearchBar,
|
|
174
174
|
{
|
|
175
175
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
176
176
|
query: docSearch.query,
|
|
@@ -182,7 +182,7 @@ function OnboardingGuidesCatalogView({
|
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
184
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
|
-
|
|
185
|
+
_chunkXN6LXMH5cjs.FilterPillRow,
|
|
186
186
|
{
|
|
187
187
|
label: "Section",
|
|
188
188
|
selectedValue: activeSection,
|
|
@@ -193,7 +193,7 @@ function OnboardingGuidesCatalogView({
|
|
|
193
193
|
)
|
|
194
194
|
] });
|
|
195
195
|
if (!loading && selfFetch && guidesRes.error) {
|
|
196
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN6LXMH5cjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
197
197
|
}
|
|
198
198
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
199
199
|
preControls,
|
|
@@ -313,7 +313,7 @@ function OnboardingGuideDetailView({
|
|
|
313
313
|
slug,
|
|
314
314
|
guideEndpoint,
|
|
315
315
|
related = [],
|
|
316
|
-
MarkdownRenderer =
|
|
316
|
+
MarkdownRenderer = _chunkXN6LXMH5cjs.RichMarkdownRenderer,
|
|
317
317
|
renderRelatedCard,
|
|
318
318
|
backHref,
|
|
319
319
|
backLabel = "Back to Getting Started",
|
|
@@ -323,9 +323,9 @@ function OnboardingGuideDetailView({
|
|
|
323
323
|
}) {
|
|
324
324
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
325
325
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
326
|
-
const captions =
|
|
326
|
+
const captions = _chunkKM2TVQCHcjs.useCaptions.call(void 0, );
|
|
327
327
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
328
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
328
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN6LXMH5cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
329
329
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
330
330
|
const scoped = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
331
331
|
const {
|
|
@@ -333,7 +333,7 @@ function OnboardingGuideDetailView({
|
|
|
333
333
|
isLoading,
|
|
334
334
|
error,
|
|
335
335
|
reload
|
|
336
|
-
} =
|
|
336
|
+
} = _chunkOJLZ7PGOcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
337
337
|
initialData
|
|
338
338
|
});
|
|
339
339
|
const { ref: videoWarmupRef } = _chunkKKAY6GPUcjs.useVideoWarmup.call(void 0, {
|
|
@@ -343,7 +343,7 @@ function OnboardingGuideDetailView({
|
|
|
343
343
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
344
344
|
const loading = scoped || !guide && isLoading;
|
|
345
345
|
if (!loading && (error || !guide)) {
|
|
346
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
346
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN6LXMH5cjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
347
347
|
}
|
|
348
348
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
349
349
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -351,19 +351,19 @@ function OnboardingGuideDetailView({
|
|
|
351
351
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
352
352
|
_chunk3LW5TD54cjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
353
353
|
const defaultRenderRelatedCard = (g) => {
|
|
354
|
-
const cta =
|
|
354
|
+
const cta = _chunkNWZSYG4Scjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
355
355
|
type: "onboarding_guide",
|
|
356
356
|
slug: g.slug,
|
|
357
357
|
basePath,
|
|
358
358
|
platforms: g.onboarding_guide_platforms
|
|
359
359
|
});
|
|
360
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
360
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYHS4W2Hcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
361
361
|
};
|
|
362
362
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
363
363
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkV3W56L2Dcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
364
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN6LXMH5cjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
365
365
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
366
|
-
|
|
366
|
+
_chunkMYHS4W2Hcjs.EntityAuthorCard,
|
|
367
367
|
{
|
|
368
368
|
author: view.author,
|
|
369
369
|
authorHref,
|
|
@@ -379,7 +379,7 @@ function OnboardingGuideDetailView({
|
|
|
379
379
|
),
|
|
380
380
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
381
381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
-
|
|
382
|
+
_chunkKM2TVQCHcjs.EntityVideoSection,
|
|
383
383
|
{
|
|
384
384
|
mainVideoUrl: view.main_video_url,
|
|
385
385
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -396,17 +396,17 @@ function OnboardingGuideDetailView({
|
|
|
396
396
|
) }),
|
|
397
397
|
(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, () => ( "")) }) }),
|
|
398
398
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
399
|
-
|
|
399
|
+
_chunkKM2TVQCHcjs.VideoBitesStrip,
|
|
400
400
|
{
|
|
401
401
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
402
402
|
filterPublished: true,
|
|
403
403
|
showTitle: false,
|
|
404
|
-
profile:
|
|
404
|
+
profile: _chunkMYHS4W2Hcjs.toStripProfile.call(void 0, view.author),
|
|
405
405
|
href: `/onboarding-guides/${view.slug}`
|
|
406
406
|
}
|
|
407
407
|
) }),
|
|
408
408
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
409
|
-
|
|
409
|
+
_chunkDDXQGTWBcjs.ArticleAuthorByline,
|
|
410
410
|
{
|
|
411
411
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
412
412
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMYHS4W2Hcjs = require('./chunk-MYHS4W2H.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -49,7 +49,7 @@ function PaginationControl({
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
const handleClick = (event) => {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkMYHS4W2Hcjs.isModifierClick.call(void 0, event)) return;
|
|
53
53
|
event.preventDefault();
|
|
54
54
|
onPageChange(page);
|
|
55
55
|
};
|