@factorialco/f0-react 6.86.5 → 6.87.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.
@@ -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
  }
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
  /**
@@ -5801,9 +5806,10 @@ declare module "@tiptap/core" {
5801
5806
 
5802
5807
  declare module "@tiptap/core" {
5803
5808
  interface Commands<ReturnType> {
5804
- fontSize: {
5805
- setFontSize: (fontSize: string) => ReturnType;
5806
- unsetFontSize: () => ReturnType;
5809
+ indent: {
5810
+ setIndent: (level: number) => ReturnType;
5811
+ unsetIndent: () => ReturnType;
5812
+ outdent: () => ReturnType;
5807
5813
  };
5808
5814
  }
5809
5815
  }
@@ -5811,10 +5817,9 @@ declare module "@tiptap/core" {
5811
5817
 
5812
5818
  declare module "@tiptap/core" {
5813
5819
  interface Commands<ReturnType> {
5814
- indent: {
5815
- setIndent: (level: number) => ReturnType;
5816
- unsetIndent: () => ReturnType;
5817
- outdent: () => ReturnType;
5820
+ fontSize: {
5821
+ setFontSize: (fontSize: string) => ReturnType;
5822
+ unsetFontSize: () => ReturnType;
5818
5823
  };
5819
5824
  }
5820
5825
  }
@@ -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,
@@ -318,9 +318,10 @@ declare module "@tiptap/core" {
318
318
 
319
319
  declare module "@tiptap/core" {
320
320
  interface Commands<ReturnType> {
321
- fontSize: {
322
- setFontSize: (fontSize: string) => ReturnType;
323
- unsetFontSize: () => ReturnType;
321
+ indent: {
322
+ setIndent: (level: number) => ReturnType;
323
+ unsetIndent: () => ReturnType;
324
+ outdent: () => ReturnType;
324
325
  };
325
326
  }
326
327
  }
@@ -328,10 +329,9 @@ declare module "@tiptap/core" {
328
329
 
329
330
  declare module "@tiptap/core" {
330
331
  interface Commands<ReturnType> {
331
- indent: {
332
- setIndent: (level: number) => ReturnType;
333
- unsetIndent: () => ReturnType;
334
- outdent: () => ReturnType;
332
+ fontSize: {
333
+ setFontSize: (fontSize: string) => ReturnType;
334
+ unsetFontSize: () => ReturnType;
335
335
  };
336
336
  }
337
337
  }
@@ -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
  }