@dynamic-labs/wallet-book 4.0.0-alpha.38 → 4.0.0-alpha.39
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 +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/helpers/index.d.ts +0 -1
- package/src/index.cjs +0 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +0 -1
- package/src/helpers/getWalletPrimaryColor.cjs +0 -14
- package/src/helpers/getWalletPrimaryColor.d.ts +0 -2
- package/src/helpers/getWalletPrimaryColor.js +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.39](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.38...v4.0.0-alpha.39) (2024-12-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* remove usages of findWalletBookWallet when possible (#7455)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* sdkHasLoaded always false in cookie enabled env ([#7516](https://github.com/dynamic-labs/dynamic-auth/issues/7516)) ([1c3335c](https://github.com/dynamic-labs/dynamic-auth/commit/1c3335c13930e9bffe60cf1c09bc9c9584a59ef7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
* remove usages of findWalletBookWallet when possible ([#7455](https://github.com/dynamic-labs/dynamic-auth/issues/7455)) ([0ce977d](https://github.com/dynamic-labs/dynamic-auth/commit/0ce977d5d4d591c371c6ea2edfb252ba7acff5d2))
|
|
15
|
+
|
|
2
16
|
## [4.0.0-alpha.38](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.37...v4.0.0-alpha.38) (2024-11-27)
|
|
3
17
|
|
|
4
18
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.39",
|
|
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.0.0-alpha.
|
|
21
|
-
"@dynamic-labs/iconic": "4.0.0-alpha.
|
|
22
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
23
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
20
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.39",
|
|
21
|
+
"@dynamic-labs/iconic": "4.0.0-alpha.39",
|
|
22
|
+
"@dynamic-labs/logger": "4.0.0-alpha.39",
|
|
23
|
+
"@dynamic-labs/utils": "4.0.0-alpha.39",
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"util": "0.12.5"
|
|
26
26
|
},
|
package/src/helpers/index.d.ts
CHANGED
package/src/index.cjs
CHANGED
|
@@ -8,7 +8,6 @@ var _package = require('../package.cjs');
|
|
|
8
8
|
var WalletBookContext = require('./context/WalletBookContext.cjs');
|
|
9
9
|
var getWalletIconUrl = require('./helpers/getWalletIconUrl.cjs');
|
|
10
10
|
var getWalletBookWallet = require('./helpers/getWalletBookWallet.cjs');
|
|
11
|
-
var getWalletPrimaryColor = require('./helpers/getWalletPrimaryColor.cjs');
|
|
12
11
|
var renderTemplate = require('./helpers/renderTemplate.cjs');
|
|
13
12
|
var findWalletBookWallet = require('./helpers/findWalletBookWallet.cjs');
|
|
14
13
|
require('./helpers/logger.cjs');
|
|
@@ -27,7 +26,6 @@ assertPackageVersion.assertPackageVersion('@dynamic-labs/wallet-book', _package.
|
|
|
27
26
|
exports.useWalletBookContext = WalletBookContext.useWalletBookContext;
|
|
28
27
|
exports.getWalletIconUrl = getWalletIconUrl.getWalletIconUrl;
|
|
29
28
|
exports.getWalletBookWallet = getWalletBookWallet.getWalletBookWallet;
|
|
30
|
-
exports.getWalletPrimaryColor = getWalletPrimaryColor.getWalletPrimaryColor;
|
|
31
29
|
exports.renderTemplate = renderTemplate.renderTemplate;
|
|
32
30
|
exports.findWalletBookWallet = findWalletBookWallet.findWalletBookWallet;
|
|
33
31
|
exports.getWalletGroup = getWalletGroup.getWalletGroup;
|
package/src/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { useWalletBookContext } from './context/WalletBookContext';
|
|
|
10
10
|
/**
|
|
11
11
|
* HELPERS
|
|
12
12
|
*/
|
|
13
|
-
export { getWalletBookWallet, getWalletIconUrl,
|
|
13
|
+
export { getWalletBookWallet, getWalletIconUrl, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, renderTemplate, } from './helpers';
|
|
14
14
|
/**
|
|
15
15
|
* HOOKS
|
|
16
16
|
*/
|
package/src/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import { version } from '../package.js';
|
|
|
4
4
|
export { useWalletBookContext } from './context/WalletBookContext.js';
|
|
5
5
|
export { getWalletIconUrl } from './helpers/getWalletIconUrl.js';
|
|
6
6
|
export { getWalletBookWallet } from './helpers/getWalletBookWallet.js';
|
|
7
|
-
export { getWalletPrimaryColor } from './helpers/getWalletPrimaryColor.js';
|
|
8
7
|
export { renderTemplate } from './helpers/renderTemplate.js';
|
|
9
8
|
export { findWalletBookWallet } from './helpers/findWalletBookWallet.js';
|
|
10
9
|
import './helpers/logger.js';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var getWalletBookWallet = require('./getWalletBookWallet.cjs');
|
|
7
|
-
|
|
8
|
-
const getWalletPrimaryColor = (walletBook, walletKey) => {
|
|
9
|
-
var _a;
|
|
10
|
-
const walletData = getWalletBookWallet.getWalletBookWallet(walletBook, walletKey);
|
|
11
|
-
return (_a = walletData === null || walletData === void 0 ? void 0 : walletData.brand) === null || _a === void 0 ? void 0 : _a.primaryColor;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.getWalletPrimaryColor = getWalletPrimaryColor;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { getWalletBookWallet } from './getWalletBookWallet.js';
|
|
3
|
-
|
|
4
|
-
const getWalletPrimaryColor = (walletBook, walletKey) => {
|
|
5
|
-
var _a;
|
|
6
|
-
const walletData = getWalletBookWallet(walletBook, walletKey);
|
|
7
|
-
return (_a = walletData === null || walletData === void 0 ? void 0 : walletData.brand) === null || _a === void 0 ? void 0 : _a.primaryColor;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { getWalletPrimaryColor };
|