Socket
Socket
Sign inDemoInstall

@metamask/snaps-sdk

Package Overview
Dependencies
Maintainers
12
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/snaps-sdk - npm Package Compare versions

Comparing version 4.4.0 to 4.4.1

7

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## [4.4.1]
### Fixed
- Fix invalid `@metamask/snaps-sdk` imports ([#2452](https://github.com/MetaMask/snaps/pull/2452))
## [4.4.0]

@@ -150,3 +154,4 @@ ### Added

[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.0...HEAD
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.1...HEAD
[4.4.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.4.0...@metamask/snaps-sdk@4.4.1
[4.4.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.3.0...@metamask/snaps-sdk@4.4.0

@@ -153,0 +158,0 @@ [4.3.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-sdk@4.2.0...@metamask/snaps-sdk@4.3.0

32

dist/types/jsx/validation.d.ts

@@ -99,5 +99,10 @@ import type { Struct } from 'superstruct';

*/
export declare const BoxChildStruct: Struct<SnapElement<import("./components").AddressProps, "Address"> | SnapElement<import("./components").BoxProps, "Box"> | SnapElement<import("./components").CopyableProps, "Copyable"> | SnapElement<Record<string, never>, "Divider"> | SnapElement<import("./components").ButtonProps, "Button"> | SnapElement<{
export declare const BoxChildStruct: Struct<SnapElement<import("./components").ButtonProps, "Button"> | SnapElement<{
name: string;
type?: "number" | "text" | "password" | undefined;
value?: string | undefined;
placeholder?: string | undefined;
}, "Input"> | SnapElement<{
name: string;
value?: string | undefined;
children: MaybeArray<SnapElement<{

@@ -108,10 +113,5 @@ value: string;

}, "Dropdown"> | SnapElement<{
name: string;
type?: "number" | "text" | "password" | undefined;
value?: string | undefined;
placeholder?: string | undefined;
}, "Input"> | SnapElement<{
children: MaybeArray<SnapElement<import("./components").ButtonProps, "Button"> | SnapElement<import("./components").FieldProps, "Field">>;
name: string;
}, "Form"> | SnapElement<import("./components").BoldProps, "Bold"> | SnapElement<import("./components").ItalicProps, "Italic"> | SnapElement<import("./components").LinkProps, "Link"> | SnapElement<import("./components").TextProps, "Text"> | SnapElement<{
}, "Form"> | SnapElement<import("./components").BoldProps, "Bold"> | SnapElement<import("./components").ItalicProps, "Italic"> | SnapElement<import("./components").AddressProps, "Address"> | SnapElement<import("./components").BoxProps, "Box"> | SnapElement<import("./components").CopyableProps, "Copyable"> | SnapElement<Record<string, never>, "Divider"> | SnapElement<{
children: StringElement;

@@ -121,3 +121,3 @@ }, "Heading"> | SnapElement<{

alt?: string | undefined;
}, "Image"> | SnapElement<import("./components").RowProps, "Row"> | SnapElement<Record<string, never>, "Spinner">, null>;
}, "Image"> | SnapElement<import("./components").LinkProps, "Link"> | SnapElement<import("./components").TextProps, "Text"> | SnapElement<import("./components").RowProps, "Row"> | SnapElement<Record<string, never>, "Spinner">, null>;
/**

@@ -127,5 +127,10 @@ * For now, the allowed JSX elements at the root are the same as the allowed

*/
export declare const RootJSXElementStruct: Struct<SnapElement<import("./components").AddressProps, "Address"> | SnapElement<import("./components").BoxProps, "Box"> | SnapElement<import("./components").CopyableProps, "Copyable"> | SnapElement<Record<string, never>, "Divider"> | SnapElement<import("./components").ButtonProps, "Button"> | SnapElement<{
export declare const RootJSXElementStruct: Struct<SnapElement<import("./components").ButtonProps, "Button"> | SnapElement<{
name: string;
type?: "number" | "text" | "password" | undefined;
value?: string | undefined;
placeholder?: string | undefined;
}, "Input"> | SnapElement<{
name: string;
value?: string | undefined;
children: MaybeArray<SnapElement<{

@@ -136,10 +141,5 @@ value: string;

}, "Dropdown"> | SnapElement<{
name: string;
type?: "number" | "text" | "password" | undefined;
value?: string | undefined;
placeholder?: string | undefined;
}, "Input"> | SnapElement<{
children: MaybeArray<SnapElement<import("./components").ButtonProps, "Button"> | SnapElement<import("./components").FieldProps, "Field">>;
name: string;
}, "Form"> | SnapElement<import("./components").BoldProps, "Bold"> | SnapElement<import("./components").ItalicProps, "Italic"> | SnapElement<import("./components").LinkProps, "Link"> | SnapElement<import("./components").TextProps, "Text"> | SnapElement<{
}, "Form"> | SnapElement<import("./components").BoldProps, "Bold"> | SnapElement<import("./components").ItalicProps, "Italic"> | SnapElement<import("./components").AddressProps, "Address"> | SnapElement<import("./components").BoxProps, "Box"> | SnapElement<import("./components").CopyableProps, "Copyable"> | SnapElement<Record<string, never>, "Divider"> | SnapElement<{
children: StringElement;

@@ -149,3 +149,3 @@ }, "Heading"> | SnapElement<{

alt?: string | undefined;
}, "Image"> | SnapElement<import("./components").RowProps, "Row"> | SnapElement<Record<string, never>, "Spinner">, null>;
}, "Image"> | SnapElement<import("./components").LinkProps, "Link"> | SnapElement<import("./components").TextProps, "Text"> | SnapElement<import("./components").RowProps, "Row"> | SnapElement<Record<string, never>, "Spinner">, null>;
/**

@@ -152,0 +152,0 @@ * A struct for the {@link JSXElement} type.

@@ -14,23 +14,3 @@ import type { Infer } from 'superstruct';

export declare type ComponentOrElement = Component | JSXElement;
export declare const ComponentOrElementStruct: import("superstruct").Struct<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
name: string;
value?: string | undefined;
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
value: string;
children: string;
}, "Option">>;
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
name: string;
type?: "number" | "text" | "password" | undefined;
value?: string | undefined;
placeholder?: string | undefined;
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
name: string;
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
src: string;
alt?: string | undefined;
}, "Image"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | {
export declare const ComponentOrElementStruct: import("superstruct").Struct<{
value: string;

@@ -76,5 +56,5 @@ type: import("../ui").NodeType.Copyable;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -94,5 +74,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -105,4 +85,24 @@ value: string;

})[];
}, null>;
} | import("../jsx").SnapElement<import("../jsx").ButtonProps, "Button"> | import("../jsx").SnapElement<{
name: string;
type?: "number" | "text" | "password" | undefined;
value?: string | undefined;
placeholder?: string | undefined;
}, "Input"> | import("../jsx").SnapElement<{
name: string;
value?: string | undefined;
children: import("../jsx").MaybeArray<import("../jsx").SnapElement<{
value: string;
children: string;
}, "Option">>;
}, "Dropdown"> | import("../jsx").SnapElement<{
children: import("../jsx").MaybeArray<import("../jsx").SnapElement<import("../jsx").ButtonProps, "Button"> | import("../jsx").SnapElement<import("../jsx").FieldProps, "Field">>;
name: string;
}, "Form"> | import("../jsx").SnapElement<import("../jsx").BoldProps, "Bold"> | import("../jsx").SnapElement<import("../jsx").ItalicProps, "Italic"> | import("../jsx").SnapElement<import("../jsx").AddressProps, "Address"> | import("../jsx").SnapElement<import("../jsx").BoxProps, "Box"> | import("../jsx").SnapElement<import("../jsx").CopyableProps, "Copyable"> | import("../jsx").SnapElement<Record<string, never>, "Divider"> | import("../jsx").SnapElement<{
children: import("../jsx").StringElement;
}, "Heading"> | import("../jsx").SnapElement<{
src: string;
alt?: string | undefined;
}, "Image"> | import("../jsx").SnapElement<import("../jsx").LinkProps, "Link"> | import("../jsx").SnapElement<import("../jsx").TextProps, "Text"> | import("../jsx").SnapElement<import("../jsx").RowProps, "Row"> | import("../jsx").SnapElement<Record<string, never>, "Spinner">, null>;
export declare const InterfaceContextStruct: import("superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
export declare type InterfaceContext = Infer<typeof InterfaceContextStruct>;

@@ -8,5 +8,5 @@ import type { Infer } from 'superstruct';

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -31,5 +31,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -49,5 +49,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -64,5 +64,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -115,5 +115,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -131,5 +131,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -149,5 +149,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -154,0 +154,0 @@ value: string;

@@ -17,5 +17,5 @@ import type { Infer } from 'superstruct';

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
}, {

@@ -67,5 +67,5 @@ type: import("superstruct").Struct<NodeType.Input, NodeType.Input>;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
}, "type">]) => {

@@ -76,5 +76,5 @@ type: NodeType.Input;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
};

@@ -49,5 +49,5 @@ import type { Infer, Struct } from 'superstruct';

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -67,5 +67,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -121,5 +121,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -139,5 +139,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -191,5 +191,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -209,5 +209,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -311,5 +311,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -329,5 +329,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -382,5 +382,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -400,5 +400,5 @@ value: string;

error?: string | undefined;
placeholder?: string | undefined;
label?: string | undefined;
inputType?: "number" | "text" | "password" | undefined;
placeholder?: string | undefined;
} | {

@@ -405,0 +405,0 @@ value: string;

{
"name": "@metamask/snaps-sdk",
"version": "4.4.0",
"version": "4.4.1",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc