@dxos/shell 0.8.4-main.dedc0f3 → 0.8.4-main.e098934

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.
@@ -13613,7 +13613,7 @@ var randomBytes = (J) => {
13613
13613
  const X = globalThis.crypto ?? __require("@dxos/node-std/crypto").webcrypto, te = new Uint8Array(J);
13614
13614
  return X.getRandomValues(te), te;
13615
13615
  };
13616
- function _define_property$5(J, X, te) {
13616
+ function _define_property$6(J, X, te) {
13617
13617
  return X in J ? Object.defineProperty(J, X, {
13618
13618
  value: te,
13619
13619
  enumerable: !0,
@@ -13622,7 +13622,7 @@ function _define_property$5(J, X, te) {
13622
13622
  }) : J[X] = te, J;
13623
13623
  }
13624
13624
  var _class, __dxlog_file$8 = "/__w/dxos/dxos/packages/common/keys/src/space-id.ts", MULTIBASE_PREFIX = "B", ENCODED_LENGTH = 33, isValid = (J) => typeof J == "string" && J.startsWith(MULTIBASE_PREFIX) && J.length === ENCODED_LENGTH, SpaceId = (_class = class extends String$.pipe(filter(isValid)) {
13625
- }, _define_property$5(_class, "byteLength", 20), _define_property$5(_class, "encode", (J) => (invariant(J instanceof Uint8Array, "Invalid type", {
13625
+ }, _define_property$6(_class, "byteLength", 20), _define_property$6(_class, "encode", (J) => (invariant(J instanceof Uint8Array, "Invalid type", {
13626
13626
  F: __dxlog_file$8,
13627
13627
  L: 43,
13628
13628
  A: [
@@ -13636,14 +13636,14 @@ var _class, __dxlog_file$8 = "/__w/dxos/dxos/packages/common/keys/src/space-id.t
13636
13636
  "value.length === SpaceId.byteLength",
13637
13637
  "'Invalid length'"
13638
13638
  ]
13639
- }), MULTIBASE_PREFIX + base32Encode(J, "RFC4648"))), _define_property$5(_class, "decode", (J) => (invariant(J.startsWith(MULTIBASE_PREFIX), "Invalid multibase32 encoding", {
13639
+ }), MULTIBASE_PREFIX + base32Encode(J, "RFC4648"))), _define_property$6(_class, "decode", (J) => (invariant(J.startsWith(MULTIBASE_PREFIX), "Invalid multibase32 encoding", {
13640
13640
  F: __dxlog_file$8,
13641
13641
  L: 49,
13642
13642
  A: [
13643
13643
  "value.startsWith(MULTIBASE_PREFIX)",
13644
13644
  "'Invalid multibase32 encoding'"
13645
13645
  ]
13646
- }), new Uint8Array((0, import_base32_decode.default)(J.slice(1), "RFC4648")))), _define_property$5(_class, "isValid", isValid), _define_property$5(_class, "random", () => SpaceId.encode(randomBytes(SpaceId.byteLength))), _class);
13646
+ }), new Uint8Array((0, import_base32_decode.default)(J.slice(1), "RFC4648")))), _define_property$6(_class, "isValid", isValid), _define_property$6(_class, "random", () => SpaceId.encode(randomBytes(SpaceId.byteLength))), _class);
13647
13647
  function _check_private_redeclaration$1(J, X) {
13648
13648
  if (X.has(J))
13649
13649
  throw new TypeError("Cannot initialize the same private elements twice on an object");
@@ -19793,20 +19793,27 @@ function n$3(J) {
19793
19793
  function r$2(J) {
19794
19794
  return n$3({ ...J, state: !0, attribute: !1 });
19795
19795
  }
19796
- var __decorate$3 = function(J, X, te, ne) {
19796
+ function _define_property$5(J, X, te) {
19797
+ return X in J ? Object.defineProperty(J, X, {
19798
+ value: te,
19799
+ enumerable: !0,
19800
+ configurable: !0,
19801
+ writable: !0
19802
+ }) : J[X] = te, J;
19803
+ }
19804
+ var DX_ANCHOR_ACTIVATE = "dx-anchor-activate", DxAnchorActivate = class extends Event {
19805
+ constructor(J) {
19806
+ super(DX_ANCHOR_ACTIVATE), _define_property$5(this, "refId", void 0), _define_property$5(this, "label", void 0), _define_property$5(this, "trigger", void 0), this.refId = J.refId, this.label = J.label, this.trigger = J.trigger;
19807
+ }
19808
+ }, __decorate$3 = function(J, X, te, ne) {
19797
19809
  var re = arguments.length, ae = re < 3 ? X : ne === null ? ne = Object.getOwnPropertyDescriptor(X, te) : ne, oe;
19798
19810
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") ae = Reflect.decorate(J, X, te, ne);
19799
19811
  else for (var le = J.length - 1; le >= 0; le--) (oe = J[le]) && (ae = (re < 3 ? oe(ae) : re > 3 ? oe(X, te, ae) : oe(X, te)) || ae);
19800
19812
  return re > 3 && ae && Object.defineProperty(X, te, ae), ae;
19801
19813
  };
19802
- class DxAnchorActivate extends Event {
19803
- constructor(X) {
19804
- super("dx-anchor-activate"), this.refId = X.refId, this.label = X.label, this.trigger = X.trigger;
19805
- }
19806
- }
19807
19814
  let DxAnchor = class extends h$2 {
19808
19815
  constructor() {
19809
- super(...arguments), this.refid = makeId("dx-anchor"), this.rootclassname = void 0;
19816
+ super(...arguments), this.refid = "", this.rootclassname = void 0;
19810
19817
  }
19811
19818
  connectedCallback() {
19812
19819
  super.connectedCallback(), this.tabIndex = 0, this.classList.add("dx-focus-ring"), this.rootclassname && this.classList.add(this.rootclassname), this.setAttribute("role", "button"), this.getAttribute("data-auto-trigger") === "true" ? this.handleActivate({ type: "auto-trigger" }) : this.addEventListener("click", this.handleActivate);