@factorialco/f0-react 6.7.2 → 6.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.
@@ -3,8 +3,8 @@ import { c$ as l1, c_ as c1, db as d1, cX as u1, cY as f1, cP as m1, cQ as h1, c
3
3
  import { jsx as n, jsxs as h, Fragment as Pe } from "react/jsx-runtime";
4
4
  import Y, { forwardRef as Oe, useRef as O, useTransition as vu, 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 xu, 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 yu, a as wu, b as Nu, f as Ye, c as Cu, u as Iu } from "./tooltip-Cik7KBQT.js";
6
- import { C as ku, P as Su, E as Tu, a as Uo, b as Wn, M as Ru, p as Eu, c as Lu, R as Ri, e as bs, u as zu, f as Fu, g as Pu, h as Au, i as Mu, j as Ou, O as vs, k as xs, S as Du, A as Bu, B as _u, L as $u, l as Hu, V as Wu, m as ju, n as Uu, o as Vu } from "./index-D08SHFHH.js";
7
- import { a6 as H1, a7 as W1, v as j1, w as U1, s as V1, N as G1, x as K1, H as q1, ah as Y1, K as X1, t as J1, a4 as Q1, aj as Z1, ai as ey, Y as ty, Q as ny, am as ry, F as oy, a1 as iy, _ as ay, U as sy, ao as ly, W as cy, a2 as dy, a3 as uy, y as fy, ak as my, al as hy, X as py, a5 as gy, ae as by, ag as vy, z as xy, G as yy, I as wy, $ as Ny, an as Cy, a0 as Iy, Z as ky, ap as Sy, D as Ty, J as Ry, q as Ey, r as Ly, aa as zy, ab as Fy, a8 as Py, af as Ay, T as My, ac as Oy, a9 as Dy, ad as By } from "./index-D08SHFHH.js";
6
+ import { C as ku, P as Su, E as Tu, a as Uo, b as Wn, M as Ru, p as Eu, c as Lu, R as Ri, e as bs, u as zu, f as Fu, g as Pu, h as Au, i as Mu, j as Ou, O as vs, k as xs, S as Du, A as Bu, B as _u, L as $u, l as Hu, V as Wu, m as ju, n as Uu, o as Vu } from "./index-BjHsWtk5.js";
7
+ import { a6 as H1, a7 as W1, v as j1, w as U1, s as V1, N as G1, x as K1, H as q1, ah as Y1, K as X1, t as J1, a4 as Q1, aj as Z1, ai as ey, Y as ty, Q as ny, am as ry, F as oy, a1 as iy, _ as ay, U as sy, ao as ly, W as cy, a2 as dy, a3 as uy, y as fy, ak as my, al as hy, X as py, a5 as gy, ae as by, ag as vy, z as xy, G as yy, I as wy, $ as Ny, an as Cy, a0 as Iy, Z as ky, ap as Sy, D as Ty, J as Ry, q as Ey, r as Ly, aa as zy, ab as Fy, a8 as Py, af as Ay, T as My, ac as Oy, a9 as Dy, ad as By } from "./index-BjHsWtk5.js";
8
8
  import Gu from "react-dom";
9
9
  const Ku = hc("Search", [
10
10
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
@@ -7899,7 +7899,7 @@ const fl = () => Ut(ol, "useChatJump"), Qh = () => Ut(il, "useChatHighlightedId"
7899
7899
  }, Ar = (e, t) => {
7900
7900
  const r = document.createElement("a");
7901
7901
  r.href = e, r.download = t, r.rel = "noreferrer", r.click();
7902
- }, np = sn(() => import("./ChatPdfThumbnail-Bc02yaGv.js")), rp = sn(() => import("./ChatSheetThumbnail-BvnxT-4A.js")), op = sn(() => import("./ChatDocxThumbnail-DzNPNFya.js")), ip = sn(() => import("./ChatTextThumbnail-yVt_iYi7.js")), ap = 288, sp = 160, lp = (e) => {
7902
+ }, np = sn(() => import("./ChatPdfThumbnail-DO0CReis.js")), rp = sn(() => import("./ChatSheetThumbnail-BvnxT-4A.js")), op = sn(() => import("./ChatDocxThumbnail-DzNPNFya.js")), ip = sn(() => import("./ChatTextThumbnail-yVt_iYi7.js")), ap = 288, sp = 160, lp = (e) => {
7903
7903
  const [t, r] = B(!1);
7904
7904
  return q(() => {
7905
7905
  const o = e.current;
@@ -9942,7 +9942,7 @@ const Sp = {
9942
9942
  ] })
9943
9943
  ] }) });
