@epam/ai-dial-quotations 1.3.0-dev.310 → 1.3.0-dev.317

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CitationDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/CitationDropdown/CitationDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,OAAO,EAAE,EAAE,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAInE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,kCAAkC,CAAC;AAG1C,kDAAkD;AAClD,MAAM,WAAW,qBAAqB;IACpC,kEAAkE;IAClE,KAAK,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,qHAAqH;IACrH,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC;IACpD,uEAAuE;IACvE,eAAe,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAClD,+FAA+F;IAC/F,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,wNAAwN;IACxN,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sMAAsM;IACtM,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,wDAAwD;IACxD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uFAAuF;IACvF,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,+CAA+C;IAC/C,UAAU,EAAE,kBAAkB,CAAC;IAC/B,yDAAyD;IACzD,YAAY,EAAE,oBAAoB,CAAC;IACnC,2DAA2D;IAC3D,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,gGAAgG;IAChG,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,4HAA4H;AAC5H,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA8HtD,CAAC"}
1
+ {"version":3,"file":"CitationDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/CitationDropdown/CitationDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,OAAO,EAAE,EAAE,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAInE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,kCAAkC,CAAC;AAG1C,kDAAkD;AAClD,MAAM,WAAW,qBAAqB;IACpC,kEAAkE;IAClE,KAAK,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,qHAAqH;IACrH,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC;IACpD,uEAAuE;IACvE,eAAe,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAClD,+FAA+F;IAC/F,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,wNAAwN;IACxN,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sMAAsM;IACtM,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,wDAAwD;IACxD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uFAAuF;IACvF,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,+CAA+C;IAC/C,UAAU,EAAE,kBAAkB,CAAC;IAC/B,yDAAyD;IACzD,YAAY,EAAE,oBAAoB,CAAC;IACnC,2DAA2D;IAC3D,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,gGAAgG;IAChG,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,4HAA4H;AAC5H,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAiItD,CAAC"}
package/index.js CHANGED
@@ -1,39 +1,39 @@
1
1
  import { MIMEType as e, MarkdownRenderer as t, buildCssVars as n, isAnnotationSelector as r, mergeClasses as i, normalizePersistedHtmlTagAttachmentType as a, normalizeRawAnnotations as o } from "@epam/ai-dial-chat-shared";
2
- import { DIAL_KIT_ICON_STROKE as s, DialItemType as c, Dropdown as l, ElementSize as u, EllipsisTooltip as d, FileIcon as f, GhostIconButton as p, LinkButton as m, NeutralButton as h, PrimaryButton as g } from "@epam/ai-dial-ui-kit";
3
- import { IconChevronLeft as _, IconChevronRight as v } from "@tabler/icons-react";
4
- import { createContext as y, useCallback as b, useContext as x, useEffect as S, useId as ee, useLayoutEffect as C, useMemo as w, useRef as te, useState as T } from "react";
5
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
2
+ import { DIAL_KIT_ICON_STROKE as s, DialItemType as c, Dropdown as l, DropdownOverlayRole as u, ElementSize as d, EllipsisTooltip as f, FileIcon as p, GhostIconButton as m, LinkButton as h, NeutralButton as g, PrimaryButton as _ } from "@epam/ai-dial-ui-kit";
3
+ import { IconChevronLeft as ee, IconChevronRight as v } from "@tabler/icons-react";
4
+ import { createContext as y, useCallback as b, useContext as x, useEffect as S, useId as te, useLayoutEffect as C, useMemo as w, useRef as T, useState as E } from "react";
5
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
6
6
  //#region src/constants/public-class-names.ts
