@wardic/solid 2.2.0 → 3.0.0-next.1

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 (541) hide show
  1. package/README.md +39 -18
  2. package/dist/browser/animation-frame.js +1 -1
  3. package/dist/browser/animation-frame.js.map +1 -1
  4. package/dist/browser/config-view.js +35 -6
  5. package/dist/browser/config-view.js.map +1 -1
  6. package/dist/browser/create-batch.js +1 -1
  7. package/dist/browser/diagnostic-codes.js +216 -0
  8. package/dist/browser/diagnostic-codes.js.map +1 -0
  9. package/dist/browser/diagnostics.js +79 -0
  10. package/dist/browser/diagnostics.js.map +1 -0
  11. package/dist/browser/element-style.js +61 -7
  12. package/dist/browser/element-style.js.map +1 -1
  13. package/dist/browser/element.js +24 -6
  14. package/dist/browser/element.js.map +1 -1
  15. package/dist/browser/feature-section.js +5 -13
  16. package/dist/browser/feature-section.js.map +1 -1
  17. package/dist/browser/frame-effect.js +1 -1
  18. package/dist/browser/frame-effect.js.map +1 -1
  19. package/dist/browser/gesture-callbacks.js +1 -1
  20. package/dist/browser/gesture-callbacks.js.map +1 -1
  21. package/dist/browser/hooks/auto.js +270 -0
  22. package/dist/browser/hooks/auto.js.map +1 -0
  23. package/dist/browser/hooks/config-scope.js +120 -0
  24. package/dist/browser/hooks/config-scope.js.map +1 -0
  25. package/dist/browser/hooks/config.js +37 -0
  26. package/dist/browser/hooks/config.js.map +1 -0
  27. package/dist/browser/hooks/drag.js +633 -0
  28. package/dist/browser/hooks/drag.js.map +1 -0
  29. package/dist/browser/hooks/elements.js +183 -0
  30. package/dist/browser/hooks/elements.js.map +1 -0
  31. package/dist/browser/hooks/group.js +28 -0
  32. package/dist/browser/hooks/group.js.map +1 -0
  33. package/dist/browser/hooks/index.js +10 -0
  34. package/dist/browser/hooks/index.js.map +1 -0
  35. package/dist/browser/hooks/kept.js +32 -0
  36. package/dist/browser/hooks/kept.js.map +1 -0
  37. package/dist/browser/hooks/layout-group-of.js +39 -0
  38. package/dist/browser/hooks/layout-group-of.js.map +1 -0
  39. package/dist/browser/hooks/layout-group.js +92 -0
  40. package/dist/browser/hooks/layout-group.js.map +1 -0
  41. package/dist/browser/hooks/make-ward.js +157 -0
  42. package/dist/browser/hooks/make-ward.js.map +1 -0
  43. package/dist/browser/hooks/presence-scope.js +88 -0
  44. package/dist/browser/hooks/presence-scope.js.map +1 -0
  45. package/dist/browser/hooks/presence.js +24 -0
  46. package/dist/browser/hooks/presence.js.map +1 -0
  47. package/dist/browser/hooks/props.js +148 -0
  48. package/dist/browser/hooks/props.js.map +1 -0
  49. package/dist/browser/hooks/reads.js +241 -0
  50. package/dist/browser/hooks/reads.js.map +1 -0
  51. package/dist/browser/hooks/refs.js +87 -0
  52. package/dist/browser/hooks/refs.js.map +1 -0
  53. package/dist/browser/hooks/reorder-elements.js +269 -0
  54. package/dist/browser/hooks/reorder-elements.js.map +1 -0
  55. package/dist/browser/hooks/reorder.js +176 -0
  56. package/dist/browser/hooks/reorder.js.map +1 -0
  57. package/dist/browser/hooks/rune.js +800 -0
  58. package/dist/browser/hooks/rune.js.map +1 -0
  59. package/dist/browser/hooks/server-features.client.js +2 -0
  60. package/dist/browser/hooks/server-features.client.js.map +1 -0
  61. package/dist/browser/hooks/server-features.js +13 -0
  62. package/dist/browser/hooks/server-features.js.map +1 -0
  63. package/dist/browser/hooks/settings.js +29 -0
  64. package/dist/browser/hooks/settings.js.map +1 -0
  65. package/dist/browser/hooks/setup.js +154 -0
  66. package/dist/browser/hooks/setup.js.map +1 -0
  67. package/dist/browser/hooks/stage.js +117 -0
  68. package/dist/browser/hooks/stage.js.map +1 -0
  69. package/dist/browser/hooks/ward.js +2212 -0
  70. package/dist/browser/hooks/ward.js.map +1 -0
  71. package/dist/browser/hooks/wardic-provider.js +29 -0
  72. package/dist/browser/hooks/wardic-provider.js.map +1 -0
  73. package/dist/browser/hooks/wardic-scope.js +68 -0
  74. package/dist/browser/hooks/wardic-scope.js.map +1 -0
  75. package/dist/browser/hooks/wards.js +563 -0
  76. package/dist/browser/hooks/wards.js.map +1 -0
  77. package/dist/browser/index.js +23 -11
  78. package/dist/browser/index.js.map +1 -1
  79. package/dist/browser/layout.js +7 -58
  80. package/dist/browser/layout.js.map +1 -1
  81. package/dist/browser/lazy-batch-gestures.js +1 -1
  82. package/dist/browser/lifecycle.js +37 -0
  83. package/dist/browser/lifecycle.js.map +1 -1
  84. package/dist/browser/presence-handle.js +28 -12
  85. package/dist/browser/presence-handle.js.map +1 -1
  86. package/dist/browser/presence.js +3 -1
  87. package/dist/browser/presence.js.map +1 -1
  88. package/dist/browser/provider.js +124 -90
  89. package/dist/browser/provider.js.map +1 -1
  90. package/dist/browser/reorder-components.js +50 -0
  91. package/dist/browser/reorder-components.js.map +1 -0
  92. package/dist/browser/reorder.js +51 -278
  93. package/dist/browser/reorder.js.map +1 -1
  94. package/dist/browser/runtime.js +26 -15
  95. package/dist/browser/runtime.js.map +1 -1
  96. package/dist/browser/spans-check.js +8 -3
  97. package/dist/browser/spans-check.js.map +1 -1
  98. package/dist/browser/stage.js.map +1 -1
  99. package/dist/browser/unstable/v2/index.js +0 -8
  100. package/dist/browser/unstable/v2/index.js.map +1 -1
  101. package/dist/browser/v1/index.js +1 -1
  102. package/dist/browser/v1/index.js.map +1 -1
  103. package/dist/browser/variant-node.js +4 -2
  104. package/dist/browser/variant-node.js.map +1 -1
  105. package/dist/browser/w.js +33 -3
  106. package/dist/browser/w.js.map +1 -1
  107. package/dist/browser/ward.js +594 -61
  108. package/dist/browser/ward.js.map +1 -1
  109. package/dist/browser/wardic-config.js +62 -29
  110. package/dist/browser/wardic-config.js.map +1 -1
  111. package/dist/browser/wardic-context.js +23 -0
  112. package/dist/browser/wardic-context.js.map +1 -0
  113. package/dist/browser/wardic.js +3 -0
  114. package/dist/browser/wardic.js.map +1 -1
  115. package/dist/server/animation-frame.js +1 -1
  116. package/dist/server/animation-frame.js.map +1 -1
  117. package/dist/server/config-view.js +35 -6
  118. package/dist/server/config-view.js.map +1 -1
  119. package/dist/server/create-batch.js +1 -1
  120. package/dist/server/diagnostic-codes.js +216 -0
  121. package/dist/server/diagnostic-codes.js.map +1 -0
  122. package/dist/server/diagnostics.js +79 -0
  123. package/dist/server/diagnostics.js.map +1 -0
  124. package/dist/server/element-style.js +61 -7
  125. package/dist/server/element-style.js.map +1 -1
  126. package/dist/server/element.js +24 -6
  127. package/dist/server/element.js.map +1 -1
  128. package/dist/server/feature-section.js +5 -13
  129. package/dist/server/feature-section.js.map +1 -1
  130. package/dist/server/frame-effect.js +1 -1
  131. package/dist/server/frame-effect.js.map +1 -1
  132. package/dist/server/gesture-callbacks.js +1 -1
  133. package/dist/server/gesture-callbacks.js.map +1 -1
  134. package/dist/server/hooks/auto.js +270 -0
  135. package/dist/server/hooks/auto.js.map +1 -0
  136. package/dist/server/hooks/config-scope.js +120 -0
  137. package/dist/server/hooks/config-scope.js.map +1 -0
  138. package/dist/server/hooks/config.js +37 -0
  139. package/dist/server/hooks/config.js.map +1 -0
  140. package/dist/server/hooks/drag.js +633 -0
  141. package/dist/server/hooks/drag.js.map +1 -0
  142. package/dist/server/hooks/elements.js +192 -0
  143. package/dist/server/hooks/elements.js.map +1 -0
  144. package/dist/server/hooks/group.js +28 -0
  145. package/dist/server/hooks/group.js.map +1 -0
  146. package/dist/server/hooks/index.js +10 -0
  147. package/dist/server/hooks/index.js.map +1 -0
  148. package/dist/server/hooks/kept.js +32 -0
  149. package/dist/server/hooks/kept.js.map +1 -0
  150. package/dist/server/hooks/layout-group-of.js +39 -0
  151. package/dist/server/hooks/layout-group-of.js.map +1 -0
  152. package/dist/server/hooks/layout-group.js +109 -0
  153. package/dist/server/hooks/layout-group.js.map +1 -0
  154. package/dist/server/hooks/make-ward.js +157 -0
  155. package/dist/server/hooks/make-ward.js.map +1 -0
  156. package/dist/server/hooks/presence-scope.js +87 -0
  157. package/dist/server/hooks/presence-scope.js.map +1 -0
  158. package/dist/server/hooks/presence.js +24 -0
  159. package/dist/server/hooks/presence.js.map +1 -0
  160. package/dist/server/hooks/props.js +148 -0
  161. package/dist/server/hooks/props.js.map +1 -0
  162. package/dist/server/hooks/reads.js +241 -0
  163. package/dist/server/hooks/reads.js.map +1 -0
  164. package/dist/server/hooks/refs.js +87 -0
  165. package/dist/server/hooks/refs.js.map +1 -0
  166. package/dist/server/hooks/reorder-elements.js +309 -0
  167. package/dist/server/hooks/reorder-elements.js.map +1 -0
  168. package/dist/server/hooks/reorder.js +176 -0
  169. package/dist/server/hooks/reorder.js.map +1 -0
  170. package/dist/server/hooks/rune.js +800 -0
  171. package/dist/server/hooks/rune.js.map +1 -0
  172. package/dist/server/hooks/server-features.client.js +2 -0
  173. package/dist/server/hooks/server-features.client.js.map +1 -0
  174. package/dist/server/hooks/server-features.js +13 -0
  175. package/dist/server/hooks/server-features.js.map +1 -0
  176. package/dist/server/hooks/settings.js +29 -0
  177. package/dist/server/hooks/settings.js.map +1 -0
  178. package/dist/server/hooks/setup.js +154 -0
  179. package/dist/server/hooks/setup.js.map +1 -0
  180. package/dist/server/hooks/stage.js +117 -0
  181. package/dist/server/hooks/stage.js.map +1 -0
  182. package/dist/server/hooks/ward.js +2212 -0
  183. package/dist/server/hooks/ward.js.map +1 -0
  184. package/dist/server/hooks/wardic-provider.js +29 -0
  185. package/dist/server/hooks/wardic-provider.js.map +1 -0
  186. package/dist/server/hooks/wardic-scope.js +68 -0
  187. package/dist/server/hooks/wardic-scope.js.map +1 -0
  188. package/dist/server/hooks/wards.js +563 -0
  189. package/dist/server/hooks/wards.js.map +1 -0
  190. package/dist/server/index.js +23 -11
  191. package/dist/server/index.js.map +1 -1
  192. package/dist/server/layout.js +7 -75
  193. package/dist/server/layout.js.map +1 -1
  194. package/dist/server/lazy-batch-gestures.js +1 -1
  195. package/dist/server/lifecycle.js +37 -0
  196. package/dist/server/lifecycle.js.map +1 -1
  197. package/dist/server/presence-handle.js +28 -12
  198. package/dist/server/presence-handle.js.map +1 -1
  199. package/dist/server/presence.js +3 -1
  200. package/dist/server/presence.js.map +1 -1
  201. package/dist/server/provider.js +125 -100
  202. package/dist/server/provider.js.map +1 -1
  203. package/dist/server/reorder-components.js +50 -0
  204. package/dist/server/reorder-components.js.map +1 -0
  205. package/dist/server/reorder.js +51 -348
  206. package/dist/server/reorder.js.map +1 -1
  207. package/dist/server/runtime.js +26 -15
  208. package/dist/server/runtime.js.map +1 -1
  209. package/dist/server/spans-check.js +8 -3
  210. package/dist/server/spans-check.js.map +1 -1
  211. package/dist/server/stage.js.map +1 -1
  212. package/dist/server/unstable/v2/index.js +0 -8
  213. package/dist/server/unstable/v2/index.js.map +1 -1
  214. package/dist/server/v1/index.js +1 -1
  215. package/dist/server/v1/index.js.map +1 -1
  216. package/dist/server/variant-node.js +4 -2
  217. package/dist/server/variant-node.js.map +1 -1
  218. package/dist/server/w.js +33 -3
  219. package/dist/server/w.js.map +1 -1
  220. package/dist/server/ward.js +594 -61
  221. package/dist/server/ward.js.map +1 -1
  222. package/dist/server/wardic-config.js +63 -30
  223. package/dist/server/wardic-config.js.map +1 -1
  224. package/dist/server/wardic-context.js +23 -0
  225. package/dist/server/wardic-context.js.map +1 -0
  226. package/dist/server/wardic.js +3 -0
  227. package/dist/server/wardic.js.map +1 -1
  228. package/dist/solid/animation-frame.js +1 -1
  229. package/dist/solid/animation-frame.js.map +1 -1
  230. package/dist/solid/batch-reorder-group.d.ts +1 -1
  231. package/dist/solid/batch-reorder.d.ts +1 -1
  232. package/dist/solid/batch-reorder.d.ts.map +1 -1
  233. package/dist/solid/config-view.d.ts +11 -0
  234. package/dist/solid/config-view.d.ts.map +1 -1
  235. package/dist/solid/config-view.js +31 -7
  236. package/dist/solid/config-view.js.map +1 -1
  237. package/dist/solid/create-batch.jsx +1 -1
  238. package/dist/solid/diagnostic-codes.d.ts +10 -0
  239. package/dist/solid/diagnostic-codes.d.ts.map +1 -0
  240. package/dist/solid/diagnostic-codes.js +246 -0
  241. package/dist/solid/diagnostic-codes.js.map +1 -0
  242. package/dist/solid/diagnostics.d.ts +33 -0
  243. package/dist/solid/diagnostics.d.ts.map +1 -0
  244. package/dist/solid/diagnostics.js +76 -0
  245. package/dist/solid/diagnostics.js.map +1 -0
  246. package/dist/solid/element-style.d.ts +16 -2
  247. package/dist/solid/element-style.d.ts.map +1 -1
  248. package/dist/solid/element-style.js +61 -7
  249. package/dist/solid/element-style.js.map +1 -1
  250. package/dist/solid/element.d.ts +3 -1
  251. package/dist/solid/element.d.ts.map +1 -1
  252. package/dist/solid/element.jsx +27 -8
  253. package/dist/solid/element.jsx.map +1 -1
  254. package/dist/solid/feature-section.d.ts +0 -7
  255. package/dist/solid/feature-section.d.ts.map +1 -1
  256. package/dist/solid/feature-section.js +5 -13
  257. package/dist/solid/feature-section.js.map +1 -1
  258. package/dist/solid/frame-effect.jsx +1 -1
  259. package/dist/solid/frame-effect.jsx.map +1 -1
  260. package/dist/solid/gesture-callbacks.js +1 -1
  261. package/dist/solid/gesture-callbacks.js.map +1 -1
  262. package/dist/solid/hooks/auto.d.ts +44 -0
  263. package/dist/solid/hooks/auto.d.ts.map +1 -0
  264. package/dist/solid/hooks/auto.js +269 -0
  265. package/dist/solid/hooks/auto.js.map +1 -0
  266. package/dist/solid/hooks/config-scope.d.ts +84 -0
  267. package/dist/solid/hooks/config-scope.d.ts.map +1 -0
  268. package/dist/solid/hooks/config-scope.jsx +128 -0
  269. package/dist/solid/hooks/config-scope.jsx.map +1 -0
  270. package/dist/solid/hooks/config.d.ts +28 -0
  271. package/dist/solid/hooks/config.d.ts.map +1 -0
  272. package/dist/solid/hooks/config.jsx +37 -0
  273. package/dist/solid/hooks/config.jsx.map +1 -0
  274. package/dist/solid/hooks/drag.d.ts +220 -0
  275. package/dist/solid/hooks/drag.d.ts.map +1 -0
  276. package/dist/solid/hooks/drag.js +586 -0
  277. package/dist/solid/hooks/drag.js.map +1 -0
  278. package/dist/solid/hooks/elements.d.ts +11 -0
  279. package/dist/solid/hooks/elements.d.ts.map +1 -0
  280. package/dist/solid/hooks/elements.jsx +218 -0
  281. package/dist/solid/hooks/elements.jsx.map +1 -0
  282. package/dist/solid/hooks/group.d.ts +46 -0
  283. package/dist/solid/hooks/group.d.ts.map +1 -0
  284. package/dist/solid/hooks/group.jsx +25 -0
  285. package/dist/solid/hooks/group.jsx.map +1 -0
  286. package/dist/solid/hooks/index.d.ts +28 -0
  287. package/dist/solid/hooks/index.d.ts.map +1 -0
  288. package/dist/solid/hooks/index.js +10 -0
  289. package/dist/solid/hooks/index.js.map +1 -0
  290. package/dist/solid/hooks/kept.d.ts +60 -0
  291. package/dist/solid/hooks/kept.d.ts.map +1 -0
  292. package/dist/solid/hooks/kept.js +33 -0
  293. package/dist/solid/hooks/kept.js.map +1 -0
  294. package/dist/solid/hooks/layout-group-of.d.ts +27 -0
  295. package/dist/solid/hooks/layout-group-of.d.ts.map +1 -0
  296. package/dist/solid/hooks/layout-group-of.js +39 -0
  297. package/dist/solid/hooks/layout-group-of.js.map +1 -0
  298. package/dist/solid/hooks/layout-group.d.ts +60 -0
  299. package/dist/solid/hooks/layout-group.d.ts.map +1 -0
  300. package/dist/solid/hooks/layout-group.jsx +80 -0
  301. package/dist/solid/hooks/layout-group.jsx.map +1 -0
  302. package/dist/solid/hooks/make-ward.d.ts +123 -0
  303. package/dist/solid/hooks/make-ward.d.ts.map +1 -0
  304. package/dist/solid/hooks/make-ward.js +147 -0
  305. package/dist/solid/hooks/make-ward.js.map +1 -0
  306. package/dist/solid/hooks/presence-scope.d.ts +84 -0
  307. package/dist/solid/hooks/presence-scope.d.ts.map +1 -0
  308. package/dist/solid/hooks/presence-scope.jsx +63 -0
  309. package/dist/solid/hooks/presence-scope.jsx.map +1 -0
  310. package/dist/solid/hooks/presence.d.ts +51 -0
  311. package/dist/solid/hooks/presence.d.ts.map +1 -0
  312. package/dist/solid/hooks/presence.jsx +26 -0
  313. package/dist/solid/hooks/presence.jsx.map +1 -0
  314. package/dist/solid/hooks/props.d.ts +52 -0
  315. package/dist/solid/hooks/props.d.ts.map +1 -0
  316. package/dist/solid/hooks/props.js +140 -0
  317. package/dist/solid/hooks/props.js.map +1 -0
  318. package/dist/solid/hooks/reads.d.ts +38 -0
  319. package/dist/solid/hooks/reads.d.ts.map +1 -0
  320. package/dist/solid/hooks/reads.js +218 -0
  321. package/dist/solid/hooks/reads.js.map +1 -0
  322. package/dist/solid/hooks/refs.d.ts +25 -0
  323. package/dist/solid/hooks/refs.d.ts.map +1 -0
  324. package/dist/solid/hooks/refs.js +89 -0
  325. package/dist/solid/hooks/refs.js.map +1 -0
  326. package/dist/solid/hooks/reorder-elements.d.ts +23 -0
  327. package/dist/solid/hooks/reorder-elements.d.ts.map +1 -0
  328. package/dist/solid/hooks/reorder-elements.jsx +274 -0
  329. package/dist/solid/hooks/reorder-elements.jsx.map +1 -0
  330. package/dist/solid/hooks/reorder.d.ts +55 -0
  331. package/dist/solid/hooks/reorder.d.ts.map +1 -0
  332. package/dist/solid/hooks/reorder.js +152 -0
  333. package/dist/solid/hooks/reorder.js.map +1 -0
  334. package/dist/solid/hooks/rune.d.ts +885 -0
  335. package/dist/solid/hooks/rune.d.ts.map +1 -0
  336. package/dist/solid/hooks/rune.js +817 -0
  337. package/dist/solid/hooks/rune.js.map +1 -0
  338. package/dist/solid/hooks/server-features.client.d.ts +10 -0
  339. package/dist/solid/hooks/server-features.client.d.ts.map +1 -0
  340. package/dist/solid/hooks/server-features.client.js +2 -0
  341. package/dist/solid/hooks/server-features.client.js.map +1 -0
  342. package/dist/solid/hooks/server-features.d.ts +10 -0
  343. package/dist/solid/hooks/server-features.d.ts.map +1 -0
  344. package/dist/solid/hooks/server-features.js +13 -0
  345. package/dist/solid/hooks/server-features.js.map +1 -0
  346. package/dist/solid/hooks/settings.d.ts +11 -0
  347. package/dist/solid/hooks/settings.d.ts.map +1 -0
  348. package/dist/solid/hooks/settings.js +31 -0
  349. package/dist/solid/hooks/settings.js.map +1 -0
  350. package/dist/solid/hooks/setup.d.ts +31 -0
  351. package/dist/solid/hooks/setup.d.ts.map +1 -0
  352. package/dist/solid/hooks/setup.js +155 -0
  353. package/dist/solid/hooks/setup.js.map +1 -0
  354. package/dist/solid/hooks/stage.d.ts +187 -0
  355. package/dist/solid/hooks/stage.d.ts.map +1 -0
  356. package/dist/solid/hooks/stage.js +117 -0
  357. package/dist/solid/hooks/stage.js.map +1 -0
  358. package/dist/solid/hooks/ward.d.ts +394 -0
  359. package/dist/solid/hooks/ward.d.ts.map +1 -0
  360. package/dist/solid/hooks/ward.js +2258 -0
  361. package/dist/solid/hooks/ward.js.map +1 -0
  362. package/dist/solid/hooks/wardic-provider.d.ts +32 -0
  363. package/dist/solid/hooks/wardic-provider.d.ts.map +1 -0
  364. package/dist/solid/hooks/wardic-provider.jsx +29 -0
  365. package/dist/solid/hooks/wardic-provider.jsx.map +1 -0
  366. package/dist/solid/hooks/wardic-scope.d.ts +49 -0
  367. package/dist/solid/hooks/wardic-scope.d.ts.map +1 -0
  368. package/dist/solid/hooks/wardic-scope.jsx +63 -0
  369. package/dist/solid/hooks/wardic-scope.jsx.map +1 -0
  370. package/dist/solid/hooks/wards.d.ts +157 -0
  371. package/dist/solid/hooks/wards.d.ts.map +1 -0
  372. package/dist/solid/hooks/wards.js +523 -0
  373. package/dist/solid/hooks/wards.js.map +1 -0
  374. package/dist/solid/index.d.ts +21 -14
  375. package/dist/solid/index.d.ts.map +1 -1
  376. package/dist/solid/index.jsx +23 -11
  377. package/dist/solid/index.jsx.map +1 -1
  378. package/dist/solid/layout.d.ts +2 -44
  379. package/dist/solid/layout.d.ts.map +1 -1
  380. package/dist/solid/layout.jsx +7 -49
  381. package/dist/solid/layout.jsx.map +1 -1
  382. package/dist/solid/lazy-batch-gestures.js +1 -1
  383. package/dist/solid/lazy-batch-gestures.js.map +1 -1
  384. package/dist/solid/lifecycle.d.ts +19 -0
  385. package/dist/solid/lifecycle.d.ts.map +1 -1
  386. package/dist/solid/lifecycle.js +40 -0
  387. package/dist/solid/lifecycle.js.map +1 -1
  388. package/dist/solid/presence-handle.d.ts +13 -6
  389. package/dist/solid/presence-handle.d.ts.map +1 -1
  390. package/dist/solid/presence-handle.js +30 -12
  391. package/dist/solid/presence-handle.js.map +1 -1
  392. package/dist/solid/presence.d.ts +3 -1
  393. package/dist/solid/presence.d.ts.map +1 -1
  394. package/dist/solid/presence.jsx +3 -1
  395. package/dist/solid/presence.jsx.map +1 -1
  396. package/dist/solid/provider.d.ts +25 -32
  397. package/dist/solid/provider.d.ts.map +1 -1
  398. package/dist/solid/provider.jsx +126 -82
  399. package/dist/solid/provider.jsx.map +1 -1
  400. package/dist/solid/reorder-components.d.ts +32 -0
  401. package/dist/solid/reorder-components.d.ts.map +1 -0
  402. package/dist/solid/reorder-components.jsx +49 -0
  403. package/dist/solid/reorder-components.jsx.map +1 -0
  404. package/dist/solid/reorder.d.ts +50 -76
  405. package/dist/solid/reorder.d.ts.map +1 -1
  406. package/dist/solid/reorder.jsx +45 -206
  407. package/dist/solid/reorder.jsx.map +1 -1
  408. package/dist/solid/runtime.d.ts +20 -7
  409. package/dist/solid/runtime.d.ts.map +1 -1
  410. package/dist/solid/runtime.js +25 -14
  411. package/dist/solid/runtime.js.map +1 -1
  412. package/dist/solid/spans-check.d.ts +5 -1
  413. package/dist/solid/spans-check.d.ts.map +1 -1
  414. package/dist/solid/spans-check.js +8 -3
  415. package/dist/solid/spans-check.js.map +1 -1
  416. package/dist/solid/stage.d.ts +14 -0
  417. package/dist/solid/stage.d.ts.map +1 -1
  418. package/dist/solid/stage.js.map +1 -1
  419. package/dist/solid/unstable/v2/index.d.ts +2 -26
  420. package/dist/solid/unstable/v2/index.d.ts.map +1 -1
  421. package/dist/solid/unstable/v2/index.jsx +0 -16
  422. package/dist/solid/unstable/v2/index.jsx.map +1 -1
  423. package/dist/solid/v1/index.d.ts +1 -1
  424. package/dist/solid/v1/index.d.ts.map +1 -1
  425. package/dist/solid/v1/index.jsx +1 -1
  426. package/dist/solid/v1/index.jsx.map +1 -1
  427. package/dist/solid/variant-node.d.ts +6 -0
  428. package/dist/solid/variant-node.d.ts.map +1 -1
  429. package/dist/solid/variant-node.js +2 -0
  430. package/dist/solid/variant-node.js.map +1 -1
  431. package/dist/solid/w.d.ts +9 -3
  432. package/dist/solid/w.d.ts.map +1 -1
  433. package/dist/solid/w.jsx +36 -3
  434. package/dist/solid/w.jsx.map +1 -1
  435. package/dist/solid/ward.d.ts +134 -7
  436. package/dist/solid/ward.d.ts.map +1 -1
  437. package/dist/solid/ward.jsx +564 -60
  438. package/dist/solid/ward.jsx.map +1 -1
  439. package/dist/solid/wardic-config.d.ts +17 -12
  440. package/dist/solid/wardic-config.d.ts.map +1 -1
  441. package/dist/solid/wardic-config.jsx +68 -22
  442. package/dist/solid/wardic-config.jsx.map +1 -1
  443. package/dist/solid/wardic-context.d.ts +15 -0
  444. package/dist/solid/wardic-context.d.ts.map +1 -0
  445. package/dist/solid/wardic-context.js +23 -0
  446. package/dist/solid/wardic-context.js.map +1 -0
  447. package/dist/solid/wardic-instance.d.ts +6 -4
  448. package/dist/solid/wardic-instance.d.ts.map +1 -1
  449. package/dist/solid/wardic.d.ts +3 -0
  450. package/dist/solid/wardic.d.ts.map +1 -1
  451. package/dist/solid/wardic.jsx +3 -0
  452. package/dist/solid/wardic.jsx.map +1 -1
  453. package/package.json +29 -7
  454. package/skills/wardic-diagnostics/SKILL.md +472 -0
  455. package/skills/wardic-migrate/SKILL.md +204 -0
  456. package/skills/wardic-solid/SKILL.md +60 -0
  457. package/skills/wardic-solid/events.md +70 -0
  458. package/skills/wardic-solid/from-motion.md +59 -0
  459. package/skills/wardic-solid/lists-and-presence.md +110 -0
  460. package/skills/wardic-solid/reorder-and-grips.md +88 -0
  461. package/skills/wardic-solid/runes.md +151 -0
  462. package/skills/wardic-solid/scopes-and-settings.md +75 -0
  463. package/src/animation-frame.ts +1 -1
  464. package/src/batch-reorder-group.tsx +1 -1
  465. package/src/batch-reorder.ts +1 -1
  466. package/src/config-view.ts +35 -7
  467. package/src/create-batch.tsx +1 -1
  468. package/src/diagnostic-codes.ts +254 -0
  469. package/src/diagnostics.ts +88 -0
  470. package/src/element-style.ts +77 -9
  471. package/src/element.tsx +36 -12
  472. package/src/feature-section.ts +5 -15
  473. package/src/frame-effect.tsx +1 -1
  474. package/src/gesture-callbacks.ts +1 -1
  475. package/src/hooks/auto.ts +303 -0
  476. package/src/hooks/config-scope.tsx +215 -0
  477. package/src/hooks/config.tsx +54 -0
  478. package/src/hooks/drag.ts +741 -0
  479. package/src/hooks/elements.tsx +234 -0
  480. package/src/hooks/group.tsx +55 -0
  481. package/src/hooks/index.ts +41 -0
  482. package/src/hooks/kept.ts +89 -0
  483. package/src/hooks/layout-group-of.ts +46 -0
  484. package/src/hooks/layout-group.tsx +111 -0
  485. package/src/hooks/make-ward.ts +218 -0
  486. package/src/hooks/presence-scope.tsx +156 -0
  487. package/src/hooks/presence.tsx +67 -0
  488. package/src/hooks/props.ts +190 -0
  489. package/src/hooks/reads.ts +258 -0
  490. package/src/hooks/refs.ts +114 -0
  491. package/src/hooks/reorder-elements.tsx +323 -0
  492. package/src/hooks/reorder.ts +205 -0
  493. package/src/hooks/rune.ts +1756 -0
  494. package/src/hooks/server-features.client.ts +10 -0
  495. package/src/hooks/server-features.ts +12 -0
  496. package/src/hooks/settings.ts +44 -0
  497. package/src/hooks/setup.ts +184 -0
  498. package/src/hooks/stage.ts +359 -0
  499. package/src/hooks/ward.ts +2587 -0
  500. package/src/hooks/wardic-provider.tsx +51 -0
  501. package/src/hooks/wardic-scope.tsx +112 -0
  502. package/src/hooks/wards.ts +681 -0
  503. package/src/index.tsx +27 -15
  504. package/src/layout.tsx +7 -74
  505. package/src/lazy-batch-gestures.ts +1 -1
  506. package/src/lifecycle.ts +40 -0
  507. package/src/presence-handle.ts +39 -20
  508. package/src/presence.tsx +3 -1
  509. package/src/provider.tsx +136 -88
  510. package/src/reorder-components.tsx +61 -0
  511. package/src/reorder.tsx +89 -307
  512. package/src/runtime.ts +43 -13
  513. package/src/spans-check.ts +12 -3
  514. package/src/stage.ts +15 -0
  515. package/src/unstable/v2/index.tsx +2 -26
  516. package/src/v1/index.tsx +1 -1
  517. package/src/variant-node.ts +8 -0
  518. package/src/w.tsx +38 -5
  519. package/src/ward.tsx +694 -60
  520. package/src/wardic-config.tsx +68 -21
  521. package/src/wardic-context.ts +26 -0
  522. package/src/wardic-instance.ts +6 -4
  523. package/src/wardic.tsx +3 -0
  524. package/dist/browser/create-wardic.js +0 -36
  525. package/dist/browser/create-wardic.js.map +0 -1
  526. package/dist/browser/presence-hooks.js +0 -144
  527. package/dist/browser/presence-hooks.js.map +0 -1
  528. package/dist/server/create-wardic.js +0 -36
  529. package/dist/server/create-wardic.js.map +0 -1
  530. package/dist/server/presence-hooks.js +0 -144
  531. package/dist/server/presence-hooks.js.map +0 -1
  532. package/dist/solid/create-wardic.d.ts +0 -25
  533. package/dist/solid/create-wardic.d.ts.map +0 -1
  534. package/dist/solid/create-wardic.jsx +0 -34
  535. package/dist/solid/create-wardic.jsx.map +0 -1
  536. package/dist/solid/presence-hooks.d.ts +0 -53
  537. package/dist/solid/presence-hooks.d.ts.map +0 -1
  538. package/dist/solid/presence-hooks.jsx +0 -117
  539. package/dist/solid/presence-hooks.jsx.map +0 -1
  540. package/src/create-wardic.tsx +0 -46
  541. package/src/presence-hooks.tsx +0 -159
