@factorialco/f0-react 1.438.3 → 1.444.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/{F0AiChat-Cv0j7lo_.js → F0AiChat-RHHqqqMC.js} +142837 -126169
- package/dist/F0AiChat.css +1 -1
- package/dist/ai.d.ts +597 -7
- package/dist/ai.js +12 -10
- package/dist/experimental.d.ts +104 -3
- package/dist/experimental.js +3581 -3861
- package/dist/f0.css +1 -0
- package/dist/f0.d.ts +379 -37
- package/dist/f0.js +14479 -10522
- package/dist/i18n-provider-defaults.d.ts +17 -0
- package/dist/i18n-provider-defaults.js +19 -2
- package/dist/index-D_fn_du2.js +44284 -0
- package/dist/index.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/types-99qPm9SM.js +2354 -0
- package/icons/app/Basket.d.ts +4 -0
- package/icons/app/Basket.d.ts.map +1 -0
- package/icons/app/Basket.js +5 -0
- package/icons/app/Bookmark.d.ts.map +1 -1
- package/icons/app/Bookmark.js +1 -1
- package/icons/app/BookmarkFilled.d.ts +4 -0
- package/icons/app/BookmarkFilled.d.ts.map +1 -0
- package/icons/app/BookmarkFilled.js +5 -0
- package/icons/app/ChartFunnel.d.ts +4 -0
- package/icons/app/ChartFunnel.d.ts.map +1 -0
- package/icons/app/ChartFunnel.js +5 -0
- package/icons/app/ChartHorizontalBars.d.ts +4 -0
- package/icons/app/ChartHorizontalBars.d.ts.map +1 -0
- package/icons/app/ChartHorizontalBars.js +5 -0
- package/icons/app/ChartLine.d.ts.map +1 -1
- package/icons/app/ChartLine.js +2 -2
- package/icons/app/ChartPie.d.ts.map +1 -1
- package/icons/app/ChartPie.js +2 -2
- package/icons/app/ChartVerticalBars.d.ts +4 -0
- package/icons/app/ChartVerticalBars.d.ts.map +1 -0
- package/icons/app/ChartVerticalBars.js +5 -0
- package/icons/app/UserProtected.d.ts +4 -0
- package/icons/app/UserProtected.d.ts.map +1 -0
- package/icons/app/UserProtected.js +5 -0
- package/icons/app/Watch.d.ts.map +1 -1
- package/icons/app/Watch.js +1 -1
- package/icons/app/index.d.ts +15 -9
- package/icons/app/index.d.ts.map +1 -1
- package/icons/app/index.js +15 -9
- package/package.json +3 -2
- package/dist/F0HILActionConfirmation-DDhZML5m.js +0 -1912
- package/dist/index-CqiKdYjB.js +0 -63101
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./F0AiChat-
|
|
2
|
-
import { defaultTranslations as
|
|
3
|
-
import { A as p, F as S, c as
|
|
1
|
+
import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./F0AiChat-RHHqqqMC.js";
|
|
2
|
+
import { defaultTranslations as m } from "./i18n-provider-defaults.js";
|
|
3
|
+
import { A as p, e as g, F as S, c as v, d as x, b as k, a as O, f as P, o as b, u as y } from "./types-99qPm9SM.js";
|
|
4
4
|
export {
|
|
5
5
|
p as AiChatTranslationsProvider,
|
|
6
6
|
t as ChatSpinner,
|
|
@@ -9,19 +9,21 @@ export {
|
|
|
9
9
|
n as F0AiChatProvider,
|
|
10
10
|
o as F0AiChatTextArea,
|
|
11
11
|
r as F0AiFullscreenChat,
|
|
12
|
+
g as F0AiInsightCard,
|
|
12
13
|
S as F0AiMask,
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
v as F0AuraVoiceAnimation,
|
|
15
|
+
x as F0HILActionConfirmation,
|
|
15
16
|
A as F0OneIcon,
|
|
16
17
|
c as F0OneSwitch,
|
|
17
18
|
u as I18nProvider,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
k as actionItemStatuses,
|
|
20
|
+
O as aiTranslations,
|
|
21
|
+
P as contentTypes,
|
|
22
|
+
m as defaultTranslations,
|
|
21
23
|
F as getCanvasEntity,
|
|
22
|
-
|
|
24
|
+
b as oneIconSizes,
|
|
23
25
|
h as useAiChat,
|
|
24
|
-
|
|
26
|
+
y as useAiChatTranslations,
|
|
25
27
|
C as useDefaultCopilotActions,
|
|
26
28
|
l as useI18n,
|
|
27
29
|
I as useMessageSourcesAction,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { CompanyItemProps } from './types';
|
|
|
26
26
|
import { ComponentProps } from 'react';
|
|
27
27
|
import { CompoundCellValue } from './types/compound';
|
|
28
28
|
import { CopilotKitProps } from '@copilotkit/react-core';
|
|
29
|
+
import { CountCellValue } from './types/count';
|
|
29
30
|
import { CountryCellValue } from './types/country';
|
|
30
31
|
import { DateCellValue } from './types/date';
|
|
31
32
|
import { DateCellValue as DateCellValue_2 } from './experimental';
|
|
@@ -92,6 +93,7 @@ import { ScrollAreaProps } from '@radix-ui/react-scroll-area';
|
|
|
92
93
|
import { SearchFilterOptions } from './SearchFilter/SearchFilter';
|
|
93
94
|
import { StatusCellValue } from './types/status';
|
|
94
95
|
import { StatusCellValue as StatusCellValue_2 } from './experimental';
|
|
96
|
+
import { SummaryCellValue } from './types/summary';
|
|
95
97
|
import { SVGProps } from 'react';
|
|
96
98
|
import { TagAlertProps } from './experimental';
|
|
97
99
|
import { TagBalanceProps } from './experimental';
|
|
@@ -432,6 +434,21 @@ declare type AiChatCredits = {
|
|
|
432
434
|
planName?: string;
|
|
433
435
|
};
|
|
434
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Credit warning configuration.
|
|
439
|
+
* Groups severity level and action callbacks into a single object.
|
|
440
|
+
*
|
|
441
|
+
* When provided, a warning banner is shown above the chat textarea.
|
|
442
|
+
*/
|
|
443
|
+
declare type AiChatCreditWarning = {
|
|
444
|
+
/** The severity level of the warning. */
|
|
445
|
+
level: "soft";
|
|
446
|
+
/** Called when the user dismisses the credit warning banner. */
|
|
447
|
+
onDismiss?: () => void;
|
|
448
|
+
/** Called when the user clicks the "Get Credits" button. */
|
|
449
|
+
onGetCredits?: () => void;
|
|
450
|
+
};
|
|
451
|
+
|
|
435
452
|
/**
|
|
436
453
|
* Disclaimer configuration for the chat input
|
|
437
454
|
*/
|
|
@@ -508,6 +525,11 @@ declare type AiChatProviderProps = {
|
|
|
508
525
|
* Groups fetchUsage, upgradePlanUrl, and company/plan display info.
|
|
509
526
|
*/
|
|
510
527
|
credits?: AiChatCredits;
|
|
528
|
+
/**
|
|
529
|
+
* Credit warning configuration. When provided, shows a warning banner above the chat textarea.
|
|
530
|
+
* Groups severity level and action callbacks.
|
|
531
|
+
*/
|
|
532
|
+
creditWarning?: AiChatCreditWarning;
|
|
511
533
|
/**
|
|
512
534
|
* File attachment configuration. When provided, enables file uploads in the chat.
|
|
513
535
|
*/
|
|
@@ -2677,6 +2699,7 @@ declare const defaultTranslations: {
|
|
|
2677
2699
|
readonly summaries: {
|
|
2678
2700
|
readonly types: {
|
|
2679
2701
|
readonly sum: "sum";
|
|
2702
|
+
readonly count: "count";
|
|
2680
2703
|
};
|
|
2681
2704
|
};
|
|
2682
2705
|
readonly export: {
|
|
@@ -2829,9 +2852,17 @@ declare const defaultTranslations: {
|
|
|
2829
2852
|
readonly openButton: "Open";
|
|
2830
2853
|
};
|
|
2831
2854
|
readonly dataDownload: {
|
|
2855
|
+
readonly title: "Download";
|
|
2832
2856
|
readonly download: "Download {{format}}";
|
|
2833
2857
|
readonly exportDashboard: "Export dashboard as {{format}}";
|
|
2834
2858
|
readonly exporting: "Exporting...";
|
|
2859
|
+
readonly rows: "{{amount}} rows";
|
|
2860
|
+
};
|
|
2861
|
+
readonly dashboardItem: {
|
|
2862
|
+
readonly chartType: "Chart type";
|
|
2863
|
+
readonly errorTitle: "Error loading data";
|
|
2864
|
+
readonly retry: "Retry";
|
|
2865
|
+
readonly dataExplanation: "Where does this data come from?";
|
|
2835
2866
|
};
|
|
2836
2867
|
readonly pong: {
|
|
2837
2868
|
readonly title: "Pong";
|
|
@@ -2853,6 +2884,7 @@ declare const defaultTranslations: {
|
|
|
2853
2884
|
};
|
|
2854
2885
|
readonly attachFile: "Attach file";
|
|
2855
2886
|
readonly removeFile: "Remove";
|
|
2887
|
+
readonly dropFilesHere: "Drop your files here";
|
|
2856
2888
|
readonly clarifyingQuestion: {
|
|
2857
2889
|
readonly submit: "Submit";
|
|
2858
2890
|
readonly next: "Next";
|
|
@@ -2885,6 +2917,13 @@ declare const defaultTranslations: {
|
|
|
2885
2917
|
};
|
|
2886
2918
|
};
|
|
2887
2919
|
};
|
|
2920
|
+
readonly dataChart: {
|
|
2921
|
+
readonly heatmapNotSupported: "Heatmap not supported at this size";
|
|
2922
|
+
readonly barChartVertical: "Bar (vertical)";
|
|
2923
|
+
readonly barChartHorizontal: "Bar (horizontal)";
|
|
2924
|
+
readonly lineChart: "Line";
|
|
2925
|
+
readonly funnel: "Funnel";
|
|
2926
|
+
};
|
|
2888
2927
|
readonly select: {
|
|
2889
2928
|
readonly noResults: "No results found";
|
|
2890
2929
|
readonly loadingMore: "Loading...";
|
|
@@ -3100,6 +3139,11 @@ declare const defaultTranslations: {
|
|
|
3100
3139
|
};
|
|
3101
3140
|
};
|
|
3102
3141
|
|
|
3142
|
+
declare interface DeleteBlockNotesTextEditorPageDocumentPatch {
|
|
3143
|
+
type: "delete_block";
|
|
3144
|
+
targetId: string;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3103
3147
|
/**
|
|
3104
3148
|
* @experimental This is an experimental component use it at your own risk
|
|
3105
3149
|
*/
|
|
@@ -3207,7 +3251,7 @@ declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_4)
|
|
|
3207
3251
|
} & WithDataTestIdProps;
|
|
3208
3252
|
|
|
3209
3253
|
/** The edit mode for a column cell in the editable table. */
|
|
3210
|
-
declare type EditableTableCellEditType = "text" | "number" | "date" | "select" | "multiselect" | "display-only" | "disabled";
|
|
3254
|
+
declare type EditableTableCellEditType = "text" | "number" | "money" | "date" | "select" | "multiselect" | "display-only" | "disabled";
|
|
3211
3255
|
|
|
3212
3256
|
declare type EditableTableCollectionProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = CollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, EditableTableVisualizationOptions<R, Filters, Sortings, Summaries>>;
|
|
3213
3257
|
|
|
@@ -4577,6 +4621,18 @@ declare type InputInternalProps<T extends string> = Pick<ComponentProps<typeof I
|
|
|
4577
4621
|
|
|
4578
4622
|
export declare type InputProps<T extends string> = Omit<InputInternalProps<T>, (typeof privateProps_2)[number]>;
|
|
4579
4623
|
|
|
4624
|
+
declare interface InsertAfterNotesTextEditorPageDocumentPatch {
|
|
4625
|
+
type: "insert_after";
|
|
4626
|
+
targetId: string;
|
|
4627
|
+
blocks: JSONContent[];
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
|
|
4631
|
+
type: "insert_before";
|
|
4632
|
+
targetId: string;
|
|
4633
|
+
blocks: JSONContent[];
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4580
4636
|
declare const internalAvatarColors: readonly ["viridian", "malibu", "yellow", "purple", "lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel"];
|
|
4581
4637
|
|
|
4582
4638
|
declare type InternalAvatarProps = React_2.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & {
|
|
@@ -5035,15 +5091,24 @@ declare interface NextStepsProps {
|
|
|
5035
5091
|
|
|
5036
5092
|
export declare const NotesTextEditor: ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>;
|
|
5037
5093
|
|
|
5038
|
-
export declare
|
|
5094
|
+
export declare interface NotesTextEditorHandle {
|
|
5039
5095
|
clear: () => void;
|
|
5040
5096
|
focus: () => void;
|
|
5041
5097
|
setContent: (content: string) => void;
|
|
5098
|
+
applyPageDocumentPatch: (patch: NotesTextEditorPageDocumentPatch) => NotesTextEditorSnapshot;
|
|
5042
5099
|
insertAIBlock: () => void;
|
|
5043
5100
|
insertTranscript: (title: string, users: User[], messages: Message[]) => void;
|
|
5044
5101
|
pushContent: (content: string) => void;
|
|
5045
5102
|
insertImage: (file: File) => void;
|
|
5046
|
-
}
|
|
5103
|
+
}
|
|
5104
|
+
|
|
5105
|
+
export declare type NotesTextEditorPageDocumentPatch = TopLevelPrependNotesTextEditorPageDocumentPatch | TopLevelAppendNotesTextEditorPageDocumentPatch | InsertBeforeNotesTextEditorPageDocumentPatch | InsertAfterNotesTextEditorPageDocumentPatch | ReplaceBlockNotesTextEditorPageDocumentPatch | ReplaceContentNotesTextEditorPageDocumentPatch | DeleteBlockNotesTextEditorPageDocumentPatch;
|
|
5106
|
+
|
|
5107
|
+
export declare class NotesTextEditorPatchTargetNotFoundError extends Error {
|
|
5108
|
+
readonly code = "target_not_found";
|
|
5109
|
+
readonly targetId: string;
|
|
5110
|
+
constructor(targetId: string);
|
|
5111
|
+
}
|
|
5047
5112
|
|
|
5048
5113
|
export declare interface NotesTextEditorProps extends WithDataTestIdProps {
|
|
5049
5114
|
onChange: (value: {
|
|
@@ -5076,6 +5141,17 @@ export declare interface NotesTextEditorSkeletonProps {
|
|
|
5076
5141
|
withToolbar?: boolean;
|
|
5077
5142
|
}
|
|
5078
5143
|
|
|
5144
|
+
export declare interface NotesTextEditorSnapshot {
|
|
5145
|
+
json: JSONContent | null;
|
|
5146
|
+
html: string | null;
|
|
5147
|
+
}
|
|
5148
|
+
|
|
5149
|
+
export declare class NotesTextEditorUnsupportedPatchTypeError extends Error {
|
|
5150
|
+
readonly code = "unsupported_patch_type";
|
|
5151
|
+
readonly patchType: unknown;
|
|
5152
|
+
constructor(patchType: unknown);
|
|
5153
|
+
}
|
|
5154
|
+
|
|
5079
5155
|
declare type NumberCellConfig = {
|
|
5080
5156
|
min?: number;
|
|
5081
5157
|
max?: number;
|
|
@@ -5083,6 +5159,7 @@ declare type NumberCellConfig = {
|
|
|
5083
5159
|
maxDecimals?: number;
|
|
5084
5160
|
locale?: string;
|
|
5085
5161
|
units?: string;
|
|
5162
|
+
unitsPosition?: "before" | "after";
|
|
5086
5163
|
};
|
|
5087
5164
|
|
|
5088
5165
|
export declare type NumberFilterDefinition = BaseFilterDefinition<"number"> & {
|
|
@@ -6078,6 +6155,18 @@ declare type RelaxedNumericWithFormatter = Omit<NumericWithFormatter, "numericVa
|
|
|
6078
6155
|
|
|
6079
6156
|
declare type RendererDefinition = ValueDisplayRendererDefinition;
|
|
6080
6157
|
|
|
6158
|
+
declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
|
|
6159
|
+
type: "replace_block";
|
|
6160
|
+
targetId: string;
|
|
6161
|
+
block: JSONContent;
|
|
6162
|
+
}
|
|
6163
|
+
|
|
6164
|
+
declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
|
|
6165
|
+
type: "replace_content";
|
|
6166
|
+
targetId: string;
|
|
6167
|
+
content: JSONContent[];
|
|
6168
|
+
}
|
|
6169
|
+
|
|
6081
6170
|
export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordType;
|
|
6082
6171
|
|
|
6083
6172
|
/**
|
|
@@ -6995,6 +7084,16 @@ declare type TooltipInternalProps = {
|
|
|
6995
7084
|
|
|
6996
7085
|
export declare type TooltipProps = Omit<TooltipInternalProps, (typeof privateProps_6)[number]>;
|
|
6997
7086
|
|
|
7087
|
+
declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
|
|
7088
|
+
type: "top_level_append";
|
|
7089
|
+
blocks: JSONContent[];
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
|
|
7093
|
+
type: "top_level_prepend";
|
|
7094
|
+
blocks: JSONContent[];
|
|
7095
|
+
}
|
|
7096
|
+
|
|
6998
7097
|
declare type TranslationKey = Join<PathsToStringProps<typeof defaultTranslations>, ".">;
|
|
6999
7098
|
|
|
7000
7099
|
declare type TranslationShape<T> = {
|
|
@@ -7169,6 +7268,8 @@ declare const valueDisplayRenderers: {
|
|
|
7169
7268
|
readonly folder: (args: FolderCellValue) => JSX_2.Element;
|
|
7170
7269
|
readonly country: (args: CountryCellValue, context: ValueDisplayRendererContext) => JSX_2.Element;
|
|
7171
7270
|
readonly delta: (args: DeltaCellValue) => JSX_2.Element;
|
|
7271
|
+
readonly summary: (args: SummaryCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
|
|
7272
|
+
readonly count: (args: CountCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
|
|
7172
7273
|
};
|
|
7173
7274
|
|
|
7174
7275
|
declare type ValueDisplayTableAlignment = "left" | "right";
|