@stacksjs/stx 0.2.412 → 0.2.414

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 (350) hide show
  1. package/dist/appearance-bootstrap.js +1 -1
  2. package/dist/binding-manifest.d.ts +1 -1
  3. package/dist/builtins/image-delivery.d.ts +38 -0
  4. package/dist/builtins/image-delivery.js +17 -0
  5. package/dist/builtins/stx-image.js +1 -5
  6. package/dist/bundle-analyzer.js +20 -20
  7. package/dist/chunk-020xyn9q.js +3 -0
  8. package/dist/chunk-04jhmfbz.js +2 -0
  9. package/dist/chunk-10957mcb.js +2 -0
  10. package/dist/chunk-1098mas0.js +2 -0
  11. package/dist/chunk-169n1vpx.js +12 -0
  12. package/dist/chunk-1b6t12hd.js +2 -0
  13. package/dist/chunk-1chw8xsw.js +2 -0
  14. package/dist/chunk-1xdzcy9d.js +14 -0
  15. package/dist/chunk-2ce7f416.js +2 -0
  16. package/dist/chunk-2gr351s0.js +7 -0
  17. package/dist/chunk-2mkcjw08.js +2 -0
  18. package/dist/chunk-2v8wztd5.js +2 -0
  19. package/dist/chunk-340a824p.js +2 -0
  20. package/dist/chunk-39g1134q.js +2 -0
  21. package/dist/chunk-3c74vag1.js +2 -0
  22. package/dist/chunk-3kthfs03.js +3 -0
  23. package/dist/chunk-3qn1wcdg.js +2 -0
  24. package/dist/chunk-3s2vnqcf.js +2 -0
  25. package/dist/chunk-48bwk47q.js +2 -0
  26. package/dist/chunk-4bjravgk.js +2 -0
  27. package/dist/chunk-4jjme6a5.js +2 -0
  28. package/dist/chunk-5g3y8kym.js +2 -0
  29. package/dist/chunk-5gsxpaqk.js +2 -0
  30. package/dist/{chunk-bwsxym3d.js → chunk-5qns2sdz.js} +17 -17
  31. package/dist/chunk-69mc2np8.js +2785 -0
  32. package/dist/chunk-6cfa3g0r.js +2 -0
  33. package/dist/{chunk-bjar18jd.js → chunk-6h38kkjf.js} +46 -52
  34. package/dist/chunk-6hc5vz20.js +3 -0
  35. package/dist/chunk-6q6g76vg.js +499 -0
  36. package/dist/{chunk-dbc5awz9.js → chunk-6sgswrqw.js} +29 -29
  37. package/dist/chunk-6y8hnymb.js +2 -0
  38. package/dist/chunk-74j18qk0.js +930 -0
  39. package/dist/chunk-752hw7cd.js +4 -0
  40. package/dist/{chunk-t5ja7qkn.js → chunk-765e1s44.js} +11 -76
  41. package/dist/chunk-7gkv67ky.js +4 -0
  42. package/dist/chunk-7z2ra0yf.js +2 -0
  43. package/dist/chunk-866n724v.js +2 -0
  44. package/dist/chunk-8nhshfz6.js +5 -0
  45. package/dist/chunk-92ps1xpk.js +2 -0
  46. package/dist/chunk-9g27ybyr.js +3 -0
  47. package/dist/{chunk-xq1acw1r.js → chunk-9pt8fd2n.js} +13 -13
  48. package/dist/{chunk-qvnbnsv9.js → chunk-9vrja6vp.js} +4 -4
  49. package/dist/chunk-9xrbve19.js +2 -0
  50. package/dist/chunk-a688m6js.js +3 -0
  51. package/dist/chunk-afhxw2t8.js +2 -0
  52. package/dist/chunk-ak1cgcah.js +5 -0
  53. package/dist/{chunk-4m7ajama.js → chunk-amd6ey3t.js} +14 -14
  54. package/dist/chunk-apg16xcn.js +2 -0
  55. package/dist/chunk-b52s5z0c.js +2 -0
  56. package/dist/chunk-b84h16er.js +61 -0
  57. package/dist/{chunk-hx998w7n.js → chunk-bay9s6rs.js} +13 -13
  58. package/dist/chunk-bmt7w2pk.js +2 -0
  59. package/dist/chunk-btmhj5t7.js +2 -0
  60. package/dist/chunk-ce1sejr3.js +3 -0
  61. package/dist/chunk-cg8hg6cs.js +3 -0
  62. package/dist/{chunk-8wp64mym.js → chunk-czxt605c.js} +4 -5
  63. package/dist/chunk-d44b9ktb.js +4 -0
  64. package/dist/chunk-daz5aqcf.js +24 -0
  65. package/dist/chunk-dgdm3hy3.js +2 -0
  66. package/dist/chunk-dvgv8nry.js +11 -0
  67. package/dist/chunk-dx7n22ed.js +2 -0
  68. package/dist/chunk-e57rhf65.js +3 -0
  69. package/dist/chunk-eed4fwps.js +3 -0
  70. package/dist/chunk-ej9j6k1q.js +3 -0
  71. package/dist/chunk-et0rr8c7.js +3 -0
  72. package/dist/chunk-f46qsp4m.js +4 -0
  73. package/dist/chunk-f6az0xj5.js +2 -0
  74. package/dist/{chunk-bjcsc6wx.js → chunk-fh1qrp68.js} +21 -21
  75. package/dist/chunk-fjs0a8h7.js +2 -0
  76. package/dist/chunk-fr2txj8q.js +829 -0
  77. package/dist/{chunk-vx86cf4r.js → chunk-ft4p6d28.js} +14 -14
  78. package/dist/chunk-fyzajkrx.js +2 -0
  79. package/dist/chunk-fzapbw9p.js +3 -0
  80. package/dist/chunk-g578mcb0.js +194 -0
  81. package/dist/chunk-gawrg4gb.js +216 -0
  82. package/dist/chunk-gw07qmjk.js +2 -0
  83. package/dist/chunk-h0atqq82.js +32 -0
  84. package/dist/chunk-h6zsqb9r.js +3 -0
  85. package/dist/{chunk-hdysywd8.js → chunk-h85hrwkq.js} +13 -13
  86. package/dist/chunk-hbxz85wy.js +2 -0
  87. package/dist/chunk-hjg3ndgh.js +2 -0
  88. package/dist/chunk-hkxsewzk.js +2 -0
  89. package/dist/chunk-hrbbbtbn.js +2 -0
  90. package/dist/chunk-j03revz2.js +8 -0
  91. package/dist/chunk-j9qcrwbg.js +2 -0
  92. package/dist/chunk-jk4njz0w.js +2 -0
  93. package/dist/chunk-jmabeqfq.js +2 -0
  94. package/dist/chunk-jt0n43mk.js +2 -0
  95. package/dist/chunk-kjbv8a3m.js +2 -0
  96. package/dist/chunk-m1vdghnx.js +2 -0
  97. package/dist/chunk-m4sk62wb.js +5 -0
  98. package/dist/chunk-md8rqn48.js +30 -0
  99. package/dist/chunk-mepdnezf.js +17 -0
  100. package/dist/chunk-mhq0pjws.js +2 -0
  101. package/dist/chunk-mp6hy8g4.js +2 -0
  102. package/dist/chunk-ngc2wke4.js +3 -0
  103. package/dist/chunk-nn2vstke.js +2 -0
  104. package/dist/chunk-p2v2a68k.js +2 -0
  105. package/dist/{chunk-qn5srnj3.js → chunk-pbh4smw3.js} +16 -16
  106. package/dist/chunk-pdt69hpb.js +2 -0
  107. package/dist/chunk-pgzvyrv6.js +29 -0
  108. package/dist/chunk-pj1wg7jg.js +2 -0
  109. package/dist/chunk-pqxzp1bb.js +3 -0
  110. package/dist/chunk-px7fvbj6.js +3 -0
  111. package/dist/chunk-q4c06e8x.js +20 -0
  112. package/dist/chunk-q6vrb2pe.js +2 -0
  113. package/dist/chunk-q7qchkvk.js +2 -0
  114. package/dist/chunk-q9bdh4s5.js +8 -0
  115. package/dist/chunk-qet5gc6s.js +2033 -0
  116. package/dist/chunk-qz519eyp.js +2 -0
  117. package/dist/chunk-r3f9jcf7.js +5 -0
  118. package/dist/chunk-rs4v4fha.js +4 -0
  119. package/dist/chunk-s2x4wcrz.js +2 -0
  120. package/dist/chunk-s5xezjps.js +3 -0
  121. package/dist/chunk-scezfp0w.js +30 -0
  122. package/dist/chunk-sd321bn3.js +2 -0
  123. package/dist/{chunk-eenk6s3t.js → chunk-sd47dzs0.js} +79 -79
  124. package/dist/chunk-se7mwqd1.js +2 -0
  125. package/dist/chunk-shr559s7.js +3 -0
  126. package/dist/chunk-syaw6b75.js +2 -0
  127. package/dist/chunk-t4hzprsm.js +3 -0
  128. package/dist/{chunk-s9za1vvd.js → chunk-t61vdbje.js} +89 -89
  129. package/dist/chunk-tfexmdkt.js +3 -0
  130. package/dist/chunk-thyt8ed8.js +6 -0
  131. package/dist/chunk-v091jft4.js +12 -0
  132. package/dist/chunk-v4vaqxrf.js +33 -0
  133. package/dist/chunk-vgvtnwxa.js +4 -0
  134. package/dist/chunk-x0q32ees.js +3 -0
  135. package/dist/chunk-x5bpeb4a.js +2 -0
  136. package/dist/chunk-x72tv2cg.js +3 -0
  137. package/dist/chunk-xfp7k0v8.js +64 -0
  138. package/dist/chunk-xtdw3692.js +6 -0
  139. package/dist/chunk-y1cmjvk3.js +43 -0
  140. package/dist/chunk-y5310237.js +311 -0
  141. package/dist/chunk-ya0qecph.js +27 -0
  142. package/dist/chunk-yazk54jr.js +8 -0
  143. package/dist/chunk-ydjfar14.js +2 -0
  144. package/dist/chunk-ym95v4nc.js +3 -0
  145. package/dist/chunk-ynvdvbat.js +18 -0
  146. package/dist/chunk-yvx1ap9b.js +3 -0
  147. package/dist/chunk-z0g9jvv0.js +40 -0
  148. package/dist/chunk-z6d0jmjb.js +2 -0
  149. package/dist/{chunk-fpwzacpm.js → chunk-zhxdpzga.js} +4 -4
  150. package/dist/cli.js +110 -110
  151. package/dist/craft-entry.js +7 -7
  152. package/dist/craft.js +7 -7
  153. package/dist/database.js +2 -2
  154. package/dist/image-optimization/component.js +4 -4
  155. package/dist/index.d.ts +2 -0
  156. package/dist/index.js +1 -0
  157. package/dist/media/image/component.js +5 -5
  158. package/dist/media/protected/component.js +2 -2
  159. package/dist/media/video/index.js +4 -4
  160. package/dist/native/bridge/protocol.d.ts +325 -0
  161. package/dist/native/bridge/protocol.js +219 -0
  162. package/dist/native/cli.d.ts +24 -0
  163. package/dist/native/cli.js +52 -0
  164. package/dist/native/compiler/bundle.d.ts +41 -0
  165. package/dist/native/compiler/bundle.js +90 -0
  166. package/dist/native/compiler/client-script.d.ts +8 -0
  167. package/dist/native/compiler/client-script.js +31 -0
  168. package/dist/native/compiler/codegen.d.ts +10 -0
  169. package/dist/native/compiler/codegen.js +145 -0
  170. package/dist/native/compiler/headwind-to-style.d.ts +395 -0
  171. package/dist/native/compiler/headwind-to-style.js +1163 -0
  172. package/dist/native/compiler/html-to-ir.d.ts +41 -0
  173. package/dist/native/compiler/html-to-ir.js +411 -0
  174. package/dist/native/compiler/icons.d.ts +220 -0
  175. package/dist/native/compiler/icons.js +208 -0
  176. package/dist/native/compiler/ir.d.ts +234 -0
  177. package/dist/native/compiler/ir.js +15 -0
  178. package/dist/native/compiler/parser.d.ts +88 -0
  179. package/dist/native/compiler/parser.js +753 -0
  180. package/dist/native/compiler/render-screen.d.ts +26 -0
  181. package/dist/native/compiler/render-screen.js +31 -0
  182. package/dist/native/components/primitives.d.ts +291 -0
  183. package/dist/native/components/primitives.js +22 -0
  184. package/dist/native/hot-reload/client.d.ts +62 -0
  185. package/dist/native/hot-reload/client.js +324 -0
  186. package/dist/native/index.d.ts +90 -0
  187. package/dist/native/index.js +34 -0
  188. package/dist/native/primitives/ActivityIndicator.stx +5 -0
  189. package/dist/native/primitives/Button.stx +5 -0
  190. package/dist/native/primitives/DatePicker.stx +5 -0
  191. package/dist/native/primitives/FlatList.stx +5 -0
  192. package/dist/native/primitives/Image.stx +5 -0
  193. package/dist/native/primitives/ImageBackground.stx +5 -0
  194. package/dist/native/primitives/KeyboardAvoidingView.stx +5 -0
  195. package/dist/native/primitives/Modal.stx +5 -0
  196. package/dist/native/primitives/Picker.stx +5 -0
  197. package/dist/native/primitives/Pressable.stx +5 -0
  198. package/dist/native/primitives/RefreshControl.stx +5 -0
  199. package/dist/native/primitives/SafeAreaView.stx +5 -0
  200. package/dist/native/primitives/ScrollView.stx +5 -0
  201. package/dist/native/primitives/SectionList.stx +5 -0
  202. package/dist/native/primitives/Slider.stx +5 -0
  203. package/dist/native/primitives/StatusBar.stx +5 -0
  204. package/dist/native/primitives/Switch.stx +5 -0
  205. package/dist/native/primitives/Text.stx +5 -0
  206. package/dist/native/primitives/TextInput.stx +5 -0
  207. package/dist/native/primitives/TouchableHighlight.stx +5 -0
  208. package/dist/native/primitives/TouchableOpacity.stx +5 -0
  209. package/dist/native/primitives/View.stx +5 -0
  210. package/dist/native/runtime/craft.d.ts +75 -0
  211. package/dist/native/runtime/craft.js +0 -0
  212. package/dist/native/runtime/entry.d.ts +1 -0
  213. package/dist/native/runtime/entry.js +3 -0
  214. package/dist/native/runtime/index.d.ts +45 -0
  215. package/dist/native/runtime/index.js +165 -0
  216. package/dist/native/runtime/native-host.d.ts +33 -0
  217. package/dist/native/runtime/native-host.js +184 -0
  218. package/dist/native/runtime/screen.d.ts +43 -0
  219. package/dist/native/runtime/screen.js +808 -0
  220. package/dist/pwa/service-worker.js +1 -1
  221. package/dist/pwa/workbox.js +1 -1
  222. package/dist/pwa.js +8 -8
  223. package/dist/site-url.d.ts +1 -1
  224. package/dist/ssg.js +53 -53
  225. package/dist/visual-testing.js +42 -42
  226. package/dist/web-components/reactive-generator.js +2 -2
  227. package/package.json +9 -5
  228. package/dist/chunk-00g9x6w2.js +0 -2
  229. package/dist/chunk-04tgatyy.js +0 -2
  230. package/dist/chunk-097jnwd5.js +0 -2
  231. package/dist/chunk-0btmm4m2.js +0 -147
  232. package/dist/chunk-0c2h69k2.js +0 -4
  233. package/dist/chunk-0pkk226n.js +0 -2
  234. package/dist/chunk-0we9nw1d.js +0 -3
  235. package/dist/chunk-0y46fbkx.js +0 -3
  236. package/dist/chunk-18n1ftn0.js +0 -33
  237. package/dist/chunk-1a0v39k5.js +0 -3
  238. package/dist/chunk-1fs9jvpb.js +0 -2
  239. package/dist/chunk-1qq26zt0.js +0 -2
  240. package/dist/chunk-1te8k8gp.js +0 -3
  241. package/dist/chunk-1ws3xcea.js +0 -1199
  242. package/dist/chunk-213jwgpx.js +0 -3
  243. package/dist/chunk-24w86pek.js +0 -32
  244. package/dist/chunk-27fgag95.js +0 -4
  245. package/dist/chunk-2fw05hs2.js +0 -3
  246. package/dist/chunk-2tbez006.js +0 -2
  247. package/dist/chunk-38wvkv3s.js +0 -2
  248. package/dist/chunk-3rkejwjp.js +0 -2
  249. package/dist/chunk-3t65wb35.js +0 -2
  250. package/dist/chunk-3w6z6tw9.js +0 -2
  251. package/dist/chunk-4q1c6fw2.js +0 -7
  252. package/dist/chunk-50pszj17.js +0 -2
  253. package/dist/chunk-563shnkz.js +0 -3
  254. package/dist/chunk-5h104qh1.js +0 -2
  255. package/dist/chunk-5qjk7drw.js +0 -20
  256. package/dist/chunk-603x5gb2.js +0 -2
  257. package/dist/chunk-6kd5jjwc.js +0 -2
  258. package/dist/chunk-6kdrncsx.js +0 -30
  259. package/dist/chunk-6zggmce7.js +0 -4422
  260. package/dist/chunk-72rwcbp6.js +0 -3
  261. package/dist/chunk-76w34xne.js +0 -3
  262. package/dist/chunk-7dmgt8at.js +0 -2
  263. package/dist/chunk-82pd4b5w.js +0 -2
  264. package/dist/chunk-8d7nf67s.js +0 -2
  265. package/dist/chunk-8w2mqdnv.js +0 -2
  266. package/dist/chunk-90b2vt2n.js +0 -2
  267. package/dist/chunk-9e8t0twa.js +0 -3
  268. package/dist/chunk-9fqp72ze.js +0 -5
  269. package/dist/chunk-9xew0kgf.js +0 -2
  270. package/dist/chunk-a7bnvz91.js +0 -24
  271. package/dist/chunk-akwd34xt.js +0 -29
  272. package/dist/chunk-anydpa34.js +0 -3
  273. package/dist/chunk-aq1xq0r4.js +0 -16
  274. package/dist/chunk-bbt3tp6f.js +0 -499
  275. package/dist/chunk-bn1edb1y.js +0 -47
  276. package/dist/chunk-btd7ds3x.js +0 -2
  277. package/dist/chunk-c4511wng.js +0 -2
  278. package/dist/chunk-c4h579e3.js +0 -2
  279. package/dist/chunk-cj3adc77.js +0 -5
  280. package/dist/chunk-cs54ek9m.js +0 -6
  281. package/dist/chunk-ct1jwd4r.js +0 -2
  282. package/dist/chunk-cxrgxzxc.js +0 -2
  283. package/dist/chunk-de8t7sc9.js +0 -17
  284. package/dist/chunk-fcnrgxck.js +0 -2
  285. package/dist/chunk-fqzcft9d.js +0 -2
  286. package/dist/chunk-gbmeh7jg.js +0 -3
  287. package/dist/chunk-gc06g35w.js +0 -2
  288. package/dist/chunk-gs18069g.js +0 -194
  289. package/dist/chunk-gvbf1mhs.js +0 -930
  290. package/dist/chunk-h564hgzt.js +0 -2
  291. package/dist/chunk-h83jrhfq.js +0 -3
  292. package/dist/chunk-hj4vpyhp.js +0 -2
  293. package/dist/chunk-hrkvsj5c.js +0 -11
  294. package/dist/chunk-hyr4ag1k.js +0 -2
  295. package/dist/chunk-jxvmf02k.js +0 -2
  296. package/dist/chunk-k5ptvy0b.js +0 -4
  297. package/dist/chunk-k80sn8d1.js +0 -2
  298. package/dist/chunk-k8t2cmyd.js +0 -2
  299. package/dist/chunk-kmsyvaex.js +0 -8
  300. package/dist/chunk-kq4b6cwj.js +0 -2
  301. package/dist/chunk-kvmx7dnb.js +0 -2
  302. package/dist/chunk-kxc2h5vn.js +0 -5
  303. package/dist/chunk-mbxehgrq.js +0 -2
  304. package/dist/chunk-mgnq5de2.js +0 -2
  305. package/dist/chunk-mgrckqww.js +0 -2
  306. package/dist/chunk-mq5ewmz6.js +0 -2
  307. package/dist/chunk-mrahwn5v.js +0 -8
  308. package/dist/chunk-n2swas11.js +0 -3
  309. package/dist/chunk-n4299xgy.js +0 -2
  310. package/dist/chunk-naw4jt7j.js +0 -2
  311. package/dist/chunk-ny67c03k.js +0 -3
  312. package/dist/chunk-p4jb9v0w.js +0 -2
  313. package/dist/chunk-p4zrvt5f.js +0 -14
  314. package/dist/chunk-p5wp0ce6.js +0 -43
  315. package/dist/chunk-pcxp4r9n.js +0 -3
  316. package/dist/chunk-pjrn29gg.js +0 -2
  317. package/dist/chunk-prxwsp7n.js +0 -2
  318. package/dist/chunk-py2r6wtv.js +0 -2
  319. package/dist/chunk-q738pwv6.js +0 -2
  320. package/dist/chunk-q9n5swx7.js +0 -3
  321. package/dist/chunk-qmmp5kb5.js +0 -2
  322. package/dist/chunk-qqpqgwvb.js +0 -30
  323. package/dist/chunk-rcv2ehpq.js +0 -18
  324. package/dist/chunk-rq414kn5.js +0 -3
  325. package/dist/chunk-rz9f3zqz.js +0 -7
  326. package/dist/chunk-s6g8wksg.js +0 -2
  327. package/dist/chunk-s8jd13nb.js +0 -3
  328. package/dist/chunk-spxsw4mp.js +0 -2
  329. package/dist/chunk-strcy64y.js +0 -2
  330. package/dist/chunk-t1htzg9e.js +0 -4
  331. package/dist/chunk-t1tdjjht.js +0 -216
  332. package/dist/chunk-tat1cjec.js +0 -2
  333. package/dist/chunk-td08rnk3.js +0 -3
  334. package/dist/chunk-tgadbsd4.js +0 -2
  335. package/dist/chunk-tgrpp58r.js +0 -2
  336. package/dist/chunk-tkyrk66a.js +0 -3
  337. package/dist/chunk-tp8pzf94.js +0 -3
  338. package/dist/chunk-twz64kvy.js +0 -2
  339. package/dist/chunk-v3nwkveg.js +0 -12
  340. package/dist/chunk-vsbmc9kt.js +0 -2
  341. package/dist/chunk-vzgzaw66.js +0 -12
  342. package/dist/chunk-wc66mcn4.js +0 -4367
  343. package/dist/chunk-wkanrfb3.js +0 -2
  344. package/dist/chunk-x8f6wqxd.js +0 -2
  345. package/dist/chunk-xsng1mtq.js +0 -3
  346. package/dist/chunk-xwts5yky.js +0 -4
  347. package/dist/chunk-z5rwnnk1.js +0 -3
  348. package/dist/chunk-zcz9rs6p.js +0 -3
  349. package/dist/chunk-zpcnbdhn.js +0 -64
  350. package/dist/chunk-zq4ssxj9.js +0 -8
