@flamingo-stack/openframe-frontend-core 0.0.811 → 0.0.812
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/{case-study-card-AMINZROX.cjs → case-study-card-3XLKCGLV.cjs} +5 -5
- package/dist/{chunk-VXMPVDOS.cjs → chunk-2IZHRVKD.cjs} +24 -24
- package/dist/{chunk-XYZBN6D7.cjs → chunk-4IU462LR.cjs} +2 -2
- package/dist/{chunk-STLJCAIZ.cjs → chunk-4SZKJPQJ.cjs} +2 -2
- package/dist/{chunk-ACCZCRXT.cjs → chunk-4ZTGCCNI.cjs} +11 -11
- package/dist/{chunk-VXXOUM2K.cjs → chunk-5DBW6ERF.cjs} +4 -0
- package/dist/{chunk-JNWJB4Z5.cjs → chunk-6LZ4BI7Z.cjs} +52 -52
- package/dist/{chunk-KVDUWXVZ.cjs → chunk-743MM5B6.cjs} +4 -4
- package/dist/{chunk-PCVY63WQ.cjs → chunk-7HNZHENA.cjs} +13 -13
- package/dist/{chunk-OQDPZOGC.cjs → chunk-7Q2PFKU3.cjs} +4 -4
- package/dist/{chunk-NZSWROGM.cjs → chunk-7TBXHZLB.cjs} +2 -2
- package/dist/{chunk-Q7QYAINS.cjs → chunk-COTJLBOS.cjs} +2 -2
- package/dist/{chunk-ZZO3FGPM.cjs → chunk-CUDJP7R7.cjs} +11 -11
- package/dist/{chunk-O32RLIN4.cjs → chunk-D2EPUQ35.cjs} +4 -4
- package/dist/{chunk-WX5WDSKV.cjs → chunk-D322VUSH.cjs} +498 -498
- package/dist/{chunk-CJ7W2SY4.cjs → chunk-DA2TWDGJ.cjs} +6 -6
- package/dist/{chunk-ZW25QUJK.cjs → chunk-E64HJMY6.cjs} +11 -11
- package/dist/{chunk-IQLXO6EI.cjs → chunk-EPMAMFQE.cjs} +89 -89
- package/dist/{chunk-66J7ZSI5.cjs → chunk-FCFLZPID.cjs} +36 -36
- package/dist/{chunk-TKK66KHU.cjs → chunk-JMAKYJ3Q.cjs} +6 -6
- package/dist/{chunk-O4MEG2ZS.cjs → chunk-JMRO7CK2.cjs} +21 -21
- package/dist/{chunk-CPP2APON.cjs → chunk-K7IX2NAG.cjs} +78 -78
- package/dist/{chunk-R55KNVPR.cjs → chunk-NEDFRRLM.cjs} +47 -47
- package/dist/{chunk-6GT3ZL27.cjs → chunk-OKI5KSUV.cjs} +28 -28
- package/dist/{chunk-CB77J5L7.cjs → chunk-PQ76VC2P.cjs} +187 -187
- package/dist/{chunk-XLEWM5X5.cjs → chunk-RSLLS6C4.cjs} +41 -41
- package/dist/{chunk-7Y6M4FW4.cjs → chunk-SC3I3YWM.cjs} +17 -17
- package/dist/{chunk-J6C7F63P.cjs → chunk-TCMUVY3M.cjs} +87 -87
- package/dist/{chunk-PMOMZSCX.cjs → chunk-TS4PKCG3.cjs} +2 -2
- package/dist/{chunk-GU3GJ5DH.cjs → chunk-VEN6MGNX.cjs} +33 -33
- package/dist/{chunk-MDBOYMCW.cjs → chunk-VPYGK4AV.cjs} +15 -15
- package/dist/{chunk-UP3TLY2V.cjs → chunk-VT2ACO3Z.cjs} +129 -129
- package/dist/{chunk-243TS7YL.cjs → chunk-VYLBW6ZV.cjs} +18 -18
- package/dist/{chunk-FK2WFU7R.cjs → chunk-WFJDKP2Q.cjs} +4 -4
- package/dist/{chunk-CLU2KJFB.cjs → chunk-XB7VPJNY.cjs} +3 -3
- package/dist/{chunk-CC3Q3MQG.cjs → chunk-XZKYU57A.cjs} +2 -2
- package/dist/{chunk-ERLMCSGF.cjs → chunk-ZFUNSXSH.cjs} +4 -4
- package/dist/{cloud-tenants-XGGQG7SO.cjs → cloud-tenants-CW3I7AIM.cjs} +17 -17
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/index.cjs +13 -13
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +18 -18
- package/dist/components/docs/index.cjs +21 -21
- package/dist/components/embeds/index.cjs +18 -18
- package/dist/components/faq/index.cjs +19 -19
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +17 -17
- package/dist/components/help-center-pages/index.cjs +118 -118
- package/dist/components/index.cjs +75 -75
- package/dist/components/meeting-scheduler/index.cjs +109 -63
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +20 -20
- package/dist/components/onboarding-guides/index.cjs +20 -20
- package/dist/components/product-demo/index.cjs +28 -28
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +24 -24
- package/dist/components/ui/index.cjs +17 -17
- package/dist/{devices-H5Y4DBVC.cjs → devices-KKRAB4Q2.cjs} +18 -18
- package/dist/{embeddable-chat-77ZOLCCK.cjs → embeddable-chat-5UO66U4F.cjs} +81 -81
- package/dist/hooks/index.cjs +6 -6
- package/dist/index.cjs +22 -22
- package/dist/{knowledge-MGH65HXM.cjs → knowledge-Z2PTGBA3.cjs} +18 -18
- package/dist/{logs-OL7ETVK6.cjs → logs-6T5VK2TY.cjs} +25 -25
- package/dist/{policies-BCECWQ3F.cjs → policies-JPIC5YDE.cjs} +21 -21
- package/dist/{remote-session-HML4UF7W.cjs → remote-session-VBVUMIUP.cjs} +6 -6
- package/dist/{scripts-XCD6V2JB.cjs → scripts-BSYJJFBQ.cjs} +24 -24
- package/dist/{software-update-U5ESXRG5.cjs → software-update-KVEYYORC.cjs} +21 -21
- package/dist/{tickets-board-EICQ5VLE.cjs → tickets-board-YRZ54JJS.cjs} +10 -10
- package/dist/utils/index.cjs +4 -0
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/meeting-scheduler/index.tsx +85 -3
|
@@ -10,9 +10,9 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkCUDJP7R7cjs = require('./chunk-CUDJP7R7.cjs');
|
|
14
14
|
require('./chunk-APOMNC7H.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-E64HJMY6.cjs');
|
|
16
16
|
require('./chunk-JTIGKLKJ.cjs');
|
|
17
17
|
require('./chunk-ZOZR3QI2.cjs');
|
|
18
18
|
require('./chunk-OMV5S5PI.cjs');
|
|
@@ -1802,10 +1802,10 @@ require('./chunk-LMBYZITR.cjs');
|
|
|
1802
1802
|
require('./chunk-TMVC7S2R.cjs');
|
|
1803
1803
|
require('./chunk-IYHH5EIO.cjs');
|
|
1804
1804
|
require('./chunk-XIBCMGBW.cjs');
|
|
1805
|
-
require('./chunk-
|
|
1805
|
+
require('./chunk-4IU462LR.cjs');
|
|
1806
1806
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1807
1807
|
require('./chunk-SKI6NKOE.cjs');
|
|
1808
|
-
require('./chunk-
|
|
1808
|
+
require('./chunk-7Q2PFKU3.cjs');
|
|
1809
1809
|
require('./chunk-U2MHQBL4.cjs');
|
|
1810
1810
|
require('./chunk-S5C3OZCO.cjs');
|
|
1811
1811
|
require('./chunk-32ASZMTV.cjs');
|
|
@@ -1817,7 +1817,7 @@ require('./chunk-RUHKTWGB.cjs');
|
|
|
1817
1817
|
require('./chunk-FX35L4Y6.cjs');
|
|
1818
1818
|
require('./chunk-LC65AC6M.cjs');
|
|
1819
1819
|
require('./chunk-YSDB6HGQ.cjs');
|
|
1820
|
-
require('./chunk-
|
|
1820
|
+
require('./chunk-5DBW6ERF.cjs');
|
|
1821
1821
|
require('./chunk-GI3MMBP3.cjs');
|
|
1822
1822
|
require('./chunk-KUXHXLJQ.cjs');
|
|
1823
1823
|
require('./chunk-NL3G642U.cjs');
|
|
@@ -1840,7 +1840,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1840
1840
|
const dana = assignee(cast.person("dana"));
|
|
1841
1841
|
const alex = assignee(cast.person("alex"));
|
|
1842
1842
|
return [
|
|
1843
|
-
|
|
1843
|
+
_chunkCUDJP7R7cjs.columnFromTicketStatus.call(void 0, "ACTIVE", [
|
|
1844
1844
|
ticket("tk-1051", "Printer offline at the front desk", "ACTIVE", {
|
|
1845
1845
|
ticketNumber: "1051",
|
|
1846
1846
|
agent: "fae",
|
|
@@ -1858,7 +1858,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1858
1858
|
tags: ["onboarding"]
|
|
1859
1859
|
})
|
|
1860
1860
|
]),
|
|
1861
|
-
|
|
1861
|
+
_chunkCUDJP7R7cjs.columnFromTicketStatus.call(void 0, "TECH_REQUIRED", [
|
|
1862
1862
|
ticket("tk-1049", "Acrobat Pro for Maya", "TECH_REQUIRED", {
|
|
1863
1863
|
ticketNumber: "1049",
|
|
1864
1864
|
agent: "fae",
|
|
@@ -1882,7 +1882,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1882
1882
|
escalatedByUser: true
|
|
1883
1883
|
})
|
|
1884
1884
|
]),
|
|
1885
|
-
|
|
1885
|
+
_chunkCUDJP7R7cjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
|
|
1886
1886
|
ticket("tk-1046", "Replace the conference room display", "ON_HOLD", {
|
|
1887
1887
|
ticketNumber: "1046",
|
|
1888
1888
|
organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.acme.name,
|
|
@@ -1891,7 +1891,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1891
1891
|
activity: { kind: "waiting-external" }
|
|
1892
1892
|
})
|
|
1893
1893
|
]),
|
|
1894
|
-
|
|
1894
|
+
_chunkCUDJP7R7cjs.columnFromTicketStatus.call(void 0,
|
|
1895
1895
|
"RESOLVED",
|
|
1896
1896
|
[
|
|
1897
1897
|
ticket("tk-1048", "Slow laptop", "RESOLVED", {
|
|
@@ -1927,7 +1927,7 @@ function TicketsBoardScreen({ compact = false }) {
|
|
|
1927
1927
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1928
1928
|
const board = _react.useMemo.call(void 0, () => buildTicketsBoardFixture(cast), [cast]);
|
|
1929
1929
|
const columns = compact ? board.filter((column) => column.id !== "ON_HOLD") : board;
|
|
1930
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1930
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCUDJP7R7cjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
1933
|
|
package/dist/utils/index.cjs
CHANGED
|
@@ -81901,6 +81901,8 @@ var ICON_REGISTRY = {
|
|
|
81901
81901
|
clickup: fromSet("ClickupIcon"),
|
|
81902
81902
|
hubspot: fromSet("HubspotIcon"),
|
|
81903
81903
|
linkedin: fromSet("LinkedinClassicIcon"),
|
|
81904
|
+
// Monochrome mark in the text colour: TikTok's brand black would vanish on dark surfaces.
|
|
81905
|
+
tiktok: fromSet("TiktokIcon"),
|
|
81904
81906
|
x: fromSet("XLogoIcon"),
|
|
81905
81907
|
// The OpenFrame logo's frame takes the text colour of where it sits (its own
|
|
81906
81908
|
// default is invisible on dark chat surfaces); the squares stay white.
|
|
@@ -81971,6 +81973,8 @@ var PASCAL_TO_KEBAB_ALIASES = {
|
|
|
81971
81973
|
YouTubeIcon: "youtube",
|
|
81972
81974
|
WhatsAppIcon: "whatsapp",
|
|
81973
81975
|
XLogo: "x",
|
|
81976
|
+
TiktokIcon: "tiktok",
|
|
81977
|
+
TikTokIcon: "tiktok",
|
|
81974
81978
|
OpenFrameLogo: "openframe"
|
|
81975
81979
|
};
|
|
81976
81980
|
function normalizeIconKey(key) {
|
package/package.json
CHANGED
|
@@ -89,6 +89,8 @@ export const ICON_REGISTRY: Readonly<Record<string, IconRef>> = {
|
|
|
89
89
|
clickup: fromSet('ClickupIcon'),
|
|
90
90
|
hubspot: fromSet('HubspotIcon'),
|
|
91
91
|
linkedin: fromSet('LinkedinClassicIcon'),
|
|
92
|
+
// Monochrome mark in the text colour: TikTok's brand black would vanish on dark surfaces.
|
|
93
|
+
tiktok: fromSet('TiktokIcon'),
|
|
92
94
|
x: fromSet('XLogoIcon'),
|
|
93
95
|
// The OpenFrame logo's frame takes the text colour of where it sits (its own
|
|
94
96
|
// default is invisible on dark chat surfaces); the squares stay white.
|
|
@@ -170,6 +172,8 @@ const PASCAL_TO_KEBAB_ALIASES: Record<string, string> = {
|
|
|
170
172
|
YouTubeIcon: 'youtube',
|
|
171
173
|
WhatsAppIcon: 'whatsapp',
|
|
172
174
|
XLogo: 'x',
|
|
175
|
+
TiktokIcon: 'tiktok',
|
|
176
|
+
TikTokIcon: 'tiktok',
|
|
173
177
|
OpenFrameLogo: 'openframe',
|
|
174
178
|
};
|
|
175
179
|
|
|
@@ -234,10 +234,13 @@ function OrganizationCell({ device }: { device: DeviceRow }) {
|
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* The customer's name, clamped to the two lines the row's height holds (an unclamped one spilled into the rows
|
|
239
|
+
* around it); one bar while the row is read, as most names take one line.
|
|
240
|
+
*/
|
|
238
241
|
function OrganizationName({ name }: { name: string | undefined }) {
|
|
239
242
|
if (useLoadingScope() && !name) return <TextLineSkeleton type="h4" className="w-3/4" />;
|
|
240
|
-
return <
|
|
243
|
+
return <TruncateText lines={2}>{name ?? ''}</TruncateText>;
|
|
241
244
|
}
|
|
242
245
|
|
|
243
246
|
/** When the device was last seen, under its status; a bar while the row is read. */
|
|
@@ -53,14 +53,15 @@ import {
|
|
|
53
53
|
type MeetingAvailability,
|
|
54
54
|
type MeetingBookingErrorCode,
|
|
55
55
|
type MeetingHost,
|
|
56
|
+
type SchedulingLink,
|
|
56
57
|
} from '../../schemas/meeting-booking-schema';
|
|
57
58
|
import { cn } from '../../utils/cn';
|
|
58
59
|
import { FORM_RESCUE_ATTEMPT_FIELD, type FormRescueDefinition } from '../../utils/form-rescue';
|
|
59
|
-
import { formatDurationCompact, formatDateWithTimezone } from '../../utils/format';
|
|
60
|
+
import { formatDurationCompact, formatDateWithTimezone, VIEWER_TIMEZONE } from '../../utils/format';
|
|
60
61
|
import { BackButton } from '../layout/back-button';
|
|
61
62
|
import { LoadingRegion } from '../loading/loading-region';
|
|
62
|
-
import { Alert, AlertDescription, Button } from '../ui';
|
|
63
|
-
import { LOADING_NOOP, useLoadingScope } from '../ui/loading-scope';
|
|
63
|
+
import { Alert, AlertDescription, Button, ModalV2, ModalV2Content, ModalV2Header, ModalV2Title } from '../ui';
|
|
64
|
+
import { LOADING_NOOP, LoadingWhen, useLoadingScope } from '../ui/loading-scope';
|
|
64
65
|
import { BookingForm, DEFAULT_SUBMIT_LABEL, type BookingFieldRow, type BookingFormProps } from './booking-form';
|
|
65
66
|
import { Confirmation } from './confirmation';
|
|
66
67
|
import { SchedulerContextPanel } from './context-panel';
|
|
@@ -1213,6 +1214,87 @@ export function HubSpotMeetingScheduler({
|
|
|
1213
1214
|
);
|
|
1214
1215
|
}
|
|
1215
1216
|
|
|
1217
|
+
export interface MeetingSchedulerModalProps {
|
|
1218
|
+
isOpen: boolean;
|
|
1219
|
+
onClose: () => void;
|
|
1220
|
+
/** The window's heading, e.g. "Book an Onboarding Call". */
|
|
1221
|
+
title: string;
|
|
1222
|
+
/** The link to book (from the host's `/api/meetings` directory); `null` while it is read or when there is none. */
|
|
1223
|
+
link: SchedulingLink | null;
|
|
1224
|
+
/** The host is still reading `link`: the scheduler draws its own loading state in its place. */
|
|
1225
|
+
loading?: boolean;
|
|
1226
|
+
/** Endpoints prefix, as on `HubSpotMeetingScheduler`. */
|
|
1227
|
+
apiBaseUrl?: string;
|
|
1228
|
+
/** Fires after a confirmed booking, once the booked toast is up; the window closes itself. */
|
|
1229
|
+
onBooked?: (booking: BookingConfirmation) => void;
|
|
1230
|
+
/** The line shown in place of the scheduler when there is no link to book. */
|
|
1231
|
+
emptyMessage?: string;
|
|
1232
|
+
className?: string;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* The whole booking window: a 600px `ModalV2` with the title, the scheduler in
|
|
1237
|
+
* its modal layout, and a booked toast. The window closes on a confirmed
|
|
1238
|
+
* booking, and on a phone's Cancel (the scheduler's host exit).
|
|
1239
|
+
*
|
|
1240
|
+
* The host passes the link it resolved, not a meeting id: the same read
|
|
1241
|
+
* usually decides whether the entry point is offered at all, so the window
|
|
1242
|
+
* takes its answer rather than reading the directory again. While it is read
|
|
1243
|
+
* the scheduler draws its loading state in the same tree, so nothing remounts
|
|
1244
|
+
* when the link lands.
|
|
1245
|
+
*/
|
|
1246
|
+
export function MeetingSchedulerModal({
|
|
1247
|
+
isOpen,
|
|
1248
|
+
onClose,
|
|
1249
|
+
title,
|
|
1250
|
+
link,
|
|
1251
|
+
loading = false,
|
|
1252
|
+
apiBaseUrl = '',
|
|
1253
|
+
onBooked,
|
|
1254
|
+
emptyMessage = 'No calls can be booked right now.',
|
|
1255
|
+
className,
|
|
1256
|
+
}: MeetingSchedulerModalProps) {
|
|
1257
|
+
const { toast } = useToast();
|
|
1258
|
+
|
|
1259
|
+
return (
|
|
1260
|
+
<ModalV2 isOpen={isOpen} onClose={onClose} className={cn('md:max-w-[600px]', className)}>
|
|
1261
|
+
<ModalV2Header>
|
|
1262
|
+
<ModalV2Title>{title}</ModalV2Title>
|
|
1263
|
+
</ModalV2Header>
|
|
1264
|
+
{/* The window scrolls as a whole on a phone (the scheduler's footer rides
|
|
1265
|
+
with the card); without this slot the body has no scroll box at all. */}
|
|
1266
|
+
<ModalV2Content className="flex flex-col">
|
|
1267
|
+
{link || loading ? (
|
|
1268
|
+
<LoadingWhen loading={!link}>
|
|
1269
|
+
<HubSpotMeetingScheduler
|
|
1270
|
+
layout="modal"
|
|
1271
|
+
meetingId={link?.id ?? ''}
|
|
1272
|
+
apiBaseUrl={apiBaseUrl}
|
|
1273
|
+
hosts={link?.hosts}
|
|
1274
|
+
fallbackUrl={link?.link}
|
|
1275
|
+
onBack={onClose}
|
|
1276
|
+
onBooked={booking => {
|
|
1277
|
+
const when = formatDateWithTimezone(booking.startTimeMs, VIEWER_TIMEZONE, 'weekdayDateTimeZoned', {
|
|
1278
|
+
viewerLocale: true,
|
|
1279
|
+
});
|
|
1280
|
+
toast({
|
|
1281
|
+
title: 'Call booked',
|
|
1282
|
+
description: `${booking.title} - ${when}. Check your email for the invite.`,
|
|
1283
|
+
variant: 'success',
|
|
1284
|
+
});
|
|
1285
|
+
onBooked?.(booking);
|
|
1286
|
+
onClose();
|
|
1287
|
+
}}
|
|
1288
|
+
/>
|
|
1289
|
+
</LoadingWhen>
|
|
1290
|
+
) : (
|
|
1291
|
+
<p className="text-ods-text-secondary text-h4">{emptyMessage}</p>
|
|
1292
|
+
)}
|
|
1293
|
+
</ModalV2Content>
|
|
1294
|
+
</ModalV2>
|
|
1295
|
+
);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1216
1298
|
// The override surface: a host builds its `detailsForm` by re-rendering
|
|
1217
1299
|
// `BookingForm` with `fieldRows`, so it needs both from this entry point (the
|
|
1218
1300
|
// package exports `./components/meeting-scheduler`, not the file beneath it).
|