@dynamic-labs/wallet-book 0.17.0-RC.28 → 0.17.0-RC.30

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,20 @@
1
1
 
2
+ ## [0.17.0-RC.30](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.29...v0.17.0-RC.30) (2023-06-08)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **view-context:** refactor view context to have initial view ([#2268](https://github.com/dynamic-labs/DynamicAuth/issues/2268)) ([0afe6ae](https://github.com/dynamic-labs/DynamicAuth/commit/0afe6ae469f62fd16fd8471322f9295957f607f6))
8
+ * **wcv2:** upgrade universal provider and refactor wcv2 ([#2163](https://github.com/dynamic-labs/DynamicAuth/issues/2163)) ([e69c67c](https://github.com/dynamic-labs/DynamicAuth/commit/e69c67c95dca0f694c4a554702be96c3f7d3d77e))
9
+
10
+ ## [0.17.0-RC.29](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.28...v0.17.0-RC.29) (2023-06-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * de-duplicate authSuccess call ([#2269](https://github.com/dynamic-labs/DynamicAuth/issues/2269)) ([00268d0](https://github.com/dynamic-labs/DynamicAuth/commit/00268d001355946c98d285d71d7f7acc96d4c9f7))
16
+ * hide search when filtered wallets equal to number of shown wallets ([#2221](https://github.com/dynamic-labs/DynamicAuth/issues/2221)) ([fb0f629](https://github.com/dynamic-labs/DynamicAuth/commit/fb0f629ae76240fe681db91b485139934026054e))
17
+
2
18
  ## [0.17.0-RC.28](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.27...v0.17.0-RC.28) (2023-06-06)
3
19
 
4
20
 
package/README.md CHANGED
@@ -0,0 +1,63 @@
1
+ # Wallet Book
2
+
3
+ ## Updating Wallet Book
4
+
5
+ - [Wallet Book](#wallet-book)
6
+ - [Updating Wallet Book](#updating-wallet-book)
7
+ - [Adding First Party Wallet](#adding-first-party-wallet)
8
+ - [Updating Wallet Connect Data](#updating-wallet-connect-data)
9
+ - [Adding overrides to WalletConnect](#adding-overrides-to-walletconnect)
10
+ - [Compile \& Publish](#compile--publish)
11
+
12
+ ### Adding First Party Wallet
13
+
14
+ Simply add an entry to `firstPartyWalletsData` in `packages/wallet-book/src/build/sources/firstParty/index.ts` and [Compile & Publish](#compile--publish)
15
+
16
+ For example:
17
+
18
+ ```
19
+ argentx: {
20
+ brand: {
21
+ alt: 'Argent Wallet',
22
+ primaryColor: '#FF875B',
23
+ spriteId: 'argentx',
24
+ },
25
+ desktop: {
26
+ chromeId: 'dlcobpjiigpikoobohmabehhmhfoodbb',
27
+ firefoxId: 'argent-x',
28
+ },
29
+ name: 'Argent X',
30
+ },
31
+ ```
32
+
33
+ Required fields:
34
+
35
+ - `brand`
36
+ - `alt`
37
+ - `primaryColor`
38
+ - `spriteId` - The id used in the iconic svg
39
+ - `name`
40
+
41
+ Refer to `WalletRecordsSchema` for more schema options
42
+
43
+ ### Updating Wallet Connect Data
44
+
45
+ - Download the data from : https://registry.walletconnect.org/data/wallets.json replace
46
+ - Replace packages/wallet-book/src/build/sources/walletConnect/walletconnect.json
47
+ - [Compile & Publish](#compile--publish)
48
+
49
+ ### Adding overrides to WalletConnect
50
+
51
+ - modify packages/wallet-book/src/build/sources/walletConnectOverrides/index.ts
52
+ - [Compile & Publish](#compile--publish)
53
+
54
+ ### Compile & Publish
55
+
56
+ The compiled json is stored in `packages/wallet-book/wallet-book.json`. When the file is updated
57
+ and merged to main it will be published to S3 automatically.
58
+
59
+ Simply, make any changes that you need and:
60
+
61
+ - run `npx nx compile wallet-book`
62
+ - commit `wallet-book.json`
63
+ - Open PR with changes and merge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "0.17.0-RC.28",
3
+ "version": "0.17.0-RC.30",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -29,7 +29,6 @@
29
29
  "react-dom": "^17.0.2 || ^18.0.0"
30
30
  },
31
31
  "dependencies": {
32
- "@dynamic-labs/iconic": "0.1.19",
33
- "@dynamic-labs/logger": "0.17.0-RC.28"
32
+ "@dynamic-labs/logger": "0.17.0-RC.30"
34
33
  }
35
34
  }
@@ -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
  chains: string[];
3
11
  desktop: {
4
12
  native: string | null;
@@ -26,7 +34,6 @@ export declare const walletConnectSourceData: Record<string, {
26
34
  app_type: string;
27
35
  description: string | null;
28
36
  homepage: string;
29
- id: string;
30
37
  image_id: string;
31
38
  image_url: {
32
39
  lg: string;
@@ -37,20 +44,13 @@ export declare const walletConnectSourceData: Record<string, {
37
44
  injected_id: string;
38
45
  namespace: string;
39
46
  }[] | null;
40
- metadata: {
41
- shortName: string | null;
42
- colors: {
43
- primary: string | null;
44
- secondary: string | null;
45
- };
46
- };
47
47
  slug: string;
48
48
  supported_standards: {
49
+ url: string;
49
50
  id: string;
51
+ title: string;
50
52
  standard_id: number;
51
53
  standard_prefix: string;
52
- title: string;
53
- url: string;
54
54
  }[];
55
55
  updatedAt: string;
56
56
  versions: string[];
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var react = require('react');
6
6
  var getIconUrl = require('../helpers/getIconUrl.cjs');
7
- require('@dynamic-labs/iconic');
8
7
  var findWalletBookWallet = require('../helpers/findWalletBookWallet.cjs');
9
8
  require('../helpers/logger.cjs');
10
9
 
@@ -1,6 +1,5 @@
1
1
  import { createElement, Fragment } from 'react';
2
2
  import { getWalletIconUrl } from '../helpers/getIconUrl.js';
3
- import '@dynamic-labs/iconic';
4
3
  import { findWalletBookWallet } from '../helpers/findWalletBookWallet.js';
5
4
  import '../helpers/logger.js';
6
5
 
@@ -2,9 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('react');
6
- require('@dynamic-labs/iconic');
7
5
  var useWalletBook = require('../hooks/useWalletBook.cjs');
6
+ require('react');
8
7
  var normalizeWalletName = require('./normalizeWalletName.cjs');
9
8
 
10
9
  const getWalletBookWallet = (walletName) => {
@@ -1,6 +1,5 @@
1
- import 'react';
2
- import '@dynamic-labs/iconic';
3
1
  import { useWalletBook } from '../hooks/useWalletBook.js';
2
+ import 'react';
4
3
  import { normalizeWalletName } from './normalizeWalletName.js';
5
4
 
6
5
  const getWalletBookWallet = (walletName) => {
@@ -2,9 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('react');
6
- require('@dynamic-labs/iconic');
7
5
  var useWalletBook = require('../hooks/useWalletBook.cjs');
6
+ require('react');
8
7
 
9
8
  const getWalletGroup = (key) => {
10
9
  const walletBook = useWalletBook.useWalletBook();
@@ -1,6 +1,5 @@
1
- import 'react';
2
- import '@dynamic-labs/iconic';
3
1
  import { useWalletBook } from '../hooks/useWalletBook.js';
2
+ import 'react';
4
3
 
5
4
  const getWalletGroup = (key) => {
6
5
  const walletBook = useWalletBook();
@@ -1,4 +1,2 @@
1
- export * from './prefetchIconicSprite';
2
- export * from './prefetchWalletBook';
3
1
  export * from './useWalletBook';
4
2
  export * from './useWalletBookCdn';
package/src/index.cjs CHANGED
@@ -9,9 +9,8 @@ var getWalletPrimaryColor = require('./helpers/getWalletPrimaryColor.cjs');
9
9
  require('./helpers/logger.cjs');
10
10
  var getWalletGroup = require('./helpers/getWalletGroup.cjs');
11
11
  var getWalletBookCdnUrl = require('./helpers/getWalletBookCdnUrl.cjs');
12
- require('react');
13
- require('@dynamic-labs/iconic');
14
12
  var useWalletBook = require('./hooks/useWalletBook.cjs');
13
+ require('react');
15
14
  var WalletIcon = require('./components/WalletIcon.cjs');
16
15
 
17
16
 
package/src/index.js CHANGED
@@ -5,7 +5,6 @@ export { getWalletPrimaryColor } from './helpers/getWalletPrimaryColor.js';
5
5
  import './helpers/logger.js';
6
6
  export { getWalletGroup } from './helpers/getWalletGroup.js';
7
7
  export { getWalletBookCdnUrl } from './helpers/getWalletBookCdnUrl.js';
8
- import 'react';
9
- import '@dynamic-labs/iconic';
10
8
  export { useWalletBook } from './hooks/useWalletBook.js';
9
+ import 'react';
11
10
  export { WalletIcon } from './components/WalletIcon.js';
@@ -1,4 +0,0 @@
1
- /**
2
- * Prefetches the iconic sprite by adding a <link rel="prefetch" /> element to the head.
3
- */
4
- export declare const prefetchIconicSprite: () => void;
@@ -1,4 +0,0 @@
1
- /**
2
- * Prefetches the iconic sprite by adding a <link rel="prefetch" /> element to the head.
3
- */
4
- export declare const prefetchWalletBookData: () => void;