@@ -0,0 +1,41 @@
1
+ import type { STXDocument, STXNode } from './ir';
2
+ /**
3
+ * Translate stx's rendered HTML into the native view IR.
4
+ *
5
+ * The input is a rendered document or fragment, not a `.stx` template: run it
6
+ * through stx first so directives, server scripts and components are already
7
+ * resolved, with the client bindings left in place.
8
+ */
9
+ export declare function translateHtmlToIR(html: string, options?: TranslateOptions): Promise<TranslationResult>;
10
+ /** The same translation, wrapped in an `STXDocument` for the renderers. */
11
+ export declare function translateHtmlToDocument(html: string, options?: TranslateOptions & { script?: STXDocument['script'] }): Promise<{ document: STXDocument, diagnostics: TranslationDiagnostic[] }>;
12
+ /**
13
+ * Every event name at least one renderer dispatches on.
14
+ *
15
+ * Pinned against the renderers by `html-to-ir.test.ts`: a handler mapped to a
16
+ * name outside this set is reported rather than quietly attached to nothing.
17
+ */
18
+ export declare const NATIVE_EVENTS: Set<any>;
19
+ export declare interface TranslationDiagnostic {
20
+ kind: TranslationDiagnosticKind
21
+ tag: string
22
+ name?: string
23
+ }
24
+ export declare interface TranslationResult {
25
+ root: STXNode
26
+ diagnostics: TranslationDiagnostic[]
27
+ }
28
+ export declare interface TranslateOptions {
29
+ source?: string
30
+ }
31
+ export type TranslationDiagnosticKind = | 'unmapped-tag'
32
+ /** Deliberately not translated: a script, a stylesheet, an icon's path data. */
33
+ | 'dropped-subtree'
34
+ /** Inline markup inside a Text node, kept as words with its emphasis lost. */
35
+ | 'flattened-text'
36
+ /** A handler no renderer reads, so wiring it would be a no-op on the device. */
37
+ | 'unread-event'
38
+ /** An inline CSS property the IR has no field for. */
39
+ | 'unknown-style'
40
+ /** A value the IR's field cannot hold, so emitting it would brick the screen. */
41
+ | 'non-numeric-style';
@@ -0,0 +1,411 @@
1
+ import { compileHeadwindToStyle } from "./headwind-to-style.js";
2
+ import { createDocument, createNode } from "./ir.js";
3
+ import { mapToNativeComponent } from "./parser.js";
4
+ const DROP_SUBTREE = new Set(["script", "style", "head", "meta", "link", "title", "base", "noscript", "svg"]), UNWRAP = new Set(["template", "body", "html", "main", "fragment"]), BOX_ONLY = new Set(["svg"]), EVENT_NAMES = {
5
+ click: "onPress",
6
+ press: "onPress",
7
+ longpress: "onLongPress",
8
+ contextmenu: "onLongPress",
9
+ input: "onChangeText",
10
+ change: "onValueChange",
11
+ focus: "onFocus",
12
+ focusin: "onFocus",
13
+ blur: "onBlur",
14
+ focusout: "onBlur",
15
+ submit: "onSubmitEditing",
16
+ scroll: "onScroll",
17
+ close: "onRequestClose"
18
+ };
19
+ export const NATIVE_EVENTS = new Set([
20
+ "onBlur",
21
+ "onChangeText",
22
+ "onEndReached",
23
+ "onFocus",
24
+ "onLayout",
25
+ "onLongPress",
26
+ "onPress",
27
+ "onRequestClose",
28
+ "onScroll",
29
+ "onValueChange"
30
+ ]);
31
+ const STYLE_KEYS = new Set([
32
+ "display",
33
+ "flex",
34
+ "flexGrow",
35
+ "flexShrink",
36
+ "flexBasis",
37
+ "flexDirection",
38
+ "flexWrap",
39
+ "justifyContent",
40
+ "alignItems",
41
+ "alignSelf",
42
+ "alignContent",
43
+ "position",
44
+ "top",
45
+ "right",
46
+ "bottom",
47
+ "left",
48
+ "zIndex",
49
+ "width",
50
+ "height",
51
+ "minWidth",
52
+ "maxWidth",
53
+ "minHeight",
54
+ "maxHeight",
55
+ "aspectRatio",
56
+ "margin",
57
+ "marginTop",
58
+ "marginRight",
59
+ "marginBottom",
60
+ "marginLeft",
61
+ "marginHorizontal",
62
+ "marginVertical",
63
+ "padding",
64
+ "paddingTop",
65
+ "paddingRight",
66
+ "paddingBottom",
67
+ "paddingLeft",
68
+ "paddingHorizontal",
69
+ "paddingVertical",
70
+ "gap",
71
+ "rowGap",
72
+ "columnGap",
73
+ "borderWidth",
74
+ "borderTopWidth",
75
+ "borderRightWidth",
76
+ "borderBottomWidth",
77
+ "borderLeftWidth",
78
+ "borderColor",
79
+ "borderTopColor",
80
+ "borderRightColor",
81
+ "borderBottomColor",
82
+ "borderLeftColor",
83
+ "borderRadius",
84
+ "borderTopLeftRadius",
85
+ "borderTopRightRadius",
86
+ "borderBottomLeftRadius",
87
+ "borderBottomRightRadius",
88
+ "borderStyle",
89
+ "backgroundColor",
90
+ "backgroundImage",
91
+ "opacity",
92
+ "shadowColor",
93
+ "shadowOffset",
94
+ "shadowOpacity",
95
+ "shadowRadius",
96
+ "elevation",
97
+ "color",
98
+ "fontSize",
99
+ "fontWeight",
100
+ "fontStyle",
101
+ "fontFamily",
102
+ "lineHeight",
103
+ "letterSpacing",
104
+ "textAlign",
105
+ "textDecorationLine",
106
+ "textDecorationColor",
107
+ "textTransform",
108
+ "resizeMode",
109
+ "tintColor",
110
+ "transform",
111
+ "overflow"
112
+ ]), NUMERIC_STYLE_KEYS = new Set([
113
+ "flex",
114
+ "flexGrow",
115
+ "flexShrink",
116
+ "zIndex",
117
+ "aspectRatio",
118
+ "gap",
119
+ "rowGap",
120
+ "columnGap",
121
+ "borderWidth",
122
+ "borderTopWidth",
123
+ "borderRightWidth",
124
+ "borderBottomWidth",
125
+ "borderLeftWidth",
126
+ "borderRadius",
127
+ "borderTopLeftRadius",
128
+ "borderTopRightRadius",
129
+ "borderBottomLeftRadius",
130
+ "borderBottomRightRadius",
131
+ "opacity",
132
+ "shadowOpacity",
133
+ "shadowRadius",
134
+ "elevation",
135
+ "fontSize",
136
+ "lineHeight",
137
+ "letterSpacing"
138
+ ]), DIMENSION_STYLE_KEYS = new Set([
139
+ "top",
140
+ "right",
141
+ "bottom",
142
+ "left",
143
+ "width",
144
+ "height",
145
+ "minWidth",
146
+ "maxWidth",
147
+ "minHeight",
148
+ "maxHeight",
149
+ "flexBasis",
150
+ "margin",
151
+ "marginTop",
152
+ "marginRight",
153
+ "marginBottom",
154
+ "marginLeft",
155
+ "marginHorizontal",
156
+ "marginVertical",
157
+ "padding",
158
+ "paddingTop",
159
+ "paddingRight",
160
+ "paddingBottom",
161
+ "paddingLeft",
162
+ "paddingHorizontal",
163
+ "paddingVertical"
164
+ ]), NATIVE_TYPES = new Set([
165
+ "View",
166
+ "ScrollView",
167
+ "SafeAreaView",
168
+ "KeyboardAvoidingView",
169
+ "Text",
170
+ "TextInput",
171
+ "Button",
172
+ "TouchableOpacity",
173
+ "TouchableHighlight",
174
+ "Pressable",
175
+ "Image",
176
+ "ImageBackground",
177
+ "FlatList",
178
+ "SectionList",
179
+ "Switch",
180
+ "Slider",
181
+ "Picker",
182
+ "DatePicker",
183
+ "Modal",
184
+ "ActivityIndicator",
185
+ "StatusBar",
186
+ "RefreshControl"
187
+ ]), CONTAINER_TYPES = new Set(["View", "SafeAreaView", "ScrollView", "KeyboardAvoidingView"]), ENTITIES = {
188
+ amp: "&",
189
+ lt: "<",
190
+ gt: ">",
191
+ quot: '"',
192
+ apos: "'",
193
+ nbsp: " ",
194
+ "#39": "'",
195
+ "#x27": "'"
196
+ };
197
+ function decodeEntities(text) {
198
+ return text.replace(/&(#x?[0-9a-f]+|\w+);/gi, (whole, name) => {
199
+ const direct = ENTITIES[name.toLowerCase()];
200
+ if (direct !== void 0)
201
+ return direct;
202
+ if (name[0] === "#") {
203
+ const code = name[1] === "x" || name[1] === "X" ? Number.parseInt(name.slice(2), 16) : Number.parseInt(name.slice(1), 10);
204
+ return Number.isFinite(code) ? String.fromCodePoint(code) : whole;
205
+ }
206
+ return whole;
207
+ });
208
+ }
209
+ function camelCase(property) {
210
+ return property.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
211
+ }
212
+ function styleValue(raw) {
213
+ const pixels = /^(-?[\d.]+)px$/.exec(raw);
214
+ if (pixels)
215
+ return Number.parseFloat(pixels[1]);
216
+ const relative = /^(-?[\d.]+)r?em$/.exec(raw);
217
+ if (relative)
218
+ return Number.parseFloat(relative[1]) * 16;
219
+ if (/^-?[\d.]+$/.test(raw))
220
+ return Number.parseFloat(raw);
221
+ return raw;
222
+ }
223
+ function readAttributes(tag, attributes, diagnostics) {
224
+ const props = {}, events = {}, bindings = {};
225
+ let classes = "", inline = {};
226
+ for (const [rawName, value] of attributes) {
227
+ const name = rawName.toLowerCase();
228
+ if (name === "class" || name === "classname") {
229
+ classes = classes ? `${classes} ${value}` : value;
230
+ continue;
231
+ }
232
+ if (name === "style") {
233
+ inline = { ...inline, ...inlineStyle(tag, value, diagnostics) };
234
+ continue;
235
+ }
236
+ if (name.startsWith(":") || name.startsWith("x-") && name !== "x-cloak") {
237
+ bindings[name.startsWith(":") ? name.slice(1) : name.slice(2)] = decodeEntities(value);
238
+ continue;
239
+ }
240
+ if (name === "x-cloak")
241
+ continue;
242
+ if (name.startsWith("@") || name.startsWith("v-on:")) {
243
+ const spelling = name.startsWith("@") ? name.slice(1) : name.slice(5), [base] = spelling.split("."), native = EVENT_NAMES[base] ?? (base.startsWith("on") ? base : "");
244
+ if (!native || !NATIVE_EVENTS.has(native)) {
245
+ diagnostics.push({ kind: "unread-event", tag, name: rawName });
246
+ continue;
247
+ }
248
+ events[native] = decodeEntities(value);
249
+ continue;
250
+ }
251
+ if (name === "key") {
252
+ props.key = value;
253
+ continue;
254
+ }
255
+ try {
256
+ props[rawName] = JSON.parse(value);
257
+ } catch {
258
+ props[rawName] = decodeEntities(value);
259
+ }
260
+ }
261
+ const style = { ...classes ? compileHeadwindToStyle(classes) : {}, ...inline };
262
+ return { props, style, events, bindings, classes };
263
+ }
264
+ function holdsString(property, value) {
265
+ if (NUMERIC_STYLE_KEYS.has(property))
266
+ return !1;
267
+ if (DIMENSION_STYLE_KEYS.has(property))
268
+ return /^-?[\d.]+%$/.test(value);
269
+ return !0;
270
+ }
271
+ function inlineStyle(tag, css, diagnostics) {
272
+ const style = {};
273
+ for (const declaration of css.split(";")) {
274
+ const colon = declaration.indexOf(":");
275
+ if (colon === -1)
276
+ continue;
277
+ const property = camelCase(declaration.slice(0, colon).trim().toLowerCase()), value = declaration.slice(colon + 1).trim();
278
+ if (!property || !value)
279
+ continue;
280
+ if (!STYLE_KEYS.has(property)) {
281
+ diagnostics.push({ kind: "unknown-style", tag, name: property });
282
+ continue;
283
+ }
284
+ const translated = styleValue(value);
285
+ if (typeof translated === "string" && !holdsString(property, translated)) {
286
+ diagnostics.push({ kind: "non-numeric-style", tag, name: property });
287
+ continue;
288
+ }
289
+ style[property] = translated;
290
+ }
291
+ return style;
292
+ }
293
+ function flattenText(node) {
294
+ return node.children.map((child) => typeof child === "string" ? child : flattenText(child)).join("").replace(/\s+/g, " ").trim();
295
+ }
296
+ function settle(frame, diagnostics) {
297
+ const node = frame.node, elements = node.children.filter((child) => typeof child !== "string"), text = node.children.filter((child) => typeof child === "string").join("").trim();
298
+ if (CONTAINER_TYPES.has(node.type) && elements.length === 0 && text) {
299
+ node.type = "Text";
300
+ node.children = [text];
301
+ return node;
302
+ }
303
+ if (node.type === "Text" && elements.length > 0) {
304
+ const flattened = flattenText(node);
305
+ diagnostics.push({ kind: "flattened-text", tag: frame.tag });
306
+ node.children = flattened ? [flattened] : [];
307
+ return node;
308
+ }
309
+ if (CONTAINER_TYPES.has(node.type) && elements.length > 0)
310
+ node.children = elements;
311
+ return node;
312
+ }
313
+ export async function translateHtmlToIR(html, options = {}) {
314
+ const diagnostics = [], roots = [], stack = [], seenUnmapped = new Set;
315
+ function attach(node) {
316
+ const parent = stack[stack.length - 1];
317
+ if (!parent)
318
+ roots.push(node);
319
+ else if (!parent.dropped)
320
+ parent.node.children.push(node);
321
+ }
322
+ function hoist(frame) {
323
+ const parent = stack[stack.length - 1];
324
+ for (const child of frame.node.children) {
325
+ if (typeof child === "string") {
326
+ if (parent && !parent.dropped)
327
+ parent.node.children.push(child);
328
+ continue;
329
+ }
330
+ if (!parent)
331
+ roots.push(child);
332
+ else if (!parent.dropped)
333
+ parent.node.children.push(child);
334
+ }
335
+ }
336
+ function open(tag, attributes) {
337
+ const dropped = DROP_SUBTREE.has(tag) && !BOX_ONLY.has(tag), inheritedDrop = stack[stack.length - 1]?.dropped ?? !1, { props, style, events, bindings, classes } = dropped || inheritedDrop ? { props: {}, style: {}, events: {}, bindings: {}, classes: "" } : readAttributes(tag, attributes, diagnostics), declared = props["data-native"];
338
+ let type;
339
+ if (typeof declared === "string" && NATIVE_TYPES.has(declared)) {
340
+ type = declared;
341
+ delete props["data-native"];
342
+ } else
343
+ type = BOX_ONLY.has(tag) ? "View" : mapToNativeComponent(tag);
344
+ if (type === tag && !NATIVE_TYPES.has(type) && !DROP_SUBTREE.has(tag) && !UNWRAP.has(tag) && !seenUnmapped.has(tag)) {
345
+ seenUnmapped.add(tag);
346
+ diagnostics.push({ kind: "unmapped-tag", tag });
347
+ }
348
+ if ((dropped || BOX_ONLY.has(tag)) && !seenUnmapped.has(`drop:${tag}`)) {
349
+ seenUnmapped.add(`drop:${tag}`);
350
+ diagnostics.push({ kind: "dropped-subtree", tag });
351
+ }
352
+ const node = createNode(type, props, style, events);
353
+ if (classes)
354
+ node._classes = classes;
355
+ if (Object.keys(bindings).length > 0)
356
+ node.bindings = bindings;
357
+ if (typeof props.key === "string") {
358
+ node.key = props.key;
359
+ delete props.key;
360
+ }
361
+ return {
362
+ tag,
363
+ node,
364
+ dropped: dropped || inheritedDrop || BOX_ONLY.has(tag),
365
+ discard: dropped || inheritedDrop,
366
+ unwrap: UNWRAP.has(tag)
367
+ };
368
+ }
369
+ await new HTMLRewriter().on("*", {
370
+ element(element) {
371
+ const tag = element.tagName.toLowerCase(), frame = open(tag, [...element.attributes]);
372
+ let hasEndTag = !0;
373
+ try {
374
+ element.onEndTag(() => {
375
+ stack.pop();
376
+ if (frame.discard)
377
+ return;
378
+ if (frame.unwrap)
379
+ hoist(frame);
380
+ else
381
+ attach(settle(frame, diagnostics));
382
+ });
383
+ } catch {
384
+ hasEndTag = !1;
385
+ }
386
+ if (hasEndTag)
387
+ stack.push(frame);
388
+ else if (!frame.discard)
389
+ attach(frame.node);
390
+ },
391
+ text(chunk) {
392
+ const frame = stack[stack.length - 1];
393
+ if (!frame || frame.dropped)
394
+ return;
395
+ const text = decodeEntities(chunk.text).replace(/\s+/g, " ");
396
+ if (!text.trim())
397
+ return;
398
+ frame.node.children.push(text);
399
+ }
400
+ }).transform(new Response(html)).text();
401
+ if (roots.length === 0)
402
+ throw Error(`No element to translate in the rendered output of ${options.source ?? "unknown"}`);
403
+ return { root: roots.length === 1 ? roots[0] : createNode("View", {}, {}, {}, roots), diagnostics };
404
+ }
405
+ export async function translateHtmlToDocument(html, options = {}) {
406
+ const { root, diagnostics } = await translateHtmlToIR(html, options), script = options.script ?? { exports: {}, functions: [], code: "" };
407
+ return {
408
+ document: createDocument(root, script, { source: options.source ?? "unknown" }),
409
+ diagnostics
410
+ };
411
+ }
@@ -0,0 +1,220 @@
1
+ /**
2
+ * Resolve whatever a screen wrote to an SF Symbol.
3
+ *
4
+ * Accepts `i-lucide-sun`, `lucide:sun`, a bare lucide name (`sun`, as HQ's web
5
+ * `<Icon name="sun">` takes it) and an SF Symbol name (anything with a dot, or
6
+ * passed as `symbol`), which is used as is.
7
+ */
8
+ export declare function resolveIconName(name: string | null | undefined, asSymbol?: boolean): IconResolution;
9
+ /** The first Iconify class in a class list (`i-lucide-sun w-5 h-5`), if any. */
10
+ export declare function iconClassIn(classes: string): string | undefined;
11
+ /**
12
+ * Iconify names to SF Symbols, for `<Icon>` on a native screen.
13
+ *
14
+ * A web screen draws `i-lucide-sun` from Iconify's CSS. A native screen has no
15
+ * CSS icons, so the compiler (and the runtime, for a class that only exists at
16
+ * runtime) maps the name to the SF Symbol that means the same thing, and the
17
+ * host draws it as a tinted `UIImageView`.
18
+ *
19
+ * The table is lucide first, because that is the collection HQ uses. Entries
20
+ * pick the closest symbol in meaning, not in shape: `footprints` is a run, so
21
+ * it is `figure.run`. Anything missing falls back to `circle` and the compiler
22
+ * says which name it did not know.
23
+ */
24
+ /** The symbol drawn for a name the table does not have. */
25
+ export declare const FALLBACK_SYMBOL: 'circle';
26
+ /** lucide name (without the `i-lucide-` prefix) to SF Symbol name. */
27
+ export declare const LUCIDE_TO_SF: {
28
+ 'activity': 'waveform.path.ecg';
29
+ 'alarm-clock': 'alarm';
30
+ 'alert-circle': 'exclamationmark.circle';
31
+ 'alert-triangle': 'exclamationmark.triangle';
32
+ 'archive': 'archivebox';
33
+ 'arrow-down': 'arrow.down';
34
+ 'arrow-left': 'arrow.left';
35
+ 'arrow-right': 'arrow.right';
36
+ 'arrow-up': 'arrow.up';
37
+ 'arrow-up-right': 'arrow.up.right';
38
+ 'at-sign': 'at';
39
+ 'audio-lines': 'waveform';
40
+ 'award': 'rosette';
41
+ 'badge-check': 'checkmark.seal';
42
+ 'bar-chart': 'chart.bar';
43
+ 'bar-chart-2': 'chart.bar';
44
+ 'bar-chart-3': 'chart.bar';
45
+ 'battery': 'battery.100';
46
+ 'bed': 'bed.double';
47
+ 'bell': 'bell';
48
+ 'bell-off': 'bell.slash';
49
+ 'bike': 'figure.outdoor.cycle';
50
+ 'bluetooth': 'antenna.radiowaves.left.and.right';
51
+ 'book': 'book';
52
+ 'book-open': 'book';
53
+ 'bookmark': 'bookmark';
54
+ 'brain': 'brain';
55
+ 'calendar': 'calendar';
56
+ 'calendar-check': 'calendar.badge.checkmark';
57
+ 'calendar-clock': 'calendar.badge.clock';
58
+ 'calendar-days': 'calendar';
59
+ 'calendar-plus': 'calendar.badge.plus';
60
+ 'calendar-range': 'calendar';
61
+ 'calendar-sync': 'arrow.triangle.2.circlepath';
62
+ 'camera': 'camera';
63
+ 'chart-bar': 'chart.bar';
64
+ 'chart-line': 'chart.xyaxis.line';
65
+ 'check': 'checkmark';
66
+ 'check-circle': 'checkmark.circle';
67
+ 'check-circle-2': 'checkmark.circle';
68
+ 'chevron-down': 'chevron.down';
69
+ 'chevron-left': 'chevron.left';
70
+ 'chevron-right': 'chevron.right';
71
+ 'chevron-up': 'chevron.up';
72
+ 'circle': 'circle';
73
+ 'circle-alert': 'exclamationmark.circle';
74
+ 'circle-check': 'checkmark.circle';
75
+ 'circle-check-big': 'checkmark.circle';
76
+ 'circle-help': 'questionmark.circle';
77
+ 'circle-play': 'play.circle';
78
+ 'circle-plus': 'plus.circle';
79
+ 'circle-user': 'person.crop.circle';
80
+ 'circle-x': 'xmark.circle';
81
+ 'clapperboard': 'film';
82
+ 'clipboard': 'clipboard';
83
+ 'clipboard-list': 'list.clipboard';
84
+ 'clock': 'clock';
85
+ 'cloud': 'cloud';
86
+ 'cloud-off': 'icloud.slash';
87
+ 'coffee': 'cup.and.saucer';
88
+ 'copy': 'doc.on.doc';
89
+ 'credit-card': 'creditcard';
90
+ 'download': 'arrow.down.circle';
91
+ 'droplet': 'drop';
92
+ 'droplets': 'drop';
93
+ 'dumbbell': 'dumbbell';
94
+ 'edit': 'pencil';
95
+ 'external-link': 'arrow.up.right.square';
96
+ 'eye': 'eye';
97
+ 'eye-off': 'eye.slash';
98
+ 'file': 'doc';
99
+ 'file-text': 'doc.text';
100
+ 'filter': 'line.3.horizontal.decrease';
101
+ 'flag': 'flag';
102
+ 'flame': 'flame';
103
+ 'footprints': 'figure.run';
104
+ 'gauge': 'gauge';
105
+ 'gift': 'gift';
106
+ 'globe': 'globe';
107
+ 'graduation-cap': 'graduationcap';
108
+ 'grip-vertical': 'line.3.horizontal';
109
+ 'heart': 'heart';
110
+ 'heart-pulse': 'heart.text.square';
111
+ 'help-circle': 'questionmark.circle';
112
+ 'history': 'clock.arrow.circlepath';
113
+ 'home': 'house';
114
+ 'house': 'house';
115
+ 'image': 'photo';
116
+ 'inbox': 'tray';
117
+ 'info': 'info.circle';
118
+ 'layers': 'square.3.layers.3d';
119
+ 'layout-grid': 'square.grid.2x2';
120
+ 'library': 'books.vertical';
121
+ 'link': 'link';
122
+ 'list': 'list.bullet';
123
+ 'list-checks': 'checklist';
124
+ 'loader': 'arrow.triangle.2.circlepath';
125
+ 'loader-2': 'arrow.triangle.2.circlepath';
126
+ 'loader-circle': 'arrow.triangle.2.circlepath';
127
+ 'lock': 'lock';
128
+ 'log-in': 'arrow.right.to.line';
129
+ 'log-out': 'rectangle.portrait.and.arrow.right';
130
+ 'mail': 'envelope';
131
+ 'map': 'map';
132
+ 'map-pin': 'mappin.and.ellipse';
133
+ 'medal': 'medal';
134
+ 'menu': 'line.3.horizontal';
135
+ 'message-circle': 'bubble.left';
136
+ 'message-square': 'text.bubble';
137
+ 'message-square-quote': 'quote.bubble';
138
+ 'mic': 'mic';
139
+ 'minus': 'minus';
140
+ 'moon': 'moon';
141
+ 'more-horizontal': 'ellipsis';
142
+ 'more-vertical': 'ellipsis';
143
+ 'mountain': 'mountain.2';
144
+ 'music': 'music.note';
145
+ 'package': 'shippingbox';
146
+ 'pause': 'pause';
147
+ 'pause-circle': 'pause.circle';
148
+ 'pencil': 'pencil';
149
+ 'person-standing': 'figure.walk';
150
+ 'phone': 'phone';
151
+ 'play': 'play.fill';
152
+ 'plug': 'powerplug';
153
+ 'plus': 'plus';
154
+ 'plus-circle': 'plus.circle';
155
+ 'refresh-cw': 'arrow.clockwise';
156
+ 'repeat': 'repeat';
157
+ 'rotate-ccw': 'arrow.counterclockwise';
158
+ 'route': 'point.topleft.down.to.point.bottomright.curvepath';
159
+ 'ruler': 'ruler';
160
+ 'sailboat': 'sailboat';
161
+ 'satellite': 'antenna.radiowaves.left.and.right';
162
+ 'save': 'square.and.arrow.down';
163
+ 'scale': 'scalemass';
164
+ 'search': 'magnifyingglass';
165
+ 'send': 'paperplane';
166
+ 'settings': 'gearshape';
167
+ 'settings-2': 'slider.horizontal.3';
168
+ 'share': 'square.and.arrow.up';
169
+ 'share-2': 'square.and.arrow.up';
170
+ 'shield': 'shield';
171
+ 'shield-check': 'checkmark.shield';
172
+ 'shopping-bag': 'bag';
173
+ 'shopping-cart': 'cart';
174
+ 'skip-back': 'backward.end';
175
+ 'skip-forward': 'forward.end';
176
+ 'sliders': 'slider.horizontal.3';
177
+ 'sliders-horizontal': 'slider.horizontal.3';
178
+ 'smartphone': 'iphone';
179
+ 'snowflake': 'snowflake';
180
+ 'sparkles': 'sparkles';
181
+ 'square': 'square';
182
+ 'star': 'star';
183
+ 'stopwatch': 'stopwatch';
184
+ 'store': 'storefront';
185
+ 'sun': 'sun.max';
186
+ 'sunrise': 'sunrise';
187
+ 'sunset': 'sunset';
188
+ 'tag': 'tag';
189
+ 'target': 'scope';
190
+ 'thermometer': 'thermometer.medium';
191
+ 'thumbs-up': 'hand.thumbsup';
192
+ 'timer': 'timer';
193
+ 'trash': 'trash';
194
+ 'trash-2': 'trash';
195
+ 'trending-down': 'chart.line.downtrend.xyaxis';
196
+ 'trending-up': 'chart.line.uptrend.xyaxis';
197
+ 'trophy': 'trophy';
198
+ 'unlink': 'personalhotspot.slash';
199
+ 'upload': 'arrow.up.circle';
200
+ 'user': 'person';
201
+ 'user-plus': 'person.badge.plus';
202
+ 'user-round': 'person';
203
+ 'users': 'person.2';
204
+ 'video': 'video';
205
+ 'volume-2': 'speaker.wave.2';
206
+ 'watch': 'applewatch';
207
+ 'waves': 'figure.pool.swim';
208
+ 'weight': 'scalemass';
209
+ 'wifi': 'wifi';
210
+ 'wifi-off': 'wifi.slash';
211
+ 'wind': 'wind';
212
+ 'x': 'xmark';
213
+ 'x-circle': 'xmark.circle';
214
+ 'zap': 'bolt'
215
+ };
216
+ export declare interface IconResolution {
217
+ symbol: string
218
+ iconify?: string
219
+ known: boolean
220
+ }