@metamask/snaps-sdk 6.4.0 → 6.5.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 (98) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/dist/error-wrappers.d.cts +288 -288
  3. package/dist/error-wrappers.d.mts +288 -288
  4. package/dist/images.d.cts +1 -1
  5. package/dist/images.d.mts +1 -1
  6. package/dist/internals/error-wrappers.d.cts +18 -18
  7. package/dist/internals/error-wrappers.d.mts +18 -18
  8. package/dist/jsx/component.cjs.map +1 -1
  9. package/dist/jsx/component.d.cts +4 -0
  10. package/dist/jsx/component.d.cts.map +1 -1
  11. package/dist/jsx/component.d.mts +4 -0
  12. package/dist/jsx/component.d.mts.map +1 -1
  13. package/dist/jsx/component.mjs.map +1 -1
  14. package/dist/jsx/components/Address.d.cts +1 -1
  15. package/dist/jsx/components/Address.d.mts +1 -1
  16. package/dist/jsx/components/Box.cjs.map +1 -1
  17. package/dist/jsx/components/Box.d.cts +3 -1
  18. package/dist/jsx/components/Box.d.cts.map +1 -1
  19. package/dist/jsx/components/Box.d.mts +3 -1
  20. package/dist/jsx/components/Box.d.mts.map +1 -1
  21. package/dist/jsx/components/Box.mjs.map +1 -1
  22. package/dist/jsx/components/Card.d.cts +1 -1
  23. package/dist/jsx/components/Card.d.mts +1 -1
  24. package/dist/jsx/components/Container.d.cts +1 -1
  25. package/dist/jsx/components/Container.d.mts +1 -1
  26. package/dist/jsx/components/Copyable.d.cts +1 -1
  27. package/dist/jsx/components/Copyable.d.mts +1 -1
  28. package/dist/jsx/components/Divider.d.cts +1 -1
  29. package/dist/jsx/components/Divider.d.mts +1 -1
  30. package/dist/jsx/components/Footer.d.cts +1 -1
  31. package/dist/jsx/components/Footer.d.mts +1 -1
  32. package/dist/jsx/components/Heading.d.cts +1 -1
  33. package/dist/jsx/components/Heading.d.mts +1 -1
  34. package/dist/jsx/components/Icon.d.cts +1 -1
  35. package/dist/jsx/components/Icon.d.mts +1 -1
  36. package/dist/jsx/components/Image.d.cts +1 -1
  37. package/dist/jsx/components/Image.d.mts +1 -1
  38. package/dist/jsx/components/Link.d.cts +1 -1
  39. package/dist/jsx/components/Link.d.mts +1 -1
  40. package/dist/jsx/components/Row.d.cts +1 -1
  41. package/dist/jsx/components/Row.d.mts +1 -1
  42. package/dist/jsx/components/Section.d.cts +1 -1
  43. package/dist/jsx/components/Section.d.mts +1 -1
  44. package/dist/jsx/components/Spinner.d.cts +1 -1
  45. package/dist/jsx/components/Spinner.d.mts +1 -1
  46. package/dist/jsx/components/Text.d.cts +1 -1
  47. package/dist/jsx/components/Text.d.mts +1 -1
  48. package/dist/jsx/components/Tooltip.d.cts +1 -1
  49. package/dist/jsx/components/Tooltip.d.mts +1 -1
  50. package/dist/jsx/components/Value.d.cts +1 -1
  51. package/dist/jsx/components/Value.d.mts +1 -1
  52. package/dist/jsx/components/form/Button.cjs.map +1 -1
  53. package/dist/jsx/components/form/Button.d.cts +3 -1
  54. package/dist/jsx/components/form/Button.d.cts.map +1 -1
  55. package/dist/jsx/components/form/Button.d.mts +3 -1
  56. package/dist/jsx/components/form/Button.d.mts.map +1 -1
  57. package/dist/jsx/components/form/Button.mjs.map +1 -1
  58. package/dist/jsx/components/form/Checkbox.d.cts +1 -1
  59. package/dist/jsx/components/form/Checkbox.d.mts +1 -1
  60. package/dist/jsx/components/form/Dropdown.d.cts +1 -1
  61. package/dist/jsx/components/form/Dropdown.d.mts +1 -1
  62. package/dist/jsx/components/form/Field.cjs.map +1 -1
  63. package/dist/jsx/components/form/Field.d.cts +3 -3
  64. package/dist/jsx/components/form/Field.d.cts.map +1 -1
  65. package/dist/jsx/components/form/Field.d.mts +3 -3
  66. package/dist/jsx/components/form/Field.d.mts.map +1 -1
  67. package/dist/jsx/components/form/Field.mjs.map +1 -1
  68. package/dist/jsx/components/form/FileInput.d.cts +1 -1
  69. package/dist/jsx/components/form/FileInput.d.mts +1 -1
  70. package/dist/jsx/components/form/Form.d.cts +1 -1
  71. package/dist/jsx/components/form/Form.d.mts +1 -1
  72. package/dist/jsx/components/form/Input.d.cts +1 -1
  73. package/dist/jsx/components/form/Input.d.mts +1 -1
  74. package/dist/jsx/components/form/Option.d.cts +1 -1
  75. package/dist/jsx/components/form/Option.d.mts +1 -1
  76. package/dist/jsx/components/form/Radio.d.cts +1 -1
  77. package/dist/jsx/components/form/Radio.d.mts +1 -1
  78. package/dist/jsx/components/form/RadioGroup.d.cts +1 -1
  79. package/dist/jsx/components/form/RadioGroup.d.mts +1 -1
  80. package/dist/jsx/components/form/Selector.d.cts +1 -1
  81. package/dist/jsx/components/form/Selector.d.mts +1 -1
  82. package/dist/jsx/components/form/SelectorOption.d.cts +1 -1
  83. package/dist/jsx/components/form/SelectorOption.d.mts +1 -1
  84. package/dist/jsx/components/formatting/Bold.d.cts +1 -1
  85. package/dist/jsx/components/formatting/Bold.d.mts +1 -1
  86. package/dist/jsx/components/formatting/Italic.d.cts +1 -1
  87. package/dist/jsx/components/formatting/Italic.d.mts +1 -1
  88. package/dist/jsx/validation.cjs +29 -6
  89. package/dist/jsx/validation.cjs.map +1 -1
  90. package/dist/jsx/validation.d.cts +16 -16
  91. package/dist/jsx/validation.d.cts.map +1 -1
  92. package/dist/jsx/validation.d.mts +16 -16
  93. package/dist/jsx/validation.d.mts.map +1 -1
  94. package/dist/jsx/validation.mjs +29 -6
  95. package/dist/jsx/validation.mjs.map +1 -1
  96. package/dist/types/interface.d.cts +23 -23
  97. package/dist/types/interface.d.mts +23 -23
  98. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -6,6 +6,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [6.5.0]
