@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
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/** An IANA zone as people read it: "Europe/Rome (GMT+2)". */
|
|
2
|
-
export declare function timezoneLabel(tz: string): string;
|
|
3
|
-
/** Every IANA zone the runtime knows, with `current` kept in the list when it is not one of them. */
|
|
4
|
-
export declare function timezoneOptions(current?: string | null): {
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
}[];
|
|
8
|
-
export interface TimezoneSelectProps {
|
|
9
|
-
/** The chosen IANA zone; empty or null for none. */
|
|
10
|
-
value: string | null;
|
|
11
|
-
/** The zone picked, or null when the field was cleared (only with `clearable`). */
|
|
12
|
-
onChange: (timezone: string | null) => void;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** Whether the field may be emptied. Default false: a zone, once set, is only replaced. */
|
|
15
|
-
clearable?: boolean;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* THE timezone picker: a searchable list of every IANA zone with its live GMT
|
|
21
|
-
* offset. The meeting scheduler and every form that stores a zone use it, so a
|
|
22
|
-
* zone is always chosen from the list and never typed.
|
|
23
|
-
*/
|
|
24
|
-
export declare function TimezoneSelect({ value, onChange, disabled, clearable, placeholder, className, }: TimezoneSelectProps): import("react").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=timezone-select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timezone-select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/timezone-select.tsx"],"names":[],"mappings":"AAKA,6DAA6D;AAC7D,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAYhD;AAED,qGAAqG;AACrG,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAW3F;AAED,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,mFAAmF;IACnF,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2FAA2F;IAC3F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAiB,EACjB,WAAgC,EAChC,SAAS,GACV,EAAE,mBAAmB,+BAgBrB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { renderToStaticMarkup } from 'react-dom/server';
|
|
2
|
-
import { describe, expect, it } from 'vitest';
|
|
3
|
-
import { BackButton } from '../layout/back-button';
|
|
4
|
-
import { timezoneLabel, timezoneOptions } from './timezone-select';
|
|
5
|
-
|
|
6
|
-
describe('timezone options', () => {
|
|
7
|
-
it('labels a zone with its name and GMT offset', () => {
|
|
8
|
-
expect(timezoneLabel('America/New_York')).toMatch(/^America\/New York \(GMT[-+]\d+\)$/);
|
|
9
|
-
expect(timezoneLabel('UTC')).toMatch(/^UTC/);
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
it('lists the IANA zones and keeps a current zone the runtime does not list', () => {
|
|
13
|
-
const options = timezoneOptions('Mars/Olympus');
|
|
14
|
-
expect(options[0]).toEqual({ value: 'Mars/Olympus', label: 'Mars/Olympus' });
|
|
15
|
-
expect(options.some(o => o.value === 'Europe/Rome')).toBe(true);
|
|
16
|
-
expect(timezoneOptions().some(o => o.value === 'Mars/Olympus')).toBe(false);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
describe('BackButton', () => {
|
|
21
|
-
it('is a link when it is given an href, a button otherwise', () => {
|
|
22
|
-
const link = renderToStaticMarkup(<BackButton label="Back to list" href="/list" />);
|
|
23
|
-
expect(link).toMatch(/^<a [^>]*href="\/list"/);
|
|
24
|
-
expect(link).toContain('Back to list');
|
|
25
|
-
expect(renderToStaticMarkup(<BackButton label="Back" />)).toMatch(/^<button type="button"/);
|
|
26
|
-
});
|
|
27
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useMemo } from 'react';
|
|
4
|
-
import { Autocomplete } from './autocomplete';
|
|
5
|
-
|
|
6
|
-
/** An IANA zone as people read it: "Europe/Rome (GMT+2)". */
|
|
7
|
-
export function timezoneLabel(tz: string): string {
|
|
8
|
-
const name = tz.replace(/_/g, ' ');
|
|
9
|
-
try {
|
|
10
|
-
const parts = new Intl.DateTimeFormat('en-US', {
|
|
11
|
-
timeZone: tz,
|
|
12
|
-
timeZoneName: 'shortOffset',
|
|
13
|
-
}).formatToParts(new Date());
|
|
14
|
-
const offset = parts.find(p => p.type === 'timeZoneName')?.value ?? '';
|
|
15
|
-
return offset ? `${name} (${offset})` : name;
|
|
16
|
-
} catch {
|
|
17
|
-
return name;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** Every IANA zone the runtime knows, with `current` kept in the list when it is not one of them. */
|
|
22
|
-
export function timezoneOptions(current?: string | null): { value: string; label: string }[] {
|
|
23
|
-
let zones: string[] = [];
|
|
24
|
-
try {
|
|
25
|
-
// Older lib targets don't type supportedValuesOf (ES2022) — runtime-guarded.
|
|
26
|
-
const intl = Intl as typeof Intl & { supportedValuesOf?: (key: string) => string[] };
|
|
27
|
-
zones = intl.supportedValuesOf ? intl.supportedValuesOf('timeZone') : [];
|
|
28
|
-
} catch {
|
|
29
|
-
zones = [];
|
|
30
|
-
}
|
|
31
|
-
if (current && !zones.includes(current)) zones = [current, ...zones];
|
|
32
|
-
return zones.map(tz => ({ value: tz, label: timezoneLabel(tz) }));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface TimezoneSelectProps {
|
|
36
|
-
/** The chosen IANA zone; empty or null for none. */
|
|
37
|
-
value: string | null;
|
|
38
|
-
/** The zone picked, or null when the field was cleared (only with `clearable`). */
|
|
39
|
-
onChange: (timezone: string | null) => void;
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
/** Whether the field may be emptied. Default false: a zone, once set, is only replaced. */
|
|
42
|
-
clearable?: boolean;
|
|
43
|
-
placeholder?: string;
|
|
44
|
-
className?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* THE timezone picker: a searchable list of every IANA zone with its live GMT
|
|
49
|
-
* offset. The meeting scheduler and every form that stores a zone use it, so a
|
|
50
|
-
* zone is always chosen from the list and never typed.
|
|
51
|
-
*/
|
|
52
|
-
export function TimezoneSelect({
|
|
53
|
-
value,
|
|
54
|
-
onChange,
|
|
55
|
-
disabled,
|
|
56
|
-
clearable = false,
|
|
57
|
-
placeholder = 'Search timezone…',
|
|
58
|
-
className,
|
|
59
|
-
}: TimezoneSelectProps) {
|
|
60
|
-
const options = useMemo(() => timezoneOptions(value), [value]);
|
|
61
|
-
return (
|
|
62
|
-
<Autocomplete
|
|
63
|
-
className={className}
|
|
64
|
-
value={value || null}
|
|
65
|
-
disabled={disabled}
|
|
66
|
-
onChange={tz => {
|
|
67
|
-
if (tz || clearable) onChange(tz ?? null);
|
|
68
|
-
}}
|
|
69
|
-
options={options}
|
|
70
|
-
placeholder={placeholder}
|
|
71
|
-
noOptionsText="No matching timezone"
|
|
72
|
-
showClearAll={clearable}
|
|
73
|
-
/>
|
|
74
|
-
);
|
|
75
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { skipsImageOptimizer } from './image-proxy';
|
|
3
|
-
|
|
4
|
-
describe('skipsImageOptimizer', () => {
|
|
5
|
-
it('skips Google-hosted avatars and SVGs, nothing else', () => {
|
|
6
|
-
expect(skipsImageOptimizer('https://lh3.googleusercontent.com/a/abc=s96-c')).toBe(true);
|
|
7
|
-
expect(skipsImageOptimizer('//lh3.googleusercontent.com/a/abc')).toBe(true);
|
|
8
|
-
expect(skipsImageOptimizer('https://cdn.example.com/logo.svg?v=2')).toBe(true);
|
|
9
|
-
expect(skipsImageOptimizer('https://evilgoogleusercontent.com/a.png')).toBe(false);
|
|
10
|
-
expect(skipsImageOptimizer('https://cdn.example.com/photo.jpg')).toBe(false);
|
|
11
|
-
expect(skipsImageOptimizer('/api/image-proxy?url=x')).toBe(false);
|
|
12
|
-
expect(skipsImageOptimizer(null)).toBe(false);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|