@factorialco/f0-react 2.45.0 → 2.47.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/ai.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AgentState } from '@livekit/components-react';
2
+ import { AnchorHTMLAttributes } from 'react';
2
3
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
4
  import { baseColors } from '@factorialco/f0-core';
4
5
  import { ClassValue } from 'cva';
@@ -14,6 +15,7 @@ import { F0TagTeamProps } from './types';
14
15
  import { f1Colors } from '@factorialco/f0-core';
15
16
  import { ForwardedRef } from 'react';
16
17
  import { ForwardRefExoticComponent } from 'react';
18
+ import { HTMLAttributeAnchorTarget } from 'react';
17
19
  import { ItemProps } from './types';
18
20
  import { JSX as JSX_2 } from 'react';
19
21
  import { LocalAudioTrack } from 'livekit-client';
@@ -40,10 +42,118 @@ import { TrackReferenceOrPlaceholder } from '@livekit/components-react';
40
42
  import { VariantProps } from 'cva';
41
43
  import { WithDataTestIdReturnType } from '../../../lib/data-testid';
42
44
 
45
+ declare type ActionBaseProps = ActionCommonProps & DataAttributes;
46
+
47
+ declare interface ActionCommonProps {
48
+ /**
49
+ * Tooltip
50
+ */
51
+ tooltip?: string | false;
52
+ /**
53
+ * The variant of the action.
54
+ */
55
+ variant?: ActionVariant;
56
+ /**
57
+ * The children of the action.
58
+ */
59
+ children: ReactNode;
60
+ /**
61
+ * The prepend of the action.
62
+ */
63
+ prepend?: ReactNode;
64
+ /**
65
+ * The append of the action.
66
+ */
67
+ append?: ReactNode;
68
+ /**
69
+ * The prepend outside (next to the button) of the action.
70
+ */
71
+ prependOutside?: ReactNode;
72
+ /**
73
+ * The append outside of the action.
74
+ */
75
+ appendOutside?: ReactNode;
76
+ /**
77
+ * The disabled state of the action.
78
+ */
79
+ disabled?: boolean;
80
+ /**
81
+ * The loading state of the action.
82
+ */
83
+ loading?: boolean;
84
+ /**
85
+ * The pressed state of the action.
86
+ */
87
+ pressed?: boolean;
88
+ /**
89
+ * The class name of the action.
90
+ */
91
+ className?: string;
92
+ /**
93
+ * The size of the action.
94
+ */
95
+ size?: ActionSize;
96
+ /**
97
+ * The font size of the action.
98
+ */
99
+ fontSize?: FontSize;
100
+ /**
101
+ * The render mode.
102
+ * @default "default"
103
+ */
104
+ mode?: "default" | "only";
105
+ /**
106
+ * The title of the action.
107
+ */
108
+ title?: string;
109
+ /**
110
+ * make the left and right padding of the action smaller.
111
+ */
112
+ compact?: boolean;
113
+ /**
114
+ * The aria label of the action.
115
+ */
116
+ "aria-label"?: string;
117
+ /**
118
+ * The tab index of the action.
119
+ */
120
+ tabIndex?: number;
121
+ /**
122
+ * Mouse enter event handler.
123
+ */
124
+ onMouseEnter?: React.MouseEventHandler<HTMLElement>;
125
+ /**
126
+ * Mouse leave event handler.
127
+ */
128
+ onMouseLeave?: React.MouseEventHandler<HTMLElement>;
129
+ }
130
+
43
131
  export declare type ActionItemStatus = (typeof actionItemStatuses)[number];
44
132
 
45
133
  export declare const actionItemStatuses: readonly ["inProgress", "executing", "writing", "completed"];
46
134
 
135
+ declare type ActionLinkProps = ActionBaseProps & {
136
+ href: string;
137
+ target?: NavTarget;
138
+ rel?: string;
139
+ onFocus?: (event: React.FocusEvent<HTMLAnchorElement>) => void;
140
+ onBlur?: (event: React.FocusEvent<HTMLAnchorElement>) => void;
141
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
142
+ className?: string;
143
+ };
144
+
145
+ declare type ActionLinkVariant = (typeof actionLinkVariants)[number];
146
+
147
+ declare const actionLinkVariants: readonly ["link", "unstyled", "mention"];
148
+
149
+ declare type ActionSize = (typeof actionSizes)[number];
150
+
151
+ declare const actionSizes: readonly ["sm", "md", "lg"];
152
+
153
+ declare type ActionVariant = (typeof actionVariants)[number];
154
+
155
+ declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai", "link", "unstyled", "mention"];
156
+
47
157
  /* Excluded from this release type: AgentState */
