@dynamic-labs/sdk-react-core 4.0.0-alpha.21 → 4.0.0-alpha.22

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 CHANGED
@@ -1,4 +1,16 @@
1
1
 
2
+ ## [4.0.0-alpha.22](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.21...v4.0.0-alpha.22) (2024-10-30)
3
+
4
+
5
+ ### Features
6
+
7
+ * **QNTM-522:** add wallet details card ([#7239](https://github.com/dynamic-labs/dynamic-auth/issues/7239)) ([0181c87](https://github.com/dynamic-labs/dynamic-auth/commit/0181c8727af575620525b8ea47b196945c347846))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * update check for wallet provider event listeners support ([#7303](https://github.com/dynamic-labs/dynamic-auth/issues/7303)) ([c5f3766](https://github.com/dynamic-labs/dynamic-auth/commit/c5f376691c87a0999991e477f9acd07eed4774aa))
13
+
2
14
  ## [4.0.0-alpha.21](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.20...v4.0.0-alpha.21) (2024-10-30)
3
15
 
4
16
  ## [4.0.0-alpha.20](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.19...v4.0.0-alpha.20) (2024-10-30)
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.21";
6
+ var version = "4.0.0-alpha.22";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.559",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.21";
2
+ var version = "4.0.0-alpha.22";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.559",
5
5
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "4.0.0-alpha.21",
3
+ "version": "4.0.0-alpha.22",
4
4
  "dependencies": {
5
5
  "@dynamic-labs/sdk-api-core": "0.0.559",
6
6
  "@hcaptcha/react-hcaptcha": "1.4.4",
@@ -12,16 +12,16 @@
12
12
  "react-i18next": "13.5.0",
13
13
  "yup": "0.32.11",
14
14
  "react-international-phone": "4.2.5",
15
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.21",
16
- "@dynamic-labs/iconic": "4.0.0-alpha.21",
17
- "@dynamic-labs/logger": "4.0.0-alpha.21",
18
- "@dynamic-labs/multi-wallet": "4.0.0-alpha.21",
19
- "@dynamic-labs/rpc-providers": "4.0.0-alpha.21",
20
- "@dynamic-labs/store": "4.0.0-alpha.21",
21
- "@dynamic-labs/types": "4.0.0-alpha.21",
22
- "@dynamic-labs/utils": "4.0.0-alpha.21",
23
- "@dynamic-labs/wallet-book": "4.0.0-alpha.21",
24
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.21",
15
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.22",
16
+ "@dynamic-labs/iconic": "4.0.0-alpha.22",
17
+ "@dynamic-labs/logger": "4.0.0-alpha.22",
18
+ "@dynamic-labs/multi-wallet": "4.0.0-alpha.22",
19
+ "@dynamic-labs/rpc-providers": "4.0.0-alpha.22",
20
+ "@dynamic-labs/store": "4.0.0-alpha.22",
21
+ "@dynamic-labs/types": "4.0.0-alpha.22",
22
+ "@dynamic-labs/utils": "4.0.0-alpha.22",
23
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.22",
24
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.22",
25
25
  "eventemitter3": "5.0.1"
26
26
  },
27
27
  "devDependencies": {
@@ -62,6 +62,7 @@ var MenuList = require('../MenuList/MenuList/MenuList.cjs');
62
62
  require('../Transition/ZoomTransition/ZoomTransition.cjs');
63
63
  require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
64
64
  require('../Transition/OpacityTransition/OpacityTransition.cjs');
65
+ require('../OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
65
66
  require('../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
66
67
  require('../Popper/Popper/Popper.cjs');
67
68
  require('../Popper/PopperContext/PopperContext.cjs');
@@ -79,7 +80,6 @@ require('@hcaptcha/react-hcaptcha');
79
80
  require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
80
81
  require('../../context/PasskeyContext/PasskeyContext.cjs');
81
82
  require('../../store/state/sendBalances.cjs');
82
- require('../OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
83
83
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
84
84
  require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
85
85
  require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
@@ -58,6 +58,7 @@ import { MenuList } from '../MenuList/MenuList/MenuList.js';
58
58
  import '../Transition/ZoomTransition/ZoomTransition.js';
59
59
  import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
60
60
  import '../Transition/OpacityTransition/OpacityTransition.js';
61
+ import '../OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
61
62
  import '../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
62
63
  import '../Popper/Popper/Popper.js';
63
64
  import '../Popper/PopperContext/PopperContext.js';
@@ -75,7 +76,6 @@ import '@hcaptcha/react-hcaptcha';
75
76
  import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
76
77
  import '../../context/PasskeyContext/PasskeyContext.js';
77
78
  import '../../store/state/sendBalances.js';
78
- import '../OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
79
79
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
80
80
  import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
81
81
  import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
@@ -33,6 +33,7 @@ export * from './ModalCard';
33
33
  export * from './ModalHeader';
34
34
  export * from './ModalHeaderBanner';
35
35
  export * from './NeedHelpSection';
36
+ export * from './OverlayCard';
36
37
  export * from './OTPVerificationView';
37
38
  export * from './PasskeyCreatedSuccessBanner';
38
39
  export * from './PhoneNumberField';
@@ -36,12 +36,42 @@ const translation = {
36
36
  testnet_warning: 'A testnet network has been selected. Please only use testnet funds or they will be lost.',
37
37
  ordinals_address: 'Ordinals address',
38
38
  payment_address: 'Payment address',
39
- }
39
+ balance: 'Balance',
40
+ options: {
41
+ copy_ens: 'Copy ENS',
42
+ view_address: 'View address',
43
+ settings: 'Wallet settings',
44
+ export: 'Export private keys',
45
+ },
46
+ }
40
47
  */
41
48
  dyn_active_wallet_info: {
42
49
  testnet_warning: 'A testnet network has been selected. Please only use testnet funds or they will be lost.',
43
50
  ordinals_address: 'Ordinals address',
44
51
  payment_address: 'Payment address',
52
+ balance: 'Balance',
53
+ options: {
54
+ copy_ens: 'Copy ENS',
55
+ view_address: 'View address',
56
+ settings: 'Wallet settings',
57
+ export: 'Export private keys',
58
+ },
59
+ },
60
+ /**
61
+ * @description copy keys for wallet details card
62
+ * @default
63
+ * {
64
+ header: 'Wallet Details',
65
+ address: 'Address',
66
+ copy: 'Copy',
67
+ copied: 'Copied!',
68
+ }
69
+ */
70
+ dyn_wallet_details_card: {
71
+ header: 'Wallet Details',
72
+ address: 'Address',
73
+ copy: 'Copy',
74
+ copied: 'Copied!',
45
75
  },
46
76
  /**
47
77
  * @description copy keys for add network view
@@ -30,12 +30,42 @@ export declare const translation: {
30
30
  testnet_warning: 'A testnet network has been selected. Please only use testnet funds or they will be lost.',
31
31
  ordinals_address: 'Ordinals address',
32
32
  payment_address: 'Payment address',
33
- }
33
+ balance: 'Balance',
34
+ options: {
35
+ copy_ens: 'Copy ENS',
36
+ view_address: 'View address',
37
+ settings: 'Wallet settings',
38
+ export: 'Export private keys',
39
+ },
40
+ }
34
41
  */
35
42
  dyn_active_wallet_info: {
36
43
  testnet_warning: string;
37
44
  ordinals_address: string;
38
45
  payment_address: string;
46
+ balance: string;
47
+ options: {
48
+ copy_ens: string;
49
+ view_address: string;
50
+ settings: string;
51
+ export: string;
52
+ };
53
+ };
54
+ /**
55
+ * @description copy keys for wallet details card
56
+ * @default
57
+ * {
58
+ header: 'Wallet Details',
59
+ address: 'Address',
60
+ copy: 'Copy',
61
+ copied: 'Copied!',
62
+ }
63
+ */
64
+ dyn_wallet_details_card: {
65
+ header: string;
66
+ address: string;
67
+ copy: string;
68
+ copied: string;
39
69
  };
40
70
  /**
41
71
  * @description copy keys for add network view
@@ -32,12 +32,42 @@ const translation = {
32
32
  testnet_warning: 'A testnet network has been selected. Please only use testnet funds or they will be lost.',
33
33
  ordinals_address: 'Ordinals address',
34
34
  payment_address: 'Payment address',
35
- }
35
+ balance: 'Balance',
36
+ options: {
37
+ copy_ens: 'Copy ENS',
38
+ view_address: 'View address',
39
+ settings: 'Wallet settings',
40
+ export: 'Export private keys',
41
+ },
42
+ }
36
43
  */
37
44
  dyn_active_wallet_info: {
38
45
  testnet_warning: 'A testnet network has been selected. Please only use testnet funds or they will be lost.',
39
46
  ordinals_address: 'Ordinals address',
40
47
  payment_address: 'Payment address',
48
+ balance: 'Balance',
49
+ options: {
50
+ copy_ens: 'Copy ENS',
51
+ view_address: 'View address',
52
+ settings: 'Wallet settings',
53
+ export: 'Export private keys',
54
+ },
55
+ },
56
+ /**
57
+ * @description copy keys for wallet details card
58
+ * @default
59
+ * {
60
+ header: 'Wallet Details',
61
+ address: 'Address',
62
+ copy: 'Copy',
63
+ copied: 'Copied!',
64
+ }
65
+ */
66
+ dyn_wallet_details_card: {
67
+ header: 'Wallet Details',
68
+ address: 'Address',
69
+ copy: 'Copy',
70
+ copied: 'Copied!',
41
71
  },
42
72
  /**
43
73
  * @description copy keys for add network view
@@ -0,0 +1,54 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var React = require('react');
7
+
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n["default"] = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
27
+
28
+ var _path;
29
+ var _excluded = ["title", "titleId"];
30
+ 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); }
31
+ 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; }
32
+ 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; }
33
+ var SvgEyeOutline = function SvgEyeOutline(_ref) {
34
+ var title = _ref.title,
35
+ titleId = _ref.titleId,
36
+ props = _objectWithoutProperties(_ref, _excluded);
37
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
38
+ width: 24,
39
+ height: 24,
40
+ viewBox: "0 0 24 24",
41
+ fill: "none",
42
+ xmlns: "http://www.w3.org/2000/svg",
43
+ "aria-labelledby": titleId
44
+ }, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
45
+ id: titleId
46
+ }, title) : null, _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
47
+ fillRule: "evenodd",
48
+ clipRule: "evenodd",
49
+ d: "M3.512 12a9.004 9.004 0 0 0 16.977 0 9.004 9.004 0 0 0-16.977 0Zm-2.008-.3C2.906 7.238 7.074 4 12 4c4.927 0 9.095 3.238 10.497 7.7a1 1 0 0 1 0 .6C21.095 16.762 16.927 20 12 20c-4.927 0-9.095-3.238-10.497-7.7a1 1 0 0 1 0-.6ZM12 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z",
50
+ fill: "#ABACB2"
51
+ })));
52
+ };
53
+
54
+ exports.ReactComponent = SvgEyeOutline;
@@ -0,0 +1,30 @@
1
+ 'use client'
2
+ import * as React from 'react';
3
+
4
+ var _path;
5
+ var _excluded = ["title", "titleId"];
6
+ 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); }
7
+ 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; }
8
+ 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; }
9
+ var SvgEyeOutline = function SvgEyeOutline(_ref) {
10
+ var title = _ref.title,
11
+ titleId = _ref.titleId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ width: 24,
15
+ height: 24,
16
+ viewBox: "0 0 24 24",
17
+ fill: "none",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ "aria-labelledby": titleId
20
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
21
+ id: titleId
22
+ }, title) : null, _path || (_path = /*#__PURE__*/React.createElement("path", {
23
+ fillRule: "evenodd",
24
+ clipRule: "evenodd",
25
+ d: "M3.512 12a9.004 9.004 0 0 0 16.977 0 9.004 9.004 0 0 0-16.977 0Zm-2.008-.3C2.906 7.238 7.074 4 12 4c4.927 0 9.095 3.238 10.497 7.7a1 1 0 0 1 0 .6C21.095 16.762 16.927 20 12 20c-4.927 0-9.095-3.238-10.497-7.7a1 1 0 0 1 0-.6ZM12 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z",
26
+ fill: "#ABACB2"
27
+ })));
28
+ };
29
+
30
+ export { SvgEyeOutline as ReactComponent };
@@ -36,6 +36,7 @@ export { ReactComponent as ExportPrivateKeyIcon } from './export-private-key.svg
36
36
  export { ReactComponent as ExportRecoveryPhraseIcon } from './export-recovery-phrase.svg';
37
37
  export { ReactComponent as ExternalLinkIcon } from './externalLink.svg';
38
38
  export { ReactComponent as EyeOffIcon } from './eye-off-icon.svg';
39
+ export { ReactComponent as EyeOutlineIcon } from './eye-outline.svg';
39
40
  export { ReactComponent as ArrowCircleRight } from './arrow-circle-right.svg';
40
41
  export { ReactComponent as FaceIdIcon } from './face-id.svg';
41
42
  export { ReactComponent as WarningRedIcon } from './warning-red.svg';