@factorialco/f0-react 2.28.0 → 2.28.1

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/f0.d.ts CHANGED
@@ -464,6 +464,13 @@ declare type AiChatDisclaimer = {
464
464
  text: string;
465
465
  link?: string;
466
466
  linkText?: string;
467
+ /**
468
+ * Optional click handler on the disclaimer text. When set, the text becomes
469
+ * keyboard-activatable (Enter / Space) and gets a subtle hover hint. Used by
470
+ * the host to wire easter eggs (e.g. the pong game) without coupling f0 to
471
+ * any specific behaviour.
472
+ */
473
+ onClick?: () => void;
467
474
  };
468
475
 
469
476
  /**
@@ -944,6 +951,7 @@ export declare const aiTranslations: {
944
951
  readonly attachFile: "Attach file";
945
952
  readonly removeFile: "Remove";
946
953
  readonly fileUploadError: "Upload failed";
954
+ readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
947
955
  readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
948
956
  readonly dropFilesHere: "Drop your files here";
949
957
  readonly reply: "Reply";
@@ -4418,6 +4426,7 @@ export declare const defaultTranslations: {
4418
4426
  readonly attachFile: "Attach file";
4419
4427
  readonly removeFile: "Remove";
4420
4428
  readonly fileUploadError: "Upload failed";
4429
+ readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
4421
4430
  readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
4422
4431
  readonly dropFilesHere: "Drop your files here";
4423
4432
  readonly reply: "Reply";
@@ -11152,6 +11161,16 @@ export declare interface LoadingStateProps {
11152
11161
  /** Margin tokens (spacing + auto for centering) */
11153
11162
  export declare type MarginToken = SpacingToken | "auto";
11154
11163
 
11164
+ export declare const markdownRenderers: MarkdownTagRenderers;
11165
+
11166
+ /**
11167
+ * Map of tag name → renderer component, consumed by the markdown rendering
11168
+ * layer (factorial / mock runtime pass these through to whatever markdown
11169
+ * renderer they pick). Kept as a plain `Record` so f0 stays decoupled from
11170
+ * any specific markdown library.
11171
+ */
11172
+ export declare type MarkdownTagRenderers = Record<string, ComponentType<any>>;
11173
+
11155
11174
  export declare type MaskOptions = {
11156
11175
  /**
11157
11176
  * The width of the Mask element.
@@ -15091,9 +15110,9 @@ declare module "gridstack" {
15091
15110
 
15092
15111
  declare module "@tiptap/core" {
15093
15112
  interface Commands<ReturnType> {
15094
- aiBlock: {
15095
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15096
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15113
+ enhanceHighlight: {
15114
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
15115
+ clearEnhanceHighlight: () => ReturnType;
15097
15116
  };
15098
15117
  }
15099
15118
  }
@@ -15101,9 +15120,9 @@ declare module "@tiptap/core" {
15101
15120
 
15102
15121
  declare module "@tiptap/core" {
15103
15122
  interface Commands<ReturnType> {
15104
- enhanceHighlight: {
15105
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
15106
- clearEnhanceHighlight: () => ReturnType;
15123
+ aiBlock: {
15124
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15125
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15107
15126
  };
15108
15127
  }
15109
15128
  }
@@ -15120,10 +15139,8 @@ declare module "@tiptap/core" {
15120
15139
 
15121
15140
  declare module "@tiptap/core" {
15122
15141
  interface Commands<ReturnType> {
15123
- videoEmbed: {
15124
- setVideoEmbed: (options: {
15125
- src: string;
15126
- }) => ReturnType;
15142
+ transcript: {
15143
+ insertTranscript: (data: TranscriptData) => ReturnType;
15127
15144
  };
15128
15145
  }
15129
15146
  }
@@ -15131,8 +15148,10 @@ declare module "@tiptap/core" {
15131
15148
 
15132
15149
  declare module "@tiptap/core" {
15133
15150
  interface Commands<ReturnType> {
15134
- transcript: {
15135
- insertTranscript: (data: TranscriptData) => ReturnType;
15151
+ videoEmbed: {
15152
+ setVideoEmbed: (options: {
15153
+ src: string;
15154
+ }) => ReturnType;
15136
15155
  };
15137
15156
  }
15138
15157
  }