@ai-matrx/vault 0.1.7 → 0.1.8

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,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.7
3
+ ## 0.1.8
4
4
  ### Unreleased
5
5
 
6
6
  - Host-held lock: `host.lock` (`VaultLock`: `locked`, `subscribe`, `unlock`, optional `lock` and
package/dist/index.cjs CHANGED
@@ -5256,7 +5256,7 @@ var message = (e, fallback) => {
5256
5256
  const m = e instanceof Error && e.message ? e.message : fallback;
5257
5257
  return copyRefusal(m) ?? m;
5258
5258
  };
5259
- function useAction() {
5259
+ function useConfirmedChange() {
5260
5260
  const confirmed = useConfirmed();
5261
5261
  const [busy, setBusy] = (0, import_react24.useState)(null);
5262
5262
  const [error, setError] = (0, import_react24.useState)(null);
@@ -5300,7 +5300,7 @@ var import_controls19 = require("@ai-matrx/design-system/controls");
5300
5300
  var import_jsx_runtime24 = require("react/jsx-runtime");
5301
5301
  var NONE = "__none__";
5302
5302
  function MovePanel({ item, port, organizations, onClose, onChanged }) {
5303
- const { busy, error, notice, run, setNotice } = useAction();
5303
+ const { busy, error, notice, run, setNotice } = useConfirmedChange();
5304
5304
  const moves = moveDestinations(item, organizations);
5305
5305
  const copies = copyDestinations(organizations, item);
5306
5306
  const [moveTo, setMoveTo] = (0, import_react25.useState)("");
@@ -5406,7 +5406,7 @@ function useGrants(port, item) {
5406
5406
  }
5407
5407
  function SharePanel({ item, port, organizations, onClose, onChanged }) {
5408
5408
  const { grants, setGrants, loadError, reload } = useGrants(port, item);
5409
- const { busy, error, notice, run } = useAction();
5409
+ const { busy, error, notice, run } = useConfirmedChange();
5410
5410
  const [email, setEmail] = (0, import_react26.useState)("");
5411
5411
  const [level, setLevel] = (0, import_react26.useState)("use");
5412
5412
  const [more, setMore] = (0, import_react26.useState)(false);
@@ -5529,7 +5529,7 @@ function SharePanel({ item, port, organizations, onClose, onChanged }) {
5529
5529
  );
5530
5530
  }
5531
5531
  function IntoOrganization({ item, port, organizations, grants, onShared }) {
5532
- const { busy, error, notice, run } = useAction();
5532
+ const { busy, error, notice, run } = useConfirmedChange();
5533
5533
  const open = organizations.filter((o) => !grants.some((g) => g.organizationId === o.id));
5534
5534
  const [target, setTarget] = (0, import_react26.useState)("");
5535
5535
  const [level, setLevel] = (0, import_react26.useState)("use");
@@ -5569,7 +5569,7 @@ var CHOICES = [
5569
5569
  function MemberAccess({ port, organizationId, organizationName }) {
5570
5570
  const [list, setList] = (0, import_react26.useState)(null);
5571
5571
  const [loadError, setLoadError] = (0, import_react26.useState)(null);
5572
- const { busy, error, run } = useAction();
5572
+ const { busy, error, run } = useConfirmedChange();
5573
5573
  (0, import_react26.useEffect)(() => {
5574
5574
  let live = true;
5575
5575
  port.sharing.memberAccess(organizationId).then(
@@ -6452,7 +6452,7 @@ function sortSent(rows) {
6452
6452
  var import_jsx_runtime31 = require("react/jsx-runtime");
6453
6453
  function SecureLinkPanel({ item, port, onClose }) {
6454
6454
  const sharing = port.sharing;
6455
- const { busy, error, notice, run, setNotice } = useAction();
6455
+ const { busy, error, notice, run, setNotice } = useConfirmedChange();
6456
6456
  const [remedy, setRemedy] = (0, import_react32.useState)(null);
6457
6457
  const [options, setOptions] = (0, import_react32.useState)(null);
6458
6458
  const [optionsError, setOptionsError] = (0, import_react32.useState)(null);