@factorialco/f0-react 1.300.0 → 1.302.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/experimental.d.ts +36 -38
- package/dist/experimental.js +3 -3
- package/dist/f0.css +1 -1
- package/dist/f0.d.ts +46 -91
- package/dist/f0.js +1213 -958
- package/dist/{hooks-CxaQvlbP.js → hooks-CeXouPJ8.js} +109079 -109069
- package/dist/i18n-provider-defaults.d.ts +24 -31
- package/dist/i18n-provider-defaults.js +2 -1
- package/dist/styles.css +1 -1
- package/package.json +7 -2
package/dist/experimental.d.ts
CHANGED
|
@@ -628,7 +628,7 @@ export declare const AreaChartWidget: ForwardRefExoticComponent<Omit<AreaChartWi
|
|
|
628
628
|
|
|
629
629
|
export declare const AutoGrid: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
630
630
|
tileSize?: "lg" | "md" | "sm" | undefined;
|
|
631
|
-
gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "
|
|
631
|
+
gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "px" | "xl" | "0.5" | "1.5" | "2.5" | undefined;
|
|
632
632
|
} & ({
|
|
633
633
|
class?: ClassValue;
|
|
634
634
|
className?: never;
|
|
@@ -2455,6 +2455,7 @@ declare const defaultTranslations: {
|
|
|
2455
2455
|
readonly placeholder: "Share what didn’t work";
|
|
2456
2456
|
};
|
|
2457
2457
|
};
|
|
2458
|
+
readonly ask: "Ask One";
|
|
2458
2459
|
};
|
|
2459
2460
|
readonly select: {
|
|
2460
2461
|
readonly noResults: "No results found";
|
|
@@ -3005,6 +3006,11 @@ declare type F0SelectProps<T extends string, R = unknown> = F0SelectBaseProps<T,
|
|
|
3005
3006
|
* - When allSelected is false: included items are those with checked=true
|
|
3006
3007
|
*/
|
|
3007
3008
|
onSelectItems?: OnSelectItemsCallback<ResolvedRecordType<R>, FiltersDefinition>;
|
|
3009
|
+
/**
|
|
3010
|
+
* Disables the "Select All" functionality, forcing manual selection of items one by one.
|
|
3011
|
+
* When enabled, the allSelected state will always be false and users must select items individually.
|
|
3012
|
+
*/
|
|
3013
|
+
disableSelectAll?: boolean;
|
|
3008
3014
|
}) & ({
|
|
3009
3015
|
source: DataSourceDefinition<ResolvedRecordType<R>, FiltersDefinition, SortingsDefinition, GroupingDefinition<ResolvedRecordType<R>>>;
|
|
3010
3016
|
mapOptions: (item: ResolvedRecordType<R>) => F0SelectItemProps<T, ResolvedRecordType<R>>;
|
|
@@ -3038,7 +3044,7 @@ value?: string;
|
|
|
3038
3044
|
threshold?: number;
|
|
3039
3045
|
debounceTime?: number;
|
|
3040
3046
|
autoFocus?: boolean;
|
|
3041
|
-
} & Pick<InputFieldProps<string>, "onChange" | "
|
|
3047
|
+
} & Pick<InputFieldProps<string>, "onChange" | "name" | "onFocus" | "onBlur" | "disabled" | "placeholder" | "size" | "loading" | "clearable"> & RefAttributes<HTMLInputElement>>;
|
|
3042
3048
|
|
|
3043
3049
|
declare type FavoriteMenuItem = ({
|
|
3044
3050
|
type: "icon";
|
|
@@ -3567,7 +3573,7 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
|
|
|
3567
3573
|
|
|
3568
3574
|
export declare const Input: <T extends string>(props: InputProps<T>) => JSX_2.Element;
|
|
3569
3575
|
|
|
3570
|
-
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "role" | "onFocus" | "onBlur" | "disabled" | "maxLength" | "required" | "size" | "loading" | "
|
|
3576
|
+
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "role" | "onFocus" | "onBlur" | "status" | "disabled" | "maxLength" | "required" | "size" | "loading" | "error" | "icon" | "append" | "hideLabel" | "labelIcon" | "onClickContent" | "hint" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
3571
3577
|
|
|
3572
3578
|
declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
|
|
3573
3579
|
|
|
@@ -5445,7 +5451,7 @@ declare interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
|
|
5445
5451
|
}
|
|
5446
5452
|
|
|
5447
5453
|
declare const spinnerVariants: (props?: ({
|
|
5448
|
-
size?: "small" | "
|
|
5454
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
5449
5455
|
} & ({
|
|
5450
5456
|
class?: ClassValue;
|
|
5451
5457
|
className?: never;
|
|
@@ -5474,7 +5480,7 @@ className?: never;
|
|
|
5474
5480
|
class?: never;
|
|
5475
5481
|
className?: ClassValue;
|
|
5476
5482
|
})) | undefined) => string> & VariantProps<(props?: ({
|
|
5477
|
-
gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "
|
|
5483
|
+
gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "px" | "xl" | "0.5" | "1.5" | "2.5" | undefined;
|
|
5478
5484
|
wrap?: boolean | undefined;
|
|
5479
5485
|
} & ({
|
|
5480
5486
|
class?: ClassValue;
|
|
@@ -5504,7 +5510,7 @@ className?: never;
|
|
|
5504
5510
|
class?: never;
|
|
5505
5511
|
className?: ClassValue;
|
|
5506
5512
|
})) | undefined) => string> & VariantProps<(props?: ({
|
|
5507
|
-
gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "
|
|
5513
|
+
gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "px" | "xl" | "0.5" | "1.5" | "2.5" | undefined;
|
|
5508
5514
|
} & ({
|
|
5509
5515
|
class?: ClassValue;
|
|
5510
5516
|
className?: never;
|
|
@@ -5776,7 +5782,7 @@ export declare const Textarea: React.FC<TextareaProps>;
|
|
|
5776
5782
|
|
|
5777
5783
|
declare const Textarea_2: React_2.ForwardRefExoticComponent<Omit<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
|
|
5778
5784
|
value?: string;
|
|
5779
|
-
} & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "
|
|
5785
|
+
} & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "status" | "maxLength" | "placeholder" | "error" | "icon" | "hideLabel" | "labelIcon" | "hint" | "clearable" | "onClear"> & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
5780
5786
|
|
|
5781
5787
|
export declare type TextareaProps = Pick<ComponentProps<typeof Textarea_2>, "disabled" | "onChange" | "value" | "placeholder" | "rows" | "cols" | "label" | "labelIcon" | "icon" | "hideLabel" | "maxLength" | "clearable" | "onBlur" | "onFocus" | "name" | "status" | "hint" | "error">;
|
|
5782
5788
|
|
|
@@ -6366,6 +6372,23 @@ declare global {
|
|
|
6366
6372
|
}
|
|
6367
6373
|
}
|
|
6368
6374
|
|
|
6375
|
+
declare module "gridstack" {
|
|
6376
|
+
interface GridStackWidget {
|
|
6377
|
+
id?: string;
|
|
6378
|
+
allowedSizes?: Array<{
|
|
6379
|
+
w: number;
|
|
6380
|
+
h: number;
|
|
6381
|
+
}>;
|
|
6382
|
+
meta?: Record<string, unknown>;
|
|
6383
|
+
}
|
|
6384
|
+
interface GridStackNode {
|
|
6385
|
+
allowedSizes?: Array<{
|
|
6386
|
+
w: number;
|
|
6387
|
+
h: number;
|
|
6388
|
+
}>;
|
|
6389
|
+
}
|
|
6390
|
+
}
|
|
6391
|
+
|
|
6369
6392
|
|
|
6370
6393
|
declare module "@tiptap/core" {
|
|
6371
6394
|
interface Commands<ReturnType> {
|
|
@@ -6378,8 +6401,8 @@ declare module "@tiptap/core" {
|
|
|
6378
6401
|
|
|
6379
6402
|
declare module "@tiptap/core" {
|
|
6380
6403
|
interface Commands<ReturnType> {
|
|
6381
|
-
|
|
6382
|
-
|
|
6404
|
+
liveCompanion: {
|
|
6405
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
6383
6406
|
};
|
|
6384
6407
|
}
|
|
6385
6408
|
}
|
|
@@ -6387,35 +6410,15 @@ declare module "@tiptap/core" {
|
|
|
6387
6410
|
|
|
6388
6411
|
declare module "@tiptap/core" {
|
|
6389
6412
|
interface Commands<ReturnType> {
|
|
6390
|
-
|
|
6391
|
-
|
|
6413
|
+
transcript: {
|
|
6414
|
+
insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
|
|
6392
6415
|
};
|
|
6393
6416
|
}
|
|
6394
6417
|
}
|
|
6395
6418
|
|
|
6396
6419
|
|
|
6397
|
-
declare
|
|
6398
|
-
|
|
6399
|
-
id?: string;
|
|
6400
|
-
allowedSizes?: Array<{
|
|
6401
|
-
w: number;
|
|
6402
|
-
h: number;
|
|
6403
|
-
}>;
|
|
6404
|
-
renderFn?: () => React.ReactElement | null;
|
|
6405
|
-
meta?: Record<string, unknown>;
|
|
6406
|
-
}
|
|
6407
|
-
interface GridStackNode {
|
|
6408
|
-
id?: string;
|
|
6409
|
-
w?: number;
|
|
6410
|
-
h?: number;
|
|
6411
|
-
x?: number;
|
|
6412
|
-
y?: number;
|
|
6413
|
-
allowedSizes?: Array<{
|
|
6414
|
-
w: number;
|
|
6415
|
-
h: number;
|
|
6416
|
-
}>;
|
|
6417
|
-
renderFn?: () => React.ReactElement | null;
|
|
6418
|
-
}
|
|
6420
|
+
declare namespace Calendar {
|
|
6421
|
+
var displayName: string;
|
|
6419
6422
|
}
|
|
6420
6423
|
|
|
6421
6424
|
|
|
@@ -6426,8 +6429,3 @@ declare module "@tiptap/core" {
|
|
|
6426
6429
|
};
|
|
6427
6430
|
}
|
|
6428
6431
|
}
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
declare namespace Calendar {
|
|
6432
|
-
var displayName: string;
|
|
6433
|
-
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { bC as Gm, bD as Hc, bE as uA, bF as hA, bG as Km, bH as py, bI as Ls, am as a0, bJ as Wr, bK as l0, bL as Ts, bM as Lf, ar as ni, bN as sl, bO as Zm, bP as pA, bQ as ks, bR as $c, bS as mA, bT as gA, bU as vA, bV as yA, bW as Jm, bX as my, bY as gy, bZ as xA, b_ as kA, b$ as wA, c0 as Xm, c1 as Tf, c2 as bA, c3 as vy, c4 as Ym, c5 as Qm, c6 as CA, c7 as c0, aA as yy, c8 as e3, c9 as _A, ca as xy, cb as ky, cc as E5, cd as Af, ce as SA, cf as EA, cg as LA, ch as Lh, ci as TA, cj as AA, ck as MA, ah as we, cl as wy, cm as NA, f as qa, cn as Vc, o as yd, co as by, m as l1, cp as OA, e as Th, cq as FA, A as DA, i as c1, h as IA, q as RA, G as PA, k as L5, cr as BA, p as T5, cs as HA, t as $A, ct as Cy, cu as _y, cv as VA, cw as Mf, as as Le, al as We, c as D, cx as Nf, cy as t3, cz as n3, cA as qn, cB as $n, cC as Of, cD as Ml, cE as xd, by as Nl, cF as us, cG as Ye, cH as da, cI as ht, b0 as cs, aq as Ft, cJ as zA, cK as i3, cL as A5, cM as jA, cN as WA, cO as UA, an as Sy, ao as Ey, cP as Ly, cQ as Ty, cR as To, cS as qA, cT as M5, cU as GA, cV as KA, cW as ZA, cX as Kt, a as ai, cY as ye, cZ as f0, c_ as bi, c$ as r3, a9 as Ni, aa as JA, d0 as Ay, d1 as s3, b1 as ol, d2 as Qp, d3 as My, d4 as Ny, d5 as Oy, d6 as Fy, d7 as Dy, a7 as zt, d8 as Iy, d9 as Ry, da as Py, db as By, dc as Hy, dd as XA, de as YA, df as d0, dg as $y, C as QA, be as eM, dh as Oi, ak as Jo, di as hn, ai as o3, ap as e2, dj as N5, dk as kd, dl as tM, ab as ua, dm as Xo, dn as Vy, dp as nM, dq as O5, dr as al, ds as a3, dt as Ff, du as wd, dv as iM, dw as zy, dx as rM, dy as l3, dz as zc, dA as Fi, dB as sM, dC as oM, dD as $s, dE as Ah, dF as aM, dG as cc, dH as Da, dI as lM, dJ as jy, dK as cM, dL as fM, dM, dN as uM, ae as ii, y as hM, F as pM, H as mM, J as gM, P as F5, Q as D5, R as vM, T as yM, dO as xM, dP as Mh, dQ as c3, dR as kM, dS as wM, dT as bM, a_ as CM, dU as _M, bz as Df, aZ as bd, dV as Wy, b as Ri, dW as u0, aW as ws, dX as SM, dY as EM, dZ as Uy, aU as yr, d_ as LM, d$ as qy, e0 as Gy, e1 as Ol, e2 as f3, e3 as TM, e4 as Ky, e5 as AM, e6 as MM, a5 as d3, a6 as u3, a8 as h3, e7 as Zy, e8 as NM, e9 as OM, ea as FM, eb as Jy, aw as DM, ec as t2, ed as Xy, aR as Cd, ee as IM, ef as RM, eg as PM, eh as BM, ei as HM, aO as n2, bB as $M, bA as VM, ej as Yy, aj as ro, ek as zM, el as jM, b7 as h0, aS as p3, aL as If, em as Qy, aV as WM, aN as ex, aJ as tx, en as UM, eo as nx, ep as qM, aM as Fl, aP as ix, ay as GM, eq as KM, bg as ZM, bh as JM, bo as p0, bm as m3, au as m0, er as g0, es as v0, av as y0, et as g3, bn as rx, aY as v3, eu as XM, bs as YM, ev as i2, ew as QM, ex as _d, ey as eN, bi as Sd, bt as tN, ez as nN, br as sx, eA as iN, bq as rN, bp as sN, eB as oN, eC as aN, eD as y3, eE as lN, eF as cN, eG as fN, eH as dN, eI as uN, eJ as hN, eK as pN, eL as mN, ag as ox, b3 as gN, bl as vN, eM as yN, eN as xN, eO as kN, aQ as wN, eP as Rf, eQ as x3, aX as k3, eR as w3, eS as Pf, eT as bN, eU as ax, eV as I5, eW as CN, eX as _N, bu as lx, eY as cx, b4 as fx, eZ as SN, e_ as EN, e$ as LN, ax as TN, V as AN, W as MN, _ as NN, $ as ON, a0 as FN, Z as DN, f0 as R5, f1 as IN, f2 as RN, r as PN, f3 as dx, f4 as BN } from "./hooks-CeXouPJ8.js";
|
|
2
|
+
import { az as B4e, f7 as H4e, f8 as $4e, f6 as V4e, aT as z4e, a$ as j4e, f5 as W4e, b2 as U4e } from "./hooks-CeXouPJ8.js";
|
|
3
3
|
import { jsxs as x, jsx as f, Fragment as Ze } from "react/jsx-runtime";
|
|
4
4
|
import { useCopilotChatInternal as Bf, useCopilotContext as HN, useCopilotAction as P5, CopilotKit as $N } from "@copilotkit/react-core";
|
|
5
5
|
import { Markdown as VN, useChatContext as zN, CopilotSidebar as jN } from "@copilotkit/react-ui";
|
|
@@ -36276,7 +36276,7 @@ function Z3e({ label: t, options: e, hasNewUpdate: n }) {
|
|
|
36276
36276
|
}
|
|
36277
36277
|
function Aee({ children: t, header: e, embedded: n = !1 }) {
|
|
36278
36278
|
return x("div", {
|
|
36279
|
-
className: `flex w-full flex-col overflow-hidden ${n ? "" : "xs:rounded-xl"} bg-f1-special-page ring-1 ring-inset ring-f1-border-secondary`,
|
|
36279
|
+
className: `flex min-h-full w-full flex-col overflow-hidden ${n ? "" : "xs:rounded-xl"} bg-f1-special-page ring-1 ring-inset ring-f1-border-secondary`,
|
|
36280
36280
|
children: [e && f("div", {
|
|
36281
36281
|
className: "flex flex-col",
|
|
36282
36282
|
children: e
|
package/dist/f0.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0;top:0;left:0;width:var(--gs-column-width);height:var(--gs-cell-height)}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack>.grid-stack-item>.grid-stack-item-content,.grid-stack>.grid-stack-placeholder>.placeholder-content{top:var(--gs-item-margin-top);right:var(--gs-item-margin-right);bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;touch-action:none}.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle,.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:var(--gs-item-margin-top);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:var(--gs-item-margin-top);left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:var(--gs-item-margin-top);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px;right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:var(--gs-item-margin-bottom);right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px;left:var(--gs-item-margin-left)}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,top}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing,.grid-stack-animate .grid-stack-item.grid-stack-placeholder{transition:left 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack>.grid-stack-item[gs-x="0"]{left:0%}
|
|
1
|
+
.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0;top:0;left:0;width:var(--gs-column-width);height:var(--gs-cell-height)}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack>.grid-stack-item>.grid-stack-item-content,.grid-stack>.grid-stack-placeholder>.placeholder-content{top:var(--gs-item-margin-top);right:var(--gs-item-margin-right);bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;touch-action:none}.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle,.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:var(--gs-item-margin-top);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:var(--gs-item-margin-top);left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:var(--gs-item-margin-top);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px;right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:var(--gs-item-margin-bottom);right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px;left:var(--gs-item-margin-left)}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,top}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing,.grid-stack-animate .grid-stack-item.grid-stack-placeholder{transition:left 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack>.grid-stack-item[gs-x="0"]{left:0%}.grid-stack-item .ui-resizable-handle{bottom:12px;right:12px;--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));overflow:hidden;border-radius:.625rem}.grid-stack-item .ui-resizable-se:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.1904 11.6904C17.4443 11.4366 17.8565 11.4366 18.1104 11.6904C18.3641 11.9443 18.3642 12.3565 18.1104 12.6104L12.6104 18.1104C12.3565 18.3642 11.9443 17.3641 11.6904 18.1104C11.4366 17.8565 11.4366 17.4443 11.6904 17.1904L17.1904 11.6904ZM16.1904 6.19043C16.4443 5.93659 16.8565 5.93659 17.1104 6.19043C17.3641 6.44427 17.3642 6.85653 17.1104 7.11035L7.11035 17.1104C6.85653 17.3642 6.44427 17.3641 6.19043 17.1104C5.93659 16.8565 5.93659 16.4443 6.19043 16.1904L16.1904 6.19043Z' fill='%23A1ABBD'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain;width:100%;height:100%;background-color:#fff}.ui-draggable-dragging>.grid-stack-item-content{background-color:transparent!important;--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;animation-duration:.2s}.ui-draggable-dragging>.grid-stack-item-content>*{transform-origin:24px 24px;--tw-scale-x: .95 !important;--tw-scale-y: .95 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;cursor:grabbing;border-radius:.875rem;border-color:hsl(var(--neutral-40));--tw-shadow: 0 6px 12px 0 hsl(var(--shadow)/.06),0 16px 24px -12px hsl(var(--shadow)/.05);--tw-shadow-colored: 0 6px 12px 0 var(--tw-shadow-color), 0 16px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;animation-duration:.2s}.ui.draggable-dragging{cursor:grabbing!important}.grid-stack-placeholder>.placeholder-content{border-radius:.875rem;background-color:hsl(var(--neutral-100) / .05);opacity:.5;--tw-blur: blur(2px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grid-stack-item>.grid-stack-item-content{overflow:visible!important}.ui-resizable-resizing>.grid-stack-item-content{border-radius:.875rem}
|
package/dist/f0.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ import { default as default_2 } from 'react';
|
|
|
26
26
|
import { DotTagCellValue } from '../../value-display/types/dotTag';
|
|
27
27
|
import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
|
|
28
28
|
import { F0GridStackProps as F0GridStackProps_2 } from './F0GridStack';
|
|
29
|
-
import { F0GridStackRef as F0GridStackRef_2 } from './F0GridStack';
|
|
30
29
|
import { F0IconProps as F0IconProps_2 } from './F0Icon';
|
|
31
30
|
import { F0SelectProps as F0SelectProps_2 } from './types';
|
|
32
31
|
import { f1Colors } from '@factorialco/f0-core';
|
|
@@ -1815,6 +1814,7 @@ export declare const defaultTranslations: {
|
|
|
1815
1814
|
readonly placeholder: "Share what didn’t work";
|
|
1816
1815
|
};
|
|
1817
1816
|
};
|
|
1817
|
+
readonly ask: "Ask One";
|
|
1818
1818
|
};
|
|
1819
1819
|
readonly select: {
|
|
1820
1820
|
readonly noResults: "No results found";
|
|
@@ -2179,7 +2179,7 @@ export declare type F0AvatarTeamProps = {
|
|
|
2179
2179
|
badge?: AvatarBadge;
|
|
2180
2180
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
2181
2181
|
|
|
2182
|
-
export declare const F0Button: ForwardRefExoticComponent<Omit<ButtonInternalProps, "style" | "className" | "variant" | "
|
|
2182
|
+
export declare const F0Button: ForwardRefExoticComponent<Omit<ButtonInternalProps, "style" | "className" | "variant" | "pressed" | "append" | "compact" | "noAutoTooltip" | "noTitle"> & {
|
|
2183
2183
|
variant?: Exclude<ButtonInternalProps["variant"], "ai">;
|
|
2184
2184
|
} & RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
2185
2185
|
|
|
@@ -2308,53 +2308,16 @@ export declare type F0DropdownButtonProps<T = string> = {
|
|
|
2308
2308
|
|
|
2309
2309
|
export declare function F0EventCatcherProvider({ children, onEvent, enabled, catchEvents, }: EventCatcherProviderProps): JSX.Element;
|
|
2310
2310
|
|
|
2311
|
-
export declare const F0GridStack:
|
|
2311
|
+
export declare const F0GridStack: {
|
|
2312
|
+
({ options, widgets, onChange, className, }: F0GridStackProps_2): JSX_2.Element;
|
|
2313
|
+
displayName: string;
|
|
2314
|
+
};
|
|
2312
2315
|
|
|
2313
2316
|
export declare interface F0GridStackProps {
|
|
2314
2317
|
options: GridStackReactOptions;
|
|
2315
2318
|
widgets: GridStackReactWidget[];
|
|
2316
|
-
onChange?: (
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
/**
|
|
2320
|
-
* Methods exposed via ref to control the grid programmatically.
|
|
2321
|
-
* @example
|
|
2322
|
-
* ```tsx
|
|
2323
|
-
* const gridRef = useRef<F0GridStackRef>(null)
|
|
2324
|
-
*
|
|
2325
|
-
* // Add a widget
|
|
2326
|
-
* gridRef.current?.addWidget({
|
|
2327
|
-
* id: 'new-widget',
|
|
2328
|
-
* w: 2,
|
|
2329
|
-
* h: 2,
|
|
2330
|
-
* renderFn: () => <div>Content</div>
|
|
2331
|
-
* meta: {
|
|
2332
|
-
* // Your metadata associated with the widget
|
|
2333
|
-
* }
|
|
2334
|
-
* })
|
|
2335
|
-
*
|
|
2336
|
-
* // Remove a widget
|
|
2337
|
-
* gridRef.current?.removeWidget('widget-id')
|
|
2338
|
-
*
|
|
2339
|
-
* // Remove all widgets
|
|
2340
|
-
* gridRef.current?.removeAll()
|
|
2341
|
-
*
|
|
2342
|
-
* // Save current layout
|
|
2343
|
-
* const layout = gridRef.current?.saveOptions()
|
|
2344
|
-
* ```
|
|
2345
|
-
*/
|
|
2346
|
-
export declare interface F0GridStackRef {
|
|
2347
|
-
addWidget: (widget: GridStackReactWidget) => void;
|
|
2348
|
-
removeWidget: (id: string) => void;
|
|
2349
|
-
addSubGrid: (subGrid: GridStackReactWidget & {
|
|
2350
|
-
id: Required<GridStackWidget>["id"];
|
|
2351
|
-
subGridOpts: Required<GridStackWidget>["subGridOpts"] & {
|
|
2352
|
-
children: Array<GridStackWidget & {
|
|
2353
|
-
id: Required<GridStackWidget>["id"];
|
|
2354
|
-
}>;
|
|
2355
|
-
};
|
|
2356
|
-
}) => void;
|
|
2357
|
-
removeAll: () => void;
|
|
2319
|
+
onChange?: (widgets: GridStackReactWidget[]) => void;
|
|
2320
|
+
className?: string;
|
|
2358
2321
|
}
|
|
2359
2322
|
|
|
2360
2323
|
export declare const F0Heading: ForwardRefExoticComponent<Omit<F0HeadingProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
@@ -2482,6 +2445,11 @@ export declare type F0SelectProps<T extends string, R = unknown> = F0SelectBaseP
|
|
|
2482
2445
|
* - When allSelected is false: included items are those with checked=true
|
|
2483
2446
|
*/
|
|
2484
2447
|
onSelectItems?: OnSelectItemsCallback<ResolvedRecordType<R>, FiltersDefinition>;
|
|
2448
|
+
/**
|
|
2449
|
+
* Disables the "Select All" functionality, forcing manual selection of items one by one.
|
|
2450
|
+
* When enabled, the allSelected state will always be false and users must select items individually.
|
|
2451
|
+
*/
|
|
2452
|
+
disableSelectAll?: boolean;
|
|
2485
2453
|
}) & ({
|
|
2486
2454
|
source: DataSourceDefinition<ResolvedRecordType<R>, FiltersDefinition, SortingsDefinition, GroupingDefinition<ResolvedRecordType<R>>>;
|
|
2487
2455
|
mapOptions: (item: ResolvedRecordType<R>) => F0SelectItemProps<T, ResolvedRecordType<R>>;
|
|
@@ -2735,22 +2703,12 @@ export declare type GridStackReactSize = {
|
|
|
2735
2703
|
h: number;
|
|
2736
2704
|
};
|
|
2737
2705
|
|
|
2738
|
-
export declare interface GridStackReactWidget extends GridStackWidget {
|
|
2706
|
+
export declare interface GridStackReactWidget extends Omit<GridStackWidget, "content" | "id"> {
|
|
2739
2707
|
id: Required<GridStackWidget>["id"];
|
|
2740
2708
|
allowedSizes?: GridStackReactSize[];
|
|
2741
|
-
|
|
2742
|
-
}
|
|
2743
|
-
|
|
2744
|
-
/**
|
|
2745
|
-
* Represents a node in the grid layout.
|
|
2746
|
-
*/
|
|
2747
|
-
export declare interface GridStackWidgetPosition {
|
|
2748
|
-
id: string;
|
|
2749
|
-
w: number;
|
|
2750
|
-
h: number;
|
|
2751
|
-
x: number;
|
|
2752
|
-
y: number;
|
|
2709
|
+
content?: React.ReactElement;
|
|
2753
2710
|
meta?: Record<string, unknown>;
|
|
2711
|
+
_originalContent?: React.ReactNode;
|
|
2754
2712
|
}
|
|
2755
2713
|
|
|
2756
2714
|
/**
|
|
@@ -4154,7 +4112,7 @@ declare type TextVariant = NonNullable<TextVariants["variant"]>;
|
|
|
4154
4112
|
declare type TextVariants = VariantProps<typeof textVariants>;
|
|
4155
4113
|
|
|
4156
4114
|
declare const textVariants: (props?: ({
|
|
4157
|
-
variant?: "info" | "small" | "body" | "code" | "label" | "description" | "
|
|
4115
|
+
variant?: "info" | "small" | "body" | "code" | "label" | "description" | "heading" | "selected" | "positive" | "inverse" | "critical" | "warning" | "heading-large" | "label-input" | "warning-strong" | "critical-strong" | "positive-strong" | "info-strong" | undefined;
|
|
4158
4116
|
align?: "center" | "left" | "right" | undefined;
|
|
4159
4117
|
} & ({
|
|
4160
4118
|
class?: ClassValue;
|
|
@@ -4464,7 +4422,7 @@ export declare const usePrivacyMode: () => {
|
|
|
4464
4422
|
|
|
4465
4423
|
export declare const useReducedMotion: () => boolean;
|
|
4466
4424
|
|
|
4467
|
-
export declare function useSelectable<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>>({ data, paginationInfo, source, selectionMode, selectedState, onSelectItems, }: UseSelectableProps<R, Filters, Sortings, Grouping>): UseSelectableReturn<R, Filters>;
|
|
4425
|
+
export declare function useSelectable<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>>({ data, paginationInfo, source, selectionMode, selectedState, onSelectItems, disableSelectAll, }: UseSelectableProps<R, Filters, Sortings, Grouping>): UseSelectableReturn<R, Filters>;
|
|
4468
4426
|
|
|
4469
4427
|
export declare type UseSelectableProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>> = {
|
|
4470
4428
|
data: Data<R>;
|
|
@@ -4473,6 +4431,11 @@ export declare type UseSelectableProps<R extends RecordType, Filters extends Fil
|
|
|
4473
4431
|
onSelectItems?: OnSelectItemsCallback<R, Filters>;
|
|
4474
4432
|
selectionMode?: "multi" | "single";
|
|
4475
4433
|
selectedState?: SelectedItemsState<R>;
|
|
4434
|
+
/**
|
|
4435
|
+
* Disables the automatic "Select All" state when all items are manually selected.
|
|
4436
|
+
* When true, allSelected will always be false even if all items are checked.
|
|
4437
|
+
*/
|
|
4438
|
+
disableSelectAll?: boolean;
|
|
4476
4439
|
};
|
|
4477
4440
|
|
|
4478
4441
|
export declare type UseSelectableReturn<R extends RecordType, Filters extends FiltersDefinition> = {
|
|
@@ -4627,6 +4590,23 @@ declare global {
|
|
|
4627
4590
|
}
|
|
4628
4591
|
}
|
|
4629
4592
|
|
|
4593
|
+
declare module "gridstack" {
|
|
4594
|
+
interface GridStackWidget {
|
|
4595
|
+
id?: string;
|
|
4596
|
+
allowedSizes?: Array<{
|
|
4597
|
+
w: number;
|
|
4598
|
+
h: number;
|
|
4599
|
+
}>;
|
|
4600
|
+
meta?: Record<string, unknown>;
|
|
4601
|
+
}
|
|
4602
|
+
interface GridStackNode {
|
|
4603
|
+
allowedSizes?: Array<{
|
|
4604
|
+
w: number;
|
|
4605
|
+
h: number;
|
|
4606
|
+
}>;
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
|
|
4630
4610
|
|
|
4631
4611
|
declare module "@tiptap/core" {
|
|
4632
4612
|
interface Commands<ReturnType> {
|
|
@@ -4639,8 +4619,8 @@ declare module "@tiptap/core" {
|
|
|
4639
4619
|
|
|
4640
4620
|
declare module "@tiptap/core" {
|
|
4641
4621
|
interface Commands<ReturnType> {
|
|
4642
|
-
|
|
4643
|
-
|
|
4622
|
+
liveCompanion: {
|
|
4623
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
4644
4624
|
};
|
|
4645
4625
|
}
|
|
4646
4626
|
}
|
|
@@ -4648,35 +4628,15 @@ declare module "@tiptap/core" {
|
|
|
4648
4628
|
|
|
4649
4629
|
declare module "@tiptap/core" {
|
|
4650
4630
|
interface Commands<ReturnType> {
|
|
4651
|
-
|
|
4652
|
-
|
|
4631
|
+
transcript: {
|
|
4632
|
+
insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
|
|
4653
4633
|
};
|
|
4654
4634
|
}
|
|
4655
4635
|
}
|
|
4656
4636
|
|
|
4657
4637
|
|
|
4658
|
-
declare
|
|
4659
|
-
|
|
4660
|
-
id?: string;
|
|
4661
|
-
allowedSizes?: Array<{
|
|
4662
|
-
w: number;
|
|
4663
|
-
h: number;
|
|
4664
|
-
}>;
|
|
4665
|
-
renderFn?: () => React.ReactElement | null;
|
|
4666
|
-
meta?: Record<string, unknown>;
|
|
4667
|
-
}
|
|
4668
|
-
interface GridStackNode {
|
|
4669
|
-
id?: string;
|
|
4670
|
-
w?: number;
|
|
4671
|
-
h?: number;
|
|
4672
|
-
x?: number;
|
|
4673
|
-
y?: number;
|
|
4674
|
-
allowedSizes?: Array<{
|
|
4675
|
-
w: number;
|
|
4676
|
-
h: number;
|
|
4677
|
-
}>;
|
|
4678
|
-
renderFn?: () => React.ReactElement | null;
|
|
4679
|
-
}
|
|
4638
|
+
declare namespace Calendar {
|
|
4639
|
+
var displayName: string;
|
|
4680
4640
|
}
|
|
4681
4641
|
|
|
4682
4642
|
|
|
@@ -4687,8 +4647,3 @@ declare module "@tiptap/core" {
|
|
|
4687
4647
|
};
|
|
4688
4648
|
}
|
|
4689
4649
|
}
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
declare namespace Calendar {
|
|
4693
|
-
var displayName: string;
|
|
4694
|
-
}
|