@factorialco/f0-react 4.29.4 → 4.30.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.
- package/dist/ai.d.ts +9 -7
- package/dist/experimental.d.ts +29 -7
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +29 -7
- package/dist/f0.js +2 -2
- package/dist/i18n-provider-defaults.d.ts +9 -7
- package/dist/i18n-provider-defaults.js +3 -1
- package/dist/{useDataCollectionSource-BDZXr6jH.js → useDataCollectionSource-DIyckyBZ.js} +2024 -1982
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -2050,6 +2050,8 @@ export declare const defaultTranslations: {
|
|
|
2050
2050
|
readonly settings: {
|
|
2051
2051
|
readonly showAllColumns: "Show all";
|
|
2052
2052
|
readonly hideAllColumns: "Hide all";
|
|
2053
|
+
readonly addColumn: "Add column";
|
|
2054
|
+
readonly removeColumn: "Remove column";
|
|
2053
2055
|
};
|
|
2054
2056
|
};
|
|
2055
2057
|
readonly editableTable: {
|
|
@@ -5069,11 +5071,8 @@ declare module "@tiptap/core" {
|
|
|
5069
5071
|
|
|
5070
5072
|
declare module "@tiptap/core" {
|
|
5071
5073
|
interface Commands<ReturnType> {
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
placeholder?: string;
|
|
5075
|
-
}) => ReturnType;
|
|
5076
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
5074
|
+
moodTracker: {
|
|
5075
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
5077
5076
|
};
|
|
5078
5077
|
}
|
|
5079
5078
|
}
|
|
@@ -5081,8 +5080,11 @@ declare module "@tiptap/core" {
|
|
|
5081
5080
|
|
|
5082
5081
|
declare module "@tiptap/core" {
|
|
5083
5082
|
interface Commands<ReturnType> {
|
|
5084
|
-
|
|
5085
|
-
|
|
5083
|
+
enhanceHighlight: {
|
|
5084
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
5085
|
+
placeholder?: string;
|
|
5086
|
+
}) => ReturnType;
|
|
5087
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
5086
5088
|
};
|
|
5087
5089
|
}
|
|
5088
5090
|
}
|
package/dist/experimental.d.ts
CHANGED
|
@@ -3403,6 +3403,8 @@ declare const defaultTranslations: {
|
|
|
3403
3403
|
readonly settings: {
|
|
3404
3404
|
readonly showAllColumns: "Show all";
|
|
3405
3405
|
readonly hideAllColumns: "Hide all";
|
|
3406
|
+
readonly addColumn: "Add column";
|
|
3407
|
+
readonly removeColumn: "Remove column";
|
|
3406
3408
|
};
|
|
3407
3409
|
};
|
|
3408
3410
|
readonly editableTable: {
|
|
@@ -9386,6 +9388,12 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
|
|
|
9386
9388
|
* Avoid hiding the column by the user
|
|
9387
9389
|
*/
|
|
9388
9390
|
noHiding?: boolean;
|
|
9391
|
+
/**
|
|
9392
|
+
* Avoid removing the column by the user. Only relevant when the
|
|
9393
|
+
* visualization sets `onRemoveColumn`; the per-row trash affordance in the
|
|
9394
|
+
* settings popover is hidden for this column. Mirrors `noHiding`.
|
|
9395
|
+
*/
|
|
9396
|
+
noRemoving?: boolean;
|
|
9389
9397
|
/**
|
|
9390
9398
|
* Assigns this column to a header group. Columns with the same
|
|
9391
9399
|
* headerGroupId are visually grouped under a shared spanning header.
|
|
@@ -9501,6 +9509,20 @@ declare type TableVisualizationOptions<R extends RecordType, _Filters extends Fi
|
|
|
9501
9509
|
* Allow users to hide columns (you can define especifcally non hiddable columns in col props, also frozen columns are not hiddable)
|
|
9502
9510
|
*/
|
|
9503
9511
|
allowColumnHiding?: boolean;
|
|
9512
|
+
/**
|
|
9513
|
+
* Called when the user clicks the "Add column" entry at the top of the
|
|
9514
|
+
* column-settings popover. When omitted, the entry is not shown. Open your
|
|
9515
|
+
* own column picker and update `columns` in response.
|
|
9516
|
+
*/
|
|
9517
|
+
onAddColumn?: () => void;
|
|
9518
|
+
/**
|
|
9519
|
+
* Called when the user removes a column via the trash affordance revealed on
|
|
9520
|
+
* hovering its row in the column-settings popover. When omitted, no remove
|
|
9521
|
+
* affordance is shown. Removing is distinct from hiding: drop the column from
|
|
9522
|
+
* `columns` in response. Frozen/leading columns and columns flagged
|
|
9523
|
+
* `noRemoving` are never removable.
|
|
9524
|
+
*/
|
|
9525
|
+
onRemoveColumn?: (columnId: ColId) => void;
|
|
9504
9526
|
/** Maps a row to a visual variant: `"striped"`, `"striked"`, or `"none"`. */
|
|
9505
9527
|
referenceRowType?: (item: R) => ReferenceType;
|
|
9506
9528
|
/**
|
|
@@ -10713,11 +10735,8 @@ declare module "@tiptap/core" {
|
|
|
10713
10735
|
|
|
10714
10736
|
declare module "@tiptap/core" {
|
|
10715
10737
|
interface Commands<ReturnType> {
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
placeholder?: string;
|
|
10719
|
-
}) => ReturnType;
|
|
10720
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
10738
|
+
moodTracker: {
|
|
10739
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
10721
10740
|
};
|
|
10722
10741
|
}
|
|
10723
10742
|
}
|
|
@@ -10725,8 +10744,11 @@ declare module "@tiptap/core" {
|
|
|
10725
10744
|
|
|
10726
10745
|
declare module "@tiptap/core" {
|
|
10727
10746
|
interface Commands<ReturnType> {
|
|
10728
|
-
|
|
10729
|
-
|
|
10747
|
+
enhanceHighlight: {
|
|
10748
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
10749
|
+
placeholder?: string;
|
|
10750
|
+
}) => ReturnType;
|
|
10751
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
10730
10752
|
};
|
|
10731
10753
|
}
|
|
10732
10754
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -2,8 +2,8 @@ import { h as Va, B as Ga, i as Ka, j as qa, k as wn, l as lt, m as tt, n as Ya,
|
|
|
2
2
|
import { cD as vm, cC as ym, cP as wm, cz as Nm, cA as Cm, cs as km, ct as Im, ct as Sm, cu as Fm, cS as Tm, cB as Am, cL as Em, cM as Rm, cQ as Dm, cv as Pm, cF as Lm, cE as Om, cw as _m, cx as zm, cN as $m, cT as Bm, cO as Mm, cR as jm, cK as Wm, cH as Hm, cJ as Um, cG as Vm, cy as Gm, cI as Km } from "./F0CanvasPanel-3Hpwq8Sa.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 z, useTransition as Qi, useState as R, useLayoutEffect as Je, useId as Qt, useContext as Le, createContext as Ie, useEffect as K, useCallback as U, useMemo as J, Fragment as qe, isValidElement as Ji, cloneElement as jr, memo as Wr, Children as Hr } from "react";
|
|
5
|
-
import { C as Xi, P as Zi, a as it, M as eo, p as to, b as no, R as Fn, c as Ur, u as ro, d as ao, e as so, f as io, g as oo, O as Vr, h as Gr, S as lo, A as co, B as uo, L as fo, i as mo, V as ho, j as po, k as go, l as bo } from "./useDataCollectionSource-
|
|
6
|
-
import { r as Ym, s as Qm, o as Jm, H as Xm, t as Zm, z as eh, a8 as th, G as nh, q as rh, aa as ah, a9 as sh, Q as ih, ad as oh, F as lh, Y as ch, U as dh, J as uh, af as fh, K as mh, Z as hh, _ as ph, v as gh, ab as bh, ac as xh, N as vh, $ as yh, a5 as wh, a7 as Nh, w as Ch, y as kh, D as Ih, W as Sh, ae as Fh, X as Th, T as Ah, ag as Eh, x as Rh, E as Dh, m as Ph, n as Lh, a1 as Oh, a2 as _h, a6 as zh, I as $h, a3 as Bh, a0 as Mh, a4 as jh } from "./useDataCollectionSource-
|
|
5
|
+
import { C as Xi, P as Zi, a as it, M as eo, p as to, b as no, R as Fn, c as Ur, u as ro, d as ao, e as so, f as io, g as oo, O as Vr, h as Gr, S as lo, A as co, B as uo, L as fo, i as mo, V as ho, j as po, k as go, l as bo } from "./useDataCollectionSource-DIyckyBZ.js";
|
|
6
|
+
import { r as Ym, s as Qm, o as Jm, H as Xm, t as Zm, z as eh, a8 as th, G as nh, q as rh, aa as ah, a9 as sh, Q as ih, ad as oh, F as lh, Y as ch, U as dh, J as uh, af as fh, K as mh, Z as hh, _ as ph, v as gh, ab as bh, ac as xh, N as vh, $ as yh, a5 as wh, a7 as Nh, w as Ch, y as kh, D as Ih, W as Sh, ae as Fh, X as Th, T as Ah, ag as Eh, x as Rh, E as Dh, m as Ph, n as Lh, a1 as Oh, a2 as _h, a6 as zh, I as $h, a3 as Bh, a0 as Mh, a4 as jh } from "./useDataCollectionSource-DIyckyBZ.js";
|
|
7
7
|
const xo = Va("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
|
@@ -4596,6 +4596,8 @@ export declare const defaultTranslations: {
|
|
|
4596
4596
|
readonly settings: {
|
|
4597
4597
|
readonly showAllColumns: "Show all";
|
|
4598
4598
|
readonly hideAllColumns: "Hide all";
|
|
4599
|
+
readonly addColumn: "Add column";
|
|
4600
|
+
readonly removeColumn: "Remove column";
|
|
4599
4601
|
};
|
|
4600
4602
|
};
|
|
4601
4603
|
readonly editableTable: {
|
|
@@ -15655,6 +15657,12 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
|
|
|
15655
15657
|
* Avoid hiding the column by the user
|
|
15656
15658
|
*/
|
|
15657
15659
|
noHiding?: boolean;
|
|
15660
|
+
/**
|
|
15661
|
+
* Avoid removing the column by the user. Only relevant when the
|
|
15662
|
+
* visualization sets `onRemoveColumn`; the per-row trash affordance in the
|
|
15663
|
+
* settings popover is hidden for this column. Mirrors `noHiding`.
|
|
15664
|
+
*/
|
|
15665
|
+
noRemoving?: boolean;
|
|
15658
15666
|
/**
|
|
15659
15667
|
* Assigns this column to a header group. Columns with the same
|
|
15660
15668
|
* headerGroupId are visually grouped under a shared spanning header.
|
|
@@ -15772,6 +15780,20 @@ declare type TableVisualizationOptions<R extends RecordType, _Filters extends Fi
|
|
|
15772
15780
|
* Allow users to hide columns (you can define especifcally non hiddable columns in col props, also frozen columns are not hiddable)
|
|
15773
15781
|
*/
|
|
15774
15782
|
allowColumnHiding?: boolean;
|
|
15783
|
+
/**
|
|
15784
|
+
* Called when the user clicks the "Add column" entry at the top of the
|
|
15785
|
+
* column-settings popover. When omitted, the entry is not shown. Open your
|
|
15786
|
+
* own column picker and update `columns` in response.
|
|
15787
|
+
*/
|
|
15788
|
+
onAddColumn?: () => void;
|
|
15789
|
+
/**
|
|
15790
|
+
* Called when the user removes a column via the trash affordance revealed on
|
|
15791
|
+
* hovering its row in the column-settings popover. When omitted, no remove
|
|
15792
|
+
* affordance is shown. Removing is distinct from hiding: drop the column from
|
|
15793
|
+
* `columns` in response. Frozen/leading columns and columns flagged
|
|
15794
|
+
* `noRemoving` are never removable.
|
|
15795
|
+
*/
|
|
15796
|
+
onRemoveColumn?: (columnId: ColId) => void;
|
|
15775
15797
|
/** Maps a row to a visual variant: `"striped"`, `"striked"`, or `"none"`. */
|
|
15776
15798
|
referenceRowType?: (item: R) => ReferenceType;
|
|
15777
15799
|
/**
|
|
@@ -17672,11 +17694,8 @@ declare module "@tiptap/core" {
|
|
|
17672
17694
|
|
|
17673
17695
|
declare module "@tiptap/core" {
|
|
17674
17696
|
interface Commands<ReturnType> {
|
|
17675
|
-
|
|
17676
|
-
|
|
17677
|
-
placeholder?: string;
|
|
17678
|
-
}) => ReturnType;
|
|
17679
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
17697
|
+
moodTracker: {
|
|
17698
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
17680
17699
|
};
|
|
17681
17700
|
}
|
|
17682
17701
|
}
|
|
@@ -17684,8 +17703,11 @@ declare module "@tiptap/core" {
|
|
|
17684
17703
|
|
|
17685
17704
|
declare module "@tiptap/core" {
|
|
17686
17705
|
interface Commands<ReturnType> {
|
|
17687
|
-
|
|
17688
|
-
|
|
17706
|
+
enhanceHighlight: {
|
|
17707
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
17708
|
+
placeholder?: string;
|
|
17709
|
+
}) => ReturnType;
|
|
17710
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
17689
17711
|
};
|
|
17690
17712
|
}
|
|
17691
17713
|
}
|
package/dist/f0.js
CHANGED
|
@@ -6,8 +6,8 @@ import React__default, { forwardRef, useRef, useImperativeHandle, Children, crea
|
|
|
6
6
|
import { D as AIButton, E as ForwardRef$1, G as animate, H as ForwardRef$f, I as ForwardRef$j, J as ForwardRef$k, K as ForwardRef$o, L as ForwardRef$t, M as ForwardRef$x, N as ForwardRef$z, O as F0Box, P as ForwardRef$J, Q as ForwardRef$K, R as ForwardRef$L, S as ForwardRef$M, U as ForwardRef$N, F as FormCardValueFormatterProvider } from "./F0AiProcessingOverlay-CxHydh9y.js";
|
|
7
7
|
import { A as ta, C as ea, t as ia, s as aa, v as na, y as la, l as ra, i as sa, q as oa, z as ca, B as da, p as ua, r as ha, j as ma, e as pa, g as ba, k as Za, T as ya, w as Ma, h as Na, a as ga, n as Wa, m as Ta, o as Ga, b as fa, f as va, x as La, c as Ya, d as Xa, u as Sa } from "./F0AiProcessingOverlay-CxHydh9y.js";
|
|
8
8
|
import { createPortal, unstable_batchedUpdates } from "react-dom";
|
|
9
|
-
import { C as Carousel, F as F0SegmentedControl, ah as isFieldRequired, ai as evaluateRenderIf, aj as buildDynamicSchema, ak as renderFieldInput, al as useF0Form, am as F0Form, G as F0ActionBar, an as F0FormSection, ao as nanoid, ap as dequal, Y as F0TableOfContent, a8 as Dialog$1, aq as FormMessage, Q as F0NumberInput, ar as EmojiPicker, as as data, c as ReorderItem, R as ReorderGroup, u as useDragControls, W as ResourceHeader, O as OneEmptyState, at as UpsellRequestResponseDialog, au as Label$1, av as UpsellingButton, o as BaseBanner, d as useDataCollectionSource, $ as OneDataCollection, aw as extractDisplayValue, ax as navigationFilterTypes, ay as NavigationFilters, az as DialogDescription, aA as PrivacyModeProvider, M as MotionConfig } from "./useDataCollectionSource-
|
|
10
|
-
import { r as Va, s as Ia, H as Ra, t as wa, z as za, aR as Da, aQ as Ca, aM as ka, aC as Oa, aB as Fa, aD as ja, aE as Ea, aa as Ua, a9 as Ja, ad as Pa, U as Ka, J as Ha, af as Aa, K as Qa, v as Ba, aS as $a, ab as qa, ac as tn, N as en, w as an, P as nn, y as ln, D as rn, ae as sn, T as on, ag as dn, x as un, E as hn, aU as mn, m as pn, n as bn, aL as Zn, aH as yn, aG as Mn, aT as Nn, a6 as gn, aJ as Wn, aK as Tn, I as Gn, aV as fn, aW as vn, e as Ln, aN as Yn, aO as Xn, aP as Sn, aI as xn, f as Vn, h as In, aF as Rn, aX as wn } from "./useDataCollectionSource-
|
|
9
|
+
import { C as Carousel, F as F0SegmentedControl, ah as isFieldRequired, ai as evaluateRenderIf, aj as buildDynamicSchema, ak as renderFieldInput, al as useF0Form, am as F0Form, G as F0ActionBar, an as F0FormSection, ao as nanoid, ap as dequal, Y as F0TableOfContent, a8 as Dialog$1, aq as FormMessage, Q as F0NumberInput, ar as EmojiPicker, as as data, c as ReorderItem, R as ReorderGroup, u as useDragControls, W as ResourceHeader, O as OneEmptyState, at as UpsellRequestResponseDialog, au as Label$1, av as UpsellingButton, o as BaseBanner, d as useDataCollectionSource, $ as OneDataCollection, aw as extractDisplayValue, ax as navigationFilterTypes, ay as NavigationFilters, az as DialogDescription, aA as PrivacyModeProvider, M as MotionConfig } from "./useDataCollectionSource-DIyckyBZ.js";
|
|
10
|
+
import { r as Va, s as Ia, H as Ra, t as wa, z as za, aR as Da, aQ as Ca, aM as ka, aC as Oa, aB as Fa, aD as ja, aE as Ea, aa as Ua, a9 as Ja, ad as Pa, U as Ka, J as Ha, af as Aa, K as Qa, v as Ba, aS as $a, ab as qa, ac as tn, N as en, w as an, P as nn, y as ln, D as rn, ae as sn, T as on, ag as dn, x as un, E as hn, aU as mn, m as pn, n as bn, aL as Zn, aH as yn, aG as Mn, aT as Nn, a6 as gn, aJ as Wn, aK as Tn, I as Gn, aV as fn, aW as vn, e as Ln, aN as Yn, aO as Xn, aP as Sn, aI as xn, f as Vn, h as In, aF as Rn, aX as wn } from "./useDataCollectionSource-DIyckyBZ.js";
|
|
11
11
|
import { utils, write as writeSync } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as Dn } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const CAROUSEL_COLUMNS = {
|
|
@@ -295,6 +295,8 @@ export declare const defaultTranslations: {
|
|
|
295
295
|
readonly settings: {
|
|
296
296
|
readonly showAllColumns: "Show all";
|
|
297
297
|
readonly hideAllColumns: "Hide all";
|
|
298
|
+
readonly addColumn: "Add column";
|
|
299
|
+
readonly removeColumn: "Remove column";
|
|
298
300
|
};
|
|
299
301
|
};
|
|
300
302
|
readonly editableTable: {
|
|
@@ -979,11 +981,8 @@ declare module "@tiptap/core" {
|
|
|
979
981
|
|
|
980
982
|
declare module "@tiptap/core" {
|
|
981
983
|
interface Commands<ReturnType> {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
placeholder?: string;
|
|
985
|
-
}) => ReturnType;
|
|
986
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
984
|
+
moodTracker: {
|
|
985
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
987
986
|
};
|
|
988
987
|
}
|
|
989
988
|
}
|
|
@@ -991,8 +990,11 @@ declare module "@tiptap/core" {
|
|
|
991
990
|
|
|
992
991
|
declare module "@tiptap/core" {
|
|
993
992
|
interface Commands<ReturnType> {
|
|
994
|
-
|
|
995
|
-
|
|
993
|
+
enhanceHighlight: {
|
|
994
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
995
|
+
placeholder?: string;
|
|
996
|
+
}) => ReturnType;
|
|
997
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
996
998
|
};
|
|
997
999
|
}
|
|
998
1000
|
}
|