@epam/statgpt-conversation-view 0.2.0-rc.2 → 0.2.0-rc.4

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.
package/index.mjs CHANGED
@@ -6,27 +6,27 @@ import { InputWithIcon as Un, IconButton as Pe, KeyboardKey as Ni, Dropdown as F
6
6
  import { IconPlayerStopFilled as Ti, IconCheck as Si, IconCopy as jr, IconPlus as Yr, IconSearch as Oi, IconCircleFilled as Li, IconClock as _i, IconArrowUpRight as Ri, IconExternalLink as Ii, IconPointFilled as Vi } from "@tabler/icons-react";
7
7
  import B from "classnames";
8
8
  import { generateConversationId as Kr, InvitationType as Pi, getSharedConversationsRequest as Zr, ShareTarget as Xr, AttachmentType as Le, mergeMessages as Hi, streamChatResponse as Bi } from "@epam/statgpt-dial-toolkit";
9
- import { cleanConversationNames as In, CalendarResolution as cn, getTimePeriod as hn, CUSTOM_PERIOD as on, Locale as $e, QueryFilterType as fn, formatNumberBySign as Gi, defaultFormatNumbers as Fi, getConversationNavPath as Wi } from "@epam/statgpt-shared-toolkit";
9
+ import { SHARE_CONVERSATION_ROUTE as qr, cleanConversationNames as In, CalendarResolution as cn, getTimePeriod as hn, CUSTOM_PERIOD as on, Locale as $e, QueryFilterType as fn, formatNumberBySign as Gi, defaultFormatNumbers as Fi, getConversationNavPath as Wi } from "@epam/statgpt-shared-toolkit";
10
10
  import { transformSharedConversations as zi } from "@epam/statgpt-conversation-list";
11
- import qr from "react-markdown";
12
- import Qr from "remark-gfm";
13
- import { isQuarterly as eo, isMonthly as no, findCodelistByDimension as Nn, getAvailableCodes as $i, getDimensionTitle as to, DimensionType as Ji, getAnnotationPeriod as ro, getFilteredItemsWithParents as Ui, getAvailableCodesFromConstrains as oo, SeriesFilterOperator as Vn, GET_v3_FILTER_AND as ji, getTimeRangeFromAttachment as Yi, getQueryTimePeriodFilters as io, getTimeSeriesFilterKey as An, TIME_PERIOD as wn, getTimeSeriesCount as fr, getLocalizedName as pe, getDimensions as Fe, getStructureComponentsMap as jn, SdmxDataFormat as Tn, FileColumnsAttribute as Sn, DownloadType as gn, getTimeQueryFilter as Ki, getTimeDimension as Zi, generateShortUrn as mn, getConcept as lo, getLastUpdatedTime as Xi, getArtifactByUrnWithWildCard as qi, getAdditionalColumns as Qi, getTimePeriods as Yn, sortPeriods as Kn, FREQUENCY_DIMENSION_ID as el, Periods as On, isYearly as nl, getParsedResponse as tl, getFiltersDtoFromDataQuery as rl, getStructureDimensions as wr } from "@epam/statgpt-sdmx-toolkit";
11
+ import Qr from "react-markdown";
12
+ import eo from "remark-gfm";
13
+ import { isQuarterly as no, isMonthly as to, findCodelistByDimension as Nn, getAvailableCodes as $i, getDimensionTitle as ro, DimensionType as Ji, getAnnotationPeriod as oo, getFilteredItemsWithParents as Ui, getAvailableCodesFromConstrains as io, SeriesFilterOperator as Vn, GET_v3_FILTER_AND as ji, getTimeRangeFromAttachment as Yi, getQueryTimePeriodFilters as lo, getTimeSeriesFilterKey as An, TIME_PERIOD as wn, getTimeSeriesCount as fr, getLocalizedName as pe, getDimensions as Fe, getStructureComponentsMap as jn, SdmxDataFormat as Tn, FileColumnsAttribute as Sn, DownloadType as gn, getTimeQueryFilter as Ki, getTimeDimension as Zi, generateShortUrn as mn, getConcept as ao, getLastUpdatedTime as Xi, getArtifactByUrnWithWildCard as qi, getAdditionalColumns as Qi, getTimePeriods as Yn, sortPeriods as Kn, FREQUENCY_DIMENSION_ID as el, Periods as On, isYearly as nl, getParsedResponse as tl, getFiltersDtoFromDataQuery as rl, getStructureDimensions as wr } from "@epam/statgpt-sdmx-toolkit";
14
14
  import { FixedSizeList as ol } from "react-window";
15
15
  import il from "react-virtualized-auto-sizer";
16
- import { useFloating as ao, autoUpdate as ll, offset as al, flip as cl, shift as sl, arrow as dl, useClick as ul, useInteractions as co, FloatingPortal as hl, useHover as fl, safePolygon as wl } from "@floating-ui/react";
17
- import so from "echarts-for-react";
18
- import { AgGridReact as uo } from "ag-grid-react";
16
+ import { useFloating as co, autoUpdate as ll, offset as al, flip as cl, shift as sl, arrow as dl, useClick as ul, useInteractions as so, FloatingPortal as hl, useHover as fl, safePolygon as wl } from "@floating-ui/react";
17
+ import uo from "echarts-for-react";
18
+ import { AgGridReact as ho } from "ag-grid-react";
19
19
  import { ModuleRegistry as gl, AllCommunityModule as ml } from "ag-grid-community";
20
20
  import { cloneDeep as pl, isEqual as vl } from "lodash";
21
21
  import { format as bl, isValid as Cl } from "date-fns";
22
- const ho = Br(
22
+ const fo = Br(
23
23
  void 0
24
24
  ), wu = ({
25
25
  children: e
26
26
  }) => {
27
27
  const [n, t] = k(!1);
28
28
  return /* @__PURE__ */ u(
29
- ho.Provider,
29
+ fo.Provider,
30
30
  {
31
31
  value: {
32
32
  isOpenedAdvancedView: n,
@@ -36,20 +36,20 @@ const ho = Br(
36
36
  }
37
37
  );
38
38
  }, Je = () => {
39
- const e = Gr(ho);
39
+ const e = Gr(fo);
40
40
  if (e === void 0)
41
41
  throw new Error(
42
42
  "useAdvancedView must be used within a AdvancedViewProvider"
43
43
  );
44
44
  return e;
45
- }, fo = Br(
45
+ }, wo = Br(
46
46
  void 0
47
47
  ), gu = ({
48
48
  children: e
49
49
  }) => {
50
50
  const [n, t] = k(""), [r, o] = k(""), [i, c] = k(), [f, l] = k();
51
51
  return /* @__PURE__ */ u(
52
- fo.Provider,
52
+ wo.Provider,
53
53
  {
54
54
  value: {
55
55
  onboardingFileName: n,
@@ -65,13 +65,13 @@ const ho = Br(
65
65
  }
66
66
  );
67
67
  }, Me = () => {
68
- const e = Gr(fo);
68
+ const e = Gr(wo);
69
69
  if (e === void 0)
70
70
  throw new Error("useOnboarding must be used within a OnboardingProvider");
71
71
  return e;
72
72
  };
73
73
  var Pn = /* @__PURE__ */ ((e) => (e.CHOICE = "choice", e.COMPLETION = "completion", e))(Pn || {}), Zn = /* @__PURE__ */ ((e) => (e.COMPLETE = "complete", e))(Zn || {}), kl = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(kl || {}), Hn = /* @__PURE__ */ ((e) => (e.PREVIOUS = "previous", e.NEXT = "next", e))(Hn || {});
74
- const wo = ({
74
+ const go = ({
75
75
  inProcess: e,
76
76
  containerClasses: n,
77
77
  inputClasses: t,
@@ -152,7 +152,7 @@ const wo = ({
152
152
  }
153
153
  }
154
154
  };
155
- }, Ml = (e) => /* @__PURE__ */ Q.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Q.createElement("path", { d: "M4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2917 2.5 15.8333V4.16667C2.5 3.70833 2.66319 3.31597 2.98958 2.98958C3.31597 2.66319 3.70833 2.5 4.16667 2.5H10V4.16667H4.16667V15.8333H10V17.5H4.16667ZM13.3333 14.1667L12.1875 12.9583L14.3125 10.8333H7.5V9.16667H14.3125L12.1875 7.04167L13.3333 5.83333L17.5 10L13.3333 14.1667Z", fill: "currentColor" })), go = ({ userInfo: e, signOutAction: n, title: t }) => {
155
+ }, Ml = (e) => /* @__PURE__ */ Q.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Q.createElement("path", { d: "M4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2917 2.5 15.8333V4.16667C2.5 3.70833 2.66319 3.31597 2.98958 2.98958C3.31597 2.66319 3.70833 2.5 4.16667 2.5H10V4.16667H4.16667V15.8333H10V17.5H4.16667ZM13.3333 14.1667L12.1875 12.9583L14.3125 10.8333H7.5V9.16667H14.3125L12.1875 7.04167L13.3333 5.83333L17.5 10L13.3333 14.1667Z", fill: "currentColor" })), mo = ({ userInfo: e, signOutAction: n, title: t }) => {
156
156
  const r = se(
157
157
  () => (e == null ? void 0 : e.name.split(" ").map((c) => c[0].toUpperCase()).join("")) || "",
158
158
  [e]
@@ -191,20 +191,20 @@ const wo = ({
191
191
  }
192
192
  );
193
193
  };
194
- var El = Object.defineProperty, pn = Object.getOwnPropertySymbols, mo = Object.prototype.hasOwnProperty, po = Object.prototype.propertyIsEnumerable, mr = (e, n, t) => n in e ? El(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Bn = (e, n) => {
194
+ var El = Object.defineProperty, pn = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, vo = Object.prototype.propertyIsEnumerable, mr = (e, n, t) => n in e ? El(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Bn = (e, n) => {
195
195
  for (var t in n || (n = {}))
196
- mo.call(n, t) && mr(e, t, n[t]);
196
+ po.call(n, t) && mr(e, t, n[t]);
197
197
  if (pn)
198
198
  for (var t of pn(n))
199
- po.call(n, t) && mr(e, t, n[t]);
199
+ vo.call(n, t) && mr(e, t, n[t]);
200
200
  return e;
201
201
  }, Gn = (e, n) => {
202
202
  var t = {};
203
203
  for (var r in e)
204
- mo.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
204
+ po.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
205
205
  if (e != null && pn)
206
206
  for (var r of pn(e))
207
- n.indexOf(r) < 0 && po.call(e, r) && (t[r] = e[r]);
207
+ n.indexOf(r) < 0 && vo.call(e, r) && (t[r] = e[r]);
208
208
  return t;
209
209
  };
210
210
  /**
@@ -758,8 +758,8 @@ var Tl = {
758
758
  M: je.QrCode.Ecc.MEDIUM,
759
759
  Q: je.QrCode.Ecc.QUARTILE,
760
760
  H: je.QrCode.Ecc.HIGH
761
- }, vo = 128, bo = "L", Co = "#FFFFFF", ko = "#000000", No = !1, Ao = 1, Sl = 4, Ol = 0, Ll = 0.1;
762
- function Do(e, n = 0) {
761
+ }, bo = 128, Co = "L", ko = "#FFFFFF", No = "#000000", Ao = !1, Do = 1, Sl = 4, Ol = 0, Ll = 0.1;
762
+ function xo(e, n = 0) {
763
763
  const t = [];
764
764
  return e.forEach(function(r, o) {
765
765
  let i = null;
@@ -782,7 +782,7 @@ function Do(e, n = 0) {
782
782
  });
783
783
  }), t.join("");
784
784
  }
785
- function xo(e, n) {
785
+ function yo(e, n) {
786
786
  return e.slice().map((t, r) => r < n.y || r >= n.y + n.h ? t : t.map((o, i) => i < n.x || i >= n.x + n.w ? o : !1));
787
787
  }
788
788
  function _l(e, n, t, r) {
@@ -800,7 +800,7 @@ function _l(e, n, t, r) {
800
800
  function Rl(e, n) {
801
801
  return n != null ? Math.max(Math.floor(n), 0) : e ? Sl : Ol;
802
802
  }
803
- function yo({
803
+ function Mo({
804
804
  value: e,
805
805
  level: n,
806
806
  minVersion: t,
@@ -855,12 +855,12 @@ var Il = (function() {
855
855
  function(n, t) {
856
856
  const r = n, {
857
857
  value: o,
858
- size: i = vo,
859
- level: c = bo,
860
- bgColor: f = Co,
861
- fgColor: l = ko,
862
- includeMargin: s = No,
863
- minVersion: a = Ao,
858
+ size: i = bo,
859
+ level: c = Co,
860
+ bgColor: f = ko,
861
+ fgColor: l = No,
862
+ includeMargin: s = Ao,
863
+ minVersion: a = Do,
864
864
  boostLevel: d,
865
865
  marginSize: h,
866
866
  imageSettings: w
@@ -880,7 +880,7 @@ var Il = (function() {
880
880
  p.current = Z, typeof t == "function" ? t(Z) : t && (t.current = Z);
881
881
  },
882
882
  [t]
883
- ), [y, R] = we.useState(!1), { margin: T, cells: E, numCells: A, calculatedImageSettings: M } = yo({
883
+ ), [y, R] = we.useState(!1), { margin: T, cells: E, numCells: A, calculatedImageSettings: M } = Mo({
884
884
  value: o,
885
885
  level: c,
886
886
  minVersion: a,
@@ -897,14 +897,14 @@ var Il = (function() {
897
897
  return;
898
898
  let V = E;
899
899
  const W = D.current, F = M != null && W !== null && W.complete && W.naturalHeight !== 0 && W.naturalWidth !== 0;
900
- F && M.excavation != null && (V = xo(
900
+ F && M.excavation != null && (V = yo(
901
901
  E,
902
902
  M.excavation
903
903
  ));
904
904
  const $ = window.devicePixelRatio || 1;
905
905
  Z.height = Z.width = i * $;
906
906
  const X = i / A * $;
907
- S.scale(X, X), S.fillStyle = f, S.fillRect(0, 0, A, A), S.fillStyle = l, Il ? S.fill(new Path2D(Do(V, T))) : E.forEach(function(U, q) {
907
+ S.scale(X, X), S.fillStyle = f, S.fillRect(0, 0, A, A), S.fillStyle = l, Il ? S.fill(new Path2D(xo(V, T))) : E.forEach(function(U, q) {
908
908
  U.forEach(function(de, ce) {
909
909
  de && S.fillRect(ce + T, q + T, 1, 1);
910
910
  });
@@ -946,16 +946,16 @@ var Il = (function() {
946
946
  }
947
947
  );
948
948
  Vl.displayName = "QRCodeCanvas";
949
- var Mo = we.forwardRef(
949
+ var Eo = we.forwardRef(
950
950
  function(n, t) {
951
951
  const r = n, {
952
952
  value: o,
953
- size: i = vo,
954
- level: c = bo,
955
- bgColor: f = Co,
956
- fgColor: l = ko,
957
- includeMargin: s = No,
958
- minVersion: a = Ao,
953
+ size: i = bo,
954
+ level: c = Co,
955
+ bgColor: f = ko,
956
+ fgColor: l = No,
957
+ includeMargin: s = Ao,
958
+ minVersion: a = Do,
959
959
  boostLevel: d,
960
960
  title: h,
961
961
  marginSize: w,
@@ -972,7 +972,7 @@ var Mo = we.forwardRef(
972
972
  "title",
973
973
  "marginSize",
974
974
  "imageSettings"
975
- ]), { margin: m, cells: x, numCells: N, calculatedImageSettings: p } = yo({
975
+ ]), { margin: m, cells: x, numCells: N, calculatedImageSettings: p } = Mo({
976
976
  value: o,
977
977
  level: c,
978
978
  minVersion: a,
@@ -983,7 +983,7 @@ var Mo = we.forwardRef(
983
983
  size: i
984
984
  });
985
985
  let D = x, v = null;
986
- g != null && p != null && (p.excavation != null && (D = xo(
986
+ g != null && p != null && (p.excavation != null && (D = yo(
987
987
  x,
988
988
  p.excavation
989
989
  )), v = /* @__PURE__ */ we.createElement(
@@ -999,7 +999,7 @@ var Mo = we.forwardRef(
999
999
  crossOrigin: p.crossOrigin
1000
1000
  }
1001
1001
  ));
1002
- const y = Do(D, m);
1002
+ const y = xo(D, m);
1003
1003
  return /* @__PURE__ */ we.createElement(
1004
1004
  "svg",
1005
1005
  Bn({
@@ -1023,8 +1023,8 @@ var Mo = we.forwardRef(
1023
1023
  );
1024
1024
  }
1025
1025
  );
1026
- Mo.displayName = "QRCodeSVG";
1027
- const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1026
+ Eo.displayName = "QRCodeSVG";
1027
+ const Pl = (e, n) => ({
1028
1028
  invitationType: Pi.LINK,
1029
1029
  resources: [
1030
1030
  {
@@ -1035,7 +1035,7 @@ const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1035
1035
  }), Hl = (e) => {
1036
1036
  var t;
1037
1037
  const n = ((t = e == null ? void 0 : e.invitationLink) == null ? void 0 : t.split("/").at(-1)) || "";
1038
- return `/${Eo}/${n}`;
1038
+ return `/${qr}/${n}`;
1039
1039
  }, Bl = (e, n) => n == null ? void 0 : n.find((t) => {
1040
1040
  var i, c, f, l;
1041
1041
  const r = (c = (i = e == null ? void 0 : e.id) == null ? void 0 : i.split("/")) == null ? void 0 : c.pop(), o = ((l = (f = t == null ? void 0 : t.url) == null ? void 0 : f.split("/")) == null ? void 0 : l.pop()) || "";
@@ -1082,7 +1082,7 @@ const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1082
1082
  var q;
1083
1083
  const U = N || window.location.origin;
1084
1084
  if (N && N !== window.location.origin && D && v) {
1085
- const de = (q = y == null ? void 0 : y.split(`/${Eo}/`)) == null ? void 0 : q[1];
1085
+ const de = (q = y == null ? void 0 : y.split(`/${qr}/`)) == null ? void 0 : q[1];
1086
1086
  return `${U}/${D}?${v}=${de}`;
1087
1087
  }
1088
1088
  return `${U}/${n}${y}`;
@@ -1164,7 +1164,7 @@ const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1164
1164
  ] })
1165
1165
  ] }),
1166
1166
  /* @__PURE__ */ u(
1167
- Mo,
1167
+ Eo,
1168
1168
  {
1169
1169
  className: "self-center border border-neutrals-600 p-2 rounded min-h-[200px]",
1170
1170
  value: V,
@@ -1259,7 +1259,7 @@ const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1259
1259
  }
1260
1260
  ) }),
1261
1261
  o && /* @__PURE__ */ u(
1262
- go,
1262
+ mo,
1263
1263
  {
1264
1264
  userInfo: i || null,
1265
1265
  signOutAction: l,
@@ -1280,9 +1280,9 @@ const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1280
1280
  n
1281
1281
  ),
1282
1282
  children: /* @__PURE__ */ u(
1283
- qr,
1283
+ Qr,
1284
1284
  {
1285
- remarkPlugins: [Qr],
1285
+ remarkPlugins: [eo],
1286
1286
  components: {
1287
1287
  strong: (r) => /* @__PURE__ */ u("strong", { className: n, ...r }),
1288
1288
  a: ({ href: r, children: o, ...i }) => /* @__PURE__ */ u("a", { href: r, target: "_blank", ...i, children: o })
@@ -1383,7 +1383,7 @@ const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1383
1383
  ]
1384
1384
  }
1385
1385
  );
1386
- }, bu = ({
1386
+ }, vu = ({
1387
1387
  suggestionsList: e,
1388
1388
  welcomeText: n,
1389
1389
  titleIcon: t,
@@ -1521,7 +1521,7 @@ const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1521
1521
  }
1522
1522
  ) : /* @__PURE__ */ C("div", { className: "flex flex-col h-full items-center justify-center sm:px-4", children: [
1523
1523
  w && /* @__PURE__ */ u("div", { className: "absolute top-4 right-4", children: /* @__PURE__ */ u(
1524
- go,
1524
+ mo,
1525
1525
  {
1526
1526
  userInfo: w,
1527
1527
  signOutAction: g,
@@ -1542,7 +1542,7 @@ const Eo = "share", vu = "onboarding", Pl = (e, n) => ({
1542
1542
  }
1543
1543
  ),
1544
1544
  /* @__PURE__ */ u(
1545
- wo,
1545
+ go,
1546
1546
  {
1547
1547
  containerClasses: B(
1548
1548
  i.inputContainerClass,
@@ -5329,7 +5329,7 @@ const ea = /* @__PURE__ */ _o(Ql), br = (e, n, t, r, o = !1, i) => {
5329
5329
  monthly: (e == null ? void 0 : e.monthly) || "M"
5330
5330
  }), ia = (e, n) => {
5331
5331
  const t = oa(n);
5332
- return eo(e) && (t != null && t.quarterly) ? e == null ? void 0 : e.replace(/Q/g, t == null ? void 0 : t.quarterly) : no(e) && (t != null && t.monthly) ? e == null ? void 0 : e.replace(/M/g, t == null ? void 0 : t.monthly) : e;
5332
+ return no(e) && (t != null && t.quarterly) ? e == null ? void 0 : e.replace(/Q/g, t == null ? void 0 : t.quarterly) : to(e) && (t != null && t.monthly) ? e == null ? void 0 : e.replace(/M/g, t == null ? void 0 : t.monthly) : e;
5333
5333
  };
5334
5334
  var Ye = /* @__PURE__ */ ((e) => (e.FLAT_LIST = "FLAT_LIST", e.HIERARCHY = "HIERARCHY", e))(Ye || {});
5335
5335
  const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
@@ -5346,7 +5346,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
5346
5346
  ), f = i == null ? void 0 : i.some((s) => s == null ? void 0 : s.parent);
5347
5347
  return {
5348
5348
  id: o == null ? void 0 : o.id,
5349
- title: to(n == null ? void 0 : n.conceptSchemes, o, r),
5349
+ title: ro(n == null ? void 0 : n.conceptSchemes, o, r),
5350
5350
  dimensionValues: c,
5351
5351
  isTimeDimension: (o == null ? void 0 : o.type) === Ji.TIME_DIMENSION,
5352
5352
  isHierarchical: f,
@@ -5394,7 +5394,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
5394
5394
  if (r.isTimeDimension) {
5395
5395
  const l = o.values.filter(
5396
5396
  (w) => !!w
5397
- ), s = ro(
5397
+ ), s = oo(
5398
5398
  (c = t == null ? void 0 : t[0]) == null ? void 0 : c.annotations
5399
5399
  ), a = l[0] ? hn(l[0]) : null, d = l[1] ? hn(l[1]) : null;
5400
5400
  let h = s;
@@ -5500,7 +5500,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
5500
5500
  defaultTimeOption: d
5501
5501
  }) => {
5502
5502
  var R, T, E, A;
5503
- const h = ro(
5503
+ const h = oo(
5504
5504
  c == null ? void 0 : c[0].annotations
5505
5505
  ), [w, g] = k(
5506
5506
  n
@@ -6157,7 +6157,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
6157
6157
  t == null ? void 0 : t.codelists,
6158
6158
  t == null ? void 0 : t.conceptSchemes,
6159
6159
  c
6160
- ), l = oo(
6160
+ ), l = io(
6161
6161
  f == null ? void 0 : f.codes,
6162
6162
  c.id,
6163
6163
  r,
@@ -6232,7 +6232,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
6232
6232
  ), Ta = (e, n) => {
6233
6233
  var i;
6234
6234
  const t = (i = n == null ? void 0 : n.timeDimensions) == null ? void 0 : i[0], r = Yi(e, t) || null;
6235
- return r ? io(r, t == null ? void 0 : t.id) : null;
6235
+ return r ? lo(r, t == null ? void 0 : t.id) : null;
6236
6236
  }, Sa = (e, n) => {
6237
6237
  const t = Io(e), r = t.find(
6238
6238
  (o) => (o == null ? void 0 : o.isTimeDimension) && (o == null ? void 0 : o.timeRange)
@@ -6242,7 +6242,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
6242
6242
  n || [],
6243
6243
  Ea(t)
6244
6244
  ),
6245
- timeFilter: io(
6245
+ timeFilter: lo(
6246
6246
  r == null ? void 0 : r.timeRange,
6247
6247
  r == null ? void 0 : r.id
6248
6248
  )
@@ -6479,7 +6479,7 @@ const qn = [
6479
6479
  supressReferenceClick: c
6480
6480
  }) => {
6481
6481
  var E;
6482
- const [f, l] = k(!0), [s, a] = k(!1), d = he(null), { isShowOnboarding: h, onboardingFileSchema: w, setOnboardingFileSchema: g } = Me(), { refs: b, floatingStyles: m, context: x, placement: N } = ao({
6482
+ const [f, l] = k(!0), [s, a] = k(!1), d = he(null), { isShowOnboarding: h, onboardingFileSchema: w, setOnboardingFileSchema: g } = Me(), { refs: b, floatingStyles: m, context: x, placement: N } = co({
6483
6483
  open: f,
6484
6484
  onOpenChange: l,
6485
6485
  placement: "right-start",
@@ -6493,7 +6493,7 @@ const qn = [
6493
6493
  dl({ element: d })
6494
6494
  ],
6495
6495
  whileElementsMounted: ll
6496
- }), p = ul(x), { getFloatingProps: D } = co([p]), v = P(() => {
6496
+ }), p = ul(x), { getFloatingProps: D } = so([p]), v = P(() => {
6497
6497
  if (h) {
6498
6498
  const A = Ia(
6499
6499
  w,
@@ -6770,7 +6770,7 @@ const Wa = (e, n) => {
6770
6770
  r == null ? void 0 : r.codelists,
6771
6771
  r == null ? void 0 : r.conceptSchemes,
6772
6772
  ne
6773
- ), I = oo(
6773
+ ), I = io(
6774
6774
  _ == null ? void 0 : _.codes,
6775
6775
  ne.id,
6776
6776
  S.current,
@@ -7241,7 +7241,7 @@ const Qa = ({ attachment: e, className: n = "" }) => {
7241
7241
  children: [
7242
7242
  /* @__PURE__ */ C("div", { className: "single-chart-popup-content flex flex-row flex-1 gap-4 min-h-0 h-full", children: [
7243
7243
  /* @__PURE__ */ u("div", { className: "flex flex-col flex-1 min-h-0", children: /* @__PURE__ */ u(
7244
- so,
7244
+ uo,
7245
7245
  {
7246
7246
  option: n.config,
7247
7247
  className: "w-full h-full",
@@ -7417,7 +7417,7 @@ const $n = ["index", "value"], pc = (e) => ({
7417
7417
  }, [c, r]);
7418
7418
  const h = se(
7419
7419
  () => /* @__PURE__ */ u(
7420
- uo,
7420
+ ho,
7421
7421
  {
7422
7422
  headerHeight: Dn,
7423
7423
  rowHeight: et,
@@ -7629,7 +7629,7 @@ const $n = ["index", "value"], pc = (e) => ({
7629
7629
  ], qo = (e, n, t) => {
7630
7630
  var r, o;
7631
7631
  return {
7632
- title: to(
7632
+ title: ro(
7633
7633
  e == null ? void 0 : e.conceptSchemes,
7634
7634
  (o = (r = Fe(e)) == null ? void 0 : r.timeDimensions) == null ? void 0 : o[0],
7635
7635
  n
@@ -8012,7 +8012,7 @@ const $n = ["index", "value"], pc = (e) => ({
8012
8012
  ]);
8013
8013
  const T = se(
8014
8014
  () => /* @__PURE__ */ u(
8015
- uo,
8015
+ ho,
8016
8016
  {
8017
8017
  headerHeight: Dn,
8018
8018
  rowHeight: et,
@@ -8146,7 +8146,7 @@ const $n = ["index", "value"], pc = (e) => ({
8146
8146
  titles: n,
8147
8147
  openAdvancedView: t
8148
8148
  }) => {
8149
- const [r, o] = k(!1), { refs: i, floatingStyles: c, context: f } = ao({
8149
+ const [r, o] = k(!1), { refs: i, floatingStyles: c, context: f } = co({
8150
8150
  open: r,
8151
8151
  onOpenChange: o,
8152
8152
  placement: "top-start"
@@ -8154,7 +8154,7 @@ const $n = ["index", "value"], pc = (e) => ({
8154
8154
  handleClose: wl({
8155
8155
  blockPointerEvents: !0
8156
8156
  })
8157
- }), { getReferenceProps: s, getFloatingProps: a } = co([l]);
8157
+ }), { getReferenceProps: s, getFloatingProps: a } = so([l]);
8158
8158
  return /* @__PURE__ */ C(ie, { children: [
8159
8159
  /* @__PURE__ */ u(
8160
8160
  "div",
@@ -8256,7 +8256,7 @@ const Jc = ({ option: e, style: n }) => {
8256
8256
  window.removeEventListener("resize", c);
8257
8257
  };
8258
8258
  }, [e, i]), /* @__PURE__ */ u(
8259
- so,
8259
+ uo,
8260
8260
  {
8261
8261
  notMerge: !0,
8262
8262
  lazyUpdate: !1,
@@ -8726,7 +8726,7 @@ const Jc = ({ option: e, style: n }) => {
8726
8726
  var s, a, d;
8727
8727
  const c = n.find(
8728
8728
  (h) => (h == null ? void 0 : h.id) === (i == null ? void 0 : i.componentCode)
8729
- ), f = lo(
8729
+ ), f = ao(
8730
8730
  (c == null ? void 0 : c.conceptIdentity) || "",
8731
8731
  t
8732
8732
  ), l = Nn(
@@ -9922,7 +9922,7 @@ const Cs = (e, n, t) => {
9922
9922
  };
9923
9923
  function it(e, n, t) {
9924
9924
  var i;
9925
- const r = lo(e.conceptIdentity, n), o = qi(
9925
+ const r = ao(e.conceptIdentity, n), o = qi(
9926
9926
  (i = r == null ? void 0 : r.coreRepresentation) == null ? void 0 : i.enumeration,
9927
9927
  t
9928
9928
  );
@@ -10299,9 +10299,9 @@ function Pr(e, n, t) {
10299
10299
  if (t) {
10300
10300
  const r = n == null ? void 0 : n[t];
10301
10301
  if (r === On.MONTHLY)
10302
- return e == null ? void 0 : e.filter((o) => no(o));
10302
+ return e == null ? void 0 : e.filter((o) => to(o));
10303
10303
  if (r === On.QUARTERLY)
10304
- return e == null ? void 0 : e.filter((o) => eo(o));
10304
+ return e == null ? void 0 : e.filter((o) => no(o));
10305
10305
  if (r === On.ANNUAL)
10306
10306
  return e == null ? void 0 : e.filter((o) => nl(o));
10307
10307
  }
@@ -10529,7 +10529,7 @@ function fi(e, n, t, r, o, i, c) {
10529
10529
  dataSetAttachments: Z
10530
10530
  };
10531
10531
  }
10532
- const Cu = ({
10532
+ const bu = ({
10533
10533
  attachmentsProps: e,
10534
10534
  actions: n,
10535
10535
  titles: t,
@@ -10743,9 +10743,9 @@ const Ed = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ C(
10743
10743
  }
10744
10744
  ),
10745
10745
  /* @__PURE__ */ u("div", { className: "prose max-w-full break-words", children: /* @__PURE__ */ u(
10746
- qr,
10746
+ Qr,
10747
10747
  {
10748
- remarkPlugins: [Qr],
10748
+ remarkPlugins: [eo],
10749
10749
  components: {
10750
10750
  strong: (r) => /* @__PURE__ */ u("strong", { className: "text-neutrals-1000", ...r }),
10751
10751
  a: ({ href: r, children: o, ...i }) => /* @__PURE__ */ u("a", { href: r, target: "_blank", ...i, children: o }),
@@ -11326,7 +11326,7 @@ const $d = (e, n, t, r) => {
11326
11326
  folderId: r,
11327
11327
  id: o
11328
11328
  };
11329
- }, jd = "AbortError", ku = ({
11329
+ }, jd = "AbortError", Cu = ({
11330
11330
  conversationKey: e,
11331
11331
  conversation: n,
11332
11332
  actions: t,
@@ -11748,7 +11748,7 @@ const $d = (e, n, t, r) => {
11748
11748
  buttonClassName: B("text-button-secondary")
11749
11749
  }
11750
11750
  ) }) : /* @__PURE__ */ u("div", { className: B(i.inputContainerClass), children: /* @__PURE__ */ u(
11751
- wo,
11751
+ go,
11752
11752
  {
11753
11753
  onSendMessage: (_) => Se(_, n),
11754
11754
  onStopStreaming: Be,
@@ -11774,18 +11774,16 @@ const $d = (e, n, t, r) => {
11774
11774
  );
11775
11775
  };
11776
11776
  export {
11777
- Cu as AdvancedView,
11777
+ bu as AdvancedView,
11778
11778
  wu as AdvancedViewProvider,
11779
11779
  Zn as CUSTOM_CHOICE_ID,
11780
11780
  Hn as ChartingIcon,
11781
11781
  $l as ChatFooter,
11782
11782
  zl as ChatOnboardingFooter,
11783
- ku as ConversationView,
11784
- bu as ConversationWelcome,
11783
+ Cu as ConversationView,
11784
+ vu as ConversationWelcome,
11785
11785
  Pn as CustomContentProperties,
11786
- vu as ONBOARDING_MODEL_POSTFIX,
11787
11786
  gu as OnboardingProvider,
11788
- Eo as SHARE_CONVERSATION_ROUTE,
11789
11787
  kl as STAGE_STATUS,
11790
11788
  Je as useAdvancedView,
11791
11789
  Me as useOnboarding
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@epam/statgpt-conversation-view",
3
- "version": "0.2.0-rc.2",
3
+ "version": "0.2.0-rc.4",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "react": "^19.1.0",
7
7
  "classnames": "^2.5.1",
8
8
  "@epam/ai-dial-shared": "^0.34.0",
9
9
  "@tabler/icons-react": "^3.34.1",
10
- "@epam/statgpt-shared-toolkit": "0.2.0-rc.2",
11
- "@epam/statgpt-ui-components": "0.2.0-rc.2",
12
- "@epam/statgpt-sdmx-toolkit": "0.2.0-rc.2",
10
+ "@epam/statgpt-shared-toolkit": "0.2.0-rc.4",
11
+ "@epam/statgpt-ui-components": "0.2.0-rc.4",
12
+ "@epam/statgpt-sdmx-toolkit": "0.2.0-rc.4",
13
13
  "react-window": "^1.8.11",
14
14
  "react-virtualized-auto-sizer": "^1.0.26",
15
15
  "ag-grid-community": "33.3.2",
@@ -17,10 +17,10 @@
17
17
  "@floating-ui/react": "^0.27.14",
18
18
  "echarts": "^5.6.0",
19
19
  "echarts-for-react": "^3.0.2",
20
- "@epam/statgpt-dial-toolkit": "0.2.0-rc.2",
20
+ "@epam/statgpt-dial-toolkit": "0.2.0-rc.4",
21
21
  "react-markdown": "^10.1.0",
22
22
  "remark-gfm": "^4.0.1",
23
- "@epam/statgpt-conversation-list": "0.2.0-rc.2",
23
+ "@epam/statgpt-conversation-list": "0.2.0-rc.4",
24
24
  "flatpickr": "4.6.13",
25
25
  "react-flatpickr": "^4.0.11",
26
26
  "date-fns": "^4.1.0",