@factorialco/f0-react 6.16.3 → 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.
Files changed (35) hide show
  1. package/dist/{ChatPdfThumbnail-DpmezNrE.js → ChatPdfThumbnail-2kb5W67O.js} +1 -1
  2. package/dist/{CoachmarkProvider-Bpg1z4PQ.js → CoachmarkProvider-DxcG4Ctu.js} +307 -307
  3. package/dist/{DocumentToolbar-Blp1K8da.js → DocumentToolbar-CFNhjXyZ.js} +2 -2
  4. package/dist/{DocxViewer-CPKkkAgl.js → DocxViewer-DULYk10Z.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-CFNWLXy-.js → F0AiProcessingOverlay-BI9CH4xu.js} +1145 -1072
  6. package/dist/{F0CanvasPanel-grLHLh5g.js → F0CanvasPanel-r0pnuz-B.js} +11584 -11614
  7. package/dist/{F0VideoPlayer-D2ELBwPf.js → F0VideoPlayer-BC4CGnpD.js} +1 -1
  8. package/dist/{SheetViewer-6Jy4tSWV.js → SheetViewer-B1FWG9XQ.js} +2 -2
  9. package/dist/{TextViewer-D3kXNDxC.js → TextViewer-DZukzcC_.js} +2 -2
  10. package/dist/ai.d.ts +15 -6
  11. package/dist/ai.js +2 -2
  12. package/dist/component-status.d.ts +6 -6
  13. package/dist/component-status.js +1 -1
  14. package/dist/experimental.d.ts +35 -13
  15. package/dist/experimental.js +7746 -6897
  16. package/dist/f0.d.ts +17 -6
  17. package/dist/f0.js +10 -10
  18. package/dist/i18n-provider-defaults.d.ts +15 -6
  19. package/dist/i18n-provider-defaults.js +9 -0
  20. package/dist/index-CWZjggTj.js +4 -0
  21. package/dist/{index-DamOOup-.js → index-DZ3S-4pk.js} +3 -3
  22. package/dist/{pdfWorker-DCzmXymk.js → pdfWorker-D1RLk_Fi.js} +2 -2
  23. package/dist/styles.css +1 -1
  24. package/icons/app/BellOff.d.ts +4 -0
  25. package/icons/app/BellOff.d.ts.map +1 -0
  26. package/icons/app/BellOff.js +5 -0
  27. package/icons/app/Forward.d.ts +4 -0
  28. package/icons/app/Forward.d.ts.map +1 -0
  29. package/icons/app/Forward.js +5 -0
  30. package/icons/app/Reply.js +1 -1
  31. package/icons/app/index.d.ts +2 -0
  32. package/icons/app/index.d.ts.map +1 -1
  33. package/icons/app/index.js +2 -0
  34. package/package.json +2 -2
  35. package/dist/index-BZb3ahxG.js +0 -4
@@ -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} (the header still shows
6064
- * the `channel.muted` status icon either way). factorial →
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
- /** Status icon shown to the right of the name. People only. */
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 avatar to the right of a person's name (people
10862
- * only). The consumer fully controls it — pass any icon with an accessible
10863
- * label. F0 does not hardcode any set of statuses.
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;
@@ -12984,10 +13006,8 @@ declare module "@tiptap/core" {
12984
13006
 
12985
13007
  declare module "@tiptap/core" {
12986
13008
  interface Commands<ReturnType> {
12987
- videoEmbed: {
12988
- setVideoEmbed: (options: {
12989
- src: string;
12990
- }) => ReturnType;
13009
+ transcript: {
13010
+ insertTranscript: (data: TranscriptData) => ReturnType;
12991
13011
  };
12992
13012
  }
12993
13013
  }
@@ -12995,8 +13015,10 @@ declare module "@tiptap/core" {
12995
13015
 
12996
13016
  declare module "@tiptap/core" {
12997
13017
  interface Commands<ReturnType> {
12998
- transcript: {
12999
- insertTranscript: (data: TranscriptData) => ReturnType;
13018
+ videoEmbed: {
13019
+ setVideoEmbed: (options: {
13020
+ src: string;
13021
+ }) => ReturnType;
13000
13022
  };
13001
13023
  }
13002
13024
  }