@epam/ai-dial-chat-hooks 1.1.0-dev.399 → 1.1.0-dev.402

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/file-manager.d.ts CHANGED
@@ -647,21 +647,22 @@ export declare const mimeTypesToFileAccept: (types?: string[]) => string | undef
647
647
 
648
648
  export declare const normalizeVirtualPath: (value: string) => string;
649
649
 
650
- /** Content payload for Office Open XML document attachments. */
650
+ /** Content payload for OOXML document and CSV spreadsheet attachments. */
651
651
  declare interface OoxmlCanvasContent {
652
652
  /** Discriminates the content type to select the correct renderer. */
653
653
  type: AttachmentContentType.Ooxml;
654
- /** Resolved download URL or object URL for the OOXML file. */
654
+ /** Resolved download URL or object URL for the source file. */
655
655
  url: string;
656
- /** The document format used to select the format-specific renderer. */
656
+ /** The document format used to select and configure the format-specific renderer. */
657
657
  format: OoxmlFileType;
658
658
  }
659
659
 
660
- /** Supported Office Open XML document formats. */
660
+ /** Supported document formats rendered by the bundled `@silurus/ooxml` runtime. */
661
661
  declare enum OoxmlFileType {
662
662
  Docx = 'docx',
663
663
  Xlsx = 'xlsx',
664
664
  Pptx = 'pptx',
665
+ Csv = 'csv',
665
666
  }
666
667
 
667
668
  /**
@@ -760,9 +761,10 @@ declare type ResolveDownloadUrl = (fileId: string) => string | undefined;
760
761
 
761
762
  /**
762
763
  * Returns the content type to trust for an external citation source: `contentType`
763
- * unchanged when it is already an image/audio/PDF/OOXML marker, otherwise the
764
- * type implied by `url`'s path extension (`MIMEType.PDF` for `.pdf`, the
765
- * canonical OOXML MIME for `.docx`/`.xlsx`/`.pptx`) when that extension is
764
+ * unchanged when it is already an image/audio/PDF/document-renderer marker,
765
+ * otherwise the type implied by `url`'s path extension (`MIMEType.PDF` for
766
+ * `.pdf`, the
767
+ * canonical MIME for `.docx`/`.xlsx`/`.pptx`/`.csv`) when that extension is
766
768
  * recognized, otherwise `contentType` unchanged.
767
769
  *
768
770
  * Web-search grounding APIs label every reference — PDFs and Office documents
@@ -799,7 +801,7 @@ export declare const resolveJsonCanvasContent: (attachment: DisplayAttachment, r
799
801
  /** Resolves a Markdown canvas content payload from a DisplayAttachment, or `null` if unavailable. */
800
802
  export declare const resolveMarkdownCanvasContent: (attachment: DisplayAttachment, resolvers: AttachmentCanvasUrlResolvers) => Promise<MarkdownCanvasContent | ErrorCanvasContent | null>;
801
803
 
802
- /** Resolves an OOXML canvas content payload from a DisplayAttachment, or `null` if unavailable. */
804
+ /** Resolves an OOXML or CSV renderer payload from a DisplayAttachment, or `null` if unavailable. */
803
805
  export declare const resolveOoxmlCanvasContent: (attachment: DisplayAttachment, resolvers: AttachmentCanvasUrlResolvers, format: OoxmlFileType) => Promise<OoxmlCanvasContent | ErrorCanvasContent | null>;
804
806
 
805
807
  /**
package/index.d.ts CHANGED
@@ -2210,21 +2210,22 @@ export declare enum OAuthResourceKind {
2210
2210
  OfflineCredentials = "offline-credentials"
2211
2211
  }
2212
2212
 
2213
- /** Content payload for Office Open XML document attachments. */
2213
+ /** Content payload for OOXML document and CSV spreadsheet attachments. */
2214
2214
  declare interface OoxmlCanvasContent {
2215
2215
  /** Discriminates the content type to select the correct renderer. */
2216
2216
  type: AttachmentContentType.Ooxml;
2217
- /** Resolved download URL or object URL for the OOXML file. */
2217
+ /** Resolved download URL or object URL for the source file. */
2218
2218
  url: string;
2219
- /** The document format used to select the format-specific renderer. */
2219
+ /** The document format used to select and configure the format-specific renderer. */
2220
2220
  format: OoxmlFileType;
2221
2221
  }
2222
2222
 
2223
- /** Supported Office Open XML document formats. */
2223
+ /** Supported document formats rendered by the bundled `@silurus/ooxml` runtime. */
2224
2224
  declare enum OoxmlFileType {
2225
2225
  Docx = 'docx',
2226
2226
  Xlsx = 'xlsx',
2227
2227
  Pptx = 'pptx',
2228
+ Csv = 'csv',
2228
2229
  }
