@factorialco/f0-react 2.2.0 → 2.4.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
@@ -1443,6 +1443,10 @@ declare type DashboardMetadata = {
1443
1443
  lastEdited: Date | string;
1444
1444
  };
1445
1445
 
1446
+ declare type DataAttributes_2 = {
1447
+ [key: `data-${string}`]: string | undefined;
1448
+ };
1449
+
1446
1450
  /**
1447
1451
  * Data download canvas content — renders a full data table with download options.
1448
1452
  */
@@ -2495,6 +2499,47 @@ export declare class F0AiMask {
2495
2499
  private render;
2496
2500
  }
2497
2501
 
2502
+ export declare function F0AiProposalCard(props: F0AiProposalCardProps): JSX_2.Element;
2503
+
2504
+ export declare namespace F0AiProposalCard {
2505
+ var displayName: string;
2506
+ }
2507
+
2508
+ export declare interface F0AiProposalCardActions {
2509
+ /** Label for the primary action button. */
2510
+ primaryActionLabel: string;
2511
+ /** Optional icon shown before the primary action label. */
2512
+ primaryActionIcon?: IconType;
2513
+ /** Whether the action footer is visible. */
2514
+ showActions?: true;
2515
+ /** Called when the primary action is clicked. */
2516
+ onPrimaryAction: () => void;
2517
+ }
2518
+
2519
+ export declare interface F0AiProposalCardBaseProps extends DataAttributes_2 {
2520
+ /** Module avatar shown in the card header. */
2521
+ module?: ModuleId;
2522
+ /** Header label describing the proposal type. */
2523
+ heading: string;
2524
+ /** Main proposal title. */
2525
+ title: string;
2526
+ /** Optional secondary metadata line. */
2527
+ subtitle?: string;
2528
+ /** Proposal details. Line breaks are preserved when expanded. */
2529
+ description: string;
2530
+ /** Label for the inline expansion control. */
2531
+ seeMoreLabel: string;
2532
+ /** Maximum number of characters shown before expansion. */
2533
+ maxCollapsedDescriptionLength?: number;
2534
+ }
2535
+
2536
+ export declare interface F0AiProposalCardHiddenActions {
2537
+ /** Hide the action footer and omit action props. */
2538
+ showActions: false;
2539
+ }
2540
+
2541
+ export declare type F0AiProposalCardProps = F0AiProposalCardBaseProps & (F0AiProposalCardActions | F0AiProposalCardHiddenActions);
2542
+
2498
2543
  export declare function F0AuraVoiceAnimation({ size, state, color, colorShift, audioTrack, themeMode, className, ref, ...props }: F0AuraVoiceAnimationProps & ComponentProps<"div"> & VariantProps<typeof F0AuraVoiceAnimationVariants>): JSX_2.Element;
2499
2544
 
