@flamingo-stack/openframe-frontend-core 0.0.718 → 0.0.720
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-MIQLUUVF.cjs → chunk-2C72EWQR.cjs} +93 -29
- package/dist/{chunk-IWCPXJEE.js → chunk-3HZ6XSZC.js} +2 -4
- package/dist/{chunk-ZXCZYMN4.cjs → chunk-4SIZCHVZ.cjs} +13 -15
- package/dist/{chunk-BOTM373R.cjs → chunk-5XDCCQ4A.cjs} +15 -15
- package/dist/{chunk-DXCBOZVT.cjs → chunk-6BLN5WDS.cjs} +41 -41
- package/dist/{chunk-DCD5WZUF.js → chunk-6W46LVK4.js} +5 -5
- package/dist/{chunk-JHQ334WS.js → chunk-742BGXNX.js} +2 -0
- package/dist/{chunk-AECTRMGQ.cjs → chunk-7GRPR7XA.cjs} +13 -1
- package/dist/{chunk-45F7PXUI.js → chunk-7HYEQKN6.js} +6 -6
- package/dist/{chunk-N2PF5CFX.js → chunk-7IOU6BJE.js} +12 -11
- package/dist/{chunk-BWIN42ZA.cjs → chunk-7LPR4RZ3.cjs} +34 -36
- package/dist/chunk-AFTRPEXO.js +13 -0
- package/dist/{chunk-JPD4NXH6.js → chunk-AZRI4XBP.js} +1 -1
- package/dist/{chunk-4QFWGLZO.js → chunk-B2N4YX66.js} +1 -1
- package/dist/{chunk-QXZCLQNV.js → chunk-B5LNX4GZ.js} +2 -2
- package/dist/{chunk-GN4A7PMB.cjs → chunk-DHNJSQGX.cjs} +91 -91
- package/dist/{chunk-NDZ5ZXOQ.cjs → chunk-DOPOHO6H.cjs} +20 -20
- package/dist/{chunk-Z3CVSPO3.cjs → chunk-DYDDAA6O.cjs} +519 -518
- package/dist/{chunk-2RKFMUNW.cjs → chunk-EVMM3JE6.cjs} +64 -63
- package/dist/chunk-EWPR7662.cjs +13 -0
- package/dist/{chunk-AGVXKD4K.js → chunk-FSQQZFVG.js} +12 -0
- package/dist/{chunk-TTVOLEUS.js → chunk-GANIUMRU.js} +89 -2
- package/dist/{chunk-S2FUFMLW.cjs → chunk-HFEYEPOG.cjs} +27 -27
- package/dist/{chunk-LE5WKGJV.cjs → chunk-HTS46FFY.cjs} +3 -3
- package/dist/{chunk-6A43ZDWV.cjs → chunk-IL3ZWNM2.cjs} +4 -4
- package/dist/{chunk-PSVSEN4J.cjs → chunk-IMTY3GRR.cjs} +2 -0
- package/dist/{chunk-YC5COB5V.cjs → chunk-ISCZ6UNF.cjs} +85 -89
- package/dist/{chunk-XGHGGBM3.js → chunk-K2BYVPGR.js} +3 -3
- package/dist/{chunk-HWVUR735.cjs → chunk-KSGMZHVV.cjs} +2 -2
- package/dist/{chunk-SGFTTJKO.js → chunk-LO3KCLEF.js} +1 -1
- package/dist/{chunk-MA4Q5RBP.cjs → chunk-NYSMDM4J.cjs} +2 -2
- package/dist/{chunk-67QBMN4R.js → chunk-O3MKJU6A.js} +6 -6
- package/dist/{chunk-APJZBDQN.js → chunk-PSMJYZMV.js} +27 -26
- package/dist/{chunk-JH2SIWPQ.js → chunk-PXAKSPLZ.js} +1586 -1263
- package/dist/{chunk-TBCZCRQ5.js → chunk-Q5327DXK.js} +13 -17
- package/dist/{chunk-EZC2F5OT.cjs → chunk-QF464PPL.cjs} +39 -39
- package/dist/{chunk-UWQWMGJ7.cjs → chunk-RDP5UZXQ.cjs} +888 -565
- package/dist/{chunk-ETYLOZOB.cjs → chunk-RFUOIQSG.cjs} +100 -13
- package/dist/{chunk-DC4RTYWK.cjs → chunk-RZQGIWK3.cjs} +3 -3
- package/dist/{chunk-PQ6HBLZ7.js → chunk-TORERAXD.js} +105 -41
- package/dist/{chunk-6YPTUHM7.js → chunk-URW23QUM.js} +1 -1
- package/dist/{chunk-QBCDSTLE.cjs → chunk-UWJMDFDO.cjs} +18 -18
- package/dist/{chunk-YEMCCYIF.js → chunk-V6B2FBZK.js} +5 -5
- package/dist/{chunk-JIWMBIVZ.js → chunk-VBHGJFA3.js} +10 -10
- package/dist/{chunk-Z5UWW3Z2.cjs → chunk-VF2CJXZ2.cjs} +81 -65
- package/dist/{chunk-DEZDMTBM.js → chunk-VYVPII4W.js} +8 -10
- package/dist/{chunk-MM7MCIXL.js → chunk-VYZCKY5K.js} +9 -9
- package/dist/{chunk-E7YCPY7K.cjs → chunk-XSM46FHD.cjs} +3 -3
- package/dist/{chunk-NZ5BHDFZ.js → chunk-XW3Q623Q.js} +1 -1
- package/dist/{chunk-LOYPRJWA.js → chunk-YK3X74SF.js} +67 -51
- package/dist/{chunk-WALCXC7J.cjs → chunk-ZHD3F2TH.cjs} +3 -3
- package/dist/{chunk-KBJJQFYU.js → chunk-ZPHOQDAE.js} +1 -1
- package/dist/{cloud-tenants-TAKOWXLD.js → cloud-tenants-RKQRSDNE.js} +9 -9
- package/dist/{cloud-tenants-PFDF7O5U.cjs → cloud-tenants-UQZASXUB.cjs} +10 -10
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/case-studies/index.js +10 -10
- package/dist/components/chat/ask-prompts.d.ts +10 -2
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts +27 -0
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.d.ts +1 -0
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +63 -0
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/index.cjs +23 -6
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +22 -5
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +11 -11
- package/dist/components/contact/index.js +10 -10
- package/dist/components/docs/index.cjs +14 -14
- package/dist/components/docs/index.js +13 -13
- package/dist/components/embeds/index.cjs +11 -11
- package/dist/components/embeds/index.js +10 -10
- package/dist/components/faq/faq-ask-card.d.ts +44 -0
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -0
- package/dist/components/faq/faq-document-page.d.ts +5 -1
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-section.d.ts +18 -5
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +13 -12
- package/dist/components/faq/index.d.ts +1 -0
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +12 -11
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/index.cjs +10 -10
- package/dist/components/features/index.js +9 -9
- package/dist/components/features/remote-session/remote-desktop-view.d.ts +6 -2
- package/dist/components/features/remote-session/remote-desktop-view.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +104 -105
- package/dist/components/help-center-pages/index.js +28 -29
- package/dist/components/help-center-pages/trust-center-page.d.ts +4 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +109 -197
- package/dist/components/index.js +228 -316
- package/dist/components/meeting-scheduler/index.cjs +50 -51
- package/dist/components/meeting-scheduler/index.js +12 -13
- package/dist/components/navigation/index.cjs +13 -13
- package/dist/components/navigation/index.js +12 -12
- package/dist/components/navigation/mingo-ai-button.d.ts +1 -1
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +13 -14
- package/dist/components/onboarding-guides/index.js +12 -13
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/product-demo/index.js +7 -7
- package/dist/components/related-content/index.cjs +5 -7
- package/dist/components/related-content/index.js +4 -6
- package/dist/components/related-content/related-content-section.d.ts +6 -6
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +15 -15
- package/dist/components/tickets/index.js +14 -14
- package/dist/components/ui/index.cjs +26 -10
- package/dist/components/ui/index.js +25 -9
- package/dist/contexts/assistant-runtime-context.d.ts +74 -0
- package/dist/contexts/assistant-runtime-context.d.ts.map +1 -0
- package/dist/contexts/index.cjs +7 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +6 -0
- package/dist/{devices-KRCGZMGA.cjs → devices-7Q2EUM7B.cjs} +11 -11
- package/dist/{devices-LHEX7O5T.js → devices-U3Y4IIW4.js} +9 -9
- package/dist/hooks/index.cjs +3 -4
- package/dist/hooks/index.js +2 -3
- package/dist/hooks/use-self-fetch.d.ts +3 -0
- package/dist/hooks/use-self-fetch.d.ts.map +1 -1
- package/dist/index.cjs +34 -14
- package/dist/index.js +33 -13
- package/dist/{knowledge-RZSFNR33.js → knowledge-NST53EXE.js} +9 -9
- package/dist/{knowledge-KLVPVEYZ.cjs → knowledge-UYIZ74MA.cjs} +11 -11
- package/dist/{logs-OX3XTVL2.cjs → logs-HTH7X7KV.cjs} +18 -18
- package/dist/{logs-E5DOV5JO.js → logs-JVTRG232.js} +9 -9
- package/dist/{policies-MC2S4S5G.js → policies-DTXTRK56.js} +9 -9
- package/dist/{policies-FOSCIZGK.cjs → policies-MXK2HB4W.cjs} +14 -14
- package/dist/{remote-session-JQ2BPIE3.js → remote-session-LAJZKQBN.js} +3 -3
- package/dist/{remote-session-DRFE5XZE.cjs → remote-session-SKKF4PBV.cjs} +5 -5
- package/dist/{software-update-D4OEIH65.js → software-update-6RHMPM3W.js} +9 -9
- package/dist/{software-update-HOBSTWVO.cjs → software-update-P6BSM6HX.cjs} +14 -14
- package/dist/utils/index.cjs +26 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +25 -3
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/trial.d.ts +18 -0
- package/dist/utils/trial.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/chat/ask-prompts.tsx +25 -3
- package/src/components/chat/assistant-ask-prompts.tsx +78 -0
- package/src/components/chat/entity-cards/dispatch.tsx +38 -4
- package/src/components/chat/hooks/index.ts +12 -0
- package/src/components/chat/hooks/use-ask-prompts.ts +188 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/utils/icon-library.tsx +6 -0
- package/src/components/faq/faq-ask-card.tsx +115 -0
- package/src/components/faq/faq-document-page.tsx +6 -1
- package/src/components/faq/faq-section.tsx +27 -5
- package/src/components/faq/index.ts +1 -0
- package/src/components/features/auth/auth-benefits-panel.tsx +5 -4
- package/src/components/features/remote-session/remote-desktop-view.tsx +86 -63
- package/src/components/help-center-pages/trust-center-page.tsx +5 -2
- package/src/components/navigation/mingo-ai-button.tsx +27 -6
- package/src/components/related-content/related-content-section.tsx +46 -47
- package/src/contexts/assistant-runtime-context.tsx +84 -0
- package/src/contexts/index.ts +9 -0
- package/src/hooks/use-self-fetch.ts +7 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/list-url.ts +4 -0
- package/src/utils/source-icons.ts +10 -2
- package/src/utils/trial.ts +19 -0
- package/dist/chunk-AUMKE74M.cjs +0 -16
- package/dist/chunk-G3GRYDMS.js +0 -16
- package/dist/chunk-GEDY7HQI.cjs +0 -85
- package/dist/chunk-YBQQNDC7.js +0 -85
|
@@ -9,7 +9,7 @@ var _chunkWBNAEYTQcjs = require('./chunk-WBNAEYTQ.cjs');
|
|
|
9
9
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk7GRPR7XAcjs = require('./chunk-7GRPR7XA.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkDFQYAYBHcjs = require('./chunk-DFQYAYBH.cjs');
|
|
@@ -164,7 +164,7 @@ function UnifiedPagination({
|
|
|
164
164
|
if (syncUrl) {
|
|
165
165
|
const params = new URLSearchParams(searchParams.toString());
|
|
166
166
|
params.set("page", page.toString());
|
|
167
|
-
window.history.replaceState(null, "",
|
|
167
|
+
window.history.replaceState(null, "", _chunk7GRPR7XAcjs.withQuery.call(void 0, pathname, params.toString()));
|
|
168
168
|
}
|
|
169
169
|
setTimeout(() => {
|
|
170
170
|
window.scrollTo({
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
SearchInput
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
contentFetch
|
|
7
|
-
} from "./chunk-G3GRYDMS.js";
|
|
4
|
+
} from "./chunk-7IOU6BJE.js";
|
|
8
5
|
import {
|
|
9
6
|
NEW_TAB_FEATURES,
|
|
10
7
|
getSourceLabel,
|
|
@@ -12,7 +9,7 @@ import {
|
|
|
12
9
|
resolveExternalNavigation,
|
|
13
10
|
resolveSourceIcon,
|
|
14
11
|
stripSameOriginToPath
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PXAKSPLZ.js";
|
|
16
13
|
import {
|
|
17
14
|
useDebounce
|
|
18
15
|
} from "./chunk-CMZ3QTFQ.js";
|
|
@@ -21,7 +18,10 @@ import {
|
|
|
21
18
|
} from "./chunk-GY4IZG22.js";
|
|
22
19
|
import {
|
|
23
20
|
decideNewTab
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GANIUMRU.js";
|
|
22
|
+
import {
|
|
23
|
+
contentFetch
|
|
24
|
+
} from "./chunk-FSQQZFVG.js";
|
|
25
25
|
import {
|
|
26
26
|
useChatRuntime
|
|
27
27
|
} from "./chunk-E4ABZWTJ.js";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useSelfFetch
|
|
4
|
-
} from "./chunk-YBQQNDC7.js";
|
|
5
2
|
import {
|
|
6
3
|
Pagination
|
|
7
4
|
} from "./chunk-WSDT7LYL.js";
|
|
@@ -38,14 +35,15 @@ import {
|
|
|
38
35
|
extractItemId,
|
|
39
36
|
extractItems,
|
|
40
37
|
getContentRefLabelOrTitleCase,
|
|
41
|
-
orderContentRefTypes
|
|
42
|
-
|
|
38
|
+
orderContentRefTypes,
|
|
39
|
+
useSelfFetch
|
|
40
|
+
} from "./chunk-GANIUMRU.js";
|
|
43
41
|
import {
|
|
44
42
|
pageCount
|
|
45
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FSQQZFVG.js";
|
|
46
44
|
|
|
47
45
|
// src/components/related-content/related-content-section.tsx
|
|
48
|
-
import {
|
|
46
|
+
import { useMemo, useState } from "react";
|
|
49
47
|
|
|
50
48
|
// src/components/related-content/card-registry.tsx
|
|
51
49
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -700,9 +698,14 @@ function CardForType({
|
|
|
700
698
|
function useGroupItems(type, refs, buildUrl) {
|
|
701
699
|
const ids = refs.map((r) => r.id);
|
|
702
700
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
703
|
-
const
|
|
704
|
-
const
|
|
705
|
-
|
|
701
|
+
const [pages, setPages] = useState(() => /* @__PURE__ */ new Map());
|
|
702
|
+
const cached = url !== null ? pages.get(url) : void 0;
|
|
703
|
+
const { data, dataUrl, error } = useSelfFetch(cached ? null : url);
|
|
704
|
+
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
705
|
+
setPages(new Map(pages).set(dataUrl, extractItems(data)));
|
|
706
|
+
}
|
|
707
|
+
if (url === null) return { items: null, isLoading: false };
|
|
708
|
+
return { items: cached ?? (error ? [] : null), isLoading: !cached && !error };
|
|
706
709
|
}
|
|
707
710
|
function gridClassFor(columns) {
|
|
708
711
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
@@ -727,38 +730,36 @@ function ContentGroup({
|
|
|
727
730
|
adminCampaignCard,
|
|
728
731
|
heading
|
|
729
732
|
}) {
|
|
730
|
-
const { items, isLoading } = useGroupItems(type, refs, buildUrl);
|
|
731
733
|
const config = resolveGroupConfig(type);
|
|
732
734
|
const isListLayout = config.layout === "list";
|
|
733
735
|
const cardSize = config.gridSize;
|
|
734
736
|
const [page, setPage] = useState(1);
|
|
735
737
|
const refsKey = refs.map((r) => r.id).join("|");
|
|
736
|
-
const
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
}
|
|
742
|
-
}, [refsKey]);
|
|
738
|
+
const [pagedRefsKey, setPagedRefsKey] = useState(refsKey);
|
|
739
|
+
if (pagedRefsKey !== refsKey) {
|
|
740
|
+
setPagedRefsKey(refsKey);
|
|
741
|
+
setPage(1);
|
|
742
|
+
}
|
|
743
743
|
const totalGroupPages = pageCount(refs.length, GROUP_PAGE_SIZE);
|
|
744
|
-
const
|
|
745
|
-
const
|
|
746
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ jsx2(Pagination, { currentPage:
|
|
747
|
-
if (isLoading
|
|
748
|
-
const skeletons =
|
|
744
|
+
const pageRefs = refs.slice((page - 1) * GROUP_PAGE_SIZE, page * GROUP_PAGE_SIZE);
|
|
745
|
+
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl);
|
|
746
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ jsx2(Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
747
|
+
if (isLoading) {
|
|
748
|
+
const skeletons = pageRefs.map((r) => /* @__PURE__ */ jsx2("div", { children: renderSkeletonForType(type, cardSize, adminCampaignCard) }, r.id));
|
|
749
749
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
750
750
|
heading,
|
|
751
|
-
isListLayout ? /* @__PURE__ */ jsx2("div", { className: "space-y-4", children: skeletons }) : /* @__PURE__ */ jsx2("div", { className: gridClassFor(columns), children: skeletons })
|
|
751
|
+
isListLayout ? /* @__PURE__ */ jsx2("div", { className: "space-y-4", children: skeletons }) : /* @__PURE__ */ jsx2("div", { className: gridClassFor(columns), children: skeletons }),
|
|
752
|
+
groupPagination
|
|
752
753
|
] });
|
|
753
754
|
}
|
|
754
|
-
if (!items
|
|
755
|
+
if (!items) return null;
|
|
755
756
|
const rowKey = (it) => {
|
|
756
757
|
const extracted = extractItemId(type, it);
|
|
757
758
|
if (extracted !== null) return extracted;
|
|
758
759
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
759
760
|
};
|
|
760
761
|
const itemById = new Map(items.map((it) => [rowKey(it), it]));
|
|
761
|
-
const cards =
|
|
762
|
+
const cards = pageRefs.map((contentRef) => {
|
|
762
763
|
const itemId = String(contentRef.id);
|
|
763
764
|
const item = itemById.get(itemId);
|
|
764
765
|
if (!item) return null;
|