@factorialco/f0-react 6.91.2 → 6.93.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,4 +1,4 @@
1
- import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as ut, w as dt, r as ft } from "./F0CanvasPanel-BYk37H3S.js";
1
+ import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as ut, w as dt, r as ft } from "./F0CanvasPanel-CfmcbyHH.js";
2
2
  import { jsxs as S, jsx as c } from "react/jsx-runtime";
3
3
  import { forwardRef as re, useId as mt, useState as x, useRef as F, useEffect as N, useMemo as J, useCallback as T } from "react";
4
4
  import { d as H, f as ue } from "./tooltip-CMBdJvJA.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-DsSJIAU6.js";
2
+ import { m } from "./experimental-BiC_8-Mj.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);
@@ -1,8 +1,8 @@
1
1
  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
- import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-BYk37H3S.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-CfmcbyHH.js";
4
4
  import { f as z, c as E } from "./sheetPreview-Djc-YyVs.js";
5
- import { u as _, D as j } from "./DocumentToolbar-Z04LbjLe.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-DNQcONeP.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
- import { u as x, S as p, p as w } from "./F0CanvasPanel-BYk37H3S.js";
4
- import { u as y, D as g } from "./DocumentToolbar-Z04LbjLe.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-CfmcbyHH.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-DNQcONeP.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
@@ -1135,6 +1135,9 @@ declare type CanvasCardAction = {
1135
1135
  hideLabel?: boolean;
1136
1136
  };
1137
1137
 
1138
+ /** The card's own control: open/close, or the host's custom action. */
1139
+ declare const CanvasCardAction: ({ action, isActive, }: Pick<F0CanvasCardProps, "action" | "isActive">) => JSX_2.Element | null;
1140
+
1138
1141
  declare type CanvasCardAvatar = {
1139
1142
  type: "module";
1140
1143
  module: ModuleId;
@@ -1146,6 +1149,9 @@ declare type CanvasCardAvatar = {
1146
1149
  icon: IconType;
1147
1150
  };
1148
1151
 
1152
+ /** Whichever avatar the card was given: a module, a file, or an icon. */
1153
+ declare const CanvasCardAvatar: ({ avatar }: Pick<F0CanvasCardProps, "avatar">) => JSX_2.Element | null;
1154
+
1149
1155
  /**
1150
1156
  * Discriminated union for canvas panel content.
1151
1157
  * Add new entity types to this union as they are implemented.
@@ -5837,8 +5843,10 @@ declare module "@tiptap/core" {
5837
5843
 
5838
5844
  declare module "@tiptap/core" {
5839
5845
  interface Commands<ReturnType> {
5840
- transcript: {
5841
- insertTranscript: (data: TranscriptData) => ReturnType;
5846
+ videoEmbed: {
5847
+ setVideoEmbed: (options: {
5848
+ src: string;
5849
+ }) => ReturnType;
5842
5850
  };
5843
5851
  }
5844
5852
  }
@@ -5846,10 +5854,8 @@ declare module "@tiptap/core" {
5846
5854
 
5847
5855
  declare module "@tiptap/core" {
5848
5856
  interface Commands<ReturnType> {
5849
- videoEmbed: {
5850
- setVideoEmbed: (options: {
5851
- src: string;
5852
- }) => ReturnType;
5857
+ transcript: {
5858
+ insertTranscript: (data: TranscriptData) => ReturnType;
5853
5859
  };
5854
5860
  }
5855
5861
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
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-BYk37H3S.js";
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-CfmcbyHH.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-CIBXF0aA.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-Ki2lYT6_.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -348,8 +348,10 @@ declare module "@tiptap/core" {
348
348
 
349
349
  declare module "@tiptap/core" {
350
350
  interface Commands<ReturnType> {
351
- transcript: {
352
- insertTranscript: (data: TranscriptData) => ReturnType;
351
+ videoEmbed: {
352
+ setVideoEmbed: (options: {
353
+ src: string;
354
+ }) => ReturnType;
353
355
  };
354
356
  }
355
357
  }
@@ -357,10 +359,8 @@ declare module "@tiptap/core" {
357
359
 
358
360
  declare module "@tiptap/core" {
359
361
  interface Commands<ReturnType> {
360
- videoEmbed: {
361
- setVideoEmbed: (options: {
362
- src: string;
363
- }) => ReturnType;
362
+ transcript: {
363
+ insertTranscript: (data: TranscriptData) => ReturnType;
364
364
  };
365
365
  }
366
366
  }