Skip to content

Commit

Permalink
Update snap_notify to allow JSX content (#2706)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hmalik88 authored Sep 24, 2024
1 parent 8b194d6 commit 803d314
Show file tree
Hide file tree
Showing 9 changed files with 498 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "oeprRlfJxxGH+tvOyO7i4hy3l0SjzR3rA73tZS7vlZk=",
"shasum": "Rvk4nDRt8bofy5oUtavVGwVB0pnZ7BdsmO9V315Qs+w=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/browserify/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "PL+Bg6eUiAl4uBSuGbX4gdcrgxFZIedy/N7FjVMzKIY=",
"shasum": "3LsbiHzT2I8gHJPQCu6JbTiKKCy5XA2VQQdW9Qkn3XU=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/snaps-rpc-methods/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ module.exports = deepmerge(baseConfig, {
],
coverageThreshold: {
global: {
branches: 92.62,
branches: 92.68,
functions: 97.17,
lines: 97.67,
statements: 97.16,
lines: 97.71,
statements: 97.21,
},
},
});
Loading

0 comments on commit 803d314

Please sign in to comment.