@ai-matrx/detail 0.1.172 → 0.1.174

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,19 @@
1
1
  # Changelog — @ai-matrx/detail
2
2
 
3
+ ## 0.1.174
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/detail/src`.
7
+
8
+ ## 0.1.173
9
+
10
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
11
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
12
+ Diff: `git diff ff3c12deae a7b983d25f -- apps/shared/detail/src`
13
+
14
+ Changed shipped source files (1):
15
+ - `apps/shared/detail/src/react/DetailHeader.tsx`
16
+
3
17
  ## 0.1.172
4
18
 
5
19
  - **The list arg is encoded once (X1, review item 12).** `detailListToUrlArgs` returns the list RAW and `detailListFromUrlArgs`
@@ -1027,6 +1041,8 @@ No source changes intended and no consumer action required.
1027
1041
  ## 0.1.3
1028
1042
  ### Unreleased
1029
1043
 
1044
+ - The header's copy-record-id button is THE id component (`RecordId look="icon"`); the narrow overflow menu's "Copy record id" confirms with a toast.
1045
+
1030
1046
  - **Added — the not-found state carries the host's error actions.** A record that cannot be read
1031
1047
  (moved, deleted, or not shared with the person) now renders design-system's `ErrorActions` slot
1032
1048
  beside its sentence, with `origin: "detail/DetailBody"`, the sentence as `message`, an
package/dist/react.cjs CHANGED
@@ -662,7 +662,6 @@ function useDetailMenuActions(core) {
662
662
  }
663
663
  function DetailActions({ core, optional = "inline" }) {
664
664
  const host = useDetailHost();
665
- const [copied, setCopied] = (0, import_react7.useState)(false);
666
665
  const [menuOpen, setMenuOpen] = (0, import_react7.useState)(false);
667
666
  const menuRef = (0, import_react7.useRef)(null);
668
667
  const copyId = async () => {
@@ -671,8 +670,7 @@ function DetailActions({ core, optional = "inline" }) {
671
670
  host.notify.error("Could not copy the record id to the clipboard.");
672
671
  return;
673
672
  }
674
- setCopied(true);
675
- window.setTimeout(() => setCopied(false), 1500);
673
+ host.notify.success("Record id copied");
676
674
  };
677
675
  (0, import_react7.useEffect)(() => {
678
676
  if (!menuOpen) return void 0;
@@ -744,18 +742,7 @@ function DetailActions({ core, optional = "inline" }) {
744
742
  },
745
743
  value
746
744
  )),
747
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
748
- "button",
749
- {
750
- type: "button",
751
- onClick: () => void copyId(),
752
- className: ICON_BUTTON,
753
- "aria-label": "Copy record id",
754
- title: "Copy record id",
755
- "data-detail-copy-id": true,
756
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons3.CheckIcon, { className: "h-3.5 w-3.5 text-primary" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons3.CopyIcon, { className: "h-3.5 w-3.5" })
757
- }
758
- )
745
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "inline-flex", "data-detail-copy-id": true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_design_system.RecordId, { value: core.ref.id, label: "Record", look: "icon" }) })
759
746
  ]
760
747
  }
761
748
  ),