@metamask/snaps-sdk 6.6.0 → 6.8.0

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 (86) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/dist/error-wrappers.d.cts +192 -192
  3. package/dist/error-wrappers.d.mts +192 -192
  4. package/dist/errors.cjs +25 -12
  5. package/dist/errors.cjs.map +1 -1
  6. package/dist/errors.mjs +25 -12
  7. package/dist/errors.mjs.map +1 -1
  8. package/dist/internals/error-wrappers.d.cts +12 -12
  9. package/dist/internals/error-wrappers.d.mts +12 -12
  10. package/dist/jsx/components/Heading.cjs +3 -0
  11. package/dist/jsx/components/Heading.cjs.map +1 -1
  12. package/dist/jsx/components/Heading.d.cts +5 -0
  13. package/dist/jsx/components/Heading.d.cts.map +1 -1
  14. package/dist/jsx/components/Heading.d.mts +5 -0
  15. package/dist/jsx/components/Heading.d.mts.map +1 -1
  16. package/dist/jsx/components/Heading.mjs +3 -0
  17. package/dist/jsx/components/Heading.mjs.map +1 -1
  18. package/dist/jsx/components/Link.cjs.map +1 -1
  19. package/dist/jsx/components/Link.d.cts +2 -1
  20. package/dist/jsx/components/Link.d.cts.map +1 -1
  21. package/dist/jsx/components/Link.d.mts +2 -1
  22. package/dist/jsx/components/Link.d.mts.map +1 -1
  23. package/dist/jsx/components/Link.mjs.map +1 -1
  24. package/dist/jsx/components/Row.cjs.map +1 -1
  25. package/dist/jsx/components/Row.d.cts +2 -1
  26. package/dist/jsx/components/Row.d.cts.map +1 -1
  27. package/dist/jsx/components/Row.d.mts +2 -1
  28. package/dist/jsx/components/Row.d.mts.map +1 -1
  29. package/dist/jsx/components/Row.mjs.map +1 -1
  30. package/dist/jsx/components/Text.cjs +2 -0
  31. package/dist/jsx/components/Text.cjs.map +1 -1
  32. package/dist/jsx/components/Text.d.cts +4 -0
  33. package/dist/jsx/components/Text.d.cts.map +1 -1
  34. package/dist/jsx/components/Text.d.mts +4 -0
  35. package/dist/jsx/components/Text.d.mts.map +1 -1
  36. package/dist/jsx/components/Text.mjs +2 -0
  37. package/dist/jsx/components/Text.mjs.map +1 -1
  38. package/dist/jsx/validation.cjs +15 -2
  39. package/dist/jsx/validation.cjs.map +1 -1
  40. package/dist/jsx/validation.d.cts +3 -0
  41. package/dist/jsx/validation.d.cts.map +1 -1
  42. package/dist/jsx/validation.d.mts +3 -0
  43. package/dist/jsx/validation.d.mts.map +1 -1
  44. package/dist/jsx/validation.mjs +15 -2
  45. package/dist/jsx/validation.mjs.map +1 -1
  46. package/dist/types/handlers/signature.cjs.map +1 -1
  47. package/dist/types/handlers/signature.d.cts +1 -14
  48. package/dist/types/handlers/signature.d.cts.map +1 -1
  49. package/dist/types/handlers/signature.d.mts +1 -14
  50. package/dist/types/handlers/signature.d.mts.map +1 -1
  51. package/dist/types/handlers/signature.mjs.map +1 -1
  52. package/dist/types/interface.d.cts +1 -0
  53. package/dist/types/interface.d.cts.map +1 -1
  54. package/dist/types/interface.d.mts +1 -0
  55. package/dist/types/interface.d.mts.map +1 -1
  56. package/dist/types/methods/get-currency-rate.cjs +3 -0
  57. package/dist/types/methods/get-currency-rate.cjs.map +1 -0
  58. package/dist/types/methods/get-currency-rate.d.cts +29 -0
  59. package/dist/types/methods/get-currency-rate.d.cts.map +1 -0
  60. package/dist/types/methods/get-currency-rate.d.mts +29 -0
  61. package/dist/types/methods/get-currency-rate.d.mts.map +1 -0
  62. package/dist/types/methods/get-currency-rate.mjs +2 -0
  63. package/dist/types/methods/get-currency-rate.mjs.map +1 -0
  64. package/dist/types/methods/index.cjs +2 -0
  65. package/dist/types/methods/index.cjs.map +1 -1
  66. package/dist/types/methods/index.d.cts +2 -0
  67. package/dist/types/methods/index.d.cts.map +1 -1
  68. package/dist/types/methods/index.d.mts +2 -0
  69. package/dist/types/methods/index.d.mts.map +1 -1
  70. package/dist/types/methods/index.mjs +2 -0
  71. package/dist/types/methods/index.mjs.map +1 -1
  72. package/dist/types/methods/provider-request.cjs +3 -0
  73. package/dist/types/methods/provider-request.cjs.map +1 -0
  74. package/dist/types/methods/provider-request.d.cts +25 -0
  75. package/dist/types/methods/provider-request.d.cts.map +1 -0
  76. package/dist/types/methods/provider-request.d.mts +25 -0
  77. package/dist/types/methods/provider-request.d.mts.map +1 -0
  78. package/dist/types/methods/provider-request.mjs +2 -0
  79. package/dist/types/methods/provider-request.mjs.map +1 -0
  80. package/dist/types/methods/update-interface.cjs.map +1 -1
  81. package/dist/types/methods/update-interface.d.cts +2 -1
  82. package/dist/types/methods/update-interface.d.cts.map +1 -1
  83. package/dist/types/methods/update-interface.d.mts +2 -1
  84. package/dist/types/methods/update-interface.d.mts.map +1 -1
  85. package/dist/types/methods/update-interface.mjs.map +1 -1
  86. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.8.0]
