@dynamic-labs/wallet-book 2.0.0-alpha.25 → 2.0.0-alpha.26

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,25 @@
1
1
 
2
+ ## [2.0.0-alpha.26](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.25...v2.0.0-alpha.26) (2024-04-08)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * add onWalletAdded/onWalletRemoved callbacks and removed onConnect/onDisconnect/onLinkSuccess/onUnlinkSuccess (#5194)
8
+ * note:
9
+ - use "events" in favour of "eventsCallbacks"
10
+ - use "handlers.handleConnectedWallet" in favour of "eventsCallbacks.onBeforeConnectSuccessConfirmation"
11
+
12
+ ### Bug Fixes
13
+
14
+ * coinbase wallet settings ([#5233](https://github.com/dynamic-labs/DynamicAuth/issues/5233)) ([1b04411](https://github.com/dynamic-labs/DynamicAuth/commit/1b04411eb90db438f3eacf622d9c28db4c7cf532))
15
+ * remove local storage settings on logout ([#5212](https://github.com/dynamic-labs/DynamicAuth/issues/5212)) ([e686628](https://github.com/dynamic-labs/DynamicAuth/commit/e686628f602a44cd13083e7bb9afb4f50304390e))
16
+ * show app name or logo in sign message modal ([#5225](https://github.com/dynamic-labs/DynamicAuth/issues/5225)) ([a77b6ba](https://github.com/dynamic-labs/DynamicAuth/commit/a77b6ba9b5646b400ebf933949dabe06a35d1c81))
17
+ * user wallets not being cleared immediately when logout is called ([#5211](https://github.com/dynamic-labs/DynamicAuth/issues/5211)) ([a649c46](https://github.com/dynamic-labs/DynamicAuth/commit/a649c462d171cf6f8d67159df9f5f2144f315e5c))
18
+
19
+
20
+ * add onWalletAdded/onWalletRemoved callbacks and removed onConnect/onDisconnect/onLinkSuccess/onUnlinkSuccess ([#5194](https://github.com/dynamic-labs/DynamicAuth/issues/5194)) ([fdec78c](https://github.com/dynamic-labs/DynamicAuth/commit/fdec78c1c32c58c8f7dc7ffd9b877320aa4d90e0))
21
+ * rename eventsCallbacks to events ([#5196](https://github.com/dynamic-labs/DynamicAuth/issues/5196)) ([5797185](https://github.com/dynamic-labs/DynamicAuth/commit/5797185c18fa091032ef27043b63a1d5201b5e23))
22
+
2
23
  ## [2.0.0-alpha.25](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.24...v2.0.0-alpha.25) (2024-04-04)
3
24
 
4
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "2.0.0-alpha.25",
3
+ "version": "2.0.0-alpha.26",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.22.4",
29
- "@dynamic-labs/iconic": "2.0.0-alpha.25",
30
- "@dynamic-labs/logger": "2.0.0-alpha.25",
31
- "@dynamic-labs/utils": "2.0.0-alpha.25",
29
+ "@dynamic-labs/iconic": "2.0.0-alpha.26",
30
+ "@dynamic-labs/logger": "2.0.0-alpha.26",
31
+ "@dynamic-labs/utils": "2.0.0-alpha.26",
32
32
  "util": "0.12.5"
33
33
  },
34
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, {
@@ -39,6 +39,7 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
39
39
  mobile?: {
40
40
  android?: string | null | undefined;
41
41
  androidId?: string | undefined;
42
+ inAppBrowser?: string | null | undefined;
42
43
  ios?: string | null | undefined;
43
44
  iosId?: string | undefined;
44
45
  native?: string | undefined;
@@ -56,6 +56,7 @@ export declare const useWalletBookCdn: () => {
56
56
  mobile?: {
57
57
  android?: string | null | undefined;
58
58
  androidId?: string | undefined;
59
+ inAppBrowser?: string | null | undefined;
59
60
  ios?: string | null | undefined;
60
61
  iosId?: string | undefined;
61
62
  native?: string | undefined;
@@ -118,6 +118,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
118
118
  mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
119
119
  android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
120
  androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
121
+ inAppBrowser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
122
  ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
123
  iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
123
124
  native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
@@ -125,6 +126,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
125
126
  }, "strip", z.ZodTypeAny, {
126
127
  android?: string | null | undefined;
127
128
  androidId?: string | undefined;
129
+ inAppBrowser?: string | null | undefined;
128
130
  ios?: string | null | undefined;
129
131
  iosId?: string | undefined;
130
132
  native?: string | undefined;
@@ -132,6 +134,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
132
134
  }, {
133
135
  android?: string | null | undefined;
134
136
  androidId?: unknown;
137
+ inAppBrowser?: string | null | undefined;
135
138
  ios?: string | null | undefined;
136
139
  iosId?: unknown;
137
140
  native?: unknown;
@@ -139,6 +142,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
139
142
  }>>, {
140
143
  android?: string | null | undefined;
141
144
  androidId?: string | undefined;
145
+ inAppBrowser?: string | null | undefined;
142
146
  ios?: string | null | undefined;
143
147
  iosId?: string | undefined;
144
148
  native?: string | undefined;
@@ -146,6 +150,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
146
150
  } | undefined, {
147
151
  android?: string | null | undefined;
148
152
  androidId?: unknown;
153
+ inAppBrowser?: string | null | undefined;
149
154
  ios?: string | null | undefined;
150
155
  iosId?: unknown;
151
156
  native?: unknown;
@@ -207,6 +212,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
207
212
  mobile?: {
208
213
  android?: string | null | undefined;
209
214
  androidId?: string | undefined;
215
+ inAppBrowser?: string | null | undefined;
210
216
  ios?: string | null | undefined;
211
217
  iosId?: string | undefined;
212
218
  native?: string | undefined;
@@ -259,6 +265,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
259
265
  mobile?: {
260
266
  android?: string | null | undefined;
261
267
  androidId?: unknown;
268
+ inAppBrowser?: string | null | undefined;
262
269
  ios?: string | null | undefined;
263
270
  iosId?: unknown;
264
271
  native?: unknown;
@@ -311,6 +318,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
311
318
  mobile?: {
312
319
  android?: string | null | undefined;
313
320
  androidId?: string | undefined;
321
+ inAppBrowser?: string | null | undefined;
314
322
  ios?: string | null | undefined;
315
323
  iosId?: string | undefined;
316
324
  native?: string | undefined;
@@ -363,6 +371,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
363
371
  mobile?: {
364
372
  android?: string | null | undefined;
365
373
  androidId?: string | undefined;
374
+ inAppBrowser?: string | null | undefined;
366
375
  ios?: string | null | undefined;
367
376
  iosId?: string | undefined;
368
377
  native?: string | undefined;
@@ -575,6 +584,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
575
584
  mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
576
585
  android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
586
  androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
587
+ inAppBrowser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
588
  ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
589
  iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
580
590
  native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
@@ -582,6 +592,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
582
592
  }, "strip", z.ZodTypeAny, {
583
593
  android?: string | null | undefined;
584
594
  androidId?: string | undefined;
595
+ inAppBrowser?: string | null | undefined;
585
596
  ios?: string | null | undefined;
586
597
  iosId?: string | undefined;
587
598
  native?: string | undefined;
@@ -589,6 +600,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
589
600
  }, {
590
601
  android?: string | null | undefined;
591
602
  androidId?: unknown;
603
+ inAppBrowser?: string | null | undefined;
592
604
  ios?: string | null | undefined;
593
605
  iosId?: unknown;
594
606
  native?: unknown;
@@ -596,6 +608,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
596
608
  }>>, {
597
609
  android?: string | null | undefined;
598
610
  androidId?: string | undefined;
611
+ inAppBrowser?: string | null | undefined;
599
612
  ios?: string | null | undefined;
600
613
  iosId?: string | undefined;
601
614
  native?: string | undefined;
@@ -603,6 +616,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
603
616
  } | undefined, {
604
617
  android?: string | null | undefined;
605
618
  androidId?: unknown;
619
+ inAppBrowser?: string | null | undefined;
606
620
  ios?: string | null | undefined;
607
621
  iosId?: unknown;
608
622
  native?: unknown;
@@ -664,6 +678,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
664
678
  mobile?: {
665
679
  android?: string | null | undefined;
666
680
  androidId?: string | undefined;
681
+ inAppBrowser?: string | null | undefined;
667
682
  ios?: string | null | undefined;
668
683
  iosId?: string | undefined;
669
684
  native?: string | undefined;
@@ -716,6 +731,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
716
731
  mobile?: {
717
732
  android?: string | null | undefined;
718
733
  androidId?: unknown;
734
+ inAppBrowser?: string | null | undefined;
719
735
  ios?: string | null | undefined;
720
736
  iosId?: unknown;
721
737
  native?: unknown;
@@ -768,6 +784,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
768
784
  mobile?: {
769
785
  android?: string | null | undefined;
770
786
  androidId?: string | undefined;
787
+ inAppBrowser?: string | null | undefined;
771
788
  ios?: string | null | undefined;
772
789
  iosId?: string | undefined;
773
790
  native?: string | undefined;
@@ -820,6 +837,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
820
837
  mobile?: {
821
838
  android?: string | null | undefined;
822
839
  androidId?: string | undefined;
840
+ inAppBrowser?: string | null | undefined;
823
841
  ios?: string | null | undefined;
824
842
  iosId?: string | undefined;
825
843
  native?: string | undefined;
@@ -891,6 +909,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
891
909
  mobile?: {
892
910
  android?: string | null | undefined;
893
911
  androidId?: string | undefined;
912
+ inAppBrowser?: string | null | undefined;
894
913
  ios?: string | null | undefined;
895
914
  iosId?: string | undefined;
896
915
  native?: string | undefined;
@@ -981,6 +1000,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
981
1000
  mobile?: {
982
1001
  android?: string | null | undefined;
983
1002
  androidId?: string | undefined;
1003
+ inAppBrowser?: string | null | undefined;
984
1004
  ios?: string | null | undefined;
985
1005
  iosId?: string | undefined;
986
1006
  native?: string | undefined;