@flamingo-stack/openframe-frontend-core 0.0.818 → 0.0.820
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-VGZXB3SY.cjs → chunk-2TEUAOUZ.cjs} +3 -3
- package/dist/{chunk-NWIEZUM7.cjs → chunk-42K7MLVS.cjs} +19 -19
- package/dist/{chunk-5AIOYEXW.cjs → chunk-5GUQBNQF.cjs} +47 -47
- package/dist/{chunk-JTBJB4JF.cjs → chunk-7X7PHALX.cjs} +9 -9
- package/dist/{chunk-YHPUD4PM.cjs → chunk-ADBZCDFX.cjs} +11 -11
- package/dist/{chunk-YMPPE322.cjs → chunk-BHJDQYUN.cjs} +107 -107
- package/dist/{chunk-DGAX5WG2.cjs → chunk-CJ7VHMPD.cjs} +2 -2
- package/dist/{chunk-DL4HWYIB.cjs → chunk-DLQCSJTY.cjs} +3 -3
- package/dist/{chunk-AE22KOW3.cjs → chunk-IJ3C4WL5.cjs} +53 -53
- package/dist/{chunk-BD42NMCT.cjs → chunk-JQ3JZLYS.cjs} +4 -4
- package/dist/{chunk-6QT5K5I5.cjs → chunk-L55EVW33.cjs} +6 -6
- package/dist/{chunk-5VRSUEC5.cjs → chunk-MOPDE3OA.cjs} +10 -10
- package/dist/{chunk-U2THWP25.cjs → chunk-NSN3O47K.cjs} +32 -32
- package/dist/{chunk-IQCHV7Z2.cjs → chunk-OTGYA5F7.cjs} +21 -3
- package/dist/{chunk-ZWAVMZIF.cjs → chunk-STFOH6QU.cjs} +7 -7
- package/dist/{chunk-VRXDTRIY.cjs → chunk-TVOAFYT7.cjs} +39 -39
- package/dist/{chunk-NEXMK6OP.cjs → chunk-TYDSD3FV.cjs} +4 -4
- package/dist/{chunk-4XASD2TL.cjs → chunk-YAY7Z42C.cjs} +16 -16
- package/dist/{cloud-tenants-V6EV4OGK.cjs → cloud-tenants-ENCHNOF2.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +5 -6
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/remark-strip-citations.d.ts +1 -1
- package/dist/components/chat/remark-strip-citations.d.ts.map +1 -1
- package/dist/components/chat/remark-strip-citations.js +8 -2
- package/dist/components/chat/utils/cited-sources.d.ts +9 -0
- package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
- package/dist/components/chat/utils/cited-sources.js +41 -0
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +61 -61
- package/dist/components/index.cjs +37 -37
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-6KZAJAAS.cjs → devices-HRLHG4TR.cjs} +5 -5
- package/dist/{embeddable-chat-5IHA5SUZ.cjs → embeddable-chat-ARMXVLUP.cjs} +107 -67
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-I7FDQQYJ.cjs → knowledge-S2L5ZCAU.cjs} +5 -5
- package/dist/{logs-Q7PAVJUG.cjs → logs-UYQZSFS4.cjs} +12 -12
- package/dist/{policies-C3DW5CHS.cjs → policies-SMA4MW6L.cjs} +8 -8
- package/dist/{scripts-BET663HD.cjs → scripts-TZNXTFRR.cjs} +9 -9
- package/dist/{software-update-W7ZQXEPK.cjs → software-update-YHDVBC7V.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +7 -8
- package/src/components/chat/remark-strip-citations.ts +14 -3
- package/src/components/chat/utils/cited-sources.ts +61 -0
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDLQCSJTYcjs = require('./chunk-DLQCSJTY.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkCJ7VHMPDcjs = require('./chunk-CJ7VHMPD.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkL55EVW33cjs = require('./chunk-L55EVW33.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkBHJDQYUNcjs = require('./chunk-BHJDQYUN.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
@@ -32,13 +32,13 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkYAY7Z42Ccjs = require('./chunk-YAY7Z42C.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkOTGYA5F7cjs = require('./chunk-OTGYA5F7.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -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 (!_chunkBHJDQYUNcjs.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, () => ( _chunkYAY7Z42Ccjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunkYAY7Z42Ccjs.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 = _chunkYAY7Z42Ccjs.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(_chunkYAY7Z42Ccjs.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(_chunkYAY7Z42Ccjs.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(_chunkYAY7Z42Ccjs.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 = _chunkYAY7Z42Ccjs.findDocNodeByPath.call(void 0, _chunkYAY7Z42Ccjs.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 = _chunkYAY7Z42Ccjs.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 = _chunkYAY7Z42Ccjs.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(_chunkYAY7Z42Ccjs.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(_chunkYAY7Z42Ccjs.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 : _chunkYAY7Z42Ccjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkA34UNP5Vcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkA34UNP5Vcjs.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 = _chunkYAY7Z42Ccjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunkYAY7Z42Ccjs.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 = _chunkYAY7Z42Ccjs.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 } = _chunkCJ7VHMPDcjs.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 = _chunkL55EVW33cjs.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([_chunkYAY7Z42Ccjs.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;
|
|
@@ -796,9 +796,9 @@ function DocViewerContent({
|
|
|
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
798
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.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,
|
|
799
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBHJDQYUNcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunkL55EVW33cjs.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
|
+
_chunkCJ7VHMPDcjs.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
|
+
_chunkCJ7VHMPDcjs.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
|
+
_chunkCJ7VHMPDcjs.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, _chunkBHJDQYUNcjs.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, _chunkOTGYA5F7cjs.MARKDOWN_H2_CLASS, _chunkOTGYA5F7cjs.TEXT_SIZE_PRESETS.default.h2);
|
|
907
|
+
var MARKDOWN_SKELETON_P_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunkOTGYA5F7cjs.MARKDOWN_PARAGRAPH_CLASS, _chunkOTGYA5F7cjs.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: _chunkOTGYA5F7cjs.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, _chunkBHJDQYUNcjs.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, _chunkDLQCSJTYcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDLQCSJTYcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBHJDQYUNcjs.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
|
+
_chunkDLQCSJTYcjs.FileDownloadCard,
|
|
975
975
|
{
|
|
976
976
|
fileName: content.fileName,
|
|
977
977
|
mimeType: content.mimeType,
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkSTFOH6QUcjs = require('./chunk-STFOH6QU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBHJDQYUNcjs = require('./chunk-BHJDQYUN.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
@@ -37,7 +37,7 @@ function FaqDocumentPage({
|
|
|
37
37
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
38
38
|
};
|
|
39
39
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunkSTFOH6QUcjs.FaqSection,
|
|
41
41
|
{
|
|
42
42
|
initialFaqs,
|
|
43
43
|
heading: null,
|
|
@@ -53,7 +53,7 @@ function FaqDocumentPage({
|
|
|
53
53
|
skeletonNav
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBHJDQYUNcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkOTGYA5F7cjs = require('./chunk-OTGYA5F7.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -2243,7 +2243,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2243
2243
|
if (heading.level > opts.maxLevel) continue;
|
|
2244
2244
|
let title = heading.text;
|
|
2245
2245
|
if (opts.stripFormattingMarkers) {
|
|
2246
|
-
title =
|
|
2246
|
+
title = _chunkOTGYA5F7cjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2247
2247
|
}
|
|
2248
2248
|
const baseId = _chunkA34UNP5Vcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2249
2249
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2558,7 +2558,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2558
2558
|
function openAskAi(source, options) {
|
|
2559
2559
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2560
2560
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2561
|
-
window.dispatchEvent(new CustomEvent(
|
|
2561
|
+
window.dispatchEvent(new CustomEvent(_chunkOTGYA5F7cjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2562
2562
|
}
|
|
2563
2563
|
function MingoAiButton({
|
|
2564
2564
|
source,
|
|
@@ -2601,7 +2601,7 @@ function MingoAiButton({
|
|
|
2601
2601
|
{
|
|
2602
2602
|
...props,
|
|
2603
2603
|
type: "button",
|
|
2604
|
-
...{ [
|
|
2604
|
+
...{ [_chunkOTGYA5F7cjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2605
2605
|
variant: field ? "glyph" : "transparent",
|
|
2606
2606
|
size: "wrap",
|
|
2607
2607
|
font: "regular",
|
|
@@ -2842,9 +2842,9 @@ function QuestionChips({
|
|
|
2842
2842
|
{
|
|
2843
2843
|
"data-loading-item": true,
|
|
2844
2844
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2845
|
-
...prompt ? { [
|
|
2845
|
+
...prompt ? { [_chunkOTGYA5F7cjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2846
2846
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2847
|
-
|
|
2847
|
+
_chunkOTGYA5F7cjs.QuickActionChipButton,
|
|
2848
2848
|
{
|
|
2849
2849
|
loading,
|
|
2850
2850
|
variant: "question",
|
|
@@ -3054,7 +3054,7 @@ function QuickActionMarquee({
|
|
|
3054
3054
|
);
|
|
3055
3055
|
if (items.length === 0) return null;
|
|
3056
3056
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3057
|
-
|
|
3057
|
+
_chunkOTGYA5F7cjs.QuickActionWall,
|
|
3058
3058
|
{
|
|
3059
3059
|
chips,
|
|
3060
3060
|
mode,
|
|
@@ -3269,7 +3269,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3269
3269
|
hasNextPage,
|
|
3270
3270
|
isFetchingNextPage,
|
|
3271
3271
|
onLoadMore,
|
|
3272
|
-
pageSize =
|
|
3272
|
+
pageSize = _chunkOTGYA5F7cjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3273
3273
|
...props
|
|
3274
3274
|
}, ref) => {
|
|
3275
3275
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3567,7 +3567,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3567
3567
|
label = "Loading",
|
|
3568
3568
|
region = true
|
|
3569
3569
|
}) {
|
|
3570
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3570
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.LoadingFallback, { label, status: region, className: _chunk63A4GZMBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3571
3571
|
}
|
|
3572
3572
|
function AdminContentCardGrid({
|
|
3573
3573
|
items,
|
|
@@ -5159,7 +5159,7 @@ function Section({ title, description, children }) {
|
|
|
5159
5159
|
] });
|
|
5160
5160
|
}
|
|
5161
5161
|
function ProxyCredentialsPanel({ description }) {
|
|
5162
|
-
const hydrated =
|
|
5162
|
+
const hydrated = _chunkOTGYA5F7cjs.useIsHydrated.call(void 0, );
|
|
5163
5163
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5164
5164
|
ProxyCredentialsForm,
|
|
5165
5165
|
{
|
|
@@ -5323,12 +5323,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5323
5323
|
|
|
5324
5324
|
// src/components/chat/index.ts
|
|
5325
5325
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5326
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5326
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-ARMXVLUP.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5327
5327
|
);
|
|
5328
5328
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5329
5329
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5330
5330
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5331
|
-
_react.useEffect.call(void 0, () =>
|
|
5331
|
+
_react.useEffect.call(void 0, () => _chunkOTGYA5F7cjs.holdAskAiOpens.call(void 0, ), []);
|
|
5332
5332
|
const { loadStyles } = props;
|
|
5333
5333
|
_react.useEffect.call(void 0, () => {
|
|
5334
5334
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5336,12 +5336,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5336
5336
|
_react.useEffect.call(void 0, () => {
|
|
5337
5337
|
if (load) return void 0;
|
|
5338
5338
|
const start = () => setLoadRequested(true);
|
|
5339
|
-
if (
|
|
5340
|
-
for (const name of
|
|
5341
|
-
const cancel =
|
|
5339
|
+
if (_chunkOTGYA5F7cjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5340
|
+
for (const name of _chunkOTGYA5F7cjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5341
|
+
const cancel = _chunkOTGYA5F7cjs.onAskAiIntent.call(void 0, start);
|
|
5342
5342
|
return () => {
|
|
5343
5343
|
cancel();
|
|
5344
|
-
for (const name of
|
|
5344
|
+
for (const name of _chunkOTGYA5F7cjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5345
5345
|
};
|
|
5346
5346
|
}, [load]);
|
|
5347
5347
|
if (!load) return null;
|
|
@@ -9,7 +9,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
9
9
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkBHJDQYUNcjs = require('./chunk-BHJDQYUN.cjs');
|
|
13
13
|
require('./chunk-467T3LCG.cjs');
|
|
14
14
|
require('./chunk-EHANO6UE.cjs');
|
|
15
15
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -22,8 +22,8 @@ require('./chunk-7Z536SPR.cjs');
|
|
|
22
22
|
require('./chunk-7DNL734S.cjs');
|
|
23
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
24
|
require('./chunk-5SZ4ILU3.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-YAY7Z42C.cjs');
|
|
26
|
+
require('./chunk-OTGYA5F7.cjs');
|
|
27
27
|
require('./chunk-OBQ5WUNG.cjs');
|
|
28
28
|
require('./chunk-6CZVQ72C.cjs');
|
|
29
29
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1918,7 +1918,7 @@ var getHref = () => "#";
|
|
|
1918
1918
|
function CloudTenantsScreen(_props) {
|
|
1919
1919
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1920
1920
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1921
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1921
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBHJDQYUNcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
var _chunkDTKGIG4Acjs = require('../../chunk-DTKGIG4A.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7X7PHALXcjs = require('../../chunk-7X7PHALX.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkBHJDQYUNcjs = require('../../chunk-BHJDQYUN.cjs');
|
|
14
14
|
require('../../chunk-467T3LCG.cjs');
|
|
15
15
|
require('../../chunk-EHANO6UE.cjs');
|
|
16
16
|
require('../../chunk-IJCSQFLD.cjs');
|
|
@@ -23,11 +23,11 @@ require('../../chunk-7Z536SPR.cjs');
|
|
|
23
23
|
require('../../chunk-7DNL734S.cjs');
|
|
24
24
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
25
25
|
require('../../chunk-5SZ4ILU3.cjs');
|
|
26
|
-
require('../../chunk-
|
|
26
|
+
require('../../chunk-YAY7Z42C.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkOTGYA5F7cjs = require('../../chunk-OTGYA5F7.cjs');
|
|
31
31
|
require('../../chunk-OBQ5WUNG.cjs');
|
|
32
32
|
require('../../chunk-6CZVQ72C.cjs');
|
|
33
33
|
require('../../chunk-ZRDVFADQ.cjs');
|
|
@@ -1931,9 +1931,9 @@ function ShareExperienceSection({
|
|
|
1931
1931
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h2", children: howItWorksTitle }),
|
|
1932
1932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4", children: howItWorksBody })
|
|
1933
1933
|
] }),
|
|
1934
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1934
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBHJDQYUNcjs.BenefitCardGrid, { columns: 4, children: [
|
|
1935
1935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1936
|
-
|
|
1936
|
+
_chunkBHJDQYUNcjs.BenefitCard,
|
|
1937
1937
|
{
|
|
1938
1938
|
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 }) }),
|
|
1939
1939
|
title: "G2",
|
|
@@ -1942,7 +1942,7 @@ function ShareExperienceSection({
|
|
|
1942
1942
|
}
|
|
1943
1943
|
),
|
|
1944
1944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1945
|
-
|
|
1945
|
+
_chunkBHJDQYUNcjs.BenefitCard,
|
|
1946
1946
|
{
|
|
1947
1947
|
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 }) }),
|
|
1948
1948
|
title: "Capterra",
|
|
@@ -1951,7 +1951,7 @@ function ShareExperienceSection({
|
|
|
1951
1951
|
}
|
|
1952
1952
|
),
|
|
1953
1953
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1954
|
-
|
|
1954
|
+
_chunkBHJDQYUNcjs.BenefitCard,
|
|
1955
1955
|
{
|
|
1956
1956
|
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 }) }),
|
|
1957
1957
|
title: "TrustPilot",
|
|
@@ -1960,7 +1960,7 @@ function ShareExperienceSection({
|
|
|
1960
1960
|
}
|
|
1961
1961
|
),
|
|
1962
1962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1963
|
-
|
|
1963
|
+
_chunkBHJDQYUNcjs.BenefitCard,
|
|
1964
1964
|
{
|
|
1965
1965
|
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 }) }),
|
|
1966
1966
|
title: "GetApp",
|
|
@@ -1969,7 +1969,7 @@ function ShareExperienceSection({
|
|
|
1969
1969
|
}
|
|
1970
1970
|
)
|
|
1971
1971
|
] }),
|
|
1972
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1972
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7X7PHALXcjs.ContactForm, { ...DEFAULT_CONTACT_FORM_PROPS, ...contactFormProps })
|
|
1973
1973
|
] }) })
|
|
1974
1974
|
] });
|
|
1975
1975
|
}
|
|
@@ -1986,7 +1986,7 @@ function EntityQuotesPanel({ quotes, className }) {
|
|
|
1986
1986
|
// Optional per record, so the loading state draws none: the gate leaves the loaded panel out of its comparison.
|
|
1987
1987
|
// A plain block around the one panel, so the parent's spacing applies to it as it did to the panel.
|
|
1988
1988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1989
|
-
|
|
1989
|
+
_chunkBHJDQYUNcjs.StackedRowsPanel,
|
|
1990
1990
|
{
|
|
1991
1991
|
className,
|
|
1992
1992
|
title: `${_chunkDTKGIG4Acjs.ENTITY_QUOTES_TITLE} \xB7 ${quotes.length}`,
|
|
@@ -2024,19 +2024,19 @@ function QuoteCardTile({ quote, decorative, className, loading, ...props }) {
|
|
|
2024
2024
|
className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, "hover:border-ods-border-hover", className),
|
|
2025
2025
|
...props,
|
|
2026
2026
|
children: [
|
|
2027
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2028
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2027
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBHJDQYUNcjs.PersonCell, { size: "lg", name: `"${quote.text}"`, secondary: quote.attribution, avatarUrl: quote.logoUrl }),
|
|
2028
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.CardHitLayer, { href: quote.href, label: `${quote.text}, ${quote.attribution}`, decorative })
|
|
2029
2029
|
]
|
|
2030
2030
|
}
|
|
2031
2031
|
);
|
|
2032
2032
|
}
|
|
2033
2033
|
function QuoteCardTileSkeleton({ className }) {
|
|
2034
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.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,
|
|
2034
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.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, _chunkBHJDQYUNcjs.PersonCell, { loading: true, size: "lg" }) }) });
|
|
2035
2035
|
}
|
|
2036
2036
|
var QUOTE_STRIP_SKELETON_CARDS = 4;
|
|
2037
2037
|
function QuoteCardsStripSkeleton({ count, className }) {
|
|
2038
2038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2039
|
-
|
|
2039
|
+
_chunkOTGYA5F7cjs.CardsStrip,
|
|
2040
2040
|
{
|
|
2041
2041
|
className,
|
|
2042
2042
|
showTitle: false,
|
|
@@ -2055,7 +2055,7 @@ function QuoteCardsStrip({ quotes, loading = false, skeletonCount, className })
|
|
|
2055
2055
|
}
|
|
2056
2056
|
if (quotes.length === 0) return null;
|
|
2057
2057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2058
|
-
|
|
2058
|
+
_chunkOTGYA5F7cjs.CardsStrip,
|
|
2059
2059
|
{
|
|
2060
2060
|
className,
|
|
2061
2061
|
showTitle: false,
|
|
@@ -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;AAI9F,OAAO,EAAiB,KAAK,iBAAiB,EAAE,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AI_OPEN_WITH_REF_EVENT, chatListensForAskAiOpens } from "./utils/ask-ai-events.js";
|
|
71
71
|
import { formatChatAttachmentMarkdownForBubble } from "./utils/chat-attachment-markdown.js";
|
|
72
72
|
import { chatChipClass } from "./utils/chip-styles.js";
|
|
73
|
-
import { FALLBACK_TOP_RETRIEVED, splitCitedSources } from "./utils/cited-sources.js";
|
|
73
|
+
import { FALLBACK_TOP_RETRIEVED, groupedRowLabels, splitCitedSources } from "./utils/cited-sources.js";
|
|
74
74
|
import { flattenAssistantContent } from "./utils/flatten-assistant-content.js";
|
|
75
75
|
import { mapHostMessage, pruneTimestampCache } from "./utils/host-message.js";
|
|
76
76
|
import { resolveIcon } from "./utils/icon-library.js";
|
|
@@ -198,7 +198,9 @@ function SourceChip(props) {
|
|
|
198
198
|
const icon = /* @__PURE__ */ jsx(Icon, { className: "h-3.5 w-3.5" });
|
|
199
199
|
const chipClass = chatChipClass({ tone: "secondary" });
|
|
200
200
|
if (src.items && src.items.length > 0) {
|
|
201
|
-
const
|
|
201
|
+
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
202
|
+
const rowLabels = groupedRowLabels(src.items);
|
|
203
|
+
const dropdownItems = src.items.map((item, i) => {
|
|
202
204
|
const itemCta = resolveSourceRowCTA(
|
|
203
205
|
{
|
|
204
206
|
sourceRepo: src.sourceRepo,
|
|
@@ -214,9 +216,7 @@ function SourceChip(props) {
|
|
|
214
216
|
const ItemIcon = itemCta.icon;
|
|
215
217
|
const itemChatRef = itemCta.chatRef;
|
|
216
218
|
return {
|
|
217
|
-
|
|
218
|
-
// `[3]` in the answer is findable inside the dropdown.
|
|
219
|
-
label: item.index === void 0 ? item.name : `[${item.index}] ${item.name}`,
|
|
219
|
+
label: rowLabels[i],
|
|
220
220
|
icon: /* @__PURE__ */ jsx(ItemIcon, { className: "h-3.5 w-3.5" }),
|
|
221
221
|
href: itemCta.href ?? void 0,
|
|
222
222
|
targetPlatform: itemCta.targetPlatform,
|
|
@@ -228,7 +228,6 @@ function SourceChip(props) {
|
|
|
228
228
|
} : void 0
|
|
229
229
|
};
|
|
230
230
|
});
|
|
231
|
-
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
232
231
|
const groupIndices = itemIndices.length > 0 ? formatCitationIndices(itemIndices) : `${src.index}`;
|
|
233
232
|
return /* @__PURE__ */ jsx("span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ jsx(
|
|
234
233
|
HoverDropdown,
|