@epam/ai-dial-attachment-canvas 1.1.0-dev.75 → 1.1.0-dev.78

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.
@@ -10,10 +10,12 @@ export interface AttachmentCanvasContextValue {
10
10
  content: AttachmentCanvasContent;
11
11
  /** File name shown in the canvas header. */
12
12
  fileName: string | undefined;
13
+ /** ID of the attachment currently displayed in the canvas, if any. */
14
+ attachmentId: string | undefined;
13
15
  /** Open the canvas immediately in a loading state before content has resolved. */
14
- openCanvasLoading: (fileName?: string) => void;
16
+ openCanvasLoading: (fileName?: string, attachmentId?: string) => void;
15
17
  /** Open the canvas with the given content and optional file name. */
16
- openCanvas: (content: AttachmentCanvasContent, fileName?: string) => void;
18
+ openCanvas: (content: AttachmentCanvasContent, fileName?: string, attachmentId?: string) => void;
17
19
  /** Close the canvas. */
18
20
  closeCanvas: () => void;
19
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentCanvasContext.d.ts","sourceRoot":"","sources":["../../src/context/AttachmentCanvasContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AA2B3E,sDAAsD;AACtD,MAAM,WAAW,4BAA4B;IAC3C,kDAAkD;IAClD,MAAM,EAAE,OAAO,CAAC;IAChB,uFAAuF;IACvF,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,EAAE,uBAAuB,CAAC;IACjC,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,kFAAkF;IAClF,iBAAiB,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,qEAAqE;IACrE,UAAU,EAAE,CAAC,OAAO,EAAE,uBAAuB,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,wBAAwB;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAOD,2DAA2D;AAC3D,eAAO,MAAM,wBAAwB,GAAI,eAEtC;IACD,QAAQ,EAAE,SAAS,CAAC;CACrB,4CAiEA,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB,QAAO,4BAQtC,CAAC"}
1
+ {"version":3,"file":"AttachmentCanvasContext.d.ts","sourceRoot":"","sources":["../../src/context/AttachmentCanvasContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AA2B3E,sDAAsD;AACtD,MAAM,WAAW,4BAA4B;IAC3C,kDAAkD;IAClD,MAAM,EAAE,OAAO,CAAC;IAChB,uFAAuF;IACvF,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,EAAE,uBAAuB,CAAC;IACjC,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,sEAAsE;IACtE,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,kFAAkF;IAClF,iBAAiB,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE,qEAAqE;IACrE,UAAU,EAAE,CACV,OAAO,EAAE,uBAAuB,EAChC,QAAQ,CAAC,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM,KAClB,IAAI,CAAC;IACV,wBAAwB;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAOD,2DAA2D;AAC3D,eAAO,MAAM,wBAAwB,GAAI,eAEtC;IACD,QAAQ,EAAE,SAAS,CAAC;CACrB,4CAgFA,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB,QAAO,4BAQtC,CAAC"}
package/index.js CHANGED
@@ -17396,12 +17396,12 @@ var Oo = ho.map((e) => ({
17396
17396
  }, Uo = k(void 0);
17397
17397
  Uo.displayName = "AttachmentCanvasContext";
17398
17398
  var Wo = ({ children: e }) => {
17399
- let [t, n] = N(!1), [r, i] = N(!1), [a, o] = N(Vo), [s, c] = N(void 0), l = A((e) => {
17400
- c(e), i(!0), n(!0);
17401
- }, []), u = A((e, t) => {
17402
- o(e), c(t), i(!1), n(!0);
17403
- }, []), d = A(() => {
17404
- o(Vo), n(!1), i(!1);
17399
+ let [t, n] = N(!1), [r, i] = N(!1), [a, o] = N(Vo), [s, c] = N(void 0), [l, u] = N(void 0), d = A((e, t) => {
17400
+ c(e), u(t), i(!0), n(!0);
17401
+ }, []), f = A((e, t, r) => {
17402
+ o(e), c(t), u(r), i(!1), n(!0);
17403
+ }, []), p = A(() => {
17404
+ o(Vo), n(!1), i(!1), u(void 0);
17405
17405
  }, []);
17406
17406
  return j(() => () => {
17407
17407
  let e = Ho(a);
@@ -17412,17 +17412,19 @@ var Wo = ({ children: e }) => {
17412
17412
  isLoading: r,
17413
17413
  content: a,
17414
17414
  fileName: s,
17415
- openCanvasLoading: l,
17416
- openCanvas: u,
17417
- closeCanvas: d
17415
+ attachmentId: l,
17416
+ openCanvasLoading: d,
17417
+ openCanvas: f,
17418
+ closeCanvas: p
17418
17419
  }), [
17419
17420
  t,
17420
17421
  r,
17421
17422
  a,
17422
17423
  s,
17423
17424
  l,
17424
- u,
17425
- d
17425
+ d,
17426
+ f,
17427
+ p
17426
17428
  ]),
17427
17429
  children: e
17428
17430
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-attachment-canvas",
3
3
  "description": "Canvas viewer for rendering attachment content — images, PDFs, JSON, markdown, and plain text",
4
- "version": "1.1.0-dev.75",
4
+ "version": "1.1.0-dev.78",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,11 +17,11 @@
17
17
  }
18
18
  },
19
19
  "peerDependencies": {
20
- "@epam/ai-dial-chat-shared": "1.1.0-dev.75",
20
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.78",
21
21
  "@epam/ai-dial-shared": "0.48.0",
22
- "@epam/ai-dial-sidebar": "1.1.0-dev.75",
22
+ "@epam/ai-dial-sidebar": "1.1.0-dev.78",
23
23
  "@epam/ai-dial-visualizer-connector": "0.48.0",
24
- "@epam/ai-dial-ui-kit": "^0.13.0-dev.23",
24
+ "@epam/ai-dial-ui-kit": "^0.13.0-dev.25",
25
25
  "@epam/pdf-highlighter-kit": ">=0.0.14",
26
26
  "@tabler/icons-react": "^3.44.0",
27
27
  "react": "^19.0.0",