@sproutsocial/seeds-react-data-viz 0.27.3 → 0.28.1

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 (86) hide show
  1. package/dist/{annotations-CjFoRPXf.d.mts → annotations-YfJndb5S.d.mts} +2 -2
  2. package/dist/{annotations-CjFoRPXf.d.ts → annotations-YfJndb5S.d.ts} +2 -2
  3. package/dist/{axis-DVx6Mn1k.d.mts → axis-Byl9vNMR.d.mts} +9 -9
  4. package/dist/{axis-DQXvjzBs.d.ts → axis-Cn8NAgwb.d.ts} +9 -9
  5. package/dist/bar/index.d.mts +25 -47
  6. package/dist/bar/index.d.ts +25 -47
  7. package/dist/bar/index.js +14 -14
  8. package/dist/bar/index.js.map +1 -1
  9. package/dist/bubble/index.d.mts +29 -40
  10. package/dist/bubble/index.d.ts +29 -40
  11. package/dist/bubble/index.js +18 -20
  12. package/dist/bubble/index.js.map +1 -1
  13. package/dist/{chartExport-CKYpuhik.d.mts → chartExport-B0imEQ8Y.d.mts} +4 -4
  14. package/dist/{chartExport-CKYpuhik.d.ts → chartExport-B0imEQ8Y.d.ts} +4 -4
  15. package/dist/{chartBase-Cd405GIA.d.mts → chartProps-BgGx1GTo.d.mts} +67 -23
  16. package/dist/{chartBase-BYipK7MZ.d.ts → chartProps-C2Lxty-_.d.ts} +67 -23
  17. package/dist/{chunk-WMKO3RGT.js → chunk-2S7XMWJ4.js} +3 -3
  18. package/dist/chunk-2S7XMWJ4.js.map +1 -0
  19. package/dist/{chunk-6EIJCJCN.js → chunk-I72SSPMX.js} +1 -1
  20. package/dist/chunk-I72SSPMX.js.map +1 -0
  21. package/dist/{chunk-CV45MD47.js → chunk-RDS2VCPO.js} +3 -3
  22. package/dist/chunk-RDS2VCPO.js.map +1 -0
  23. package/dist/{chunk-5TWNMPQU.js → chunk-V5EXL244.js} +73 -63
  24. package/dist/chunk-V5EXL244.js.map +1 -0
  25. package/dist/{chunk-34OKRQET.js → chunk-XH7ZKGHD.js} +5 -5
  26. package/dist/{chunk-34OKRQET.js.map → chunk-XH7ZKGHD.js.map} +1 -1
  27. package/dist/donut/index.d.mts +21 -36
  28. package/dist/donut/index.d.ts +21 -36
  29. package/dist/donut/index.js +8 -8
  30. package/dist/donut/index.js.map +1 -1
  31. package/dist/esm/bar/index.js +5 -5
  32. package/dist/esm/bar/index.js.map +1 -1
  33. package/dist/esm/bubble/index.js +10 -12
  34. package/dist/esm/bubble/index.js.map +1 -1
  35. package/dist/esm/{chunk-P3MVYSHX.js → chunk-37QVUJXM.js} +1 -1
  36. package/dist/esm/chunk-37QVUJXM.js.map +1 -0
  37. package/dist/esm/{chunk-332X77M5.js → chunk-JNQC3ZRQ.js} +3 -3
  38. package/dist/esm/chunk-JNQC3ZRQ.js.map +1 -0
  39. package/dist/esm/{chunk-MVNO5UV6.js → chunk-NBMVFYDJ.js} +2 -2
  40. package/dist/esm/chunk-NBMVFYDJ.js.map +1 -0
  41. package/dist/esm/{chunk-AL3OTBTT.js → chunk-THDIQMFN.js} +2 -2
  42. package/dist/esm/chunk-THDIQMFN.js.map +1 -0
  43. package/dist/esm/{chunk-CYCKJ5ML.js → chunk-YCYACOQU.js} +34 -24
  44. package/dist/esm/chunk-YCYACOQU.js.map +1 -0
  45. package/dist/esm/donut/index.js +3 -3
  46. package/dist/esm/donut/index.js.map +1 -1
  47. package/dist/esm/export/index.js.map +1 -1
  48. package/dist/esm/index.js +4 -4
  49. package/dist/esm/index.js.map +1 -1
  50. package/dist/esm/line-area/index.js +5 -5
  51. package/dist/esm/line-area/index.js.map +1 -1
  52. package/dist/esm/sparkline/index.js +3 -3
  53. package/dist/esm/sparkline/index.js.map +1 -1
  54. package/dist/esm/wordcloud/index.js +4 -3
  55. package/dist/esm/wordcloud/index.js.map +1 -1
  56. package/dist/export/index.d.mts +5 -5
  57. package/dist/export/index.d.ts +5 -5
  58. package/dist/export/index.js.map +1 -1
  59. package/dist/index.js +92 -92
  60. package/dist/index.js.map +1 -1
  61. package/dist/{interactions-pEXA1XxF.d.ts → interactions-D2a4O6iM.d.mts} +8 -8
  62. package/dist/{interactions-pEXA1XxF.d.mts → interactions-D2a4O6iM.d.ts} +8 -8
  63. package/dist/line-area/index.d.mts +22 -48
  64. package/dist/line-area/index.d.ts +22 -48
  65. package/dist/line-area/index.js +14 -14
  66. package/dist/line-area/index.js.map +1 -1
  67. package/dist/pointerClick-4LUDwS3L.d.mts +15 -0
  68. package/dist/pointerClick-4LUDwS3L.d.ts +15 -0
  69. package/dist/sparkline/index.d.mts +24 -33
  70. package/dist/sparkline/index.d.ts +24 -33
  71. package/dist/sparkline/index.js +7 -7
  72. package/dist/sparkline/index.js.map +1 -1
  73. package/dist/wordcloud/index.d.mts +22 -20
  74. package/dist/wordcloud/index.d.ts +22 -20
  75. package/dist/wordcloud/index.js +11 -10
  76. package/dist/wordcloud/index.js.map +1 -1
  77. package/package.json +3 -3
  78. package/dist/chunk-5TWNMPQU.js.map +0 -1
  79. package/dist/chunk-6EIJCJCN.js.map +0 -1
  80. package/dist/chunk-CV45MD47.js.map +0 -1
  81. package/dist/chunk-WMKO3RGT.js.map +0 -1
  82. package/dist/esm/chunk-332X77M5.js.map +0 -1
  83. package/dist/esm/chunk-AL3OTBTT.js.map +0 -1
  84. package/dist/esm/chunk-CYCKJ5ML.js.map +0 -1
  85. package/dist/esm/chunk-MVNO5UV6.js.map +0 -1
  86. package/dist/esm/chunk-P3MVYSHX.js.map +0 -1
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- var _chunk34OKRQETjs = require('./chunk-34OKRQET.js');
13
+ var _chunkXH7ZKGHDjs = require('./chunk-XH7ZKGHD.js');
14
14
 
