@ai-matrx/records-ui 0.115.76 → 0.115.77

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.115.77
4
+
5
+ UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
+ Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
7
+
3
8
  ## 0.115.76
4
9
  ### Unreleased
5
10
 
package/dist/index.cjs CHANGED
@@ -52684,19 +52684,19 @@ var GROUPS = ["Move", "Select", "Edit", "Clipboard", "Record"];
52684
52684
  function asksShortcutHelp(event) {
52685
52685
  const target = event.target;
52686
52686
  const typing = Boolean(target && (["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName) || target.isContentEditable));
52687
- if (event.key === "/" && (event.ctrlKey || event.metaKey) && !event.altKey) return true;
52688
52687
  return event.key === "?" && !event.ctrlKey && !event.metaKey && !event.altKey && !typing;
52689
52688
  }
52690
52689
  function GridShortcutsHelp() {
52691
52690
  const [open, setOpen] = (0, import_react302.useState)(false);
52692
52691
  (0, import_react302.useEffect)(() => {
52693
52692
  const onKey = (event) => {
52694
- if (event.defaultPrevented || !asksShortcutHelp(event)) return;
52693
+ if (!asksShortcutHelp(event)) return;
52695
52694
  event.preventDefault();
52695
+ event.stopPropagation();
52696
52696
  setOpen((now) => !now);
52697
52697
  };
52698
- document.addEventListener("keydown", onKey);
52699
- return () => document.removeEventListener("keydown", onKey);
52698
+ document.addEventListener("keydown", onKey, true);
52699
+ return () => document.removeEventListener("keydown", onKey, true);
52700
52700
  }, []);
52701
52701
  if (!open) return null;
52702
52702
  const mac = typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform);
@@ -52962,7 +52962,7 @@ function duplicateProgressWords(p) {
52962
52962
  if (p.views.total > 0 && p.step === "views") return `Copying views \xB7 ${p.views.done} of ${p.views.total}`;
52963
52963
  return "Copying columns\u2026";
52964
52964
  }
52965
- function TableDuplicateDialog({ tableId, name, open, onOpenChange, onDuplicated }) {
52965
+ function TableDuplicateDialog({ tableId, name, organizationId, open, onOpenChange, onDuplicated }) {
52966
52966
  const client = (0, import_react308.useRecordsClient)();
52967
52967
  const host = useRecordsUi();
52968
52968
  const [typed2, setTyped] = (0, import_react307.useState)(() => copyNameFor(name));
@@ -52984,6 +52984,7 @@ function TableDuplicateDialog({ tableId, name, open, onOpenChange, onDuplicated
52984
52984
  const made = await client.tableDuplicate({
52985
52985
  tableId,
52986
52986
  withRecords,
52987
+ ...organizationId ? { organizationId } : {},
52987
52988
  name: typed2.trim(),
52988
52989
  onProgress: (progress) => setPhase({ kind: "copying", progress })
52989
52990
  });
@@ -54447,6 +54448,7 @@ function TablePage({
54447
54448
  {
54448
54449
  tableId,
54449
54450
  name: table.data.name,
54451
+ organizationId: organizationId ?? null,
54450
54452
  open: duplicateOpen,
54451
54453
  onOpenChange: setDuplicateOpen,
54452
54454
  ...actionHost?.onDuplicated ? { onDuplicated: actionHost.onDuplicated } : {}