7
- var k = {
7
+ var A = {
8
8
  citationCard: "dial-quotations-citation-card",
9
9
  citationDropdown: "dial-quotations-citation-dropdown",
10
10
  citationMarker: "dial-quotations-citation-marker"
11
11
  }, ne = (t) => {
12
12
  let n = t.body?.source?.attachment?.type;
13
13
  return n === e.HTML || n === e.XHTML;
14
- }, A = (e) => {
14
+ }, j = (e) => {
15
15
  try {
16
16
  return decodeURIComponent(e);
17
17
  } catch {
18
18
  return e;
19
19
  }
20
- }, j = (e) => {
20
+ }, M = (e) => {
21
21
  try {
22
22
  let t = new URL(e);
23
- return t.pathname.split("/").map((e) => A(e)).filter(Boolean).at(-1) ?? t.hostname;
23
+ return t.pathname.split("/").map((e) => j(e)).filter(Boolean).at(-1) ?? t.hostname;
24
24
  } catch {
25
- return e.split("/").map((e) => A(e)).filter(Boolean).at(-1) ?? e;
25
+ return e.split("/").map((e) => j(e)).filter(Boolean).at(-1) ?? e;
26
26
  }
27
- }, M = /\.([a-z0-9]{1,10})$/i, N = (e) => {
28
- let t = e == null ? null : M.exec(e.trim());
27
+ }, N = /\.([a-z0-9]{1,10})$/i, P = (e) => {
28
+ let t = e == null ? null : N.exec(e.trim());
29
29
  return t == null ? void 0 : `.${t[1].toLowerCase()}`;
30
30
  }, re = (e) => {
31
31
  let t = e.body?.source?.attachment, n = t?.url;
32
- return (n == null ? void 0 : N(j(n))) ?? N(t?.title);
33
- }, P = (e, t) => e.body?.source?.attachment?.title ?? j(t), F = (e) => {
32
+ return (n == null ? void 0 : P(M(n))) ?? P(t?.title);
33
+ }, F = (e, t) => e.body?.source?.attachment?.title ?? M(t), I = (e) => {
34
34
  let t = e.target?.selector;
35
35
  return t?.type === "html_tag" ? t : void 0;
36
- }, ie = (e) => F(e) != null, I = (e) => {
36
+ }, ie = (e) => I(e) != null, L = (e) => {
37
37
  let t = /* @__PURE__ */ new Map();
38
38
  for (let n of e) {
39
39
  if (ie(n)) continue;
@@ -43,16 +43,16 @@ var k = {
43
43
  r ? r.annotations.push(n) : t.set(e, {
44
44
  groupKey: e,
45
45
  sourceUrl: e,
46
- sourceName: P(n, e),
46
+ sourceName: F(n, e),
47
47
  annotations: [n],
48
48
  primaryAnnotation: n
49
49
  });
50
50
  }
51
51
  return Array.from(t.values());
52
- }, L = (e) => {
52
+ }, R = (e) => {
53
53
  let t = /* @__PURE__ */ new Map();
54
54
  for (let n of e) {
55
- let e = F(n)?.id;
55
+ let e = I(n)?.id;
56
56
  if (e == null) continue;
57
57
  let r = n.body?.source?.attachment?.url;
58
58
  if (r == null) continue;
@@ -60,216 +60,217 @@ var k = {
60
60
  i ? i.annotations.push(n) : t.set(e, {
61
61
  groupKey: `cit:${e}`,
62
62
  sourceUrl: r,
63
- sourceName: P(n, r),
63
+ sourceName: F(n, r),
64
64
  annotations: [n],
65
65
  primaryAnnotation: n
66
66
  });
67
67
  }
68
68
  return Array.from(t.values());
69
- }, R = (e) => [...L(e), ...I(e)], z = (e, t) => {
69
+ }, z = (e) => [...R(e), ...L(e)], B = (e, t) => {
70
70
  let n = e.body?.source?.attachment?.url;
71
71
  return n == null || !t.includes(e) ? [e] : t.filter((e) => e.body?.source?.attachment?.url === n);
72
- }, B = {
72
+ }, V = {
73
73
  card: "_card_1kph1_1",
74
74
  quote: "_quote_1kph1_5",
75
75
  title: "_title_1kph1_9",
76
76
  switcher: "_switcher_1kph1_13",
77
77
  sourceName: "_sourceName_1kph1_17"
78
- }, V = ({ group: e, activeIndex: r, onIndexChange: a, onPreview: o, onOpenInBrowser: l, isDownloadEnabled: h = !0, headerIcon: y, labels: b, typography: x, colors: w }) => {
79
- let E = e.annotations.length, A = e.annotations[r] ?? e.primaryAnnotation, j = E > 1, M = o == null || ne(A), N = M ? void 0 : re(A), P = N ?? e.sourceName, F = y ?? (N == null ? void 0 : /* @__PURE__ */ D(f, {
78
+ }, H = ({ group: e, activeIndex: r, onIndexChange: a, onPreview: o, onOpenInBrowser: l, isDownloadEnabled: u = !0, headerIcon: g, labels: y, typography: b, colors: x }) => {
79
+ let w = e.annotations.length, D = e.annotations[r] ?? e.primaryAnnotation, j = w > 1, M = o == null || ne(D), N = M ? void 0 : re(D), P = N ?? e.sourceName, F = g ?? (N == null ? void 0 : /* @__PURE__ */ O(p, {
80
80
  type: c.File,
81
81
  name: N,
82
82
  fileExtension: N,
83
83
  size: 16,
84
84
  decorative: !0,
85
85
  className: "shrink-0"
86
- })), ie = x?.sourceNameClassName ?? "dial-tiny-text", I = x?.titleClassName ?? "dial-body-semi-text", L = x?.quoteClassName ?? "dial-small-text", R = x?.quoteStrongClassName ?? "dial-small-semi-text", z = x?.switcherClassName ?? "dial-tiny-text", V = n({
87
- "--cc-card-bg": w?.cardBackground,
88
- "--cc-quote-text": w?.quoteText,
89
- "--cc-title-text": w?.titleText,
90
- "--cc-switcher-text": w?.switcherText,
91
- "--cc-source-name-text": w?.sourceNameText
92
- }), H = A.body?.quote, U = ee(), W = te(null), [G, K] = T(!1), [q, ae] = T(!1);
86
+ })), I = b?.sourceNameClassName ?? "dial-tiny-text", ie = b?.titleClassName ?? "dial-body-semi-text", L = b?.quoteClassName ?? "dial-small-text", R = b?.quoteStrongClassName ?? "dial-small-semi-text", z = b?.switcherClassName ?? "dial-tiny-text", B = n({
87
+ "--cc-card-bg": x?.cardBackground,
88
+ "--cc-quote-text": x?.quoteText,
89
+ "--cc-title-text": x?.titleText,
90
+ "--cc-switcher-text": x?.switcherText,
91
+ "--cc-source-name-text": x?.sourceNameText
92
+ }), H = D.body?.quote, U = te(), W = T(null), [G, K] = E(!1), [ae, q] = E(!1);
93
93
  return S(() => {
94
94
  K(!1);
95
95
  }, [r, H]), C(() => {
96
96
  let e = W.current;
97
97
  if (!e || G) return;
98
- let t = () => ae(e.scrollHeight > e.clientHeight + 1);
98
+ let t = () => q(e.scrollHeight > e.clientHeight + 1);
99
99
  t();
100
100
  let n = new ResizeObserver(t);
101
101
  return n.observe(e), () => n.disconnect();
102
- }, [H, G]), /* @__PURE__ */ O("div", {
102
+ }, [H, G]), /* @__PURE__ */ k("div", {
103
103
  role: "dialog",
104
104
  "aria-modal": "true",
105
- "aria-label": b.ariaLabel,
106
- style: V,
107
- className: i("flex w-[400px] max-w-full flex-col gap-3 rounded-lg p-4 shadow-lg", B.card, k.citationCard),
105
+ "aria-label": y.ariaLabel,
106
+ style: B,
107
+ className: i("flex w-[400px] max-w-full flex-col gap-3 rounded-lg p-4 shadow-lg", V.card, A.citationCard),
108
108
  children: [
109
- /* @__PURE__ */ O("div", {
109
+ /* @__PURE__ */ k("div", {
110
110
  className: "flex items-center justify-between gap-2",
111
- children: [/* @__PURE__ */ O("div", {
111
+ children: [/* @__PURE__ */ k("div", {
112
112
  className: "flex min-w-0 items-center gap-1",
113
- children: [F, /* @__PURE__ */ D(d, {
113
+ children: [F, /* @__PURE__ */ O(f, {
114
114
  text: P,
115
- className: i(ie, "min-w-0", B.sourceName)
115
+ className: i(I, "min-w-0", V.sourceName)
116
116
  })]
117
- }), j && /* @__PURE__ */ O("div", {
117
+ }), j && /* @__PURE__ */ k("div", {
118
118
  className: "flex shrink-0 items-center gap-1",
119
119
  children: [
120
- /* @__PURE__ */ D(p, {
121
- icon: /* @__PURE__ */ D(_, {
120
+ /* @__PURE__ */ O(m, {
121
+ icon: /* @__PURE__ */ O(ee, {
122
122
  size: 14,
123
123
  className: "rtl:scale-x-[-1]",
124
124
  stroke: s
125
125
  }),
126
- size: u.Small,
127
- "aria-label": b.previousCitation,
128
- onClick: () => a((r - 1 + E) % E)
126
+ size: d.Small,
127
+ "aria-label": y.previousCitation,
128
+ onClick: () => a((r - 1 + w) % w)
129
129
  }),
130
- /* @__PURE__ */ D("span", {
131
- className: i(z, B.switcher),
132
- children: b.formatSwitcherText(r + 1, E)
130
+ /* @__PURE__ */ O("span", {
131
+ className: i(z, V.switcher),
132
+ children: y.formatSwitcherText(r + 1, w)
133
133
  }),
134
- /* @__PURE__ */ D(p, {
135
- icon: /* @__PURE__ */ D(v, {
134
+ /* @__PURE__ */ O(m, {
135
+ icon: /* @__PURE__ */ O(v, {
136
136
  size: 14,
137
137
  className: "rtl:scale-x-[-1]",
138
138
  stroke: s
139
139
  }),
140
- size: u.Small,
141
- "aria-label": b.nextCitation,
142
- onClick: () => a((r + 1) % E)
140
+ size: d.Small,
141
+ "aria-label": y.nextCitation,
142
+ onClick: () => a((r + 1) % w)
143
143
  })
144
144
  ]
145
145
  })]
146
146
  }),
147
- (A.body?.title || A.body?.quote || j) && /* @__PURE__ */ O("div", {
147
+ (D.body?.title || D.body?.quote || j) && /* @__PURE__ */ k("div", {
148
148
  className: "flex flex-col gap-3",
149
- children: [A.body?.title && /* @__PURE__ */ D("p", {
150
- className: i(I, B.title, "wrap-break-word"),
151
- children: A.body.title
152
- }), (H || j) && /* @__PURE__ */ O("div", {
149
+ children: [D.body?.title && /* @__PURE__ */ O("p", {
150
+ className: i(ie, V.title, "wrap-break-word"),
151
+ children: D.body.title
152
+ }), (H || j) && /* @__PURE__ */ k("div", {
153
153
  className: "flex flex-col items-start gap-1",
154
- children: [/* @__PURE__ */ D("div", {
154
+ children: [/* @__PURE__ */ O("div", {
155
155
  ref: W,
156
156
  id: U,
157
157
  tabIndex: G ? 0 : void 0,
158
- className: i(L, B.quote, "w-full wrap-break-word", G ? "max-h-[min(20rem,50vh)] overflow-y-auto" : "line-clamp-6"),
159
- children: H && /* @__PURE__ */ D(t, {
158
+ className: i(L, V.quote, "w-full wrap-break-word", G ? "max-h-[min(20rem,50vh)] overflow-y-auto" : "line-clamp-6"),
159
+ children: H && /* @__PURE__ */ O(t, {
160
160
  content: H,
161
161
  classNames: {
162
- p: i(L, B.quote),
162
+ p: i(L, V.quote),
163
163
  ul: i(L, "ps-[1.5em]"),
164
164
  ol: L,
165
165
  strong: R
166
166
  },
167
- codeBlockCopyLabel: b.codeBlockCopyLabel,
168
- codeBlockCopiedLabel: b.codeBlockCopiedLabel,
169
- codeBlockDownloadLabel: b.codeBlockDownloadLabel,
170
- tableScrollRegionAriaLabel: b.tableScrollRegionAriaLabel,
171
- mathScrollRegionAriaLabel: b.mathScrollRegionAriaLabel
167
+ codeBlockCopyLabel: y.codeBlockCopyLabel,
168
+ codeBlockCopiedLabel: y.codeBlockCopiedLabel,
169
+ codeBlockDownloadLabel: y.codeBlockDownloadLabel,
170
+ tableScrollRegionAriaLabel: y.tableScrollRegionAriaLabel,
171
+ mathScrollRegionAriaLabel: y.mathScrollRegionAriaLabel
172
172
  })
173
- }), q && /* @__PURE__ */ D(m, {
174
- label: G ? b.showLess : b.showMore,
175
- size: u.Small,
173
+ }), ae && /* @__PURE__ */ O(h, {
174
+ label: G ? y.showLess : y.showMore,
175
+ size: d.Small,
176
176
  "aria-expanded": G,
177
177
  "aria-controls": U,
178
178
  onClick: () => K((e) => !e)
179
179
  })]
180
180
  })]
181
181
  }),
182
- /* @__PURE__ */ O("div", {
182
+ /* @__PURE__ */ k("div", {
183
183
  className: "flex justify-start gap-2",
184
- children: [o && /* @__PURE__ */ D(g, {
185
- label: b.preview,
186
- size: u.Small,
187
- onClick: () => o(A)
188
- }), (M || h) && /* @__PURE__ */ D(g, {
189
- label: M ? b.openInBrowser : b.download,
190
- size: u.Small,
191
- onClick: () => l(A)
184
+ children: [o && /* @__PURE__ */ O(_, {
185
+ label: y.preview,
186
+ size: d.Small,
187
+ onClick: () => o(D)
188
+ }), (M || u) && /* @__PURE__ */ O(_, {
189
+ label: M ? y.openInBrowser : y.download,
190
+ size: d.Small,
191
+ onClick: () => l(D)
192
192
  })]
193
193
  })
194
194
  ]
195
195
  });
196
- }, H = ({ annotationCount: e, onOpen: t, icon: n, labels: r, labelClassName: a = "dial-caption-text", ...o }) => /* @__PURE__ */ D(h, {
197
- size: u.Small,
198
- className: i("max-w-[240px]", k.citationMarker),
196
+ }, U = ({ annotationCount: e, onOpen: t, icon: n, labels: r, labelClassName: a = "dial-caption-text", ...o }) => /* @__PURE__ */ O(g, {
197
+ size: d.Small,
198
+ className: i("max-w-[240px]", A.citationMarker),
199
199
  textClassName: "min-w-0 truncate",
200
200
  iconBefore: n,
201
- label: /* @__PURE__ */ D("span", {
201
+ label: /* @__PURE__ */ O("span", {
202
202
  className: a,
203
203
  children: e > 1 ? r.labelWithOverflow : r.label
204
204
  }),
205
205
  "aria-label": r.ariaLabel,
206
206
  ...o,
207
207
  onClick: t
208
- }), U = y(null), W = U.Provider, G = () => {
209
- let e = x(U);
208
+ }), W = y(null), G = W.Provider, K = () => {
209
+ let e = x(W);
210
210
  if (e == null) throw Error("useCitationCardContext must be used within a CitationCardProvider");
211
211
  return e;
212
- }, K = { trigger: "_trigger_119c8_7" }, q = ({ group: e, onPreview: t, isPreviewable: n, onOpenInBrowser: r, isDownloadEnabled: a = !0, isPreviewOpen: o = !1, previewFilesOnMarkerClick: s = !1, icon: c, headerIcon: u, cardLabels: d, markerLabels: f, cardTypography: p, markerLabelClassName: m }) => {
213
- let h = G(), g = ee(), _ = h.isOpen(g), v = h.getActiveIndex(e.groupKey), y = e.annotations[v] ?? e.primaryAnnotation, x = n?.(y) ?? !0, S = b((e) => {
214
- e || h.closePopup(g);
215
- }, [h, g]), C = w(() => t && x ? (e) => {
216
- t(e), h.closePopup(g);
212
+ }, ae = { trigger: "_trigger_119c8_7" }, q = ({ group: e, onPreview: t, isPreviewable: n, onOpenInBrowser: r, isDownloadEnabled: a = !0, isPreviewOpen: o = !1, previewFilesOnMarkerClick: s = !1, icon: c, headerIcon: d, cardLabels: f, markerLabels: p, cardTypography: m, markerLabelClassName: h }) => {
213
+ let g = K(), _ = te(), ee = g.isOpen(_), v = g.getActiveIndex(e.groupKey), y = e.annotations[v] ?? e.primaryAnnotation, x = n?.(y) ?? !0, S = b((e) => {
214
+ e || g.closePopup(_);
215
+ }, [g, _]), C = w(() => t && x ? (e) => {
216
+ t(e), g.closePopup(_);
217
217
  } : void 0, [
218
218
  t,
219
219
  x,
220
- h,
221
- g
222
- ]), te = b(() => {
220
+ g,
221
+ _
222
+ ]), T = b(() => {
223
223
  let t = e.annotations.length === 1, n = t && !ne(y);
224
- (o && t || s && n) && C ? C(y) : h.openPopup(g);
224
+ (o && t || s && n) && C ? C(y) : g.openPopup(_);
225
225
  }, [
226
226
  o,
227
227
  s,
228
228
  e.annotations.length,
229
229
  C,
230
230
  y,
231
- h,
232
- g
233
- ]), T = b(() => /* @__PURE__ */ D(V, {
231
+ g,
232
+ _
233
+ ]), E = b(() => /* @__PURE__ */ O(H, {
234
234
  group: e,
235
235
  activeIndex: v,
236
- onIndexChange: (t) => h.setActiveIndex(e.groupKey, t),
236
+ onIndexChange: (t) => g.setActiveIndex(e.groupKey, t),
237
237
  onPreview: C,
238
238
  onOpenInBrowser: r,
239
239
  isDownloadEnabled: a,
240
- headerIcon: u,
241
- labels: d,
242
- typography: p
240
+ headerIcon: d,
241
+ labels: f,
242
+ typography: m
243
243
  }), [
244
244
  e,
245
245
  v,
246
- h,
246
+ g,
247
247
  C,
248
248
  r,
249
249
  a,
250
- u,
251
250
  d,
252
- p
251
+ f,
252
+ m
253
253
  ]);
254
- return /* @__PURE__ */ D(l, {
255
- open: _,
254
+ return /* @__PURE__ */ O(l, {
255
+ open: ee,
256
256
  onOpenChange: S,
257
257
  trigger: [],
258
+ overlayRole: u.None,
258
259
  placement: "bottom-end",
259
260
  matchReferenceWidth: !1,
260
- className: i("ms-1 inline-flex align-middle", K.trigger),
261
- listClassName: i("p-0! bg-transparent! shadow-none! rounded-none!", k.citationDropdown),
262
- renderOverlay: T,
263
- children: /* @__PURE__ */ D(H, {
261
+ className: i("ms-1 inline-flex align-middle", ae.trigger),
262
+ listClassName: i("p-0! bg-transparent! shadow-none! rounded-none!", A.citationDropdown),
263
+ renderOverlay: E,
264
+ children: /* @__PURE__ */ O(U, {
264
265
  sourceName: e.sourceName,
265
266
  annotationCount: e.annotations.length,
266
- onOpen: te,
267
+ onOpen: T,
267
268
  icon: c,
268
- labels: f,
269
- labelClassName: m
269
+ labels: p,
270
+ labelClassName: h
270
271
  })
271
272
  });
272
- }, ae = (e) => {
273
+ }, oe = (e) => {
273
274
  let t = e.trim();
274
275
  if (!t.startsWith("|") || !t.endsWith("|") || /[\r\n]/.test(t)) return;
275
276
  let n = [], r = "";
@@ -278,11 +279,11 @@ var k = {
278
279
  i === "\\" && a != null && /[!-/:-@[-`{-~]/.test(a) ? (r += a, e += 1) : i === "|" ? (n.push(r.trim()), r = "") : r += i;
279
280
  }
280
281
  if (!(r !== "" || n.length < 2 || n.every((e) => e === "" || /^:?-{3,}:?$/.test(e)))) return n;
281
- }, oe = (e) => {
282
+ }, se = (e) => {
282
283
  if (e.type !== "docx_text_anchor" && e.type !== "pptx_text_anchor") return;
283
284
  let { text: t, occurrence: n, slide: r } = e;
284
285
  if (typeof t != "string" || typeof n != "number" || !Number.isSafeInteger(n) || n < 1) return;
285
- let i = ae(t);
286
+ let i = oe(t);
286
287
  if (i != null) {
287
288
  if (e.type === "docx_text_anchor") return {
288
289
  type: "docx_text_anchor",
@@ -296,13 +297,13 @@ var k = {
296
297
  slide: r
297
298
  };
298
299
  }
299
- }, se = {
300
+ }, ce = {
300
301
  backgroundColor: "transparent",
301
302
  borderColor: "var(--stroke-accent, #1D4ED8)",
302
303
  borderWidth: "2px",
303
304
  opacity: .5,
304
305
  hoverOpacity: .5
305
- }, ce = (e) => {
306
+ }, le = (e) => {
306
307
  if (typeof e != "object" || !e) return;
307
308
  let t = e, { lt: n, wh: r } = t;
308
309
  if (Array.isArray(n) && Array.isArray(r) && n.length >= 2 && r.length >= 2) {
@@ -332,7 +333,7 @@ var k = {
332
333
  x2: i,
333
334
  y2: a
334
335
  });
335
- } else t.type === "pdf_region" && (n = ce(t.bbox));
336
+ } else t.type === "pdf_region" && (n = le(t.bbox));
336
337
  if (n == null) return;
337
338
  let i = t.page;
338
339
  if (!(typeof i != "number" || !Number.isInteger(i) || i < 1) && [
@@ -347,29 +348,29 @@ var k = {
347
348
  x2: n.x2,
348
349
  y2: n.y2
349
350
  };
350
- }, le = (e) => {
351
+ }, ue = (e) => {
351
352
  if (!r(e)) return;
352
353
  let t = e;
353
354
  if (t.type !== "pdf_bbox" && t.type !== "pdf_region") return;
354
355
  let n = t.page;
355
356
  return typeof n == "number" && Number.isInteger(n) && n >= 1 ? n : void 0;
356
- }, Y = (e) => typeof e != "object" || !e ? String(e) : Array.isArray(e) ? `[${e.map(Y).join(",")}]` : `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${e}=${Y(t)}`).join(",")}}`, ue = (e) => {
357
+ }, Y = (e) => typeof e != "object" || !e ? String(e) : Array.isArray(e) ? `[${e.map(Y).join(",")}]` : `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${e}=${Y(t)}`).join(",")}}`, de = (e) => {
357
358
  let t = 5381;
358
359
  for (let n = 0; n < e.length; n += 1) t = t * 33 + e.charCodeAt(n) | 0;
359
360
  return (t >>> 0).toString(36);
360
- }, de = (e) => {
361
+ }, fe = (e) => {
361
362
  let t = e.body?.selector;
362
363
  if (t == null) return;
363
364
  let n = (Array.isArray(t) ? t : [t]).flatMap((e) => {
364
365
  let t = J(e);
365
366
  return t == null ? [] : [t];
366
- }), r = Te(e);
367
+ }), r = Ee(e);
367
368
  if (n.length !== 0 || r.length !== 0) return Y([n, r]);
368
- }, fe = (e) => {
369
- let t = e.target?.selector, n = t?.type === "html_tag" ? t.id : void 0, r = typeof n == "string" ? n : void 0, i = de(e);
370
- if (r != null || i != null) return ue(`${r ?? ""}|${i ?? ""}`);
371
369
  }, pe = (e) => {
372
- let t = he(e);
370
+ let t = e.target?.selector, n = t?.type === "html_tag" ? t.id : void 0, r = typeof n == "string" ? n : void 0, i = fe(e);
371
+ if (r != null || i != null) return de(`${r ?? ""}|${i ?? ""}`);
372
+ }, me = (e) => {
373
+ let t = ge(e);
373
374
  return e.flatMap((e, n) => {
374
375
  let i = e.body?.selector;
375
376
  if (i == null) return [];
@@ -381,11 +382,11 @@ var k = {
381
382
  return a.length === 0 ? [] : [{
382
383
  id: t[n],
383
384
  bboxes: a,
384
- style: se
385
+ style: ce
385
386
  }];
386
387
  });
387
- }, me = (e, t) => e.index == null ? fe(e) ?? String(t) : String(e.index), he = (e) => {
388
- let t = e.map((e, t) => me(e, t)), n = new Set(t), r = /* @__PURE__ */ new Set();
388
+ }, he = (e, t) => e.index == null ? pe(e) ?? String(t) : String(e.index), ge = (e) => {
389
+ let t = e.map((e, t) => he(e, t)), n = new Set(t), r = /* @__PURE__ */ new Set();
389
390
  return t.map((e) => {
390
391
  if (!r.has(e)) return r.add(e), e;
391
392
  let t = 1;
@@ -393,7 +394,7 @@ var k = {
393
394
  let i = `${e}-${t}`;
394
395
  return n.add(i), r.add(i), i;
395
396
  });
396
- }, ge = (e) => {
397
+ }, _e = (e) => {
397
398
  let t = e.body?.selector;
398
399
  if (t == null) return;
399
400
  let n = Array.isArray(t) ? t : [t];
@@ -403,29 +404,29 @@ var k = {
403
404
  if (t != null) return t.page;
404
405
  }
405
406
  for (let e of n) {
406
- let t = le(e);
407
+ let t = ue(e);
407
408
  if (t != null) return t;
408
409
  }
409
- }, _e = (e) => {
410
+ }, ve = (e) => {
410
411
  let t = e.custom_content?.annotations;
411
412
  if (t?.length) return t.filter((e) => e != null && e.body?.source?.attachment?.url != null).map(a);
412
413
  let n = e.custom_fields;
413
414
  if (typeof n != "object" || !n) return [];
414
415
  let r = n.annotations;
415
416
  return !Array.isArray(r) || r.length === 0 ? [] : o(r, e.custom_content?.attachments ?? []).map(a);
416
- }, ve = (e) => {
417
+ }, ye = (e) => {
417
418
  if (e.type !== "docx_text_range") return !1;
418
419
  let t = e;
419
420
  return typeof t.story == "string" && Array.isArray(t.path) && t.path.every((e) => typeof e == "number") && typeof t.start == "number" && typeof t.end == "number" && typeof t.text == "string";
420
- }, ye = (e) => {
421
+ }, be = (e) => {
421
422
  if (e.type !== "pptx_text_range") return !1;
422
423
  let t = e;
423
424
  return typeof t.slide == "number" && typeof t.shape_id == "string" && typeof t.start == "number" && typeof t.end == "number" && typeof t.text == "string";
424
- }, be = (e) => typeof e == "object" && !!e && typeof e.row == "number" && typeof e.col == "number", xe = (e) => {
425
+ }, xe = (e) => typeof e == "object" && !!e && typeof e.row == "number" && typeof e.col == "number", Se = (e) => {
425
426
  if (e.type !== "excel_rc_range") return !1;
426
427
  let t = e;
427
- return typeof t.sheet == "string" && be(t.start) && (t.end === void 0 || t.end === null || be(t.end));
428
- }, Se = (e) => {
428
+ return typeof t.sheet == "string" && xe(t.start) && (t.end === void 0 || t.end === null || xe(t.end));
429
+ }, Ce = (e) => {
429
430
  let { story: t, path: n, start: r, end: i, text: a } = e;
430
431
  if (!(!n.every((e) => Number.isInteger(e)) || !Number.isInteger(r) || !Number.isInteger(i) || r < 0 || i < r)) return {
431
432
  type: "docx_text_range",
@@ -435,7 +436,7 @@ var k = {
435
436
  endExclusive: i,
436
437
  text: a
437
438
  };
438
- }, Ce = (e) => {
439
+ }, we = (e) => {
439
440
  let { slide: t, shape_id: n, start: r, end: i, text: a } = e;
440
441
  if (!(!Number.isInteger(t) || t < 1 || !Number.isInteger(r) || !Number.isInteger(i) || r < 0 || i < r)) return {
441
442
  type: "pptx_text_range",
@@ -445,7 +446,7 @@ var k = {
445
446
  endExclusive: i,
446
447
  text: a
447
448
  };
448
- }, we = (e) => {
449
+ }, Te = (e) => {
449
450
  let { sheet: t, start: n, end: r } = e;
450
451
  if (!(t.length === 0 || !Number.isInteger(n.row) || !Number.isInteger(n.col) || n.row < 1 || n.col < 1)) {
451
452
  if (r == null) return {
@@ -460,30 +461,30 @@ var k = {
460
461
  end: r
461
462
  };
462
463
  }
463
- }, Te = (e) => {
464
+ }, Ee = (e) => {
464
465
  let t = e.body?.selector;
465
466
  return t == null ? [] : (Array.isArray(t) ? t : [t]).flatMap((e) => {
466
467
  if (!r(e)) return [];
467
- if (ve(e)) {
468
- let t = Se(e);
469
- return t ? [t] : [];
470
- }
471
468
  if (ye(e)) {
472
469
  let t = Ce(e);
473
470
  return t ? [t] : [];
474
471
  }
475
- if (xe(e)) {
472
+ if (be(e)) {
476
473
  let t = we(e);
477
474
  return t ? [t] : [];
478
475
  }
479
- let t = oe(e);
476
+ if (Se(e)) {
477
+ let t = Te(e);
478
+ return t ? [t] : [];
479
+ }
480
+ let t = se(e);
480
481
  return t ? [t] : [];
481
482
  });
482
- }, Ee = (e, t) => w(() => t ? [] : _e(e), [t, e]), De = {
483
+ }, De = (e, t) => w(() => t ? [] : ve(e), [t, e]), Oe = {
483
484
  openOwnerKey: null,
484
485
  activeIndexByGroup: {}
485
- }, Oe = () => {
486
- let [e, t] = T(De), n = b((e) => {
486
+ }, ke = () => {
487
+ let [e, t] = E(Oe), n = b((e) => {
487
488
  t((t) => ({
488
489
  ...t,
489
490
  openOwnerKey: e
@@ -514,7 +515,7 @@ var k = {
514
515
  i,
515
516
  e
516
517
  ]);
517
- }, ke = /⟦C(\d+)⟧/g, Ae = (e, t) => {
518
+ }, Ae = /⟦C(\d+)⟧/g, je = (e, t) => {
518
519
  let n = t.map((e, t) => ({
519
520
  g: e,
520
521
  idx: t
@@ -527,26 +528,26 @@ var k = {
527
528
  }).sort((e, t) => t.pos - e.pos), r = e;
528
529
  for (let { idx: e, pos: t } of n) r = `${r.slice(0, t)}⟦C${e}⟧${r.slice(t)}`;
529
530
  return r;
530
- }, je = /<cit\s+data-id=(?:"[^"]+"|'[^']+')\s*>\s*<\/cit>/g, Me = /^<cit\s+data-id=(?:"[^"]+"|'[^']+')\s*>\s*<\/cit>$/, Ne = /<cit\s+data-id=(?:"[^"]+"|'[^']+')\s*>\s*<\/cit>|<\/?cit\b[^>]*>|<\/?cit\b[^>]*$/gi, Pe = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), X = (e) => e.replace(Ne, (e) => Me.test(e) ? e : Pe(e)), Z = (e) => X(e).replace(je, ""), Fe = (e, t) => e.includes("<cit") ? t ? Z(e) : X(e) : e, Ie = (e) => {
531
+ }, Me = /<cit\s+data-id=(?:"[^"]+"|'[^']+')\s*>\s*<\/cit>/g, Ne = /^<cit\s+data-id=(?:"[^"]+"|'[^']+')\s*>\s*<\/cit>$/, Pe = /<cit\s+data-id=(?:"[^"]+"|'[^']+')\s*>\s*<\/cit>|<\/?cit\b[^>]*>|<\/?cit\b[^>]*$/gi, Fe = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), X = (e) => e.replace(Pe, (e) => Ne.test(e) ? e : Fe(e)), Z = (e) => X(e).replace(Me, ""), Ie = (e, t) => e.includes("<cit") ? t ? Z(e) : X(e) : e, Le = (e) => {
531
532
  let t = e.primaryAnnotation.target?.selector;
532
533
  return t?.type === "html_tag" ? t.id : void 0;
533
534
  }, Q = (e, t = []) => {
534
535
  let n = /* @__PURE__ */ new Map();
535
536
  for (let r of [...t, ...e]) {
536
- let e = Ie(r);
537
+ let e = Le(r);
537
538
  e != null && n.set(e, r);
538
539
  }
539
540
  return n;
540
- }, Le = /<cit\s+data-id=(?:"([^"]+)"|'([^']+)')\s*>\s*<\/cit>/g, Re = (e) => e.replace(/[\\`*_[\]<>|]/g, "\\$&"), ze = (e, t, n = []) => {
541
+ }, Re = /<cit\s+data-id=(?:"([^"]+)"|'([^']+)')\s*>\s*<\/cit>/g, ze = (e) => e.replace(/[\\`*_[\]<>|]/g, "\\$&"), Be = (e, t, n = []) => {
541
542
  if (!e.includes("<cit")) return e;
542
543
  let r = Q(t, n);
543
- return r.size === 0 ? e : e.replace(Le, (e, t, n) => {
544
+ return r.size === 0 ? e : e.replace(Re, (e, t, n) => {
544
545
  let i = r.get(t ?? n ?? "");
545
- return i ? Re(i.sourceName) : e;
546
+ return i ? ze(i.sourceName) : e;
546
547
  });
547
548
  }, $ = (e, t) => {
548
549
  if (typeof e == "string") {
549
- let n = e.split(ke);
550
+ let n = e.split(Ae);
550
551
  if (n.length === 1) return e;
551
552
  let r = [];
552
553
  return n.forEach((e, n) => {
@@ -557,13 +558,13 @@ var k = {
557
558
  let n = $(e, t);
558
559
  return Array.isArray(n) ? n : [n];
559
560
  }) : e;
560
- }, Be = (e, t) => /* @__PURE__ */ O(E, { children: [
561
+ }, Ve = (e, t) => /* @__PURE__ */ k(D, { children: [
561
562
  e == null ? "<cit>" : `<cit data-id="${e}">`,
562
563
  t,
563
564
  "</cit>"
564
- ] }), Ve = ({ onPreview: e, isPreviewable: t, onOpenInBrowser: n, isDownloadEnabled: r = !0, isPreviewOpen: i = !1, previewFilesOnMarkerClick: a = !1, buildLabels: o }) => (s) => {
565
+ ] }), He = ({ onPreview: e, isPreviewable: t, onOpenInBrowser: n, isDownloadEnabled: r = !0, isPreviewOpen: i = !1, previewFilesOnMarkerClick: a = !1, buildLabels: o }) => (s) => {
565
566
  let { cardLabels: c, markerLabels: l } = o(s);
566
- return /* @__PURE__ */ D(q, {
567
+ return /* @__PURE__ */ O(q, {
567
568
  group: s,
568
569
  onPreview: (t) => e(t, s),
569
570
  isPreviewable: t,
@@ -574,8 +575,8 @@ var k = {
574
575
  cardLabels: c,
575
576
  markerLabels: l
576
577
  }, `citation-${s.groupKey}`);
577
- }, He = {}, Ue = [], We = (e, t, n, r = !1, a = !1, o = Ue) => {
578
- let { onPreview: s, isPreviewable: c, onOpenInBrowser: l, isDownloadEnabled: u = !0, isPreviewOpen: d = !1, previewFilesOnMarkerClick: f = !1, paragraphClassName: p = "dial-body-paragraph-text", compactParagraphClassName: m = "dial-small-paragraph-text", buildLabels: h } = n, g = w(() => r ? Z(e) : X(t.length > 0 ? Ae(e, t) : e), [
578
+ }, Ue = {}, We = [], Ge = (e, t, n, r = !1, a = !1, o = We) => {
579
+ let { onPreview: s, isPreviewable: c, onOpenInBrowser: l, isDownloadEnabled: u = !0, isPreviewOpen: d = !1, previewFilesOnMarkerClick: f = !1, paragraphClassName: p = "dial-body-paragraph-text", compactParagraphClassName: m = "dial-small-paragraph-text", buildLabels: h } = n, g = w(() => r ? Z(e) : X(t.length > 0 ? je(e, t) : e), [
579
580
  e,
580
581
  t,
581
582
  r
@@ -583,7 +584,7 @@ var k = {
583
584
  return {
584
585
  processedContent: g,
585
586
  markdownComponents: w(() => {
586
- let e = Q(t, o), n = Ve({
587
+ let e = Q(t, o), n = He({
587
588
  onPreview: s,
588
589
  isPreviewable: c,
589
590
  onOpenInBrowser: l,
@@ -596,16 +597,16 @@ var k = {
596
597
  return r ? n(r) : null;
597
598
  }, g = { cit: (t) => {
598
599
  let r = t["data-id"] == null ? void 0 : e.get(t["data-id"]);
599
- return r ? n(r) : Be(t["data-id"], t.children);
600
+ return r ? n(r) : Ve(t["data-id"], t.children);
600
601
  } };
601
- return t.length === 0 && o.length === 0 ? _ ? g : He : {
602
+ return t.length === 0 && o.length === 0 ? _ ? g : Ue : {
602
603
  ...g,
603
- p: ({ children: e, ...t }) => /* @__PURE__ */ D("p", {
604
+ p: ({ children: e, ...t }) => /* @__PURE__ */ O("p", {
604
605
  ...t,
605
606
  className: i(a ? m : p, "mb-3 text-pretty wrap-anywhere last:mb-0"),
606
607
  children: $(e, r)
607
608
  }),
608
- li: ({ children: e, ...t }) => /* @__PURE__ */ D("li", {
609
+ li: ({ children: e, ...t }) => /* @__PURE__ */ O("li", {
609
610
  ...t,
610
611
  className: "mb-1.5 last:mb-0",
611
612
  children: $(e, r)
@@ -627,10 +628,10 @@ var k = {
627
628
  _
628
629
  ])
629
630
  };
630
- }, Ge = [], Ke = (e, t, n = Ge) => {
631
+ }, Ke = [], qe = (e, t, n = Ke) => {
631
632
  let { onPreview: r, isPreviewable: i, onOpenInBrowser: a, isDownloadEnabled: o, isPreviewOpen: s, previewFilesOnMarkerClick: c, buildLabels: l } = t;
632
633
  return w(() => {
633
- let t = Q(e, n), u = Ve({
634
+ let t = Q(e, n), u = He({
634
635
  onPreview: r,
635
636
  isPreviewable: i,
636
637
  onOpenInBrowser: a,
@@ -641,7 +642,7 @@ var k = {
641
642
  });
642
643
  return (e, n) => {
643
644
  let r = e == null ? void 0 : t.get(e);
644
- return r ? u(r) : Be(e, n);
645
+ return r ? u(r) : Ve(e, n);
645
646
  };
646
647
  }, [
647
648
  e,
@@ -654,14 +655,14 @@ var k = {
654
655
  c,
655
656
  l
656
657
  ]);
657
- }, qe = (e) => e.url == null && e.reference_url != null, Je = /^(.*\.pdf)(?:#page=(\d+))?$/i, Ye = (e) => {
658
- let t = Je.exec(e);
658
+ }, Je = (e) => e.url == null && e.reference_url != null, Ye = /^(.*\.pdf)(?:#page=(\d+))?$/i, Xe = (e) => {
659
+ let t = Ye.exec(e);
659
660
  return t ? {
660
661
  baseUrl: t[1],
661
662
  page: t[2] == null ? null : Number(t[2])
662
663
  } : null;
663
- }, Xe = (t) => I((t ?? []).filter(qe).map((t) => {
664
- let n = t.reference_url, r = Ye(n) != null;
664
+ }, Ze = (t) => L((t ?? []).filter(Je).map((t) => {
665
+ let n = t.reference_url, r = Xe(n) != null;
665
666
  return { body: {
666
667
  quote: t.data,
667
668
  source: {
@@ -673,14 +674,14 @@ var k = {
673
674
  }
674
675
  }
675
676
  } };
676
- })), Ze = [], Qe = (e) => {
677
+ })), Qe = [], $e = (e) => {
677
678
  if (typeof e != "object" || !e) return !1;
678
679
  let t = e.target?.selector, n = e.body?.source?.attachment;
679
680
  return t?.type === "html_tag" && typeof t.id == "string" && typeof n?.url == "string" && (n.title == null || typeof n.title == "string");
680
- }, $e = (e) => w(() => {
681
- if (!Array.isArray(e)) return Ze;
682
- let t = L(e.filter(Qe));
683
- return t.length ? t : Ze;
681
+ }, et = (e) => w(() => {
682
+ if (!Array.isArray(e)) return Qe;
683
+ let t = R(e.filter($e));
684
+ return t.length ? t : Qe;
684
685
  }, [e]);
685
686
  //#endregion
686
- export { V as CitationCard, W as CitationCardProvider, q as CitationDropdown, H as CitationMarker, k as QUOTATIONS_CLASS, me as annotationHighlightId, he as annotationHighlightIds, Te as annotationToOfficeHighlightLocations, pe as annotationsToPdfHighlights, z as gatherSameSourceAnnotations, ge as getAnnotationPdfPage, Xe as getReferenceAttachmentGroups, R as groupAnnotations, L as groupAnnotationsByCitId, I as groupAnnotationsBySource, Ae as injectCitationSentinels, ve as isDocxRangeSelector, xe as isExcelRcRangeSelector, ye as isPptxRangeSelector, qe as isReferenceOnlyAttachment, Ye as parsePdfPageReference, Fe as prepareCitationContent, ze as replaceCitTagsWithSourceNames, $ as replaceSentinelsInChildren, _e as resolveMessageAnnotations, Z as stripCitTagsWhileStreaming, Ee as useAnnotations, Oe as useCitationCard, G as useCitationCardContext, We as useCitationMarkdownComponents, Ke as useCitationTagRenderer, $e as useHtmlTagAnnotationGroups };
687
+ export { H as CitationCard, G as CitationCardProvider, q as CitationDropdown, U as CitationMarker, A as QUOTATIONS_CLASS, he as annotationHighlightId, ge as annotationHighlightIds, Ee as annotationToOfficeHighlightLocations, me as annotationsToPdfHighlights, B as gatherSameSourceAnnotations, _e as getAnnotationPdfPage, Ze as getReferenceAttachmentGroups, z as groupAnnotations, R as groupAnnotationsByCitId, L as groupAnnotationsBySource, je as injectCitationSentinels, ye as isDocxRangeSelector, Se as isExcelRcRangeSelector, be as isPptxRangeSelector, Je as isReferenceOnlyAttachment, Xe as parsePdfPageReference, Ie as prepareCitationContent, Be as replaceCitTagsWithSourceNames, $ as replaceSentinelsInChildren, ve as resolveMessageAnnotations, Z as stripCitTagsWhileStreaming, De as useAnnotations, ke as useCitationCard, K as useCitationCardContext, Ge as useCitationMarkdownComponents, qe as useCitationTagRenderer, et as useHtmlTagAnnotationGroups };
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.310",
4
+ "version": "1.3.0-dev.317",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.8",
26
- "@epam/ai-dial-chat-shared": "1.3.0-dev.310",
27
- "@epam/ai-dial-ui-kit": "^0.16.0-dev.71"
26
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.317",
27
+ "@epam/ai-dial-ui-kit": "^0.16.0-dev.72"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",