@factorialco/f0-react 1.295.0 → 1.296.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.
@@ -110,6 +110,13 @@ declare type Action_2 = {
110
110
  variant?: "default" | "outline" | "promote";
111
111
  };
112
112
 
113
+ export declare type ActionBarGroup = {
114
+ label?: string;
115
+ items: ActionBarItem[];
116
+ };
117
+
118
+ export declare type ActionBarItem = ActionType_2;
119
+
113
120
  declare type ActionBaseProps = ActionCommonProps & DataAttributes;
114
121
 
115
122
  declare type ActionButtonProps = ActionBaseProps & {
@@ -298,7 +305,14 @@ export declare type actionType = {
298
305
  icon?: IconType;
299
306
  };
300
307
 
301
- declare type ActionType_2 = CopyActionType | NavigateActionType | OpenLinkActionType;
308
+ declare type ActionType_2 = {
309
+ label: string;
310
+ icon?: IconType;
311
+ onClick?: () => void;
312
+ disabled?: boolean;
313
+ critical?: boolean;
314
+ description?: string;
315
+ };
302
316
 
303
317
  declare type actionType_2 = {
304
318
  label: string;
@@ -309,6 +323,8 @@ declare type actionType_2 = {
309
323
  variant?: "default" | "outline" | "neutral";
310
324
  };
311
325
 
326
+ declare type ActionType_3 = CopyActionType | NavigateActionType | OpenLinkActionType;
327
+
312
328
  declare type ActionVariant = (typeof actionVariants)[number];
313
329
 
314
330
  declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai", "link", "unstyled", "mention"];
@@ -1567,7 +1583,7 @@ declare const CompanyItem: ForwardRefExoticComponent<CompanyItemProps & RefAttri
1567
1583
  declare type CompanyItemProps = {
1568
1584
  name: string;
1569
1585
  avatarUrl?: URL_2;
1570
- action?: ActionType_2;
1586
+ action?: ActionType_3;
1571
1587
  };
1572
1588
 
1573
1589
  export declare function CompanySelector({ companies, selected, onChange, isLoading, withNotification, additionalOptions, }: CompanySelectorProps): JSX_2.Element;
@@ -2593,7 +2609,7 @@ declare type EmployeeItemProps = {
2593
2609
  firstName: string;
2594
2610
  lastName: string;
2595
2611
  avatarUrl?: URL_2;
2596
- action?: ActionType_2;
2612
+ action?: ActionType_3;
2597
2613
  };
2598
2614
 
2599
2615
  declare type EmptyState = {
@@ -2734,6 +2750,27 @@ declare type ExtractVisualizationSettings<T> = T extends {
2734
2750
  };
2735
2751
  } ? S : never;
2736
2752
 
2753
+ export declare const F0ActionBar: ({ isOpen, secondaryActions, label, ...props }: F0ActionBarProps) => JSX_2.Element;
2754
+
2755
+ declare interface F0ActionBarProps {
2756
+ /**
2757
+ * Whether the action bar is open
2758
+ */
2759
+ isOpen: boolean;
2760
+ /**
2761
+ * The primary action
2762
+ */
2763
+ primaryActions?: ActionBarItem[] | ActionBarGroup[] | ActionBarGroup;
2764
+ /**
2765
+ * The secondary actions
2766
+ */
2767
+ secondaryActions?: ActionBarItem[];
2768
+ /**
2769
+ * The label of the action bar
2770
+ */
2771
+ label?: string;
2772
+ }
2773
+
2737
2774
  export declare const F0AiBanner: ForwardRefExoticComponent<AiBannerInternalProps & RefAttributes<HTMLDivElement>> & {
2738
2775
  Skeleton: ({ compact }: AiBannerSkeletonProps) => JSX_2.Element;
2739
2776
  };
@@ -3640,7 +3677,7 @@ declare type ItemDefinition = {
3640
3677
  declare type ItemProps = {
3641
3678
  text: string;
3642
3679
  icon?: IconType;
3643
- action?: ActionType_2;
3680
+ action?: ActionType_3;
3644
3681
  };
3645
3682
 
3646
3683
  declare type Items = typeof Item_2 | typeof PersonItem | typeof CompanyItem | typeof TeamItem;
@@ -5719,7 +5756,7 @@ declare const TeamItem: ForwardRefExoticComponent<TeamItemProps & RefAttributes<
5719
5756
 
5720
5757
  declare type TeamItemProps = {
5721
5758
  name: string;
5722
- action?: ActionType_2;
5759
+ action?: ActionType_3;
5723
5760
  };
5724
5761
 
5725
5762
  export declare const Textarea: React.FC<TextareaProps>;
@@ -6316,33 +6353,6 @@ declare global {
6316
6353
  }
6317
6354
 
6318
6355
 
6319
- declare module "@tiptap/core" {
6320
- interface Commands<ReturnType> {
6321
- aiBlock: {
6322
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
6323
- };
6324
- }
6325
- }
6326
-
6327
-
6328
- declare module "@tiptap/core" {
6329
- interface Commands<ReturnType> {
6330
- liveCompanion: {
6331
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
6332
- };
6333
- }
6334
- }
6335
-
6336
-
6337
- declare module "@tiptap/core" {
6338
- interface Commands<ReturnType> {
6339
- transcript: {
6340
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
6341
- };
6342
- }
6343
- }
6344
-
6345
-
6346
6356
  declare module "gridstack" {
6347
6357
  interface GridStackWidget {
6348
6358
  id?: string;
@@ -6368,8 +6378,30 @@ declare module "gridstack" {
6368
6378
  }
6369
6379
 
6370
6380
 
6371
- declare namespace Calendar {
6372
- var displayName: string;
6381
+ declare module "@tiptap/core" {
6382
+ interface Commands<ReturnType> {
6383
+ aiBlock: {
6384
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
6385
+ };
6386
+ }
6387
+ }
6388
+
6389
+
6390
+ declare module "@tiptap/core" {
6391
+ interface Commands<ReturnType> {
6392
+ liveCompanion: {
6393
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
6394
+ };
6395
+ }
6396
+ }
6397
+
6398
+
6399
+ declare module "@tiptap/core" {
6400
+ interface Commands<ReturnType> {
6401
+ transcript: {
6402
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
6403
+ };
6404
+ }
6373
6405
  }
6374
6406
 
6375
6407
 
@@ -6380,3 +6412,8 @@ declare module "@tiptap/core" {
6380
6412
  };
6381
6413
  }
6382
6414
  }
6415
+
6416
+
6417
+ declare namespace Calendar {
6418
+ var displayName: string;
6419
+ }