@factorialco/f0-react 7.18.1 → 7.19.1

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.
@@ -3624,6 +3624,7 @@ declare type CommandActionBase = {
3624
3624
  id: string;
3625
3625
  label: string;
3626
3626
  icon?: IconType;
3627
+ avatar?: CommandEntityAvatar;
3627
3628
  /**
3628
3629
  * A tint behind the `icon` — and behind the quiet arrow an item with no icon
3629
3630
  * of its own falls back to, which is the one case where a colour alone is
@@ -3863,6 +3864,8 @@ export declare type CommandEntityRef = {
3863
3864
  export declare type CommandGroup = {
3864
3865
  label: string;
3865
3866
  items: CommandAction[];
3867
+ limit?: number;
3868
+ openLimit?: number;
3866
3869
  provider?: never;
3867
3870
  } | {
3868
3871
  provider: CommandEntityProvider;
@@ -4060,7 +4063,7 @@ export declare type CommandRowAction = {
4060
4063
  * group or none of them: one tinted row among ten flat ones reads as the
4061
4064
  * selected row.
4062
4065
  */
4063
- declare type CommandRowColor = ListIconColor;
4066
+ export declare type CommandRowColor = ListIconColor;
4064
4067
 
4065
4068
  /**
4066
4069
  * What the palette lends an action at run time, so a provider stays free of the
@@ -4071,6 +4074,7 @@ export declare type CommandRunContext = {
4071
4074
  navigate: (href: string) => void;
4072
4075
  /** Hands a prompt to the assistant. A no-op when no `assistant` is configured. */
4073
4076
  ask: (prompt: string) => void;
4077
+ setQuery: (query: string) => void;
4074
4078
  };
4075
4079
 
