@factorialco/f0-react 1.207.0 → 1.208.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 +20 -8
- package/dist/experimental.js +6981 -6978
- package/dist/f0.d.ts +20 -8
- package/dist/f0.js +4 -3
- package/dist/{hooks-DpgCYH5Q.js → hooks-DMjORqwR.js} +4591 -4537
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -850,6 +850,12 @@ declare type DataCollectionSettings = {
|
|
|
850
850
|
visualization: VisualizationSettings;
|
|
851
851
|
};
|
|
852
852
|
|
|
853
|
+
declare interface DataCollectionSettingsContextType {
|
|
854
|
+
setSettings: default_2.Dispatch<default_2.SetStateAction<DataCollectionSettings>>;
|
|
855
|
+
settings: DataCollectionSettings;
|
|
856
|
+
setVisualizationSettings: (key: keyof VisualizationSettings, settings: VisualizationSettings[keyof VisualizationSettings] | ((prev: VisualizationSettings[keyof VisualizationSettings]) => VisualizationSettings[keyof VisualizationSettings])) => void;
|
|
857
|
+
}
|
|
858
|
+
|
|
853
859
|
/**
|
|
854
860
|
* Data collection source
|
|
855
861
|
* Extends the base data source with data collection specific elements / features
|
|
@@ -1128,6 +1134,7 @@ export declare const defaultTranslations: {
|
|
|
1128
1134
|
readonly of: "of";
|
|
1129
1135
|
};
|
|
1130
1136
|
readonly settings: "{%visualizationName} settings";
|
|
1137
|
+
readonly reset: "Reset to default";
|
|
1131
1138
|
};
|
|
1132
1139
|
readonly itemsCount: "items";
|
|
1133
1140
|
readonly emptyStates: {
|
|
@@ -1364,7 +1371,9 @@ declare type EventScalar = string | number | boolean | undefined | null;
|
|
|
1364
1371
|
export declare const experimental: <T extends (...args: any[]) => any>(name: string, component: T) => T;
|
|
1365
1372
|
|
|
1366
1373
|
declare type ExtractVisualizationSettings<T> = T extends {
|
|
1367
|
-
settings:
|
|
1374
|
+
settings: {
|
|
1375
|
+
default: infer S;
|
|
1376
|
+
};
|
|
1368
1377
|
} ? S : never;
|
|
1369
1378
|
|
|
1370
1379
|
export declare const F0Avatar: ({ avatar, size }: AvatarProps) => ReactNode;
|
|
@@ -3268,10 +3277,13 @@ valueFormatter?: (value: string | number | undefined) => string | number;
|
|
|
3268
3277
|
|
|
3269
3278
|
declare type VisualizacionTypeDefinition<Props, Settings = Record<string, never>> = {
|
|
3270
3279
|
render: (props: Props) => JSX.Element;
|
|
3271
|
-
renderSettings?: (props: Props) => JSX.Element | null;
|
|
3272
3280
|
name: string;
|
|
3273
3281
|
icon: IconType;
|
|
3274
|
-
settings:
|
|
3282
|
+
settings: {
|
|
3283
|
+
default: Settings;
|
|
3284
|
+
renderer?: (props: Props) => JSX.Element | null;
|
|
3285
|
+
resetHandler?: (settings: DataCollectionSettingsContextType) => void;
|
|
3286
|
+
};
|
|
3275
3287
|
};
|
|
3276
3288
|
|
|
3277
3289
|
declare type VisualizationSettings = {
|
|
@@ -3349,6 +3361,11 @@ declare module "@tiptap/core" {
|
|
|
3349
3361
|
}
|
|
3350
3362
|
|
|
3351
3363
|
|
|
3364
|
+
declare namespace Calendar {
|
|
3365
|
+
var displayName: string;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
|
|
3352
3369
|
declare module "@tiptap/core" {
|
|
3353
3370
|
interface Commands<ReturnType> {
|
|
3354
3371
|
moodTracker: {
|
|
@@ -3356,8 +3373,3 @@ declare module "@tiptap/core" {
|
|
|
3356
3373
|
};
|
|
3357
3374
|
}
|
|
3358
3375
|
}
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
declare namespace Calendar {
|
|
3362
|
-
var displayName: string;
|
|
3363
|
-
}
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as g, L as pe, c as ge, P as H, a as b, f as ve, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as G, i as U, j as Pe, k as W, S as J, l as M, m as Y, n as Se, O as Fe, o as X, p as De, q as ke, F as K, r as Me, s as Te, t as Ie, D as Be, u as Re, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as Ae, N as qe, Q as He, R as Ge, X as Ue, T as We, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-
|
|
2
|
-
import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Lr, au as Pr, ax as Sr, at as Fr, aL as Dr, as as kr, ar as Mr, a8 as Tr, ai as Ir, aq as Br, av as Rr, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Vr, ay as Ar, aI as qr } from "./hooks-
|
|
1
|
+
import { C as g, L as pe, c as ge, P as H, a as b, f as ve, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as G, i as U, j as Pe, k as W, S as J, l as M, m as Y, n as Se, O as Fe, o as X, p as De, q as ke, F as K, r as Me, s as Te, t as Ie, D as Be, u as Re, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as Ae, N as qe, Q as He, R as Ge, X as Ue, T as We, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-DMjORqwR.js";
|
|
2
|
+
import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Lr, au as Pr, ax as Sr, at as Fr, aL as Dr, as as kr, ar as Mr, a8 as Tr, ai as Ir, aq as Br, av as Rr, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Vr, ay as Ar, aI as qr } from "./hooks-DMjORqwR.js";
|
|
3
3
|
import { jsx as e, jsxs as c, Fragment as $ } from "react/jsx-runtime";
|
|
4
4
|
import * as E from "react";
|
|
5
5
|
import Qe, { useState as v, forwardRef as I, useRef as ae, useImperativeHandle as Ze, Children as ea, useEffect as re, createContext as aa } from "react";
|
|
@@ -79,7 +79,8 @@ const Fa = {
|
|
|
79
79
|
pagination: {
|
|
80
80
|
of: "of"
|
|
81
81
|
},
|
|
82
|
-
settings: "{%visualizationName} settings"
|
|
82
|
+
settings: "{%visualizationName} settings",
|
|
83
|
+
reset: "Reset to default"
|
|
83
84
|
},
|
|
84
85
|
itemsCount: "items",
|
|
85
86
|
emptyStates: {
|