@epam/ai-dial-quotations 1.1.0-dev.175 → 1.1.0-dev.176

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.
@@ -24,6 +24,8 @@ export interface CitationDropdownProps {
24
24
  markerLabels: CitationMarkerLabels;
25
25
  /** Optional typography overrides forwarded to the card. */
26
26
  cardTypography?: CitationCardTypography;
27
+ /** Typography class forwarded to the marker's label text. Defaults to `'dial-caption-text'`. */
28
+ markerLabelClassName?: string;
27
29
  }
28
30
  /** Combines `CitationMarker` and `CitationCard` into a tooltip-based dropdown. Requires a `CitationCardProvider` ancestor. */
29
31
  export declare const CitationDropdown: FC<CitationDropdownProps>;
@@ -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;AAE5D,OAAO,EAAE,EAAE,EAAQ,SAAS,EAAwB,MAAM,OAAO,CAAC;AAElE,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;AAE1C,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,uEAAuE;IACvE,eAAe,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAClD,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;CACzC;AAED,8HAA8H;AAC9H,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA6DtD,CAAC;;AAEF,wBAAsC"}
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;AAE5D,OAAO,EAAE,EAAE,EAAQ,SAAS,EAAwB,MAAM,OAAO,CAAC;AAElE,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;AAE1C,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,uEAAuE;IACvE,eAAe,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAClD,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,8HAA8H;AAC9H,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA+DtD,CAAC;;AAEF,wBAAsC"}
@@ -20,6 +20,8 @@ export interface CitationMarkerProps {
20
20
  icon?: ReactNode;
21
21
  /** User-visible strings. */
22
22
  labels: CitationMarkerLabels;
23
+ /** Typography class applied to the marker's label text. Defaults to `'dial-caption-text'`. */
24
+ labelClassName?: string;
23
25
  }
24
26
  /** Inline button that opens the citation popup for a source group. */
25
27
  export declare const CitationMarker: FC<CitationMarkerProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"CitationMarker.d.ts","sourceRoot":"","sources":["../../../src/components/CitationMarker/CitationMarker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAQ,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,gDAAgD;AAChD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,eAAe,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,mEAAmE;IACnE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4BAA4B;IAC5B,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,sEAAsE;AACtE,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAuBlD,CAAC;;AAEF,wBAAoC"}
1
+ {"version":3,"file":"CitationMarker.d.ts","sourceRoot":"","sources":["../../../src/components/CitationMarker/CitationMarker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAQ,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,gDAAgD;AAChD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,eAAe,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,mEAAmE;IACnE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4BAA4B;IAC5B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,8FAA8F;IAC9F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,sEAAsE;AACtE,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAwBlD,CAAC;;AAEF,wBAAoC"}
package/index.js CHANGED
@@ -92,17 +92,17 @@ var b = {
92
92
  p(x);
93
93
  //#endregion
94
94
  //#region src/components/CitationMarker/CitationMarker.tsx
95
- var S = ({ annotationCount: e, onOpen: t, icon: n, labels: r }) => {
96
- let i = /* @__PURE__ */ y("span", {
95
+ var S = ({ annotationCount: e, onOpen: t, icon: n, labels: r, labelClassName: i = "dial-caption-text" }) => {
96
+ let a = /* @__PURE__ */ y("span", {
97
97
  className: "flex items-center gap-1",
98
98
  children: [n, /* @__PURE__ */ v("span", {
99
- className: "dial-caption-text",
99
+ className: i,
100
100
  children: e > 1 ? r.labelWithOverflow : r.label
101
101
  })]
102
102
  });
103
103
  return /* @__PURE__ */ v(c, {
104
104
  size: o.Small,
105
- label: i,
105
+ label: a,
106
106
  "aria-label": r.ariaLabel,
107
107
  onClick: t
108
108
  });
@@ -114,23 +114,23 @@ var C = f(null), w = C.Provider, T = () => {
114
114
  let e = h(C);
115
115
  if (e == null) throw Error("useCitationCardContext must be used within a CitationCardProvider");
116
116
  return e;
117
- }, E = ({ group: e, onPreview: t, onOpenInBrowser: n, icon: r, headerIcon: i, cardLabels: o, markerLabels: s, cardTypography: c }) => {
118
- let l = T(), u = l.isOpen(e.sourceUrl), d = l.getActiveIndex(e.sourceUrl);
117
+ }, E = ({ group: e, onPreview: t, onOpenInBrowser: n, icon: r, headerIcon: i, cardLabels: o, markerLabels: s, cardTypography: c, markerLabelClassName: l }) => {
118
+ let u = T(), d = u.isOpen(e.sourceUrl), f = u.getActiveIndex(e.sourceUrl);
119
119
  return /* @__PURE__ */ v(a, {
120
- open: u,
120
+ open: d,
121
121
  onOpenChange: m((e) => {
122
- e || l.closePopup();
123
- }, [l]),
122
+ e || u.closePopup();
123
+ }, [u]),
124
124
  placement: "bottom-end",
125
125
  triggerClassName: "ms-1 inline-flex align-middle",
126
126
  contentClassName: "!p-0 !bg-transparent !border-0 !shadow-none !max-w-none !rounded-none",
127
127
  tooltip: /* @__PURE__ */ v(x, {
128
128
  group: e,
129
- activeIndex: d,
130
- onIndexChange: (t) => l.setActiveIndex(e.sourceUrl, t),
129
+ activeIndex: f,
130
+ onIndexChange: (t) => u.setActiveIndex(e.sourceUrl, t),
131
131
  onPreview: g(() => t ? (e) => {
132
- t(e), l.closePopup();
133
- } : void 0, [t, l]),
132
+ t(e), u.closePopup();
133
+ } : void 0, [t, u]),
134
134
  onOpenInBrowser: n,
135
135
  headerIcon: i,
136
136
  labels: o,
@@ -139,9 +139,10 @@ var C = f(null), w = C.Provider, T = () => {
139
139
  children: /* @__PURE__ */ v(S, {
140
140
  sourceName: e.sourceName,
141
141
  annotationCount: e.annotations.length,
142
- onOpen: () => l.openPopup(e.sourceUrl),
142
+ onOpen: () => u.openPopup(e.sourceUrl),
143
143
  icon: r,
144
- labels: s
144
+ labels: s,
145
+ labelClassName: l
145
146
  })
146
147
  });
147
148
  };
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.1.0-dev.175",
4
+ "version": "1.1.0-dev.176",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -18,7 +18,7 @@
18
18
  "peerDependencies": {
19
19
  "react": "^19.0.0",
20
20
  "@tabler/icons-react": "^3.0.0",
21
- "@epam/ai-dial-chat-shared": "1.1.0-dev.175",
21
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.176",
22
22
  "@epam/ai-dial-ui-kit": "^0.13.0-dev.26",
23
23
  "@epam/pdf-highlighter-kit": ">=0.0.14"
24
24
  },