@factorialco/f0-react 6.86.5 → 6.87.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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { D as l, P as d, e as s } from "./pdfWorker-CnYPTQSS.js";
2
+ import { D as l, P as d, e as s } from "./pdfWorker-CrkERbwq.js";
3
3
  s();
4
4
  const f = ({
5
5
  url: n,
@@ -2703,7 +2703,7 @@ const _V = ({
2703
2703
  }
2704
2704
  ),
2705
2705
  t.subtitle && /* @__PURE__ */ P("div", { className: "flex flex-row items-center gap-1", children: [
2706
- /* @__PURE__ */ m(NV, {}),
2706
+ !t.link && /* @__PURE__ */ m(NV, {}),
2707
2707
  /* @__PURE__ */ m(qA, { className: "truncate", children: t.subtitle })
2708
2708
  ] }),
2709
2709
  t.info && /* @__PURE__ */ m(Of, { label: t.info, children: /* @__PURE__ */ m(
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
2
  import { useState as u, useCallback as m, useMemo as p } from "react";
3
3
  import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-DjWQhvxj.js";
4
- import { n as g, a as h, f as v, T as r, d as F } from "./index-p39WqkPI.js";
4
+ import { n as g, a as h, f as v, T as r, d as F } from "./index-O6DySIGj.js";
5
5
  const D = () => {
6
6
  const [t, a] = u(1), n = m(
7
7
  () => a((e) => g(e) ?? e),
@@ -2,7 +2,7 @@ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import { useRef as g, useState as h, useEffect as b } from "react";
3
3
  import { r as p } from "./docx-preview-BaRDMyPN.js";
4
4
  import { u as v, S as w } from "./F0CanvasPanel-DjWQhvxj.js";
5
- import { u as x, D as y } from "./DocumentToolbar-Ct61NVVc.js";
5
+ import { u as x, D as y } from "./DocumentToolbar-BR442e_P.js";
6
6
  const V = ({
7
7
  url: o,
8
8
  filename: d,
@@ -4246,9 +4246,9 @@ function k2({
4246
4246
  const y2 = {
4247
4247
  soft: {
4248
4248
  text: "",
4249
- bg: "bg-f1-background-info",
4250
- fontColor: "text-f1-foreground-info",
4251
- formBorder: "[&_form]:border-f1-border-info"
4249
+ bg: "bg-f1-background-secondary",
4250
+ fontColor: "text-f1-foreground-secondary",
4251
+ formBorder: "[&_form]:border-f1-border"
4252
4252
  }
4253
4253
  }, M2 = ({
4254
4254
  creditWarning: e,
@@ -4280,6 +4280,7 @@ const y2 = {
4280
4280
  label: n.ai.creditWarning.getCredits ?? "",
4281
4281
  size: "sm",
4282
4282
  variant: "outline",
4283
+ icon: e.getCreditsIcon,
4283
4284
  tooltip: n.ai.creditWarning.getCredits ?? "",
4284
4285
  onClick: e.onGetCredits
4285
4286
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-CbOZz_Mw.js";
2
+ import { m } from "./experimental-Q9kMJ9wE.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);
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as k } from "react";
3
3
  import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-DjWQhvxj.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-Ct61NVVc.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-BR442e_P.js";
6
6
  const g = 1e3, F = 100, G = ({
7
7
  url: n,
8
8
  filename: y,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useEffect as h } from "react";
3
3
  import { u as x, S as p, p as w } from "./F0CanvasPanel-DjWQhvxj.js";
4
- import { u as y, D as g } from "./DocumentToolbar-Ct61NVVc.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-BR442e_P.js";
5
5
  const k = 2 * 1024 * 1024, v = [
6
6
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
7
7
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
package/dist/ai.d.ts CHANGED
@@ -198,6 +198,11 @@ export declare type AiChatCreditWarning = {
198
198
  onDismiss?: () => void;
199
199
  /** Called when the user clicks the "Get Credits" button. */
200
200
  onGetCredits?: () => void;
201
+ /**
202
+ * Icon rendered to the left of the "Get Credits" label. Only used when
203
+ * `onGetCredits` is provided. Hosts typically pass the `Upsell` icon.
204
+ */
205
+ getCreditsIcon?: IconType;
201
206
  };
202
207
 
203
208
  /**
@@ -5831,10 +5836,8 @@ declare module "@tiptap/core" {
5831
5836
 
5832
5837
  declare module "@tiptap/core" {
5833
5838
  interface Commands<ReturnType> {
5834
- videoEmbed: {
5835
- setVideoEmbed: (options: {
5836
- src: string;
5837
- }) => ReturnType;
5839
+ transcript: {
5840
+ insertTranscript: (data: TranscriptData) => ReturnType;
5838
5841
  };
5839
5842
  }
5840
5843
  }
@@ -5842,8 +5845,10 @@ declare module "@tiptap/core" {
5842
5845
 
5843
5846
  declare module "@tiptap/core" {
5844
5847
  interface Commands<ReturnType> {
5845
- transcript: {
5846
- insertTranscript: (data: TranscriptData) => ReturnType;
5848
+ videoEmbed: {
5849
+ setVideoEmbed: (options: {
5850
+ src: string;
5851
+ }) => ReturnType;
5847
5852
  };
5848
5853
  }
5849
5854
  }
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-DjWQhvxj.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-IEFixuXr.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-Dpen_hcq.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -348,10 +348,8 @@ declare module "@tiptap/core" {
348
348
 
349
349
  declare module "@tiptap/core" {
350
350
  interface Commands<ReturnType> {
351
- videoEmbed: {
352
- setVideoEmbed: (options: {
353
- src: string;
354
- }) => ReturnType;
351
+ transcript: {
352
+ insertTranscript: (data: TranscriptData) => ReturnType;
355
353
  };
356
354
  }
357
355
  }
@@ -359,8 +357,10 @@ declare module "@tiptap/core" {
359
357
 
360
358
  declare module "@tiptap/core" {
361
359
  interface Commands<ReturnType> {
362
- transcript: {
363
- insertTranscript: (data: TranscriptData) => ReturnType;
360
+ videoEmbed: {
361
+ setVideoEmbed: (options: {
362
+ src: string;
363
+ }) => ReturnType;
364
364
  };
365
365
  }
366
366
  }