@factorialco/f0-react 9.2.1 → 9.3.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/{ChatDocxThumbnail-DTpOzL9A.js → ChatDocxThumbnail-Brbh1wem.js} +1 -1
- package/dist/{ChatPdfThumbnail-CAOAs-qh.js → ChatPdfThumbnail-D4DN5xr2.js} +1 -1
- package/dist/{ChatPostComposerDialog-BuzKBfwA.js → ChatPostComposerDialog-l1iabm-7.js} +3 -3
- package/dist/{ChatSheetThumbnail-P76Jt0_u.js → ChatSheetThumbnail-C_C2oIV_.js} +1 -1
- package/dist/{CoachmarkProvider-CQJNVR53.js → CoachmarkProvider-B1YG7W1t.js} +10919 -11003
- package/dist/{DocumentToolbar-BIIQvnf3.js → DocumentToolbar-CmyNC2wp.js} +2 -2
- package/dist/{DocxViewer-DVeatd9-.js → DocxViewer-de6X1Pon.js} +3 -3
- package/dist/{F0AiProcessingOverlay-CHEMsQma.js → F0AiProcessingOverlay-DB5NFWs5.js} +22 -22
- package/dist/{F0CanvasPanel-jtcjSLLr.js → F0CanvasPanel-DKFZlybo.js} +30705 -28790
- package/dist/{F0DocumentViewer-Bg7uiU9c.js → F0DocumentViewer-DTY1Upm6.js} +21 -21
- package/dist/{F0Map-DLJ6sRN_.js → F0Map-Ib5OFPWf.js} +5 -5
- package/dist/{F0VideoPlayer-B8kLFnbf.js → F0VideoPlayer-B7zpyW3g.js} +44 -44
- package/dist/{LocationMap-B-e88fW6.js → LocationMap-C6TZJaOq.js} +1 -1
- package/dist/{SheetViewer-B8BmAg0d.js → SheetViewer-BO_8Vz3d.js} +4 -4
- package/dist/{TextViewer-DDtUtmWj.js → TextViewer-BGDy0VE3.js} +2 -2
- package/dist/ai.d.ts +14 -14
- package/dist/ai.js +2 -2
- package/dist/{axe-mZXA-kzX.js → axe-Cc8MuO-E.js} +1 -1
- package/dist/component-status.d.ts +14 -14
- package/dist/component-status.js +69 -63
- package/dist/{experimental-4hJ9yljk.js → experimental-CJxYO3TS.js} +1914 -1914
- package/dist/experimental.d.ts +115 -28
- package/dist/experimental.js +146 -145
- package/dist/f0.d.ts +25 -25
- package/dist/f0.js +10581 -11477
- package/dist/i18n-provider-defaults.d.ts +14 -14
- package/dist/index-5n9cK7fI.js +4 -0
- package/dist/{index-D0AH60ev.js → index-B4YJYrDq.js} +21 -21
- package/dist/{index-C8h4kG2n.js → index-B_CHe0P4.js} +3 -3
- package/dist/{index-B5dJ814t.js → index-C1hywv0e.js} +1 -1
- package/dist/index-D3eRTe5Y.js +8 -0
- package/dist/{maplibre-gl-BFrhpbuU.js → maplibre-gl-CF3gv2QL.js} +1 -1
- package/dist/{papaparse.min-Bh1MVuzw.js → papaparse.min-l46A1xl2.js} +1 -1
- package/dist/{pdfWorker-BRAGbLi_.js → pdfWorker-Ddggmoi-.js} +3 -4
- package/dist/{renderDocx-CVEzw9MK.js → renderDocx-E222oLTQ.js} +1 -1
- package/dist/{sheetPreview-BiccmyTD.js → sheetPreview-DC9RRwv0.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/tooltip-VHD1kZdF.js +7433 -0
- package/package.json +1 -2
- package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
- package/dist/index-CW8sa9GP.js +0 -8
- package/dist/index-k8Xsj0d1.js +0 -4
- package/dist/tooltip-CrXp1Uaz.js +0 -4641
package/dist/experimental.d.ts
CHANGED
|
@@ -111,6 +111,8 @@ import { TextareaHTMLAttributes } from 'react';
|
|
|
111
111
|
import { TextCellValue } from './types/text';
|
|
112
112
|
import { TextCellValue as TextCellValue_2 } from './experimental';
|
|
113
113
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
114
|
+
import { TooltipPopupProps as TooltipPopupProps_2 } from '@base-ui/react/tooltip';
|
|
115
|
+
import { TooltipPositionerProps } from '@base-ui/react/tooltip';
|
|
114
116
|
import { ValueDisplayRendererContext as ValueDisplayRendererContext_2 } from './experimental';
|
|
115
117
|
import { VariantProps } from 'cva';
|
|
116
118
|
import { VerticalBarChartProps } from './experimental';
|
|
@@ -3008,7 +3010,7 @@ declare type ChipVariants = {
|
|
|
3008
3010
|
};
|
|
3009
3011
|
|
|
3010
3012
|
export declare const chipVariants: (props?: ({
|
|
3011
|
-
variant?: "
|
|
3013
|
+
variant?: "default" | "selected" | undefined;
|
|
3012
3014
|
} & ({
|
|
3013
3015
|
class?: ClassValue;
|
|
3014
3016
|
className?: never;
|
|
@@ -4410,7 +4412,7 @@ declare type CounterProps = {
|
|
|
4410
4412
|
|
|
4411
4413
|
declare const counterVariants: (props?: ({
|
|
4412
4414
|
size?: "md" | "sm" | undefined;
|
|
4413
|
-
type?: "bold" | "
|
|
4415
|
+
type?: "bold" | "default" | "selected" | undefined;
|
|
4414
4416
|
} & ({
|
|
4415
4417
|
class?: ClassValue;
|
|
4416
4418
|
className?: never;
|
|
@@ -12208,7 +12210,7 @@ tabIndex?: number;
|
|
|
12208
12210
|
* promise that it matches text.
|
|
12209
12211
|
*/
|
|
12210
12212
|
icon?: IconType;
|
|
12211
|
-
} & Pick<InputFieldProps<string>, "name" | "role" | "aria-activedescendant" | "aria-autocomplete" | "aria-controls" | "aria-expanded" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "disabled" | "
|
|
12213
|
+
} & Pick<InputFieldProps<string>, "name" | "role" | "aria-activedescendant" | "aria-autocomplete" | "aria-controls" | "aria-expanded" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "disabled" | "size" | "placeholder" | "loading" | "clearable"> & RefAttributes<HTMLInputElement>>;
|
|
12212
12214
|
|
|
12213
12215
|
export declare type F0SearchInputProps = {
|
|
12214
12216
|
value?: string;
|
|
@@ -14405,7 +14407,7 @@ declare const inlineDismissReasons: readonly ["blur", "escape", "commit"];
|
|
|
14405
14407
|
*/
|
|
14406
14408
|
export declare const Input: ForwardRefExoticComponent<Omit<F0TextInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
14407
14409
|
|
|
14408
|
-
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "role" | "onFocus" | "onBlur" | "onChange" | "disabled" | "status" | "
|
|
14410
|
+
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "role" | "onFocus" | "onBlur" | "onChange" | "disabled" | "status" | "size" | "icon" | "transparent" | "hint" | "error" | "editing" | "required" | "loading" | "variant" | "append" | "hideLabel" | "maxLength" | "isEmpty" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "onBlurWithin" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle" | "inlineText"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
14409
14411
|
|
|
14410
14412
|
declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
|
|
14411
14413
|
|
|
@@ -17113,7 +17115,7 @@ declare const privateProps_5: readonly ["alignOffset", "disableExitAnimation"];
|
|
|
17113
17115
|
|
|
17114
17116
|
declare const privateProps_6: readonly ["compact"];
|
|
17115
17117
|
|
|
17116
|
-
declare const privateProps_7: readonly ["delay", "onOpen"];
|
|
17118
|
+
declare const privateProps_7: readonly ["delay", "closeDelay", "onOpen", "closeOnPress", "forceOpen", "side", "align", "sideOffset", "shortcutVariant"];
|
|
17117
17119
|
|
|
17118
17120
|
declare type ProductUpdate = {
|
|
17119
17121
|
title: string;
|
|
@@ -18845,8 +18847,8 @@ width?: "auto" | "full" | undefined;
|
|
|
18845
18847
|
paddingY?: "none" | "p-2" | "p-4" | "p-8" | "p-12" | "p-16" | undefined;
|
|
18846
18848
|
basis?: "0" | undefined;
|
|
18847
18849
|
inline?: boolean | undefined;
|
|
18848
|
-
justifyContent?: "center" | "
|
|
18849
|
-
alignItems?: "center" | "
|
|
18850
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | undefined;
|
|
18851
|
+
alignItems?: "center" | "start" | "end" | "stretch" | "space-between" | undefined;
|
|
18850
18852
|
grow?: boolean | undefined;
|
|
18851
18853
|
shrink?: boolean | undefined;
|
|
18852
18854
|
} & ({
|
|
@@ -18912,8 +18914,8 @@ width?: "auto" | "full" | undefined;
|
|
|
18912
18914
|
paddingY?: "none" | "p-2" | "p-4" | "p-8" | "p-12" | "p-16" | undefined;
|
|
18913
18915
|
basis?: "0" | undefined;
|
|
18914
18916
|
inline?: boolean | undefined;
|
|
18915
|
-
justifyContent?: "center" | "
|
|
18916
|
-
alignItems?: "center" | "
|
|
18917
|
+
justifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | undefined;
|
|
18918
|
+
alignItems?: "center" | "start" | "end" | "stretch" | "space-between" | undefined;
|
|
18917
18919
|
grow?: boolean | undefined;
|
|
18918
18920
|
shrink?: boolean | undefined;
|
|
18919
18921
|
} & ({
|
|
@@ -19465,7 +19467,7 @@ declare const Textarea_2: ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<
|
|
|
19465
19467
|
value?: string;
|
|
19466
19468
|
/** Maximum height in pixels. When set, the textarea scrolls beyond this height instead of growing. */
|
|
19467
19469
|
maxHeight?: number;
|
|
19468
|
-
} & Pick<InputFieldProps<string>, "value" | "label" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "status" | "
|
|
19470
|
+
} & Pick<InputFieldProps<string>, "value" | "label" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "status" | "size" | "icon" | "placeholder" | "hint" | "error" | "required" | "loading" | "hideLabel" | "maxLength" | "labelIcon" | "clearable" | "onClear"> & RefAttributes<HTMLTextAreaElement>>;
|
|
19469
19471
|
|
|
19470
19472
|
/**
|
|
19471
19473
|
* @deprecated Renamed to `F0TextAreaInputProps`. See the `Textarea`
|
|
@@ -19632,7 +19634,7 @@ declare type toggleActionType = {
|
|
|
19632
19634
|
|
|
19633
19635
|
export declare const ToggleGroup: React_2.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React_2.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
19634
19636
|
variant?: "default" | "outline" | undefined;
|
|
19635
|
-
size?: "
|
|
19637
|
+
size?: "lg" | "sm" | "default" | undefined;
|
|
19636
19638
|
} & ({
|
|
19637
19639
|
class?: ClassValue;
|
|
19638
19640
|
className?: never;
|
|
@@ -19643,7 +19645,7 @@ export declare const ToggleGroup: React_2.ForwardRefExoticComponent<((Omit<Toggl
|
|
|
19643
19645
|
|
|
19644
19646
|
export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
19645
19647
|
variant?: "default" | "outline" | undefined;
|
|
19646
|
-
size?: "
|
|
19648
|
+
size?: "lg" | "sm" | "default" | undefined;
|
|
19647
19649
|
} & ({
|
|
19648
19650
|
class?: ClassValue;
|
|
19649
19651
|
className?: never;
|
|
@@ -19655,7 +19657,7 @@ export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent<Omit<Tog
|
|
|
19655
19657
|
/**
|
|
19656
19658
|
* @experimental This is an experimental component use it at your own risk
|
|
19657
19659
|
*/
|
|
19658
|
-
export declare const Tooltip: WithDataTestIdReturnType_3<(props: TooltipProps) =>
|
|
19660
|
+
export declare const Tooltip: WithDataTestIdReturnType_3<(props: TooltipProps) => JSX_2.Element>;
|
|
19659
19661
|
|
|
19660
19662
|
/**
|
|
19661
19663
|
* The copy a tooltip shows. At least one of the three must be present — a
|
|
@@ -19675,12 +19677,82 @@ declare type TooltipCopyProps = {
|
|
|
19675
19677
|
items: TooltipListItem[];
|
|
19676
19678
|
};
|
|
19677
19679
|
|
|
19680
|
+
/**
|
|
19681
|
+
* Triggers that wait out the delay once, together: while any tooltip in the
|
|
19682
|
+
* group is on screen — or was, a moment ago — the next one opens on arrival.
|
|
19683
|
+
* Having read one label, the user is reading the row, and making them wait
|
|
19684
|
+
* again for every neighbour is the delay working against them.
|
|
19685
|
+
*
|
|
19686
|
+
* Grouping is a React context, so the group has to be an ancestor of its
|
|
19687
|
+
* tooltips rather than a name they each repeat.
|
|
19688
|
+
*/
|
|
19689
|
+
export declare const TooltipGroup: ({ children, delay, closeDelay, timeout, }: TooltipGroupProps) => JSX_2.Element;
|
|
19690
|
+
|
|
19691
|
+
export declare type TooltipGroupProps = {
|
|
19692
|
+
children: ReactNode;
|
|
19693
|
+
/**
|
|
19694
|
+
* The wait before a tooltip in the group opens, for those that do not set
|
|
19695
|
+
* their own `delay`.
|
|
19696
|
+
*/
|
|
19697
|
+
delay?: number;
|
|
19698
|
+
/**
|
|
19699
|
+
* How long a bubble stays after the pointer leaves its trigger, so the
|
|
19700
|
+
* pointer can cross onto it (WCAG 1.4.13). Tooltips in the group that set
|
|
19701
|
+
* their own `closeDelay` keep it.
|
|
19702
|
+
*/
|
|
19703
|
+
closeDelay?: number;
|
|
19704
|
+
/**
|
|
19705
|
+
* How long after one tooltip leaves its neighbours still open at once.
|
|
19706
|
+
* @default 400
|
|
19707
|
+
*/
|
|
19708
|
+
timeout?: number;
|
|
19709
|
+
};
|
|
19710
|
+
|
|
19678
19711
|
declare type TooltipInternalProps = {
|
|
19679
|
-
children:
|
|
19712
|
+
children: ReactNode;
|
|
19680
19713
|
shortcut?: ComponentProps<typeof Shortcut>["keys"];
|
|
19714
|
+
/**
|
|
19715
|
+
* The wait before the bubble opens on hover. Inside a `TooltipGroup` the
|
|
19716
|
+
* group's own value applies unless this is set.
|
|
19717
|
+
*/
|
|
19681
19718
|
delay?: number;
|
|
19719
|
+
/**
|
|
19720
|
+
* How long the bubble stays after the pointer leaves the trigger. Inside a
|
|
19721
|
+
* `TooltipGroup` the group's own value applies unless this is set.
|
|
19722
|
+
*/
|
|
19723
|
+
closeDelay?: number;
|
|
19682
19724
|
instant?: boolean;
|
|
19683
19725
|
onOpen?: () => void;
|
|
19726
|
+
/**
|
|
19727
|
+
* Whether the bubble itself can be hovered. A tooltip that follows a column
|
|
19728
|
+
* of targets must not: the bubble lands under the pointer on its way to the
|
|
19729
|
+
* next item, which takes the hover off the trigger and closes the bubble,
|
|
19730
|
+
* which puts the pointer back on the trigger — on and off for as long as the
|
|
19731
|
+
* cursor keeps moving.
|
|
19732
|
+
*/
|
|
19733
|
+
hoverable?: boolean;
|
|
19734
|
+
/**
|
|
19735
|
+
* Whether pressing the trigger puts the bubble away. It does by default —
|
|
19736
|
+
* a press is an answer, and the label has done its job. A navigation rail
|
|
19737
|
+
* says no: pressing a module changes the page under a pointer that has not
|
|
19738
|
+
* moved, and a label that vanishes at that moment reads as the pointer
|
|
19739
|
+
* having lost the thing it is still on.
|
|
19740
|
+
*/
|
|
19741
|
+
closeOnPress?: boolean;
|
|
19742
|
+
/**
|
|
19743
|
+
* Holds the bubble open from outside, e.g. while the control it names has
|
|
19744
|
+
* keyboard focus but is not itself the trigger.
|
|
19745
|
+
*/
|
|
19746
|
+
forceOpen?: boolean;
|
|
19747
|
+
side?: TooltipPopupProps["side"];
|
|
19748
|
+
align?: TooltipPopupProps["align"];
|
|
19749
|
+
sideOffset?: number;
|
|
19750
|
+
/**
|
|
19751
|
+
* The shortcut chip's treatment. "inverse" is the outlined one the bubble
|
|
19752
|
+
* has always used; "default" is the filled, lighter chip the search box
|
|
19753
|
+
* itself shows, for tooltips naming the same key.
|
|
19754
|
+
*/
|
|
19755
|
+
shortcutVariant?: ComponentProps<typeof Shortcut>["variant"];
|
|
19684
19756
|
} & TooltipCopyProps;
|
|
19685
19757
|
|
|
19686
19758
|
/**
|
|
@@ -19693,6 +19765,21 @@ declare type TooltipListItem = string | {
|
|
|
19693
19765
|
description?: string;
|
|
19694
19766
|
};
|
|
19695
19767
|
|
|
19768
|
+
declare interface TooltipPopupProps extends Omit<TooltipPopupProps_2, "className" | "render"> {
|
|
19769
|
+
className?: string;
|
|
19770
|
+
side?: TooltipPositionerProps["side"];
|
|
19771
|
+
align?: TooltipPositionerProps["align"];
|
|
19772
|
+
sideOffset?: TooltipPositionerProps["sideOffset"];
|
|
19773
|
+
alignOffset?: TooltipPositionerProps["alignOffset"];
|
|
19774
|
+
collisionPadding?: TooltipPositionerProps["collisionPadding"];
|
|
19775
|
+
/**
|
|
19776
|
+
* Classes for the positioner — the box the bubble sits in. It is a hit
|
|
19777
|
+
* target of its own, so anything about pointer events belongs here rather
|
|
19778
|
+
* than on the bubble.
|
|
19779
|
+
*/
|
|
19780
|
+
positionerClassName?: string;
|
|
19781
|
+
}
|
|
19782
|
+
|
|
19696
19783
|
export declare type TooltipProps = Omit<TooltipInternalProps, (typeof privateProps_7)[number]>;
|
|
19697
19784
|
|
|
19698
19785
|
export declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
|
|
@@ -21274,9 +21361,9 @@ declare namespace Calendar {
|
|
|
21274
21361
|
|
|
21275
21362
|
declare module "@tiptap/core" {
|
|
21276
21363
|
interface Commands<ReturnType> {
|
|
21277
|
-
|
|
21278
|
-
|
|
21279
|
-
|
|
21364
|
+
aiBlock: {
|
|
21365
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
21366
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
21280
21367
|
};
|
|
21281
21368
|
}
|
|
21282
21369
|
}
|
|
@@ -21284,9 +21371,9 @@ declare module "@tiptap/core" {
|
|
|
21284
21371
|
|
|
21285
21372
|
declare module "@tiptap/core" {
|
|
21286
21373
|
interface Commands<ReturnType> {
|
|
21287
|
-
|
|
21288
|
-
|
|
21289
|
-
|
|
21374
|
+
fontSize: {
|
|
21375
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
21376
|
+
unsetFontSize: () => ReturnType;
|
|
21290
21377
|
};
|
|
21291
21378
|
}
|
|
21292
21379
|
}
|
|
@@ -21317,8 +21404,10 @@ declare module "@tiptap/core" {
|
|
|
21317
21404
|
|
|
21318
21405
|
declare module "@tiptap/core" {
|
|
21319
21406
|
interface Commands<ReturnType> {
|
|
21320
|
-
|
|
21321
|
-
|
|
21407
|
+
videoEmbed: {
|
|
21408
|
+
setVideoEmbed: (options: {
|
|
21409
|
+
src: string;
|
|
21410
|
+
}) => ReturnType;
|
|
21322
21411
|
};
|
|
21323
21412
|
}
|
|
21324
21413
|
}
|
|
@@ -21326,10 +21415,8 @@ declare module "@tiptap/core" {
|
|
|
21326
21415
|
|
|
21327
21416
|
declare module "@tiptap/core" {
|
|
21328
21417
|
interface Commands<ReturnType> {
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
src: string;
|
|
21332
|
-
}) => ReturnType;
|
|
21418
|
+
transcript: {
|
|
21419
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
21333
21420
|
};
|
|
21334
21421
|
}
|
|
21335
21422
|
}
|
|
@@ -21337,8 +21424,8 @@ declare module "@tiptap/core" {
|
|
|
21337
21424
|
|
|
21338
21425
|
declare module "@tiptap/core" {
|
|
21339
21426
|
interface Commands<ReturnType> {
|
|
21340
|
-
|
|
21341
|
-
|
|
21427
|
+
moodTracker: {
|
|
21428
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
21342
21429
|
};
|
|
21343
21430
|
}
|
|
21344
21431
|
}
|