@dynamic-labs/wallet-book 1.1.0-alpha.14 → 1.1.0-alpha.15

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +3 -3
  3. package/src/build/index.d.ts +2 -0
  4. package/src/build/sources/walletConnect/index.d.ts +12 -10
  5. package/src/components/BrandIcon.cjs +25 -0
  6. package/src/components/BrandIcon.d.ts +8 -0
  7. package/src/components/BrandIcon.js +21 -0
  8. package/src/components/index.d.ts +1 -0
  9. package/src/helpers/findWalletBookWallet.cjs +0 -2
  10. package/src/helpers/findWalletBookWallet.d.ts +2 -0
  11. package/src/helpers/findWalletBookWallet.js +0 -2
  12. package/src/helpers/findWalletGroup.d.ts +9 -0
  13. package/src/helpers/findWalletGroupOverride.cjs +13 -0
  14. package/src/helpers/findWalletGroupOverride.d.ts +3 -0
  15. package/src/helpers/findWalletGroupOverride.js +9 -0
  16. package/src/helpers/getBrandIconUrl.cjs +17 -0
  17. package/src/helpers/getBrandIconUrl.d.ts +2 -0
  18. package/src/helpers/getBrandIconUrl.js +13 -0
  19. package/src/helpers/getWalletIconUrl.cjs +3 -6
  20. package/src/helpers/getWalletIconUrl.js +3 -6
  21. package/src/helpers/index.d.ts +2 -0
  22. package/src/hooks/useWalletBookCdn.cjs +1 -1
  23. package/src/hooks/useWalletBookCdn.d.ts +11 -0
  24. package/src/hooks/useWalletBookCdn.js +1 -1
  25. package/src/index.cjs +6 -0
  26. package/src/index.d.ts +2 -2
  27. package/src/index.js +3 -0
  28. package/src/schemas/walletBookSchema.d.ts +185 -8
  29. package/src/schemas/walletGroup.cjs +6 -0
  30. package/src/schemas/walletGroup.d.ts +112 -2
  31. package/src/schemas/walletGroup.js +6 -0
  32. package/src/schemas/walletSchema.cjs +25 -20
  33. package/src/schemas/walletSchema.d.ts +41 -4
  34. package/src/schemas/walletSchema.js +25 -21
  35. package/wallet-book-fallbacks.cjs +14 -1
  36. package/wallet-book-fallbacks.js +14 -1
package/CHANGELOG.md CHANGED
@@ -1,4 +1,23 @@
1
1
 
