@factorialco/f0-react 2.27.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";
@@ -1544,10 +1552,13 @@ export declare type BorderStyleToken = "solid" | "dashed" | "dotted" | "double"
1544
1552
  /** Border width tokens */
1545
1553
  export declare type BorderWidthToken = "none" | "default" | "thick";
1546
1554
 
1555
+ export declare type BoxShadowToken = "none" | "md" | "lg" | "xl";
1556
+
1547
1557
  declare type BoxVariantProps = VariantProps<typeof boxVariants>;
1548
1558
 
1549
1559
  declare const boxVariants: (props?: ({
1550
1560
  zIndex?: "0" | "auto" | "10" | "20" | "50" | "40" | "30" | undefined;
1561
+ boxShadow?: "none" | "lg" | "md" | "xl" | undefined;
1551
1562
  divider?: "x" | "y" | undefined;
1552
1563
  dividerColor?: "info" | "bold" | "default" | "secondary" | "critical" | "warning" | "positive" | "promote" | "selected" | "critical-bold" | "info-bold" | "warning-bold" | "positive-bold" | "selected-bold" | undefined;
1553
1564
  overflow?: "hidden" | "auto" | "scroll" | "visible" | undefined;
@@ -4415,6 +4426,7 @@ export declare const defaultTranslations: {
4415
4426
  readonly attachFile: "Attach file";
4416
4427
  readonly removeFile: "Remove";
4417
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.";
4418
4430
  readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
4419
4431
  readonly dropFilesHere: "Drop your files here";
4420
4432
  readonly reply: "Reply";
@@ -11149,6 +11161,16 @@ export declare interface LoadingStateProps {
11149
11161
  /** Margin tokens (spacing + auto for centering) */
11150
11162
  export declare type MarginToken = SpacingToken | "auto";
11151
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
+
11152
11174
  export declare type MaskOptions = {
11153
11175
  /**
11154
11176
  * The width of the Mask element.
@@ -15086,16 +15108,11 @@ declare module "gridstack" {
15086
15108
  }
15087
15109
 
15088
15110
 
15089
- declare namespace Calendar {
15090
- var displayName: string;
15091
- }
15092
-
15093
-
15094
15111
  declare module "@tiptap/core" {
15095
15112
  interface Commands<ReturnType> {
15096
- aiBlock: {
15097
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15098
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15113
+ enhanceHighlight: {
15114
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
15115
+ clearEnhanceHighlight: () => ReturnType;
15099
15116
  };
15100
15117
  }
15101
15118
  }
@@ -15103,9 +15120,9 @@ declare module "@tiptap/core" {
15103
15120
 
15104
15121
  declare module "@tiptap/core" {
15105
15122
  interface Commands<ReturnType> {
15106
- enhanceHighlight: {
15107
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
15108
- clearEnhanceHighlight: () => ReturnType;
15123
+ aiBlock: {
15124
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15125
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15109
15126
  };
15110
15127
  }
15111
15128
  }
@@ -15140,6 +15157,11 @@ declare module "@tiptap/core" {
15140
15157
  }
15141
15158
 
15142
15159
 
15160
+ declare namespace Calendar {
15161
+ var displayName: string;
15162
+ }
15163
+
15164
+
15143
15165
  declare namespace F0GraphNodeWrapperInner {
15144
15166
  var displayName: string;
15145
15167
  }