Skip to content

Commit 803d314

Browse files
authored
Update snap_notify to allow JSX content (#2706)
Added the `title`, `detailedView` and `footerLink` properties to `inApp` notifications. This allows snaps to provide expanded views with their notifications. The `detailedView` property lets snaps return JSX content with a limited subset of components. The `footerLink` property is optional when providing an expanded view. This content is initially being exposed to populate a modal, but in the future may populate an entire page.
1 parent 8b194d6 commit 803d314

File tree

9 files changed

+498
-80
lines changed

9 files changed

+498
-80
lines changed

packages/examples/packages/browserify-plugin/snap.manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "oeprRlfJxxGH+tvOyO7i4hy3l0SjzR3rA73tZS7vlZk=",
10+
"shasum": "Rvk4nDRt8bofy5oUtavVGwVB0pnZ7BdsmO9V315Qs+w=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/examples/packages/browserify/snap.manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "PL+Bg6eUiAl4uBSuGbX4gdcrgxFZIedy/N7FjVMzKIY=",
10+
"shasum": "3LsbiHzT2I8gHJPQCu6JbTiKKCy5XA2VQQdW9Qkn3XU=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/snaps-rpc-methods/jest.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ module.exports = deepmerge(baseConfig, {
1010
],
1111
coverageThreshold: {
1212
global: {
13-
branches: 92.62,
13+
branches: 92.68,
1414
functions: 97.17,
15-
lines: 97.67,
16-
statements: 97.16,
15+
lines: 97.71,
16+
statements: 97.21,
1717
},
1818
},
1919
});

0 commit comments

Comments
 (0)