@credenza3/passport-evm 0.2.19 → 0.2.20

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 (106) hide show
  1. package/dist/{App-C9I9989L.js → App-CVL5rG_7.js} +405 -402
  2. package/dist/App-CVL5rG_7.js.map +1 -0
  3. package/dist/Button-DqEdQlgP.js +64 -0
  4. package/dist/{Button-D5CGIu8s.js.map → Button-DqEdQlgP.js.map} +1 -1
  5. package/dist/{ButtonBack-DiIG6luz.js → ButtonBack-vxTGGwU6.js} +4 -4
  6. package/dist/{ButtonBack-DiIG6luz.js.map → ButtonBack-vxTGGwU6.js.map} +1 -1
  7. package/dist/{ButtonLink-CujytEgB.js → ButtonLink-Dbc5ZFe5.js} +16 -17
  8. package/dist/{ButtonLink-CujytEgB.js.map → ButtonLink-Dbc5ZFe5.js.map} +1 -1
  9. package/dist/ConfirmAccount-CzJ-4HcH.js +210 -0
  10. package/dist/{ConfirmAccount-L4VSLm33.js.map → ConfirmAccount-CzJ-4HcH.js.map} +1 -1
  11. package/dist/{ContentHeader-DtB3AfgZ.js → ContentHeader-BL6VCaOC.js} +5 -5
  12. package/dist/{ContentHeader-DtB3AfgZ.js.map → ContentHeader-BL6VCaOC.js.map} +1 -1
  13. package/dist/{Error-4PRrZwmC.js → Error-cuDoKeUy.js} +113 -113
  14. package/dist/{Error-4PRrZwmC.js.map → Error-cuDoKeUy.js.map} +1 -1
  15. package/dist/{Input-B40ySJRz.js → Input-CwK6i9kK.js} +6 -10
  16. package/dist/{Input-B40ySJRz.js.map → Input-CwK6i9kK.js.map} +1 -1
  17. package/dist/{Label-CVUbL1bW.js → Label-DZWmB1jC.js} +5 -10
  18. package/dist/{Label-CVUbL1bW.js.map → Label-DZWmB1jC.js.map} +1 -1
  19. package/dist/{Loader-DWGzCX4y.js → Loader-CR_PsWeQ.js} +3 -3
  20. package/dist/{Loader-DWGzCX4y.js.map → Loader-CR_PsWeQ.js.map} +1 -1
  21. package/dist/Login-BLxKy2wr.js +281 -0
  22. package/dist/{Login-CAgCGqA-.js.map → Login-BLxKy2wr.js.map} +1 -1
  23. package/dist/Logout-DMSGdeJk.js +96 -0
  24. package/dist/{Logout-Cn-fwBb4.js.map → Logout-DMSGdeJk.js.map} +1 -1
  25. package/dist/Nav-WMkbBHYm.js +666 -0
  26. package/dist/{Nav-CuA2pLgM.js.map → Nav-WMkbBHYm.js.map} +1 -1
  27. package/dist/{PassportId-CSTvlPYW.js → PassportId-Drg1oJ8k.js} +91 -93
  28. package/dist/{PassportId-CSTvlPYW.js.map → PassportId-Drg1oJ8k.js.map} +1 -1
  29. package/dist/Payment-BGGkR1cJ.js +1030 -0
  30. package/dist/{Payment-DVlaKx-E.js.map → Payment-BGGkR1cJ.js.map} +1 -1
  31. package/dist/PaymentResult-Vxz68gmZ.js +256 -0
  32. package/dist/{PaymentResult-C5iwUhAQ.js.map → PaymentResult-Vxz68gmZ.js.map} +1 -1
  33. package/dist/{Profile-GkmykWQr.js → Profile-D5OVDyh3.js} +157 -165
  34. package/dist/{Profile-GkmykWQr.js.map → Profile-D5OVDyh3.js.map} +1 -1
  35. package/dist/ProgressVideo-htlN2ByZ.js +125 -0
  36. package/dist/{ProgressVideo-4SQjAnPJ.js.map → ProgressVideo-htlN2ByZ.js.map} +1 -1
  37. package/dist/RichAlert-DezBlHxy.js +111 -0
  38. package/dist/{RichAlert-DoQILIMV.js.map → RichAlert-DezBlHxy.js.map} +1 -1
  39. package/dist/Scanner-Cl31otyX.js +123 -0
  40. package/dist/{Scanner-BCw9U9L_.js.map → Scanner-Cl31otyX.js.map} +1 -1
  41. package/dist/SendTokens-BGGPj_e_.js +364 -0
  42. package/dist/{SendTokens-D3cXqMmt.js.map → SendTokens-BGGPj_e_.js.map} +1 -1
  43. package/dist/Sign-n6MGx-1d.js +109 -0
  44. package/dist/{Sign-IQLTbDiV.js.map → Sign-n6MGx-1d.js.map} +1 -1
  45. package/dist/Stripe.service-K8Nm72sZ.js +59 -0
  46. package/dist/{Stripe.service-GlcYQnp5.js.map → Stripe.service-K8Nm72sZ.js.map} +1 -1
  47. package/dist/UpdateProfile-BbMPWUyU.js +525 -0
  48. package/dist/{UpdateProfile-D4bg5GEF.js.map → UpdateProfile-BbMPWUyU.js.map} +1 -1
  49. package/dist/UserInfo-htUCiyHe.js +128 -0
  50. package/dist/{UserInfo-DwjE6Ph4.js.map → UserInfo-htUCiyHe.js.map} +1 -1
  51. package/dist/Wallet-BHxkNNa4.js +263 -0
  52. package/dist/{Wallet-BUV87MlV.js.map → Wallet-BHxkNNa4.js.map} +1 -1
  53. package/dist/abi-DIVtyi6o.js.map +1 -1
  54. package/dist/account-BPB9Ucub.js.map +1 -1
  55. package/dist/each-CxApMty7.js +266 -0
  56. package/dist/each-CxApMty7.js.map +1 -0
  57. package/dist/event-modifiers-D4czZCB6.js +13 -0
  58. package/dist/{event-modifiers-DpFXHa6q.js.map → event-modifiers-D4czZCB6.js.map} +1 -1
  59. package/dist/{html-a8zjkl0d.js → html-BynZ0QgP.js} +16 -16
  60. package/dist/html-BynZ0QgP.js.map +1 -0
  61. package/dist/{index-B0D9qQ_O.js → index-QYUycBJ8.js} +11779 -11229
  62. package/dist/index-QYUycBJ8.js.map +1 -0
  63. package/dist/index-client-BZifBt-8.js +25 -0
  64. package/dist/index-client-BZifBt-8.js.map +1 -0
  65. package/dist/input-2LrEHvzA.js +37 -0
  66. package/dist/input-2LrEHvzA.js.map +1 -0
  67. package/dist/legacy-ShShb87f.js +1025 -0
  68. package/dist/legacy-ShShb87f.js.map +1 -0
  69. package/dist/passport.es.js +1 -1
  70. package/dist/passport.umd.js +139 -138
  71. package/dist/passport.umd.js.map +1 -1
  72. package/dist/scanner-Bm3Pvpfs.js.map +1 -1
  73. package/dist/{scanner.es-cf-mCExK.js → scanner.es-DK9KxX60.js} +2 -2
  74. package/dist/{scanner.es-cf-mCExK.js.map → scanner.es-DK9KxX60.js.map} +1 -1
  75. package/dist/strings-B-rKL311.js.map +1 -1
  76. package/dist/svg-BwNV4pWZ.js.map +1 -1
  77. package/dist/validation-DaZvZUPL.js.map +1 -1
  78. package/package.json +20 -20
  79. package/dist/App-C9I9989L.js.map +0 -1
  80. package/dist/Button-D5CGIu8s.js +0 -69
  81. package/dist/ConfirmAccount-L4VSLm33.js +0 -210
  82. package/dist/Login-CAgCGqA-.js +0 -294
  83. package/dist/Logout-Cn-fwBb4.js +0 -96
  84. package/dist/Nav-CuA2pLgM.js +0 -688
  85. package/dist/Payment-DVlaKx-E.js +0 -1039
  86. package/dist/PaymentResult-C5iwUhAQ.js +0 -290
  87. package/dist/ProgressVideo-4SQjAnPJ.js +0 -121
  88. package/dist/RichAlert-DoQILIMV.js +0 -119
  89. package/dist/Scanner-BCw9U9L_.js +0 -126
  90. package/dist/SendTokens-D3cXqMmt.js +0 -363
  91. package/dist/Sign-IQLTbDiV.js +0 -107
  92. package/dist/Stripe.service-GlcYQnp5.js +0 -61
  93. package/dist/UpdateProfile-D4bg5GEF.js +0 -522
  94. package/dist/UserInfo-DwjE6Ph4.js +0 -151
  95. package/dist/Wallet-BUV87MlV.js +0 -260
  96. package/dist/each-tAR3XqEj.js +0 -202
  97. package/dist/each-tAR3XqEj.js.map +0 -1
  98. package/dist/event-modifiers-DpFXHa6q.js +0 -13
  99. package/dist/html-a8zjkl0d.js.map +0 -1
  100. package/dist/index-B0D9qQ_O.js.map +0 -1
  101. package/dist/index-client-z9rIkUyw.js +0 -28
  102. package/dist/index-client-z9rIkUyw.js.map +0 -1
  103. package/dist/input-b1D2_f8m.js +0 -30
  104. package/dist/input-b1D2_f8m.js.map +0 -1
  105. package/dist/legacy-C1UsO_tu.js +0 -1039
  106. package/dist/legacy-C1UsO_tu.js.map +0 -1