9944
9944
  }, Bp = sn(
9945
- () => import("./index-CkC90QKI.js").then((e) => e.i).then((e) => ({
9945
+ () => import("./index-DvjQBRBG.js").then((e) => e.i).then((e) => ({
9946
9946
  default: e.F0PdfViewer
9947
9947
  }))
9948
9948
  ), _p = () => {
package/dist/f0.d.ts CHANGED
@@ -9431,6 +9431,7 @@ export declare type F0DropdownButtonProps<T = string> = {
9431
9431
  declare interface F0DurationConfig {
9432
9432
  units?: DurationUnit[];
9433
9433
  fields?: Partial<Record<DurationUnit, DurationFieldConfig>>;
9434
+ allowNegative?: boolean;
9434
9435
  readonly?: boolean;
9435
9436
  size?: DurationInputSize;
9436
9437
  }
@@ -9463,6 +9464,13 @@ export declare interface F0DurationInputProps {
9463
9464
  hideLabel?: boolean;
9464
9465
  value: number;
9465
9466
  onChange: (seconds: number) => void;
9467
+ /**
9468
+ * Allows entering negative durations (e.g. to adjust tracked time).
9469
+ * A leading minus sign typed in the first visible segment applies to the
9470
+ * whole duration, and `value`/`onChange` carry negative total seconds.
9471
+ * Defaults to false.
9472
+ */
9473
+ allowNegative?: boolean;
9466
9474
  onBlur?: () => void;
9467
9475
  units?: DurationUnit[];
9468
9476
  fields?: Partial<Record<DurationUnit, DurationFieldConfig>>;
package/dist/f0.js CHANGED
@@ -7,12 +7,12 @@ import { D as r5, E as n5, G as i5, H as Dd, I as Pb, J as FN, K as GN, L as Qn,
7
7
  import { A as yve, C as _ve, t as bve, s as xve, v as wve, y as Sve, l as Cve, i as Tve, q as Dve, z as Ave, B as Mve, p as Eve, r as Lve, j as Nve, e as Ive, g as kve, k as Pve, T as Rve, w as Ove, h as Bve, a as zve, n as Vve, m as Fve, o as Gve, b as Hve, f as Wve, x as Uve, c as $ve, d as Yve, u as Xve } from "./F0AiProcessingOverlay-BoGKj-lN.js";
8
8
  import { d as ee, u as ff, h as f5, i as tl, P as hf, g as ql, j as h5, f as Ga } from "./tooltip-Cik7KBQT.js";
9
9
  import { createPortal as np } from "react-dom";
10
- import { C as d5, aq as v5, ar as p5, as as g5, at as Ow, au as m5, av as y5, aw as _5, ax as b5, ay as x5, az as w5, aA as S5, j as C5, F as HN, aB as T5, aC as D5, aD as A5, aE as M5, aF as E5, aG as WN, aH as L5, aI as ip, aJ as Za, aK as N5, aL as Rb, aM as Ob, K as I5, aN as k5, aO as xs, aP as UN, aQ as P5, aR as R5, aS as O5, aT as B5, aU as z5, aV as V5, a1 as F5, ah as G5, aW as H5, Y as W5, E as U5, a as $5, e as ap, R as Bb, u as zb, $ as $N, O as Vb, aX as YN, aY as Bw, aZ as Fb, s as Y5, f as XN, a5 as qN, a_ as X5, a$ as q5, b0 as Z5, b1 as j5, M as K5 } from "./index-D08SHFHH.js";
11
- import { v as Zve, w as jve, N as Kve, x as Qve, H as Jve, bn as epe, bm as tpe, bg as rpe, b3 as npe, b2 as ipe, b4 as ape, b5 as ope, b7 as spe, b8 as lpe, aj as upe, ai as cpe, am as fpe, _ as hpe, U as dpe, ao as vpe, W as ppe, y as gpe, bo as mpe, ak as ype, al as _pe, X as bpe, z as xpe, P as wpe, G as Spe, I as Cpe, an as Tpe, Z as Dpe, ap as Ape, D as Mpe, J as Epe, bq as Lpe, q as Npe, r as Ipe, bf as kpe, bk as Ppe, bk as Rpe, bl as Ope, bb as Bpe, ba as zpe, bp as Vpe, af as Fpe, bd as Gpe, be as Hpe, T as Wpe, br as Upe, bs as $pe, g as Ype, bh as Xpe, bi as qpe, bj as Zpe, b6 as jpe, bc as Kpe, h as Qpe, k as Jpe, b9 as ege, bt as tge } from "./index-D08SHFHH.js";
10
+ import { C as d5, aq as v5, ar as p5, as as g5, at as Ow, au as m5, av as y5, aw as _5, ax as b5, ay as x5, az as w5, aA as S5, j as C5, F as HN, aB as T5, aC as D5, aD as A5, aE as M5, aF as E5, aG as WN, aH as L5, aI as ip, aJ as Za, aK as N5, aL as Rb, aM as Ob, K as I5, aN as k5, aO as xs, aP as UN, aQ as P5, aR as R5, aS as O5, aT as B5, aU as z5, aV as V5, a1 as F5, ah as G5, aW as H5, Y as W5, E as U5, a as $5, e as ap, R as Bb, u as zb, $ as $N, O as Vb, aX as YN, aY as Bw, aZ as Fb, s as Y5, f as XN, a5 as qN, a_ as X5, a$ as q5, b0 as Z5, b1 as j5, M as K5 } from "./index-BjHsWtk5.js";
11
+ import { v as Zve, w as jve, N as Kve, x as Qve, H as Jve, bn as epe, bm as tpe, bg as rpe, b3 as npe, b2 as ipe, b4 as ape, b5 as ope, b7 as spe, b8 as lpe, aj as upe, ai as cpe, am as fpe, _ as hpe, U as dpe, ao as vpe, W as ppe, y as gpe, bo as mpe, ak as ype, al as _pe, X as bpe, z as xpe, P as wpe, G as Spe, I as Cpe, an as Tpe, Z as Dpe, ap as Ape, D as Mpe, J as Epe, bq as Lpe, q as Npe, r as Ipe, bf as kpe, bk as Ppe, bk as Rpe, bl as Ope, bb as Bpe, ba as zpe, bp as Vpe, af as Fpe, bd as Gpe, be as Hpe, T as Wpe, br as Upe, bs as $pe, g as Ype, bh as Xpe, bi as qpe, bj as Zpe, b6 as jpe, bc as Kpe, h as Qpe, k as Jpe, b9 as ege, bt as tge } from "./index-BjHsWtk5.js";
12
12
  import { l as jy, c as ZN, d as Ad, r as Ky } from "./F0VideoPlayer-je4bZKr4.js";
13
13
  import { F as nge } from "./F0VideoPlayer-je4bZKr4.js";
14
- import { F as age, p as oge } from "./index-CkC90QKI.js";
15
- import { c as lge } from "./pdfWorker-BTQXc8PM.js";
14
+ import { F as age, p as oge } from "./index-DvjQBRBG.js";
15
+ import { c as lge } from "./pdfWorker-BsjVyBv6.js";
16
16
  import { g as Q5 } from "./_commonjsHelpers-ByX85dGu.js";
17
17
  import { utils as vl, write as jN } from "./xlsx-CzlURDDb.js";
18
18
  import { defaultTranslations as cge } from "./i18n-provider-defaults.js";