@metamask/snaps-sdk 6.20.0 → 6.22.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.
- package/CHANGELOG.md +23 -1
- package/dist/error-wrappers.d.cts +192 -192
- package/dist/error-wrappers.d.mts +192 -192
- package/dist/images.d.cts +1 -1
- package/dist/images.d.mts +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internals/error-wrappers.d.cts +12 -12
- package/dist/internals/error-wrappers.d.mts +12 -12
- package/dist/internals/structs.cjs +29 -8
- package/dist/internals/structs.cjs.map +1 -1
- package/dist/internals/structs.d.cts +8 -0
- package/dist/internals/structs.d.cts.map +1 -1
- package/dist/internals/structs.d.mts +8 -0
- package/dist/internals/structs.d.mts.map +1 -1
- package/dist/internals/structs.mjs +29 -9
- package/dist/internals/structs.mjs.map +1 -1
- package/dist/jsx/components/form/AddressInput.cjs +1 -0
- package/dist/jsx/components/form/AddressInput.cjs.map +1 -1
- package/dist/jsx/components/form/AddressInput.d.cts +2 -0
- package/dist/jsx/components/form/AddressInput.d.cts.map +1 -1
- package/dist/jsx/components/form/AddressInput.d.mts +2 -0
- package/dist/jsx/components/form/AddressInput.d.mts.map +1 -1
- package/dist/jsx/components/form/AddressInput.mjs +1 -0
- package/dist/jsx/components/form/AddressInput.mjs.map +1 -1
- package/dist/jsx/validation.cjs +9 -5
- package/dist/jsx/validation.cjs.map +1 -1
- package/dist/jsx/validation.d.cts +15 -15
- package/dist/jsx/validation.d.cts.map +1 -1
- package/dist/jsx/validation.d.mts +15 -15
- package/dist/jsx/validation.d.mts.map +1 -1
- package/dist/jsx/validation.mjs +9 -5
- package/dist/jsx/validation.mjs.map +1 -1
- package/dist/types/handlers/asset-historical-price.cjs +3 -0
- package/dist/types/handlers/asset-historical-price.cjs.map +1 -0
- package/dist/types/handlers/asset-historical-price.d.cts +46 -0
- package/dist/types/handlers/asset-historical-price.d.cts.map +1 -0
- package/dist/types/handlers/asset-historical-price.d.mts +46 -0
- package/dist/types/handlers/asset-historical-price.d.mts.map +1 -0
- package/dist/types/handlers/asset-historical-price.mjs +2 -0
- package/dist/types/handlers/asset-historical-price.mjs.map +1 -0
- package/dist/types/handlers/assets-conversion.cjs +0 -11
- package/dist/types/handlers/assets-conversion.cjs.map +1 -1
- package/dist/types/handlers/assets-conversion.d.cts +43 -22
- package/dist/types/handlers/assets-conversion.d.cts.map +1 -1
- package/dist/types/handlers/assets-conversion.d.mts +43 -22
- package/dist/types/handlers/assets-conversion.d.mts.map +1 -1
- package/dist/types/handlers/assets-conversion.mjs +1 -10
- package/dist/types/handlers/assets-conversion.mjs.map +1 -1
- package/dist/types/handlers/assets-lookup.cjs +4 -4
- package/dist/types/handlers/assets-lookup.cjs.map +1 -1
- package/dist/types/handlers/assets-lookup.d.cts +24 -24
- package/dist/types/handlers/assets-lookup.d.cts.map +1 -1
- package/dist/types/handlers/assets-lookup.d.mts +24 -24
- package/dist/types/handlers/assets-lookup.d.mts.map +1 -1
- package/dist/types/handlers/assets-lookup.mjs +5 -5
- package/dist/types/handlers/assets-lookup.mjs.map +1 -1
- package/dist/types/handlers/index.cjs +0 -1
- package/dist/types/handlers/index.cjs.map +1 -1
- package/dist/types/handlers/index.d.cts +2 -1
- package/dist/types/handlers/index.d.cts.map +1 -1
- package/dist/types/handlers/index.d.mts +2 -1
- package/dist/types/handlers/index.d.mts.map +1 -1
- package/dist/types/handlers/index.mjs +0 -1
- package/dist/types/handlers/index.mjs.map +1 -1
- package/dist/types/handlers/user-input.d.cts +10 -10
- package/dist/types/handlers/user-input.d.mts +10 -10
- package/dist/types/interface.d.cts +21 -21
- package/dist/types/interface.d.mts +21 -21
- package/dist/ui/components/address.cjs +2 -1
- package/dist/ui/components/address.cjs.map +1 -1
- package/dist/ui/components/address.d.cts +4 -4
- package/dist/ui/components/address.d.cts.map +1 -1
- package/dist/ui/components/address.d.mts +4 -4
- package/dist/ui/components/address.d.mts.map +1 -1
- package/dist/ui/components/address.mjs +2 -1
- package/dist/ui/components/address.mjs.map +1 -1
- package/dist/ui/components/button.cjs +1 -1
- package/dist/ui/components/button.cjs.map +1 -1
- package/dist/ui/components/button.d.cts +7 -7
- package/dist/ui/components/button.d.cts.map +1 -1
- package/dist/ui/components/button.d.mts +7 -7
- package/dist/ui/components/button.d.mts.map +1 -1
- package/dist/ui/components/button.mjs +2 -2
- package/dist/ui/components/button.mjs.map +1 -1
- package/dist/ui/components/copyable.cjs +2 -1
- package/dist/ui/components/copyable.cjs.map +1 -1
- package/dist/ui/components/copyable.d.cts +4 -4
- package/dist/ui/components/copyable.d.mts +4 -4
- package/dist/ui/components/copyable.mjs +2 -1
- package/dist/ui/components/copyable.mjs.map +1 -1
- package/dist/ui/components/divider.cjs +2 -1
- package/dist/ui/components/divider.cjs.map +1 -1
- package/dist/ui/components/divider.d.cts +1 -1
- package/dist/ui/components/divider.d.cts.map +1 -1
- package/dist/ui/components/divider.d.mts +1 -1
- package/dist/ui/components/divider.d.mts.map +1 -1
- package/dist/ui/components/divider.mjs +2 -1
- package/dist/ui/components/divider.mjs.map +1 -1
- package/dist/ui/components/form.cjs +2 -1
- package/dist/ui/components/form.cjs.map +1 -1
- package/dist/ui/components/form.d.cts +39 -39
- package/dist/ui/components/form.d.cts.map +1 -1
- package/dist/ui/components/form.d.mts +39 -39
- package/dist/ui/components/form.d.mts.map +1 -1
- package/dist/ui/components/form.mjs +2 -1
- package/dist/ui/components/form.mjs.map +1 -1
- package/dist/ui/components/heading.cjs +2 -1
- package/dist/ui/components/heading.cjs.map +1 -1
- package/dist/ui/components/heading.d.cts +4 -4
- package/dist/ui/components/heading.d.cts.map +1 -1
- package/dist/ui/components/heading.d.mts +4 -4
- package/dist/ui/components/heading.d.mts.map +1 -1
- package/dist/ui/components/heading.mjs +2 -1
- package/dist/ui/components/heading.mjs.map +1 -1
- package/dist/ui/components/image.cjs +1 -1
- package/dist/ui/components/image.cjs.map +1 -1
- package/dist/ui/components/image.d.cts +4 -4
- package/dist/ui/components/image.d.mts +4 -4
- package/dist/ui/components/image.mjs +2 -2
- package/dist/ui/components/image.mjs.map +1 -1
- package/dist/ui/components/input.cjs +1 -1
- package/dist/ui/components/input.cjs.map +1 -1
- package/dist/ui/components/input.d.cts +10 -10
- package/dist/ui/components/input.d.cts.map +1 -1
- package/dist/ui/components/input.d.mts +10 -10
- package/dist/ui/components/input.d.mts.map +1 -1
- package/dist/ui/components/input.mjs +2 -2
- package/dist/ui/components/input.mjs.map +1 -1
- package/dist/ui/components/panel.cjs +1 -1
- package/dist/ui/components/panel.cjs.map +1 -1
- package/dist/ui/components/panel.d.cts +105 -105
- package/dist/ui/components/panel.d.mts +105 -105
- package/dist/ui/components/panel.mjs +2 -2
- package/dist/ui/components/panel.mjs.map +1 -1
- package/dist/ui/components/row.cjs +1 -1
- package/dist/ui/components/row.cjs.map +1 -1
- package/dist/ui/components/row.d.cts +23 -23
- package/dist/ui/components/row.d.cts.map +1 -1
- package/dist/ui/components/row.d.mts +23 -23
- package/dist/ui/components/row.d.mts.map +1 -1
- package/dist/ui/components/row.mjs +2 -2
- package/dist/ui/components/row.mjs.map +1 -1
- package/dist/ui/components/spinner.cjs +2 -1
- package/dist/ui/components/spinner.cjs.map +1 -1
- package/dist/ui/components/spinner.d.cts +1 -1
- package/dist/ui/components/spinner.d.cts.map +1 -1
- package/dist/ui/components/spinner.d.mts +1 -1
- package/dist/ui/components/spinner.d.mts.map +1 -1
- package/dist/ui/components/spinner.mjs +2 -1
- package/dist/ui/components/spinner.mjs.map +1 -1
- package/dist/ui/components/text.cjs +2 -1
- package/dist/ui/components/text.cjs.map +1 -1
- package/dist/ui/components/text.d.cts +4 -4
- package/dist/ui/components/text.d.mts +4 -4
- package/dist/ui/components/text.mjs +2 -1
- package/dist/ui/components/text.mjs.map +1 -1
- package/dist/ui/nodes.d.cts +1 -1
- package/dist/ui/nodes.d.mts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.22.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `nonEmptyRecord` struct ([#3288](https://github.com/MetaMask/snaps/pull/3288))
|
|
15
|
+
- Add support for market data to `onAssetsConversion` handler ([#3299](https://github.com/MetaMask/snaps/pull/3299))
|
|
16
|
+
- Add support for `onAssetHistoricalPrice` handler ([#3282](https://github.com/MetaMask/snaps/pull/3282))
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Improve error messages for `AddressStruct` ([#3270](https://github.com/MetaMask/snaps/pull/3270))
|
|
21
|
+
- Improve performance of `typedUnion` ([#3275](https://github.com/MetaMask/snaps/pull/3275))
|
|
22
|
+
- Update `name` and `symbol` to be optional in fungible asset types ([#3300](https://github.com/MetaMask/snaps/pull/3300))
|
|
23
|
+
|
|
24
|
+
## [6.21.0]
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Add `displayAvatar` prop to `AddressInput` component ([#3264](https://github.com/MetaMask/snaps/pull/3264))
|
|
29
|
+
|
|
10
30
|
## [6.20.0]
|
|
11
31
|
|
|
12
32
|
### Added
|
|
@@ -525,7 +545,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
525
545
|
|
|
526
546
|
- Initial release of this package.
|
|
527
547
|
|
|
528
|
-
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.
|
|
548
|
+
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.22.0...HEAD
|
|
549
|
+
[6.22.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.21.0...@metamask/snaps-sdk@6.22.0
|
|
550
|
+
[6.21.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.20.0...@metamask/snaps-sdk@6.21.0
|
|
529
551
|
[6.20.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.19.0...@metamask/snaps-sdk@6.20.0
|
|
530
552
|
[6.19.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.18.0...@metamask/snaps-sdk@6.19.0
|
|
531
553
|
[6.18.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@6.17.1...@metamask/snaps-sdk@6.18.0
|