@lukso/up-connector 0.7.0 → 0.7.2-dev.d85bba3
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/account-modal.cjs +3 -3
- package/dist/account-modal.js +2 -2
- package/dist/auto-setup.cjs +3 -3
- package/dist/auto-setup.js +2 -2
- package/dist/backup-modal.cjs +3 -3
- package/dist/backup-modal.js +2 -2
- package/dist/{chunk-U53KATZW.cjs → chunk-2K6JGEIE.cjs} +3 -3
- package/dist/{chunk-U53KATZW.cjs.map → chunk-2K6JGEIE.cjs.map} +1 -1
- package/dist/{chunk-RCCGJ3DC.js → chunk-57BU5F5W.js} +2 -2
- package/dist/{chunk-MEEN5QJZ.cjs → chunk-7ASNQ5WC.cjs} +3 -3
- package/dist/{chunk-MEEN5QJZ.cjs.map → chunk-7ASNQ5WC.cjs.map} +1 -1
- package/dist/{chunk-UQZN2AKN.cjs → chunk-DVAH2W74.cjs} +3 -3
- package/dist/{chunk-UQZN2AKN.cjs.map → chunk-DVAH2W74.cjs.map} +1 -1
- package/dist/{chunk-E34NRQRA.cjs → chunk-EJYS2CGF.cjs} +3 -3
- package/dist/{chunk-E34NRQRA.cjs.map → chunk-EJYS2CGF.cjs.map} +1 -1
- package/dist/{chunk-UPWE4L5Z.js → chunk-EL7I4CI6.js} +2 -2
- package/dist/{chunk-UPWE4L5Z.js.map → chunk-EL7I4CI6.js.map} +1 -1
- package/dist/{chunk-RO5M7PBL.js → chunk-H4DVQ5E2.js} +22 -9
- package/dist/{chunk-RO5M7PBL.js.map → chunk-H4DVQ5E2.js.map} +1 -1
- package/dist/{chunk-ZWXGWUXQ.cjs → chunk-ILFBSTA2.cjs} +2 -2
- package/dist/{chunk-ZWXGWUXQ.cjs.map → chunk-ILFBSTA2.cjs.map} +1 -1
- package/dist/{chunk-I5I6SZZ5.js → chunk-OYA2PRQT.js} +2 -2
- package/dist/{chunk-QOAWX2VD.js → chunk-PKYHZ2HN.js} +2 -2
- package/dist/{chunk-2CKXEZQF.cjs → chunk-SH4GXMHF.cjs} +30 -17
- package/dist/chunk-SH4GXMHF.cjs.map +1 -0
- package/dist/{chunk-LIHQISFN.js → chunk-W3EJ2EJN.js} +2 -2
- package/dist/connect-modal/index.cjs +2 -2
- package/dist/connect-modal/index.d.cts +3 -9
- package/dist/connect-modal/index.d.ts +3 -9
- package/dist/connect-modal/index.js +1 -1
- package/dist/{wagmi-84MPgN9w.d.cts → index-DZolGZOk.d.cts} +13 -30
- package/dist/{wagmi-84MPgN9w.d.ts → index-DZolGZOk.d.ts} +13 -30
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +6 -6
- package/dist/restore-modal.cjs +3 -3
- package/dist/restore-modal.js +2 -2
- package/package.json +10 -10
- package/src/connect-modal/components/connection-view.ts +5 -2
- package/src/connect-modal/components/qr-code-view.ts +21 -6
- package/src/connect-modal/connect-modal.ts +1 -0
- package/dist/chunk-2CKXEZQF.cjs.map +0 -1
- /package/dist/{chunk-RCCGJ3DC.js.map → chunk-57BU5F5W.js.map} +0 -0
- /package/dist/{chunk-I5I6SZZ5.js.map → chunk-OYA2PRQT.js.map} +0 -0
- /package/dist/{chunk-QOAWX2VD.js.map → chunk-PKYHZ2HN.js.map} +0 -0
- /package/dist/{chunk-LIHQISFN.js.map → chunk-W3EJ2EJN.js.map} +0 -0
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import
|
|
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
|
/**
|
|
@@ -247,6 +235,7 @@ declare class QrCodeView extends QrCodeView_base {
|
|
|
247
235
|
* Close modal
|
|
248
236
|
*/
|
|
249
237
|
private handleClose;
|
|
238
|
+
private get qrCodeOptions();
|
|
250
239
|
render(): TemplateResult<1>;
|
|
251
240
|
}
|
|
252
241
|
declare global {
|
|
@@ -255,13 +244,7 @@ declare global {
|
|
|
255
244
|
}
|
|
256
245
|
}
|
|
257
246
|
|
|
258
|
-
|
|
259
|
-
* Connect Modal - Lit Component
|
|
260
|
-
*
|
|
261
|
-
* Framework-agnostic connection modal for wallet/profile connections.
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
declare const ConnectModal_base: any;
|
|
247
|
+
declare const ConnectModal_base: _lukso_core.ThemeMixinConstructor<_lukso_core.DeviceServiceMixinConstructor<typeof ConnectModalBase>>;
|
|
265
248
|
declare class ConnectModal extends ConnectModal_base {
|
|
266
249
|
open: boolean;
|
|
267
250
|
private connectors;
|
|
@@ -427,4 +410,4 @@ declare function watchConnection(callback: (connection: WagmiConnection) => void
|
|
|
427
410
|
*/
|
|
428
411
|
declare function disconnect(): Promise<boolean>;
|
|
429
412
|
|
|
430
|
-
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
|
|
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
|
|
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
|
/**
|
|
@@ -247,6 +235,7 @@ declare class QrCodeView extends QrCodeView_base {
|
|
|
247
235
|
* Close modal
|
|
248
236
|
*/
|
|
249
237
|
private handleClose;
|
|
238
|
+
private get qrCodeOptions();
|
|
250
239
|
render(): TemplateResult<1>;
|
|
251
240
|
}
|
|
252
241
|
declare global {
|
|
@@ -255,13 +244,7 @@ declare global {
|
|
|
255
244
|
}
|
|
256
245
|
}
|
|
257
246
|
|
|
258
|
-
|
|
259
|
-
* Connect Modal - Lit Component
|
|
260
|
-
*
|
|
261
|
-
* Framework-agnostic connection modal for wallet/profile connections.
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
declare const ConnectModal_base: any;
|
|
247
|
+
declare const ConnectModal_base: _lukso_core.ThemeMixinConstructor<_lukso_core.DeviceServiceMixinConstructor<typeof ConnectModalBase>>;
|
|
265
248
|
declare class ConnectModal extends ConnectModal_base {
|
|
266
249
|
open: boolean;
|
|
267
250
|
private connectors;
|
|
@@ -427,4 +410,4 @@ declare function watchConnection(callback: (connection: WagmiConnection) => void
|
|
|
427
410
|
*/
|
|
428
411
|
declare function disconnect(): Promise<boolean>;
|
|
429
412
|
|
|
430
|
-
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
|
|
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
|
|
3
|
+
var _chunk7ASNQ5WCcjs = require('./chunk-7ASNQ5WC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
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
|
|
17
|
+
var _chunkDVAH2W74cjs = require('./chunk-DVAH2W74.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
20
|
+
var _chunkEJYS2CGFcjs = require('./chunk-EJYS2CGF.cjs');
|
|
21
|
+
require('./chunk-ILFBSTA2.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -29,7 +29,7 @@ require('./chunk-ZWXGWUXQ.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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 './
|
|
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 './
|
|
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 './
|
|
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 './
|
|
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-
|
|
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-
|
|
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-
|
|
17
|
+
} from "./chunk-OYA2PRQT.js";
|
|
18
18
|
import {
|
|
19
19
|
RestoreModal
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
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-
|
|
32
|
+
} from "./chunk-H4DVQ5E2.js";
|
|
33
33
|
import "./chunk-EUXUH3YW.js";
|
|
34
34
|
|
|
35
35
|
// src/connector.ts
|
package/dist/restore-modal.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
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 =
|
|
8
|
+
exports.RestoreModal = _chunkEJYS2CGFcjs.RestoreModal;
|
|
9
9
|
//# sourceMappingURL=restore-modal.cjs.map
|
package/dist/restore-modal.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukso/up-connector",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2-dev.d85bba3",
|
|
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.
|
|
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.
|
|
86
|
-
"@lukso/
|
|
87
|
-
"@lukso/transaction-view-
|
|
88
|
-
"@lukso/
|
|
85
|
+
"@lukso/core": "1.2.2-dev.d85bba3",
|
|
86
|
+
"@lukso/transaction-view-core": "0.6.1-dev.d85bba3",
|
|
87
|
+
"@lukso/transaction-view-headless": "0.4.2-dev.d85bba3",
|
|
88
|
+
"@lukso/passkey-auth": "1.2.2-dev.d85bba3"
|
|
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.
|
|
112
|
+
"autoprefixer": "^10.4.23",
|
|
113
113
|
"postcss": "^8.5.6",
|
|
114
114
|
"postcss-import": "^16.1.1",
|
|
115
|
-
"tailwindcss": "^3.4.
|
|
115
|
+
"tailwindcss": "^3.4.19",
|
|
116
116
|
"tsup": "^8.5.1",
|
|
117
117
|
"typescript": "^5.9.3",
|
|
118
|
-
"viem": "^2.
|
|
119
|
-
"vitest": "^4.0.
|
|
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
|
|
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
|
|
327
|
+
this.device?.isMobile ||
|
|
325
328
|
!this.browserSupportExtension
|
|
326
329
|
)
|
|
327
330
|
)
|
|
@@ -11,8 +11,13 @@ import { ConnectModalBase } from '../connect-modal.base'
|
|
|
11
11
|
// Import lukso web components
|
|
12
12
|
import '@lukso/web-components/dist/components/lukso-qr-code'
|
|
13
13
|
import { withIntlService, withTheme } from '@lukso/core/mixins'
|
|
14
|
+
import type { QRCodeOptions } from '@lukso/web-components'
|
|
14
15
|
import { property } from 'lit/decorators.js'
|
|
15
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
renderBackButton,
|
|
18
|
+
renderCloseButton,
|
|
19
|
+
renderTitle,
|
|
20
|
+
} from '../connect-modal.templates'
|
|
16
21
|
import cubeGlassImage from '../images/up-cube-glass.png'
|
|
17
22
|
|
|
18
23
|
export class QrCodeView extends withTheme(withIntlService(ConnectModalBase)) {
|
|
@@ -36,6 +41,17 @@ export class QrCodeView extends withTheme(withIntlService(ConnectModalBase)) {
|
|
|
36
41
|
)
|
|
37
42
|
}
|
|
38
43
|
|
|
44
|
+
private get qrCodeOptions(): QRCodeOptions {
|
|
45
|
+
return {
|
|
46
|
+
dotsOptions: {
|
|
47
|
+
color: this.isDark ? '#F5F8FA' : '#243542',
|
|
48
|
+
},
|
|
49
|
+
backgroundOptions: {
|
|
50
|
+
color: this.isDark ? '#243542' : '#FFFFFF',
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
39
55
|
render(): TemplateResult<1> {
|
|
40
56
|
return html`<div class="flex justify-between">
|
|
41
57
|
<button
|
|
@@ -51,13 +67,12 @@ export class QrCodeView extends withTheme(withIntlService(ConnectModalBase)) {
|
|
|
51
67
|
</button>
|
|
52
68
|
</div>
|
|
53
69
|
<div class="flex flex-col items-center text-center">
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<div class="paragraph-inter-16-regular mb-6">
|
|
70
|
+
${renderTitle(this.formatMessage('connect_modal_qr_code_title'))}
|
|
71
|
+
|
|
72
|
+
<div class="paragraph-inter-16-regular text-neutral-20 dark:text-neutral-100 mb-4">
|
|
58
73
|
${this.formatMessage('connect_modal_qr_code_description')}
|
|
59
74
|
</div>
|
|
60
|
-
<lukso-qr-code size="
|
|
75
|
+
<lukso-qr-code size="320" .value="${this.data}" image="${cubeGlassImage}" .options="${this.qrCodeOptions}" class="rounded-12 overflow-hidden"></lukso-qr-code></div>`
|
|
61
76
|
}
|
|
62
77
|
}
|
|
63
78
|
|
|
@@ -206,6 +206,7 @@ export class ConnectModal extends withTheme(
|
|
|
206
206
|
?is-open=${this.open}
|
|
207
207
|
?has-bottom-padding=${!!(this.device?.isIOS && this.device?.isSafari)}
|
|
208
208
|
size="auto"
|
|
209
|
+
.theme=${this.theme}
|
|
209
210
|
@on-backdrop-click=${this.handleClose}
|
|
210
211
|
>
|
|
211
212
|
<div class="p-6 w-full sm:w-[372px]">
|