2229
2230
 
2230
2231
  /**
@@ -2564,9 +2565,10 @@ export declare type ResolveDownloadUrl = (fileId: string) => string | undefined;
2564
2565
 
2565
2566
  /**
2566
2567
  * Returns the content type to trust for an external citation source: `contentType`
2567
- * unchanged when it is already an image/audio/PDF/OOXML marker, otherwise the
2568
- * type implied by `url`'s path extension (`MIMEType.PDF` for `.pdf`, the
2569
- * canonical OOXML MIME for `.docx`/`.xlsx`/`.pptx`) when that extension is
2568
+ * unchanged when it is already an image/audio/PDF/document-renderer marker,
2569
+ * otherwise the type implied by `url`'s path extension (`MIMEType.PDF` for
2570
+ * `.pdf`, the
2571
+ * canonical MIME for `.docx`/`.xlsx`/`.pptx`/`.csv`) when that extension is
2570
2572
  * recognized, otherwise `contentType` unchanged.
2571
2573
  *
2572
2574
  * Web-search grounding APIs label every reference — PDFs and Office documents
@@ -2614,7 +2616,7 @@ export declare const resolveMarkdownCanvasContent: (attachment: DisplayAttachmen
2614
2616
  /** Returns the MCP resource kind a catalog item's Connect endpoint belongs to, or `null` when the item exposes no MCP endpoint. */
2615
2617
  export declare const resolveMcpResourceKind: (type: CatalogEntityType, supportsMcp?: boolean) => McpResourceKind | null;
2616
2618
 
2617
- /** Resolves an OOXML canvas content payload from a DisplayAttachment, or `null` if unavailable. */
2619
+ /** Resolves an OOXML or CSV renderer payload from a DisplayAttachment, or `null` if unavailable. */
2618
2620
  export declare const resolveOoxmlCanvasContent: (attachment: DisplayAttachment, resolvers: AttachmentCanvasUrlResolvers, format: OoxmlFileType) => Promise<OoxmlCanvasContent | ErrorCanvasContent | null>;
2619
2621
 
2620
2622
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-hooks",
3
3
  "description": "Framework-level React hooks extracted from AI DIAL Chat for building custom chat interfaces",
4
- "version": "1.1.0-dev.399",
4
+ "version": "1.1.0-dev.402",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -87,20 +87,20 @@
87
87
  },
88
88
  "peerDependencies": {
89
89
  "react": "^19.2.6",
90
- "@epam/ai-dial-attachment-canvas": "1.1.0-dev.399",
91
- "@epam/ai-dial-attachment-input": "1.1.0-dev.399",
92
- "@epam/ai-dial-catalog": "1.1.0-dev.399",
93
- "@epam/ai-dial-chat-api-client": "1.1.0-dev.399",
94
- "@epam/ai-dial-chat-overlay": "1.1.0-dev.399",
95
- "@epam/ai-dial-chat-shared": "1.1.0-dev.399",
96
- "@epam/ai-dial-deployment-creation-form": "1.1.0-dev.399",
97
- "@epam/ai-dial-publish-panel": "1.1.0-dev.399",
98
- "@epam/ai-dial-quotations": "1.1.0-dev.399",
90
+ "@epam/ai-dial-attachment-canvas": "1.1.0-dev.402",
91
+ "@epam/ai-dial-attachment-input": "1.1.0-dev.402",
92
+ "@epam/ai-dial-catalog": "1.1.0-dev.402",
93
+ "@epam/ai-dial-chat-api-client": "1.1.0-dev.402",
94
+ "@epam/ai-dial-chat-overlay": "1.1.0-dev.402",
95
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.402",
96
+ "@epam/ai-dial-deployment-creation-form": "1.1.0-dev.402",
97
+ "@epam/ai-dial-publish-panel": "1.1.0-dev.402",
98
+ "@epam/ai-dial-quotations": "1.1.0-dev.402",
99
99
  "@epam/ai-dial-react-file-manager": "*",
100
- "@epam/ai-dial-scheduled-tasks": "1.1.0-dev.399",
101
- "@epam/ai-dial-share": "1.1.0-dev.399",
102
- "@epam/ai-dial-skill-editor": "1.1.0-dev.399",
103
- "@epam/ai-dial-source-panel": "1.1.0-dev.399",
100
+ "@epam/ai-dial-scheduled-tasks": "1.1.0-dev.402",
101
+ "@epam/ai-dial-share": "1.1.0-dev.402",
102
+ "@epam/ai-dial-skill-editor": "1.1.0-dev.402",
103
+ "@epam/ai-dial-source-panel": "1.1.0-dev.402",
104
104
  "@epam/ai-dial-ui-kit": "*",
105
105
  "@epam/pdf-highlighter-kit": ">=0.0.14"
106
106
  },