@ai-matrx/design-system 0.18.5 → 0.18.7

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.
@@ -3419,7 +3419,7 @@ function MatrxCopyMenuSession(props) {
3419
3419
  if (!column.id || !column.label || ids.has(column.id)) throw new Error("Sheet columns require unique nonempty ids and labels.");
3420
3420
  ids.add(column.id);
3421
3421
  }
3422
- for (const row of rows) for (const key of Object.keys(row)) if (!ids.has(key)) throw new Error(`Sheet row key "${key}" is not declared in sheetColumns.`);
3422
+ for (const row of rows) for (const key of Object.keys(row)) if (!ids.has(key)) throw new Error("Table data contains a field outside its declared columns.");
3423
3423
  return {
3424
3424
  kind: "rows",
3425
3425
  rows,
@@ -7337,6 +7337,7 @@ function MatrxDataTableCore({
7337
7337
  [visibleColumns]
7338
7338
  );
7339
7339
  const tableCopySourceNamespace = (0, import_react13.useId)();
7340
+ const tableDndContextId = (0, import_react13.useId)();
7340
7341
  const defaultCopyTitle = toolbar?.title || "Table";
7341
7342
  const defaultCopy = (0, import_react13.useMemo)(() => ({
7342
7343
  label: defaultCopyTitle,
@@ -7870,6 +7871,7 @@ function MatrxDataTableCore({
7870
7871
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
7871
7872
  import_core3.DndContext,
7872
7873
  {
7874
+ id: tableDndContextId,
7873
7875
  sensors: hierarchySensors,
7874
7876
  collisionDetection: import_core3.pointerWithin,
7875
7877
  measuring: { droppable: { strategy: import_core3.MeasuringStrategy.Always } },