@factorialco/f0-react 7.18.1 → 7.19.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.
@@ -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) & {
@@ -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
  *
@@ -19554,10 +19561,8 @@ declare module "@tiptap/core" {
19554
19561
 
19555
19562
  declare module "@tiptap/core" {
19556
19563
  interface Commands<ReturnType> {
19557
- videoEmbed: {
19558
- setVideoEmbed: (options: {
19559
- src: string;
19560
- }) => ReturnType;
19564
+ transcript: {
19565
+ insertTranscript: (data: TranscriptData) => ReturnType;
19561
19566
  };
19562
19567
  }
19563
19568
  }
@@ -19565,8 +19570,10 @@ declare module "@tiptap/core" {
19565
19570
 
19566
19571
  declare module "@tiptap/core" {
19567
19572
  interface Commands<ReturnType> {
19568
- transcript: {
19569
- insertTranscript: (data: TranscriptData) => ReturnType;
19573
+ videoEmbed: {
19574
+ setVideoEmbed: (options: {
19575
+ src: string;
19576
+ }) => ReturnType;
19570
19577
  };
19571
19578
  }
19572
19579
  }
@@ -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
@@ -21465,10 +21465,8 @@ declare module "@tiptap/core" {
21465
21465
 
21466
21466
  declare module "@tiptap/core" {
21467
21467
  interface Commands<ReturnType> {
21468
- videoEmbed: {
21469
- setVideoEmbed: (options: {
21470
- src: string;
21471
- }) => ReturnType;
21468
+ transcript: {
21469
+ insertTranscript: (data: TranscriptData) => ReturnType;
21472
21470
  };
21473
21471
  }
21474
21472
  }
@@ -21476,8 +21474,10 @@ declare module "@tiptap/core" {
21476
21474
 
21477
21475
  declare module "@tiptap/core" {
21478
21476
  interface Commands<ReturnType> {
21479
- transcript: {
21480
- insertTranscript: (data: TranscriptData) => ReturnType;
21477
+ videoEmbed: {
21478
+ setVideoEmbed: (options: {
21479
+ src: string;
21480
+ }) => ReturnType;
21481
21481
  };
21482
21482
  }
21483
21483
  }
@@ -1570,10 +1570,8 @@ declare module "@tiptap/core" {
1570
1570
 
1571
1571
  declare module "@tiptap/core" {
1572
1572
  interface Commands<ReturnType> {
1573
- videoEmbed: {
1574
- setVideoEmbed: (options: {
1575
- src: string;
1576
- }) => ReturnType;
1573
+ transcript: {
1574
+ insertTranscript: (data: TranscriptData) => ReturnType;
1577
1575
  };
1578
1576
  }
1579
1577
  }
@@ -1581,8 +1579,10 @@ declare module "@tiptap/core" {
1581
1579
 
1582
1580
  declare module "@tiptap/core" {
1583
1581
  interface Commands<ReturnType> {
1584
- transcript: {
1585
- insertTranscript: (data: TranscriptData) => ReturnType;
1582
+ videoEmbed: {
1583
+ setVideoEmbed: (options: {
1584
+ src: string;
1585
+ }) => ReturnType;
1586
1586
  };
1587
1587
  }
1588
1588
  }