@abpjs/ui 0.2.0-next.16 → 0.2.0-next.17

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-next.17
4
+
5
+ A prerelease under npm's `next` tag.
6
+
7
+ - guard: a second slot in an account's header, `guard.account.actions.end` (`{ account, detail, reload }`), after the
8
+ area's merge and lock, so a host's destructive action (an erasure) stays last.
9
+
3
10
  ## 0.2.0-next.16
4
11
 
5
12
  A prerelease under npm's `next` tag.
package/dist/guard.d.ts CHANGED
@@ -1259,9 +1259,10 @@ interface AccountScreenProps {
1259
1259
  /**
1260
1260
  * An account: its name, addresses and second factor, the directories it comes from and which one wins, the groups it's
1261
1261
  * in (directly or through others), and the merges it was in. Lock, unlock and merge are shown only where AbpGuard allows
1262
- * them for this very account (a helpdesk scoped to one directory, say). A host adds its own buttons through the
1263
- * `guard.account.actions` slot, notices above the panels through `guard.account.notices`, and panels below the account's
1264
- * through `guard.account.panels`; each gets `{ account, detail, reload }`.
1262
+ * them for this very account (a helpdesk scoped to one directory, say). A host adds its own buttons before the area's
1263
+ * through the `guard.account.actions` slot and after them through `guard.account.actions.end` (a destructive one last),
1264
+ * notices above the panels through `guard.account.notices`, and panels below the account's through
1265
+ * `guard.account.panels`; each gets `{ account, detail, reload }`.
1265
1266
  */
1266
1267
  declare function AccountScreen({ id, routes }: AccountScreenProps): react.JSX.Element;
1267
1268
 
package/dist/guard.js CHANGED
@@ -1371,7 +1371,8 @@ function AccountScreen({ id, routes = guardRoutes() }) {
1371
1371
  actions: !merged && /* @__PURE__ */ jsxs6(HStack5, { gap: "2", children: [
1372
1372
  account && /* @__PURE__ */ jsx6(HostSlot, { name: "guard.account.actions", context: slotContext }),
1373
1373
  may("merge") && /* @__PURE__ */ jsx6(Button5, { onClick: () => navigate(routes.accountMerge(account?.id ?? id)), children: tm("mergeInto") }),
1374
- account?.status === "Locked" ? may("unlock") && /* @__PURE__ */ jsx6(Button5, { onClick: () => setLocked(false), loading: action.busy, children: t("unlock") }) : may("lock") && /* @__PURE__ */ jsx6(Button5, { danger: true, onClick: () => setLocked(true), loading: action.busy, children: t("lock") })
1374
+ account?.status === "Locked" ? may("unlock") && /* @__PURE__ */ jsx6(Button5, { onClick: () => setLocked(false), loading: action.busy, children: t("unlock") }) : may("lock") && /* @__PURE__ */ jsx6(Button5, { danger: true, onClick: () => setLocked(true), loading: action.busy, children: t("lock") }),
1375
+ account && /* @__PURE__ */ jsx6(HostSlot, { name: "guard.account.actions.end", context: slotContext })
1375
1376
  ] })
1376
1377
  }
1377
1378
  ),