10
+ ### Added
11
+ - Add `center` prop to `Box` component ([#2716](https://github.com/MetaMask/snaps/pull/2716))
12
+ - Add `form` prop to `Button` component ([#2712](https://github.com/MetaMask/snaps/pull/2712))
13
+ - This allows the `Button` component to be used outside of forms, but still
14
+ submit a form when clicked.
15
+
16
+ ### Fixed
17
+ - Fix invalid types in type declaration in some cases ([#2714](https://github.com/MetaMask/snaps/pull/2714))
18
+ - Fix type issue with `Field` children ([#2715](https://github.com/MetaMask/snaps/pull/2715))
19
+ - `Field` now accepts booleans and `null` as children, in addition to the
20
+ existing types.
21
+
9
22
  ## [6.4.0]
10
23
  ### Added
11
24
  - Add `Section` component ([#2672](https://github.com/MetaMask/snaps/pull/2672))
@@ -242,7 +255,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
242
255
  ### Added
243
256
  - Initial release of this package.
244
257
 
245
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.4.0...HEAD
258
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.5.0...HEAD
259
+ [6.5.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.4.0...@metamask/snaps-sdk@6.5.0
246
260
  [6.4.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.3.0...@metamask/snaps-sdk@6.4.0
247
261
  [6.3.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.2.1...@metamask/snaps-sdk@6.3.0
248
262
  [6.2.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.2.0...@metamask/snaps-sdk@6.2.1