@factorialco/f0-react 2.6.2 → 2.8.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/{F0AiProposalCard-B0qT-XmB.js → F0AiProposalCard-CsyaQRNb.js} +11555 -11503
- package/dist/ai.d.ts +8 -8
- package/dist/ai.js +1 -1
- package/dist/experimental.d.ts +14 -10
- package/dist/experimental.js +1470 -1400
- package/dist/f0.d.ts +32 -10
- package/dist/f0.js +2 -2
- package/dist/i18n-provider-defaults.d.ts +8 -8
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -7351,6 +7351,28 @@ declare interface F0FormActionBarSubmitConfig extends F0FormSubmitConfigBase {
|
|
|
7351
7351
|
actionBarLabel?: string;
|
|
7352
7352
|
}
|
|
7353
7353
|
|
|
7354
|
+
/**
|
|
7355
|
+
* Submit configuration for autosubmit type.
|
|
7356
|
+
*
|
|
7357
|
+
* Automatically submits the form after the user stops editing for `delay` ms.
|
|
7358
|
+
* Validation runs on every debounced submit attempt; invalid forms surface
|
|
7359
|
+
* errors and skip `onSubmit` (handled by react-hook-form).
|
|
7360
|
+
*/
|
|
7361
|
+
declare interface F0FormAutosubmitConfig extends F0FormSubmitConfigBase {
|
|
7362
|
+
/** Type of submit UI (debounced auto-submit) */
|
|
7363
|
+
type: "autosubmit";
|
|
7364
|
+
/**
|
|
7365
|
+
* Delay in ms between the last change and the auto-submit.
|
|
7366
|
+
* @default 800
|
|
7367
|
+
*/
|
|
7368
|
+
delay?: number;
|
|
7369
|
+
/**
|
|
7370
|
+
* When true, hides the internal action bar (loading/success feedback).
|
|
7371
|
+
* @default false
|
|
7372
|
+
*/
|
|
7373
|
+
hideActionBar?: boolean;
|
|
7374
|
+
}
|
|
7375
|
+
|
|
7354
7376
|
/**
|
|
7355
7377
|
* Common props shared across all F0Form variants (formDefinition-based).
|
|
7356
7378
|
* Used as the constraint for `F0FormLikeComponent`.
|
|
@@ -7465,7 +7487,7 @@ export declare interface F0FormDiscardConfig {
|
|
|
7465
7487
|
}
|
|
7466
7488
|
|
|
7467
7489
|
/**
|
|
7468
|
-
* When to trigger and display validation errors
|
|
7490
|
+
* When to trigger and display validation errors (does not apply with autosubmit)
|
|
7469
7491
|
* - "on-blur": Errors appear when the user leaves a field (default)
|
|
7470
7492
|
* - "on-change": Errors appear as the user types (real-time validation)
|
|
7471
7493
|
* - "on-submit": Errors only appear after attempting to submit the form
|
|
@@ -8107,7 +8129,7 @@ export declare interface F0FormStylingConfig {
|
|
|
8107
8129
|
/**
|
|
8108
8130
|
* Configuration for form submission behavior and appearance
|
|
8109
8131
|
*/
|
|
8110
|
-
export declare type F0FormSubmitConfig = F0FormDefaultSubmitConfig | F0FormActionBarSubmitConfig;
|
|
8132
|
+
export declare type F0FormSubmitConfig = F0FormDefaultSubmitConfig | F0FormActionBarSubmitConfig | F0FormAutosubmitConfig;
|
|
8111
8133
|
|
|
8112
8134
|
/**
|
|
8113
8135
|
* Base configuration shared by all submit types
|
|
@@ -14411,12 +14433,12 @@ declare global {
|
|
|
14411
14433
|
}
|
|
14412
14434
|
|
|
14413
14435
|
|
|
14414
|
-
declare namespace
|
|
14436
|
+
declare namespace _DaytimePage {
|
|
14415
14437
|
var displayName: string;
|
|
14416
14438
|
}
|
|
14417
14439
|
|
|
14418
14440
|
|
|
14419
|
-
declare namespace
|
|
14441
|
+
declare namespace _Page {
|
|
14420
14442
|
var displayName: string;
|
|
14421
14443
|
}
|
|
14422
14444
|
|
|
@@ -14445,9 +14467,9 @@ declare namespace Calendar {
|
|
|
14445
14467
|
|
|
14446
14468
|
declare module "@tiptap/core" {
|
|
14447
14469
|
interface Commands<ReturnType> {
|
|
14448
|
-
|
|
14449
|
-
|
|
14450
|
-
|
|
14470
|
+
aiBlock: {
|
|
14471
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
14472
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
14451
14473
|
};
|
|
14452
14474
|
}
|
|
14453
14475
|
}
|
|
@@ -14455,9 +14477,9 @@ declare module "@tiptap/core" {
|
|
|
14455
14477
|
|
|
14456
14478
|
declare module "@tiptap/core" {
|
|
14457
14479
|
interface Commands<ReturnType> {
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14480
|
+
enhanceHighlight: {
|
|
14481
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
14482
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
14461
14483
|
};
|
|
14462
14484
|
}
|
|
14463
14485
|
}
|
package/dist/f0.js
CHANGED
|
@@ -2,8 +2,8 @@ import { fc as Pr, ad as se, bq as zn, t as I, w as mt, fd as Hr, v as xt, dd as
|
|
|
2
2
|
import { gw as Qf, d as Kf, bX as Xf, l as Yf, gI as Jf, aU as Zf, k as em, F as tm, a as nm, C as im, go as rm, b as sm, bG as om, bb as am, bH as lm, g6 as cm, aM as dm, bp as um, ap as hm, g7 as fm, ay as mm, g8 as gm, gc as pm, gd as vm, ge as bm, gN as ym, b1 as xm, n as wm, aA as Cm, by as Nm, gr as Sm, b5 as Em, gs as _m, gu as Dm, gv as km, cB as Rm, cz as Tm, e as Fm, h as Lm, gx as Am, cl as zm, cm as Om, g5 as Mm, gM as Im, a_ as Bm, cA as Pm, gt as Hm, cn as Wm, bV as qm, gO as $m, g9 as Gm, ga as jm, gb as Um, co as Vm, gH as Qm, gC as Km, gq as Xm, gk as Ym, gj as Jm, gi as Zm, gF as eg, gB as tg, aY as ng, ck as ig, ch as rg, cj as sg, cg as og, gl as ag, gA as lg, gz as cg, gm as dg, c3 as ug, ci as hg, gg as fg, gh as mg, gn as gg, g as pg, c as vg, gy as bg, gD as yg, gJ as xg, gK as wg, gL as Cg, aW as Ng, gp as Sg, gf as Eg, i as _g, gE as Dg, br as kg, aT as Rg, gG as Tg, j as Fg, f as Lg, gP as Ag } from "./useDataCollectionSource-DRE8x9t0.js";
|
|
3
3
|
import { jsx as l, jsxs as y, Fragment as we } from "react/jsx-runtime";
|
|
4
4
|
import le, { forwardRef as We, useRef as W, useImperativeHandle as Wa, Children as xn, createContext as Ke, useContext as ke, useState as j, useMemo as P, useEffect as V, useCallback as B, useLayoutEffect as ui, createElement as an, isValidElement as os, Fragment as qa, memo as as, useReducer as $a, cloneElement as Ga, useId as ls } from "react";
|
|
5
|
-
import { t as ja, v as Ua, w as cs, x as Va, y as Qa, z as Wn, B as Ka, E as Fi, G as Xa, H as Ya, I as Ja, J as ds, K as wn, L as Li, N as us, O as Za, P as hs, Q as sr, R as el } from "./F0AiProposalCard-
|
|
6
|
-
import { A as Og, V as Mg, C as Ig, c as Bg, D as Pg, a as Hg, b as Wg, T as qg, e as $g, f as Gg, g as jg, h as Ug, p as Vg, l as Qg, r as Kg, a0 as Xg, m as Yg, S as Jg, a1 as Zg, n as ep, i as tp, a6 as np, F as ip, d as rp, W as sp, X as op, Y as ap, Z as lp, M as cp, _ as dp, $ as up, k as hp, j as fp, U as mp, q as gp, a4 as pp, a3 as vp, o as bp, s as yp, u as xp, a5 as wp, a7 as Cp, a2 as Np } from "./F0AiProposalCard-
|
|
5
|
+
import { t as ja, v as Ua, w as cs, x as Va, y as Qa, z as Wn, B as Ka, E as Fi, G as Xa, H as Ya, I as Ja, J as ds, K as wn, L as Li, N as us, O as Za, P as hs, Q as sr, R as el } from "./F0AiProposalCard-CsyaQRNb.js";
|
|
6
|
+
import { A as Og, V as Mg, C as Ig, c as Bg, D as Pg, a as Hg, b as Wg, T as qg, e as $g, f as Gg, g as jg, h as Ug, p as Vg, l as Qg, r as Kg, a0 as Xg, m as Yg, S as Jg, a1 as Zg, n as ep, i as tp, a6 as np, F as ip, d as rp, W as sp, X as op, Y as ap, Z as lp, M as cp, _ as dp, $ as up, k as hp, j as fp, U as mp, q as gp, a4 as pp, a3 as vp, o as bp, s as yp, u as xp, a5 as wp, a7 as Cp, a2 as Np } from "./F0AiProposalCard-CsyaQRNb.js";
|
|
7
7
|
import { createPortal as fs, unstable_batchedUpdates as ln } from "react-dom";
|
|
8
8
|
import { C as tl, D as nl, y as il, j as rl } from "./index-e2iWrXZ7.js";
|
|
9
9
|
import { l as Ep, m as _p, n as Dp, s as kp, F as Rp, o as Tp, v as Fp, w as Lp, N as Ap, x as zp, p as Op, P as Mp, r as Ip, R as Bp, q as Pp, u as Hp, t as Wp } from "./index-e2iWrXZ7.js";
|
|
@@ -804,12 +804,12 @@ declare global {
|
|
|
804
804
|
}
|
|
805
805
|
|
|
806
806
|
|
|
807
|
-
declare namespace
|
|
807
|
+
declare namespace _DaytimePage {
|
|
808
808
|
var displayName: string;
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
|
|
812
|
-
declare namespace
|
|
812
|
+
declare namespace _Page {
|
|
813
813
|
var displayName: string;
|
|
814
814
|
}
|
|
815
815
|
|
|
@@ -838,9 +838,9 @@ declare namespace Calendar {
|
|
|
838
838
|
|
|
839
839
|
declare module "@tiptap/core" {
|
|
840
840
|
interface Commands<ReturnType> {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
841
|
+
aiBlock: {
|
|
842
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
843
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
846
|
}
|
|
@@ -848,9 +848,9 @@ declare module "@tiptap/core" {
|
|
|
848
848
|
|
|
849
849
|
declare module "@tiptap/core" {
|
|
850
850
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
851
|
+
enhanceHighlight: {
|
|
852
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
853
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
}
|