@factorialco/f0-react 6.23.1 → 6.24.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/{F0AiProcessingOverlay-i1gfeTef.js → F0AiProcessingOverlay-CPJ5KBQR.js} +2133 -2073
- package/dist/ai.d.ts +42 -9
- package/dist/ai.js +1 -1
- package/dist/component-status.d.ts +8 -8
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +8 -8
- package/dist/experimental.js +9 -2
- package/dist/f0.d.ts +42 -9
- package/dist/f0.js +2 -2
- package/dist/i18n-provider-defaults.d.ts +8 -8
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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.
|
|
@@ -5561,11 +5594,9 @@ declare namespace Calendar {
|
|
|
5561
5594
|
|
|
5562
5595
|
declare module "@tiptap/core" {
|
|
5563
5596
|
interface Commands<ReturnType> {
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
}) => ReturnType;
|
|
5568
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
5597
|
+
aiBlock: {
|
|
5598
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
5599
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
5569
5600
|
};
|
|
5570
5601
|
}
|
|
5571
5602
|
}
|
|
@@ -5573,9 +5604,11 @@ declare module "@tiptap/core" {
|
|
|
5573
5604
|
|
|
5574
5605
|
declare module "@tiptap/core" {
|
|
5575
5606
|
interface Commands<ReturnType> {
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5607
|
+
enhanceHighlight: {
|
|
5608
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
5609
|
+
placeholder?: string;
|
|
5610
|
+
}) => ReturnType;
|
|
5611
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
5579
5612
|
};
|
|
5580
5613
|
}
|
|
5581
5614
|
}
|
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-kyz8aCo6.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-CPJ5KBQR.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|
|
@@ -285,11 +285,9 @@ declare namespace Calendar {
|
|
|
285
285
|
|
|
286
286
|
declare module "@tiptap/core" {
|
|
287
287
|
interface Commands<ReturnType> {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}) => ReturnType;
|
|
292
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
288
|
+
aiBlock: {
|
|
289
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
290
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
293
291
|
};
|
|
294
292
|
}
|
|
295
293
|
}
|
|
@@ -297,9 +295,11 @@ declare module "@tiptap/core" {
|
|
|
297
295
|
|
|
298
296
|
declare module "@tiptap/core" {
|
|
299
297
|
interface Commands<ReturnType> {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
298
|
+
enhanceHighlight: {
|
|
299
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
300
|
+
placeholder?: string;
|
|
301
|
+
}) => ReturnType;
|
|
302
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
}
|