wallet-connect-button-vue 1.0.22 → 1.0.24
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.esm.js +24 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24 -5
- package/dist/index.js.map +1 -1
- package/dist/nl-wallet-web.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -69,8 +69,13 @@ const error = ref(null);
|
|
|
69
69
|
const buttonRef = ref(null);
|
|
70
70
|
|
|
71
71
|
const getDefaultHost = () => {
|
|
72
|
+
// NB Wallet: nb-wallet-connect (connect.nbwallet.org); the issuance
|
|
73
|
+
// server has its own host.
|
|
72
74
|
if (props.nbwallet) {
|
|
73
|
-
|
|
75
|
+
if (props.useLocalWcServer) {
|
|
76
|
+
return props.issuance ? 'http://localhost:5017' : 'http://localhost:5021';
|
|
77
|
+
}
|
|
78
|
+
return props.issuance ? 'https://issuance.connect.nbwallet.org' : 'https://connect.nbwallet.org';
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
// If useLocalWcServer is set, use local server
|
|
@@ -112,8 +117,22 @@ const constructURI = (session_type) => {
|
|
|
112
117
|
)}&request_uri_method=${request_uri_method}&client_id=${client_id_uri}`;
|
|
113
118
|
};
|
|
114
119
|
|
|
115
|
-
|
|
116
|
-
|
|
120
|
+
// Disclosure uses the dynamic strategy — the modal creates the session and the
|
|
121
|
+
// status response carries the universal link — so only issuance needs the
|
|
122
|
+
// static same/cross-device links.
|
|
123
|
+
const useStaticLinks = computed(() => props.issuance);
|
|
124
|
+
const sameDeviceUl = computed(() => useStaticLinks.value ? constructURI("same_device") : undefined);
|
|
125
|
+
const crossDeviceUl = computed(() => useStaticLinks.value ? constructURI("cross_device") : undefined);
|
|
126
|
+
|
|
127
|
+
// Per-wallet-type help-base-url. An explicit helpBaseUrl prop wins; otherwise
|
|
128
|
+
// fall back to the wallet's own help page (NP Wallet by default).
|
|
129
|
+
const resolvedHelpBaseUrl = computed(() => {
|
|
130
|
+
if (props.helpBaseUrl) return props.helpBaseUrl;
|
|
131
|
+
if (props.nbwallet) return 'https://nbwallet.org/download';
|
|
132
|
+
if (props.over18) return 'https://18up.eu/nl/install/';
|
|
133
|
+
if (props.business) return 'https://ebwallet.org/download';
|
|
134
|
+
return 'https://npwallet.org/';
|
|
135
|
+
});
|
|
117
136
|
|
|
118
137
|
const fetchRequestedCredentials = async () => {
|
|
119
138
|
if (!props.apiKey || !props.clientId) return [];
|
|
@@ -354,7 +373,7 @@ return (_ctx, _cache) => {
|
|
|
354
373
|
usecase: props.issuance ? '' : __props.clientId,
|
|
355
374
|
"start-url": startUrl.value,
|
|
356
375
|
lang: props.lang,
|
|
357
|
-
"help-base-url":
|
|
376
|
+
"help-base-url": resolvedHelpBaseUrl.value,
|
|
358
377
|
"same-device-ul": sameDeviceUl.value,
|
|
359
378
|
"cross-device-ul": crossDeviceUl.value,
|
|
360
379
|
business: props.business || undefined,
|
|
@@ -7614,7 +7633,7 @@ const dd = (e, t) => {
|
|
|
7614
7633
|
helpBaseUrl: {}
|
|
7615
7634
|
},
|
|
7616
7635
|
setup(e) {
|
|
7617
|
-
const
|
|
7636
|
+
const s = e.helpBaseUrl.toString(), n = He(De);
|
|
7618
7637
|
return (o, r) => (z(), Q("section", Cd, [
|
|
7619
7638
|
T("p", null, Z(B(n)("help_title")), 1),
|
|
7620
7639
|
T("p", null, [
|