@factorialco/f0-react 6.23.2 → 6.25.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.
- package/dist/{ChatPdfThumbnail-BS6BmrYf.js → ChatPdfThumbnail-BcVBUULI.js} +1 -1
- package/dist/{CoachmarkProvider-CGTyzNuB.js → CoachmarkProvider-fGHyrGJW.js} +5656 -5628
- package/dist/{DocumentToolbar-CurruBn6.js → DocumentToolbar-C-Cz6lqK.js} +2 -2
- package/dist/{DocxViewer-Dvz0Jo7o.js → DocxViewer-DmMRVboA.js} +2 -2
- package/dist/{F0AiProcessingOverlay-i1gfeTef.js → F0AiProcessingOverlay--0Bl_XZf.js} +2133 -2073
- package/dist/{F0CanvasPanel-kyz8aCo6.js → F0CanvasPanel-BragP3zs.js} +1 -1
- package/dist/{F0VideoPlayer-Cjdwg3I9.js → F0VideoPlayer-CMR5ZpyW.js} +1 -1
- package/dist/{SheetViewer-DaN0Ahv8.js → SheetViewer-DH9nqjul.js} +2 -2
- package/dist/{TextViewer-DY-zaYsl.js → TextViewer-BNT3vuPP.js} +2 -2
- package/dist/ai.d.ts +34 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +158 -5
- package/dist/experimental.js +4987 -4805
- package/dist/f0.d.ts +34 -1
- package/dist/f0.js +10 -10
- package/dist/{index-PGrHyWOP.js → index-D2F78glP.js} +3 -3
- package/dist/index-nFW_M0Ld.js +4 -0
- package/dist/{pdfWorker-CDMnVGUJ.js → pdfWorker-uhcsAraB.js} +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index-O8kba4Zn.js +0 -4
|
@@ -19375,7 +19375,7 @@ const Tg2 = ["delay", "onOpen"], Eg2 = (e) => {
|
|
|
19375
19375
|
if (!e || e.startsWith("#") || typeof window > "u") return !1;
|
|
19376
19376
|
try {
|
|
19377
19377
|
const t = new URL(e, window.location.href);
|
|
19378
|
-
return t.protocol !== "http:" && t.protocol !== "https:" ? !1 : t.
|
|
19378
|
+
return t.protocol !== "http:" && t.protocol !== "https:" ? !1 : t.hostname !== window.location.hostname;
|
|
19379
19379
|
} catch {
|
|
19380
19380
|
return !1;
|
|
19381
19381
|
}
|
|
@@ -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-
|
|
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-BragP3zs.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-Cik7KBQT.js";
|
|
@@ -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-
|
|
3
|
+
import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-BragP3zs.js";
|
|
4
4
|
import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
|
|
5
|
-
import { u as _, D as j } from "./DocumentToolbar-
|
|
5
|
+
import { u as _, D as j } from "./DocumentToolbar-C-Cz6lqK.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-
|
|
4
|
-
import { u as y, D as g } from "./DocumentToolbar-
|
|
3
|
+
import { u as x, S as p, p as w } from "./F0CanvasPanel-BragP3zs.js";
|
|
4
|
+
import { u as y, D as g } from "./DocumentToolbar-C-Cz6lqK.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
|
@@ -3413,7 +3413,7 @@ export declare const F0AiChatProvider: ({ enabled, side, panelContentSide, initi
|
|
|
3413
3413
|
* coupling to `useAiChat()` or CopilotKit — wrappers like F0AiChat
|
|
3414
3414
|
* provide the wiring.
|
|
3415
3415
|
*/
|
|
3416
|
-
export declare const F0AiChatTextArea: ({ onSubmit, onStop, inProgress, onBeforeSubmit, placeholders, creditWarning, clarifyingUI, pendingContext, onPendingContextChange, pendingQuote, onPendingQuoteChange, fileAttachments, toolbarStart, onTranscribe, searchPersons, onProcessFilesRef, disclaimer, footer, isWelcomeScreen, fullscreen, welcomeScreenSuggestions, onSuggestionClick, welcomeScreenCards, ref, }: F0AiChatTextAreaProps) => JSX_2.Element;
|
|
3416
|
+
export declare const F0AiChatTextArea: ({ onSubmit, onStop, inProgress, onBeforeSubmit, placeholders, creditWarning, clarifyingUI, pendingContext, onPendingContextChange, pendingQuote, onPendingQuoteChange, fileAttachments, toolbarStart, onTranscribe, searchPersons, onProcessFilesRef, disclaimer, footer, isWelcomeScreen, fullscreen, welcomeScreenSuggestions, onSuggestionClick, welcomeScreenSuggestionsPlacement, welcomeScreenCards, ref, }: F0AiChatTextAreaProps) => JSX_2.Element;
|
|
3417
3417
|
|
|
3418
3418
|
export declare type F0AiChatTextAreaProps = {
|
|
3419
3419
|
ref: RefObject<HTMLDivElement>;
|
|
@@ -3500,6 +3500,39 @@ export declare type F0AiChatTextAreaProps = {
|
|
|
3500
3500
|
/** Called when the user clicks a sub-suggestion. Receives the picked
|
|
3501
3501
|
* `item` and its parent `group` (the outline-button entry). */
|
|
3502
3502
|
onSuggestionClick?: (item: WelcomeScreenSuggestionItem, group: WelcomeScreenSuggestion) => void;
|
|
3503
|
+
/**
|
|
3504
|
+
* Where the welcome suggestions row sits relative to the composer.
|
|
3505
|
+
*
|
|
3506
|
+
* - `"above"` (the default) — its own block over the field, the arrangement
|
|
3507
|
+
* every consumer has had: the row stands on the page, the field below it is
|
|
3508
|
+
* a plain composer, and its popover opens upward into the welcome screen's
|
|
3509
|
+
* empty space.
|
|
3510
|
+
*
|
|
3511
|
+
* - `"inside"` — the row moves INTO the field, at its foot, so the field's own
|
|
3512
|
+
* border and AI focus highlight enclose it and the composer reads as a
|
|
3513
|
+
* single bar about two lines tall. Its popover opens downward, because up is
|
|
3514
|
+
* now the text you are about to type.
|
|
3515
|
+
*
|
|
3516
|
+
* ⚠️ `"inside"` IS A COMPOSER SHAPE, NOT JUST A POSITION. It also moves the
|
|
3517
|
+
* send button onto the textarea's own line (at `sm`, centred on the text) and
|
|
3518
|
+
* puts One's mark in front of the text. Neither is a feature bolted onto this
|
|
3519
|
+
* prop — they are what make the placement possible and legible. The action row
|
|
3520
|
+
* is full-width, so a chips row plus an action row inside one field is three
|
|
3521
|
+
* stacked bands and the "single bar" is gone; with send trailing the text there
|
|
3522
|
+
* are two, text then suggestions. The attachment, host (`toolbarStart`) and
|
|
3523
|
+
* dictation controls keep their own row when the host enables them; with none
|
|
3524
|
+
* of them the field is just the two bands.
|
|
3525
|
+
*
|
|
3526
|
+
* THE INLINE SEND FOLLOWS THE PROP, NOT THE WELCOME STATE. The suggestions
|
|
3527
|
+
* themselves are welcome-screen-only as they always were, but a composer that
|
|
3528
|
+
* put send back in the action row the moment the first message landed would
|
|
3529
|
+
* change shape under the reader mid-conversation. `"inside"` therefore keeps
|
|
3530
|
+
* the two-band bar for the whole thread; after the welcome screen it is simply
|
|
3531
|
+
* a bar with no chips in it.
|
|
3532
|
+
*
|
|
3533
|
+
* @default "above"
|
|
3534
|
+
*/
|
|
3535
|
+
welcomeScreenSuggestionsPlacement?: "above" | "inside";
|
|
3503
3536
|
/**
|
|
3504
3537
|
* Cards rendered as a grid below the composer on the fullscreen welcome
|
|
3505
3538
|
* screen. Each card carries its own `onClick`; the host decides the behavior.
|
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-
|
|
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-BragP3zs.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
|
|
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--0Bl_XZf.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|