@vizzly/dashboard 0.15.0-dev-db7e4a949b12879998b7c556b6e335f69df1c037 → 0.15.0-dev-dff507f80d240e8e0f91b6d6c4eec2c82f49374f

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.
@@ -31482,7 +31482,7 @@ var ViewWrapper = function ViewWrapper(_ref) {
31482
31482
  "data-component": "view-wrapper",
31483
31483
  "data-idfordownload": "true",
31484
31484
  children: children
31485
- });
31485
+ }, id);
31486
31486
  };
31487
31487
  var styles$1 = /*#__PURE__*/buildStyleOverrides({
31488
31488
  display: 'flex',
@@ -63504,10 +63504,11 @@ var StaticCustomView = function StaticCustomView(_ref) {
63504
63504
  });
63505
63505
  };
63506
63506
 
63507
- var uniqueId = function uniqueId(dashboardId, rowIndex, cellIndex) {
63507
+ var uniqueId = function uniqueId(dashboardId, rowIndex, cellIndex, viewId) {
63508
63508
  // Do not make ID too long as long IDs aren't supported everywhere.
63509
63509
  // e.g Area chart gradient references break when the ID is too long... don't ask.
63510
- return dashboardId.slice(-15) + "_" + rowIndex + "_" + cellIndex;
63510
+
63511
+ return dashboardId.slice(-10) + "_" + rowIndex + "_" + cellIndex + (viewId ? "_" + viewId.slice(-10) : '');
63511
63512
  };
63512
63513
  var ResizableRowCell = function ResizableRowCell(props) {
63513
63514
  var _onCreateNew = props.onCreateNew,
@@ -63589,7 +63590,7 @@ var ResizableRowCell = function ResizableRowCell(props) {
63589
63590
  rowIndex: rowIndex,
63590
63591
  colWidth: props.colWidth,
63591
63592
  cellIndex: cellIndex,
63592
- id: uniqueId(dashboard.id, rowIndex, cellIndex),
63593
+ id: uniqueId(dashboard.id, rowIndex, cellIndex, component.attributes.viewId),
63593
63594
  componentValidWithDataSet: true,
63594
63595
  generatingPDF: props.generatingPDF,
63595
63596
  setComponentReports: function setComponentReports(reports) {