15
15
  // src/charts/shared/baseChartOptions.ts
16
16
  function buildBaseChartOptions({
@@ -46,6 +46,16 @@ function buildBaseChartOptions({
46
46
  };
47
47
  }
48
48
 
49
+ // src/charts/shared/pointerClick.ts
50
+ function deriveClickCoords(event) {
51
+ const isClickEvent = event.type === "click";
52
+ if (!isClickEvent && event.target) {
53
+ const rect = event.target.getBoundingClientRect();
54
+ return { pageX: rect.x, pageY: rect.y };
55
+ }
56
+ return { pageX: _nullishCoalesce(event.pageX, () => ( 0)), pageY: _nullishCoalesce(event.pageY, () => ( 0)) };
57
+ }
58
+
49
59
  // src/charts/wordcloud/adapter.ts
50
60
  var DEFAULT_OPACITY_RANGE = [0.6, 1];
51
61
  var WORD_CLOUD_MIN_FONT_SIZE = 13;
@@ -186,18 +196,15 @@ function transformWordCloudDataToPoints(data, groups, opacityRange, maxWordCount
186
196
  });
187
197
  }
188
198
  function transformWordCloudClickData(event) {
189
- const base = {
199
+ return {
190
200
  name: event.point.name,
201
+ // `weight` is optional on the event type only to keep it comparable with
202
+ // Highcharts' `Point` (see `TypeSeedsChartWordCloudClickEvent`); always set.
191
203
  weight: _nullishCoalesce(_optionalChain([event, 'access', _ => _.point, 'access', _2 => _2.custom, 'optionalAccess', _3 => _3.rawWeight]), () => ( event.point.weight)),
192
204
  groupId: _optionalChain([event, 'access', _4 => _4.point, 'access', _5 => _5.custom, 'optionalAccess', _6 => _6.groupId]),
193
- pointIndex: event.point.index
205
+ pointIndex: event.point.index,
206
+ ...deriveClickCoords(event)
194
207
  };
195
- const isClickEvent = event.type === "click";
196
- if (!isClickEvent && event.target) {
197
- const rect = event.target.getBoundingClientRect();
198
- return { ...base, pageX: rect.x, pageY: rect.y };
199
- }
200
- return { ...base, pageX: _nullishCoalesce(event.pageX, () => ( 0)), pageY: _nullishCoalesce(event.pageY, () => ( 0)) };
201
208
  }
202
209
  function buildWordCloudOptions(props, containerWidth, hasActiveNames = false) {
203
210
  const opacityRange = _nullishCoalesce(props.opacityRange, () => ( DEFAULT_OPACITY_RANGE));
@@ -220,7 +227,7 @@ function buildWordCloudOptions(props, containerWidth, hasActiveNames = false) {
220
227
  chart: {
221
228
  ...base.chart,
222
229
  type: "wordcloud",
223
- height: _nullishCoalesce(props.height, () => ( _chunk34OKRQETjs.WORD_CLOUD_CHART_HEIGHT))
230
+ height: _nullishCoalesce(props.height, () => ( _chunkXH7ZKGHDjs.WORD_CLOUD_CHART_HEIGHT))
224
231
  },
225
232
  // `ChartRenderer`'s default-tooltip routing only recognizes "pie" and
226
233
  // "packedbubble" as single-point (non-cartesian) series types
@@ -289,10 +296,10 @@ function buildWordCloudOptions(props, containerWidth, hasActiveNames = false) {
289
296
  } : void 0,
290
297
  mouseOver: props.onWordHover ? (event) => {
291
298
  const point = event.target;
292
- if (!point) return;
299
+ if (!_optionalChain([point, 'optionalAccess', _9 => _9.name])) return;
293
300
  props.onWordHover({
294
301
  name: point.name,
295
- groupId: _optionalChain([point, 'access', _9 => _9.custom, 'optionalAccess', _10 => _10.groupId])
302
+ groupId: _optionalChain([point, 'access', _10 => _10.custom, 'optionalAccess', _11 => _11.groupId])
296
303
  });
297
304
  } : void 0,
298
305
  mouseOut: props.onWordHover ? () => {
@@ -379,20 +386,22 @@ var ChartAnnotationMarkerPortal = _react.memo.call(void 0,
379
386
  existingAnnotationContainers.forEach(
380
387
  (annotation) => annotation.setAttribute(MARKER_ATTR, "false")
381
388
  );
382
- annotationContext.labels.forEach((label) => {
383
- const labelElement = _optionalChain([label, 'access', _11 => _11.graphic, 'optionalAccess', _12 => _12.div]);
384
- if (!labelElement) return;
385
- let annotationDiv = labelElement.querySelector(
386
- `div[${MARKER_ATTR}]`
387
- );
388
- if (!annotationDiv) {
389
- annotationDiv = document.createElement("div");
390
- labelElement.appendChild(annotationDiv);
389
+ annotationContext.labels.forEach(
390
+ (label) => {
391
+ const labelElement = _optionalChain([label, 'access', _12 => _12.graphic, 'optionalAccess', _13 => _13.div]);
392
+ if (!labelElement) return;
393
+ let annotationDiv = labelElement.querySelector(
394
+ `div[${MARKER_ATTR}]`
395
+ );
396
+ if (!annotationDiv) {
397
+ annotationDiv = document.createElement("div");
398
+ labelElement.appendChild(annotationDiv);
399
+ }
400
+ annotationDiv.setAttribute(MARKER_ATTR, "true");
401
+ const xValue = _optionalChain([label, 'access', _14 => _14.options, 'optionalAccess', _15 => _15.point, 'optionalAccess', _16 => _16.x]);
402
+ newContainers[xValue] = annotationDiv;
391
403
  }
392
- annotationDiv.setAttribute(MARKER_ATTR, "true");
393
- const xValue = _optionalChain([label, 'access', _13 => _13.options, 'optionalAccess', _14 => _14.point, 'optionalAccess', _15 => _15.x]);
394
- newContainers[xValue] = annotationDiv;
395
- });
404
+ );
396
405
  annotationContainers.current = newContainers;
397
406
  forceRender();
398
407
  requestAnimationFrame(() => {
@@ -457,9 +466,9 @@ var getDatePartsInTimezone = (date, timezone) => {
457
466
  });
458
467
  const parts = formatter.formatToParts(date);
459
468
  return {
460
- day: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _16 => _16.find, 'call', _17 => _17((p) => p.type === "day"), 'optionalAccess', _18 => _18.value]), () => ( "0")), 10),
461
- month: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _19 => _19.find, 'call', _20 => _20((p) => p.type === "month"), 'optionalAccess', _21 => _21.value]), () => ( "0")), 10),
462
- year: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _22 => _22.find, 'call', _23 => _23((p) => p.type === "year"), 'optionalAccess', _24 => _24.value]), () => ( "0")), 10)
469
+ day: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _17 => _17.find, 'call', _18 => _18((p) => p.type === "day"), 'optionalAccess', _19 => _19.value]), () => ( "0")), 10),
470
+ month: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _20 => _20.find, 'call', _21 => _21((p) => p.type === "month"), 'optionalAccess', _22 => _22.value]), () => ( "0")), 10),
471
+ year: parseInt(_nullishCoalesce(_optionalChain([parts, 'access', _23 => _23.find, 'call', _24 => _24((p) => p.type === "year"), 'optionalAccess', _25 => _25.value]), () => ( "0")), 10)
463
472
  };
