@metamask/snaps-sdk 10.4.0 → 11.0.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.
Files changed (696) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/dist/error-wrappers.d.cts +192 -192
  3. package/dist/error-wrappers.d.mts +192 -192
  4. package/dist/errors.cjs +27 -1
  5. package/dist/errors.cjs.map +1 -1
  6. package/dist/errors.d.cts +14 -0
  7. package/dist/errors.d.cts.map +1 -1
  8. package/dist/errors.d.mts +14 -0
  9. package/dist/errors.d.mts.map +1 -1
  10. package/dist/errors.mjs +25 -1
  11. package/dist/errors.mjs.map +1 -1
  12. package/dist/images.cjs +1 -41
  13. package/dist/images.cjs.map +1 -1
  14. package/dist/images.d.cts +0 -49
  15. package/dist/images.d.cts.map +1 -1
  16. package/dist/images.d.mts +0 -49
  17. package/dist/images.d.mts.map +1 -1
  18. package/dist/images.mjs +0 -39
  19. package/dist/images.mjs.map +1 -1
  20. package/dist/index.cjs +8 -0
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +8 -0
  23. package/dist/index.d.cts.map +1 -1
  24. package/dist/index.d.mts +8 -0
  25. package/dist/index.d.mts.map +1 -1
  26. package/dist/index.mjs +8 -0
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/internals/error-wrappers.d.cts +12 -12
  29. package/dist/internals/error-wrappers.d.mts +12 -12
  30. package/dist/jsx/components/Address.cjs +1 -0
  31. package/dist/jsx/components/Address.cjs.map +1 -1
  32. package/dist/jsx/components/Address.d.cts +4 -1
  33. package/dist/jsx/components/Address.d.cts.map +1 -1
  34. package/dist/jsx/components/Address.d.mts +4 -1
  35. package/dist/jsx/components/Address.d.mts.map +1 -1
  36. package/dist/jsx/components/Address.mjs +1 -0
  37. package/dist/jsx/components/Address.mjs.map +1 -1
  38. package/dist/jsx/components/Avatar.cjs +1 -0
  39. package/dist/jsx/components/Avatar.cjs.map +1 -1
  40. package/dist/jsx/components/Avatar.d.cts +4 -1
  41. package/dist/jsx/components/Avatar.d.cts.map +1 -1
  42. package/dist/jsx/components/Avatar.d.mts +4 -1
  43. package/dist/jsx/components/Avatar.d.mts.map +1 -1
  44. package/dist/jsx/components/Avatar.mjs +1 -0
  45. package/dist/jsx/components/Avatar.mjs.map +1 -1
  46. package/dist/jsx/components/Banner.cjs +1 -0
  47. package/dist/jsx/components/Banner.cjs.map +1 -1
  48. package/dist/jsx/components/Banner.d.cts +4 -1
  49. package/dist/jsx/components/Banner.d.cts.map +1 -1
  50. package/dist/jsx/components/Banner.d.mts +4 -1
  51. package/dist/jsx/components/Banner.d.mts.map +1 -1
  52. package/dist/jsx/components/Banner.mjs +1 -0
  53. package/dist/jsx/components/Banner.mjs.map +1 -1
  54. package/dist/jsx/components/Box.cjs +1 -0
  55. package/dist/jsx/components/Box.cjs.map +1 -1
  56. package/dist/jsx/components/Box.d.cts +4 -1
  57. package/dist/jsx/components/Box.d.cts.map +1 -1
  58. package/dist/jsx/components/Box.d.mts +4 -1
  59. package/dist/jsx/components/Box.d.mts.map +1 -1
  60. package/dist/jsx/components/Box.mjs +1 -0
  61. package/dist/jsx/components/Box.mjs.map +1 -1
  62. package/dist/jsx/components/Card.cjs +1 -0
  63. package/dist/jsx/components/Card.cjs.map +1 -1
  64. package/dist/jsx/components/Card.d.cts +4 -1
  65. package/dist/jsx/components/Card.d.cts.map +1 -1
  66. package/dist/jsx/components/Card.d.mts +4 -1
  67. package/dist/jsx/components/Card.d.mts.map +1 -1
  68. package/dist/jsx/components/Card.mjs +1 -0
  69. package/dist/jsx/components/Card.mjs.map +1 -1
  70. package/dist/jsx/components/Container.cjs +1 -0
  71. package/dist/jsx/components/Container.cjs.map +1 -1
  72. package/dist/jsx/components/Container.d.cts +4 -1
  73. package/dist/jsx/components/Container.d.cts.map +1 -1
  74. package/dist/jsx/components/Container.d.mts +4 -1
  75. package/dist/jsx/components/Container.d.mts.map +1 -1
  76. package/dist/jsx/components/Container.mjs +1 -0
  77. package/dist/jsx/components/Container.mjs.map +1 -1
  78. package/dist/jsx/components/Copyable.cjs +1 -0
  79. package/dist/jsx/components/Copyable.cjs.map +1 -1
  80. package/dist/jsx/components/Copyable.d.cts +4 -1
  81. package/dist/jsx/components/Copyable.d.cts.map +1 -1
  82. package/dist/jsx/components/Copyable.d.mts +4 -1
  83. package/dist/jsx/components/Copyable.d.mts.map +1 -1
  84. package/dist/jsx/components/Copyable.mjs +1 -0
  85. package/dist/jsx/components/Copyable.mjs.map +1 -1
  86. package/dist/jsx/components/Divider.cjs +1 -0
  87. package/dist/jsx/components/Divider.cjs.map +1 -1
  88. package/dist/jsx/components/Divider.d.cts +3 -1
  89. package/dist/jsx/components/Divider.d.cts.map +1 -1
  90. package/dist/jsx/components/Divider.d.mts +3 -1
  91. package/dist/jsx/components/Divider.d.mts.map +1 -1
  92. package/dist/jsx/components/Divider.mjs +1 -0
  93. package/dist/jsx/components/Divider.mjs.map +1 -1
  94. package/dist/jsx/components/Footer.cjs +1 -0
  95. package/dist/jsx/components/Footer.cjs.map +1 -1
  96. package/dist/jsx/components/Footer.d.cts +4 -1
  97. package/dist/jsx/components/Footer.d.cts.map +1 -1
  98. package/dist/jsx/components/Footer.d.mts +4 -1
  99. package/dist/jsx/components/Footer.d.mts.map +1 -1
  100. package/dist/jsx/components/Footer.mjs +1 -0
  101. package/dist/jsx/components/Footer.mjs.map +1 -1
  102. package/dist/jsx/components/Heading.cjs +1 -0
  103. package/dist/jsx/components/Heading.cjs.map +1 -1
  104. package/dist/jsx/components/Heading.d.cts +4 -1
  105. package/dist/jsx/components/Heading.d.cts.map +1 -1
  106. package/dist/jsx/components/Heading.d.mts +4 -1
  107. package/dist/jsx/components/Heading.d.mts.map +1 -1
  108. package/dist/jsx/components/Heading.mjs +1 -0
  109. package/dist/jsx/components/Heading.mjs.map +1 -1
  110. package/dist/jsx/components/Icon.cjs +1 -0
  111. package/dist/jsx/components/Icon.cjs.map +1 -1
  112. package/dist/jsx/components/Icon.d.cts +9 -2
  113. package/dist/jsx/components/Icon.d.cts.map +1 -1
  114. package/dist/jsx/components/Icon.d.mts +9 -2
  115. package/dist/jsx/components/Icon.d.mts.map +1 -1
  116. package/dist/jsx/components/Icon.mjs +1 -0
  117. package/dist/jsx/components/Icon.mjs.map +1 -1
  118. package/dist/jsx/components/Image.cjs +1 -0
  119. package/dist/jsx/components/Image.cjs.map +1 -1
  120. package/dist/jsx/components/Image.d.cts +4 -1
  121. package/dist/jsx/components/Image.d.cts.map +1 -1
  122. package/dist/jsx/components/Image.d.mts +4 -1
  123. package/dist/jsx/components/Image.d.mts.map +1 -1
  124. package/dist/jsx/components/Image.mjs +1 -0
  125. package/dist/jsx/components/Image.mjs.map +1 -1
  126. package/dist/jsx/components/Link.cjs +1 -0
  127. package/dist/jsx/components/Link.cjs.map +1 -1
  128. package/dist/jsx/components/Link.d.cts +4 -1
  129. package/dist/jsx/components/Link.d.cts.map +1 -1
  130. package/dist/jsx/components/Link.d.mts +4 -1
  131. package/dist/jsx/components/Link.d.mts.map +1 -1
  132. package/dist/jsx/components/Link.mjs +1 -0
  133. package/dist/jsx/components/Link.mjs.map +1 -1
  134. package/dist/jsx/components/Row.cjs +1 -0
  135. package/dist/jsx/components/Row.cjs.map +1 -1
  136. package/dist/jsx/components/Row.d.cts +4 -1
  137. package/dist/jsx/components/Row.d.cts.map +1 -1
  138. package/dist/jsx/components/Row.d.mts +4 -1
  139. package/dist/jsx/components/Row.d.mts.map +1 -1
  140. package/dist/jsx/components/Row.mjs +1 -0
  141. package/dist/jsx/components/Row.mjs.map +1 -1
  142. package/dist/jsx/components/Section.cjs +1 -0
  143. package/dist/jsx/components/Section.cjs.map +1 -1
  144. package/dist/jsx/components/Section.d.cts +4 -1
  145. package/dist/jsx/components/Section.d.cts.map +1 -1
  146. package/dist/jsx/components/Section.d.mts +4 -1
  147. package/dist/jsx/components/Section.d.mts.map +1 -1
  148. package/dist/jsx/components/Section.mjs +1 -0
  149. package/dist/jsx/components/Section.mjs.map +1 -1
  150. package/dist/jsx/components/Skeleton.cjs +1 -0
  151. package/dist/jsx/components/Skeleton.cjs.map +1 -1
  152. package/dist/jsx/components/Skeleton.d.cts +4 -1
  153. package/dist/jsx/components/Skeleton.d.cts.map +1 -1
  154. package/dist/jsx/components/Skeleton.d.mts +4 -1
  155. package/dist/jsx/components/Skeleton.d.mts.map +1 -1
  156. package/dist/jsx/components/Skeleton.mjs +1 -0
  157. package/dist/jsx/components/Skeleton.mjs.map +1 -1
  158. package/dist/jsx/components/Spinner.cjs +1 -0
  159. package/dist/jsx/components/Spinner.cjs.map +1 -1
  160. package/dist/jsx/components/Spinner.d.cts +3 -1
  161. package/dist/jsx/components/Spinner.d.cts.map +1 -1
  162. package/dist/jsx/components/Spinner.d.mts +3 -1
  163. package/dist/jsx/components/Spinner.d.mts.map +1 -1
  164. package/dist/jsx/components/Spinner.mjs +1 -0
  165. package/dist/jsx/components/Spinner.mjs.map +1 -1
  166. package/dist/jsx/components/Text.cjs +1 -0
  167. package/dist/jsx/components/Text.cjs.map +1 -1
  168. package/dist/jsx/components/Text.d.cts +4 -1
  169. package/dist/jsx/components/Text.d.cts.map +1 -1
  170. package/dist/jsx/components/Text.d.mts +4 -1
  171. package/dist/jsx/components/Text.d.mts.map +1 -1
  172. package/dist/jsx/components/Text.mjs +1 -0
  173. package/dist/jsx/components/Text.mjs.map +1 -1
  174. package/dist/jsx/components/Tooltip.cjs +1 -0
  175. package/dist/jsx/components/Tooltip.cjs.map +1 -1
  176. package/dist/jsx/components/Tooltip.d.cts +4 -1
  177. package/dist/jsx/components/Tooltip.d.cts.map +1 -1
  178. package/dist/jsx/components/Tooltip.d.mts +4 -1
  179. package/dist/jsx/components/Tooltip.d.mts.map +1 -1
  180. package/dist/jsx/components/Tooltip.mjs +1 -0
  181. package/dist/jsx/components/Tooltip.mjs.map +1 -1
  182. package/dist/jsx/components/Value.cjs +1 -0
  183. package/dist/jsx/components/Value.cjs.map +1 -1
  184. package/dist/jsx/components/Value.d.cts +4 -1
  185. package/dist/jsx/components/Value.d.cts.map +1 -1
  186. package/dist/jsx/components/Value.d.mts +4 -1
  187. package/dist/jsx/components/Value.d.mts.map +1 -1
  188. package/dist/jsx/components/Value.mjs +1 -0
  189. package/dist/jsx/components/Value.mjs.map +1 -1
  190. package/dist/jsx/components/form/AccountSelector.cjs +1 -0
  191. package/dist/jsx/components/form/AccountSelector.cjs.map +1 -1
  192. package/dist/jsx/components/form/AccountSelector.d.cts +4 -1
  193. package/dist/jsx/components/form/AccountSelector.d.cts.map +1 -1
  194. package/dist/jsx/components/form/AccountSelector.d.mts +4 -1
  195. package/dist/jsx/components/form/AccountSelector.d.mts.map +1 -1
  196. package/dist/jsx/components/form/AccountSelector.mjs +1 -0
  197. package/dist/jsx/components/form/AccountSelector.mjs.map +1 -1
  198. package/dist/jsx/components/form/AddressInput.cjs +1 -0
  199. package/dist/jsx/components/form/AddressInput.cjs.map +1 -1
  200. package/dist/jsx/components/form/AddressInput.d.cts +18 -0
  201. package/dist/jsx/components/form/AddressInput.d.cts.map +1 -1
  202. package/dist/jsx/components/form/AddressInput.d.mts +18 -0
  203. package/dist/jsx/components/form/AddressInput.d.mts.map +1 -1
  204. package/dist/jsx/components/form/AddressInput.mjs +1 -0
  205. package/dist/jsx/components/form/AddressInput.mjs.map +1 -1
  206. package/dist/jsx/components/form/AssetSelector.cjs +1 -0
  207. package/dist/jsx/components/form/AssetSelector.cjs.map +1 -1
  208. package/dist/jsx/components/form/AssetSelector.d.cts +8 -0
  209. package/dist/jsx/components/form/AssetSelector.d.cts.map +1 -1
  210. package/dist/jsx/components/form/AssetSelector.d.mts +8 -0
  211. package/dist/jsx/components/form/AssetSelector.d.mts.map +1 -1
  212. package/dist/jsx/components/form/AssetSelector.mjs +1 -0
  213. package/dist/jsx/components/form/AssetSelector.mjs.map +1 -1
  214. package/dist/jsx/components/form/Button.cjs +1 -0
  215. package/dist/jsx/components/form/Button.cjs.map +1 -1
  216. package/dist/jsx/components/form/Button.d.cts +4 -1
  217. package/dist/jsx/components/form/Button.d.cts.map +1 -1
  218. package/dist/jsx/components/form/Button.d.mts +4 -1
  219. package/dist/jsx/components/form/Button.d.mts.map +1 -1
  220. package/dist/jsx/components/form/Button.mjs +1 -0
  221. package/dist/jsx/components/form/Button.mjs.map +1 -1
  222. package/dist/jsx/components/form/Checkbox.cjs +1 -0
  223. package/dist/jsx/components/form/Checkbox.cjs.map +1 -1
  224. package/dist/jsx/components/form/Checkbox.d.cts +4 -1
  225. package/dist/jsx/components/form/Checkbox.d.cts.map +1 -1
  226. package/dist/jsx/components/form/Checkbox.d.mts +4 -1
  227. package/dist/jsx/components/form/Checkbox.d.mts.map +1 -1
  228. package/dist/jsx/components/form/Checkbox.mjs +1 -0
  229. package/dist/jsx/components/form/Checkbox.mjs.map +1 -1
  230. package/dist/jsx/components/form/DateTimePicker.cjs +1 -0
  231. package/dist/jsx/components/form/DateTimePicker.cjs.map +1 -1
  232. package/dist/jsx/components/form/DateTimePicker.d.cts +4 -1
  233. package/dist/jsx/components/form/DateTimePicker.d.cts.map +1 -1
  234. package/dist/jsx/components/form/DateTimePicker.d.mts +4 -1
  235. package/dist/jsx/components/form/DateTimePicker.d.mts.map +1 -1
  236. package/dist/jsx/components/form/DateTimePicker.mjs +1 -0
  237. package/dist/jsx/components/form/DateTimePicker.mjs.map +1 -1
  238. package/dist/jsx/components/form/Dropdown.cjs +1 -0
  239. package/dist/jsx/components/form/Dropdown.cjs.map +1 -1
  240. package/dist/jsx/components/form/Dropdown.d.cts +4 -1
  241. package/dist/jsx/components/form/Dropdown.d.cts.map +1 -1
  242. package/dist/jsx/components/form/Dropdown.d.mts +4 -1
  243. package/dist/jsx/components/form/Dropdown.d.mts.map +1 -1
  244. package/dist/jsx/components/form/Dropdown.mjs +1 -0
  245. package/dist/jsx/components/form/Dropdown.mjs.map +1 -1
  246. package/dist/jsx/components/form/Field.cjs +1 -0
  247. package/dist/jsx/components/form/Field.cjs.map +1 -1
  248. package/dist/jsx/components/form/Field.d.cts +4 -1
  249. package/dist/jsx/components/form/Field.d.cts.map +1 -1
  250. package/dist/jsx/components/form/Field.d.mts +4 -1
  251. package/dist/jsx/components/form/Field.d.mts.map +1 -1
  252. package/dist/jsx/components/form/Field.mjs +1 -0
  253. package/dist/jsx/components/form/Field.mjs.map +1 -1
  254. package/dist/jsx/components/form/FileInput.cjs +1 -0
  255. package/dist/jsx/components/form/FileInput.cjs.map +1 -1
  256. package/dist/jsx/components/form/FileInput.d.cts +4 -1
  257. package/dist/jsx/components/form/FileInput.d.cts.map +1 -1
  258. package/dist/jsx/components/form/FileInput.d.mts +4 -1
  259. package/dist/jsx/components/form/FileInput.d.mts.map +1 -1
  260. package/dist/jsx/components/form/FileInput.mjs +1 -0
  261. package/dist/jsx/components/form/FileInput.mjs.map +1 -1
  262. package/dist/jsx/components/form/Form.cjs +1 -0
  263. package/dist/jsx/components/form/Form.cjs.map +1 -1
  264. package/dist/jsx/components/form/Form.d.cts +4 -1
  265. package/dist/jsx/components/form/Form.d.cts.map +1 -1
  266. package/dist/jsx/components/form/Form.d.mts +4 -1
  267. package/dist/jsx/components/form/Form.d.mts.map +1 -1
  268. package/dist/jsx/components/form/Form.mjs +1 -0
  269. package/dist/jsx/components/form/Form.mjs.map +1 -1
  270. package/dist/jsx/components/form/Input.cjs +1 -0
  271. package/dist/jsx/components/form/Input.cjs.map +1 -1
  272. package/dist/jsx/components/form/Input.d.cts +16 -1
  273. package/dist/jsx/components/form/Input.d.cts.map +1 -1
  274. package/dist/jsx/components/form/Input.d.mts +16 -1
  275. package/dist/jsx/components/form/Input.d.mts.map +1 -1
  276. package/dist/jsx/components/form/Input.mjs +1 -0
  277. package/dist/jsx/components/form/Input.mjs.map +1 -1
  278. package/dist/jsx/components/form/Option.cjs +1 -0
  279. package/dist/jsx/components/form/Option.cjs.map +1 -1
  280. package/dist/jsx/components/form/Option.d.cts +4 -1
  281. package/dist/jsx/components/form/Option.d.cts.map +1 -1
  282. package/dist/jsx/components/form/Option.d.mts +4 -1
  283. package/dist/jsx/components/form/Option.d.mts.map +1 -1
  284. package/dist/jsx/components/form/Option.mjs +1 -0
  285. package/dist/jsx/components/form/Option.mjs.map +1 -1
  286. package/dist/jsx/components/form/Radio.cjs +1 -0
  287. package/dist/jsx/components/form/Radio.cjs.map +1 -1
  288. package/dist/jsx/components/form/Radio.d.cts +4 -1
  289. package/dist/jsx/components/form/Radio.d.cts.map +1 -1
  290. package/dist/jsx/components/form/Radio.d.mts +4 -1
  291. package/dist/jsx/components/form/Radio.d.mts.map +1 -1
  292. package/dist/jsx/components/form/Radio.mjs +1 -0
  293. package/dist/jsx/components/form/Radio.mjs.map +1 -1
  294. package/dist/jsx/components/form/RadioGroup.cjs +1 -0
  295. package/dist/jsx/components/form/RadioGroup.cjs.map +1 -1
  296. package/dist/jsx/components/form/RadioGroup.d.cts +4 -1
  297. package/dist/jsx/components/form/RadioGroup.d.cts.map +1 -1
  298. package/dist/jsx/components/form/RadioGroup.d.mts +4 -1
  299. package/dist/jsx/components/form/RadioGroup.d.mts.map +1 -1
  300. package/dist/jsx/components/form/RadioGroup.mjs +1 -0
  301. package/dist/jsx/components/form/RadioGroup.mjs.map +1 -1
  302. package/dist/jsx/components/form/Selector.cjs +1 -0
  303. package/dist/jsx/components/form/Selector.cjs.map +1 -1
  304. package/dist/jsx/components/form/Selector.d.cts +4 -1
  305. package/dist/jsx/components/form/Selector.d.cts.map +1 -1
  306. package/dist/jsx/components/form/Selector.d.mts +4 -1
  307. package/dist/jsx/components/form/Selector.d.mts.map +1 -1
  308. package/dist/jsx/components/form/Selector.mjs +1 -0
  309. package/dist/jsx/components/form/Selector.mjs.map +1 -1
  310. package/dist/jsx/components/form/SelectorOption.cjs +1 -0
  311. package/dist/jsx/components/form/SelectorOption.cjs.map +1 -1
  312. package/dist/jsx/components/form/SelectorOption.d.cts +4 -1
  313. package/dist/jsx/components/form/SelectorOption.d.cts.map +1 -1
  314. package/dist/jsx/components/form/SelectorOption.d.mts +4 -1
  315. package/dist/jsx/components/form/SelectorOption.d.mts.map +1 -1
  316. package/dist/jsx/components/form/SelectorOption.mjs +1 -0
  317. package/dist/jsx/components/form/SelectorOption.mjs.map +1 -1
  318. package/dist/jsx/components/formatting/Bold.cjs +1 -0
  319. package/dist/jsx/components/formatting/Bold.cjs.map +1 -1
  320. package/dist/jsx/components/formatting/Bold.d.cts +4 -1
  321. package/dist/jsx/components/formatting/Bold.d.cts.map +1 -1
  322. package/dist/jsx/components/formatting/Bold.d.mts +4 -1
  323. package/dist/jsx/components/formatting/Bold.d.mts.map +1 -1
  324. package/dist/jsx/components/formatting/Bold.mjs +1 -0
  325. package/dist/jsx/components/formatting/Bold.mjs.map +1 -1
  326. package/dist/jsx/components/formatting/Italic.cjs +1 -0
  327. package/dist/jsx/components/formatting/Italic.cjs.map +1 -1
  328. package/dist/jsx/components/formatting/Italic.d.cts +4 -1
  329. package/dist/jsx/components/formatting/Italic.d.cts.map +1 -1
  330. package/dist/jsx/components/formatting/Italic.d.mts +4 -1
  331. package/dist/jsx/components/formatting/Italic.d.mts.map +1 -1
  332. package/dist/jsx/components/formatting/Italic.mjs +1 -0
  333. package/dist/jsx/components/formatting/Italic.mjs.map +1 -1
  334. package/dist/jsx/index.cjs +22 -0
  335. package/dist/jsx/index.cjs.map +1 -1
  336. package/dist/jsx/index.d.cts +22 -0
  337. package/dist/jsx/index.d.cts.map +1 -1
  338. package/dist/jsx/index.d.mts +22 -0
  339. package/dist/jsx/index.d.mts.map +1 -1
  340. package/dist/jsx/index.mjs +22 -0
  341. package/dist/jsx/index.mjs.map +1 -1
  342. package/dist/jsx/validation.cjs +8 -1
  343. package/dist/jsx/validation.cjs.map +1 -1
  344. package/dist/jsx/validation.d.cts.map +1 -1
  345. package/dist/jsx/validation.d.mts.map +1 -1
  346. package/dist/jsx/validation.mjs +8 -1
  347. package/dist/jsx/validation.mjs.map +1 -1
  348. package/dist/types/methods/cancel-background-event.cjs.map +1 -1
  349. package/dist/types/methods/cancel-background-event.d.cts +6 -6
  350. package/dist/types/methods/cancel-background-event.d.cts.map +1 -1
  351. package/dist/types/methods/cancel-background-event.d.mts +6 -6
  352. package/dist/types/methods/cancel-background-event.d.mts.map +1 -1
  353. package/dist/types/methods/cancel-background-event.mjs.map +1 -1
  354. package/dist/types/methods/clear-state.cjs.map +1 -1
  355. package/dist/types/methods/clear-state.d.cts +8 -4
  356. package/dist/types/methods/clear-state.d.cts.map +1 -1
  357. package/dist/types/methods/clear-state.d.mts +8 -4
  358. package/dist/types/methods/clear-state.d.mts.map +1 -1
  359. package/dist/types/methods/clear-state.mjs.map +1 -1
  360. package/dist/types/methods/close-web-socket.cjs.map +1 -1
  361. package/dist/types/methods/close-web-socket.d.cts +3 -3
  362. package/dist/types/methods/close-web-socket.d.mts +3 -3
  363. package/dist/types/methods/close-web-socket.mjs.map +1 -1
  364. package/dist/types/methods/create-interface.cjs.map +1 -1
  365. package/dist/types/methods/create-interface.d.cts +14 -4
  366. package/dist/types/methods/create-interface.d.cts.map +1 -1
  367. package/dist/types/methods/create-interface.d.mts +14 -4
  368. package/dist/types/methods/create-interface.d.mts.map +1 -1
  369. package/dist/types/methods/create-interface.mjs.map +1 -1
  370. package/dist/types/methods/dialog.cjs.map +1 -1
  371. package/dist/types/methods/dialog.d.cts +49 -18
  372. package/dist/types/methods/dialog.d.cts.map +1 -1
  373. package/dist/types/methods/dialog.d.mts +49 -18
  374. package/dist/types/methods/dialog.d.mts.map +1 -1
  375. package/dist/types/methods/dialog.mjs.map +1 -1
  376. package/dist/types/methods/get-background-events.cjs.map +1 -1
  377. package/dist/types/methods/get-background-events.d.cts +17 -8
  378. package/dist/types/methods/get-background-events.d.cts.map +1 -1
  379. package/dist/types/methods/get-background-events.d.mts +17 -8
  380. package/dist/types/methods/get-background-events.d.mts.map +1 -1
  381. package/dist/types/methods/get-background-events.mjs.map +1 -1
  382. package/dist/types/methods/get-bip32-entropy.cjs.map +1 -1
  383. package/dist/types/methods/get-bip32-entropy.d.cts +2 -4
  384. package/dist/types/methods/get-bip32-entropy.d.cts.map +1 -1
  385. package/dist/types/methods/get-bip32-entropy.d.mts +2 -4
  386. package/dist/types/methods/get-bip32-entropy.d.mts.map +1 -1
  387. package/dist/types/methods/get-bip32-entropy.mjs.map +1 -1
  388. package/dist/types/methods/get-bip32-public-key.cjs.map +1 -1
  389. package/dist/types/methods/get-bip32-public-key.d.cts +3 -5
  390. package/dist/types/methods/get-bip32-public-key.d.cts.map +1 -1
  391. package/dist/types/methods/get-bip32-public-key.d.mts +3 -5
  392. package/dist/types/methods/get-bip32-public-key.d.mts.map +1 -1
  393. package/dist/types/methods/get-bip32-public-key.mjs.map +1 -1
  394. package/dist/types/methods/get-bip44-entropy.cjs.map +1 -1
  395. package/dist/types/methods/get-bip44-entropy.d.cts +3 -4
  396. package/dist/types/methods/get-bip44-entropy.d.cts.map +1 -1
  397. package/dist/types/methods/get-bip44-entropy.d.mts +3 -4
  398. package/dist/types/methods/get-bip44-entropy.d.mts.map +1 -1
  399. package/dist/types/methods/get-bip44-entropy.mjs.map +1 -1
  400. package/dist/types/methods/get-client-status.cjs.map +1 -1
  401. package/dist/types/methods/get-client-status.d.cts +5 -7
  402. package/dist/types/methods/get-client-status.d.cts.map +1 -1
  403. package/dist/types/methods/get-client-status.d.mts +5 -7
  404. package/dist/types/methods/get-client-status.d.mts.map +1 -1
  405. package/dist/types/methods/get-client-status.mjs.map +1 -1
  406. package/dist/types/methods/get-entropy.cjs.map +1 -1
  407. package/dist/types/methods/get-entropy.d.cts +6 -5
  408. package/dist/types/methods/get-entropy.d.cts.map +1 -1
  409. package/dist/types/methods/get-entropy.d.mts +6 -5
  410. package/dist/types/methods/get-entropy.d.mts.map +1 -1
  411. package/dist/types/methods/get-entropy.mjs.map +1 -1
  412. package/dist/types/methods/get-file.cjs.map +1 -1
  413. package/dist/types/methods/get-file.d.cts +9 -5
  414. package/dist/types/methods/get-file.d.cts.map +1 -1
  415. package/dist/types/methods/get-file.d.mts +9 -5
  416. package/dist/types/methods/get-file.d.mts.map +1 -1
  417. package/dist/types/methods/get-file.mjs.map +1 -1
  418. package/dist/types/methods/get-interface-context.cjs.map +1 -1
  419. package/dist/types/methods/get-interface-context.d.cts +5 -3
  420. package/dist/types/methods/get-interface-context.d.cts.map +1 -1
  421. package/dist/types/methods/get-interface-context.d.mts +5 -3
  422. package/dist/types/methods/get-interface-context.d.mts.map +1 -1
  423. package/dist/types/methods/get-interface-context.mjs.map +1 -1
  424. package/dist/types/methods/get-interface-state.cjs.map +1 -1
  425. package/dist/types/methods/get-interface-state.d.cts +10 -3
  426. package/dist/types/methods/get-interface-state.d.cts.map +1 -1
  427. package/dist/types/methods/get-interface-state.d.mts +10 -3
  428. package/dist/types/methods/get-interface-state.d.mts.map +1 -1
  429. package/dist/types/methods/get-interface-state.mjs.map +1 -1
  430. package/dist/types/methods/get-locale.cjs.map +1 -1
  431. package/dist/types/methods/get-locale.d.cts +1 -5
  432. package/dist/types/methods/get-locale.d.cts.map +1 -1
  433. package/dist/types/methods/get-locale.d.mts +1 -5
  434. package/dist/types/methods/get-locale.d.mts.map +1 -1
  435. package/dist/types/methods/get-locale.mjs.map +1 -1
  436. package/dist/types/methods/get-preferences.cjs.map +1 -1
  437. package/dist/types/methods/get-preferences.d.cts +39 -17
  438. package/dist/types/methods/get-preferences.d.cts.map +1 -1
  439. package/dist/types/methods/get-preferences.d.mts +39 -17
  440. package/dist/types/methods/get-preferences.d.mts.map +1 -1
  441. package/dist/types/methods/get-preferences.mjs.map +1 -1
  442. package/dist/types/methods/get-snaps.cjs.map +1 -1
  443. package/dist/types/methods/get-snaps.d.cts +1 -5
  444. package/dist/types/methods/get-snaps.d.cts.map +1 -1
  445. package/dist/types/methods/get-snaps.d.mts +1 -5
  446. package/dist/types/methods/get-snaps.d.mts.map +1 -1
  447. package/dist/types/methods/get-snaps.mjs.map +1 -1
  448. package/dist/types/methods/get-state.cjs.map +1 -1
  449. package/dist/types/methods/get-state.d.cts +8 -3
  450. package/dist/types/methods/get-state.d.cts.map +1 -1
  451. package/dist/types/methods/get-state.d.mts +8 -3
  452. package/dist/types/methods/get-state.d.mts.map +1 -1
  453. package/dist/types/methods/get-state.mjs.map +1 -1
  454. package/dist/types/methods/get-web-sockets.cjs.map +1 -1
  455. package/dist/types/methods/get-web-sockets.d.cts +10 -3
  456. package/dist/types/methods/get-web-sockets.d.cts.map +1 -1
  457. package/dist/types/methods/get-web-sockets.d.mts +10 -3
  458. package/dist/types/methods/get-web-sockets.d.mts.map +1 -1
  459. package/dist/types/methods/get-web-sockets.mjs.map +1 -1
  460. package/dist/types/methods/index.cjs.map +1 -1
  461. package/dist/types/methods/index.d.cts +0 -2
  462. package/dist/types/methods/index.d.cts.map +1 -1
  463. package/dist/types/methods/index.d.mts +0 -2
  464. package/dist/types/methods/index.d.mts.map +1 -1
  465. package/dist/types/methods/index.mjs.map +1 -1
  466. package/dist/types/methods/invoke-keyring.cjs.map +1 -1
  467. package/dist/types/methods/invoke-keyring.d.cts +5 -4
  468. package/dist/types/methods/invoke-keyring.d.cts.map +1 -1
  469. package/dist/types/methods/invoke-keyring.d.mts +5 -4
  470. package/dist/types/methods/invoke-keyring.d.mts.map +1 -1
  471. package/dist/types/methods/invoke-keyring.mjs.map +1 -1
  472. package/dist/types/methods/invoke-snap.cjs.map +1 -1
  473. package/dist/types/methods/invoke-snap.d.cts +10 -6
  474. package/dist/types/methods/invoke-snap.d.cts.map +1 -1
  475. package/dist/types/methods/invoke-snap.d.mts +10 -6
  476. package/dist/types/methods/invoke-snap.d.mts.map +1 -1
  477. package/dist/types/methods/invoke-snap.mjs.map +1 -1
  478. package/dist/types/methods/list-entropy-sources.cjs.map +1 -1
  479. package/dist/types/methods/list-entropy-sources.d.cts +2 -2
  480. package/dist/types/methods/list-entropy-sources.d.mts +2 -2
  481. package/dist/types/methods/list-entropy-sources.mjs.map +1 -1
  482. package/dist/types/methods/manage-accounts.cjs.map +1 -1
  483. package/dist/types/methods/manage-accounts.d.cts +10 -9
  484. package/dist/types/methods/manage-accounts.d.cts.map +1 -1
  485. package/dist/types/methods/manage-accounts.d.mts +10 -9
  486. package/dist/types/methods/manage-accounts.d.mts.map +1 -1
  487. package/dist/types/methods/manage-accounts.mjs.map +1 -1
  488. package/dist/types/methods/manage-state.cjs.map +1 -1
  489. package/dist/types/methods/manage-state.d.cts +35 -32
  490. package/dist/types/methods/manage-state.d.cts.map +1 -1
  491. package/dist/types/methods/manage-state.d.mts +35 -32
  492. package/dist/types/methods/manage-state.d.mts.map +1 -1
  493. package/dist/types/methods/manage-state.mjs.map +1 -1
  494. package/dist/types/methods/methods.cjs.map +1 -1
  495. package/dist/types/methods/methods.d.cts +0 -2
  496. package/dist/types/methods/methods.d.cts.map +1 -1
  497. package/dist/types/methods/methods.d.mts +0 -2
  498. package/dist/types/methods/methods.d.mts.map +1 -1
  499. package/dist/types/methods/methods.mjs.map +1 -1
  500. package/dist/types/methods/notify.cjs.map +1 -1
  501. package/dist/types/methods/notify.d.cts +39 -7
  502. package/dist/types/methods/notify.d.cts.map +1 -1
  503. package/dist/types/methods/notify.d.mts +39 -7
  504. package/dist/types/methods/notify.d.mts.map +1 -1
  505. package/dist/types/methods/notify.mjs.map +1 -1
  506. package/dist/types/methods/open-web-socket.cjs.map +1 -1
  507. package/dist/types/methods/open-web-socket.d.cts +6 -3
  508. package/dist/types/methods/open-web-socket.d.cts.map +1 -1
  509. package/dist/types/methods/open-web-socket.d.mts +6 -3
  510. package/dist/types/methods/open-web-socket.d.mts.map +1 -1
  511. package/dist/types/methods/open-web-socket.mjs.map +1 -1
  512. package/dist/types/methods/request-snaps.cjs.map +1 -1
  513. package/dist/types/methods/request-snaps.d.cts +5 -6
  514. package/dist/types/methods/request-snaps.d.cts.map +1 -1
  515. package/dist/types/methods/request-snaps.d.mts +5 -6
  516. package/dist/types/methods/request-snaps.d.mts.map +1 -1
  517. package/dist/types/methods/request-snaps.mjs.map +1 -1
  518. package/dist/types/methods/resolve-interface.cjs.map +1 -1
  519. package/dist/types/methods/resolve-interface.d.cts +1 -1
  520. package/dist/types/methods/resolve-interface.d.mts +1 -1
  521. package/dist/types/methods/resolve-interface.mjs.map +1 -1
  522. package/dist/types/methods/schedule-background-event.cjs.map +1 -1
  523. package/dist/types/methods/schedule-background-event.d.cts +18 -8
  524. package/dist/types/methods/schedule-background-event.d.cts.map +1 -1
  525. package/dist/types/methods/schedule-background-event.d.mts +18 -8
  526. package/dist/types/methods/schedule-background-event.d.mts.map +1 -1
  527. package/dist/types/methods/schedule-background-event.mjs.map +1 -1
  528. package/dist/types/methods/send-web-socket-message.cjs.map +1 -1
  529. package/dist/types/methods/send-web-socket-message.d.cts +9 -5
  530. package/dist/types/methods/send-web-socket-message.d.cts.map +1 -1
  531. package/dist/types/methods/send-web-socket-message.d.mts +9 -5
  532. package/dist/types/methods/send-web-socket-message.d.mts.map +1 -1
  533. package/dist/types/methods/send-web-socket-message.mjs.map +1 -1
  534. package/dist/types/methods/set-state.cjs.map +1 -1
  535. package/dist/types/methods/set-state.d.cts +6 -2
  536. package/dist/types/methods/set-state.d.cts.map +1 -1
  537. package/dist/types/methods/set-state.d.mts +6 -2
  538. package/dist/types/methods/set-state.d.mts.map +1 -1
  539. package/dist/types/methods/set-state.mjs.map +1 -1
  540. package/dist/types/methods/update-interface.cjs.map +1 -1
  541. package/dist/types/methods/update-interface.d.cts +13 -5
  542. package/dist/types/methods/update-interface.d.cts.map +1 -1
  543. package/dist/types/methods/update-interface.d.mts +13 -5
  544. package/dist/types/methods/update-interface.d.mts.map +1 -1
  545. package/dist/types/methods/update-interface.mjs.map +1 -1
  546. package/dist/types/permissions.cjs.map +1 -1
  547. package/dist/types/permissions.d.cts +32 -2
  548. package/dist/types/permissions.d.cts.map +1 -1
  549. package/dist/types/permissions.d.mts +32 -2
  550. package/dist/types/permissions.d.mts.map +1 -1
  551. package/dist/types/permissions.mjs.map +1 -1
  552. package/dist/ui/components/address.cjs +1 -18
  553. package/dist/ui/components/address.cjs.map +1 -1
  554. package/dist/ui/components/address.d.cts +0 -28
  555. package/dist/ui/components/address.d.cts.map +1 -1
  556. package/dist/ui/components/address.d.mts +0 -28
  557. package/dist/ui/components/address.d.mts.map +1 -1
  558. package/dist/ui/components/address.mjs +0 -17
  559. package/dist/ui/components/address.mjs.map +1 -1
  560. package/dist/ui/components/button.cjs +1 -26
  561. package/dist/ui/components/button.cjs.map +1 -1
  562. package/dist/ui/components/button.d.cts +0 -42
  563. package/dist/ui/components/button.d.cts.map +1 -1
  564. package/dist/ui/components/button.d.mts +0 -42
  565. package/dist/ui/components/button.d.mts.map +1 -1
  566. package/dist/ui/components/button.mjs +0 -25
  567. package/dist/ui/components/button.mjs.map +1 -1
  568. package/dist/ui/components/copyable.cjs +1 -22
  569. package/dist/ui/components/copyable.cjs.map +1 -1
  570. package/dist/ui/components/copyable.d.cts +0 -38
  571. package/dist/ui/components/copyable.d.cts.map +1 -1
  572. package/dist/ui/components/copyable.d.mts +0 -38
  573. package/dist/ui/components/copyable.d.mts.map +1 -1
  574. package/dist/ui/components/copyable.mjs +0 -21
  575. package/dist/ui/components/copyable.mjs.map +1 -1
  576. package/dist/ui/components/divider.cjs +1 -12
  577. package/dist/ui/components/divider.cjs.map +1 -1
  578. package/dist/ui/components/divider.d.cts +0 -17
  579. package/dist/ui/components/divider.d.cts.map +1 -1
  580. package/dist/ui/components/divider.d.mts +0 -17
  581. package/dist/ui/components/divider.d.mts.map +1 -1
  582. package/dist/ui/components/divider.mjs +0 -11
  583. package/dist/ui/components/divider.mjs.map +1 -1
  584. package/dist/ui/components/form.cjs +1 -28
  585. package/dist/ui/components/form.cjs.map +1 -1
  586. package/dist/ui/components/form.d.cts +0 -86
  587. package/dist/ui/components/form.d.cts.map +1 -1
  588. package/dist/ui/components/form.d.mts +0 -86
  589. package/dist/ui/components/form.d.mts.map +1 -1
  590. package/dist/ui/components/form.mjs +0 -27
  591. package/dist/ui/components/form.mjs.map +1 -1
  592. package/dist/ui/components/heading.cjs +1 -18
  593. package/dist/ui/components/heading.cjs.map +1 -1
  594. package/dist/ui/components/heading.d.cts +0 -30
  595. package/dist/ui/components/heading.d.cts.map +1 -1
  596. package/dist/ui/components/heading.d.mts +0 -30
  597. package/dist/ui/components/heading.d.mts.map +1 -1
  598. package/dist/ui/components/heading.mjs +0 -17
  599. package/dist/ui/components/heading.mjs.map +1 -1
  600. package/dist/ui/components/image.cjs +1 -17
  601. package/dist/ui/components/image.cjs.map +1 -1
  602. package/dist/ui/components/image.d.cts +0 -29
  603. package/dist/ui/components/image.d.cts.map +1 -1
  604. package/dist/ui/components/image.d.mts +0 -29
  605. package/dist/ui/components/image.d.mts.map +1 -1
  606. package/dist/ui/components/image.mjs +0 -16
  607. package/dist/ui/components/image.mjs.map +1 -1
  608. package/dist/ui/components/index.cjs +2 -5
  609. package/dist/ui/components/index.cjs.map +1 -1
  610. package/dist/ui/components/index.d.cts +2 -3
  611. package/dist/ui/components/index.d.cts.map +1 -1
  612. package/dist/ui/components/index.d.mts +2 -3
  613. package/dist/ui/components/index.d.mts.map +1 -1
  614. package/dist/ui/components/index.mjs +2 -2
  615. package/dist/ui/components/index.mjs.map +1 -1
  616. package/dist/ui/components/input.cjs +1 -29
  617. package/dist/ui/components/input.cjs.map +1 -1
  618. package/dist/ui/components/input.d.cts +0 -50
  619. package/dist/ui/components/input.d.cts.map +1 -1
  620. package/dist/ui/components/input.d.mts +0 -50
  621. package/dist/ui/components/input.d.mts.map +1 -1
  622. package/dist/ui/components/input.mjs +0 -28
  623. package/dist/ui/components/input.mjs.map +1 -1
  624. package/dist/ui/components/panel.cjs +5 -27
  625. package/dist/ui/components/panel.cjs.map +1 -1
  626. package/dist/ui/components/panel.d.cts +0 -108
  627. package/dist/ui/components/panel.d.cts.map +1 -1
  628. package/dist/ui/components/panel.d.mts +0 -108
  629. package/dist/ui/components/panel.d.mts.map +1 -1
  630. package/dist/ui/components/panel.mjs +4 -26
  631. package/dist/ui/components/panel.mjs.map +1 -1
  632. package/dist/ui/components/row.cjs +1 -24
  633. package/dist/ui/components/row.cjs.map +1 -1
  634. package/dist/ui/components/row.d.cts +0 -69
  635. package/dist/ui/components/row.d.cts.map +1 -1
  636. package/dist/ui/components/row.d.mts +0 -69
  637. package/dist/ui/components/row.d.mts.map +1 -1
  638. package/dist/ui/components/row.mjs +0 -23
  639. package/dist/ui/components/row.mjs.map +1 -1
  640. package/dist/ui/components/spinner.cjs +1 -12
  641. package/dist/ui/components/spinner.cjs.map +1 -1
  642. package/dist/ui/components/spinner.d.cts +0 -18
  643. package/dist/ui/components/spinner.d.cts.map +1 -1
  644. package/dist/ui/components/spinner.d.mts +0 -18
  645. package/dist/ui/components/spinner.d.mts.map +1 -1
  646. package/dist/ui/components/spinner.mjs +0 -11
  647. package/dist/ui/components/spinner.mjs.map +1 -1
  648. package/dist/ui/components/text.cjs +1 -24
  649. package/dist/ui/components/text.cjs.map +1 -1
  650. package/dist/ui/components/text.d.cts +0 -38
  651. package/dist/ui/components/text.d.cts.map +1 -1
  652. package/dist/ui/components/text.d.mts +0 -38
  653. package/dist/ui/components/text.d.mts.map +1 -1
  654. package/dist/ui/components/text.mjs +0 -23
  655. package/dist/ui/components/text.mjs.map +1 -1
  656. package/dist/ui/index.cjs +0 -1
  657. package/dist/ui/index.cjs.map +1 -1
  658. package/dist/ui/index.d.cts +0 -1
  659. package/dist/ui/index.d.cts.map +1 -1
  660. package/dist/ui/index.d.mts +0 -1
  661. package/dist/ui/index.d.mts.map +1 -1
  662. package/dist/ui/index.mjs +0 -1
  663. package/dist/ui/index.mjs.map +1 -1
  664. package/package.json +7 -4
  665. package/dist/types/methods/get-currency-rate.cjs +0 -3
  666. package/dist/types/methods/get-currency-rate.cjs.map +0 -1
  667. package/dist/types/methods/get-currency-rate.d.cts +0 -29
  668. package/dist/types/methods/get-currency-rate.d.cts.map +0 -1
  669. package/dist/types/methods/get-currency-rate.d.mts +0 -29
  670. package/dist/types/methods/get-currency-rate.d.mts.map +0 -1
  671. package/dist/types/methods/get-currency-rate.mjs +0 -2
  672. package/dist/types/methods/get-currency-rate.mjs.map +0 -1
  673. package/dist/types/methods/provider-request.cjs +0 -3
  674. package/dist/types/methods/provider-request.cjs.map +0 -1
  675. package/dist/types/methods/provider-request.d.cts +0 -25
  676. package/dist/types/methods/provider-request.d.cts.map +0 -1
  677. package/dist/types/methods/provider-request.d.mts +0 -25
  678. package/dist/types/methods/provider-request.d.mts.map +0 -1
  679. package/dist/types/methods/provider-request.mjs +0 -2
  680. package/dist/types/methods/provider-request.mjs.map +0 -1
  681. package/dist/ui/builder.cjs +0 -49
  682. package/dist/ui/builder.cjs.map +0 -1
  683. package/dist/ui/builder.d.cts +0 -43
  684. package/dist/ui/builder.d.cts.map +0 -1
  685. package/dist/ui/builder.d.mts +0 -43
  686. package/dist/ui/builder.d.mts.map +0 -1
  687. package/dist/ui/builder.mjs +0 -45
  688. package/dist/ui/builder.mjs.map +0 -1
  689. package/dist/ui/component.cjs +0 -29
  690. package/dist/ui/component.cjs.map +0 -1
  691. package/dist/ui/component.d.cts +0 -18
  692. package/dist/ui/component.d.cts.map +0 -1
  693. package/dist/ui/component.d.mts +0 -18
  694. package/dist/ui/component.d.mts.map +0 -1
  695. package/dist/ui/component.mjs +0 -24
  696. package/dist/ui/component.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"address.d.cts","sourceRoot":"","sources":["../../../src/ui/components/address.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAMnD,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,eAAO,MAAM,aAAa;;;;;;EAMzB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAElD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO;;;;;;CAElB,CAAC"}
