@factorialco/f0-react 6.4.0 → 6.6.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/{ChatPdfThumbnail-DyDN7a-p.js → ChatPdfThumbnail-D64TOT76.js} +1 -1
- package/dist/{DocumentToolbar-CAyUihSI.js → DocumentToolbar-BnzDBY9A.js} +1 -1
- package/dist/{DocxViewer-Dl3crfqU.js → DocxViewer-K910aw8q.js} +1 -1
- package/dist/{SheetViewer-CqS4McZP.js → SheetViewer-DLlvoFk3.js} +1 -1
- package/dist/{TextViewer-CnSGe6Lw.js → TextViewer-CUtAVCh5.js} +1 -1
- package/dist/ai.d.ts +1 -0
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +1 -0
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +61 -4
- package/dist/f0.js +14352 -14017
- package/dist/i18n-provider-defaults.d.ts +1 -0
- package/dist/i18n-provider-defaults.js +1 -0
- package/dist/{index-Cdvq3ahA.js → index-BW-Go-y_.js} +2 -2
- package/dist/{index-C5uJNrqj.js → index-GMJbBTvj.js} +7143 -7122
- package/dist/{pdfWorker-CDTHY8xz.js → pdfWorker-M-OJp-Of.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -3925,6 +3925,7 @@ declare const defaultTranslations: {
|
|
|
3925
3925
|
readonly title: "No data available";
|
|
3926
3926
|
readonly description: "Try a different date or fewer filters";
|
|
3927
3927
|
};
|
|
3928
|
+
readonly windowedCategories: "Showing {{count}} of {{total}} categories";
|
|
3928
3929
|
readonly tooltip: {
|
|
3929
3930
|
readonly ofTotal: "of total";
|
|
3930
3931
|
readonly total: "total";
|
package/dist/experimental.js
CHANGED
|
@@ -3,8 +3,8 @@ import { cX as a1, cW as s1, d7 as l1, cT as c1, cU as d1, cN as u1, cO as f1, c
|
|
|
3
3
|
import { jsx as n, jsxs as h, Fragment as Ae } from "react/jsx-runtime";
|
|
4
4
|
import Y, { forwardRef as Oe, useRef as O, useTransition as bu, useState as B, useLayoutEffect as Hn, useId as Ln, useContext as zt, createContext as ht, useEffect as q, useCallback as U, useMemo as de, Fragment as _t, isValidElement as vu, cloneElement as hs, Suspense as Er, lazy as sn, createElement as or, memo as ps, Children as gs } from "react";
|
|
5
5
|
import { d as k, T as xu, a as yu, b as wu, f as Ye, c as Nu, u as Cu } from "./tooltip-Cik7KBQT.js";
|
|
6
|
-
import { C as Iu, P as ku, E as Su, a as Uo, b as Wn, M as Tu, p as Ru, c as Eu, R as Ri, e as bs, u as Lu, f as zu, g as Fu, h as Au, i as Pu, j as Mu, O as vs, k as xs, S as Ou, A as Du, B as Bu, L as _u, l as $u, V as Hu, m as Wu, n as ju, o as Uu } from "./index-
|
|
7
|
-
import { a5 as D1, a6 as B1, v as _1, w as $1, s as H1, N as W1, x as j1, H as U1, ag as V1, K as G1, t as K1, a3 as q1, ai as Y1, ah as X1, X as J1, al as Q1, F as Z1, a0 as ey, Z as ty, T as ny, an as ry, U as oy, a1 as iy, a2 as ay, y as sy, aj as ly, ak as cy, W as dy, a4 as uy, ad as fy, af as my, z as hy, G as py, I as gy, _ as by, am as vy, $ as xy, Y as yy, ao as wy, D as Ny, J as Cy, q as Iy, r as ky, a9 as Sy, aa as Ty, a7 as Ry, ae as Ey, Q as Ly, ab as zy, a8 as Fy, ac as Ay } from "./index-
|
|
6
|
+
import { C as Iu, P as ku, E as Su, a as Uo, b as Wn, M as Tu, p as Ru, c as Eu, R as Ri, e as bs, u as Lu, f as zu, g as Fu, h as Au, i as Pu, j as Mu, O as vs, k as xs, S as Ou, A as Du, B as Bu, L as _u, l as $u, V as Hu, m as Wu, n as ju, o as Uu } from "./index-GMJbBTvj.js";
|
|
7
|
+
import { a5 as D1, a6 as B1, v as _1, w as $1, s as H1, N as W1, x as j1, H as U1, ag as V1, K as G1, t as K1, a3 as q1, ai as Y1, ah as X1, X as J1, al as Q1, F as Z1, a0 as ey, Z as ty, T as ny, an as ry, U as oy, a1 as iy, a2 as ay, y as sy, aj as ly, ak as cy, W as dy, a4 as uy, ad as fy, af as my, z as hy, G as py, I as gy, _ as by, am as vy, $ as xy, Y as yy, ao as wy, D as Ny, J as Cy, q as Iy, r as ky, a9 as Sy, aa as Ty, a7 as Ry, ae as Ey, Q as Ly, ab as zy, a8 as Fy, ac as Ay } from "./index-GMJbBTvj.js";
|
|
8
8
|
import Vu from "react-dom";
|
|
9
9
|
const Gu = hc("Search", [
|
|
10
10
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
@@ -7899,7 +7899,7 @@ const fl = () => Ut(ol, "useChatJump"), Jh = () => Ut(il, "useChatHighlightedId"
|
|
|
7899
7899
|
}, Pr = (e, t) => {
|
|
7900
7900
|
const r = document.createElement("a");
|
|
7901
7901
|
r.href = e, r.download = t, r.rel = "noreferrer", r.click();
|
|
7902
|
-
}, tp = sn(() => import("./ChatPdfThumbnail-
|
|
7902
|
+
}, tp = sn(() => import("./ChatPdfThumbnail-D64TOT76.js")), np = sn(() => import("./ChatSheetThumbnail-BvnxT-4A.js")), rp = sn(() => import("./ChatDocxThumbnail-DzNPNFya.js")), op = sn(() => import("./ChatTextThumbnail-yVt_iYi7.js")), ip = 288, ap = 160, sp = (e) => {
|
|
7903
7903
|
const [t, r] = B(!1);
|
|
7904
7904
|
return q(() => {
|
|
7905
7905
|
const o = e.current;
|
|
@@ -9942,7 +9942,7 @@ const kp = {
|
|
|
9942
9942
|
] })
|
|
9943
9943
|
] }) });
|
|
9944
9944
|
}, Dp = sn(
|
|
9945
|
-
() => import("./index-
|
|
9945
|
+
() => import("./index-BW-Go-y_.js").then((e) => e.i).then((e) => ({
|
|
9946
9946
|
default: e.F0PdfViewer
|
|
9947
9947
|
}))
|
|
9948
9948
|
), Bp = () => {
|
package/dist/f0.d.ts
CHANGED
|
@@ -5219,6 +5219,7 @@ export declare const defaultTranslations: {
|
|
|
5219
5219
|
readonly title: "No data available";
|
|
5220
5220
|
readonly description: "Try a different date or fewer filters";
|
|
5221
5221
|
};
|
|
5222
|
+
readonly windowedCategories: "Showing {{count}} of {{total}} categories";
|
|
5222
5223
|
readonly tooltip: {
|
|
5223
5224
|
readonly ofTotal: "of total";
|
|
5224
5225
|
readonly total: "total";
|
|
@@ -8425,7 +8426,7 @@ export declare interface F0DataChartBarProps extends F0DataChartBaseProps {
|
|
|
8425
8426
|
/**
|
|
8426
8427
|
* Per-side clearance in pixels the widest value must have before
|
|
8427
8428
|
* {@link F0DataChartBarProps.hideOverflowingLabels} counts it as fitting.
|
|
8428
|
-
* Overrides the default, which is placement-based: **
|
|
8429
|
+
* Overrides the default, which is placement-based: **6** for stacked (inside)
|
|
8429
8430
|
* labels, **0** for labels outside the bar.
|
|
8430
8431
|
*/
|
|
8431
8432
|
labelFitPadding?: number;
|
|
@@ -8438,6 +8439,43 @@ export declare interface F0DataChartBarProps extends F0DataChartBaseProps {
|
|
|
8438
8439
|
* widths differ. Height overflow is also evaluated per bar. @default true
|
|
8439
8440
|
*/
|
|
8440
8441
|
hideAllLabelsOnOverflow?: boolean;
|
|
8442
|
+
/**
|
|
8443
|
+
* Draw only as many categories as fit at a readable bar thickness, instead of
|
|
8444
|
+
* compressing every one of them into the available height.
|
|
8445
|
+
*
|
|
8446
|
+
* Opt-in, because it hides data: a windowed chart shows the first N rows in
|
|
8447
|
+
* data order and nothing in the chart itself leads to the rest. Set it only
|
|
8448
|
+
* where the surrounding UI offers the way back — subscribe to
|
|
8449
|
+
* {@link F0DataChartBarProps.onHiddenCategoriesChange} and put a control next
|
|
8450
|
+
* to the count, as `F0AnalyticsDashboard` does. Left off, a dense chart stays
|
|
8451
|
+
* complete and its bars get thinner, which is the readable-but-honest end of
|
|
8452
|
+
* the trade.
|
|
8453
|
+
*
|
|
8454
|
+
* Ignored by vertical charts, which lay categories out along the width.
|
|
8455
|
+
* @default false
|
|
8456
|
+
*/
|
|
8457
|
+
windowCategories?: boolean;
|
|
8458
|
+
/**
|
|
8459
|
+
* Render every category at once, overriding
|
|
8460
|
+
* {@link F0DataChartBarProps.windowCategories}.
|
|
8461
|
+
*
|
|
8462
|
+
* Set this when the reader has asked to see the whole distribution — an
|
|
8463
|
+
* expanded or fullscreen view — and accepts thinner bars in exchange. Ignored
|
|
8464
|
+
* by vertical charts, which lay categories out along the width.
|
|
8465
|
+
* @default false
|
|
8466
|
+
*/
|
|
8467
|
+
showAllCategories?: boolean;
|
|
8468
|
+
/**
|
|
8469
|
+
* Reports how many categories the row window is hiding — `0` when every
|
|
8470
|
+
* category is on screen. Fires whenever the count changes, which includes
|
|
8471
|
+
* container resizes and {@link F0DataChartBarProps.showAllCategories} being
|
|
8472
|
+
* switched on.
|
|
8473
|
+
*
|
|
8474
|
+
* The chart states the fact rather than rendering an affordance for it: only
|
|
8475
|
+
* the surrounding UI knows where a "see everything" control belongs. The
|
|
8476
|
+
* dashboard puts it in the widget's description, next to the count.
|
|
8477
|
+
*/
|
|
8478
|
+
onHiddenCategoriesChange?: (hiddenCategoryCount: number) => void;
|
|
8441
8479
|
/**
|
|
8442
8480
|
* Suggested number of segments on the value axis — lower values draw fewer
|
|
8443
8481
|
* grid lines. Applies to whichever axis is the value axis (Y for vertical
|
|
@@ -10401,6 +10439,23 @@ export declare type F0FormFieldProps = F0FormFieldFileProps | F0FormFieldNonFile
|
|
|
10401
10439
|
*/
|
|
10402
10440
|
export declare type F0FormLikeComponent = React.ComponentType<F0FormCommonProps>;
|
|
10403
10441
|
|
|
10442
|
+
/**
|
|
10443
|
+
* Styling configuration for per-section schema forms.
|
|
10444
|
+
* Extends the base config with options that only apply when each section
|
|
10445
|
+
* has its own independent schema and submit button.
|
|
10446
|
+
*/
|
|
10447
|
+
declare interface F0FormPerSectionStylingConfig extends F0FormStylingConfig {
|
|
10448
|
+
/**
|
|
10449
|
+
* Renders only the section selected in the sidepanel instead of stacking
|
|
10450
|
+
* all sections. Useful for large forms where showing every section at once
|
|
10451
|
+
* is overwhelming. Hidden sections stay mounted so their values, dirty
|
|
10452
|
+
* state, and validation are preserved.
|
|
10453
|
+
* Has no effect unless `showSectionsSidepanel` is true.
|
|
10454
|
+
* @default false
|
|
10455
|
+
*/
|
|
10456
|
+
showOnlySelectedSection?: boolean;
|
|
10457
|
+
}
|
|
10458
|
+
|
|
10404
10459
|
/**
|
|
10405
10460
|
* Union of all F0Form prop variants.
|
|
10406
10461
|
* The component detects the mode based on whether `schema` is a single Zod schema
|
|
@@ -10443,7 +10498,7 @@ declare interface F0FormPropsWithDefinition {
|
|
|
10443
10498
|
export declare interface F0FormPropsWithPerSectionDefinition<T extends F0PerSectionSchema> {
|
|
10444
10499
|
formDefinition: F0FormDefinitionPerSection_2<T>;
|
|
10445
10500
|
className?: string;
|
|
10446
|
-
styling?:
|
|
10501
|
+
styling?: F0FormPerSectionStylingConfig;
|
|
10447
10502
|
formRef?: React.MutableRefObject<F0FormRef | null>;
|
|
10448
10503
|
initialFiles?: InitialFile[];
|
|
10449
10504
|
/** Upload hook shared by all file fields in the form. */
|
|
@@ -10491,7 +10546,7 @@ export declare interface F0FormPropsWithPerSectionSchema<T extends F0PerSectionS
|
|
|
10491
10546
|
/**
|
|
10492
10547
|
* Styling configuration for form layout and appearance.
|
|
10493
10548
|
*/
|
|
10494
|
-
styling?:
|
|
10549
|
+
styling?: F0FormPerSectionStylingConfig;
|
|
10495
10550
|
/**
|
|
10496
10551
|
* Ref to control the form programmatically from outside.
|
|
10497
10552
|
*/
|
|
@@ -10701,7 +10756,9 @@ declare type F0FormStateCallback = (state: {
|
|
|
10701
10756
|
*/
|
|
10702
10757
|
export declare interface F0FormStylingConfig {
|
|
10703
10758
|
/**
|
|
10704
|
-
* Shows a sidebar with section navigation (Table of Contents)
|
|
10759
|
+
* Shows a sidebar with section navigation (Table of Contents).
|
|
10760
|
+
* Automatically hidden on small viewports (max-width 560px), where
|
|
10761
|
+
* sections stack as in the regular layout.
|
|
10705
10762
|
* @default false
|
|
10706
10763
|
*/
|
|
10707
10764
|
showSectionsSidepanel?: boolean;
|