@factorialco/f0-react 6.30.0 → 6.31.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.
@@ -127393,7 +127393,7 @@ const pJ1 = ({
127393
127393
  portalContainer: a2
127394
127394
  }
127395
127395
  ), _o = x1.map((A2) => A2.selectedLabel ?? A2.label).filter(Boolean).join(", "), ef = (A2) => {
127396
- const v1 = /* @__PURE__ */ i("div", { className: "w-full min-w-0", children: A2 });
127396
+ const v1 = /* @__PURE__ */ i("div", { className: K("w-full min-w-0", !!c && "h-full"), children: A2 });
127397
127397
  return _o ? /* @__PURE__ */ i(
127398
127398
  GM,
127399
127399
  {
@@ -127442,7 +127442,7 @@ const pJ1 = ({
127442
127442
  /* @__PURE__ */ i(He2, { ref: r2, asChild: !0, children: c ? /* @__PURE__ */ i(
127443
127443
  "div",
127444
127444
  {
127445
- className: "flex w-full items-center justify-between",
127445
+ className: "flex h-full w-full items-center justify-between",
127446
127446
  "aria-label": H || t,
127447
127447
  children: c
127448
127448
  }
@@ -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 dt, w as ut, r as ft } from "./F0CanvasPanel-Bbzfq-Se.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 dt, w as ut, r as ft } from "./F0CanvasPanel-BqgELcDY.js";
2
2
  import { jsxs as R, jsx as l } from "react/jsx-runtime";
3
3
  import { forwardRef as re, useId as mt, useState as x, useRef as O, useEffect as _, useMemo as J, useCallback as M } from "react";
4
4
  import { d as H, f as de } from "./tooltip-DTpaXpXW.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-Dokue7Zf.js";
2
+ import { m } from "./experimental-Cf3ltnmp.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-Bbzfq-Se.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-BqgELcDY.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-T48vsH6k.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-LoUjsLjI.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-Bbzfq-Se.js";
4
- import { u as y, D as g } from "./DocumentToolbar-T48vsH6k.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-BqgELcDY.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-LoUjsLjI.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
@@ -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
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-Bbzfq-Se.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-BqgELcDY.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-aXf8JKg4.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,