@factorialco/f0-react 1.469.1 → 1.470.1

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.
@@ -237348,6 +237348,7 @@ const pBr = (e, t) => /* @__PURE__ */ f(
237348
237348
  B && (j ? /* @__PURE__ */ f(
237349
237349
  P5,
237350
237350
  {
237351
+ width: "fit",
237351
237352
  sticky: { right: 0 },
237352
237353
  className: "border-0 border-l-[1px] border-solid border-f1-border-secondary",
237353
237354
  children: /* @__PURE__ */ f("span", { className: "sr-only", children: C.collections.actions.actions })
@@ -237422,6 +237423,7 @@ const pBr = (e, t) => /* @__PURE__ */ f(
237422
237423
  B && (j ? /* @__PURE__ */ f(
237423
237424
  P5,
237424
237425
  {
237426
+ width: "fit",
237425
237427
  sticky: { right: 0 },
237426
237428
  className: "border-0 border-l-[1px] border-solid border-f1-border-secondary",
237427
237429
  children: /* @__PURE__ */ f("span", { className: "sr-only", children: C.collections.actions.actions })
@@ -237753,8 +237755,12 @@ const pBr = (e, t) => /* @__PURE__ */ f(
237753
237755
  ] }) });
237754
237756
  };
237755
237757
  function VBr({ message: e, children: t }) {
237756
- const [n, r] = fe(!1), i = Ee(() => r(!0), []), a = Ee(() => r(!1), []);
237757
- return /* @__PURE__ */ f("div", { className: "relative h-full w-full", children: /* @__PURE__ */ f(af, { delayDuration: 100, disableHoverableContent: !0, children: /* @__PURE__ */ A(of, { open: n, onOpenChange: r, children: [
237758
+ const [n, r] = fe(!1), i = Ee(() => {
237759
+ e && r(!0);
237760
+ }, [e]), a = Ee(() => r(!1), []);
237761
+ return Ve(() => {
237762
+ e || r(!1);
237763
+ }, [e]), /* @__PURE__ */ f("div", { className: "relative h-full w-full", children: /* @__PURE__ */ f(af, { delayDuration: 100, disableHoverableContent: !0, children: /* @__PURE__ */ A(of, { open: n && !!e, onOpenChange: r, children: [
237758
237764
  /* @__PURE__ */ f(sf, { asChild: !0, className: "pointer-events-auto h-full w-full", children: /* @__PURE__ */ f(
237759
237765
  "div",
237760
237766
  {
@@ -237764,11 +237770,11 @@ function VBr({ message: e, children: t }) {
237764
237770
  children: t
237765
237771
  }
237766
237772
  ) }),
237767
- /* @__PURE__ */ A(
237773
+ e && /* @__PURE__ */ A(
237768
237774
  U7,
237769
237775
  {
237770
237776
  side: "top",
237771
- className: "flex items-center gap-1 border-black/10 bg-[#fff] shadow-md",
237777
+ className: "border-black/10 flex items-center gap-1 bg-[#fff] shadow-md",
237772
237778
  children: [
237773
237779
  /* @__PURE__ */ f(yt, { icon: s5, color: "critical", size: "sm" }),
237774
237780
  /* @__PURE__ */ f("span", { className: "text-sm font-medium text-f1-foreground-critical", children: e })
@@ -237803,7 +237809,7 @@ function Ju({
237803
237809
  a ? "relative z-[1] border-r-0 bg-f1-background-critical/10 shadow-[inset_0_0_0_1px_hsl(var(--critical-50))]" : r ? "relative z-[1] border-r-0 bg-f1-background shadow-[inset_0_0_0_1px_hsl(var(--selected-50))]" : i ? "shadow-none [&:not(:focus-within)]:hover:shadow-[inset_0_0_0_1px_hsl(var(--neutral-30))] focus-within:relative focus-within:z-[1] focus-within:border-r-0 focus-within:bg-f1-background focus-within:shadow-[inset_0_0_0_1px_hsl(var(--selected-50))]" : "shadow-none",
237804
237810
  e && "bg-f1-background-secondary"
237805
237811
  ),
237806
- children: a ? /* @__PURE__ */ f(VBr, { message: a, children: o }) : o
237812
+ children: /* @__PURE__ */ f(VBr, { message: a, children: o })
237807
237813
  }
237808
237814
  );
237809
237815
  }
@@ -237894,12 +237900,16 @@ function Lrt({
237894
237900
  onChange: i,
237895
237901
  item: a
237896
237902
  }) {
237897
- const o = e.numberConfig, [s, l] = fe(0), c = typeof t == "string" ? t.trim() : t, u = c !== "" && c != null ? Number(c) : NaN, d = isFinite(u) ? u : 0, { ref: h, width: p, locale: m, units: v, unitsBefore: g } = $Br(
237903
+ const o = e.numberConfig, [s, l] = fe(0), c = typeof t == "string" ? t.trim() : t, u = c !== "" && c != null ? Number(c) : NaN, d = isFinite(u) ? u : null, { ref: h, width: p, locale: m, units: v, unitsBefore: g } = $Br(
237898
237904
  o,
237899
237905
  d,
237900
237906
  a
237901
237907
  ), C = (w) => {
237902
- let x = w ?? 0;
237908
+ if (w == null) {
237909
+ t !== "" && i(null);
237910
+ return;
237911
+ }
237912
+ let x = w;
237903
237913
  o?.min != null && x < o.min && (x = o.min), o?.max != null && x > o.max && (x = o.max);
237904
237914
  const k = String(x);
237905
237915
  k !== t ? i(k) : l((_) => _ + 1);
@@ -260066,15 +260076,15 @@ export {
260066
260076
  Opr as ad,
260067
260077
  eXe as ae,
260068
260078
  Nqe as af,
260069
- EFe as ag,
260070
- Bm as ah,
260071
- Vie as ai,
260072
- af as aj,
260073
- of as ak,
260074
- sf as al,
260075
- mae as am,
260076
- qqe as an,
260077
- U7 as ao,
260079
+ af as ag,
260080
+ of as ah,
260081
+ sf as ai,
260082
+ mae as aj,
260083
+ qqe as ak,
260084
+ U7 as al,
260085
+ EFe as am,
260086
+ Bm as an,
260087
+ Vie as ao,
260078
260088
  Axt as ap,
260079
260089
  Txt as aq,
260080
260090
  yt as ar,
package/dist/ai.d.ts CHANGED
@@ -3303,16 +3303,11 @@ declare module "gridstack" {
3303
3303
  }
3304
3304
 
3305
3305
 
3306
- declare namespace Calendar {
3307
- var displayName: string;
3308
- }
3309
-
3310
-
3311
3306
  declare module "@tiptap/core" {
3312
3307
  interface Commands<ReturnType> {
3313
- enhanceHighlight: {
3314
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
3315
- clearEnhanceHighlight: () => ReturnType;
3308
+ aiBlock: {
3309
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
3310
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
3316
3311
  };
3317
3312
  }
3318
3313
  }
@@ -3320,9 +3315,9 @@ declare module "@tiptap/core" {
3320
3315
 
3321
3316
  declare module "@tiptap/core" {
3322
3317
  interface Commands<ReturnType> {
3323
- aiBlock: {
3324
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
3325
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
3318
+ enhanceHighlight: {
3319
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
3320
+ clearEnhanceHighlight: () => ReturnType;
3326
3321
  };
3327
3322
  }
3328
3323
  }
@@ -3355,3 +3350,8 @@ declare module "@tiptap/core" {
3355
3350
  };
3356
3351
  }
3357
3352
  }
3353
+
3354
+
3355
+ declare namespace Calendar {
3356
+ var displayName: string;
3357
+ }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-B9fVu77n.js";
1
+ import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-BoBl_LAm.js";
2
2
  import { defaultTranslations as S } from "./i18n-provider-defaults.js";
3
- import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-osvVCRdA.js";
3
+ import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-Cc9C2iNK.js";
4
4
  export {
5
5
  v as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -8053,16 +8053,11 @@ declare module "gridstack" {
8053
8053
  }
8054
8054
 
8055
8055
 
8056
- declare namespace Calendar {
8057
- var displayName: string;
8058
- }
8059
-
8060
-
8061
8056
  declare module "@tiptap/core" {
8062
8057
  interface Commands<ReturnType> {
8063
- enhanceHighlight: {
8064
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
8065
- clearEnhanceHighlight: () => ReturnType;
8058
+ aiBlock: {
8059
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
8060
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
8066
8061
  };
8067
8062
  }
8068
8063
  }
@@ -8070,9 +8065,9 @@ declare module "@tiptap/core" {
8070
8065
 
8071
8066
  declare module "@tiptap/core" {
8072
8067
  interface Commands<ReturnType> {
8073
- aiBlock: {
8074
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
8075
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
8068
+ enhanceHighlight: {
8069
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
8070
+ clearEnhanceHighlight: () => ReturnType;
8076
8071
  };
8077
8072
  }
8078
8073
  }
@@ -8105,3 +8100,8 @@ declare module "@tiptap/core" {
8105
8100
  };
8106
8101
  }
8107
8102
  }
8103
+
8104
+
8105
+ declare namespace Calendar {
8106
+ var displayName: string;
8107
+ }