@flamingo-stack/openframe-frontend-core 0.0.643 → 0.0.644-2208.6319.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/chat-protocol/index.cjs +20 -3
- package/dist/chat-protocol/index.cjs.map +1 -1
- package/dist/chat-protocol/index.js +20 -3
- package/dist/chat-protocol/index.js.map +1 -1
- package/dist/chat-protocol/source-metadata.d.ts +7 -1
- package/dist/chat-protocol/source-metadata.d.ts.map +1 -1
- package/dist/{chunk-B42INNRA.cjs → chunk-2UA3DT5O.cjs} +199 -199
- package/dist/{chunk-B42INNRA.cjs.map → chunk-2UA3DT5O.cjs.map} +1 -1
- package/dist/{chunk-KX2FT7AS.cjs → chunk-2ZGEXLQW.cjs} +28 -28
- package/dist/{chunk-KX2FT7AS.cjs.map → chunk-2ZGEXLQW.cjs.map} +1 -1
- package/dist/{chunk-2NRLRRMR.cjs → chunk-3HSRNCDV.cjs} +226 -203
- package/dist/chunk-3HSRNCDV.cjs.map +1 -0
- package/dist/{chunk-64KDKDYC.js → chunk-5ELZ2NQ5.js} +6 -6
- package/dist/{chunk-2DJH6KHA.cjs → chunk-B46Q4DTN.cjs} +382 -386
- package/dist/chunk-B46Q4DTN.cjs.map +1 -0
- package/dist/{chunk-N7UYD57Q.js → chunk-C7RU466R.js} +3 -3
- package/dist/{chunk-2NODQ7FO.js → chunk-DSJZYRS6.js} +17 -21
- package/dist/{chunk-2NODQ7FO.js.map → chunk-DSJZYRS6.js.map} +1 -1
- package/dist/{chunk-26D6FM6L.cjs → chunk-EKSCVXA3.cjs} +6 -6
- package/dist/{chunk-26D6FM6L.cjs.map → chunk-EKSCVXA3.cjs.map} +1 -1
- package/dist/{chunk-7HL2PNQ3.js → chunk-GEGE3JXC.js} +5 -5
- package/dist/{chunk-7T673MHJ.cjs → chunk-GUB6BR26.cjs} +22 -22
- package/dist/{chunk-7T673MHJ.cjs.map → chunk-GUB6BR26.cjs.map} +1 -1
- package/dist/{chunk-3IPL6G7S.js → chunk-GXNQPCL4.js} +164 -141
- package/dist/chunk-GXNQPCL4.js.map +1 -0
- package/dist/{chunk-D6TWJEFW.cjs → chunk-GZXW5QWQ.cjs} +15 -15
- package/dist/{chunk-D6TWJEFW.cjs.map → chunk-GZXW5QWQ.cjs.map} +1 -1
- package/dist/{chunk-4TE53O6U.js → chunk-HAQRGJFL.js} +4 -4
- package/dist/{chunk-TIOHTWDA.js → chunk-INISTVWK.js} +6 -6
- package/dist/{chunk-IU3IYXMM.js → chunk-IRV2W7GN.js} +7 -7
- package/dist/{chunk-R2IU2Y2O.cjs → chunk-JWCAWGLG.cjs} +33 -33
- package/dist/{chunk-R2IU2Y2O.cjs.map → chunk-JWCAWGLG.cjs.map} +1 -1
- package/dist/{chunk-77EO26XV.cjs → chunk-LNLNPCII.cjs} +5 -5
- package/dist/{chunk-77EO26XV.cjs.map → chunk-LNLNPCII.cjs.map} +1 -1
- package/dist/{chunk-42NXGOTG.cjs → chunk-N3M56EE5.cjs} +3 -3
- package/dist/{chunk-42NXGOTG.cjs.map → chunk-N3M56EE5.cjs.map} +1 -1
- package/dist/{chunk-O7JMF5OT.js → chunk-O47SGDBV.js} +3 -3
- package/dist/{chunk-EWQI5MV6.cjs → chunk-OANRA5ML.cjs} +20 -20
- package/dist/{chunk-EWQI5MV6.cjs.map → chunk-OANRA5ML.cjs.map} +1 -1
- package/dist/{chunk-NCHLLTAR.js → chunk-PR6IR22M.js} +3 -3
- package/dist/{chunk-6MQBLFUM.js → chunk-Q7JDIDE2.js} +5 -5
- package/dist/{chunk-YG7KLZE7.js → chunk-R5EIFOW2.js} +4 -4
- package/dist/{chunk-5E6Y6766.cjs → chunk-S2E4I3WP.cjs} +29 -29
- package/dist/{chunk-5E6Y6766.cjs.map → chunk-S2E4I3WP.cjs.map} +1 -1
- package/dist/{chunk-SE6YRE3R.cjs → chunk-SAD5IUSO.cjs} +32 -32
- package/dist/{chunk-SE6YRE3R.cjs.map → chunk-SAD5IUSO.cjs.map} +1 -1
- package/dist/{chunk-3LXJEXPH.js → chunk-TAP4MJPF.js} +2 -2
- package/dist/{chunk-M3W5Y5DK.cjs → chunk-TEKH3J65.cjs} +11 -11
- package/dist/{chunk-M3W5Y5DK.cjs.map → chunk-TEKH3J65.cjs.map} +1 -1
- package/dist/{chunk-HA2U7WHU.js → chunk-TXNWDP3M.js} +3 -3
- package/dist/{chunk-IIZX3K2R.js → chunk-URGDDCJL.js} +2 -2
- package/dist/{chunk-TQ7KTANJ.js → chunk-V52INSJH.js} +3 -3
- package/dist/{chunk-FO7SD2IQ.cjs → chunk-VA6N7IVZ.cjs} +6 -6
- package/dist/{chunk-FO7SD2IQ.cjs.map → chunk-VA6N7IVZ.cjs.map} +1 -1
- package/dist/{chunk-CWHLVXUW.cjs → chunk-WYS66RIO.cjs} +10 -10
- package/dist/{chunk-CWHLVXUW.cjs.map → chunk-WYS66RIO.cjs.map} +1 -1
- package/dist/{chunk-XJLWGYL4.cjs → chunk-XVGWYNRY.cjs} +81 -81
- package/dist/{chunk-XJLWGYL4.cjs.map → chunk-XVGWYNRY.cjs.map} +1 -1
- package/dist/{chunk-ZU2JBBOE.cjs → chunk-XYJ3URIN.cjs} +59 -59
- package/dist/{chunk-ZU2JBBOE.cjs.map → chunk-XYJ3URIN.cjs.map} +1 -1
- package/dist/{chunk-FVIT23I5.js → chunk-Z5KAIEZ4.js} +3 -3
- package/dist/{chunk-YT6RGA3X.js → chunk-ZPLT4XLC.js} +3 -3
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -9
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +2 -8
- package/dist/components/chat/types/entities/program-types.d.ts +29 -18
- package/dist/components/chat/types/entities/program-types.d.ts.map +1 -1
- package/dist/components/chat/utils/compact-card-classes.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +24 -24
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +53 -59
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +15 -21
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/index.cjs +4 -10
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +3 -9
- package/dist/index.cjs +24 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -14
- package/dist/index.js.map +1 -1
- package/dist/utils/format.d.ts +127 -4
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +113 -5
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +103 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/program-instant.d.ts +171 -0
- package/dist/utils/program-instant.d.ts.map +1 -0
- package/dist/utils/program-meta-renderers.d.ts +3 -0
- package/dist/utils/program-meta-renderers.d.ts.map +1 -0
- package/dist/utils/url-safety.d.ts +35 -0
- package/dist/utils/url-safety.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/chat-protocol/__tests__/source-metadata.test.ts +76 -0
- package/src/chat-protocol/source-metadata.ts +40 -6
- package/src/components/chat/entity-cards/.program-card.md +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +9 -27
- package/src/components/chat/entity-cards/program-card.tsx +42 -81
- package/src/components/chat/types/entities/program-types.ts +29 -89
- package/src/components/chat/utils/.compact-card-classes.md +1 -1
- package/src/components/chat/utils/compact-card-classes.ts +5 -3
- package/src/utils/.format.md +5 -2
- package/src/utils/__tests__/format-program-dates.test.ts +180 -0
- package/src/utils/__tests__/program-instant.test.ts +170 -0
- package/src/utils/__tests__/url-safety.test.ts +44 -0
- package/src/utils/format.ts +228 -13
- package/src/utils/index.ts +22 -0
- package/src/utils/program-instant.ts +211 -0
- package/src/utils/program-meta-renderers.ts +18 -0
- package/src/utils/url-safety.ts +45 -0
- package/dist/chunk-2DJH6KHA.cjs.map +0 -1
- package/dist/chunk-2NRLRRMR.cjs.map +0 -1
- package/dist/chunk-3IPL6G7S.js.map +0 -1
- /package/dist/{chunk-64KDKDYC.js.map → chunk-5ELZ2NQ5.js.map} +0 -0
- /package/dist/{chunk-N7UYD57Q.js.map → chunk-C7RU466R.js.map} +0 -0
- /package/dist/{chunk-7HL2PNQ3.js.map → chunk-GEGE3JXC.js.map} +0 -0
- /package/dist/{chunk-4TE53O6U.js.map → chunk-HAQRGJFL.js.map} +0 -0
- /package/dist/{chunk-TIOHTWDA.js.map → chunk-INISTVWK.js.map} +0 -0
- /package/dist/{chunk-IU3IYXMM.js.map → chunk-IRV2W7GN.js.map} +0 -0
- /package/dist/{chunk-O7JMF5OT.js.map → chunk-O47SGDBV.js.map} +0 -0
- /package/dist/{chunk-NCHLLTAR.js.map → chunk-PR6IR22M.js.map} +0 -0
- /package/dist/{chunk-6MQBLFUM.js.map → chunk-Q7JDIDE2.js.map} +0 -0
- /package/dist/{chunk-YG7KLZE7.js.map → chunk-R5EIFOW2.js.map} +0 -0
- /package/dist/{chunk-3LXJEXPH.js.map → chunk-TAP4MJPF.js.map} +0 -0
- /package/dist/{chunk-HA2U7WHU.js.map → chunk-TXNWDP3M.js.map} +0 -0
- /package/dist/{chunk-IIZX3K2R.js.map → chunk-URGDDCJL.js.map} +0 -0
- /package/dist/{chunk-TQ7KTANJ.js.map → chunk-V52INSJH.js.map} +0 -0
- /package/dist/{chunk-FVIT23I5.js.map → chunk-Z5KAIEZ4.js.map} +0 -0
- /package/dist/{chunk-YT6RGA3X.js.map → chunk-ZPLT4XLC.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
SelectTrigger,
|
|
9
9
|
SelectValue,
|
|
10
10
|
Textarea
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-V52INSJH.js";
|
|
12
12
|
import {
|
|
13
13
|
useContactSubmission,
|
|
14
14
|
useHumanitySignals
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ChatAttachmentChipStrip,
|
|
23
23
|
SECTION_HEADING_CLASS,
|
|
24
24
|
useChatAttachments
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-DSJZYRS6.js";
|
|
26
26
|
import {
|
|
27
27
|
Label
|
|
28
28
|
} from "./chunk-5JUTGEZE.js";
|
|
@@ -376,4 +376,4 @@ function ContactForm({
|
|
|
376
376
|
export {
|
|
377
377
|
ContactForm
|
|
378
378
|
};
|
|
379
|
-
//# sourceMappingURL=chunk-
|
|
379
|
+
//# sourceMappingURL=chunk-C7RU466R.js.map
|
|
@@ -144,12 +144,14 @@ import {
|
|
|
144
144
|
ImageGalleryModal,
|
|
145
145
|
InvestorUpdateCardSkeleton,
|
|
146
146
|
OnboardingGuideCardSkeleton,
|
|
147
|
+
PROGRAM_META_RENDERERS,
|
|
147
148
|
ProductReleaseCardSkeleton,
|
|
148
149
|
ProgramCardSkeleton,
|
|
149
150
|
RoadmapCardSkeleton,
|
|
150
151
|
SquareAvatar,
|
|
151
152
|
StatusBadge,
|
|
152
153
|
TaskTypeIcon,
|
|
154
|
+
UNSAFE_URL_CHARS,
|
|
153
155
|
buildAnchorProps,
|
|
154
156
|
canonicalContentRefType,
|
|
155
157
|
computeIsNewTab,
|
|
@@ -158,20 +160,20 @@ import {
|
|
|
158
160
|
extractItems,
|
|
159
161
|
formatDateShort,
|
|
160
162
|
formatDateUTC,
|
|
161
|
-
formatDurationCompact,
|
|
162
|
-
formatDurationFromRange,
|
|
163
163
|
formatFileSize,
|
|
164
164
|
formatInvestorUpdatePeriod,
|
|
165
|
-
formatTimeWithTimezone,
|
|
166
165
|
getProxiedImageUrl,
|
|
167
166
|
getStatusColorScheme,
|
|
168
167
|
isSameOriginAbsoluteHref,
|
|
168
|
+
isSameOriginPath,
|
|
169
169
|
newTabAnchorAttrs,
|
|
170
170
|
personInitials,
|
|
171
|
+
programMetaFormatters,
|
|
172
|
+
programMetaLine,
|
|
171
173
|
safeHref,
|
|
172
174
|
sortBitesByCreatedAtDesc,
|
|
173
175
|
useCoverImageFallback
|
|
174
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-GXNQPCL4.js";
|
|
175
177
|
import {
|
|
176
178
|
next_image_default
|
|
177
179
|
} from "./chunk-MDKCTSDS.js";
|
|
@@ -15541,19 +15543,7 @@ function ProgramChatCard({
|
|
|
15541
15543
|
discuss
|
|
15542
15544
|
}) {
|
|
15543
15545
|
const icon = configKey === "webinar" ? /* @__PURE__ */ jsx94(PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ jsx94(CalendarIcon, { size: 24 }) : /* @__PURE__ */ jsx94(MicrophoneIcon, { size: 24 });
|
|
15544
|
-
const
|
|
15545
|
-
let typeMeta;
|
|
15546
|
-
if (configKey === "podcast" && typeof item?.duration_seconds === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
15547
|
-
typeMeta = formatDurationCompact(item.duration_seconds);
|
|
15548
|
-
} else if (configKey === "event" && typeof item?.location_name === "string" && item.location_name.trim().length > 0) {
|
|
15549
|
-
typeMeta = item.location_name;
|
|
15550
|
-
} else if (configKey === "webinar" && item?.start_at) {
|
|
15551
|
-
const time = formatTimeWithTimezone(item.start_at, item.timezone ?? null);
|
|
15552
|
-
const dur = formatDurationFromRange(item.start_at, item.end_at);
|
|
15553
|
-
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
15554
|
-
}
|
|
15555
|
-
const itemDate = formatDateUTC(item?.date ?? null, { fallback: "", timezone: "local" });
|
|
15556
|
-
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
15546
|
+
const { line: meta } = programMetaLine(item ?? {}, configKey, programMetaFormatters(PROGRAM_META_RENDERERS));
|
|
15557
15547
|
return /* @__PURE__ */ jsx94(
|
|
15558
15548
|
EntityMingoCard,
|
|
15559
15549
|
{
|
|
@@ -18249,13 +18239,19 @@ function nullableText(value) {
|
|
|
18249
18239
|
}
|
|
18250
18240
|
function httpsUrl(value) {
|
|
18251
18241
|
const candidate = text(value);
|
|
18252
|
-
if (!candidate) return void 0;
|
|
18242
|
+
if (!candidate || UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
18253
18243
|
try {
|
|
18254
18244
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
18255
18245
|
} catch {
|
|
18256
18246
|
return void 0;
|
|
18257
18247
|
}
|
|
18258
18248
|
}
|
|
18249
|
+
function linkUrl(value) {
|
|
18250
|
+
const candidate = text(value);
|
|
18251
|
+
if (!candidate || UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
18252
|
+
if (candidate.startsWith("/")) return isSameOriginPath(candidate) ? candidate : void 0;
|
|
18253
|
+
return httpsUrl(candidate);
|
|
18254
|
+
}
|
|
18259
18255
|
function youtubeVideoId(value) {
|
|
18260
18256
|
const candidate = text(value);
|
|
18261
18257
|
if (!candidate) return void 0;
|
|
@@ -18277,7 +18273,7 @@ function sourceItems(value) {
|
|
|
18277
18273
|
const documentType = text(item.documentType);
|
|
18278
18274
|
const name = text(item.name);
|
|
18279
18275
|
if (!id || !documentType || !name) return [];
|
|
18280
|
-
const externalUrl =
|
|
18276
|
+
const externalUrl = linkUrl(item.externalUrl);
|
|
18281
18277
|
const targetPlatform = nullableText(item.targetPlatform);
|
|
18282
18278
|
const path = nullableText(item.path);
|
|
18283
18279
|
return [
|
|
@@ -18306,7 +18302,7 @@ function sources(value) {
|
|
|
18306
18302
|
claimed.add(index);
|
|
18307
18303
|
const path = text(candidate.path);
|
|
18308
18304
|
const documentType = text(candidate.documentType);
|
|
18309
|
-
const externalUrl =
|
|
18305
|
+
const externalUrl = linkUrl(candidate.externalUrl);
|
|
18310
18306
|
const targetPlatform = nullableText(candidate.targetPlatform);
|
|
18311
18307
|
const id = text(candidate.id);
|
|
18312
18308
|
const sourceRepo = text(candidate.sourceRepo);
|
|
@@ -25967,4 +25963,4 @@ export {
|
|
|
25967
25963
|
buildStreamFrames,
|
|
25968
25964
|
EmbeddableChat
|
|
25969
25965
|
};
|
|
25970
|
-
//# sourceMappingURL=chunk-
|
|
25966
|
+
//# sourceMappingURL=chunk-DSJZYRS6.js.map
|