464
473
  };
465
474
  var deriveGranularity = (tickPositions) => {
@@ -518,20 +527,20 @@ function datetimeFormatter({
518
527
  switch (granularity) {
519
528
  case "hour":
520
529
  firstPartOptions = timeFormat === "24" ? { hour: "numeric", minute: "numeric", hour12: false } : { hour: "numeric" };
521
- if (isFirst || valueParts.day !== _optionalChain([previousValueParts, 'optionalAccess', _25 => _25.day])) {
530
+ if (isFirst || valueParts.day !== _optionalChain([previousValueParts, 'optionalAccess', _26 => _26.day])) {
522
531
  secondPartOptions = { day: "numeric", month: "short" };
523
532
  }
524
533
  break;
525
534
  case "day":
526
535
  case "week":
527
536
  firstPartOptions = { day: "numeric" };
528
- if (isFirst || valueParts.month !== _optionalChain([previousValueParts, 'optionalAccess', _26 => _26.month])) {
537
+ if (isFirst || valueParts.month !== _optionalChain([previousValueParts, 'optionalAccess', _27 => _27.month])) {
529
538
  secondPartOptions = { month: "short" };
530
539
  }
531
540
  break;
532
541
  case "month":
533
542
  firstPartOptions = { month: "short" };
534
- if (isFirst || valueParts.year !== _optionalChain([previousValueParts, 'optionalAccess', _27 => _27.year])) {
543
+ if (isFirst || valueParts.year !== _optionalChain([previousValueParts, 'optionalAccess', _28 => _28.year])) {
535
544
  secondPartOptions = { year: "numeric" };
536
545
  }
537
546
  break;
@@ -676,11 +685,11 @@ function AnnotationHeader({
676
685
  const hasIconOrTitle = Boolean(icon || title);
677
686
  if (!hasIconOrTitle && !description) return null;
678
687
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
679
- hasIconOrTitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk34OKRQETjs.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
688
+ hasIconOrTitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXH7ZKGHDjs.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
680
689
  icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: icon, size: "mini", color: "icon.base" }) : null,
681
690
  title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.body", fontSize: 200, children: title }) : null
682
691
  ] }) }) : null,
683
- description ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk34OKRQETjs.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { fontSize: 200, color: "text.subtext", children: description }) }) : null
692
+ description ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXH7ZKGHDjs.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { fontSize: 200, color: "text.subtext", children: description }) }) : null
684
693
  ] });
