@coinbase/cdp-react 0.0.105 → 0.0.107
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/assets/ExportWallet.css +1 -1
- package/dist/assets/LinkAuthFlow.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/SignInModal.css +1 -1
- package/dist/chunks/{CDPReactProvider.0yuqyXCv.js → CDPReactProvider.CFWIUvzR.js} +1 -1
- package/dist/chunks/{LinkAuthFlow.DAxzrHvD.js → LinkAuthFlow.S1XbYaG5.js} +1 -1
- package/dist/chunks/{index.Bp03h4Ri.js → index.IrJ_irKX.js} +1 -1
- package/dist/chunks/{useSendComponentCallOnce.0qu8ei84.js → useSendComponentCallOnce.BI4daEvm.js} +5 -5
- package/dist/components/AuthButton/index.js +1 -1
- package/dist/components/CDPReactProvider/index.js +1 -1
- package/dist/components/CopyEvmKeyButton/index.js +1 -1
- package/dist/components/CopySolanaKeyButton/index.js +1 -1
- package/dist/components/EnrollMfa/index.js +3 -3
- package/dist/components/EnrollMfa/methods/totp.js +1 -8
- package/dist/components/EnrollMfaModal/index.js +2 -2
- package/dist/components/ExportWallet/index.js +4 -4
- package/dist/components/ExportWalletModal/index.js +3 -3
- package/dist/components/Fund/index.js +2 -2
- package/dist/components/FundModal/index.js +2 -2
- package/dist/components/LinkAuth/LinkAuthFlow.js +2 -2
- package/dist/components/LinkAuth/LinkAuthFlowBackButton.js +2 -2
- package/dist/components/LinkAuth/LinkAuthFlowProvider.js +2 -2
- package/dist/components/LinkAuth/LinkAuthItem.js +1 -1
- package/dist/components/LinkAuth/LinkAuthItems.js +1 -1
- package/dist/components/LinkAuth/LinkAuthProvider.js +1 -1
- package/dist/components/LinkAuth/index.js +23 -23
- package/dist/components/LinkAuth/types.js +1 -1
- package/dist/components/LinkAuth/utils.js +1 -1
- package/dist/components/LinkAuthModal/index.js +3 -3
- package/dist/components/OAuthStatusModal/index.js +2 -2
- package/dist/components/SendEvmTransactionButton/index.js +1 -1
- package/dist/components/SendSolanaTransactionButton/index.js +1 -1
- package/dist/components/SignIn/SignInAuthMethodButtons.js +1 -1
- package/dist/components/SignIn/SignInBackButton.js +1 -1
- package/dist/components/SignIn/SignInDescription.js +2 -2
- package/dist/components/SignIn/SignInForm.js +2 -2
- package/dist/components/SignIn/SignInImage.js +1 -1
- package/dist/components/SignIn/SignInProvider.js +1 -1
- package/dist/components/SignIn/SignInTitle.js +2 -2
- package/dist/components/SignIn/flows/SignInWithEmail.js +1 -1
- package/dist/components/SignIn/flows/SignInWithOAuth.js +1 -1
- package/dist/components/SignIn/flows/SignInWithSms.js +1 -1
- package/dist/components/SignIn/index.js +2 -2
- package/dist/components/SignIn/types.js +1 -1
- package/dist/components/SignIn/useSignInReducer.js +1 -1
- package/dist/components/SignInModal/index.js +2 -2
- package/dist/components/SignOutButton/index.js +1 -1
- package/dist/components/VerifyMfa/index.js +2 -2
- package/dist/components/VerifyMfaInline/index.js +2 -2
- package/dist/components/VerifyMfaModal/index.js +2 -2
- package/dist/hooks/useVerifyMfaModal.js +2 -2
- package/dist/index.js +3 -3
- package/dist/utils/formatPhoneNumber.js +22 -31
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +32 -32
|
@@ -1 +1 @@
|
|
|
1
|
-
.ExportWallet-module__export-wallet___EyZys{box-sizing:border-box;font:var(--cdp-web-font-size-base) / 1.5 var(--cdp-web-font-family-body);font-optical-sizing:auto;background-color:var(--cdp-web-colors-page-bg-default);color:var(--cdp-web-colors-page-text-default);display:flex;flex-direction:column;max-width:38.25em;gap:1em;padding:1.5em 1.5em 1em;overflow:hidden;width:100%}.ExportWallet-module__export-wallet___EyZys.ExportWallet-module__no-footer___fzl3R{padding-bottom:1.5em}.ExportWallet-module__flex-container___-vm5t{display:flex;flex-direction:column;gap:1em}.ExportWallet-module__export-wallet___EyZys [data-part=iframe-button]{margin:-2px;width:calc(100% + 4px)}.ExportWallet-module__export-wallet___EyZys *{box-sizing:border-box}.ExportWallet-module__export-wallet-title___MuI09{font-size:1em;line-height:1.1;font-weight:500;margin:0}.ExportWallet-module__footer___NvrFY{padding-left:0;padding-right:0}.ExportWalletModal-module__export-wallet___--L56{height:100%;overflow:hidden;gap:0}.ExportWalletModal-module__export-wallet___--L56.ExportWalletModal-module__in-mfa-flow___9Fe8k{background:transparent;overflow:visible;padding:1em 0 0}.ExportWalletModal-module__wrapper___r1E1L{box-sizing:border-box;color:var(--cdp-web-colors-page-text-default);font:var(--cdp-web-font-size-base) / 1.5 var(--cdp-web-font-family-body);font-optical-sizing:auto;padding:1.5em 1.5em 1em}.ExportWalletModal-module__wrapper___r1E1L.ExportWalletModal-module__no-footer___J8uj2{padding-bottom:1.5em}.ExportWalletModal-module__trigger___zMk8N{padding-left:2em;padding-right:2em}.ExportWalletModal-module__title-bar___RTPZq{display:flex;justify-content:space-between;align-items:center;width:100%}.ExportWalletModal-module__title-bar-space-bottom___l-NvR{margin-bottom:1em}.ExportWalletModal-module__export-wallet-title___2k0L-{font-size:1em;line-height:1.1;font-weight:500;margin:0}.ExportWalletModal-module__content___KzNol{display:flex;flex-direction:column;gap:1em}.ExportWalletModal-module__close-button___ImsDR{margin-left:auto;margin-right:0;padding:0}.ExportWalletModal-module__close-icon___iAfyT{height:1.5em;width:1.5em}.ExportWalletModal-module__footer___byg1T{padding:.75em 0 0}.ExportWalletModal-module__footer-space-top___URl9q{margin-top:1em}.ExportWalletModal-module__visually-hidden___JAcNA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}@media
|
|
1
|
+
.ExportWallet-module__export-wallet___EyZys{box-sizing:border-box;font:var(--cdp-web-font-size-base) / 1.5 var(--cdp-web-font-family-body);font-optical-sizing:auto;background-color:var(--cdp-web-colors-page-bg-default);color:var(--cdp-web-colors-page-text-default);display:flex;flex-direction:column;max-width:38.25em;gap:1em;padding:1.5em 1.5em 1em;overflow:hidden;width:100%}.ExportWallet-module__export-wallet___EyZys.ExportWallet-module__no-footer___fzl3R{padding-bottom:1.5em}.ExportWallet-module__flex-container___-vm5t{display:flex;flex-direction:column;gap:1em}.ExportWallet-module__export-wallet___EyZys [data-part=iframe-button]{margin:-2px;width:calc(100% + 4px)}.ExportWallet-module__export-wallet___EyZys *{box-sizing:border-box}.ExportWallet-module__export-wallet-title___MuI09{font-size:1em;line-height:1.1;font-weight:500;margin:0}.ExportWallet-module__footer___NvrFY{padding-left:0;padding-right:0}.ExportWalletModal-module__export-wallet___--L56{height:100%;overflow:hidden;gap:0}.ExportWalletModal-module__export-wallet___--L56.ExportWalletModal-module__in-mfa-flow___9Fe8k{background:transparent;overflow:visible;padding:1em 0 0}.ExportWalletModal-module__wrapper___r1E1L{box-sizing:border-box;color:var(--cdp-web-colors-page-text-default);font:var(--cdp-web-font-size-base) / 1.5 var(--cdp-web-font-family-body);font-optical-sizing:auto;padding:1.5em 1.5em 1em}.ExportWalletModal-module__wrapper___r1E1L.ExportWalletModal-module__no-footer___J8uj2{padding-bottom:1.5em}.ExportWalletModal-module__trigger___zMk8N{padding-left:2em;padding-right:2em}.ExportWalletModal-module__title-bar___RTPZq{display:flex;justify-content:space-between;align-items:center;width:100%}.ExportWalletModal-module__title-bar-space-bottom___l-NvR{margin-bottom:1em}.ExportWalletModal-module__export-wallet-title___2k0L-{font-size:1em;line-height:1.1;font-weight:500;margin:0}.ExportWalletModal-module__content___KzNol{display:flex;flex-direction:column;gap:1em}.ExportWalletModal-module__close-button___ImsDR{margin-left:auto;margin-right:0;padding:0}.ExportWalletModal-module__close-icon___iAfyT{height:1.5em;width:1.5em}.ExportWalletModal-module__footer___byg1T{padding:.75em 0 0}.ExportWalletModal-module__footer-space-top___URl9q{margin-top:1em}.ExportWalletModal-module__visually-hidden___JAcNA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}@media(min-width:450px){.ExportWalletModal-module__modal___pX1AP{max-width:25em}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.LinkAuthFlow-module__sign-in___F2bj7{padding:0 1.5em}.LinkAuthFlow-module__sign-in-title-desc-wrapper___6QeTc{display:flex;flex-direction:column;gap:1.5em;margin-bottom:1.5em}.LinkAuthFlow-module__sign-in-image___XGuJI{flex-grow:1;margin:2em 0}.LinkAuthFlow-module__sign-in-form___REZlP,.LinkAuthFlow-module__sign-in-form___REZlP form{flex-grow:1}.LinkAuthFlow-module__sign-in-footer___KYZNd{margin-top:1.5em}.LinkAuthFlow-module__list___dkNmh{padding-left:1.5em;padding-right:1.5em}@media
|
|
1
|
+
.LinkAuthFlow-module__sign-in___F2bj7{padding:0 1.5em}.LinkAuthFlow-module__sign-in-title-desc-wrapper___6QeTc{display:flex;flex-direction:column;gap:1.5em;margin-bottom:1.5em}.LinkAuthFlow-module__sign-in-image___XGuJI{flex-grow:1;margin:2em 0}.LinkAuthFlow-module__sign-in-form___REZlP,.LinkAuthFlow-module__sign-in-form___REZlP form{flex-grow:1}.LinkAuthFlow-module__sign-in-footer___KYZNd{margin-top:1.5em}.LinkAuthFlow-module__list___dkNmh{padding-left:1.5em;padding-right:1.5em}@media(min-width:450px){.LinkAuthFlow-module__sign-in-image___XGuJI{flex-grow:0;margin:0 0 1.5em}.LinkAuthFlow-module__sign-in-image___XGuJI:empty{display:none}}
|
package/dist/assets/Modal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.Modal-module__theme-override___tz6IM{display:contents}.Modal-module__modal___MUsZA{--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);box-sizing:border-box;box-shadow:var(--shadow-md);width:100%;max-width:28.125em;min-width:0;background:var(--cdp-web-colors-page-bg-default);border-radius:var(--cdp-web-borderRadius-modal);outline:1px solid var(--cdp-web-colors-page-border-default);overflow:hidden;position:relative;z-index:var(--cdp-web-zIndex-modal-dialog)}.Modal-module__modal___MUsZA[data-state=open]{animation:Modal-module__slide-in___p-A8u .2s ease-out,Modal-module__fade-in___NfUjS .2s ease-out}.Modal-module__modal___MUsZA[data-state=closed]{animation:Modal-module__slide-out___hrRK1 .2s ease-in,Modal-module__fade-out___LpBNV .2s ease-in}.Modal-module__overlay___-RqGQ{background:var(--cdp-web-colors-bg-overlay);box-sizing:border-box;-webkit-backdrop-filter:blur(.5em);backdrop-filter:blur(.5em);display:grid;grid-template-rows:auto 1fr;inset:0;overflow-y:auto;place-items:end center;position:fixed;z-index:var(--cdp-web-zIndex-modal-overlay)}.Modal-module__overlay___-RqGQ[data-state=open]{animation:Modal-module__fade-in___NfUjS .2s ease-out}.Modal-module__overlay___-RqGQ[data-state=closed]{animation:Modal-module__fade-out___LpBNV .2s ease-in}.Modal-module__spacer___dIfOA{height:1em}@keyframes Modal-module__fade-in___NfUjS{0%{opacity:0}to{opacity:1}}@keyframes Modal-module__fade-out___LpBNV{0%{opacity:1}to{opacity:0}}@keyframes Modal-module__slide-in___p-A8u{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes Modal-module__slide-out___hrRK1{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media
|
|
1
|
+
.Modal-module__theme-override___tz6IM{display:contents}.Modal-module__modal___MUsZA{--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);box-sizing:border-box;box-shadow:var(--shadow-md);width:100%;max-width:28.125em;min-width:0;background:var(--cdp-web-colors-page-bg-default);border-radius:var(--cdp-web-borderRadius-modal);outline:1px solid var(--cdp-web-colors-page-border-default);overflow:hidden;position:relative;z-index:var(--cdp-web-zIndex-modal-dialog)}.Modal-module__modal___MUsZA[data-state=open]{animation:Modal-module__slide-in___p-A8u .2s ease-out,Modal-module__fade-in___NfUjS .2s ease-out}.Modal-module__modal___MUsZA[data-state=closed]{animation:Modal-module__slide-out___hrRK1 .2s ease-in,Modal-module__fade-out___LpBNV .2s ease-in}.Modal-module__overlay___-RqGQ{background:var(--cdp-web-colors-bg-overlay);box-sizing:border-box;-webkit-backdrop-filter:blur(.5em);backdrop-filter:blur(.5em);display:grid;grid-template-rows:auto 1fr;inset:0;overflow-y:auto;place-items:end center;position:fixed;z-index:var(--cdp-web-zIndex-modal-overlay)}.Modal-module__overlay___-RqGQ[data-state=open]{animation:Modal-module__fade-in___NfUjS .2s ease-out}.Modal-module__overlay___-RqGQ[data-state=closed]{animation:Modal-module__fade-out___LpBNV .2s ease-in}.Modal-module__spacer___dIfOA{height:1em}@keyframes Modal-module__fade-in___NfUjS{0%{opacity:0}to{opacity:1}}@keyframes Modal-module__fade-out___LpBNV{0%{opacity:1}to{opacity:0}}@keyframes Modal-module__slide-in___p-A8u{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes Modal-module__slide-out___hrRK1{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media(min-width:400px){.Modal-module__overlay___-RqGQ{padding:.5rem}}@media(min-width:450px){.Modal-module__overlay___-RqGQ{place-items:center;padding:1rem;grid-template-rows:1fr}.Modal-module__modal___MUsZA{height:auto}.Modal-module__spacer___dIfOA{display:none}@keyframes Modal-module__slide-in___p-A8u{0%{transform:translateY(10%)}to{transform:translateY(0)}}@keyframes Modal-module__slide-out___hrRK1{0%{transform:translateY(0)}to{transform:translateY(10%)}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.SignInModal-module__trigger___IcJ8x{padding-left:2em;padding-right:2em}.SignInModal-module__sign-in___n05-5{height:100%;overflow:hidden}.SignInModal-module__sign-in___n05-5.SignInModal-module__no-footer___meSt1{padding-bottom:2em}.SignInModal-module__title-desc-wrapper___--XLa{display:flex;flex-direction:column;gap:1.5em;margin-bottom:1.5em}.SignInModal-module__sign-in-form___Jzx1-,.SignInModal-module__sign-in-form___Jzx1- form{flex-grow:1}.SignInModal-module__sign-in-image___DGg7B{flex-grow:1;margin:2em 0}.SignInModal-module__footer___6qEo2{margin-top:1.5em}.SignInModal-module__buttons___jhaVn{display:flex;justify-content:flex-end;align-items:center;margin-left:-.75em;margin-right:-.75em;width:calc(100% + 1.5em)}.SignInModal-module__back-button___nMh2-{margin-left:0;margin-right:auto}.SignInModal-module__close-icon___b-gMh{height:auto;width:1.5em}@media
|
|
1
|
+
.SignInModal-module__trigger___IcJ8x{padding-left:2em;padding-right:2em}.SignInModal-module__sign-in___n05-5{height:100%;overflow:hidden}.SignInModal-module__sign-in___n05-5.SignInModal-module__no-footer___meSt1{padding-bottom:2em}.SignInModal-module__title-desc-wrapper___--XLa{display:flex;flex-direction:column;gap:1.5em;margin-bottom:1.5em}.SignInModal-module__sign-in-form___Jzx1-,.SignInModal-module__sign-in-form___Jzx1- form{flex-grow:1}.SignInModal-module__sign-in-image___DGg7B{flex-grow:1;margin:2em 0}.SignInModal-module__footer___6qEo2{margin-top:1.5em}.SignInModal-module__buttons___jhaVn{display:flex;justify-content:flex-end;align-items:center;margin-left:-.75em;margin-right:-.75em;width:calc(100% + 1.5em)}.SignInModal-module__back-button___nMh2-{margin-left:0;margin-right:auto}.SignInModal-module__close-icon___b-gMh{height:auto;width:1.5em}@media(min-width:450px){.SignInModal-module__sign-in-image___DGg7B{flex-grow:0;margin:0 0 1.5em}.SignInModal-module__sign-in-image___DGg7B:empty{display:none}}
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
|
2
2
|
import { OAuth2ProviderType as ee, CDPContext as te, CDPHooksProvider as oe } from "@coinbase/cdp-hooks";
|
|
3
3
|
import { useRef as g, useEffect as O, useCallback as d, useLayoutEffect as re, createContext as D, useState as B, useMemo as T, useContext as S, useId as $, lazy as ne } from "react";
|
|
4
4
|
import { registerMfaListener as se, cancelMfaVerification as ie } from "@coinbase/cdp-core";
|
|
5
|
-
import { A as ae, u as j } from "./useSendComponentCallOnce.
|
|
5
|
+
import { A as ae, u as j } from "./useSendComponentCallOnce.BI4daEvm.js";
|
|
6
6
|
import { ThemeProvider as ce } from "../components/ThemeProvider/index.js";
|
|
7
7
|
import { c as le } from "./lite.1fxw3LjI.js";
|
|
8
8
|
import { Button as J } from "../components/ui/Button/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as m, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as I, useContext as S, useMemo as v, forwardRef as A, useRef as L, useImperativeHandle as x, useEffect as N } from "react";
|
|
3
|
-
import { u as C } from "./CDPReactProvider.
|
|
3
|
+
import { u as C } from "./CDPReactProvider.CFWIUvzR.js";
|
|
4
4
|
import { SignIn as _ } from "../components/SignIn/index.js";
|
|
5
5
|
import "@coinbase/cdp-hooks";
|
|
6
6
|
import { SwitchSlideTransition as T } from "../components/ui/SwitchSlideTransition/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OAuth2ProviderType as t } from "@coinbase/cdp-hooks";
|
|
2
|
-
import "./CDPReactProvider.
|
|
2
|
+
import "./CDPReactProvider.CFWIUvzR.js";
|
|
3
3
|
import { config as i } from "../components/SignIn/flows/SignInWithEmail.js";
|
|
4
4
|
import { config as m } from "../components/SignIn/flows/SignInWithSms.js";
|
|
5
5
|
import "react";
|
package/dist/chunks/{useSendComponentCallOnce.0qu8ei84.js → useSendComponentCallOnce.BI4daEvm.js}
RENAMED
|
@@ -4,7 +4,7 @@ function N(f) {
|
|
|
4
4
|
}
|
|
5
5
|
var w = { exports: {} }, T = { exports: {} }, C;
|
|
6
6
|
function q() {
|
|
7
|
-
return C || (C = 1, function() {
|
|
7
|
+
return C || (C = 1, (function() {
|
|
8
8
|
var f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d = {
|
|
9
9
|
// Bit-wise rotation left
|
|
10
10
|
rotl: function(c, u) {
|
|
@@ -68,7 +68,7 @@ function q() {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
T.exports = d;
|
|
71
|
-
}()), T.exports;
|
|
71
|
+
})()), T.exports;
|
|
72
72
|
}
|
|
73
73
|
var F, m;
|
|
74
74
|
function x() {
|
|
@@ -120,7 +120,7 @@ function H() {
|
|
|
120
120
|
}
|
|
121
121
|
var A;
|
|
122
122
|
function V() {
|
|
123
|
-
return A || (A = 1, function() {
|
|
123
|
+
return A || (A = 1, (function() {
|
|
124
124
|
var f = q(), d = x().utf8, c = H(), u = x().bin, a = function(s, l) {
|
|
125
125
|
s.constructor == String ? l && l.encoding === "binary" ? s = u.stringToBytes(s) : s = d.stringToBytes(s) : c(s) ? s = Array.prototype.slice.call(s, 0) : !Array.isArray(s) && s.constructor !== Uint8Array && (s = s.toString());
|
|
126
126
|
for (var o = f.bytesToWords(s), y = s.length * 8, e = 1732584193, n = -271733879, r = -1732584194, t = 271733878, i = 0; i < o.length; i++)
|
|
@@ -150,7 +150,7 @@ function V() {
|
|
|
150
150
|
var o = f.wordsToBytes(a(s, l));
|
|
151
151
|
return l && l.asBytes ? o : l && l.asString ? u.bytesToString(o) : f.bytesToHex(o);
|
|
152
152
|
};
|
|
153
|
-
}()), w.exports;
|
|
153
|
+
})()), w.exports;
|
|
154
154
|
}
|
|
155
155
|
var G = V();
|
|
156
156
|
const J = /* @__PURE__ */ N(G);
|
|
@@ -200,7 +200,7 @@ let R = null;
|
|
|
200
200
|
function Y() {
|
|
201
201
|
return R === null && (R = X()), R;
|
|
202
202
|
}
|
|
203
|
-
const Z = "1f8d3e558f493e38a037dbfadb8ba344", b = "d473b1dcc969105adab157226cd9cf63", B = Symbol.for("@coinbase/cdp-analytics");
|
|
203
|
+
const Z = "1f8d3e558f493e38a037dbfadb8ba344", b = "d473b1dcc969105adab157226cd9cf63", B = /* @__PURE__ */ Symbol.for("@coinbase/cdp-analytics");
|
|
204
204
|
function Q() {
|
|
205
205
|
const f = globalThis;
|
|
206
206
|
return f[B] || (f[B] = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u, jsxs as j, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { useIsInitialized as y, useIsSignedIn as z } from "@coinbase/cdp-hooks";
|
|
3
|
-
import { u as D } from "../../chunks/useSendComponentCallOnce.
|
|
3
|
+
import { u as D } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
4
|
import { useState as m, useRef as M, useCallback as x, useEffect as f } from "react";
|
|
5
5
|
import { SignInModal as N } from "../SignInModal/index.js";
|
|
6
6
|
import { SignOutButton as $ } from "../SignOutButton/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@coinbase/cdp-hooks";
|
|
3
3
|
import "react";
|
|
4
|
-
import { A as p, b as m, C as t, O as A, u as H, a as T } from "../../chunks/CDPReactProvider.
|
|
4
|
+
import { A as p, b as m, C as t, O as A, u as H, a as T } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
5
5
|
import "../ThemeProvider/index.js";
|
|
6
6
|
export {
|
|
7
7
|
p as ALL_AUTH_METHODS,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as B } from "react/jsx-runtime";
|
|
2
2
|
import { useConfig as S } from "@coinbase/cdp-hooks";
|
|
3
|
-
import { u as _ } from "../../chunks/useSendComponentCallOnce.
|
|
3
|
+
import { u as _ } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
4
|
import { useRef as j, useState as i, useCallback as E } from "react";
|
|
5
5
|
import "../ui/Button/index.js";
|
|
6
6
|
import { IframeButton as K } from "../ui/IframeButton/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as B } from "react/jsx-runtime";
|
|
2
2
|
import { useConfig as _ } from "@coinbase/cdp-hooks";
|
|
3
|
-
import { u as j } from "../../chunks/useSendComponentCallOnce.
|
|
3
|
+
import { u as j } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
4
|
import { useRef as K, useState as i, useCallback as T } from "react";
|
|
5
5
|
import "../ui/Button/index.js";
|
|
6
6
|
import { IframeButton as U } from "../ui/IframeButton/index.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s, Fragment as u } from "react/jsx-runtime";
|
|
2
2
|
import { getEnabledMfaMethods as $, getEnrolledMfaMethods as k } from "@coinbase/cdp-core";
|
|
3
3
|
import { useCurrentUser as w, useIsInitialized as V, useInitiateMfaEnrollment as j, useSubmitMfaEnrollment as z, useRecordMfaEnrollmentPrompted as q } from "@coinbase/cdp-hooks";
|
|
4
|
-
import { u as J } from "../../chunks/useSendComponentCallOnce.
|
|
4
|
+
import { u as J } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
5
5
|
import { useMemo as C, useRef as _, useEffect as v, useCallback as p, useLayoutEffect as K } from "react";
|
|
6
6
|
import { c as G } from "../../chunks/lite.1fxw3LjI.js";
|
|
7
|
-
import { u as X } from "../../chunks/CDPReactProvider.
|
|
7
|
+
import { u as X } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
8
8
|
import { useTimeout as Y } from "../../hooks/useTimeout.js";
|
|
9
9
|
import { isApiError as Z } from "../../utils/isApiError.js";
|
|
10
10
|
import "libphonenumber-js";
|
|
@@ -29,7 +29,7 @@ import '../../assets/EnrollMfa.css';const le = "EnrollMfa-module__img___JmjV1",
|
|
|
29
29
|
"gap-3": "EnrollMfa-module__gap-3___JKVyF",
|
|
30
30
|
centered: ae,
|
|
31
31
|
footer: ie
|
|
32
|
-
}, se =
|
|
32
|
+
}, se = 300 * 1e3, me = ({ role: d = "alert", ...m }) => {
|
|
33
33
|
const { state: i } = A(), { error: l } = i;
|
|
34
34
|
return l ? /* @__PURE__ */ r(ne, { variant: "error", role: d, ...m, children: Z(l) ? l.message : l }) : null;
|
|
35
35
|
}, ce = ({
|
|
@@ -100,14 +100,7 @@ import '../../../assets/totp.css';const P = "totp-module__expired___SKiyj", F =
|
|
|
100
100
|
default:
|
|
101
101
|
return null;
|
|
102
102
|
}
|
|
103
|
-
}, A = ({ step: r }) => {
|
|
104
|
-
switch (r) {
|
|
105
|
-
case "setup-verification":
|
|
106
|
-
return /* @__PURE__ */ t(C, { variant: "secondary", children: /* @__PURE__ */ t(k, {}) });
|
|
107
|
-
default:
|
|
108
|
-
return null;
|
|
109
|
-
}
|
|
110
|
-
}, G = {
|
|
103
|
+
}, A = ({ step: r }) => r === "setup-verification" ? /* @__PURE__ */ t(C, { variant: "secondary", children: /* @__PURE__ */ t(k, {}) }) : null, G = {
|
|
111
104
|
content: b,
|
|
112
105
|
title: O,
|
|
113
106
|
description: q,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o, jsxs as r, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import { u as v } from "../../chunks/useSendComponentCallOnce.
|
|
2
|
+
import { u as v } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
3
3
|
import { createContext as b, useMemo as w, useContext as y } from "react";
|
|
4
4
|
import { c as p } from "../../chunks/lite.1fxw3LjI.js";
|
|
5
|
-
import { u as F } from "../../chunks/CDPReactProvider.
|
|
5
|
+
import { u as F } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import { EnrollMfa as T, EnrollMfaError as B } from "../EnrollMfa/index.js";
|
|
7
7
|
import { Button as h } from "../ui/Button/index.js";
|
|
8
8
|
import { Modal as A, ModalContent as O, ModalTitle as S, ModalDescription as $, ModalClose as E, ModalTrigger as D } from "../ui/Modal/index.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as S, A as D } from "../../chunks/useSendComponentCallOnce.
|
|
1
|
+
import { u as S, A as D } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
2
2
|
import { createContext as A, useContext as k, useMemo as h, useState as L, useCallback as U } from "react";
|
|
3
3
|
import { VERSION as q } from "../../version.js";
|
|
4
4
|
import "../AuthButton/index.js";
|
|
5
|
-
import { u as b } from "../../chunks/CDPReactProvider.
|
|
5
|
+
import { u as b } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import { CopyAddress as H } from "../CopyAddress/index.js";
|
|
7
7
|
import { CopyEvmKeyButton as J } from "../CopyEvmKeyButton/index.js";
|
|
8
8
|
import { CopySolanaKeyButton as X } from "../CopySolanaKeyButton/index.js";
|
|
@@ -11,13 +11,13 @@ import "../EnrollMfaModal/index.js";
|
|
|
11
11
|
import { jsx as t, jsxs as d, Fragment as y } from "react/jsx-runtime";
|
|
12
12
|
import { useCurrentUser as Z } from "@coinbase/cdp-hooks";
|
|
13
13
|
import { c as m } from "../../chunks/lite.1fxw3LjI.js";
|
|
14
|
-
import { Banner as w } from "../ui/Banner/index.js";
|
|
15
14
|
import { CoinbaseFooter as C } from "../ui/CoinbaseFooter/index.js";
|
|
16
15
|
import { VerifyMfaInline as F, VerifyMfaInlineBackButton as I, VerifyMfaInlineFlow as R, useVerifyMfaInlineContext as $ } from "../VerifyMfaInline/index.js";
|
|
17
16
|
import { Button as T } from "../ui/Button/index.js";
|
|
18
17
|
import { Modal as G, ModalClose as Q, ModalContent as tt, ModalTitle as ot, ModalTrigger as et } from "../ui/Modal/index.js";
|
|
19
18
|
import { IconXMark as rt } from "../../icons/IconXMark.js";
|
|
20
19
|
import { childrenHasComponent as g } from "../../utils/childrenHasComponent.js";
|
|
20
|
+
import { Banner as w } from "../ui/Banner/index.js";
|
|
21
21
|
import "../Fund/index.js";
|
|
22
22
|
import "../FundModal/index.js";
|
|
23
23
|
import "../LinkAuth/index.js";
|
|
@@ -69,7 +69,7 @@ import "../EnrollMfa/EnrollMfaItems.js";
|
|
|
69
69
|
import "../EnrollMfa/EnrollMfaTitle.js";
|
|
70
70
|
import "../Fund/FundForm.js";
|
|
71
71
|
import "../Fund/FundTitle.js";
|
|
72
|
-
import "../../chunks/LinkAuthFlow.
|
|
72
|
+
import "../../chunks/LinkAuthFlow.S1XbYaG5.js";
|
|
73
73
|
import "../LinkAuth/LinkAuthFlowBackButton.js";
|
|
74
74
|
import "../LinkAuth/LinkAuthItem.js";
|
|
75
75
|
import "../LinkAuth/LinkAuthItems.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../chunks/useSendComponentCallOnce.
|
|
2
|
+
import "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../chunks/lite.1fxw3LjI.js";
|
|
5
|
-
import "../../chunks/CDPReactProvider.
|
|
5
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import { E as W, a as g, b as n, c as C, d as T } from "../ExportWallet/index.js";
|
|
7
|
-
import "../ui/Banner/index.js";
|
|
8
7
|
import "../ui/Button/index.js";
|
|
9
8
|
import "../ui/Modal/index.js";
|
|
10
9
|
import "../../icons/IconXMark.js";
|
|
11
10
|
import "../../utils/childrenHasComponent.js";
|
|
12
11
|
import "../ui/CoinbaseFooter/index.js";
|
|
13
12
|
import "../VerifyMfaInline/index.js";
|
|
13
|
+
import "../ui/Banner/index.js";
|
|
14
14
|
export {
|
|
15
15
|
W as ExportWalletModal,
|
|
16
16
|
g as ExportWalletModalClose,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as i, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { u as p } from "../../chunks/useSendComponentCallOnce.
|
|
2
|
+
import { u as p } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
3
3
|
import { useId as a } from "react";
|
|
4
|
-
import { u as c } from "../../chunks/CDPReactProvider.
|
|
4
|
+
import { u as c } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
5
5
|
import { CoinbaseFooter as F } from "../ui/CoinbaseFooter/index.js";
|
|
6
6
|
import { FundForm as l } from "./FundForm.js";
|
|
7
7
|
import { FundProvider as C, useFundContext as _ } from "./FundProvider.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import { u as w } from "../../chunks/useSendComponentCallOnce.
|
|
2
|
+
import { u as w } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
3
3
|
import { createContext as j, useState as A, useCallback as F, useMemo as S, useId as $, useContext as z } from "react";
|
|
4
4
|
import { c as x } from "../../chunks/lite.1fxw3LjI.js";
|
|
5
|
-
import { u as V } from "../../chunks/CDPReactProvider.
|
|
5
|
+
import { u as V } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import { Fund as k, FundFooter as D } from "../Fund/index.js";
|
|
7
7
|
import { Button as v } from "../ui/Button/index.js";
|
|
8
8
|
import { Modal as H, ModalContent as L, ModalTitle as R, ModalClose as U, ModalTrigger as W } from "../ui/Modal/index.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../chunks/CDPReactProvider.
|
|
3
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
4
4
|
import "../SignIn/index.js";
|
|
5
5
|
import "@coinbase/cdp-hooks";
|
|
6
6
|
import "../ui/SwitchSlideTransition/index.js";
|
|
7
7
|
import "../ui/VisuallyHidden/index.js";
|
|
8
|
-
import { a as A } from "../../chunks/LinkAuthFlow.
|
|
8
|
+
import { a as A } from "../../chunks/LinkAuthFlow.S1XbYaG5.js";
|
|
9
9
|
import "./LinkAuthItems.js";
|
|
10
10
|
import "./types.js";
|
|
11
11
|
import "../SignIn/SignInProvider.js";
|
|
@@ -3,9 +3,9 @@ import { c as k } from "../../chunks/lite.1fxw3LjI.js";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { Button as p } from "../ui/Button/index.js";
|
|
5
5
|
import { IconArrowLeft as f } from "../../icons/IconArrowLeft.js";
|
|
6
|
-
import { b as w } from "../../chunks/LinkAuthFlow.
|
|
6
|
+
import { b as w } from "../../chunks/LinkAuthFlow.S1XbYaG5.js";
|
|
7
7
|
import { useLinkAuthContext as _ } from "./LinkAuthProvider.js";
|
|
8
|
-
import "../../chunks/CDPReactProvider.
|
|
8
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
9
9
|
import { methodToView as b } from "./utils.js";
|
|
10
10
|
import '../../assets/LinkAuthFlowBackButton.css';const h = "LinkAuthFlowBackButton-module__button___wPKfW", B = "LinkAuthFlowBackButton-module__icon___OUmzY", o = {
|
|
11
11
|
button: h,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../chunks/CDPReactProvider.
|
|
4
|
-
import { L as e, u as n, b as s } from "../../chunks/LinkAuthFlow.
|
|
3
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
4
|
+
import { L as e, u as n, b as s } from "../../chunks/LinkAuthFlow.S1XbYaG5.js";
|
|
5
5
|
export {
|
|
6
6
|
e as LinkAuthFlowProvider,
|
|
7
7
|
n as useLinkAuthFlow,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { ToggleListItem as s } from "../ui/ToggleListItem/index.js";
|
|
4
|
-
import "../../chunks/CDPReactProvider.
|
|
4
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
5
5
|
const u = ({
|
|
6
6
|
authMethod: n,
|
|
7
7
|
userAlias: e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { c as b } from "../../chunks/lite.1fxw3LjI.js";
|
|
3
3
|
import { useMemo as g } from "react";
|
|
4
|
-
import "../../chunks/CDPReactProvider.
|
|
4
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
5
5
|
import { IconAppleLogo as d } from "../../icons/IconAppleLogo.js";
|
|
6
6
|
import { IconEnvelope as f } from "../../icons/IconEnvelope.js";
|
|
7
7
|
import { IconGoogleColorLogo as L } from "../../icons/IconGoogleColorLogo.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useCurrentUser as c } from "@coinbase/cdp-hooks";
|
|
3
3
|
import { createContext as M, useContext as p, useMemo as r, useReducer as A, useEffect as f } from "react";
|
|
4
|
-
import { u as L } from "../../chunks/CDPReactProvider.
|
|
4
|
+
import { u as L } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
5
5
|
import { formatPhoneNumber as k } from "../../utils/formatPhoneNumber.js";
|
|
6
6
|
const g = {
|
|
7
7
|
methodToLink: null,
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import { useLinkOAuth as N } from "@coinbase/cdp-hooks";
|
|
3
|
-
import { u as P } from "../../chunks/useSendComponentCallOnce.
|
|
3
|
+
import { u as P } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
4
|
import { useRef as d, useState as U, useCallback as a } from "react";
|
|
5
|
-
import "../../chunks/CDPReactProvider.
|
|
5
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import { useOauthStatusModal as D } from "../OAuthStatusModal/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { getMessageFromUnknownError as v } from "../../utils/getMessageFromUnknownError.js";
|
|
7
|
+
import { useTimeout as H } from "../../hooks/useTimeout.js";
|
|
8
|
+
import { getMessageFromUnknownError as M } from "../../utils/getMessageFromUnknownError.js";
|
|
10
9
|
import "libphonenumber-js";
|
|
11
|
-
import { toOAuthProviderType as
|
|
12
|
-
import { L as
|
|
13
|
-
import { u as ft } from "../../chunks/LinkAuthFlow.
|
|
14
|
-
import { LinkAuthFlowBackButton as
|
|
10
|
+
import { toOAuthProviderType as v } from "../../utils/toOAuthProviderType.js";
|
|
11
|
+
import { L as V, a as j } from "../../chunks/LinkAuthFlow.S1XbYaG5.js";
|
|
12
|
+
import { u as ft } from "../../chunks/LinkAuthFlow.S1XbYaG5.js";
|
|
13
|
+
import { LinkAuthFlowBackButton as K } from "./LinkAuthFlowBackButton.js";
|
|
15
14
|
import { LinkAuthItem as Lt } from "./LinkAuthItem.js";
|
|
16
15
|
import { LinkAuthItems as _t } from "./LinkAuthItems.js";
|
|
17
|
-
import { LinkAuthProvider as
|
|
18
|
-
import { LinkAuthTitle as
|
|
16
|
+
import { LinkAuthProvider as W, useLinkAuthContext as x } from "./LinkAuthProvider.js";
|
|
17
|
+
import { LinkAuthTitle as $ } from "./LinkAuthTitle.js";
|
|
19
18
|
import { methodToView as O } from "./utils.js";
|
|
19
|
+
import { Banner as b } from "../ui/Banner/index.js";
|
|
20
20
|
import '../../assets/LinkAuth.css';const G = "LinkAuth-module__header___0UuxP", J = "LinkAuth-module__error___XUo4W", k = {
|
|
21
21
|
"link-auth": "LinkAuth-module__link-auth___kPJao",
|
|
22
22
|
header: G,
|
|
23
23
|
error: J
|
|
24
24
|
}, X = ({ role: o = "alert", ...c }) => {
|
|
25
25
|
const { state: i } = x(), { error: s } = i;
|
|
26
|
-
return s ? /* @__PURE__ */ r(
|
|
26
|
+
return s ? /* @__PURE__ */ r(b, { variant: "error", role: o, ...c, children: s }) : null;
|
|
27
27
|
}, q = ({ children: o, className: c = "", onLinkSuccess: i, ...s }) => {
|
|
28
|
-
const { linkOAuth: f } = N(), { persistOAuthState: p, cleanupOAuthState: L } = D(), { state: u, dispatch: n } = x(), { methodToLink: E } = u, A = d(null), l = d(null), { schedule: _ } =
|
|
28
|
+
const { linkOAuth: f } = N(), { persistOAuthState: p, cleanupOAuthState: L } = D(), { state: u, dispatch: n } = x(), { methodToLink: E } = u, A = d(null), l = d(null), { schedule: _ } = H(), S = O(E), T = d(S), [B, m] = U("left"), e = a(
|
|
29
29
|
(t) => {
|
|
30
30
|
T.current !== t && (T.current = t, A.current?.transition.toggle(t), t === "list" && n({ type: "RESET_STATE" }), (t === "email" || t === "sms") && n({ type: "LINK_AUTH_METHOD", payload: { method: t } }));
|
|
31
31
|
},
|
|
@@ -41,14 +41,14 @@ import '../../assets/LinkAuth.css';const G = "LinkAuth-module__header___0UuxP",
|
|
|
41
41
|
}, [e, u.methodToLink, i, _]), w = a(
|
|
42
42
|
async (t) => {
|
|
43
43
|
if (m("left"), t?.startsWith("oauth:")) {
|
|
44
|
-
const y =
|
|
44
|
+
const y = v(t);
|
|
45
45
|
if (y)
|
|
46
46
|
try {
|
|
47
47
|
p(!0), await f(y);
|
|
48
48
|
} catch (C) {
|
|
49
49
|
L(), n({
|
|
50
50
|
type: "LINK_AUTH_METHOD_ERROR",
|
|
51
|
-
payload: { error:
|
|
51
|
+
payload: { error: M(C) }
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
} else
|
|
@@ -57,7 +57,7 @@ import '../../assets/LinkAuth.css';const G = "LinkAuth-module__header___0UuxP",
|
|
|
57
57
|
[f, e, p, L, n]
|
|
58
58
|
), g = typeof o == "function" ? o(u) : o;
|
|
59
59
|
return /* @__PURE__ */ r("div", { className: `${k["link-auth"]} ${c}`, ...s, children: /* @__PURE__ */ h(
|
|
60
|
-
|
|
60
|
+
V,
|
|
61
61
|
{
|
|
62
62
|
direction: B,
|
|
63
63
|
onBack: F,
|
|
@@ -69,24 +69,24 @@ import '../../assets/LinkAuth.css';const G = "LinkAuth-module__header___0UuxP",
|
|
|
69
69
|
g,
|
|
70
70
|
!g && /* @__PURE__ */ h(I, { children: [
|
|
71
71
|
/* @__PURE__ */ h("div", { className: k.header, children: [
|
|
72
|
-
/* @__PURE__ */ r(
|
|
73
|
-
/* @__PURE__ */ r(
|
|
72
|
+
/* @__PURE__ */ r($, {}),
|
|
73
|
+
/* @__PURE__ */ r(K, {})
|
|
74
74
|
] }),
|
|
75
75
|
/* @__PURE__ */ r("div", { className: k.error, children: /* @__PURE__ */ r(X, {}) }),
|
|
76
|
-
/* @__PURE__ */ r(
|
|
76
|
+
/* @__PURE__ */ r(j, {})
|
|
77
77
|
] })
|
|
78
78
|
]
|
|
79
79
|
}
|
|
80
80
|
) });
|
|
81
|
-
}, ht = (o) => (P("manage_auth"), /* @__PURE__ */ r(
|
|
81
|
+
}, ht = (o) => (P("manage_auth"), /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(q, { ...o }) }));
|
|
82
82
|
export {
|
|
83
83
|
ht as LinkAuth,
|
|
84
84
|
X as LinkAuthError,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
j as LinkAuthFlow,
|
|
86
|
+
K as LinkAuthFlowBackButton,
|
|
87
87
|
Lt as LinkAuthItem,
|
|
88
88
|
_t as LinkAuthItems,
|
|
89
|
-
|
|
89
|
+
$ as LinkAuthTitle,
|
|
90
90
|
x as useLinkAuthContext,
|
|
91
91
|
ft as useLinkAuthFlow
|
|
92
92
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o, jsxs as n, Fragment as d } from "react/jsx-runtime";
|
|
2
|
-
import { u as p } from "../../chunks/useSendComponentCallOnce.
|
|
2
|
+
import { u as p } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
3
3
|
import { createContext as f, useMemo as L, useContext as g } from "react";
|
|
4
4
|
import { c as A } from "../../chunks/lite.1fxw3LjI.js";
|
|
5
|
-
import "../../chunks/CDPReactProvider.
|
|
5
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import { LinkAuth as C, LinkAuthError as x } from "../LinkAuth/index.js";
|
|
7
7
|
import { Button as m } from "../ui/Button/index.js";
|
|
8
8
|
import { Modal as b, ModalContent as v, ModalTitle as w, ModalClose as N, ModalTrigger as T } from "../ui/Modal/index.js";
|
|
@@ -11,7 +11,7 @@ import { IconXMark as F } from "../../icons/IconXMark.js";
|
|
|
11
11
|
import { childrenHasComponent as c } from "../../utils/childrenHasComponent.js";
|
|
12
12
|
import { LinkAuthTitle as H } from "../LinkAuth/LinkAuthTitle.js";
|
|
13
13
|
import { LinkAuthFlowBackButton as j } from "../LinkAuth/LinkAuthFlowBackButton.js";
|
|
14
|
-
import { a as B } from "../../chunks/LinkAuthFlow.
|
|
14
|
+
import { a as B } from "../../chunks/LinkAuthFlow.S1XbYaG5.js";
|
|
15
15
|
import '../../assets/LinkAuthModal.css';const S = "LinkAuthModal-module__header___qoco6", D = "LinkAuthModal-module__error___Srl7H", E = "LinkAuthModal-module__trigger___aHDfG", r = {
|
|
16
16
|
header: S,
|
|
17
17
|
error: D,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s, jsxs as r, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import "@coinbase/cdp-core";
|
|
3
3
|
import { useOAuthState as N } from "@coinbase/cdp-hooks";
|
|
4
|
-
import { u as b } from "../../chunks/useSendComponentCallOnce.
|
|
4
|
+
import { u as b } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
5
5
|
import { useState as A, useEffect as g, useRef as I, useCallback as S } from "react";
|
|
6
|
-
import { a as v } from "../../chunks/CDPReactProvider.
|
|
6
|
+
import { a as v } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
7
7
|
import { CoinbaseFooter as k } from "../ui/CoinbaseFooter/index.js";
|
|
8
8
|
import { LoadingSpinner as w } from "../ui/LoadingSpinner/index.js";
|
|
9
9
|
import { Modal as L, ModalContent as E, ModalTitle as y, ModalDescription as R } from "../ui/Modal/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { useSendEvmTransaction as _, APIError as S } from "@coinbase/cdp-hooks";
|
|
3
|
-
import { u as b } from "../../chunks/useSendComponentCallOnce.
|
|
3
|
+
import { u as b } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
4
|
import { useState as T, useCallback as y } from "react";
|
|
5
5
|
import { c as C } from "../../chunks/lite.1fxw3LjI.js";
|
|
6
6
|
import { Button as w } from "../ui/Button/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useSendSolanaTransaction as b, APIError as T } from "@coinbase/cdp-hooks";
|
|
3
|
-
import { u as w } from "../../chunks/useSendComponentCallOnce.
|
|
3
|
+
import { u as w } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
4
|
import { useState as x, useCallback as y } from "react";
|
|
5
5
|
import { c as B } from "../../chunks/lite.1fxw3LjI.js";
|
|
6
6
|
import { Button as C } from "../ui/Button/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback as v, useMemo as y } from "react";
|
|
3
|
-
import "../../chunks/CDPReactProvider.
|
|
3
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
4
4
|
import { useSignInWithOAuth as C } from "./hooks/useSignInWithOAuth.js";
|
|
5
5
|
import { useSignInContext as g } from "./SignInProvider.js";
|
|
6
6
|
import { Button as S } from "../ui/Button/index.js";
|
|
@@ -5,7 +5,7 @@ import { IconArrowLeft as S } from "../../icons/IconArrowLeft.js";
|
|
|
5
5
|
import "../../theme/theme.js";
|
|
6
6
|
import { useSignInContext as d } from "./SignInProvider.js";
|
|
7
7
|
import "@coinbase/cdp-hooks";
|
|
8
|
-
import "../../chunks/CDPReactProvider.
|
|
8
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
9
9
|
import '../../assets/SignInBackButton.css';const B = "SignInBackButton-module__icon___stNFS", k = {
|
|
10
10
|
icon: B
|
|
11
11
|
}, E = ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { a as d } from "../../chunks/index.
|
|
3
|
+
import { a as d } from "../../chunks/index.IrJ_irKX.js";
|
|
4
4
|
import { useSignInContext as h } from "./SignInProvider.js";
|
|
5
5
|
import "@coinbase/cdp-hooks";
|
|
6
|
-
import "../../chunks/CDPReactProvider.
|
|
6
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
7
7
|
import '../../assets/SignInDescription.css';const u = "SignInDescription-module__description___jZLc6", _ = {
|
|
8
8
|
description: u
|
|
9
9
|
}, M = ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as d, useState as I, useLayoutEffect as p } from "react";
|
|
3
|
-
import "../../chunks/CDPReactProvider.
|
|
3
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
4
4
|
import { SwitchFadeTransition as T } from "../ui/SwitchFadeTransition/index.js";
|
|
5
|
-
import { a as y } from "../../chunks/index.
|
|
5
|
+
import { a as y } from "../../chunks/index.IrJ_irKX.js";
|
|
6
6
|
import { useSignInContext as v } from "./SignInProvider.js";
|
|
7
7
|
import "@coinbase/cdp-hooks";
|
|
8
8
|
import '../../assets/SignInForm.css';const E = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { u as a } from "../../chunks/CDPReactProvider.
|
|
2
|
+
import { u as a } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
3
3
|
import '../../assets/SignInImage.css';const e = "SignInImage-module__logo___rlzt-", m = {
|
|
4
4
|
logo: e
|
|
5
5
|
}, p = (t) => /^https?:\/\//.test(t), f = ({ className: t = "", alt: s, src: g }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as m, useContext as l, useMemo as i } from "react";
|
|
3
|
-
import { u as f } from "../../chunks/CDPReactProvider.
|
|
3
|
+
import { u as f } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
4
4
|
import "@coinbase/cdp-hooks";
|
|
5
5
|
import { useSignInReducer as p } from "./useSignInReducer.js";
|
|
6
6
|
const a = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { a as c } from "../../chunks/index.
|
|
3
|
+
import { a as c } from "../../chunks/index.IrJ_irKX.js";
|
|
4
4
|
import { useSignInContext as d } from "./SignInProvider.js";
|
|
5
5
|
import "@coinbase/cdp-hooks";
|
|
6
|
-
import "../../chunks/CDPReactProvider.
|
|
6
|
+
import "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
7
7
|
import '../../assets/SignInTitle.css';const l = "SignInTitle-module__heading___QJ071", g = {
|
|
8
8
|
heading: l
|
|
9
9
|
}, S = ({
|
|
@@ -8,7 +8,7 @@ import { useEmailForm as A } from "../hooks/useEmailForm.js";
|
|
|
8
8
|
import { useOTPForm as B } from "../hooks/useOTPForm.js";
|
|
9
9
|
import { SignInCredentials as G } from "../SignInCredentials.js";
|
|
10
10
|
import { useSignInContext as E } from "../SignInProvider.js";
|
|
11
|
-
import "../../../chunks/CDPReactProvider.
|
|
11
|
+
import "../../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
12
12
|
const J = ["email", "otp"], N = ({
|
|
13
13
|
step: n,
|
|
14
14
|
autoFocus: s,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as h, Fragment as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "@coinbase/cdp-hooks";
|
|
3
3
|
import { useRef as A, useCallback as S, useEffect as v } from "react";
|
|
4
|
-
import { u as m } from "../../../chunks/CDPReactProvider.
|
|
4
|
+
import { u as m } from "../../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
5
5
|
import { useSignInWithOAuth as O } from "../hooks/useSignInWithOAuth.js";
|
|
6
6
|
import { Button as W } from "../../ui/Button/index.js";
|
|
7
7
|
import { ServerError as I } from "../../ui/ServerError/index.js";
|
|
@@ -10,7 +10,7 @@ import { useOTPForm as X } from "../hooks/useOTPForm.js";
|
|
|
10
10
|
import { usePhoneNumberForm as Y } from "../hooks/usePhoneNumberForm.js";
|
|
11
11
|
import { SignInCredentials as Z } from "../SignInCredentials.js";
|
|
12
12
|
import { useSignInContext as g } from "../SignInProvider.js";
|
|
13
|
-
import "../../../chunks/CDPReactProvider.
|
|
13
|
+
import "../../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
14
14
|
const _ = ["phoneNumber", "otp"], $ = ({
|
|
15
15
|
step: o,
|
|
16
16
|
autoFocus: i,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as r, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { u } from "../../chunks/useSendComponentCallOnce.
|
|
2
|
+
import { u } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { u as d } from "../../chunks/CDPReactProvider.
|
|
4
|
+
import { u as d } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
5
5
|
import { SignInAuthMethodButtons as f } from "./SignInAuthMethodButtons.js";
|
|
6
6
|
import { SignInBackButton as I } from "./SignInBackButton.js";
|
|
7
7
|
import { SignInDescription as S } from "./SignInDescription.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n, jsxs as t, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { u as C } from "../../chunks/useSendComponentCallOnce.
|
|
2
|
+
import { u as C } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
3
3
|
import { createContext as b, useMemo as x, useContext as v } from "react";
|
|
4
4
|
import { c as N } from "../../chunks/lite.1fxw3LjI.js";
|
|
5
|
-
import { u as w } from "../../chunks/CDPReactProvider.
|
|
5
|
+
import { u as w } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import { SignIn as T } from "../SignIn/index.js";
|
|
7
7
|
import "@coinbase/cdp-hooks";
|
|
8
8
|
import { Button as h } from "../ui/Button/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useSignOut as r } from "@coinbase/cdp-hooks";
|
|
3
|
-
import { u as e } from "../../chunks/useSendComponentCallOnce.
|
|
3
|
+
import { u as e } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { c } from "../../chunks/lite.1fxw3LjI.js";
|
|
6
6
|
import { Button as a } from "../ui/Button/index.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@coinbase/cdp-hooks";
|
|
3
|
-
import "../../chunks/useSendComponentCallOnce.
|
|
3
|
+
import "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { V as p } from "../../chunks/CDPReactProvider.
|
|
5
|
+
import { V as p } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import "@coinbase/cdp-core";
|
|
7
7
|
import { VerifyMfaDescription as x } from "./VerifyMfaDescription.js";
|
|
8
8
|
import { VerifyMfaFlow as y } from "./VerifyMfaFlow.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as t, jsxs as E } from "react/jsx-runtime";
|
|
2
2
|
import { isMfaRequired as q } from "@coinbase/cdp-core";
|
|
3
3
|
import { useCancelMfaVerification as L, useIsInitialized as A, useRegisterMfaListener as O } from "@coinbase/cdp-hooks";
|
|
4
|
-
import { u as P } from "../../chunks/useSendComponentCallOnce.
|
|
4
|
+
import { u as P } from "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
5
5
|
import { createContext as W, useMemo as h, useRef as k, useState as R, useCallback as C, useContext as X, useEffect as Y } from "react";
|
|
6
6
|
import { c as j } from "../../chunks/lite.1fxw3LjI.js";
|
|
7
7
|
import { Button as H } from "../ui/Button/index.js";
|
|
8
8
|
import { SwitchFadeTransition as J } from "../ui/SwitchFadeTransition/index.js";
|
|
9
9
|
import { SwitchSlideTransition as Q } from "../ui/SwitchSlideTransition/index.js";
|
|
10
|
-
import { V as U } from "../../chunks/CDPReactProvider.
|
|
10
|
+
import { V as U } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
11
11
|
import { IconArrowLeft as Z } from "../../icons/IconArrowLeft.js";
|
|
12
12
|
import "../../theme/theme.js";
|
|
13
13
|
import { useVerifyMfaContext as $ } from "../VerifyMfa/VerifyMfaProvider.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../chunks/useSendComponentCallOnce.
|
|
2
|
+
import "../../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../chunks/lite.1fxw3LjI.js";
|
|
5
|
-
import { c, d as x, e as C } from "../../chunks/CDPReactProvider.
|
|
5
|
+
import { c, d as x, e as C } from "../../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import "../ui/Button/index.js";
|
|
7
7
|
import "../ui/Modal/index.js";
|
|
8
8
|
import "../ui/VisuallyHidden/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@coinbase/cdp-core";
|
|
3
|
-
import "../chunks/useSendComponentCallOnce.
|
|
4
|
-
import { g as t, h as m, f as p } from "../chunks/CDPReactProvider.
|
|
3
|
+
import "../chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
4
|
+
import { g as t, h as m, f as p } from "../chunks/CDPReactProvider.CFWIUvzR.js";
|
|
5
5
|
import "react";
|
|
6
6
|
export {
|
|
7
7
|
t as VerifyMfaModalProvider,
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./chunks/useSendComponentCallOnce.
|
|
1
|
+
import "./chunks/useSendComponentCallOnce.BI4daEvm.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "./version.js";
|
|
4
4
|
import { AuthButton as a } from "./components/AuthButton/index.js";
|
|
5
|
-
import { A as p, b as l, C as x, O as i, V as s, c as M, d as u, e as d, u as c, a as I, f as g } from "./chunks/CDPReactProvider.
|
|
5
|
+
import { A as p, b as l, C as x, O as i, V as s, c as M, d as u, e as d, u as c, a as I, f as g } from "./chunks/CDPReactProvider.CFWIUvzR.js";
|
|
6
6
|
import { CopyAddress as C } from "./components/CopyAddress/index.js";
|
|
7
7
|
import { CopyEvmKeyButton as S } from "./components/CopyEvmKeyButton/index.js";
|
|
8
8
|
import { CopySolanaKeyButton as h } from "./components/CopySolanaKeyButton/index.js";
|
|
@@ -64,7 +64,7 @@ import { EnrollMfaItems as de } from "./components/EnrollMfa/EnrollMfaItems.js";
|
|
|
64
64
|
import { EnrollMfaTitle as Ie } from "./components/EnrollMfa/EnrollMfaTitle.js";
|
|
65
65
|
import { FundForm as Ee } from "./components/Fund/FundForm.js";
|
|
66
66
|
import { FundTitle as ye } from "./components/Fund/FundTitle.js";
|
|
67
|
-
import { a as Te, u as he } from "./chunks/LinkAuthFlow.
|
|
67
|
+
import { a as Te, u as he } from "./chunks/LinkAuthFlow.S1XbYaG5.js";
|
|
68
68
|
import { LinkAuthFlowBackButton as Ae } from "./components/LinkAuth/LinkAuthFlowBackButton.js";
|
|
69
69
|
import { LinkAuthItem as Ve } from "./components/LinkAuth/LinkAuthItem.js";
|
|
70
70
|
import { LinkAuthItems as Le } from "./components/LinkAuth/LinkAuthItems.js";
|
|
@@ -39,7 +39,7 @@ function qt(e, r) {
|
|
|
39
39
|
function O(e, r, t) {
|
|
40
40
|
return r && qt(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
41
41
|
}
|
|
42
|
-
var zt = "1.2.0", te = "1.7.35", z = " ext. ", ee = /^\d+$/, s = /* @__PURE__ */ function() {
|
|
42
|
+
var zt = "1.2.0", te = "1.7.35", z = " ext. ", ee = /^\d+$/, s = /* @__PURE__ */ (function() {
|
|
43
43
|
function e(r) {
|
|
44
44
|
T(this, e), Tt(r), this.metadata = r, Ot.call(this, r);
|
|
45
45
|
}
|
|
@@ -225,7 +225,7 @@ var zt = "1.2.0", te = "1.7.35", z = " ext. ", ee = /^\d+$/, s = /* @__PURE__ */
|
|
|
225
225
|
return this.numberingPlan !== void 0;
|
|
226
226
|
}
|
|
227
227
|
}]), e;
|
|
228
|
-
}(), tt = /* @__PURE__ */ function() {
|
|
228
|
+
})(), tt = /* @__PURE__ */ (function() {
|
|
229
229
|
function e(r, t) {
|
|
230
230
|
T(this, e), this.globalMetadataObject = t, this.metadata = r, Ot.call(this, t.metadata);
|
|
231
231
|
}
|
|
@@ -361,7 +361,7 @@ var zt = "1.2.0", te = "1.7.35", z = " ext. ", ee = /^\d+$/, s = /* @__PURE__ */
|
|
|
361
361
|
return this.v1 || this.v2 ? z : this.metadata[13] || z;
|
|
362
362
|
}
|
|
363
363
|
}]), e;
|
|
364
|
-
}(), re = /* @__PURE__ */ function() {
|
|
364
|
+
})(), re = /* @__PURE__ */ (function() {
|
|
365
365
|
function e(r, t) {
|
|
366
366
|
T(this, e), this._format = r, this.metadata = t;
|
|
367
367
|
}
|
|
@@ -408,7 +408,7 @@ var zt = "1.2.0", te = "1.7.35", z = " ext. ", ee = /^\d+$/, s = /* @__PURE__ */
|
|
|
408
408
|
return this._format[5] || this.format();
|
|
409
409
|
}
|
|
410
410
|
}]), e;
|
|
411
|
-
}(), ne = /^\(?\$1\)?$/, de = /* @__PURE__ */ function() {
|
|
411
|
+
})(), ne = /^\(?\$1\)?$/, de = /* @__PURE__ */ (function() {
|
|
412
412
|
function e(r, t) {
|
|
413
413
|
T(this, e), this.type = r, this.metadata = t;
|
|
414
414
|
}
|
|
@@ -424,7 +424,7 @@ var zt = "1.2.0", te = "1.7.35", z = " ext. ", ee = /^\d+$/, s = /* @__PURE__ */
|
|
|
424
424
|
return this.type[1] || this.metadata.possibleLengths();
|
|
425
425
|
}
|
|
426
426
|
}]), e;
|
|
427
|
-
}();
|
|
427
|
+
})();
|
|
428
428
|
function et(e, r) {
|
|
429
429
|
switch (r) {
|
|
430
430
|
case "FIXED_LINE":
|
|
@@ -502,16 +502,7 @@ function $e(e, r, t) {
|
|
|
502
502
|
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
503
503
|
}
|
|
504
504
|
function wt(e, r) {
|
|
505
|
-
|
|
506
|
-
case "IS_POSSIBLE":
|
|
507
|
-
return !0;
|
|
508
|
-
// This library ignores "local-only" phone numbers (for simplicity).
|
|
509
|
-
// See the readme for more info on what are "local-only" phone numbers.
|
|
510
|
-
// case 'IS_POSSIBLE_LOCAL_ONLY':
|
|
511
|
-
// return !isInternational
|
|
512
|
-
default:
|
|
513
|
-
return !1;
|
|
514
|
-
}
|
|
505
|
+
return w(e, r) === "IS_POSSIBLE";
|
|
515
506
|
}
|
|
516
507
|
function b(e, r) {
|
|
517
508
|
return e = e || "", new RegExp("^(?:" + r + ")$").test(e);
|
|
@@ -925,7 +916,7 @@ function We(e, r) {
|
|
|
925
916
|
function Ve(e, r, t) {
|
|
926
917
|
return r && We(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
927
918
|
}
|
|
928
|
-
var Bt = /* @__PURE__ */ function() {
|
|
919
|
+
var Bt = /* @__PURE__ */ (function() {
|
|
929
920
|
function e(r, t, n) {
|
|
930
921
|
if (He(this, e), !r)
|
|
931
922
|
throw new TypeError("First argument is required");
|
|
@@ -1033,7 +1024,7 @@ var Bt = /* @__PURE__ */ function() {
|
|
|
1033
1024
|
return this.format("RFC3966", t);
|
|
1034
1025
|
}
|
|
1035
1026
|
}]), e;
|
|
1036
|
-
}(), Ke = function(r) {
|
|
1027
|
+
})(), Ke = function(r) {
|
|
1037
1028
|
return /^[A-Z]{2}$/.test(r);
|
|
1038
1029
|
};
|
|
1039
1030
|
function Xe(e, r) {
|
|
@@ -1135,7 +1126,7 @@ function F(e) {
|
|
|
1135
1126
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1136
1127
|
}, F(e);
|
|
1137
1128
|
}
|
|
1138
|
-
var C = /* @__PURE__ */ function(e) {
|
|
1129
|
+
var C = /* @__PURE__ */ (function(e) {
|
|
1139
1130
|
Qe(t, e);
|
|
1140
1131
|
var r = qe(t);
|
|
1141
1132
|
function t(n) {
|
|
@@ -1143,7 +1134,7 @@ var C = /* @__PURE__ */ function(e) {
|
|
|
1143
1134
|
return Je(this, t), d = r.call(this, n), Object.setPrototypeOf(jt(d), t.prototype), d.name = d.constructor.name, d;
|
|
1144
1135
|
}
|
|
1145
1136
|
return Ze(t);
|
|
1146
|
-
}(/* @__PURE__ */ H(Error)), ut = new RegExp("(?:" + Gt() + ")$", "i");
|
|
1137
|
+
})(/* @__PURE__ */ H(Error)), ut = new RegExp("(?:" + Gt() + ")$", "i");
|
|
1147
1138
|
function er(e) {
|
|
1148
1139
|
var r = e.search(ut);
|
|
1149
1140
|
if (r < 0)
|
|
@@ -1623,7 +1614,7 @@ function Ur(e, r) {
|
|
|
1623
1614
|
function Hr(e, r, t) {
|
|
1624
1615
|
return r && Ur(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1625
1616
|
}
|
|
1626
|
-
var Wr = /* @__PURE__ */ function() {
|
|
1617
|
+
var Wr = /* @__PURE__ */ (function() {
|
|
1627
1618
|
function e(r) {
|
|
1628
1619
|
var t = r.onCountryChange, n = r.onCallingCodeChange;
|
|
1629
1620
|
jr(this, e), this.onCountryChange = t, this.onCallingCodeChange = n;
|
|
@@ -1695,7 +1686,7 @@ var Wr = /* @__PURE__ */ function() {
|
|
|
1695
1686
|
return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
|
|
1696
1687
|
}
|
|
1697
1688
|
}]), e;
|
|
1698
|
-
}();
|
|
1689
|
+
})();
|
|
1699
1690
|
function Vr(e, r) {
|
|
1700
1691
|
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1701
1692
|
if (t) return (t = t.call(e)).next.bind(t);
|
|
@@ -1809,7 +1800,7 @@ function tn(e, r) {
|
|
|
1809
1800
|
function en(e, r, t) {
|
|
1810
1801
|
return r && tn(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1811
1802
|
}
|
|
1812
|
-
var rn = /* @__PURE__ */ function() {
|
|
1803
|
+
var rn = /* @__PURE__ */ (function() {
|
|
1813
1804
|
function e() {
|
|
1814
1805
|
zr(this, e);
|
|
1815
1806
|
}
|
|
@@ -1908,7 +1899,7 @@ var rn = /* @__PURE__ */ function() {
|
|
|
1908
1899
|
a && this.parsePattern(a);
|
|
1909
1900
|
}
|
|
1910
1901
|
}]), e;
|
|
1911
|
-
}();
|
|
1902
|
+
})();
|
|
1912
1903
|
function nn(e) {
|
|
1913
1904
|
for (var r = [], t = 0; t < e.length; ) {
|
|
1914
1905
|
if (e[t] === "-") {
|
|
@@ -1969,7 +1960,7 @@ function un(e, r) {
|
|
|
1969
1960
|
function ln(e, r, t) {
|
|
1970
1961
|
return r && un(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1971
1962
|
}
|
|
1972
|
-
var fn = /* @__PURE__ */ function() {
|
|
1963
|
+
var fn = /* @__PURE__ */ (function() {
|
|
1973
1964
|
function e(r) {
|
|
1974
1965
|
on(this, e), this.matchTree = new rn().parse(r);
|
|
1975
1966
|
}
|
|
@@ -1984,7 +1975,7 @@ var fn = /* @__PURE__ */ function() {
|
|
|
1984
1975
|
return i;
|
|
1985
1976
|
}
|
|
1986
1977
|
}]), e;
|
|
1987
|
-
}();
|
|
1978
|
+
})();
|
|
1988
1979
|
function K(e, r, t) {
|
|
1989
1980
|
if (typeof r == "string") {
|
|
1990
1981
|
var n = e.join("");
|
|
@@ -2122,7 +2113,7 @@ var X = "9", mn = 15, yn = I(X, mn), vn = /[- ]/, Nn = function() {
|
|
|
2122
2113
|
return /\[([^\[\]])*\]/g;
|
|
2123
2114
|
}, bn = function() {
|
|
2124
2115
|
return /\d(?=[^,}][^,}])/g;
|
|
2125
|
-
}, Cn = new RegExp("[" + y + "]*\\$1[" + y + "]*(\\$\\d[" + y + "]*)*$"), At = 3, pn = /* @__PURE__ */ function() {
|
|
2116
|
+
}, Cn = new RegExp("[" + y + "]*\\$1[" + y + "]*(\\$\\d[" + y + "]*)*$"), At = 3, pn = /* @__PURE__ */ (function() {
|
|
2126
2117
|
function e(r) {
|
|
2127
2118
|
r.state;
|
|
2128
2119
|
var t = r.metadata;
|
|
@@ -2313,7 +2304,7 @@ var X = "9", mn = 15, yn = I(X, mn), vn = /[- ]/, Nn = function() {
|
|
|
2313
2304
|
}
|
|
2314
2305
|
}
|
|
2315
2306
|
}]), e;
|
|
2316
|
-
}();
|
|
2307
|
+
})();
|
|
2317
2308
|
function Xt(e, r) {
|
|
2318
2309
|
return Fn(e) || En(e, r) || xn(e, r) || Pn();
|
|
2319
2310
|
}
|
|
@@ -2370,7 +2361,7 @@ function In(e, r) {
|
|
|
2370
2361
|
function Sn(e, r, t) {
|
|
2371
2362
|
return r && In(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2372
2363
|
}
|
|
2373
|
-
var _n = "[" + y + h + "]+", Tn = new RegExp("^" + _n + "$", "i"), On = "(?:[" + R + "][" + y + h + "]*|[" + y + h + "]+)", wn = new RegExp("[^" + y + h + "]+.*$"), Rn = /[^\d\[\]]/, Dn = /* @__PURE__ */ function() {
|
|
2364
|
+
var _n = "[" + y + h + "]+", Tn = new RegExp("^" + _n + "$", "i"), On = "(?:[" + R + "][" + y + h + "]*|[" + y + h + "]+)", wn = new RegExp("[^" + y + h + "]+.*$"), Rn = /[^\d\[\]]/, Dn = /* @__PURE__ */ (function() {
|
|
2374
2365
|
function e(r) {
|
|
2375
2366
|
var t = r.defaultCountry, n = r.defaultCallingCode, d = r.metadata, i = r.onNationalSignificantNumberChange;
|
|
2376
2367
|
An(this, e), this.defaultCountry = t, this.defaultCallingCode = n, this.metadata = d, this.onNationalSignificantNumberChange = i;
|
|
@@ -2533,7 +2524,7 @@ var _n = "[" + y + h + "]+", Tn = new RegExp("^" + _n + "$", "i"), On = "(?:[" +
|
|
|
2533
2524
|
});
|
|
2534
2525
|
}
|
|
2535
2526
|
}]), e;
|
|
2536
|
-
}();
|
|
2527
|
+
})();
|
|
2537
2528
|
function Mn(e) {
|
|
2538
2529
|
var r = e.search(On);
|
|
2539
2530
|
if (!(r < 0)) {
|
|
@@ -2606,7 +2597,7 @@ function Vn(e, r) {
|
|
|
2606
2597
|
function Kn(e, r, t) {
|
|
2607
2598
|
return r && Vn(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2608
2599
|
}
|
|
2609
|
-
var Xn = /* @__PURE__ */ function() {
|
|
2600
|
+
var Xn = /* @__PURE__ */ (function() {
|
|
2610
2601
|
function e(r, t) {
|
|
2611
2602
|
Wn(this, e), this.metadata = new s(t);
|
|
2612
2603
|
var n = this.getCountryAndCallingCode(r), d = Gn(n, 2), i = d[0], a = d[1];
|
|
@@ -2887,7 +2878,7 @@ var Xn = /* @__PURE__ */ function() {
|
|
|
2887
2878
|
return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
|
|
2888
2879
|
}
|
|
2889
2880
|
}]), e;
|
|
2890
|
-
}();
|
|
2881
|
+
})();
|
|
2891
2882
|
function Yn(e, r, t) {
|
|
2892
2883
|
return t || (t = r, r = void 0), new Xn(r, t).input(e);
|
|
2893
2884
|
}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cdp-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.107",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@internationalized/number": "3.6.4",
|
|
@@ -16,41 +16,41 @@
|
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": ">=18.2.0 <19.2.0",
|
|
19
|
-
"@coinbase/cdp-core": "^0.0.
|
|
20
|
-
"@coinbase/cdp-hooks": "^0.0.
|
|
19
|
+
"@coinbase/cdp-core": "^0.0.107",
|
|
20
|
+
"@coinbase/cdp-hooks": "^0.0.107"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@size-limit/preset-big-lib": "
|
|
24
|
-
"@size-limit/webpack": "
|
|
25
|
-
"@size-limit/webpack-css": "
|
|
26
|
-
"@size-limit/webpack-why": "
|
|
27
|
-
"@testing-library/dom": "
|
|
28
|
-
"@testing-library/jest-dom": "
|
|
29
|
-
"@testing-library/react": "
|
|
30
|
-
"@testing-library/user-event": "
|
|
23
|
+
"@size-limit/preset-big-lib": "11.2.0",
|
|
24
|
+
"@size-limit/webpack": "11.2.0",
|
|
25
|
+
"@size-limit/webpack-css": "11.2.0",
|
|
26
|
+
"@size-limit/webpack-why": "11.2.0",
|
|
27
|
+
"@testing-library/dom": "10.4.0",
|
|
28
|
+
"@testing-library/jest-dom": "6.6.3",
|
|
29
|
+
"@testing-library/react": "16.3.0",
|
|
30
|
+
"@testing-library/user-event": "14.6.1",
|
|
31
31
|
"@types/big.js": "6.2.2",
|
|
32
|
-
"@types/glob": "
|
|
33
|
-
"@types/qrcode": "
|
|
34
|
-
"@types/react": "
|
|
35
|
-
"@types/react-dom": "
|
|
36
|
-
"@vitejs/plugin-react": "
|
|
37
|
-
"eslint-plugin-css-modules": "
|
|
38
|
-
"eslint-plugin-react": "
|
|
39
|
-
"eslint-plugin-react-hooks": "
|
|
40
|
-
"glob": "
|
|
32
|
+
"@types/glob": "9.0.0",
|
|
33
|
+
"@types/qrcode": "1.5.6",
|
|
34
|
+
"@types/react": "19.1.8",
|
|
35
|
+
"@types/react-dom": "19.1.6",
|
|
36
|
+
"@vitejs/plugin-react": "4.6.0",
|
|
37
|
+
"eslint-plugin-css-modules": "2.12.0",
|
|
38
|
+
"eslint-plugin-react": "7.37.5",
|
|
39
|
+
"eslint-plugin-react-hooks": "5.2.0",
|
|
40
|
+
"glob": "11.1.0",
|
|
41
41
|
"jest-canvas-mock": "2.5.2",
|
|
42
|
-
"react": "
|
|
43
|
-
"react-dom": "
|
|
44
|
-
"rollup-plugin-visualizer": "
|
|
45
|
-
"size-limit": "
|
|
46
|
-
"stylelint": "
|
|
47
|
-
"stylelint-config-standard": "
|
|
48
|
-
"stylelint-value-no-unknown-custom-properties": "
|
|
49
|
-
"vite": "
|
|
50
|
-
"vite-plugin-dts": "
|
|
51
|
-
"vite-plugin-lib-inject-css": "
|
|
52
|
-
"@coinbase/cdp-core": "^0.0.
|
|
53
|
-
"@coinbase/cdp-hooks": "^0.0.
|
|
42
|
+
"react": "19.1.2",
|
|
43
|
+
"react-dom": "19.1.2",
|
|
44
|
+
"rollup-plugin-visualizer": "6.0.3",
|
|
45
|
+
"size-limit": "11.2.0",
|
|
46
|
+
"stylelint": "16.22.0",
|
|
47
|
+
"stylelint-config-standard": "38.0.0",
|
|
48
|
+
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
49
|
+
"vite": "7.3.2",
|
|
50
|
+
"vite-plugin-dts": "4.5.4",
|
|
51
|
+
"vite-plugin-lib-inject-css": "2.2.2",
|
|
52
|
+
"@coinbase/cdp-core": "^0.0.107",
|
|
53
|
+
"@coinbase/cdp-hooks": "^0.0.107"
|
|
54
54
|
},
|
|
55
55
|
"size-limit": [
|
|
56
56
|
{
|