@epam/ai-dial-attachment-canvas 1.2.0-dev.3 → 1.2.0-dev.38
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/PdfContent.css +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.map +1 -1
- package/components/InlineGroupedVisualizer/InlineGroupedVisualizer.d.ts +36 -0
- package/components/InlineGroupedVisualizer/InlineGroupedVisualizer.d.ts.map +1 -0
- package/components/PdfContent/PdfContent.d.ts.map +1 -1
- package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts +5 -3
- package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts.map +1 -1
- package/context/AttachmentCanvasContext.d.ts.map +1 -1
- package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts +14 -1
- package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts.map +1 -1
- package/index.css +2 -1
- package/index.d.ts +6 -3
- package/index.d.ts.map +1 -1
- package/index.js +567 -496
- package/models/attachment-canvas.d.ts +41 -10
- 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 +3 -3
- package/types/attachment-canvas.d.ts +6 -1
- package/types/attachment-canvas.d.ts.map +1 -1
- package/utils/content.d.ts +16 -2
- package/utils/content.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/vite-external-matcher.d.ts +5 -5
- package/utils/vite-external-matcher.d.ts.map +1 -1
- package/bounded-raw-part-cache-Cg1BsSZQ-DN8p45IK.js +0 -37900
- package/chart-ex-DsESBs97.js +0 -1009
- package/comment-occurrence-C8Y2uoVr-C1cxz2TU.js +0 -6
- package/comment-ui-runtime-BfE7MJZn-DhQ_eg15.js +0 -112
- package/comment-ui-runtime-BsK8pmUT-EgWiymew.js +0 -2
- package/comment-ui-runtime-DcJOYlw--B15auUq-.js +0 -170
- package/comments-Diid5ujN-BdQhRNjI.js +0 -282
- package/delimited-text-worker-host-BVY-Ecni-AimUmSn0.js +0 -25
- package/docx-B-VcIRoc.js +0 -29870
- package/line-distribute-Dtudnqhs--BYZNgzX.js +0 -1237
- package/line-metrics-B60C86uh-DfQUk7X1.js +0 -60
- package/pptx-CnoDB8Fv.js +0 -9211
- package/read-only-comment-decoration-Dz7eTQ4d-Cl3RKKH6.js +0 -94
- package/read-only-comment-margin-DkgzASAl-BbDxMI5E.js +0 -189
- package/render-worker-host-BfbnEChF-D2thMRGX.js +0 -7
- package/render-worker-host-DNL9dWRh-Bky38ZHE.js +0 -7
- package/render-worker-host-IkHrYOci-DbjyHK7U.js +0 -7
- package/renderer-module-contract-D91rkYHH-BtfSKxb4.js +0 -10063
- package/visible-index-BgiHEc1z-BOzE9X5U.js +0 -162
- package/xlsx-Dn0XSlTO.js +0 -8610
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"}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* package), and either way the import stays external so consumers get one
|
|
6
6
|
* shared copy rather than a second one inlined here.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const EXTERNAL_PACKAGE_NAMES: readonly ["react", "@silurus/ooxml", "@epam/ai-dial-chat-shared", "@epam/ai-dial-shared", "@epam/ai-dial-sidebar", "@epam/ai-dial-ui-kit", "@epam/ai-dial-visualizer-connector", "@tabler/icons-react", "react-json-view-lite", "@epam/ai-dial-react-pdf-highlighter", "@epam/pdf-highlighter-kit", "react-syntax-highlighter", "@mcp-ui/client", "@modelcontextprotocol/sdk", "@modelcontextprotocol/ext-apps", "pdfjs-dist"];
|
|
9
9
|
/**
|
|
10
|
-
* Returns true when `id` is a bare
|
|
11
|
-
* `<
|
|
12
|
-
* {@link
|
|
10
|
+
* Returns true when `id` is a bare runtime package name, or is prefixed by
|
|
11
|
+
* `<packageName>/` (a deep subpath of that package), for any name in
|
|
12
|
+
* {@link EXTERNAL_PACKAGE_NAMES} — except when `id` ends in `.css`, since a
|
|
13
13
|
* vendor stylesheet subpath must stay locally resolved (via `resolve.alias`)
|
|
14
14
|
* so Vite can process and extract it, rather than being left as an
|
|
15
15
|
* unresolvable raw `import "…css"` statement in the output JS.
|
|
16
16
|
*/
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const isExternalPackageImport: (id: string) => boolean;
|
|
18
18
|
//# sourceMappingURL=vite-external-matcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-external-matcher.d.ts","sourceRoot":"","sources":["../../src/utils/vite-external-matcher.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"vite-external-matcher.d.ts","sourceRoot":"","sources":["../../src/utils/vite-external-matcher.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,gaAiBzB,CAAC;AAEX;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAAI,IAAI,MAAM,KAAG,OAKpD,CAAC"}
|