@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.
Files changed (139) hide show
  1. package/dist/{chunk-PTP7UFUJ.js → chunk-2ACUTFHC.js} +5 -5
  2. package/dist/{chunk-3S56I5MX.js → chunk-2NLZ4CB4.js} +2 -2
  3. package/dist/{chunk-Y2MDXJB4.js → chunk-2WTBDVR3.js} +1 -12
  4. package/dist/chunk-2WTBDVR3.js.map +1 -0
  5. package/dist/{chunk-4DNNKZ5H.cjs → chunk-3DOGI3XP.cjs} +7 -7
  6. package/dist/{chunk-4DNNKZ5H.cjs.map → chunk-3DOGI3XP.cjs.map} +1 -1
  7. package/dist/{chunk-XVHJM7Z7.js → chunk-43YWCHYX.js} +5 -5
  8. package/dist/{chunk-RPX7QWH4.js → chunk-4XR3D6BN.js} +6 -6
  9. package/dist/{chunk-WLUBSBEK.js → chunk-7LYRB7DE.js} +3086 -3140
  10. package/dist/chunk-7LYRB7DE.js.map +1 -0
  11. package/dist/{chunk-I25SF2PZ.cjs → chunk-BU77ENDT.cjs} +860 -914
  12. package/dist/chunk-BU77ENDT.cjs.map +1 -0
  13. package/dist/{chunk-64XEIDGD.js → chunk-CI7HVQAK.js} +3 -3
  14. package/dist/{chunk-Y7O3QLPF.cjs → chunk-DELTA7VU.cjs} +23 -23
  15. package/dist/{chunk-Y7O3QLPF.cjs.map → chunk-DELTA7VU.cjs.map} +1 -1
  16. package/dist/{chunk-C6CTV7ML.cjs → chunk-DHQXA6FM.cjs} +81 -81
  17. package/dist/{chunk-C6CTV7ML.cjs.map → chunk-DHQXA6FM.cjs.map} +1 -1
  18. package/dist/{chunk-VGEOFST2.cjs → chunk-DT6DOSXV.cjs} +15 -15
  19. package/dist/{chunk-VGEOFST2.cjs.map → chunk-DT6DOSXV.cjs.map} +1 -1
  20. package/dist/{chunk-26JWVMDE.cjs → chunk-E4QJXPJP.cjs} +28 -28
  21. package/dist/{chunk-26JWVMDE.cjs.map → chunk-E4QJXPJP.cjs.map} +1 -1
  22. package/dist/{chunk-L6LXA3ES.cjs → chunk-ETFVFDJG.cjs} +19 -19
  23. package/dist/{chunk-L6LXA3ES.cjs.map → chunk-ETFVFDJG.cjs.map} +1 -1
  24. package/dist/{chunk-DBLNKQCC.cjs → chunk-H66LCO6R.cjs} +5 -5
  25. package/dist/{chunk-DBLNKQCC.cjs.map → chunk-H66LCO6R.cjs.map} +1 -1
  26. package/dist/{chunk-CCH36FJC.js → chunk-H74TCWVN.js} +7 -7
  27. package/dist/{chunk-NQMRRJGW.cjs → chunk-HDBKLVB6.cjs} +62 -62
  28. package/dist/{chunk-NQMRRJGW.cjs.map → chunk-HDBKLVB6.cjs.map} +1 -1
  29. package/dist/{chunk-2RW76FXD.cjs → chunk-HKM3DTSS.cjs} +3 -3
  30. package/dist/{chunk-2RW76FXD.cjs.map → chunk-HKM3DTSS.cjs.map} +1 -1
  31. package/dist/{chunk-NNVTNUKO.cjs → chunk-IE2H2P4K.cjs} +30 -30
  32. package/dist/{chunk-NNVTNUKO.cjs.map → chunk-IE2H2P4K.cjs.map} +1 -1
  33. package/dist/{chunk-BLI6T332.js → chunk-IHIEAC2G.js} +2 -2
  34. package/dist/{chunk-VCR3TW2H.cjs → chunk-IPKFWZDD.cjs} +5 -16
  35. package/dist/chunk-IPKFWZDD.cjs.map +1 -0
  36. package/dist/{chunk-O7OCRQJ5.js → chunk-JUO6CFGZ.js} +6 -6
  37. package/dist/{chunk-MFU3ALKM.cjs → chunk-LAGFAZ2H.cjs} +192 -192
  38. package/dist/{chunk-MFU3ALKM.cjs.map → chunk-LAGFAZ2H.cjs.map} +1 -1
  39. package/dist/{chunk-NE4H4JJG.cjs → chunk-N22KLGTR.cjs} +35 -35
  40. package/dist/{chunk-NE4H4JJG.cjs.map → chunk-N22KLGTR.cjs.map} +1 -1
  41. package/dist/{chunk-FO7LH32X.cjs → chunk-OQBJQJ6E.cjs} +6 -6
  42. package/dist/{chunk-FO7LH32X.cjs.map → chunk-OQBJQJ6E.cjs.map} +1 -1
  43. package/dist/{chunk-MGAQ7JG2.cjs → chunk-RWAHGA2H.cjs} +33 -33
  44. package/dist/{chunk-MGAQ7JG2.cjs.map → chunk-RWAHGA2H.cjs.map} +1 -1
  45. package/dist/{chunk-LM34RORU.js → chunk-SFIVEDZA.js} +3 -3
  46. package/dist/{chunk-H37T7MJI.js → chunk-SSBK7TBW.js} +4 -4
  47. package/dist/{chunk-ZAY6MSGJ.js → chunk-TGIBJHM6.js} +4 -4
  48. package/dist/{chunk-4PP5HQP3.cjs → chunk-UPLNZA6P.cjs} +11 -11
  49. package/dist/{chunk-4PP5HQP3.cjs.map → chunk-UPLNZA6P.cjs.map} +1 -1
  50. package/dist/{chunk-XOM5UJL3.js → chunk-VDROT42I.js} +3 -3
  51. package/dist/{chunk-NJ7NQK7C.js → chunk-WGKTGAP3.js} +3 -3
  52. package/dist/{chunk-ILONGHVW.cjs → chunk-WQ4BZDLO.cjs} +12 -12
  53. package/dist/{chunk-ILONGHVW.cjs.map → chunk-WQ4BZDLO.cjs.map} +1 -1
  54. package/dist/{chunk-5IAQM45M.js → chunk-YHE4PSYQ.js} +3 -3
  55. package/dist/{chunk-WWLTP7EJ.js → chunk-ZF2KSQER.js} +4 -4
  56. package/dist/{chunk-OB3ZJ7GQ.js → chunk-ZOVS6HJW.js} +2 -2
  57. package/dist/components/case-studies/index.cjs +17 -17
  58. package/dist/components/case-studies/index.js +4 -4
  59. package/dist/components/chat/index.cjs +3 -3
  60. package/dist/components/chat/index.js +2 -2
  61. package/dist/components/contact/index.cjs +5 -5
  62. package/dist/components/contact/index.js +4 -4
  63. package/dist/components/docs/index.cjs +8 -8
  64. package/dist/components/docs/index.js +7 -7
  65. package/dist/components/embeds/index.cjs +5 -5
  66. package/dist/components/embeds/index.js +4 -4
  67. package/dist/components/faq/index.cjs +5 -5
  68. package/dist/components/faq/index.js +4 -4
  69. package/dist/components/features/index.cjs +4 -4
  70. package/dist/components/features/index.js +3 -3
  71. package/dist/components/help-center-pages/index.cjs +91 -91
  72. package/dist/components/help-center-pages/index.js +15 -15
  73. package/dist/components/index.cjs +56 -64
  74. package/dist/components/index.cjs.map +1 -1
  75. package/dist/components/index.js +15 -23
  76. package/dist/components/index.js.map +1 -1
  77. package/dist/components/layout/back-button.d.ts +1 -13
  78. package/dist/components/layout/back-button.d.ts.map +1 -1
  79. package/dist/components/meeting-scheduler/context-panel.d.ts.map +1 -1
  80. package/dist/components/meeting-scheduler/index.cjs +83 -54
  81. package/dist/components/meeting-scheduler/index.cjs.map +1 -1
  82. package/dist/components/meeting-scheduler/index.js +47 -18
  83. package/dist/components/meeting-scheduler/index.js.map +1 -1
  84. package/dist/components/navigation/index.cjs +7 -7
  85. package/dist/components/navigation/index.js +6 -6
  86. package/dist/components/onboarding-guides/index.cjs +7 -7
  87. package/dist/components/onboarding-guides/index.js +6 -6
  88. package/dist/components/related-content/index.cjs +3 -3
  89. package/dist/components/related-content/index.js +2 -2
  90. package/dist/components/tickets/index.cjs +8 -8
  91. package/dist/components/tickets/index.js +7 -7
  92. package/dist/components/ui/index.cjs +4 -12
  93. package/dist/components/ui/index.cjs.map +1 -1
  94. package/dist/components/ui/index.d.ts +0 -1
  95. package/dist/components/ui/index.d.ts.map +1 -1
  96. package/dist/components/ui/index.js +3 -11
  97. package/dist/index.cjs +9 -19
  98. package/dist/index.cjs.map +1 -1
  99. package/dist/index.js +7 -17
  100. package/dist/index.js.map +1 -1
  101. package/dist/utils/image-proxy.d.ts +0 -7
  102. package/dist/utils/image-proxy.d.ts.map +1 -1
  103. package/dist/utils/index.cjs +0 -11
  104. package/dist/utils/index.cjs.map +1 -1
  105. package/dist/utils/index.d.ts +1 -1
  106. package/dist/utils/index.d.ts.map +1 -1
  107. package/dist/utils/index.js +1 -11
  108. package/dist/utils/index.js.map +1 -1
  109. package/package.json +1 -1
  110. package/src/components/layout/back-button.tsx +14 -37
  111. package/src/components/meeting-scheduler/context-panel.tsx +36 -3
  112. package/src/components/ui/index.ts +0 -1
  113. package/src/utils/image-proxy.ts +0 -17
  114. package/src/utils/index.ts +0 -1
  115. package/dist/chunk-I25SF2PZ.cjs.map +0 -1
  116. package/dist/chunk-VCR3TW2H.cjs.map +0 -1
  117. package/dist/chunk-WLUBSBEK.js.map +0 -1
  118. package/dist/chunk-Y2MDXJB4.js.map +0 -1
  119. package/dist/components/ui/timezone-select.d.ts +0 -25
  120. package/dist/components/ui/timezone-select.d.ts.map +0 -1
  121. package/src/components/ui/timezone-select.test.tsx +0 -27
  122. package/src/components/ui/timezone-select.tsx +0 -75
  123. package/src/utils/skips-image-optimizer.test.ts +0 -14
  124. /package/dist/{chunk-PTP7UFUJ.js.map → chunk-2ACUTFHC.js.map} +0 -0
  125. /package/dist/{chunk-3S56I5MX.js.map → chunk-2NLZ4CB4.js.map} +0 -0
  126. /package/dist/{chunk-XVHJM7Z7.js.map → chunk-43YWCHYX.js.map} +0 -0
  127. /package/dist/{chunk-RPX7QWH4.js.map → chunk-4XR3D6BN.js.map} +0 -0
  128. /package/dist/{chunk-64XEIDGD.js.map → chunk-CI7HVQAK.js.map} +0 -0
  129. /package/dist/{chunk-CCH36FJC.js.map → chunk-H74TCWVN.js.map} +0 -0
  130. /package/dist/{chunk-BLI6T332.js.map → chunk-IHIEAC2G.js.map} +0 -0
  131. /package/dist/{chunk-O7OCRQJ5.js.map → chunk-JUO6CFGZ.js.map} +0 -0
  132. /package/dist/{chunk-LM34RORU.js.map → chunk-SFIVEDZA.js.map} +0 -0
  133. /package/dist/{chunk-H37T7MJI.js.map → chunk-SSBK7TBW.js.map} +0 -0
  134. /package/dist/{chunk-ZAY6MSGJ.js.map → chunk-TGIBJHM6.js.map} +0 -0
  135. /package/dist/{chunk-XOM5UJL3.js.map → chunk-VDROT42I.js.map} +0 -0
  136. /package/dist/{chunk-NJ7NQK7C.js.map → chunk-WGKTGAP3.js.map} +0 -0
  137. /package/dist/{chunk-5IAQM45M.js.map → chunk-YHE4PSYQ.js.map} +0 -0
  138. /package/dist/{chunk-WWLTP7EJ.js.map → chunk-ZF2KSQER.js.map} +0 -0
  139. /package/dist/{chunk-OB3ZJ7GQ.js.map → chunk-ZOVS6HJW.js.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.695-2522.7745.1",
3
+ "version": "0.0.695",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -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
- const BACK_BUTTON_CLASS = cn(
19
- 'group inline-flex items-center justify-center self-start rounded-md',
20
- 'gap-[var(--spacing-system-xsf)] py-[var(--spacing-system-sf)]',
21
- 'text-ods-text-secondary hover:text-ods-text-primary',
22
- 'transition-colors duration-200',
23
- 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus',
24
- );
25
-
26
- /** The footprint of a `BackButton`, for a loading skeleton that must not move the page. */
27
- export const BACK_BUTTON_SKELETON_CLASS = 'h-12 w-40 rounded-md';
28
-
29
- /**
30
- * THE back navigation of a page: the chevron and its label, above the title.
31
- * Every detail page renders this one (through `PageLayout`'s `backButton` or
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
- <TimezoneSelect
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" />
@@ -4,7 +4,6 @@
4
4
  export * from './allowed-domains-input';
5
5
  export * from './announcement-bar-view';
6
6
  export * from './autocomplete';
7
- export * from './timezone-select';
8
7
  export * from './button';
9
8
  export * from './card';
10
9
  export * from './checkbox';
@@ -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
- }
@@ -131,7 +131,6 @@ export {
131
131
  urlPathLooksLikeSvg,
132
132
  shouldProxyImage,
133
133
  generateImageSizes,
134
- skipsImageOptimizer,
135
134
  } from './image-proxy';
136
135
 
137
136
  // Number / byte / duration / time / UTC date / initials / metric /