@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.830
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/build/export-map.json +1 -1
- package/dist/{chunk-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
- package/dist/{chunk-MFYSV7DE.cjs → chunk-56EP4QM2.cjs} +24 -24
- package/dist/{chunk-IHRMX3X6.cjs → chunk-5KSPG3TV.cjs} +357 -357
- package/dist/{chunk-UO6F6LLI.cjs → chunk-5LED4QHZ.cjs} +508 -451
- package/dist/{chunk-IMDYB77M.cjs → chunk-CAGQAMJ6.cjs} +21 -21
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-D2LXFMZI.cjs} +22 -22
- package/dist/{chunk-LNXRTVOY.cjs → chunk-DUGOOTER.cjs} +11 -11
- package/dist/{chunk-R3PKAIX3.cjs → chunk-E6W4YDPS.cjs} +2 -2
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-FFFN4IY2.cjs} +5 -5
- package/dist/{chunk-THPAGFT6.cjs → chunk-HYCMMECU.cjs} +44 -44
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-HYGWRUEM.cjs} +3 -3
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-M75723HD.cjs} +8 -8
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-PUXYAHH3.cjs} +3 -3
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
- package/dist/{chunk-HMC2IWV4.cjs → chunk-RRPID7Z7.cjs} +6 -6
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-SAW7V7CU.cjs} +13 -13
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-TUMSVFVS.cjs} +4 -4
- package/dist/{chunk-DWSU35QQ.cjs → chunk-ULF4ZOUM.cjs} +57 -57
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-WCCE4WF3.cjs} +50 -50
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
- package/dist/{chunk-PRZAEPGG.cjs → chunk-WZYBUJJG.cjs} +41 -41
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-X425BGXS.cjs} +2 -2
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-4KQQPXPM.cjs} +9 -9
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +9 -5
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/contact/index.cjs +10 -10
- package/dist/components/docs/index.cjs +13 -13
- package/dist/components/embeds/index.cjs +10 -10
- package/dist/components/faq/index.cjs +11 -11
- package/dist/components/features/index.cjs +9 -9
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/index.cjs +47 -43
- package/dist/components/meeting-scheduler/index.cjs +41 -41
- package/dist/components/navigation/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +13 -9
- package/dist/{devices-AW6BERJF.cjs → devices-H6C4NMIY.cjs} +10 -10
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-KUESE7P6.cjs} +104 -97
- package/dist/index.cjs +17 -13
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-O6IBO5Y5.cjs} +10 -10
- package/dist/{logs-CYA7H4KM.cjs → logs-Y2UCF24Z.cjs} +16 -16
- package/dist/{policies-M6QSFL5G.cjs → policies-J6O3RLJT.cjs} +13 -13
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
- package/dist/{scripts-Y46ECDDP.cjs → scripts-N67MM4T2.cjs} +16 -16
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-HB7F6KNG.cjs} +13 -13
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/ui/actions-menu.tsx +35 -1
|
@@ -3,39 +3,39 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPUXYAHH3cjs = require('./chunk-PUXYAHH3.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkE6W4YDPScjs = require('./chunk-E6W4YDPS.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkFFFN4IY2cjs = require('./chunk-FFFN4IY2.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk2BGLALP5cjs = require('./chunk-2BGLALP5.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk56EP4QM2cjs = require('./chunk-56EP4QM2.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -354,13 +354,13 @@ function toDocContent(value, requestedPath) {
|
|
|
354
354
|
function toDataSync(value) {
|
|
355
355
|
if (!isRecord(value)) return void 0;
|
|
356
356
|
const source = readString(value, "source");
|
|
357
|
-
if (!
|
|
357
|
+
if (!_chunk5KSPG3TVcjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
358
358
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
359
359
|
}
|
|
360
360
|
function useDocumentTree(config, initialPath) {
|
|
361
361
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
362
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
363
|
-
const cleanInitialPath =
|
|
362
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunk56EP4QM2cjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunk56EP4QM2cjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
364
364
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
365
365
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
366
366
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -386,12 +386,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
386
386
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
387
387
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
388
388
|
}
|
|
389
|
-
pathFromUrl =
|
|
389
|
+
pathFromUrl = _chunk56EP4QM2cjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
390
390
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
391
391
|
setSelectedPath(pathFromUrl);
|
|
392
392
|
if (pathFromUrl) {
|
|
393
393
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
394
|
-
setExpandedNodes(new Set(
|
|
394
|
+
setExpandedNodes(new Set(_chunk56EP4QM2cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
395
395
|
}
|
|
396
396
|
setTimeout(() => {
|
|
397
397
|
scrollToContent();
|
|
@@ -409,7 +409,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
409
409
|
setSelectedPath(cleanInitialPath);
|
|
410
410
|
if (cleanInitialPath) {
|
|
411
411
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
412
|
-
setExpandedNodes(new Set(
|
|
412
|
+
setExpandedNodes(new Set(_chunk56EP4QM2cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
413
413
|
}
|
|
414
414
|
setExternalNavCount((n) => n + 1);
|
|
415
415
|
}
|
|
@@ -434,7 +434,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
434
434
|
if (cleanInitialPath) {
|
|
435
435
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
436
436
|
if (pathForExpansion) {
|
|
437
|
-
setExpandedNodes(new Set(
|
|
437
|
+
setExpandedNodes(new Set(_chunk56EP4QM2cjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
438
438
|
}
|
|
439
439
|
} else if (nodes.length > 0) {
|
|
440
440
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -474,7 +474,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
474
474
|
setContent(null);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
|
-
const probe =
|
|
477
|
+
const probe = _chunk56EP4QM2cjs.findDocNodeByPath.call(void 0, _chunk56EP4QM2cjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
478
478
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
479
479
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
480
480
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -533,7 +533,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
533
533
|
if (selectedPath === "") {
|
|
534
534
|
pathToFetch = folderIndexFile;
|
|
535
535
|
} else {
|
|
536
|
-
const node =
|
|
536
|
+
const node = _chunk56EP4QM2cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
537
537
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
538
538
|
const firstDocPath = findFirstDocPath(node);
|
|
539
539
|
if (!firstDocPath) {
|
|
@@ -574,16 +574,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
574
|
if (node.type === "folder") {
|
|
575
575
|
setExpandedNodes((prev) => {
|
|
576
576
|
if (prev.has(node.id)) {
|
|
577
|
-
const ancestorIds =
|
|
577
|
+
const ancestorIds = _chunk56EP4QM2cjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
578
578
|
ancestorIds.pop();
|
|
579
579
|
return new Set(ancestorIds);
|
|
580
580
|
}
|
|
581
|
-
return new Set(
|
|
581
|
+
return new Set(_chunk56EP4QM2cjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
582
582
|
});
|
|
583
583
|
} else {
|
|
584
584
|
const lastSlash = node.path.lastIndexOf("/");
|
|
585
585
|
if (lastSlash > 0) {
|
|
586
|
-
setExpandedNodes(new Set(
|
|
586
|
+
setExpandedNodes(new Set(_chunk56EP4QM2cjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
lastFetchedPath.current = null;
|
|
@@ -598,7 +598,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
598
598
|
const hashIndex = path.indexOf("#");
|
|
599
599
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
600
600
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
601
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
601
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunk56EP4QM2cjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkW4VEDSAXcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkW4VEDSAXcjs.HUB_HEADER_OFFSET_PX });
|
|
604
604
|
return;
|
|
@@ -662,15 +662,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
662
662
|
return docNavigation.register({
|
|
663
663
|
baseRoute: normalizedBaseRoute,
|
|
664
664
|
findNodeByPath: (path) => {
|
|
665
|
-
const clean =
|
|
666
|
-
return _nullishCoalesce(
|
|
665
|
+
const clean = _chunk56EP4QM2cjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunk56EP4QM2cjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
667
667
|
},
|
|
668
668
|
selectNode
|
|
669
669
|
});
|
|
670
670
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
671
671
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
672
672
|
if (!selectedPath || structure.length === 0) return false;
|
|
673
|
-
const node =
|
|
673
|
+
const node = _chunk56EP4QM2cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
674
674
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
675
675
|
}, [selectedPath, structure]);
|
|
676
676
|
return {
|
|
@@ -753,14 +753,14 @@ function DocViewerContent({
|
|
|
753
753
|
},
|
|
754
754
|
docPath
|
|
755
755
|
);
|
|
756
|
-
const { activeSection, handleSectionClick } =
|
|
756
|
+
const { activeSection, handleSectionClick } = _chunkE6W4YDPScjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
757
757
|
const docNav = useDocNavigation();
|
|
758
758
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
759
759
|
const backCfg = backButton === false ? null : {
|
|
760
760
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
761
761
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
762
762
|
};
|
|
763
|
-
const docSearch =
|
|
763
|
+
const docSearch = _chunkFFFN4IY2cjs.useDocSearch.call(void 0, {
|
|
764
764
|
source: chatSource,
|
|
765
765
|
baseRoute,
|
|
766
766
|
searchEndpoint,
|
|
@@ -784,7 +784,7 @@ function DocViewerContent({
|
|
|
784
784
|
onResolveLink: resolveLink
|
|
785
785
|
});
|
|
786
786
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
787
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
787
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunk56EP4QM2cjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
788
788
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
789
789
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
790
790
|
const showStickyNav = isMarkdownContent;
|
|
@@ -795,10 +795,10 @@ function DocViewerContent({
|
|
|
795
795
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
796
796
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
797
797
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
798
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
798
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2BGLALP5cjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
799
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunkFFFN4IY2cjs.DocSearchBar,
|
|
802
802
|
{
|
|
803
803
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21()]) || "documents"}...`,
|
|
804
804
|
query: docSearch.query,
|
|
@@ -819,7 +819,7 @@ function DocViewerContent({
|
|
|
819
819
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
820
820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: [
|
|
821
821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
822
|
-
|
|
822
|
+
_chunkE6W4YDPScjs.MobileNavigationDropdown,
|
|
823
823
|
{
|
|
824
824
|
nodes: structure,
|
|
825
825
|
selectedPath,
|
|
@@ -833,7 +833,7 @@ function DocViewerContent({
|
|
|
833
833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
834
834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
835
835
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
836
|
-
|
|
836
|
+
_chunkE6W4YDPScjs.MultiLevelNavigation,
|
|
837
837
|
{
|
|
838
838
|
nodes: structure,
|
|
839
839
|
selectedPath,
|
|
@@ -872,7 +872,7 @@ function DocViewerContent({
|
|
|
872
872
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
873
873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: ON_THIS_PAGE_HEADING_CLASS, children: ON_THIS_PAGE_LABEL }),
|
|
874
874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
875
|
-
|
|
875
|
+
_chunkE6W4YDPScjs.StickySectionNav,
|
|
876
876
|
{
|
|
877
877
|
sections: stickyNavSections,
|
|
878
878
|
activeSection,
|
|
@@ -887,7 +887,7 @@ function DocViewerContent({
|
|
|
887
887
|
) })
|
|
888
888
|
] })
|
|
889
889
|
] }) }) });
|
|
890
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
// src/components/docs/skeletons.tsx
|
|
@@ -903,14 +903,14 @@ var MARKDOWN_SKELETON_BLOCKS = [
|
|
|
903
903
|
{ kind: "p", lines: 3 },
|
|
904
904
|
{ kind: "p", lines: 4 }
|
|
905
905
|
];
|
|
906
|
-
var MARKDOWN_SKELETON_H2_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
907
|
-
var MARKDOWN_SKELETON_P_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
906
|
+
var MARKDOWN_SKELETON_H2_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunk5LED4QHZcjs.MARKDOWN_H2_CLASS, _chunk5LED4QHZcjs.TEXT_SIZE_PRESETS.default.h2);
|
|
907
|
+
var MARKDOWN_SKELETON_P_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunk5LED4QHZcjs.MARKDOWN_PARAGRAPH_CLASS, _chunk5LED4QHZcjs.TEXT_SIZE_PRESETS.default.p);
|
|
908
908
|
function MarkdownSkeleton({
|
|
909
909
|
region = true
|
|
910
910
|
} = {}) {
|
|
911
911
|
return (
|
|
912
912
|
// The renderer's root class, and its box (no margin of its own, like the rendered body): the document's first fold.
|
|
913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the document", announce: region, className:
|
|
913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the document", announce: region, className: _chunk5LED4QHZcjs.MARKDOWN_RENDERER_CLASS, children: MARKDOWN_SKELETON_BLOCKS.map(
|
|
914
914
|
(block, i) => block.kind === "h2" ? (
|
|
915
915
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton blocks never reorder
|
|
916
916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: MARKDOWN_SKELETON_H2_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/3" }) }, i)
|
|
@@ -959,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
959
959
|
] }),
|
|
960
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
961
961
|
] }),
|
|
962
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.EmbedLoadingSkeleton, { region: false })
|
|
963
963
|
] });
|
|
964
964
|
}
|
|
965
965
|
|
|
@@ -967,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
967
967
|
|
|
968
968
|
var DEFAULT_TITLE = "Documents";
|
|
969
969
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
970
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
971
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
972
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUXYAHH3cjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUXYAHH3cjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
973
973
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
974
|
-
|
|
974
|
+
_chunkPUXYAHH3cjs.FileDownloadCard,
|
|
975
975
|
{
|
|
976
976
|
fileName: content.fileName,
|
|
977
977
|
mimeType: content.mimeType,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkMG3HJIGGcjs = require('./chunk-MG3HJIGG.cjs');
|
|
@@ -268,7 +268,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
|
|
|
268
268
|
...props,
|
|
269
269
|
children: [
|
|
270
270
|
applyInlineSize ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
-
|
|
271
|
+
_chunk5LED4QHZcjs.PanelResizeHandle,
|
|
272
272
|
{
|
|
273
273
|
variant: "overlay",
|
|
274
274
|
side: resolvedSide,
|
|
@@ -168,7 +168,7 @@ var MenuItem = ({ item, onItemClick }) => {
|
|
|
168
168
|
}
|
|
169
169
|
const itemClasses = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
170
170
|
ROW_CLASSES,
|
|
171
|
-
item.disabled ? "pointer-events-none cursor-not-allowed text-ods-text-secondary opacity-60" : "text-ods-text-primary hover:bg-ods-bg-hover"
|
|
171
|
+
item.disabled ? "pointer-events-none cursor-not-allowed text-ods-text-secondary opacity-60" : "text-ods-text-primary hover:bg-ods-bg-hover focus-visible:bg-ods-bg-hover"
|
|
172
172
|
);
|
|
173
173
|
const subTriggerClasses = _chunk63A4GZMBcjs.cn.call(void 0, itemClasses, "focus:bg-ods-bg-hover data-[state=open]:bg-ods-bg-active");
|
|
174
174
|
const renderAsLink = !!item.href && item.type !== "submenu" && item.type !== "checkbox";
|
|
@@ -263,6 +263,16 @@ var MenuItem = ({ item, onItemClick }) => {
|
|
|
263
263
|
item.iconAction && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SecondaryAction, { action: item.iconAction })
|
|
264
264
|
] });
|
|
265
265
|
};
|
|
266
|
+
function menuRows(content) {
|
|
267
|
+
if (!content) return [];
|
|
268
|
+
return [...content.querySelectorAll('[role^="menuitem"]:not([aria-disabled="true"])')];
|
|
269
|
+
}
|
|
270
|
+
var MENU_ROW_KEYS = {
|
|
271
|
+
ArrowDown: (index, count) => (index + 1) % count,
|
|
272
|
+
ArrowUp: (index, count) => (index - 1 + count) % count,
|
|
273
|
+
Home: () => 0,
|
|
274
|
+
End: (_index, count) => count - 1
|
|
275
|
+
};
|
|
266
276
|
var GroupSeparator = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[3px] w-full bg-ods-bg-surface" });
|
|
267
277
|
var ActionsMenu = ({ groups, className = "", onItemClick, header }) => {
|
|
268
278
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -311,6 +321,12 @@ var ActionsMenuDropdown = ({
|
|
|
311
321
|
});
|
|
312
322
|
useReportOverlayOpen(open);
|
|
313
323
|
const triggerRef = _react2.default.useRef(null);
|
|
324
|
+
const contentRef = _react2.default.useRef(null);
|
|
325
|
+
_react2.default.useEffect(() => {
|
|
326
|
+
if (!open) return void 0;
|
|
327
|
+
const frame = requestAnimationFrame(() => _optionalChain([menuRows, 'call', _16 => _16(contentRef.current), 'access', _17 => _17[0], 'optionalAccess', _18 => _18.focus, 'call', _19 => _19()]));
|
|
328
|
+
return () => cancelAnimationFrame(frame);
|
|
329
|
+
}, [open]);
|
|
314
330
|
_react2.default.useEffect(() => {
|
|
315
331
|
if (!open) return void 0;
|
|
316
332
|
if (typeof document === "undefined") return void 0;
|
|
@@ -329,7 +345,7 @@ var ActionsMenuDropdown = ({
|
|
|
329
345
|
}, [open, setOpen]);
|
|
330
346
|
const handleItemClick = _react.useCallback.call(void 0,
|
|
331
347
|
(item) => {
|
|
332
|
-
_optionalChain([onItemClick, 'optionalCall',
|
|
348
|
+
_optionalChain([onItemClick, 'optionalCall', _20 => _20(item)]);
|
|
333
349
|
if (item.type !== "checkbox" && item.type !== "submenu" && item.closeOnSelect !== false) {
|
|
334
350
|
setOpen(false);
|
|
335
351
|
}
|
|
@@ -354,9 +370,19 @@ var ActionsMenuDropdown = ({
|
|
|
354
370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
371
|
_chunkS3QXLD4Xcjs.DropdownMenuContent,
|
|
356
372
|
{
|
|
373
|
+
ref: contentRef,
|
|
357
374
|
align,
|
|
358
375
|
side,
|
|
359
376
|
sideOffset,
|
|
377
|
+
onKeyDown: (event) => {
|
|
378
|
+
const move = MENU_ROW_KEYS[event.key];
|
|
379
|
+
if (!move) return;
|
|
380
|
+
const rows = menuRows(contentRef.current);
|
|
381
|
+
if (rows.length === 0) return;
|
|
382
|
+
event.preventDefault();
|
|
383
|
+
const current = rows.indexOf(document.activeElement);
|
|
384
|
+
_optionalChain([rows, 'access', _21 => _21[move(Math.max(current, 0), rows.length)], 'optionalAccess', _22 => _22.focus, 'call', _23 => _23()]);
|
|
385
|
+
},
|
|
360
386
|
onCloseAutoFocus,
|
|
361
387
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "overflow-visible border-0 bg-transparent p-0 shadow-none", contentClassName),
|
|
362
388
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionsMenu, { groups, onItemClick: handleItemClick, className, header })
|
|
@@ -9,10 +9,10 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
9
9
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
12
|
+
var _chunk5KSPG3TVcjs = require('./chunk-5KSPG3TV.cjs');
|
|
13
|
+
require('./chunk-2BGLALP5.cjs');
|
|
14
|
+
require('./chunk-WWDNLMB7.cjs');
|
|
15
|
+
require('./chunk-X425BGXS.cjs');
|
|
16
16
|
require('./chunk-HQQE74RO.cjs');
|
|
17
17
|
require('./chunk-DEY6XXGO.cjs');
|
|
18
18
|
require('./chunk-AY6XJOIN.cjs');
|
|
@@ -20,12 +20,12 @@ require('./chunk-APOMNC7H.cjs');
|
|
|
20
20
|
require('./chunk-24I6RFVU.cjs');
|
|
21
21
|
require('./chunk-MZ4KBSH7.cjs');
|
|
22
22
|
require('./chunk-5SZ4ILU3.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-56EP4QM2.cjs');
|
|
24
24
|
require('./chunk-OT6P57ZS.cjs');
|
|
25
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-5LED4QHZ.cjs');
|
|
26
26
|
require('./chunk-IBD2FPSX.cjs');
|
|
27
|
-
require('./chunk-
|
|
28
|
-
require('./chunk-
|
|
27
|
+
require('./chunk-QTLWU6FY.cjs');
|
|
28
|
+
require('./chunk-YJZ7R3W5.cjs');
|
|
29
29
|
require('./chunk-6CZVQ72C.cjs');
|
|
30
30
|
require('./chunk-46547WQW.cjs');
|
|
31
31
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1921,7 +1921,7 @@ var getHref = () => "#";
|
|
|
1921
1921
|
function CloudTenantsScreen(_props) {
|
|
1922
1922
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1923
1923
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1924
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1924
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1925
1925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1926
1926
|
}
|
|
1927
1927
|
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
var _chunkDTKGIG4Acjs = require('../../chunk-DTKGIG4A.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkD2LXFMZIcjs = require('../../chunk-D2LXFMZI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('../../chunk-
|
|
15
|
-
require('../../chunk-
|
|
16
|
-
require('../../chunk-
|
|
13
|
+
var _chunk5KSPG3TVcjs = require('../../chunk-5KSPG3TV.cjs');
|
|
14
|
+
require('../../chunk-2BGLALP5.cjs');
|
|
15
|
+
require('../../chunk-WWDNLMB7.cjs');
|
|
16
|
+
require('../../chunk-X425BGXS.cjs');
|
|
17
17
|
require('../../chunk-HQQE74RO.cjs');
|
|
18
18
|
require('../../chunk-DEY6XXGO.cjs');
|
|
19
19
|
require('../../chunk-AY6XJOIN.cjs');
|
|
@@ -21,15 +21,15 @@ require('../../chunk-APOMNC7H.cjs');
|
|
|
21
21
|
require('../../chunk-24I6RFVU.cjs');
|
|
22
22
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
23
23
|
require('../../chunk-5SZ4ILU3.cjs');
|
|
24
|
-
require('../../chunk-
|
|
24
|
+
require('../../chunk-56EP4QM2.cjs');
|
|
25
25
|
require('../../chunk-OT6P57ZS.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk5LED4QHZcjs = require('../../chunk-5LED4QHZ.cjs');
|
|
30
30
|
require('../../chunk-IBD2FPSX.cjs');
|
|
31
|
-
require('../../chunk-
|
|
32
|
-
require('../../chunk-
|
|
31
|
+
require('../../chunk-QTLWU6FY.cjs');
|
|
32
|
+
require('../../chunk-YJZ7R3W5.cjs');
|
|
33
33
|
require('../../chunk-6CZVQ72C.cjs');
|
|
34
34
|
require('../../chunk-46547WQW.cjs');
|
|
35
35
|
require('../../chunk-LNUFH4E2.cjs');
|
|
@@ -1934,9 +1934,9 @@ function ShareExperienceSection({
|
|
|
1934
1934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h2", children: howItWorksTitle }),
|
|
1935
1935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4", children: howItWorksBody })
|
|
1936
1936
|
] }),
|
|
1937
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1937
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5KSPG3TVcjs.BenefitCardGrid, { columns: 4, children: [
|
|
1938
1938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1939
|
-
|
|
1939
|
+
_chunk5KSPG3TVcjs.BenefitCard,
|
|
1940
1940
|
{
|
|
1941
1941
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJQLBIZMcjs.G2Icon, { color: "var(--social-g2)", size: 24 }) }),
|
|
1942
1942
|
title: "G2",
|
|
@@ -1945,7 +1945,7 @@ function ShareExperienceSection({
|
|
|
1945
1945
|
}
|
|
1946
1946
|
),
|
|
1947
1947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1948
|
-
|
|
1948
|
+
_chunk5KSPG3TVcjs.BenefitCard,
|
|
1949
1949
|
{
|
|
1950
1950
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA2VKPXOBcjs.CapterraIcon, { size: 24 }) }),
|
|
1951
1951
|
title: "Capterra",
|
|
@@ -1954,7 +1954,7 @@ function ShareExperienceSection({
|
|
|
1954
1954
|
}
|
|
1955
1955
|
),
|
|
1956
1956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1957
|
-
|
|
1957
|
+
_chunk5KSPG3TVcjs.BenefitCard,
|
|
1958
1958
|
{
|
|
1959
1959
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTLKSZG3Dcjs.TrustpilotIcon, { size: 24 }) }),
|
|
1960
1960
|
title: "TrustPilot",
|
|
@@ -1963,7 +1963,7 @@ function ShareExperienceSection({
|
|
|
1963
1963
|
}
|
|
1964
1964
|
),
|
|
1965
1965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1966
|
-
|
|
1966
|
+
_chunk5KSPG3TVcjs.BenefitCard,
|
|
1967
1967
|
{
|
|
1968
1968
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILYW6BQNcjs.GetappIcon, { size: 24 }) }),
|
|
1969
1969
|
title: "GetApp",
|
|
@@ -1972,7 +1972,7 @@ function ShareExperienceSection({
|
|
|
1972
1972
|
}
|
|
1973
1973
|
)
|
|
1974
1974
|
] }),
|
|
1975
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1975
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD2LXFMZIcjs.ContactForm, { ...DEFAULT_CONTACT_FORM_PROPS, ...contactFormProps })
|
|
1976
1976
|
] }) })
|
|
1977
1977
|
] });
|
|
1978
1978
|
}
|
|
@@ -1989,7 +1989,7 @@ function EntityQuotesPanel({ quotes, className }) {
|
|
|
1989
1989
|
// Optional per record, so the loading state draws none: the gate leaves the loaded panel out of its comparison.
|
|
1990
1990
|
// A plain block around the one panel, so the parent's spacing applies to it as it did to the panel.
|
|
1991
1991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1992
|
-
|
|
1992
|
+
_chunk5KSPG3TVcjs.StackedRowsPanel,
|
|
1993
1993
|
{
|
|
1994
1994
|
className,
|
|
1995
1995
|
title: `${_chunkDTKGIG4Acjs.ENTITY_QUOTES_TITLE} \xB7 ${quotes.length}`,
|
|
@@ -2027,19 +2027,19 @@ function QuoteCardTile({ quote, decorative, className, loading, ...props }) {
|
|
|
2027
2027
|
className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, "hover:border-ods-border-hover", className),
|
|
2028
2028
|
...props,
|
|
2029
2029
|
children: [
|
|
2030
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2031
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.PersonCell, { size: "lg", name: `"${quote.text}"`, secondary: quote.attribution, avatarUrl: quote.logoUrl }),
|
|
2031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.CardHitLayer, { href: quote.href, label: `${quote.text}, ${quote.attribution}`, decorative })
|
|
2032
2032
|
]
|
|
2033
2033
|
}
|
|
2034
2034
|
);
|
|
2035
2035
|
}
|
|
2036
2036
|
function QuoteCardTileSkeleton({ className }) {
|
|
2037
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Card, { variant: "panel", className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading a customer story", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2037
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Card, { variant: "panel", className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading a customer story", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5KSPG3TVcjs.PersonCell, { loading: true, size: "lg" }) }) });
|
|
2038
2038
|
}
|
|
2039
2039
|
var QUOTE_STRIP_SKELETON_CARDS = 4;
|
|
2040
2040
|
function QuoteCardsStripSkeleton({ count, className }) {
|
|
2041
2041
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2042
|
-
|
|
2042
|
+
_chunk5LED4QHZcjs.CardsStrip,
|
|
2043
2043
|
{
|
|
2044
2044
|
className,
|
|
2045
2045
|
showTitle: false,
|
|
@@ -2058,7 +2058,7 @@ function QuoteCardsStrip({ quotes, loading = false, skeletonCount, className })
|
|
|
2058
2058
|
}
|
|
2059
2059
|
if (quotes.length === 0) return null;
|
|
2060
2060
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2061
|
-
|
|
2061
|
+
_chunk5LED4QHZcjs.CardsStrip,
|
|
2062
2062
|
{
|
|
2063
2063
|
className,
|
|
2064
2064
|
showTitle: false,
|
|
@@ -230,10 +230,10 @@ export interface EmbeddableChatProps {
|
|
|
230
230
|
* extra `quickActions` chips.
|
|
231
231
|
* Each field falls back to the built-in OpenFrame defaults, so the kit
|
|
232
232
|
* stays platform-agnostic. `onStartGuideChat` and `hasExistingChats` are
|
|
233
|
-
* wired internally and are NOT overridable here.
|
|
234
|
-
*
|
|
233
|
+
* wired internally and are NOT overridable here. A quick action's click is wired internally too: it puts the
|
|
234
|
+
* action's prompt into the composer to edit and send, then calls the action's own `onClick` (e.g. analytics).
|
|
235
235
|
*/
|
|
236
|
-
mingoWelcome?: Omit<MingoWelcomeProps, 'onStartGuideChat' | 'hasExistingChats'
|
|
236
|
+
mingoWelcome?: Omit<MingoWelcomeProps, 'onStartGuideChat' | 'hasExistingChats'>;
|
|
237
237
|
/**
|
|
238
238
|
* The host's conversation page size: how many dialogs one page of the list
|
|
239
239
|
* holds (the `limit` the host's dialog reader asks for). Every conversation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddable-chat.d.ts","sourceRoot":"","sources":["../../../src/components/chat/embeddable-chat.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAiF,MAAM,OAAO,CAAC;AAmBtG,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAY/E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAStE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AASvE,OAAO,EAAkB,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACnG,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EAAmB,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIvE,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,KAAK,EAAqC,UAAU,EAAwB,MAAM,yBAAyB,CAAC;AACnH,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAc,cAAc,EAAW,MAAM,uBAAuB,CAAC;AACjF,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB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