@flamingo-stack/openframe-frontend-core 0.0.695-2522.7745.1 → 0.0.695
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-PTP7UFUJ.js → chunk-2ACUTFHC.js} +5 -5
- package/dist/{chunk-3S56I5MX.js → chunk-2NLZ4CB4.js} +2 -2
- package/dist/{chunk-Y2MDXJB4.js → chunk-2WTBDVR3.js} +1 -12
- package/dist/chunk-2WTBDVR3.js.map +1 -0
- package/dist/{chunk-4DNNKZ5H.cjs → chunk-3DOGI3XP.cjs} +7 -7
- package/dist/{chunk-4DNNKZ5H.cjs.map → chunk-3DOGI3XP.cjs.map} +1 -1
- package/dist/{chunk-XVHJM7Z7.js → chunk-43YWCHYX.js} +5 -5
- package/dist/{chunk-RPX7QWH4.js → chunk-4XR3D6BN.js} +6 -6
- package/dist/{chunk-WLUBSBEK.js → chunk-7LYRB7DE.js} +3086 -3140
- package/dist/chunk-7LYRB7DE.js.map +1 -0
- package/dist/{chunk-I25SF2PZ.cjs → chunk-BU77ENDT.cjs} +860 -914
- package/dist/chunk-BU77ENDT.cjs.map +1 -0
- package/dist/{chunk-64XEIDGD.js → chunk-CI7HVQAK.js} +3 -3
- package/dist/{chunk-Y7O3QLPF.cjs → chunk-DELTA7VU.cjs} +23 -23
- package/dist/{chunk-Y7O3QLPF.cjs.map → chunk-DELTA7VU.cjs.map} +1 -1
- package/dist/{chunk-C6CTV7ML.cjs → chunk-DHQXA6FM.cjs} +81 -81
- package/dist/{chunk-C6CTV7ML.cjs.map → chunk-DHQXA6FM.cjs.map} +1 -1
- package/dist/{chunk-VGEOFST2.cjs → chunk-DT6DOSXV.cjs} +15 -15
- package/dist/{chunk-VGEOFST2.cjs.map → chunk-DT6DOSXV.cjs.map} +1 -1
- package/dist/{chunk-26JWVMDE.cjs → chunk-E4QJXPJP.cjs} +28 -28
- package/dist/{chunk-26JWVMDE.cjs.map → chunk-E4QJXPJP.cjs.map} +1 -1
- package/dist/{chunk-L6LXA3ES.cjs → chunk-ETFVFDJG.cjs} +19 -19
- package/dist/{chunk-L6LXA3ES.cjs.map → chunk-ETFVFDJG.cjs.map} +1 -1
- package/dist/{chunk-DBLNKQCC.cjs → chunk-H66LCO6R.cjs} +5 -5
- package/dist/{chunk-DBLNKQCC.cjs.map → chunk-H66LCO6R.cjs.map} +1 -1
- package/dist/{chunk-CCH36FJC.js → chunk-H74TCWVN.js} +7 -7
- package/dist/{chunk-NQMRRJGW.cjs → chunk-HDBKLVB6.cjs} +62 -62
- package/dist/{chunk-NQMRRJGW.cjs.map → chunk-HDBKLVB6.cjs.map} +1 -1
- package/dist/{chunk-2RW76FXD.cjs → chunk-HKM3DTSS.cjs} +3 -3
- package/dist/{chunk-2RW76FXD.cjs.map → chunk-HKM3DTSS.cjs.map} +1 -1
- package/dist/{chunk-NNVTNUKO.cjs → chunk-IE2H2P4K.cjs} +30 -30
- package/dist/{chunk-NNVTNUKO.cjs.map → chunk-IE2H2P4K.cjs.map} +1 -1
- package/dist/{chunk-BLI6T332.js → chunk-IHIEAC2G.js} +2 -2
- package/dist/{chunk-VCR3TW2H.cjs → chunk-IPKFWZDD.cjs} +5 -16
- package/dist/chunk-IPKFWZDD.cjs.map +1 -0
- package/dist/{chunk-O7OCRQJ5.js → chunk-JUO6CFGZ.js} +6 -6
- package/dist/{chunk-MFU3ALKM.cjs → chunk-LAGFAZ2H.cjs} +192 -192
- package/dist/{chunk-MFU3ALKM.cjs.map → chunk-LAGFAZ2H.cjs.map} +1 -1
- package/dist/{chunk-NE4H4JJG.cjs → chunk-N22KLGTR.cjs} +35 -35
- package/dist/{chunk-NE4H4JJG.cjs.map → chunk-N22KLGTR.cjs.map} +1 -1
- package/dist/{chunk-FO7LH32X.cjs → chunk-OQBJQJ6E.cjs} +6 -6
- package/dist/{chunk-FO7LH32X.cjs.map → chunk-OQBJQJ6E.cjs.map} +1 -1
- package/dist/{chunk-MGAQ7JG2.cjs → chunk-RWAHGA2H.cjs} +33 -33
- package/dist/{chunk-MGAQ7JG2.cjs.map → chunk-RWAHGA2H.cjs.map} +1 -1
- package/dist/{chunk-LM34RORU.js → chunk-SFIVEDZA.js} +3 -3
- package/dist/{chunk-H37T7MJI.js → chunk-SSBK7TBW.js} +4 -4
- package/dist/{chunk-ZAY6MSGJ.js → chunk-TGIBJHM6.js} +4 -4
- package/dist/{chunk-4PP5HQP3.cjs → chunk-UPLNZA6P.cjs} +11 -11
- package/dist/{chunk-4PP5HQP3.cjs.map → chunk-UPLNZA6P.cjs.map} +1 -1
- package/dist/{chunk-XOM5UJL3.js → chunk-VDROT42I.js} +3 -3
- package/dist/{chunk-NJ7NQK7C.js → chunk-WGKTGAP3.js} +3 -3
- package/dist/{chunk-ILONGHVW.cjs → chunk-WQ4BZDLO.cjs} +12 -12
- package/dist/{chunk-ILONGHVW.cjs.map → chunk-WQ4BZDLO.cjs.map} +1 -1
- package/dist/{chunk-5IAQM45M.js → chunk-YHE4PSYQ.js} +3 -3
- package/dist/{chunk-WWLTP7EJ.js → chunk-ZF2KSQER.js} +4 -4
- package/dist/{chunk-OB3ZJ7GQ.js → chunk-ZOVS6HJW.js} +2 -2
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- 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 +91 -91
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +56 -64
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +15 -23
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/back-button.d.ts +1 -13
- package/dist/components/layout/back-button.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/context-panel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +83 -54
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +47 -18
- package/dist/components/meeting-scheduler/index.js.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/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/index.cjs +4 -12
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -11
- package/dist/index.cjs +9 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/utils/image-proxy.d.ts +0 -7
- package/dist/utils/image-proxy.d.ts.map +1 -1
- package/dist/utils/index.cjs +0 -11
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -11
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/back-button.tsx +14 -37
- package/src/components/meeting-scheduler/context-panel.tsx +36 -3
- package/src/components/ui/index.ts +0 -1
- package/src/utils/image-proxy.ts +0 -17
- package/src/utils/index.ts +0 -1
- package/dist/chunk-I25SF2PZ.cjs.map +0 -1
- package/dist/chunk-VCR3TW2H.cjs.map +0 -1
- package/dist/chunk-WLUBSBEK.js.map +0 -1
- package/dist/chunk-Y2MDXJB4.js.map +0 -1
- package/dist/components/ui/timezone-select.d.ts +0 -25
- package/dist/components/ui/timezone-select.d.ts.map +0 -1
- package/src/components/ui/timezone-select.test.tsx +0 -27
- package/src/components/ui/timezone-select.tsx +0 -75
- package/src/utils/skips-image-optimizer.test.ts +0 -14
- /package/dist/{chunk-PTP7UFUJ.js.map → chunk-2ACUTFHC.js.map} +0 -0
- /package/dist/{chunk-3S56I5MX.js.map → chunk-2NLZ4CB4.js.map} +0 -0
- /package/dist/{chunk-XVHJM7Z7.js.map → chunk-43YWCHYX.js.map} +0 -0
- /package/dist/{chunk-RPX7QWH4.js.map → chunk-4XR3D6BN.js.map} +0 -0
- /package/dist/{chunk-64XEIDGD.js.map → chunk-CI7HVQAK.js.map} +0 -0
- /package/dist/{chunk-CCH36FJC.js.map → chunk-H74TCWVN.js.map} +0 -0
- /package/dist/{chunk-BLI6T332.js.map → chunk-IHIEAC2G.js.map} +0 -0
- /package/dist/{chunk-O7OCRQJ5.js.map → chunk-JUO6CFGZ.js.map} +0 -0
- /package/dist/{chunk-LM34RORU.js.map → chunk-SFIVEDZA.js.map} +0 -0
- /package/dist/{chunk-H37T7MJI.js.map → chunk-SSBK7TBW.js.map} +0 -0
- /package/dist/{chunk-ZAY6MSGJ.js.map → chunk-TGIBJHM6.js.map} +0 -0
- /package/dist/{chunk-XOM5UJL3.js.map → chunk-VDROT42I.js.map} +0 -0
- /package/dist/{chunk-NJ7NQK7C.js.map → chunk-WGKTGAP3.js.map} +0 -0
- /package/dist/{chunk-5IAQM45M.js.map → chunk-YHE4PSYQ.js.map} +0 -0
- /package/dist/{chunk-WWLTP7EJ.js.map → chunk-ZF2KSQER.js.map} +0 -0
- /package/dist/{chunk-OB3ZJ7GQ.js.map → chunk-ZOVS6HJW.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,53 +1,30 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import type React from 'react';
|
|
4
|
-
import Link from '../../embed-shims/next-link';
|
|
5
4
|
import { cn } from '../../utils/cn';
|
|
6
5
|
import { Chevron02LeftIcon } from '../icons-v2-generated/arrows/chevron-02-left-icon';
|
|
7
6
|
|
|
8
7
|
export interface BackButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
9
8
|
label?: string;
|
|
10
9
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
11
|
-
/**
|
|
12
|
-
* Where "back" goes. With it the control is a real link (open in a new tab,
|
|
13
|
-
* prefetch, right-click); without it, a button that runs `onClick`.
|
|
14
|
-
*/
|
|
15
|
-
href?: string;
|
|
16
10
|
}
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* directly), never a hand-built link.
|
|
33
|
-
*/
|
|
34
|
-
export function BackButton({ label = 'Back', className, type = 'button', href, ...props }: BackButtonProps) {
|
|
35
|
-
const content = (
|
|
36
|
-
<>
|
|
12
|
+
export function BackButton({ label = 'Back', className, type = 'button', ...props }: BackButtonProps) {
|
|
13
|
+
return (
|
|
14
|
+
<button
|
|
15
|
+
type={type}
|
|
16
|
+
className={cn(
|
|
17
|
+
'group inline-flex items-center justify-center self-start rounded-md',
|
|
18
|
+
'gap-[var(--spacing-system-xsf)] py-[var(--spacing-system-sf)]',
|
|
19
|
+
'text-ods-text-secondary hover:text-ods-text-primary',
|
|
20
|
+
'transition-colors duration-200',
|
|
21
|
+
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus',
|
|
22
|
+
className,
|
|
23
|
+
)}
|
|
24
|
+
{...props}
|
|
25
|
+
>
|
|
37
26
|
<Chevron02LeftIcon className="size-6 shrink-0" />
|
|
38
27
|
<span className="text-h4">{label}</span>
|
|
39
|
-
</>
|
|
40
|
-
);
|
|
41
|
-
if (href) {
|
|
42
|
-
return (
|
|
43
|
-
<Link href={href} className={cn(BACK_BUTTON_CLASS, className)} aria-label={props['aria-label']}>
|
|
44
|
-
{content}
|
|
45
|
-
</Link>
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
return (
|
|
49
|
-
<button type={type} className={cn(BACK_BUTTON_CLASS, className)} {...props}>
|
|
50
|
-
{content}
|
|
51
28
|
</button>
|
|
52
29
|
);
|
|
53
30
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { useMemo } from 'react';
|
|
3
4
|
import type { MeetingHost } from '../../schemas/meeting-booking-schema';
|
|
4
5
|
import { cn } from '../../utils/cn';
|
|
5
6
|
import { formatDurationCompact } from '../../utils/format';
|
|
6
7
|
import { BackButton } from '../layout/back-button';
|
|
7
|
-
import { SquareAvatar, AvatarStack, Button, Skeleton } from '../ui';
|
|
8
|
-
import { TimezoneSelect } from '../ui/timezone-select';
|
|
8
|
+
import { SquareAvatar, AvatarStack, Button, Skeleton, Autocomplete } from '../ui';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* ContextPanel — the "who / what / how long" side of the scheduler card
|
|
@@ -100,6 +100,19 @@ const BACK_BUTTON_CLASS = 'py-0';
|
|
|
100
100
|
* section headers. */
|
|
101
101
|
const FIELD_LABEL_CLASS = 'text-h4 text-ods-text-primary';
|
|
102
102
|
|
|
103
|
+
function zoneLabel(tz: string): string {
|
|
104
|
+
try {
|
|
105
|
+
const parts = new Intl.DateTimeFormat('en-US', {
|
|
106
|
+
timeZone: tz,
|
|
107
|
+
timeZoneName: 'shortOffset',
|
|
108
|
+
}).formatToParts(new Date());
|
|
109
|
+
const offset = parts.find(p => p.type === 'timeZoneName')?.value ?? '';
|
|
110
|
+
return offset ? `${tz.replace(/_/g, ' ')} (${offset})` : tz.replace(/_/g, ' ');
|
|
111
|
+
} catch {
|
|
112
|
+
return tz.replace(/_/g, ' ');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
103
116
|
/**
|
|
104
117
|
* Same-footprint skeleton — swaps with the loaded panel with zero shift.
|
|
105
118
|
* STATIC labels ("Duration", "Timezone") render REAL; only data-driven
|
|
@@ -159,6 +172,22 @@ export function SchedulerContextPanel({
|
|
|
159
172
|
showTimezone = true,
|
|
160
173
|
className,
|
|
161
174
|
}: SchedulerContextPanelProps) {
|
|
175
|
+
// All IANA zones with live GMT offsets — computed once, client-only (the
|
|
176
|
+
// panel renders the picker only after the parent resolves a zone).
|
|
177
|
+
const zoneOptions = useMemo(() => {
|
|
178
|
+
if (!timezone) return [];
|
|
179
|
+
let zones: string[];
|
|
180
|
+
try {
|
|
181
|
+
// Older lib targets don't type supportedValuesOf (ES2022) — runtime-guarded.
|
|
182
|
+
const intl = Intl as typeof Intl & { supportedValuesOf?: (key: string) => string[] };
|
|
183
|
+
zones = intl.supportedValuesOf ? intl.supportedValuesOf('timeZone') : [timezone];
|
|
184
|
+
} catch {
|
|
185
|
+
zones = [timezone];
|
|
186
|
+
}
|
|
187
|
+
if (!zones.includes(timezone)) zones = [timezone, ...zones];
|
|
188
|
+
return zones.map(tz => ({ value: tz, label: zoneLabel(tz) }));
|
|
189
|
+
}, [timezone]);
|
|
190
|
+
|
|
162
191
|
return (
|
|
163
192
|
<div className={cn(PANEL_STACK, className)}>
|
|
164
193
|
{/* The card's ONE back edge, at every step — the caller decides where it
|
|
@@ -244,12 +273,16 @@ export function SchedulerContextPanel({
|
|
|
244
273
|
<div className={cn(STRIP_ASIDE, locked && 'max-lg:hidden')}>
|
|
245
274
|
<p className={FIELD_LABEL_CLASS}>Timezone</p>
|
|
246
275
|
{timezone ? (
|
|
247
|
-
<
|
|
276
|
+
<Autocomplete
|
|
248
277
|
value={timezone}
|
|
249
278
|
disabled={disabled}
|
|
250
279
|
onChange={tz => {
|
|
251
280
|
if (tz) onTimezoneChange?.(tz);
|
|
252
281
|
}}
|
|
282
|
+
options={zoneOptions}
|
|
283
|
+
placeholder="Search timezone…"
|
|
284
|
+
noOptionsText="No matching timezone"
|
|
285
|
+
showClearAll={false}
|
|
253
286
|
/>
|
|
254
287
|
) : (
|
|
255
288
|
<Skeleton className="h-12 w-full" />
|
package/src/utils/image-proxy.ts
CHANGED
|
@@ -121,20 +121,3 @@ export function shouldProxyImage(imageUrl: string | null, proxyPrefix?: string):
|
|
|
121
121
|
export function generateImageSizes(_url: string): string {
|
|
122
122
|
return `(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw`;
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Whether an image must be served as it is, past the host's image optimizer
|
|
127
|
-
* (`<Image unoptimized>`): a Google-hosted avatar (the optimizer's fetch of it is
|
|
128
|
-
* refused, and Google already serves it at the size its URL asks for) and an SVG
|
|
129
|
-
* (a vector has nothing to resize). The one rule for every avatar and logo.
|
|
130
|
-
*/
|
|
131
|
-
export function skipsImageOptimizer(url: string | null | undefined): boolean {
|
|
132
|
-
if (!url) return false;
|
|
133
|
-
if (urlPathLooksLikeSvg(url)) return true;
|
|
134
|
-
try {
|
|
135
|
-
const hostname = new URL(url.startsWith('//') ? `https:${url}` : url).hostname.toLowerCase();
|
|
136
|
-
return hostname === 'googleusercontent.com' || hostname.endsWith('.googleusercontent.com');
|
|
137
|
-
} catch {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
}
|