@zerohash-sdk/travel-rule-react 0.1.1 → 0.1.2
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 +11 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const $ = {
|
|
|
23
23
|
} catch {
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, I = (e, t) => V(t) !== "eu" ? e : e === "cert" ? "eu-cert" : e === "prod" ? "eu-prod" : e, P = (e) => {
|
|
27
27
|
if (!e || typeof e != "string")
|
|
28
28
|
return {};
|
|
29
29
|
const t = e.split(".");
|
|
@@ -41,10 +41,10 @@ const $ = {
|
|
|
41
41
|
return {};
|
|
42
42
|
}
|
|
43
43
|
}, L = (e, t, o) => {
|
|
44
|
-
const r =
|
|
44
|
+
const r = I(t, o);
|
|
45
45
|
return e[r] ?? e[t] ?? e.prod;
|
|
46
46
|
}, J = (e, t, o) => {
|
|
47
|
-
const r =
|
|
47
|
+
const r = I(t, o);
|
|
48
48
|
return e[r] ?? e[t];
|
|
49
49
|
}, x = () => {
|
|
50
50
|
}, H = () => {
|
|
@@ -104,14 +104,14 @@ const $ = {
|
|
|
104
104
|
}, k = (p, y, i) => {
|
|
105
105
|
if (f)
|
|
106
106
|
return;
|
|
107
|
-
const
|
|
107
|
+
const U = Math.round(performance.now() - w), N = {
|
|
108
108
|
webComponentTag: t,
|
|
109
109
|
appName: o,
|
|
110
110
|
env: n,
|
|
111
111
|
scriptUrl: y,
|
|
112
112
|
reason: p,
|
|
113
113
|
triedFallback: i,
|
|
114
|
-
elapsedMs:
|
|
114
|
+
elapsedMs: U,
|
|
115
115
|
claims: S
|
|
116
116
|
};
|
|
117
117
|
v(N);
|
|
@@ -230,7 +230,7 @@ const b = {
|
|
|
230
230
|
...m
|
|
231
231
|
}) => {
|
|
232
232
|
const g = M(null);
|
|
233
|
-
X(g, { theme: r,
|
|
233
|
+
X(g, { theme: r, onCompleted: a, onError: l, onClose: c, onLoaded: n, onEvent: s });
|
|
234
234
|
const { loadFailed: h, retry: d } = Y({
|
|
235
235
|
webComponentTag: A,
|
|
236
236
|
scriptUrls: ee,
|
|
@@ -242,9 +242,11 @@ const b = {
|
|
|
242
242
|
jwt: e,
|
|
243
243
|
env: o,
|
|
244
244
|
theme: r,
|
|
245
|
-
//
|
|
246
|
-
//
|
|
247
|
-
|
|
245
|
+
// camelCase — React 19 sets this as a property via the extra-prop setter
|
|
246
|
+
// before connectedCallback runs, so the value lands in the URL fragment
|
|
247
|
+
// reliably (the hyphenated attribute path fails for JSON extra props
|
|
248
|
+
// because the raw string isn't valid JSON).
|
|
249
|
+
depositId: t,
|
|
248
250
|
...m
|
|
249
251
|
});
|
|
250
252
|
};
|