@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/dist/index.js CHANGED
@@ -5201,7 +5201,7 @@ var message = (e, fallback) => {
5201
5201
  const m = e instanceof Error && e.message ? e.message : fallback;
5202
5202
  return copyRefusal(m) ?? m;
5203
5203
  };
5204
- function useAction() {
5204
+ function useConfirmedChange() {
5205
5205
  const confirmed = useConfirmed();
5206
5206
  const [busy, setBusy] = useState23(null);
5207
5207
  const [error, setError] = useState23(null);
@@ -5245,7 +5245,7 @@ import { Button as Button19, Field as Field8, Select as Select7 } from "@ai-matr
5245
5245
  import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
5246
5246
  var NONE = "__none__";
5247
5247
  function MovePanel({ item, port, organizations, onClose, onChanged }) {
5248
- const { busy, error, notice, run, setNotice } = useAction();
5248
+ const { busy, error, notice, run, setNotice } = useConfirmedChange();
5249
5249
  const moves = moveDestinations(item, organizations);
5250
5250
  const copies = copyDestinations(organizations, item);
5251
5251
  const [moveTo, setMoveTo] = useState24("");
@@ -5351,7 +5351,7 @@ function useGrants(port, item) {
5351
5351
  }
5352
5352
  function SharePanel({ item, port, organizations, onClose, onChanged }) {
5353
5353
  const { grants, setGrants, loadError, reload } = useGrants(port, item);
5354
- const { busy, error, notice, run } = useAction();
5354
+ const { busy, error, notice, run } = useConfirmedChange();
5355
5355
  const [email, setEmail] = useState25("");
5356
5356
  const [level, setLevel] = useState25("use");
5357
5357
  const [more, setMore] = useState25(false);
@@ -5474,7 +5474,7 @@ function SharePanel({ item, port, organizations, onClose, onChanged }) {
5474
5474
  );
5475
5475
  }
5476
5476
  function IntoOrganization({ item, port, organizations, grants, onShared }) {
5477
- const { busy, error, notice, run } = useAction();
5477
+ const { busy, error, notice, run } = useConfirmedChange();
5478
5478
  const open = organizations.filter((o) => !grants.some((g) => g.organizationId === o.id));
5479
5479
  const [target, setTarget] = useState25("");
5480
5480
  const [level, setLevel] = useState25("use");
@@ -5514,7 +5514,7 @@ var CHOICES = [
5514
5514
  function MemberAccess({ port, organizationId, organizationName }) {
5515
5515
  const [list, setList] = useState25(null);
5516
5516
  const [loadError, setLoadError] = useState25(null);
5517
- const { busy, error, run } = useAction();
5517
+ const { busy, error, run } = useConfirmedChange();
5518
5518
  useEffect15(() => {
5519
5519
  let live = true;
5520
5520
  port.sharing.memberAccess(organizationId).then(
@@ -6397,7 +6397,7 @@ function sortSent(rows) {
6397
6397
  import { jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
6398
6398
  function SecureLinkPanel({ item, port, onClose }) {
6399
6399
  const sharing = port.sharing;
6400
- const { busy, error, notice, run, setNotice } = useAction();
6400
+ const { busy, error, notice, run, setNotice } = useConfirmedChange();
6401
6401
  const [remedy, setRemedy] = useState31(null);
6402
6402
  const [options, setOptions] = useState31(null);
6403
6403
  const [optionsError, setOptionsError] = useState31(null);