685
694
  }
686
695
  function DefaultChartTooltip({
@@ -702,7 +711,7 @@ function DefaultChartTooltip({
702
711
  const rows = data.map((d) => {
703
712
  const formattedValue = d.value == null ? _nullishCoalesce(invalidNumberLabel, () => ( "\u2014")) : valueFormatter({ ...valueFormat, value: d.value, abbreviate: false });
704
713
  const nameCell = {
705
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk34OKRQETjs.ChartLegendLabel, { color: d.color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLabelWithIcon, { icon: d.icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${d.name}: `, children: d.name }) }) })
714
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXH7ZKGHDjs.ChartLegendLabel, { color: d.color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLabelWithIcon, { icon: d.icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${d.name}: `, children: d.name }) }) })
706
715
  };
707
716
  const percent = d.percent;
708
717
  if (usePercentColumn) {
@@ -781,7 +790,7 @@ function DefaultChartTooltip({
781
790
  ]
782
791
  }
783
792
  ] : [];
784
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk34OKRQETjs.ChartTooltip, { children: [
793
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXH7ZKGHDjs.ChartTooltip, { children: [
785
794
  annotation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
786
795
  AnnotationHeader,
787
796
  {
@@ -790,7 +799,7 @@ function DefaultChartTooltip({
790
799
  description: annotation.description
791
800
  }
792
801
  ) : null,
793
- hideTitle ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk34OKRQETjs.ChartTooltipTitle, { children: formatTitle({
802
+ hideTitle ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXH7ZKGHDjs.ChartTooltipTitle, { children: formatTitle({
794
803
  position,
795
804
  timezone,
796
805
  timeFormat,
@@ -798,12 +807,12 @@ function DefaultChartTooltip({
798
807
  textLocale
799
808
  }) }),
800
809
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
801
- _chunk34OKRQETjs.ChartTooltipTable,
810
+ _chunkXH7ZKGHDjs.ChartTooltipTable,
802
811
  {
803
812
  rows: [...rows, ...totalRow]
804
813
  }
805
814
  ),
806
- hasOnClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk34OKRQETjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
815
+ hasOnClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXH7ZKGHDjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
807
816
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
808
817
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
809
818
  ] }) : tooltipClickLabel }) : null
@@ -821,7 +830,7 @@ var SeriesLegend = _react.memo.call(void 0, function SeriesLegend2({
821
830
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLabelWithIcon, { icon: item.icon, children: item.name }),
822
831
  color: item.color
823
832
  }));
824
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk34OKRQETjs.ChartLegend, { legendLabels: labels });
833
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXH7ZKGHDjs.ChartLegend, { legendLabels: labels });
825
834
  });
