@epam/ai-dial-attachment-canvas 1.2.0-dev.3 → 1.2.0-dev.303

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.
Files changed (66) hide show
  1. package/{LazyContentBoundary-CRXN6PG3.js → LazyContentBoundary-tNE1ExbI.js} +2 -1
  2. package/{PdfContent-D71LPAe3.js → PdfContent-BoAtghsO.js} +1 -1
  3. package/PdfContent.css +1 -1
  4. package/{attachment-canvas-nvhW3tKV.js → attachment-canvas-BgwyzrRC.js} +2 -2
  5. package/components/AttachmentCanvas/AttachmentCanvas.d.ts.map +1 -1
  6. package/components/AttachmentCanvasBody/AttachmentCanvasBody.d.ts.map +1 -1
  7. package/components/AttachmentCanvasContainer/AttachmentCanvasContainer.d.ts +7 -1
  8. package/components/AttachmentCanvasContainer/AttachmentCanvasContainer.d.ts.map +1 -1
  9. package/components/CodeContent/CodeContent.d.ts.map +1 -1
  10. package/components/HtmlContent/HtmlContent.d.ts.map +1 -1
  11. package/components/InlineGroupedVisualizer/InlineGroupedVisualizer.d.ts +42 -0
  12. package/components/InlineGroupedVisualizer/InlineGroupedVisualizer.d.ts.map +1 -0
  13. package/components/McpAppCanvasRenderer/McpAppCanvasRenderer.d.ts +3 -0
  14. package/components/McpAppCanvasRenderer/McpAppCanvasRenderer.d.ts.map +1 -1
  15. package/components/OoxmlContent/OoxmlContent.d.ts.map +1 -1
  16. package/components/PdfContent/PdfContent.d.ts.map +1 -1
  17. package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts +7 -3
  18. package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts.map +1 -1
  19. package/constants/html-preview.d.ts +9 -0
  20. package/constants/html-preview.d.ts.map +1 -0
  21. package/constants/public-class-names.d.ts +4 -0
  22. package/constants/public-class-names.d.ts.map +1 -0
  23. package/context/AttachmentCanvasContext.d.ts.map +1 -1
  24. package/hooks/useMcpAppBridge/useMcpAppBridge.d.ts.map +1 -1
  25. package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts +14 -1
  26. package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts.map +1 -1
  27. package/index.css +2 -1
  28. package/index.d.ts +8 -3
  29. package/index.d.ts.map +1 -1
  30. package/index.js +819 -610
  31. package/models/attachment-canvas.d.ts +79 -16
  32. package/models/attachment-canvas.d.ts.map +1 -1
  33. package/{ooxml-highlight-surfaces-CaMjx8u-.js → ooxml-highlight-surfaces-BzgOKpBV.js} +182 -74
  34. package/package.json +6 -6
  35. package/types/attachment-canvas.d.ts +6 -1
  36. package/types/attachment-canvas.d.ts.map +1 -1
  37. package/utils/content.d.ts +16 -2
  38. package/utils/content.d.ts.map +1 -1
  39. package/utils/download.d.ts.map +1 -1
  40. package/utils/ooxml-highlight-surfaces.d.ts.map +1 -1
  41. package/utils/ooxml-table-row-highlight.d.ts +8 -0
  42. package/utils/ooxml-table-row-highlight.d.ts.map +1 -0
  43. package/utils/visualizer.d.ts +35 -1
  44. package/utils/visualizer.d.ts.map +1 -1
  45. package/utils/vite-external-matcher.d.ts +5 -5
  46. package/utils/vite-external-matcher.d.ts.map +1 -1
  47. package/bounded-raw-part-cache-Cg1BsSZQ-DN8p45IK.js +0 -37900
  48. package/chart-ex-DsESBs97.js +0 -1009
  49. package/comment-occurrence-C8Y2uoVr-C1cxz2TU.js +0 -6
  50. package/comment-ui-runtime-BfE7MJZn-DhQ_eg15.js +0 -112
  51. package/comment-ui-runtime-BsK8pmUT-EgWiymew.js +0 -2
  52. package/comment-ui-runtime-DcJOYlw--B15auUq-.js +0 -170
  53. package/comments-Diid5ujN-BdQhRNjI.js +0 -282
  54. package/delimited-text-worker-host-BVY-Ecni-AimUmSn0.js +0 -25
  55. package/docx-B-VcIRoc.js +0 -29870
  56. package/line-distribute-Dtudnqhs--BYZNgzX.js +0 -1237
  57. package/line-metrics-B60C86uh-DfQUk7X1.js +0 -60
  58. package/pptx-CnoDB8Fv.js +0 -9211
  59. package/read-only-comment-decoration-Dz7eTQ4d-Cl3RKKH6.js +0 -94
  60. package/read-only-comment-margin-DkgzASAl-BbDxMI5E.js +0 -189
  61. package/render-worker-host-BfbnEChF-D2thMRGX.js +0 -7
  62. package/render-worker-host-DNL9dWRh-Bky38ZHE.js +0 -7
  63. package/render-worker-host-IkHrYOci-DbjyHK7U.js +0 -7
  64. package/renderer-module-contract-D91rkYHH-BtfSKxb4.js +0 -10063
  65. package/visible-index-BgiHEc1z-BOzE9X5U.js +0 -162
  66. package/xlsx-Dn0XSlTO.js +0 -8610
