@factorialco/f0-react 3.0.1 → 3.1.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.
@@ -704,7 +704,7 @@ export declare const defaultTranslations: {
704
704
  readonly blocks: "Blocks";
705
705
  };
706
706
  readonly ai: {
707
- readonly enhanceButtonLabel: "Enhance";
707
+ readonly enhanceButtonLabel: "Generate";
708
708
  readonly loadingEnhanceLabel: "Loading...";
709
709
  readonly defaultError: "An error occurred while loading";
710
710
  readonly closeErrorButtonLabel: "Continue editing";
@@ -876,9 +876,9 @@ declare namespace Calendar {
876
876
 
877
877
  declare module "@tiptap/core" {
878
878
  interface Commands<ReturnType> {
879
- enhanceHighlight: {
880
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
881
- clearEnhanceHighlight: () => ReturnType;
879
+ aiBlock: {
880
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
881
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
882
882
  };
883
883
  }
884
884
  }
@@ -886,9 +886,11 @@ declare module "@tiptap/core" {
886
886
 
887
887
  declare module "@tiptap/core" {
888
888
  interface Commands<ReturnType> {
889
- aiBlock: {
890
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
891
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
889
+ enhanceHighlight: {
890
+ setEnhanceHighlight: (from: number, to: number, options?: {
891
+ placeholder?: string;
892
+ }) => ReturnType;
893
+ clearEnhanceHighlight: () => ReturnType;
892
894
  };
893
895
  }
894
896
  }
@@ -704,7 +704,7 @@ const e = {
704
704
  blocks: "Blocks"
705
705
  },
706
706
  ai: {
707
- enhanceButtonLabel: "Enhance",
707
+ enhanceButtonLabel: "Generate",
708
708
  loadingEnhanceLabel: "Loading...",
709
709
  defaultError: "An error occurred while loading",
710
710
  closeErrorButtonLabel: "Continue editing",