@arbidocs/react 0.3.106 → 0.3.107

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/index.d.cts CHANGED
@@ -599,8 +599,9 @@ declare function useAiTask(): {
599
599
  type: "arbi.artifact";
600
600
  doc_ext_id: string;
601
601
  title: string;
602
- mode: "markdown" | "html" | "text";
602
+ mode: "markdown" | "html" | "text" | "image";
603
603
  content: string;
604
+ file_type: string;
604
605
  is_complete: boolean;
605
606
  version: number;
606
607
  message_ext_id?: string | null;
package/dist/index.d.ts CHANGED
@@ -599,8 +599,9 @@ declare function useAiTask(): {
599
599
  type: "arbi.artifact";
600
600
  doc_ext_id: string;
601
601
  title: string;
602
- mode: "markdown" | "html" | "text";
602
+ mode: "markdown" | "html" | "text" | "image";
603
603
  content: string;
604
+ file_type: string;
604
605
  is_complete: boolean;
605
606
  version: number;
606
607
  message_ext_id?: string | null;
package/dist/index.js CHANGED
@@ -1692,6 +1692,9 @@ function textToArtifact(title, content, opts) {
1692
1692
  title,
1693
1693
  mode: opts?.mode ?? "markdown",
1694
1694
  content,
1695
+ // Content-backed (markdown/text/html) artifacts carry no blob; file_type is
1696
+ // required on ArtifactEvent and defaults to "" for non-image artifacts.
1697
+ file_type: "",
1695
1698
  is_complete: opts?.isComplete ?? true,
1696
1699
  version: opts?.version ?? 1,
1697
1700
  message_ext_id: null,