@factorialco/f0-react 6.62.0 → 6.63.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.
@@ -4565,13 +4565,14 @@ const F2 = ({
4565
4565
  "overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
4566
4566
  ),
4567
4567
  children: d.map(
4568
- (h, w) => h.type === "mention" ? /* @__PURE__ */ t(
4569
- "span",
4570
- {
4571
- className: "font-medium text-f1-foreground-secondary",
4572
- children: h.text
4573
- },
4574
- w
4568
+ (h, w) => h.type === "mention" ? (
4569
+ // No weight change: a `<textarea>` lays its entire run out at
4570
+ // one weight, so a heavier mention paints wider than the
4571
+ // transparent glyphs the caret is positioned from and every
4572
+ // character after it sits off its boundary. Colour alone carries
4573
+ // the distinction. See the comms twin (ChatTextareaField) for the
4574
+ // measurement.
4575
+ /* @__PURE__ */ t("span", { className: "text-f1-foreground-secondary", children: h.text }, w)
4575
4576
  ) : h.type === "ghost" ? /* @__PURE__ */ t("span", { className: "text-f1-foreground-secondary opacity-50", children: h.text }, w) : /* @__PURE__ */ t("span", { children: h.text }, w)
4576
4577
  )
4577
4578
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-JPq5h5Bq.js";
2
+ import { m } from "./experimental-CcPeQK5_.js";
3
3
  import { useRef as l, useEffect as i, useState as b } from "react";
4
4
  const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
5
5
  const [c, s] = b(!1);
package/dist/ai.d.ts CHANGED
@@ -5761,9 +5761,11 @@ declare module "@tiptap/core" {
5761
5761
 
5762
5762
  declare module "@tiptap/core" {
5763
5763
  interface Commands<ReturnType> {
5764
- fontSize: {
5765
- setFontSize: (fontSize: string) => ReturnType;
5766
- unsetFontSize: () => ReturnType;
5764
+ enhanceHighlight: {
5765
+ setEnhanceHighlight: (from: number, to: number, options?: {
5766
+ placeholder?: string;
5767
+ }) => ReturnType;
5768
+ clearEnhanceHighlight: () => ReturnType;
5767
5769
  };
5768
5770
  }
5769
5771
  }
@@ -5771,10 +5773,9 @@ declare module "@tiptap/core" {
5771
5773
 
5772
5774
  declare module "@tiptap/core" {
5773
5775
  interface Commands<ReturnType> {
5774
- indent: {
5775
- setIndent: (level: number) => ReturnType;
5776
- unsetIndent: () => ReturnType;
5777
- outdent: () => ReturnType;
5776
+ fontSize: {
5777
+ setFontSize: (fontSize: string) => ReturnType;
5778
+ unsetFontSize: () => ReturnType;
5778
5779
  };
5779
5780
  }
5780
5781
  }
@@ -5782,11 +5783,10 @@ declare module "@tiptap/core" {
5782
5783
 
5783
5784
  declare module "@tiptap/core" {
5784
5785
  interface Commands<ReturnType> {
5785
- enhanceHighlight: {
5786
- setEnhanceHighlight: (from: number, to: number, options?: {
5787
- placeholder?: string;
5788
- }) => ReturnType;
5789
- clearEnhanceHighlight: () => ReturnType;
5786
+ indent: {
5787
+ setIndent: (level: number) => ReturnType;
5788
+ unsetIndent: () => ReturnType;
5789
+ outdent: () => ReturnType;
5790
5790
  };
5791
5791
  }
5792
5792
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-DeUaUB_R.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-DZeOFTnB.js";
3
+ import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-De0y15ST.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -306,9 +306,11 @@ declare module "@tiptap/core" {
306
306
 
307
307
  declare module "@tiptap/core" {
308
308
  interface Commands<ReturnType> {
309
- fontSize: {
310
- setFontSize: (fontSize: string) => ReturnType;
311
- unsetFontSize: () => ReturnType;
309
+ enhanceHighlight: {
310
+ setEnhanceHighlight: (from: number, to: number, options?: {
311
+ placeholder?: string;
312
+ }) => ReturnType;
313
+ clearEnhanceHighlight: () => ReturnType;
312
314
  };
313
315
  }
314
316
  }
@@ -316,10 +318,9 @@ declare module "@tiptap/core" {
316
318
 
317
319
  declare module "@tiptap/core" {
318
320
  interface Commands<ReturnType> {
319
- indent: {
320
- setIndent: (level: number) => ReturnType;
321
- unsetIndent: () => ReturnType;
322
- outdent: () => ReturnType;
321
+ fontSize: {
322
+ setFontSize: (fontSize: string) => ReturnType;
323
+ unsetFontSize: () => ReturnType;
323
324
  };
324
325
  }
325
326
  }
@@ -327,11 +328,10 @@ declare module "@tiptap/core" {
327
328
 
328
329
  declare module "@tiptap/core" {
329
330
  interface Commands<ReturnType> {
330
- enhanceHighlight: {
331
- setEnhanceHighlight: (from: number, to: number, options?: {
332
- placeholder?: string;
333
- }) => ReturnType;
334
- clearEnhanceHighlight: () => ReturnType;
331
+ indent: {
332
+ setIndent: (level: number) => ReturnType;
333
+ unsetIndent: () => ReturnType;
334
+ outdent: () => ReturnType;
335
335
  };
336
336
  }
337
337
  }