@@ -1,294 +0,0 @@
1
- import { c as V, p as K, f as M, g as xt, e as st, b as u, d as z, u as B, a as N, i as D, t as bt, r as et, h as it, n as yt, o as rt } from "./legacy-C1UsO_tu.js";
2
- import { o as Ct } from "./index-client-z9rIkUyw.js";
3
- import { v as U, B as L, C as S, z as F, u as W, y as j, G as E, F as Lt, D as ot, K as h, E as J, w as St, J as P, m as tt, A as X, x as Ot, I as ct, aY as Qt, aZ as at, a_ as Pt, L as $, W as Mt, N as kt, a$ as qt, a5 as At, Q as Dt, R as Et } from "./index-B0D9qQ_O.js";
4
- import { C as Rt, a as Tt } from "./App-C9I9989L.js";
5
- import { C as It } from "./ContentHeader-DtB3AfgZ.js";
6
- import { L as lt } from "./Loader-DWGzCX4y.js";
7
- import { e as Ht, i as Nt } from "./each-tAR3XqEj.js";
8
- import { h as jt } from "./html-a8zjkl0d.js";
9
- import { P as Jt, a as Vt } from "./svg-BwNV4pWZ.js";
10
- var zt = M(`<button class="crtw-w-full crtw-text-center crtw-h-11 crtw-font-medium
11
- crtw-rounded-sm crtw-text-[13px] sm:crtw-text-sm crtw-items-center crtw-bg-black
12
- crtw-text-white crtw-mt-[5px] crtw-justify-center crtw-flex"><!></button>`);
13
- function dt(s, o) {
14
- if (new.target) return V({ component: dt, ...s });
15
- U(o, !1);
16
- let n = K(o, "handler", 12);
17
- var e = zt(), x = L(e);
18
- return xt(x, o, "default", {}), S(e), st("click", e, function(...l) {
19
- var i;
20
- (i = n()) == null || i.apply(this, l);
21
- }), u(s, e), F({
22
- get handler() {
23
- return n();
24
- },
25
- set handler(l) {
26
- n(l), W();
27
- },
28
- $set: B,
29
- $on: (l, i) => z(o, l, i)
30
- });
31
- }
32
- var Bt = M('<div class="crtw-text-center crtw-text-gray-500 crtw-text-sm">No login methods available for this client.</div>'), Ut = M('<div class="crtw-m-5"><!></div>');
33
- function vt(s, o) {
34
- if (new.target) return V({ component: vt, ...s });
35
- U(o, !1);
36
- let n = K(o, "options", 12), { loginMethods: e, handleLogin: x, isLoading: l } = n();
37
- var i = N(), g = j(i);
38
- {
39
- var f = (a) => {
40
- Rt(a, {
41
- children: (c, t) => {
42
- var r = N(), p = j(r);
43
- {
44
- var k = (m) => {
45
- var d = Bt();
46
- u(m, d);
47
- }, R = (m) => {
48
- var d = N(), T = j(d);
49
- Ht(T, 1, () => e, Nt, (I, O) => {
50
- dt(I, {
51
- handler: () => x(h(O)),
52
- children: (_, q) => {
53
- Lt();
54
- var A = bt();
55
- ot(() => et(A, `Continue with ${h(O), E(() => h(O).text) ?? ""}`)), u(_, A);
56
- },
57
- $$slots: { default: !0 }
58
- });
59
- }), u(m, d);
60
- };
61
- D(p, (m) => {
62
- E(() => e.length === 0) ? m(k) : m(R, !1);
63
- });
64
- }
65
- u(c, r);
66
- },
67
- $$slots: { default: !0 }
68
- });
69
- }, b = (a) => {
70
- var c = Ut(), t = L(c);
71
- lt(t, {}), S(c), u(a, c);
72
- };
73
- D(g, (a) => {
74
- l ? a(b, !1) : a(f);
75
- });
76
- }
77
- return u(s, i), F({
78
- get options() {
79
- return n();
80
- },
81
- set options(a) {
82
- n(a), W();
83
- },
84
- $set: B,
85
- $on: (a, c) => z(o, a, c)
86
- });
87
- }
88
- var Ft = M("<div><!></div>"), Gt = M('<div class="crtw-mt-4"><span class="crtw-text-sm">Cached QR is available. <span class="crtw-cursor-pointer crtw-text-warningTextColor" role="button" tabindex="0"> </span></span> <!></div>');
89
- function ut(s, o) {
90
- if (new.target) return V({ component: ut, ...s });
91
- U(o, !1);
92
- let n = K(o, "options", 12), { qrCodeSvg: e, showQr: x, hideQr: l } = n();
93
- var i = Gt(), g = L(i), f = J(L(g)), b = L(f, !0);
94
- S(f), S(g);
95
- var a = J(g, 2);
96
- {
97
- var c = (t) => {
98
- var r = Ft(), p = L(r);
99
- jt(p, () => e), S(r), u(t, r);
100
- };
101
- D(a, (t) => {
102
- e && t(c);
103
- });
104
- }
105
- return S(i), ot(() => et(b, e ? "Hide QR!" : "Show QR!")), st("click", f, function(...t) {
106
- var r;
107
- (r = e ? l : x) == null || r.apply(this, t);
108
- }), u(s, i), F({
109
- get options() {
110
- return n();
111
- },
112
- set options(t) {
113
- n(t), W();
114
- },
115
- $set: B,
116
- $on: (t, r) => z(o, t, r)
117
- });
118
- }
119
- var Kt = M('<p class="crtw-text-center crtw-text-xs crtw-text-gray-700"> </p>'), Wt = M('<div class="crtw-flex crtw-flex-col crtw-gap-14 crtw-items-center crtw-w-full"><div class="crtw-flex crtw-flex-col crtw-gap-3 crtw-items-center crtw-w-full"><!> <!></div> <!> <!></div>');
120
- function ft(s, o) {
121
- if (new.target) return V({ component: ft, ...s });
122
- U(o, !1);
123
- const n = tt();
124
- let e = K(o, "options", 12), {
125
- authTitle: x,
126
- authDescription: l,
127
- qrOptions: i,
128
- authOptions: g
129
- } = e();
130
- St(() => X(e()), () => {
131
- P(n, e().isLoading);
132
- }), Ot(), it();
133
- var f = N(), b = j(f);
134
- {
135
- var a = (t) => {
136
- lt(t, {});
137
- }, c = (t) => {
138
- var r = Wt(), p = L(r), k = L(p);
139
- It(k, {
140
- get text() {
141
- return x;
142
- },
143
- get description() {
144
- return l;
145
- }
146
- });
147
- var R = J(k, 2);
148
- {
149
- var m = (_) => {
150
- var q = Kt(), A = L(q, !0);
151
- S(q), ot(() => et(A, (X(e()), E(() => e().infoText)))), u(_, q);
152
- };
153
- D(R, (_) => {
154
- X(e()), E(() => e().infoText) && _(m);
155
- });
156
- }
157
- S(p);
158
- var d = J(p, 2);
159
- const T = ct(() => (h(n), E(() => ({
160
- ...g,
161
- isLoading: h(n)
162
- }))));
163
- vt(d, {
164
- get options() {
165
- return h(T);
166
- }
167
- });
168
- var I = J(d, 2);
169
- {
170
- var O = (_) => {
171
- ut(_, {
172
- get options() {
173
- return i;
174
- }
175
- });
176
- };
177
- D(I, (_) => {
178
- i && _(O);
179
- });
180
- }
181
- S(r), u(t, r);
182
- };
183
- D(b, (t) => {
184
- h(n) ? t(a) : t(c, !1);
185
- });
186
- }
187
- return u(s, f), F({
188
- get options() {
189
- return e();
190
- },
191
- set options(t) {
192
- e(t), W();
193
- },
194
- $set: B,
195
- $on: (t, r) => z(o, t, r)
196
- });
197
- }
198
- const Yt = (s) => {
199
- const o = Qt.evm.isEvmProvider();
200
- return {
201
- oauth: {
202
- provider: at.OAUTH,
203
- text: "credenza auth",
204
- condition: s.some((n) => n !== "evm")
205
- },
206
- evm: {
207
- provider: at.EVM,
208
- text: "EVM",
209
- condition: s.includes("evm") && o
210
- }
211
- };
212
- };
213
- function Zt(s, o) {
214
- if (new.target) return V({ component: Zt, ...s });
215
- U(o, !1);
216
- const [n, e] = yt(), x = () => rt(Dt, "$forcedPage", n), l = () => rt(Et, "$pageStore", n);
217
- var i = this && this.__awaiter || function(v, w, y, C) {
218
- function _t(H) {
219
- return H instanceof y ? H : new y(function(G) {
220
- G(H);
221
- });
222
- }
223
- return new (y || (y = Promise))(function(H, G) {
224
- function ht(Q) {
225
- try {
226
- Y(C.next(Q));
227
- } catch (Z) {
228
- G(Z);
229
- }
230
- }
231
- function wt(Q) {
232
- try {
233
- Y(C.throw(Q));
234
- } catch (Z) {
235
- G(Z);
236
- }
237
- }
238
- function Y(Q) {
239
- Q.done ? H(Q.value) : _t(Q.value).then(ht, wt);
240
- }
241
- Y((C = C.apply(v, w || [])).next());
242
- });
243
- }, g, f, b, a, c, t;
244
- const r = localStorage.getItem(Pt.QR_CODE);
245
- let p = tt();
246
- const k = () => {
247
- if (!r) return;
248
- const v = JSON.parse(r), w = Jt(JSON.stringify(v));
249
- P(p, Vt(w, { width: 250, height: 250 }));
250
- }, R = () => P(p, "");
251
- let m = $(Mt), d = tt(!1);
252
- const { login: T, close: I } = $(kt), O = (v) => i(void 0, [v], void 0, function* ({ provider: w }) {
253
- try {
254
- P(d, !0), yield T(w), P(d, !1), !x() && !l() && I();
255
- } catch {
256
- P(d, !1);
257
- }
258
- }), _ = () => i(void 0, void 0, void 0, function* () {
259
- const v = Yt($(At).available_login_types);
260
- return Object.entries(v).filter(([y, C]) => C.condition !== void 0 ? C.condition : !0).map(([y, C]) => Object.assign({}, C));
261
- }), q = (b = (f = (g = m.content) === null || g === void 0 ? void 0 : g.auth) === null || f === void 0 ? void 0 : f.title) !== null && b !== void 0 ? b : "Let’s get started", A = (t = (c = (a = m.content) === null || a === void 0 ? void 0 : a.auth) === null || c === void 0 ? void 0 : c.description) !== null && t !== void 0 ? t : "Confirm your account to connect.", gt = qt.subscribe((v) => P(d, v));
262
- Ct(gt), it();
263
- var nt = N(), pt = j(nt);
264
- Tt(pt, () => E(_), null, (v, w) => {
265
- const y = ct(() => ({
266
- isLoading: h(d),
267
- authTitle: q,
268
- authDescription: A,
269
- qrOptions: {
270
- qrCodeSvg: h(p),
271
- showQr: k,
272
- hideQr: R
273
- },
274
- authOptions: {
275
- loginMethods: h(w),
276
- handleLogin: O
277
- }
278
- }));
279
- ft(v, {
280
- get options() {
281
- return h(y);
282
- }
283
- });
284
- }), u(s, nt);
285
- var mt = F({
286
- $set: B,
287
- $on: (v, w) => z(o, v, w)
288
- });
289
- return e(), mt;
290
- }
291
- export {
292
- Zt as default
293
- };
294
- //# sourceMappingURL=Login-CAgCGqA-.js.map
@@ -1,96 +0,0 @@
1
- import { c as y, p as B, f as q, b as z, d as h, u as w, h as E } from "./legacy-C1UsO_tu.js";
2
- import { v as C, y as G, E as H, z as x, u as I, L as v, W as K, N, K as R, I as T, G as W } from "./index-B0D9qQ_O.js";
3
- import { C as j } from "./App-C9I9989L.js";
4
- import { C as A } from "./ContentHeader-DtB3AfgZ.js";
5
- import { B as D } from "./Button-D5CGIu8s.js";
6
- var F = q("<!> <!>", 1);
7
- function k(r, s) {
8
- if (new.target) return y({ component: k, ...r });
9
- C(s, !1);
10
- let a = B(s, "options", 12), { title: c, description: p, onClick: g } = a();
11
- var l = F(), f = G(l);
12
- A(f, {
13
- get text() {
14
- return c;
15
- },
16
- get description() {
17
- return p;
18
- }
19
- });
20
- var n = H(f, 2);
21
- return j(n, {
22
- children: (t, o) => {
23
- D(t, {
24
- text: "Sign out now",
25
- get onClick() {
26
- return g;
27
- }
28
- });
29
- },
30
- $$slots: { default: !0 }
31
- }), z(r, l), x({
32
- get options() {
33
- return a();
34
- },
35
- set options(t) {
36
- a(t), I();
37
- },
38
- $set: w,
39
- $on: (t, o) => h(s, t, o)
40
- });
41
- }
42
- function J(r, s) {
43
- if (new.target) return y({ component: J, ...r });
44
- C(s, !1);
45
- var a = this && this.__awaiter || function(n, t, o, e) {
46
- function S(u) {
47
- return u instanceof o ? u : new o(function(d) {
48
- d(u);
49
- });
50
- }
51
- return new (o || (o = Promise))(function(u, d) {
52
- function L(i) {
53
- try {
54
- m(e.next(i));
55
- } catch (_) {
56
- d(_);
57
- }
58
- }
59
- function b(i) {
60
- try {
61
- m(e.throw(i));
62
- } catch (_) {
63
- d(_);
64
- }
65
- }
66
- function m(i) {
67
- i.done ? u(i.value) : S(i.value).then(L, b);
68
- }
69
- m((e = e.apply(n, t || [])).next());
70
- });
71
- };
72
- const c = v(K), { logout: p, close: g } = v(N), l = () => a(void 0, void 0, void 0, function* () {
73
- p({ shouldRevokeSession: !0 }), g();
74
- });
75
- E();
76
- const f = T(() => W(() => {
77
- var n, t, o, e;
78
- return {
79
- title: ((t = (n = c.content) == null ? void 0 : n.logout) == null ? void 0 : t.title) || "Sign out",
80
- description: ((e = (o = c.content) == null ? void 0 : o.logout) == null ? void 0 : e.description) || "This will sign you out and you will be asked to verify your identity next time you sign in.",
81
- onClick: l
82
- };
83
- }));
84
- return k(r, {
85
- get options() {
86
- return R(f);
87
- }
88
- }), x({
89
- $set: w,
90
- $on: (n, t) => h(s, n, t)
91
- });
92
- }
93
- export {
94
- J as default
95
- };
96
- //# sourceMappingURL=Logout-Cn-fwBb4.js.map