@flamingo-stack/openframe-frontend-core 0.0.704 → 0.0.705-snapshot.20261006160157
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-7LFIKJX2.js → chunk-3EZ4HHAP.js} +3 -3
- package/dist/{chunk-I7DFUQMN.js → chunk-3NCM4ZQB.js} +17 -18
- package/dist/{chunk-4DQMTBMK.cjs → chunk-3PLDQDE6.cjs} +15 -15
- package/dist/{chunk-VTASHWER.js → chunk-4CJMQLB5.js} +4 -4
- package/dist/{chunk-VR2ZLFCP.js → chunk-4IBPRIQH.js} +1 -1
- package/dist/{chunk-ZQFZSFQI.js → chunk-4ILM7W2R.js} +2 -2
- package/dist/{chunk-FXENTYE5.js → chunk-6232S532.js} +3 -3
- package/dist/{chunk-MMOODW57.cjs → chunk-6NTPY5QA.cjs} +1887 -94
- package/dist/{chunk-2JDVL7UV.js → chunk-7GEBFJT2.js} +1829 -3447
- package/dist/{chunk-LDPEQGKT.cjs → chunk-7OFPU7WE.cjs} +942 -2560
- package/dist/{chunk-L3IC42IF.cjs → chunk-7SCNMP2B.cjs} +57 -58
- package/dist/{chunk-2G546OND.js → chunk-BHI6GVC4.js} +1094 -693
- package/dist/{chunk-MP2C3LJ4.js → chunk-CUME3VTQ.js} +1 -1
- package/dist/{chunk-WUJNYGO2.js → chunk-CZ7Y7UG4.js} +4 -76
- package/dist/{chunk-7JIL3WOH.cjs → chunk-DDVBX42E.cjs} +21 -21
- package/dist/{chunk-6WQIUQUC.js → chunk-DWPAAWMR.js} +6 -6
- package/dist/{chunk-MFFCUVWG.js → chunk-F57ECE2I.js} +1 -1
- package/dist/{chunk-CH5232HV.js → chunk-FI6GMDO7.js} +2455 -662
- package/dist/{chunk-NDESEPW5.js → chunk-FXJ3WWUB.js} +68 -0
- package/dist/{chunk-4KGXLVCF.js → chunk-G6UMNAVI.js} +57 -61
- package/dist/{chunk-LTSTC3N5.cjs → chunk-GWQEYPYM.cjs} +728 -732
- package/dist/{chunk-N3TO7JV3.cjs → chunk-HZ7CBXPL.cjs} +89 -89
- package/dist/{chunk-XATTBO5X.js → chunk-IKJA3Y7Z.js} +2 -2
- package/dist/{chunk-5HBHO5TB.js → chunk-JPG7OHEG.js} +1 -1
- package/dist/{chunk-AMYY3PNL.cjs → chunk-K6O43WDL.cjs} +46 -46
- package/dist/{chunk-IHU5ANUY.js → chunk-KUC673HM.js} +383 -142
- package/dist/{chunk-X72J4ACL.cjs → chunk-LLSUVPQC.cjs} +252 -8
- package/dist/{chunk-RKV5B7EU.cjs → chunk-LM7TXMLU.cjs} +72 -4
- package/dist/{chunk-XJKZ4IKT.cjs → chunk-LVSFKENJ.cjs} +4 -4
- package/dist/{chunk-IZGDG5X6.cjs → chunk-M75XEEGT.cjs} +940 -539
- package/dist/{chunk-UK62YTH6.cjs → chunk-MB4PNY7C.cjs} +6 -6
- package/dist/{chunk-2YXVWZVF.js → chunk-N45D4ZXQ.js} +959 -715
- package/dist/{chunk-Z2VNQQ74.js → chunk-NCPTID44.js} +978 -942
- package/dist/{chunk-JEYRXT5L.js → chunk-O2RSAA5M.js} +11 -11
- package/dist/{chunk-ABU3TGXA.cjs → chunk-OF6GEI5A.cjs} +3 -3
- package/dist/{chunk-OHFS7VOU.cjs → chunk-PLYEKV3N.cjs} +2 -2
- package/dist/{chunk-5QJDM6UV.js → chunk-PXOQIA5K.js} +5 -5
- package/dist/{chunk-VHCACDKP.cjs → chunk-RQRX4YC3.cjs} +39 -39
- package/dist/{chunk-HFJW24JJ.cjs → chunk-RTIPR53L.cjs} +104 -104
- package/dist/{chunk-262YQFOS.cjs → chunk-SEKYEWQG.cjs} +26 -26
- package/dist/{chunk-SYXQLETR.cjs → chunk-STHZBOQI.cjs} +17 -17
- package/dist/{chunk-MI3JUJ75.cjs → chunk-SW5ZV2BN.cjs} +34 -34
- package/dist/{chunk-QVSFBSWV.js → chunk-T5TMCHWM.js} +9 -9
- package/dist/{chunk-ERCV6HHJ.js → chunk-TE773HEH.js} +10 -10
- package/dist/{chunk-C7XGRLT5.cjs → chunk-TQ4LB2DS.cjs} +14 -14
- package/dist/{chunk-XOYH2YQE.cjs → chunk-UDFRUKLC.cjs} +2 -2
- package/dist/{chunk-XIFOBQRQ.cjs → chunk-UJ33ZXDT.cjs} +6 -6
- package/dist/{chunk-C3BWIU7R.cjs → chunk-UVTD52MD.cjs} +14 -86
- package/dist/{chunk-N3COXDBH.cjs → chunk-VX4E6YSB.cjs} +41 -5
- package/dist/{chunk-HJAYVKWQ.js → chunk-VZICIQW2.js} +15 -15
- package/dist/{chunk-MGGGBHYD.cjs → chunk-WCVZCGK5.cjs} +312 -71
- package/dist/{chunk-6XIF2Z7I.js → chunk-WMX26HB5.js} +3 -3
- package/dist/{chunk-D7BTSVMS.cjs → chunk-Y2GSOUCS.cjs} +2 -2
- package/dist/{chunk-NRLJUBCS.js → chunk-YGJKKDDM.js} +6 -6
- package/dist/components/case-studies/index.cjs +30 -32
- package/dist/components/case-studies/index.js +14 -16
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +8 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts +11 -4
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +11 -11
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +16 -16
- package/dist/components/chat/mingo-chat-rail.d.ts +3 -1
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +12 -14
- package/dist/components/contact/index.js +11 -13
- package/dist/components/docs/index.cjs +15 -17
- package/dist/components/docs/index.js +14 -16
- package/dist/components/embeds/index.cjs +12 -14
- package/dist/components/embeds/index.js +11 -13
- package/dist/components/faq/index.cjs +13 -15
- package/dist/components/faq/index.js +12 -14
- package/dist/components/features/index.cjs +12 -14
- package/dist/components/features/index.js +21 -23
- package/dist/components/help-center-pages/index.cjs +118 -120
- package/dist/components/help-center-pages/index.js +33 -35
- package/dist/components/icons/index.cjs +3 -5
- package/dist/components/icons/index.js +9 -11
- package/dist/components/icons-v2-generated/index.cjs +3 -5
- package/dist/components/icons-v2-generated/index.js +2 -4
- package/dist/components/index.cjs +89 -158
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +333 -402
- package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
- package/dist/components/meeting-scheduler/index.cjs +62 -64
- package/dist/components/meeting-scheduler/index.js +12 -14
- package/dist/components/navigation/app-layout-side-panel.d.ts +18 -1
- package/dist/components/navigation/app-layout-side-panel.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +30 -16
- package/dist/components/navigation/index.d.ts +15 -10
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +40 -26
- package/dist/components/navigation/mingo-ai-button.d.ts +38 -3
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts +3 -0
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +1 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts +48 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts.map +1 -0
- package/dist/components/navigation/nav-item-row.d.ts +27 -0
- package/dist/components/navigation/nav-item-row.d.ts.map +1 -0
- package/dist/components/navigation/nav-panel.d.ts +43 -0
- package/dist/components/navigation/nav-panel.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -2
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.d.ts +28 -0
- package/dist/components/navigation/site-footer.d.ts.map +1 -0
- package/dist/components/navigation/site-header.d.ts +61 -0
- package/dist/components/navigation/site-header.d.ts.map +1 -0
- package/dist/components/navigation/site-nav-link.d.ts +26 -0
- package/dist/components/navigation/site-nav-link.d.ts.map +1 -0
- package/dist/components/navigation/top-navigation.d.ts +2 -2
- package/dist/components/navigation/top-navigation.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +15 -17
- package/dist/components/onboarding-guides/index.js +14 -16
- package/dist/components/related-content/index.cjs +10 -8
- package/dist/components/related-content/index.js +9 -7
- package/dist/components/tickets/index.cjs +16 -18
- package/dist/components/tickets/index.js +15 -17
- package/dist/components/ui/index.cjs +14 -14
- package/dist/components/ui/index.js +19 -19
- package/dist/hooks/index.cjs +19 -11
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +19 -11
- package/dist/hooks/ui/index.d.ts +3 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-active-section.d.ts +10 -0
- package/dist/hooks/ui/use-active-section.d.ts.map +1 -0
- package/dist/hooks/ui/use-nav-menus.d.ts +48 -0
- package/dist/hooks/ui/use-nav-menus.d.ts.map +1 -0
- package/dist/hooks/ui/use-visitor-os.d.ts +15 -0
- package/dist/hooks/ui/use-visitor-os.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +9 -0
- package/dist/hooks/use-location-hash.d.ts.map +1 -0
- package/dist/index.cjs +58 -21
- package/dist/index.js +233 -196
- package/dist/types/case-study.d.ts +9 -0
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/navigation.d.ts +95 -65
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +55 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +50 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/visitor-os.d.ts +45 -0
- package/dist/utils/visitor-os.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/chat/chat-input.tsx +5 -1
- package/src/components/chat/chat-message-enhanced.tsx +4 -3
- package/src/components/chat/embeddable-chat.tsx +64 -6
- package/src/components/chat/entity-cards/case-study-card.tsx +115 -5
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/mingo-chat-rail.tsx +24 -7
- package/src/components/chat/utils/icon-library.tsx +35 -1
- package/src/components/index.ts +0 -2
- package/src/components/loading/page-layout-skeleton.tsx +1 -1
- package/src/components/navigation/app-layout-side-panel.tsx +30 -2
- package/src/components/navigation/index.ts +22 -14
- package/src/components/navigation/mingo-ai-button.tsx +139 -63
- package/src/components/navigation/mobile-nav-sheet-id.ts +2 -0
- package/src/components/navigation/mobile-nav-sheet.tsx +241 -0
- package/src/components/navigation/nav-item-row.tsx +129 -0
- package/src/components/navigation/nav-panel.tsx +196 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +1 -2
- package/src/components/navigation/site-footer.tsx +256 -0
- package/src/components/navigation/site-header.tsx +339 -0
- package/src/components/navigation/site-nav-link.tsx +41 -0
- package/src/components/navigation/ticket-alerts-button.tsx +2 -2
- package/src/components/navigation/top-navigation.tsx +2 -2
- package/src/components/platform/SoftwareSourceBadge.tsx +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/ui/index.ts +3 -0
- package/src/hooks/ui/use-active-section.ts +44 -0
- package/src/hooks/ui/use-nav-menus.ts +200 -0
- package/src/hooks/ui/use-visitor-os.ts +33 -0
- package/src/hooks/use-location-hash.ts +34 -0
- package/src/styles/app-globals.css +13 -0
- package/src/styles/chat-animations.css +57 -2
- package/src/types/case-study.ts +16 -0
- package/src/types/navigation.ts +80 -66
- package/src/utils/index.ts +1 -0
- package/src/utils/source-icons.ts +13 -0
- package/src/utils/visitor-os.ts +84 -0
- package/dist/chunk-LMBC5FFP.js +0 -43
- package/dist/chunk-O43V3EOS.js +0 -252
- package/dist/chunk-QZVSJF2K.cjs +0 -252
- package/dist/chunk-RALRPFDW.cjs +0 -43
- package/dist/components/footer-waitlist-button.d.ts +0 -29
- package/dist/components/footer-waitlist-button.d.ts.map +0 -1
- package/dist/components/footer.d.ts +0 -47
- package/dist/components/footer.d.ts.map +0 -1
- package/dist/components/navigation/client-only-header.d.ts +0 -8
- package/dist/components/navigation/client-only-header.d.ts.map +0 -1
- package/dist/components/navigation/header-skeleton.d.ts +0 -12
- package/dist/components/navigation/header-skeleton.d.ts.map +0 -1
- package/dist/components/navigation/header.d.ts +0 -9
- package/dist/components/navigation/header.d.ts.map +0 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts +0 -10
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +0 -1
- package/src/components/footer-waitlist-button.tsx +0 -53
- package/src/components/footer.tsx +0 -195
- package/src/components/navigation/client-only-header.tsx +0 -22
- package/src/components/navigation/header-skeleton.tsx +0 -74
- package/src/components/navigation/header.tsx +0 -429
- package/src/components/navigation/mobile-nav-panel.tsx +0 -155
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ContactForm
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4CJMQLB5.js";
|
|
5
5
|
import {
|
|
6
6
|
DeliveryRow,
|
|
7
7
|
DevCardRowContent,
|
|
8
8
|
DevCardRowSkeletonList,
|
|
9
9
|
DevSectionPage,
|
|
10
10
|
ListEmptyState
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6232S532.js";
|
|
12
12
|
import {
|
|
13
13
|
EmptyState,
|
|
14
14
|
UnifiedPagination
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-F57ECE2I.js";
|
|
16
16
|
import {
|
|
17
17
|
TICKET_MARK_READ_DEBOUNCE_MS,
|
|
18
18
|
TICKET_TEXT_MAX_CHARS,
|
|
19
19
|
TOAST_COPY,
|
|
20
20
|
isOptimistic,
|
|
21
21
|
useOptionalTicketLive
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3EZ4HHAP.js";
|
|
23
23
|
import {
|
|
24
24
|
AlertDialog,
|
|
25
25
|
AlertDialogAction,
|
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
Textarea,
|
|
36
36
|
TicketAttachmentsList,
|
|
37
37
|
devSectionAnchorId
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-G6UMNAVI.js";
|
|
39
39
|
import {
|
|
40
40
|
toast,
|
|
41
41
|
useScrollToHash
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KUC673HM.js";
|
|
43
43
|
import {
|
|
44
44
|
PAGE_PARAM_LIMITS,
|
|
45
45
|
pageCount,
|
|
46
46
|
positiveInt
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-CUME3VTQ.js";
|
|
48
48
|
import {
|
|
49
49
|
ChatAttachmentAddButton,
|
|
50
50
|
ChatAttachmentChipStrip,
|
|
@@ -55,11 +55,11 @@ import {
|
|
|
55
55
|
formatRelativeTime,
|
|
56
56
|
useChatAttachments,
|
|
57
57
|
useChatIdentity
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-7GEBFJT2.js";
|
|
59
59
|
import {
|
|
60
60
|
STICKY_HEADER_OFFSET_PX,
|
|
61
61
|
scrollElementIntoView
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-CZ7Y7UG4.js";
|
|
63
63
|
import {
|
|
64
64
|
usePathname,
|
|
65
65
|
useRouter,
|
|
@@ -71,10 +71,10 @@ import {
|
|
|
71
71
|
SquareAvatar,
|
|
72
72
|
StatusBadge,
|
|
73
73
|
getStatusColorScheme
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-FI6GMDO7.js";
|
|
75
75
|
import {
|
|
76
76
|
embedAuthedFetch
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-FXJ3WWUB.js";
|
|
78
78
|
import {
|
|
79
79
|
useRequiredChatRuntime
|
|
80
80
|
} from "./chunk-E4ABZWTJ.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLM7TXMLUcjs = require('./chunk-LM7TXMLU.cjs');
|
|
6
6
|
|
|
7
7
|
// src/utils/search-params.ts
|
|
8
8
|
function positiveInt(raw, fallback, { min = 1, max } = {}) {
|
|
@@ -122,9 +122,9 @@ function withQuery(path, queryString) {
|
|
|
122
122
|
|
|
123
123
|
// src/utils/embed-content-fetch.ts
|
|
124
124
|
var contentFetch = (input, init) => {
|
|
125
|
-
if (!
|
|
125
|
+
if (!_chunkLM7TXMLUcjs.hasEmbedAuthAdapter.call(void 0, )) return fetch(input, init);
|
|
126
126
|
const url = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
|
|
127
|
-
return
|
|
127
|
+
return _chunkLM7TXMLUcjs.embedAuthedFetch.call(void 0, url, init);
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkBIZNSF3Ucjs = require('./chunk-BIZNSF3U.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -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, "", _chunkOF6GEI5Acjs.withQuery.call(void 0, pathname, params.toString()));
|
|
168
168
|
}
|
|
169
169
|
setTimeout(() => {
|
|
170
170
|
window.scrollTo({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
SearchInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G6UMNAVI.js";
|
|
5
5
|
import {
|
|
6
6
|
contentFetch
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CUME3VTQ.js";
|
|
8
8
|
import {
|
|
9
9
|
NEW_TAB_FEATURES,
|
|
10
10
|
getSourceLabel,
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
resolveExternalNavigation,
|
|
13
13
|
resolveSourceIcon,
|
|
14
14
|
stripSameOriginToPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7GEBFJT2.js";
|
|
16
16
|
import {
|
|
17
17
|
useDebounce
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CZ7Y7UG4.js";
|
|
19
19
|
import {
|
|
20
20
|
useRouter
|
|
21
21
|
} from "./chunk-GY4IZG22.js";
|
|
22
22
|
import {
|
|
23
23
|
decideNewTab
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FI6GMDO7.js";
|
|
25
25
|
import {
|
|
26
26
|
useChatRuntime
|
|
27
27
|
} from "./chunk-E4ABZWTJ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkUDFRUKLCcjs = require('./chunk-UDFRUKLC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ var _chunkXOYH2YQEcjs = require('./chunk-XOYH2YQE.cjs');
|
|
|
11
11
|
var _chunkBIZNSF3Ucjs = require('./chunk-BIZNSF3U.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -42,7 +42,7 @@ var _chunkABU3TGXAcjs = require('./chunk-ABU3TGXA.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
|
|
46
46
|
|
|
47
47
|
// src/components/related-content/related-content-section.tsx
|
|
48
48
|
var _react = require('react');
|
|
@@ -440,13 +440,13 @@ function cardEntry(definition) {
|
|
|
440
440
|
}
|
|
441
441
|
function programEntry(configKey) {
|
|
442
442
|
return cardEntry({
|
|
443
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
443
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.ProgramCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
444
444
|
decode: decodeProgramRow,
|
|
445
445
|
render: (item, ctx) => {
|
|
446
446
|
const config = _optionalChain([ctx, 'access', _2 => _2.extras, 'optionalAccess', _3 => _3.programConfigs, 'optionalAccess', _4 => _4[configKey]]);
|
|
447
447
|
if (!config) return null;
|
|
448
448
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
449
|
-
|
|
449
|
+
_chunk6NTPY5QAcjs.ProgramCard,
|
|
450
450
|
{
|
|
451
451
|
config,
|
|
452
452
|
item,
|
|
@@ -463,10 +463,10 @@ function programEntry(configKey) {
|
|
|
463
463
|
}
|
|
464
464
|
function roadmapEntry(cardType) {
|
|
465
465
|
return cardEntry({
|
|
466
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
466
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
467
467
|
decode: decodeRoadmapRow,
|
|
468
468
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
469
|
-
|
|
469
|
+
_chunk6NTPY5QAcjs.RoadmapCard,
|
|
470
470
|
{
|
|
471
471
|
item,
|
|
472
472
|
href: ctx.href,
|
|
@@ -483,10 +483,10 @@ function roadmapEntry(cardType) {
|
|
|
483
483
|
}
|
|
484
484
|
var RELATED_CARD_REGISTRY = {
|
|
485
485
|
blog_post_existing: cardEntry({
|
|
486
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
486
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
487
487
|
decode: decodeBlogRow,
|
|
488
488
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
489
|
-
|
|
489
|
+
_chunk6NTPY5QAcjs.BlogCard,
|
|
490
490
|
{
|
|
491
491
|
post,
|
|
492
492
|
size: ctx.legacySize,
|
|
@@ -498,10 +498,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
498
498
|
)
|
|
499
499
|
}),
|
|
500
500
|
case_study: cardEntry({
|
|
501
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
501
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
502
502
|
decode: decodeCaseStudyRow,
|
|
503
503
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
504
|
-
|
|
504
|
+
_chunk6NTPY5QAcjs.CaseStudyCard,
|
|
505
505
|
{
|
|
506
506
|
study,
|
|
507
507
|
size: ctx.legacySize,
|
|
@@ -513,10 +513,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
513
513
|
)
|
|
514
514
|
}),
|
|
515
515
|
customer_interview: cardEntry({
|
|
516
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
516
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
517
517
|
decode: decodeCustomerInterviewRow,
|
|
518
518
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
519
|
-
|
|
519
|
+
_chunk6NTPY5QAcjs.CustomerInterviewCard,
|
|
520
520
|
{
|
|
521
521
|
interview,
|
|
522
522
|
size: ctx.legacySize,
|
|
@@ -534,13 +534,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
534
534
|
* record, and the three props the rail sets itself are read off it.
|
|
535
535
|
*/
|
|
536
536
|
product_release: cardEntry({
|
|
537
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
538
538
|
decode: asRecord,
|
|
539
539
|
render: (release, ctx) => {
|
|
540
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => (
|
|
540
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => ( _chunk6NTPY5QAcjs.buildProductReleaseCardProps));
|
|
541
541
|
const releaseProps = buildReleaseProps(release);
|
|
542
542
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
543
|
-
|
|
543
|
+
_chunk6NTPY5QAcjs.ProductReleaseCard,
|
|
544
544
|
{
|
|
545
545
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
546
546
|
title: str(release, "title"),
|
|
@@ -556,10 +556,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
556
556
|
webinar: programEntry("webinar"),
|
|
557
557
|
event: programEntry("event"),
|
|
558
558
|
investor_update: cardEntry({
|
|
559
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
560
560
|
decode: decodeInvestorUpdateRow,
|
|
561
561
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
562
|
-
|
|
562
|
+
_chunk6NTPY5QAcjs.InvestorUpdateCard,
|
|
563
563
|
{
|
|
564
564
|
update,
|
|
565
565
|
size: ctx.legacySize,
|
|
@@ -574,10 +574,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
574
574
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
575
575
|
* section" rail, not this full-width row. */
|
|
576
576
|
onboarding_guide: cardEntry({
|
|
577
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
577
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog" }),
|
|
578
578
|
decode: decodeOnboardingGuideRow,
|
|
579
579
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
580
|
-
|
|
580
|
+
_chunk6NTPY5QAcjs.OnboardingGuideCard,
|
|
581
581
|
{
|
|
582
582
|
guide,
|
|
583
583
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -594,10 +594,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
594
594
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
595
595
|
* card in a dead <a>. */
|
|
596
596
|
what_i_shipped: cardEntry({
|
|
597
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
597
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.WhatIShippedCardSkeleton, {}),
|
|
598
598
|
decode: decodeEmployeeEntryRow,
|
|
599
599
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
600
|
-
|
|
600
|
+
_chunk6NTPY5QAcjs.WhatIShippedCard,
|
|
601
601
|
{
|
|
602
602
|
entry,
|
|
603
603
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -607,10 +607,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
607
607
|
}),
|
|
608
608
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
609
609
|
how_i_work: cardEntry({
|
|
610
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
610
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.HowIWorkCardSkeleton, {}),
|
|
611
611
|
decode: decodeEmployeeEntryRow,
|
|
612
612
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
613
|
-
|
|
613
|
+
_chunk6NTPY5QAcjs.HowIWorkCard,
|
|
614
614
|
{
|
|
615
615
|
entry,
|
|
616
616
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -620,10 +620,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
620
620
|
}),
|
|
621
621
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
622
622
|
ai_prompt: cardEntry({
|
|
623
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
623
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6NTPY5QAcjs.AiPromptCardSkeleton, {}),
|
|
624
624
|
decode: decodeEmployeeEntryRow,
|
|
625
625
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
626
|
-
|
|
626
|
+
_chunk6NTPY5QAcjs.AiPromptCard,
|
|
627
627
|
{
|
|
628
628
|
entry,
|
|
629
629
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -644,7 +644,7 @@ function DefaultLinkPropsProvider({
|
|
|
644
644
|
children
|
|
645
645
|
}) {
|
|
646
646
|
if (!href) return children(null);
|
|
647
|
-
const newTab =
|
|
647
|
+
const newTab = _chunk6NTPY5QAcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
648
648
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
649
649
|
}
|
|
650
650
|
function defaultResolveHref(ref) {
|
|
@@ -700,8 +700,8 @@ function CardForType({
|
|
|
700
700
|
function useGroupItems(type, refs, buildUrl) {
|
|
701
701
|
const ids = refs.map((r) => r.id);
|
|
702
702
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
703
|
-
const { data, isLoading } =
|
|
704
|
-
const items = data != null ?
|
|
703
|
+
const { data, isLoading } = _chunkUDFRUKLCcjs.useSelfFetch.call(void 0, url);
|
|
704
|
+
const items = data != null ? _chunk6NTPY5QAcjs.extractItems.call(void 0, data) : null;
|
|
705
705
|
return { items, isLoading };
|
|
706
706
|
}
|
|
707
707
|
function gridClassFor(columns) {
|
|
@@ -740,7 +740,7 @@ function ContentGroup({
|
|
|
740
740
|
setPage(1);
|
|
741
741
|
}
|
|
742
742
|
}, [refsKey]);
|
|
743
|
-
const totalGroupPages =
|
|
743
|
+
const totalGroupPages = _chunkOF6GEI5Acjs.pageCount.call(void 0, refs.length, GROUP_PAGE_SIZE);
|
|
744
744
|
const safePage = Math.min(page, totalGroupPages);
|
|
745
745
|
const visibleGroupRefs = refs.length > GROUP_PAGE_SIZE ? refs.slice((safePage - 1) * GROUP_PAGE_SIZE, safePage * GROUP_PAGE_SIZE) : refs;
|
|
746
746
|
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIZNSF3Ucjs.Pagination, { currentPage: safePage, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
@@ -753,7 +753,7 @@ function ContentGroup({
|
|
|
753
753
|
}
|
|
754
754
|
if (!items || items.length === 0) return null;
|
|
755
755
|
const rowKey = (it) => {
|
|
756
|
-
const extracted =
|
|
756
|
+
const extracted = _chunk6NTPY5QAcjs.extractItemId.call(void 0, type, it);
|
|
757
757
|
if (extracted !== null) return extracted;
|
|
758
758
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
759
759
|
};
|
|
@@ -842,9 +842,9 @@ function RelatedContentSection({
|
|
|
842
842
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
843
843
|
[initialItems, suggestionsDisabled]
|
|
844
844
|
);
|
|
845
|
-
const { data, isLoading } =
|
|
845
|
+
const { data, isLoading } = _chunkUDFRUKLCcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
846
846
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
847
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
847
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunk6NTPY5QAcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
848
848
|
[buildListUrl2, apiBaseUrl]
|
|
849
849
|
);
|
|
850
850
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _10 => _10.refs]))), () => ( []));
|
|
@@ -855,12 +855,12 @@ function RelatedContentSection({
|
|
|
855
855
|
if (isLoading) {
|
|
856
856
|
const skeletonType = _nullishCoalesce(_nullishCoalesce(_optionalChain([includeTypes, 'optionalAccess', _11 => _11[0]]), () => ( entityType)), () => ( "blog_post_existing"));
|
|
857
857
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
858
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children:
|
|
858
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children: _chunk6NTPY5QAcjs.accentSentenceMarks.call(void 0, title) }),
|
|
859
859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: renderSkeletonForType(skeletonType, "default", adminCampaignCard) }, i)) })
|
|
860
860
|
] });
|
|
861
861
|
}
|
|
862
862
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
863
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
863
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunk6NTPY5QAcjs.accentSentenceMarks.call(void 0, title) }),
|
|
864
864
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
865
865
|
] });
|
|
866
866
|
}
|
|
@@ -871,14 +871,14 @@ function RelatedContentSection({
|
|
|
871
871
|
}
|
|
872
872
|
let orderedTypes = _chunkBIZNSF3Ucjs.orderContentRefTypes.call(void 0, Object.keys(grouped));
|
|
873
873
|
if (entityType) {
|
|
874
|
-
const canonicalEntityType =
|
|
875
|
-
const sameType = orderedTypes.filter((t) =>
|
|
874
|
+
const canonicalEntityType = _chunk6NTPY5QAcjs.canonicalContentRefType.call(void 0, entityType);
|
|
875
|
+
const sameType = orderedTypes.filter((t) => _chunk6NTPY5QAcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
876
876
|
if (sameType.length > 0) {
|
|
877
|
-
orderedTypes = [...sameType, ...orderedTypes.filter((t) =>
|
|
877
|
+
orderedTypes = [...sameType, ...orderedTypes.filter((t) => _chunk6NTPY5QAcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
881
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children:
|
|
881
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h2", children: _chunk6NTPY5QAcjs.accentSentenceMarks.call(void 0, title) }),
|
|
882
882
|
orderedTypes.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
883
|
ContentGroup,
|
|
884
884
|
{
|