@universe-platform/ui 0.1.0-beta.73 → 0.1.0-beta.74

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/dist/index.js CHANGED
@@ -6352,6 +6352,7 @@ function SubTableViewer({ rowId, column, value, onChange, context, readOnly }) {
6352
6352
  return [];
6353
6353
  }, [targetColumns, executeAction]);
6354
6354
  const updateParentLinkage = async (updated) => {
6355
+ var _a2;
6355
6356
  const isNewRow = rowId.startsWith("temp_");
6356
6357
  if (context == null ? void 0 : context.updateQuietly) {
6357
6358
  context.updateQuietly(rowId, column.name, updated);
@@ -6373,6 +6374,7 @@ function SubTableViewer({ rowId, column, value, onChange, context, readOnly }) {
6373
6374
  if (context == null ? void 0 : context.triggerSaveSuccess) {
6374
6375
  context.triggerSaveSuccess();
6375
6376
  }
6377
+ (_a2 = context == null ? void 0 : context.refreshRows) == null ? void 0 : _a2.call(context);
6376
6378
  } catch (err) {
6377
6379
  console.error("Failed to auto-save parent linkage", err);
6378
6380
  }
@@ -6523,7 +6525,7 @@ function SubTableViewer({ rowId, column, value, onChange, context, readOnly }) {
6523
6525
  };
6524
6526
  }, []);
6525
6527
  const handleCommitRecordCell = async (recordId, colName, value2) => {
6526
- var _a2;
6528
+ var _a2, _b2;
6527
6529
  const previousRecord = linkedRecords.find((r) => r.id === recordId);
6528
6530
  const previousValue = (_a2 = previousRecord == null ? void 0 : previousRecord.data) == null ? void 0 : _a2[colName];
6529
6531
  if (previousValue === value2) return true;
@@ -6567,6 +6569,7 @@ function SubTableViewer({ rowId, column, value, onChange, context, readOnly }) {
6567
6569
  if (context == null ? void 0 : context.triggerSaveSuccess) {
6568
6570
  context.triggerSaveSuccess();
6569
6571
  }
6572
+ (_b2 = context == null ? void 0 : context.refreshRows) == null ? void 0 : _b2.call(context);
6570
6573
  }
6571
6574
  return true;
6572
6575
  } catch (err) {
@@ -11664,6 +11667,7 @@ function TableBlockClient({
11664
11667
  handleUpdateColumnConfig,
11665
11668
  onMarkForDeletion: handleMarkForDeletion,
11666
11669
  triggerSaveSuccess,
11670
+ refreshRows: refetchTableData,
11667
11671
  schema,
11668
11672
  orgId,
11669
11673
  componentId,
@@ -11920,6 +11924,7 @@ var TableRow = import_react24.default.memo(function TableRow2({
11920
11924
  handleUpdateColumnConfig,
11921
11925
  onMarkForDeletion,
11922
11926
  triggerSaveSuccess,
11927
+ refreshRows,
11923
11928
  schema,
11924
11929
  orgId,
11925
11930
  componentId,
@@ -12098,6 +12103,7 @@ var TableRow = import_react24.default.memo(function TableRow2({
12098
12103
  rowData: row.data,
12099
12104
  updateQuietly: handleQuietCellChange,
12100
12105
  triggerSaveSuccess,
12106
+ refreshRows,
12101
12107
  onUpdateColumnConfig: handleUpdateColumnConfig,
12102
12108
  readOnly,
12103
12109
  permissions,
package/dist/index.mjs CHANGED
@@ -6153,6 +6153,7 @@ function SubTableViewer({ rowId, column, value, onChange, context, readOnly }) {
6153
6153
  return [];
6154
6154
  }, [targetColumns, executeAction]);
6155
6155
  const updateParentLinkage = async (updated) => {
6156
+ var _a2;
6156
6157
  const isNewRow = rowId.startsWith("temp_");
6157
6158
  if (context == null ? void 0 : context.updateQuietly) {
6158
6159
  context.updateQuietly(rowId, column.name, updated);
@@ -6174,6 +6175,7 @@ function SubTableViewer({ rowId, column, value, onChange, context, readOnly }) {
6174
6175
  if (context == null ? void 0 : context.triggerSaveSuccess) {
6175
6176
  context.triggerSaveSuccess();
6176
6177
  }
6178
+ (_a2 = context == null ? void 0 : context.refreshRows) == null ? void 0 : _a2.call(context);
6177
6179
  } catch (err) {
6178
6180
  console.error("Failed to auto-save parent linkage", err);
6179
6181
  }
@@ -6324,7 +6326,7 @@ function SubTableViewer({ rowId, column, value, onChange, context, readOnly }) {
6324
6326
  };
6325
6327
  }, []);
6326
6328
  const handleCommitRecordCell = async (recordId, colName, value2) => {
6327
- var _a2;
6329
+ var _a2, _b2;
6328
6330
  const previousRecord = linkedRecords.find((r) => r.id === recordId);
6329
6331
  const previousValue = (_a2 = previousRecord == null ? void 0 : previousRecord.data) == null ? void 0 : _a2[colName];
6330
6332
  if (previousValue === value2) return true;
@@ -6368,6 +6370,7 @@ function SubTableViewer({ rowId, column, value, onChange, context, readOnly }) {
6368
6370
  if (context == null ? void 0 : context.triggerSaveSuccess) {
6369
6371
  context.triggerSaveSuccess();
6370
6372
  }
6373
+ (_b2 = context == null ? void 0 : context.refreshRows) == null ? void 0 : _b2.call(context);
6371
6374
  }
6372
6375
  return true;
6373
6376
  } catch (err) {
@@ -11465,6 +11468,7 @@ function TableBlockClient({
11465
11468
  handleUpdateColumnConfig,
11466
11469
  onMarkForDeletion: handleMarkForDeletion,
11467
11470
  triggerSaveSuccess,
11471
+ refreshRows: refetchTableData,
11468
11472
  schema,
11469
11473
  orgId,
11470
11474
  componentId,
@@ -11721,6 +11725,7 @@ var TableRow = React19.memo(function TableRow2({
11721
11725
  handleUpdateColumnConfig,
11722
11726
  onMarkForDeletion,
11723
11727
  triggerSaveSuccess,
11728
+ refreshRows,
11724
11729
  schema,
11725
11730
  orgId,
11726
11731
  componentId,
@@ -11899,6 +11904,7 @@ var TableRow = React19.memo(function TableRow2({
11899
11904
  rowData: row.data,
11900
11905
  updateQuietly: handleQuietCellChange,
11901
11906
  triggerSaveSuccess,
11907
+ refreshRows,
11902
11908
  onUpdateColumnConfig: handleUpdateColumnConfig,
11903
11909
  readOnly,
11904
11910
  permissions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universe-platform/ui",
3
- "version": "0.1.0-beta.73",
3
+ "version": "0.1.0-beta.74",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",