4076
4080
  export declare const CommunityPost: (({ id, author, group, createdAt, title, description, onClick, mediaUrl, event, counters, reactions, inLabel, comment, actions, dropdownItems, noReactionsButton, descriptionExpandable, noDescriptionClamp, hideTitle, hideGroup, pinned, pinnedLabel, relativeDate, }: CommunityPostProps) => JSX_2.Element) & {
@@ -5886,7 +5890,7 @@ declare const defaultTranslations: {
5886
5890
  readonly edit: "Edit";
5887
5891
  readonly editing: "Editing";
5888
5892
  readonly edited: "edited";
5889
- readonly aiAssisted: "drafted with One";
5893
+ readonly aiAssisted: "by One";
5890
5894
  readonly cancelEdit: "Cancel edit";
5891
5895
  readonly saveEdit: "Save";
5892
5896
  readonly you: "You";
@@ -8500,7 +8504,7 @@ export declare type F0ChatMessage = {
8500
8504
  editedAt?: string;
8501
8505
  /**
8502
8506
  * The message was drafted with One (Factorial's AI) and approved by its
8503
- * author, who remains the sender. Drives the muted "drafted with One" label
8507
+ * author, who remains the sender. Drives the muted "by One" label
8504
8508
  * after the body, next to the edited marker, so the reader and assistive
8505
8509
  * technology learn it on every surface that shows the content. The host maps
8506
8510
  * it from server-set message metadata, never from body text.
@@ -9235,7 +9239,7 @@ export declare type F0CommandPaletteApi = {
9235
9239
  /**
9236
9240
  * @experimental This is an experimental API use it at your own risk
9237
9241
  */
9238
- export declare const F0CommandPaletteProvider: ({ children, groups, recent, assistant, labels, onNavigate, shortcut, open: openProp, onOpenChange, }: F0CommandPaletteProviderProps_2) => JSX_2.Element;
9242
+ export declare const F0CommandPaletteProvider: ({ children, groups, recent, maxItemRows, reveal, onQueryChange, assistant, labels, onNavigate, shortcut, open: openProp, onOpenChange, }: F0CommandPaletteProviderProps_2) => JSX_2.Element;
9239
9243
 
9240
9244
  export declare type F0CommandPaletteProviderProps = {
9241
9245
  children: ReactNode;
@@ -9250,6 +9254,9 @@ export declare type F0CommandPaletteProviderProps = {
9250
9254
  * product's call and no longer a rule buried in this component.
9251
9255
  */
9252
9256
  groups: CommandGroup[];
9257
+ maxItemRows?: number;
9258
+ reveal?: "per-group" | "together";
9259
+ onQueryChange?: (query: string) => void;
9253
9260
  /**
9254
9261
  * Ids of items in `groups` to lead the empty state with, most recent first.
9255
9262
  *
@@ -19510,18 +19517,6 @@ declare module "@tiptap/core" {
19510
19517
  }
19511
19518
 
19512
19519
 
19513
- declare module "@tiptap/core" {
19514
- interface Commands<ReturnType> {
19515
- enhanceHighlight: {
19516
- setEnhanceHighlight: (from: number, to: number, options?: {
19517
- placeholder?: string;
19518
- }) => ReturnType;
19519
- clearEnhanceHighlight: () => ReturnType;
19520
- };
19521
- }
19522
- }
19523
-
19524
-
19525
19520
  declare module "@tiptap/core" {
19526
19521
  interface Commands<ReturnType> {
19527
19522
  fontSize: {
@@ -19554,10 +19549,11 @@ declare module "@tiptap/core" {
19554
19549
 
19555
19550
  declare module "@tiptap/core" {
19556
19551
  interface Commands<ReturnType> {
19557
- videoEmbed: {
19558
- setVideoEmbed: (options: {
19559
- src: string;
19552
+ enhanceHighlight: {
19553
+ setEnhanceHighlight: (from: number, to: number, options?: {
19554
+ placeholder?: string;
19560
19555
  }) => ReturnType;
19556
+ clearEnhanceHighlight: () => ReturnType;
19561
19557
  };
19562
19558
  }
19563
19559
  }
@@ -19572,6 +19568,17 @@ declare module "@tiptap/core" {
19572
19568
  }
19573
19569
 
19574
19570
 
19571
+ declare module "@tiptap/core" {
19572
+ interface Commands<ReturnType> {
19573
+ videoEmbed: {
19574
+ setVideoEmbed: (options: {
19575
+ src: string;
19576
+ }) => ReturnType;
19577
+ };
19578
+ }
19579
+ }
19580
+
19581
+
19575
19582
  declare namespace F0GraphNodeWrapperInner {
19576
19583
  var displayName: string;
19577
19584
  }
@@ -1,4 +1,4 @@
1
- import { G as s, D as t, A as i, b as o, T as r, bl as n, bk as l, bm as d, C as S, H as g, L as b, V as c, bs as u, bt as C, bC as m, J as P, I as F, br as p, bD as h, N as T, M, aa as I, bY as E, c3 as A, U as f, bX as B, E as L, e as y, h as D, n as v, au as R, av as W, as as k, O, bh as _, d as H, o as N, r as x, t as V, p as G, aB as w, i as U, aG as z, aC as K, aD as X, aE as j, w as J, x as Q, K as Y, bG as q, bH as Z, bv as $, aA as aa, bK as ea, bV as sa, bn as ta, aV as ia, aF as oa, aT as ra, aS as na, aL as la, aU as da, ad as Sa, bF as ga, $ as ba, am as ca, P as ua, c7 as Ca, a0 as ma, W as Pa, X as Fa, Y as pa, bo as ha, R as Ta, bT as Ma, bZ as Ia, S as Ea, ag as Aa, ah as fa, a5 as Ba, a6 as La, a7 as ya, a4 as Da, a8 as va, a1 as Ra, a9 as Wa, ab as ka, ac as Oa, ae as _a, af as Ha, ai as Na, aj as xa, ak as Va, c1 as Ga, c0 as wa, bj as Ua, bi as za, bq as Ka, bE as Xa, bB as ja, bp as Ja, al as Qa, bw as Ya, c2 as qa, c5 as Za, bu as $a, bz as ae, bx as ee, c6 as se, bA as te, by as ie, c4 as oe, g as re, j as ne, a$ as le, ap as de, ar as Se, aO as ge, b$ as be, b_ as ce, aq as ue, aw as Ce, f as me, q as Pe, v as Fe, bc as pe, bg as he, ba as Te, bb as Me, b8 as Ie, b9 as Ee, bd as Ae, be as fe, b7 as Be, k as Le, l as ye, bf as De, bN as ve, bL as Re, az as We, ax as ke, ay as Oe, aX as _e, bW as He, bM as Ne, y as xe, z as Ve, m as Ge, b2 as we, B as Ue, b3 as ze, bR as Ke, a_ as Xe, aZ as je, b4 as Je, bJ as Qe, bO as Ye, an as qe, b5 as Ze, bU as $e, aW as as, aY as es, b0 as ss, b1 as ts, c as is, at as os, ao as rs, u as ns, aH as ls, aI as ds, aJ as Ss, aK as gs, bI as bs, aP as cs, aQ as us, aM as Cs, aN as ms, _ as Ps, Z as Fs, Q as ps, a3 as hs, a2 as Ts, aR as Ms, b6 as Is, bS as Es, bQ as As, bP as fs } from "./experimental-CTZSqZHh.js";
1
+ import { G as s, D as t, A as i, b as o, T as r, bl as n, bk as l, bm as d, C as S, H as g, L as b, V as c, bs as u, bt as C, bC as m, J as P, I as F, br as p, bD as h, N as T, M, aa as I, bY as E, c3 as A, U as f, bX as B, E as L, e as y, h as D, n as v, au as R, av as W, as as k, O, bh as _, d as H, o as N, r as x, t as V, p as G, aB as w, i as U, aG as z, aC as K, aD as X, aE as j, w as J, x as Q, K as Y, bG as q, bH as Z, bv as $, aA as aa, bK as ea, bV as sa, bn as ta, aV as ia, aF as oa, aT as ra, aS as na, aL as la, aU as da, ad as Sa, bF as ga, $ as ba, am as ca, P as ua, c7 as Ca, a0 as ma, W as Pa, X as Fa, Y as pa, bo as ha, R as Ta, bT as Ma, bZ as Ia, S as Ea, ag as Aa, ah as fa, a5 as Ba, a6 as La, a7 as ya, a4 as Da, a8 as va, a1 as Ra, a9 as Wa, ab as ka, ac as Oa, ae as _a, af as Ha, ai as Na, aj as xa, ak as Va, c1 as Ga, c0 as wa, bj as Ua, bi as za, bq as Ka, bE as Xa, bB as ja, bp as Ja, al as Qa, bw as Ya, c2 as qa, c5 as Za, bu as $a, bz as ae, bx as ee, c6 as se, bA as te, by as ie, c4 as oe, g as re, j as ne, a$ as le, ap as de, ar as Se, aO as ge, b$ as be, b_ as ce, aq as ue, aw as Ce, f as me, q as Pe, v as Fe, bc as pe, bg as he, ba as Te, bb as Me, b8 as Ie, b9 as Ee, bd as Ae, be as fe, b7 as Be, k as Le, l as ye, bf as De, bN as ve, bL as Re, az as We, ax as ke, ay as Oe, aX as _e, bW as He, bM as Ne, y as xe, z as Ve, m as Ge, b2 as we, B as Ue, b3 as ze, bR as Ke, a_ as Xe, aZ as je, b4 as Je, bJ as Qe, bO as Ye, an as qe, b5 as Ze, bU as $e, aW as as, aY as es, b0 as ss, b1 as ts, c as is, at as os, ao as rs, u as ns, aH as ls, aI as ds, aJ as Ss, aK as gs, bI as bs, aP as cs, aQ as us, aM as Cs, aN as ms, _ as Ps, Z as Fs, Q as ps, a3 as hs, a2 as Ts, aR as Ms, b6 as Is, bS as Es, bQ as As, bP as fs } from "./experimental-BvWkzt9z.js";
2
2
  import { e9 as Ls, eK as ys, eJ as Ds, eW as vs, dA as Rs, eH as Ws, cq as ks, cg as Os, cn as _s, d$ as Hs, c9 as Ns, c9 as xs, c2 as Vs, eD as Gs, ct as ws, ep as Us, cu as zs, eZ as Ks, eI as Xs, eS as js, eT as Js, dk as Qs, eX as Ys, k as qs, ea as Zs, cW as $s, eG as at, e1 as et, eL as st, T as tt, h as it, c3 as ot, eU as rt, e_ as nt, eV as lt, eY as dt, eR as St, eO as gt, eQ as bt, eM as ct, eE as ut, eF as Ct, ez as mt, eP as Pt, eN as Ft, e2 as pt } from "./F0CanvasPanel--Wyte3t1.js";
3
3
  import { aE as Tt, aF as Mt, ab as It, ac as Et, a9 as At, am as ft, C as Bt, ad as Lt, aQ as yt, ai as Dt, aP as vt, al as Rt, aa as Wt, aC as kt, an as Ot, aS as _t, aR as Ht, au as Nt, ao as xt, ax as Vt, F as Gt, a8 as wt, az as Ut, aw as zt, ar as Kt, aW as Xt, as as jt, aA as Jt, aB as Qt, ae as Yt, aT as qt, aU as Zt, at as $t, aD as ai, aM as ei, O as si, aO as ti, af as ii, aY as oi, ah as ri, aj as ni, ax as li, aV as di, ay as Si, av as gi, aX as bi, ag as ci, W as ui, ak as Ci, a7 as mi, a5 as Pi, a6 as Fi, aI as pi, aJ as hi, aG as Ti, aZ as Mi, aN as Ii, aq as Ei, ap as Ai, aK as fi, o as Bi, aH as Li, aL as yi, J as Di } from "./MapProvider-DkE6q_Xv.js";
4
4
  export {
package/dist/f0.d.ts CHANGED
@@ -5757,7 +5757,7 @@ export declare const defaultTranslations: {
5757
5757
  readonly edit: "Edit";
5758
5758
  readonly editing: "Editing";
5759
5759
  readonly edited: "edited";
5760
- readonly aiAssisted: "drafted with One";
5760
+ readonly aiAssisted: "by One";
5761
5761
  readonly cancelEdit: "Cancel edit";
5762
5762
  readonly saveEdit: "Save";
5763
5763
  readonly you: "You";
@@ -21421,18 +21421,6 @@ declare module "@tiptap/core" {
21421
21421
  }
21422
21422
 
21423
21423
 
21424
- declare module "@tiptap/core" {
21425
- interface Commands<ReturnType> {
21426
- enhanceHighlight: {
21427
- setEnhanceHighlight: (from: number, to: number, options?: {
21428
- placeholder?: string;
21429
- }) => ReturnType;
21430
- clearEnhanceHighlight: () => ReturnType;
21431
- };
21432
- }
21433
- }
21434
-
21435
-
21436
21424
  declare module "@tiptap/core" {
21437
21425
  interface Commands<ReturnType> {
21438
21426
  fontSize: {
@@ -21465,10 +21453,11 @@ declare module "@tiptap/core" {
21465
21453
 
21466
21454
  declare module "@tiptap/core" {
21467
21455
  interface Commands<ReturnType> {
21468
- videoEmbed: {
21469
- setVideoEmbed: (options: {
21470
- src: string;
21456
+ enhanceHighlight: {
21457
+ setEnhanceHighlight: (from: number, to: number, options?: {
21458
+ placeholder?: string;
21471
21459
  }) => ReturnType;
21460
+ clearEnhanceHighlight: () => ReturnType;
21472
21461
  };
21473
21462
  }
21474
21463
  }
@@ -21483,6 +21472,17 @@ declare module "@tiptap/core" {
21483
21472
  }
21484
21473
 
21485
21474
 
21475
+ declare module "@tiptap/core" {
21476
+ interface Commands<ReturnType> {
21477
+ videoEmbed: {
21478
+ setVideoEmbed: (options: {
21479
+ src: string;
21480
+ }) => ReturnType;
21481
+ };
21482
+ }
21483
+ }
21484
+
21485
+
21486
21486
  declare namespace F0GraphNodeWrapperInner {
21487
21487
  var displayName: string;
21488
21488
  }
@@ -883,7 +883,7 @@ export declare const defaultTranslations: {
883
883
  readonly edit: "Edit";
884
884
  readonly editing: "Editing";
885
885
  readonly edited: "edited";
886
- readonly aiAssisted: "drafted with One";
886
+ readonly aiAssisted: "by One";
887
887
  readonly cancelEdit: "Cancel edit";
888
888
  readonly saveEdit: "Save";
889
889
  readonly you: "You";
@@ -1526,18 +1526,6 @@ declare module "@tiptap/core" {
1526
1526
  }
1527
1527
 
1528
1528
 
1529
- declare module "@tiptap/core" {
1530
- interface Commands<ReturnType> {
1531
- enhanceHighlight: {
1532
- setEnhanceHighlight: (from: number, to: number, options?: {
1533
- placeholder?: string;
1534
- }) => ReturnType;
1535
- clearEnhanceHighlight: () => ReturnType;
1536
- };
1537
- }
1538
- }
1539
-
1540
-
1541
1529
  declare module "@tiptap/core" {
1542
1530
  interface Commands<ReturnType> {
1543
1531
  fontSize: {
@@ -1570,10 +1558,11 @@ declare module "@tiptap/core" {
1570
1558
 
1571
1559
  declare module "@tiptap/core" {
1572
1560
  interface Commands<ReturnType> {
1573
- videoEmbed: {
1574
- setVideoEmbed: (options: {
1575
- src: string;
1561
+ enhanceHighlight: {
1562
+ setEnhanceHighlight: (from: number, to: number, options?: {
1563
+ placeholder?: string;
1576
1564
  }) => ReturnType;
1565
+ clearEnhanceHighlight: () => ReturnType;
1577
1566
  };
1578
1567
  }
1579
1568
  }
@@ -1588,6 +1577,17 @@ declare module "@tiptap/core" {
1588
1577
  }
1589
1578
 
1590
1579
 
1580
+ declare module "@tiptap/core" {
1581
+ interface Commands<ReturnType> {
1582
+ videoEmbed: {
1583
+ setVideoEmbed: (options: {
1584
+ src: string;
1585
+ }) => ReturnType;
1586
+ };
1587
+ }
1588
+ }
1589
+
1590
+
1591
1591
  declare namespace F0GraphNodeWrapperInner {
1592
1592
  var displayName: string;
1593
1593
  }
@@ -883,7 +883,7 @@ const e = {
883
883
  edit: "Edit",
884
884
  editing: "Editing",
885
885
  edited: "edited",
886
- aiAssisted: "drafted with One",
886
+ aiAssisted: "by One",
887
887
  cancelEdit: "Cancel edit",
888
888
  saveEdit: "Save",
889
889
  you: "You",