@metamask/snaps-sdk 4.4.2 → 6.0.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 (39) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/index.js +276 -243
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +138 -104
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/jsx/index.js +183 -115
  7. package/dist/jsx/index.js.map +1 -1
  8. package/dist/jsx/index.mjs +168 -101
  9. package/dist/jsx/index.mjs.map +1 -1
  10. package/dist/jsx/jsx-dev-runtime.js +132 -79
  11. package/dist/jsx/jsx-dev-runtime.js.map +1 -1
  12. package/dist/jsx/jsx-dev-runtime.mjs +117 -65
  13. package/dist/jsx/jsx-dev-runtime.mjs.map +1 -1
  14. package/dist/tsconfig.build.tsbuildinfo +1 -1
  15. package/dist/types/index.d.ts +1 -1
  16. package/dist/types/internals/jsx.d.ts +1 -1
  17. package/dist/types/internals/svg.d.ts +4 -11
  18. package/dist/types/jsx/component.d.ts +16 -9
  19. package/dist/types/jsx/components/Box.d.ts +4 -4
  20. package/dist/types/jsx/components/Link.d.ts +2 -2
  21. package/dist/types/jsx/components/Row.d.ts +5 -2
  22. package/dist/types/jsx/components/Text.d.ts +7 -2
  23. package/dist/types/jsx/components/Tooltip.d.ts +38 -0
  24. package/dist/types/jsx/components/form/Checkbox.d.ts +35 -0
  25. package/dist/types/jsx/components/form/Dropdown.d.ts +5 -7
  26. package/dist/types/jsx/components/form/Field.d.ts +7 -1
  27. package/dist/types/jsx/components/form/FileInput.d.ts +47 -0
  28. package/dist/types/jsx/components/form/Form.d.ts +4 -7
  29. package/dist/types/jsx/components/form/Input.d.ts +2 -4
  30. package/dist/types/jsx/components/form/index.d.ts +5 -1
  31. package/dist/types/jsx/components/formatting/Bold.d.ts +2 -2
  32. package/dist/types/jsx/components/formatting/Italic.d.ts +2 -2
  33. package/dist/types/jsx/components/index.d.ts +3 -1
  34. package/dist/types/jsx/validation.d.ts +34 -39
  35. package/dist/types/types/handlers/name-lookup.d.ts +1 -0
  36. package/dist/types/types/handlers/user-input.d.ts +126 -11
  37. package/dist/types/types/interface.d.ts +29 -21
  38. package/dist/types/ui/components/image.d.ts +0 -7
  39. package/package.json +1 -2
package/CHANGELOG.md CHANGED
@@ -6,6 +6,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [6.0.0]
10
+ ### Added
11
+ - **BREAKING:** Add `FileInput` component ([#2469](https://github.com/MetaMask/snaps/pull/2469), [#2504](https://github.com/MetaMask/snaps/pull/2504))
12
+ - `FormSubmitEvent` may now contain values of type `File`.
13
+ - **BREAKING:** Add `Checkbox` component ([#2501](https://github.com/MetaMask/snaps/pull/2501))
14
+ - `FormSubmitEvent` and `InputChangeEvent` may now contain values of type `boolean`.
15
+ - Add `alignment` prop to `Text` ([#2489](https://github.com/MetaMask/snaps/pull/2489))
16
+ - Add `Tooltip` component ([#2490](https://github.com/MetaMask/snaps/pull/2490))
17
+ - Support additional components inside forms ([#2497](https://github.com/MetaMask/snaps/pull/2497))
18
+ - Support conditional children in most JSX components ([#2506](https://github.com/MetaMask/snaps/pull/2506))
19
+
20
+ ## [5.0.0]
21
+ ### Added
22
+ - Allow row tooltips ([#2483](https://github.com/MetaMask/snaps/pull/2483))
23
+ - Support nested children in JSX ([#2482](https://github.com/MetaMask/snaps/pull/2482))
24
+
25
+ ### Changed
26
+ - Update `onNameLookup` response types ([#2484](https://github.com/MetaMask/snaps/pull/2484))
27
+
28
+ ### Removed
29
+ - **BREAKING:** Remove `parseSvg` and `isSvg` internals ([#2475](https://github.com/MetaMask/snaps/pull/2475))
30
+
31
+ ### Fixed
32
+ - Correct Row variant in JSX ([#2486](https://github.com/MetaMask/snaps/pull/2486))
33
+ - Revert requiring at least one child in JSX components ([#2481](https://github.com/MetaMask/snaps/pull/2481), [#2470](https://github.com/MetaMask/snaps/pull/2470))
34
+ - Correct docs for `Input` and `Dropdown` ([#2479](https://github.com/MetaMask/snaps/pull/2479))
35
+
9
36
  ## [4.4.2]
10
37
  ### Fixed
11
38
  - Require at least 1 child in JSX components ([#2466](https://github.com/MetaMask/snaps/pull/2466))
@@ -154,7 +181,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
154
181
  ### Added
155
182
  - Initial release of this package.
156
183
 
157
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.2...HEAD
184
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.0.0...HEAD
185
+ [6.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@5.0.0...@metamask/snaps-sdk@6.0.0
186
+ [5.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.2...@metamask/snaps-sdk@5.0.0
158
187
  [4.4.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.1...@metamask/snaps-sdk@4.4.2
159
188
  [4.4.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.0...@metamask/snaps-sdk@4.4.1
160
189
  [4.4.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.3.0...@metamask/snaps-sdk@4.4.0