@epam/ai-dial-attachment-canvas 1.2.0-dev.20 → 1.2.0-dev.207
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/{LazyContentBoundary-CRXN6PG3.js → LazyContentBoundary-tNE1ExbI.js} +2 -1
- package/{PdfContent-D71LPAe3.js → PdfContent-BoAtghsO.js} +1 -1
- package/{attachment-canvas-nvhW3tKV.js → attachment-canvas-BgwyzrRC.js} +2 -2
- package/components/AttachmentCanvas/AttachmentCanvas.d.ts.map +1 -1
- package/components/AttachmentCanvasBody/AttachmentCanvasBody.d.ts.map +1 -1
- package/components/AttachmentCanvasContainer/AttachmentCanvasContainer.d.ts +5 -1
- package/components/AttachmentCanvasContainer/AttachmentCanvasContainer.d.ts.map +1 -1
- package/components/InlineGroupedVisualizer/InlineGroupedVisualizer.d.ts +40 -0
- package/components/InlineGroupedVisualizer/InlineGroupedVisualizer.d.ts.map +1 -0
- package/components/McpAppCanvasRenderer/McpAppCanvasRenderer.d.ts +3 -0
- package/components/McpAppCanvasRenderer/McpAppCanvasRenderer.d.ts.map +1 -1
- package/components/OoxmlContent/OoxmlContent.d.ts.map +1 -1
- package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts +5 -3
- package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +11 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/hooks/useMcpAppBridge/useMcpAppBridge.d.ts.map +1 -1
- package/index.css +2 -1
- package/index.d.ts +6 -2
- package/index.d.ts.map +1 -1
- package/index.js +544 -424
- package/models/attachment-canvas.d.ts +55 -12
- package/models/attachment-canvas.d.ts.map +1 -1
- package/{ooxml-highlight-surfaces-CaMjx8u-.js → ooxml-highlight-surfaces-BzgOKpBV.js} +182 -74
- package/package.json +5 -5
- package/types/attachment-canvas.d.ts +5 -0
- package/types/attachment-canvas.d.ts.map +1 -1
- package/utils/download.d.ts.map +1 -1
- package/utils/ooxml-highlight-surfaces.d.ts.map +1 -1
- package/utils/ooxml-table-row-highlight.d.ts +8 -0
- package/utils/ooxml-table-row-highlight.d.ts.map +1 -0
- package/utils/visualizer.d.ts +29 -1
- package/utils/visualizer.d.ts.map +1 -1
package/utils/visualizer.d.ts
CHANGED
|
@@ -1,8 +1,36 @@
|
|
|
1
|
-
import { CustomVisualizer } from '@epam/ai-dial-chat-shared';
|
|
1
|
+
import { ApplicationVisualizer, ApplicationVisualizerRegistry, CustomVisualizer, DisplayAttachment } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
/**
|
|
3
3
|
* Returns the first `CustomVisualizer` registry entry whose `contentType` list
|
|
4
4
|
* (comma-separated, case-insensitive) includes `mimeType`, or `undefined` if
|
|
5
5
|
* none match. First-match-wins when multiple entries cover the same MIME type.
|
|
6
6
|
*/
|
|
7
7
|
export declare const findVisualizerForMime: (mimeType: string, visualizers: CustomVisualizer[]) => CustomVisualizer | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the `ApplicationVisualizer` registered for `applicationId`, or
|
|
10
|
+
* `undefined` when the id is absent, empty, or not a key of the registry.
|
|
11
|
+
* Keys are compared by exact string equality — deployment ids are opaque and
|
|
12
|
+
* are never trimmed or case-folded.
|
|
13
|
+
*/
|
|
14
|
+
export declare const findVisualizerForApplication: (applicationId: string | undefined, visualizers: ApplicationVisualizerRegistry) => ApplicationVisualizer | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the canvas-selection key identifying a message's grouped visualizer,
|
|
17
|
+
* so the host can tell whether that visualizer is the one currently open in
|
|
18
|
+
* the canvas and replace its inline frame with a placeholder.
|
|
19
|
+
*/
|
|
20
|
+
export declare const groupedVisualizerCanvasKey: (messageIndex: number) => string;
|
|
21
|
+
/** Attachments split by whether an `ApplicationVisualizer` entry claims them. */
|
|
22
|
+
export interface ApplicationVisualizerPartition {
|
|
23
|
+
/** Attachments the entry claims, to be sent as one grouped payload. In the input's order. */
|
|
24
|
+
claimed: DisplayAttachment[];
|
|
25
|
+
/** Attachments the entry does not claim, to be rendered as ordinary tiles. In the input's order. */
|
|
26
|
+
unclaimed: DisplayAttachment[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Splits `attachments` into the ones `visualizer` claims and the ones it does
|
|
30
|
+
* not. An entry with a `contentType` claims the attachments whose own
|
|
31
|
+
* `contentType` appears in its comma-separated list (compared
|
|
32
|
+
* case-insensitively); an entry without one claims every attachment that
|
|
33
|
+
* carries a URL. Both sides keep the input order.
|
|
34
|
+
*/
|
|
35
|
+
export declare const partitionAttachmentsForApplicationVisualizer: (attachments: DisplayAttachment[], visualizer: ApplicationVisualizer) => ApplicationVisualizerPartition;
|
|
8
36
|
//# sourceMappingURL=visualizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualizer.d.ts","sourceRoot":"","sources":["../../src/utils/visualizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"visualizer.d.ts","sourceRoot":"","sources":["../../src/utils/visualizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,MAAM,EAChB,aAAa,gBAAgB,EAAE,KAC9B,gBAAgB,GAAG,SASrB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GACvC,eAAe,MAAM,GAAG,SAAS,EACjC,aAAa,6BAA6B,KACzC,qBAAqB,GAAG,SAO1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,cAAc,MAAM,KAAG,MAC5B,CAAC;AAEvC,iFAAiF;AACjF,MAAM,WAAW,8BAA8B;IAC7C,6FAA6F;IAC7F,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,oGAAoG;IACpG,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAChC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,4CAA4C,GACvD,aAAa,iBAAiB,EAAE,EAChC,YAAY,qBAAqB,KAChC,8BA2BF,CAAC"}
|