@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
package/dist/utils/format.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Utility functions for formatting data
|
|
3
3
|
*/
|
|
4
|
+
import type { ProgramInstant } from './program-instant';
|
|
4
5
|
/**
|
|
5
6
|
* Format a date to a human-readable string
|
|
6
7
|
* @param date - The date to format (Date object or ISO string)
|
|
@@ -128,16 +129,86 @@ export declare function formatDurationCompact(seconds: number | null | undefined
|
|
|
128
129
|
* fixing the React #418 hydration mismatch — AND shows the true event time
|
|
129
130
|
* (4:00 PM EDT, not the 8:00 PM UTC a plain UTC pin would show, nor the
|
|
130
131
|
* viewer-local time the old unpinned call produced). Falls back to UTC when no
|
|
131
|
-
* zone is given, and tolerates
|
|
132
|
-
* The zone LABEL is rendered separately by callers
|
|
132
|
+
* zone is given, and tolerates an unresolvable label (legacy data) without throwing.
|
|
133
|
+
* The zone LABEL is rendered separately by callers that have room for their own
|
|
134
|
+
* styled span; pass `withZoneLabel` where the output is a plain joined string
|
|
135
|
+
* (the compact card densities) and the short name is appended inline — an
|
|
136
|
+
* unlabelled wall clock beside a date is readable but still ambiguous about
|
|
137
|
+
* WHICH zone it is stating.
|
|
133
138
|
*
|
|
134
|
-
* Returns: "4:00 PM"
|
|
139
|
+
* Returns: "4:00 PM", or "4:00 PM EDT" with `withZoneLabel`.
|
|
135
140
|
*/
|
|
136
|
-
export declare function formatTimeWithTimezone(date: Date | string | null | undefined, timezone?: string | null
|
|
141
|
+
export declare function formatTimeWithTimezone(date: Date | string | null | undefined, timezone?: string | null, options?: {
|
|
142
|
+
withZoneLabel?: boolean;
|
|
143
|
+
}): string;
|
|
144
|
+
/**
|
|
145
|
+
* Format a webinar/event DATE as the calendar day in its OWN timezone — the
|
|
146
|
+
* sibling of `formatTimeWithTimezone`, and the reason it exists.
|
|
147
|
+
*
|
|
148
|
+
* A card that prints the date in UTC and the time beside it in the event's zone
|
|
149
|
+
* can name a moment that never existed: a webinar at `2026-03-20T01:18Z` in
|
|
150
|
+
* `America/New_York` read "Mar 20, 2026 · 9:18 PM" — 9:18 PM on the 20th is not
|
|
151
|
+
* when it happens, 9:18 PM on the 19th is. Both halves of one timestamp must be
|
|
152
|
+
* rendered in ONE zone. Same UTC fallback and same non-IANA tolerance as the
|
|
153
|
+
* time formatter, so the pair can never disagree about which zone it used.
|
|
154
|
+
*
|
|
155
|
+
* `style` picks the two shapes the program cards actually render:
|
|
156
|
+
* `'medium'` → "Mar 19, 2026" (compact densities), `'weekday'` →
|
|
157
|
+
* "Thursday, March 19" (default density).
|
|
158
|
+
*
|
|
159
|
+
* Returns: "Mar 19, 2026"
|
|
160
|
+
*/
|
|
161
|
+
export type ZonedDateStyle = 'medium' | 'weekday' | 'long';
|
|
162
|
+
export declare function formatDateWithTimezone(date: Date | string | null | undefined, timezone?: string | null, style?: ZonedDateStyle): string;
|
|
163
|
+
/**
|
|
164
|
+
* THE program date — the date half of what `formatWebinarTimeMeta` renders as
|
|
165
|
+
* the time half, taking the same already-resolved `ProgramInstant` so the two
|
|
166
|
+
* cannot name different moments.
|
|
167
|
+
*
|
|
168
|
+
* Every program surface used to write this branch itself:
|
|
169
|
+
* `zoned.instant && !zoned.dateOnly ? formatDateWithTimezone(...) :
|
|
170
|
+
* formatUtc(new Date(item.date), 'EEEE d MMMM')` — four copies, and they did
|
|
171
|
+
* not agree. Three stated the condition off the resolved instant and the
|
|
172
|
+
* fourth off a local timezone variable; worse, the two branches rendered
|
|
173
|
+
* DIFFERENT SHAPES, so whether a row happened to declare a zone decided
|
|
174
|
+
* whether its headline read "Thursday, March 19" or "Thursday 19 March".
|
|
175
|
+
*
|
|
176
|
+
* There is no UTC branch here because there never needed to be one:
|
|
177
|
+
* `formatDateWithTimezone` already pins to UTC when handed no zone, which is
|
|
178
|
+
* the same React #418 fix the hand-rolled `formatUtc` twins existed for — they
|
|
179
|
+
* were a date-fns re-implementation of a fallback that was already inside the
|
|
180
|
+
* function they sat next to.
|
|
181
|
+
*/
|
|
182
|
+
export declare function formatProgramDate(at: ProgramInstant, style?: ZonedDateStyle): string;
|
|
183
|
+
/**
|
|
184
|
+
* Do these two endpoints describe a forward-running interval?
|
|
185
|
+
*
|
|
186
|
+
* THE ordering rule for every renderer in this file. A range that runs
|
|
187
|
+
* backwards is not a short range, it is a false one: a card shipped "-45m"
|
|
188
|
+
* from a row whose `end_at` preceded its `start_at`, and the clock renderer
|
|
189
|
+
* printed "11:00 PM - 9:00 PM" from the same shape. Both refuse it here.
|
|
190
|
+
*
|
|
191
|
+
* The host app enforces the same rule at INGEST (it drops such an `end_at`
|
|
192
|
+
* rather than storing it) and states the comparison itself, because the module
|
|
193
|
+
* that owns it there is a dependency-free leaf its mapper tests rely on. Two
|
|
194
|
+
* statements of one comparison, across a package boundary, knowingly — if this
|
|
195
|
+
* one changes, that one has to.
|
|
196
|
+
*/
|
|
197
|
+
export declare function isOrderedRange(from: Date | string | null | undefined, to: Date | string | null | undefined): boolean;
|
|
137
198
|
/**
|
|
138
199
|
* Calculate and format duration between two timestamps
|
|
139
200
|
* Used for webinar durations
|
|
140
201
|
* Returns: "1h 30m" or "45m"
|
|
202
|
+
*
|
|
203
|
+
* Returns `''` — the same "nothing to show" this function already returns for a
|
|
204
|
+
* missing endpoint — when the range is not a positive, real duration. An event
|
|
205
|
+
* whose `end_at` precedes its `start_at` is corrupt data, and the unguarded
|
|
206
|
+
* subtraction printed it literally: a live webinar row rendered "-45m" on the
|
|
207
|
+
* card. An unparseable timestamp printed "NaNm" the same way. A renderer shows
|
|
208
|
+
* nothing rather than an impossible value; the write path is what must reject
|
|
209
|
+
* the row. (Note the negative case never even reached the `>= 60` branch, so
|
|
210
|
+
* -90 minutes rendered as "-90m" rather than "-1h 30m" — the output was not
|
|
211
|
+
* just wrong, it was inconsistently wrong.)
|
|
141
212
|
*/
|
|
142
213
|
export declare function formatDurationFromRange(startAt: string | Date | null | undefined, endAt: string | Date | null | undefined): string;
|
|
143
214
|
/**
|
|
@@ -302,4 +373,56 @@ export declare function formatPricingModel(pricingModel: string): string;
|
|
|
302
373
|
* plain text passthrough, and null/undefined values.
|
|
303
374
|
*/
|
|
304
375
|
export declare function formatBioText(aboutHtml: string | null | undefined, fallback?: string): string;
|
|
376
|
+
/**
|
|
377
|
+
* THE program CLOCK — one time, or a start–end range, in the resolved zone.
|
|
378
|
+
*
|
|
379
|
+
* The third member of the set beside `formatProgramDate` (the day) and
|
|
380
|
+
* `formatWebinarTimeMeta` (time + duration), and it exists because the page
|
|
381
|
+
* header rebuilt it locally: an `instant ?? utcDate` fallback, a `dateOnly`
|
|
382
|
+
* suppression and a zone-labelled render — the same three things the meta
|
|
383
|
+
* helper owns, re-applied at the call site, which is exactly what that
|
|
384
|
+
* helper's docblock says goes wrong. The header also appended the RAW IANA
|
|
385
|
+
* name while the slot beneath it used the short name, so one component
|
|
386
|
+
* printed "America/New_York" and "EDT" six lines apart.
|
|
387
|
+
*
|
|
388
|
+
* Only the LAST clock carries the zone label, so a range reads
|
|
389
|
+
* "9:00 AM - 5:00 PM EDT" rather than labelling both ends.
|
|
390
|
+
*/
|
|
391
|
+
export declare function formatProgramTimeRange(at: ProgramInstant, opts?: {
|
|
392
|
+
startAt?: string | null;
|
|
393
|
+
endAt?: string | null;
|
|
394
|
+
withZoneLabel?: boolean;
|
|
395
|
+
}): string;
|
|
396
|
+
/**
|
|
397
|
+
* "4:00 PM EDT · 45m" — a webinar's time and duration as one meta string.
|
|
398
|
+
*
|
|
399
|
+
* Extracted because this exact three-line composition existed in the chat card
|
|
400
|
+
* and the public page header, and they DRIFTED: the card was corrected to read
|
|
401
|
+
* the resolved display instant while the page still read the raw `start_at`, so
|
|
402
|
+
* an admin override printed two different clock times for one webinar. One
|
|
403
|
+
* review round apart, on the same three lines.
|
|
404
|
+
*
|
|
405
|
+
* The split is the point: the TIME comes from the resolved display `instant`
|
|
406
|
+
* (which carries any override), the DURATION from `startAt`/`endAt`, because
|
|
407
|
+
* elapsed time is not a display date. Both sides of the separator are gated, so
|
|
408
|
+
* neither a suppressed duration nor an unrenderable time can leave one dangling.
|
|
409
|
+
*
|
|
410
|
+
* `dateOnly` lives in HERE rather than at the call sites on purpose: when each
|
|
411
|
+
* caller applied it, two of the three forgot and the surfaces disagreed about
|
|
412
|
+
* the same row. A chosen display date has no clock the admin meant, so the time
|
|
413
|
+
* half is dropped and only the duration remains.
|
|
414
|
+
*
|
|
415
|
+
* It takes the RESOLVED `ProgramInstant`, exactly as `formatProgramDate` does,
|
|
416
|
+
* for the same reason. While it took `instant` / `timezone` / `dateOnly` as
|
|
417
|
+
* loose fields, all four callers re-projected them off the same resolved value
|
|
418
|
+
* and no two projections matched — so a zoneless webinar rendered "4:00 PM UTC"
|
|
419
|
+
* on the public card and "4:00 PM" on the chat card, which exist to mirror each
|
|
420
|
+
* other, and the detail page fell back to a different source instant from the
|
|
421
|
+
* card's. Taking the value whole is what makes those disagreements unsayable.
|
|
422
|
+
*/
|
|
423
|
+
export declare function formatWebinarTimeMeta(at: ProgramInstant, opts: {
|
|
424
|
+
startAt: string | null;
|
|
425
|
+
endAt: string | null;
|
|
426
|
+
withZoneLabel?: boolean;
|
|
427
|
+
}): string;
|
|
305
428
|
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;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utils/index.cjs
CHANGED
|
@@ -282,14 +282,16 @@ function formatDurationCompact(seconds) {
|
|
|
282
282
|
}
|
|
283
283
|
return `${minutes} min`;
|
|
284
284
|
}
|
|
285
|
-
function formatTimeWithTimezone(date, timezone) {
|
|
285
|
+
function formatTimeWithTimezone(date, timezone, options) {
|
|
286
286
|
if (!date) return "";
|
|
287
287
|
const dateObj = typeof date === "string" ? new Date(date) : date;
|
|
288
|
+
if (Number.isNaN(dateObj.getTime())) return "";
|
|
288
289
|
const opts = {
|
|
289
290
|
hour: "numeric",
|
|
290
291
|
minute: "2-digit",
|
|
291
292
|
hour12: true,
|
|
292
|
-
timeZone: timezone || "UTC"
|
|
293
|
+
timeZone: timezone || "UTC",
|
|
294
|
+
...options?.withZoneLabel ? { timeZoneName: "short" } : {}
|
|
293
295
|
};
|
|
294
296
|
try {
|
|
295
297
|
return dateObj.toLocaleTimeString("en-US", opts);
|
|
@@ -297,12 +299,41 @@ function formatTimeWithTimezone(date, timezone) {
|
|
|
297
299
|
return dateObj.toLocaleTimeString("en-US", { ...opts, timeZone: "UTC" });
|
|
298
300
|
}
|
|
299
301
|
}
|
|
302
|
+
var ZONED_DATE_STYLES = {
|
|
303
|
+
medium: { year: "numeric", month: "short", day: "numeric" },
|
|
304
|
+
weekday: { weekday: "long", day: "numeric", month: "long" },
|
|
305
|
+
// Spelled-out month, no weekday — what an SEO description reads best as.
|
|
306
|
+
long: { year: "numeric", month: "long", day: "numeric" }
|
|
307
|
+
};
|
|
308
|
+
function formatDateWithTimezone(date, timezone, style = "medium") {
|
|
309
|
+
if (!date) return "";
|
|
310
|
+
const dateObj = typeof date === "string" ? new Date(date) : date;
|
|
311
|
+
if (Number.isNaN(dateObj.getTime())) return "";
|
|
312
|
+
const opts = {
|
|
313
|
+
...ZONED_DATE_STYLES[style],
|
|
314
|
+
timeZone: timezone || "UTC"
|
|
315
|
+
};
|
|
316
|
+
try {
|
|
317
|
+
return dateObj.toLocaleDateString("en-US", opts);
|
|
318
|
+
} catch {
|
|
319
|
+
return dateObj.toLocaleDateString("en-US", { ...opts, timeZone: "UTC" });
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function formatProgramDate(at, style = "medium") {
|
|
323
|
+
return formatDateWithTimezone(at.instant ?? at.utcDate, at.timezone, style);
|
|
324
|
+
}
|
|
325
|
+
function isOrderedRange(from, to) {
|
|
326
|
+
if (!from || !to) return false;
|
|
327
|
+
const a = (typeof from === "string" ? new Date(from) : from).getTime();
|
|
328
|
+
const b = (typeof to === "string" ? new Date(to) : to).getTime();
|
|
329
|
+
return Number.isFinite(a) && Number.isFinite(b) && b > a;
|
|
330
|
+
}
|
|
300
331
|
function formatDurationFromRange(startAt, endAt) {
|
|
301
|
-
if (!startAt
|
|
332
|
+
if (!isOrderedRange(startAt, endAt)) return "";
|
|
302
333
|
const start = typeof startAt === "string" ? new Date(startAt) : startAt;
|
|
303
334
|
const end = typeof endAt === "string" ? new Date(endAt) : endAt;
|
|
304
|
-
const
|
|
305
|
-
|
|
335
|
+
const minutes = Math.round((end.getTime() - start.getTime()) / 6e4);
|
|
336
|
+
if (minutes <= 0) return "";
|
|
306
337
|
if (minutes >= 60) {
|
|
307
338
|
const hours = Math.floor(minutes / 60);
|
|
308
339
|
const mins = minutes % 60;
|
|
@@ -491,6 +522,22 @@ function formatBioText(aboutHtml, fallback = "") {
|
|
|
491
522
|
}
|
|
492
523
|
return stripHtml(aboutHtml).trim() || fallback;
|
|
493
524
|
}
|
|
525
|
+
function formatProgramTimeRange(at, opts = {}) {
|
|
526
|
+
if (at.dateOnly) return "";
|
|
527
|
+
const source = at.instant ?? at.utcDate ?? opts.startAt;
|
|
528
|
+
const label = opts.withZoneLabel === true;
|
|
529
|
+
const bare = formatTimeWithTimezone(source, at.timezone);
|
|
530
|
+
const labelled = label ? formatTimeWithTimezone(source, at.timezone, { withZoneLabel: true }) : bare;
|
|
531
|
+
const ordered = isOrderedRange(source, opts.endAt);
|
|
532
|
+
const end = ordered && opts.endAt ? formatTimeWithTimezone(opts.endAt, at.timezone, { withZoneLabel: label }) : "";
|
|
533
|
+
if (!bare) return "";
|
|
534
|
+
return end ? `${bare} - ${end}` : labelled;
|
|
535
|
+
}
|
|
536
|
+
function formatWebinarTimeMeta(at, opts) {
|
|
537
|
+
const duration = formatDurationFromRange(opts.startAt, opts.endAt);
|
|
538
|
+
const time = formatProgramTimeRange(at, { startAt: opts.startAt, withZoneLabel: opts.withZoneLabel });
|
|
539
|
+
return [time, duration].filter(Boolean).join(" \xB7 ");
|
|
540
|
+
}
|
|
494
541
|
var PLAY_ICON_PATH = "M4.875 5.006c0-2.501 2.793-3.989 4.87-2.592l9.78 6.578c2.135 1.437 2.135 4.58 0 6.016l-9.78 6.579c-2.077 1.396-4.87-.091-4.87-2.593zm2.25 13.988c0 .7.783 1.118 1.364.727l9.78-6.58c.81-.545.81-1.738 0-2.283L8.488 4.28a.875.875 0 0 0-1.364.726v13.988Z";
|
|
495
542
|
|
|
496
543
|
// src/utils/color-analysis.ts
|
|
@@ -5473,6 +5520,56 @@ function pickBadgePaletteColor({
|
|
|
5473
5520
|
return pool[Math.floor(random() * pool.length) % pool.length];
|
|
5474
5521
|
}
|
|
5475
5522
|
|
|
5523
|
+
// src/utils/program-instant.ts
|
|
5524
|
+
var programStr = (value) => typeof value === "string" && value ? value : null;
|
|
5525
|
+
function programDateInstant(item) {
|
|
5526
|
+
const declaredZone = programStr(item.timezone);
|
|
5527
|
+
const dateOnly = item.date_is_display_override === true;
|
|
5528
|
+
const date = programStr(item.date);
|
|
5529
|
+
const startAt = programStr(item.start_at);
|
|
5530
|
+
const timezone = dateOnly ? null : declaredZone;
|
|
5531
|
+
return {
|
|
5532
|
+
instant: timezone ? date ?? startAt : null,
|
|
5533
|
+
timezone,
|
|
5534
|
+
dateOnly,
|
|
5535
|
+
utcDate: date ?? startAt
|
|
5536
|
+
};
|
|
5537
|
+
}
|
|
5538
|
+
function webinarTiming(item) {
|
|
5539
|
+
return { startAt: programStr(item.start_at), endAt: programStr(item.end_at) };
|
|
5540
|
+
}
|
|
5541
|
+
function programMetaLine(item, kind, fmt) {
|
|
5542
|
+
const at = programDateInstant(item);
|
|
5543
|
+
const isScheduled = item.status === "scheduled";
|
|
5544
|
+
let typeMeta = null;
|
|
5545
|
+
if (kind === "podcast" && typeof item.duration_seconds === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
5546
|
+
typeMeta = fmt.duration(item.duration_seconds);
|
|
5547
|
+
} else if (kind === "event" && typeof item.location_name === "string" && item.location_name.trim().length > 0) {
|
|
5548
|
+
typeMeta = item.location_name;
|
|
5549
|
+
} else if (kind === "webinar" && programStr(item.start_at)) {
|
|
5550
|
+
typeMeta = fmt.webinarMeta(at, webinarTiming(item)) || null;
|
|
5551
|
+
}
|
|
5552
|
+
return { at, typeMeta, line: [fmt.date(at), typeMeta].filter(Boolean).join(" \xB7 ") };
|
|
5553
|
+
}
|
|
5554
|
+
function programMetaFormatters(fmt, opts = {}) {
|
|
5555
|
+
const withZoneLabel = opts.withZoneLabel !== false;
|
|
5556
|
+
return {
|
|
5557
|
+
// The meta line always renders the compact day; the one surface that wants
|
|
5558
|
+
// the weekday form renders it in its own slot, so a `dateStyle` option here
|
|
5559
|
+
// would exist for no caller.
|
|
5560
|
+
date: (at) => fmt.date(at, "medium"),
|
|
5561
|
+
duration: fmt.duration,
|
|
5562
|
+
webinarMeta: (at, o) => fmt.webinarMeta(at, { ...o, withZoneLabel })
|
|
5563
|
+
};
|
|
5564
|
+
}
|
|
5565
|
+
|
|
5566
|
+
// src/utils/program-meta-renderers.ts
|
|
5567
|
+
var PROGRAM_META_RENDERERS = {
|
|
5568
|
+
date: formatProgramDate,
|
|
5569
|
+
duration: formatDurationCompact,
|
|
5570
|
+
webinarMeta: formatWebinarTimeMeta
|
|
5571
|
+
};
|
|
5572
|
+
|
|
5476
5573
|
exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME;
|
|
5477
5574
|
exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX;
|
|
5478
5575
|
exports.BADGE_PALETTE = BADGE_PALETTE;
|
|
@@ -5518,6 +5615,7 @@ exports.PLATFORM_BRAND = PLATFORM_BRAND;
|
|
|
5518
5615
|
exports.PLATFORM_SURFACE = PLATFORM_SURFACE;
|
|
5519
5616
|
exports.PLATFORM_THEME = PLATFORM_THEME;
|
|
5520
5617
|
exports.PLAY_ICON_PATH = PLAY_ICON_PATH;
|
|
5618
|
+
exports.PROGRAM_META_RENDERERS = PROGRAM_META_RENDERERS;
|
|
5521
5619
|
exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS;
|
|
5522
5620
|
exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE;
|
|
5523
5621
|
exports.SCROLL_ANCHOR = SCROLL_ANCHOR;
|
|
@@ -5614,6 +5712,7 @@ exports.formatDateSlashUTC = formatDateSlashUTC;
|
|
|
5614
5712
|
exports.formatDateTime = formatDateTime;
|
|
5615
5713
|
exports.formatDateTimeAt = formatDateTimeAt;
|
|
5616
5714
|
exports.formatDateUTC = formatDateUTC;
|
|
5715
|
+
exports.formatDateWithTimezone = formatDateWithTimezone;
|
|
5617
5716
|
exports.formatDocName = formatDocName;
|
|
5618
5717
|
exports.formatDuration = formatDuration;
|
|
5619
5718
|
exports.formatDurationCompact = formatDurationCompact;
|
|
@@ -5629,6 +5728,8 @@ exports.formatPercent = formatPercent;
|
|
|
5629
5728
|
exports.formatPhoneE164 = formatPhoneE164;
|
|
5630
5729
|
exports.formatPrice = formatPrice;
|
|
5631
5730
|
exports.formatPricingModel = formatPricingModel;
|
|
5731
|
+
exports.formatProgramDate = formatProgramDate;
|
|
5732
|
+
exports.formatProgramTimeRange = formatProgramTimeRange;
|
|
5632
5733
|
exports.formatRelativeTime = formatRelativeTime;
|
|
5633
5734
|
exports.formatReleaseDate = formatReleaseDate;
|
|
5634
5735
|
exports.formatSingularLookupInvocation = formatSingularLookupInvocation;
|
|
@@ -5636,6 +5737,7 @@ exports.formatTicketFullTimestamp = formatTicketFullTimestamp;
|
|
|
5636
5737
|
exports.formatTicketRelativeTime = formatTicketRelativeTime;
|
|
5637
5738
|
exports.formatTimeWithTimezone = formatTimeWithTimezone;
|
|
5638
5739
|
exports.formatUnderscoreText = formatUnderscoreText;
|
|
5740
|
+
exports.formatWebinarTimeMeta = formatWebinarTimeMeta;
|
|
5639
5741
|
exports.formatWholeDollars = formatWholeDollars;
|
|
5640
5742
|
exports.fromKeys = fromKeys;
|
|
5641
5743
|
exports.generateBiteId = generateBiteId;
|
|
@@ -5716,6 +5818,7 @@ exports.isHumanitySignalKey = isHumanitySignalKey;
|
|
|
5716
5818
|
exports.isImageMedia = isImageMedia;
|
|
5717
5819
|
exports.isListedSchedulingName = isListedSchedulingName;
|
|
5718
5820
|
exports.isOSPlatform = isOSPlatform;
|
|
5821
|
+
exports.isOrderedRange = isOrderedRange;
|
|
5719
5822
|
exports.isPublishableMediaType = isPublishableMediaType;
|
|
5720
5823
|
exports.isToday = isToday;
|
|
5721
5824
|
exports.isValidEmailDomain = isValidEmailDomain;
|
|
@@ -5768,6 +5871,10 @@ exports.platformSecondaryVarName = platformSecondaryVarName;
|
|
|
5768
5871
|
exports.platformShortNames = platformShortNames;
|
|
5769
5872
|
exports.platformSlogans = platformSlogans;
|
|
5770
5873
|
exports.positiveInt = positiveInt;
|
|
5874
|
+
exports.programDateInstant = programDateInstant;
|
|
5875
|
+
exports.programMetaFormatters = programMetaFormatters;
|
|
5876
|
+
exports.programMetaLine = programMetaLine;
|
|
5877
|
+
exports.programStr = programStr;
|
|
5771
5878
|
exports.readDismissCookie = readDismissCookie;
|
|
5772
5879
|
exports.readLeadingDecisionFrame = readLeadingDecisionFrame;
|
|
5773
5880
|
exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor;
|
|
@@ -5817,6 +5924,7 @@ exports.validateEmailDomain = validateEmailDomain;
|
|
|
5817
5924
|
exports.validateEmailDomainList = validateEmailDomainList;
|
|
5818
5925
|
exports.validatePhoneNumber = validatePhoneNumber;
|
|
5819
5926
|
exports.walkthroughDismissCookieName = walkthroughDismissCookieName;
|
|
5927
|
+
exports.webinarTiming = webinarTiming;
|
|
5820
5928
|
exports.withFirstTouchAttribution = withFirstTouchAttribution;
|
|
5821
5929
|
exports.withQuery = withQuery;
|
|
5822
5930
|
exports.withWalkthroughOpenParam = withWalkthroughOpenParam;
|