@splunk/visualizations 28.2.0 → 28.2.2

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 (61) hide show
  1. package/Area.js +11 -12
  2. package/Area.js.map +2 -2
  3. package/Bar.js +11 -12
  4. package/Bar.js.map +2 -2
  5. package/Bubble.js +11 -12
  6. package/Bubble.js.map +2 -2
  7. package/CHANGELOG.external.md +36 -0
  8. package/ChoroplethSvg.js +11 -12
  9. package/ChoroplethSvg.js.map +2 -2
  10. package/Column.js +11 -12
  11. package/Column.js.map +2 -2
  12. package/Ellipse.js +11 -12
  13. package/Ellipse.js.map +2 -2
  14. package/Events.js +11 -12
  15. package/Events.js.map +2 -2
  16. package/FillerGauge.js +11 -12
  17. package/FillerGauge.js.map +2 -2
  18. package/Image.js +11 -12
  19. package/Image.js.map +2 -2
  20. package/Line.js +11 -12
  21. package/Line.js.map +2 -2
  22. package/LinkGraph.js +11 -12
  23. package/LinkGraph.js.map +2 -2
  24. package/Map.js +11 -12
  25. package/Map.js.map +2 -2
  26. package/Markdown.js +11 -12
  27. package/Markdown.js.map +2 -2
  28. package/MarkerGauge.js +11 -12
  29. package/MarkerGauge.js.map +2 -2
  30. package/ParallelCoordinates.js +11 -12
  31. package/ParallelCoordinates.js.map +2 -2
  32. package/Pie.js +11 -12
  33. package/Pie.js.map +2 -2
  34. package/Punchcard.js +11 -12
  35. package/Punchcard.js.map +2 -2
  36. package/Rectangle.js +11 -12
  37. package/Rectangle.js.map +2 -2
  38. package/Sankey.js +11 -12
  39. package/Sankey.js.map +2 -2
  40. package/Scatter.js +11 -12
  41. package/Scatter.js.map +2 -2
  42. package/SingleValue.js +11 -12
  43. package/SingleValue.js.map +2 -2
  44. package/SingleValueIcon.js +11 -12
  45. package/SingleValueIcon.js.map +2 -2
  46. package/SingleValueRadial.js +11 -12
  47. package/SingleValueRadial.js.map +2 -2
  48. package/Table.js +105 -43
  49. package/Table.js.map +3 -3
  50. package/Timeline.js +11 -12
  51. package/Timeline.js.map +2 -2
  52. package/common/withDashboardViz.js +11 -12
  53. package/common/withDashboardViz.js.map +2 -2
  54. package/dist/types/Table/PureTable.d.ts.map +1 -1
  55. package/dist/types/Table/cells/ArrayCell.d.ts.map +1 -1
  56. package/dist/types/Table/cells/TextCell.d.ts.map +1 -1
  57. package/dist/types/Table/hooks.d.ts +2 -1
  58. package/dist/types/Table/hooks.d.ts.map +1 -1
  59. package/dist/types/common/components/IconPlaceholder.d.ts.map +1 -1
  60. package/dist/types/common/hocs/FixedSizeContainer.d.ts.map +1 -1
  61. package/package.json +15 -15
package/Bubble.js CHANGED
@@ -2299,7 +2299,7 @@ var Cover = styled_components_default.div`
2299
2299
  bottom: 0;
2300
2300
  `;
2301
2301
  var Blocker = styled_components_default.div.attrs({
2302
- "data-splunk-visualization-version": "28.2.0 - 7eea200d8"
2302
+ "data-splunk-visualization-version": "28.2.2 - b595a32f1"
2303
2303
  })`
2304
2304
  position: relative;
2305
2305
  width: 100%;
@@ -2338,14 +2338,18 @@ var FixSizeItem = styled_components_default.div.attrs(
2338
2338
  ({
2339
2339
  width,
2340
2340
  height
2341
- }) => ({
2342
- style: __spreadValues(__spreadValues({}, width && { width: (0, style_exports.toPx)(width) }), height && { height: (0, style_exports.toPx)(height) })
2343
- })
2341
+ }) => {
2342
+ const validHeight = typeof height === "number" ? Math.max(height, 1) : height;
2343
+ return {
2344
+ style: __spreadValues(__spreadValues({}, width && { width: (0, style_exports.toPx)(width) }), validHeight && { height: (0, style_exports.toPx)(validHeight) })
2345
+ };
2346
+ }
2344
2347
  )`
2345
2348
  position: relative;
2346
2349
  flex-direction: column;
2347
2350
  flex: 1;
2348
2351
  display: flex;
2352
+ overflow: hidden !important;
2349
2353
  background-color: ${(props) => (0, colorUtils_exports.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor}};
2350
2354
  `;
2351
2355
  var ItemContent = styled_components_default.div`
@@ -2358,6 +2362,7 @@ var FixSizeItemContent = styled_components_default.div`
2358
2362
  flex: 1;
2359
2363
  position: relative;
2360
2364
  box-sizing: border-box;
2365
+ overflow: hidden !important;
2361
2366
  `;
2362
2367
  var withFixedSizeContainer = (Viz) => {
2363
2368
  const FixedSizeContainer = (props) => {
@@ -2375,7 +2380,7 @@ var withFixedSizeContainer = (Viz) => {
2375
2380
  FixSizeItem,
2376
2381
  {
2377
2382
  "data-test": "fix-size-item",
2378
- "data-splunk-visualization-version": "28.2.0 - 7eea200d8",
2383
+ "data-splunk-visualization-version": "28.2.2 - b595a32f1",
2379
2384
  width,
2380
2385
  height,
2381
2386
  backgroundColor
@@ -2404,12 +2409,6 @@ var IconPlaceholder = (props) => {
2404
2409
  iconColor,
2405
2410
  backgroundColor
2406
2411
  } = props;
2407
- const cachedHandleResize = react_exports.useCallback((w, h) => {
2408
- setContainerWidth(w);
2409
- setContainerHeight(h);
2410
- }, []);
2411
- const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
2412
- const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
2413
2412
  let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
2414
2413
  if (icon) {
2415
2414
  content = react_exports.createElement(icon, {
@@ -2426,7 +2425,7 @@ var IconPlaceholder = (props) => {
2426
2425
  "data-test": "icon-placeholder"
2427
2426
  });
2428
2427
  }
2429
- return /* @__PURE__ */ react_exports.createElement("div", { style: { width: containerWidth, height: containerHeight, background: backgroundColor } }, /* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }), content);
2428
+ return /* @__PURE__ */ react_exports.createElement("div", { style: { width, height, background: backgroundColor } }, content);
2430
2429
  };
2431
2430
  var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
2432
2431