@factorialco/f0-react 1.392.1 → 1.394.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/f0.d.ts CHANGED
@@ -1518,6 +1518,8 @@ declare type CollectionProps<Record extends RecordType, Filters extends FiltersD
1518
1518
  * Temporary prop to force the full width of the data collection (removes the X padding)
1519
1519
  */
1520
1520
  tmpFullWidth?: boolean;
1521
+ /** Indicates the source visualization type */
1522
+ fromVisualization?: "table" | "editableTable";
1521
1523
  } & VisualizationOptions;
1522
1524
 
1523
1525
  declare type CollectionVisualizations<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = {
@@ -2834,8 +2836,8 @@ export declare type DropIntent = {
2834
2836
  type: "cancel";
2835
2837
  };
2836
2838
 
2837
- /** The edit mode for a column cell in the editable table. Derived from value-display editors. */
2838
- declare type EditableTableCellEditType = EditableValueDisplayType;
2839
+ /** The edit mode for a column cell in the editable table. */
2840
+ declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect";
2839
2841
 
2840
2842
  declare type EditableTableCollectionProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = CollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, EditableTableVisualizationOptions<R, Filters, Sortings, Summaries>>;
2841
2843
 
@@ -2882,8 +2884,6 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
2882
2884
 
2883
2885
  declare type EditableTableVisualizationSettings = TableVisualizationSettings;
2884
2886
 
2885
- declare type EditableValueDisplayType = keyof typeof valueDisplayEditors;
2886
-
2887
2887
  export declare function Em({ children, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
2888
2888
 
2889
2889
  export declare function EmojiImage({ emoji, size, alt }: EmojiImageProps): JSX_2.Element;
@@ -6137,6 +6137,7 @@ declare type InputFieldProps<T> = {
6137
6137
  disabled?: boolean;
6138
6138
  onChange: (selected: boolean) => void;
6139
6139
  };
6140
+ transparent?: boolean;
6140
6141
  };
6141
6142
 
6142
6143
  declare type InputFieldSize = (typeof INPUTFIELD_SIZES)[number];
@@ -8575,41 +8576,6 @@ export declare const useXRay: () => {
8575
8576
  disable: () => void;
8576
8577
  };
8577
8578
 
8578
- /**
8579
- * Props contract that every editable value-display component must implement.
8580
- * The generic `V` allows type-specific editors (e.g. `string` for text, `Date` for date pickers).
8581
- */
8582
- declare type ValueDisplayEditorProps<V = string> = {
8583
- label: string;
8584
- value: V;
8585
- align?: "left" | "right";
8586
- error?: string;
8587
- loading?: boolean;
8588
- onChange: (value: V) => void;
8589
- };
8590
-
8591
- /**
8592
- * Registry that maps value-display types to their editable cell components.
8593
- * Not every type needs an editor — only types with editing support are registered here.
8594
- *
8595
- * To add a new editable type:
8596
- * 1. Add its value type to `ValueDisplayEditorValueMap` above
8597
- * 2. Create the editor component in `types/<type>/<type>-editor.tsx`
8598
- * 3. Export it from `types/<type>/index.tsx`
8599
- * 4. Register it here
8600
- */
8601
- declare const valueDisplayEditors: {
8602
- [K in keyof ValueDisplayEditorValueMap]: ComponentType<ValueDisplayEditorProps<ValueDisplayEditorValueMap[K]>>;
8603
- };
8604
-
8605
- /**
8606
- * Maps each editable value-display type to the value type its editor operates on.
8607
- * Extend this when adding a new editor (e.g. `date: Date`, `select: string`).
8608
- */
8609
- declare type ValueDisplayEditorValueMap = {
8610
- text: string;
8611
- };
8612
-
8613
8579
  declare type ValueDisplayRendererContext_2 = {
8614
8580
  visualization: ValueDisplayVisualizationType;
8615
8581
  i18n: TranslationsType;
@@ -8798,6 +8764,11 @@ declare module "gridstack" {
8798
8764
  }
8799
8765
 
8800
8766
 
8767
+ declare namespace Calendar {
8768
+ var displayName: string;
8769
+ }
8770
+
8771
+
8801
8772
  declare module "@tiptap/core" {
8802
8773
  interface Commands<ReturnType> {
8803
8774
  aiBlock: {
@@ -8827,15 +8798,6 @@ declare module "@tiptap/core" {
8827
8798
  }
8828
8799
 
8829
8800
 
8830
- declare module "@tiptap/core" {
8831
- interface Commands<ReturnType> {
8832
- transcript: {
8833
- insertTranscript: (data: TranscriptData) => ReturnType;
8834
- };
8835
- }
8836
- }
8837
-
8838
-
8839
8801
  declare module "@tiptap/core" {
8840
8802
  interface Commands<ReturnType> {
8841
8803
  videoEmbed: {
@@ -8847,6 +8809,10 @@ declare module "@tiptap/core" {
8847
8809
  }
8848
8810
 
8849
8811
 
8850
- declare namespace Calendar {
8851
- var displayName: string;
8812
+ declare module "@tiptap/core" {
8813
+ interface Commands<ReturnType> {
8814
+ transcript: {
8815
+ insertTranscript: (data: TranscriptData) => ReturnType;
8816
+ };
8817
+ }
8852
8818
  }
package/dist/f0.js CHANGED
@@ -1,12 +1,12 @@
1
- import { ad as ye, ae as ut, a9 as ue, aa as Xt, af as yo, ag as Mi, ah as Ii, ai as hs, aj as Kl, ak as bo, al as wt, u as kt, am as Wr, an as Xl, ao as Yl, ap as Jl, aq as Ql, ar as at, as as ec, at as tc, au as Nr, av as Yn, aw as rc, ax as nc, ay as ic, az as ms, aA as sc, aB as oc, aC as xo, aD as ac, aE as wo, aF as _o, aG as Li, aH as Co, aI as Eo, aJ as ln, aK as So, aL as lc, aM as cc, aN as dc, aO as uc, aP as fc, ab as qe, aQ as ps, aR as hc, aS as mc, aT as pc, aU as gc, aV as ko, aW as vc, aX as yc, aY as bc, aZ as Do, a_ as xc, a$ as ar, b0 as wc, b1 as _c, b2 as Cc, b3 as Ec, b4 as Pi, b5 as Sc, b6 as No, b7 as kc, ac as Dc, b8 as Nc, b9 as Rc, ba as Tc, bb as Ac, bc as Oc, bd as Ro, be as Mc, bf as Ic, bg as Lc, bh as Pc, bi as Fc, bj as zc, bk as Bc, bl as Vc, bm as Hc, bn as jc, bo as $c, bp as Wc, I as Gc, bq as Uc, br as Zc, bs as qc, bt as Kc } from "./F0AiChat-h8gS_RRF.js";
2
- import { A as Pv, bS as Fv, B as zv, C as Bv, q as Vv, c5 as Hv, E as jv, h as $v, F as Wv, a as Gv, D as Uv, i as Zv, b as qv, bu as Kv, bv as Xv, bw as Yv, bx as Jv, bz as Qv, bA as ey, bB as ty, bC as ry, bF as ny, j as iy, bG as sy, bH as oy, bI as ay, c1 as ly, w as cy, x as dy, y as uy, bL as fy, bM as hy, bN as my, bO as py, bQ as gy, bR as vy, z as yy, c as by, bT as xy, r as wy, s as _y, t as Cy, H as Ey, m as Sy, L as ky, O as Dy, bK as Ny, v as Ry, P as Ty, S as Ay, T as Oy, n as My, bP as Iy, o as Ly, p as Py, U as Fy, c2 as zy, bD as By, bE as Vy, bY as Hy, k as jy, l as $y, b$ as Wy, bX as Gy, c6 as Uy, bW as Zy, bV as qy, by as Ky, d as Xy, bU as Yy, bZ as Jy, e as Qy, c7 as eb, bJ as tb, b_ as rb, g as nb, f as ib, c4 as sb, c0 as ob, c3 as ab } from "./F0AiChat-h8gS_RRF.js";
1
+ import { ad as ye, ae as ut, a9 as ue, aa as Xt, af as yo, ag as Mi, ah as Ii, ai as hs, aj as Kl, ak as bo, al as wt, u as kt, am as Wr, an as Xl, ao as Yl, ap as Jl, aq as Ql, ar as at, as as ec, at as tc, au as Nr, av as Yn, aw as rc, ax as nc, ay as ic, az as ms, aA as sc, aB as oc, aC as xo, aD as ac, aE as wo, aF as _o, aG as Li, aH as Co, aI as Eo, aJ as ln, aK as So, aL as lc, aM as cc, aN as dc, aO as uc, aP as fc, ab as qe, aQ as ps, aR as hc, aS as mc, aT as pc, aU as gc, aV as ko, aW as vc, aX as yc, aY as bc, aZ as Do, a_ as xc, a$ as ar, b0 as wc, b1 as _c, b2 as Cc, b3 as Ec, b4 as Pi, b5 as Sc, b6 as No, b7 as kc, ac as Dc, b8 as Nc, b9 as Rc, ba as Tc, bb as Ac, bc as Oc, bd as Ro, be as Mc, bf as Ic, bg as Lc, bh as Pc, bi as Fc, bj as zc, bk as Bc, bl as Vc, bm as Hc, bn as jc, bo as $c, bp as Wc, I as Gc, bq as Uc, br as Zc, bs as qc, bt as Kc } from "./F0AiChat-DJTQ9AEc.js";
2
+ import { A as Pv, bS as Fv, B as zv, C as Bv, q as Vv, c5 as Hv, E as jv, h as $v, F as Wv, a as Gv, D as Uv, i as Zv, b as qv, bu as Kv, bv as Xv, bw as Yv, bx as Jv, bz as Qv, bA as ey, bB as ty, bC as ry, bF as ny, j as iy, bG as sy, bH as oy, bI as ay, c1 as ly, w as cy, x as dy, y as uy, bL as fy, bM as hy, bN as my, bO as py, bQ as gy, bR as vy, z as yy, c as by, bT as xy, r as wy, s as _y, t as Cy, H as Ey, m as Sy, L as ky, O as Dy, bK as Ny, v as Ry, P as Ty, S as Ay, T as Oy, n as My, bP as Iy, o as Ly, p as Py, U as Fy, c2 as zy, bD as By, bE as Vy, bY as Hy, k as jy, l as $y, b$ as Wy, bX as Gy, c6 as Uy, bW as Zy, bV as qy, by as Ky, d as Xy, bU as Yy, bZ as Jy, e as Qy, c7 as eb, bJ as tb, b_ as rb, g as nb, f as ib, c4 as sb, c0 as ob, c3 as ab } from "./F0AiChat-DJTQ9AEc.js";
3
3
  import { jsx as f, jsxs as W, Fragment as Yt } from "react/jsx-runtime";
4
4
  import * as lt from "react";
5
5
  import q, { forwardRef as Ke, useRef as Y, useImperativeHandle as Xc, Children as cn, createContext as yt, useContext as ct, useState as ie, useMemo as H, useEffect as ne, useCallback as K, useLayoutEffect as fi, createElement as Qr, isValidElement as To, Fragment as Yc, memo as Jc, useReducer as Qc, cloneElement as ed, PureComponent as td, useId as rd } from "react";
6
6
  import { createPortal as Ao, unstable_batchedUpdates as en, flushSync as nd } from "react-dom";
7
- import { L as Oo, C as id, i as Mo, S as gs, a as sd, f as Jn, b as _r, c as od, A as ad, d as tn, e as Io, E as ld, g as sn, h as cd, j as dd, k as ud, l as ir, m as Lo, u as fd, G as hd, n as md, o as vs, p as pd, q as Po, r as gd, B as Fo, X as zo, Y as hi, s as vd, t as Bo, v as yd, w as bd, x as xd, y as wd, z as _d, D as Cd, F as Ed, H as Sd, I as ys, J as kd, K as Dd, M as Nd, N as Rd, O as Td, P as Ad, Q as Od, R as Md, V as Id, T as Ld, U as mi, W as Vo, Z as Pd, _ as Fd, $ as zd, a0 as Bd, a1 as Ho, a2 as jo, a3 as Vd, a4 as $o, a5 as Wo, a6 as Hd, a7 as jd, a8 as $d, a9 as Wd } from "./DataCollectionStorageProvider-DTCCd5RJ.js";
8
- import { af as cb, aa as db, ad as ub, ae as fb, ab as hb, ac as mb, ag as pb, ah as gb, ai as vb, aj as yb } from "./DataCollectionStorageProvider-DTCCd5RJ.js";
9
- import { A as xb, F as wb, c as _b, d as Cb, b as Eb, a as Sb, o as kb, u as Db } from "./F0HILActionConfirmation-5F-_yw3W.js";
7
+ import { L as Oo, C as id, i as Mo, S as gs, a as sd, f as Jn, b as _r, c as od, A as ad, d as tn, e as Io, E as ld, g as sn, h as cd, j as dd, k as ud, l as ir, m as Lo, u as fd, G as hd, n as md, o as vs, p as pd, q as Po, r as gd, B as Fo, X as zo, Y as hi, s as vd, t as Bo, v as yd, w as bd, x as xd, y as wd, z as _d, D as Cd, F as Ed, H as Sd, I as ys, J as kd, K as Dd, M as Nd, N as Rd, O as Td, P as Ad, Q as Od, R as Md, V as Id, T as Ld, U as mi, W as Vo, Z as Pd, _ as Fd, $ as zd, a0 as Bd, a1 as Ho, a2 as jo, a3 as Vd, a4 as $o, a5 as Wo, a6 as Hd, a7 as jd, a8 as $d, a9 as Wd } from "./DataCollectionStorageProvider-CaTG4Ci9.js";
8
+ import { af as cb, aa as db, ad as ub, ae as fb, ab as hb, ac as mb, ag as pb, ah as gb, ai as vb, aj as yb } from "./DataCollectionStorageProvider-CaTG4Ci9.js";
9
+ import { A as xb, F as wb, c as _b, d as Cb, b as Eb, a as Sb, o as kb, u as Db } from "./F0HILActionConfirmation-oROEEYv_.js";
10
10
  import { defaultTranslations as Rb } from "./i18n-provider-defaults.js";
11
11
  import './f0.css';const Gd = {
12
12
  xs: 1,
@@ -646,6 +646,11 @@ declare module "gridstack" {
646
646
  }
647
647
 
648
648
 
649
+ declare namespace Calendar {
650
+ var displayName: string;
651
+ }
652
+
653
+
649
654
  declare module "@tiptap/core" {
650
655
  interface Commands<ReturnType> {
651
656
  aiBlock: {
@@ -675,15 +680,6 @@ declare module "@tiptap/core" {
675
680
  }
676
681
 
677
682
 
678
- declare module "@tiptap/core" {
679
- interface Commands<ReturnType> {
680
- transcript: {
681
- insertTranscript: (data: TranscriptData) => ReturnType;
682
- };
683
- }
684
- }
685
-
686
-
687
683
  declare module "@tiptap/core" {
688
684
  interface Commands<ReturnType> {
689
685
  videoEmbed: {
@@ -695,6 +691,10 @@ declare module "@tiptap/core" {
695
691
  }
696
692
 
697
693
 
698
- declare namespace Calendar {
699
- var displayName: string;
694
+ declare module "@tiptap/core" {
695
+ interface Commands<ReturnType> {
696
+ transcript: {
697
+ insertTranscript: (data: TranscriptData) => ReturnType;
698
+ };
699
+ }
700
700
  }