@lukso/up-connector 0.7.1 → 0.7.2-dev.fb1dd3f

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.
Files changed (45) hide show
  1. package/dist/account-modal.cjs +3 -3
  2. package/dist/account-modal.js +2 -2
  3. package/dist/auto-setup.cjs +3 -3
  4. package/dist/auto-setup.js +2 -2
  5. package/dist/backup-modal.cjs +3 -3
  6. package/dist/backup-modal.js +2 -2
  7. package/dist/{chunk-PGGLO7F6.cjs → chunk-2K6JGEIE.cjs} +3 -3
  8. package/dist/{chunk-PGGLO7F6.cjs.map → chunk-2K6JGEIE.cjs.map} +1 -1
  9. package/dist/{chunk-DPIELBOO.js → chunk-57BU5F5W.js} +2 -2
  10. package/dist/{chunk-DE4PLLJ3.cjs → chunk-7ASNQ5WC.cjs} +3 -3
  11. package/dist/{chunk-DE4PLLJ3.cjs.map → chunk-7ASNQ5WC.cjs.map} +1 -1
  12. package/dist/{chunk-YX3V6MRY.cjs → chunk-DVAH2W74.cjs} +3 -3
  13. package/dist/{chunk-YX3V6MRY.cjs.map → chunk-DVAH2W74.cjs.map} +1 -1
  14. package/dist/{chunk-H56GOXXO.cjs → chunk-EJYS2CGF.cjs} +3 -3
  15. package/dist/{chunk-H56GOXXO.cjs.map → chunk-EJYS2CGF.cjs.map} +1 -1
  16. package/dist/{chunk-XMC54KOE.js → chunk-EL7I4CI6.js} +2 -2
  17. package/dist/{chunk-XMC54KOE.js.map → chunk-EL7I4CI6.js.map} +1 -1
  18. package/dist/{chunk-2QYRNY3V.js → chunk-H4DVQ5E2.js} +7 -4
  19. package/dist/{chunk-2QYRNY3V.js.map → chunk-H4DVQ5E2.js.map} +1 -1
  20. package/dist/{chunk-3KLI7KOJ.cjs → chunk-ILFBSTA2.cjs} +2 -2
  21. package/dist/{chunk-3KLI7KOJ.cjs.map → chunk-ILFBSTA2.cjs.map} +1 -1
  22. package/dist/{chunk-2MX6OLGU.js → chunk-OYA2PRQT.js} +2 -2
  23. package/dist/{chunk-ZC4I7YNT.js → chunk-PKYHZ2HN.js} +2 -2
  24. package/dist/{chunk-K74TXFKJ.cjs → chunk-SH4GXMHF.cjs} +15 -12
  25. package/dist/chunk-SH4GXMHF.cjs.map +1 -0
  26. package/dist/{chunk-SGYVEV6T.js → chunk-W3EJ2EJN.js} +2 -2
  27. package/dist/connect-modal/index.cjs +2 -2
  28. package/dist/connect-modal/index.d.cts +3 -9
  29. package/dist/connect-modal/index.d.ts +3 -9
  30. package/dist/connect-modal/index.js +1 -1
  31. package/dist/{wagmi-YRLSaIRo.d.ts → index-DZolGZOk.d.cts} +12 -30
  32. package/dist/{wagmi-YRLSaIRo.d.cts → index-DZolGZOk.d.ts} +12 -30
  33. package/dist/index.cjs +10 -10
  34. package/dist/index.d.cts +3 -2
  35. package/dist/index.d.ts +3 -2
  36. package/dist/index.js +6 -6
  37. package/dist/restore-modal.cjs +3 -3
  38. package/dist/restore-modal.js +2 -2
  39. package/package.json +10 -10
  40. package/src/connect-modal/components/connection-view.ts +5 -2
  41. package/dist/chunk-K74TXFKJ.cjs.map +0 -1
  42. /package/dist/{chunk-DPIELBOO.js.map → chunk-57BU5F5W.js.map} +0 -0
  43. /package/dist/{chunk-2MX6OLGU.js.map → chunk-OYA2PRQT.js.map} +0 -0
  44. /package/dist/{chunk-ZC4I7YNT.js.map → chunk-PKYHZ2HN.js.map} +0 -0
  45. /package/dist/{chunk-SGYVEV6T.js.map → chunk-W3EJ2EJN.js.map} +0 -0