@@ -11,11 +11,12 @@ export declare enum AttachmentContentType {
11
11
  Code = "code",
12
12
  Html = "html",
13
13
  Visualizer = "visualizer",
14
+ GroupedVisualizer = "grouped_visualizer",
14
15
  McpApp = "mcp_app",
15
16
  Unsupported = "unsupported",
16
17
  Error = "error"
17
18
  }
18
- /** Supported document formats rendered by the bundled `@silurus/ooxml` runtime. */
19
+ /** Supported document formats rendered by the installed `@silurus/ooxml` runtime. */
19
20
  export declare enum OoxmlFileType {
20
21
  Docx = "docx",
21
22
  Xlsx = "xlsx",
@@ -28,6 +29,10 @@ export declare enum OoxmlHighlightKind {
28
29
  DocxTextRange = "docxTextRange",
29
30
  /** A character range inside a single PPTX shape on one slide. */
30
31
  PptxTextRange = "pptxTextRange",
32
+ /** A complete DOCX table row identified by its cell text. */
33
+ DocxTableRow = "docxTableRow",
34
+ /** A complete PPTX table row identified by its cell text on one slide. */
35
+ PptxTableRow = "pptxTableRow",
31
36
  /** One cell, or a contiguous same-row cell range, on a named XLSX sheet. */
32
37
  XlsxCellRange = "xlsxCellRange"
33
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/types/attachment-canvas.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;IACxB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,aAAa,mBAAmB;IAChC,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,MAAM,YAAY;IAClB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAED,mFAAmF;AACnF,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,iGAAiG;AACjG,oBAAY,kBAAkB;IAC5B,2FAA2F;IAC3F,aAAa,kBAAkB;IAC/B,iEAAiE;IACjE,aAAa,kBAAkB;IAC/B,4EAA4E;IAC5E,aAAa,kBAAkB;CAChC;AAED,iEAAiE;AACjE,oBAAY,mBAAmB;IAC7B,8EAA8E;IAC9E,UAAU,gBAAgB;IAC1B,wFAAwF;IACxF,SAAS,cAAc;CACxB;AAED;;;;;;;;GAQG;AACH,oBAAY,sBAAsB;IAChC,2EAA2E;IAC3E,SAAS,cAAc;IACvB,qHAAqH;IACrH,UAAU,eAAe;IACzB,kFAAkF;IAClF,UAAU,eAAe;CAC1B"}
1
+ {"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/types/attachment-canvas.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;IACxB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,aAAa,mBAAmB;IAChC,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,iBAAiB,uBAAuB;IACxC,MAAM,YAAY;IAClB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAED,qFAAqF;AACrF,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,iGAAiG;AACjG,oBAAY,kBAAkB;IAC5B,2FAA2F;IAC3F,aAAa,kBAAkB;IAC/B,iEAAiE;IACjE,aAAa,kBAAkB;IAC/B,6DAA6D;IAC7D,YAAY,iBAAiB;IAC7B,0EAA0E;IAC1E,YAAY,iBAAiB;IAC7B,4EAA4E;IAC5E,aAAa,kBAAkB;CAChC;AAED,iEAAiE;AACjE,oBAAY,mBAAmB;IAC7B,8EAA8E;IAC9E,UAAU,gBAAgB;IAC1B,wFAAwF;IACxF,SAAS,cAAc;CACxB;AAED;;;;;;;;GAQG;AACH,oBAAY,sBAAsB;IAChC,2EAA2E;IAC3E,SAAS,cAAc;IACvB,qHAAqH;IACrH,UAAU,eAAe;IACzB,kFAAkF;IAClF,UAAU,eAAe;CAC1B"}
@@ -1,6 +1,6 @@
1
- import { ErrorCanvasContent, UnsupportedCanvasContent } from '../models/attachment-canvas';
1
+ import { AttachmentCanvasContent, ErrorCanvasContent, UnsupportedCanvasContent } from '../models/attachment-canvas';
2
2
  import { OoxmlFileType } from '../types/attachment-canvas';
3
- /** Resolves a format supported by the bundled `@silurus/ooxml` renderer from a MIME type or file extension. */
3
+ /** Resolves a format supported by the installed `@silurus/ooxml` renderer from a MIME type or file extension. */
4
4
  export declare const getOoxmlFileType: (name: string, mimeType?: string) => OoxmlFileType | undefined;
5
5
  /** Returns true when a file can be rendered by the built-in `@silurus/ooxml` viewer. */
6
6
  export declare const isOoxmlPreviewable: (name: string, mimeType?: string) => boolean;
@@ -18,4 +18,18 @@ export declare const createUnsupportedCanvasContent: (url?: string) => Unsupport
18
18
  export declare const createLoadErrorCanvasContent: (url?: string) => ErrorCanvasContent;
19
19
  /** Creates a content payload for a file the current user is not permitted to access (HTTP 403). */
20
20
  export declare const createForbiddenCanvasContent: (url?: string) => ErrorCanvasContent;
21
+ /**
22
+ * Returns `content.url` when it is an object URL created by
23
+ * `URL.createObjectURL` (i.e. it should be revoked once no longer displayed),
24
+ * or `undefined` otherwise (a remote/data URL, or a content type with no
25
+ * `url` at all).
26
+ */
27
+ export declare const getRevocableObjectUrl: (content: AttachmentCanvasContent) => string | undefined;
28
+ /**
29
+ * Revokes `content`'s object URL, if it has one. Call this for content that
30
+ * was resolved but never displayed — the canvas revokes only what it actually
31
+ * held, so a payload discarded before it reached the canvas would otherwise
32
+ * leak its blob for the lifetime of the page.
33
+ */
34
+ export declare const releaseCanvasContent: (content: AttachmentCanvasContent) => void;
21
35
  //# sourceMappingURL=content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/utils/content.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,aAAa,EACd,MAAM,4BAA4B,CAAC;AAuBpC,+GAA+G;AAC/G,eAAO,MAAM,gBAAgB,GAC3B,MAAM,MAAM,EACZ,WAAW,MAAM,KAChB,aAAa,GAAG,SAUlB,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,WAAW,MAAM,KAAG,OAC3B,CAAC;AAE3C,uJAAuJ;AACvJ,eAAO,MAAM,gBAAgB,GAC3B,MAAM,MAAM,EACZ,WAAW,MAAM,KAChB,MAAM,GAAG,SAGX,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,OAIhD,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,OAIhD,CAAC;AAoDF,+JAA+J;AAC/J,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAC/B,CAAC;AAE7B,qDAAqD;AACrD,eAAO,MAAM,8BAA8B,GACzC,MAAM,MAAM,KACX,wBAGD,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,GACvC,MAAM,MAAM,KACX,kBAID,CAAC;AAEH,mGAAmG;AACnG,eAAO,M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"}
@@ -1 +1 @@
1
- {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/utils/download.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAoB3E,kEAAkE;AAClE,eAAO,MAAM,cAAc,GAAI,SAAS,uBAAuB,KAAG,OA6BjE,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,IAAI,CAIhE,CAAC;AAuCF,gEAAgE;AAChE,eAAO,MAAM,yBAAyB,GACpC,SAAS,uBAAuB,EAChC,WAAW,MAAM,KAChB,IA8DF,CAAC"}
1
+ {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/utils/download.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAoB3E,kEAAkE;AAClE,eAAO,MAAM,cAAc,GAAI,SAAS,uBAAuB,KAAG,OA8BjE,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,IAAI,CAIhE,CAAC;AAuCF,gEAAgE;AAChE,eAAO,MAAM,yBAAyB,GACpC,SAAS,uBAAuB,EAChC,WAAW,MAAM,KAChB,IA8DF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ooxml-highlight-surfaces.d.ts","sourceRoot":"","sources":["../../src/utils/ooxml-highlight-surfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAEV,cAAc,EACd,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,sBAAsB,EACvB,MAAM,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AAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,uCAAuC;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,kEAAkE;IAClE,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GACtB,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAC9B,oFAAoF;IACpF,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,yEAAyE;AACzE,UAAU,mBAAmB;IAC3B,QAAQ,IAAI,MAAM,CAAC;IACnB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,0EAA0E;AAC1E,eAAO,MAAM,0BAA0B,GACrC,WAAW,WAAW,EACtB,cAAc,qBAAqB,EACnC,QAAQ,mBAAmB,EAC3B,YAAY,MAAM,OAAO,KACxB,qBA8PF,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,0BAA0B,GACrC,WAAW,WAAW,EACtB,cAAc,gBAAgB,EAC9B,QAAQ;IAAE,QAAQ,IAAI,MAAM,CAAC;IAAC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EAClE,YAAY,MAAM,OAAO,KACxB,qBAwEF,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,0BAA0B,GACrC,WAAW,WAAW,EACtB,QAAQ,UAAU,EAClB,YAAY,MAAM,OAAO,KACxB,qBA0DD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { PptxTextRunInfo } from '@silurus/ooxml/pptx';
2
+ import { OoxmlDocxTableRowLocation, OoxmlPptxTableRowLocation } from '../models/attachment-canvas';
3
+ import { OoxmlDocxPageRects, OoxmlDocxPageRuns, OoxmlHighlightRect } from './ooxml-highlight-geometry';
4
+ /** Resolves a whole DOCX table row to scale-independent text rectangles. */
5
+ export declare const resolveDocxTableRowRects: (location: OoxmlDocxTableRowLocation, pages: readonly OoxmlDocxPageRuns[]) => OoxmlDocxPageRects[];
6
+ /** Resolves a whole table row from the runs of its specified PPTX slide. */
7
+ export declare const resolvePptxTableRowRects: (location: OoxmlPptxTableRowLocation, runs: readonly PptxTextRunInfo[]) => OoxmlHighlightRect[];
8
+ //# sourceMappingURL=ooxml-table-row-highlight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ooxml-table-row-highlight.d.ts","sourceRoot":"","sources":["../../src/utils/ooxml-table-row-highlight.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAGxB,MAAM,4BAA4B,CAAC;AAkEpC,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB,GACnC,UAAU,yBAAyB,EACnC,OAAO,SAAS,iBAAiB,EAAE,KAClC,kBAAkB,EAuEpB,CAAC;AAcF,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB,GACnC,UAAU,yBAAyB,EACnC,MAAM,SAAS,eAAe,EAAE,KAC/B,kBAAkB,EA4CpB,CAAC"}
@@ -1,8 +1,42 @@
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;
36
+ /**
37
+ * Returns the `message` string of a visualizer `SEND_MESSAGE` payload, or
38
+ * `undefined` when the payload is not an object with an own non-blank string
39
+ * `message`. The returned string is not trimmed.
40
+ */
41
+ export declare const getVisualizerMessageContent: (payload: unknown) => string | undefined;
8
42
  //# 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,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,MAAM,EAChB,aAAa,gBAAgB,EAAE,KAC9B,gBAAgB,GAAG,SASrB,CAAC"}
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;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GACtC,SAAS,OAAO,KACf,MAAM,GAAG,SAYX,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 EXTERNAL_PEER_NAMES: readonly ["react", "@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"];
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 peer package name, or is prefixed by
11
- * `<peerName>/` (a deep subpath of that peer), for any name in
12
- * {@link EXTERNAL_PEER_NAMES} — except when `id` ends in `.css`, since a
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 isExternalPeerImport: (id: string) => boolean;
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,mBAAmB,8YAgBtB,CAAC;AAEX;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAI,IAAI,MAAM,KAAG,OAKjD,CAAC"}
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"}