@dynamic-labs/wallet-book 4.0.0-alpha.33 → 4.0.0-alpha.35

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,29 @@
1
1
 
2
+ ## [4.0.0-alpha.35](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.34...v4.0.0-alpha.35) (2024-11-25)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * eclipse and solana wallets getting mixed up in connect only ([#7487](https://github.com/dynamic-labs/dynamic-auth/issues/7487)) ([6cabfb8](https://github.com/dynamic-labs/dynamic-auth/commit/6cabfb8da4d23a858652634844653aadc75be062))
8
+ * eclipse wallets never get detected ([#7479](https://github.com/dynamic-labs/dynamic-auth/issues/7479)) ([4a1a040](https://github.com/dynamic-labs/dynamic-auth/commit/4a1a04027e447a0c5c42b2dd3808b82c2ce7724c))
9
+ * **ui:** add missing rule for social login modals ([#7476](https://github.com/dynamic-labs/dynamic-auth/issues/7476)) ([59b5a2d](https://github.com/dynamic-labs/dynamic-auth/commit/59b5a2de10600decedbc167ee30e7900ec53618b))
10
+ * use correct fallback connector for each chain ([#7318](https://github.com/dynamic-labs/dynamic-auth/issues/7318)) ([91dcf8b](https://github.com/dynamic-labs/dynamic-auth/commit/91dcf8b6be4932c8e4122ce4dbceafee7ba1d194))
11
+
12
+ ## [4.0.0-alpha.34](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.33...v4.0.0-alpha.34) (2024-11-20)
13
+
14
+
15
+ ### ⚠ BREAKING CHANGES
16
+
17
+ * remove `supportsSatsConnect` helper ([#7453](https://github.com/dynamic-labs/dynamic-auth/issues/7453)) ([920c63b](https://github.com/dynamic-labs/dynamic-auth/commit/920c63bbb5a38dc3d676664db512a4da539c0909))
18
+ * moved `getWalletLinks` helper from `@dynamic-labs/wallet-book` to `@dynamic-labs/wallet-connector-core` ([#7416](https://github.com/dynamic-labs/dynamic-auth/issues/7416)) ([73fdfa8](https://github.com/dynamic-labs/dynamic-auth/commit/73fdfa8a19fe4c2cca55410d5ed3cb7b5bd8cdfd))
19
+
20
+ ### Features
21
+
22
+ * allow listening to dynamic events without using a hook ([#7466](https://github.com/dynamic-labs/dynamic-auth/issues/7466)) ([3b34e1b](https://github.com/dynamic-labs/dynamic-auth/commit/3b34e1bd2737003b987887a02d0e21436e9bf908))
23
+ * emit primaryWalletChanged event when primary wallets changes ([#7464](https://github.com/dynamic-labs/dynamic-auth/issues/7464)) ([3bc6ba0](https://github.com/dynamic-labs/dynamic-auth/commit/3bc6ba055e0232bff3c6c6bb93d3d57b1dd90bc6))
24
+ * emit primaryWalletNetworkChanged event when primary wallet network changes ([#7465](https://github.com/dynamic-labs/dynamic-auth/issues/7465)) ([33cc629](https://github.com/dynamic-labs/dynamic-auth/commit/33cc629d3c6a03c381b7e5591a8f4557987cc6fc))
25
+
26
+
2
27
  ## [4.0.0-alpha.33](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.32...v4.0.0-alpha.33) (2024-11-18)
3
28
 
4
29
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.33";
6
+ var version = "4.0.0-alpha.35";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.33";
2
+ var version = "4.0.0-alpha.35";
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.0.0-alpha.33",
3
+ "version": "4.0.0-alpha.35",
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.33",
21
- "@dynamic-labs/iconic": "4.0.0-alpha.33",
22
- "@dynamic-labs/logger": "4.0.0-alpha.33",
23
- "@dynamic-labs/utils": "4.0.0-alpha.33",
20
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.35",
21
+ "@dynamic-labs/iconic": "4.0.0-alpha.35",
22
+ "@dynamic-labs/logger": "4.0.0-alpha.35",
23
+ "@dynamic-labs/utils": "4.0.0-alpha.35",
24
24
  "eventemitter3": "5.0.1",
25
25
  "util": "0.12.5"
26
26
  },
@@ -6,8 +6,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var react = require('react');
8
8
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
9
- var findWalletBookWallet = require('../helpers/findWalletBookWallet.cjs');
10
9
  require('../helpers/renderTemplate.cjs');
10
+ var findWalletBookWallet = require('../helpers/findWalletBookWallet.cjs');
11
11
  require('../helpers/logger.cjs');
12
12
  var WalletBookContext = require('../context/WalletBookContext.cjs');
13
13
 
@@ -2,8 +2,8 @@
2
2
  import { __rest } from '../../_virtual/_tslib.js';
3
3
  import { createElement, useState, Fragment } from 'react';
4
4
  import { getWalletIconUrl, getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
5
- import { findWalletBookWallet } from '../helpers/findWalletBookWallet.js';
6
5
  import '../helpers/renderTemplate.js';
6
+ import { findWalletBookWallet } from '../helpers/findWalletBookWallet.js';
7
7
  import '../helpers/logger.js';
8
8
  import { useWalletBookContext } from '../context/WalletBookContext.js';
9
9
 
@@ -1,6 +1,5 @@
1
1
  export * from './getWalletIconUrl';
2
2
  export * from './getWalletBookWallet';
3
- export * from './getWalletLinks';
4
3
  export * from './getWalletPrimaryColor';
5
4
  export * from './renderTemplate';
6
5
  export * from './findWalletBookWallet';
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 getWalletLinks = require('./helpers/getWalletLinks.cjs');
12
11
  var getWalletPrimaryColor = require('./helpers/getWalletPrimaryColor.cjs');
13
12
  var renderTemplate = require('./helpers/renderTemplate.cjs');
14
13
  var findWalletBookWallet = require('./helpers/findWalletBookWallet.cjs');
@@ -28,7 +27,6 @@ assertPackageVersion.assertPackageVersion('@dynamic-labs/wallet-book', _package.
28
27
  exports.useWalletBookContext = WalletBookContext.useWalletBookContext;
29
28
  exports.getWalletIconUrl = getWalletIconUrl.getWalletIconUrl;
30
29
  exports.getWalletBookWallet = getWalletBookWallet.getWalletBookWallet;
31
- exports.getWalletLinks = getWalletLinks.getWalletLinks;
32
30
  exports.getWalletPrimaryColor = getWalletPrimaryColor.getWalletPrimaryColor;
33
31
  exports.renderTemplate = renderTemplate.renderTemplate;
34
32
  exports.findWalletBookWallet = findWalletBookWallet.findWalletBookWallet;
package/src/index.d.ts CHANGED
@@ -3,7 +3,6 @@
3
3
  */
4
4
  export type { WalletBookSchema, WalletRecordsSchema, } from './schemas/walletBookSchema';
5
5
  export type { WalletSchema } from './schemas/walletSchema';
6
- export type { WalletLinks } from './helpers';
7
6
  /**
8
7
  * CONTEXT
9
8
  */
@@ -11,7 +10,7 @@ export { useWalletBookContext } from './context/WalletBookContext';
11
10
  /**
12
11
  * HELPERS
13
12
  */
14
- export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, renderTemplate, } from './helpers';
13
+ export { getWalletBookWallet, getWalletIconUrl, getWalletPrimaryColor, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, renderTemplate, } from './helpers';
15
14
  /**
16
15
  * HOOKS
17
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 { getWalletLinks } from './helpers/getWalletLinks.js';
8
7
  export { getWalletPrimaryColor } from './helpers/getWalletPrimaryColor.js';
9
8
  export { renderTemplate } from './helpers/renderTemplate.js';
10
9
  export { findWalletBookWallet } from './helpers/findWalletBookWallet.js';
@@ -1387,6 +1387,20 @@ var wallets = {
1387
1387
  }
1388
1388
  ],
1389
1389
  name: "Abstract"
1390
+ },
1391
+ edenonline: {
1392
+ brand: {
1393
+ alt: "Eden Online",
1394
+ spriteId: "edenonline"
1395
+ },
1396
+ injectedConfig: [
1397
+ {
1398
+ chain: "evm",
1399
+ extensionLocators: [
1400
+ ]
1401
+ }
1402
+ ],
1403
+ name: "Eden Online"
1390
1404
  }
1391
1405
  };
1392
1406
  var walletBookFallbacks = {
@@ -1383,6 +1383,20 @@ var wallets = {
1383
1383
  }
1384
1384
  ],
1385
1385
  name: "Abstract"
1386
+ },
1387
+ edenonline: {
1388
+ brand: {
1389
+ alt: "Eden Online",
1390
+ spriteId: "edenonline"
1391
+ },
1392
+ injectedConfig: [
1393
+ {
1394
+ chain: "evm",
1395
+ extensionLocators: [
1396
+ ]
1397
+ }
1398
+ ],
1399
+ name: "Eden Online"
1386
1400
  }
1387
1401
  };
1388
1402
  var walletBookFallbacks = {
@@ -1,34 +0,0 @@
1
- 'use client'
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var findWalletBookWallet = require('./findWalletBookWallet.cjs');
7
- var renderTemplate = require('./renderTemplate.cjs');
8
-
9
- const getWalletLinks = (walletBook, walletKey) => {
10
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
11
- const walletData = findWalletBookWallet.findWalletBookWallet(walletBook, walletKey);
12
- const links = {
13
- android: '',
14
- brave: '',
15
- chrome: '',
16
- edge: '',
17
- firefox: '',
18
- ios: '',
19
- };
20
- links.brave =
21
- (_b = renderTemplate.renderTemplate('chromeUrl', (_a = walletData === null || walletData === void 0 ? void 0 : walletData.desktop) === null || _a === void 0 ? void 0 : _a.chromeId)) !== null && _b !== void 0 ? _b : '';
22
- links.chrome =
23
- (_d = renderTemplate.renderTemplate('chromeUrl', (_c = walletData === null || walletData === void 0 ? void 0 : walletData.desktop) === null || _c === void 0 ? void 0 : _c.chromeId)) !== null && _d !== void 0 ? _d : '';
24
- links.edge = (_f = renderTemplate.renderTemplate('edgeUrl', (_e = walletData === null || walletData === void 0 ? void 0 : walletData.desktop) === null || _e === void 0 ? void 0 : _e.edgeId)) !== null && _f !== void 0 ? _f : '';
25
- links.firefox =
26
- (_h = renderTemplate.renderTemplate('firefoxUrl', (_g = walletData === null || walletData === void 0 ? void 0 : walletData.desktop) === null || _g === void 0 ? void 0 : _g.firefoxId)) !== null && _h !== void 0 ? _h : '';
27
- links.ios =
28
- (_m = (_k = renderTemplate.renderTemplate('iosUrl', (_j = walletData === null || walletData === void 0 ? void 0 : walletData.mobile) === null || _j === void 0 ? void 0 : _j.iosId)) !== null && _k !== void 0 ? _k : (_l = walletData === null || walletData === void 0 ? void 0 : walletData.mobile) === null || _l === void 0 ? void 0 : _l.ios) !== null && _m !== void 0 ? _m : '';
29
- links.android =
30
- (_r = (_p = renderTemplate.renderTemplate('androidUrl', (_o = walletData === null || walletData === void 0 ? void 0 : walletData.mobile) === null || _o === void 0 ? void 0 : _o.androidId)) !== null && _p !== void 0 ? _p : (_q = walletData === null || walletData === void 0 ? void 0 : walletData.mobile) === null || _q === void 0 ? void 0 : _q.android) !== null && _r !== void 0 ? _r : '';
31
- return links;
32
- };
33
-
34
- exports.getWalletLinks = getWalletLinks;
@@ -1,10 +0,0 @@
1
- import { WalletBookSchema } from '../schemas';
2
- export type WalletLinks = {
3
- android: string;
4
- brave: string;
5
- chrome: string;
6
- edge: string;
7
- firefox: string;
8
- ios: string;
9
- };
10
- export declare const getWalletLinks: (walletBook: WalletBookSchema, walletKey: string) => WalletLinks;
@@ -1,30 +0,0 @@
1
- 'use client'
2
- import { findWalletBookWallet } from './findWalletBookWallet.js';
3
- import { renderTemplate } from './renderTemplate.js';
4
-
5
- const getWalletLinks = (walletBook, walletKey) => {
6
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
7
- const walletData = findWalletBookWallet(walletBook, walletKey);
8
- const links = {
9
- android: '',
10
- brave: '',
11
- chrome: '',
12
- edge: '',
13
- firefox: '',
14
- ios: '',
15
- };
16
- links.brave =
17
- (_b = renderTemplate('chromeUrl', (_a = walletData === null || walletData === void 0 ? void 0 : walletData.desktop) === null || _a === void 0 ? void 0 : _a.chromeId)) !== null && _b !== void 0 ? _b : '';
18
- links.chrome =
19
- (_d = renderTemplate('chromeUrl', (_c = walletData === null || walletData === void 0 ? void 0 : walletData.desktop) === null || _c === void 0 ? void 0 : _c.chromeId)) !== null && _d !== void 0 ? _d : '';
20
- links.edge = (_f = renderTemplate('edgeUrl', (_e = walletData === null || walletData === void 0 ? void 0 : walletData.desktop) === null || _e === void 0 ? void 0 : _e.edgeId)) !== null && _f !== void 0 ? _f : '';
21
- links.firefox =
22
- (_h = renderTemplate('firefoxUrl', (_g = walletData === null || walletData === void 0 ? void 0 : walletData.desktop) === null || _g === void 0 ? void 0 : _g.firefoxId)) !== null && _h !== void 0 ? _h : '';
23
- links.ios =
24
- (_m = (_k = renderTemplate('iosUrl', (_j = walletData === null || walletData === void 0 ? void 0 : walletData.mobile) === null || _j === void 0 ? void 0 : _j.iosId)) !== null && _k !== void 0 ? _k : (_l = walletData === null || walletData === void 0 ? void 0 : walletData.mobile) === null || _l === void 0 ? void 0 : _l.ios) !== null && _m !== void 0 ? _m : '';
25
- links.android =
26
- (_r = (_p = renderTemplate('androidUrl', (_o = walletData === null || walletData === void 0 ? void 0 : walletData.mobile) === null || _o === void 0 ? void 0 : _o.androidId)) !== null && _p !== void 0 ? _p : (_q = walletData === null || walletData === void 0 ? void 0 : walletData.mobile) === null || _q === void 0 ? void 0 : _q.android) !== null && _r !== void 0 ? _r : '';
27
- return links;
28
- };
29
-
30
- export { getWalletLinks };