@factorialco/f0-react 6.29.1 → 6.31.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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-BxOKMgLb.js";
2
+ import { m } from "./experimental-Dokue7Zf.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
@@ -3705,6 +3705,9 @@ export declare type F0AiMessagesContainerProps = {
3705
3705
  initialMessageCaption?: string;
3706
3706
  /** Smaller secondary line below the welcome phrase. */
3707
3707
  initialMessageSubtitle?: string;
3708
+ /** Optional call-to-action pill rendered above the welcome phrase (e.g. a
3709
+ * "How to use One" shortcut). Only shown on the empty welcome screen. */
3710
+ initialMessageCta?: WelcomeScreenCta;
3708
3711
  /** Called when the user clicks the welcome phrase (used by F0AiChat to open
3709
3712
  * the pong easter egg). When omitted the phrase is non-interactive. */
3710
3713
  onWelcomeClick?: () => void;
@@ -5540,6 +5543,17 @@ declare interface WeekdaysProps {
5540
5543
  daysOfTheWeek?: string[];
5541
5544
  }
5542
5545
 
5546
+ /**
5547
+ * Optional call-to-action rendered as a pill above the welcome phrase (e.g. a
5548
+ * "How to use One" shortcut). The host owns `onClick`; f0 owns the pill styling
5549
+ * so it stays consistent with the rest of the welcome screen.
5550
+ */
5551
+ export declare type WelcomeScreenCta = {
5552
+ label: string;
5553
+ icon?: IconType;
5554
+ onClick: () => void;
5555
+ };
5556
+
5543
5557
  /**
5544
5558
  * A welcome-screen group rendered as an outline button in the welcome row.
5545
5559
  * Clicking the group opens a popover listing its `items`. The number of groups
@@ -5684,8 +5698,10 @@ declare module "@tiptap/core" {
5684
5698
 
5685
5699
  declare module "@tiptap/core" {
5686
5700
  interface Commands<ReturnType> {
5687
- transcript: {
5688
- insertTranscript: (data: TranscriptData) => ReturnType;
5701
+ videoEmbed: {
5702
+ setVideoEmbed: (options: {
5703
+ src: string;
5704
+ }) => ReturnType;
5689
5705
  };
5690
5706
  }
5691
5707
  }
@@ -5693,10 +5709,8 @@ declare module "@tiptap/core" {
5693
5709
 
5694
5710
  declare module "@tiptap/core" {
5695
5711
  interface Commands<ReturnType> {
5696
- videoEmbed: {
5697
- setVideoEmbed: (options: {
5698
- src: string;
5699
- }) => ReturnType;
5712
+ transcript: {
5713
+ insertTranscript: (data: TranscriptData) => ReturnType;
5700
5714
  };
5701
5715
  }
5702
5716
  }
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-Bbzfq-Se.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-CBidGqkB.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-DNvVMF7Z.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -337,8 +337,10 @@ declare module "@tiptap/core" {
337
337
 
338
338
  declare module "@tiptap/core" {
339
339
  interface Commands<ReturnType> {
340
- transcript: {
341
- insertTranscript: (data: TranscriptData) => ReturnType;
340
+ videoEmbed: {
341
+ setVideoEmbed: (options: {
342
+ src: string;
343
+ }) => ReturnType;
342
344
  };
343
345
  }
344
346
  }
@@ -346,10 +348,8 @@ declare module "@tiptap/core" {
346
348
 
347
349
  declare module "@tiptap/core" {
348
350
  interface Commands<ReturnType> {
349
- videoEmbed: {
350
- setVideoEmbed: (options: {
351
- src: string;
352
- }) => ReturnType;
351
+ transcript: {
352
+ insertTranscript: (data: TranscriptData) => ReturnType;
353
353
  };
354
354
  }
355
355
  }