@metamask/snaps-sdk 6.21.0 → 6.22.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.
Files changed (162) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/dist/error-wrappers.d.cts +192 -192
  3. package/dist/error-wrappers.d.mts +192 -192
  4. package/dist/images.d.cts +1 -1
  5. package/dist/images.d.mts +1 -1
  6. package/dist/index.cjs +2 -1
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +1 -1
  9. package/dist/index.d.cts.map +1 -1
  10. package/dist/index.d.mts +1 -1
  11. package/dist/index.d.mts.map +1 -1
  12. package/dist/index.mjs +1 -1
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/internals/error-wrappers.d.cts +12 -12
  15. package/dist/internals/error-wrappers.d.mts +12 -12
  16. package/dist/internals/structs.cjs +29 -8
  17. package/dist/internals/structs.cjs.map +1 -1
  18. package/dist/internals/structs.d.cts +8 -0
  19. package/dist/internals/structs.d.cts.map +1 -1
  20. package/dist/internals/structs.d.mts +8 -0
  21. package/dist/internals/structs.d.mts.map +1 -1
  22. package/dist/internals/structs.mjs +29 -9
  23. package/dist/internals/structs.mjs.map +1 -1
  24. package/dist/jsx/validation.cjs +8 -5
  25. package/dist/jsx/validation.cjs.map +1 -1
  26. package/dist/jsx/validation.d.cts +15 -15
  27. package/dist/jsx/validation.d.cts.map +1 -1
  28. package/dist/jsx/validation.d.mts +15 -15
  29. package/dist/jsx/validation.d.mts.map +1 -1
  30. package/dist/jsx/validation.mjs +8 -5
  31. package/dist/jsx/validation.mjs.map +1 -1
  32. package/dist/types/handlers/asset-historical-price.cjs +3 -0
  33. package/dist/types/handlers/asset-historical-price.cjs.map +1 -0
  34. package/dist/types/handlers/asset-historical-price.d.cts +46 -0
  35. package/dist/types/handlers/asset-historical-price.d.cts.map +1 -0
  36. package/dist/types/handlers/asset-historical-price.d.mts +46 -0
  37. package/dist/types/handlers/asset-historical-price.d.mts.map +1 -0
  38. package/dist/types/handlers/asset-historical-price.mjs +2 -0
  39. package/dist/types/handlers/asset-historical-price.mjs.map +1 -0
  40. package/dist/types/handlers/assets-conversion.cjs +0 -11
  41. package/dist/types/handlers/assets-conversion.cjs.map +1 -1
  42. package/dist/types/handlers/assets-conversion.d.cts +43 -22
  43. package/dist/types/handlers/assets-conversion.d.cts.map +1 -1
  44. package/dist/types/handlers/assets-conversion.d.mts +43 -22
  45. package/dist/types/handlers/assets-conversion.d.mts.map +1 -1
  46. package/dist/types/handlers/assets-conversion.mjs +1 -10
  47. package/dist/types/handlers/assets-conversion.mjs.map +1 -1
  48. package/dist/types/handlers/assets-lookup.cjs +4 -4
  49. package/dist/types/handlers/assets-lookup.cjs.map +1 -1
  50. package/dist/types/handlers/assets-lookup.d.cts +24 -24
  51. package/dist/types/handlers/assets-lookup.d.cts.map +1 -1
  52. package/dist/types/handlers/assets-lookup.d.mts +24 -24
  53. package/dist/types/handlers/assets-lookup.d.mts.map +1 -1
  54. package/dist/types/handlers/assets-lookup.mjs +5 -5
  55. package/dist/types/handlers/assets-lookup.mjs.map +1 -1
  56. package/dist/types/handlers/index.cjs +0 -1
  57. package/dist/types/handlers/index.cjs.map +1 -1
  58. package/dist/types/handlers/index.d.cts +2 -1
  59. package/dist/types/handlers/index.d.cts.map +1 -1
  60. package/dist/types/handlers/index.d.mts +2 -1
  61. package/dist/types/handlers/index.d.mts.map +1 -1
  62. package/dist/types/handlers/index.mjs +0 -1
  63. package/dist/types/handlers/index.mjs.map +1 -1
  64. package/dist/types/handlers/user-input.cjs +6 -5
  65. package/dist/types/handlers/user-input.cjs.map +1 -1
  66. package/dist/types/handlers/user-input.d.cts +14 -14
  67. package/dist/types/handlers/user-input.d.mts +14 -14
  68. package/dist/types/handlers/user-input.mjs +3 -2
  69. package/dist/types/handlers/user-input.mjs.map +1 -1
  70. package/dist/types/interface.d.cts +21 -21
  71. package/dist/types/interface.d.mts +21 -21
  72. package/dist/ui/components/address.cjs +2 -1
  73. package/dist/ui/components/address.cjs.map +1 -1
  74. package/dist/ui/components/address.d.cts +4 -4
  75. package/dist/ui/components/address.d.cts.map +1 -1
  76. package/dist/ui/components/address.d.mts +4 -4
  77. package/dist/ui/components/address.d.mts.map +1 -1
  78. package/dist/ui/components/address.mjs +2 -1
  79. package/dist/ui/components/address.mjs.map +1 -1
  80. package/dist/ui/components/button.cjs +1 -1
  81. package/dist/ui/components/button.cjs.map +1 -1
  82. package/dist/ui/components/button.d.cts +7 -7
  83. package/dist/ui/components/button.d.cts.map +1 -1
  84. package/dist/ui/components/button.d.mts +7 -7
  85. package/dist/ui/components/button.d.mts.map +1 -1
  86. package/dist/ui/components/button.mjs +2 -2
  87. package/dist/ui/components/button.mjs.map +1 -1
  88. package/dist/ui/components/copyable.cjs +2 -1
  89. package/dist/ui/components/copyable.cjs.map +1 -1
  90. package/dist/ui/components/copyable.d.cts +4 -4
  91. package/dist/ui/components/copyable.d.mts +4 -4
  92. package/dist/ui/components/copyable.mjs +2 -1
  93. package/dist/ui/components/copyable.mjs.map +1 -1
  94. package/dist/ui/components/divider.cjs +2 -1
  95. package/dist/ui/components/divider.cjs.map +1 -1
  96. package/dist/ui/components/divider.d.cts +1 -1
  97. package/dist/ui/components/divider.d.cts.map +1 -1
  98. package/dist/ui/components/divider.d.mts +1 -1
  99. package/dist/ui/components/divider.d.mts.map +1 -1
  100. package/dist/ui/components/divider.mjs +2 -1
  101. package/dist/ui/components/divider.mjs.map +1 -1
  102. package/dist/ui/components/form.cjs +2 -1
  103. package/dist/ui/components/form.cjs.map +1 -1
  104. package/dist/ui/components/form.d.cts +39 -39
  105. package/dist/ui/components/form.d.cts.map +1 -1
  106. package/dist/ui/components/form.d.mts +39 -39
  107. package/dist/ui/components/form.d.mts.map +1 -1
  108. package/dist/ui/components/form.mjs +2 -1
  109. package/dist/ui/components/form.mjs.map +1 -1
  110. package/dist/ui/components/heading.cjs +2 -1
  111. package/dist/ui/components/heading.cjs.map +1 -1
  112. package/dist/ui/components/heading.d.cts +4 -4
  113. package/dist/ui/components/heading.d.cts.map +1 -1
  114. package/dist/ui/components/heading.d.mts +4 -4
  115. package/dist/ui/components/heading.d.mts.map +1 -1
  116. package/dist/ui/components/heading.mjs +2 -1
  117. package/dist/ui/components/heading.mjs.map +1 -1
  118. package/dist/ui/components/image.cjs +1 -1
  119. package/dist/ui/components/image.cjs.map +1 -1
  120. package/dist/ui/components/image.d.cts +4 -4
  121. package/dist/ui/components/image.d.mts +4 -4
  122. package/dist/ui/components/image.mjs +2 -2
  123. package/dist/ui/components/image.mjs.map +1 -1
  124. package/dist/ui/components/input.cjs +1 -1
  125. package/dist/ui/components/input.cjs.map +1 -1
  126. package/dist/ui/components/input.d.cts +10 -10
  127. package/dist/ui/components/input.d.cts.map +1 -1
  128. package/dist/ui/components/input.d.mts +10 -10
  129. package/dist/ui/components/input.d.mts.map +1 -1
  130. package/dist/ui/components/input.mjs +2 -2
  131. package/dist/ui/components/input.mjs.map +1 -1
  132. package/dist/ui/components/panel.cjs +1 -1
  133. package/dist/ui/components/panel.cjs.map +1 -1
  134. package/dist/ui/components/panel.d.cts +105 -105
  135. package/dist/ui/components/panel.d.mts +105 -105
  136. package/dist/ui/components/panel.mjs +2 -2
  137. package/dist/ui/components/panel.mjs.map +1 -1
  138. package/dist/ui/components/row.cjs +1 -1
  139. package/dist/ui/components/row.cjs.map +1 -1
  140. package/dist/ui/components/row.d.cts +23 -23
  141. package/dist/ui/components/row.d.cts.map +1 -1
  142. package/dist/ui/components/row.d.mts +23 -23
  143. package/dist/ui/components/row.d.mts.map +1 -1
  144. package/dist/ui/components/row.mjs +2 -2
  145. package/dist/ui/components/row.mjs.map +1 -1
  146. package/dist/ui/components/spinner.cjs +2 -1
  147. package/dist/ui/components/spinner.cjs.map +1 -1
  148. package/dist/ui/components/spinner.d.cts +1 -1
  149. package/dist/ui/components/spinner.d.cts.map +1 -1
  150. package/dist/ui/components/spinner.d.mts +1 -1
  151. package/dist/ui/components/spinner.d.mts.map +1 -1
  152. package/dist/ui/components/spinner.mjs +2 -1
  153. package/dist/ui/components/spinner.mjs.map +1 -1
  154. package/dist/ui/components/text.cjs +2 -1
  155. package/dist/ui/components/text.cjs.map +1 -1
  156. package/dist/ui/components/text.d.cts +4 -4
  157. package/dist/ui/components/text.d.mts +4 -4
  158. package/dist/ui/components/text.mjs +2 -1
  159. package/dist/ui/components/text.mjs.map +1 -1
  160. package/dist/ui/nodes.d.cts +1 -1
  161. package/dist/ui/nodes.d.mts +1 -1
  162. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.22.1]