48
158
 
49
159
  export declare type AggregationType = "count" | "sum" | "avg" | "min" | "max" | "countDistinct";
@@ -637,6 +747,26 @@ export declare const aiTranslations: {
637
747
  };
638
748
  };
639
749
 
750
+ declare type AlertAvatarProps = VariantProps<typeof alertAvatarVariants> & {
751
+ type: (typeof alertAvatarTypes)[number];
752
+ size?: (typeof alertAvatarSizes)[number];
753
+ } & Partial<Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">>;
754
+
755
+ declare const alertAvatarSizes: readonly ["sm", "md", "lg"];
756
+
757
+ declare const alertAvatarTypes: readonly ["critical", "warning", "info", "positive"];
758
+
759
+ declare const alertAvatarVariants: (props?: ({
760
+ type?: "info" | "critical" | "warning" | "positive" | undefined;
761
+ size?: "lg" | "md" | "sm" | undefined;
762
+ } & ({
763
+ class?: ClassValue;
764
+ className?: never;
765
+ } | {
766
+ class?: never;
767
+ className?: ClassValue;
768
+ })) | undefined) => string;
769
+
640
770
  declare type AlertTagProps = ComponentProps<typeof F0TagAlert>;
641
771
 
642
772
  /**
@@ -901,10 +1031,151 @@ export declare type CanvasEntityDefinition<T extends CanvasContentBase = CanvasC
901
1031
  overflowHidden?: boolean;
902
1032
  };
903
1033
 
1034
+ /**
1035
+ * An optional action button rendered in the alert header.
1036
+ * Mutually exclusive with `dismissible` — only one can be shown at a time.
1037
+ * Supply either `onClick` (handler) or `href` (navigation link), not both.
1038
+ */
1039
+ declare type CardAlertAction = {
1040
+ /** Label text for the action button. */
1041
+ label: string;
1042
+ /** Whether the action button is disabled. */
1043
+ disabled?: boolean;
1044
+ } & ({
1045
+ /** Called when the action button is clicked. */
1046
+ onClick: () => void;
1047
+ href?: never;
1048
+ } | {
1049
+ /** URL to navigate to when the action button is clicked. */
1050
+ href: string;
1051
+ onClick?: never;
1052
+ });
1053
+
1054
+ declare interface CardAlertBase {
1055
+ /**
1056
+ * The visual variant of the alert, which determines the color scheme and default icon.
1057
+ */
1058
+ variant: CardAlertVariant;
1059
+ /**
1060
+ * The title text displayed in the alert banner.
1061
+ */
1062
+ title: string;
1063
+ /**
1064
+ * Optional custom icon. When omitted, defaults to the icon that best represents the variant.
1065
+ */
1066
+ icon?: IconType;
1067
+ /**
1068
+ * Controls whether the alert is visible. Defaults to true.
1069
+ * Use this together with onDismiss for controlled dismiss behaviour:
1070
+ * alert={{ ..., visible, dismissible: true, onDismiss: () => setVisible(false) }}
1071
+ */
1072
+ visible?: boolean;
1073
+ }
1074
+
1075
+ declare type CardAlertDismissible = CardAlertBase & {
1076
+ /** Renders a dismiss (×) button. Requires onDismiss. */
1077
+ dismissible: true;
1078
+ /**
1079
+ * Called when the dismiss (×) button is clicked.
1080
+ * The consumer is responsible for hiding the alert (e.g. by setting visible: false).
1081
+ */
1082
+ onDismiss: () => void;
1083
+ action?: never;
1084
+ };
1085
+
1086
+ declare type CardAlertNonDismissible = CardAlertBase & {
1087
+ dismissible?: false;
1088
+ onDismiss?: never;
1089
+ action?: never;
1090
+ };
1091
+
1092
+ declare type CardAlertProps = CardAlertDismissible | CardAlertWithAction | CardAlertNonDismissible;
1093
+
1094
+ declare type CardAlertVariant = (typeof cardAlertVariants)[number];
1095
+
1096
+ declare const cardAlertVariants: readonly ["info", "warning", "critical", "positive"];
1097
+
1098
+ declare type CardAlertWithAction = CardAlertBase & {
1099
+ dismissible?: never;
1100
+ onDismiss?: never;
1101
+ /** Action button rendered in the alert header. Mutually exclusive with `dismissible`. */
1102
+ action: CardAlertAction;
1103
+ };
1104
+
1105
+ declare type CardAvatarVariant = AvatarVariant | {
1106
+ type: "emoji";
1107
+ emoji: string;
1108
+ } | {
1109
+ type: "file";
1110
+ file: File;
1111
+ } | {
1112
+ type: "icon";
1113
+ icon: IconType;
1114
+ } | {
1115
+ type: "module";
1116
+ module: ModuleId;
1117
+ } | {
1118
+ type: "alert";
1119
+ variant: AlertAvatarProps["type"];
1120
+ } | {
1121
+ type: "date";
1122
+ date: Date;
1123
+ } | {
1124
+ type: "pulse";
1125
+ firstName: string;
1126
+ lastName: string;
1127
+ src?: string;
1128
+ pulse?: Pulse;
1129
+ onPulseClick: () => void;
1130
+ };
1131
+
904
1132
  declare type CardInternalProps = F0AiInsightCardProps & {
905
1133
  className?: string;
906
1134
  };