@@ -0,0 +1,117 @@
1
+ /**
2
+ * The hooks over a Stage (probe: hooks-first): `createWard`, `createWards` and `createPresence` whose
3
+ * wards are a Stage's, on its Subjects, where the page's are on elements. What says the hooks aren't
4
+ * the DOM's alone: a second Environment gets the same hooks by handing them the thing that makes its
5
+ * wards. Nothing here is the page's: no element, no style, no Feature, no server render.
6
+ *
7
+ * const { createWard, createWards } = stageHooksOf(stage)
8
+ * const crate = createWard(mesh, lift, { animate: { x: 2 } })
9
+ *
10
+ * - **What carries over as it is:** runes and how they join, `show` with its exit and `mounted()`,
11
+ * `enter: false`, a list's rows kept until their exit lands, and one value at a time.
12
+ * - **A Subject is a rune's `subject`,** or given first. A row's is a function of the row, since each
13
+ * item has its own: `createWards(list, (row) => ({ subject: row.item.mesh }), config)`.
14
+ * - **What doesn't:** `follow` (a Stage's variants pass down its scene's graph, and its ward takes no
15
+ * parent), `pop` and hiding (the page's CSS), a function rune (`createRune(fn)`), and `props`
16
+ * (a Subject is its app's own object, with no markup to spread into: a rune's `ref` sets what it
17
+ * sets on one).
18
+ * - **Its types say which:** a Stage's rune is the keys of Wardic's its ward carries, its drag and its
19
+ * Subject ({@link StageRune}). A rune written for the page fits when every key it has is one of
20
+ * those; a key that isn't, a focus's or a view's or one of the page's own, is an error where the
21
+ * rune is given, as most are errors already when the ward is made.
22
+ * - **A target names what its Subject takes.** Its values are its Environment's, by their names,
23
+ * each with what it takes: a material's `roughness`, a light's `intensity`, and no element's
24
+ * `width`. An Environment's package says what each Subject takes (`StageTargetValues`, in the
25
+ * Stage's own types) and every name at once (`StageValues`). A ward given its Subject is checked
26
+ * by that Subject's own ({@link SubjectValues}): one that may be either of two kinds takes what
27
+ * both do, and one no Environment says anything of takes any name. A rune written alone may name
28
+ * what any Stage's Subject takes, and is checked again by the ward it's given to. An editor
29
+ * offers a ward's Subject's own names inside a target; in what a function of a row gives, every
30
+ * Stage's, though a name its row's Subject hasn't is still an error there.
31
+ * - **A presence takes runes here, not a ward.** A Stage's ward moves its Subject from the moment it's
32
+ * made, with no element to wait to be given, so one made only to be a pattern would move it too.
33
+ * - **A rune's `ref` is handed its Subject** while that's on show (`refs.ts`), as on the page: at
34
+ * once, the ward having it from the start, and again for each one an accessor gives.
35
+ *
36
+ * @module
37
+ */
38
+ import * as Predicate from "effect/Predicate";
39
+ import { createEffect } from "solid-js";
40
+ import { createRuneWith, fixedRunes, isFunctionRune, joined, madeRune, } from "./rune.js";
41
+ import { attending, runeRefsOf } from "./refs.js";
42
+ import { showing, showState, withMounted } from "./ward.js";
43
+ import { hookWardsOf, oneAtATime } from "./wards.js";
44
+ /** The config itself, fixed once made, as the page's `createRune(config)` is: only its type is a Stage's. */
45
+ const stageRune = ((config) => madeRune(config));
46
+ /** The page's own: only its type is a Stage's. */
47
+ const stageRuneWithApi = createRuneWith;
48
+ /** The keys a Stage's ward doesn't take, which the hooks read for it: where a `show` ward leaves to. */
49
+ const OMITTED = new Set(["exit"]);
50
+ const NO_SUBJECT = "createWard on a Stage: give it its Subject, first (`createWard(mesh, …)`) or as a rune's `subject`.";
51
+ const NO_FOLLOW = "createWard on a Stage: `follow` isn't carried there. A Stage's variants pass down its scene's graph, to the ward nearest above a Subject.";
52
+ const NO_FUNCTION_RUNE = "createWard on a Stage: a function rune (`createRune(fn)`) isn't carried there in this probe.";
53
+ const NO_PROPS = "createWard on a Stage: `props` isn't carried there. A Stage's Subject is its app's own object, with nothing to spread into: a rune sets what it sets on one in its `ref`.";
54
+ const NO_TAG = "createWard on a Stage: `tag` isn't carried there. It names the element a page's ward is spread on, and a Stage's Subject is no element.";
55
+ /**
56
+ * A Stage ward's Subject while it's on show, followed: the one it was given, or what its accessor
57
+ * gives now, and none once its exit has landed. What its runes' `ref`s go by (`refs.ts`). A Subject
58
+ * is told from an accessor of one as the Stage's ward tells them, a function being an accessor.
59
+ */
60
+ const subjectOnShow = (given, state) => () => {
61
+ if (!state.mounted())
62
+ return undefined;
63
+ if (Predicate.isFunction(given))
64
+ return given();
65
+ return given;
66
+ };
67
+ /** `createWard(...runes)` over `stage`'s own ward, a rune's `subject` its Subject. */
68
+ const stageWardOf = (stage) => (...written) => {
69
+ // Each rune fixed as the ward is made of it, as the page's are.
70
+ const runes = fixedRunes(written);
71
+ if (runes.some(isFunctionRune))
72
+ throw new Error(NO_FUNCTION_RUNE);
73
+ const state = showState();
74
+ // `show`'s wiring without the page's half: a Stage's Subject has no style to hide by.
75
+ const made = joined(runes, (all) => {
76
+ const wiring = showing(state)(all);
77
+ if (Predicate.isUndefined(wiring))
78
+ return undefined;
79
+ return { animate: wiring.animate };
80
+ }, OMITTED);
81
+ if (Predicate.isNotUndefined(made.follow))
82
+ throw new Error(NO_FOLLOW);
83
+ if (made.has("props"))
84
+ throw new Error(NO_PROPS);
85
+ if (made.has("tag"))
86
+ throw new Error(NO_TAG);
87
+ const subject = made.own("subject");
88
+ if (Predicate.isUndefined(subject))
89
+ throw new Error(NO_SUBJECT);
90
+ const ward = stage.ward(subject, made.config);
91
+ if (Predicate.isNotUndefined(made.show))
92
+ createEffect(ward.when("settled"), state.landed);
93
+ // Each rune's `ref`, handed its Subject while that's on show.
94
+ attending(runeRefsOf(runes), subjectOnShow(subject, state));
95
+ return withMounted(ward, state.mounted, state.shown);
96
+ };
97
+ /** The hooks whose wards are `stage`'s. */
98
+ export const stageHooksOf = (stage) => {
99
+ const raw = stageWardOf(stage);
100
+ // Its Subject first, as `ward(subject, config)` takes it: read as the rune that gives it. What's
101
+ // given after it are runes, a Stage's by their types, and joined as every rune is, by their keys.
102
+ const createWard = ((...given) => {
103
+ const [first, ...rest] = given;
104
+ const runes = rest;
105
+ if (stage.isSubject(first))
106
+ return raw({ subject: first }, ...runes);
107
+ return raw(first, ...runes);
108
+ });
109
+ // Its rows' runes are a Stage's by their types too: the list's own helpers join them by their keys.
110
+ const createPresence = (source, ...runes) => {
111
+ const rows = oneAtATime(raw, source, runes);
112
+ return () => rows()[0];
113
+ };
114
+ // The list's own hook, its rows' runes typed by their Subject where the page's are by the page.
115
+ return { createRune: stageRune, createRuneWith: stageRuneWithApi, createWard, createWards: hookWardsOf(raw), createPresence };
116
+ };
117
+ //# sourceMappingURL=stage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage.js","sourceRoot":"","sources":["../../../src/hooks/stage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAiB,YAAY,EAAE,MAAM,UAAU,CAAA;AAItD,OAAO,EAGL,cAAc,EACd,UAAU,EAGV,cAAc,EACd,MAAM,EACN,QAAQ,GAUT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C,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;AACtD,CAAC,CAAA;AAEH,2CAA2C;AAC3C,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,KAAgB,EAOhB,EAAE;IACF,MAAM,GAAG,GAAG,WAAW,CAAC,KAAK,CAAe,CAAA;IAC5C,iGAAiG;IACjG,kGAAkG;IAClG,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,KAA4B,EAAY,EAAE;QAChE,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAA;QAC9B,MAAM,KAAK,GAAG,IAA2B,CAAA;QACzC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC;YAAE,OAAO,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,KAAK,CAAC,CAAA;QACpE,OAAO,GAAG,CAAC,KAAa,EAAE,GAAG,KAAK,CAAC,CAAA;IACrC,CAAC,CAAgB,CAAA;IACjB,oGAAoG;IACpG,MAAM,cAAc,GAAG,CAAI,MAA4C,EAAE,GAAG,KAA6B,EAAiD,EAAE;QAC1J,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAA+C,CAAC,CAAA;QACrF,OAAO,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;IACxB,CAAC,CAAA;IACD,gGAAgG;IAChG,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,CAAW,GAAG,CAAiB,EAAE,cAAc,EAAE,CAAA;AACzJ,CAAC,CAAA"}
@@ -0,0 +1,394 @@
1
+ import { type Accessor, type Owner } from "solid-js";
2
+ import { type PopAnchors } from "@wardic/dom/unstable/PresenceController";
3
+ import type { PresenceEvent, PresenceEvents } from "../presence-handle.ts";
4
+ import { Waiters } from "../waiters.ts";
5
+ import { type Ward, type WardConfig, type WardInternals } from "../ward.tsx";
6
+ import { type AutoFeature } from "./auto.ts";
7
+ import { type DragsGiven, type ElementOf, type Joined, type PageRunesGiven, type ReadByKey, type Shown, type TagGiven } from "./rune.ts";
8
+ import { type WardReads } from "./reads.ts";
9
+ import { type PropKeys } from "./props.ts";
10
+ import { type AnyRef, type Attended } from "./refs.ts";
11
+ /**
12
+ * What a ward's exits resolve to, by name, a presence handle's two: `exitStart`, as it starts to
13
+ * leave, and `exitComplete`, once it has gone. Both `undefined`.
14
+ */
15
+ export type ExitEvents = PresenceEvents;
16
+ /** The names of a ward's exits. */
17
+ export type ExitEvent = PresenceEvent;
18
+ /** A ward made of runes: a ward, with `mounted`, its exits, `ready`, and its reads ({@link WardReads}). */
19
+ export type HookWard = Ward & WardReads & {
20
+ /**
21
+ * Whether it's leaving: true from the moment it starts to leave until it has gone, or is shown
22
+ * again. Always false for a ward no hook shows.
23
+ */
24
+ readonly exiting: Accessor<boolean>;
25
+ /**
26
+ * Its own exits, beside a ward's other events, for a ward a hook shows (`show`, a list's row, a
27
+ * `createPresence`'s): the ward is made where its element's owner is, and outlives the element.
28
+ *
29
+ * - `"exitStart"`: it started to leave.
30
+ * - `"exitComplete"`: it has gone, its followers landed and the twins inside it flown home. An exit
31
+ * it turned round from doesn't complete; one with nowhere to leave to starts and completes at once.
32
+ *
33
+ * ```tsx
34
+ * const frame = createWard({ initial: "closed", animate: "open" })
35
+ * const showing = createPresence(frame, open)
36
+ * createEffect(frame.when("exitComplete"), () => trigger.focus())
37
+ * ```
38
+ *
39
+ * A ward made inside what a presence component takes away never hears its own: it ends as its exit
40
+ * starts. Those are the boundary's to tell. Not told on a Stage in this probe.
41
+ */
42
+ next<E extends ExitEvent>(name: E): Promise<ExitEvents[E]>;
43
+ /** Every `name` of its exits from the call on, for a `for await`. */
44
+ each<E extends ExitEvent>(name: E): AsyncIterable<ExitEvents[E]>;
45
+ /** Every `name` of its exits, as a memo for an effect. */
46
+ when<E extends ExitEvent>(name: E): Accessor<ExitEvents[E]>;
47
+ /**
48
+ * `"ready"`: every Feature its own config uses is on the page, so its gestures, its drag and its
49
+ * layout work from here on. Each Feature is loaded the first time a ward asks for it, and a ward
50
+ * made before one has arrived does nothing of that Feature's until it has.
51
+ *
52
+ * ```tsx
53
+ * const piece = createWard({ drag: true })
54
+ * createEffect(piece.when("ready"), () => setHint("Drag a piece to move it."))
55
+ * ```
56
+ *
57
+ * It happens once, so it's kept, where a ward's other events are heard from the call on: asked for
58
+ * after it, `next("ready")` is resolved already, and an effect over `when("ready")` runs at once. A
59
+ * ward that asks for no Feature is ready as it's made. A load that fails is reported, and counts.
60
+ *
61
+ * Nothing is told on a server. Not told for a `createReorder`'s rows or on a Stage in this probe.
62
+ */
63
+ next(name: "ready"): Promise<undefined>;
64
+ /** `"ready"`, as a memo for an effect: pending until it is, so the effect runs then and never before. */
65
+ when(name: "ready"): Accessor<undefined>;
66
+ /**
67
+ * Whether its element belongs on the page: true while it's shown, and until its exit has landed.
68
+ * Always true for a ward with no `show`. For a `<Show when={card.mounted()}>` around its element.
69
+ */
70
+ readonly mounted: Accessor<boolean>;
71
+ /**
72
+ * Whether it's shown: its `show`, false from the moment it starts to leave (Motion's `useIsPresent`).
73
+ * Always true for a ward with no `show`. For what a leaving ward's own content should do meanwhile.
74
+ */
75
+ readonly shown: Accessor<boolean>;
76
+ /**
77
+ * Holds the leave under way: the ward stays on the page, its exit landed or not, until the release
78
+ * it hands back is called; then it goes, and its `exitComplete` is told. For what isn't Wardic's to
79
+ * run: a save, a CSS transition, another library's exit (Motion's `usePresence`'s `safeToRemove`).
80
+ *
81
+ * ```tsx
82
+ * createEffect(card.when("exitStart"), () => {
83
+ * const release = card.hold()
84
+ * saveDraft().then(release)
85
+ * })
86
+ * ```
87
+ *
88
+ * A hold is the leave's it's taken in: one taken while it isn't leaving holds nothing, and once it's
89
+ * shown again, a release from before does nothing. Releasing twice is releasing once.
90
+ */
91
+ hold(): () => void;
92
+ };
93
+ /**
94
+ * A ward whose Subject is the element `Tag` names (the gap grill's Q22): its spread's `ref` takes that
95
+ * Subject, so it spreads there. Still a {@link HookWard}, which whatever takes a ward takes. Any HTML
96
+ * element where there's no tag, as every ward's was.
97
+ */
98
+ export type TaggedWard<Tag> = [Tag] extends [undefined] ? HookWard : HookWard & {
99
+ readonly ref: (element: ElementOf<Tag>) => void;
100
+ };
101
+ /**
102
+ * `createWard(...runes)`: each rune checked as a ward on the page takes one, a function rune as it is
103
+ * and a config key by key, so one written for a Stage with a key that's only a Stage's is an error here.
104
+ * A rune that names its Subject's `tag` has its own `ref` and `props` typed for that element, and the
105
+ * ward's spread is.
106
+ */
107
+ export type HookWardOf = <P extends ReadonlyArray<object>>(...runes: PageRunesGiven<P>) => TaggedWard<TagGiven<P>> & DragsGiven<P>;
108
+ /** What makes a ward of runes, before its type names its tag and its drag: {@link HookWardOf}'s body. */
109
+ export type WardMaker = <P extends ReadonlyArray<object>>(...runes: PageRunesGiven<P>) => HookWard;
110
+ /**
111
+ * `ward` with `mounted`, `shown` and `exiting`, and its reads (`reads.ts`). A client's ward shares
112
+ * them with every other ({@link SHARED}) and is only told whether it's mounted and shown (`kept.ts`).
113
+ * A ward with no state of its own, a server's or a Stage's, is given each as a property of its
114
+ * own, not enumerable, so a spread never sees them.
115
+ */
116
+ export declare const withMounted: (ward: Ward, mounted: Accessor<boolean>, shown: Accessor<boolean>) => HookWard;
117
+ /** A `show` ward's state: what its config reads through, and what the finished ward tells it. */
118
+ export interface ShowState {
119
+ /** Whether it's shown, as a memo of its `show`: what changes only when the answer does. */
120
+ shown: Accessor<boolean>;
121
+ mounted: Accessor<boolean>;
122
+ /**
123
+ * Whether it stays to leave: it has an exit of its own ({@link exits}), or something it waits for
124
+ * ({@link waits}). With neither, it's gone at once, and nothing is popped.
125
+ */
126
+ leaves: Accessor<boolean>;
127
+ /** Whether it has an exit of its own to leave by: its `exit`, else its `initial`. */
128
+ exits: Accessor<boolean>;
129
+ /**
130
+ * Whether, with no exit of its own, it waits as it leaves (the code review of the gap grill's work):
131
+ * the wards inside a row's or a presence value's Subject that leave by their own exits (Q20), and a
132
+ * leader's followers with an exit of their own (Q12). It stays, moving nothing itself, until theirs
133
+ * have landed. Asked as it's hidden, of what's on the page then: not reactive.
134
+ */
135
+ waits: () => boolean;
136
+ /** Whether its followers have all landed: the finished ward's, once it's made. */
137
+ followersLanded: Accessor<boolean>;
138
+ /**
139
+ * How its landing is counted: at once, or a frame on for a ward that hands its variants' names down,
140
+ * whose followers are told to leave in the flush it lands in. The Environment's frame (ADR-0031).
141
+ */
142
+ counted: (count: () => void) => void;
143
+ /** Told at each of the ward's landings. */
144
+ landed: () => void;
145
+ /**
146
+ * How many things keep it on the page beside its own exit: the handover of the `layoutId` twins it
147
+ * gave back as it started to leave. Not reactive: it's read as a landing or a release is told.
148
+ */
149
+ holds: number;
150
+ /** Told as one of those lets go. */
151
+ released: () => void;
152
+ /** Which leave it's in: its `show`'s changes so far. A hold is the leave's it was taken in ({@link holdOn}). */
153
+ turn: () => number;
154
+ /**
155
+ * Whether the wards inside its element leave with it (the gap grill's Q20): a list's row, or a
156
+ * presence's value, which stays on the page as it leaves with what's inside it still alive. Not a
157
+ * `show` ward's, which hides.
158
+ */
159
+ sweeps: boolean;
160
+ /**
161
+ * Whether its coming and going tells the layout projection, so a `layout` element beside it moves
162
+ * into the space by animation, as a presence's `presenceAffectsLayout` has it. False for a list's row
163
+ * or a presence's ward whose list or presence says `affectsLayout: false` (the gap grill's Q14): what's
164
+ * beside it moves at once. Not reactive: read each time the projection would be told.
165
+ */
166
+ affectsLayout: boolean;
167
+ /**
168
+ * Whether its mount pushes what's beside it, and so is told to the layout projection as it goes on
169
+ * the page: a list's row that comes after the list's first rows, as a presence tells it of a child
170
+ * entering. A `layout` element after it moves out of its way by animation. The list's first rows are
171
+ * laid out with the page, as any ward's mount is. Read once, at its mount.
172
+ */
173
+ mountMoves: boolean;
174
+ /**
175
+ * Whether this leave can't be turned round: what it held as it left has ended, the wards of the
176
+ * twins it handed home. A presence then has its value wait and come back on a new element. Not
177
+ * reactive: read when its value comes back.
178
+ */
179
+ committed: boolean;
180
+ /** Told once it's gone: its exit has landed and nothing holds it. A presence's cue for its next value. */
181
+ gone: () => void;
182
+ /**
183
+ * Told that what it handed on holds it no more: a list's row whose item has a row of its own, with
184
+ * twins of its own. The handovers go on, the projection's to draw; it leaves by its own exit alone.
185
+ */
186
+ letGo: () => void;
187
+ /**
188
+ * Told once it has gone, its `mounted` false, after its place in the layout and its exits have
189
+ * been seen to, in the one effect they share ({@link popping}). What a list does with a row then
190
+ * ({@link whenLeft}).
191
+ */
192
+ left: () => void;
193
+ /**
194
+ * Whether its ward ends as it goes, never to be shown again: a list's row whose item has left the
195
+ * list ({@link whenLeft}). It has nowhere to rest while hidden, then, and isn't hidden. Asked as its
196
+ * `animate` and its `style` are read, after whoever made it has said how: a row hidden with its
197
+ * item still in the list doesn't end, and rests and is hidden as any `show` ward is.
198
+ */
199
+ ends: () => boolean;
200
+ /**
201
+ * What's on the page, by identity: another once what was there has gone. Whether it's mounted, for a
202
+ * `show` ward; a presence's value, which one value takes over from another with nothing between.
203
+ * What its exits' ends are told by ({@link tellingExits}).
204
+ */
205
+ onPage: Accessor<unknown>;
206
+ /**
207
+ * Whether what says it's shown may still arrive: a `show` a rune hasn't given yet, a presence that
208
+ * hasn't taken it. A read of `shown` or `mounted` made meanwhile is told when it does
209
+ * ({@link hearing}). Not reactive: read as each of those is.
210
+ */
211
+ awaited: boolean;
212
+ /** The signal that tells those reads, made at the first of them: none for a ward nothing read early. */
213
+ told: readonly [get: Accessor<number>, set: (turn: (now: number) => number) => void] | undefined;
214
+ /** A `show` wired before a function rune ran ({@link showingEarly}): the accessor a plain rune gave, and its memo. */
215
+ early: {
216
+ readonly given: Accessor<boolean>;
217
+ readonly shows: Shows;
218
+ } | undefined;
219
+ }
220
+ /** A ward's state before any `show` is wired: always shown, always there. */
221
+ export declare const showState: () => ShowState;
222
+ /** A ward's `show` through a memo, with how many times its answer has changed. */
223
+ interface Shows {
224
+ readonly show: Accessor<boolean>;
225
+ /**
226
+ * The changes of `show` so far: what an exit's landing is checked against, so a later change makes
227
+ * an earlier landing stale with nothing to reset. From the same memo as `show`, where it was a
228
+ * memo of its own over it, a ward.
229
+ */
230
+ readonly turns: Accessor<number>;
231
+ }
232
+ /**
233
+ * Tells `ward` of its own exits, as a hook shows it and takes it away: `exitStart` as it starts to
234
+ * leave, `exitComplete` once what was on the page has gone. They're told to the ward's lifecycle, so
235
+ * its own `next`, `each` and `when` hear them, a `createRune(fn)`'s ward among them, and they end as
236
+ * every other wait of the ward's does.
237
+ *
238
+ * - **It turned round:** shown again, with what was on the page still there. Nothing completes.
239
+ * - **Nowhere to leave to:** it's gone in the flush it left in, so its start and its end are told together.
240
+ * - **One value after another** (a presence): the first has gone as the next takes its place.
241
+ *
242
+ * One effect a ward, over `state` as it's read then: called once its `shown` and `onPage` are the ones
243
+ * it goes by, after a presence has given its own. Throwaway: a real one tells them from the leave it
244
+ * already tracks, with no effect of its own.
245
+ */
246
+ export declare const tellingExits: (ward: Ward, state: ShowState) => void;
247
+ /**
248
+ * Brings `ward`'s exits up to date now, where it's about to be ended: a list's row is disposed in the
249
+ * flush its exit lands in, and its end is told first. Nothing for a ward whose exits aren't told.
250
+ */
251
+ export declare const exitsNow: (ward: object) => void;
252
+ /** The wiring of `show` over `runes`, and its state in `state`; none without a `show`. */
253
+ export declare const showing: (state: ShowState) => (runes: Joined) => Shown | undefined;
254
+ /** The edges a `pop` pins by, a ward's or a `<Presence>`'s: its top left for `true`, the corner it names, and none without one. */
255
+ export declare const popAnchorsOf: (pop: unknown) => PopAnchors | undefined;
256
+ /**
257
+ * What every ward the hooks make tells them, through its internals: each element it's handed, the
258
+ * presence it's made under, and, in development, that an element's props read its `style`. And what it
259
+ * tells the base ward: it carries its variants whatever its runes set (the follow grill's Q1), so a ward
260
+ * that follows it joins it however it names its states. One object, shared by every hook ward's internals.
261
+ */
262
+ export declare const HOOK_TOLD: Pick<WardInternals, "handed" | "madeUnder" | "styled" | "carries">;
263
+ /**
264
+ * The cheap `ref` (probe: behaviour-runes): a ward with no `show` has its runes' `ref`s run by its
265
+ * binding, as it mounts an element and as it lets it go (`afterMount`), and nothing of their own made
266
+ * for them. Nothing hides such a ward where it is, so the element it's mounted is its element on show,
267
+ * until a presence takes it: a presence's `createPresence`, or a leaving row that takes what's inside
268
+ * it (the gap grill's Q20). Its refs go by that presence's word from then on ({@link refsTaken}).
269
+ *
270
+ * They run as the binding's mount does, in the flush, where a `show` ward's run once it has settled:
271
+ * in the order their wards are mounted among themselves, before any of those (the owner's yes, 2026-11-30).
272
+ */
273
+ interface MountedRefs {
274
+ readonly refs: ReadonlyArray<AnyRef>;
275
+ readonly mounted: Accessor<boolean>;
276
+ /** The owner its binding was made under, set as it's made: a `layoutId` twin's root, else its ward's. */
277
+ owner: Owner | null;
278
+ /** The element its refs are on, and what undoes them: none while they're on none. */
279
+ attended: Attended<HTMLElement> | undefined;
280
+ /** Whether a presence has taken its ward, whose word they go by from then on. */
281
+ taken: boolean;
282
+ }
283
+ /** The edges `ward` is pinned by as it leaves, when it pops: what `createWards` measures a leaving row with. */
284
+ export declare const popAnchorsFor: (ward: object) => PopAnchors | undefined;
285
+ /**
286
+ * Where one ward's Features come from: its internals, what's told its config before it's made, and
287
+ * what's done to each ward made with them.
288
+ */
289
+ export interface Begun {
290
+ readonly kind: WardInternals;
291
+ /** Told its config before it's made, as its keys read then: asked for only by one whose Features are found by it. */
292
+ readonly config: (config: () => ReadByKey) => void;
293
+ readonly made: (ward: Ward) => Ward;
294
+ /** Asks for more Features before its ward is made: a behaviour's drag, where its Features are found by its config. */
295
+ readonly want?: ((names: ReadonlyArray<AutoFeature>) => void) | undefined;
296
+ /**
297
+ * What makes the binding's ward of a config, where it isn't a plain ward: a Reorder group's item
298
+ * (`reorder.ts`). Left out, `wardWith`. Handed the names its runes' `props` set too (`props.ts`),
299
+ * for one whose binding sets some of them itself and takes its own config's for those.
300
+ */
301
+ readonly make?: ((config: WardConfig, internal: WardInternals, propKeys: PropKeys) => Ward) | undefined;
302
+ }
303
+ /** A ward's readiness, as its `next` and its `when` give it. */
304
+ export interface Ready {
305
+ readonly next: () => Promise<undefined>;
306
+ readonly when: () => Accessor<undefined>;
307
+ }
308
+ /** A ward's Features from `kind`, the same for every ward: a `makeWard` given its Features. */
309
+ export declare const fixed: (kind: WardInternals) => (() => Begun);
310
+ /** A ward's Features read from its own config (`auto.ts`): each loaded the first time one is asked for. */
311
+ export declare const auto: () => Begun;
312
+ /**
313
+ * What a presence takes a ward by (`createPresence(ward, value)`): how it gives the ward its word on
314
+ * whether its value is on the page, and the ward's state as a `show` ward's. The ward is the one
315
+ * `createWard` made, driven where it is: a sensor or a listener made on it hears every value's element.
316
+ */
317
+ export interface Taken {
318
+ /**
319
+ * Gives the ward its presence's word, an accessor: called once, as the presence is made. The word is
320
+ * derived, and nothing is written as it's made: what read the ward before its presence was hears of
321
+ * it once the page has settled, by the ward's one write ({@link tell}).
322
+ */
323
+ readonly drive: (shown: Accessor<boolean>) => void;
324
+ /** The ward's state: whether it's shown, whether it leaves by an exit, and what's told as that lands. */
325
+ readonly state: ShowState;
326
+ /** Says that the next element it's given enters from its `initial`: its value came after the page opened. */
327
+ readonly fresh: () => void;
328
+ }
329
+ /**
330
+ * What a presence takes a ward `createWard` made by: the ward, its `show` state, and its runes as one
331
+ * config, where it has an `animate` to leave by (none: it leaves at once). Data alone, as the ward is
332
+ * made: what taking does with it is {@link takenOf}'s, so an app that never makes a presence ships
333
+ * none of it (`takenLater`, `fixLater`, `targetAgain` and Solid's `refresh`: 0.3 to 0.5 KB, gzip).
334
+ */
335
+ export interface Takeable {
336
+ readonly ward: Ward;
337
+ readonly state: ShowState;
338
+ readonly runes: (() => Joined) | undefined;
339
+ /** Its runes' `ref`s, where its binding runs them (the cheap `ref`): a presence that takes it has them go by its word. */
340
+ readonly refs: MountedRefs | undefined;
341
+ /** Whether a presence has taken it: one may, once. */
342
+ taken: boolean;
343
+ }
344
+ /**
345
+ * Takes `ward` for a presence, once: `undefined` for a ward that isn't one `createWard` handed out (a
346
+ * row's, another library's), or that has a `show` of its own and comes and goes by that.
347
+ */
348
+ export declare const takenOf: (ward: object) => Taken | undefined;
349
+ /**
350
+ * What a ward made under a presence hears of its child's leave ({@link watchedUnder}), kept past its
351
+ * owner's end: its exits, on waiters that end then no more, and the presence's hold on the leave under way.
352
+ */
353
+ export interface Watched {
354
+ /** Its exits, as its `next`, `each` and `when` hear them: ended once it has gone, not with its owner. */
355
+ readonly waiters: Waiters<PresenceEvents>;
356
+ /** The presence's hold on the leave under way, from the leave to its end: none before or after. */
357
+ late: (() => () => void) | undefined;
358
+ }
359
+ /**
360
+ * Whether `ward` stays to leave ({@link ShowState.leaves}), asked untracked: a list's, of a row whose
361
+ * item has left, so one with nowhere to leave to and nothing to wait for is left out in that same
362
+ * change, where its own effect dropping it tore the list. Yes for a ward the hooks keep no state of
363
+ * (a Stage's), which the list watches for itself.
364
+ */
365
+ export declare const leavesNow: (ward: object) => boolean;
366
+ /**
367
+ * Whether `ward`'s leave can't be turned round: the wards of the twins it handed home as it left have
368
+ * ended ({@link ShowState.committed}). A list reads it of a row whose item has come back: that row
369
+ * goes on leaving, and the item has a row of its own, on a new element. False for any other ward.
370
+ */
371
+ export declare const leaveCommitted: (ward: object) => boolean;
372
+ /**
373
+ * `ward` leaves by its own exit alone from here on ({@link ShowState.letGo}): a list tells it of a row
374
+ * whose item has come back to a row of its own. Nothing for any other ward.
375
+ */
376
+ export declare const letGo: (ward: object) => void;
377
+ /**
378
+ * How a list's row reaches the layout around it: its mount told to the projection when it comes after
379
+ * the list's first rows (`later`, {@link ShowState.mountMoves}), and nothing told at all where its list
380
+ * says `affectsLayout: false` ({@link ShowState.affectsLayout}). Nothing for a ward with no `show`.
381
+ */
382
+ export declare const rowInLayout: (ward: object, later: boolean, affects: boolean) => void;
383
+ /**
384
+ * Has `then` called once `ward` has gone ({@link ShowState.left}): a list's, for its row, which is
385
+ * dropped then and its ward ended where `ends` says so as it goes ({@link ShowState.ends}). False
386
+ * for a ward that tells no such thing, which the list watches for itself: a Stage's.
387
+ */
388
+ export declare const whenLeft: (ward: object, then: () => void, ends: () => boolean) => boolean;
389
+ /** `createWard(...runes)` as a list's rows are made, each ward's Features from `begin`: {@link fixed}'s, or {@link auto}. */
390
+ export declare const rawWardOf: (begin: () => Begun) => HookWardOf;
391
+ /** `createWard(...runes)` as an app calls it: a ward a `createPresence` may be given. */
392
+ export declare const hookWardOf: (begin: () => Begun) => HookWardOf;
393
+ export {};
394
+ //# sourceMappingURL=ward.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ward.d.ts","sourceRoot":"","sources":["../../../src/hooks/ward.ts"],"names":[],"mappings":"AAsCA,OAAO,EAAE,KAAK,QAAQ,EAAgF,KAAK,KAAK,EAAyB,MAAM,UAAU,CAAA;AAGzJ,OAAO,EAAO,KAAK,UAAU,EAAyB,MAAM,yCAAyC,CAAA;AAMrG,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC1E,OAAO,EAAU,OAAO,EAAU,MAAM,eAAe,CAAA;AAKvD,OAAO,EAAiJ,KAAK,IAAI,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAY,MAAM,aAAa,CAAA;AACrO,OAAO,EAAU,KAAK,WAAW,EAA8C,MAAM,WAAW,CAAA;AAEhG,OAAO,EAAY,KAAK,UAAU,EAAE,KAAK,SAAS,EAA2F,KAAK,MAAM,EAAgB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAoF,KAAK,KAAK,EAAE,KAAK,QAAQ,EAAW,MAAM,WAAW,CAAA;AAEpV,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,EAA8B,KAAK,QAAQ,EAAoD,MAAM,YAAY,CAAA;AACxH,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAkC,MAAM,WAAW,CAAA;AAEtF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