@factorialco/f0-react 4.19.0 → 4.20.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/ai.d.ts +7 -7
- package/dist/experimental.d.ts +26 -7
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +24 -7
- package/dist/f0.js +2 -2
- package/dist/i18n-provider-defaults.d.ts +7 -7
- package/dist/{useDataCollectionSource-DhFCHRGp.js → useDataCollectionSource-VEbQISxZ.js} +10942 -10925
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -5054,11 +5054,8 @@ declare module "@tiptap/core" {
|
|
|
5054
5054
|
|
|
5055
5055
|
declare module "@tiptap/core" {
|
|
5056
5056
|
interface Commands<ReturnType> {
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
placeholder?: string;
|
|
5060
|
-
}) => ReturnType;
|
|
5061
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
5057
|
+
moodTracker: {
|
|
5058
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
5062
5059
|
};
|
|
5063
5060
|
}
|
|
5064
5061
|
}
|
|
@@ -5066,8 +5063,11 @@ declare module "@tiptap/core" {
|
|
|
5066
5063
|
|
|
5067
5064
|
declare module "@tiptap/core" {
|
|
5068
5065
|
interface Commands<ReturnType> {
|
|
5069
|
-
|
|
5070
|
-
|
|
5066
|
+
enhanceHighlight: {
|
|
5067
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
5068
|
+
placeholder?: string;
|
|
5069
|
+
}) => ReturnType;
|
|
5070
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
5071
5071
|
};
|
|
5072
5072
|
}
|
|
5073
5073
|
}
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2733,6 +2733,9 @@ export declare type DataCollectionSourceDefinition<R extends RecordType = Record
|
|
|
2733
2733
|
primaryActionsLabel?: string;
|
|
2734
2734
|
/** Available secondary actions that can be performed on the collection */
|
|
2735
2735
|
secondaryActions?: SecondaryActionsDefinition;
|
|
2736
|
+
/** Optional upsell button rendered in the collection toolbar. Opt-in per
|
|
2737
|
+
* collection: return a definition to show it, or undefined to hide it. */
|
|
2738
|
+
upsellAction?: UpsellActionDefinitionFn;
|
|
2736
2739
|
/** Available summaries fields. If not provided, summaries is not allowed. */
|
|
2737
2740
|
summaries?: Summaries & {
|
|
2738
2741
|
label?: string;
|
|
@@ -6097,6 +6100,8 @@ export declare const getPrimaryActions: (primaryActions: PrimaryActionsDefinitio
|
|
|
6097
6100
|
*/
|
|
6098
6101
|
export declare const getSecondaryActions: (secondaryActions: SecondaryActionsDefinition | undefined) => SecondaryActionGroup[];
|
|
6099
6102
|
|
|
6103
|
+
export declare const getUpsellAction: (upsellAction: UpsellActionDefinitionFn | undefined) => UpsellActionDefinition | undefined;
|
|
6104
|
+
|
|
6100
6105
|
export declare interface GranularityDefinition {
|
|
6101
6106
|
calendarMode?: CalendarMode;
|
|
6102
6107
|
calendarView: CalendarView;
|
|
@@ -9790,6 +9795,20 @@ declare type UploadedFile = {
|
|
|
9790
9795
|
mimetype: string;
|
|
9791
9796
|
};
|
|
9792
9797
|
|
|
9798
|
+
/** Upsell button rendered in the collection toolbar. */
|
|
9799
|
+
export declare type UpsellActionDefinition = {
|
|
9800
|
+
label: string;
|
|
9801
|
+
onClick: () => void | Promise<void>;
|
|
9802
|
+
/** Show the upsell icon. Defaults to true. */
|
|
9803
|
+
showIcon?: boolean;
|
|
9804
|
+
/** Button variant. Defaults to "outlinePromote". */
|
|
9805
|
+
variant?: "promote" | "outlinePromote";
|
|
9806
|
+
disabled?: boolean;
|
|
9807
|
+
};
|
|
9808
|
+
|
|
9809
|
+
/** Returns the upsell action, or undefined to hide it. */
|
|
9810
|
+
export declare type UpsellActionDefinitionFn = () => UpsellActionDefinition | undefined;
|
|
9811
|
+
|
|
9793
9812
|
export declare function useAiPromotionChat(): AiPromotionChatProviderReturnValue;
|
|
9794
9813
|
|
|
9795
9814
|
export declare type UseDataCollectionData<R extends RecordType> = UseDataCollectionDataReturn<R> & {
|
|
@@ -10629,11 +10648,8 @@ declare module "@tiptap/core" {
|
|
|
10629
10648
|
|
|
10630
10649
|
declare module "@tiptap/core" {
|
|
10631
10650
|
interface Commands<ReturnType> {
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
placeholder?: string;
|
|
10635
|
-
}) => ReturnType;
|
|
10636
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
10651
|
+
moodTracker: {
|
|
10652
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
10637
10653
|
};
|
|
10638
10654
|
}
|
|
10639
10655
|
}
|
|
@@ -10641,8 +10657,11 @@ declare module "@tiptap/core" {
|
|
|
10641
10657
|
|
|
10642
10658
|
declare module "@tiptap/core" {
|
|
10643
10659
|
interface Commands<ReturnType> {
|
|
10644
|
-
|
|
10645
|
-
|
|
10660
|
+
enhanceHighlight: {
|
|
10661
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
10662
|
+
placeholder?: string;
|
|
10663
|
+
}) => ReturnType;
|
|
10664
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
10646
10665
|
};
|
|
10647
10666
|
}
|
|
10648
10667
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -2,8 +2,8 @@ import { h as Ua, B as Va, i as Ga, j as Ka, k as wn, l as lt, m as et, n as qa,
|
|
|
2
2
|
import { cB as xm, cA as vm, cN as ym, cx as wm, cy as Nm, cq as Cm, cr as km, cr as Im, cs as Sm, cQ as Fm, cz as Tm, cJ as Am, cK as Em, cO as Rm, ct as Dm, cD as Pm, cC as Lm, cu as Om, cv as _m, cL as zm, cR as $m, cM as Bm, cP as Mm, cI as jm, cF as Wm, cH as Hm, cE as Um, cw as Vm, cG as Gm } from "./F0CanvasPanel-D27ptXCV.js";
|
|
3
3
|
import { jsx as t, jsxs as d, Fragment as fe } from "react/jsx-runtime";
|
|
4
4
|
import Te, { forwardRef as de, useRef as O, useTransition as Ki, useState as A, useLayoutEffect as Qe, useId as Qt, useContext as Le, createContext as Ie, useEffect as G, useCallback as H, useMemo as X, Fragment as Ke, isValidElement as qi, cloneElement as Mr, memo as jr, Children as Wr } from "react";
|
|
5
|
-
import { C as Yi, P as Qi, a as st, M as Ji, p as Xi, b as Zi, R as Fn, c as Hr, u as eo, d as to, e as no, f as ro, g as ao, D as so, h as io, O as Ur, i as Vr, S as oo, A as lo, B as co, L as uo, j as fo, V as mo, k as ho, l as po, m as go } from "./useDataCollectionSource-
|
|
6
|
-
import { s as qm, t as Ym, q as Qm, J as Jm, v as Xm, E as Zm, aa as eh, I as th, r as nh, ac as rh, ab as ah, U as sh, af as ih, F as oh, _ as lh, X as ch, N as dh, ah as uh, Q as fh, $ as mh, a0 as hh, w as ph, ad as gh, ae as bh, T as xh, a1 as vh, a7 as yh, a9 as wh, x as Nh, z as Ch, G as kh, Y as Ih, ag as Sh, Z as Fh, W as Th, ai as Ah, y as Eh, H as Rh, n as Dh, o as Ph, a3 as Lh, a4 as Oh, a8 as _h, K as zh, a5 as $h, a2 as Bh, a6 as Mh } from "./useDataCollectionSource-
|
|
5
|
+
import { C as Yi, P as Qi, a as st, M as Ji, p as Xi, b as Zi, R as Fn, c as Hr, u as eo, d as to, e as no, f as ro, g as ao, D as so, h as io, O as Ur, i as Vr, S as oo, A as lo, B as co, L as uo, j as fo, V as mo, k as ho, l as po, m as go } from "./useDataCollectionSource-VEbQISxZ.js";
|
|
6
|
+
import { s as qm, t as Ym, q as Qm, J as Jm, v as Xm, E as Zm, aa as eh, I as th, r as nh, ac as rh, ab as ah, U as sh, af as ih, F as oh, _ as lh, X as ch, N as dh, ah as uh, Q as fh, $ as mh, a0 as hh, w as ph, ad as gh, ae as bh, T as xh, a1 as vh, a7 as yh, a9 as wh, x as Nh, z as Ch, G as kh, Y as Ih, ag as Sh, Z as Fh, W as Th, ai as Ah, y as Eh, H as Rh, n as Dh, o as Ph, a3 as Lh, a4 as Oh, a8 as _h, K as zh, a5 as $h, a2 as Bh, a6 as Mh } from "./useDataCollectionSource-VEbQISxZ.js";
|
|
7
7
|
const bo = Ua("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -3830,6 +3830,9 @@ declare type DataCollectionSourceDefinition<R extends RecordType = RecordType, F
|
|
|
3830
3830
|
primaryActionsLabel?: string;
|
|
3831
3831
|
/** Available secondary actions that can be performed on the collection */
|
|
3832
3832
|
secondaryActions?: SecondaryActionsDefinition;
|
|
3833
|
+
/** Optional upsell button rendered in the collection toolbar. Opt-in per
|
|
3834
|
+
* collection: return a definition to show it, or undefined to hide it. */
|
|
3835
|
+
upsellAction?: UpsellActionDefinitionFn;
|
|
3833
3836
|
/** Available summaries fields. If not provided, summaries is not allowed. */
|
|
3834
3837
|
summaries?: Summaries & {
|
|
3835
3838
|
label?: string;
|
|
@@ -16335,6 +16338,20 @@ declare type UpsellAction = BaseAction & {
|
|
|
16335
16338
|
showConfirmation: boolean;
|
|
16336
16339
|
};
|
|
16337
16340
|
|
|
16341
|
+
/** Upsell button rendered in the collection toolbar. */
|
|
16342
|
+
declare type UpsellActionDefinition = {
|
|
16343
|
+
label: string;
|
|
16344
|
+
onClick: () => void | Promise<void>;
|
|
16345
|
+
/** Show the upsell icon. Defaults to true. */
|
|
16346
|
+
showIcon?: boolean;
|
|
16347
|
+
/** Button variant. Defaults to "outlinePromote". */
|
|
16348
|
+
variant?: "promote" | "outlinePromote";
|
|
16349
|
+
disabled?: boolean;
|
|
16350
|
+
};
|
|
16351
|
+
|
|
16352
|
+
/** Returns the upsell action, or undefined to hide it. */
|
|
16353
|
+
declare type UpsellActionDefinitionFn = () => UpsellActionDefinition | undefined;
|
|
16354
|
+
|
|
16338
16355
|
export declare const UpsellingAlert: WithDataTestIdReturnType_4<typeof _UpsellingAlert>;
|
|
16339
16356
|
|
|
16340
16357
|
declare function _UpsellingAlert({ icon, title, description, action, }: UpsellingAlertProps): JSX_2.Element;
|
|
@@ -17568,11 +17585,8 @@ declare module "@tiptap/core" {
|
|
|
17568
17585
|
|
|
17569
17586
|
declare module "@tiptap/core" {
|
|
17570
17587
|
interface Commands<ReturnType> {
|
|
17571
|
-
|
|
17572
|
-
|
|
17573
|
-
placeholder?: string;
|
|
17574
|
-
}) => ReturnType;
|
|
17575
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
17588
|
+
moodTracker: {
|
|
17589
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
17576
17590
|
};
|
|
17577
17591
|
}
|
|
17578
17592
|
}
|
|
@@ -17580,8 +17594,11 @@ declare module "@tiptap/core" {
|
|
|
17580
17594
|
|
|
17581
17595
|
declare module "@tiptap/core" {
|
|
17582
17596
|
interface Commands<ReturnType> {
|
|
17583
|
-
|
|
17584
|
-
|
|
17597
|
+
enhanceHighlight: {
|
|
17598
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
17599
|
+
placeholder?: string;
|
|
17600
|
+
}) => ReturnType;
|
|
17601
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
17585
17602
|
};
|
|
17586
17603
|
}
|
|
17587
17604
|
}
|
package/dist/f0.js
CHANGED
|
@@ -6,8 +6,8 @@ import xt, { forwardRef as yr, useRef as ie, useImperativeHandle as Y3, Children
|
|
|
6
6
|
import { D as Z3, E as j3, G as K3, H as H2, I as Cv, J as lw, K as W2, L as $2, M as bi, N as Q3, O as J3, P as eH, Q as tH, R as rH, F as nH } from "./F0AiProcessingOverlay-DAZ9hqA5.js";
|
|
7
7
|
import { A as Zme, C as jme, t as Kme, s as Qme, v as Jme, y as eye, l as tye, i as rye, q as nye, z as iye, B as aye, p as oye, r as sye, j as lye, e as uye, g as cye, k as fye, T as dye, w as hye, h as vye, a as pye, n as gye, m as mye, o as yye, b as bye, f as xye, x as _ye, c as wye, d as Sye, u as Cye } from "./F0AiProcessingOverlay-DAZ9hqA5.js";
|
|
8
8
|
import { createPortal as Qf, unstable_batchedUpdates as Sd } from "react-dom";
|
|
9
|
-
import { aj as U2, C as iH, F as Y2, ak as X2, al as aH, am as oH, an as sH, ao as ng, ap as ig, I as lH, aq as uH, ar as pa, _ as cH, aa as fH, as as dH, U as hH, at as vH, au as pH, c as ag, R as uw, u as cw, Y as q2, O as fw, D as gH, h as mH, av as Z2, aw as vC, ax as dw, q as yH, d as j2, a1 as K2, ay as bH, az as xH, aA as _H, aB as wH, aC as SH, M as CH } from "./useDataCollectionSource-
|
|
10
|
-
import { s as Dye, t as Aye, J as Mye, v as Eye, E as Lye, aT as Nye, aS as Iye, aO as Rye, aE as Pye, aD as kye, aF as Oye, aG as Bye, ac as zye, ab as Vye, af as Fye, X as Gye, N as Hye, ah as Wye, Q as $ye, w as Uye, aU as Yye, ad as Xye, ae as qye, T as Zye, x as jye, P as Kye, z as Qye, G as Jye, ag as e0e, W as t0e, ai as r0e, y as n0e, H as i0e, aW as a0e, n as o0e, o as s0e, aN as l0e, aJ as u0e, aI as c0e, aV as f0e, a8 as d0e, aL as h0e, aM as v0e, K as p0e, aX as g0e, aY as m0e, e as y0e, aP as b0e, aQ as x0e, aR as _0e, aK as w0e, f as S0e, i as C0e, aH as T0e, aZ as D0e } from "./useDataCollectionSource-
|
|
9
|
+
import { aj as U2, C as iH, F as Y2, ak as X2, al as aH, am as oH, an as sH, ao as ng, ap as ig, I as lH, aq as uH, ar as pa, _ as cH, aa as fH, as as dH, U as hH, at as vH, au as pH, c as ag, R as uw, u as cw, Y as q2, O as fw, D as gH, h as mH, av as Z2, aw as vC, ax as dw, q as yH, d as j2, a1 as K2, ay as bH, az as xH, aA as _H, aB as wH, aC as SH, M as CH } from "./useDataCollectionSource-VEbQISxZ.js";
|
|
10
|
+
import { s as Dye, t as Aye, J as Mye, v as Eye, E as Lye, aT as Nye, aS as Iye, aO as Rye, aE as Pye, aD as kye, aF as Oye, aG as Bye, ac as zye, ab as Vye, af as Fye, X as Gye, N as Hye, ah as Wye, Q as $ye, w as Uye, aU as Yye, ad as Xye, ae as qye, T as Zye, x as jye, P as Kye, z as Qye, G as Jye, ag as e0e, W as t0e, ai as r0e, y as n0e, H as i0e, aW as a0e, n as o0e, o as s0e, aN as l0e, aJ as u0e, aI as c0e, aV as f0e, a8 as d0e, aL as h0e, aM as v0e, K as p0e, aX as g0e, aY as m0e, e as y0e, aP as b0e, aQ as x0e, aR as _0e, aK as w0e, f as S0e, i as C0e, aH as T0e, aZ as D0e } from "./useDataCollectionSource-VEbQISxZ.js";
|
|
11
11
|
import { utils as Fl, write as Q2 } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as M0e } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const TH = {
|
|
@@ -965,11 +965,8 @@ declare module "@tiptap/core" {
|
|
|
965
965
|
|
|
966
966
|
declare module "@tiptap/core" {
|
|
967
967
|
interface Commands<ReturnType> {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
placeholder?: string;
|
|
971
|
-
}) => ReturnType;
|
|
972
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
968
|
+
moodTracker: {
|
|
969
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
973
970
|
};
|
|
974
971
|
}
|
|
975
972
|
}
|
|
@@ -977,8 +974,11 @@ declare module "@tiptap/core" {
|
|
|
977
974
|
|
|
978
975
|
declare module "@tiptap/core" {
|
|
979
976
|
interface Commands<ReturnType> {
|
|
980
|
-
|
|
981
|
-
|
|
977
|
+
enhanceHighlight: {
|
|
978
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
979
|
+
placeholder?: string;
|
|
980
|
+
}) => ReturnType;
|
|
981
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
982
982
|
};
|
|
983
983
|
}
|
|
984
984
|
}
|