1
+ {"version":3,"file":"address.d.cts","sourceRoot":"","sources":["../../../src/ui/components/address.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,eAAO,MAAM,aAAa;;;;;;EAMzB,CAAC"}
@@ -1,4 +1,3 @@
1
- import type { Infer } from "@metamask/superstruct";
2
1
  import { NodeType } from "../nodes.mjs";
3
2
  export declare const AddressStruct: import("@metamask/superstruct").Struct<{
4
3
  value: `0x${string}`;
@@ -7,31 +6,4 @@ export declare const AddressStruct: import("@metamask/superstruct").Struct<{
7
6
  type: import("@metamask/superstruct").Struct<NodeType.Address, null>;
8
7
  value: import("@metamask/superstruct").Struct<`0x${string}`, null>;
9
8
  }>;
10
- /**
11
- * A address node, that renders an EVM-like address and its icon.
12
- *
13
- * @property type - The type of the node. Must be the string `address`.
14
- * @property value - The address in hexadecimal, including 0x.
15
- */
16
- export type Address = Infer<typeof AddressStruct>;
17
- /**
18
- * Create an {@link Address} node.
19
- *
20
- * @param args - The node arguments. This can either be a string, or an object
21
- * with the `value` property.
22
- * @param args.value - The address to be rendered.
23
- * @returns The address node as an object.
24
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
25
- * components. This function will be removed in a future release.
26
- * @example
27
- * const node = address({ value: '0x4bbeeb066ed09b7aed07bf39eee0460dfa261520' });
28
- * const node = address('0x4bbeeb066ed09b7aed07bf39eee0460dfa261520');
29
- */
30
- export declare const address: (...args: `0x${string}`[] | [Omit<{
31
- value: `0x${string}`;
32
- type: NodeType.Address;
33
- }, "type">]) => {
34
- value: `0x${string}`;
35
- type: NodeType.Address;
36
- };
37
9
  //# sourceMappingURL=address.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"address.d.mts","sourceRoot":"","sources":["../../../src/ui/components/address.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAMnD,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,eAAO,MAAM,aAAa;;;;;;EAMzB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAElD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO;;;;;;CAElB,CAAC"}
1
+ {"version":3,"file":"address.d.mts","sourceRoot":"","sources":["../../../src/ui/components/address.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,eAAO,MAAM,aAAa;;;;;;EAMzB,CAAC"}
@@ -1,26 +1,9 @@
1
1
  import { assign, object } from "@metamask/superstruct";
2
2
  import { HexChecksumAddressStruct } from "@metamask/utils";
3
3
  import { literal } from "../../internals/index.mjs";
4
- import { createBuilder } from "../builder.mjs";
5
4
  import { LiteralStruct, NodeType } from "../nodes.mjs";
6
5
  export const AddressStruct = assign(LiteralStruct, object({
7
6
  type: literal(NodeType.Address),
8
7
  value: HexChecksumAddressStruct,
9
8
  }));
10
- /**
11
- * Create an {@link Address} node.
12
- *
13
- * @param args - The node arguments. This can either be a string, or an object
14
- * with the `value` property.
15
- * @param args.value - The address to be rendered.
16
- * @returns The address node as an object.
17
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
18
- * components. This function will be removed in a future release.
19
- * @example
20
- * const node = address({ value: '0x4bbeeb066ed09b7aed07bf39eee0460dfa261520' });
21
- * const node = address('0x4bbeeb066ed09b7aed07bf39eee0460dfa261520');
22
- */
23
- export const address = createBuilder(NodeType.Address, AddressStruct, [
24
- 'value',
25
- ]);
26
9
  //# sourceMappingURL=address.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"address.mjs","sourceRoot":"","sources":["../../../src/ui/components/address.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B;AACvD,OAAO,EAAE,wBAAwB,EAAE,wBAAwB;AAE3D,OAAO,EAAE,OAAO,EAAE,kCAAwB;AAC1C,OAAO,EAAE,aAAa,EAAE,uBAAmB;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAiB;AAEnD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CACjC,aAAa,EACb,MAAM,CAAC;IACL,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IAC/B,KAAK,EAAE,wBAAwB;CAChC,CAAC,CACH,CAAC;AAUF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE;IACpE,OAAO;CACR,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { assign, object } from '@metamask/superstruct';\nimport { HexChecksumAddressStruct } from '@metamask/utils';\n\nimport { literal } from '../../internals';\nimport { createBuilder } from '../builder';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport const AddressStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Address),\n value: HexChecksumAddressStruct,\n }),\n);\n\n/**\n * A address node, that renders an EVM-like address and its icon.\n *\n * @property type - The type of the node. Must be the string `address`.\n * @property value - The address in hexadecimal, including 0x.\n */\nexport type Address = Infer<typeof AddressStruct>;\n\n/**\n * Create an {@link Address} node.\n *\n * @param args - The node arguments. This can either be a string, or an object\n * with the `value` property.\n * @param args.value - The address to be rendered.\n * @returns The address node as an object.\n * @deprecated Snaps component functions are deprecated, in favor of the new JSX\n * components. This function will be removed in a future release.\n * @example\n * const node = address({ value: '0x4bbeeb066ed09b7aed07bf39eee0460dfa261520' });\n * const node = address('0x4bbeeb066ed09b7aed07bf39eee0460dfa261520');\n */\nexport const address = createBuilder(NodeType.Address, AddressStruct, [\n 'value',\n]);\n"]}
1
+ {"version":3,"file":"address.mjs","sourceRoot":"","sources":["../../../src/ui/components/address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B;AACvD,OAAO,EAAE,wBAAwB,EAAE,wBAAwB;AAE3D,OAAO,EAAE,OAAO,EAAE,kCAAwB;AAC1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAiB;AAEnD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CACjC,aAAa,EACb,MAAM,CAAC;IACL,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IAC/B,KAAK,EAAE,wBAAwB;CAChC,CAAC,CACH,CAAC","sourcesContent":["import { assign, object } from '@metamask/superstruct';\nimport { HexChecksumAddressStruct } from '@metamask/utils';\n\nimport { literal } from '../../internals';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport const AddressStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Address),\n value: HexChecksumAddressStruct,\n }),\n);\n"]}
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.button = exports.ButtonStruct = exports.ButtonType = exports.ButtonVariant = void 0;
3
+ exports.ButtonStruct = exports.ButtonType = exports.ButtonVariant = void 0;
4
4
  const superstruct_1 = require("@metamask/superstruct");
5
5
  const internals_1 = require("../../internals/index.cjs");
6
- const builder_1 = require("../builder.cjs");
7
6
  const nodes_1 = require("../nodes.cjs");
8
7
  var ButtonVariant;
9
8
  (function (ButtonVariant) {
@@ -25,28 +24,4 @@ exports.ButtonStruct = (0, superstruct_1.assign)(nodes_1.LiteralStruct, (0, supe
25
24
  buttonType: (0, superstruct_1.optional)((0, superstruct_1.union)([(0, internals_1.enumValue)(ButtonType.Button), (0, internals_1.enumValue)(ButtonType.Submit)])),
26
25
  name: (0, superstruct_1.optional)((0, superstruct_1.string)()),
27
26
  }));
28
- /**
29
- * Create a {@link Button} node.
30
- *
31
- * @param args - The node arguments. This can be either a string, or an object
32
- * with a `value` property. A set of optional properties can be passed.
33
- * @param args.variant - The optional variant of the button.
34
- * @param args.value - The text content of the node.
35
- * @param args.name - The optional name of the button.
36
- * @returns The text node as object.
37
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
38
- * components. This function will be removed in a future release.
39
- * @example
40
- * ```typescript
41
- * const node = button({ variant: 'primary', text: 'Hello, world!', name: 'myButton' });
42
- * const node = button('Hello, world!', 'button', 'myButton', 'primary');
43
- * const node = button('Hello, world!');
44
- * ```
45
- */
46
- exports.button = (0, builder_1.createBuilder)(nodes_1.NodeType.Button, exports.ButtonStruct, [
47
- 'value',
48
- 'buttonType',
49
- 'name',
50
- 'variant',
51
- ]);
52
27
  //# sourceMappingURL=button.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.cjs","sourceRoot":"","sources":["../../../src/ui/components/button.ts"],"names":[],"mappings":";;;AACA,uDAAgF;AAEhF,yDAAqD;AACrD,4CAA2C;AAC3C,wCAAmD;AAEnD,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AACzB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAEY,QAAA,YAAY,GAAG,IAAA,oBAAM,EAChC,qBAAa,EACb,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,IAAA,oBAAM,GAAE;IACf,OAAO,EAAE,IAAA,sBAAQ,EACf,IAAA,mBAAK,EAAC;QACJ,IAAA,qBAAS,EAAC,aAAa,CAAC,OAAO,CAAC;QAChC,IAAA,qBAAS,EAAC,aAAa,CAAC,SAAS,CAAC;KACnC,CAAC,CACH;IACD,UAAU,EAAE,IAAA,sBAAQ,EAClB,IAAA,mBAAK,EAAC,CAAC,IAAA,qBAAS,EAAC,UAAU,CAAC,MAAM,CAAC,EAAE,IAAA,qBAAS,EAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACpE;IACD,IAAI,EAAE,IAAA,sBAAQ,EAAC,IAAA,oBAAM,GAAE,CAAC;CACzB,CAAC,CACH,CAAC;AAaF;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,MAAM,GAAG,IAAA,uBAAa,EAAC,gBAAQ,CAAC,MAAM,EAAE,oBAAY,EAAE;IACjE,OAAO;IACP,YAAY;IACZ,MAAM;IACN,SAAS;CACV,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { assign, object, optional, string, union } from '@metamask/superstruct';\n\nimport { enumValue, literal } from '../../internals';\nimport { createBuilder } from '../builder';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport enum ButtonVariant {\n Primary = 'primary',\n Secondary = 'secondary',\n}\n\nexport enum ButtonType {\n Button = 'button',\n Submit = 'submit',\n}\n\nexport const ButtonStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Button),\n value: string(),\n variant: optional(\n union([\n enumValue(ButtonVariant.Primary),\n enumValue(ButtonVariant.Secondary),\n ]),\n ),\n buttonType: optional(\n union([enumValue(ButtonType.Button), enumValue(ButtonType.Submit)]),\n ),\n name: optional(string()),\n }),\n);\n\n/**\n * A button node, that renders either a primary or a secondary button.\n *\n * @property type - The type of the node, must be the string 'button'.\n * @property variant - The style variant of the node, must be either 'primary' or 'secondary'.\n * @property value - The text content of the node as plain text.\n * @property buttonType - The type of the button, must be either 'button' or 'submit'.\n * @property name - An optional name to identify the button.\n */\nexport type Button = Infer<typeof ButtonStruct>;\n\n/**\n * Create a {@link Button} node.\n *\n * @param args - The node arguments. This can be either a string, or an object\n * with a `value` property. A set of optional properties can be passed.\n * @param args.variant - The optional variant of the button.\n * @param args.value - The text content of the node.\n * @param args.name - The optional name of the button.\n * @returns The text node as object.\n * @deprecated Snaps component functions are deprecated, in favor of the new JSX\n * components. This function will be removed in a future release.\n * @example\n * ```typescript\n * const node = button({ variant: 'primary', text: 'Hello, world!', name: 'myButton' });\n * const node = button('Hello, world!', 'button', 'myButton', 'primary');\n * const node = button('Hello, world!');\n * ```\n */\nexport const button = createBuilder(NodeType.Button, ButtonStruct, [\n 'value',\n 'buttonType',\n 'name',\n 'variant',\n]);\n"]}
1
+ {"version":3,"file":"button.cjs","sourceRoot":"","sources":["../../../src/ui/components/button.ts"],"names":[],"mappings":";;;AAAA,uDAAgF;AAEhF,yDAAqD;AACrD,wCAAmD;AAEnD,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AACzB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAEY,QAAA,YAAY,GAAG,IAAA,oBAAM,EAChC,qBAAa,EACb,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,IAAA,oBAAM,GAAE;IACf,OAAO,EAAE,IAAA,sBAAQ,EACf,IAAA,mBAAK,EAAC;QACJ,IAAA,qBAAS,EAAC,aAAa,CAAC,OAAO,CAAC;QAChC,IAAA,qBAAS,EAAC,aAAa,CAAC,SAAS,CAAC;KACnC,CAAC,CACH;IACD,UAAU,EAAE,IAAA,sBAAQ,EAClB,IAAA,mBAAK,EAAC,CAAC,IAAA,qBAAS,EAAC,UAAU,CAAC,MAAM,CAAC,EAAE,IAAA,qBAAS,EAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACpE;IACD,IAAI,EAAE,IAAA,sBAAQ,EAAC,IAAA,oBAAM,GAAE,CAAC;CACzB,CAAC,CACH,CAAC","sourcesContent":["import { assign, object, optional, string, union } from '@metamask/superstruct';\n\nimport { enumValue, literal } from '../../internals';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport enum ButtonVariant {\n Primary = 'primary',\n Secondary = 'secondary',\n}\n\nexport enum ButtonType {\n Button = 'button',\n Submit = 'submit',\n}\n\nexport const ButtonStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Button),\n value: string(),\n variant: optional(\n union([\n enumValue(ButtonVariant.Primary),\n enumValue(ButtonVariant.Secondary),\n ]),\n ),\n buttonType: optional(\n union([enumValue(ButtonType.Button), enumValue(ButtonType.Submit)]),\n ),\n name: optional(string()),\n }),\n);\n"]}
@@ -1,4 +1,3 @@
1
- import type { Infer } from "@metamask/superstruct";
2
1
  import { NodeType } from "../nodes.cjs";
3
2
  export declare enum ButtonVariant {
4
3
  Primary = "primary",
@@ -21,45 +20,4 @@ export declare const ButtonStruct: import("@metamask/superstruct").Struct<{
21
20
  buttonType: import("@metamask/superstruct").Struct<"button" | "submit" | undefined, null>;
22
21
  name: import("@metamask/superstruct").Struct<string | undefined, null>;
23
22
  }>;
24
- /**
25
- * A button node, that renders either a primary or a secondary button.
26
- *
27
- * @property type - The type of the node, must be the string 'button'.
28
- * @property variant - The style variant of the node, must be either 'primary' or 'secondary'.
29
- * @property value - The text content of the node as plain text.
30
- * @property buttonType - The type of the button, must be either 'button' or 'submit'.
31
- * @property name - An optional name to identify the button.
32
- */
33
- export type Button = Infer<typeof ButtonStruct>;
34
- /**
35
- * Create a {@link Button} node.
36
- *
37
- * @param args - The node arguments. This can be either a string, or an object
38
- * with a `value` property. A set of optional properties can be passed.
39
- * @param args.variant - The optional variant of the button.
40
- * @param args.value - The text content of the node.
41
- * @param args.name - The optional name of the button.
42
- * @returns The text node as object.
43
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
44
- * components. This function will be removed in a future release.
45
- * @example
46
- * ```typescript
47
- * const node = button({ variant: 'primary', text: 'Hello, world!', name: 'myButton' });
48
- * const node = button('Hello, world!', 'button', 'myButton', 'primary');
49
- * const node = button('Hello, world!');
50
- * ```
51
- */
52
- export declare const button: (...args: [Omit<{
53
- value: string;
54
- type: NodeType.Button;
55
- variant?: "primary" | "secondary" | undefined;
56
- name?: string | undefined;
57
- buttonType?: "button" | "submit" | undefined;
58
- }, "type">] | (string | undefined)[]) => {
59
- value: string;
60
- type: NodeType.Button;
61
- variant?: "primary" | "secondary" | undefined;
62
- name?: string | undefined;
63
- buttonType?: "button" | "submit" | undefined;
64
- };
65
23
  //# sourceMappingURL=button.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.cts","sourceRoot":"","sources":["../../../src/ui/components/button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;EAgBxB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEhD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;CAKjB,CAAC"}
1
+ {"version":3,"file":"button.d.cts","sourceRoot":"","sources":["../../../src/ui/components/button.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;EAgBxB,CAAC"}
@@ -1,4 +1,3 @@
1
- import type { Infer } from "@metamask/superstruct";
2
1
  import { NodeType } from "../nodes.mjs";
3
2
  export declare enum ButtonVariant {
4
3
  Primary = "primary",
@@ -21,45 +20,4 @@ export declare const ButtonStruct: import("@metamask/superstruct").Struct<{
21
20
  buttonType: import("@metamask/superstruct").Struct<"button" | "submit" | undefined, null>;
22
21
  name: import("@metamask/superstruct").Struct<string | undefined, null>;
23
22
  }>;
24
- /**
25
- * A button node, that renders either a primary or a secondary button.
26
- *
27
- * @property type - The type of the node, must be the string 'button'.
28
- * @property variant - The style variant of the node, must be either 'primary' or 'secondary'.
29
- * @property value - The text content of the node as plain text.
30
- * @property buttonType - The type of the button, must be either 'button' or 'submit'.
31
- * @property name - An optional name to identify the button.
32
- */
33
- export type Button = Infer<typeof ButtonStruct>;
34
- /**
35
- * Create a {@link Button} node.
36
- *
37
- * @param args - The node arguments. This can be either a string, or an object
38
- * with a `value` property. A set of optional properties can be passed.
39
- * @param args.variant - The optional variant of the button.
40
- * @param args.value - The text content of the node.
41
- * @param args.name - The optional name of the button.
42
- * @returns The text node as object.
43
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
44
- * components. This function will be removed in a future release.
45
- * @example
46
- * ```typescript
47
- * const node = button({ variant: 'primary', text: 'Hello, world!', name: 'myButton' });
48
- * const node = button('Hello, world!', 'button', 'myButton', 'primary');
49
- * const node = button('Hello, world!');
50
- * ```
51
- */
52
- export declare const button: (...args: [Omit<{
53
- value: string;
54
- type: NodeType.Button;
55
- variant?: "primary" | "secondary" | undefined;
56
- name?: string | undefined;
57
- buttonType?: "button" | "submit" | undefined;
58
- }, "type">] | (string | undefined)[]) => {
59
- value: string;
60
- type: NodeType.Button;
61
- variant?: "primary" | "secondary" | undefined;
62
- name?: string | undefined;
63
- buttonType?: "button" | "submit" | undefined;
64
- };
65
23
  //# sourceMappingURL=button.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.mts","sourceRoot":"","sources":["../../../src/ui/components/button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;EAgBxB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEhD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;CAKjB,CAAC"}
1
+ {"version":3,"file":"button.d.mts","sourceRoot":"","sources":["../../../src/ui/components/button.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;EAgBxB,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { assign, object, optional, string, union } from "@metamask/superstruct";
2
2
  import { enumValue, literal } from "../../internals/index.mjs";
3
- import { createBuilder } from "../builder.mjs";
4
3
  import { LiteralStruct, NodeType } from "../nodes.mjs";
5
4
  export var ButtonVariant;
6
5
  (function (ButtonVariant) {
@@ -22,28 +21,4 @@ export const ButtonStruct = assign(LiteralStruct, object({
22
21
  buttonType: optional(union([enumValue(ButtonType.Button), enumValue(ButtonType.Submit)])),
23
22
  name: optional(string()),
24
23
  }));
25
- /**
26
- * Create a {@link Button} node.
27
- *
28
- * @param args - The node arguments. This can be either a string, or an object
29
- * with a `value` property. A set of optional properties can be passed.
30
- * @param args.variant - The optional variant of the button.
31
- * @param args.value - The text content of the node.
32
- * @param args.name - The optional name of the button.
33
- * @returns The text node as object.
34
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
35
- * components. This function will be removed in a future release.
36
- * @example
37
- * ```typescript
38
- * const node = button({ variant: 'primary', text: 'Hello, world!', name: 'myButton' });
39
- * const node = button('Hello, world!', 'button', 'myButton', 'primary');
40
- * const node = button('Hello, world!');
41
- * ```
42
- */
43
- export const button = createBuilder(NodeType.Button, ButtonStruct, [
44
- 'value',
45
- 'buttonType',
46
- 'name',
47
- 'variant',
48
- ]);
49
24
  //# sourceMappingURL=button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.mjs","sourceRoot":"","sources":["../../../src/ui/components/button.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,8BAA8B;AAEhF,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kCAAwB;AACrD,OAAO,EAAE,aAAa,EAAE,uBAAmB;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAiB;AAEnD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AACzB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAChC,aAAa,EACb,MAAM,CAAC;IACL,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,MAAM,EAAE;IACf,OAAO,EAAE,QAAQ,CACf,KAAK,CAAC;QACJ,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC;QAChC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC;KACnC,CAAC,CACH;IACD,UAAU,EAAE,QAAQ,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACpE;IACD,IAAI,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;CACzB,CAAC,CACH,CAAC;AAaF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,QAAQ,CAAC,MAAM,EAAE,YAAY,EAAE;IACjE,OAAO;IACP,YAAY;IACZ,MAAM;IACN,SAAS;CACV,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { assign, object, optional, string, union } from '@metamask/superstruct';\n\nimport { enumValue, literal } from '../../internals';\nimport { createBuilder } from '../builder';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport enum ButtonVariant {\n Primary = 'primary',\n Secondary = 'secondary',\n}\n\nexport enum ButtonType {\n Button = 'button',\n Submit = 'submit',\n}\n\nexport const ButtonStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Button),\n value: string(),\n variant: optional(\n union([\n enumValue(ButtonVariant.Primary),\n enumValue(ButtonVariant.Secondary),\n ]),\n ),\n buttonType: optional(\n union([enumValue(ButtonType.Button), enumValue(ButtonType.Submit)]),\n ),\n name: optional(string()),\n }),\n);\n\n/**\n * A button node, that renders either a primary or a secondary button.\n *\n * @property type - The type of the node, must be the string 'button'.\n * @property variant - The style variant of the node, must be either 'primary' or 'secondary'.\n * @property value - The text content of the node as plain text.\n * @property buttonType - The type of the button, must be either 'button' or 'submit'.\n * @property name - An optional name to identify the button.\n */\nexport type Button = Infer<typeof ButtonStruct>;\n\n/**\n * Create a {@link Button} node.\n *\n * @param args - The node arguments. This can be either a string, or an object\n * with a `value` property. A set of optional properties can be passed.\n * @param args.variant - The optional variant of the button.\n * @param args.value - The text content of the node.\n * @param args.name - The optional name of the button.\n * @returns The text node as object.\n * @deprecated Snaps component functions are deprecated, in favor of the new JSX\n * components. This function will be removed in a future release.\n * @example\n * ```typescript\n * const node = button({ variant: 'primary', text: 'Hello, world!', name: 'myButton' });\n * const node = button('Hello, world!', 'button', 'myButton', 'primary');\n * const node = button('Hello, world!');\n * ```\n */\nexport const button = createBuilder(NodeType.Button, ButtonStruct, [\n 'value',\n 'buttonType',\n 'name',\n 'variant',\n]);\n"]}
1
+ {"version":3,"file":"button.mjs","sourceRoot":"","sources":["../../../src/ui/components/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,8BAA8B;AAEhF,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kCAAwB;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAiB;AAEnD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AACzB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAChC,aAAa,EACb,MAAM,CAAC;IACL,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,MAAM,EAAE;IACf,OAAO,EAAE,QAAQ,CACf,KAAK,CAAC;QACJ,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC;QAChC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC;KACnC,CAAC,CACH;IACD,UAAU,EAAE,QAAQ,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACpE;IACD,IAAI,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;CACzB,CAAC,CACH,CAAC","sourcesContent":["import { assign, object, optional, string, union } from '@metamask/superstruct';\n\nimport { enumValue, literal } from '../../internals';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport enum ButtonVariant {\n Primary = 'primary',\n Secondary = 'secondary',\n}\n\nexport enum ButtonType {\n Button = 'button',\n Submit = 'submit',\n}\n\nexport const ButtonStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Button),\n value: string(),\n variant: optional(\n union([\n enumValue(ButtonVariant.Primary),\n enumValue(ButtonVariant.Secondary),\n ]),\n ),\n buttonType: optional(\n union([enumValue(ButtonType.Button), enumValue(ButtonType.Submit)]),\n ),\n name: optional(string()),\n }),\n);\n"]}
@@ -1,33 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.copyable = exports.CopyableStruct = void 0;
3
+ exports.CopyableStruct = void 0;
4
4
  const superstruct_1 = require("@metamask/superstruct");
5
5
  const internals_1 = require("../../internals/index.cjs");
6
- const builder_1 = require("../builder.cjs");
7
6
  const nodes_1 = require("../nodes.cjs");
8
7
  exports.CopyableStruct = (0, superstruct_1.assign)(nodes_1.LiteralStruct, (0, superstruct_1.object)({
9
8
  type: (0, internals_1.literal)(nodes_1.NodeType.Copyable),
10
9
  value: (0, superstruct_1.string)(),
11
10
  sensitive: (0, superstruct_1.optional)((0, superstruct_1.boolean)()),
12
11
  }));
13
- /**
14
- * Create a {@link Copyable} component.
15
- *
16
- * @param args - The node arguments. This can either be a string, or an object
17
- * with the `text` property.
18
- * @param args.value - The text to be copied.
19
- * @param args.sensitive - Whether the value is sensitive or not. Sensitive
20
- * values are only displayed to the user after clicking on the component.
21
- * Defaults to false.
22
- * @returns A {@link Copyable} component.
23
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
24
- * components. This function will be removed in a future release.
25
- * @example
26
- * const node = copyable('Hello, world!');
27
- * const node = copyable({ value: 'Hello, world!' });
28
- */
29
- exports.copyable = (0, builder_1.createBuilder)(nodes_1.NodeType.Copyable, exports.CopyableStruct, [
30
- 'value',
31
- 'sensitive',
32
- ]);
33
12
  //# sourceMappingURL=copyable.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"copyable.cjs","sourceRoot":"","sources":["../../../src/ui/components/copyable.ts"],"names":[],"mappings":";;;AACA,uDAM+B;AAE/B,yDAA0C;AAC1C,4CAA2C;AAC3C,wCAAmD;AAEtC,QAAA,cAAc,GAAG,IAAA,oBAAM,EAClC,qBAAa,EACb,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,QAAQ,CAAC;IAChC,KAAK,EAAE,IAAA,oBAAM,GAAE;IACf,SAAS,EAAE,IAAA,sBAAQ,EAAC,IAAA,qBAAO,GAAE,CAAC;CAC/B,CAAC,CACH,CAAC;AAeF;;;;;;;;;;;;;;;GAeG;AACU,QAAA,QAAQ,GAAG,IAAA,uBAAa,EAAC,gBAAQ,CAAC,QAAQ,EAAE,sBAAc,EAAE;IACvE,OAAO;IACP,WAAW;CACZ,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n assign,\n boolean,\n object,\n optional,\n string,\n} from '@metamask/superstruct';\n\nimport { literal } from '../../internals';\nimport { createBuilder } from '../builder';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport const CopyableStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Copyable),\n value: string(),\n sensitive: optional(boolean()),\n }),\n);\n\n/**\n * Text that can be copied to the clipboard. It can optionally be marked as\n * sensitive, in which case it will only be displayed to the user after clicking\n * on the component.\n *\n * @property type - The type of the node. Must be the string `copyable`.\n * @property value - The text to be copied.\n * @property sensitive - Whether the value is sensitive or not. Sensitive values\n * are only displayed to the user after clicking on the component. Defaults to\n * false.\n */\nexport type Copyable = Infer<typeof CopyableStruct>;\n\n/**\n * Create a {@link Copyable} component.\n *\n * @param args - The node arguments. This can either be a string, or an object\n * with the `text` property.\n * @param args.value - The text to be copied.\n * @param args.sensitive - Whether the value is sensitive or not. Sensitive\n * values are only displayed to the user after clicking on the component.\n * Defaults to false.\n * @returns A {@link Copyable} component.\n * @deprecated Snaps component functions are deprecated, in favor of the new JSX\n * components. This function will be removed in a future release.\n * @example\n * const node = copyable('Hello, world!');\n * const node = copyable({ value: 'Hello, world!' });\n */\nexport const copyable = createBuilder(NodeType.Copyable, CopyableStruct, [\n 'value',\n 'sensitive',\n]);\n"]}
1
+ {"version":3,"file":"copyable.cjs","sourceRoot":"","sources":["../../../src/ui/components/copyable.ts"],"names":[],"mappings":";;;AAAA,uDAM+B;AAE/B,yDAA0C;AAC1C,wCAAmD;AAEtC,QAAA,cAAc,GAAG,IAAA,oBAAM,EAClC,qBAAa,EACb,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,QAAQ,CAAC;IAChC,KAAK,EAAE,IAAA,oBAAM,GAAE;IACf,SAAS,EAAE,IAAA,sBAAQ,EAAC,IAAA,qBAAO,GAAE,CAAC;CAC/B,CAAC,CACH,CAAC","sourcesContent":["import {\n assign,\n boolean,\n object,\n optional,\n string,\n} from '@metamask/superstruct';\n\nimport { literal } from '../../internals';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport const CopyableStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Copyable),\n value: string(),\n sensitive: optional(boolean()),\n }),\n);\n"]}
@@ -1,4 +1,3 @@
1
- import type { Infer } from "@metamask/superstruct";
2
1
  import { NodeType } from "../nodes.cjs";
3
2
  export declare const CopyableStruct: import("@metamask/superstruct").Struct<{
4
3
  value: string;
@@ -9,41 +8,4 @@ export declare const CopyableStruct: import("@metamask/superstruct").Struct<{
9
8
  value: import("@metamask/superstruct").Struct<string, null>;
10
9
  sensitive: import("@metamask/superstruct").Struct<boolean | undefined, null>;
11
10
  }>;
12
- /**
13
- * Text that can be copied to the clipboard. It can optionally be marked as
14
- * sensitive, in which case it will only be displayed to the user after clicking
15
- * on the component.
16
- *
17
- * @property type - The type of the node. Must be the string `copyable`.
18
- * @property value - The text to be copied.
19
- * @property sensitive - Whether the value is sensitive or not. Sensitive values
20
- * are only displayed to the user after clicking on the component. Defaults to
21
- * false.
22
- */
23
- export type Copyable = Infer<typeof CopyableStruct>;
24
- /**
25
- * Create a {@link Copyable} component.
26
- *
27
- * @param args - The node arguments. This can either be a string, or an object
28
- * with the `text` property.
29
- * @param args.value - The text to be copied.
30
- * @param args.sensitive - Whether the value is sensitive or not. Sensitive
31
- * values are only displayed to the user after clicking on the component.
32
- * Defaults to false.
33
- * @returns A {@link Copyable} component.
34
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
35
- * components. This function will be removed in a future release.
36
- * @example
37
- * const node = copyable('Hello, world!');
38
- * const node = copyable({ value: 'Hello, world!' });
39
- */
40
- export declare const copyable: (...args: [Omit<{
41
- value: string;
42
- type: NodeType.Copyable;
43
- sensitive?: boolean | undefined;
44
- }, "type">] | (string | boolean | undefined)[]) => {
45
- value: string;
46
- type: NodeType.Copyable;
47
- sensitive?: boolean | undefined;
48
- };
49
11
  //# sourceMappingURL=copyable.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"copyable.d.cts","sourceRoot":"","sources":["../../../src/ui/components/copyable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,eAAO,MAAM,cAAc;;;;;;;;EAO1B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;CAGnB,CAAC"}
1
+ {"version":3,"file":"copyable.d.cts","sourceRoot":"","sources":["../../../src/ui/components/copyable.ts"],"names":[],"mappings":"AASA,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,eAAO,MAAM,cAAc;;;;;;;;EAO1B,CAAC"}
@@ -1,4 +1,3 @@
1
- import type { Infer } from "@metamask/superstruct";
2
1
  import { NodeType } from "../nodes.mjs";
3
2
  export declare const CopyableStruct: import("@metamask/superstruct").Struct<{
4
3
  value: string;
@@ -9,41 +8,4 @@ export declare const CopyableStruct: import("@metamask/superstruct").Struct<{
9
8
  value: import("@metamask/superstruct").Struct<string, null>;
10
9
  sensitive: import("@metamask/superstruct").Struct<boolean | undefined, null>;
11
10
  }>;
12
- /**
13
- * Text that can be copied to the clipboard. It can optionally be marked as
14
- * sensitive, in which case it will only be displayed to the user after clicking
15
- * on the component.
16
- *
17
- * @property type - The type of the node. Must be the string `copyable`.
18
- * @property value - The text to be copied.
19
- * @property sensitive - Whether the value is sensitive or not. Sensitive values
20
- * are only displayed to the user after clicking on the component. Defaults to
21
- * false.
22
- */
23
- export type Copyable = Infer<typeof CopyableStruct>;
24
- /**
25
- * Create a {@link Copyable} component.
26
- *
27
- * @param args - The node arguments. This can either be a string, or an object
28
- * with the `text` property.
29
- * @param args.value - The text to be copied.
30
- * @param args.sensitive - Whether the value is sensitive or not. Sensitive
31
- * values are only displayed to the user after clicking on the component.
32
- * Defaults to false.
33
- * @returns A {@link Copyable} component.
34
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
35
- * components. This function will be removed in a future release.
36
- * @example
37
- * const node = copyable('Hello, world!');
38
- * const node = copyable({ value: 'Hello, world!' });
39
- */
40
- export declare const copyable: (...args: [Omit<{
41
- value: string;
42
- type: NodeType.Copyable;
43
- sensitive?: boolean | undefined;
44
- }, "type">] | (string | boolean | undefined)[]) => {
45
- value: string;
46
- type: NodeType.Copyable;
47
- sensitive?: boolean | undefined;
48
- };
49
11
  //# sourceMappingURL=copyable.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"copyable.d.mts","sourceRoot":"","sources":["../../../src/ui/components/copyable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,eAAO,MAAM,cAAc;;;;;;;;EAO1B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;CAGnB,CAAC"}
1
+ {"version":3,"file":"copyable.d.mts","sourceRoot":"","sources":["../../../src/ui/components/copyable.ts"],"names":[],"mappings":"AASA,OAAO,EAAiB,QAAQ,EAAE,qBAAiB;AAEnD,eAAO,MAAM,cAAc;;;;;;;;EAO1B,CAAC"}
@@ -1,30 +1,9 @@
1
1
  import { assign, boolean, object, optional, string } from "@metamask/superstruct";
2
2
  import { literal } from "../../internals/index.mjs";
3
- import { createBuilder } from "../builder.mjs";
4
3
  import { LiteralStruct, NodeType } from "../nodes.mjs";
5
4
  export const CopyableStruct = assign(LiteralStruct, object({
6
5
  type: literal(NodeType.Copyable),
7
6
  value: string(),
8
7
  sensitive: optional(boolean()),
9
8
  }));
10
- /**
11
- * Create a {@link Copyable} component.
12
- *
13
- * @param args - The node arguments. This can either be a string, or an object
14
- * with the `text` property.
15
- * @param args.value - The text to be copied.
16
- * @param args.sensitive - Whether the value is sensitive or not. Sensitive
17
- * values are only displayed to the user after clicking on the component.
18
- * Defaults to false.
19
- * @returns A {@link Copyable} component.
20
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
21
- * components. This function will be removed in a future release.
22
- * @example
23
- * const node = copyable('Hello, world!');
24
- * const node = copyable({ value: 'Hello, world!' });
25
- */
26
- export const copyable = createBuilder(NodeType.Copyable, CopyableStruct, [
27
- 'value',
28
- 'sensitive',
29
- ]);
30
9
  //# sourceMappingURL=copyable.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"copyable.mjs","sourceRoot":"","sources":["../../../src/ui/components/copyable.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,MAAM,EACP,8BAA8B;AAE/B,OAAO,EAAE,OAAO,EAAE,kCAAwB;AAC1C,OAAO,EAAE,aAAa,EAAE,uBAAmB;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAiB;AAEnD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAClC,aAAa,EACb,MAAM,CAAC;IACL,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAChC,KAAK,EAAE,MAAM,EAAE;IACf,SAAS,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;CAC/B,CAAC,CACH,CAAC;AAeF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC,QAAQ,EAAE,cAAc,EAAE;IACvE,OAAO;IACP,WAAW;CACZ,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n assign,\n boolean,\n object,\n optional,\n string,\n} from '@metamask/superstruct';\n\nimport { literal } from '../../internals';\nimport { createBuilder } from '../builder';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport const CopyableStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Copyable),\n value: string(),\n sensitive: optional(boolean()),\n }),\n);\n\n/**\n * Text that can be copied to the clipboard. It can optionally be marked as\n * sensitive, in which case it will only be displayed to the user after clicking\n * on the component.\n *\n * @property type - The type of the node. Must be the string `copyable`.\n * @property value - The text to be copied.\n * @property sensitive - Whether the value is sensitive or not. Sensitive values\n * are only displayed to the user after clicking on the component. Defaults to\n * false.\n */\nexport type Copyable = Infer<typeof CopyableStruct>;\n\n/**\n * Create a {@link Copyable} component.\n *\n * @param args - The node arguments. This can either be a string, or an object\n * with the `text` property.\n * @param args.value - The text to be copied.\n * @param args.sensitive - Whether the value is sensitive or not. Sensitive\n * values are only displayed to the user after clicking on the component.\n * Defaults to false.\n * @returns A {@link Copyable} component.\n * @deprecated Snaps component functions are deprecated, in favor of the new JSX\n * components. This function will be removed in a future release.\n * @example\n * const node = copyable('Hello, world!');\n * const node = copyable({ value: 'Hello, world!' });\n */\nexport const copyable = createBuilder(NodeType.Copyable, CopyableStruct, [\n 'value',\n 'sensitive',\n]);\n"]}
1
+ {"version":3,"file":"copyable.mjs","sourceRoot":"","sources":["../../../src/ui/components/copyable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,MAAM,EACP,8BAA8B;AAE/B,OAAO,EAAE,OAAO,EAAE,kCAAwB;AAC1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAiB;AAEnD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAClC,aAAa,EACb,MAAM,CAAC;IACL,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAChC,KAAK,EAAE,MAAM,EAAE;IACf,SAAS,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;CAC/B,CAAC,CACH,CAAC","sourcesContent":["import {\n assign,\n boolean,\n object,\n optional,\n string,\n} from '@metamask/superstruct';\n\nimport { literal } from '../../internals';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport const CopyableStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Copyable),\n value: string(),\n sensitive: optional(boolean()),\n }),\n);\n"]}
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.divider = exports.DividerStruct = void 0;
3
+ exports.DividerStruct = void 0;
4
4
  const superstruct_1 = require("@metamask/superstruct");
5
5
  const internals_1 = require("../../internals/index.cjs");
6
- const builder_1 = require("../builder.cjs");
7
6
  const nodes_1 = require("../nodes.cjs");
8
7
  exports.DividerStruct = (0, superstruct_1.assign)(nodes_1.NodeStruct, (0, superstruct_1.object)({
9
8
  type: (0, internals_1.literal)(nodes_1.NodeType.Divider),
10
9
  }));
11
- /**
12
- * Create a {@link Divider} node.
13
- *
14
- * @returns The divider node as object.
15
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
16
- * components. This function will be removed in a future release.
17
- * @example
18
- * const node = divider();
19
- */
20
- exports.divider = (0, builder_1.createBuilder)(nodes_1.NodeType.Divider, exports.DividerStruct);
21
10
  //# sourceMappingURL=divider.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"divider.cjs","sourceRoot":"","sources":["../../../src/ui/components/divider.ts"],"names":[],"mappings":";;;AACA,uDAAuD;AAEvD,yDAA0C;AAC1C,4CAA2C;AAC3C,wCAAgD;AAEnC,QAAA,aAAa,GAAG,IAAA,oBAAM,EACjC,kBAAU,EACV,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,OAAO,CAAC;CAChC,CAAC,CACH,CAAC;AAOF;;;;;;;;GAQG;AACU,QAAA,OAAO,GAAG,IAAA,uBAAa,EAAC,gBAAQ,CAAC,OAAO,EAAE,qBAAa,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { assign, object } from '@metamask/superstruct';\n\nimport { literal } from '../../internals';\nimport { createBuilder } from '../builder';\nimport { NodeStruct, NodeType } from '../nodes';\n\nexport const DividerStruct = assign(\n NodeStruct,\n object({\n type: literal(NodeType.Divider),\n }),\n);\n\n/**\n * A divider node, that renders a line between other nodes.\n */\nexport type Divider = Infer<typeof DividerStruct>;\n\n/**\n * Create a {@link Divider} node.\n *\n * @returns The divider node as object.\n * @deprecated Snaps component functions are deprecated, in favor of the new JSX\n * components. This function will be removed in a future release.\n * @example\n * const node = divider();\n */\nexport const divider = createBuilder(NodeType.Divider, DividerStruct);\n"]}
1
+ {"version":3,"file":"divider.cjs","sourceRoot":"","sources":["../../../src/ui/components/divider.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AAEvD,yDAA0C;AAC1C,wCAAgD;AAEnC,QAAA,aAAa,GAAG,IAAA,oBAAM,EACjC,kBAAU,EACV,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,OAAO,CAAC;CAChC,CAAC,CACH,CAAC","sourcesContent":["import { assign, object } from '@metamask/superstruct';\n\nimport { literal } from '../../internals';\nimport { NodeStruct, NodeType } from '../nodes';\n\nexport const DividerStruct = assign(\n NodeStruct,\n object({\n type: literal(NodeType.Divider),\n }),\n);\n"]}
@@ -1,24 +1,7 @@
1
- import type { Infer } from "@metamask/superstruct";
2
1
  import { NodeType } from "../nodes.cjs";
3
2
  export declare const DividerStruct: import("@metamask/superstruct").Struct<{
4
3
  type: NodeType.Divider;
5
4
  }, {
6
5
  type: import("@metamask/superstruct").Struct<NodeType.Divider, null>;
7
6
  }>;
8
- /**
9
- * A divider node, that renders a line between other nodes.
10
- */
11
- export type Divider = Infer<typeof DividerStruct>;
12
- /**
13
- * Create a {@link Divider} node.
14
- *
15
- * @returns The divider node as object.
16
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
17
- * components. This function will be removed in a future release.
18
- * @example
19
- * const node = divider();
20
- */
21
- export declare const divider: () => {
22
- type: NodeType.Divider;
23
- };
24
7
  //# sourceMappingURL=divider.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"divider.d.cts","sourceRoot":"","sources":["../../../src/ui/components/divider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD,OAAO,EAAc,QAAQ,EAAE,qBAAiB;AAEhD,eAAO,MAAM,aAAa;;;;EAKzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO;;CAAiD,CAAC"}
1
+ {"version":3,"file":"divider.d.cts","sourceRoot":"","sources":["../../../src/ui/components/divider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,QAAQ,EAAE,qBAAiB;AAEhD,eAAO,MAAM,aAAa;;;;EAKzB,CAAC"}
@@ -1,24 +1,7 @@
1
- import type { Infer } from "@metamask/superstruct";
2
1
  import { NodeType } from "../nodes.mjs";
3
2
  export declare const DividerStruct: import("@metamask/superstruct").Struct<{
4
3
  type: NodeType.Divider;
5
4
  }, {
6
5
  type: import("@metamask/superstruct").Struct<NodeType.Divider, null>;
7
6
  }>;
8
- /**
9
- * A divider node, that renders a line between other nodes.
10
- */
11
- export type Divider = Infer<typeof DividerStruct>;
12
- /**
13
- * Create a {@link Divider} node.
14
- *
15
- * @returns The divider node as object.
16
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
17
- * components. This function will be removed in a future release.
18
- * @example
19
- * const node = divider();
20
- */
21
- export declare const divider: () => {
22
- type: NodeType.Divider;
23
- };
24
7
  //# sourceMappingURL=divider.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"divider.d.mts","sourceRoot":"","sources":["../../../src/ui/components/divider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAKnD,OAAO,EAAc,QAAQ,EAAE,qBAAiB;AAEhD,eAAO,MAAM,aAAa;;;;EAKzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO;;CAAiD,CAAC"}
1
+ {"version":3,"file":"divider.d.mts","sourceRoot":"","sources":["../../../src/ui/components/divider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,QAAQ,EAAE,qBAAiB;AAEhD,eAAO,MAAM,aAAa;;;;EAKzB,CAAC"}
@@ -1,18 +1,7 @@
1
1
  import { assign, object } from "@metamask/superstruct";
2
2
  import { literal } from "../../internals/index.mjs";
3
- import { createBuilder } from "../builder.mjs";
4
3
  import { NodeStruct, NodeType } from "../nodes.mjs";
5
4
  export const DividerStruct = assign(NodeStruct, object({
6
5
  type: literal(NodeType.Divider),
7
6
  }));
8
- /**
9
- * Create a {@link Divider} node.
10
- *
11
- * @returns The divider node as object.
12
- * @deprecated Snaps component functions are deprecated, in favor of the new JSX
13
- * components. This function will be removed in a future release.
14
- * @example
15
- * const node = divider();
16
- */
17
- export const divider = createBuilder(NodeType.Divider, DividerStruct);
18
7
  //# sourceMappingURL=divider.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"divider.mjs","sourceRoot":"","sources":["../../../src/ui/components/divider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B;AAEvD,OAAO,EAAE,OAAO,EAAE,kCAAwB;AAC1C,OAAO,EAAE,aAAa,EAAE,uBAAmB;AAC3C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,qBAAiB;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CACjC,UAAU,EACV,MAAM,CAAC;IACL,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;CAChC,CAAC,CACH,CAAC;AAOF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { assign, object } from '@metamask/superstruct';\n\nimport { literal } from '../../internals';\nimport { createBuilder } from '../builder';\nimport { NodeStruct, NodeType } from '../nodes';\n\nexport const DividerStruct = assign(\n NodeStruct,\n object({\n type: literal(NodeType.Divider),\n }),\n);\n\n/**\n * A divider node, that renders a line between other nodes.\n */\nexport type Divider = Infer<typeof DividerStruct>;\n\n/**\n * Create a {@link Divider} node.\n *\n * @returns The divider node as object.\n * @deprecated Snaps component functions are deprecated, in favor of the new JSX\n * components. This function will be removed in a future release.\n * @example\n * const node = divider();\n */\nexport const divider = createBuilder(NodeType.Divider, DividerStruct);\n"]}
1
+ {"version":3,"file":"divider.mjs","sourceRoot":"","sources":["../../../src/ui/components/divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B;AAEvD,OAAO,EAAE,OAAO,EAAE,kCAAwB;AAC1C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,qBAAiB;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CACjC,UAAU,EACV,MAAM,CAAC;IACL,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;CAChC,CAAC,CACH,CAAC","sourcesContent":["import { assign, object } from '@metamask/superstruct';\n\nimport { literal } from '../../internals';\nimport { NodeStruct, NodeType } from '../nodes';\n\nexport const DividerStruct = assign(\n NodeStruct,\n object({\n type: literal(NodeType.Divider),\n }),\n);\n"]}