@flamingo-stack/openframe-frontend-core 0.0.836 → 0.0.838
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-DQ6JYOHD.cjs → chunk-2QAUQPGC.cjs} +8 -8
- package/dist/{chunk-UFF4TRZH.cjs → chunk-2X5LYDNA.cjs} +3 -3
- package/dist/{chunk-DAOVWHCN.cjs → chunk-4TUHHKLR.cjs} +47 -47
- package/dist/{chunk-LQDPAMXK.cjs → chunk-5E4YEHHO.cjs} +25 -24
- package/dist/{chunk-VMFBLMP6.cjs → chunk-64PF3UC7.cjs} +2 -2
- package/dist/{chunk-I7QIIZAI.cjs → chunk-7QNGILIY.cjs} +19 -19
- package/dist/{chunk-UQS2RI5Y.cjs → chunk-7XRFAHJF.cjs} +5 -5
- package/dist/{chunk-EQB3NSY6.cjs → chunk-B4THEQOW.cjs} +123 -145
- package/dist/{chunk-HBFYEBXN.cjs → chunk-ENK75WN4.cjs} +4 -4
- package/dist/{chunk-AZRDKZNG.cjs → chunk-JFR3OFE6.cjs} +4 -4
- package/dist/{chunk-UQ52NWTB.cjs → chunk-JI34QKPJ.cjs} +40 -40
- package/dist/{chunk-SFJXIHFR.cjs → chunk-MMPMQUQM.cjs} +11 -11
- package/dist/{chunk-4OP2VVPV.cjs → chunk-NV5AHL4G.cjs} +3 -3
- package/dist/{chunk-WAMDWVYC.cjs → chunk-S5RMRQKT.cjs} +11 -11
- package/dist/{chunk-M5PGFNJG.cjs → chunk-TMD55O5U.cjs} +53 -53
- package/dist/{chunk-VQG2A7GA.cjs → chunk-TRZEFT2N.cjs} +2 -2
- package/dist/{chunk-XXHCM2XS.cjs → chunk-U4MJ2Z4V.cjs} +39 -39
- package/dist/{chunk-IUHV55D7.cjs → chunk-V322TUBY.cjs} +9 -9
- package/dist/{chunk-D6ZSRGH2.cjs → chunk-Z7A7IZWL.cjs} +10 -5
- package/dist/{cloud-tenants-THCHEWBM.cjs → cloud-tenants-GLPDB2F5.cjs} +5 -5
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/chat/composer-sheet.d.ts +5 -3
- package/dist/components/chat/composer-sheet.d.ts.map +1 -1
- package/dist/components/chat/composer-sheet.js +7 -6
- package/dist/components/chat/embeddable-chat.js +5 -2
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +11 -6
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/faq/index.cjs +7 -7
- package/dist/components/features/devices/device-selector/device-selector.d.ts.map +1 -1
- package/dist/components/features/devices/device-selector/device-selector.js +0 -10
- package/dist/components/features/devices/device-selector/narrowing.d.ts +2 -2
- package/dist/components/features/devices/devices-filter-toolbar.d.ts +1 -2
- package/dist/components/features/devices/devices-filter-toolbar.d.ts.map +1 -1
- package/dist/components/features/devices/devices-filter-toolbar.js +0 -2
- package/dist/components/features/devices/devices-list.d.ts +1 -1
- package/dist/components/features/devices/devices-list.d.ts.map +1 -1
- package/dist/components/features/devices/devices-list.js +0 -9
- package/dist/components/features/devices/devices-panel-view.d.ts.map +1 -1
- package/dist/components/features/devices/devices-panel-view.js +0 -1
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/help-center-pages/index.cjs +62 -62
- package/dist/components/index.cjs +38 -38
- package/dist/components/meeting-scheduler/index.cjs +30 -30
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/product-demo/index.cjs +14 -14
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/ui/index.cjs +5 -5
- package/dist/{devices-MPRDMXXU.cjs → devices-GHPW5WCO.cjs} +6 -6
- package/dist/{embeddable-chat-TRGESG7U.cjs → embeddable-chat-RBC7F4TL.cjs} +76 -73
- package/dist/index.cjs +9 -9
- package/dist/{knowledge-TFTDHYGR.cjs → knowledge-4TOSY2S5.cjs} +6 -6
- package/dist/{logs-CSSJG4F7.cjs → logs-MUODFY6N.cjs} +12 -12
- package/dist/{policies-ELFYUN5P.cjs → policies-TJHO3VLE.cjs} +9 -9
- package/dist/{scripts-37L6FIKG.cjs → scripts-X5CMYE2V.cjs} +10 -10
- package/dist/{software-update-BSA4NLHO.cjs → software-update-2UZKHTYM.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/composer-sheet.tsx +12 -9
- package/src/components/chat/embeddable-chat.tsx +5 -2
- package/src/components/chat/mingo-quick-action-wall.tsx +18 -7
- package/src/components/features/devices/device-selector/device-selector.tsx +1 -12
- package/src/components/features/devices/device-selector/narrowing.ts +2 -2
- package/src/components/features/devices/devices-filter-toolbar.tsx +0 -3
- package/src/components/features/devices/devices-list.tsx +1 -11
- package/src/components/features/devices/devices-panel-view.tsx +0 -1
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2X5LYDNAcjs = require('./chunk-2X5LYDNA.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk64PF3UC7cjs = require('./chunk-64PF3UC7.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk7XRFAHJFcjs = require('./chunk-7XRFAHJF.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkB4THEQOWcjs = require('./chunk-B4THEQOW.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
@@ -29,13 +29,13 @@ var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkZ7A7IZWLcjs = require('./chunk-Z7A7IZWL.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 (!_chunkB4THEQOWcjs.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, () => ( _chunk5E4YEHHOcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunk5E4YEHHOcjs.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 = _chunk5E4YEHHOcjs.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(_chunk5E4YEHHOcjs.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(_chunk5E4YEHHOcjs.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(_chunk5E4YEHHOcjs.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 = _chunk5E4YEHHOcjs.findDocNodeByPath.call(void 0, _chunk5E4YEHHOcjs.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 = _chunk5E4YEHHOcjs.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 = _chunk5E4YEHHOcjs.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(_chunk5E4YEHHOcjs.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(_chunk5E4YEHHOcjs.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 : _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkZABZIM2Ycjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkZABZIM2Ycjs.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 = _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunk5E4YEHHOcjs.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 = _chunk5E4YEHHOcjs.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 } = _chunk64PF3UC7cjs.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 = _chunk7XRFAHJFcjs.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([_chunk5E4YEHHOcjs.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, _chunkFNNDGOR3cjs.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, _chunkB4THEQOWcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunk7XRFAHJFcjs.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
|
+
_chunk64PF3UC7cjs.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
|
+
_chunk64PF3UC7cjs.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
|
+
_chunk64PF3UC7cjs.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, _chunkB4THEQOWcjs.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, _chunkZ7A7IZWLcjs.MARKDOWN_H2_CLASS, _chunkZ7A7IZWLcjs.TEXT_SIZE_PRESETS.default.h2);
|
|
907
|
+
var MARKDOWN_SKELETON_P_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunkZ7A7IZWLcjs.MARKDOWN_PARAGRAPH_CLASS, _chunkZ7A7IZWLcjs.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: _chunkZ7A7IZWLcjs.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, _chunkB4THEQOWcjs.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, _chunk2X5LYDNAcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X5LYDNAcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4THEQOWcjs.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
|
+
_chunk2X5LYDNAcjs.FileDownloadCard,
|
|
975
975
|
{
|
|
976
976
|
fileName: content.fileName,
|
|
977
977
|
mimeType: content.mimeType,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkB4THEQOWcjs = require('./chunk-B4THEQOW.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -17,12 +17,12 @@ var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
|
17
17
|
var _chunkLWMWY3JOcjs = require('./chunk-LWMWY3JO.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkZ7A7IZWLcjs = require('./chunk-Z7A7IZWL.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -119,7 +119,7 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
122
|
+
const attachments = _chunkZ7A7IZWLcjs.useChatAttachments.call(void 0, );
|
|
123
123
|
const builtInSubmission = _chunkLWMWY3JOcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunk5E4YEHHOcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4THEQOWcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkB4THEQOWcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkZ7A7IZWLcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkZ7A7IZWLcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -8266,6 +8266,7 @@ function PageTopicLabel({ className }) {
|
|
|
8266
8266
|
// src/components/chat/mingo-quick-action-wall.tsx
|
|
8267
8267
|
|
|
8268
8268
|
var QUICK_ACTION_SET_SLOTS = 4;
|
|
8269
|
+
var QUICK_ACTION_SKELETON_COUNT = QUICK_ACTION_SET_SLOTS;
|
|
8269
8270
|
function QuickActionSet({
|
|
8270
8271
|
chips,
|
|
8271
8272
|
theme,
|
|
@@ -8293,18 +8294,17 @@ function QuickActionSet({
|
|
|
8293
8294
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 flex-col gap-[var(--spacing-system-xxs)] @container", className),
|
|
8294
8295
|
children: [
|
|
8295
8296
|
showTopic && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTopicLabel, { className: "text-right" }),
|
|
8296
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-[var(--spacing-system-xs)] @[18rem]:grid-cols-2 @[48rem]:grid-cols-4", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count:
|
|
8297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-[var(--spacing-system-xs)] @[18rem]:grid-cols-2 @[48rem]:grid-cols-4", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: QUICK_ACTION_SKELETON_COUNT, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8297
8298
|
QuickActionChipButton,
|
|
8298
8299
|
{
|
|
8299
8300
|
loading: true,
|
|
8300
8301
|
fill: true,
|
|
8301
8302
|
label: "",
|
|
8302
8303
|
icon: true,
|
|
8303
|
-
labelCh: WALL_SKELETON_LABEL_CH[i % WALL_SKELETON_LABEL_CH.length]
|
|
8304
|
-
"data-loading-item": true
|
|
8304
|
+
labelCh: WALL_SKELETON_LABEL_CH[i % WALL_SKELETON_LABEL_CH.length]
|
|
8305
8305
|
}
|
|
8306
8306
|
) }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8307
|
-
shown.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionChipFromData, { chip, defaultTheme: theme, fill: true
|
|
8307
|
+
shown.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionChipFromData, { chip, defaultTheme: theme, fill: true }) }, chip.id)),
|
|
8308
8308
|
overflows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8309
8309
|
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
8310
8310
|
{
|
|
@@ -8337,10 +8337,15 @@ function QuickActionSet({
|
|
|
8337
8337
|
}
|
|
8338
8338
|
);
|
|
8339
8339
|
}
|
|
8340
|
-
function Slot({
|
|
8340
|
+
function Slot({
|
|
8341
|
+
unused = false,
|
|
8342
|
+
children,
|
|
8343
|
+
...rest
|
|
8344
|
+
}) {
|
|
8341
8345
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8342
8346
|
"div",
|
|
8343
8347
|
{
|
|
8348
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, rest),
|
|
8344
8349
|
"data-testid": "quick-action-slot",
|
|
8345
8350
|
"aria-hidden": unused || void 0,
|
|
8346
8351
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0", unused && "invisible"),
|
|
@@ -9,10 +9,10 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
9
9
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkB4THEQOWcjs = require('./chunk-B4THEQOW.cjs');
|
|
13
13
|
require('./chunk-FNNDGOR3.cjs');
|
|
14
14
|
require('./chunk-SWMUW3RR.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-TRZEFT2N.cjs');
|
|
16
16
|
require('./chunk-HQQE74RO.cjs');
|
|
17
17
|
require('./chunk-DEY6XXGO.cjs');
|
|
18
18
|
require('./chunk-LWMWY3JO.cjs');
|
|
@@ -20,9 +20,9 @@ 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-5E4YEHHO.cjs');
|
|
24
24
|
require('./chunk-OT6P57ZS.cjs');
|
|
25
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-Z7A7IZWL.cjs');
|
|
26
26
|
require('./chunk-4JHO2NVI.cjs');
|
|
27
27
|
require('./chunk-5L3UKDC6.cjs');
|
|
28
28
|
require('./chunk-YJZ7R3W5.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, _chunkB4THEQOWcjs.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 _chunkV322TUBYcjs = require('../../chunk-V322TUBY.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkB4THEQOWcjs = require('../../chunk-B4THEQOW.cjs');
|
|
14
14
|
require('../../chunk-FNNDGOR3.cjs');
|
|
15
15
|
require('../../chunk-SWMUW3RR.cjs');
|
|
16
|
-
require('../../chunk-
|
|
16
|
+
require('../../chunk-TRZEFT2N.cjs');
|
|
17
17
|
require('../../chunk-HQQE74RO.cjs');
|
|
18
18
|
require('../../chunk-DEY6XXGO.cjs');
|
|
19
19
|
require('../../chunk-LWMWY3JO.cjs');
|
|
@@ -21,12 +21,12 @@ 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-5E4YEHHO.cjs');
|
|
25
25
|
require('../../chunk-OT6P57ZS.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkZ7A7IZWLcjs = require('../../chunk-Z7A7IZWL.cjs');
|
|
30
30
|
require('../../chunk-4JHO2NVI.cjs');
|
|
31
31
|
require('../../chunk-5L3UKDC6.cjs');
|
|
32
32
|
require('../../chunk-YJZ7R3W5.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, _chunkB4THEQOWcjs.BenefitCardGrid, { columns: 4, children: [
|
|
1938
1938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1939
|
-
|
|
1939
|
+
_chunkB4THEQOWcjs.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
|
+
_chunkB4THEQOWcjs.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
|
+
_chunkB4THEQOWcjs.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
|
+
_chunkB4THEQOWcjs.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, _chunkV322TUBYcjs.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
|
+
_chunkB4THEQOWcjs.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, _chunkB4THEQOWcjs.PersonCell, { size: "lg", name: `"${quote.text}"`, secondary: quote.attribution, avatarUrl: quote.logoUrl }),
|
|
2031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.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, _chunkTD4CC4KVcjs.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, _chunkTD4CC4KVcjs.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, _chunkB4THEQOWcjs.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
|
+
_chunkZ7A7IZWLcjs.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
|
+
_chunkZ7A7IZWLcjs.CardsStrip,
|
|
2062
2062
|
{
|
|
2063
2063
|
className,
|
|
2064
2064
|
showTitle: false,
|
|
@@ -12,7 +12,7 @@ export interface ComposerSheetProps {
|
|
|
12
12
|
onResetHeight?: () => void;
|
|
13
13
|
/** Share of the layer the sheet takes while `height` is null. Default 0.64. */
|
|
14
14
|
defaultShare?: number;
|
|
15
|
-
/** Default 320. */
|
|
15
|
+
/** Default 320; a layer too short for it lowers it, so the sheet stays inside the layer. */
|
|
16
16
|
minHeight?: number;
|
|
17
17
|
/**
|
|
18
18
|
* Whether the tab on its top edge resizes it. Default `true`. Off (a phone, where
|
|
@@ -30,8 +30,10 @@ export interface ComposerSheetProps {
|
|
|
30
30
|
* The conversation sheet over a page: it rises from the docked composer, the page
|
|
31
31
|
* stays beneath under a scrim, and a tab standing on its top edge resizes it from
|
|
32
32
|
* `minHeight` to the full height of the layer (a drag, the arrow keys, Home / End; a
|
|
33
|
-
* double click asks the host for the default height).
|
|
34
|
-
*
|
|
33
|
+
* double click asks the host for the default height). The layer is its limit before
|
|
34
|
+
* `minHeight` is: a tall dock in a short window leaves less than the floor, and past the
|
|
35
|
+
* layer's top the sheet's header would run under what stands over it. Without
|
|
36
|
+
* `resizable` it has no tab and can take the whole layer. Meant for `AppLayout`'s
|
|
35
37
|
* `composerSheet` layer, whose bottom is the dock's top edge: the sheet stands above
|
|
36
38
|
* the composer as a card of its own, its header at its top border.
|
|
37
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composer-sheet.d.ts","sourceRoot":"","sources":["../../../src/components/chat/composer-sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;AAkBzD,MAAM,WAAW,kBAAkB;IACjC,sDAAsD;IACtD,IAAI,EAAE,OAAO,CAAC;IACd,yEAAyE;IACzE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,mFAAmF;IACnF,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,uFAAuF;IACvF,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,sFAAsF;IACtF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,
|
|
1
|
+
{"version":3,"file":"composer-sheet.d.ts","sourceRoot":"","sources":["../../../src/components/chat/composer-sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;AAkBzD,MAAM,WAAW,kBAAkB;IACjC,sDAAsD;IACtD,IAAI,EAAE,OAAO,CAAC;IACd,yEAAyE;IACzE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,mFAAmF;IACnF,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,uFAAuF;IACvF,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,sFAAsF;IACtF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,uFAAuF;IACvF,QAAQ,EAAE,SAAS,CAAC;CACrB;AA4BD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,SAAS,EACT,MAAM,EACN,cAAc,EACd,aAAa,EACb,YAA4B,EAC5B,SAA8B,EAC9B,SAAgB,EAChB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,QAAQ,GACT,EAAE,kBAAkB,sCAgGpB"}
|
|
@@ -60,8 +60,9 @@ function ComposerSheet({
|
|
|
60
60
|
if (!open) return null;
|
|
61
61
|
const tabHeight = resizable ? TAB_HEIGHT : 0;
|
|
62
62
|
const measured = layerHeight > 0;
|
|
63
|
-
const maxHeight = measured ? Math.max(
|
|
64
|
-
const
|
|
63
|
+
const maxHeight = measured ? Math.max(0, layerHeight - tabHeight) : Number.POSITIVE_INFINITY;
|
|
64
|
+
const floor = Math.min(minHeight, maxHeight);
|
|
65
|
+
const clamp = (next) => Math.round(Math.min(maxHeight, Math.max(floor, next)));
|
|
65
66
|
const resolved = height === null ? measured ? clamp(layerHeight * defaultShare) : null : clamp(height);
|
|
66
67
|
return /* @__PURE__ */ jsxs("div", { ref: setLayer, className: "absolute inset-0", children: [
|
|
67
68
|
/* @__PURE__ */ jsx(
|
|
@@ -90,7 +91,7 @@ function ComposerSheet({
|
|
|
90
91
|
),
|
|
91
92
|
style: {
|
|
92
93
|
height: resolved ?? `${Math.round(defaultShare * 100)}%`,
|
|
93
|
-
minHeight,
|
|
94
|
+
minHeight: floor,
|
|
94
95
|
maxHeight: `calc(100% - ${tabHeight}px)`
|
|
95
96
|
},
|
|
96
97
|
children: [
|
|
@@ -107,9 +108,9 @@ function ComposerSheet({
|
|
|
107
108
|
PanelResizeHandle,
|
|
108
109
|
{
|
|
109
110
|
side: "bottom",
|
|
110
|
-
size: resolved ??
|
|
111
|
-
minSize:
|
|
112
|
-
maxSize: measured ? maxHeight : resolved ??
|
|
111
|
+
size: resolved ?? floor,
|
|
112
|
+
minSize: floor,
|
|
113
|
+
maxSize: measured ? maxHeight : resolved ?? floor,
|
|
113
114
|
onSize: (next) => onHeightChange(clamp(next)),
|
|
114
115
|
clampSize: clamp,
|
|
115
116
|
panelRef,
|