@@ -1,4 +1,10 @@
1
- import { TemplateResult } from 'lit';
1
+ import * as lit from 'lit';
2
+ import { LitElement, TemplateResult } from 'lit';
3
+ import * as _lukso_core from '@lukso/core';
4
+
5
+ declare class ConnectModalBase extends LitElement {
6
+ static styles: lit.CSSResult[];
7
+ }
2
8
 
3
9
  interface WalletConnector {
4
10
  id: string;
@@ -77,13 +83,7 @@ interface WalletDesktop {
77
83
  universal?: string;
78
84
  }
79
85
 
80
- /**
81
- * EOA Connection View - Lit Component
82
- *
83
- * Displays available EOA (Externally Owned Account) wallets for connection.
84
- */
85
-
86
- declare const EoaConnectionView_base: any;
86
+ declare const EoaConnectionView_base: _lukso_core.ThemeMixinConstructor<_lukso_core.IntlServiceMixinConstructor<_lukso_core.DeviceServiceMixinConstructor<typeof ConnectModalBase>>>;
87
87
  declare class EoaConnectionView extends EoaConnectionView_base {
88
88
  connectors: WalletConnector[];
89
89
  private isConnecting;
@@ -149,13 +149,7 @@ declare global {
149
149
  }
150
150
  }
151
151
 
152
- /**
153
- * Connection View - Lit Component
154
- *
155
- * Main connection view displaying primary Lukso connectors and option to show EOA connectors.
156
- */
157
-
158
- declare const ConnectionView_base: any;
152
+ declare const ConnectionView_base: _lukso_core.ThemeMixinConstructor<_lukso_core.IntlServiceMixinConstructor<_lukso_core.DeviceServiceMixinConstructor<typeof ConnectModalBase>>>;
159
153
  declare class ConnectionView extends ConnectionView_base {
160
154
  isConnecting: boolean;
161
155
  connectingRdns: string | undefined;
@@ -230,13 +224,7 @@ declare global {
230
224
  }
231
225
  }
232
226
 
233
- /**
234
- * QR Code View - Lit Component
235
- *
236
- * Displays Wallet Connect QR code for mobile connection.
237
- */
238
-
239
- declare const QrCodeView_base: any;
227
+ declare const QrCodeView_base: _lukso_core.ThemeMixinConstructor<_lukso_core.IntlServiceMixinConstructor<typeof ConnectModalBase>>;
240
228
  declare class QrCodeView extends QrCodeView_base {
241
229
  data: string | undefined;
242
230
  /**
@@ -256,13 +244,7 @@ declare global {
256
244
  }
257
245
  }
258
246
 
259
- /**
260
- * Connect Modal - Lit Component
261
- *
262
- * Framework-agnostic connection modal for wallet/profile connections.
263
- */
264
-
265
- declare const ConnectModal_base: any;
247
+ declare const ConnectModal_base: _lukso_core.ThemeMixinConstructor<_lukso_core.DeviceServiceMixinConstructor<typeof ConnectModalBase>>;
266
248
  declare class ConnectModal extends ConnectModal_base {
267
249
  open: boolean;
268
250
  private connectors;
@@ -428,4 +410,4 @@ declare function watchConnection(callback: (connection: WagmiConnection) => void
428
410
  */
429
411
  declare function disconnect(): Promise<boolean>;
430
412
 
431
- export { ConnectModal as C, type WalletConnector as W, type WagmiConnector as a, type ConnectionModalView as b, type ConnectModalSetup as c, type ConnectModalTheme as d, type WagmiConnection as e, disconnect as f, getConnection as g, getWagmiSetup as h, watchConnection as i, fromWagmiConnector as j, fromWagmiConnectors as k, type Wallet as l, setupWagmi as s, wagmiService as w };
413
+ export { ConnectModal as C, type WalletConnector as W, type WagmiConnector as a, type ConnectionModalView as b, type ConnectModalSetup as c, type ConnectModalTheme as d, type WagmiConnection as e, disconnect as f, getConnection as g, getWagmiSetup as h, watchConnection as i, fromWagmiConnector as j, fromWagmiConnectors as k, ConnectModalBase as l, type Wallet as m, setupWagmi as s, wagmiService as w };
@@ -1,4 +1,10 @@
1
- import { TemplateResult } from 'lit';
1
+ import * as lit from 'lit';
2
+ import { LitElement, TemplateResult } from 'lit';
3
+ import * as _lukso_core from '@lukso/core';
4
+
5
+ declare class ConnectModalBase extends LitElement {
6
+ static styles: lit.CSSResult[];
7
+ }
2
8
 
3
9
  interface WalletConnector {
4
10
  id: string;
@@ -77,13 +83,7 @@ interface WalletDesktop {
77
83
  universal?: string;
78
84
  }
79
85
 
80
- /**
81
- * EOA Connection View - Lit Component
82
- *
83
- * Displays available EOA (Externally Owned Account) wallets for connection.
84
- */
85
-
86
- declare const EoaConnectionView_base: any;
86
+ declare const EoaConnectionView_base: _lukso_core.ThemeMixinConstructor<_lukso_core.IntlServiceMixinConstructor<_lukso_core.DeviceServiceMixinConstructor<typeof ConnectModalBase>>>;
87
87
  declare class EoaConnectionView extends EoaConnectionView_base {
88
88
  connectors: WalletConnector[];
89
89
  private isConnecting;
@@ -149,13 +149,7 @@ declare global {
149
149
  }
150
150
  }
151
151
 
152
- /**
153
- * Connection View - Lit Component
154
- *
155
- * Main connection view displaying primary Lukso connectors and option to show EOA connectors.
156
- */
157
-
158
- declare const ConnectionView_base: any;
152
+ declare const ConnectionView_base: _lukso_core.ThemeMixinConstructor<_lukso_core.IntlServiceMixinConstructor<_lukso_core.DeviceServiceMixinConstructor<typeof ConnectModalBase>>>;
159
153
  declare class ConnectionView extends ConnectionView_base {
160
154
  isConnecting: boolean;
161
155
  connectingRdns: string | undefined;
@@ -230,13 +224,7 @@ declare global {
230
224
  }
231
225
  }
232
226
 
233
- /**
234
- * QR Code View - Lit Component
235
- *
236
- * Displays Wallet Connect QR code for mobile connection.
237
- */
238
-
239
- declare const QrCodeView_base: any;
227
+ declare const QrCodeView_base: _lukso_core.ThemeMixinConstructor<_lukso_core.IntlServiceMixinConstructor<typeof ConnectModalBase>>;
240
228
  declare class QrCodeView extends QrCodeView_base {
241
229
  data: string | undefined;
242
230
  /**
@@ -256,13 +244,7 @@ declare global {
256
244
  }
257
245
  }
258
246
 
259
- /**
260
- * Connect Modal - Lit Component
261
- *
262
- * Framework-agnostic connection modal for wallet/profile connections.
263
- */
264
-
265
- declare const ConnectModal_base: any;
247
+ declare const ConnectModal_base: _lukso_core.ThemeMixinConstructor<_lukso_core.DeviceServiceMixinConstructor<typeof ConnectModalBase>>;
266
248
  declare class ConnectModal extends ConnectModal_base {
267
249
  open: boolean;
268
250
  private connectors;
@@ -428,4 +410,4 @@ declare function watchConnection(callback: (connection: WagmiConnection) => void
428
410
  */
429
411
  declare function disconnect(): Promise<boolean>;
430
412
 
431
- export { ConnectModal as C, type WalletConnector as W, type WagmiConnector as a, type ConnectionModalView as b, type ConnectModalSetup as c, type ConnectModalTheme as d, type WagmiConnection as e, disconnect as f, getConnection as g, getWagmiSetup as h, watchConnection as i, fromWagmiConnector as j, fromWagmiConnectors as k, type Wallet as l, setupWagmi as s, wagmiService as w };
413
+ export { ConnectModal as C, type WalletConnector as W, type WagmiConnector as a, type ConnectionModalView as b, type ConnectModalSetup as c, type ConnectModalTheme as d, type WagmiConnection as e, disconnect as f, getConnection as g, getWagmiSetup as h, watchConnection as i, fromWagmiConnector as j, fromWagmiConnectors as k, ConnectModalBase as l, type Wallet as m, setupWagmi as s, wagmiService as w };
package/dist/index.cjs CHANGED
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkDE4PLLJ3cjs = require('./chunk-DE4PLLJ3.cjs');
3
+ var _chunk7ASNQ5WCcjs = require('./chunk-7ASNQ5WC.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkPGGLO7F6cjs = require('./chunk-PGGLO7F6.cjs');
10
+ var _chunk2K6JGEIEcjs = require('./chunk-2K6JGEIE.cjs');
11
11
 
12
12
 
13
13
 
14
14
  var _chunk7LQ5EB2Xcjs = require('./chunk-7LQ5EB2X.cjs');
15
15
 
16
16
 
17
- var _chunkYX3V6MRYcjs = require('./chunk-YX3V6MRY.cjs');
17
+ var _chunkDVAH2W74cjs = require('./chunk-DVAH2W74.cjs');
18
18
 
19
19
 
20
- var _chunkH56GOXXOcjs = require('./chunk-H56GOXXO.cjs');
21
- require('./chunk-3KLI7KOJ.cjs');
20
+ var _chunkEJYS2CGFcjs = require('./chunk-EJYS2CGF.cjs');
21
+ require('./chunk-ILFBSTA2.cjs');
22
22
 
23
23
 
24
24
 
@@ -29,7 +29,7 @@ require('./chunk-3KLI7KOJ.cjs');
29
29
 
30
30
 
31
31
 
32
- var _chunkK74TXFKJcjs = require('./chunk-K74TXFKJ.cjs');
32
+ var _chunkSH4GXMHFcjs = require('./chunk-SH4GXMHF.cjs');
33
33
  require('./chunk-ZBDE64SD.cjs');
34
34
 
35
35
  // src/connector.ts
@@ -87,7 +87,7 @@ var UPConnector = class {
87
87
  }
88
88
  async startWagmiSync() {
89
89
  try {
90
- const connection = await _chunkK74TXFKJcjs.getConnection.call(void 0, );
90
+ const connection = await _chunkSH4GXMHFcjs.getConnection.call(void 0, );
91
91
  if (!connection) {
92
92
  return;
93
93
  }
@@ -98,7 +98,7 @@ var UPConnector = class {
98
98
  connection.chainId
99
99
  );
100
100
  }
101
- this.wagmiUnsubscribe = await _chunkK74TXFKJcjs.watchConnection.call(void 0, (connection2) => {
101
+ this.wagmiUnsubscribe = await _chunkSH4GXMHFcjs.watchConnection.call(void 0, (connection2) => {
102
102
  const account = {
103
103
  isConnected: connection2.status === "connected",
104
104
  address: connection2.address,
@@ -211,7 +211,7 @@ var UPConnector = class {
211
211
  }
212
212
  }
213
213
  async handleDisconnection() {
214
- await _chunkK74TXFKJcjs.disconnect.call(void 0, );
214
+ await _chunkSH4GXMHFcjs.disconnect.call(void 0, );
215
215
  this.connectedAddress = void 0;
216
216
  this.connectedProvider = void 0;
217
217
  this.connectedChainId = void 0;
@@ -796,5 +796,5 @@ var WindowPopupInstance = class extends BasePopupInstance {
796
796
 
797
797
 
798
798
 
799
- exports.AccountModal = _chunkDE4PLLJ3cjs.AccountModal; exports.BackupModal = _chunkYX3V6MRYcjs.BackupModal; exports.ConnectModal = _chunkK74TXFKJcjs.ConnectModal; exports.DraggableAvatar = _chunk7LQ5EB2Xcjs.DraggableAvatar; exports.EMBEDDED_WALLET_ID = _chunkPGGLO7F6cjs.EMBEDDED_WALLET_ID; exports.EMBEDDED_WALLET_URL_DEV = _chunkPGGLO7F6cjs.EMBEDDED_WALLET_URL_DEV; exports.EMBEDDED_WALLET_URL_PROD = _chunkPGGLO7F6cjs.EMBEDDED_WALLET_URL_PROD; exports.ModalPopupInstance = ModalPopupInstance; exports.RestoreModal = _chunkH56GOXXOcjs.RestoreModal; exports.UPConnector = UPConnector; exports.UP_EXTENSION_ID = _chunkPGGLO7F6cjs.UP_EXTENSION_ID; exports.WindowPopupInstance = WindowPopupInstance; exports.createAvatar = _chunk7LQ5EB2Xcjs.createAvatar; exports.createConnector = createConnector; exports.default = createConnector; exports.disconnect = _chunkK74TXFKJcjs.disconnect; exports.fromWagmiConnector = _chunkK74TXFKJcjs.fromWagmiConnector; exports.fromWagmiConnectors = _chunkK74TXFKJcjs.fromWagmiConnectors; exports.getConnection = _chunkK74TXFKJcjs.getConnection; exports.getWagmiSetup = _chunkK74TXFKJcjs.getWagmiSetup; exports.setupConnectModal = _chunkK74TXFKJcjs.setupWagmi; exports.setupLuksoConnector = _chunkPGGLO7F6cjs.setupLuksoConnector; exports.wagmi = _chunkK74TXFKJcjs.wagmiService; exports.watchConnection = _chunkK74TXFKJcjs.watchConnection;
799
+ exports.AccountModal = _chunk7ASNQ5WCcjs.AccountModal; exports.BackupModal = _chunkDVAH2W74cjs.BackupModal; exports.ConnectModal = _chunkSH4GXMHFcjs.ConnectModal; exports.DraggableAvatar = _chunk7LQ5EB2Xcjs.DraggableAvatar; exports.EMBEDDED_WALLET_ID = _chunk2K6JGEIEcjs.EMBEDDED_WALLET_ID; exports.EMBEDDED_WALLET_URL_DEV = _chunk2K6JGEIEcjs.EMBEDDED_WALLET_URL_DEV; exports.EMBEDDED_WALLET_URL_PROD = _chunk2K6JGEIEcjs.EMBEDDED_WALLET_URL_PROD; exports.ModalPopupInstance = ModalPopupInstance; exports.RestoreModal = _chunkEJYS2CGFcjs.RestoreModal; exports.UPConnector = UPConnector; exports.UP_EXTENSION_ID = _chunk2K6JGEIEcjs.UP_EXTENSION_ID; exports.WindowPopupInstance = WindowPopupInstance; exports.createAvatar = _chunk7LQ5EB2Xcjs.createAvatar; exports.createConnector = createConnector; exports.default = createConnector; exports.disconnect = _chunkSH4GXMHFcjs.disconnect; exports.fromWagmiConnector = _chunkSH4GXMHFcjs.fromWagmiConnector; exports.fromWagmiConnectors = _chunkSH4GXMHFcjs.fromWagmiConnectors; exports.getConnection = _chunkSH4GXMHFcjs.getConnection; exports.getWagmiSetup = _chunkSH4GXMHFcjs.getWagmiSetup; exports.setupConnectModal = _chunkSH4GXMHFcjs.setupWagmi; exports.setupLuksoConnector = _chunk2K6JGEIEcjs.setupLuksoConnector; exports.wagmi = _chunkSH4GXMHFcjs.wagmiService; exports.watchConnection = _chunkSH4GXMHFcjs.watchConnection;
800
800
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -3,13 +3,14 @@ export { EMBEDDED_WALLET_ID, EMBEDDED_WALLET_URL_DEV, EMBEDDED_WALLET_URL_PROD,
3
3
  import { C as ConnectorConfig, D as DraggableAvatar, a as ConnectionState } from './avatar-CQkubMTK.cjs';
4
4
  export { A as AddressData, b as AvatarOptions, W as WalletProvider, c as createAvatar } from './avatar-CQkubMTK.cjs';
5
5
  export { BackupModal } from './backup-modal.cjs';
6
- import { W as WalletConnector, C as ConnectModal } from './wagmi-YRLSaIRo.cjs';
7
- export { c as ConnectModalSetup, d as ConnectModalTheme, b as ConnectionModalView, e as WagmiConnection, a as WagmiConnector, f as disconnect, j as fromWagmiConnector, k as fromWagmiConnectors, g as getConnection, h as getWagmiSetup, s as setupConnectModal, w as wagmi, i as watchConnection } from './wagmi-YRLSaIRo.cjs';
6
+ import { W as WalletConnector, C as ConnectModal } from './index-DZolGZOk.cjs';
7
+ export { c as ConnectModalSetup, d as ConnectModalTheme, b as ConnectionModalView, e as WagmiConnection, a as WagmiConnector, f as disconnect, j as fromWagmiConnector, k as fromWagmiConnectors, g as getConnection, h as getWagmiSetup, s as setupConnectModal, w as wagmi, i as watchConnection } from './index-DZolGZOk.cjs';
8
8
  export { RestoreModal } from './restore-modal.cjs';
9
9
  import 'lit';
10
10
  import './index-D2orHGFi.cjs';
11
11
  import '@wagmi/core';
12
12
  import '@lukso/passkey-auth';
13
+ import '@lukso/core';
13
14
 
14
15
  /**
15
16
  * Enhanced Popup System for UP Connector
package/dist/index.d.ts CHANGED
@@ -3,13 +3,14 @@ export { EMBEDDED_WALLET_ID, EMBEDDED_WALLET_URL_DEV, EMBEDDED_WALLET_URL_PROD,
3
3
  import { C as ConnectorConfig, D as DraggableAvatar, a as ConnectionState } from './avatar-CQkubMTK.js';
4
4
  export { A as AddressData, b as AvatarOptions, W as WalletProvider, c as createAvatar } from './avatar-CQkubMTK.js';
5
5
  export { BackupModal } from './backup-modal.js';
6
- import { W as WalletConnector, C as ConnectModal } from './wagmi-YRLSaIRo.js';
7
- export { c as ConnectModalSetup, d as ConnectModalTheme, b as ConnectionModalView, e as WagmiConnection, a as WagmiConnector, f as disconnect, j as fromWagmiConnector, k as fromWagmiConnectors, g as getConnection, h as getWagmiSetup, s as setupConnectModal, w as wagmi, i as watchConnection } from './wagmi-YRLSaIRo.js';
6
+ import { W as WalletConnector, C as ConnectModal } from './index-DZolGZOk.js';
7
+ export { c as ConnectModalSetup, d as ConnectModalTheme, b as ConnectionModalView, e as WagmiConnection, a as WagmiConnector, f as disconnect, j as fromWagmiConnector, k as fromWagmiConnectors, g as getConnection, h as getWagmiSetup, s as setupConnectModal, w as wagmi, i as watchConnection } from './index-DZolGZOk.js';
8
8
  export { RestoreModal } from './restore-modal.js';
9
9
  import 'lit';
10
10
  import './index-D2orHGFi.js';
11
11
  import '@wagmi/core';
12
12
  import '@lukso/passkey-auth';
13
+ import '@lukso/core';
13
14
 
14
15
  /**
15
16
  * Enhanced Popup System for UP Connector
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  AccountModal
3
- } from "./chunk-SGYVEV6T.js";
3
+ } from "./chunk-W3EJ2EJN.js";
4
4
  import {
5
5
  EMBEDDED_WALLET_ID,
6
6
  EMBEDDED_WALLET_URL_DEV,
7
7
  EMBEDDED_WALLET_URL_PROD,
8
8
  UP_EXTENSION_ID,
9
9
  setupLuksoConnector
10
- } from "./chunk-ZC4I7YNT.js";
10
+ } from "./chunk-PKYHZ2HN.js";
11
11
  import {
12
12
  DraggableAvatar,
13
13
  createAvatar
14
14
  } from "./chunk-GKAVIDXP.js";
15
15
  import {
16
16
  BackupModal
17
- } from "./chunk-2MX6OLGU.js";
17
+ } from "./chunk-OYA2PRQT.js";
18
18
  import {
19
19
  RestoreModal
20
- } from "./chunk-DPIELBOO.js";
21
- import "./chunk-XMC54KOE.js";
20
+ } from "./chunk-57BU5F5W.js";
21
+ import "./chunk-EL7I4CI6.js";
22
22
  import {
23
23
  ConnectModal,
24
24
  disconnect,
@@ -29,7 +29,7 @@ import {
29
29
  setupWagmi,
30
30
  wagmiService,
31
31
  watchConnection
32
- } from "./chunk-2QYRNY3V.js";
32
+ } from "./chunk-H4DVQ5E2.js";
33
33
  import "./chunk-EUXUH3YW.js";
34
34
 
35
35
  // src/connector.ts
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH56GOXXOcjs = require('./chunk-H56GOXXO.cjs');
4
- require('./chunk-3KLI7KOJ.cjs');
3
+ var _chunkEJYS2CGFcjs = require('./chunk-EJYS2CGF.cjs');
4
+ require('./chunk-ILFBSTA2.cjs');
5
5
  require('./chunk-ZBDE64SD.cjs');
6
6
 
7
7
 
8
- exports.RestoreModal = _chunkH56GOXXOcjs.RestoreModal;
8
+ exports.RestoreModal = _chunkEJYS2CGFcjs.RestoreModal;
9
9
  //# sourceMappingURL=restore-modal.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RestoreModal
3
- } from "./chunk-DPIELBOO.js";
4
- import "./chunk-XMC54KOE.js";
3
+ } from "./chunk-57BU5F5W.js";
4
+ import "./chunk-EL7I4CI6.js";
5
5
  import "./chunk-EUXUH3YW.js";
6
6
  export {
7
7
  RestoreModal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/up-connector",
3
- "version": "0.7.1",
3
+ "version": "0.7.2-dev.fb1dd3f",
4
4
  "description": "Universal Profile connector with draggable avatar and connection modal",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -77,15 +77,15 @@
77
77
  "dependencies": {
78
78
  "@lit/task": "^1.0.3",
79
79
  "@lukso/up-provider": "0.3.7",
80
- "@lukso/web-components": "^1.171.2",
80
+ "@lukso/web-components": "^1.172.14",
81
81
  "debug": "^4.4.3",
82
82
  "lit": "^3.3.1",
83
83
  "ws": "^8.18.3",
84
84
  "zxcvbn": "^4.4.2",
85
- "@lukso/core": "1.2.1",
86
- "@lukso/passkey-auth": "1.2.1",
87
- "@lukso/transaction-view-core": "0.6.0",
88
- "@lukso/transaction-view-headless": "0.4.1"
85
+ "@lukso/core": "1.2.2-dev.fb1dd3f",
86
+ "@lukso/passkey-auth": "1.2.2-dev.fb1dd3f",
87
+ "@lukso/transaction-view-core": "0.6.1-dev.fb1dd3f",
88
+ "@lukso/transaction-view-headless": "0.4.2-dev.fb1dd3f"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@wagmi/connectors": "^7.0.0",
@@ -109,14 +109,14 @@
109
109
  "@types/zxcvbn": "^4.4.5",
110
110
  "@wagmi/connectors": "^7.0.2",
111
111
  "@wagmi/core": "^3.0.0",
112
- "autoprefixer": "^10.4.22",
112
+ "autoprefixer": "^10.4.23",
113
113
  "postcss": "^8.5.6",
114
114
  "postcss-import": "^16.1.1",
115
- "tailwindcss": "^3.4.18",
115
+ "tailwindcss": "^3.4.19",
116
116
  "tsup": "^8.5.1",
117
117
  "typescript": "^5.9.3",
118
- "viem": "^2.41.2",
119
- "vitest": "^4.0.15"
118
+ "viem": "^2.43.1",
119
+ "vitest": "^4.0.16"
120
120
  },
121
121
  "tsup": {
122
122
  "entry": [
@@ -61,6 +61,9 @@ export class ConnectionView extends withTheme(
61
61
  * Get browser extension store info
62
62
  */
63
63
  private get extensionStore(): BrowserInfo {
64
+ if (!this.device) {
65
+ throw new Error('DeviceService not initialized')
66
+ }
64
67
  const info = browserInfo(this.device)
65
68
  return info
66
69
  }
@@ -177,7 +180,7 @@ export class ConnectionView extends withTheme(
177
180
 
178
181
  logInfo('Mobile App Deep Link:', deepLink)
179
182
 
180
- if (this.device.isMobile) {
183
+ if (this.device?.isMobile) {
181
184
  window.open(deepLink, '_blank')
182
185
  } else {
183
186
  this.handleShowQrCode(deepLink)
@@ -321,7 +324,7 @@ export class ConnectionView extends withTheme(
321
324
  this.isConnecting &&
322
325
  this.connectingRdns === this.upExtensionConnector?.rdns,
323
326
  this.isConnecting ||
324
- this.device.isMobile ||
327
+ this.device?.isMobile ||
325
328
  !this.browserSupportExtension
326
329
  )
327
330
  )