@canton-network/core-wallet-ui-components 1.2.3 → 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
@@ -367,6 +367,7 @@ const po = [
367
367
  "/identity-providers",
368
368
  "/activities",
369
369
  "/approve",
370
+ "/sign-message",
370
371
  "/",
371
372
  "/404",
372
373
  "/callback"
@@ -3547,7 +3548,7 @@ let dt = class extends f {
3547
3548
 
3548
3549
  <div class="meta-row">
3549
3550
  <p class="meta-title">Auth</p>
3550
- <p class="meta-value">${this.network.auth.method}</p>
3551
+ <p class="meta-value">${this.network.authMethod}</p>
3551
3552
  </div>
3552
3553
 
3553
3554
  ${t ? p`
@@ -7349,7 +7350,7 @@ var Jc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, sa = (t) =
7349
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;
7350
7351
  let K = class extends f {
7351
7352
  constructor() {
7352
- 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 = () => {
7353
7354
  this.isModalOpen = !0, this.editingNetwork = null;
7354
7355
  }, this.closeModal = () => {
7355
7356
  this.isModalOpen = !1;
@@ -8603,7 +8604,7 @@ let L = class extends f {
8603
8604
  updated(t) {
8604
8605
  if (super.updated(t), t.has("networks") && !this.selectedNetwork) {
8605
8606
  const e = this.networks.findIndex(
8606
- (r) => r.auth.method !== "client_credentials"
8607
+ (r) => r.authMethod !== "client_credentials"
8607
8608
  );
8608
8609
  e >= 0 && (this.selectedNetwork = this.networks[e], this.selectedIdp = this.idps.find(
8609
8610
  (r) => r.id === this.selectedNetwork?.identityProviderId
@@ -8642,9 +8643,9 @@ let L = class extends f {
8642
8643
  }
8643
8644
  const e = this.renderRoot.querySelector(
8644
8645
  "#client-id"
8645
- )?.value || this.selectedNetwork.auth.clientId;
8646
+ )?.value || this.selectedNetwork.clientId;
8646
8647
  this.dispatchEvent(
8647
- new wp(this.selectedNetwork, t, e)
8648
+ new wp(this.selectedNetwork, t, e || "")
8648
8649
  );
8649
8650
  }
8650
8651
  /** Set a status message on the form (e.g. "Redirecting...") */
@@ -8686,7 +8687,7 @@ let L = class extends f {
8686
8687
  ${this.networks.map(
8687
8688
  (t, e) => p`<option
8688
8689
  value=${e}
8689
- ?disabled=${t.auth.method === "client_credentials"}
8690
+ ?disabled=${t.authMethod === "client_credentials"}
8690
8691
  >
8691
8692
  ${t.name}
8692
8693
  </option>`
@@ -8705,7 +8706,7 @@ let L = class extends f {
8705
8706
  id="client-id"
8706
8707
  class="client-id-input form-control"
8707
8708
  type="text"
8708
- .value=${this.selectedNetwork?.auth.clientId || ""}
8709
+ .value=${this.selectedNetwork?.clientId || ""}
8709
8710
  ?disabled=${this.connecting}
8710
8711
  />
8711
8712
  ` : null}