@factorialco/f0-react 6.16.4 → 6.17.0
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/{ChatPdfThumbnail-EVLovDW-.js → ChatPdfThumbnail-2kb5W67O.js} +1 -1
- package/dist/{CoachmarkProvider-DfS7IRK9.js → CoachmarkProvider-DxcG4Ctu.js} +307 -307
- package/dist/{DocumentToolbar-HA9MYQbd.js → DocumentToolbar-CFNhjXyZ.js} +2 -2
- package/dist/{DocxViewer-CtHcR3US.js → DocxViewer-DULYk10Z.js} +2 -2
- package/dist/{F0AiProcessingOverlay-D1INKpAu.js → F0AiProcessingOverlay-BI9CH4xu.js} +1145 -1072
- package/dist/{F0CanvasPanel-l9XN-GPt.js → F0CanvasPanel-r0pnuz-B.js} +10999 -11048
- package/dist/{F0VideoPlayer-BHSZqtHU.js → F0VideoPlayer-BC4CGnpD.js} +1 -1
- package/dist/{SheetViewer-gFnyK7Mg.js → SheetViewer-B1FWG9XQ.js} +2 -2
- package/dist/{TextViewer-LpYzKXC-.js → TextViewer-DZukzcC_.js} +2 -2
- package/dist/ai.d.ts +9 -0
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +29 -7
- package/dist/experimental.js +7746 -6897
- package/dist/f0.d.ts +11 -0
- package/dist/f0.js +10 -10
- package/dist/i18n-provider-defaults.d.ts +9 -0
- package/dist/i18n-provider-defaults.js +9 -0
- package/dist/index-CWZjggTj.js +4 -0
- package/dist/{index-ClY9V1c_.js → index-DZ3S-4pk.js} +3 -3
- package/dist/{pdfWorker-CZRWb53a.js → pdfWorker-D1RLk_Fi.js} +2 -2
- package/dist/styles.css +1 -1
- package/icons/app/BellOff.d.ts +4 -0
- package/icons/app/BellOff.d.ts.map +1 -0
- package/icons/app/BellOff.js +5 -0
- package/icons/app/Forward.d.ts +4 -0
- package/icons/app/Forward.d.ts.map +1 -0
- package/icons/app/Forward.js +5 -0
- package/icons/app/Reply.js +1 -1
- package/icons/app/index.d.ts +2 -0
- package/icons/app/index.d.ts.map +1 -1
- package/icons/app/index.js +2 -0
- package/package.json +2 -2
- package/dist/index-Iwx3hTan.js +0 -4
package/dist/experimental.d.ts
CHANGED
|
@@ -1389,6 +1389,8 @@ declare type ButtonDropdownItem<T = string> = {
|
|
|
1389
1389
|
};
|
|
1390
1390
|
|
|
1391
1391
|
declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" | "pressed" | "compact" | "tooltip" | "fontSize"> & DataAttributes & {
|
|
1392
|
+
/** Native button behavior. */
|
|
1393
|
+
type?: ButtonType;
|
|
1392
1394
|
/**
|
|
1393
1395
|
* The aria-label of the button if not provided title or label will be used.
|
|
1394
1396
|
*/
|
|
@@ -4152,6 +4154,7 @@ declare const defaultTranslations: {
|
|
|
4152
4154
|
readonly closeSearch: "Close search";
|
|
4153
4155
|
readonly noResults: "No chats found";
|
|
4154
4156
|
readonly backToLatest: "Jump to latest";
|
|
4157
|
+
readonly online: "Online";
|
|
4155
4158
|
readonly muted: "Muted";
|
|
4156
4159
|
readonly mute: "Mute";
|
|
4157
4160
|
readonly unmute: "Unmute";
|
|
@@ -4254,6 +4257,14 @@ declare const defaultTranslations: {
|
|
|
4254
4257
|
readonly one: "{{count}} unread";
|
|
4255
4258
|
readonly other: "{{count}} unread";
|
|
4256
4259
|
};
|
|
4260
|
+
readonly unreadChatsAbove: {
|
|
4261
|
+
readonly one: "{{count}} unread chat above";
|
|
4262
|
+
readonly other: "{{count}} unread chats above";
|
|
4263
|
+
};
|
|
4264
|
+
readonly unreadChatsBelow: {
|
|
4265
|
+
readonly one: "{{count}} unread chat below";
|
|
4266
|
+
readonly other: "{{count}} unread chats below";
|
|
4267
|
+
};
|
|
4257
4268
|
readonly emptyConversation: "No messages yet";
|
|
4258
4269
|
readonly emptyConversationDescription: "Send a message to start the conversation.";
|
|
4259
4270
|
readonly error: "Couldn't load this conversation";
|
|
@@ -5619,7 +5630,6 @@ export declare type F0ChatChannel = {
|
|
|
5619
5630
|
avatar: AvatarVariant;
|
|
5620
5631
|
/** DM only — the other person's presence. */
|
|
5621
5632
|
presence?: "online" | "offline";
|
|
5622
|
-
muted?: boolean;
|
|
5623
5633
|
/**
|
|
5624
5634
|
* Whether the conversation is pinned (favourited) by the current user. Drives
|
|
5625
5635
|
* the header pin toggle and lets the host surface a "Pinned" group in the
|
|
@@ -6060,8 +6070,8 @@ export declare type F0ChatRuntime = {
|
|
|
6060
6070
|
/**
|
|
6061
6071
|
* Toggle the conversation's muted state for the current user. Transport
|
|
6062
6072
|
* capability only — the header no longer auto-renders a Mute action; the
|
|
6063
|
-
* host surfaces one via {@link F0ChatHeaderAction}
|
|
6064
|
-
*
|
|
6073
|
+
* host surfaces one via {@link F0ChatHeaderAction}. The current muted state
|
|
6074
|
+
* is represented like any other entry in `channel.statuses`. factorial →
|
|
6065
6075
|
* `channel.mute()` / `channel.unmute()`.
|
|
6066
6076
|
*/
|
|
6067
6077
|
toggleMute?: () => void | Promise<void>;
|
|
@@ -6086,6 +6096,10 @@ export declare type F0ChatSearchResult = {
|
|
|
6086
6096
|
id: string;
|
|
6087
6097
|
};
|
|
6088
6098
|
|
|
6099
|
+
export declare type F0ChatSenderColor = (typeof f0ChatSenderColors)[number];
|
|
6100
|
+
|
|
6101
|
+
export declare const f0ChatSenderColors: readonly ["viridian", "malibu", "yellow", "purple", "lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel", "radical", "orange", "red", "grass"];
|
|
6102
|
+
|
|
6089
6103
|
export declare type F0ChatSendInput = {
|
|
6090
6104
|
body: string;
|
|
6091
6105
|
attachments?: F0ChatAttachment[];
|
|
@@ -6159,6 +6173,12 @@ export declare type F0ChatUser = {
|
|
|
6159
6173
|
id: string;
|
|
6160
6174
|
name: string;
|
|
6161
6175
|
avatar?: AvatarVariant;
|
|
6176
|
+
/**
|
|
6177
|
+
* Stable sender accent. For photo avatars, choose the palette hue closest to
|
|
6178
|
+
* the image's dominant colour so the name and incoming bubble feel related.
|
|
6179
|
+
* When omitted, F0 uses the same name hash as a generated person avatar.
|
|
6180
|
+
*/
|
|
6181
|
+
avatarColor?: F0ChatSenderColor;
|
|
6162
6182
|
/** Secondary line for the hover card (e.g. job title). */
|
|
6163
6183
|
subtitle?: string;
|
|
6164
6184
|
/** Link to the person's profile, shown as "View profile" in the hover card. */
|
|
@@ -10718,8 +10738,10 @@ export declare type SidebarChat = {
|
|
|
10718
10738
|
/** When true, the name is replaced by a live "Writing…" label. */
|
|
10719
10739
|
typing?: boolean;
|
|
10720
10740
|
presence?: SidebarChatPresence;
|
|
10721
|
-
/**
|
|
10741
|
+
/** Single status icon shown to the right of the conversation name. */
|
|
10722
10742
|
status?: SidebarChatStatus;
|
|
10743
|
+
/** Multiple status icons. Takes precedence over `status` when provided. */
|
|
10744
|
+
statuses?: SidebarChatStatus[];
|
|
10723
10745
|
/** Epoch ms of the last activity; used for ordering. */
|
|
10724
10746
|
lastActivityAt?: number;
|
|
10725
10747
|
/** Whether the chat is pinned (favourited) — selects the solid pin icon. */
|
|
@@ -10858,9 +10880,9 @@ export declare type SidebarChatProviderProps = {
|
|
|
10858
10880
|
};
|
|
10859
10881
|
|
|
10860
10882
|
/**
|
|
10861
|
-
* Status shown as a small icon
|
|
10862
|
-
*
|
|
10863
|
-
*
|
|
10883
|
+
* Status shown as a small icon to the right of a conversation name. The
|
|
10884
|
+
* consumer fully controls it — pass any icon with an accessible label. F0
|
|
10885
|
+
* does not hardcode any set of statuses.
|
|
10864
10886
|
*/
|
|
10865
10887
|
export declare type SidebarChatStatus = {
|
|
10866
10888
|
icon: IconType;
|