@dynamic-labs/wallet-book 1.2.0-alpha.0 → 1.2.0-alpha.1

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
+ ## [1.2.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.0...v1.2.0-alpha.1) (2024-02-09)
3
+
4
+
5
+ ### Features
6
+
7
+ * add FilterChain helper function ([#4632](https://github.com/dynamic-labs/DynamicAuth/issues/4632)) ([56d474b](https://github.com/dynamic-labs/DynamicAuth/commit/56d474bf50a566774179ae929c4587ef841809bc))
8
+ * add recommendedWallets prop to DynamicContext ([10c79d2](https://github.com/dynamic-labs/DynamicAuth/commit/10c79d2d7d79b3acee52f2feac0ddb6ccb5d9465))
9
+ * allow exporting embedded wallets key/seed using email auth session ([#4580](https://github.com/dynamic-labs/DynamicAuth/issues/4580)) ([7b7a826](https://github.com/dynamic-labs/DynamicAuth/commit/7b7a8265ff16057284a50046f2310e1abdca5e50))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * fix the wallet list height ([#4651](https://github.com/dynamic-labs/DynamicAuth/issues/4651)) ([445be11](https://github.com/dynamic-labs/DynamicAuth/commit/445be110044aff2641cb2c8309c7b784d5498645))
15
+
2
16
  ## [1.2.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.26...v1.2.0-alpha.0) (2024-02-09)
3
17
 
4
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "1.2.0-alpha.0",
3
+ "version": "1.2.0-alpha.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,8 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.22.4",
29
- "@dynamic-labs/logger": "1.2.0-alpha.0",
30
- "@dynamic-labs/utils": "1.2.0-alpha.0",
29
+ "@dynamic-labs/iconic": "1.2.0-alpha.1",
30
+ "@dynamic-labs/logger": "1.2.0-alpha.1",
31
+ "@dynamic-labs/utils": "1.2.0-alpha.1",
31
32
  "util": "0.12.5"
32
33
  },
33
34
  "peerDependencies": {
@@ -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: {
@@ -28,7 +36,6 @@ export declare const walletConnectSourceData: Record<string, {
28
36
  category: string | null;
29
37
  description: string | null;
30
38
  homepage: string;
31
- id: string;
32
39
  image_id: string;
33
40
  image_url: {
34
41
  lg: string;
@@ -39,22 +46,15 @@ export declare const walletConnectSourceData: Record<string, {
39
46
  injected_id: string;
40
47
  namespace: string;
41
48
  }[] | null;
42
- metadata: {
43
- shortName: string | null;
44
- colors: {
45
- primary: string | null;
46
- secondary: string | null;
47
- };
48
- };
49
49
  slug: string;
50
50
  updatedAt: string;
51
51
  versions: string[];
52
52
  supported_standards?: {
53
53
  id: string;
54
- standard_id: number;
55
- standard_prefix: string;
56
54
  title: string;
57
55
  url: string;
56
+ standard_id: number;
57
+ standard_prefix: string;
58
58
  }[] | undefined;
59
59
  }>;
60
60
  export declare const walletConnectTransformedData: Promise<Record<string, {
@@ -6,6 +6,7 @@ var _tslib = require('../../_virtual/_tslib.cjs');
6
6
  var react = require('react');
7
7
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
8
8
  require('../helpers/logger.cjs');
9
+ require('../helpers/renderTemplate.cjs');
9
10
  var getBrandIconUrl = require('../helpers/getBrandIconUrl.cjs');
10
11
 
11
12
  const BrandIcon = (_a) => {
@@ -2,6 +2,7 @@ import { __rest } from '../../_virtual/_tslib.js';
2
2
  import { useState, createElement, Fragment } from 'react';
3
3
  import { getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
4
4
  import '../helpers/logger.js';
5
+ import '../helpers/renderTemplate.js';
5
6
  import { getBrandIconUrl } from '../helpers/getBrandIconUrl.js';
6
7
 
7
8
  const BrandIcon = (_a) => {
@@ -7,6 +7,7 @@ var react = require('react');
7
7
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
8
8
  require('../helpers/logger.cjs');
9
9
  var findWalletBookWallet = require('../helpers/findWalletBookWallet.cjs');
10
+ require('../helpers/renderTemplate.cjs');
10
11
  require('@dynamic-labs/utils');
11
12
  require('../schemas/walletConnectSourceSchema.cjs');
12
13
  require('../schemas/walletBookSchema.cjs');
@@ -3,6 +3,7 @@ import { useState, createElement, Fragment } from 'react';
3
3
  import { getWalletIconUrl, getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
4
4
  import '../helpers/logger.js';
5
5
  import { findWalletBookWallet } from '../helpers/findWalletBookWallet.js';
6
+ import '../helpers/renderTemplate.js';
6
7
  import '@dynamic-labs/utils';
7
8
  import '../schemas/walletConnectSourceSchema.js';
8
9
  import '../schemas/walletBookSchema.js';
@@ -2,12 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var iconic = require('@dynamic-labs/iconic');
6
+
5
7
  const TEMPLATES = {
6
8
  androidUrl: 'https://play.google.com/store/apps/details?id={{id}}',
7
9
  chromeUrl: 'https://chrome.google.com/webstore/detail/{{id}}',
8
10
  edgeUrl: 'https://microsoftedge.microsoft.com/addons/detail/{{id}}',
9
11
  firefoxUrl: 'https://addons.mozilla.org/en-US/firefox/addon/{{id}}',
10
- iconicUrl: 'https://iconic.dynamic-static-assets.com/icons/sprite.svg#{{id}}',
12
+ iconicUrl: `${iconic.getIconicSpriteUrl()}#{{id}}`,
11
13
  iosUrl: 'https://apps.apple.com/app/apple-store/{{id}}',
12
14
  walletConnectUrl: 'https://registry.walletconnect.org/v2/logo/sm/{{id}}',
13
15
  };
@@ -3,7 +3,7 @@ declare const TEMPLATES: {
3
3
  readonly chromeUrl: "https://chrome.google.com/webstore/detail/{{id}}";
4
4
  readonly edgeUrl: "https://microsoftedge.microsoft.com/addons/detail/{{id}}";
5
5
  readonly firefoxUrl: "https://addons.mozilla.org/en-US/firefox/addon/{{id}}";
6
- readonly iconicUrl: "https://iconic.dynamic-static-assets.com/icons/sprite.svg#{{id}}";
6
+ readonly iconicUrl: `${string}#{{id}}`;
7
7
  readonly iosUrl: "https://apps.apple.com/app/apple-store/{{id}}";
8
8
  readonly walletConnectUrl: "https://registry.walletconnect.org/v2/logo/sm/{{id}}";
9
9
  };
@@ -1,9 +1,11 @@
1
+ import { getIconicSpriteUrl } from '@dynamic-labs/iconic';
2
+
1
3
  const TEMPLATES = {
2
4
  androidUrl: 'https://play.google.com/store/apps/details?id={{id}}',
3
5
  chromeUrl: 'https://chrome.google.com/webstore/detail/{{id}}',
4
6
  edgeUrl: 'https://microsoftedge.microsoft.com/addons/detail/{{id}}',
5
7
  firefoxUrl: 'https://addons.mozilla.org/en-US/firefox/addon/{{id}}',
6
- iconicUrl: 'https://iconic.dynamic-static-assets.com/icons/sprite.svg#{{id}}',
8
+ iconicUrl: `${getIconicSpriteUrl()}#{{id}}`,
7
9
  iosUrl: 'https://apps.apple.com/app/apple-store/{{id}}',
8
10
  walletConnectUrl: 'https://registry.walletconnect.org/v2/logo/sm/{{id}}',
9
11
  };
@@ -9,6 +9,7 @@ require('../schemas/walletConnectSourceSchema.cjs');
9
9
  var walletBookSchema = require('../schemas/walletBookSchema.cjs');
10
10
  require('../schemas/walletSchema.cjs');
11
11
  var logger = require('../helpers/logger.cjs');
12
+ require('../helpers/renderTemplate.cjs');
12
13
  var getWalletBookCdnUrl = require('../helpers/getWalletBookCdnUrl.cjs');
13
14
  var walletBookFallbacks = require('../../wallet-book-fallbacks.cjs');
14
15
 
@@ -5,6 +5,7 @@ import '../schemas/walletConnectSourceSchema.js';
5
5
  import { walletBookSchema } from '../schemas/walletBookSchema.js';
6
6
  import '../schemas/walletSchema.js';
7
7
  import { logger } from '../helpers/logger.js';
8
+ import '../helpers/renderTemplate.js';
8
9
  import { getWalletBookCdnUrl } from '../helpers/getWalletBookCdnUrl.js';
9
10
  import walletBookFallbacks from '../../wallet-book-fallbacks.js';
10
11
 
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var react = require('react');
6
6
  require('../../_virtual/_tslib.cjs');
7
7
  require('../helpers/logger.cjs');
8
+ require('../helpers/renderTemplate.cjs');
8
9
  require('@dynamic-labs/utils');
9
10
  require('../schemas/walletConnectSourceSchema.cjs');
10
11
  require('../schemas/walletBookSchema.cjs');
@@ -1,6 +1,7 @@
1
1
  import { useContext } from 'react';
2
2
  import '../../_virtual/_tslib.js';
3
3
  import '../helpers/logger.js';
4
+ import '../helpers/renderTemplate.js';
4
5
  import '@dynamic-labs/utils';
5
6
  import '../schemas/walletConnectSourceSchema.js';
6
7
  import '../schemas/walletBookSchema.js';
package/src/index.cjs CHANGED
@@ -6,6 +6,7 @@ var getWalletIconUrl = require('./helpers/getWalletIconUrl.cjs');
6
6
  var getWalletBookWallet = require('./helpers/getWalletBookWallet.cjs');
7
7
  var getWalletLinks = require('./helpers/getWalletLinks.cjs');
8
8
  var getWalletPrimaryColor = require('./helpers/getWalletPrimaryColor.cjs');
9
+ require('./helpers/renderTemplate.cjs');
9
10
  var findWalletBookWallet = require('./helpers/findWalletBookWallet.cjs');
10
11
  require('./helpers/logger.cjs');
11
12
  var getWalletGroup = require('./helpers/getWalletGroup.cjs');
package/src/index.js CHANGED
@@ -2,6 +2,7 @@ export { getWalletIconUrl } from './helpers/getWalletIconUrl.js';
2
2
  export { getWalletBookWallet } from './helpers/getWalletBookWallet.js';
3
3
  export { getWalletLinks } from './helpers/getWalletLinks.js';
4
4
  export { getWalletPrimaryColor } from './helpers/getWalletPrimaryColor.js';
5
+ import './helpers/renderTemplate.js';
5
6
  export { findWalletBookWallet } from './helpers/findWalletBookWallet.js';
6
7
  import './helpers/logger.js';
7
8
  export { getWalletGroup } from './helpers/getWalletGroup.js';