@fractal-io-technology/spec 0.0.0-stage → 2.2.2

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 (323) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +165 -2
  3. package/conformance/1.0/action-cases.json +227 -0
  4. package/conformance/1.0/bind-cases.json +768 -0
  5. package/conformance/1.0/cases.json +25139 -0
  6. package/conformance/1.0/layout/01-onboarding-start.json +95 -0
  7. package/conformance/1.0/layout/02-home-discover.json +177 -0
  8. package/conformance/1.0/layout/03-filters.json +186 -0
  9. package/conformance/1.0/layout/README.md +145 -0
  10. package/conformance/1.0/layout/REPORT.md +222 -0
  11. package/conformance/1.0/layout/alert.json +22 -0
  12. package/conformance/1.0/layout/iphone-14-15-pro-107.json +272 -0
  13. package/conformance/1.0/layout/live_status_on_its_way_4.ios.json +100 -0
  14. package/conformance/1.0/layout/lucy-booking-mobile.json +261 -0
  15. package/conformance/1.0/layout/lucy-booking-tablet.json +817 -0
  16. package/conformance/1.0/layout/lucy-booking.json +185 -0
  17. package/conformance/1.0/layout/lucy-header.json +84 -0
  18. package/conformance/1.0/layout/lucy-welcome-pin-mobile.json +31 -0
  19. package/conformance/1.0/layout/lucy-welcome-pin.json +31 -0
  20. package/conformance/1.0/layout/measured/android/01-onboarding-start.json +95 -0
  21. package/conformance/1.0/layout/measured/android/02-home-discover.json +177 -0
  22. package/conformance/1.0/layout/measured/android/03-filters.json +186 -0
  23. package/conformance/1.0/layout/measured/android/alert.json +22 -0
  24. package/conformance/1.0/layout/measured/android/iphone-14-15-pro-107.json +272 -0
  25. package/conformance/1.0/layout/measured/android/live_status_on_its_way_4.ios.json +100 -0
  26. package/conformance/1.0/layout/measured/android/lucy-booking-mobile.json +261 -0
  27. package/conformance/1.0/layout/measured/android/lucy-booking-tablet.json +817 -0
  28. package/conformance/1.0/layout/measured/android/lucy-booking.json +185 -0
  29. package/conformance/1.0/layout/measured/android/lucy-header.json +84 -0
  30. package/conformance/1.0/layout/measured/android/lucy-welcome-pin-mobile.json +31 -0
  31. package/conformance/1.0/layout/measured/android/lucy-welcome-pin.json +31 -0
  32. package/conformance/1.0/layout/measured/android/navigation-bar.json +46 -0
  33. package/conformance/1.0/layout/measured/android/probe-alert-banner-flutter.json +37 -0
  34. package/conformance/1.0/layout/measured/android/probe-alert-banner-regression-flutter.json +51 -0
  35. package/conformance/1.0/layout/measured/android/probe-alert-banner-stack-flutter.json +29 -0
  36. package/conformance/1.0/layout/measured/android/probe-card.json +35 -0
  37. package/conformance/1.0/layout/measured/android/probe-check-box-flutter.json +20 -0
  38. package/conformance/1.0/layout/measured/android/probe-container-height.json +21 -0
  39. package/conformance/1.0/layout/measured/android/probe-divider.json +55 -0
  40. package/conformance/1.0/layout/measured/android/probe-dropdown-menu-flutter.json +24 -0
  41. package/conformance/1.0/layout/measured/android/probe-dropdown-menu-max-lines.json +11 -0
  42. package/conformance/1.0/layout/measured/android/probe-expanded.json +31 -0
  43. package/conformance/1.0/layout/measured/android/probe-failed-decode.json +11 -0
  44. package/conformance/1.0/layout/measured/android/probe-flex.json +43 -0
  45. package/conformance/1.0/layout/measured/android/probe-grid-flutter.json +78 -0
  46. package/conformance/1.0/layout/measured/android/probe-grid.json +29 -0
  47. package/conformance/1.0/layout/measured/android/probe-icon-button-flutter.json +25 -0
  48. package/conformance/1.0/layout/measured/android/probe-icon-flutter.json +19 -0
  49. package/conformance/1.0/layout/measured/android/probe-icon-sizing.json +36 -0
  50. package/conformance/1.0/layout/measured/android/probe-image-flutter.json +24 -0
  51. package/conformance/1.0/layout/measured/android/probe-list-flutter.json +79 -0
  52. package/conformance/1.0/layout/measured/android/probe-list-regression-flutter.json +94 -0
  53. package/conformance/1.0/layout/measured/android/probe-list-row-flutter.json +86 -0
  54. package/conformance/1.0/layout/measured/android/probe-list-styles.json +45 -0
  55. package/conformance/1.0/layout/measured/android/probe-pin-input-parity.json +18 -0
  56. package/conformance/1.0/layout/measured/android/probe-progress-track-flutter.json +41 -0
  57. package/conformance/1.0/layout/measured/android/probe-progress-track-regression-flutter.json +57 -0
  58. package/conformance/1.0/layout/measured/android/probe-row-column.json +84 -0
  59. package/conformance/1.0/layout/measured/android/probe-scroll.json +54 -0
  60. package/conformance/1.0/layout/measured/android/probe-search-flutter.json +22 -0
  61. package/conformance/1.0/layout/measured/android/probe-size-constraints.json +20 -0
  62. package/conformance/1.0/layout/measured/android/probe-spacer.json +43 -0
  63. package/conformance/1.0/layout/measured/android/probe-stat-progress-track.json +14 -0
  64. package/conformance/1.0/layout/measured/android/probe-text-button-flutter.json +27 -0
  65. package/conformance/1.0/layout/measured/android/probe-text-field-flutter.json +28 -0
  66. package/conformance/1.0/layout/measured/android/probe-text.json +30 -0
  67. package/conformance/1.0/layout/measured/android/wallet-home.json +127 -0
  68. package/conformance/1.0/layout/measured/web/01-onboarding-start.json +95 -0
  69. package/conformance/1.0/layout/measured/web/02-home-discover.json +177 -0
  70. package/conformance/1.0/layout/measured/web/03-filters.json +186 -0
  71. package/conformance/1.0/layout/measured/web/alert.json +22 -0
  72. package/conformance/1.0/layout/measured/web/iphone-14-15-pro-107.json +272 -0
  73. package/conformance/1.0/layout/measured/web/live_status_on_its_way_4.ios.json +100 -0
  74. package/conformance/1.0/layout/measured/web/lucy-booking-mobile.json +261 -0
  75. package/conformance/1.0/layout/measured/web/lucy-booking-tablet.json +817 -0
  76. package/conformance/1.0/layout/measured/web/lucy-booking.json +185 -0
  77. package/conformance/1.0/layout/measured/web/lucy-header.json +84 -0
  78. package/conformance/1.0/layout/measured/web/lucy-welcome-pin-mobile.json +31 -0
  79. package/conformance/1.0/layout/measured/web/lucy-welcome-pin.json +31 -0
  80. package/conformance/1.0/layout/measured/web/navigation-bar.json +46 -0
  81. package/conformance/1.0/layout/measured/web/probe-alert-banner-flutter.json +37 -0
  82. package/conformance/1.0/layout/measured/web/probe-alert-banner-regression-flutter.json +51 -0
  83. package/conformance/1.0/layout/measured/web/probe-alert-banner-stack-flutter.json +29 -0
  84. package/conformance/1.0/layout/measured/web/probe-card.json +35 -0
  85. package/conformance/1.0/layout/measured/web/probe-check-box-flutter.json +20 -0
  86. package/conformance/1.0/layout/measured/web/probe-container-height.json +21 -0
  87. package/conformance/1.0/layout/measured/web/probe-divider.json +55 -0
  88. package/conformance/1.0/layout/measured/web/probe-dropdown-menu-flutter.json +24 -0
  89. package/conformance/1.0/layout/measured/web/probe-dropdown-menu-max-lines.json +11 -0
  90. package/conformance/1.0/layout/measured/web/probe-expanded.json +31 -0
  91. package/conformance/1.0/layout/measured/web/probe-failed-decode.json +15 -0
  92. package/conformance/1.0/layout/measured/web/probe-flex.json +43 -0
  93. package/conformance/1.0/layout/measured/web/probe-grid-flutter.json +78 -0
  94. package/conformance/1.0/layout/measured/web/probe-grid.json +29 -0
  95. package/conformance/1.0/layout/measured/web/probe-icon-button-flutter.json +25 -0
  96. package/conformance/1.0/layout/measured/web/probe-icon-flutter.json +19 -0
  97. package/conformance/1.0/layout/measured/web/probe-icon-sizing.json +36 -0
  98. package/conformance/1.0/layout/measured/web/probe-image-flutter.json +24 -0
  99. package/conformance/1.0/layout/measured/web/probe-list-flutter.json +79 -0
  100. package/conformance/1.0/layout/measured/web/probe-list-regression-flutter.json +94 -0
  101. package/conformance/1.0/layout/measured/web/probe-list-row-flutter.json +86 -0
  102. package/conformance/1.0/layout/measured/web/probe-list-styles.json +45 -0
  103. package/conformance/1.0/layout/measured/web/probe-pin-input-parity.json +18 -0
  104. package/conformance/1.0/layout/measured/web/probe-progress-track-flutter.json +41 -0
  105. package/conformance/1.0/layout/measured/web/probe-progress-track-regression-flutter.json +57 -0
  106. package/conformance/1.0/layout/measured/web/probe-row-column.json +84 -0
  107. package/conformance/1.0/layout/measured/web/probe-scroll.json +54 -0
  108. package/conformance/1.0/layout/measured/web/probe-search-flutter.json +22 -0
  109. package/conformance/1.0/layout/measured/web/probe-size-constraints.json +20 -0
  110. package/conformance/1.0/layout/measured/web/probe-spacer.json +43 -0
  111. package/conformance/1.0/layout/measured/web/probe-stat-progress-track.json +14 -0
  112. package/conformance/1.0/layout/measured/web/probe-text-button-flutter.json +27 -0
  113. package/conformance/1.0/layout/measured/web/probe-text-field-flutter.json +28 -0
  114. package/conformance/1.0/layout/measured/web/probe-text.json +30 -0
  115. package/conformance/1.0/layout/measured/web/wallet-home.json +127 -0
  116. package/conformance/1.0/layout/navigation-bar.json +46 -0
  117. package/conformance/1.0/layout/probe-alert-banner-flutter.json +37 -0
  118. package/conformance/1.0/layout/probe-alert-banner-regression-flutter.json +51 -0
  119. package/conformance/1.0/layout/probe-alert-banner-stack-flutter.json +29 -0
  120. package/conformance/1.0/layout/probe-card.json +35 -0
  121. package/conformance/1.0/layout/probe-check-box-flutter.json +20 -0
  122. package/conformance/1.0/layout/probe-container-height.json +21 -0
  123. package/conformance/1.0/layout/probe-divider.json +55 -0
  124. package/conformance/1.0/layout/probe-dropdown-menu-flutter.json +24 -0
  125. package/conformance/1.0/layout/probe-dropdown-menu-max-lines.json +11 -0
  126. package/conformance/1.0/layout/probe-expanded.json +31 -0
  127. package/conformance/1.0/layout/probe-failed-decode.json +13 -0
  128. package/conformance/1.0/layout/probe-flex.json +43 -0
  129. package/conformance/1.0/layout/probe-grid-flutter.json +78 -0
  130. package/conformance/1.0/layout/probe-grid.json +29 -0
  131. package/conformance/1.0/layout/probe-icon-button-flutter.json +25 -0
  132. package/conformance/1.0/layout/probe-icon-flutter.json +19 -0
  133. package/conformance/1.0/layout/probe-icon-sizing.json +36 -0
  134. package/conformance/1.0/layout/probe-image-flutter.json +24 -0
  135. package/conformance/1.0/layout/probe-list-flutter.json +79 -0
  136. package/conformance/1.0/layout/probe-list-regression-flutter.json +94 -0
  137. package/conformance/1.0/layout/probe-list-row-flutter.json +86 -0
  138. package/conformance/1.0/layout/probe-list-styles.json +45 -0
  139. package/conformance/1.0/layout/probe-pin-input-parity.json +18 -0
  140. package/conformance/1.0/layout/probe-progress-track-flutter.json +41 -0
  141. package/conformance/1.0/layout/probe-progress-track-regression-flutter.json +57 -0
  142. package/conformance/1.0/layout/probe-row-column.json +84 -0
  143. package/conformance/1.0/layout/probe-scroll.json +54 -0
  144. package/conformance/1.0/layout/probe-search-flutter.json +22 -0
  145. package/conformance/1.0/layout/probe-size-constraints.json +20 -0
  146. package/conformance/1.0/layout/probe-spacer.json +43 -0
  147. package/conformance/1.0/layout/probe-stat-progress-track.json +14 -0
  148. package/conformance/1.0/layout/probe-text-button-flutter.json +27 -0
  149. package/conformance/1.0/layout/probe-text-field-flutter.json +28 -0
  150. package/conformance/1.0/layout/probe-text.json +30 -0
  151. package/conformance/1.0/layout/probes/probe-alert-banner-flutter.json +296 -0
  152. package/conformance/1.0/layout/probes/probe-alert-banner-regression-flutter.json +1 -0
  153. package/conformance/1.0/layout/probes/probe-alert-banner-stack-flutter.json +219 -0
  154. package/conformance/1.0/layout/probes/probe-card.json +252 -0
  155. package/conformance/1.0/layout/probes/probe-check-box-flutter.json +86 -0
  156. package/conformance/1.0/layout/probes/probe-container-height.json +147 -0
  157. package/conformance/1.0/layout/probes/probe-divider.json +469 -0
  158. package/conformance/1.0/layout/probes/probe-dropdown-menu-flutter.json +293 -0
  159. package/conformance/1.0/layout/probes/probe-dropdown-menu-max-lines.json +54 -0
  160. package/conformance/1.0/layout/probes/probe-expanded.json +208 -0
  161. package/conformance/1.0/layout/probes/probe-failed-decode.json +96 -0
  162. package/conformance/1.0/layout/probes/probe-flex.json +353 -0
  163. package/conformance/1.0/layout/probes/probe-grid-flutter.json +584 -0
  164. package/conformance/1.0/layout/probes/probe-grid.json +209 -0
  165. package/conformance/1.0/layout/probes/probe-icon-button-flutter.json +143 -0
  166. package/conformance/1.0/layout/probes/probe-icon-flutter.json +89 -0
  167. package/conformance/1.0/layout/probes/probe-icon-sizing.json +219 -0
  168. package/conformance/1.0/layout/probes/probe-image-flutter.json +130 -0
  169. package/conformance/1.0/layout/probes/probe-list-flutter.json +732 -0
  170. package/conformance/1.0/layout/probes/probe-list-regression-flutter.json +815 -0
  171. package/conformance/1.0/layout/probes/probe-list-row-flutter.json +734 -0
  172. package/conformance/1.0/layout/probes/probe-list-styles.json +332 -0
  173. package/conformance/1.0/layout/probes/probe-pin-input-parity.json +87 -0
  174. package/conformance/1.0/layout/probes/probe-progress-track-flutter.json +298 -0
  175. package/conformance/1.0/layout/probes/probe-progress-track-regression-flutter.json +525 -0
  176. package/conformance/1.0/layout/probes/probe-row-column.json +784 -0
  177. package/conformance/1.0/layout/probes/probe-scroll.json +378 -0
  178. package/conformance/1.0/layout/probes/probe-search-flutter.json +138 -0
  179. package/conformance/1.0/layout/probes/probe-size-constraints.json +157 -0
  180. package/conformance/1.0/layout/probes/probe-spacer.json +291 -0
  181. package/conformance/1.0/layout/probes/probe-stat-progress-track.json +87 -0
  182. package/conformance/1.0/layout/probes/probe-text-button-flutter.json +163 -0
  183. package/conformance/1.0/layout/probes/probe-text-field-flutter.json +170 -0
  184. package/conformance/1.0/layout/probes/probe-text.json +202 -0
  185. package/conformance/1.0/layout/report/01-onboarding-start.md +49 -0
  186. package/conformance/1.0/layout/report/02-home-discover.md +98 -0
  187. package/conformance/1.0/layout/report/03-filters.md +85 -0
  188. package/conformance/1.0/layout/report/alert.md +27 -0
  189. package/conformance/1.0/layout/report/iphone-14-15-pro-107.md +47 -0
  190. package/conformance/1.0/layout/report/live_status_on_its_way_4.ios.md +60 -0
  191. package/conformance/1.0/layout/report/lucy-booking-mobile.md +81 -0
  192. package/conformance/1.0/layout/report/lucy-booking-tablet.md +279 -0
  193. package/conformance/1.0/layout/report/lucy-booking.md +117 -0
  194. package/conformance/1.0/layout/report/lucy-header.md +64 -0
  195. package/conformance/1.0/layout/report/lucy-welcome-pin-mobile.md +15 -0
  196. package/conformance/1.0/layout/report/lucy-welcome-pin.md +11 -0
  197. package/conformance/1.0/layout/report/navigation-bar.md +23 -0
  198. package/conformance/1.0/layout/report/probe-alert-banner-flutter.md +11 -0
  199. package/conformance/1.0/layout/report/probe-alert-banner-regression-flutter.md +27 -0
  200. package/conformance/1.0/layout/report/probe-alert-banner-stack-flutter.md +11 -0
  201. package/conformance/1.0/layout/report/probe-card.md +11 -0
  202. package/conformance/1.0/layout/report/probe-check-box-flutter.md +17 -0
  203. package/conformance/1.0/layout/report/probe-divider.md +11 -0
  204. package/conformance/1.0/layout/report/probe-dropdown-menu-flutter.md +15 -0
  205. package/conformance/1.0/layout/report/probe-dropdown-menu-max-lines.md +15 -0
  206. package/conformance/1.0/layout/report/probe-flex.md +23 -0
  207. package/conformance/1.0/layout/report/probe-grid-flutter.md +11 -0
  208. package/conformance/1.0/layout/report/probe-icon-button-flutter.md +11 -0
  209. package/conformance/1.0/layout/report/probe-icon-flutter.md +11 -0
  210. package/conformance/1.0/layout/report/probe-image-flutter.md +11 -0
  211. package/conformance/1.0/layout/report/probe-list-flutter.md +11 -0
  212. package/conformance/1.0/layout/report/probe-list-regression-flutter.md +27 -0
  213. package/conformance/1.0/layout/report/probe-list-row-flutter.md +11 -0
  214. package/conformance/1.0/layout/report/probe-pin-input-parity.md +11 -0
  215. package/conformance/1.0/layout/report/probe-progress-track-flutter.md +11 -0
  216. package/conformance/1.0/layout/report/probe-progress-track-regression-flutter.md +20 -0
  217. package/conformance/1.0/layout/report/probe-row-column.md +20 -0
  218. package/conformance/1.0/layout/report/probe-scroll.md +11 -0
  219. package/conformance/1.0/layout/report/probe-search-flutter.md +11 -0
  220. package/conformance/1.0/layout/report/probe-spacer.md +11 -0
  221. package/conformance/1.0/layout/report/probe-text-button-flutter.md +22 -0
  222. package/conformance/1.0/layout/report/probe-text-field-flutter.md +11 -0
  223. package/conformance/1.0/layout/report/probe-text.md +31 -0
  224. package/conformance/1.0/layout/report/wallet-home.md +35 -0
  225. package/conformance/1.0/layout/tolerance.json +12 -0
  226. package/conformance/1.0/layout/wallet-home.json +127 -0
  227. package/conformance/1.0/response-cases.json +228 -0
  228. package/conformance/1.0/screen-cases.json +198 -0
  229. package/conformance/1.0/screens/01-onboarding-start.json +994 -0
  230. package/conformance/1.0/screens/02-home-discover.json +2165 -0
  231. package/conformance/1.0/screens/03-filters.json +2290 -0
  232. package/conformance/1.0/screens/alert.json +231 -0
  233. package/conformance/1.0/screens/iphone-14-15-pro-107.json +3149 -0
  234. package/conformance/1.0/screens/live_status_on_its_way_4.ios.json +1313 -0
  235. package/conformance/1.0/screens/lucy-booking-mobile.json +3063 -0
  236. package/conformance/1.0/screens/lucy-booking-tablet.json +10371 -0
  237. package/conformance/1.0/screens/lucy-booking.json +2130 -0
  238. package/conformance/1.0/screens/lucy-header.json +1201 -0
  239. package/conformance/1.0/screens/lucy-welcome-pin-mobile.json +417 -0
  240. package/conformance/1.0/screens/lucy-welcome-pin.json +409 -0
  241. package/conformance/1.0/screens/navigation-bar.json +542 -0
  242. package/conformance/1.0/screens/wallet-home.json +1585 -0
  243. package/dist/action.d.ts +10616 -0
  244. package/dist/action.d.ts.map +1 -0
  245. package/dist/action.js +92 -0
  246. package/dist/action.js.map +1 -0
  247. package/dist/bind.d.ts +32 -0
  248. package/dist/bind.d.ts.map +1 -0
  249. package/dist/bind.js +102 -0
  250. package/dist/bind.js.map +1 -0
  251. package/dist/block-ref.d.ts +17 -0
  252. package/dist/block-ref.d.ts.map +1 -0
  253. package/dist/block-ref.js +17 -0
  254. package/dist/block-ref.js.map +1 -0
  255. package/dist/block-types.d.ts +26 -0
  256. package/dist/block-types.d.ts.map +1 -0
  257. package/dist/block-types.js +39 -0
  258. package/dist/block-types.js.map +1 -0
  259. package/dist/block.d.ts +20908 -0
  260. package/dist/block.d.ts.map +1 -0
  261. package/dist/block.js +81 -0
  262. package/dist/block.js.map +1 -0
  263. package/dist/blocks/display.d.ts +1915 -0
  264. package/dist/blocks/display.d.ts.map +1 -0
  265. package/dist/blocks/display.js +433 -0
  266. package/dist/blocks/display.js.map +1 -0
  267. package/dist/blocks/input.d.ts +7148 -0
  268. package/dist/blocks/input.d.ts.map +1 -0
  269. package/dist/blocks/input.js +855 -0
  270. package/dist/blocks/input.js.map +1 -0
  271. package/dist/blocks/layout.d.ts +2482 -0
  272. package/dist/blocks/layout.d.ts.map +1 -0
  273. package/dist/blocks/layout.js +266 -0
  274. package/dist/blocks/layout.js.map +1 -0
  275. package/dist/blocks/list.d.ts +980 -0
  276. package/dist/blocks/list.d.ts.map +1 -0
  277. package/dist/blocks/list.js +286 -0
  278. package/dist/blocks/list.js.map +1 -0
  279. package/dist/common.d.ts +958 -0
  280. package/dist/common.d.ts.map +1 -0
  281. package/dist/common.js +108 -0
  282. package/dist/common.js.map +1 -0
  283. package/dist/deprecated.d.ts +11 -0
  284. package/dist/deprecated.d.ts.map +1 -0
  285. package/dist/deprecated.js +26 -0
  286. package/dist/deprecated.js.map +1 -0
  287. package/dist/index.d.ts +20 -0
  288. package/dist/index.d.ts.map +1 -0
  289. package/dist/index.js +15 -0
  290. package/dist/index.js.map +1 -0
  291. package/dist/layout.d.ts +103 -0
  292. package/dist/layout.d.ts.map +1 -0
  293. package/dist/layout.js +113 -0
  294. package/dist/layout.js.map +1 -0
  295. package/dist/properties.d.ts +787 -0
  296. package/dist/properties.d.ts.map +1 -0
  297. package/dist/properties.js +447 -0
  298. package/dist/properties.js.map +1 -0
  299. package/dist/screen.d.ts +10494 -0
  300. package/dist/screen.d.ts.map +1 -0
  301. package/dist/screen.js +32 -0
  302. package/dist/screen.js.map +1 -0
  303. package/package.json +57 -4
  304. package/schema/1.0/action.json +109 -0
  305. package/schema/1.0/block.json +5886 -0
  306. package/schema/1.0/response.json +91 -0
  307. package/schema/1.0/screen.json +22 -0
  308. package/src/README.md +135 -0
  309. package/src/action.ts +119 -0
  310. package/src/bind.ts +114 -0
  311. package/src/block-ref.ts +18 -0
  312. package/src/block-types.ts +55 -0
  313. package/src/block.ts +116 -0
  314. package/src/blocks/display.ts +543 -0
  315. package/src/blocks/input.ts +1031 -0
  316. package/src/blocks/layout.ts +322 -0
  317. package/src/blocks/list.ts +355 -0
  318. package/src/common.ts +133 -0
  319. package/src/deprecated.ts +40 -0
  320. package/src/index.ts +31 -0
  321. package/src/layout.ts +194 -0
  322. package/src/properties.ts +516 -0
  323. package/src/screen.ts +39 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiDxB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW5B,CAAC;AAEL,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AA4BhE;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBvB,CAAC;AAEL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
