@flamingo-stack/openframe-frontend-core 0.0.536-1778.4677.1 → 0.0.536-1778.4685.1
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-3TBMIQMS.js → chunk-2RJUEOY7.js} +6 -6
- package/dist/{chunk-KSBRJZWA.js → chunk-35M7NYWB.js} +63 -5
- package/dist/{chunk-KSBRJZWA.js.map → chunk-35M7NYWB.js.map} +1 -1
- package/dist/{chunk-K55KJ7SR.cjs → chunk-3NDIR7SZ.cjs} +3 -3
- package/dist/{chunk-K55KJ7SR.cjs.map → chunk-3NDIR7SZ.cjs.map} +1 -1
- package/dist/{chunk-RM77B74J.js → chunk-4BD6J5FH.js} +2 -2
- package/dist/{chunk-572VRCMX.js → chunk-5QUZQYVT.js} +4 -4
- package/dist/{chunk-46UKTRH3.cjs → chunk-6CLC3HYE.cjs} +9 -9
- package/dist/{chunk-46UKTRH3.cjs.map → chunk-6CLC3HYE.cjs.map} +1 -1
- package/dist/{chunk-CLWK6YAW.js → chunk-BRCYUQGE.js} +2 -2
- package/dist/{chunk-KL233IIY.cjs → chunk-CHSSBFA7.cjs} +345 -287
- package/dist/chunk-CHSSBFA7.cjs.map +1 -0
- package/dist/{chunk-PF6G3L2P.cjs → chunk-IO2GC36F.cjs} +4 -4
- package/dist/{chunk-PF6G3L2P.cjs.map → chunk-IO2GC36F.cjs.map} +1 -1
- package/dist/{chunk-53WV3R4H.js → chunk-JE5MYJYV.js} +2 -2
- package/dist/{chunk-MHMI4QVW.cjs → chunk-JHSGV3EX.cjs} +7 -7
- package/dist/{chunk-MHMI4QVW.cjs.map → chunk-JHSGV3EX.cjs.map} +1 -1
- package/dist/{chunk-XXEKDT72.cjs → chunk-K6DEWXLW.cjs} +26 -26
- package/dist/{chunk-XXEKDT72.cjs.map → chunk-K6DEWXLW.cjs.map} +1 -1
- package/dist/{chunk-FDCV6IVY.cjs → chunk-KQIST7UC.cjs} +26 -26
- package/dist/{chunk-FDCV6IVY.cjs.map → chunk-KQIST7UC.cjs.map} +1 -1
- package/dist/{chunk-5U3XXWVC.cjs → chunk-MVAK6OXY.cjs} +5 -5
- package/dist/{chunk-5U3XXWVC.cjs.map → chunk-MVAK6OXY.cjs.map} +1 -1
- package/dist/{chunk-KCZBLULH.js → chunk-OJGIQARL.js} +2 -2
- package/dist/{chunk-6X2ZGJ7Y.js → chunk-OQ6MZRAX.js} +5 -5
- package/dist/{chunk-Z4GOIDIM.cjs → chunk-PATOX7TN.cjs} +61 -61
- package/dist/{chunk-Z4GOIDIM.cjs.map → chunk-PATOX7TN.cjs.map} +1 -1
- package/dist/{chunk-TSXOBIPI.js → chunk-PXW3VFBF.js} +2 -2
- package/dist/{chunk-A5666Z2K.cjs → chunk-RBX6IGLO.cjs} +11 -11
- package/dist/{chunk-A5666Z2K.cjs.map → chunk-RBX6IGLO.cjs.map} +1 -1
- package/dist/{chunk-D3SRKMXB.js → chunk-RR5GNSLP.js} +2 -2
- package/dist/{chunk-HE72N4YP.cjs → chunk-RTEDTX3C.cjs} +31 -31
- package/dist/{chunk-HE72N4YP.cjs.map → chunk-RTEDTX3C.cjs.map} +1 -1
- package/dist/{chunk-PUJJQCGD.js → chunk-TASLBSU7.js} +4 -4
- package/dist/{chunk-BDJV2DM7.js → chunk-TIQBN6BS.js} +2 -2
- package/dist/{chunk-2HVUGN25.cjs → chunk-UGJECGZ3.cjs} +87 -87
- package/dist/{chunk-2HVUGN25.cjs.map → chunk-UGJECGZ3.cjs.map} +1 -1
- package/dist/{chunk-G2ZLZNTD.cjs → chunk-VHK6MYSU.cjs} +37 -37
- package/dist/{chunk-G2ZLZNTD.cjs.map → chunk-VHK6MYSU.cjs.map} +1 -1
- package/dist/{chunk-J3UVCGMA.cjs → chunk-X4N7BL6J.cjs} +14 -14
- package/dist/{chunk-J3UVCGMA.cjs.map → chunk-X4N7BL6J.cjs.map} +1 -1
- package/dist/{chunk-UJLBH3YF.js → chunk-XGV7YP5Z.js} +2 -2
- package/dist/{chunk-6AX5ITUP.js → chunk-YJGBU6CR.js} +2 -2
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +132 -132
- package/dist/components/index.js +11 -11
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +112 -11
- package/dist/chunk-KL233IIY.cjs.map +0 -1
- /package/dist/{chunk-3TBMIQMS.js.map → chunk-2RJUEOY7.js.map} +0 -0
- /package/dist/{chunk-RM77B74J.js.map → chunk-4BD6J5FH.js.map} +0 -0
- /package/dist/{chunk-572VRCMX.js.map → chunk-5QUZQYVT.js.map} +0 -0
- /package/dist/{chunk-CLWK6YAW.js.map → chunk-BRCYUQGE.js.map} +0 -0
- /package/dist/{chunk-53WV3R4H.js.map → chunk-JE5MYJYV.js.map} +0 -0
- /package/dist/{chunk-KCZBLULH.js.map → chunk-OJGIQARL.js.map} +0 -0
- /package/dist/{chunk-6X2ZGJ7Y.js.map → chunk-OQ6MZRAX.js.map} +0 -0
- /package/dist/{chunk-TSXOBIPI.js.map → chunk-PXW3VFBF.js.map} +0 -0
- /package/dist/{chunk-D3SRKMXB.js.map → chunk-RR5GNSLP.js.map} +0 -0
- /package/dist/{chunk-PUJJQCGD.js.map → chunk-TASLBSU7.js.map} +0 -0
- /package/dist/{chunk-BDJV2DM7.js.map → chunk-TIQBN6BS.js.map} +0 -0
- /package/dist/{chunk-UJLBH3YF.js.map → chunk-XGV7YP5Z.js.map} +0 -0
- /package/dist/{chunk-6AX5ITUP.js.map → chunk-YJGBU6CR.js.map} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PersistentPaginationWrapper
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TIQBN6BS.js";
|
|
5
5
|
import {
|
|
6
6
|
DeliveryRow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YJGBU6CR.js";
|
|
8
8
|
import {
|
|
9
9
|
EmptyState
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JE5MYJYV.js";
|
|
11
11
|
import {
|
|
12
12
|
DetailPageSkeleton
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OJGIQARL.js";
|
|
14
14
|
import {
|
|
15
15
|
useSelfFetch
|
|
16
16
|
} from "./chunk-LQPHB2YF.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
resolveContentHref,
|
|
46
46
|
toStripProfile,
|
|
47
47
|
useEntityCardLink
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-35M7NYWB.js";
|
|
49
49
|
import {
|
|
50
50
|
STICKY_HEADER_OFFSET_PX,
|
|
51
51
|
contentFetch,
|
|
@@ -1303,4 +1303,4 @@ export {
|
|
|
1303
1303
|
useLegalDocs,
|
|
1304
1304
|
LegalDocumentPage
|
|
1305
1305
|
};
|
|
1306
|
-
//# sourceMappingURL=chunk-
|
|
1306
|
+
//# sourceMappingURL=chunk-2RJUEOY7.js.map
|
|
@@ -51838,6 +51838,48 @@ function hubspotStatusToVariant(status) {
|
|
|
51838
51838
|
if (s === "OPEN") return "warning";
|
|
51839
51839
|
return "grey";
|
|
51840
51840
|
}
|
|
51841
|
+
function decodeVideoMarkerId(id) {
|
|
51842
|
+
const mux = id.match(/^mux-([A-Za-z0-9_-]+)$/);
|
|
51843
|
+
if (mux) {
|
|
51844
|
+
if (/^[0-9a-f]{10}$/.test(mux[1])) return null;
|
|
51845
|
+
return { videoUrl: `https://stream.mux.com/${mux[1]}.m3u8` };
|
|
51846
|
+
}
|
|
51847
|
+
const mp4 = id.match(/^mp4-([A-Za-z0-9_-]+)$/);
|
|
51848
|
+
if (mp4) {
|
|
51849
|
+
if (/^[0-9a-f]{10}$/.test(mp4[1])) return null;
|
|
51850
|
+
try {
|
|
51851
|
+
const b64 = mp4[1].replace(/-/g, "+").replace(/_/g, "/");
|
|
51852
|
+
const url = atob(b64);
|
|
51853
|
+
if (!/^https:\/\//.test(url)) return null;
|
|
51854
|
+
return { videoUrl: url };
|
|
51855
|
+
} catch {
|
|
51856
|
+
return null;
|
|
51857
|
+
}
|
|
51858
|
+
}
|
|
51859
|
+
if (/^[A-Za-z0-9_-]{11}$/.test(id)) return { youtubeUrl: id };
|
|
51860
|
+
return null;
|
|
51861
|
+
}
|
|
51862
|
+
function itemVideoMetadata(item) {
|
|
51863
|
+
const pick = (...vals) => {
|
|
51864
|
+
for (const v of vals) if (typeof v === "string" && v.length > 0) return v;
|
|
51865
|
+
return void 0;
|
|
51866
|
+
};
|
|
51867
|
+
const m = item?.metadata ?? {};
|
|
51868
|
+
const out = {};
|
|
51869
|
+
const videoUrl = pick(m.videoUrl, item?.custom_video_url, item?.main_video_url);
|
|
51870
|
+
const youtubeUrl = pick(m.youtubeUrl, item?.youtube_url);
|
|
51871
|
+
const highlightVideoUrl = pick(m.highlightVideoUrl, item?.highlight_video_url);
|
|
51872
|
+
const videoPoster = pick(
|
|
51873
|
+
m.videoPoster,
|
|
51874
|
+
item?.main_video_thumbnail,
|
|
51875
|
+
item?.highlight_video_thumbnail
|
|
51876
|
+
);
|
|
51877
|
+
if (videoUrl) out.videoUrl = videoUrl;
|
|
51878
|
+
if (youtubeUrl) out.youtubeUrl = youtubeUrl;
|
|
51879
|
+
if (highlightVideoUrl) out.highlightVideoUrl = highlightVideoUrl;
|
|
51880
|
+
if (videoPoster) out.videoPoster = videoPoster;
|
|
51881
|
+
return out.videoUrl || out.youtubeUrl || out.highlightVideoUrl ? out : null;
|
|
51882
|
+
}
|
|
51841
51883
|
function fetchedItemDisplayRef(item, chatRef) {
|
|
51842
51884
|
const it = item;
|
|
51843
51885
|
return {
|
|
@@ -52768,12 +52810,18 @@ function ChatCardLoader({
|
|
|
52768
52810
|
}
|
|
52769
52811
|
return null;
|
|
52770
52812
|
}
|
|
52813
|
+
const videoMeta = itemVideoMetadata(item);
|
|
52814
|
+
if (videoMeta) {
|
|
52815
|
+
const videoRef = {
|
|
52816
|
+
...finalChatRef,
|
|
52817
|
+
metadata: { ...finalChatRef.metadata ?? {}, ...videoMeta }
|
|
52818
|
+
};
|
|
52819
|
+
return /* @__PURE__ */ jsx385(BlockCard, { inline: finish(entry.render(item, finalChatRef, renderOpts)), children: /* @__PURE__ */ jsx385(ChatVideoEntityCard, { chatRef: videoRef }) });
|
|
52820
|
+
}
|
|
52771
52821
|
return finish(entry.render(item, finalChatRef, renderOpts));
|
|
52772
52822
|
}
|
|
52773
52823
|
function renderChatInlineEntityCard(chatRef, options = {}) {
|
|
52774
52824
|
const { onDiscuss, onDisplay, baseRoute, chipBasePlatform, extras } = options;
|
|
52775
|
-
const m = chatRef.metadata ?? {};
|
|
52776
|
-
const hasVideo = typeof m.videoUrl === "string" && m.videoUrl.length > 0 || typeof m.youtubeUrl === "string" && m.youtubeUrl.length > 0 || typeof m.highlightVideoUrl === "string" && m.highlightVideoUrl.length > 0;
|
|
52777
52825
|
const loader = /* @__PURE__ */ jsx385(
|
|
52778
52826
|
ChatCardLoader,
|
|
52779
52827
|
{
|
|
@@ -52785,8 +52833,18 @@ function renderChatInlineEntityCard(chatRef, options = {}) {
|
|
|
52785
52833
|
extras
|
|
52786
52834
|
}
|
|
52787
52835
|
);
|
|
52788
|
-
if (
|
|
52789
|
-
|
|
52836
|
+
if (chatRef.type === "video") {
|
|
52837
|
+
const decoded = decodeVideoMarkerId(chatRef.id);
|
|
52838
|
+
if (decoded) {
|
|
52839
|
+
const displayRef = {
|
|
52840
|
+
...chatRef,
|
|
52841
|
+
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : "Video",
|
|
52842
|
+
url: chatRef.url ?? (decoded.videoUrl ?? (decoded.youtubeUrl ? `https://www.youtube.com/watch?v=${decoded.youtubeUrl}` : null)),
|
|
52843
|
+
metadata: { ...chatRef.metadata ?? {}, ...decoded }
|
|
52844
|
+
};
|
|
52845
|
+
return /* @__PURE__ */ jsx385(BlockCard, { inline: /* @__PURE__ */ jsx385(ChatInlineVideoPill, { chatRef: displayRef }), children: /* @__PURE__ */ jsx385(ChatVideoEntityCard, { chatRef: displayRef }) });
|
|
52846
|
+
}
|
|
52847
|
+
return loader;
|
|
52790
52848
|
}
|
|
52791
52849
|
return loader;
|
|
52792
52850
|
}
|
|
@@ -62160,4 +62218,4 @@ export {
|
|
|
62160
62218
|
LogsList,
|
|
62161
62219
|
assets
|
|
62162
62220
|
};
|
|
62163
|
-
//# sourceMappingURL=chunk-
|
|
62221
|
+
//# sourceMappingURL=chunk-35M7NYWB.js.map
|