2500
2545
  export declare interface F0AuraVoiceAnimationProps {
@@ -3695,6 +3740,11 @@ declare module "gridstack" {
3695
3740
  }
3696
3741
 
3697
3742
 
3743
+ declare namespace Calendar {
3744
+ var displayName: string;
3745
+ }
3746
+
3747
+
3698
3748
  declare module "@tiptap/core" {
3699
3749
  interface Commands<ReturnType> {
3700
3750
  aiBlock: {
@@ -3717,8 +3767,8 @@ declare module "@tiptap/core" {
3717
3767
 
3718
3768
  declare module "@tiptap/core" {
3719
3769
  interface Commands<ReturnType> {
3720
- transcript: {
3721
- insertTranscript: (data: TranscriptData) => ReturnType;
3770
+ moodTracker: {
3771
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
3722
3772
  };
3723
3773
  }
3724
3774
  }
@@ -3726,10 +3776,8 @@ declare module "@tiptap/core" {
3726
3776
 
3727
3777
  declare module "@tiptap/core" {
3728
3778
  interface Commands<ReturnType> {
3729
- videoEmbed: {
3730
- setVideoEmbed: (options: {
3731
- src: string;
3732
- }) => ReturnType;
3779
+ transcript: {
3780
+ insertTranscript: (data: TranscriptData) => ReturnType;
3733
3781
  };
3734
3782
  }
3735
3783
  }
@@ -3737,13 +3785,10 @@ declare module "@tiptap/core" {
3737
3785
 
3738
3786
  declare module "@tiptap/core" {
3739
3787
  interface Commands<ReturnType> {
3740
- moodTracker: {
3741
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
3788
+ videoEmbed: {
3789
+ setVideoEmbed: (options: {
3790
+ src: string;
3791
+ }) => ReturnType;
3742
3792
  };
3743
3793
  }
3744
3794
  }
3745
-
3746
-
3747
- declare namespace Calendar {
3748
- var displayName: string;
3749
- }
package/dist/ai.js CHANGED
@@ -1,45 +1,46 @@
1
- import { d as o, l as e, k as r, F as t, a as n, C as i, b as d, m as C, n as F, e as l, h as m, I as u, g as h, c as A, i as D, u as c, j as v, f as I } from "./useDataCollectionSource-BNMQa-mV.js";
1
+ import { d as o, l as r, k as e, F as t, a as n, C as i, b as d, m as C, n as F, e as l, h as m, I as u, g as h, c as A, i as D, u as c, j as v, f as I } from "./useDataCollectionSource-BNMQa-mV.js";
2
2
  import { defaultTranslations as b } from "./i18n-provider-defaults.js";
3
- import { A as S, C as T, c as p, D as P, a as w, b as x, e as H, f as M, g as V, h as k, p as j, l as y, m as O, n as q, i as z, F as B, d as E, M as L, k as W, j as G, q as J, o as K, s as N, u as Q } from "./types-zUkcMLoO.js";
3
+ import { A as p, C as P, c as S, D as T, a as w, b as x, e as H, f as M, g as V, h as k, p as j, l as y, r as O, m as q, n as z, i as B, F as E, d as L, M as W, k as G, j as J, q as K, o as N, s as Q, u as R } from "./F0AiProposalCard-pqQaiKFp.js";
4
4
  export {
5
- S as AiChatTranslationsProvider,
5
+ p as AiChatTranslationsProvider,
6
6
  o as CanvasCard,
7
- e as ChatSpinner,
8
- T as CloseCanvasButton,
9
- p as DashboardCanvasProvider,
10
- P as DashboardCard,
7
+ r as ChatSpinner,
8
+ P as CloseCanvasButton,
9
+ S as DashboardCanvasProvider,
10
+ T as DashboardCard,
11
11
  w as DashboardContent,
12
12
  x as DashboardHeader,
13
13
  H as DataDownloadCard,
14
14
  M as DataDownloadContent,
15
15
  V as DataDownloadHeader,
16
16
  k as DataDownloadProvider,
17
- r as F0ActionItem,
17
+ e as F0ActionItem,
18
18
  t as F0AiChat,
19
19
  n as F0AiChatProvider,
20
20
  i as F0AiChatTextArea,
21
21
  d as F0AiFullscreenChat,
22
22
  j as F0AiInsightCard,
23
23
  y as F0AiMask,
24
- O as F0AuraVoiceAnimation,
25
- q as F0HILActionConfirmation,
26
- z as F0MessageCreditsWarning,
24
+ O as F0AiProposalCard,
25
+ q as F0AuraVoiceAnimation,
26
+ z as F0HILActionConfirmation,
27
+ B as F0MessageCreditsWarning,
27
28
  C as F0OneIcon,
28
29
  F as F0OneSwitch,
29
30
  l as FormCard,
30
31
  m as FormCardValueFormatterProvider,
31
- B as FormContent,
32
- E as FormHeader,
32
+ E as FormContent,
33
+ L as FormHeader,
33
34
  u as I18nProvider,
34
- L as MessageSources,
35
- W as actionItemStatuses,
36
- G as aiTranslations,
37
- J as contentTypes,
35
+ W as MessageSources,
36
+ G as actionItemStatuses,
37
+ J as aiTranslations,
38
+ K as contentTypes,
38
39
  b as defaultTranslations,
39
- K as oneIconSizes,
40
- N as savedDashboardConfigStore,
40
+ N as oneIconSizes,
41
+ Q as savedDashboardConfigStore,
41
42
  h as useAiChat,
42
- Q as useAiChatTranslations,
43
+ R as useAiChatTranslations,
43
44
  A as useCanvasEntity,
44
45
  D as useFormCardValueFormatter,
45
46
  c as useI18n,
@@ -8217,6 +8217,11 @@ declare module "gridstack" {
8217
8217
  }
8218
8218
 
8219
8219
 
8220
+ declare namespace Calendar {
8221
+ var displayName: string;
8222
+ }
8223
+
8224
+
8220
8225
  declare module "@tiptap/core" {
8221
8226
  interface Commands<ReturnType> {
8222
8227
  aiBlock: {
@@ -8239,8 +8244,8 @@ declare module "@tiptap/core" {
8239
8244
 
8240
8245
  declare module "@tiptap/core" {
8241
8246
  interface Commands<ReturnType> {
8242
- transcript: {
8243
- insertTranscript: (data: TranscriptData) => ReturnType;
8247
+ moodTracker: {
8248
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
8244
8249
  };
8245
8250
  }
8246
8251
  }
@@ -8248,10 +8253,8 @@ declare module "@tiptap/core" {
8248
8253
 
8249
8254
  declare module "@tiptap/core" {
8250
8255
  interface Commands<ReturnType> {
8251
- videoEmbed: {
8252
- setVideoEmbed: (options: {
8253
- src: string;
8254
- }) => ReturnType;
8256
+ transcript: {
8257
+ insertTranscript: (data: TranscriptData) => ReturnType;
8255
8258
  };
8256
8259
  }
8257
8260
  }
@@ -8259,13 +8262,10 @@ declare module "@tiptap/core" {
8259
8262
 
8260
8263
  declare module "@tiptap/core" {
8261
8264
  interface Commands<ReturnType> {
8262
- moodTracker: {
8263
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
8265
+ videoEmbed: {
8266
+ setVideoEmbed: (options: {
8267
+ src: string;
8268
+ }) => ReturnType;
8264
8269
  };
8265
8270
  }
8266
8271
  }
8267
-
8268
-
8269
- declare namespace Calendar {
8270
- var displayName: string;
8271
- }
package/dist/f0.d.ts CHANGED
@@ -1059,6 +1059,16 @@ export declare const aiTranslations: {
1059
1059
  };
1060
1060
  };
1061
1061
 
1062
+ declare type AlertAction = {
1063
+ label: string;
1064
+ onRequest: UpsellingButtonProps["onRequest"];
1065
+ errorMessage: UpsellingButtonProps["errorMessage"];
1066
+ successMessage: UpsellingButtonProps["successMessage"];
1067
+ loadingState: UpsellingButtonProps["loadingState"];
1068
+ nextSteps: UpsellingButtonProps["nextSteps"];
1069
+ closeLabel: UpsellingButtonProps["closeLabel"];
1070
+ };
1071
+
1062
1072
  export declare type AlertAvatarProps = VariantProps<typeof alertAvatarVariants> & {
1063
1073
  type: (typeof alertAvatarTypes)[number];
1064
1074
  size?: (typeof alertAvatarSizes)[number];
@@ -5548,6 +5558,47 @@ export declare class F0AiMask {
5548
5558
  private render;
5549
5559
  }
5550
5560
 
5561
+ export declare function F0AiProposalCard(props: F0AiProposalCardProps): JSX_2.Element;
5562
+
5563
+ export declare namespace F0AiProposalCard {
5564
+ var displayName: string;
5565
+ }
5566
+
5567
+ export declare interface F0AiProposalCardActions {
5568
+ /** Label for the primary action button. */
5569
+ primaryActionLabel: string;
5570
+ /** Optional icon shown before the primary action label. */
5571
+ primaryActionIcon?: IconType;
5572
+ /** Whether the action footer is visible. */
5573
+ showActions?: true;
5574
+ /** Called when the primary action is clicked. */
5575
+ onPrimaryAction: () => void;
5576
+ }
5577
+
5578
+ export declare interface F0AiProposalCardBaseProps extends DataAttributes_2 {
5579
+ /** Module avatar shown in the card header. */
5580
+ module?: ModuleId;
5581
+ /** Header label describing the proposal type. */
5582
+ heading: string;
5583
+ /** Main proposal title. */
5584
+ title: string;
5585
+ /** Optional secondary metadata line. */
5586
+ subtitle?: string;
5587
+ /** Proposal details. Line breaks are preserved when expanded. */
5588
+ description: string;
5589
+ /** Label for the inline expansion control. */
5590
+ seeMoreLabel: string;
5591
+ /** Maximum number of characters shown before expansion. */
5592
+ maxCollapsedDescriptionLength?: number;
5593
+ }
5594
+
5595
+ export declare interface F0AiProposalCardHiddenActions {
5596
+ /** Hide the action footer and omit action props. */
5597
+ showActions: false;
5598
+ }
5599
+
5600
+ export declare type F0AiProposalCardProps = F0AiProposalCardBaseProps & (F0AiProposalCardActions | F0AiProposalCardHiddenActions);
5601
+
5551
5602
  export declare const F0Alert: WithDataTestIdReturnType_3<({ title, description, action, link, icon, variant, onClose, }: F0AlertProps) => JSX_2.Element>;
5552
5603
 
5553
5604
  export declare interface F0AlertProps {
@@ -13464,6 +13515,29 @@ declare type UpsellAction = BaseAction & {
13464
13515
  showConfirmation: boolean;
13465
13516
  };
13466
13517
 
13518
+ export declare const UpsellingAlert: WithDataTestIdReturnType_4<typeof _UpsellingAlert>;
13519
+
13520
+ declare function _UpsellingAlert({ icon, title, description, action, }: UpsellingAlertProps): JSX_2.Element;
13521
+
13522
+ export declare interface UpsellingAlertProps {
13523
+ /**
13524
+ * Optional icon displayed as an avatar on the left side of the alert.
13525
+ */
13526
+ icon?: IconType;
13527
+ /**
13528
+ * The title of the alert
13529
+ */
13530
+ title: string;
13531
+ /**
13532
+ * The description of the alert
13533
+ */
13534
+ description?: string;
13535
+ /**
13536
+ * The upselling action button configuration.
13537
+ */
13538
+ action: AlertAction;
13539
+ }
13540
+
13467
13541
  export declare const UpsellingBanner: WithDataTestIdReturnType_4<ForwardRefExoticComponent<Omit<BaseBannerProps, "children" | "primaryAction" | "secondaryAction"> & {
13468
13542
  primaryAction?: DefaultAction | PromoteAction;
13469
13543
  secondaryAction?: DefaultAction | PromoteAction;
@@ -14363,6 +14437,11 @@ declare module "gridstack" {
14363
14437
  }
14364
14438
 
14365
14439
 
14440
+ declare namespace Calendar {
14441
+ var displayName: string;
14442
+ }
14443
+
14444
+
14366
14445
  declare module "@tiptap/core" {
14367
14446
  interface Commands<ReturnType> {
14368
14447
  aiBlock: {
@@ -14385,8 +14464,8 @@ declare module "@tiptap/core" {
14385
14464
 
14386
14465
  declare module "@tiptap/core" {
14387
14466
  interface Commands<ReturnType> {
14388
- transcript: {
14389
- insertTranscript: (data: TranscriptData) => ReturnType;
14467
+ moodTracker: {
14468
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
14390
14469
  };
14391
14470
  }
14392
14471
  }
@@ -14394,10 +14473,8 @@ declare module "@tiptap/core" {
14394
14473
 
14395
14474
  declare module "@tiptap/core" {
14396
14475
  interface Commands<ReturnType> {
14397
- videoEmbed: {
14398
- setVideoEmbed: (options: {
14399
- src: string;
14400
- }) => ReturnType;
14476
+ transcript: {
14477
+ insertTranscript: (data: TranscriptData) => ReturnType;
14401
14478
  };
14402
14479
  }
14403
14480
  }
@@ -14405,13 +14482,10 @@ declare module "@tiptap/core" {
14405
14482
 
14406
14483
  declare module "@tiptap/core" {
14407
14484
  interface Commands<ReturnType> {
14408
- moodTracker: {
14409
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
14485
+ videoEmbed: {
14486
+ setVideoEmbed: (options: {
14487
+ src: string;
14488
+ }) => ReturnType;
14410
14489
  };
14411
14490
  }
14412
14491
  }
14413
-
14414
-
14415
- declare namespace Calendar {
14416
- var displayName: string;
14417
- }