826
835
 
827
836
  // src/charts/shared/stacking.ts
@@ -914,7 +923,7 @@ function buildExportChartOptions({
914
923
  colors,
915
924
  exportTitle: rawTitle
916
925
  }) {
917
- const exportTitle = _optionalChain([rawTitle, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]);
926
+ const exportTitle = _optionalChain([rawTitle, 'optionalAccess', _29 => _29.trim, 'call', _30 => _30()]);
918
927
  const axisOptions = {
919
928
  lineColor: theme.colors.container.border.base,
920
929
  gridLineColor: theme.colors.container.border.base,
@@ -986,7 +995,7 @@ function buildExportChartOptions({
986
995
  };
987
996
  }
988
997
  function createChartExportHandle(chart, getExportChartOptions) {
989
- const resolveName = (filename) => _nullishCoalesce(filename, () => ( defaultFilename(_optionalChain([chart, 'access', _30 => _30.options, 'access', _31 => _31.chart, 'optionalAccess', _32 => _32.type]), /* @__PURE__ */ new Date())));
998
+ const resolveName = (filename) => _nullishCoalesce(filename, () => ( defaultFilename(_optionalChain([chart, 'access', _31 => _31.options, 'access', _32 => _32.chart, 'optionalAccess', _33 => _33.type]), /* @__PURE__ */ new Date())));
990
999
  const exportImage = async (type, filename) => {
991
1000
  chart.exportChartLocal(
992
1001
  { type, filename: resolveName(filename) },
@@ -1036,7 +1045,7 @@ function ChartRenderer({
1036
1045
  const exportThemeRef = _react.useRef.call(void 0, { theme, colors, exportTitle });
1037
1046
  exportThemeRef.current = { theme, colors, exportTitle };
1038
1047
  const captureChart = _react.useCallback.call(void 0, (chartInstance) => {
1039
- const forExport = _optionalChain([chartInstance, 'access', _33 => _33.options, 'access', _34 => _34.chart, 'optionalAccess', _35 => _35.forExport]);
1048
+ const forExport = _optionalChain([chartInstance, 'access', _34 => _34.options, 'access', _35 => _35.chart, 'optionalAccess', _36 => _36.forExport]);
1040
1049
  if (!forExport) {
1041
1050
  setChart(chartInstance);
1042
1051
  setPlotHeight(chartInstance.plotHeight);
@@ -1046,7 +1055,7 @@ function ChartRenderer({
1046
1055
  onReadyRef.current = onReady;
1047
1056
  _react.useEffect.call(void 0, () => {
1048
1057
  if (!chart) return;
1049
- _optionalChain([onReadyRef, 'access', _36 => _36.current, 'optionalCall', _37 => _37(
1058
+ _optionalChain([onReadyRef, 'access', _37 => _37.current, 'optionalCall', _38 => _38(
1050
1059
  createChartExportHandle(
1051
1060
  chart,
1052
1061
  () => buildExportChartOptions(exportThemeRef.current)
@@ -1062,18 +1071,18 @@ function ChartRenderer({
1062
1071
  return () => unbind();
1063
1072
  }, [chart]);
1064
1073
  const highchartsOptions = _react.useMemo.call(void 0, () => {
1065
- const pointDescriptionFormatter = _optionalChain([options, 'access', _38 => _38.accessibility, 'optionalAccess', _39 => _39.point, 'optionalAccess', _40 => _40.descriptionFormatter]);
1066
- const svgContainerLabel = _optionalChain([options, 'access', _41 => _41.accessibility, 'optionalAccess', _42 => _42.svgContainerLabel]);
1067
- const packedBubbleDataLabelFormatter = _optionalChain([options, 'access', _43 => _43.plotOptions, 'optionalAccess', _44 => _44.packedbubble, 'optionalAccess', _45 => _45.dataLabels, 'optionalAccess', _46 => _46.formatter]);
1074
+ const pointDescriptionFormatter = _optionalChain([options, 'access', _39 => _39.accessibility, 'optionalAccess', _40 => _40.point, 'optionalAccess', _41 => _41.descriptionFormatter]);
1075
+ const svgContainerLabel = _optionalChain([options, 'access', _42 => _42.accessibility, 'optionalAccess', _43 => _43.svgContainerLabel]);
1076
+ const packedBubbleDataLabelFormatter = _optionalChain([options, 'access', _44 => _44.plotOptions, 'optionalAccess', _45 => _45.packedbubble, 'optionalAccess', _46 => _46.dataLabels, 'optionalAccess', _47 => _47.formatter]);
1068
1077
  return {
1069
1078
  ...options,
1070
1079
  ...packedBubbleDataLabelFormatter ? {
1071
1080
  plotOptions: {
1072
1081
  ...options.plotOptions,
1073
1082
  packedbubble: {
1074
- ..._optionalChain([options, 'access', _47 => _47.plotOptions, 'optionalAccess', _48 => _48.packedbubble]),
1083
+ ..._optionalChain([options, 'access', _48 => _48.plotOptions, 'optionalAccess', _49 => _49.packedbubble]),
1075
1084
  dataLabels: {
1076
- ..._optionalChain([options, 'access', _49 => _49.plotOptions, 'optionalAccess', _50 => _50.packedbubble, 'optionalAccess', _51 => _51.dataLabels]),
1085
+ ..._optionalChain([options, 'access', _50 => _50.plotOptions, 'optionalAccess', _51 => _51.packedbubble, 'optionalAccess', _52 => _52.dataLabels]),
1077
1086
  formatter() {
1078
1087
  const bubblePoint = this.point;
1079
1088
  return packedBubbleDataLabelFormatter.call({
@@ -1083,7 +1092,7 @@ function ChartRenderer({
1083
1092
  index: bubblePoint.index,
1084
1093
  series: { index: bubblePoint.series.index }
1085
1094
  },
1086
- radius: _nullishCoalesce(_optionalChain([bubblePoint, 'access', _52 => _52.marker, 'optionalAccess', _53 => _53.radius]), () => ( 0))
1095
+ radius: _nullishCoalesce(_optionalChain([bubblePoint, 'access', _53 => _53.marker, 'optionalAccess', _54 => _54.radius]), () => ( 0))
1087
1096
  });
1088
1097
  }
1089
1098
  }
@@ -1091,7 +1100,7 @@ function ChartRenderer({
1091
1100
  }
1092
1101
  } : {},
1093
1102
  accessibility: {
1094
- description: _optionalChain([options, 'access', _54 => _54.accessibility, 'optionalAccess', _55 => _55.description]),
1103
+ description: _optionalChain([options, 'access', _55 => _55.accessibility, 'optionalAccess', _56 => _56.description]),
1095
1104
  ...pointDescriptionFormatter ? {
1096
1105
  point: {
1097
1106
  descriptionFormatter: (point) => {
@@ -1118,9 +1127,9 @@ function ChartRenderer({
1118
1127
  }, [options]);
1119
1128
  if (series.length === 0) return null;
1120
1129
  const chartWithAnnotations = chart;
1121
- const hasRenderedAnnotations = !!_optionalChain([chartWithAnnotations, 'optionalAccess', _56 => _56.annotations, 'optionalAccess', _57 => _57.length]) && !!_optionalChain([annotationLookup, 'optionalAccess', _58 => _58.size]) && plotHeight > 0;
1130
+ const hasRenderedAnnotations = !!_optionalChain([chartWithAnnotations, 'optionalAccess', _57 => _57.annotations, 'optionalAccess', _58 => _58.length]) && !!_optionalChain([annotationLookup, 'optionalAccess', _59 => _59.size]) && plotHeight > 0;
1122
1131
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1123
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk34OKRQETjs.GlobalChartStyleOverrides, {}),
1132
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXH7ZKGHDjs.GlobalChartStyleOverrides, {}),
1124
1133
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1125
1134
  _highchartsreactofficial.HighchartsReact,
1126
1135
  {
@@ -1139,12 +1148,12 @@ function ChartRenderer({
1139
1148
  }
1140
1149
  ) : null,
1141
1150
  chart ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1142
- _chunk34OKRQETjs.ChartTooltipPortal,
1151
+ _chunkXH7ZKGHDjs.ChartTooltipPortal,
1143
1152
  {
1144
1153
  chart,
1145
1154
  renderContent: (context) => {
1146
1155
  const ctx = context;
1147
- const isPackedBubble = !ctx.points && _optionalChain([ctx, 'access', _59 => _59.series, 'optionalAccess', _60 => _60.type]) === "packedbubble";
1156
+ const isPackedBubble = !ctx.points && _optionalChain([ctx, 'access', _60 => _60.series, 'optionalAccess', _61 => _61.type]) === "packedbubble";
1148
1157
  const isPie = !ctx.points && !isPackedBubble;
1149
1158
  const data = isPackedBubble ? (
1150
1159
  // Mirrors v1's `transformBubbleChartTooltipData`: color comes from
@@ -1154,7 +1163,7 @@ function ChartRenderer({
1154
1163
  color: _nullishCoalesce((ctx.colorIndex !== void 0 ? colors[ctx.colorIndex] : void 0), () => ( "")),
1155
1164
  name: _nullishCoalesce(ctx.key, () => ( ctx.point.name)),
1156
1165
  value: ctx.point.y,
1157
- seriesIndex: _optionalChain([ctx, 'access', _61 => _61.series, 'optionalAccess', _62 => _62.index]),
1166
+ seriesIndex: _optionalChain([ctx, 'access', _62 => _62.series, 'optionalAccess', _63 => _63.index]),
1158
1167
  pointIndex: ctx.point.index
1159
1168
  }
1160
1169
  ]
@@ -1165,7 +1174,7 @@ function ChartRenderer({
1165
1174
  value: ctx.point.y,
1166
1175
  percent: ctx.point.percentage,
1167
1176
  // Icon indexed by the hovered slice — same source the legend reads.
1168
- icon: _optionalChain([series, 'access', _63 => _63[ctx.point.index], 'optionalAccess', _64 => _64.icon])
1177
+ icon: _optionalChain([series, 'access', _64 => _64[ctx.point.index], 'optionalAccess', _65 => _65.icon])
1169
1178
  }
1170
1179
  ] : (
1171
1180
  // Drop v1's `readonly` wrapper (v2 is mutable); icon is forwarded
@@ -1175,7 +1184,7 @@ function ChartRenderer({
1175
1184
  const pctCtx = context;
1176
1185
  const pointIndex = pctCtx.point.index;
1177
1186
  const chartSeries = pctCtx.series.chart.series;
1178
- return _chunk34OKRQETjs.transformTimeSeriesTooltipData.call(void 0, {
1187
+ return _chunkXH7ZKGHDjs.transformTimeSeriesTooltipData.call(void 0, {
1179
1188
  context,
1180
1189
  data: series.map((s, i) => ({
1181
1190
  name: s.name,
@@ -1183,20 +1192,20 @@ function ChartRenderer({
1183
1192
  styles: { color: _nullishCoalesce(_nullishCoalesce(s.color, () => ( colors[i])), () => ( "")) }
1184
1193
  }))
1185
1194
  }).map((row, i) => {
1186
- const percentage = _optionalChain([chartSeries, 'access', _65 => _65[i], 'optionalAccess', _66 => _66.points, 'optionalAccess', _67 => _67[pointIndex], 'optionalAccess', _68 => _68.percentage]);
1195
+ const percentage = _optionalChain([chartSeries, 'access', _66 => _66[i], 'optionalAccess', _67 => _67.points, 'optionalAccess', _68 => _68[pointIndex], 'optionalAccess', _69 => _69.percentage]);
1187
1196
  return {
1188
1197
  color: row.color,
1189
1198
  name: row.name,
1190
1199
  value: row.value,
1191
- icon: _optionalChain([series, 'access', _69 => _69[i], 'optionalAccess', _70 => _70.icon]),
1200
+ icon: _optionalChain([series, 'access', _70 => _70[i], 'optionalAccess', _71 => _71.icon]),
1192
1201
  ...showPercent && typeof percentage === "number" && !isNaN(percentage) ? { percent: percentage } : {}
1193
1202
  };
1194
1203
  });
1195
1204
  })()
1196
1205
  );
1197
1206
  const position = isPie || isPackedBubble ? _nullishCoalesce(ctx.key, () => ( ctx.point.name)) : context.x;
1198
- const tickPositions = _optionalChain([ctx, 'access', _71 => _71.points, 'optionalAccess', _72 => _72[0], 'optionalAccess', _73 => _73.series, 'optionalAccess', _74 => _74.xAxis, 'optionalAccess', _75 => _75.tickPositions]);
1199
- const resolved = _optionalChain([annotationLookup, 'optionalAccess', _76 => _76.get, 'call', _77 => _77(context.point.x)]);
1207
+ const tickPositions = _optionalChain([ctx, 'access', _72 => _72.points, 'optionalAccess', _73 => _73[0], 'optionalAccess', _74 => _74.series, 'optionalAccess', _75 => _75.xAxis, 'optionalAccess', _76 => _76.tickPositions]);
1208
+ const resolved = _optionalChain([annotationLookup, 'optionalAccess', _77 => _77.get, 'call', _78 => _78(context.point.x)]);
1200
1209
  const annotation = resolved ? {
1201
1210
  icon: resolved.icon,
1202
1211
  color: resolved.color,
@@ -1242,5 +1251,6 @@ function ChartRenderer({
1242
1251
 
1243
1252
 
1244
1253
 
1245
- exports.datetimeFormatter = datetimeFormatter; exports.valueFormatter = valueFormatter; exports.buildBaseChartOptions = buildBaseChartOptions; exports.deriveMaxFontSize = deriveMaxFontSize; exports.deriveMaxWordCount = deriveMaxWordCount; exports.deriveWordPadding = deriveWordPadding; exports.buildWordCloudOptions = buildWordCloudOptions; exports.useSeedsChartSetup = useSeedsChartSetup; exports.ChartRenderer = ChartRenderer;
1246
- //# sourceMappingURL=chunk-5TWNMPQU.js.map
1254
+
1255
+ exports.datetimeFormatter = datetimeFormatter; exports.valueFormatter = valueFormatter; exports.buildBaseChartOptions = buildBaseChartOptions; exports.deriveClickCoords = deriveClickCoords; exports.deriveMaxFontSize = deriveMaxFontSize; exports.deriveMaxWordCount = deriveMaxWordCount; exports.deriveWordPadding = deriveWordPadding; exports.buildWordCloudOptions = buildWordCloudOptions; exports.useSeedsChartSetup = useSeedsChartSetup; exports.ChartRenderer = ChartRenderer;
1256
+ //# sourceMappingURL=chunk-V5EXL244.js.map