@wardic/dom 1.0.1 → 1.1.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 (289) hide show
  1. package/dist/Appear.d.ts +3 -2
  2. package/dist/Appear.d.ts.map +1 -1
  3. package/dist/Appear.js +4 -3
  4. package/dist/Appear.js.map +1 -1
  5. package/dist/DomProjectionSystem.js +3 -3
  6. package/dist/DomProjectionSystem.js.map +1 -1
  7. package/dist/FlushGate.d.ts +6 -6
  8. package/dist/FlushGate.d.ts.map +1 -1
  9. package/dist/FlushGate.js +11 -8
  10. package/dist/FlushGate.js.map +1 -1
  11. package/dist/ReorderController.js +3 -3
  12. package/dist/ReorderController.js.map +1 -1
  13. package/dist/Report.d.ts +1 -1
  14. package/dist/Report.d.ts.map +1 -1
  15. package/dist/Report.js +3 -2
  16. package/dist/Report.js.map +1 -1
  17. package/dist/Style.d.ts +2 -1
  18. package/dist/Style.d.ts.map +1 -1
  19. package/dist/Style.js +3 -1
  20. package/dist/Style.js.map +1 -1
  21. package/dist/TimelineValue.d.ts +18 -0
  22. package/dist/TimelineValue.d.ts.map +1 -0
  23. package/dist/TimelineValue.js +20 -0
  24. package/dist/TimelineValue.js.map +1 -0
  25. package/dist/index.d.ts +13 -5
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +10 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/internal/appear.d.ts +10 -4
  30. package/dist/internal/appear.d.ts.map +1 -1
  31. package/dist/internal/appear.js +18 -8
  32. package/dist/internal/appear.js.map +1 -1
  33. package/dist/internal/batch-handoff.d.ts +25 -0
  34. package/dist/internal/batch-handoff.d.ts.map +1 -0
  35. package/dist/internal/batch-handoff.js +64 -0
  36. package/dist/internal/batch-handoff.js.map +1 -0
  37. package/dist/internal/drag-defaults.js +4 -1
  38. package/dist/internal/drag-defaults.js.map +1 -1
  39. package/dist/internal/gate-environment.d.ts +4 -0
  40. package/dist/internal/gate-environment.d.ts.map +1 -0
  41. package/dist/internal/gate-environment.js +21 -0
  42. package/dist/internal/gate-environment.js.map +1 -0
  43. package/dist/internal/projection.d.ts.map +1 -1
  44. package/dist/internal/projection.js +22 -21
  45. package/dist/internal/projection.js.map +1 -1
  46. package/dist/internal/renderer.d.ts +13 -0
  47. package/dist/internal/renderer.d.ts.map +1 -1
  48. package/dist/internal/renderer.js +21 -0
  49. package/dist/internal/renderer.js.map +1 -1
  50. package/dist/internal/reorder.d.ts +2 -2
  51. package/dist/internal/reorder.d.ts.map +1 -1
  52. package/dist/internal/reorder.js +2 -2
  53. package/dist/internal/reorder.js.map +1 -1
  54. package/dist/internal/scroll.d.ts +17 -0
  55. package/dist/internal/scroll.d.ts.map +1 -1
  56. package/dist/internal/scroll.js +23 -15
  57. package/dist/internal/scroll.js.map +1 -1
  58. package/dist/internal/starting-style.d.ts +0 -83
  59. package/dist/internal/starting-style.d.ts.map +1 -1
  60. package/dist/internal/starting-style.js +16 -143
  61. package/dist/internal/starting-style.js.map +1 -1
  62. package/dist/internal/timeline.d.ts +56 -0
  63. package/dist/internal/timeline.d.ts.map +1 -0
  64. package/dist/internal/timeline.js +389 -0
  65. package/dist/internal/timeline.js.map +1 -0
  66. package/dist/unstable/AppearAnimations.d.ts +191 -0
  67. package/dist/unstable/AppearAnimations.d.ts.map +1 -0
  68. package/dist/unstable/AppearAnimations.js +561 -0
  69. package/dist/unstable/AppearAnimations.js.map +1 -0
  70. package/dist/unstable/BatchMembers.d.ts +513 -0
  71. package/dist/unstable/BatchMembers.d.ts.map +1 -0
  72. package/dist/unstable/BatchMembers.js +2490 -0
  73. package/dist/unstable/BatchMembers.js.map +1 -0
  74. package/dist/unstable/DomValues.d.ts +25 -0
  75. package/dist/unstable/DomValues.d.ts.map +1 -0
  76. package/dist/unstable/DomValues.js +45 -0
  77. package/dist/unstable/DomValues.js.map +1 -0
  78. package/dist/unstable/DragConstraints.d.ts +48 -0
  79. package/dist/unstable/DragConstraints.d.ts.map +1 -0
  80. package/dist/unstable/DragConstraints.js +49 -0
  81. package/dist/unstable/DragConstraints.js.map +1 -0
  82. package/dist/unstable/DragControls.d.ts +50 -0
  83. package/dist/unstable/DragControls.d.ts.map +1 -0
  84. package/dist/unstable/DragControls.js +55 -0
  85. package/dist/unstable/DragControls.js.map +1 -0
  86. package/dist/unstable/DragDefaults.d.ts +34 -0
  87. package/dist/unstable/DragDefaults.d.ts.map +1 -0
  88. package/dist/unstable/DragDefaults.js +47 -0
  89. package/dist/unstable/DragDefaults.js.map +1 -0
  90. package/dist/unstable/DragTrack.d.ts +236 -0
  91. package/dist/unstable/DragTrack.d.ts.map +1 -0
  92. package/dist/unstable/DragTrack.js +646 -0
  93. package/dist/unstable/DragTrack.js.map +1 -0
  94. package/dist/unstable/DragTransition.d.ts +22 -0
  95. package/dist/unstable/DragTransition.d.ts.map +1 -0
  96. package/dist/unstable/DragTransition.js +31 -0
  97. package/dist/unstable/DragTransition.js.map +1 -0
  98. package/dist/unstable/ElementSetup.d.ts +144 -0
  99. package/dist/unstable/ElementSetup.d.ts.map +1 -0
  100. package/dist/unstable/ElementSetup.js +297 -0
  101. package/dist/unstable/ElementSetup.js.map +1 -0
  102. package/dist/unstable/Feature.d.ts +221 -0
  103. package/dist/unstable/Feature.d.ts.map +1 -0
  104. package/dist/unstable/Feature.js +281 -0
  105. package/dist/unstable/Feature.js.map +1 -0
  106. package/dist/unstable/GestureFeatures.d.ts +30 -0
  107. package/dist/unstable/GestureFeatures.d.ts.map +1 -0
  108. package/dist/unstable/GestureFeatures.js +32 -0
  109. package/dist/unstable/GestureFeatures.js.map +1 -0
  110. package/dist/unstable/GestureInfo.d.ts +61 -0
  111. package/dist/unstable/GestureInfo.d.ts.map +1 -0
  112. package/dist/unstable/GestureInfo.js +23 -0
  113. package/dist/unstable/GestureInfo.js.map +1 -0
  114. package/dist/unstable/Imperative.d.ts +214 -0
  115. package/dist/unstable/Imperative.d.ts.map +1 -0
  116. package/dist/unstable/Imperative.js +768 -0
  117. package/dist/unstable/Imperative.js.map +1 -0
  118. package/dist/unstable/Instant.d.ts +46 -0
  119. package/dist/unstable/Instant.d.ts.map +1 -0
  120. package/dist/unstable/Instant.js +49 -0
  121. package/dist/unstable/Instant.js.map +1 -0
  122. package/dist/unstable/LayoutGroup.d.ts +14 -0
  123. package/dist/unstable/LayoutGroup.d.ts.map +1 -0
  124. package/dist/unstable/LayoutGroup.js +31 -0
  125. package/dist/unstable/LayoutGroup.js.map +1 -0
  126. package/dist/unstable/LayoutMember.d.ts +127 -0
  127. package/dist/unstable/LayoutMember.d.ts.map +1 -0
  128. package/dist/unstable/LayoutMember.js +176 -0
  129. package/dist/unstable/LayoutMember.js.map +1 -0
  130. package/dist/unstable/LiveStyle.d.ts +171 -0
  131. package/dist/unstable/LiveStyle.d.ts.map +1 -0
  132. package/dist/unstable/LiveStyle.js +329 -0
  133. package/dist/unstable/LiveStyle.js.map +1 -0
  134. package/dist/unstable/MemberHold.d.ts +3 -0
  135. package/dist/unstable/MemberHold.d.ts.map +1 -0
  136. package/dist/unstable/MemberHold.js +223 -0
  137. package/dist/unstable/MemberHold.js.map +1 -0
  138. package/dist/unstable/OwnerScope.d.ts +16 -0
  139. package/dist/unstable/OwnerScope.d.ts.map +1 -0
  140. package/dist/unstable/OwnerScope.js +35 -0
  141. package/dist/unstable/OwnerScope.js.map +1 -0
  142. package/dist/unstable/PresenceController.d.ts +128 -0
  143. package/dist/unstable/PresenceController.d.ts.map +1 -0
  144. package/dist/unstable/PresenceController.js +1427 -0
  145. package/dist/unstable/PresenceController.js.map +1 -0
  146. package/dist/unstable/Press.d.ts +26 -0
  147. package/dist/unstable/Press.d.ts.map +1 -0
  148. package/dist/unstable/Press.js +19 -0
  149. package/dist/unstable/Press.js.map +1 -0
  150. package/dist/unstable/ServerInterpolators.d.ts +17 -0
  151. package/dist/unstable/ServerInterpolators.d.ts.map +1 -0
  152. package/dist/unstable/ServerInterpolators.js +20 -0
  153. package/dist/unstable/ServerInterpolators.js.map +1 -0
  154. package/dist/unstable/WardConfig.d.ts +567 -0
  155. package/dist/unstable/WardConfig.d.ts.map +1 -0
  156. package/dist/unstable/WardConfig.js +2 -0
  157. package/dist/unstable/WardConfig.js.map +1 -0
  158. package/dist/unstable/features/All.d.ts +24 -0
  159. package/dist/unstable/features/All.d.ts.map +1 -0
  160. package/dist/unstable/features/All.js +20 -0
  161. package/dist/unstable/features/All.js.map +1 -0
  162. package/dist/unstable/features/Colors.d.ts +12 -0
  163. package/dist/unstable/features/Colors.d.ts.map +1 -0
  164. package/dist/unstable/features/Colors.js +38 -0
  165. package/dist/unstable/features/Colors.js.map +1 -0
  166. package/dist/unstable/features/DomAnimation.d.ts +16 -0
  167. package/dist/unstable/features/DomAnimation.d.ts.map +1 -0
  168. package/dist/unstable/features/DomAnimation.js +19 -0
  169. package/dist/unstable/features/DomAnimation.js.map +1 -0
  170. package/dist/unstable/features/DomMax.d.ts +12 -0
  171. package/dist/unstable/features/DomMax.d.ts.map +1 -0
  172. package/dist/unstable/features/DomMax.js +14 -0
  173. package/dist/unstable/features/DomMax.js.map +1 -0
  174. package/dist/unstable/features/Drag.d.ts +5 -0
  175. package/dist/unstable/features/Drag.d.ts.map +1 -0
  176. package/dist/unstable/features/Drag.js +32 -0
  177. package/dist/unstable/features/Drag.js.map +1 -0
  178. package/dist/unstable/features/Focus.d.ts +5 -0
  179. package/dist/unstable/features/Focus.d.ts.map +1 -0
  180. package/dist/unstable/features/Focus.js +20 -0
  181. package/dist/unstable/features/Focus.js.map +1 -0
  182. package/dist/unstable/features/Hover.d.ts +5 -0
  183. package/dist/unstable/features/Hover.d.ts.map +1 -0
  184. package/dist/unstable/features/Hover.js +20 -0
  185. package/dist/unstable/features/Hover.js.map +1 -0
  186. package/dist/unstable/features/InView.d.ts +5 -0
  187. package/dist/unstable/features/InView.d.ts.map +1 -0
  188. package/dist/unstable/features/InView.js +20 -0
  189. package/dist/unstable/features/InView.js.map +1 -0
  190. package/dist/unstable/features/Input.d.ts +28 -0
  191. package/dist/unstable/features/Input.d.ts.map +1 -0
  192. package/dist/unstable/features/Input.js +31 -0
  193. package/dist/unstable/features/Input.js.map +1 -0
  194. package/dist/unstable/features/Keys.d.ts +95 -0
  195. package/dist/unstable/features/Keys.d.ts.map +1 -0
  196. package/dist/unstable/features/Keys.js +44 -0
  197. package/dist/unstable/features/Keys.js.map +1 -0
  198. package/dist/unstable/features/Layout.d.ts +43 -0
  199. package/dist/unstable/features/Layout.d.ts.map +1 -0
  200. package/dist/unstable/features/Layout.js +44 -0
  201. package/dist/unstable/features/Layout.js.map +1 -0
  202. package/dist/unstable/features/Pan.d.ts +5 -0
  203. package/dist/unstable/features/Pan.d.ts.map +1 -0
  204. package/dist/unstable/features/Pan.js +20 -0
  205. package/dist/unstable/features/Pan.js.map +1 -0
  206. package/dist/unstable/features/Press.d.ts +13 -0
  207. package/dist/unstable/features/Press.d.ts.map +1 -0
  208. package/dist/unstable/features/Press.js +10 -0
  209. package/dist/unstable/features/Press.js.map +1 -0
  210. package/dist/unstable/features/Scroll.d.ts +20 -0
  211. package/dist/unstable/features/Scroll.d.ts.map +1 -0
  212. package/dist/unstable/features/Scroll.js +34 -0
  213. package/dist/unstable/features/Scroll.js.map +1 -0
  214. package/dist/unstable/features/TimelineKeys.d.ts +7 -0
  215. package/dist/unstable/features/TimelineKeys.d.ts.map +1 -0
  216. package/dist/unstable/features/TimelineKeys.js +103 -0
  217. package/dist/unstable/features/TimelineKeys.js.map +1 -0
  218. package/package.json +4 -3
  219. package/src/Appear.ts +4 -2
  220. package/src/DomProjectionSystem.ts +3 -3
  221. package/src/FlushGate.ts +15 -12
  222. package/src/ReorderController.ts +3 -3
  223. package/src/Report.ts +3 -7
  224. package/src/Style.ts +4 -1
  225. package/src/TimelineValue.ts +19 -0
  226. package/src/index.ts +15 -5
  227. package/src/internal/appear.ts +20 -8
  228. package/src/internal/batch-handoff.ts +75 -0
  229. package/src/internal/drag-defaults.ts +4 -4
  230. package/src/internal/gate-environment.ts +21 -0
  231. package/src/internal/projection.ts +22 -21
  232. package/src/internal/renderer.ts +22 -0
  233. package/src/internal/reorder.ts +4 -4
  234. package/src/internal/scroll.ts +32 -15
  235. package/src/internal/starting-style.ts +5 -204
  236. package/src/internal/timeline.ts +480 -0
  237. package/src/unstable/AppearAnimations.ts +837 -0
  238. package/src/unstable/BatchMembers.ts +3085 -0
  239. package/src/unstable/DomValues.ts +53 -0
  240. package/src/unstable/DragConstraints.ts +107 -0
  241. package/src/unstable/DragControls.ts +98 -0
  242. package/src/unstable/DragDefaults.ts +57 -0
  243. package/src/unstable/DragTrack.ts +959 -0
  244. package/src/unstable/DragTransition.ts +46 -0
  245. package/src/unstable/ElementSetup.ts +411 -0
  246. package/src/unstable/Feature.ts +494 -0
  247. package/src/unstable/GestureFeatures.ts +38 -0
  248. package/src/unstable/GestureInfo.ts +85 -0
  249. package/src/unstable/Imperative.ts +1037 -0
  250. package/src/unstable/Instant.ts +93 -0
  251. package/src/unstable/LayoutGroup.ts +36 -0
  252. package/src/unstable/LayoutMember.ts +319 -0
  253. package/src/unstable/LiveStyle.ts +497 -0
  254. package/src/unstable/MemberHold.ts +211 -0
  255. package/src/unstable/OwnerScope.ts +35 -0
  256. package/src/unstable/PresenceController.ts +1747 -0
  257. package/src/unstable/Press.ts +43 -0
  258. package/src/unstable/ServerInterpolators.ts +39 -0
  259. package/src/unstable/WardConfig.ts +704 -0
  260. package/src/unstable/features/All.ts +39 -0
  261. package/src/unstable/features/Colors.ts +40 -0
  262. package/src/unstable/features/DomAnimation.ts +19 -0
  263. package/src/unstable/features/DomMax.ts +14 -0
  264. package/src/unstable/features/Drag.ts +34 -0
  265. package/src/unstable/features/Focus.ts +21 -0
  266. package/src/unstable/features/Hover.ts +21 -0
  267. package/src/unstable/features/InView.ts +21 -0
  268. package/src/unstable/features/Input.ts +37 -0
  269. package/src/unstable/features/Keys.ts +124 -0
  270. package/src/unstable/features/Layout.ts +75 -0
  271. package/src/unstable/features/Pan.ts +21 -0
  272. package/src/unstable/features/Press.ts +21 -0
  273. package/src/unstable/features/Scroll.ts +35 -0
  274. package/src/unstable/features/TimelineKeys.ts +115 -0
  275. package/dist/internal/gate.d.ts +0 -188
  276. package/dist/internal/gate.d.ts.map +0 -1
  277. package/dist/internal/gate.js +0 -458
  278. package/dist/internal/gate.js.map +0 -1
  279. package/dist/internal/report.d.ts +0 -30
  280. package/dist/internal/report.d.ts.map +0 -1
  281. package/dist/internal/report.js +0 -60
  282. package/dist/internal/report.js.map +0 -1
  283. package/dist/internal/runner.d.ts +0 -21
  284. package/dist/internal/runner.d.ts.map +0 -1
  285. package/dist/internal/runner.js +0 -48
  286. package/dist/internal/runner.js.map +0 -1
  287. package/src/internal/gate.ts +0 -598
  288. package/src/internal/report.ts +0 -69
  289. package/src/internal/runner.ts +0 -64