2
+ ## [1.1.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.14...v1.1.0-alpha.15) (2024-01-28)
3
+
4
+
5
+ ### Features
6
+
7
+ * add wallet group override to wallet book ([#4488](https://github.com/dynamic-labs/DynamicAuth/issues/4488)) ([cb19ad3](https://github.com/dynamic-labs/DynamicAuth/commit/cb19ad3ea82de488752ceceeaf0e1458a388df6e))
8
+ * enable solana embedded wallets ([#4457](https://github.com/dynamic-labs/DynamicAuth/issues/4457)) ([b0c47f4](https://github.com/dynamic-labs/DynamicAuth/commit/b0c47f4475baa12f52076da46ef993c13bd2c243))
9
+ * group ArgentX wallets ([#4495](https://github.com/dynamic-labs/DynamicAuth/issues/4495)) ([b10d79a](https://github.com/dynamic-labs/DynamicAuth/commit/b10d79a668efecedca37ddb358e6adf95319650d))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add support for newest backpack extension ([#4468](https://github.com/dynamic-labs/DynamicAuth/issues/4468)) ([a219f32](https://github.com/dynamic-labs/DynamicAuth/commit/a219f325be672599e50b07f6751234a7fc98286e))
15
+ * bump timeout for slower connections ([#4475](https://github.com/dynamic-labs/DynamicAuth/issues/4475)) ([7a07ff5](https://github.com/dynamic-labs/DynamicAuth/commit/7a07ff589eaaf3b28a94d277df3eedabbca60702))
16
+ * change out getWalletBookWallet for findWalletBookWallet to avoid throwing during lookup ([#4477](https://github.com/dynamic-labs/DynamicAuth/issues/4477)) ([4648040](https://github.com/dynamic-labs/DynamicAuth/commit/4648040c166e73dd2c31b0e27897713339436c2f))
17
+ * connect to wallet with wallet connect even if network is not supported ([#4465](https://github.com/dynamic-labs/DynamicAuth/issues/4465)) ([9dbca3e](https://github.com/dynamic-labs/DynamicAuth/commit/9dbca3eb4d4990ee4be642677c1604170b425dc3))
18
+ * pass id to wagmi chain override ([#4512](https://github.com/dynamic-labs/DynamicAuth/issues/4512)) ([2bf2f04](https://github.com/dynamic-labs/DynamicAuth/commit/2bf2f0487f5b1be936dd279107c11fe5d2b42666))
19
+ * switching wallet in extension caused connected flag to be false temporarily ([#4454](https://github.com/dynamic-labs/DynamicAuth/issues/4454)) ([3650f6e](https://github.com/dynamic-labs/DynamicAuth/commit/3650f6ec471a7c779f4d304ab94c9350dd55055b))
20
+
2
21
  ## [1.1.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.13...v1.1.0-alpha.14) (2024-01-23)
3
22
 
4
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "1.1.0-alpha.14",
3
+ "version": "1.1.0-alpha.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.22.4",
29
- "@dynamic-labs/logger": "1.1.0-alpha.14",
30
- "@dynamic-labs/utils": "1.1.0-alpha.14",
29
+ "@dynamic-labs/logger": "1.1.0-alpha.15",
30
+ "@dynamic-labs/utils": "1.1.0-alpha.15",
31
31
  "util": "0.12.5"
32
32
  },
33
33
  "peerDependencies": {
@@ -13,6 +13,7 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
13
13
  primaryColor?: string | undefined;
14
14
  spriteId?: string | undefined;
15
15
  } | undefined;
16
+ chainGroup?: string | undefined;
16
17
  chains?: string[] | undefined;
17
18
  desktop?: {
18
19
  chromeId?: string | undefined;
@@ -56,4 +57,5 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
56
57
  walletConnect?: {
57
58
  sdks?: string[] | undefined;
58
59
  } | undefined;
60
+ walletGroup?: string | undefined;
59
61
  }>;
@@ -1,4 +1,12 @@
1
1
  export declare const walletConnectSourceData: Record<string, {
2
+ id: string;
3
+ metadata: {
4
+ shortName: string | null;
5
+ colors: {
6
+ primary: string | null;
7
+ secondary: string | null;
8
+ };
9
+ };
2
10
  name: string;
3
11
  chains: string[];
4
12
  desktop: {
@@ -11,13 +19,6 @@ export declare const walletConnectSourceData: Record<string, {
11
19
  universal: string | null;
12
20
  };
13
21
  sdks: string[];
14
- metadata: {
15
- shortName: string | null;
16
- colors: {
17
- primary: string | null;
18
- secondary: string | null;
19
- };
20
- };
21
22
  app: {
22
23
  android: string | null;
23
24
  ios: string | null;
@@ -35,7 +36,6 @@ export declare const walletConnectSourceData: Record<string, {
35
36
  category: string | null;
36
37
  description: string | null;
37
38
  homepage: string;
38
- id: string;
39
39
  image_id: string;
40
40
  image_url: {
41
41
  lg: string;
@@ -50,11 +50,11 @@ export declare const walletConnectSourceData: Record<string, {
50
50
  updatedAt: string;
51
51
  versions: string[];
52
52
  supported_standards?: {
53
- title: string;
54
53
  id: string;
54
+ title: string;
55
+ url: string;
55
56
  standard_id: number;
56
57
  standard_prefix: string;
57
- url: string;
58
58
  }[] | undefined;
59
59
  }>;
60
60
  export declare const walletConnectTransformedData: Promise<Record<string, {
@@ -65,6 +65,7 @@ export declare const walletConnectTransformedData: Promise<Record<string, {
65
65
  primaryColor?: string | undefined;
66
66
  spriteId?: string | undefined;
67
67
  } | undefined;
68
+ chainGroup?: string | undefined;
68
69
  chains?: string[] | undefined;
69
70
  desktop?: {
70
71
  chromeId?: string | undefined;
@@ -108,4 +109,5 @@ export declare const walletConnectTransformedData: Promise<Record<string, {
108
109
  walletConnect?: {
109
110
  sdks?: string[] | undefined;
110
111
  } | undefined;
112
+ walletGroup?: string | undefined;
111
113
  }>>;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _tslib = require('../../_virtual/_tslib.cjs');
6
+ var react = require('react');
7
+ var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
8
+ require('../helpers/logger.cjs');
9
+ var getBrandIconUrl = require('../helpers/getBrandIconUrl.cjs');
10
+
11
+ const BrandIcon = (_a) => {
12
+ var { brand, walletKey } = _a, props = _tslib.__rest(_a, ["brand", "walletKey"]);
13
+ const [imgError, setImgError] = react.useState(false);
14
+ const walletIconUrl = getBrandIconUrl.getBrandIconUrl(brand);
15
+ const defaultWalletIconUrl = getWalletIconUrl.getDefaultWalletIconUrl();
16
+ if (!walletIconUrl) {
17
+ return react.createElement(react.Fragment, {});
18
+ }
19
+ const onError = () => {
20
+ setImgError(true);
21
+ };
22
+ return react.createElement('img', Object.assign(Object.assign({ 'data-testid': `wallet-icon-${walletKey}` }, props), { alt: brand.alt, onError: onError, src: imgError ? defaultWalletIconUrl : walletIconUrl }));
23
+ };
24
+
25
+ exports.BrandIcon = BrandIcon;
@@ -0,0 +1,8 @@
1
+ import { FC, ImgHTMLAttributes } from 'react';
2
+ import { WalletBrand } from '../schemas';
3
+ type BrandIconProps = {
4
+ walletKey: string;
5
+ brand: WalletBrand;
6
+ } & ImgHTMLAttributes<HTMLImageElement>;
7
+ export declare const BrandIcon: FC<BrandIconProps>;
8
+ export {};
@@ -0,0 +1,21 @@
1
+ import { __rest } from '../../_virtual/_tslib.js';
2
+ import { useState, createElement, Fragment } from 'react';
3
+ import { getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
4
+ import '../helpers/logger.js';
5
+ import { getBrandIconUrl } from '../helpers/getBrandIconUrl.js';
6
+
7
+ const BrandIcon = (_a) => {
8
+ var { brand, walletKey } = _a, props = __rest(_a, ["brand", "walletKey"]);
9
+ const [imgError, setImgError] = useState(false);
10
+ const walletIconUrl = getBrandIconUrl(brand);
11
+ const defaultWalletIconUrl = getDefaultWalletIconUrl();
12
+ if (!walletIconUrl) {
13
+ return createElement(Fragment, {});
14
+ }
15
+ const onError = () => {
16
+ setImgError(true);
17
+ };
18
+ return createElement('img', Object.assign(Object.assign({ 'data-testid': `wallet-icon-${walletKey}` }, props), { alt: brand.alt, onError: onError, src: imgError ? defaultWalletIconUrl : walletIconUrl }));
19
+ };
20
+
21
+ export { BrandIcon };
@@ -1,2 +1,3 @@
1
1
  export * from './WalletIcon';
2
2
  export * from './WalletBookContext';
3
+ export * from './BrandIcon';
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getWalletBookWallet = require('./getWalletBookWallet.cjs');
6
- var logger = require('./logger.cjs');
7
6
 
8
7
  const findWalletBookWallet = (walletBook, walletKey) => {
9
8
  try {
@@ -11,7 +10,6 @@ const findWalletBookWallet = (walletBook, walletKey) => {
11
10
  return walletData;
12
11
  }
13
12
  catch (err) {
14
- logger.logger.warn(err);
15
13
  return undefined;
16
14
  }
17
15
  };
@@ -7,6 +7,7 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
7
7
  primaryColor?: string | undefined;
8
8
  spriteId?: string | undefined;
9
9
  } | undefined;
10
+ chainGroup?: string | undefined;
10
11
  chains?: string[] | undefined;
11
12
  desktop?: {
12
13
  chromeId?: string | undefined;
@@ -50,4 +51,5 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
50
51
  walletConnect?: {
51
52
  sdks?: string[] | undefined;
52
53
  } | undefined;
54
+ walletGroup?: string | undefined;
53
55
  } | undefined;
@@ -1,5 +1,4 @@
1
1
  import { getWalletBookWallet } from './getWalletBookWallet.js';
2
- import { logger } from './logger.js';
3
2
 
4
3
  const findWalletBookWallet = (walletBook, walletKey) => {
5
4
  try {
@@ -7,7 +6,6 @@ const findWalletBookWallet = (walletBook, walletKey) => {
7
6
  return walletData;
8
7
  }
9
8
  catch (err) {
10
- logger.warn(err);
11
9
  return undefined;
12
10
  }
13
11
  };
@@ -8,4 +8,13 @@ export declare const findWalletGroup: (walletBook: WalletBookSchema, walletGroup
8
8
  primaryColor?: string | undefined;
9
9
  spriteId?: string | undefined;
10
10
  } | undefined;
11
+ walletOverrides?: Record<string, {
12
+ brand?: {
13
+ alt?: string | undefined;
14
+ imageId?: string | undefined;
15
+ primaryColor?: string | undefined;
16
+ spriteId?: string | undefined;
17
+ } | undefined;
18
+ name?: string | undefined;
19
+ }> | undefined;
11
20
  } | undefined;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var findWalletGroup = require('./findWalletGroup.cjs');
6
+
7
+ const findWalletGroupOverride = (walletBook, groupKey, walletKey) => {
8
+ var _a;
9
+ const group = findWalletGroup.findWalletGroup(walletBook, groupKey);
10
+ return (_a = group === null || group === void 0 ? void 0 : group.walletOverrides) === null || _a === void 0 ? void 0 : _a[walletKey];
11
+ };
12
+
13
+ exports.findWalletGroupOverride = findWalletGroupOverride;
@@ -0,0 +1,3 @@
1
+ import { WalletBookSchema } from '../schemas';
2
+ import { WalletGroupOverride } from '../schemas/walletGroup';
3
+ export declare const findWalletGroupOverride: (walletBook: WalletBookSchema, groupKey: string, walletKey: string) => WalletGroupOverride | undefined;
@@ -0,0 +1,9 @@
1
+ import { findWalletGroup } from './findWalletGroup.js';
2
+
3
+ const findWalletGroupOverride = (walletBook, groupKey, walletKey) => {
4
+ var _a;
5
+ const group = findWalletGroup(walletBook, groupKey);
6
+ return (_a = group === null || group === void 0 ? void 0 : group.walletOverrides) === null || _a === void 0 ? void 0 : _a[walletKey];
7
+ };
8
+
9
+ export { findWalletGroupOverride };
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var renderTemplate = require('./renderTemplate.cjs');
6
+
7
+ const getBrandIconUrl = (brand) => {
8
+ if (brand.spriteId) {
9
+ return renderTemplate.renderTemplate('iconicUrl', brand.spriteId);
10
+ }
11
+ if (brand.imageId) {
12
+ return renderTemplate.renderTemplate('walletConnectUrl', brand.imageId);
13
+ }
14
+ return '';
15
+ };
16
+
17
+ exports.getBrandIconUrl = getBrandIconUrl;
@@ -0,0 +1,2 @@
1
+ import { WalletBrand } from '../schemas';
2
+ export declare const getBrandIconUrl: (brand: WalletBrand) => string | undefined;
@@ -0,0 +1,13 @@
1
+ import { renderTemplate } from './renderTemplate.js';
2
+
3
+ const getBrandIconUrl = (brand) => {
4
+ if (brand.spriteId) {
5
+ return renderTemplate('iconicUrl', brand.spriteId);
6
+ }
7
+ if (brand.imageId) {
8
+ return renderTemplate('walletConnectUrl', brand.imageId);
9
+ }
10
+ return '';
11
+ };
12
+
13
+ export { getBrandIconUrl };
@@ -3,18 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var getWalletBookWallet = require('./getWalletBookWallet.cjs');
6
+ var getBrandIconUrl = require('./getBrandIconUrl.cjs');
6
7
  var logger = require('./logger.cjs');
7
8
  var renderTemplate = require('./renderTemplate.cjs');
8
9
 
9
10
  const getWalletIconUrl = (walletBook, walletKey) => {
10
- var _a, _b;
11
11
  try {
12
12
  const walletData = getWalletBookWallet.getWalletBookWallet(walletBook, walletKey);
13
- if ((_a = walletData === null || walletData === void 0 ? void 0 : walletData.brand) === null || _a === void 0 ? void 0 : _a.spriteId) {
14
- return renderTemplate.renderTemplate('iconicUrl', walletData.brand.spriteId);
15
- }
16
- if ((_b = walletData === null || walletData === void 0 ? void 0 : walletData.brand) === null || _b === void 0 ? void 0 : _b.imageId) {
17
- return renderTemplate.renderTemplate('walletConnectUrl', walletData.brand.imageId);
13
+ if (walletData === null || walletData === void 0 ? void 0 : walletData.brand) {
14
+ return getBrandIconUrl.getBrandIconUrl(walletData.brand);
18
15
  }
19
16
  }
20
17
  catch (err) {
@@ -1,16 +1,13 @@
1
1
  import { getWalletBookWallet } from './getWalletBookWallet.js';
2
+ import { getBrandIconUrl } from './getBrandIconUrl.js';
2
3
  import { logger } from './logger.js';
3
4
  import { renderTemplate } from './renderTemplate.js';
4
5
 
5
6
  const getWalletIconUrl = (walletBook, walletKey) => {
6
- var _a, _b;
7
7
  try {
8
8
  const walletData = getWalletBookWallet(walletBook, walletKey);
9
- if ((_a = walletData === null || walletData === void 0 ? void 0 : walletData.brand) === null || _a === void 0 ? void 0 : _a.spriteId) {
10
- return renderTemplate('iconicUrl', walletData.brand.spriteId);
11
- }
12
- if ((_b = walletData === null || walletData === void 0 ? void 0 : walletData.brand) === null || _b === void 0 ? void 0 : _b.imageId) {
13
- return renderTemplate('walletConnectUrl', walletData.brand.imageId);
9
+ if (walletData === null || walletData === void 0 ? void 0 : walletData.brand) {
10
+ return getBrandIconUrl(walletData.brand);
14
11
  }
15
12
  }
16
13
  catch (err) {
@@ -9,3 +9,5 @@ export * from './logger';
9
9
  export * from './getWalletGroup';
10
10
  export * from './findWalletGroup';
11
11
  export * from './getWalletBookCdnUrl';
12
+ export * from './getBrandIconUrl';
13
+ export * from './findWalletGroupOverride';
@@ -37,7 +37,7 @@ const useWalletBookCdn = () => {
37
37
  logger: logger.logger.createLogger('useWalletBookCdn'),
38
38
  maxRetries: 3,
39
39
  retryStrategy: 'timeout-and-rejection',
40
- timeoutMs: 5000,
40
+ timeoutMs: 30000,
41
41
  });
42
42
  setWalletBook(data);
43
43
  });
@@ -8,6 +8,15 @@ export declare const useWalletBookCdn: () => {
8
8
  primaryColor?: string | undefined;
9
9
  spriteId?: string | undefined;
10
10
  } | undefined;
11
+ walletOverrides?: Record<string, {
12
+ brand?: {
13
+ alt?: string | undefined;
14
+ imageId?: string | undefined;
15
+ primaryColor?: string | undefined;
16
+ spriteId?: string | undefined;
17
+ } | undefined;
18
+ name?: string | undefined;
19
+ }> | undefined;
11
20
  }>;
12
21
  wallets: Record<string, {
13
22
  name: string;
@@ -17,6 +26,7 @@ export declare const useWalletBookCdn: () => {
17
26
  primaryColor?: string | undefined;
18
27
  spriteId?: string | undefined;
19
28
  } | undefined;
29
+ chainGroup?: string | undefined;
20
30
  chains?: string[] | undefined;
21
31
  desktop?: {
22
32
  chromeId?: string | undefined;
@@ -60,5 +70,6 @@ export declare const useWalletBookCdn: () => {
60
70
  walletConnect?: {
61
71
  sdks?: string[] | undefined;
62
72
  } | undefined;
73
+ walletGroup?: string | undefined;
63
74
  }>;
64
75
  };
@@ -33,7 +33,7 @@ const useWalletBookCdn = () => {
33
33
  logger: logger.createLogger('useWalletBookCdn'),
34
34
  maxRetries: 3,
35
35
  retryStrategy: 'timeout-and-rejection',
36
- timeoutMs: 5000,
36
+ timeoutMs: 30000,
37
37
  });
38
38
  setWalletBook(data);
39
39
  });
package/src/index.cjs CHANGED
@@ -11,10 +11,13 @@ require('./helpers/logger.cjs');
11
11
  var getWalletGroup = require('./helpers/getWalletGroup.cjs');
12
12
  var findWalletGroup = require('./helpers/findWalletGroup.cjs');
13
13
  var getWalletBookCdnUrl = require('./helpers/getWalletBookCdnUrl.cjs');
14
+ var getBrandIconUrl = require('./helpers/getBrandIconUrl.cjs');
15
+ var findWalletGroupOverride = require('./helpers/findWalletGroupOverride.cjs');
14
16
  var useWalletBookCdn = require('./hooks/useWalletBookCdn.cjs');
15
17
  var useWalletBookContext = require('./hooks/useWalletBookContext.cjs');
16
18
  var WalletIcon = require('./components/WalletIcon.cjs');
17
19
  var WalletBookContext = require('./components/WalletBookContext.cjs');
20
+ var BrandIcon = require('./components/BrandIcon.cjs');
18
21
 
19
22
 
20
23
 
@@ -26,7 +29,10 @@ exports.findWalletBookWallet = findWalletBookWallet.findWalletBookWallet;
26
29
  exports.getWalletGroup = getWalletGroup.getWalletGroup;
27
30
  exports.findWalletGroup = findWalletGroup.findWalletGroup;
28
31
  exports.getWalletBookCdnUrl = getWalletBookCdnUrl.getWalletBookCdnUrl;
32
+ exports.getBrandIconUrl = getBrandIconUrl.getBrandIconUrl;
33
+ exports.findWalletGroupOverride = findWalletGroupOverride.findWalletGroupOverride;
29
34
  exports.useWalletBookCdn = useWalletBookCdn.useWalletBookCdn;
30
35
  exports.useWalletBookContext = useWalletBookContext.useWalletBookContext;
31
36
  exports.WalletIcon = WalletIcon.WalletIcon;
32
37
  exports.WalletBookContextProvider = WalletBookContext.WalletBookContextProvider;
38
+ exports.BrandIcon = BrandIcon.BrandIcon;
package/src/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export type { WalletLinks } from './helpers';
7
7
  /**
8
8
  * HELPERS
9
9
  */
10
- export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, } from './helpers';
10
+ export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, } from './helpers';
11
11
  /**
12
12
  * HOOKS
13
13
  */
@@ -15,4 +15,4 @@ export { useWalletBookCdn, useWalletBookContext } from './hooks';
15
15
  /**
16
16
  * COMPONENTS
17
17
  */
18
- export { WalletIcon, WalletBookContextProvider } from './components';
18
+ export { WalletIcon, WalletBookContextProvider, BrandIcon } from './components';
package/src/index.js CHANGED
@@ -7,7 +7,10 @@ import './helpers/logger.js';
7
7
  export { getWalletGroup } from './helpers/getWalletGroup.js';
8
8
  export { findWalletGroup } from './helpers/findWalletGroup.js';
9
9
  export { getWalletBookCdnUrl } from './helpers/getWalletBookCdnUrl.js';
10
+ export { getBrandIconUrl } from './helpers/getBrandIconUrl.js';
11
+ export { findWalletGroupOverride } from './helpers/findWalletGroupOverride.js';
10
12
  export { useWalletBookCdn } from './hooks/useWalletBookCdn.js';
11
13
  export { useWalletBookContext } from './hooks/useWalletBookContext.js';
12
14
  export { WalletIcon } from './components/WalletIcon.js';
13
15
  export { WalletBookContextProvider } from './components/WalletBookContext.js';
16
+ export { BrandIcon } from './components/BrandIcon.js';