@epam/ai-dial-quotations 1.3.0-dev.124 → 1.3.0-dev.126

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 (2) hide show
  1. package/index.js +3 -7
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -220,11 +220,7 @@ var A = {
220
220
  g
221
221
  ]), T = b(() => {
222
222
  let t = e.annotations.length === 1 && !te(y);
223
- if ((o || s && t) && C) {
224
- C(y);
225
- return;
226
- }
227
- h.openPopup(g);
223
+ (o || s && t) && C ? C(y) : h.openPopup(g);
228
224
  }, [
229
225
  o,
230
226
  s,
@@ -367,10 +363,10 @@ var A = {
367
363
  let t = Z(e);
368
364
  return t == null ? [] : [t];
369
365
  }), r = Se(e);
370
- if (!(n.length === 0 && r.length === 0)) return Q([n, r]);
366
+ if (n.length !== 0 || r.length !== 0) return Q([n, r]);
371
367
  }, le = (e) => {
372
368
  let t = e.target?.selector, n = t?.type === "html_tag" ? t.id : void 0, r = typeof n == "string" ? n : void 0, i = ce(e);
373
- if (!(r == null && i == null)) return se(`${r ?? ""}|${i ?? ""}`);
369
+ if (r != null || i != null) return se(`${r ?? ""}|${i ?? ""}`);
374
370
  }, ue = (e) => {
375
371
  let t = fe(e);
376
372
  return e.flatMap((e, n) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-quotations",
3
3
  "description": "Citation and annotation components, hooks, and utilities for AI DIAL conversations",
4
- "version": "1.3.0-dev.124",
4
+ "version": "1.3.0-dev.126",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.8",
26
- "@epam/ai-dial-chat-shared": "1.3.0-dev.124",
26
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.126",
27
27
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.20"
28
28
  },
29
29
  "repository": {