@@ -0,0 +1,513 @@
1
+ import type * as DefaultTransition from "@wardic/core/DefaultTransition";
2
+ import * as Playback from "@wardic/core/Playback";
3
+ import * as ReducedMotion from "@wardic/core/ReducedMotion";
4
+ import type * as Sequence from "@wardic/core/Sequence";
5
+ import type * as Subject from "@wardic/core/unstable/Subject";
6
+ import * as Option from "effect/Option";
7
+ import * as Predicate from "effect/Predicate";
8
+ import * as AppearAnimations from "./AppearAnimations.ts";
9
+ import type * as WardConfig from "./WardConfig.ts";
10
+ import type * as GestureInfo from "./GestureInfo.ts";
11
+ import type * as PresenceController from "./PresenceController.ts";
12
+ import type * as WardicServices from "@wardic/core/unstable/WardicServices";
13
+ import * as WardicConfigValue from "@wardic/core/unstable/WardicConfigValue";
14
+ /** The keys a Batch's members animate on the DOM: the transforms and `opacity`, as numbers. */
15
+ export type WardicBatchKey = "x" | "y" | "z" | "translateX" | "translateY" | "translateZ" | "scale" | "scaleX" | "scaleY" | "rotate" | "rotateX" | "rotateY" | "rotateZ" | "skewX" | "skewY" | "opacity";
16
+ /** A member's values: numbers on its keys, in `px` for a move, degrees for a turn, unitless for a scale and `opacity`. */
17
+ export type WardicBatchValues = {
18
+ readonly [K in WardicBatchKey]?: number;
19
+ };
20
+ /**
21
+ * A Batch's transition: a Wardic element's, its `delay` seconds, or a `stagger()`, which holds each
22
+ * member by its place among the members a change moves.
23
+ */
24
+ export type WardicBatchTransition = WardConfig.WardicTransition extends infer T ? T extends unknown ? Omit<T, "delay"> & {
25
+ readonly delay?: number | ((index: number, total: number) => number);
26
+ } : never : never;
27
+ /** A stop of a Batch's `animate` call: a number for every member, or a function of its index and the Batch's count. */
28
+ export type WardicBatchStop = number | ((i: number, n: number) => number);
29
+ /**
30
+ * A Batch's targets for an `animate` call, key by key: a stop, or two, the member's first and its
31
+ * target; or a function of the member's index and the count that gives one or two.
32
+ */
33
+ export type WardicBatchTarget = {
34
+ readonly [K in WardicBatchKey]?: WardicBatchStop | readonly [WardicBatchStop, WardicBatchStop] | ((i: number, n: number) => number | readonly [number, number]);
35
+ };
36
+ /**
37
+ * A Batch's key in a sequence's Segment of it: a number for every member, `null` for where it is, stops
38
+ * of them, or a function of a member's index and the Batch's count that gives one of them.
39
+ */
40
+ export type WardicBatchSegmentValue = number | null | ReadonlyArray<number | null> | ((i: number, n: number) => number | null | ReadonlyArray<number | null>);
41
+ /** A sequence's Segment of a Batch's values, key by key: each one of its keys. */
42
+ export type WardicBatchSegmentTarget = {
43
+ readonly [K in WardicBatchKey]?: WardicBatchSegmentValue;
44
+ };
45
+ /** What `createAnimate`'s `animate` takes for a Batch: one, by index or keyed, or a member's handle, `grid.at(i)` or `grid.member(key)`. */
46
+ export type WardicBatchSubject = {
47
+ readonly at: (i: number, props?: never) => unknown;
48
+ } | {
49
+ readonly member: (key: never, props?: never) => unknown;
50
+ } | {
51
+ readonly ref: (el: never) => void;
52
+ };
53
+ /** A Batch's landing: how many members set off in the flight that landed. */
54
+ export interface WardicBatchLanding {
55
+ readonly moved: number;
56
+ }
57
+ /** A keyed member's exit: its values, and the transition it leaves on, else the Batch's (Q48). */
58
+ export type WardicBatchExit = WardicBatchValues & {
59
+ readonly transition?: WardicBatchTransition;
60
+ };
61
+ /**
62
+ * A member's gesture, `whileHover`'s or `whileTap`'s (#665's PR 5, Q58): its values, and the transition it
63
+ * moves into them on, else the Batch's. It moves back on the Batch's, or a press ending while the member's
64
+ * hovered back to `whileHover`'s values on the hover's.
65
+ */
66
+ export type WardicBatchGesture = WardicBatchValues & {
67
+ readonly transition?: WardicBatchTransition;
68
+ };
69
+ /** A member's gesture events (ADR-0070 decision 12, Q60): its hover's start and end, its press's start, and how it ended. */
70
+ export type WardicBatchGestureName = "hoverStart" | "hoverEnd" | "pressStart" | "tap" | "tapCancel";
71
+ /** What both bindings' `createBatch` take by index: `count` members, each by its index. */
72
+ export interface BatchConfig {
73
+ /** How many members it has: read once. */
74
+ readonly count: number;
75
+ /** Where each member starts: values, a function of its index, or `false` to start at its targets. */
76
+ readonly initial?: false | WardicBatchValues | ((i: number) => WardicBatchValues);
77
+ /** Each member's targets, by its index: tracked, so a change turns every member once. */
78
+ readonly animate: (i: number) => WardicBatchValues;
79
+ /**
80
+ * Where a member goes while the pointer is over it (touch never hovers), over `animate`'s: values with
81
+ * an optional `transition`, or a function of its index, read as its hover starts (Q58). Back to
82
+ * `animate`'s as it ends.
83
+ */
84
+ readonly whileHover?: WardicBatchGesture | ((i: number) => WardicBatchValues);
85
+ /**
86
+ * Where a member goes while it's pressed, over `whileHover`'s and `animate`'s: by a pointer, or by Enter
87
+ * or Space while it has focus (with it, or a tap event, a member's element takes `tabindex="0"` unless
88
+ * it's focusable): values with an optional `transition`, or a function of its index, read as its press
89
+ * starts (Q57, Q58).
90
+ */
91
+ readonly whileTap?: WardicBatchGesture | ((i: number) => WardicBatchValues);
92
+ /** How they move: else the nearest `WardicConfig`'s, else each key's Default transition. */
93
+ readonly transition?: WardicBatchTransition;
94
+ /**
95
+ * Whether a server render plays its members' entrances in CSS from first paint, and hydration takes them
96
+ * over where they've got to (an **Appear animation**, #706): off unless `true`, under a provider whose
97
+ * `appear` isn't `false`. Without it, a server render draws each member's start, as before.
98
+ */
99
+ readonly appear?: boolean | undefined;
100
+ }
101
+ /**
102
+ * What both bindings' `createBatch` take in the keyed form (#665, Q42–Q45): a list's items, each a member
103
+ * by its key, entering as its element arrives and leaving as it leaves the list.
104
+ */
105
+ export interface KeyedBatchConfig<T> {
106
+ /** The items, in order: tracked, so a change of the list, or of its order, turns every member once. */
107
+ readonly each: () => ReadonlyArray<T>;
108
+ /** Each item's key: the name of its property, or a function of it (Q43). */
109
+ readonly key: keyof T | ((item: T) => unknown);
110
+ /** Its keys, fixed up front: else the first members' targets and starts give them (Q51). */
111
+ readonly keys?: ReadonlyArray<WardicBatchKey>;
112
+ /** Where each member starts: values, a function of its item and index, or `false` to start at its targets. */
113
+ readonly initial?: false | WardicBatchValues | ((item: T, i: number) => WardicBatchValues);
114
+ /** Each member's targets, by its item and its index in `each`: tracked, so a change turns every member once. */
115
+ readonly animate: (item: T, i: number) => WardicBatchValues;
116
+ /**
117
+ * Where a member leaves to under `<AnimatePresence>`, its element kept until it lands: values with an
118
+ * optional `transition`, or a function of its item, its last index and the presence's `custom` (Q48).
119
+ */
120
+ readonly exit?: WardicBatchExit | ((item: T, i: number, custom: unknown) => WardicBatchValues);
121
+ /**
122
+ * Where a member goes while the pointer is over it (touch never hovers), over `animate`'s: values with
123
+ * an optional `transition`, or a function of its item and index, read as its hover starts (Q58).
124
+ */
125
+ readonly whileHover?: WardicBatchGesture | ((item: T, i: number) => WardicBatchValues);
126
+ /**
127
+ * Where a member goes while it's pressed, over `whileHover`'s and `animate`'s, by a pointer or by Enter or
128
+ * Space while it has focus: values with an optional `transition`, or a function of its item and index,
129
+ * read as its press starts (Q57, Q58).
130
+ */
131
+ readonly whileTap?: WardicBatchGesture | ((item: T, i: number) => WardicBatchValues);
132
+ /** How they move: else the nearest `WardicConfig`'s, else each key's Default transition. */
133
+ readonly transition?: WardicBatchTransition;
134
+ /** Whether a server render plays its members' entrances from first paint (#706): off unless `true`. */
135
+ readonly appear?: boolean | undefined;
136
+ }
137
+ /**
138
+ * A Batch Reorder group's Batch (#712, ADR-0072 decision 8): a keyed Batch's config, and where an item
139
+ * goes while it's in hand, dragged or lifted from the keyboard, over its gestures': values with an
140
+ * optional `transition`, or a function of its item and index, read as it's taken.
141
+ */
142
+ export interface ReorderBatchConfig<T> extends KeyedBatchConfig<T> {
143
+ readonly whileDrag?: WardicBatchGesture | ((item: T, i: number) => WardicBatchValues) | undefined;
144
+ /** A function `whileHover`, `whileTap` or `whileDrag` gives keys the Batch takes from its first item (Q27, Q34). */
145
+ readonly gestureKeysFromFirst: true;
146
+ }
147
+ /** Whether a Batch's config is the keyed form's. */
148
+ export declare const isKeyed: (config: BatchConfig | KeyedBatchConfig<unknown>) => config is KeyedBatchConfig<unknown>;
149
+ /** What a Batch needs from its provider. */
150
+ export interface BatchEnv {
151
+ readonly runtime: WardicServices.Runner<WardicServices.WardicServices>;
152
+ readonly reducedMotion: () => boolean;
153
+ readonly skipAnimations: () => boolean;
154
+ readonly positionalKeys: ReducedMotion.PositionalKeys["Service"];
155
+ readonly defaultTransition: DefaultTransition.DefaultTransition["Service"];
156
+ /** The nearest `WardicConfig`'s transition, read as each change starts. */
157
+ readonly configTransition: () => WardConfig.WardicTransition | undefined;
158
+ /** Its binding's `untrack`: a keyed Batch reads its list again at a task's end, outside its tracking. */
159
+ readonly untrack: <A>(read: () => A) => A;
160
+ /**
161
+ * Whether it's made while hydrating a server render (#706): its members' elements may run their Appear
162
+ * animation, which its first change takes over. Left out, it never looks.
163
+ */
164
+ readonly hydrating?: boolean | undefined;
165
+ /**
166
+ * In development alone (each binding's development flag), what checks a taken-over Appear animation against the
167
+ * member's own transitions (#706, Q9): left out of a production build, with the canonical text it writes.
168
+ */
169
+ readonly appearKeyOf?: typeof AppearAnimations.batchKeyOf | undefined;
170
+ /** Its members' gestures (#665's PR 5, Q56): what watches them, from one source each. None, none listen. */
171
+ readonly gestures?: BatchGestureWatches | undefined;
172
+ /**
173
+ * Whether a focused member's Enter and Space press it now (#712, Q32): a Batch Reorder group's, not while
174
+ * its keyboard reorder takes them. Left out, they always do.
175
+ */
176
+ readonly pressKeys?: (() => boolean) | undefined;
177
+ }
178
+ /**
179
+ * How a Batch watches its members' gestures (#665's PR 5, Q56, Q60, Q62): its hover and its presses over
180
+ * them, each started once, at its first need, over its host, and stopped with the Batch.
181
+ */
182
+ export interface BatchGestureWatches {
183
+ /** Its members' hover, or presses (a pointer's, and a focused member's keys), watched from now on. */
184
+ readonly listen: (gesture: "hover" | "press", host: BatchGestureHost) => void;
185
+ }
186
+ /**
187
+ * A member's gesture layer over its `animate` targets (ADR-0070 decision 12): its hover's, its press's over
188
+ * that, and a Batch Reorder group's item in hand's over both (#712, ADR-0072 decision 8).
189
+ */
190
+ export type BatchGestureLayer = "hover" | "press" | "drag";
191
+ /** What a Batch's gestures work its members through (Q58, Q59): their layers, its keys, and how each member is named. */
192
+ export interface BatchGestureHost {
193
+ /** The element a node is, while it's this Batch's member's, else `Option.none()`: what its watches are over. */
194
+ readonly memberElementOf: (node: unknown) => Option.Option<unknown>;
195
+ /** The member such an element is: its number. */
196
+ readonly memberAt: (element: unknown) => number | undefined;
197
+ /** Whether member `i`'s `layer` is on. */
198
+ readonly layered: (layer: BatchGestureLayer, i: number) => boolean;
199
+ /**
200
+ * Member `i`'s `layer` at `values`, by key index (`NaN` for a key they don't give), or off: then the
201
+ * member turned toward its Override stack's targets on `transition`, never staggered, a key only a
202
+ * layer gave back to where it was as the first came on; a leaver not turned, its exit holding its keys.
203
+ */
204
+ readonly layer: (layer: BatchGestureLayer, i: number, values: Float64Array | undefined, transition: WardConfig.WardicTransition | undefined) => void;
205
+ /** Its keys, in their order. */
206
+ readonly keys: () => ReadonlyArray<string>;
207
+ /** Member `i` as an error names it, its index (a keyed member's in its list now), and its item. */
208
+ readonly nameOf: (i: number) => string;
209
+ readonly indexOf: (i: number) => number;
210
+ readonly itemOf: (i: number) => unknown;
211
+ readonly keyed: boolean;
212
+ readonly untrack: <A>(read: () => A) => A;
213
+ /** The Batch's transition now. */
214
+ readonly configured: () => WardConfig.WardicTransition | undefined;
215
+ /** Its config's `whileHover` and `whileTap`, as given, read as a gesture starts. */
216
+ readonly hoverGiven: unknown;
217
+ readonly tapGiven: unknown;
218
+ /** Whether a focused member's keys press it now: {@link BatchEnv.pressKeys}. */
219
+ readonly pressKeys: (() => boolean) | undefined;
220
+ /** A Batch Reorder group's `whileDrag` now, as given (#712). */
221
+ readonly dragGiven: () => unknown;
222
+ /** A member's gesture event, told its binding. */
223
+ readonly tell: (told: BatchGestureTold) => void;
224
+ /**
225
+ * Member `i` in hand, a Batch Reorder group's dragged item (#712, ADR-0072 decision 7): its `x` and `y`
226
+ * there now, with no spring, over its Override stack's, until {@link handOff}.
227
+ */
228
+ readonly handAt: (i: number, x: number, y: number) => void;
229
+ /** Member `i` let go: its `x` and `y` turned toward its Override stack's on the Batch's transition, from where they are at `vx` and `vy` a second. */
230
+ readonly handOff: (i: number, vx: number, vy: number) => void;
231
+ }
232
+ /**
233
+ * A member's gesture event, as its Batch tells its binding (Q60): its name, the platform's event behind
234
+ * it, its point and a press's input, the member's element, its index (a keyed member's in its list now)
235
+ * and a keyed member's item.
236
+ */
237
+ export interface BatchGestureTold {
238
+ readonly name: WardicBatchGestureName;
239
+ readonly raw: unknown;
240
+ readonly point: GestureInfo.WardicPoint;
241
+ /** A press's input; `undefined` for a hover. */
242
+ readonly input: GestureInfo.WardicPressInput | undefined;
243
+ readonly element: Element;
244
+ readonly i: number;
245
+ readonly item: unknown;
246
+ }
247
+ /** What a Batch tells its binding: a flight's start, and its landing; and its members' gestures. */
248
+ export interface BatchHooks {
249
+ readonly started: () => void;
250
+ readonly landed: (landing: WardicBatchLanding) => void;
251
+ /** A member's gesture event (Q60), after the member has turned toward its gesture's targets. */
252
+ readonly gesture?: ((told: BatchGestureTold) => void) | undefined;
253
+ }
254
+ /** A Batch bound to its config: its targets, read by the binding's tracking, and what it does with them. */
255
+ export interface BatchBinding {
256
+ /** Every member's targets now, read in the binding's tracking: a compute, which writes nothing shared. */
257
+ readonly targetsOf: () => BatchTargets;
258
+ /** A change: every member turned toward `targets`; in the keyed form, members entering and leaving. */
259
+ readonly apply: (targets: BatchTargets) => void;
260
+ /**
261
+ * A change that moves the targets under its members (#712: a Batch Reorder group's first read of its
262
+ * element): each key whose target moves carries its motion over by the shift, so a member at rest is at its
263
+ * new targets at once and one mid-flight goes on as far off them as it was off its old; drawn now, before
264
+ * the page paints.
265
+ */
266
+ readonly applyShifted: (targets: BatchTargets) => void;
267
+ /** Member `i`'s `ref`: one function a member. */
268
+ readonly refOf: (i: number) => (el: Element) => void;
269
+ /** The keyed form's member for `key`, made at its first handle, under the `<AnimatePresence>` it's in: its number. */
270
+ readonly memberFor: (key: unknown, presence: PresenceController.PresenceContextValue | undefined) => number;
271
+ /** The members a Batch or a member's handle names: `undefined` for every member, none once a handle's member has left. */
272
+ readonly namedOf: (entry: BatchSubjectEntry) => ReadonlyArray<number> | undefined;
273
+ /** An element's own `style`, without the properties the Batch draws on it. */
274
+ readonly styleOf: <Style>(style: Style) => Style;
275
+ /** An `animate` call's track over its members, or the members `members` names, driven by `head`. */
276
+ readonly track: (call: BatchCall) => BatchTrack;
277
+ /** Member `i`'s entry, for `animate`: its handle's and its element's. */
278
+ readonly entryOf: (i: number) => BatchMemberEntry;
279
+ /** Where an element call's `key` goes for a member's element. */
280
+ readonly routeOf: (key: string) => KeyRoute;
281
+ /** A sequence's Segment of the Batch, or of the members `named` names: its members' entries, in member order, and its values for core. */
282
+ readonly segmentOf: (named: ReadonlyArray<number> | undefined, target: Readonly<Record<string, unknown>>) => BatchSegment;
283
+ /** A sequence's Segment of members' elements: each Batch key a number, `null` or stops, and no transform the Batch draws without it. */
284
+ readonly checkElementSegment: (target: Readonly<Record<string, unknown>>) => void;
285
+ /** A sequence's track over its members, each through its own Batch keys' stops, driven by `head`. */
286
+ readonly sequenceTrack: (call: BatchSequenceCall) => BatchTrack;
287
+ /** Member `i`'s element, once it has arrived. */
288
+ readonly elementOf: (i: number) => Element | undefined;
289
+ /**
290
+ * A Wardic element on member `i`'s element takes its `group` (#665's PR 4, ADR-0069 decision 17):
291
+ * the Batch's keys in it at the member's values and speeds, the Batch drawing them no more until it
292
+ * takes them back. `undefined` when the Batch has none of its keys, or the member isn't drawn yet.
293
+ */
294
+ readonly yieldGroup: (i: number, group: BatchGroup, holder: BatchHolder) => BatchYield | undefined;
295
+ /** The Wardic element gives member `i`'s `group` back: from its values and speeds, toward the member's targets. */
296
+ readonly reclaim: (i: number, group: BatchGroup, back: BatchHandover) => void;
297
+ /**
298
+ * What member `i`'s `key` is drawn at now, by its Batch: its value, or for a transform key it hasn't,
299
+ * its identity while it draws `transform`; `undefined` when it draws none of `key`'s group.
300
+ */
301
+ readonly drawnValueOf: (i: number, key: string) => number | undefined;
302
+ /**
303
+ * Its members' hover, or presses, watched from now on (#665's PR 5, Q60): once each. A binding calls it
304
+ * when the Batch has `whileHover` or `whileTap`, a gesture callback, or a first ask for a gesture event.
305
+ */
306
+ readonly listen: (gesture: "hover" | "press") => void;
307
+ /** What its members' gestures, and a Batch Reorder group's item in hand (#712), work them through. */
308
+ readonly host: BatchGestureHost;
309
+ /** The Batch's run ended, and no member drawn again. */
310
+ readonly dispose: () => void;
311
+ }
312
+ /**
313
+ * Every member's targets at a change: by index, member by member in key order, `NaN` for a key a member's
314
+ * targets leave out; keyed, each item, its key and its targets as `animate` gave them.
315
+ */
316
+ export type BatchTargets = Float64Array | KeyedTargets;
317
+ /** A keyed Batch's targets at a change: its items in order, their keys, and each one's targets. */
318
+ interface KeyedTargets {
319
+ readonly items: ReadonlyArray<unknown>;
320
+ readonly keys: ReadonlyArray<unknown>;
321
+ readonly values: ReadonlyArray<Readonly<Record<string, unknown>>>;
322
+ }
323
+ /** An `animate` call of a Batch: its targets, its transition, its scope's settings, its Playhead and landing. */
324
+ export interface BatchCall {
325
+ readonly target: WardicBatchTarget;
326
+ readonly transition: WardConfig.WardicTransition | undefined;
327
+ readonly reducedMotion: boolean;
328
+ readonly skipAnimations: boolean;
329
+ readonly head: Playback.Playhead;
330
+ readonly settled: () => void;
331
+ /** The members it moves, in order: every member when left out. */
332
+ readonly members: ReadonlyArray<number> | undefined;
333
+ }
334
+ /** A sequence's Segment of a Batch for core (#665, Q38, Q39): its subjects, the members whose elements have arrived, and its values. */
335
+ export interface BatchSegment {
336
+ readonly subjects: ReadonlyArray<BatchMemberEntry>;
337
+ readonly values: Readonly<Record<string, Sequence.Value>>;
338
+ }
339
+ /** A sequence's part for a Batch: its members, in order, each one's compiled animation, its scope's settings, its Playhead and landing. */
340
+ export interface BatchSequenceCall {
341
+ readonly members: ReadonlyArray<number>;
342
+ readonly animations: ReadonlyArray<Sequence.Animation>;
343
+ readonly reducedMotion: boolean;
344
+ readonly skipAnimations: boolean;
345
+ readonly head: Playback.Playhead;
346
+ readonly settled: () => void;
347
+ }
348
+ /**
349
+ * Where an element call's key goes for a member's element (#665, Q14, Q33): the Batch's own key to
350
+ * the Batch; a transform the Batch draws without it, nowhere (its write would be the Batch's to
351
+ * overwrite); any other to a plain animation of the element.
352
+ */
353
+ export type KeyRoute = "batch" | "drawn" | "free";
354
+ /** What an `animate` call's Playback controls act on: an Imperative track's shape (`spine.ts`). */
355
+ export interface BatchTrack {
356
+ readonly run: () => void;
357
+ readonly stop: () => void;
358
+ readonly cancel: () => void;
359
+ readonly duration: () => number;
360
+ }
361
+ /** What `animate` knows of a Batch or a member's handle: its binding, and a handle's member by its index. */
362
+ export interface BatchSubjectEntry {
363
+ readonly binding: BatchBinding;
364
+ readonly member: number | undefined;
365
+ }
366
+ /** A member's entry: its handle's and its element's. */
367
+ export interface BatchMemberEntry extends BatchSubjectEntry {
368
+ readonly member: number;
369
+ }
370
+ /** A Batch member's keys a driver on its element takes together (#665's PR 4, Q53): its `transform`, or its `opacity`. */
371
+ export type BatchGroup = "transform" | "opacity";
372
+ /** The group `key` is drawn in on the DOM: a transform key's `transform`, `opacity`'s own, or none. */
373
+ export declare const batchGroupOf: (key: string) => BatchGroup | undefined;
374
+ /** A group's keys handed over: each one's value and speed. */
375
+ export interface BatchHandover {
376
+ /** Each key's value, where it's drawn as it's handed over. */
377
+ readonly values: Readonly<Record<string, number>>;
378
+ /** Each key's speed then, per second. */
379
+ readonly velocities: Readonly<Record<string, number>>;
380
+ }
381
+ /** What a Wardic element holding a member's group tells its Batch (Q54). */
382
+ export interface BatchHolder {
383
+ /** Gives `group` back now, its keys' values and speeds, or `undefined` when it holds it no more. */
384
+ readonly surrender: (group: BatchGroup) => BatchHandover | undefined;
385
+ /**
386
+ * Whether it keeps `group` through a Batch change of the member: a drag in progress keeps the
387
+ * transform, as does a transform key the Batch doesn't draw that it animates or has off its identity.
388
+ */
389
+ readonly keepsThrough: (group: BatchGroup) => boolean;
390
+ }
391
+ /** A group a Batch gave a Wardic element: the Batch's keys in it, at the member's values and speeds. */
392
+ export interface BatchYield extends BatchHandover {
393
+ /** The Batch's keys in the group, which the Wardic element draws until it gives them back. */
394
+ readonly keys: ReadonlyArray<string>;
395
+ }
396
+ /** `handle` is `binding`'s Batch, for `animate`. */
397
+ export declare const registerBatch: (handle: object, binding: BatchBinding) => void;
398
+ /** The binding `subject` is a Batch or member handle of, for `animate`; `undefined` for anything else. */
399
+ export declare const batchSubjectOf: (subject: unknown) => BatchSubjectEntry | undefined;
400
+ /** An element call's part for one Batch's member elements: the members, in list order, and the Batch's keys' stops. */
401
+ export interface MembersPart {
402
+ readonly binding: BatchBinding;
403
+ readonly members: ReadonlyArray<number>;
404
+ readonly target: WardicBatchTarget;
405
+ }
406
+ /** An element call's part for one element: its index in the list, and what a plain animation of it takes. */
407
+ export interface ElementPart<T> {
408
+ readonly element: Element;
409
+ readonly index: number;
410
+ readonly target: T;
411
+ }
412
+ /** Whether `element` is a Batch member's element: one WeakMap read, so a call without one keeps the plain path. */
413
+ export declare const isMemberElement: (element: Subject.Subject) => boolean;
414
+ /** `element`'s member's entry, while it's a Batch member's element: its subject in a sequence (Q40). */
415
+ export declare const memberEntryOf: (element: Subject.Subject) => BatchMemberEntry | undefined;
416
+ /** Whether a sequence's subject is a Batch member's entry. */
417
+ export declare const isMemberEntry: Predicate.Refinement<unknown, BatchMemberEntry>;
418
+ /** A sequence's part for one Batch: its members, in the order they first appear, and each one's compiled animation. */
419
+ export interface SequencePart {
420
+ readonly binding: BatchBinding;
421
+ readonly members: ReadonlyArray<number>;
422
+ readonly animations: ReadonlyArray<Sequence.Animation>;
423
+ }
424
+ /**
425
+ * A compiled sequence's parts (Q40): each Batch's members as one part, in the order they first appear,
426
+ * their Batch keys its; each member's other keys as its element's; every other subject as it is.
427
+ */
428
+ export declare const sequencePartsOf: <S>(compiled: ReadonlyArray<readonly [S | BatchMemberEntry, Sequence.Animation]>) => {
429
+ readonly batches: ReadonlyArray<SequencePart>;
430
+ readonly others: ReadonlyArray<readonly [S | Element, Sequence.Animation]>;
431
+ };
432
+ /**
433
+ * An element call's parts (#665, Q14, Q35): each Batch's member elements as one part, in list order,
434
+ * with the Batch's keys; each element, a member's with the keys left, as one of its own.
435
+ */
436
+ export declare const callPartsOf: <T extends object>(elements: ReadonlyArray<Element>, target: T) => {
437
+ readonly members: ReadonlyArray<MembersPart>;
438
+ readonly elements: ReadonlyArray<ElementPart<T>>;
439
+ };
440
+ /** The props an element gives a member's handle: its own `ref`, and its own `style`, as an object. */
441
+ export interface MemberProps<E extends Element, Style> {
442
+ readonly ref?: (el: E) => void;
443
+ readonly style?: Style;
444
+ }
445
+ /** A member's handle: spread onto its element. */
446
+ export interface Member<E extends Element, Style> {
447
+ readonly ref: (el: E) => void;
448
+ readonly style?: Style | undefined;
449
+ }
450
+ /** What an error about a Batch says. */
451
+ export declare const fail: (message: string) => never;
452
+ /** Each key's identity: a transform's, and `opacity`'s 1, an element's own with no style of its own. */
453
+ export declare const identityOf: (key: string) => number;
454
+ /**
455
+ * An `exit`, `whileHover` or `whileTap` given as an object, values with an optional `transition` (Q48,
456
+ * Q58), else `undefined`: a function's values are read as each is needed.
457
+ */
458
+ export declare const objectFormOf: (given: unknown) => WardicBatchGesture | undefined;
459
+ /** Such an object's values, less its `transition`; none for a function, or for none given. */
460
+ export declare const objectFormValues: (given: unknown) => Readonly<Record<string, unknown>>;
461
+ /** An element as an error names it: its tag, then its `id` and first class, as `div#card.tile`. */
462
+ export declare const elementName: (el: Element) => string;
463
+ /**
464
+ * `element` given a layout node (#665's PR 4, Q52): an error when it's a Batch member's, whose
465
+ * transform its Batch draws, under which the projection would measure it.
466
+ */
467
+ export declare const markLayoutElement: (element: Element) => void;
468
+ /** What a server render's Batch reads of its provider and its nearest `WardicConfig` for its members' Appear animations (#706). */
469
+ export interface BatchServerAppear {
470
+ /** The render's Appear animations: none with the provider's `appear={false}`, or no provider. */
471
+ readonly state: AppearAnimations.ServerAppear | undefined;
472
+ /** Its nearest `WardicConfig`'s reduced motion, else `undefined` for the provider's (#434). */
473
+ readonly setting: ReducedMotion.Config | undefined;
474
+ /** Whether its nearest `WardicConfig` skips its animations (#468). */
475
+ readonly skipped: boolean;
476
+ /** Its nearest `WardicConfig`'s transition, for a Batch with none of its own. */
477
+ readonly configTransition: WardConfig.WardicTransition | undefined;
478
+ }
479
+ /** A server Batch's read of its provider's Appear animations and its nearest `WardicConfig` (#706): each binding's hooks give them. */
480
+ export declare const batchServerAppearOf: (state: AppearAnimations.ServerAppear | undefined, config: WardicConfigValue.WardicConfigValue | undefined, skipped: boolean) => BatchServerAppear;
481
+ /** No Appear animations: a server render's Batch that's given none. */
482
+ export declare const NO_SERVER_APPEAR: BatchServerAppear;
483
+ /**
484
+ * A server render's handles by index (Q63): each member's start, its `initial`'s values, its targets
485
+ * with `initial: false`, else nothing, on the keys the client makes it with, its checks the client's.
486
+ */
487
+ export declare const serverHandlesOf: <Style>(config: BatchConfig, server?: BatchServerAppear) => <E extends Element>(i: number, props?: MemberProps<E, Style>) => Member<E, Style>;
488
+ /**
489
+ * A server render's keyed handles (Q63, Q65): the list read once, each key's member started by its item
490
+ * and its index there, its targets under `<AnimatePresence initial={false}>`; a key the list doesn't have,
491
+ * nothing. Its keys and checks the client's: with `keys` given and no items, its keys as given.
492
+ */
493
+ export declare const serverKeyedHandlesOf: <Style>(config: KeyedBatchConfig<unknown>, presenceOf: () => PresenceController.PresenceContextValue | undefined, server?: BatchServerAppear) => <E extends Element>(key: unknown, props?: MemberProps<E, Style>) => Member<E, Style>;
494
+ /** Member handles for `binding`: its `ref`, the element's own `ref` called beside it, and its own `style` kept. */
495
+ export declare const handlesOf: <Style>(binding: BatchBinding) => <E extends Element>(i: number, props?: MemberProps<E, Style>) => Member<E, Style>;
496
+ /** The nearest `WardicConfig`'s transition, read as each change starts, from either binding's config value. */
497
+ export declare const configTransitionOf: (config: {
498
+ readonly transition: () => WardConfig.WardicTransition | undefined;
499
+ } | undefined) => () => WardConfig.WardicTransition | undefined;
500
+ /** Keyed member handles for `binding`: as {@link handlesOf}'s, each key's member made at its first handle. */
501
+ export declare const keyedHandlesOf: <Style>(binding: BatchBinding, presenceNow: () => PresenceController.PresenceContextValue | undefined) => <E extends Element>(key: unknown, props?: MemberProps<E, Style>) => Member<E, Style>;
502
+ /**
503
+ * A Batch for `config`'s members, under `env`'s provider: its writer the DOM's. The binding tracks
504
+ * {@link BatchBinding.targetsOf} and hands each new value to {@link BatchBinding.apply}.
505
+ *
506
+ * - **By index,** its `count` members are fixed, member `i` its `i`th, and its core Batch is made at once.
507
+ * - **Keyed** (Q42–Q45), each key's member is a number, given at its key's first sight and given back when
508
+ * it leaves, so a long list's churn reuses them. Its core Batch is made at the first change with
509
+ * members, at a handle's first sight of one, or at once when its `keys` are given (Q51).
510
+ */
511
+ export declare const bindBatch: (env: BatchEnv, config: BatchConfig | KeyedBatchConfig<unknown>, hooks: BatchHooks) => BatchBinding;
512
+ export {};
513
+ //# sourceMappingURL=BatchMembers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BatchMembers.d.ts","sourceRoot":"","sources":["../../src/unstable/BatchMembers.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,KAAK,iBAAiB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