@factorialco/f0-react 2.51.0 → 2.53.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/{F0CanvasPanel-DDHvW6gk.js → F0CanvasPanel-Cb-XPsWw.js} +24383 -23738
- package/dist/ai.d.ts +13 -9
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +16 -10
- package/dist/experimental.js +1011 -1059
- package/dist/f0.d.ts +47 -11
- package/dist/f0.js +2034 -2034
- package/dist/i18n-provider-defaults.d.ts +6 -6
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-CKnLaxwq.js → useChatHistory-K5KKfnAw.js} +2595 -2573
- package/dist/{useDataCollectionSource-FspzgKHC.js → useDataCollectionSource-B5h-cwWc.js} +9304 -9799
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -2862,9 +2862,10 @@ export declare type F0AiChatTextAreaProps = {
|
|
|
2862
2862
|
* `item` and its parent `group` (the outline-button entry). */
|
|
2863
2863
|
onSuggestionClick?: (item: WelcomeScreenSuggestionItem, group: WelcomeScreenSuggestion) => void;
|
|
2864
2864
|
/**
|
|
2865
|
-
* When true, the composer adopts the fullscreen
|
|
2866
|
-
*
|
|
2867
|
-
*
|
|
2865
|
+
* When true on the welcome screen, the composer adopts the fullscreen
|
|
2866
|
+
* layout: the input slot grows to claim the bottom half (so the textarea
|
|
2867
|
+
* rises toward the vertical center), and the welcome suggestions render
|
|
2868
|
+
* below the textarea with their popover opening downward (instead of above).
|
|
2868
2869
|
*/
|
|
2869
2870
|
fullscreen?: boolean;
|
|
2870
2871
|
};
|
|
@@ -2962,6 +2963,9 @@ export declare type F0AiMessagesContainerProps = {
|
|
|
2962
2963
|
onAssistantMessageRendered?: (message: Message) => void;
|
|
2963
2964
|
/** Disables auto-scrollIntoView on new user messages (fullscreen sets false). */
|
|
2964
2965
|
autoScrollUserIntoView?: boolean;
|
|
2966
|
+
/** Fullscreen welcome layout: pushes the welcome phrase to the bottom of the
|
|
2967
|
+
* top half so it meets the composer near the vertical center. */
|
|
2968
|
+
fullscreen?: boolean;
|
|
2965
2969
|
/**
|
|
2966
2970
|
* Renders the markdown content of user/assistant messages. The connected
|
|
2967
2971
|
* wrapper provides a CopilotKit + f0-markdown-renderers implementation;
|
|
@@ -4707,9 +4711,9 @@ declare module "gridstack" {
|
|
|
4707
4711
|
|
|
4708
4712
|
declare module "@tiptap/core" {
|
|
4709
4713
|
interface Commands<ReturnType> {
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4714
|
+
aiBlock: {
|
|
4715
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
4716
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
4713
4717
|
};
|
|
4714
4718
|
}
|
|
4715
4719
|
}
|
|
@@ -4717,9 +4721,9 @@ declare module "@tiptap/core" {
|
|
|
4717
4721
|
|
|
4718
4722
|
declare module "@tiptap/core" {
|
|
4719
4723
|
interface Commands<ReturnType> {
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4724
|
+
enhanceHighlight: {
|
|
4725
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
4726
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
4723
4727
|
};
|
|
4724
4728
|
}
|
|
4725
4729
|
}
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-
|
|
1
|
+
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-Cb-XPsWw.js";
|
|
2
2
|
import { defaultTranslations as m } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-
|
|
3
|
+
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-K5KKfnAw.js";
|
|
4
4
|
export {
|
|
5
5
|
c as AiChatTranslationsProvider,
|
|
6
6
|
I as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1019,7 +1019,7 @@ declare type BaseFilterDefinition<T extends FilterTypeKey> = {
|
|
|
1019
1019
|
hideSelector?: boolean;
|
|
1020
1020
|
};
|
|
1021
1021
|
|
|
1022
|
-
declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
|
|
1022
|
+
declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, metadataRowGap, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
|
|
1023
1023
|
|
|
1024
1024
|
declare type BaseHeaderProps = ComponentProps<typeof BaseHeader>;
|
|
1025
1025
|
|
|
@@ -1044,6 +1044,7 @@ declare interface BaseHeaderProps_2 {
|
|
|
1044
1044
|
actions?: MetadataAction[];
|
|
1045
1045
|
};
|
|
1046
1046
|
metadata?: MetadataProps["items"];
|
|
1047
|
+
metadataRowGap?: MetadataProps["rowGap"];
|
|
1047
1048
|
/** Renders a 1px bottom border at the very bottom of the header. */
|
|
1048
1049
|
showBottomBorder?: boolean;
|
|
1049
1050
|
}
|
|
@@ -5853,8 +5854,11 @@ declare interface MetadataProps {
|
|
|
5853
5854
|
* If true and the metadata type is a list, it will be collapsed to the first item
|
|
5854
5855
|
*/
|
|
5855
5856
|
collapse?: boolean;
|
|
5857
|
+
rowGap?: MetadataRowGap;
|
|
5856
5858
|
}
|
|
5857
5859
|
|
|
5860
|
+
declare type MetadataRowGap = "none" | "xs" | "sm" | "md";
|
|
5861
|
+
|
|
5858
5862
|
declare interface MetricComputation {
|
|
5859
5863
|
datasetId: string;
|
|
5860
5864
|
aggregation: AggregationType;
|
|
@@ -6007,7 +6011,7 @@ declare type NavigationItem = Pick<LinkProps, "href" | "exactMatch" | "onClick">
|
|
|
6007
6011
|
label: string;
|
|
6008
6012
|
} & DataAttributes_2;
|
|
6009
6013
|
|
|
6010
|
-
declare type NavigationProps = {
|
|
6014
|
+
export declare type NavigationProps = {
|
|
6011
6015
|
previous?: {
|
|
6012
6016
|
url: string;
|
|
6013
6017
|
title: string;
|
|
@@ -6781,6 +6785,8 @@ export declare type PageBasedPaginatedResponse<TRecord> = BasePaginatedResponse<
|
|
|
6781
6785
|
|
|
6782
6786
|
export declare function PageHeader({ module, statusTag, breadcrumbs, actions, embedded, navigation, productUpdates, favorites, oneSwitchTooltip, oneSwitchAutoOpen, }: HeaderProps): JSX_2.Element;
|
|
6783
6787
|
|
|
6788
|
+
export declare function PageNavigation({ previous, next, counter }: NavigationProps): JSX_2.Element;
|
|
6789
|
+
|
|
6784
6790
|
declare interface PageProps {
|
|
6785
6791
|
children?: React.ReactNode;
|
|
6786
6792
|
header?: React.ReactNode;
|
|
@@ -7120,7 +7126,7 @@ declare type PropertyDefinition_2<T> = {
|
|
|
7120
7126
|
hide?: (item: T) => boolean;
|
|
7121
7127
|
};
|
|
7122
7128
|
|
|
7123
|
-
declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "showBottomBorder">;
|
|
7129
|
+
declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder">;
|
|
7124
7130
|
|
|
7125
7131
|
declare type Props_10<Id extends string | number = string | number> = {
|
|
7126
7132
|
items: Omit<WidgetSimpleListItemProps<Id>, "onClick">[];
|
|
@@ -7315,7 +7321,7 @@ export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordTyp
|
|
|
7315
7321
|
/**
|
|
7316
7322
|
* @experimental This is an experimental component use it at your own risk
|
|
7317
7323
|
*/
|
|
7318
|
-
export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, showBottomBorder, }: Props) => JSX_2.Element;
|
|
7324
|
+
export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, metadataRowGap, showBottomBorder, }: Props) => JSX_2.Element;
|
|
7319
7325
|
|
|
7320
7326
|
export declare type ResourceHeaderProps = Props;
|
|
7321
7327
|
|
|
@@ -8860,9 +8866,9 @@ declare module "gridstack" {
|
|
|
8860
8866
|
|
|
8861
8867
|
declare module "@tiptap/core" {
|
|
8862
8868
|
interface Commands<ReturnType> {
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8869
|
+
aiBlock: {
|
|
8870
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
8871
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
8866
8872
|
};
|
|
8867
8873
|
}
|
|
8868
8874
|
}
|
|
@@ -8870,9 +8876,9 @@ declare module "@tiptap/core" {
|
|
|
8870
8876
|
|
|
8871
8877
|
declare module "@tiptap/core" {
|
|
8872
8878
|
interface Commands<ReturnType> {
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8879
|
+
enhanceHighlight: {
|
|
8880
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
8881
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
8876
8882
|
};
|
|
8877
8883
|
}
|
|
8878
8884
|
}
|