@flamingo-stack/openframe-frontend-core 0.0.642 → 0.0.643-snapshot.20260916153353
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 +6 -3
- package/dist/chat-protocol/index.cjs.map +1 -1
- package/dist/chat-protocol/index.js +6 -3
- package/dist/chat-protocol/index.js.map +1 -1
- package/dist/chat-protocol/source-metadata.d.ts +16 -1
- package/dist/chat-protocol/source-metadata.d.ts.map +1 -1
- package/dist/{chunk-YM6L3WM5.js → chunk-27RD5XTP.js} +3 -3
- package/dist/{chunk-POPL3W2S.js → chunk-3DGRXC74.js} +3 -3
- package/dist/{chunk-2Z5FPHOL.cjs → chunk-3UBT2OIX.cjs} +20 -20
- package/dist/{chunk-2Z5FPHOL.cjs.map → chunk-3UBT2OIX.cjs.map} +1 -1
- package/dist/{chunk-6GY6DFIH.js → chunk-4WVWRFGP.js} +6 -6
- package/dist/{chunk-OYI3K5R6.cjs → chunk-65EVGKFV.cjs} +8 -14
- package/dist/chunk-65EVGKFV.cjs.map +1 -0
- package/dist/{chunk-6NHLZORM.js → chunk-7Q5XXPCB.js} +6 -6
- package/dist/{chunk-2NRLRRMR.cjs → chunk-7R2DIGG4.cjs} +319 -293
- package/dist/chunk-7R2DIGG4.cjs.map +1 -0
- package/dist/{chunk-3LXJEXPH.js → chunk-B3Z3RJRW.js} +2 -2
- package/dist/{chunk-N5C5P2LM.cjs → chunk-B5IFXCRF.cjs} +22 -22
- package/dist/{chunk-N5C5P2LM.cjs.map → chunk-B5IFXCRF.cjs.map} +1 -1
- package/dist/{chunk-YRSRP4U3.cjs → chunk-C5Y5T6GC.cjs} +15 -15
- package/dist/{chunk-YRSRP4U3.cjs.map → chunk-C5Y5T6GC.cjs.map} +1 -1
- package/dist/{chunk-VHB3I6F3.cjs → chunk-CBXZSTAG.cjs} +419 -445
- package/dist/chunk-CBXZSTAG.cjs.map +1 -0
- package/dist/{chunk-VKPTN5MT.cjs → chunk-DCCY54LU.cjs} +6 -6
- package/dist/{chunk-VKPTN5MT.cjs.map → chunk-DCCY54LU.cjs.map} +1 -1
- package/dist/{chunk-WL3PNUNY.cjs → chunk-FAD5WURS.cjs} +81 -81
- package/dist/{chunk-WL3PNUNY.cjs.map → chunk-FAD5WURS.cjs.map} +1 -1
- package/dist/{chunk-3IPL6G7S.js → chunk-FOSIR4QF.js} +260 -234
- package/dist/chunk-FOSIR4QF.js.map +1 -0
- package/dist/{chunk-MJ424FEC.js → chunk-HOGOQA2X.js} +2 -2
- package/dist/{chunk-SDGMLXIP.js → chunk-HPWLIYRL.js} +12 -25
- package/dist/chunk-HPWLIYRL.js.map +1 -0
- package/dist/{chunk-3I6XHQUD.js → chunk-I57XLISO.js} +54 -80
- package/dist/chunk-I57XLISO.js.map +1 -0
- package/dist/{chunk-FRCUUK5X.cjs → chunk-IIXB5REN.cjs} +3 -3
- package/dist/{chunk-FRCUUK5X.cjs.map → chunk-IIXB5REN.cjs.map} +1 -1
- package/dist/{chunk-HW7BLVQH.js → chunk-IXD6SHQ6.js} +4 -4
- package/dist/{chunk-XFLJC2WR.cjs → chunk-LZYPSDFE.cjs} +59 -59
- package/dist/{chunk-XFLJC2WR.cjs.map → chunk-LZYPSDFE.cjs.map} +1 -1
- package/dist/{chunk-QY25ZP2V.cjs → chunk-MCQAOIUK.cjs} +28 -28
- package/dist/{chunk-QY25ZP2V.cjs.map → chunk-MCQAOIUK.cjs.map} +1 -1
- package/dist/{chunk-S254VEDE.js → chunk-MRIOYSXH.js} +3 -3
- package/dist/{chunk-OOOOC5O5.cjs → chunk-OMSUWB6A.cjs} +29 -29
- package/dist/{chunk-OOOOC5O5.cjs.map → chunk-OMSUWB6A.cjs.map} +1 -1
- package/dist/{chunk-GEIHTN6J.cjs → chunk-OVXYX47B.cjs} +10 -10
- package/dist/{chunk-GEIHTN6J.cjs.map → chunk-OVXYX47B.cjs.map} +1 -1
- package/dist/{chunk-XWGHLSAL.js → chunk-PFV4DAX5.js} +4 -4
- package/dist/{chunk-O4LL7RQV.cjs → chunk-RB6L5EGM.cjs} +208 -221
- package/dist/chunk-RB6L5EGM.cjs.map +1 -0
- package/dist/{chunk-M4PJVFBF.cjs → chunk-RFFF2EYD.cjs} +11 -11
- package/dist/{chunk-M4PJVFBF.cjs.map → chunk-RFFF2EYD.cjs.map} +1 -1
- package/dist/{chunk-UFBWNVZZ.js → chunk-RNMGKAS6.js} +7 -7
- package/dist/{chunk-SE6YRE3R.cjs → chunk-RWURXICE.cjs} +32 -32
- package/dist/{chunk-SE6YRE3R.cjs.map → chunk-RWURXICE.cjs.map} +1 -1
- package/dist/{chunk-ZAIYD3MZ.js → chunk-S2KMNFFN.js} +3 -3
- package/dist/{chunk-ZGPJ3NVF.js → chunk-SKABQX44.js} +3 -3
- package/dist/{chunk-YE3TFNW6.cjs → chunk-TGUA3C4U.cjs} +5 -5
- package/dist/{chunk-YE3TFNW6.cjs.map → chunk-TGUA3C4U.cjs.map} +1 -1
- package/dist/{chunk-ORFJVMAL.js → chunk-TTVOBWAH.js} +5 -11
- package/dist/chunk-TTVOBWAH.js.map +1 -0
- package/dist/{chunk-M7QROULE.js → chunk-UEXIMEVU.js} +5 -5
- package/dist/{chunk-EW3MSJOE.cjs → chunk-UKV52KAP.cjs} +33 -33
- package/dist/{chunk-EW3MSJOE.cjs.map → chunk-UKV52KAP.cjs.map} +1 -1
- package/dist/{chunk-J4RZVLLQ.js → chunk-VE52MSYC.js} +5 -5
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/chat-sidebar.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
- 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/investor-update.d.ts.map +1 -1
- package/dist/components/chat/types/entities/program-types.d.ts +8 -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/logs-list.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/confirmation.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +47 -72
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +16 -41
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/meeting-scheduler/slot-picker.d.ts.map +1 -1
- 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/shared/article-author-byline.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/device-card.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +19 -5
- package/dist/components/ui/drawer.d.ts.map +1 -1
- 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/components/ui/table/table-timestamp-cell.d.ts.map +1 -1
- package/dist/index.cjs +29 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +35 -23
- package/dist/index.js.map +1 -1
- package/dist/utils/date-formatters.d.ts +7 -2
- package/dist/utils/date-formatters.d.ts.map +1 -1
- package/dist/utils/date-utils.d.ts +4 -1
- package/dist/utils/date-utils.d.ts.map +1 -1
- package/dist/utils/format-date.d.ts.map +1 -1
- package/dist/utils/format.d.ts +155 -11
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +223 -109
- 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 +211 -110
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/program-instant.d.ts +145 -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 +33 -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 +70 -3
- package/src/chat-protocol/source-metadata.ts +22 -6
- package/src/components/chat/chat-sidebar.tsx +4 -11
- package/src/components/chat/entity-cards/.program-card.md +1 -1
- package/src/components/chat/entity-cards/blog-card.tsx +4 -24
- 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/investor-update.ts +4 -6
- package/src/components/chat/types/entities/program-types.ts +8 -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/components/logs-list.tsx +4 -13
- package/src/components/meeting-scheduler/confirmation.tsx +6 -10
- package/src/components/meeting-scheduler/directory.tsx +2 -12
- package/src/components/meeting-scheduler/index.tsx +3 -11
- package/src/components/meeting-scheduler/slot-picker.tsx +4 -7
- package/src/components/shared/article-author-byline.tsx +4 -13
- package/src/components/ui/.drawer.md +1 -0
- package/src/components/ui/__tests__/drawer-size.test.tsx +38 -0
- package/src/components/ui/date-picker.tsx +6 -13
- package/src/components/ui/device-card.tsx +4 -10
- package/src/components/ui/drawer.tsx +44 -9
- package/src/components/ui/table/table-timestamp-cell.tsx +8 -2
- package/src/utils/.format.md +5 -2
- package/src/utils/__tests__/date-rendering.test.ts +118 -0
- package/src/utils/__tests__/format-program-dates.test.ts +148 -0
- package/src/utils/__tests__/program-instant.test.ts +125 -0
- package/src/utils/__tests__/url-safety.test.ts +44 -0
- package/src/utils/date-formatters.ts +18 -29
- package/src/utils/date-utils.ts +27 -40
- package/src/utils/format-date.ts +14 -16
- package/src/utils/format.ts +367 -66
- package/src/utils/index.ts +24 -0
- package/src/utils/program-instant.ts +180 -0
- package/src/utils/program-meta-renderers.ts +18 -0
- package/src/utils/url-safety.ts +43 -0
- package/dist/chunk-2NRLRRMR.cjs.map +0 -1
- package/dist/chunk-3I6XHQUD.js.map +0 -1
- package/dist/chunk-3IPL6G7S.js.map +0 -1
- package/dist/chunk-O4LL7RQV.cjs.map +0 -1
- package/dist/chunk-ORFJVMAL.js.map +0 -1
- package/dist/chunk-OYI3K5R6.cjs.map +0 -1
- package/dist/chunk-SDGMLXIP.js.map +0 -1
- package/dist/chunk-VHB3I6F3.cjs.map +0 -1
- /package/dist/{chunk-YM6L3WM5.js.map → chunk-27RD5XTP.js.map} +0 -0
- /package/dist/{chunk-POPL3W2S.js.map → chunk-3DGRXC74.js.map} +0 -0
- /package/dist/{chunk-6GY6DFIH.js.map → chunk-4WVWRFGP.js.map} +0 -0
- /package/dist/{chunk-6NHLZORM.js.map → chunk-7Q5XXPCB.js.map} +0 -0
- /package/dist/{chunk-3LXJEXPH.js.map → chunk-B3Z3RJRW.js.map} +0 -0
- /package/dist/{chunk-MJ424FEC.js.map → chunk-HOGOQA2X.js.map} +0 -0
- /package/dist/{chunk-HW7BLVQH.js.map → chunk-IXD6SHQ6.js.map} +0 -0
- /package/dist/{chunk-S254VEDE.js.map → chunk-MRIOYSXH.js.map} +0 -0
- /package/dist/{chunk-XWGHLSAL.js.map → chunk-PFV4DAX5.js.map} +0 -0
- /package/dist/{chunk-UFBWNVZZ.js.map → chunk-RNMGKAS6.js.map} +0 -0
- /package/dist/{chunk-ZAIYD3MZ.js.map → chunk-S2KMNFFN.js.map} +0 -0
- /package/dist/{chunk-ZGPJ3NVF.js.map → chunk-SKABQX44.js.map} +0 -0
- /package/dist/{chunk-M7QROULE.js.map → chunk-UEXIMEVU.js.map} +0 -0
- /package/dist/{chunk-J4RZVLLQ.js.map → chunk-VE52MSYC.js.map} +0 -0
|
@@ -144,12 +144,15 @@ 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,
|
|
155
|
+
VIEWER_TIMEZONE,
|
|
153
156
|
buildAnchorProps,
|
|
154
157
|
canonicalContentRefType,
|
|
155
158
|
computeIsNewTab,
|
|
@@ -158,20 +161,20 @@ import {
|
|
|
158
161
|
extractItems,
|
|
159
162
|
formatDateShort,
|
|
160
163
|
formatDateUTC,
|
|
161
|
-
|
|
162
|
-
formatDurationFromRange,
|
|
164
|
+
formatDateWithTimezone,
|
|
163
165
|
formatFileSize,
|
|
164
166
|
formatInvestorUpdatePeriod,
|
|
165
|
-
formatTimeWithTimezone,
|
|
166
167
|
getProxiedImageUrl,
|
|
167
168
|
getStatusColorScheme,
|
|
168
169
|
isSameOriginAbsoluteHref,
|
|
169
170
|
newTabAnchorAttrs,
|
|
170
171
|
personInitials,
|
|
172
|
+
programMetaFormatters,
|
|
173
|
+
programMetaLine,
|
|
171
174
|
safeHref,
|
|
172
175
|
sortBitesByCreatedAtDesc,
|
|
173
176
|
useCoverImageFallback
|
|
174
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-FOSIR4QF.js";
|
|
175
178
|
import {
|
|
176
179
|
next_image_default
|
|
177
180
|
} from "./chunk-MDKCTSDS.js";
|
|
@@ -1094,16 +1097,10 @@ import { forwardRef as forwardRef5 } from "react";
|
|
|
1094
1097
|
import { forwardRef as forwardRef4 } from "react";
|
|
1095
1098
|
|
|
1096
1099
|
// src/utils/format-date.ts
|
|
1097
|
-
var toDate = (input) => input instanceof Date ? input : new Date(input);
|
|
1098
1100
|
var INVALID_DATE_PLACEHOLDER = "\u2014";
|
|
1099
|
-
var
|
|
1100
|
-
var
|
|
1101
|
-
var
|
|
1102
|
-
const date = toDate(input);
|
|
1103
|
-
return Number.isNaN(date.getTime()) ? INVALID_DATE_PLACEHOLDER : fmt.format(date);
|
|
1104
|
-
};
|
|
1105
|
-
var formatDate = (input) => format(input, dateFmt);
|
|
1106
|
-
var formatTime = (input) => format(input, timeFmt);
|
|
1101
|
+
var render = (input, fields) => formatDateWithTimezone(input, VIEWER_TIMEZONE, fields, { viewerLocale: true }) || INVALID_DATE_PLACEHOLDER;
|
|
1102
|
+
var formatDate = (input) => render(input, { dateStyle: "short" });
|
|
1103
|
+
var formatTime = (input) => render(input, { timeStyle: "short" });
|
|
1107
1104
|
|
|
1108
1105
|
// src/components/chat/ai-assistant-info.tsx
|
|
1109
1106
|
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
@@ -6287,6 +6284,13 @@ function createCardMarkerScanner() {
|
|
|
6287
6284
|
}
|
|
6288
6285
|
|
|
6289
6286
|
// src/utils/date-utils.ts
|
|
6287
|
+
var ZONED_DATE_FIELDS_MEDIUM_DATETIME = {
|
|
6288
|
+
year: "numeric",
|
|
6289
|
+
month: "short",
|
|
6290
|
+
day: "numeric",
|
|
6291
|
+
hour: "numeric",
|
|
6292
|
+
minute: "2-digit"
|
|
6293
|
+
};
|
|
6290
6294
|
function formatTicketRelativeTime(iso) {
|
|
6291
6295
|
const now = /* @__PURE__ */ new Date();
|
|
6292
6296
|
const date = new Date(iso);
|
|
@@ -6297,22 +6301,10 @@ function formatTicketRelativeTime(iso) {
|
|
|
6297
6301
|
if (diffMin < 60) return `${diffMin} min ago`;
|
|
6298
6302
|
const diffHours = Math.floor(diffMin / 60);
|
|
6299
6303
|
if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
|
|
6300
|
-
|
|
6301
|
-
const dd = String(date.getUTCDate()).padStart(2, "0");
|
|
6302
|
-
const yyyy = date.getUTCFullYear();
|
|
6303
|
-
return `${mm}/${dd}/${yyyy}`;
|
|
6304
|
+
return formatDateWithTimezone(date, null, "numeric");
|
|
6304
6305
|
}
|
|
6305
6306
|
function formatTicketFullTimestamp(iso) {
|
|
6306
|
-
|
|
6307
|
-
if (Number.isNaN(date.getTime())) return "";
|
|
6308
|
-
const mm = String(date.getUTCMonth() + 1).padStart(2, "0");
|
|
6309
|
-
const dd = String(date.getUTCDate()).padStart(2, "0");
|
|
6310
|
-
const yyyy = date.getUTCFullYear();
|
|
6311
|
-
let hours = date.getUTCHours();
|
|
6312
|
-
const minutes = String(date.getUTCMinutes()).padStart(2, "0");
|
|
6313
|
-
const ampm = hours >= 12 ? "PM" : "AM";
|
|
6314
|
-
hours = hours % 12 || 12;
|
|
6315
|
-
return `${mm}/${dd}/${yyyy}, ${hours}:${minutes} ${ampm}`;
|
|
6307
|
+
return formatDateWithTimezone(iso, null, "numericDateTime");
|
|
6316
6308
|
}
|
|
6317
6309
|
function formatRelativeTime(timestamp) {
|
|
6318
6310
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -6336,11 +6328,10 @@ function formatRelativeTime(timestamp) {
|
|
|
6336
6328
|
const weeks = Math.floor(diffInDays / 7);
|
|
6337
6329
|
return `${weeks}w ago`;
|
|
6338
6330
|
}
|
|
6339
|
-
return targetTime
|
|
6331
|
+
return formatDateWithTimezone(targetTime, null, {
|
|
6340
6332
|
month: "short",
|
|
6341
6333
|
day: "numeric",
|
|
6342
|
-
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
6343
|
-
timeZone: "UTC"
|
|
6334
|
+
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
6344
6335
|
});
|
|
6345
6336
|
}
|
|
6346
6337
|
function formatAbsoluteDate(timestamp, options = {}) {
|
|
@@ -6349,16 +6340,12 @@ function formatAbsoluteDate(timestamp, options = {}) {
|
|
|
6349
6340
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
|
|
6350
6341
|
return "Invalid date";
|
|
6351
6342
|
}
|
|
6352
|
-
|
|
6343
|
+
return formatDateWithTimezone(targetTime, options.timeZone ?? null, {
|
|
6353
6344
|
year: "numeric",
|
|
6354
6345
|
month: "short",
|
|
6355
6346
|
day: "numeric",
|
|
6356
|
-
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
6357
|
-
// Caller can override via `options`.
|
|
6358
|
-
timeZone: "UTC",
|
|
6359
6347
|
...options
|
|
6360
|
-
};
|
|
6361
|
-
return targetTime.toLocaleDateString("en-US", defaultOptions);
|
|
6348
|
+
});
|
|
6362
6349
|
}
|
|
6363
6350
|
function formatDateTime(timestamp, options = {}) {
|
|
6364
6351
|
const targetTime = typeof timestamp === "string" ? new Date(timestamp) : timestamp;
|
|
@@ -6366,18 +6353,10 @@ function formatDateTime(timestamp, options = {}) {
|
|
|
6366
6353
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
|
|
6367
6354
|
return "Invalid date";
|
|
6368
6355
|
}
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
month: "short",
|
|
6372
|
-
day: "numeric",
|
|
6373
|
-
hour: "numeric",
|
|
6374
|
-
minute: "2-digit",
|
|
6375
|
-
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
6376
|
-
// Caller can override via `options`.
|
|
6377
|
-
timeZone: "UTC",
|
|
6356
|
+
return formatDateWithTimezone(targetTime, options.timeZone ?? null, {
|
|
6357
|
+
...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
|
|
6378
6358
|
...options
|
|
6379
|
-
};
|
|
6380
|
-
return targetTime.toLocaleDateString("en-US", defaultOptions);
|
|
6359
|
+
});
|
|
6381
6360
|
}
|
|
6382
6361
|
function getDetailedTimeDifference(timestamp) {
|
|
6383
6362
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -7133,11 +7112,11 @@ var ChatMessageEnhanced = forwardRef16(
|
|
|
7133
7112
|
}, [refs]);
|
|
7134
7113
|
const renderingPlan = useMemo8(() => {
|
|
7135
7114
|
if (!hasMarkerSupport) return null;
|
|
7136
|
-
const
|
|
7115
|
+
const render2 = renderEntityCard;
|
|
7137
7116
|
const inlineByKey = /* @__PURE__ */ new Map();
|
|
7138
7117
|
const partsBySegment = /* @__PURE__ */ new Map();
|
|
7139
7118
|
const usedKeys = /* @__PURE__ */ new Set();
|
|
7140
|
-
if (!
|
|
7119
|
+
if (!render2) return { inlineByKey, partsBySegment, usedKeys };
|
|
7141
7120
|
const cache = renderedCardNodeCache.current;
|
|
7142
7121
|
const emittedBlockKeys = /* @__PURE__ */ new Set();
|
|
7143
7122
|
segments.forEach((segment, segIdx) => {
|
|
@@ -7154,14 +7133,14 @@ var ChatMessageEnhanced = forwardRef16(
|
|
|
7154
7133
|
usedKeys.add(key);
|
|
7155
7134
|
const describedRef = refByKey.get(key);
|
|
7156
7135
|
let entry = cache.get(key);
|
|
7157
|
-
if (!entry || entry.render !==
|
|
7136
|
+
if (!entry || entry.render !== render2 || entry.ref !== describedRef) {
|
|
7158
7137
|
const refForRender = describedRef ?? {
|
|
7159
7138
|
type: cardType,
|
|
7160
7139
|
id: cardId,
|
|
7161
7140
|
title: cardId,
|
|
7162
7141
|
url: null
|
|
7163
7142
|
};
|
|
7164
|
-
entry = { render, ref: describedRef, node:
|
|
7143
|
+
entry = { render: render2, ref: describedRef, node: render2(refForRender) };
|
|
7165
7144
|
cache.set(key, entry);
|
|
7166
7145
|
}
|
|
7167
7146
|
const rendered = entry.node;
|
|
@@ -11386,13 +11365,7 @@ var DialogListItem = forwardRef24(
|
|
|
11386
11365
|
onClick?.(e);
|
|
11387
11366
|
};
|
|
11388
11367
|
const formatTimestamp = (timestamp) => {
|
|
11389
|
-
|
|
11390
|
-
const date = typeof timestamp === "string" ? new Date(timestamp) : timestamp;
|
|
11391
|
-
return date.toLocaleDateString("en-US", {
|
|
11392
|
-
year: "numeric",
|
|
11393
|
-
month: "2-digit",
|
|
11394
|
-
day: "2-digit"
|
|
11395
|
-
}) + ", " + date.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: false });
|
|
11368
|
+
return formatDateWithTimezone(timestamp, VIEWER_TIMEZONE, "numericDateTime24h");
|
|
11396
11369
|
};
|
|
11397
11370
|
return /* @__PURE__ */ jsxs55(
|
|
11398
11371
|
"div",
|
|
@@ -15541,19 +15514,7 @@ function ProgramChatCard({
|
|
|
15541
15514
|
discuss
|
|
15542
15515
|
}) {
|
|
15543
15516
|
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 ");
|
|
15517
|
+
const { line: meta } = programMetaLine(item ?? {}, configKey, programMetaFormatters(PROGRAM_META_RENDERERS));
|
|
15557
15518
|
return /* @__PURE__ */ jsx94(
|
|
15558
15519
|
EntityMingoCard,
|
|
15559
15520
|
{
|
|
@@ -18249,7 +18210,7 @@ function nullableText(value) {
|
|
|
18249
18210
|
}
|
|
18250
18211
|
function httpsUrl(value) {
|
|
18251
18212
|
const candidate = text(value);
|
|
18252
|
-
if (!candidate) return void 0;
|
|
18213
|
+
if (!candidate || UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
18253
18214
|
try {
|
|
18254
18215
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
18255
18216
|
} catch {
|
|
@@ -18277,7 +18238,7 @@ function sourceItems(value) {
|
|
|
18277
18238
|
const documentType = text(item.documentType);
|
|
18278
18239
|
const name = text(item.name);
|
|
18279
18240
|
if (!id || !documentType || !name) return [];
|
|
18280
|
-
const externalUrl =
|
|
18241
|
+
const externalUrl = text(item.externalUrl);
|
|
18281
18242
|
const targetPlatform = nullableText(item.targetPlatform);
|
|
18282
18243
|
const path = nullableText(item.path);
|
|
18283
18244
|
return [
|
|
@@ -18306,7 +18267,7 @@ function sources(value) {
|
|
|
18306
18267
|
claimed.add(index);
|
|
18307
18268
|
const path = text(candidate.path);
|
|
18308
18269
|
const documentType = text(candidate.documentType);
|
|
18309
|
-
const externalUrl =
|
|
18270
|
+
const externalUrl = text(candidate.externalUrl);
|
|
18310
18271
|
const targetPlatform = nullableText(candidate.targetPlatform);
|
|
18311
18272
|
const id = text(candidate.id);
|
|
18312
18273
|
const sourceRepo = text(candidate.sourceRepo);
|
|
@@ -23604,9 +23565,20 @@ var drawerPanelVariants = cva2(
|
|
|
23604
23565
|
flush: {
|
|
23605
23566
|
false: "gap-4 rounded-md border border-ods-border p-4",
|
|
23606
23567
|
true: ""
|
|
23568
|
+
},
|
|
23569
|
+
/** Panel size along the axis the drawer slides on. `default` leaves it to
|
|
23570
|
+
* the content (or `resizable`); `wide` is the admin detail panel, 90% of
|
|
23571
|
+
* the viewport. Set the size here, never with a width class. */
|
|
23572
|
+
size: {
|
|
23573
|
+
default: "",
|
|
23574
|
+
wide: ""
|
|
23607
23575
|
}
|
|
23608
23576
|
},
|
|
23609
23577
|
compoundVariants: [
|
|
23578
|
+
{ side: "right", size: "wide", class: "w-[90vw]" },
|
|
23579
|
+
{ side: "left", size: "wide", class: "w-[90vw]" },
|
|
23580
|
+
{ side: "top", size: "wide", class: "h-[90vh]" },
|
|
23581
|
+
{ side: "bottom", size: "wide", class: "h-[90vh]" },
|
|
23610
23582
|
// flush=true → drops inner padding/gap so the consumer fully owns
|
|
23611
23583
|
// internal layout, BUT preserves the card chrome (rounded + border)
|
|
23612
23584
|
// on desktop so the panel still reads as an elevated card.
|
|
@@ -23618,7 +23590,8 @@ var drawerPanelVariants = cva2(
|
|
|
23618
23590
|
],
|
|
23619
23591
|
defaultVariants: {
|
|
23620
23592
|
side: "right",
|
|
23621
|
-
flush: false
|
|
23593
|
+
flush: false,
|
|
23594
|
+
size: "default"
|
|
23622
23595
|
}
|
|
23623
23596
|
}
|
|
23624
23597
|
);
|
|
@@ -23754,6 +23727,7 @@ var DrawerContent = forwardRef26(
|
|
|
23754
23727
|
({
|
|
23755
23728
|
side = "right",
|
|
23756
23729
|
flush = false,
|
|
23730
|
+
size: size2 = "default",
|
|
23757
23731
|
resizable = false,
|
|
23758
23732
|
minSize = 320,
|
|
23759
23733
|
maxSize = 1280,
|
|
@@ -23783,7 +23757,7 @@ var DrawerContent = forwardRef26(
|
|
|
23783
23757
|
mq.addEventListener("change", update);
|
|
23784
23758
|
return () => mq.removeEventListener("change", update);
|
|
23785
23759
|
}, [mobileBreakpoint]);
|
|
23786
|
-
const { size:
|
|
23760
|
+
const { size: resizedSize, setSize } = useResizableSize({
|
|
23787
23761
|
enabled: resizable,
|
|
23788
23762
|
isHorizontal,
|
|
23789
23763
|
minSize,
|
|
@@ -23792,7 +23766,7 @@ var DrawerContent = forwardRef26(
|
|
|
23792
23766
|
storageKey
|
|
23793
23767
|
});
|
|
23794
23768
|
const applyInlineSize = resizable && !isMobile;
|
|
23795
|
-
const sizeStyle = applyInlineSize ? isHorizontal ? { width:
|
|
23769
|
+
const sizeStyle = applyInlineSize ? isHorizontal ? { width: resizedSize } : { height: resizedSize } : {};
|
|
23796
23770
|
return /* @__PURE__ */ jsxs74(DrawerPortal, { children: [
|
|
23797
23771
|
/* @__PURE__ */ jsx96(DrawerOverlay, { className: overlayClassName }),
|
|
23798
23772
|
/* @__PURE__ */ jsxs74(
|
|
@@ -23807,7 +23781,7 @@ var DrawerContent = forwardRef26(
|
|
|
23807
23781
|
DrawerResizeHandle,
|
|
23808
23782
|
{
|
|
23809
23783
|
side: resolvedSide,
|
|
23810
|
-
size:
|
|
23784
|
+
size: resizedSize,
|
|
23811
23785
|
minSize,
|
|
23812
23786
|
maxSize,
|
|
23813
23787
|
onSize: setSize,
|
|
@@ -23817,7 +23791,7 @@ var DrawerContent = forwardRef26(
|
|
|
23817
23791
|
/* @__PURE__ */ jsx96(
|
|
23818
23792
|
"div",
|
|
23819
23793
|
{
|
|
23820
|
-
className: cn(drawerPanelVariants({ side, flush }), className, panelClassName),
|
|
23794
|
+
className: cn(drawerPanelVariants({ side, flush, size: size2 }), className, panelClassName),
|
|
23821
23795
|
style: { ...sizeStyle, ...panelStyle },
|
|
23822
23796
|
children
|
|
23823
23797
|
}
|
|
@@ -25954,4 +25928,4 @@ export {
|
|
|
25954
25928
|
buildStreamFrames,
|
|
25955
25929
|
EmbeddableChat
|
|
25956
25930
|
};
|
|
25957
|
-
//# sourceMappingURL=chunk-
|
|
25931
|
+
//# sourceMappingURL=chunk-I57XLISO.js.map
|