@dynamic-labs/sdk-react-core 1.1.0-alpha.4 → 1.1.0-alpha.5
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/CHANGELOG.md +8 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/index.cjs +14 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +7 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/data/api.cjs +15 -0
- package/src/lib/data/api.d.ts +7 -1
- package/src/lib/data/api.js +15 -1
- package/src/lib/events/dynamicEvents.d.ts +2 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +2 -1
- package/src/lib/locale/en/translation.cjs +71 -1
- package/src/lib/locale/en/translation.d.ts +70 -0
- package/src/lib/locale/en/translation.js +71 -1
- package/src/lib/shared/assets/alt-embedded-wallet.cjs +54 -0
- package/src/lib/shared/assets/alt-embedded-wallet.js +30 -0
- package/src/lib/shared/assets/export-embedded-hero.cjs +90 -0
- package/src/lib/shared/assets/export-embedded-hero.js +66 -0
- package/src/lib/shared/assets/eye-off-icon.cjs +53 -0
- package/src/lib/shared/assets/eye-off-icon.js +29 -0
- package/src/lib/shared/assets/face-id.cjs +53 -0
- package/src/lib/shared/assets/face-id.js +29 -0
- package/src/lib/shared/assets/index.d.ts +6 -0
- package/src/lib/shared/assets/lock.cjs +54 -0
- package/src/lib/shared/assets/lock.js +30 -0
- package/src/lib/shared/assets/wallet-v2.cjs +53 -0
- package/src/lib/shared/assets/wallet-v2.js +29 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +28 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +28 -1
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +2 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +2 -1
- package/src/lib/utils/hooks/useEmbeddedReveal/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +60 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.d.ts +4 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +56 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +3 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +3 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +2 -27
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +2 -27
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +20 -14
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +20 -14
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +26 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +26 -4
- package/src/lib/views/EmailVerification/EmailVerification.cjs +34 -23
- package/src/lib/views/EmailVerification/EmailVerification.js +34 -23
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +158 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +2 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +154 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/index.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/constants.cjs +9 -0
- package/src/lib/views/EmbeddedReveal/constants.d.ts +2 -0
- package/src/lib/views/EmbeddedReveal/constants.js +4 -0
- package/src/lib/views/EmbeddedReveal/index.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/index.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +114 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.d.ts +15 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +108 -0
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +2 -2
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +2 -2
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +2 -2
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +2 -2
- package/src/lib/views/viewToComponentMap.cjs +2 -0
- package/src/lib/views/viewToComponentMap.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +4 -4
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +93 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +89 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
## [1.1.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.4...v1.1.0-alpha.5) (2023-12-21)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add support for xverse wallet ([#4245](https://github.com/dynamic-labs/DynamicAuth/issues/4245)) ([7b68546](https://github.com/dynamic-labs/DynamicAuth/commit/7b6854684412007bcb33896555900936395176df))
|
|
8
|
+
* **gvty-526:** add embedded reveal ([#4233](https://github.com/dynamic-labs/DynamicAuth/issues/4233)) ([c2d0f90](https://github.com/dynamic-labs/DynamicAuth/commit/c2d0f903f4a4646f86c71834540fd49d51a4a7ae))
|
|
9
|
+
|
|
2
10
|
## [1.1.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.3...v1.1.0-alpha.4) (2023-12-21)
|
|
3
11
|
|
|
4
12
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"react-focus-lock": "2.9.2",
|
|
18
18
|
"react-i18next": "^13.2.0",
|
|
19
19
|
"yup": "0.32.11",
|
|
20
|
-
"@dynamic-labs/ethereum": "1.1.0-alpha.
|
|
21
|
-
"@dynamic-labs/logger": "1.1.0-alpha.
|
|
22
|
-
"@dynamic-labs/multi-wallet": "1.1.0-alpha.
|
|
23
|
-
"@dynamic-labs/rpc-providers": "1.1.0-alpha.
|
|
24
|
-
"@dynamic-labs/types": "1.1.0-alpha.
|
|
25
|
-
"@dynamic-labs/utils": "1.1.0-alpha.
|
|
26
|
-
"@dynamic-labs/viem-utils": "1.1.0-alpha.
|
|
27
|
-
"@dynamic-labs/wallet-book": "1.1.0-alpha.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "1.1.0-alpha.
|
|
20
|
+
"@dynamic-labs/ethereum": "1.1.0-alpha.5",
|
|
21
|
+
"@dynamic-labs/logger": "1.1.0-alpha.5",
|
|
22
|
+
"@dynamic-labs/multi-wallet": "1.1.0-alpha.5",
|
|
23
|
+
"@dynamic-labs/rpc-providers": "1.1.0-alpha.5",
|
|
24
|
+
"@dynamic-labs/types": "1.1.0-alpha.5",
|
|
25
|
+
"@dynamic-labs/utils": "1.1.0-alpha.5",
|
|
26
|
+
"@dynamic-labs/viem-utils": "1.1.0-alpha.5",
|
|
27
|
+
"@dynamic-labs/wallet-book": "1.1.0-alpha.5",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "1.1.0-alpha.5",
|
|
29
29
|
"eventemitter3": "5.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
package/src/index.cjs
CHANGED
|
@@ -70,6 +70,7 @@ var dynamicLogo = require('./lib/shared/assets/dynamic-logo.cjs');
|
|
|
70
70
|
var embeddedWalletIcon = require('./lib/shared/assets/embedded-wallet-icon.cjs');
|
|
71
71
|
var error = require('./lib/shared/assets/error.cjs');
|
|
72
72
|
var externalLink = require('./lib/shared/assets/externalLink.cjs');
|
|
73
|
+
var eyeOffIcon = require('./lib/shared/assets/eye-off-icon.cjs');
|
|
73
74
|
var footerEyeIcon = require('./lib/shared/assets/footer-eye-icon.cjs');
|
|
74
75
|
var footerGasIcon = require('./lib/shared/assets/footer-gas-icon.cjs');
|
|
75
76
|
var footerInfoIcon = require('./lib/shared/assets/footer-info-icon.cjs');
|
|
@@ -109,6 +110,11 @@ var walletOutline = require('./lib/shared/assets/wallet-outline.cjs');
|
|
|
109
110
|
var workSuitcase = require('./lib/shared/assets/work-suitcase.cjs');
|
|
110
111
|
var circleLocker = require('./lib/shared/assets/circle-locker.cjs');
|
|
111
112
|
var turnkey = require('./lib/shared/assets/turnkey.cjs');
|
|
113
|
+
var lock = require('./lib/shared/assets/lock.cjs');
|
|
114
|
+
var altEmbeddedWallet = require('./lib/shared/assets/alt-embedded-wallet.cjs');
|
|
115
|
+
var faceId = require('./lib/shared/assets/face-id.cjs');
|
|
116
|
+
var exportEmbeddedHero = require('./lib/shared/assets/export-embedded-hero.cjs');
|
|
117
|
+
var walletV2 = require('./lib/shared/assets/wallet-v2.cjs');
|
|
112
118
|
var index$2 = require('./lib/shared/consts/index.cjs');
|
|
113
119
|
var logger = require('./lib/shared/logger.cjs');
|
|
114
120
|
require('react-dom');
|
|
@@ -159,6 +165,7 @@ require('./lib/components/IconButton/IconButton.cjs');
|
|
|
159
165
|
require('./lib/components/Alert/Alert.cjs');
|
|
160
166
|
require('@dynamic-labs/viem-utils');
|
|
161
167
|
require('./lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
168
|
+
var useEmbeddedReveal = require('./lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs');
|
|
162
169
|
var DynamicConnectButton = require('./lib/components/DynamicConnectButton/DynamicConnectButton.cjs');
|
|
163
170
|
require('./lib/components/InlineWidget/InlineWidget.cjs');
|
|
164
171
|
var IsBrowser = require('./lib/components/IsBrowser/IsBrowser.cjs');
|
|
@@ -250,6 +257,7 @@ exports.DynamicLogoIcon = dynamicLogo.ReactComponent;
|
|
|
250
257
|
exports.EmbeddedWalletIcon = embeddedWalletIcon.ReactComponent;
|
|
251
258
|
exports.ErrorIcon = error.ReactComponent;
|
|
252
259
|
exports.ExternalLinkIcon = externalLink.ReactComponent;
|
|
260
|
+
exports.EyeOffIcon = eyeOffIcon.ReactComponent;
|
|
253
261
|
exports.EyeIcon = footerEyeIcon.ReactComponent;
|
|
254
262
|
exports.GasIcon = footerGasIcon.ReactComponent;
|
|
255
263
|
exports.InfoIcon = footerInfoIcon.ReactComponent;
|
|
@@ -289,6 +297,11 @@ exports.WalletOutlineIcon = walletOutline.ReactComponent;
|
|
|
289
297
|
exports.WorkSuitcaseIcon = workSuitcase.ReactComponent;
|
|
290
298
|
exports.CircleLockerIcon = circleLocker.ReactComponent;
|
|
291
299
|
exports.TurnkeyIcon = turnkey.ReactComponent;
|
|
300
|
+
exports.LockIcon = lock.ReactComponent;
|
|
301
|
+
exports.AltEmbeddedWalletIcon = altEmbeddedWallet.ReactComponent;
|
|
302
|
+
exports.FaceIdIcon = faceId.ReactComponent;
|
|
303
|
+
exports.ExportEmbeddedHero = exportEmbeddedHero.ReactComponent;
|
|
304
|
+
exports.WalletV2Icon = walletV2.ReactComponent;
|
|
292
305
|
exports.authModalZIndex = index$2.authModalZIndex;
|
|
293
306
|
exports.countryCodes = index$2.countryCodes;
|
|
294
307
|
exports.defaultWalletsForChains = index$2.defaultWalletsForChains;
|
|
@@ -320,6 +333,7 @@ exports.useWalletItemActions = useWalletItemActions.useWalletItemActions;
|
|
|
320
333
|
exports.ShadowDOM = ShadowDOM.ShadowDOM;
|
|
321
334
|
exports.useEmailVerificationRequest = useEmailVerificationRequest.useEmailVerificationRequest;
|
|
322
335
|
exports.DynamicWidgetContextProvider = DynamicWidgetContext.DynamicWidgetContextProvider;
|
|
336
|
+
exports.useEmbeddedReveal = useEmbeddedReveal.useEmbeddedReveal;
|
|
323
337
|
exports.DynamicConnectButton = DynamicConnectButton.DynamicConnectButton;
|
|
324
338
|
exports.IsBrowser = IsBrowser.IsBrowser;
|
|
325
339
|
exports.WalletList = WalletList.WalletList;
|
package/src/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export { classNames } from './lib/utils/functions/classNames';
|
|
|
24
24
|
export { getNetwork } from './lib/utils/functions/getNetwork';
|
|
25
25
|
export * from './lib/utils/functions/walletFilters';
|
|
26
26
|
export { DynamicWidgetContextProvider } from './lib/widgets/DynamicWidget/context';
|
|
27
|
-
export { useWalletItemActions, useAuthenticateConnectedUser, useSocialAccounts, useEmbeddedWallet, usePasskeyRecovery, useIsLoggedIn, } from './lib/utils/hooks';
|
|
27
|
+
export { useWalletItemActions, useAuthenticateConnectedUser, useSocialAccounts, useEmbeddedWallet, usePasskeyRecovery, useEmbeddedReveal, useIsLoggedIn, } from './lib/utils/hooks';
|
|
28
28
|
export { useUserUpdateRequest, useWalletConnectorEvent, } from './lib/utils/hooks';
|
|
29
29
|
export { type VerifyEmailCallback, useEmailVerificationRequest, } from './lib/utils/hooks/authenticationHooks/';
|
|
30
30
|
export type { UpdateUserFieldsArg } from './lib/utils/hooks/';
|
package/src/index.js
CHANGED
|
@@ -66,6 +66,7 @@ export { ReactComponent as DynamicLogoIcon } from './lib/shared/assets/dynamic-l
|
|
|
66
66
|
export { ReactComponent as EmbeddedWalletIcon } from './lib/shared/assets/embedded-wallet-icon.js';
|
|
67
67
|
export { ReactComponent as ErrorIcon } from './lib/shared/assets/error.js';
|
|
68
68
|
export { ReactComponent as ExternalLinkIcon } from './lib/shared/assets/externalLink.js';
|
|
69
|
+
export { ReactComponent as EyeOffIcon } from './lib/shared/assets/eye-off-icon.js';
|
|
69
70
|
export { ReactComponent as EyeIcon } from './lib/shared/assets/footer-eye-icon.js';
|
|
70
71
|
export { ReactComponent as GasIcon } from './lib/shared/assets/footer-gas-icon.js';
|
|
71
72
|
export { ReactComponent as InfoIcon } from './lib/shared/assets/footer-info-icon.js';
|
|
@@ -105,6 +106,11 @@ export { ReactComponent as WalletOutlineIcon } from './lib/shared/assets/wallet-
|
|
|
105
106
|
export { ReactComponent as WorkSuitcaseIcon } from './lib/shared/assets/work-suitcase.js';
|
|
106
107
|
export { ReactComponent as CircleLockerIcon } from './lib/shared/assets/circle-locker.js';
|
|
107
108
|
export { ReactComponent as TurnkeyIcon } from './lib/shared/assets/turnkey.js';
|
|
109
|
+
export { ReactComponent as LockIcon } from './lib/shared/assets/lock.js';
|
|
110
|
+
export { ReactComponent as AltEmbeddedWalletIcon } from './lib/shared/assets/alt-embedded-wallet.js';
|
|
111
|
+
export { ReactComponent as FaceIdIcon } from './lib/shared/assets/face-id.js';
|
|
112
|
+
export { ReactComponent as ExportEmbeddedHero } from './lib/shared/assets/export-embedded-hero.js';
|
|
113
|
+
export { ReactComponent as WalletV2Icon } from './lib/shared/assets/wallet-v2.js';
|
|
108
114
|
export { authModalZIndex, countryCodes, defaultWalletsForChains, tShirtSizes, teamNames, toolkitZIndex, tooltipZIndex, widgetModalZIndex } from './lib/shared/consts/index.js';
|
|
109
115
|
export { logger } from './lib/shared/logger.js';
|
|
110
116
|
import 'react-dom';
|
|
@@ -155,6 +161,7 @@ import './lib/components/IconButton/IconButton.js';
|
|
|
155
161
|
import './lib/components/Alert/Alert.js';
|
|
156
162
|
import '@dynamic-labs/viem-utils';
|
|
157
163
|
import './lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
164
|
+
export { useEmbeddedReveal } from './lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js';
|
|
158
165
|
export { DynamicConnectButton } from './lib/components/DynamicConnectButton/DynamicConnectButton.js';
|
|
159
166
|
import './lib/components/InlineWidget/InlineWidget.js';
|
|
160
167
|
export { IsBrowser } from './lib/components/IsBrowser/IsBrowser.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, FC, PropsWithChildren, SetStateAction } from 'react';
|
|
2
|
-
export type ViewType = 'captcha' | 'chainalysis-blocked-wallet' | 'collect-user-data' | 'collect-user-data-login-with-email' | 'login-with-email-or-wallet-full-wallet-list' | 'login-with-email-or-wallet' | 'login-with-wallet-only' | 'login-with-email-verification' | 'network-not-supported' | 'network-not-supported-manual' | 'no-access' | 'no-qr-not-installed' | 'pending-connect' | 'pending-signature-without-back-button' | 'pending-signature' | 'qr-code' | 'update-email' | 'verify-email' | 'wallet-connect-mobile-wallets-list' | 'wallet-list' | 'multi-wallet-wallet-list' | 'wallet-sign' | 'wallet-used' | 'wallet-group' | 'wait-for-email-confirmation-view' | 'email-wallet-otp-verification-view' | 'social-redirect-view' | 'wallet-locked-view' | 'social-wrong-account' | 'gate-blocked-wallet' | 'bridge-welcome' | 'bridge-summary' | 'bridge-next-wallet-connection' | 'account-exists' | 'merge-user-accounts' | 'wallet-cannot-be-transferred' | 'passkey-intro' | 'passkey-recovery-start' | 'passkey-recovery-bundle' | 'passkey-recovery-complete';
|
|
2
|
+
export type ViewType = 'captcha' | 'chainalysis-blocked-wallet' | 'collect-user-data' | 'collect-user-data-login-with-email' | 'login-with-email-or-wallet-full-wallet-list' | 'login-with-email-or-wallet' | 'login-with-wallet-only' | 'login-with-email-verification' | 'network-not-supported' | 'network-not-supported-manual' | 'no-access' | 'no-qr-not-installed' | 'pending-connect' | 'pending-signature-without-back-button' | 'pending-signature' | 'qr-code' | 'update-email' | 'verify-email' | 'wallet-connect-mobile-wallets-list' | 'wallet-list' | 'multi-wallet-wallet-list' | 'wallet-sign' | 'wallet-used' | 'wallet-group' | 'wait-for-email-confirmation-view' | 'email-wallet-otp-verification-view' | 'social-redirect-view' | 'wallet-locked-view' | 'social-wrong-account' | 'gate-blocked-wallet' | 'bridge-welcome' | 'bridge-summary' | 'bridge-next-wallet-connection' | 'account-exists' | 'merge-user-accounts' | 'wallet-cannot-be-transferred' | 'passkey-intro' | 'passkey-recovery-start' | 'passkey-recovery-bundle' | 'passkey-recovery-complete' | 'embedded-reveal-view';
|
|
3
3
|
export type ViewContextProps = {
|
|
4
4
|
setView: Dispatch<SetStateAction<ViewType>>;
|
|
5
5
|
view: ViewType;
|
package/src/lib/data/api.cjs
CHANGED
|
@@ -517,11 +517,26 @@ const getUserPasskeys = ({ userJwt, environmentId, }) => _tslib.__awaiter(void 0
|
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
|
+
const exportEmbeddedWallet = ({ userJwt, environmentId, walletId, activityId, }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
521
|
+
try {
|
|
522
|
+
const data = yield sdkApi(userJwt).embeddedWalletExport({
|
|
523
|
+
activityId,
|
|
524
|
+
environmentId,
|
|
525
|
+
walletId,
|
|
526
|
+
});
|
|
527
|
+
return data;
|
|
528
|
+
}
|
|
529
|
+
catch (e) {
|
|
530
|
+
logger.logger.error(e);
|
|
531
|
+
return { exportBundle: '' };
|
|
532
|
+
}
|
|
533
|
+
});
|
|
520
534
|
|
|
521
535
|
exports.completePasskeyRecovery = completePasskeyRecovery;
|
|
522
536
|
exports.createEmailVerification = createEmailVerification;
|
|
523
537
|
exports.createTurnkeyEvmEmbeddedWallet = createTurnkeyEvmEmbeddedWallet;
|
|
524
538
|
exports.createVisit = createVisit;
|
|
539
|
+
exports.exportEmbeddedWallet = exportEmbeddedWallet;
|
|
525
540
|
exports.fetchNonce = fetchNonce;
|
|
526
541
|
exports.fetchProjectSettings = fetchProjectSettings;
|
|
527
542
|
exports.getEmailProvider = getEmailProvider;
|
package/src/lib/data/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSettings, UserFields, ChainEnum, UpdateSelfResponse, WalletProviderEnum, AuthModeEnum, EmailVerificationCreateResponse, VerifyResponse, OauthRequest, OauthResultRequest, ProviderEnum, OnrampConfiguration, EmailProviderResponse, OauthResultResponse, PasskeyRegistrationCredential } from '@dynamic-labs/sdk-api';
|
|
1
|
+
import { ProjectSettings, UserFields, ChainEnum, UpdateSelfResponse, WalletProviderEnum, AuthModeEnum, EmailVerificationCreateResponse, VerifyResponse, OauthRequest, OauthResultRequest, ProviderEnum, OnrampConfiguration, EmailProviderResponse, OauthResultResponse, PasskeyRegistrationCredential, ExportEmbeddedWalletResponse } from '@dynamic-labs/sdk-api';
|
|
2
2
|
import { AuthModeType, VerifyWallet } from '../shared/types';
|
|
3
3
|
export declare const fetchNonce: (environmentId: string) => Promise<string | undefined>;
|
|
4
4
|
export declare const getEmailProvider: ({ email, environmentId, }: {
|
|
@@ -99,3 +99,9 @@ export type GetUserPasskeysProps = {
|
|
|
99
99
|
environmentId: string;
|
|
100
100
|
};
|
|
101
101
|
export declare const getUserPasskeys: ({ userJwt, environmentId, }: GetUserPasskeysProps) => Promise<import("@dynamic-labs/sdk-api").GetUserPasskeysResponse>;
|
|
102
|
+
export declare const exportEmbeddedWallet: ({ userJwt, environmentId, walletId, activityId, }: {
|
|
103
|
+
userJwt: string;
|
|
104
|
+
environmentId: string;
|
|
105
|
+
walletId: string;
|
|
106
|
+
activityId: string;
|
|
107
|
+
}) => Promise<ExportEmbeddedWalletResponse>;
|
package/src/lib/data/api.js
CHANGED
|
@@ -513,5 +513,19 @@ const getUserPasskeys = ({ userJwt, environmentId, }) => __awaiter(void 0, void
|
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
|
+
const exportEmbeddedWallet = ({ userJwt, environmentId, walletId, activityId, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
517
|
+
try {
|
|
518
|
+
const data = yield sdkApi(userJwt).embeddedWalletExport({
|
|
519
|
+
activityId,
|
|
520
|
+
environmentId,
|
|
521
|
+
walletId,
|
|
522
|
+
});
|
|
523
|
+
return data;
|
|
524
|
+
}
|
|
525
|
+
catch (e) {
|
|
526
|
+
logger.error(e);
|
|
527
|
+
return { exportBundle: '' };
|
|
528
|
+
}
|
|
529
|
+
});
|
|
516
530
|
|
|
517
|
-
export { completePasskeyRecovery, createEmailVerification, createTurnkeyEvmEmbeddedWallet, createVisit, fetchNonce, fetchProjectSettings, getEmailProvider, getOAuthResult, getOnrampProviders, getUserPasskeys, initPasskeyRecovery, linkWallet, mapAuthModeTypeToEnum, mapChainToChainEnum, mapProviderToProviderEnum, mergeUserAccounts, retryEmailVerification, revokeSession, sendDynamicProps, signInOAuth, signInWithEmailVerification, transferWallet, unlinkOAuth, unlinkWallet, updateUserProfileFields, verifyEmail, verifyOAuth, verifyWallet };
|
|
531
|
+
export { completePasskeyRecovery, createEmailVerification, createTurnkeyEvmEmbeddedWallet, createVisit, exportEmbeddedWallet, fetchNonce, fetchProjectSettings, getEmailProvider, getOAuthResult, getOnrampProviders, getUserPasskeys, initPasskeyRecovery, linkWallet, mapAuthModeTypeToEnum, mapChainToChainEnum, mapProviderToProviderEnum, mergeUserAccounts, retryEmailVerification, revokeSession, sendDynamicProps, signInOAuth, signInWithEmailVerification, transferWallet, unlinkOAuth, unlinkWallet, updateUserProfileFields, verifyEmail, verifyOAuth, verifyWallet };
|
|
@@ -7,6 +7,8 @@ export type DynamicEvents = {
|
|
|
7
7
|
embeddedWalletFailed: (error: unknown) => void;
|
|
8
8
|
passkeyRecoveryCompleted: (wallet: Wallet) => void;
|
|
9
9
|
passkeyRecoveryFailed: (error: unknown) => void;
|
|
10
|
+
embeddedWalletRevealCompleted: (wallet: Wallet) => void;
|
|
11
|
+
embeddedWalletRevealFailed: (error: unknown) => void;
|
|
10
12
|
logout: () => void;
|
|
11
13
|
};
|
|
12
14
|
export declare const dynamicEvents: EventEmitter<DynamicEvents, any>;
|
|
@@ -63,6 +63,7 @@ var OverlayCardTarget = require('../../components/OverlayCard/OverlayCardTarget.
|
|
|
63
63
|
const shouldNotRenderHeaderViews = [
|
|
64
64
|
...DynamicWidgetContext_types.DynamicPasskeyWidgetViews,
|
|
65
65
|
...DynamicWidgetContext_types.DynamicTransactionsWidgetViews,
|
|
66
|
+
...DynamicWidgetContext_types.DynamicWalletSettingsViews,
|
|
66
67
|
];
|
|
67
68
|
const DynamicUserProfileLayout = ({ variant, className, style, }) => {
|
|
68
69
|
const { dynamicWidgetView } = DynamicWidgetContext.useWidgetContext();
|
|
@@ -51,7 +51,7 @@ import { MemoizedDynamicWidgetHeader } from '../../widgets/DynamicWidget/compone
|
|
|
51
51
|
import { DynamicWidgetPrompts } from '../../widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js';
|
|
52
52
|
import { DynamicWidgetViews } from '../../widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js';
|
|
53
53
|
import { useWidgetContext } from '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
54
|
-
import { DynamicPasskeyWidgetViews, DynamicTransactionsWidgetViews } from '../../widgets/DynamicWidget/context/DynamicWidgetContext.types.js';
|
|
54
|
+
import { DynamicPasskeyWidgetViews, DynamicTransactionsWidgetViews, DynamicWalletSettingsViews } from '../../widgets/DynamicWidget/context/DynamicWidgetContext.types.js';
|
|
55
55
|
import '@dynamic-labs/viem-utils';
|
|
56
56
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
57
57
|
import { OverlayCardTarget } from '../../components/OverlayCard/OverlayCardTarget.js';
|
|
@@ -59,6 +59,7 @@ import { OverlayCardTarget } from '../../components/OverlayCard/OverlayCardTarge
|
|
|
59
59
|
const shouldNotRenderHeaderViews = [
|
|
60
60
|
...DynamicPasskeyWidgetViews,
|
|
61
61
|
...DynamicTransactionsWidgetViews,
|
|
62
|
+
...DynamicWalletSettingsViews,
|
|
62
63
|
];
|
|
63
64
|
const DynamicUserProfileLayout = ({ variant, className, style, }) => {
|
|
64
65
|
const { dynamicWidgetView } = useWidgetContext();
|
|
@@ -363,7 +363,7 @@ const translation = {
|
|
|
363
363
|
}
|
|
364
364
|
*/
|
|
365
365
|
dyn_manage_passkeys: {
|
|
366
|
-
title: '
|
|
366
|
+
title: 'Manage passkeys',
|
|
367
367
|
passkey_from: 'from',
|
|
368
368
|
passkey_providers: {
|
|
369
369
|
android: 'Android Phone',
|
|
@@ -377,6 +377,76 @@ const translation = {
|
|
|
377
377
|
},
|
|
378
378
|
recovery_button: 'Set up new passkey',
|
|
379
379
|
},
|
|
380
|
+
/**
|
|
381
|
+
* @description export keys for Dynamic embedded reveal view
|
|
382
|
+
* @default
|
|
383
|
+
* {
|
|
384
|
+
title: 'Export wallet',
|
|
385
|
+
agreement_title: 'Agree to continue',
|
|
386
|
+
private_key_title: 'Private key',
|
|
387
|
+
recovery_phrase_title: 'Secret recovery phrase',
|
|
388
|
+
description:
|
|
389
|
+
'Your wallet is non-custodial, meaning you are always in control of it.',
|
|
390
|
+
statement_1: {
|
|
391
|
+
title: 'Do not publicly share your {{keyType}}',
|
|
392
|
+
description: 'Your {{keyType}} controls your account and assets.',
|
|
393
|
+
},
|
|
394
|
+
checkbox_label:
|
|
395
|
+
'I am responsible for safeguarding and using my wallet key information.',
|
|
396
|
+
reveal_description: 'Make sure to safely back up this information',
|
|
397
|
+
reveal_button_label: 'Reveal',
|
|
398
|
+
copy_button_label: 'Copy to clipboard',
|
|
399
|
+
done_button_label: "I'm Done",
|
|
400
|
+
},
|
|
401
|
+
*/
|
|
402
|
+
dyn_embedded_reveal: {
|
|
403
|
+
title: 'Export wallet',
|
|
404
|
+
agreement_title: 'Agree to continue',
|
|
405
|
+
private_key_title: 'Private key',
|
|
406
|
+
recovery_phrase_title: 'Secret recovery phrase',
|
|
407
|
+
badge_label: 'Sensitive information',
|
|
408
|
+
statement_1: {
|
|
409
|
+
title: 'Your wallet is non-custodial',
|
|
410
|
+
description: 'You are always in control of it.',
|
|
411
|
+
},
|
|
412
|
+
statement_2: {
|
|
413
|
+
title: 'Do not publicly share your wallet key',
|
|
414
|
+
description: 'Your recovery phrase controls your account and assets.',
|
|
415
|
+
},
|
|
416
|
+
checkbox_label: 'I am responsible for safeguarding and using my wallet key information.',
|
|
417
|
+
reveal_description: 'Make sure to safely back up this information',
|
|
418
|
+
reveal_button_label: 'Reveal',
|
|
419
|
+
copy_button_label: 'Copy to clipboard',
|
|
420
|
+
done_button_label: "I'm Done",
|
|
421
|
+
},
|
|
422
|
+
/**
|
|
423
|
+
* @description wallet settings for Dynamic wallet settings view which are used inside dynamic widget
|
|
424
|
+
* @default
|
|
425
|
+
* {
|
|
426
|
+
title: 'Wallet settings',
|
|
427
|
+
signing_section: {
|
|
428
|
+
title: 'Security & Signing Methods',
|
|
429
|
+
passkey_button: 'Passkeys',
|
|
430
|
+
},
|
|
431
|
+
export_section: {
|
|
432
|
+
title: 'Export & Backup',
|
|
433
|
+
srp_button: 'Recovery phrase',
|
|
434
|
+
private_key_button: 'Private key',
|
|
435
|
+
},
|
|
436
|
+
}
|
|
437
|
+
*/
|
|
438
|
+
dyn_wallet_settings: {
|
|
439
|
+
title: 'Wallet settings',
|
|
440
|
+
signing_section: {
|
|
441
|
+
title: 'Security & Signing Methods',
|
|
442
|
+
passkey_button: 'Passkeys',
|
|
443
|
+
},
|
|
444
|
+
export_section: {
|
|
445
|
+
title: 'Export & Backup',
|
|
446
|
+
srp_button: 'Recovery phrase',
|
|
447
|
+
private_key_button: 'Private key',
|
|
448
|
+
},
|
|
449
|
+
},
|
|
380
450
|
/**
|
|
381
451
|
* @description copy keys for merge user accounts view
|
|
382
452
|
* @default
|
|
@@ -372,6 +372,76 @@ export declare const translation: {
|
|
|
372
372
|
};
|
|
373
373
|
recovery_button: string;
|
|
374
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* @description export keys for Dynamic embedded reveal view
|
|
377
|
+
* @default
|
|
378
|
+
* {
|
|
379
|
+
title: 'Export wallet',
|
|
380
|
+
agreement_title: 'Agree to continue',
|
|
381
|
+
private_key_title: 'Private key',
|
|
382
|
+
recovery_phrase_title: 'Secret recovery phrase',
|
|
383
|
+
description:
|
|
384
|
+
'Your wallet is non-custodial, meaning you are always in control of it.',
|
|
385
|
+
statement_1: {
|
|
386
|
+
title: 'Do not publicly share your {{keyType}}',
|
|
387
|
+
description: 'Your {{keyType}} controls your account and assets.',
|
|
388
|
+
},
|
|
389
|
+
checkbox_label:
|
|
390
|
+
'I am responsible for safeguarding and using my wallet key information.',
|
|
391
|
+
reveal_description: 'Make sure to safely back up this information',
|
|
392
|
+
reveal_button_label: 'Reveal',
|
|
393
|
+
copy_button_label: 'Copy to clipboard',
|
|
394
|
+
done_button_label: "I'm Done",
|
|
395
|
+
},
|
|
396
|
+
*/
|
|
397
|
+
dyn_embedded_reveal: {
|
|
398
|
+
title: string;
|
|
399
|
+
agreement_title: string;
|
|
400
|
+
private_key_title: string;
|
|
401
|
+
recovery_phrase_title: string;
|
|
402
|
+
badge_label: string;
|
|
403
|
+
statement_1: {
|
|
404
|
+
title: string;
|
|
405
|
+
description: string;
|
|
406
|
+
};
|
|
407
|
+
statement_2: {
|
|
408
|
+
title: string;
|
|
409
|
+
description: string;
|
|
410
|
+
};
|
|
411
|
+
checkbox_label: string;
|
|
412
|
+
reveal_description: string;
|
|
413
|
+
reveal_button_label: string;
|
|
414
|
+
copy_button_label: string;
|
|
415
|
+
done_button_label: string;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* @description wallet settings for Dynamic wallet settings view which are used inside dynamic widget
|
|
419
|
+
* @default
|
|
420
|
+
* {
|
|
421
|
+
title: 'Wallet settings',
|
|
422
|
+
signing_section: {
|
|
423
|
+
title: 'Security & Signing Methods',
|
|
424
|
+
passkey_button: 'Passkeys',
|
|
425
|
+
},
|
|
426
|
+
export_section: {
|
|
427
|
+
title: 'Export & Backup',
|
|
428
|
+
srp_button: 'Recovery phrase',
|
|
429
|
+
private_key_button: 'Private key',
|
|
430
|
+
},
|
|
431
|
+
}
|
|
432
|
+
*/
|
|
433
|
+
dyn_wallet_settings: {
|
|
434
|
+
title: string;
|
|
435
|
+
signing_section: {
|
|
436
|
+
title: string;
|
|
437
|
+
passkey_button: string;
|
|
438
|
+
};
|
|
439
|
+
export_section: {
|
|
440
|
+
title: string;
|
|
441
|
+
srp_button: string;
|
|
442
|
+
private_key_button: string;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
375
445
|
/**
|
|
376
446
|
* @description copy keys for merge user accounts view
|
|
377
447
|
* @default
|
|
@@ -359,7 +359,7 @@ const translation = {
|
|
|
359
359
|
}
|
|
360
360
|
*/
|
|
361
361
|
dyn_manage_passkeys: {
|
|
362
|
-
title: '
|
|
362
|
+
title: 'Manage passkeys',
|
|
363
363
|
passkey_from: 'from',
|
|
364
364
|
passkey_providers: {
|
|
365
365
|
android: 'Android Phone',
|
|
@@ -373,6 +373,76 @@ const translation = {
|
|
|
373
373
|
},
|
|
374
374
|
recovery_button: 'Set up new passkey',
|
|
375
375
|
},
|
|
376
|
+
/**
|
|
377
|
+
* @description export keys for Dynamic embedded reveal view
|
|
378
|
+
* @default
|
|
379
|
+
* {
|
|
380
|
+
title: 'Export wallet',
|
|
381
|
+
agreement_title: 'Agree to continue',
|
|
382
|
+
private_key_title: 'Private key',
|
|
383
|
+
recovery_phrase_title: 'Secret recovery phrase',
|
|
384
|
+
description:
|
|
385
|
+
'Your wallet is non-custodial, meaning you are always in control of it.',
|
|
386
|
+
statement_1: {
|
|
387
|
+
title: 'Do not publicly share your {{keyType}}',
|
|
388
|
+
description: 'Your {{keyType}} controls your account and assets.',
|
|
389
|
+
},
|
|
390
|
+
checkbox_label:
|
|
391
|
+
'I am responsible for safeguarding and using my wallet key information.',
|
|
392
|
+
reveal_description: 'Make sure to safely back up this information',
|
|
393
|
+
reveal_button_label: 'Reveal',
|
|
394
|
+
copy_button_label: 'Copy to clipboard',
|
|
395
|
+
done_button_label: "I'm Done",
|
|
396
|
+
},
|
|
397
|
+
*/
|
|
398
|
+
dyn_embedded_reveal: {
|
|
399
|
+
title: 'Export wallet',
|
|
400
|
+
agreement_title: 'Agree to continue',
|
|
401
|
+
private_key_title: 'Private key',
|
|
402
|
+
recovery_phrase_title: 'Secret recovery phrase',
|
|
403
|
+
badge_label: 'Sensitive information',
|
|
404
|
+
statement_1: {
|
|
405
|
+
title: 'Your wallet is non-custodial',
|
|
406
|
+
description: 'You are always in control of it.',
|
|
407
|
+
},
|
|
408
|
+
statement_2: {
|
|
409
|
+
title: 'Do not publicly share your wallet key',
|
|
410
|
+
description: 'Your recovery phrase controls your account and assets.',
|
|
411
|
+
},
|
|
412
|
+
checkbox_label: 'I am responsible for safeguarding and using my wallet key information.',
|
|
413
|
+
reveal_description: 'Make sure to safely back up this information',
|
|
414
|
+
reveal_button_label: 'Reveal',
|
|
415
|
+
copy_button_label: 'Copy to clipboard',
|
|
416
|
+
done_button_label: "I'm Done",
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* @description wallet settings for Dynamic wallet settings view which are used inside dynamic widget
|
|
420
|
+
* @default
|
|
421
|
+
* {
|
|
422
|
+
title: 'Wallet settings',
|
|
423
|
+
signing_section: {
|
|
424
|
+
title: 'Security & Signing Methods',
|
|
425
|
+
passkey_button: 'Passkeys',
|
|
426
|
+
},
|
|
427
|
+
export_section: {
|
|
428
|
+
title: 'Export & Backup',
|
|
429
|
+
srp_button: 'Recovery phrase',
|
|
430
|
+
private_key_button: 'Private key',
|
|
431
|
+
},
|
|
432
|
+
}
|
|
433
|
+
*/
|
|
434
|
+
dyn_wallet_settings: {
|
|
435
|
+
title: 'Wallet settings',
|
|
436
|
+
signing_section: {
|
|
437
|
+
title: 'Security & Signing Methods',
|
|
438
|
+
passkey_button: 'Passkeys',
|
|
439
|
+
},
|
|
440
|
+
export_section: {
|
|
441
|
+
title: 'Export & Backup',
|
|
442
|
+
srp_button: 'Recovery phrase',
|
|
443
|
+
private_key_button: 'Private key',
|
|
444
|
+
},
|
|
445
|
+
},
|
|
376
446
|
/**
|
|
377
447
|
* @description copy keys for merge user accounts view
|
|
378
448
|
* @default
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
+
|
|
27
|
+
var _path;
|
|
28
|
+
var _excluded = ["title", "titleId"];
|
|
29
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
30
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
31
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
32
|
+
var SvgAltEmbeddedWallet = function SvgAltEmbeddedWallet(_ref) {
|
|
33
|
+
var title = _ref.title,
|
|
34
|
+
titleId = _ref.titleId,
|
|
35
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
37
|
+
width: 28,
|
|
38
|
+
height: 28,
|
|
39
|
+
viewBox: "0 0 28 28",
|
|
40
|
+
fill: "none",
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
"aria-labelledby": titleId
|
|
43
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
44
|
+
id: titleId
|
|
45
|
+
}, title) : null, _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
46
|
+
fillRule: "evenodd",
|
|
47
|
+
clipRule: "evenodd",
|
|
48
|
+
d: "M19.834 4.667a2.333 2.333 0 0 0-2.333-2.334H7a4.668 4.668 0 0 0-4.592 3.83 4.654 4.654 0 0 1 3.425-1.496h14ZM21 7a4.667 4.667 0 0 1 4.667 4.667V21A4.667 4.667 0 0 1 21 25.667H7A4.667 4.667 0 0 1 2.333 21v-9.333A4.667 4.667 0 0 1 7 7h14Zm-5.281 3.35a.506.506 0 0 0-.47-.35.506.506 0 0 0-.47.35l-.593 1.671c-.152.426-.2.549-.264.648-.065.1-.146.186-.237.257-.092.07-.205.122-.598.286l-1.543.643a.546.546 0 0 0-.323.509c0 .225.128.428.323.509l1.543.643c.393.163.506.215.598.285.091.071.172.158.237.257.065.1.112.222.264.648l.593 1.672c.075.21.262.35.47.35a.506.506 0 0 0 .47-.35l.593-1.672c.152-.426.2-.549.264-.648.065-.1.145-.186.237-.257.092-.07.205-.122.598-.286l1.543-.642a.546.546 0 0 0 .323-.51.546.546 0 0 0-.323-.508l-1.543-.643c-.393-.164-.506-.216-.598-.286a1.054 1.054 0 0 1-.237-.257c-.065-.1-.112-.222-.264-.648l-.593-1.671Zm-4.3 5.951a.501.501 0 0 0-.45-.301.5.5 0 0 0-.45.301l-.395.856c-.142.308-.186.397-.238.471-.053.074-.115.14-.183.198-.068.057-.15.104-.435.258l-.79.428A.552.552 0 0 0 8.2 19c0 .206.108.395.278.488l.79.428c.285.154.367.2.435.258.068.057.13.123.183.198.052.074.096.163.238.47l.395.856a.5.5 0 0 0 .45.302c.191 0 .365-.117.45-.302l.396-.855c.142-.308.185-.397.238-.471.053-.075.114-.141.183-.198.068-.057.15-.104.434-.258l.79-.428a.552.552 0 0 0 .278-.488.552.552 0 0 0-.278-.488l-.79-.428c-.284-.154-.366-.2-.434-.258a1.05 1.05 0 0 1-.183-.198c-.053-.074-.096-.163-.238-.47l-.395-.857Z",
|
|
49
|
+
fill: "#383C48",
|
|
50
|
+
fillOpacity: 0.4
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
exports.ReactComponent = SvgAltEmbeddedWallet;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
var _path;
|
|
4
|
+
var _excluded = ["title", "titleId"];
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
7
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
|
+
var SvgAltEmbeddedWallet = function SvgAltEmbeddedWallet(_ref) {
|
|
9
|
+
var title = _ref.title,
|
|
10
|
+
titleId = _ref.titleId,
|
|
11
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
|
+
width: 28,
|
|
14
|
+
height: 28,
|
|
15
|
+
viewBox: "0 0 28 28",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
"aria-labelledby": titleId
|
|
19
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
20
|
+
id: titleId
|
|
21
|
+
}, title) : null, _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
clipRule: "evenodd",
|
|
24
|
+
d: "M19.834 4.667a2.333 2.333 0 0 0-2.333-2.334H7a4.668 4.668 0 0 0-4.592 3.83 4.654 4.654 0 0 1 3.425-1.496h14ZM21 7a4.667 4.667 0 0 1 4.667 4.667V21A4.667 4.667 0 0 1 21 25.667H7A4.667 4.667 0 0 1 2.333 21v-9.333A4.667 4.667 0 0 1 7 7h14Zm-5.281 3.35a.506.506 0 0 0-.47-.35.506.506 0 0 0-.47.35l-.593 1.671c-.152.426-.2.549-.264.648-.065.1-.146.186-.237.257-.092.07-.205.122-.598.286l-1.543.643a.546.546 0 0 0-.323.509c0 .225.128.428.323.509l1.543.643c.393.163.506.215.598.285.091.071.172.158.237.257.065.1.112.222.264.648l.593 1.672c.075.21.262.35.47.35a.506.506 0 0 0 .47-.35l.593-1.672c.152-.426.2-.549.264-.648.065-.1.145-.186.237-.257.092-.07.205-.122.598-.286l1.543-.642a.546.546 0 0 0 .323-.51.546.546 0 0 0-.323-.508l-1.543-.643c-.393-.164-.506-.216-.598-.286a1.054 1.054 0 0 1-.237-.257c-.065-.1-.112-.222-.264-.648l-.593-1.671Zm-4.3 5.951a.501.501 0 0 0-.45-.301.5.5 0 0 0-.45.301l-.395.856c-.142.308-.186.397-.238.471-.053.074-.115.14-.183.198-.068.057-.15.104-.435.258l-.79.428A.552.552 0 0 0 8.2 19c0 .206.108.395.278.488l.79.428c.285.154.367.2.435.258.068.057.13.123.183.198.052.074.096.163.238.47l.395.856a.5.5 0 0 0 .45.302c.191 0 .365-.117.45-.302l.396-.855c.142-.308.185-.397.238-.471.053-.075.114-.141.183-.198.068-.057.15-.104.434-.258l.79-.428a.552.552 0 0 0 .278-.488.552.552 0 0 0-.278-.488l-.79-.428c-.284-.154-.366-.2-.434-.258a1.05 1.05 0 0 1-.183-.198c-.053-.074-.096-.163-.238-.47l-.395-.857Z",
|
|
25
|
+
fill: "#383C48",
|
|
26
|
+
fillOpacity: 0.4
|
|
27
|
+
})));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { SvgAltEmbeddedWallet as ReactComponent };
|