11
+
12
+ ### Added
13
+
14
+ - Add `snap_experimentalProviderRequest` JSON-RPC method ([#2773](https://github.com/MetaMask/snaps/pull/2773))
15
+ - This method is experimental and will likely be removed in a future release.
16
+
17
+ ### Changed
18
+
19
+ - Allow updating interface context ([#2809](https://github.com/MetaMask/snaps/pull/2809))
20
+ - `snap_updateInterface` now accepts a `context` parameter to update the
21
+ context of an interface.
22
+ - Remove `eth_sign` ([#2772](https://github.com/MetaMask/snaps/pull/2772))
23
+ - This method was removed from the MetaMask extension, so any references to it
24
+ in Snaps can be removed.
25
+
26
+ ### Removed
27
+
28
+ - Remove `AccountSelector` component ([#2794](https://github.com/MetaMask/snaps/pull/2794))
29
+ - This is technically a breaking change, but the `AccountSelector` component was never actually implemented, so it
30
+ should not affect any existing code.
31
+
32
+ ## [6.7.0]
33
+
34
+ ### Added
35
+
36
+ - Add `snap_getCurrencyRate` JSON-RPC method ([#2763](https://github.com/MetaMask/snaps/pull/2763))
37
+ - Add `AccountSelector` component ([#2764](https://github.com/MetaMask/snaps/pull/2764), [#2768](https://github.com/MetaMask/snaps/pull/2768))
38
+ - Add `size` prop to the `Heading` component ([#2759](https://github.com/MetaMask/snaps/pull/2759))
39
+
40
+ ### Changed
41
+
42
+ - Allow `Link` in `Row` and `Address` in `Link` ([#2761](https://github.com/MetaMask/snaps/pull/2761))
43
+
10
44
  ## [6.6.0]
11
45
 
12
46
  ### Added
@@ -349,7 +383,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
349
383
 
350
384
  - Initial release of this package.
351
385
 
352
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.6.0...HEAD
386
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.8.0...HEAD
387
+ [6.8.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.7.0...@metamask/snaps-sdk@6.8.0
388
+ [6.7.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.6.0...@metamask/snaps-sdk@6.7.0
353
389
  [6.6.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.5.1...@metamask/snaps-sdk@6.6.0
354
390
  [6.5.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.5.0...@metamask/snaps-sdk@6.5.1
355
391
  [6.5.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.4.0...@metamask/snaps-sdk@6.5.0