@dynamic-labs/wallet-book 4.4.4 → 4.5.0

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,18 @@
1
1
 
2
+ ## [4.5.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.4...v4.5.0) (2025-02-04)
3
+
4
+
5
+ ### Features
6
+
7
+ * allow injecting onramp providers for funding via sdk overrides ([#7967](https://github.com/dynamic-labs/dynamic-auth/issues/7967)) ([d738b3b](https://github.com/dynamic-labs/dynamic-auth/commit/d738b3ba1307bc6f2ffc5c8f98a44c6f509c0e96))
8
+ * headless transaction simulation ([#7928](https://github.com/dynamic-labs/dynamic-auth/issues/7928)) ([8eb4c9c](https://github.com/dynamic-labs/dynamic-auth/commit/8eb4c9cd9857a34c56f2e58aba124b5b7e185359))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * memo hooks and state to reduce rerenders ([#7912](https://github.com/dynamic-labs/dynamic-auth/issues/7912)) ([5351570](https://github.com/dynamic-labs/dynamic-auth/commit/5351570874eb3b9465d2a2c99ea5caaa787ecc80))
14
+ * rely on bitcoin sats-connect transaction inputs for handling sigHashTypes ([#7969](https://github.com/dynamic-labs/dynamic-auth/issues/7969)) ([e043306](https://github.com/dynamic-labs/dynamic-auth/commit/e043306be44dd9058265c19d7e14cb07dd6db1fe))
15
+
2
16
  ### [4.4.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.3...v4.4.4) (2025-01-31)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.4.4";
6
+ var version = "4.5.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.4.4";
2
+ var version = "4.5.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "4.4.4",
3
+ "version": "4.5.0",
4
4
  "author": "Dynamic Labs, Inc.",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.cjs",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "zod": "3.22.4",
20
- "@dynamic-labs/assert-package-version": "4.4.4",
21
- "@dynamic-labs/iconic": "4.4.4",
22
- "@dynamic-labs/logger": "4.4.4",
23
- "@dynamic-labs/utils": "4.4.4",
20
+ "@dynamic-labs/assert-package-version": "4.5.0",
21
+ "@dynamic-labs/iconic": "4.5.0",
22
+ "@dynamic-labs/logger": "4.5.0",
23
+ "@dynamic-labs/utils": "4.5.0",
24
24
  "eventemitter3": "5.0.1",
25
25
  "util": "0.12.5"
26
26
  },
@@ -8,6 +8,7 @@ var react = require('react');
8
8
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
9
9
  require('../helpers/renderTemplate.cjs');
10
10
  require('../helpers/logger.cjs');
11
+ require('@dynamic-labs/utils');
11
12
  var getBrandIconUrl = require('../helpers/getBrandIconUrl.cjs');
12
13
 
13
14
  const BrandIcon = (_a) => {
@@ -4,6 +4,7 @@ import { useState, createElement, Fragment } from 'react';
4
4
  import { getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
5
5
  import '../helpers/renderTemplate.js';
6
6
  import '../helpers/logger.js';
7
+ import '@dynamic-labs/utils';
7
8
  import { getBrandIconUrl } from '../helpers/getBrandIconUrl.js';
8
9
 
9
10
  const BrandIcon = (_a) => {
@@ -8,6 +8,7 @@ var react = require('react');
8
8
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
9
9
  require('../helpers/renderTemplate.cjs');
10
10
  require('../helpers/logger.cjs');
11
+ require('@dynamic-labs/utils');
11
12
  var getWalletIconData = require('../helpers/getWalletIconData.cjs');
12
13
  var WalletBookContext = require('../context/WalletBookContext.cjs');
13
14
 
@@ -4,6 +4,7 @@ import { createElement, useState, Fragment } from 'react';
4
4
  import { getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
5
5
  import '../helpers/renderTemplate.js';
6
6
  import '../helpers/logger.js';
7
+ import '@dynamic-labs/utils';
7
8
  import { getWalletIconData } from '../helpers/getWalletIconData.js';
8
9
  import { useWalletBookContext } from '../context/WalletBookContext.js';
9
10
 
@@ -3,12 +3,13 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- /* eslint-disable arrow-body-style */
7
- // This method needs to be wrapped correctly to avoid bundler issues
8
- // that may update process.env variable via custom configs in customers apps
9
- const getWalletBookCdnUrl = () => {
10
- var _a, _b, _c;
11
- return ((_c = (_b = (_a = process.env['WALLET_BOOK_CDN_URL']) !== null && _a !== void 0 ? _a : process.env['NEXT_PUBLIC_WALLET_BOOK_CDN_URL']) !== null && _b !== void 0 ? _b : process.env['REACT_APP_WALLET_BOOK_CDN_URL']) !== null && _c !== void 0 ? _c : 'https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json');
12
- };
6
+ var utils = require('@dynamic-labs/utils');
7
+
8
+ const DEFAULT_WALLET_BOOK_CDN_URL = 'https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json';
9
+ const getWalletBookCdnUrl = () => utils.getEnvVarWithFallback([
10
+ 'WALLET_BOOK_CDN_URL',
11
+ 'NEXT_PUBLIC_WALLET_BOOK_CDN_URL',
12
+ 'REACT_APP_WALLET_BOOK_CDN_URL',
13
+ ], DEFAULT_WALLET_BOOK_CDN_URL);
13
14
 
14
15
  exports.getWalletBookCdnUrl = getWalletBookCdnUrl;
@@ -1,10 +1,11 @@
1
1
  'use client'
2
- /* eslint-disable arrow-body-style */
3
- // This method needs to be wrapped correctly to avoid bundler issues
4
- // that may update process.env variable via custom configs in customers apps
5
- const getWalletBookCdnUrl = () => {
6
- var _a, _b, _c;
7
- return ((_c = (_b = (_a = process.env['WALLET_BOOK_CDN_URL']) !== null && _a !== void 0 ? _a : process.env['NEXT_PUBLIC_WALLET_BOOK_CDN_URL']) !== null && _b !== void 0 ? _b : process.env['REACT_APP_WALLET_BOOK_CDN_URL']) !== null && _c !== void 0 ? _c : 'https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json');
8
- };
2
+ import { getEnvVarWithFallback } from '@dynamic-labs/utils';
3
+
4
+ const DEFAULT_WALLET_BOOK_CDN_URL = 'https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json';
5
+ const getWalletBookCdnUrl = () => getEnvVarWithFallback([
6
+ 'WALLET_BOOK_CDN_URL',
7
+ 'NEXT_PUBLIC_WALLET_BOOK_CDN_URL',
8
+ 'REACT_APP_WALLET_BOOK_CDN_URL',
9
+ ], DEFAULT_WALLET_BOOK_CDN_URL);
9
10
 
10
11
  export { getWalletBookCdnUrl };
@@ -1532,6 +1532,9 @@ var wallets = {
1532
1532
  operaId: "fiikommddbeccaoicoejoniammnalkfa"
1533
1533
  },
1534
1534
  group: "nightly",
1535
+ hardwareWallets: [
1536
+ "ledger"
1537
+ ],
1535
1538
  injectedConfig: [
1536
1539
  {
1537
1540
  chain: "eclipse",
@@ -1528,6 +1528,9 @@ var wallets = {
1528
1528
  operaId: "fiikommddbeccaoicoejoniammnalkfa"
1529
1529
  },
1530
1530
  group: "nightly",
1531
+ hardwareWallets: [
1532
+ "ledger"
1533
+ ],
1531
1534
  injectedConfig: [
1532
1535
  {
1533
1536
  chain: "eclipse",