@factorialco/f0-react 1.267.0 → 1.268.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.
@@ -4217,7 +4217,11 @@ declare interface PrimaryActionButton extends PrimaryAction {
4217
4217
  onClick: () => void;
4218
4218
  }
4219
4219
 
4220
- export declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "onClick" | "label" | "icon">;
4220
+ export declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "label" | "icon"> & {
4221
+ loading?: boolean;
4222
+ onClick?: () => void | Promise<void>;
4223
+ disabled?: boolean;
4224
+ };
4221
4225
 
4222
4226
  /**
4223
4227
  * Defines the structure and configuration of the primary action that can be performed on a collection.
@@ -4580,9 +4584,12 @@ export declare type SecondaryActionGroup = {
4580
4584
  * Defines the structure and configuration of secondary actions that can be performed on a collection.
4581
4585
  * @returns An array of actions
4582
4586
  */
4583
- export declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical" | "onClick"> & {
4587
+ export declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical"> & {
4584
4588
  enabled?: boolean;
4585
4589
  hideLabelWhenExpanded?: boolean;
4590
+ loading?: boolean;
4591
+ disabled?: boolean;
4592
+ onClick?: () => void | Promise<void>;
4586
4593
  };
4587
4594
 
4588
4595
  export declare type SecondaryActionsDefinition = {
@@ -5719,8 +5726,8 @@ declare module "@tiptap/core" {
5719
5726
 
5720
5727
  declare module "@tiptap/core" {
5721
5728
  interface Commands<ReturnType> {
5722
- liveCompanion: {
5723
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5729
+ transcript: {
5730
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
5724
5731
  };
5725
5732
  }
5726
5733
  }
@@ -5728,18 +5735,13 @@ declare module "@tiptap/core" {
5728
5735
 
5729
5736
  declare module "@tiptap/core" {
5730
5737
  interface Commands<ReturnType> {
5731
- transcript: {
5732
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
5738
+ liveCompanion: {
5739
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5733
5740
  };
5734
5741
  }
5735
5742
  }
5736
5743
 
5737
5744
 
5738
- declare namespace Calendar {
5739
- var displayName: string;
5740
- }
5741
-
5742
-
5743
5745
  declare module "@tiptap/core" {
5744
5746
  interface Commands<ReturnType> {
5745
5747
  moodTracker: {
@@ -5747,3 +5749,8 @@ declare module "@tiptap/core" {
5747
5749
  };
5748
5750
  }
5749
5751
  }
5752
+
5753
+
5754
+ declare namespace Calendar {
5755
+ var displayName: string;
5756
+ }
@@ -27330,7 +27330,9 @@ const hU = (t) => Array.isArray(t) ? t.every((e) => uU(e)) ? t : [{
27330
27330
  onClick: i[0].onClick,
27331
27331
  icon: i[0].icon,
27332
27332
  variant: "default",
27333
- label: i[0].label
27333
+ label: i[0].label,
27334
+ loading: i[0].loading,
27335
+ disabled: i[0].disabled
27334
27336
  }) : i.length > 1 && d(Eo, {
27335
27337
  size: "md",
27336
27338
  items: i.map((l, c) => ({
@@ -27348,7 +27350,9 @@ const hU = (t) => Array.isArray(t) ? t.every((e) => uU(e)) ? t : [{
27348
27350
  icon: l.icon,
27349
27351
  variant: "outline",
27350
27352
  hideLabel: l.hideLabelWhenExpanded,
27351
- label: l.label
27353
+ label: l.label,
27354
+ disabled: l.disabled,
27355
+ loading: l.loading
27352
27356
  }, l.label)), o.length > 0 && d(mn, {
27353
27357
  items: o,
27354
27358
  align: "end",
package/dist/f0.d.ts CHANGED
@@ -2925,7 +2925,11 @@ declare type PrevNextDateNavigation = {
2925
2925
  next: DateRange | false;
2926
2926
  };
2927
2927
 
2928
- declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "onClick" | "label" | "icon">;
2928
+ declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "label" | "icon"> & {
2929
+ loading?: boolean;
2930
+ onClick?: () => void | Promise<void>;
2931
+ disabled?: boolean;
2932
+ };
2929
2933
 
2930
2934
  /**
2931
2935
  * Defines the structure and configuration of the primary action that can be performed on a collection.
@@ -3180,9 +3184,12 @@ declare type SecondaryActionGroup = {
3180
3184
  * Defines the structure and configuration of secondary actions that can be performed on a collection.
3181
3185
  * @returns An array of actions
3182
3186
  */
3183
- declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical" | "onClick"> & {
3187
+ declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical"> & {
3184
3188
  enabled?: boolean;
3185
3189
  hideLabelWhenExpanded?: boolean;
3190
+ loading?: boolean;
3191
+ disabled?: boolean;
3192
+ onClick?: () => void | Promise<void>;
3186
3193
  };
3187
3194
 
3188
3195
  declare type SecondaryActionsDefinition = {
@@ -3963,8 +3970,8 @@ declare module "@tiptap/core" {
3963
3970
 
3964
3971
  declare module "@tiptap/core" {
3965
3972
  interface Commands<ReturnType> {
3966
- liveCompanion: {
3967
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3973
+ transcript: {
3974
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
3968
3975
  };
3969
3976
  }
3970
3977
  }
@@ -3972,18 +3979,13 @@ declare module "@tiptap/core" {
3972
3979
 
3973
3980
  declare module "@tiptap/core" {
3974
3981
  interface Commands<ReturnType> {
3975
- transcript: {
3976
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
3982
+ liveCompanion: {
3983
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3977
3984
  };
3978
3985
  }
3979
3986
  }
3980
3987
 
3981
3988
 
3982
- declare namespace Calendar {
3983
- var displayName: string;
3984
- }
3985
-
3986
-
3987
3989
  declare module "@tiptap/core" {
3988
3990
  interface Commands<ReturnType> {
3989
3991
  moodTracker: {
@@ -3991,3 +3993,8 @@ declare module "@tiptap/core" {
3991
3993
  };
3992
3994
  }
3993
3995
  }
3996
+
3997
+
3998
+ declare namespace Calendar {
3999
+ var displayName: string;
4000
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.267.0",
3
+ "version": "1.268.0",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,