@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
1 lines • 642 B
Source Map (JSON)
{"version":3,"file":"image.cjs","sourceRoot":"","sources":["../../../src/ui/components/image.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AAEvD,yDAA+C;AAC/C,wCAAgD;AAEnC,QAAA,WAAW,GAAG,IAAA,oBAAM,EAC/B,kBAAU,EACV,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,KAAK,CAAC;IAC7B,KAAK,EAAE,IAAA,eAAG,GAAE;CACb,CAAC,CACH,CAAC","sourcesContent":["import { assign, object } from '@metamask/superstruct';\n\nimport { svg, literal } from '../../internals';\nimport { NodeStruct, NodeType } from '../nodes';\n\nexport const ImageStruct = assign(\n NodeStruct,\n object({\n type: literal(NodeType.Image),\n value: svg(),\n }),\n);\n"]}