11
+
12
+ ### Fixed
13
+
14
+ - Use `typedUnion` for `UserInputEventStruct` ([#3344](https://github.com/MetaMask/snaps/pull/3344))
15
+ - This improves the performance of the `UserInputEventStruct` type, and allows
16
+ for better error messages when using it.
17
+
18
+ ## [6.22.0]
19
+
20
+ ### Added
21
+
22
+ - Add `nonEmptyRecord` struct ([#3288](https://github.com/MetaMask/snaps/pull/3288))
23
+ - Add support for market data to `onAssetsConversion` handler ([#3299](https://github.com/MetaMask/snaps/pull/3299))
24
+ - Add support for `onAssetHistoricalPrice` handler ([#3282](https://github.com/MetaMask/snaps/pull/3282))
25
+
26
+ ### Fixed
27
+
28
+ - Improve error messages for `AddressStruct` ([#3270](https://github.com/MetaMask/snaps/pull/3270))
29
+ - Improve performance of `typedUnion` ([#3275](https://github.com/MetaMask/snaps/pull/3275))
30
+ - Update `name` and `symbol` to be optional in fungible asset types ([#3300](https://github.com/MetaMask/snaps/pull/3300))
31
+
10
32
  ## [6.21.0]
11
33
 
12
34
  ### Added
@@ -531,7 +553,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
531
553
 
532
554
  - Initial release of this package.
533
555
 
534
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.21.0...HEAD
556
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.22.1...HEAD
557
+ [6.22.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.22.0...@metamask/snaps-sdk@6.22.1
558
+ [6.22.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.21.0...@metamask/snaps-sdk@6.22.0
535
559
  [6.21.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.20.0...@metamask/snaps-sdk@6.21.0
536
560
  [6.20.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.19.0...@metamask/snaps-sdk@6.20.0
537
561
  [6.19.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.18.0...@metamask/snaps-sdk@6.19.0