@factorialco/f0-react 1.241.0 → 1.241.2

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/f0.d.ts CHANGED
@@ -3418,8 +3418,8 @@ declare module "@tiptap/core" {
3418
3418
 
3419
3419
  declare module "@tiptap/core" {
3420
3420
  interface Commands<ReturnType> {
3421
- liveCompanion: {
3422
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3421
+ transcript: {
3422
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
3423
3423
  };
3424
3424
  }
3425
3425
  }
@@ -3427,13 +3427,18 @@ declare module "@tiptap/core" {
3427
3427
 
3428
3428
  declare module "@tiptap/core" {
3429
3429
  interface Commands<ReturnType> {
3430
- transcript: {
3431
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
3430
+ liveCompanion: {
3431
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3432
3432
  };
3433
3433
  }
3434
3434
  }
3435
3435
 
3436
3436
 
3437
+ declare namespace Calendar {
3438
+ var displayName: string;
3439
+ }
3440
+
3441
+
3437
3442
  declare module "@tiptap/core" {
3438
3443
  interface Commands<ReturnType> {
3439
3444
  moodTracker: {
@@ -3441,8 +3446,3 @@ declare module "@tiptap/core" {
3441
3446
  };
3442
3447
  }
3443
3448
  }
3444
-
3445
-
3446
- declare namespace Calendar {
3447
- var displayName: string;
3448
- }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as p, L as ge, c as ve, P as H, a as b, f as be, g as A, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as D, i as U, j as J, k as Le, l as Y, S as X, m as K, n as Se, O as Fe, o as Q, p as ke, q as Me, F as Z, r as De, s as Te, t as Ie, D as Be, u as Re, v as Oe, w as $e, x as ee, y as w, U as ae, z as Ee, E as _e, G as V, H as je, I as re, J as ze, K as Ae, M as Ve, N as qe, Q as We, R as Ge, X as He, T as Ue, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-fkUFAzc1.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 Pr, au as Lr, ax as Sr, at as Fr, aL as kr, as as Mr, ar as Dr, 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 Ar, ay as Vr, aI as qr } from "./hooks-fkUFAzc1.js";
1
+ import { C as p, L as ge, c as ve, P as H, a as b, f as be, g as A, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as D, i as U, j as J, k as Le, l as Y, S as X, m as K, n as Se, O as Fe, o as Q, p as ke, q as Me, F as Z, r as De, s as Te, t as Ie, D as Be, u as Re, v as Oe, w as $e, x as ee, y as w, U as ae, z as Ee, E as _e, G as V, H as je, I as re, J as ze, K as Ae, M as Ve, N as qe, Q as We, R as Ge, X as He, T as Ue, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-CF7n8whp.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 Pr, au as Lr, ax as Sr, at as Fr, aL as kr, as as Mr, ar as Dr, 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 Ar, ay as Vr, aI as qr } from "./hooks-CF7n8whp.js";
3
3
  import { jsx as e, jsxs as c, Fragment as E } from "react/jsx-runtime";
4
4
  import * as _ from "react";
5
5
  import Qe, { useState as v, forwardRef as I, useRef as se, useImperativeHandle as Ze, Children as ea, useEffect as te, createContext as aa } from "react";
@@ -93510,8 +93510,8 @@ const Myt = ({ text: e }) => l("div", {
93510
93510
  type: "error",
93511
93511
  message: typeof c == "string" ? c : void 0
93512
93512
  }), r || console.error("InputField: label is required for accessibility reasons. If you don't want to show a label, set hideLabel to true."), Fe(() => {
93513
- he(C);
93514
- }, [C]);
93513
+ he(k && C && M(C) > k ? C == null ? void 0 : C.substring(0, k) : C);
93514
+ }, [C, M, k]);
93515
93515
  const ue = (Ae) => {
93516
93516
  var Je;
93517
93517
  let $e = (typeof Ae == "string" ? Ae : Ae.target.value) ?? L;
@@ -93612,7 +93612,7 @@ const Myt = ({ text: e }) => l("div", {
93612
93612
  "aria-hidden": "true",
93613
93613
  children: b
93614
93614
  }), (P || A || q || v) && _("div", {
93615
- className: le("flex h-fit items-center gap-1.5 self-center pr-1", h === "md" && "pr-1.5", "relative"),
93615
+ className: le("flex h-fit items-center gap-1.5 self-center pr-[3px]", h === "md" && "pr-[7px]", "relative"),
93616
93616
  children: [P && !re && l(i2, {
93617
93617
  initial: !x(ie),
93618
93618
  children: !x(ie) && l(Xn.button, {
@@ -93628,29 +93628,30 @@ const Myt = ({ text: e }) => l("div", {
93628
93628
  transition: {
93629
93629
  duration: 0.2
93630
93630
  },
93631
- className: le("mt-pxflex mr-px h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-full p-0", fr()),
93631
+ className: le("flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-full p-0", fr()),
93632
+ type: "button",
93632
93633
  tabIndex: 0,
93633
93634
  onClick: (Ae) => {
93634
93635
  Ae.stopPropagation(), Ce();
93635
93636
  },
93636
93637
  children: l(Pt, {
93637
93638
  icon: cF,
93638
- color: "bold",
93639
+ color: "default",
93639
93640
  size: "md"
93640
93641
  })
93641
93642
  })
93642
93643
  }), (A || q) && _("div", {
93643
- className: le("mt-px flex h-fit items-center", h === "sm" && "h-[24px] pr-0.5", h === "md" && "pr-0.1 h-[25px]"),
93644
+ className: "flex min-h-6 min-w-6 items-center justify-center self-center",
93644
93645
  children: [A, q && l(Myt, {
93645
93646
  text: q
93646
93647
  })]
93647
93648
  }), l(i2, {
93648
93649
  children: v && l("div", {
93649
- className: le("pointer-events-none flex h-6 w-6 items-center justify-center", (y == null ? void 0 : y.asOverlay) && le("absolute bottom-0 right-2 top-0", "bg-gradient-to-l from-[#FFFFFF] from-0% dark:from-[#192231]", "via-[#FFFFFF] via-60% dark:via-[#192231]", "to-transparent to-100%", h === "md" && "right-3 top-2.5"), bp({
93650
+ className: le("pointer-events-none flex h-6 w-6 items-center justify-center", (y == null ? void 0 : y.asOverlay) && le("absolute bottom-0 right-2 top-0", "bg-gradient-to-l from-[#FFFFFF] from-0% dark:from-[#192231]", "via-[#FFFFFF] via-60% dark:via-[#192231]", "to-transparent to-100%", h === "md" && "right-3"), bp({
93650
93651
  size: h
93651
93652
  })),
93652
93653
  style: {
93653
- right: y == null ? void 0 : y.offset
93654
+ right: typeof (y == null ? void 0 : y.offset) == "number" ? (y == null ? void 0 : y.offset) + (h === "md" ? 6 : 0) : void 0
93654
93655
  },
93655
93656
  children: l(sX, {
93656
93657
  size: "small",