907
1135
 
1136
+ declare interface CardPrimaryAction {
1137
+ label: string;
1138
+ icon?: IconType;
1139
+ onClick: () => void;
1140
+ }
1141
+
1142
+ declare interface CardRowConfirmAction {
1143
+ onClick: () => void;
1144
+ /** Accessible label and tooltip. Defaults to "Confirm" / "Reject". */
1145
+ label?: string;
1146
+ disabled?: boolean;
1147
+ }
1148
+
1149
+ /**
1150
+ * Container breakpoint at which the card row switches between its inline and its
1151
+ * stacked (actions-on-their-own-line) layout. `never` keeps it inline at every
1152
+ * width.
1153
+ */
1154
+ declare type CardRowStackAt = "sm" | "md" | "lg" | "never";
1155
+
1156
+ /**
1157
+ * Resolved state shown at the trailing edge in place of the actions: a coloured
1158
+ * icon (e.g. `Check` for accepted, `Cross` for rejected) carrying the outcome.
1159
+ */
1160
+ declare interface CardRowStatus {
1161
+ /** The icon to render (e.g. `Check` for accepted, `Cross` for rejected). */
1162
+ icon: IconType;
1163
+ /** Colour family. */
1164
+ variant: StatusVariant;
1165
+ /** Accessible label; the icon carries meaning, so this is required. */
1166
+ label: string;
1167
+ }
1168
+
1169
+ declare interface CardSecondaryAction {
1170
+ label: string;
1171
+ icon?: IconType;
1172
+ onClick: () => void;
1173
+ }
1174
+
1175
+ declare interface CardSecondaryLink extends Pick<F0LinkProps, "href" | "target" | "disabled"> {
1176
+ label: string;
1177
+ }
1178
+
908
1179
  export declare interface ChartComputation {
909
1180
  datasetId: string;
910
1181
  xAxis: string;
@@ -1555,6 +1826,7 @@ export declare const defaultTranslations: {
1555
1826
  readonly save: "Save";
1556
1827
  readonly send: "Send";
1557
1828
  readonly cancel: "Cancel";
1829
+ readonly ok: "Ok";
1558
1830
  readonly delete: "Delete";
1559
1831
  readonly copy: "Copy";
1560
1832
  readonly paste: "Paste";
@@ -2258,6 +2530,26 @@ declare type DetailsItemContent = (ComponentProps<typeof DataList.Item> & {
2258
2530
  */
2259
2531
  declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
2260
2532
 
2533
+ declare type DropdownItem = DropdownItemObject | DropdownItemSeparator | DropdownItemLabel;
2534
+
2535
+ declare type DropdownItemLabel = {
2536
+ type: "label";
2537
+ text: string;
2538
+ };
2539
+
2540
+ declare type DropdownItemObject = Pick<NavigationItem, "label" | "href"> & {
2541
+ type?: "item";
2542
+ onClick?: () => void;
2543
+ icon?: IconType;
2544
+ description?: string;
2545
+ critical?: boolean;
2546
+ avatar?: AvatarVariant;
2547
+ };
2548
+
2549
+ declare type DropdownItemSeparator = {
2550
+ type: "separator";
2551
+ };
2552
+
2261
2553
  export declare const DropOverlay: ({ visible, onFilesDropped }: DropOverlayProps) => JSX_2.Element;
2262
2554
 
2263
2555
  declare interface DropOverlayProps {
@@ -3012,6 +3304,92 @@ export declare type F0CanvasPanelProps = {
3012
3304
  entities?: Record<string, CanvasEntityDefinition<any>>;
3013
3305
  };
3014
3306
 
3307
+ declare interface F0CardRowProps {
3308
+ /**
3309
+ * The primary line of text.
3310
+ */
3311
+ title: string;
3312
+ /**
3313
+ * Optional secondary line shown beneath the title (wraps across multiple
3314
+ * lines when long).
3315
+ */
3316
+ description?: string;
3317
+ /**
3318
+ * Optional avatar rendered at a fixed `lg` size on the left (the size is not
3319
+ * configurable). Accepts any avatar type in the system: person, company, team,
3320
+ * file, flag, icon, emoji, module, alert, date, pulse. Types without a `lg`
3321
+ * variant (date, pulse) render at their intrinsic size.
3322
+ */
3323
+ avatar?: CardAvatarVariant;
3324
+ /**
3325
+ * The primary action button, shown at the trailing edge of the row.
3326
+ */
3327
+ primaryAction?: CardPrimaryAction;
3328
+ /**
3329
+ * Secondary actions (buttons) or a single link, shown before the primary action.
3330
+ */
3331
+ secondaryActions?: CardSecondaryAction[] | CardSecondaryLink;
3332
+ /**
3333
+ * Overflow (⋯) menu actions, rendered as the trailing control of the row.
3334
+ */
3335
+ otherActions?: DropdownItem[];
3336
+ /**
3337
+ * Confirm/reject variant: renders an icon-only ✗ (reject) + ✓ (confirm) pair
3338
+ * instead of the standard actions. Provide either or both.
3339
+ */
3340
+ confirmAction?: CardRowConfirmAction;
3341
+ /**
3342
+ * Reject (✗) action of the confirm/reject variant. See {@link confirmAction}.
3343
+ */
3344
+ rejectAction?: CardRowConfirmAction;
3345
+ /**
3346
+ * Resolved-state icon shown at the trailing edge in place of any actions — the
3347
+ * outcome of a confirm/reject row, e.g.
3348
+ * `{ icon: Check, variant: "positive", label: "Accepted" }`.
3349
+ * Takes precedence over the action props.
3350
+ */
3351
+ status?: CardRowStatus;
3352
+ /**
3353
+ * Strikes through and dims the title/description, marking the row's subject as
3354
+ * void or closed (e.g. a rejected request). Purely presentational — pair it
3355
+ * with the matching `status` tag at the call site.
3356
+ */
3357
+ inactive?: boolean;
3358
+ /**
3359
+ * Compact layout: tighter padding and smaller controls.
3360
+ */
3361
+ compact?: boolean;
3362
+ /**
3363
+ * Container width at which the actions drop to their own line (below it) vs.
3364
+ * sit inline (at/above it). `never` keeps them inline at every width.
3365
+ * @default "never"
3366
+ */
3367
+ stackAt?: CardRowStackAt;
3368
+ /**
3369
+ * When set, the whole row becomes a link to this href.
3370
+ */
3371
+ link?: string;
3372
+ /**
3373
+ * Stretch to fill the height of its container.
3374
+ */
3375
+ fullHeight?: boolean;
3376
+ /**
3377
+ * Alert banner displayed above the row with a coloured header strip and matching
3378
+ * border. Supports info, warning, critical and positive variants.
3379
+ * Use `visible` + `onDismiss` for controlled dismiss behaviour.
3380
+ */
3381
+ alert?: CardAlertProps;
3382
+ /**
3383
+ * Called when the row is clicked.
3384
+ */
3385
+ onClick?: () => void;
3386
+ /**
3387
+ * Disables the full-row overlay link so a parent can manage drag-and-drop while
3388
+ * still allowing click navigation via `onClick`.
3389
+ */
3390
+ disableOverlayLink?: boolean;
3391
+ }
3392
+
3015
3393
  /**
3016
3394
  * Clarifying question panel — content only, no mount animation.
3017
3395
  *
@@ -3034,30 +3412,51 @@ declare interface F0ClarifyingPanelProps {
3034
3412
  isSubmitDisabled?: boolean;
3035
3413
  }
3036
3414
 
3037
- export declare const F0HILActionConfirmation: ({ text, confirmationText, onConfirm, cancelText, onCancel, }: F0HILActionConfirmationProps) => JSX_2.Element;
3415
+ export declare const F0HILActionConfirmation: ({ text, description, avatar, confirmationText, onConfirm, cancelText, onCancel, stackAt, }: F0HILActionConfirmationProps) => JSX_2.Element;
3038
3416
 
3039
3417
  /**
3040
- * Props for the F0HILActionConfirmation component
3418
+ * Props for the F0HILActionConfirmation component.
3419
+ *
3420
+ * Renders an inline approve/reject row built on `F0CardRow`'s confirm/reject
3421
+ * variant: the prompt as the row title, with icon-only ✓ (confirm) and ✗
3422
+ * (reject) buttons at the trailing edge.
3041
3423
  */
3042
3424
  export declare type F0HILActionConfirmationProps = {
3043
3425
  /**
3044
- * Optional descriptive text shown above the action buttons
3426
+ * The prompt shown as the row title (e.g. the action awaiting confirmation).
3427
+ * Required — a confirmation without a prompt has no meaning.
3428
+ */
3429
+ text: string;
3430
+ /**
3431
+ * Optional secondary line shown beneath the title (single line, truncated).
3432
+ */
3433
+ description?: F0CardRowProps["description"];
3434
+ /**
3435
+ * Optional avatar rendered on the left of the row. Accepts any avatar type in
3436
+ * the system (person, company, team, file, icon, emoji, …).
3437
+ */
3438
+ avatar?: F0CardRowProps["avatar"];
3439
+ /**
3440
+ * Container width at which the ✓/✗ actions drop onto their own line instead of
3441
+ * staying inline. Prevents the buttons from overlapping the prompt in narrow
3442
+ * containers. Set to `"never"` to keep them inline at every width.
3443
+ * @default "sm"
3045
3444
  */
3046
- text?: string;
3445
+ stackAt?: F0CardRowProps["stackAt"];
3047
3446
  /**
3048
- * Text displayed on the confirmation button
3447
+ * Accessible label and tooltip for the confirm (✓) button.
3049
3448
  */
3050
3449
  confirmationText: string;
3051
3450
  /**
3052
- * Callback fired when the confirmation button is clicked
3451
+ * Callback fired when the confirm button is clicked.
3053
3452
  */
3054
3453
  onConfirm: () => void;
3055
3454
  /**
3056
- * Text displayed on the cancel button
3455
+ * Accessible label and tooltip for the reject (✗) button.
3057
3456
  */
3058
3457
  cancelText: string;
3059
3458
  /**
3060
- * Callback fired when the cancel button is clicked
3459
+ * Callback fired when the reject button is clicked.
3061
3460
  */
3062
3461
  onCancel: () => void;
3063
3462
  };
@@ -3069,6 +3468,12 @@ declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<type
3069
3468
  color?: "default" | "currentColor" | `#${string}` | Lowercase<NestedKeyOf<typeof f1Colors.icon>>;
3070
3469
  }
3071
3470
 
3471
+ declare type F0LinkProps = Omit<ActionLinkProps, "variant" | "href"> & {
3472
+ variant?: ActionLinkVariant;
3473
+ stopPropagation?: boolean;
3474
+ href?: string;
3475
+ };
3476
+
3072
3477
  export declare type F0Message = {
3073
3478
  id: string;
3074
3479
  role: "user" | "assistant" | "system" | "tool";
@@ -3289,6 +3694,10 @@ declare type FlagAvatarVariant = Extract<AvatarVariant, {
3289
3694
  type: "flag";
3290
3695
  }>;
3291
3696
 
3697
+ declare type FontSize = (typeof fontSizes)[number];
3698
+
3699
+ declare const fontSizes: readonly ["sm", "md", "lg"];
3700
+
3292
3701
  /**
3293
3702
  * A preset formatting instruction the LLM can specify instead of a
3294
3703
  * real formatter function. The wrapper component maps these to actual
@@ -3406,6 +3815,11 @@ declare type Level = (typeof levels)[number];
3406
3815
 
3407
3816
  declare const levels: readonly ["info", "warning", "critical", "positive"];
3408
3817
 
3818
+ declare type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
3819
+ exactMatch?: boolean;
3820
+ disabled?: boolean;
3821
+ };
3822
+
3409
3823
  export declare const markdownRenderers: MarkdownTagRenderers;
3410
3824
 
3411
3825
  /**
@@ -3586,6 +4000,12 @@ declare const modules: {
3586
4000
  readonly workflows: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
3587
4001
  };
3588
4002
 
4003
+ declare type NavigationItem = Pick<LinkProps, "href" | "exactMatch" | "onClick"> & {
4004
+ label: string;
4005
+ } & DataAttributes_2;
4006
+
4007
+ declare type NavTarget = HTMLAttributeAnchorTarget;
4008
+
3589
4009
  /**
3590
4010
  * Utility type to extract all possible paths from nested object.
3591
4011
  * Generates hyphenated paths from nested object structure
@@ -3809,6 +4229,10 @@ declare type Props_2 = {
3809
4229
  customColor: string;
3810
4230
  });
3811
4231
 
4232
+ declare type Pulse = (typeof pulses)[number];
4233
+
4234
+ declare const pulses: readonly ["superNegative", "negative", "neutral", "positive", "superPositive"];
4235
+
3812
4236
  export declare interface RadarComputation {
3813
4237
  datasetId: string;
3814
4238
  seriesColumn: string;
@@ -4265,9 +4689,9 @@ declare module "gridstack" {
4265
4689
 
4266
4690
  declare module "@tiptap/core" {
4267
4691
  interface Commands<ReturnType> {
4268
- aiBlock: {
4269
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
4270
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
4692
+ enhanceHighlight: {
4693
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
4694
+ clearEnhanceHighlight: () => ReturnType;
4271
4695
  };
4272
4696
  }
4273
4697
  }
@@ -4275,9 +4699,9 @@ declare module "@tiptap/core" {
4275
4699
 
4276
4700
  declare module "@tiptap/core" {
4277
4701
  interface Commands<ReturnType> {
4278
- enhanceHighlight: {
4279
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
4280
- clearEnhanceHighlight: () => ReturnType;
4702
+ aiBlock: {
4703
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
4704
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
4281
4705
  };
4282
4706
  }
4283
4707
  }
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-DMLQMGBW.js";
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-DAS9OuMu.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-DvbntgsJ.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-widnlpnJ.js";
4
4
  export {
5
5
  c as AiChatTranslationsProvider,
6
6
  I as ChatSpinner,
@@ -1329,6 +1329,11 @@ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "clas
1329
1329
  * The style of the button.
1330
1330
  */
1331
1331
  style?: React.CSSProperties;
1332
+ /**
1333
+ * @private
1334
+ * If true, the button will stretch to the full width of its container.
1335
+ */
1336
+ block?: boolean;
1332
1337
  } & ({
1333
1338
  /**
1334
1339
  * The URL to navigate to when the button is clicked.
@@ -2971,6 +2976,7 @@ declare const defaultTranslations: {
2971
2976
  readonly save: "Save";
2972
2977
  readonly send: "Send";
2973
2978
  readonly cancel: "Cancel";
2979
+ readonly ok: "Ok";
2974
2980
  readonly delete: "Delete";
2975
2981
  readonly copy: "Copy";
2976
2982
  readonly paste: "Paste";
@@ -6921,7 +6927,7 @@ declare interface PrimaryDropdownAction<T> extends PrimaryAction {
6921
6927
 
6922
6928
  export declare const PrivateBox: FC<PropsWithChildren>;
6923
6929
 
6924
- declare const privateProps: readonly ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style"];
6930
+ declare const privateProps: readonly ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style", "block"];
6925
6931
 
6926
6932
  declare const privateProps_2: readonly ["withBorder"];
6927
6933
 
@@ -8774,9 +8780,9 @@ declare module "gridstack" {
8774
8780
 
8775
8781
  declare module "@tiptap/core" {
8776
8782
  interface Commands<ReturnType> {
8777
- aiBlock: {
8778
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
8779
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
8783
+ enhanceHighlight: {
8784
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
8785
+ clearEnhanceHighlight: () => ReturnType;
8780
8786
  };
8781
8787
  }
8782
8788
  }
@@ -8784,9 +8790,9 @@ declare module "@tiptap/core" {
8784
8790
 
8785
8791
  declare module "@tiptap/core" {
8786
8792
  interface Commands<ReturnType> {
8787
- enhanceHighlight: {
8788
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
8789
- clearEnhanceHighlight: () => ReturnType;
8793
+ aiBlock: {
8794
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
8795
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
8790
8796
  };
8791
8797
  }
8792
8798
  }
@@ -1,9 +1,9 @@
1
- import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p, n as X, o as ge, u as ie, T as pa, p as ga, q as ba, R as xa, r as va, s as re, t as wa, v as pt, w as rt, x as Re, A as _e, y as ya, z as Na, C as M, E as Ca, G as ka, H as ve, J as sn, K as Sa, L as Ia, M as W, N as on, S as O, O as we, Q as Fa, U as Aa, V as La, W as Ea, X as _a, Y as ke, Z as cn, _ as Oa, $ as be, a0 as $e, a1 as Da, a2 as gt, d as dn, a3 as Ce, a4 as Ta, a5 as un, a6 as ne, a7 as K, a8 as fn, a9 as mn, aa as za, ab as hn, ac as me, ad as ee, ae as Pa, af as Ba, ag as Ra, ah as $a, ai as pe, aj as Ge, ak as Wa, al as Ma, am as ja, an as Va, ao as He, ap as pn, aq as Ga, ar as Ha, as as Ua, at as We, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as nr, aE as lt, aF as gn, aG as it, aH as bn, aI as ar, aJ as rr, aK as lr, aL as ir, aM as sr, aN as Ue, aO as bt, aP as st, aQ as xn, aR as or, aS as vn, aT as cr, aU as dr, aV as ur, aW as Ee, aX as fr, aY as mr, aZ as Te, a_ as Lt, a$ as ot, b0 as hr, b1 as pr, a as gr, b as br, b2 as wn, b3 as xr, f as vr, F as wr, b4 as yr, b5 as yn, b6 as Nr, b7 as Nn, b8 as Cr, b9 as kr, ba as Sr, bb as Ir, bc as Fr, bd as Ar, be as Lr, bf as Er, bg as _r, bh as Cn, bi as ue, bj as xt, bk as vt, bl as wt, bm as kn, bn as yt, bo as Sn, bp as In, bq as Or, br as Dr, bs as Tr, bt as zr, bu as Pr, bv as Br, bw as Rr, bx as $r, by as Et, bz as Wr, bA as Mr, bB as _t, bC as Ot, bD as Dt, bE as jr, bF as Vr, bG as Gr, bH as Hr, bI as Fn, bJ as Ur, bK as Kr } from "./F0CanvasPanel-DMLQMGBW.js";
2
- import { bW as Lc, bV as Ec, c6 as _c, bS as Oc, bT as Dc, bL as Tc, bM as zc, bN as Pc, c7 as Bc, bU as Rc, c2 as $c, c3 as Wc, bO as Mc, bY as jc, bX as Vc, bP as Gc, bQ as Hc, c4 as Uc, c8 as Kc, c5 as qc, c1 as Yc, b_ as Zc, c0 as Xc, bZ as Jc, bR as Qc, b$ as ed } from "./F0CanvasPanel-DMLQMGBW.js";
1
+ import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p, n as X, o as ge, u as ie, T as pa, p as ga, q as ba, R as xa, r as va, s as re, t as wa, v as pt, w as rt, x as Re, A as _e, y as ya, z as Na, C as M, E as Ca, G as ka, H as ve, J as sn, K as Sa, L as Ia, M as W, N as on, S as O, O as we, Q as Fa, U as Aa, V as La, W as Ea, X as _a, Y as ke, Z as cn, _ as Oa, $ as be, a0 as $e, a1 as Da, a2 as gt, d as dn, a3 as Ce, a4 as Ta, a5 as un, a6 as ne, a7 as K, a8 as fn, a9 as mn, aa as za, ab as hn, ac as me, ad as ee, ae as Pa, af as Ba, ag as Ra, ah as $a, ai as pe, aj as Ge, ak as Wa, al as Ma, am as ja, an as Va, ao as He, ap as pn, aq as Ga, ar as Ha, as as Ua, at as We, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as nr, aE as lt, aF as gn, aG as it, aH as bn, aI as ar, aJ as rr, aK as lr, aL as ir, aM as sr, aN as Ue, aO as bt, aP as st, aQ as xn, aR as or, aS as vn, aT as cr, aU as dr, aV as ur, aW as Ee, aX as fr, aY as mr, aZ as Te, a_ as Lt, a$ as ot, b0 as hr, b1 as pr, a as gr, b as br, b2 as wn, b3 as xr, f as vr, F as wr, b4 as yr, b5 as yn, b6 as Nr, b7 as Nn, b8 as Cr, b9 as kr, ba as Sr, bb as Ir, bc as Fr, bd as Ar, be as Lr, bf as Er, bg as _r, bh as Cn, bi as ue, bj as xt, bk as vt, bl as wt, bm as kn, bn as yt, bo as Sn, bp as In, bq as Or, br as Dr, bs as Tr, bt as zr, bu as Pr, bv as Br, bw as Rr, bx as $r, by as Et, bz as Wr, bA as Mr, bB as _t, bC as Ot, bD as Dt, bE as jr, bF as Vr, bG as Gr, bH as Hr, bI as Fn, bJ as Ur, bK as Kr } from "./F0CanvasPanel-DAS9OuMu.js";
2
+ import { bW as Lc, bV as Ec, c6 as _c, bS as Oc, bT as Dc, bL as Tc, bM as zc, bN as Pc, c7 as Bc, bU as Rc, c2 as $c, c3 as Wc, bO as Mc, bY as jc, bX as Vc, bP as Gc, bQ as Hc, c4 as Uc, c8 as Kc, c5 as qc, c1 as Yc, b_ as Zc, c0 as Xc, bZ as Jc, bR as Qc, b$ as ed } from "./F0CanvasPanel-DAS9OuMu.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import se, { forwardRef as j, useRef as G, useTransition as qr, useState as _, useLayoutEffect as An, useId as ct, useContext as Ke, createContext as Nt, useEffect as $, useCallback as Q, useMemo as q, Fragment as Yr, isValidElement as Zr, cloneElement as Ln, Children as En } from "react";
5
- import { C as Xr, P as Jr, a as _n, M as Qr, R as Tt, b as On, u as el, c as Dn, S as tl, A as nl, B as al, L as rl, d as ll, V as il, e as sl, f as ol, g as cl, O as dl } from "./useDataCollectionSource-iZJIN18U.js";
6
- import { l as nd, m as ad, j as rd, x as ld, n as id, s as sd, a3 as od, w as cd, k as dd, D as ud, F as fd, J as md, E as hd, z as pd, a9 as gd, I as bd, K as xd, Q as vd, o as wd, a5 as yd, a6 as Nd, a4 as Cd, a7 as kd, N as Sd, U as Id, a0 as Fd, a2 as Ad, p as Ld, r as Ed, t as _d, G as Od, a8 as Dd, H as Td, T as zd, q as Pd, v as Bd, h as Rd, i as $d, X as Wd, Y as Md, a1 as jd, y as Vd, Z as Gd, _ as Hd, W as Ud, $ as Kd } from "./useDataCollectionSource-iZJIN18U.js";
5
+ import { C as Xr, P as Jr, a as _n, M as Qr, R as Tt, b as On, u as el, c as Dn, S as tl, A as nl, B as al, L as rl, d as ll, V as il, e as sl, f as ol, g as cl, O as dl } from "./useDataCollectionSource-RSypR7CQ.js";
6
+ import { l as nd, m as ad, j as rd, x as ld, n as id, s as sd, a3 as od, w as cd, k as dd, D as ud, F as fd, J as md, E as hd, z as pd, a9 as gd, I as bd, K as xd, Q as vd, o as wd, a5 as yd, a6 as Nd, a4 as Cd, a7 as kd, N as Sd, U as Id, a0 as Fd, a2 as Ad, p as Ld, r as Ed, t as _d, G as Od, a8 as Dd, H as Td, T as zd, q as Pd, v as Bd, h as Rd, i as $d, X as Wd, Y as Md, a1 as jd, y as Vd, Z as Gd, _ as Hd, W as Ud, $ as Kd } from "./useDataCollectionSource-RSypR7CQ.js";
7
7
  const ul = da("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]