@reown/appkit-scaffold-ui 1.4.0 → 1.5.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.
@@ -6,7 +6,6 @@ export declare class W3mModal extends LitElement {
6
6
  private open;
7
7
  private caipAddress;
8
8
  private caipNetwork;
9
- private isSiweEnabled;
10
9
  private shake;
11
10
  constructor();
12
11
  disconnectedCallback(): void;
@@ -20,10 +19,8 @@ export declare class W3mModal extends LitElement {
20
19
  private onScrollUnlock;
21
20
  private onAddKeyboardListener;
22
21
  private onRemoveKeyboardListener;
23
- private onSiweStatusChange;
24
22
  private onNewAddress;
25
23
  private onNewNetwork;
26
- private onSiweNavigation;
27
24
  }
28
25
  declare global {
29
26
  interface HTMLElementTagNameMap {
@@ -6,7 +6,6 @@ export declare class W3mHeader extends LitElement {
6
6
  private network;
7
7
  private buffering;
8
8
  private showBack;
9
- private isSiweEnabled;
10
9
  private prevHistoryLength;
11
10
  private view;
12
11
  private viewDirection;
@@ -5,7 +5,7 @@ export declare class W3mConnectingWcView extends LitElement {
5
5
  private wallet;
6
6
  private platform?;
7
7
  private platforms;
8
- private isSiweEnabled;
8
+ private isSiwxEnabled;
9
9
  constructor();
10
10
  disconnectedCallback(): void;
11
11
  render(): import("lit").TemplateResult<1>;
@@ -2,7 +2,9 @@ import { LitElement } from 'lit';
2
2
  export declare class W3mSIWXSignMessageView extends LitElement {
3
3
  private readonly dappName;
4
4
  private isCancelling;
5
+ private isSigning;
5
6
  render(): import("lit").TemplateResult<1>;
7
+ private onSign;
6
8
  private onCancel;
7
9
  }
8
10
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-scaffold-ui",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "main": "./dist/esm/exports/index.js",
6
6
  "types": "./dist/types/exports/index.d.ts",
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "lit": "3.1.0",
25
- "@reown/appkit-common": "1.4.0",
26
- "@reown/appkit-core": "1.4.0",
27
- "@reown/appkit-siwe": "1.4.0",
28
- "@reown/appkit-ui": "1.4.0",
29
- "@reown/appkit-utils": "1.4.0",
30
- "@reown/appkit-wallet": "1.4.0"
25
+ "@reown/appkit-common": "1.5.0",
26
+ "@reown/appkit-core": "1.5.0",
27
+ "@reown/appkit-siwe": "1.5.0",
28
+ "@reown/appkit-utils": "1.5.0",
29
+ "@reown/appkit-ui": "1.5.0",
30
+ "@reown/appkit-wallet": "1.5.0"
31
31
  },
32
32
  "author": "Reown <support@reown.com> (https://reown.com)",
33
33
  "license": "Apache-2.0",
@@ -1,19 +0,0 @@
1
- import { ConstantsUtil } from '@reown/appkit-common';
2
- import { ChainController, OptionsController, RouterUtil } from '@reown/appkit-core';
3
- export const NetworkUtil = {
4
- onNetworkChange: async () => {
5
- const isEIP155Namespace = ChainController.state.activeChain === ConstantsUtil.CHAIN.EVM;
6
- if (OptionsController.state.isSiweEnabled) {
7
- const { SIWEController } = await import('@reown/appkit-siwe');
8
- const shouldSignOut = SIWEController.state._client?.options?.signOutOnNetworkChange && isEIP155Namespace;
9
- if (shouldSignOut) {
10
- await SIWEController.signOut();
11
- }
12
- RouterUtil.navigateAfterNetworkSwitch();
13
- }
14
- else {
15
- RouterUtil.navigateAfterNetworkSwitch();
16
- }
17
- }
18
- };
19
- //# sourceMappingURL=NetworkUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkUtil.js","sourceRoot":"","sources":["../../../../src/utils/NetworkUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEnF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,eAAe,EAAE,KAAK,IAAI,EAAE;QAC1B,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,WAAW,KAAK,aAAa,CAAC,KAAK,CAAC,GAAG,CAAA;QAEvF,IAAI,iBAAiB,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;YAC1C,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAA;YAC7D,MAAM,aAAa,GACjB,cAAc,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,sBAAsB,IAAI,iBAAiB,CAAA;YAEpF,IAAI,aAAa,EAAE,CAAC;gBAClB,MAAM,cAAc,CAAC,OAAO,EAAE,CAAA;YAChC,CAAC;YAED,UAAU,CAAC,0BAA0B,EAAE,CAAA;QACzC,CAAC;aAAM,CAAC;YACN,UAAU,CAAC,0BAA0B,EAAE,CAAA;QACzC,CAAC;IACH,CAAC;CACF,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const NetworkUtil: {
2
- onNetworkChange: () => Promise<void>;
3
- };