@factorialco/f0-react 2.61.5 → 3.0.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.
- package/dist/{F0CanvasPanel-CC0-kGJd.js → F0CanvasPanel-nz2dQz9Z.js} +18125 -18072
- package/dist/ai.d.ts +11 -11
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +86 -57
- package/dist/experimental.js +1184 -1162
- package/dist/f0.d.ts +51 -38
- package/dist/f0.js +1304 -1303
- package/dist/i18n-provider-defaults.d.ts +11 -11
- package/dist/{useChatHistory-BjqR1tKf.js → useChatHistory-DceLgsyD.js} +1 -1
- package/dist/{useDataCollectionSource-JnNUQWjt.js → useDataCollectionSource-DhEZxBan.js} +4550 -4564
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -9449,13 +9449,11 @@ export declare type F0NumberField = F0BaseField & F0NumberConfig & {
|
|
|
9449
9449
|
export declare type F0NumberFieldConfig<R extends Record<string, unknown> = Record<string, unknown>> = F0NumberInputConfig | F0NumberMoneyConfig | F0NumberSelectConfig<R> | F0DurationFieldConfig;
|
|
9450
9450
|
|
|
9451
9451
|
/**
|
|
9452
|
-
* @experimental This is an experimental component, use it at your own risk.
|
|
9453
|
-
*
|
|
9454
9452
|
* F0NumberInput is the writable numeric field for forms — a box where the
|
|
9455
9453
|
* user types a number. For arbitrary text use F0TextInput; for durations
|
|
9456
9454
|
* (hours/minutes) use F0DurationInput.
|
|
9457
9455
|
*/
|
|
9458
|
-
export declare const F0NumberInput:
|
|
9456
|
+
export declare const F0NumberInput: ForwardRefExoticComponent<Omit<F0NumberInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
9459
9457
|
|
|
9460
9458
|
/**
|
|
9461
9459
|
* Config for number fields - number input
|
|
@@ -9734,13 +9732,6 @@ export declare type F0RichTextFieldConfig = F0BaseConfig & F0RichTextConfig & {
|
|
|
9734
9732
|
fieldType: "richtext";
|
|
9735
9733
|
};
|
|
9736
9734
|
|
|
9737
|
-
/**
|
|
9738
|
-
* @experimental This is an experimental component, use it at your own risk.
|
|
9739
|
-
*
|
|
9740
|
-
* F0SearchInput is the writable search field — a single-line text input
|
|
9741
|
-
* pre-configured with a search icon, `role="searchbox"`, debouncing, and
|
|
9742
|
-
* an optional minimum-length threshold before emitting changes.
|
|
9743
|
-
*/
|
|
9744
9735
|
export declare const F0SearchInput: ForwardRefExoticComponent< {
|
|
9745
9736
|
value?: string;
|
|
9746
9737
|
threshold?: number;
|
|
@@ -10236,13 +10227,11 @@ export declare type F0TextareaField = F0BaseField & F0TextareaConfig & {
|
|
|
10236
10227
|
};
|
|
10237
10228
|
|
|
10238
10229
|
/**
|
|
10239
|
-
* @experimental This is an experimental component, use it at your own risk.
|
|
10240
|
-
*
|
|
10241
10230
|
* F0TextAreaInput is the writable multi-line text field for forms — a box
|
|
10242
|
-
* where the user types longer text spanning multiple lines
|
|
10243
|
-
* line of text use F0TextInput.
|
|
10231
|
+
* where the user types longer text spanning multiple lines (notes,
|
|
10232
|
+
* descriptions, comments). For a single line of text use F0TextInput.
|
|
10244
10233
|
*/
|
|
10245
|
-
export declare const F0TextAreaInput: FC<F0TextAreaInputProps>;
|
|
10234
|
+
export declare const F0TextAreaInput: React.FC<F0TextAreaInputProps>;
|
|
10246
10235
|
|
|
10247
10236
|
export declare type F0TextAreaInputProps = Pick<ComponentProps<typeof Textarea_2>, "disabled" | "onChange" | "value" | "placeholder" | "rows" | "cols" | "label" | "labelIcon" | "icon" | "hideLabel" | "maxLength" | "clearable" | "onBlur" | "onFocus" | "name" | "status" | "hint" | "error" | "size" | "loading" | "required" | "maxHeight">;
|
|
10248
10237
|
|
|
@@ -10266,16 +10255,14 @@ export declare type F0TextField = F0BaseField & F0TextConfig & {
|
|
|
10266
10255
|
};
|
|
10267
10256
|
|
|
10268
10257
|
/**
|
|
10269
|
-
* @experimental This is an experimental component, use it at your own risk.
|
|
10270
|
-
*
|
|
10271
10258
|
* F0TextInput is the writable text field for forms — a box where the user
|
|
10272
|
-
* types text,
|
|
10273
|
-
*
|
|
10274
|
-
*
|
|
10259
|
+
* types text, passwords, emails, etc. It is the canonical "text input" of
|
|
10260
|
+
* F0. For numeric data use F0NumberInput; for durations use F0DurationInput;
|
|
10261
|
+
* for queries use F0SearchInput.
|
|
10275
10262
|
*/
|
|
10276
|
-
export declare const F0TextInput: <
|
|
10263
|
+
export declare const F0TextInput: ForwardRefExoticComponent<Omit<F0TextInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
10277
10264
|
|
|
10278
|
-
export declare type F0TextInputProps
|
|
10265
|
+
export declare type F0TextInputProps = Omit<InputInternalProps, (typeof privateProps_5)[number]>;
|
|
10279
10266
|
|
|
10280
10267
|
export declare type F0TextProps = Omit<TextProps, "className" | "variant" | "as"> & {
|
|
10281
10268
|
variant?: (typeof _allowedVariants_2)[number];
|
|
@@ -11594,7 +11581,7 @@ export declare function injectSectionEnds(items: FlatFormItem[], inSectionQuesti
|
|
|
11594
11581
|
*
|
|
11595
11582
|
* @removeIn 2.0.0
|
|
11596
11583
|
*/
|
|
11597
|
-
export declare const Input: <
|
|
11584
|
+
export declare const Input: ForwardRefExoticComponent<Omit<F0TextInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
11598
11585
|
|
|
11599
11586
|
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "size" | "icon" | "role" | "onFocus" | "onBlur" | "transparent" | "status" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "hint" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
11600
11587
|
|
|
@@ -11604,6 +11591,20 @@ declare type InputFieldInheritedProps = (typeof inputFieldInheritedProps)[number
|
|
|
11604
11591
|
|
|
11605
11592
|
declare const inputFieldInheritedProps: readonly ["className", "label", "placeholder", "hideLabel", "size", "error", "disabled", "readonly", "required", "clearable", "labelIcon", "status", "hint", "loading", "transparent"];
|
|
11606
11593
|
|
|
11594
|
+
/**
|
|
11595
|
+
* Design system primitive. Do NOT use in product code.
|
|
11596
|
+
*
|
|
11597
|
+
* `F0InputField` is the shared chrome (label, status, icon, append, clear,
|
|
11598
|
+
* loading, focus/hover/disabled styles, a11y wiring) used by every writable
|
|
11599
|
+
* F0 input. It is intentionally not exported from `@factorialco/f0-react`.
|
|
11600
|
+
*
|
|
11601
|
+
* Product code must use the dedicated `F0*Input` components instead:
|
|
11602
|
+
* - F0TextInput, F0NumberInput, F0SearchInput, F0TextAreaInput,
|
|
11603
|
+
* F0DurationInput, F0DatePicker, F0Select, ...
|
|
11604
|
+
*
|
|
11605
|
+
* Use `F0InputField` only when you are adding a new input type to the design
|
|
11606
|
+
* system itself (e.g. F0CurrencyInput, F0PhoneInput, F0PercentageInput).
|
|
11607
|
+
*/
|
|
11607
11608
|
declare type InputFieldProps<T> = {
|
|
11608
11609
|
id?: string;
|
|
11609
11610
|
autoFocus?: boolean;
|
|
@@ -11691,7 +11692,7 @@ declare const inputFieldStatus: readonly ["default", "warning", "info", "error"]
|
|
|
11691
11692
|
|
|
11692
11693
|
declare type InputFieldStatusType = (typeof inputFieldStatus)[number];
|
|
11693
11694
|
|
|
11694
|
-
declare type InputInternalProps
|
|
11695
|
+
declare type InputInternalProps = Pick<ComponentProps<typeof Input_2>, "ref" | "id" | "aria-describedby" | "aria-invalid"> & Pick<InputFieldProps<string>, "autoFocus" | "required" | "disabled" | "size" | "onChange" | "value" | "placeholder" | "clearable" | "maxLength" | "label" | "labelIcon" | "icon" | "hideLabel" | "name" | "error" | "status" | "hint" | "autocomplete" | "buttonToggle" | "hideMaxLength" | "loading" | "transparent" | "onBlur" | "readonly"> & {
|
|
11695
11696
|
type?: Exclude<HTMLInputTypeAttribute, "number">;
|
|
11696
11697
|
onPressEnter?: () => void;
|
|
11697
11698
|
};
|
|
@@ -11700,7 +11701,7 @@ declare type InputInternalProps<T extends string> = Pick<ComponentProps<typeof I
|
|
|
11700
11701
|
* @deprecated Renamed to `F0TextInputProps`. See the `Input` deprecation note.
|
|
11701
11702
|
* @removeIn 2.0.0
|
|
11702
11703
|
*/
|
|
11703
|
-
export declare type InputProps
|
|
11704
|
+
export declare type InputProps = F0TextInputProps;
|
|
11704
11705
|
|
|
11705
11706
|
declare interface InsertAfterNotesTextEditorPageDocumentPatch {
|
|
11706
11707
|
type: "insert_after";
|
|
@@ -12074,6 +12075,18 @@ export declare type MentionsConfig = {
|
|
|
12074
12075
|
users: MentionedUser[];
|
|
12075
12076
|
};
|
|
12076
12077
|
|
|
12078
|
+
/**
|
|
12079
|
+
* Write counterpart of `resolveDataCollectionFilters`: returns a new storage
|
|
12080
|
+
* object with `filters` replaced, writing the SAME slot the resolver reads —
|
|
12081
|
+
* when a per-visualization override exists for the persisted visualization,
|
|
12082
|
+
* that slot is updated too, so a subsequent resolve sees the new filters
|
|
12083
|
+
* instead of the stale override winning.
|
|
12084
|
+
*
|
|
12085
|
+
* Pure; the rest of the persisted state (sortings, search, settings, …) is
|
|
12086
|
+
* preserved untouched.
|
|
12087
|
+
*/
|
|
12088
|
+
export declare const mergeDataCollectionFilters: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(storage: DataCollectionStorage<CurrentFiltersState>, filters: CurrentFiltersState) => DataCollectionStorage<CurrentFiltersState>;
|
|
12089
|
+
|
|
12077
12090
|
export declare interface Message {
|
|
12078
12091
|
userId: string;
|
|
12079
12092
|
text: string;
|
|
@@ -12554,9 +12567,9 @@ declare type NumberFilterValue = {
|
|
|
12554
12567
|
*
|
|
12555
12568
|
* @removeIn 2.0.0
|
|
12556
12569
|
*/
|
|
12557
|
-
export declare const NumberInput:
|
|
12570
|
+
export declare const NumberInput: ForwardRefExoticComponent<Omit<F0NumberInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
12558
12571
|
|
|
12559
|
-
declare type NumberInputInternalProps =
|
|
12572
|
+
declare type NumberInputInternalProps = Pick<ComponentProps<typeof Input_2>, "ref" | "id" | "aria-describedby" | "aria-invalid"> & Pick<InputFieldProps<string>, "autoFocus" | "required" | "disabled" | "size" | "placeholder" | "clearable" | "maxLength" | "label" | "labelIcon" | "icon" | "hideLabel" | "name" | "error" | "status" | "hint" | "autocomplete" | "buttonToggle" | "hideMaxLength" | "loading" | "transparent" | "onBlur" | "readonly"> & {
|
|
12560
12573
|
locale: string;
|
|
12561
12574
|
value?: number | null;
|
|
12562
12575
|
step?: number;
|
|
@@ -16374,11 +16387,16 @@ declare module "gridstack" {
|
|
|
16374
16387
|
}
|
|
16375
16388
|
|
|
16376
16389
|
|
|
16390
|
+
declare namespace Calendar {
|
|
16391
|
+
var displayName: string;
|
|
16392
|
+
}
|
|
16393
|
+
|
|
16394
|
+
|
|
16377
16395
|
declare module "@tiptap/core" {
|
|
16378
16396
|
interface Commands<ReturnType> {
|
|
16379
|
-
|
|
16380
|
-
|
|
16381
|
-
|
|
16397
|
+
enhanceHighlight: {
|
|
16398
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
16399
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
16382
16400
|
};
|
|
16383
16401
|
}
|
|
16384
16402
|
}
|
|
@@ -16386,9 +16404,9 @@ declare module "@tiptap/core" {
|
|
|
16386
16404
|
|
|
16387
16405
|
declare module "@tiptap/core" {
|
|
16388
16406
|
interface Commands<ReturnType> {
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
|
|
16407
|
+
aiBlock: {
|
|
16408
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
16409
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
16392
16410
|
};
|
|
16393
16411
|
}
|
|
16394
16412
|
}
|
|
@@ -16423,11 +16441,6 @@ declare module "@tiptap/core" {
|
|
|
16423
16441
|
}
|
|
16424
16442
|
|
|
16425
16443
|
|
|
16426
|
-
declare namespace Calendar {
|
|
16427
|
-
var displayName: string;
|
|
16428
|
-
}
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
16444
|
declare namespace F0GraphNodeWrapperInner {
|
|
16432
16445
|
var displayName: string;
|
|
16433
16446
|
}
|