package/dist/action.js ADDED
@@ -0,0 +1,92 @@
1
+ import { z } from "zod";
2
+ import { eventDataValueSchema, eventTypeSchema } from "./properties.js";
3
+ import { fractalVersionSchema, screenSchema } from "./screen.js";
4
+ /**
5
+ * An instant in ISO 8601, always in UTC: `YYYY-MM-DDTHH:MM:SSZ` with optional
6
+ * fractional seconds (`2026-11-17T03:45:00Z`, `2026-11-17T03:45:00.123Z`). An
7
+ * offset (`+00:00`) or a missing `Z` is invalid. Written as a pattern, not as a
8
+ * JSON Schema `format`, so every validator enforces it.
9
+ */
10
+ const utcTimestampSchema = z
11
+ .string()
12
+ .regex(/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?Z$/, 'Expected an ISO 8601 UTC date-time ending in "Z", such as "2026-11-17T03:45:00Z"');
13
+ /** What happened on the renderer: the event that fired and the state it fired in. */
14
+ const actionSchema = z.strictObject({
15
+ name: z
16
+ .string()
17
+ .min(1)
18
+ .describe("The action the backend handles. The renderer copies it from the `event_id` of the block event that fired."),
19
+ screen_id: z
20
+ .string()
21
+ .optional()
22
+ .describe("Identifier of the screen the event fired on, supplied by the renderer when it knows one. A screen document carries no id, so the key is optional."),
23
+ source_block_id: z
24
+ .string()
25
+ .optional()
26
+ .describe("The `id` of the block whose event fired. Absent when that block has no `id`."),
27
+ event_type: eventTypeSchema.describe("The gesture or change that fired the event. The renderer copies it from the `event_type` of the block event."),
28
+ timestamp: utcTimestampSchema.describe("When the event fired, read from the renderer's clock: ISO 8601 in UTC, ending in `Z`, with optional fractional seconds."),
29
+ context: z
30
+ .record(z.string(), eventDataValueSchema)
31
+ .optional()
32
+ .describe("The `event_data` of the block event that fired, unchanged. Absent when the event has no `event_data`."),
33
+ values: z
34
+ .record(z.string(), eventDataValueSchema)
35
+ .optional()
36
+ .describe("The current value of every input block that has an `id`, keyed by that `id`, read from the screen when the event fires."),
37
+ });
38
+ /**
39
+ * An action message: what a renderer posts to the backend when a block event
40
+ * fires. Like the screen document, every other top-level key is transport
41
+ * data, so the object is open; `action` itself is closed.
42
+ */
43
+ export const actionMessageSchema = z
44
+ .looseObject({
45
+ fractal: fractalVersionSchema.describe("Protocol version the renderer speaks, as MAJOR.MINOR. A backend rejects an action message whose major version it does not support and accepts a higher minor of a supported major."),
46
+ action: actionSchema.describe("The event that fired and the state of the screen it fired on."),
47
+ })
48
+ .meta({
49
+ title: "Fractal IO action message",
50
+ description: "An action message of protocol version 1.x: what a renderer posts to the backend when a block event fires. Other top-level keys are transport data, not protocol; renderers may send them and backends ignore them.",
51
+ });
52
+ /** Replaces what the renderer shows with a new screen. */
53
+ const screenMessageSchema = z.strictObject({
54
+ screen: screenSchema.describe("A whole screen document, built by the backend, that the renderer draws."),
55
+ });
56
+ /** Sends the renderer to another screen. */
57
+ const navigateMessageSchema = z.strictObject({
58
+ navigate: z
59
+ .strictObject({
60
+ screen_id: z
61
+ .string()
62
+ .describe("Identifier of the screen to open, chosen by the backend."),
63
+ })
64
+ .describe("Tells the renderer to open another screen."),
65
+ });
66
+ /** Reports that the backend could not carry out the action. */
67
+ const errorMessageSchema = z.strictObject({
68
+ error: z
69
+ .strictObject({
70
+ code: z.string().describe("Machine-readable identifier of the failure, defined by the backend (for example `sold_out`)."),
71
+ message: z.string().describe("Human-readable explanation of the failure, written by the backend."),
72
+ })
73
+ .describe("Tells the renderer that the backend could not carry out the action."),
74
+ });
75
+ /**
76
+ * A response: what the backend returns for an action message. It carries one
77
+ * or more messages, each of exactly one kind. Like the screen document, every
78
+ * other top-level key is transport data, so the object is open.
79
+ */
80
+ export const responseSchema = z
81
+ .looseObject({
82
+ fractal: fractalVersionSchema.describe("Protocol version the backend speaks, as MAJOR.MINOR. A renderer rejects a response whose major version it does not support and accepts a higher minor of a supported major."),
83
+ messages: z
84
+ .array(z.union([screenMessageSchema, navigateMessageSchema, errorMessageSchema]))
85
+ .min(1)
86
+ .describe("What the backend answers to the action: at least one message. Each message is an object with exactly one of the keys `screen`, `navigate` or `error`."),
87
+ })
88
+ .meta({
89
+ title: "Fractal IO response",
90
+ description: "A response of protocol version 1.x: what a backend returns for an action message. Other top-level keys are transport data, not protocol; backends may send them and renderers ignore them.",
91
+ });
92
+ //# sourceMappingURL=action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.js","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;A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 -0,0 +1,32 @@
1
+ import type { Screen } from "./screen.ts";
2
+ export declare const BIND_KEY = "$bind";
3
+ export declare const BIND_ERROR_CODES: readonly ["BIND_PATH_NOT_FOUND", "BIND_TYPE_MISMATCH"];
4
+ export type BindErrorCode = (typeof BIND_ERROR_CODES)[number];
5
+ export interface BindError {
6
+ code: BindErrorCode;
7
+ message: string;
8
+ /** The `$bind` path that did not lead to a value (`BIND_PATH_NOT_FOUND` only). */
9
+ bind_path?: string;
10
+ }
11
+ export type SubstituteResult = {
12
+ ok: true;
13
+ document: unknown;
14
+ } | {
15
+ ok: false;
16
+ error: BindError;
17
+ };
18
+ export type ResolveResult = {
19
+ ok: true;
20
+ screen: Screen;
21
+ } | {
22
+ ok: false;
23
+ error: BindError;
24
+ };
25
+ /**
26
+ * Step 1 and 2 of `resolve`: replaces every binding of `template` with its value
27
+ * in `data`, without validating the result. Neither argument is modified.
28
+ */
29
+ export declare function substituteBindings(template: unknown, data: unknown): SubstituteResult;
30
+ /** Turns a template and its data into a screen document, or fails with a bind error. */
31
+ export declare function resolve(template: unknown, data: unknown): ResolveResult;
32
+ //# sourceMappingURL=bind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../src/bind.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,QAAQ,UAAU,CAAC;AAEhC,eAAO,MAAM,gBAAgB,wDAAyD,CAAC;AACvF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AACjG,MAAM,MAAM,aAAa,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AA+B3F;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,gBAAgB,CAqBrF;AAED,wFAAwF;AACxF,wBAAgB,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,aAAa,CAWvE"}
package/dist/bind.js ADDED
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Binding: how a template becomes a screen document.
3
+ *
4
+ * A template is a screen document in which any value, at any depth, may be a
5
+ * binding: an object whose only key is `$bind` and whose value is a string, the
6
+ * path of a value in the data. There is no separate template schema; a template
7
+ * is judged by what it resolves to.
8
+ *
9
+ * `resolve(template, data)`:
10
+ *
11
+ * 1. Replaces every binding with the value at its path, unchanged (no coercion,
12
+ * no default). The inserted value is not scanned for bindings again.
13
+ * 2. Fails with `BIND_PATH_NOT_FOUND` when a path does not lead to a value.
14
+ * 3. Fails with `BIND_TYPE_MISMATCH` when the substituted document is not a
15
+ * valid screen document (`screen.json`).
16
+ *
17
+ * A path is one or more segments separated by `.`. On an object a segment is an
18
+ * own key; on an array it is an index in canonical decimal form (`0`, `12`).
19
+ * Anything else, an inherited key or a step through a scalar or `null`, does not
20
+ * lead to a value. A key that contains `.` cannot be addressed.
21
+ *
22
+ * An object that has `$bind` next to other keys, or whose `$bind` is not a
23
+ * string, is not a binding and is left as it is.
24
+ *
25
+ * `conformance/<version>/bind-cases.json` pins these rules for every
26
+ * implementation; this file is the reference one.
27
+ */
28
+ import { screenSchema } from "./screen.js";
29
+ export const BIND_KEY = "$bind";
30
+ export const BIND_ERROR_CODES = ["BIND_PATH_NOT_FOUND", "BIND_TYPE_MISMATCH"];
31
+ const ARRAY_INDEX = /^(0|[1-9][0-9]*)$/;
32
+ const NOT_FOUND = Symbol("not found");
33
+ function isRecord(value) {
34
+ return typeof value === "object" && value !== null && !Array.isArray(value);
35
+ }
36
+ function bindPathOf(value) {
37
+ if (!isRecord(value))
38
+ return undefined;
39
+ const keys = Object.keys(value);
40
+ const path = value[BIND_KEY];
41
+ return keys.length === 1 && keys[0] === BIND_KEY && typeof path === "string" ? path : undefined;
42
+ }
43
+ function lookup(data, path) {
44
+ let current = data;
45
+ for (const segment of path.split(".")) {
46
+ if (Array.isArray(current)) {
47
+ if (!ARRAY_INDEX.test(segment) || Number(segment) >= current.length)
48
+ return NOT_FOUND;
49
+ current = current[Number(segment)];
50
+ }
51
+ else if (isRecord(current) && Object.hasOwn(current, segment)) {
52
+ current = current[segment];
53
+ }
54
+ else {
55
+ return NOT_FOUND;
56
+ }
57
+ }
58
+ return current;
59
+ }
60
+ /**
61
+ * Step 1 and 2 of `resolve`: replaces every binding of `template` with its value
62
+ * in `data`, without validating the result. Neither argument is modified.
63
+ */
64
+ export function substituteBindings(template, data) {
65
+ let error;
66
+ const walk = (node) => {
67
+ if (error)
68
+ return node;
69
+ const path = bindPathOf(node);
70
+ if (path !== undefined) {
71
+ const value = lookup(data, path);
72
+ if (value === NOT_FOUND) {
73
+ error = { code: "BIND_PATH_NOT_FOUND", message: `No value at "${path}" in the data.`, bind_path: path };
74
+ return node;
75
+ }
76
+ return structuredClone(value);
77
+ }
78
+ if (Array.isArray(node))
79
+ return node.map(walk);
80
+ if (isRecord(node))
81
+ return Object.fromEntries(Object.entries(node).map(([key, value]) => [key, walk(value)]));
82
+ return node;
83
+ };
84
+ const document = walk(template);
85
+ return error ? { ok: false, error } : { ok: true, document };
86
+ }
87
+ /** Turns a template and its data into a screen document, or fails with a bind error. */
88
+ export function resolve(template, data) {
89
+ const substituted = substituteBindings(template, data);
90
+ if (!substituted.ok)
91
+ return substituted;
92
+ const parsed = screenSchema.safeParse(substituted.document);
93
+ if (parsed.success)
94
+ return { ok: true, screen: parsed.data };
95
+ const [issue] = parsed.error.issues;
96
+ const at = issue?.path.join("/") || "/";
97
+ return {
98
+ ok: false,
99
+ error: { code: "BIND_TYPE_MISMATCH", message: `The resolved document is not a valid screen at ${at}: ${issue?.message ?? ""}`.trim() },
100
+ };
101
+ }
102
+ //# sourceMappingURL=bind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bind.js","sourceRoot":"","sources":["../src/bind.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,qBAAqB,EAAE,oBAAoB,CAAU,CAAC;AAavF,MAAM,WAAW,GAAG,mBAAmB,CAAC;AACxC,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEtC,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IAChC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACvC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7B,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,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G,CAAC,IAAI,GAAG,CAAC;IACxC,OAAO;QACL,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,kDAAkD,EAAE,KAAK,KAAK,EAAE,OAAO,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;KACvI,CAAC;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ import type { IosBlockNode } from "./block-types.ts";
3
+ /**
4
+ * Recursion point of the block tree.
5
+ *
6
+ * Every container-like block embeds other blocks (`child`, `children`,
7
+ * `start_block`, ...), and the block union is built from those same schemas.
8
+ * `blockRef` defers the lookup of `iosBlockSchema` until validation time, which
9
+ * closes the loop without evaluating anything during module load. The explicit
10
+ * `IosBlockNode` type is what lets TypeScript accept the cycle.
11
+ *
12
+ * The modules form an import cycle (`block.ts` -> `blocks/*` -> `block-ref.ts` ->
13
+ * `block.ts`) that only resolves when evaluation starts at `block.ts`. Always
14
+ * import the module through `index.ts` (or `block.ts`), never `blocks/*` alone.
15
+ */
16
+ export declare const blockRef: z.ZodType<IosBlockNode>;
17
+ //# sourceMappingURL=block-ref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-ref.d.ts","sourceRoot":"","sources":["../src/block-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAgC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ import { iosBlockSchema } from "./block.js";
3
+ /**
4
+ * Recursion point of the block tree.
5
+ *
6
+ * Every container-like block embeds other blocks (`child`, `children`,
7
+ * `start_block`, ...), and the block union is built from those same schemas.
8
+ * `blockRef` defers the lookup of `iosBlockSchema` until validation time, which
9
+ * closes the loop without evaluating anything during module load. The explicit
10
+ * `IosBlockNode` type is what lets TypeScript accept the cycle.
11
+ *
12
+ * The modules form an import cycle (`block.ts` -> `blocks/*` -> `block-ref.ts` ->
13
+ * `block.ts`) that only resolves when evaluation starts at `block.ts`. Always
14
+ * import the module through `index.ts` (or `block.ts`), never `blocks/*` alone.
15
+ */
16
+ export const blockRef = z.lazy(() => iosBlockSchema);
17
+ //# sourceMappingURL=block-ref.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-ref.js","sourceRoot":"","sources":["../src/block-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAG5C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The 26 block types registered by the iOS runtime, in registration order.
3
+ *
4
+ * Source of truth: `FIOCoreBlockClassesStore.defaultBlocks` in
5
+ * fractal_core_blocks-ios (`Sources/Store/FIOCoreBlockClassesStore.swift`).
6
+ * Keep this list in sync with that array. `GestureDetector` exists in the
7
+ * Swift sources but is not registered, so iOS never decodes it and it is
8
+ * deliberately absent here.
9
+ */
10
+ export declare const IOS_BLOCK_TYPES: readonly ["container", "text", "column", "row", "single_child_scroll", "icon", "icon_button", "padding", "divider", "card", "expanded", "flexible", "spacer", "image", "grid", "check_box", "list_row", "list", "list_section", "text_button", "text_field", "dropdown_menu", "pin_input", "alert_banner", "stat_progress_track", "search", "bell_toggle"];
11
+ export type IosBlockType = (typeof IOS_BLOCK_TYPES)[number];
12
+ /**
13
+ * Structural type of a nested block (`child`, `children`, `start_block`, ...).
14
+ *
15
+ * Block schemas are mutually recursive (a container holds blocks that can be
16
+ * containers), so the recursion point needs an explicit type: TypeScript cannot
17
+ * infer a type that refers to itself through 26 separate modules. Nested blocks
18
+ * are therefore typed as `{ type, data }` here, while the runtime schema
19
+ * (`blockRef` in `block-ref.ts`) still validates them in full. The top-level
20
+ * `IosBlock` type from `block.ts` is the precise discriminated union.
21
+ */
22
+ export interface IosBlockNode {
23
+ type: IosBlockType;
24
+ data: object;
25
+ }
26
+ //# sourceMappingURL=block-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-types.d.ts","sourceRoot":"","sources":["../src/block-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,4VA4BlB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The 26 block types registered by the iOS runtime, in registration order.
3
+ *
4
+ * Source of truth: `FIOCoreBlockClassesStore.defaultBlocks` in
5
+ * fractal_core_blocks-ios (`Sources/Store/FIOCoreBlockClassesStore.swift`).
6
+ * Keep this list in sync with that array. `GestureDetector` exists in the
7
+ * Swift sources but is not registered, so iOS never decodes it and it is
8
+ * deliberately absent here.
9
+ */
10
+ export const IOS_BLOCK_TYPES = [
11
+ "container",
12
+ "text",
13
+ "column",
14
+ "row",
15
+ "single_child_scroll",
16
+ "icon",
17
+ "icon_button",
18
+ "padding",
19
+ "divider",
20
+ "card",
21
+ "expanded",
22
+ "flexible",
23
+ "spacer",
24
+ "image",
25
+ "grid",
26
+ "check_box",
27
+ "list_row",
28
+ "list",
29
+ "list_section",
30
+ "text_button",
31
+ "text_field",
32
+ "dropdown_menu",
33
+ "pin_input",
34
+ "alert_banner",
35
+ "stat_progress_track",
36
+ "search",
37
+ "bell_toggle",
38
+ ];
39
+ //# sourceMappingURL=block-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-types.js","sourceRoot":"","sources":["../src/block-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,WAAW;IACX,MAAM;IACN,QAAQ;IACR,KAAK;IACL,qBAAqB;IACrB,MAAM;IACN,aAAa;IACb,SAAS;IACT,SAAS;IACT,MAAM;IACN,UAAU;IACV,UAAU;IACV,QAAQ;IACR,OAAO;IACP,MAAM;IACN,WAAW;IACX,UAAU;IACV,MAAM;IACN,cAAc;IACd,aAAa;IACb,YAAY;IACZ,eAAe;IACf,WAAW;IACX,cAAc;IACd,qBAAqB;IACrB,QAAQ;IACR,aAAa;CACL,CAAC"}