@canton-network/core-wallet-ui-components 1.3.1 → 1.4.0

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
@@ -3548,7 +3548,7 @@ let dt = class extends f {
3548
3548
 
3549
3549
  <div class="meta-row">
3550
3550
  <p class="meta-title">Auth</p>
3551
- <p class="meta-value">${this.network.auth.method}</p>
3551
+ <p class="meta-value">${this.network.authMethod}</p>
3552
3552
  </div>
3553
3553
 
3554
3554
  ${t ? p`
@@ -7350,7 +7350,7 @@ var Jc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, sa = (t) =
7350
7350
  }, la = (t, e, r) => e.has(t) || sa("Cannot " + r), ht = (t, e, r) => (la(t, e, "read from private field"), r ? r.call(t) : e.get(t)), vt = (t, e, r) => e.has(t) ? sa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), wt = (t, e, r, o) => (la(t, e, "write to private field"), e.set(t, r), r), ye, ke, ze, Ae, Se, Ie;
7351
7351
  let K = class extends f {
7352
7352
  constructor() {
7353
- super(...arguments), vt(this, ye, []), vt(this, ke, []), vt(this, ze, !1), vt(this, Ae, !1), vt(this, Se, null), vt(this, Ie, this.editingNetwork?.auth?.method ?? "authorization_code"), this.openAddModal = () => {
7353
+ super(...arguments), vt(this, ye, []), vt(this, ke, []), vt(this, ze, !1), vt(this, Ae, !1), vt(this, Se, null), vt(this, Ie, this.editingNetwork?.authMethod ?? "authorization_code"), this.openAddModal = () => {
7354
7354
  this.isModalOpen = !0, this.editingNetwork = null;
7355
7355
  }, this.closeModal = () => {
7356
7356
  this.isModalOpen = !1;
@@ -8604,7 +8604,7 @@ let L = class extends f {
8604
8604
  updated(t) {
8605
8605
  if (super.updated(t), t.has("networks") && !this.selectedNetwork) {
8606
8606
  const e = this.networks.findIndex(
8607
- (r) => r.auth.method !== "client_credentials"
8607
+ (r) => r.authMethod !== "client_credentials"
8608
8608
  );
8609
8609
  e >= 0 && (this.selectedNetwork = this.networks[e], this.selectedIdp = this.idps.find(
8610
8610
  (r) => r.id === this.selectedNetwork?.identityProviderId
@@ -8643,9 +8643,9 @@ let L = class extends f {
8643
8643
  }
8644
8644
  const e = this.renderRoot.querySelector(
8645
8645
  "#client-id"
8646
- )?.value || this.selectedNetwork.auth.clientId;
8646
+ )?.value || this.selectedNetwork.clientId;
8647
8647
  this.dispatchEvent(
8648
- new wp(this.selectedNetwork, t, e)
8648
+ new wp(this.selectedNetwork, t, e || "")
8649
8649
  );
8650
8650
  }
8651
8651
  /** Set a status message on the form (e.g. "Redirecting...") */
@@ -8687,7 +8687,7 @@ let L = class extends f {
8687
8687
  ${this.networks.map(
8688
8688
  (t, e) => p`<option
8689
8689
  value=${e}
8690
- ?disabled=${t.auth.method === "client_credentials"}
8690
+ ?disabled=${t.authMethod === "client_credentials"}
8691
8691
  >
8692
8692
  ${t.name}
8693
8693
  </option>`
@@ -8706,7 +8706,7 @@ let L = class extends f {
8706
8706
  id="client-id"
8707
8707
  class="client-id-input form-control"
8708
8708
  type="text"
8709
- .value=${this.selectedNetwork?.auth.clientId || ""}
8709
+ .value=${this.selectedNetwork?.clientId || ""}
8710
8710
  ?disabled=${this.connecting}
8711
8711
  />
8712
8712
  ` : null}