@ai-matrx/associations 0.13.3 → 0.13.5

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,15 @@
1
1
  # Changelog — @ai-matrx/associations
2
2
 
3
+ ## 0.13.5
4
+
5
+ - **The default picker window stacks above a modal it was opened from.** `DefaultWindowShell` painted at z-50 under a blocking Sheet/Drawer's z-10000 scrim, so picking an option closed the modal. It now wraps its root in design-system's `FloatingLayer` and paints at `useFloatingLayerZIndex(50)`. Needs `@ai-matrx/design-system` 0.48.0. No consumer action (hosts that bind `windowShell` follow design-system 0.48.0's consumer action).
6
+
7
+ ## 0.13.4
8
+
9
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
10
+ `git diff npm/associations/v0.13.3..npm/associations/v0.13.4 -- apps/shared/associations`).
11
+ No source changes intended and no consumer action required.
12
+
3
13
  ## 0.13.3
4
14
 
5
15
  **A named pair is written with its registered name.** `platform.association_types` names some pairs
@@ -14,6 +24,9 @@ processed_document -> scope". `assoc_add` now writes the registry's label for ev
14
24
  `registeredEdgeLabel`), written by `pnpm gen:entity-types` from the live registry;
15
25
  `pnpm check:entity-types` now also fails when it drifts.
16
26
  * Regenerated vocabulary picks up `spatial_board`.
27
+ * `AssociationCardGrid` columns follow the grid's own width (container queries `@md` / `@3xl`),
28
+ not the viewport — in a 360–420px side rail the viewport rule drew three columns and hid every
29
+ card's name.
17
30
 
18
31
  ## 0.13.2
19
32
 
@@ -2263,6 +2263,7 @@ function DefaultWindowShell({
2263
2263
  className
2264
2264
  }) {
2265
2265
  const panelRef = (0, import_react11.useRef)(null);
2266
+ const zIndex = (0, import_design_system2.useFloatingLayerZIndex)(50);
2266
2267
  const [mounted, setMounted] = (0, import_react11.useState)(false);
2267
2268
  const [isMobile, setIsMobile] = (0, import_react11.useState)(false);
2268
2269
  const [rect, setRect] = (0, import_react11.useState)(() => centred());
@@ -2339,19 +2340,19 @@ function DefaultWindowShell({
2339
2340
  height: rect.height
2340
2341
  };
2341
2342
  return (0, import_react_dom.createPortal)(
2342
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
2343
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_design_system2.FloatingLayer, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
2343
2344
  "div",
2344
2345
  {
2345
2346
  ref: panelRef,
2346
2347
  role: "dialog",
2347
2348
  "aria-labelledby": labelId,
2348
2349
  tabIndex: -1,
2349
- style,
2350
+ style: { ...style, zIndex },
2350
2351
  className: (0, import_design_system2.cn)(
2351
2352
  // Non-modal by design: no backdrop element exists, so the page
2352
2353
  // behind keeps every click. `pointer-events-auto` re-asserts our
2353
2354
  // own subtree in case a Radix surface left <body> inert.
2354
- "pointer-events-auto fixed z-50 flex flex-col overflow-hidden border border-border bg-card text-card-foreground shadow-xl outline-none",
2355
+ "pointer-events-auto fixed flex flex-col overflow-hidden border border-border bg-card text-card-foreground shadow-xl outline-none",
2355
2356
  isMobile ? "inset-x-0 bottom-0 max-h-[85dvh] rounded-t-xl" : "rounded-xl",
2356
2357
  className
2357
2358
  ),
@@ -2425,7 +2426,7 @@ function DefaultWindowShell({
2425
2426
  )
2426
2427
  ]
2427
2428
  }
2428
- ),
2429
+ ) }),
2429
2430
  document.body
2430
2431
  );
2431
2432
  }
@@ -3604,7 +3605,7 @@ function AssociationCardGrid({
3604
3605
  const role = store.registry.getEntityInfo(token).contentRole;
3605
3606
  return !role || !roleIds.has(role);
3606
3607
  }) : [];
3607
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: (0, import_design_system8.cn)("space-y-5", className), children: [
3608
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: (0, import_design_system8.cn)("@container space-y-5", className), children: [
3608
3609
  CONTENT_ROLES.map((role) => {
3609
3610
  const inRole = list.filter(
3610
3611
  (token) => store.registry.getEntityInfo(token).contentRole === role.id
@@ -3623,7 +3624,7 @@ function AssociationCardGrid({
3623
3624
  ] }),
3624
3625
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "hidden text-xs text-muted-foreground sm:block", children: role.tagline })
3625
3626
  ] }),
3626
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3", children: inRole.map((token) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AssociationCard, { token }, token)) })
3627
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3", children: inRole.map((token) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AssociationCard, { token }, token)) })
3627
3628
  ] }, role.id);
3628
3629
  }),
3629
3630
  roleless.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { children: [
@@ -3631,7 +3632,7 @@ function AssociationCardGrid({
3631
3632
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "text-sm font-semibold text-foreground", children: "Filed under" }),
3632
3633
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "hidden text-xs text-muted-foreground sm:block", children: "Libraries, topics and other places this is kept." })
3633
3634
  ] }),
3634
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3", children: roleless.map((token) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AssociationCard, { token }, token)) })
3635
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3", children: roleless.map((token) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AssociationCard, { token }, token)) })
3635
3636
  ] })
3636
3637
  ] });
3637
3638
  }