@factorialco/f0-react 9.5.1 → 9.6.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-3RDmTrPE.js → ChatPdfThumbnail-BJNuH3Kk.js} +1 -1
- package/dist/{ChatPostComposerDialog-CAzDe7vF.js → ChatPostComposerDialog-DXeFY7WG.js} +3 -3
- package/dist/{CoachmarkProvider-HXpz6Xoa.js → CoachmarkProvider-BqGMYwuU.js} +13618 -13363
- package/dist/{DocumentToolbar-DPgtVBB4.js → DocumentToolbar-BASAjrEM.js} +2 -2
- package/dist/{DocxViewer-necYCjAx.js → DocxViewer-Cm764lTQ.js} +2 -2
- package/dist/{F0AiProcessingOverlay-CNi4qf1K.js → F0AiProcessingOverlay-i0Yoa_vU.js} +1 -1
- package/dist/{F0CanvasPanel-yY1wnaOC.js → F0CanvasPanel-9FFNyLel.js} +21922 -22134
- package/dist/{F0DocumentViewer-D8rUyv7b.js → F0DocumentViewer-X9uTRuKM.js} +3 -3
- package/dist/{F0Map-CgOB5xR6.js → F0Map-BKZv02zL.js} +4 -4
- package/dist/{F0VideoPlayer-wDMq0_kA.js → F0VideoPlayer-BjcAExI-.js} +2 -2
- package/dist/{SheetViewer-BAXLPjmy.js → SheetViewer-DhhRBQv1.js} +3 -3
- package/dist/{TextViewer-C3iadHR9.js → TextViewer-CFpaJf1P.js} +2 -2
- package/dist/ai.d.ts +52 -52
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +19 -19
- package/dist/component-status.js +6 -6
- package/dist/{experimental-nO11rIR4.js → experimental-CHXAROSJ.js} +6024 -5796
- package/dist/experimental.d.ts +81 -207
- package/dist/experimental.js +258 -257
- package/dist/f0.d.ts +64 -1713
- package/dist/f0.js +90 -90
- package/dist/i18n-provider-defaults.d.ts +19 -19
- package/dist/{index-ZodzV1xk.js → index-B0pkWkPs.js} +1 -1
- package/dist/{index-BDTXi-jh.js → index-BwVOsDhQ.js} +3 -3
- package/dist/index-D0UOb_at.js +8 -0
- package/dist/{index-K2VL_tP0.js → index-D4KyAsr3.js} +2 -2
- package/dist/index-blRNr67I.js +4 -0
- package/dist/{pdfWorker-fW7pEi9c.js → pdfWorker-Dku13BrA.js} +2 -2
- package/dist/styles.css +1 -1
- package/package.json +4 -6
- package/dist/index-CEQKtsvf.js +0 -4
- package/dist/index-D1esL6yA.js +0 -8
package/dist/experimental.d.ts
CHANGED
|
@@ -33,13 +33,13 @@ import { CountryCellValue } from './types/country';
|
|
|
33
33
|
import { DataAttributes as DataAttributes_3 } from './experimental';
|
|
34
34
|
import { DateCellValue } from './types/date';
|
|
35
35
|
import { DateCellValue as DateCellValue_2 } from './experimental';
|
|
36
|
-
import { DateFilterOptions } from './DateFilter/DateFilter';
|
|
37
36
|
import { default as default_2 } from 'react';
|
|
38
37
|
import { DeltaCellValue } from './types/delta';
|
|
39
38
|
import { Dispatch } from 'react';
|
|
40
39
|
import { DotTagCellValue } from './types/dotTag';
|
|
41
40
|
import { DotTagCellValue as DotTagCellValue_2 } from './experimental';
|
|
42
41
|
import { EmployeeItemProps } from './types';
|
|
42
|
+
import { F0TemplateTextInputProps as F0TemplateTextInputProps_2 } from './types';
|
|
43
43
|
import { f1Colors } from '@factorialco/f0-core';
|
|
44
44
|
import { FC } from 'react';
|
|
45
45
|
import { FileCellValue } from './types/file';
|
|
@@ -54,7 +54,6 @@ import { HTMLAttributes } from 'react';
|
|
|
54
54
|
import { HTMLInputTypeAttribute } from 'react';
|
|
55
55
|
import { IconCellValue } from './types/icon';
|
|
56
56
|
import { IconType as IconType_2 } from './experimental';
|
|
57
|
-
import { InFilterOptions } from './InFilter/types';
|
|
58
57
|
import { ItemProps } from './types';
|
|
59
58
|
import { JSONContent } from '@tiptap/react';
|
|
60
59
|
import { JSONContent as JSONContent_2 } from '@tiptap/core';
|
|
@@ -66,7 +65,6 @@ import { LongTextCellValue } from './types/longText';
|
|
|
66
65
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
67
66
|
import { NumberCellValue } from './types/number';
|
|
68
67
|
import { NumberCellValue as NumberCellValue_2 } from './experimental';
|
|
69
|
-
import { NumberFilterOptions } from './NumberFilter/NumberFilter';
|
|
70
68
|
import { Observable } from 'zen-observable-ts';
|
|
71
69
|
import { PercentageCellValue } from './types/percentage';
|
|
72
70
|
import { PersonCellValue } from './types/person';
|
|
@@ -88,7 +86,6 @@ import { Ref } from 'react';
|
|
|
88
86
|
import { RefAttributes } from 'react';
|
|
89
87
|
import { RefObject } from 'react';
|
|
90
88
|
import { ScrollAreaProps } from '@radix-ui/react-scroll-area';
|
|
91
|
-
import { SearchFilterOptions } from './SearchFilter/SearchFilter';
|
|
92
89
|
import { StatusCellValue } from './types/status';
|
|
93
90
|
import { StatusCellValue as StatusCellValue_2 } from './experimental';
|
|
94
91
|
import { SummaryCellValue } from './types/summary';
|
|
@@ -1268,22 +1265,6 @@ declare type AvatarVariant = DistributiveOmit<({
|
|
|
1268
1265
|
type: "icon";
|
|
1269
1266
|
} & F0AvatarIconProps), "size">;
|
|
1270
1267
|
|
|
1271
|
-
declare type AvatarVariant_2 = ({
|
|
1272
|
-
type: "person";
|
|
1273
|
-
} & Omit<F0AvatarPersonProps, "size">) | ({
|
|
1274
|
-
type: "team";
|
|
1275
|
-
} & Omit<F0AvatarTeamProps, "size">) | ({
|
|
1276
|
-
type: "company";
|
|
1277
|
-
} & Omit<F0AvatarCompanyProps, "size">) | ({
|
|
1278
|
-
type: "file";
|
|
1279
|
-
} & Omit<F0AvatarFileProps, "size">) | ({
|
|
1280
|
-
type: "flag";
|
|
1281
|
-
} & Omit<F0AvatarFlagProps, "size">) | ({
|
|
1282
|
-
type: "emoji";
|
|
1283
|
-
} & Omit<F0AvatarEmojiProps, "size">) | ({
|
|
1284
|
-
type: "icon";
|
|
1285
|
-
} & Omit<F0AvatarIconProps, "size">);
|
|
1286
|
-
|
|
1287
1268
|
/**
|
|
1288
1269
|
* @experimental This is an experimental component use it at your own risk
|
|
1289
1270
|
*/
|
|
@@ -2239,11 +2220,6 @@ declare interface CardBookmark {
|
|
|
2239
2220
|
label?: string;
|
|
2240
2221
|
}
|
|
2241
2222
|
|
|
2242
|
-
/**
|
|
2243
|
-
* Group Cards: Renders
|
|
2244
|
-
*/
|
|
2245
|
-
declare type CardCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, CardVisualizationOptions<Record, Filters, Sortings>>;
|
|
2246
|
-
|
|
2247
2223
|
/** Size of the trailing controls (buttons and the "⋯" menu trigger). */
|
|
2248
2224
|
declare type CardHorizontalActionsSize = "sm" | "md";
|
|
2249
2225
|
|
|
@@ -2444,22 +2420,22 @@ declare type CardPropertyDefinition<T> = PropertyDefinition_2<T> & {
|
|
|
2444
2420
|
};
|
|
2445
2421
|
|
|
2446
2422
|
declare const cardPropertyRenderers: {
|
|
2447
|
-
readonly text: (args: TextCellValue_2, meta: ValueDisplayRendererContext_2) =>
|
|
2448
|
-
readonly number: (args: NumberCellValue_2, meta: ValueDisplayRendererContext_2) =>
|
|
2449
|
-
readonly date: (args: DateCellValue_2, meta: ValueDisplayRendererContext_2) =>
|
|
2450
|
-
readonly amount: (args: AmountCellValue_2, meta: ValueDisplayRendererContext_2) =>
|
|
2451
|
-
readonly person: (args: PersonCellValue_2, meta: ValueDisplayRendererContext_2) =>
|
|
2452
|
-
readonly company: (args: CompanyCellValue_2, meta: ValueDisplayRendererContext_2) =>
|
|
2453
|
-
readonly team: (args: TeamCellValue_2, meta: ValueDisplayRendererContext_2) =>
|
|
2454
|
-
readonly status: (args: StatusCellValue_2) =>
|
|
2455
|
-
readonly tag: (args: TagCellValue_2) =>
|
|
2456
|
-
readonly avatarList: (args: AvatarListCellValue_2, meta: ValueDisplayRendererContext_2) =>
|
|
2457
|
-
readonly tagList: (args: TagListCellValue_2) =>
|
|
2458
|
-
readonly alertTag: (args: AlertTagCellValue_2) =>
|
|
2459
|
-
readonly dotTag: (args: DotTagCellValue_2) =>
|
|
2460
|
-
readonly file: (args: FileCellValue_2) =>
|
|
2461
|
-
readonly folder: (args: FolderCellValue_2) =>
|
|
2462
|
-
readonly progressBar: (args: ProgressBarCellValue_2, _meta: ValueDisplayRendererContext_2) =>
|
|
2423
|
+
readonly text: (args: TextCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
2424
|
+
readonly number: (args: NumberCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
2425
|
+
readonly date: (args: DateCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
2426
|
+
readonly amount: (args: AmountCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
2427
|
+
readonly person: (args: PersonCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
2428
|
+
readonly company: (args: CompanyCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
2429
|
+
readonly team: (args: TeamCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
2430
|
+
readonly status: (args: StatusCellValue_2) => JSX_2.Element;
|
|
2431
|
+
readonly tag: (args: TagCellValue_2) => JSX_2.Element;
|
|
2432
|
+
readonly avatarList: (args: AvatarListCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
2433
|
+
readonly tagList: (args: TagListCellValue_2) => JSX_2.Element;
|
|
2434
|
+
readonly alertTag: (args: AlertTagCellValue_2) => JSX_2.Element;
|
|
2435
|
+
readonly dotTag: (args: DotTagCellValue_2) => JSX_2.Element;
|
|
2436
|
+
readonly file: (args: FileCellValue_2) => JSX_2.Element;
|
|
2437
|
+
readonly folder: (args: FolderCellValue_2) => JSX_2.Element;
|
|
2438
|
+
readonly progressBar: (args: ProgressBarCellValue_2, _meta: ValueDisplayRendererContext_2) => JSX_2.Element | null;
|
|
2463
2439
|
};
|
|
2464
2440
|
|
|
2465
2441
|
declare type CardPropertyType = keyof typeof cardPropertyRenderers;
|
|
@@ -2975,19 +2951,6 @@ declare type ChildrenResponse<R extends RecordType> = NestedResponseWithType<R>;
|
|
|
2975
2951
|
*/
|
|
2976
2952
|
export declare const Chip: ({ deactivated, label, variant, onClick, onClose, avatar, icon, }: ChipProps) => JSX_2.Element;
|
|
2977
2953
|
|
|
2978
|
-
declare type ChipLabel = {
|
|
2979
|
-
label: string;
|
|
2980
|
-
} & ({
|
|
2981
|
-
icon: IconType;
|
|
2982
|
-
avatar?: never;
|
|
2983
|
-
} | {
|
|
2984
|
-
icon?: never;
|
|
2985
|
-
avatar: AvatarVariant_2;
|
|
2986
|
-
} | {
|
|
2987
|
-
icon?: never;
|
|
2988
|
-
avatar?: never;
|
|
2989
|
-
});
|
|
2990
|
-
|
|
2991
2954
|
export declare type ChipProps = BaseChipProps & ChipVariants & {
|
|
2992
2955
|
variant?: "default" | "selected";
|
|
2993
2956
|
};
|
|
@@ -3638,18 +3601,6 @@ export declare type CollectionSelectSourceDefinition = WithBivariantCallbacks<Om
|
|
|
3638
3601
|
dataAdapter: WithBivariantCallbacks<DataAdapter<RecordType, FiltersDefinition>>;
|
|
3639
3602
|
};
|
|
3640
3603
|
|
|
3641
|
-
declare type CollectionVisualizations<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = {
|
|
3642
|
-
table: VisualizacionTypeDefinition<TableCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>, TableVisualizationSettings>;
|
|
3643
|
-
editableTable: VisualizacionTypeDefinition<EditableTableCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>, EditableTableVisualizationSettings>;
|
|
3644
|
-
list: VisualizacionTypeDefinition<ListCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>>;
|
|
3645
|
-
card: VisualizacionTypeDefinition<CardCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>>;
|
|
3646
|
-
kanban: VisualizacionTypeDefinition<KanbanCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>>;
|
|
3647
|
-
graph: VisualizacionTypeDefinition<GraphCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>, GraphVisualizationSettings>;
|
|
3648
|
-
map: VisualizacionTypeDefinition<MapCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>>;
|
|
3649
|
-
};
|
|
3650
|
-
|
|
3651
|
-
declare const collectionVisualizations: CollectionVisualizations<RecordType, FiltersDefinition, SortingsDefinition, SummariesDefinition, ItemActionsDefinition<RecordType>, NavigationFiltersDefinition, GroupingDefinition<RecordType>>;
|
|
3652
|
-
|
|
3653
3604
|
declare type ColumnNumber = 1 | 2 | 3 | 4 | 6;
|
|
3654
3605
|
|
|
3655
3606
|
declare type ColumnWidth = keyof typeof columnWidths | number;
|
|
@@ -4637,12 +4588,6 @@ declare type DataCollectionSettings = {
|
|
|
4637
4588
|
visualization: VisualizationSettings;
|
|
4638
4589
|
};
|
|
4639
4590
|
|
|
4640
|
-
declare interface DataCollectionSettingsContextType {
|
|
4641
|
-
setSettings: default_2.Dispatch<default_2.SetStateAction<DataCollectionSettings>>;
|
|
4642
|
-
settings: DataCollectionSettings;
|
|
4643
|
-
setVisualizationSettings: (key: keyof VisualizationSettings, settings: VisualizationSettings[keyof VisualizationSettings] | ((prev: VisualizationSettings[keyof VisualizationSettings]) => VisualizationSettings[keyof VisualizationSettings])) => void;
|
|
4644
|
-
}
|
|
4645
|
-
|
|
4646
4591
|
/**
|
|
4647
4592
|
* Data collection source
|
|
4648
4593
|
* Extends the base data source with data collection specific elements / features
|
|
@@ -4943,10 +4888,10 @@ declare type DateCellConfig = {
|
|
|
4943
4888
|
};
|
|
4944
4889
|
|
|
4945
4890
|
export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {
|
|
4946
|
-
options?:
|
|
4891
|
+
options?: DateFilterOptions;
|
|
4947
4892
|
};
|
|
4948
4893
|
|
|
4949
|
-
declare type
|
|
4894
|
+
declare type DateFilterOptions = {
|
|
4950
4895
|
minDate?: Date;
|
|
4951
4896
|
maxDate?: Date;
|
|
4952
4897
|
mode?: CalendarMode;
|
|
@@ -7122,8 +7067,6 @@ declare type EditableTableCellChanges<R extends RecordType> = {
|
|
|
7122
7067
|
/** The edit mode for a column cell in the editable table. */
|
|
7123
7068
|
declare type EditableTableCellEditType = "text" | "number" | "money" | "date" | "select" | "multiselect" | "display-only" | "disabled";
|
|
7124
7069
|
|
|
7125
|
-
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>>;
|
|
7126
|
-
|
|
7127
7070
|
/**
|
|
7128
7071
|
* Column definition for Editable Table.
|
|
7129
7072
|
*
|
|
@@ -7519,12 +7462,6 @@ declare type ExpenseProfile = {
|
|
|
7519
7462
|
*/
|
|
7520
7463
|
export declare type ExtractPropertyKeys<RecordType> = keyof RecordType;
|
|
7521
7464
|
|
|
7522
|
-
declare type ExtractVisualizationSettings<T> = T extends {
|
|
7523
|
-
settings: {
|
|
7524
|
-
default: infer S;
|
|
7525
|
-
};
|
|
7526
|
-
} ? S : never;
|
|
7527
|
-
|
|
7528
7465
|
/**
|
|
7529
7466
|
* WHERE A HOST HANGS SOMETHING OFF THE CONVERSATION'S NAME — a coachmark
|
|
7530
7467
|
* explaining a limit, a tour step, a hint. F0 owns the header's markup, so it
|
|
@@ -12739,6 +12676,26 @@ declare interface F0TagTeamProps {
|
|
|
12739
12676
|
src?: string;
|
|
12740
12677
|
}
|
|
12741
12678
|
|
|
12679
|
+
/** @experimental This is an experimental component, use it at your own risk. */
|
|
12680
|
+
export declare const F0TemplateTextInput: ({ label, value, defaultValue, onChange, variablesConfig, placeholder, hint, error, required, disabled, hideLabel, maxLength, name, id, }: F0TemplateTextInputProps_2) => JSX_2.Element;
|
|
12681
|
+
|
|
12682
|
+
export declare interface F0TemplateTextInputProps {
|
|
12683
|
+
label: string;
|
|
12684
|
+
value?: string;
|
|
12685
|
+
defaultValue?: string;
|
|
12686
|
+
onChange?: (value: string) => void;
|
|
12687
|
+
variablesConfig: TemplateVariablesConfig;
|
|
12688
|
+
placeholder?: string;
|
|
12689
|
+
hint?: string;
|
|
12690
|
+
error?: string | boolean;
|
|
12691
|
+
required?: boolean;
|
|
12692
|
+
disabled?: boolean;
|
|
12693
|
+
hideLabel?: boolean;
|
|
12694
|
+
maxLength?: number;
|
|
12695
|
+
name?: string;
|
|
12696
|
+
id?: string;
|
|
12697
|
+
}
|
|
12698
|
+
|
|
12742
12699
|
/**
|
|
12743
12700
|
* F0TextAreaInput is the writable multi-line text field for forms — a box
|
|
12744
12701
|
* where the user types longer text spanning multiple lines (notes,
|
|
@@ -12922,7 +12879,9 @@ export declare const filterActions: (groups: SecondaryActionGroup[]) => Secondar
|
|
|
12922
12879
|
export declare type FilterDefinition = FilterDefinitionsByType[keyof FilterDefinitionsByType];
|
|
12923
12880
|
|
|
12924
12881
|
/**
|
|
12925
|
-
*
|
|
12882
|
+
* The filter definition types, separate from the `filterTypes` registry that
|
|
12883
|
+
* implements them: the registry pulls in every filter's component, and those
|
|
12884
|
+
* components reach back here through OneFilterPicker's own types.
|
|
12926
12885
|
*/
|
|
12927
12886
|
declare type FilterDefinitionsByType<T = unknown, R extends RecordType = RecordType> = {
|
|
12928
12887
|
in: InFilterDefinition<T, R>;
|
|
@@ -12966,66 +12925,7 @@ export declare type FiltersState<Definition extends Record<string, FilterDefinit
|
|
|
12966
12925
|
[K in keyof Definition]?: FilterValue<Definition[K]>;
|
|
12967
12926
|
};
|
|
12968
12927
|
|
|
12969
|
-
declare type
|
|
12970
|
-
schema: FilterTypeSchema<Options>;
|
|
12971
|
-
i18n: I18nContextType;
|
|
12972
|
-
/** The key of this filter in the FiltersDefinition (passed to chipLabel for nested label lookups) */
|
|
12973
|
-
filterKey?: string;
|
|
12974
|
-
};
|
|
12975
|
-
|
|
12976
|
-
declare type FilterTypeDefinition<Value = unknown, Options extends object = never, EmptyValue = Value, OptionalOptions extends boolean = false> = {
|
|
12977
|
-
emptyValue: EmptyValue;
|
|
12978
|
-
/** Check if the value is empty */
|
|
12979
|
-
isEmpty: (value: Value | undefined, context: FilterTypeContext<Options>) => boolean;
|
|
12980
|
-
/** Render the filter form */
|
|
12981
|
-
render: <Schema extends FilterTypeSchema<Options, OptionalOptions>>(props: {
|
|
12982
|
-
schema: Schema;
|
|
12983
|
-
value: Value;
|
|
12984
|
-
onChange: (value: Value) => void;
|
|
12985
|
-
isCompactMode?: boolean;
|
|
12986
|
-
onFilterChange?: (key: string, value: unknown) => void;
|
|
12987
|
-
allFiltersValue?: Record<string, unknown>;
|
|
12988
|
-
}) => React.ReactNode;
|
|
12989
|
-
/**
|
|
12990
|
-
* The value label to display in the filter chips
|
|
12991
|
-
*/
|
|
12992
|
-
chipLabel: (value: Value, context: FilterTypeContext<Options>) => string | ChipLabel | Promise<string | ChipLabel>;
|
|
12993
|
-
/**
|
|
12994
|
-
* The default options to render a filter of this type, for example max and min date for a date filter, the list of options for an in filter, etc
|
|
12995
|
-
*/
|
|
12996
|
-
defaultOptions?: Options;
|
|
12997
|
-
/**
|
|
12998
|
-
* The height of the filter form container in pixels
|
|
12999
|
-
*/
|
|
13000
|
-
formHeight?: number;
|
|
13001
|
-
};
|
|
13002
|
-
|
|
13003
|
-
declare type FilterTypeKey = keyof typeof filterTypes;
|
|
13004
|
-
|
|
13005
|
-
declare const filterTypes: {
|
|
13006
|
-
readonly in: FilterTypeDefinition<string[], InFilterOptions<string>>;
|
|
13007
|
-
readonly search: FilterTypeDefinition<string | {
|
|
13008
|
-
value: string;
|
|
13009
|
-
strict: boolean;
|
|
13010
|
-
}, SearchFilterOptions, string | {
|
|
13011
|
-
value: string;
|
|
13012
|
-
strict: boolean;
|
|
13013
|
-
}, true>;
|
|
13014
|
-
readonly date: FilterTypeDefinition<Date | DateRange | undefined, DateFilterOptions>;
|
|
13015
|
-
readonly number: FilterTypeDefinition<NumberFilterValue, NumberFilterOptions>;
|
|
13016
|
-
};
|
|
13017
|
-
|
|
13018
|
-
declare type FilterTypeSchema<Options extends object = never, OptionalOptions extends boolean = false> = OptionalOptions extends true ? FilterTypeSchemaOptionalOptions<Options> : FilterTypeSchemaRequiredOptions<Options>;
|
|
13019
|
-
|
|
13020
|
-
declare type FilterTypeSchemaOptionalOptions<Options extends object = never> = {
|
|
13021
|
-
label: string;
|
|
13022
|
-
options?: Options extends never ? never : Options;
|
|
13023
|
-
};
|
|
13024
|
-
|
|
13025
|
-
declare type FilterTypeSchemaRequiredOptions<Options extends object = never> = {
|
|
13026
|
-
label: string;
|
|
13027
|
-
options: Options extends never ? never : Options;
|
|
13028
|
-
};
|
|
12928
|
+
declare type FilterTypeKey = keyof FilterDefinitionsByType;
|
|
13029
12929
|
|
|
13030
12930
|
/**
|
|
13031
12931
|
* Extracts the appropriate value type for a given filter:
|
|
@@ -13266,8 +13166,6 @@ export declare type GranularityDefinitionsOptions = {
|
|
|
13266
13166
|
periods?: DatePeriodsDefinition;
|
|
13267
13167
|
};
|
|
13268
13168
|
|
|
13269
|
-
declare type GraphCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, GraphVisualizationOptions<Record, Filters, Sortings>>;
|
|
13270
|
-
|
|
13271
13169
|
/**
|
|
13272
13170
|
* Configuration for the "graph" visualization (org-chart style).
|
|
13273
13171
|
*
|
|
@@ -14223,10 +14121,6 @@ export declare interface HomeWidgetSlot {
|
|
|
14223
14121
|
|
|
14224
14122
|
declare type HTMLString = string;
|
|
14225
14123
|
|
|
14226
|
-
declare type I18nContextType = TranslationsType & {
|
|
14227
|
-
t: (key: TranslationKey, args?: Record<string, string | number>) => string;
|
|
14228
|
-
};
|
|
14229
|
-
|
|
14230
14124
|
declare type IconAvatarVariant = Extract<AvatarVariant, {
|
|
14231
14125
|
type: "icon";
|
|
14232
14126
|
}>;
|
|
@@ -14300,7 +14194,7 @@ declare type InferRecord<S> = S extends {
|
|
|
14300
14194
|
} ? R : never;
|
|
14301
14195
|
|
|
14302
14196
|
export declare type InFilterDefinition<T = string | number, R extends RecordType = RecordType> = BaseFilterDefinition<"in"> & {
|
|
14303
|
-
options:
|
|
14197
|
+
options: InFilterOptions<T, R>;
|
|
14304
14198
|
};
|
|
14305
14199
|
|
|
14306
14200
|
/**
|
|
@@ -14329,7 +14223,7 @@ declare type InFilterOptionItem<T = unknown> = {
|
|
|
14329
14223
|
* Represents the options for the InFilter component.
|
|
14330
14224
|
* @template T - Type of the underlying value
|
|
14331
14225
|
*/
|
|
14332
|
-
declare type
|
|
14226
|
+
declare type InFilterOptions<T, _R extends RecordType = RecordType> = {
|
|
14333
14227
|
cache?: boolean;
|
|
14334
14228
|
/**
|
|
14335
14229
|
* Filter keys holding nested child selections. Only needed for async or
|
|
@@ -14682,10 +14576,6 @@ declare type JobPostingProfile = {
|
|
|
14682
14576
|
location?: string;
|
|
14683
14577
|
};
|
|
14684
14578
|
|
|
14685
|
-
declare type Join<T extends string[], D extends string> = T extends [] ? never : T extends [infer F] ? F : T extends [infer F, ...infer R] ? F extends string ? `${F}${D}${Join<Extract<R, string[]>, D>}` : never : string;
|
|
14686
|
-
|
|
14687
|
-
declare type KanbanCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, KanbanVisualizationOptions<Record, Filters, Sortings>>;
|
|
14688
|
-
|
|
14689
14579
|
declare type KanbanLaneDefinition = {
|
|
14690
14580
|
id: string;
|
|
14691
14581
|
title: string;
|
|
@@ -14814,11 +14704,6 @@ declare type ListClickData<C> = C extends "link" ? {
|
|
|
14814
14704
|
href: string;
|
|
14815
14705
|
} : object;
|
|
14816
14706
|
|
|
14817
|
-
/**
|
|
14818
|
-
* Group List: Renders the list for a group
|
|
14819
|
-
*/
|
|
14820
|
-
declare type ListCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, ListVisualizationOptions<Record, Filters, Sortings>>;
|
|
14821
|
-
|
|
14822
14707
|
/**
|
|
14823
14708
|
* A row's glyph tint: one of {@link listIconColors}, or a HEX of your own.
|
|
14824
14709
|
*
|
|
@@ -15072,8 +14957,6 @@ export declare type LocationPart = (typeof locationParts)[number];
|
|
|
15072
14957
|
/** Every part the manual entry block renders, in the order it renders them */
|
|
15073
14958
|
export declare const locationParts: readonly ["country", "addressLine1", "addressLine2", "city", "state", "postalCode"];
|
|
15074
14959
|
|
|
15075
|
-
declare type MapCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, MapVisualizationOptions<Record, Filters, Sortings>>;
|
|
15076
|
-
|
|
15077
14960
|
/** Selection handles handed to the panels, so their content can drive the map. */
|
|
15078
14961
|
declare type MapSidebarApi<R extends RecordType> = {
|
|
15079
14962
|
/** Select a record (or clear with `null`), flying to its marker if it has one. */
|
|
@@ -15510,10 +15393,6 @@ declare type MetadataCopyAction = {
|
|
|
15510
15393
|
type: "copy";
|
|
15511
15394
|
};
|
|
15512
15395
|
|
|
15513
|
-
export declare function MetadataItem({ item }: {
|
|
15514
|
-
item: MetadataItem;
|
|
15515
|
-
}): JSX_2.Element;
|
|
15516
|
-
|
|
15517
15396
|
export declare interface MetadataItem {
|
|
15518
15397
|
label: string;
|
|
15519
15398
|
value: MetadataItemValue;
|
|
@@ -16059,10 +15938,10 @@ declare type NumberCellConfig<R extends RecordType = RecordType> = {
|
|
|
16059
15938
|
};
|
|
16060
15939
|
|
|
16061
15940
|
export declare type NumberFilterDefinition = BaseFilterDefinition<"number"> & {
|
|
16062
|
-
options?:
|
|
15941
|
+
options?: NumberFilterOptions;
|
|
16063
15942
|
};
|
|
16064
15943
|
|
|
16065
|
-
declare type
|
|
15944
|
+
declare type NumberFilterOptions = {
|
|
16066
15945
|
min?: number;
|
|
16067
15946
|
max?: number;
|
|
16068
15947
|
modes?: readonly ("range" | "single")[];
|
|
@@ -16922,10 +16801,6 @@ declare type PanelBounds = {
|
|
|
16922
16801
|
shouldOverlay: boolean;
|
|
16923
16802
|
};
|
|
16924
16803
|
|
|
16925
|
-
declare type PathsToStringProps<T> = T extends string ? [] : {
|
|
16926
|
-
[K in Extract<keyof T, string>]: [K, ...PathsToStringProps<T[K]>];
|
|
16927
|
-
}[Extract<keyof T, string>];
|
|
16928
|
-
|
|
16929
16804
|
declare type PersonAvatarVariant = Extract<AvatarVariant, {
|
|
16930
16805
|
type: "person";
|
|
16931
16806
|
}>;
|
|
@@ -19087,8 +18962,6 @@ export declare type TabItem = {
|
|
|
19087
18962
|
id: string;
|
|
19088
18963
|
});
|
|
19089
18964
|
|
|
19090
|
-
declare type TableCollectionProps<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, TableVisualizationOptions<R, Filters, Sortings, Summaries>>;
|
|
19091
|
-
|
|
19092
18965
|
declare type TableColumnDefinition<R extends RecordType, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = WithOptionalSorting<R, Sortings> & Pick<ComponentProps<typeof TableHead>, "hidden" | "info" | "infoIcon" | "sticky" | "width" | "minWidth"> & {
|
|
19093
18966
|
/**
|
|
19094
18967
|
* Optional summary configuration for this column
|
|
@@ -19834,8 +19707,6 @@ declare type TranscribeOptions = {
|
|
|
19834
19707
|
signal?: AbortSignal;
|
|
19835
19708
|
};
|
|
19836
19709
|
|
|
19837
|
-
declare type TranslationKey = Join<PathsToStringProps<typeof defaultTranslations>, ".">;
|
|
19838
|
-
|
|
19839
19710
|
declare type TranslationShape<T> = {
|
|
19840
19711
|
[K in keyof T]: T[K] extends string ? string : T[K] extends Record<string, string | Record<string, unknown>> ? TranslationShape<T[K]> : never;
|
|
19841
19712
|
};
|
|
@@ -20623,17 +20494,6 @@ declare type VirtualListProps = {
|
|
|
20623
20494
|
className?: string;
|
|
20624
20495
|
};
|
|
20625
20496
|
|
|
20626
|
-
declare type VisualizacionTypeDefinition<Props, Settings = Record<string, never>> = {
|
|
20627
|
-
render: (props: Props) => JSX.Element;
|
|
20628
|
-
name: string;
|
|
20629
|
-
icon: IconType;
|
|
20630
|
-
settings: {
|
|
20631
|
-
default: Settings;
|
|
20632
|
-
renderer?: (props: Props) => JSX.Element | null;
|
|
20633
|
-
resetHandler?: (settings: DataCollectionSettingsContextType) => void;
|
|
20634
|
-
};
|
|
20635
|
-
};
|
|
20636
|
-
|
|
20637
20497
|
/**
|
|
20638
20498
|
* Represents a visualization configuration for displaying collection data.
|
|
20639
20499
|
* Supports different visualization types (card, table, or custom) with their respective options.
|
|
@@ -20738,8 +20598,22 @@ declare type VisualizationLabelOverrides = {
|
|
|
20738
20598
|
*/
|
|
20739
20599
|
declare type VisualizationMode = "sidepanel" | "fullscreen" | "canvas";
|
|
20740
20600
|
|
|
20601
|
+
/**
|
|
20602
|
+
* The settings each visualization keeps, by visualization key.
|
|
20603
|
+
*
|
|
20604
|
+
* Declared here rather than inferred from `collectionViewRegistry`, because
|
|
20605
|
+
* every visualization in that registry reads the settings context, so the
|
|
20606
|
+
* context cannot import the registry. `collectionViewRegistry` checks its own
|
|
20607
|
+
* keys against this map.
|
|
20608
|
+
*/
|
|
20741
20609
|
declare type VisualizationSettings = {
|
|
20742
|
-
|
|
20610
|
+
table: TableVisualizationSettings;
|
|
20611
|
+
editableTable: EditableTableVisualizationSettings;
|
|
20612
|
+
list: Record<string, never>;
|
|
20613
|
+
card: Record<string, never>;
|
|
20614
|
+
kanban: Record<string, never>;
|
|
20615
|
+
graph: GraphVisualizationSettings;
|
|
20616
|
+
map: Record<string, never>;
|
|
20743
20617
|
};
|
|
20744
20618
|
|
|
20745
20619
|
export declare const Weekdays: ForwardRefExoticComponent<WeekdaysProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -21384,10 +21258,9 @@ declare namespace Calendar {
|
|
|
21384
21258
|
|
|
21385
21259
|
declare module "@tiptap/core" {
|
|
21386
21260
|
interface Commands<ReturnType> {
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
|
|
21390
|
-
}) => ReturnType;
|
|
21261
|
+
aiBlock: {
|
|
21262
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
21263
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
21391
21264
|
};
|
|
21392
21265
|
}
|
|
21393
21266
|
}
|
|
@@ -21395,8 +21268,11 @@ declare module "@tiptap/core" {
|
|
|
21395
21268
|
|
|
21396
21269
|
declare module "@tiptap/core" {
|
|
21397
21270
|
interface Commands<ReturnType> {
|
|
21398
|
-
|
|
21399
|
-
|
|
21271
|
+
enhanceHighlight: {
|
|
21272
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
21273
|
+
placeholder?: string;
|
|
21274
|
+
}) => ReturnType;
|
|
21275
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
21400
21276
|
};
|
|
21401
21277
|
}
|
|
21402
21278
|
}
|
|
@@ -21415,8 +21291,9 @@ declare module "@tiptap/core" {
|
|
|
21415
21291
|
|
|
21416
21292
|
declare module "@tiptap/core" {
|
|
21417
21293
|
interface Commands<ReturnType> {
|
|
21418
|
-
|
|
21419
|
-
|
|
21294
|
+
fontSize: {
|
|
21295
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
21296
|
+
unsetFontSize: () => ReturnType;
|
|
21420
21297
|
};
|
|
21421
21298
|
}
|
|
21422
21299
|
}
|
|
@@ -21424,11 +21301,8 @@ declare module "@tiptap/core" {
|
|
|
21424
21301
|
|
|
21425
21302
|
declare module "@tiptap/core" {
|
|
21426
21303
|
interface Commands<ReturnType> {
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
placeholder?: string;
|
|
21430
|
-
}) => ReturnType;
|
|
21431
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
21304
|
+
moodTracker: {
|
|
21305
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
21432
21306
|
};
|
|
21433
21307
|
}
|
|
21434
21308
|
}
|
|
@@ -21436,9 +21310,10 @@ declare module "@tiptap/core" {
|
|
|
21436
21310
|
|
|
21437
21311
|
declare module "@tiptap/core" {
|
|
21438
21312
|
interface Commands<ReturnType> {
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
|
|
21313
|
+
videoEmbed: {
|
|
21314
|
+
setVideoEmbed: (options: {
|
|
21315
|
+
src: string;
|
|
21316
|
+
}) => ReturnType;
|
|
21442
21317
|
};
|
|
21443
21318
|
}
|
|
21444
21319
|
}
|
|
@@ -21446,9 +21321,8 @@ declare module "@tiptap/core" {
|
|
|
21446
21321
|
|
|
21447
21322
|
declare module "@tiptap/core" {
|
|
21448
21323
|
interface Commands<ReturnType> {
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
21324
|
+
transcript: {
|
|
21325
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
21452
21326
|
};
|
|
21453
21327
|
}
|
|
21454
21328
|
}
|