@wardic/core 1.3.2 → 1.4.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 (228) hide show
  1. package/dist/Arc.d.ts +2 -2
  2. package/dist/Arc.js +1 -1
  3. package/dist/BaseValue.d.ts +11 -10
  4. package/dist/BaseValue.d.ts.map +1 -1
  5. package/dist/BaseValue.js +12 -15
  6. package/dist/BaseValue.js.map +1 -1
  7. package/dist/Batch.d.ts +15 -5
  8. package/dist/Batch.d.ts.map +1 -1
  9. package/dist/Batch.js +218 -20
  10. package/dist/Batch.js.map +1 -1
  11. package/dist/Clock.d.ts +7 -7
  12. package/dist/Clock.d.ts.map +1 -1
  13. package/dist/Clock.js +17 -16
  14. package/dist/Clock.js.map +1 -1
  15. package/dist/DefaultTransition.d.ts +3 -2
  16. package/dist/DefaultTransition.d.ts.map +1 -1
  17. package/dist/DefaultTransition.js +5 -3
  18. package/dist/DefaultTransition.js.map +1 -1
  19. package/dist/Drag.d.ts +24 -9
  20. package/dist/Drag.d.ts.map +1 -1
  21. package/dist/Drag.js +10 -10
  22. package/dist/Drag.js.map +1 -1
  23. package/dist/DragActivity.js +3 -3
  24. package/dist/DragRecognizer.d.ts +5 -4
  25. package/dist/DragRecognizer.d.ts.map +1 -1
  26. package/dist/DragRecognizer.js +37 -14
  27. package/dist/DragRecognizer.js.map +1 -1
  28. package/dist/Easing.d.ts +1 -1
  29. package/dist/Easing.js +1 -1
  30. package/dist/Frame.d.ts.map +1 -1
  31. package/dist/Frame.js +5 -3
  32. package/dist/Frame.js.map +1 -1
  33. package/dist/InputFeed.d.ts +1 -1
  34. package/dist/InputFeed.js +2 -2
  35. package/dist/InputSource.d.ts +3 -3
  36. package/dist/InputSource.js +2 -2
  37. package/dist/Interpolator.d.ts +2 -2
  38. package/dist/Interpolator.js +2 -2
  39. package/dist/InterpolatorRegistry.d.ts +29 -15
  40. package/dist/InterpolatorRegistry.d.ts.map +1 -1
  41. package/dist/InterpolatorRegistry.js +17 -8
  42. package/dist/InterpolatorRegistry.js.map +1 -1
  43. package/dist/LiveValue.d.ts +7 -6
  44. package/dist/LiveValue.d.ts.map +1 -1
  45. package/dist/LiveValue.js +45 -14
  46. package/dist/LiveValue.js.map +1 -1
  47. package/dist/Machine.d.ts +7 -4
  48. package/dist/Machine.d.ts.map +1 -1
  49. package/dist/Machine.js +146 -45
  50. package/dist/Machine.js.map +1 -1
  51. package/dist/Playback.d.ts.map +1 -1
  52. package/dist/Playback.js +6 -1
  53. package/dist/Playback.js.map +1 -1
  54. package/dist/Projection.d.ts +9 -9
  55. package/dist/Projection.js +2 -2
  56. package/dist/Recognizer.d.ts +4 -3
  57. package/dist/Recognizer.d.ts.map +1 -1
  58. package/dist/Recognizer.js +49 -20
  59. package/dist/Recognizer.js.map +1 -1
  60. package/dist/ReducedMotion.d.ts +4 -4
  61. package/dist/ReducedMotion.js +6 -6
  62. package/dist/Renderer.d.ts +5 -5
  63. package/dist/Renderer.js +6 -6
  64. package/dist/Renderer.js.map +1 -1
  65. package/dist/Reorder.d.ts +1 -1
  66. package/dist/Reorder.d.ts.map +1 -1
  67. package/dist/Reorder.js +2 -1
  68. package/dist/Reorder.js.map +1 -1
  69. package/dist/ScrollSource.d.ts +1 -1
  70. package/dist/ScrollSource.d.ts.map +1 -1
  71. package/dist/Sequence.d.ts +1 -1
  72. package/dist/SharedSource.d.ts +3 -3
  73. package/dist/SharedSource.js +5 -5
  74. package/dist/SharedSource.js.map +1 -1
  75. package/dist/Spring.d.ts.map +1 -1
  76. package/dist/Spring.js +2 -1
  77. package/dist/Spring.js.map +1 -1
  78. package/dist/Values.d.ts +2 -2
  79. package/dist/Values.js +1 -1
  80. package/dist/index.d.ts +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/internal/carried.d.ts +13 -0
  83. package/dist/internal/carried.d.ts.map +1 -0
  84. package/dist/internal/carried.js +23 -0
  85. package/dist/internal/carried.js.map +1 -0
  86. package/dist/internal/firstSteps.d.ts +66 -0
  87. package/dist/internal/firstSteps.d.ts.map +1 -0
  88. package/dist/internal/firstSteps.js +107 -0
  89. package/dist/internal/firstSteps.js.map +1 -0
  90. package/dist/internal/frameLoop.d.ts +1 -1
  91. package/dist/internal/frameLoop.d.ts.map +1 -1
  92. package/dist/internal/frameLoop.js +102 -81
  93. package/dist/internal/frameLoop.js.map +1 -1
  94. package/dist/internal/lerpsNumbers.d.ts +11 -0
  95. package/dist/internal/lerpsNumbers.d.ts.map +1 -0
  96. package/dist/internal/lerpsNumbers.js +38 -0
  97. package/dist/internal/lerpsNumbers.js.map +1 -0
  98. package/dist/internal/options.d.ts +7 -7
  99. package/dist/internal/options.d.ts.map +1 -1
  100. package/dist/internal/options.js +10 -10
  101. package/dist/internal/options.js.map +1 -1
  102. package/dist/internal/stepper.d.ts +13 -2
  103. package/dist/internal/stepper.d.ts.map +1 -1
  104. package/dist/internal/stepper.js +16 -1
  105. package/dist/internal/stepper.js.map +1 -1
  106. package/dist/internal/tracing.d.ts +1 -1
  107. package/dist/internal/tracing.js +1 -1
  108. package/dist/unstable/AnimationControls.d.ts +37 -38
  109. package/dist/unstable/AnimationControls.d.ts.map +1 -1
  110. package/dist/unstable/AnimationControls.js +39 -36
  111. package/dist/unstable/AnimationControls.js.map +1 -1
  112. package/dist/unstable/AppearHandoff.d.ts +5 -5
  113. package/dist/unstable/AppearHandoff.d.ts.map +1 -1
  114. package/dist/unstable/BatchCalls.d.ts +2 -2
  115. package/dist/unstable/BatchCalls.js +5 -5
  116. package/dist/unstable/Config.d.ts +19 -19
  117. package/dist/unstable/Config.d.ts.map +1 -1
  118. package/dist/unstable/FirstSteps.d.ts +25 -0
  119. package/dist/unstable/FirstSteps.d.ts.map +1 -0
  120. package/dist/unstable/FirstSteps.js +2 -0
  121. package/dist/unstable/FirstSteps.js.map +1 -0
  122. package/dist/unstable/FlushGate.d.ts +53 -51
  123. package/dist/unstable/FlushGate.d.ts.map +1 -1
  124. package/dist/unstable/FlushGate.js +56 -49
  125. package/dist/unstable/FlushGate.js.map +1 -1
  126. package/dist/unstable/FrameEffects.d.ts +2 -2
  127. package/dist/unstable/FrameEffects.js +2 -2
  128. package/dist/unstable/FrameTime.d.ts +1 -1
  129. package/dist/unstable/FrameTime.js +1 -1
  130. package/dist/unstable/Imperative.d.ts +29 -9
  131. package/dist/unstable/Imperative.d.ts.map +1 -1
  132. package/dist/unstable/Imperative.js +79 -47
  133. package/dist/unstable/Imperative.js.map +1 -1
  134. package/dist/unstable/OwnValues.js +1 -1
  135. package/dist/unstable/PresenceRecord.d.ts +26 -26
  136. package/dist/unstable/PresenceRecord.d.ts.map +1 -1
  137. package/dist/unstable/PresenceRecord.js +8 -8
  138. package/dist/unstable/PresenceRecord.js.map +1 -1
  139. package/dist/unstable/Projector.d.ts +34 -0
  140. package/dist/unstable/Projector.d.ts.map +1 -0
  141. package/dist/unstable/Projector.js +9 -0
  142. package/dist/unstable/Projector.js.map +1 -0
  143. package/dist/unstable/Report.d.ts +1 -1
  144. package/dist/unstable/Report.js +1 -1
  145. package/dist/unstable/RetargetLegs.d.ts +1 -1
  146. package/dist/unstable/RetargetLegs.d.ts.map +1 -1
  147. package/dist/unstable/RetargetLegs.js +9 -8
  148. package/dist/unstable/RetargetLegs.js.map +1 -1
  149. package/dist/unstable/Spine.d.ts +81 -72
  150. package/dist/unstable/Spine.d.ts.map +1 -1
  151. package/dist/unstable/Spine.js +152 -150
  152. package/dist/unstable/Spine.js.map +1 -1
  153. package/dist/unstable/Stops.d.ts +3 -3
  154. package/dist/unstable/Stops.js +4 -4
  155. package/dist/unstable/Subject.d.ts +2 -2
  156. package/dist/unstable/Subject.js +2 -2
  157. package/dist/unstable/Timelines.d.ts +11 -11
  158. package/dist/unstable/Timelines.d.ts.map +1 -1
  159. package/dist/unstable/Timelines.js +3 -3
  160. package/dist/unstable/VariantTarget.d.ts +7 -7
  161. package/dist/unstable/VariantTarget.d.ts.map +1 -1
  162. package/dist/unstable/VariantTarget.js +11 -11
  163. package/dist/unstable/VariantTarget.js.map +1 -1
  164. package/dist/unstable/VariantTree.d.ts +36 -36
  165. package/dist/unstable/VariantTree.d.ts.map +1 -1
  166. package/dist/unstable/VariantTree.js +33 -33
  167. package/dist/unstable/VariantTree.js.map +1 -1
  168. package/dist/unstable/WardicConfigValue.d.ts +13 -13
  169. package/dist/unstable/WardicConfigValue.d.ts.map +1 -1
  170. package/dist/unstable/WardicConfigValue.js +4 -4
  171. package/dist/unstable/WardicConfigValue.js.map +1 -1
  172. package/package.json +1 -1
  173. package/src/Arc.ts +3 -3
  174. package/src/BaseValue.ts +18 -21
  175. package/src/Batch.ts +236 -22
  176. package/src/Clock.ts +18 -17
  177. package/src/DefaultTransition.ts +5 -3
  178. package/src/Drag.ts +32 -14
  179. package/src/DragActivity.ts +3 -3
  180. package/src/DragRecognizer.ts +41 -16
  181. package/src/Easing.ts +1 -1
  182. package/src/Frame.ts +5 -3
  183. package/src/InputFeed.ts +2 -2
  184. package/src/InputSource.ts +5 -5
  185. package/src/Interpolator.ts +3 -3
  186. package/src/InterpolatorRegistry.ts +22 -13
  187. package/src/LiveValue.ts +47 -17
  188. package/src/Machine.ts +199 -61
  189. package/src/Playback.ts +5 -1
  190. package/src/Projection.ts +9 -9
  191. package/src/Recognizer.ts +69 -38
  192. package/src/ReducedMotion.ts +6 -6
  193. package/src/Renderer.ts +6 -6
  194. package/src/Reorder.ts +3 -2
  195. package/src/ScrollSource.ts +1 -1
  196. package/src/Sequence.ts +1 -1
  197. package/src/SharedSource.ts +5 -5
  198. package/src/Spring.ts +2 -1
  199. package/src/Values.ts +2 -2
  200. package/src/index.ts +1 -1
  201. package/src/internal/carried.ts +22 -0
  202. package/src/internal/firstSteps.ts +139 -0
  203. package/src/internal/frameLoop.ts +103 -87
  204. package/src/internal/lerpsNumbers.ts +53 -0
  205. package/src/internal/options.ts +10 -10
  206. package/src/internal/stepper.ts +20 -2
  207. package/src/internal/tracing.ts +1 -1
  208. package/src/unstable/AnimationControls.ts +59 -56
  209. package/src/unstable/AppearHandoff.ts +6 -6
  210. package/src/unstable/BatchCalls.ts +5 -5
  211. package/src/unstable/Config.ts +19 -19
  212. package/src/unstable/FirstSteps.ts +26 -0
  213. package/src/unstable/FlushGate.ts +92 -82
  214. package/src/unstable/FrameEffects.ts +2 -2
  215. package/src/unstable/FrameTime.ts +1 -1
  216. package/src/unstable/Imperative.ts +126 -56
  217. package/src/unstable/OwnValues.ts +1 -1
  218. package/src/unstable/PresenceRecord.ts +29 -29
  219. package/src/unstable/Projector.ts +45 -0
  220. package/src/unstable/Report.ts +1 -1
  221. package/src/unstable/RetargetLegs.ts +10 -9
  222. package/src/unstable/Spine.ts +190 -188
  223. package/src/unstable/Stops.ts +6 -6
  224. package/src/unstable/Subject.ts +2 -2
  225. package/src/unstable/Timelines.ts +12 -12
  226. package/src/unstable/VariantTarget.ts +13 -13
  227. package/src/unstable/VariantTree.ts +42 -42
  228. package/src/unstable/WardicConfigValue.ts +13 -13
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationControls.js","sourceRoot":"","sources":["../../src/unstable/AnimationControls.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAA;AACjD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAqCrC,yDAAyD;AACzD,kFAAkF;AAClF,MAAM,WAAW,GAAG,IAAI,OAAO,EAAmD,CAAA;AAElF,+FAA+F;AAC/F,MAAM,CAAC,MAAM,OAAO,GAA4B,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAA;AAE9E;;;GAGG;AACH,0GAA0G;AAC1G,yGAAyG;AACzG,MAAM,SAAS,GAAG,CAAC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O,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,CAAA;AAgBjI;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAA2C,EAAE,KAAsB,EAAE,IAAgB,EAAc,EAAE,CAAC,CAAC;IACvI,OAAO,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACjI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;QACtC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACtB,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;QACtC,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IACD,IAAI;CACL,CAAC,CAAA"}
@@ -1,15 +1,15 @@
1
1
  import type * as Values from "../Values.ts";
2
2
  import type * as Config from "./Config.ts";
3
3
  import * as RetargetLegs from "./RetargetLegs.ts";
4
- /** An element's mount animation, described the same on the server and the client. */
4
+ /** A Subject's mount animation, described the same on the server and the client. */
5
5
  export interface MountAnimation {
6
- /** The element's tag, by which its Environment routes some keys; `undefined` for an element whose tag isn't known. */
6
+ /** The Subject's tag, by which its Environment routes some keys; `undefined` for a Subject whose tag isn't known. */
7
7
  readonly tag: string | undefined;
8
8
  /** Each animated key's start. */
9
9
  readonly from: Values.Values;
10
10
  /** Each animated key's target. */
11
11
  readonly to: Values.Values;
12
- /** The element's own transition: its stagger isn't in it (ADR-0007). */
12
+ /** The Subject's own transition: its stagger isn't in it (ADR-0007). */
13
13
  readonly transition: Config.WardicTransition | undefined;
14
14
  /** Whether reduced motion is on for it (ADR-0029). */
15
15
  readonly reduced: boolean;
@@ -22,7 +22,7 @@ export interface MountAnimation {
22
22
  readonly stops?: RetargetLegs.StopsByKey | undefined;
23
23
  /**
24
24
  * Whether it's a **Skipped animation** (#468): every key lands on its first frame, so its Appear
25
- * animation takes 0 s, holding its end from first paint. Part of its key; left out when it isn't.
25
+ * animation takes 0 s, holding its end from the first frame drawn. Part of its key; left out when it isn't.
26
26
  */
27
27
  readonly skipped?: boolean | undefined;
28
28
  /** Its **Transform template** (#443): its stops drawn through it, as the client draws them. Left out with none. */
@@ -42,7 +42,7 @@ export declare const ownDelayOf: (transition: Config.WardicTransition | undefine
42
42
  export declare const skippedField: (skipped: boolean) => {
43
43
  readonly skipped?: true;
44
44
  };
45
- /** An element's Appear animation, found at mount: the spine starts its first legs as far in as it has got. */
45
+ /** A Subject's Appear animation, found at mount: the spine starts its first legs as far in as it has got. */
46
46
  export interface Handoff {
47
47
  /** How far its animation has run, in seconds (its delay included). */
48
48
  readonly elapsed: () => number;
@@ -1 +1 @@
1
- {"version":3,"file":"AppearHandoff.d.ts","sourceRoot":"","sources":["../../src/unstable/AppearHandoff.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAA;AAG3C,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAA;AAEjD,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC7B,sHAAsH;IACtH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAA;IAC5B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,CAAA;IAC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AAE,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CAA8F,CAAA;AAEvK,6GAA6G;AAC7G,MAAM,WAAW,OAAO;IACtB,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,MAAM,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,KAAK,EAAE,MAAM,MAAM,CAAA;CAC7B;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,YAAa,OAAO,iBAAiB,MAAM,CAAC,gBAAgB,GAAG,SAAS,eAAe,MAAM,WAAS,MAC3C,CAAA"}
@@ -46,7 +46,7 @@ export interface KeyPlan {
46
46
  readonly delay: number;
47
47
  }
48
48
  /**
49
- * Each key's plan for a change, by its index, as a Wardic element's keys run (#301): its entry, else
49
+ * Each key's plan for a change, by its index, as a Ward's Subject's keys run (#301): its entry, else
50
50
  * `default`, else the transition's own fields; reduced motion's Snap for a positional key that doesn't
51
51
  * opt out; its Default transition, held by its own `delay`, for a key whose transition isn't defined.
52
52
  */
@@ -141,7 +141,7 @@ export declare const isMember: Predicate.Refinement<unknown, Imperative.BatchMem
141
141
  /**
142
142
  * A compiled sequence's parts (Q40): each Batch's members as one part, in the order they first appear,
143
143
  * with their animations; every other subject as it is. `restOf` gives what of a member's animation its
144
- * Subject takes itself (the DOM's member element's keys the Batch doesn't draw), when it takes any.
144
+ * Subject takes itself (`@wardic/dom`'s member's own keys the Batch doesn't draw), when it takes any.
145
145
  */
146
146
  export declare const sequencePartsOf: <X, S>(compiled: ReadonlyArray<readonly [X | Imperative.BatchMember, Sequence.Animation]>, restOf?: (member: Imperative.BatchMember, animation: Sequence.Animation) => readonly [S, Sequence.Animation] | undefined) => {
147
147
  readonly batches: ReadonlyArray<Imperative.SequencePart>;
@@ -63,7 +63,7 @@ const snapAfter = (delay) => {
63
63
  return made;
64
64
  };
65
65
  /**
66
- * A Default transition held by a key's own `delay`, as a Wardic element's is when its transition gives
66
+ * A Default transition held by a key's own `delay`, as a Ward's Subject's is when its transition gives
67
67
  * only a delay (ADR-0051): one object for each transition and delay, so the members on it share it.
68
68
  */
69
69
  // Module state (#460, Q7): a cache held weakly by the object it's for, so it goes with it.
@@ -85,8 +85,8 @@ export const delayedBy = (transition, delay) => {
85
85
  };
86
86
  /**
87
87
  * A transition without a `stagger()` delay, which a change gives each member by its place: one object
88
- * each. A `delay` in seconds stays, held by the keys the transition's own fields reach, as a Wardic
89
- * element's top-level delay is.
88
+ * each. A `delay` in seconds stays, held by the keys the transition's own fields reach, as a Ward's
89
+ * Subject's top-level delay is.
90
90
  */
91
91
  // Module state (#460, Q7): a cache held weakly by the object it's for, so it goes with it.
92
92
  const UNSTAGGERED = new WeakMap();
@@ -118,7 +118,7 @@ const batchRunOf = (run, key, fail) => {
118
118
  return run;
119
119
  };
120
120
  /**
121
- * Each key's plan for a change, by its index, as a Wardic element's keys run (#301): its entry, else
121
+ * Each key's plan for a change, by its index, as a Ward's Subject's keys run (#301): its entry, else
122
122
  * `default`, else the transition's own fields; reduced motion's Snap for a positional key that doesn't
123
123
  * opt out; its Default transition, held by its own `delay`, for a key whose transition isn't defined.
124
124
  */
@@ -291,7 +291,7 @@ export const isMember = /*#__PURE__*/ Predicate.and(
291
291
  /**
292
292
  * A compiled sequence's parts (Q40): each Batch's members as one part, in the order they first appear,
293
293
  * with their animations; every other subject as it is. `restOf` gives what of a member's animation its
294
- * Subject takes itself (the DOM's member element's keys the Batch doesn't draw), when it takes any.
294
+ * Subject takes itself (`@wardic/dom`'s member's own keys the Batch doesn't draw), when it takes any.
295
295
  */
296
296
  export const sequencePartsOf = (compiled, restOf) => {
297
297
  const byBinding = new Map();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The config types a binding's elements and the spine share, each built on {@link ValueKeys}: the keys
2
+ * The config types a binding's Subjects and the spine share, each built on {@link ValueKeys}: the keys
3
3
  * an Environment animates and the values each takes. Empty here, `ValueKeys` is filled by the
4
4
  * Environment's binding types (`@wardic/dom/unstable/WardConfig` fills it), so each type keeps its
5
5
  * name and its shape whatever fills it.
@@ -41,7 +41,7 @@ export type WardicTargetValues = {
41
41
  export type WardicStagger = (index: number, total: number) => number;
42
42
  /**
43
43
  * A path for `x` and `y` to travel along together: from where they start to where they end, the point
44
- * at each progress, 0 to 1, with a turn (`rotate`, in degrees) for one that turns the element. `arc()`
44
+ * at each progress, 0 to 1, with a turn (`rotate`, in degrees) for one that turns the Subject. `arc()`
45
45
  * makes one; any function of this shape is one, a curve of your own.
46
46
  */
47
47
  export type WardicPath = Arc.Path;
@@ -123,13 +123,13 @@ export interface WardicSkipAnimations {
123
123
  * An axis the target leaves out ends where it rests (#574): where a Path in flight was taking it, so
124
124
  * one caught mid-air curves back to its line, else where it is.
125
125
  * A layout animation reads it where Motion's does, on its layout transition: the `layout` entry when
126
- * there is one, else the element's transition. On any other value's entry it isn't read.
126
+ * there is one, else the Subject's transition. On any other value's entry it isn't read.
127
127
  */
128
128
  export interface WardicTransitionPath {
129
129
  readonly path?: WardicPath;
130
130
  }
131
131
  /**
132
- * How an element gets to its target: a spring, a tween, or an inertia, with a value's own transition
132
+ * How a Subject gets to its target: a spring, a tween, or an inertia, with a value's own transition
133
133
  * under its name. With no `type`, a spring field (`stiffness`, `damping`, `mass`, `velocity`,
134
134
  * `restDelta`, `restSpeed`, `bounce`, `visualDuration`) makes it a spring, and anything else a tween, so
135
135
  * `{ duration: 0.5 }` is a 0.5 s tween. A spring's missing fields are Motion's 100 / 10 / 1, or set by
@@ -139,7 +139,7 @@ export interface WardicTransitionPath {
139
139
  */
140
140
  export type WardicTransition = WardicTransitionWith<WardicTransitionEntries>;
141
141
  /**
142
- * A transition with the entries `E` (#301): {@link WardicTransition}'s two arms. A Wardic element's
142
+ * A transition with the entries `E` (#301): {@link WardicTransition}'s two arms. A Ward's Subject's
143
143
  * config checks each transition in it against the entries its keys allow (`WardChecked`).
144
144
  */
145
145
  export type WardicTransitionWith<E> = ({
@@ -166,7 +166,7 @@ export interface WardicInherit {
166
166
  export type WardicValueKey = Exclude<keyof ValueKeys & string, "transition">;
167
167
  /**
168
168
  * A transition's per-value entries: a value's own transition under its name, `default` for every value
169
- * without one, and `layout` for the element's layout animations. A value runs on its entry, else
169
+ * without one, and `layout` for the Subject's layout animations. A value runs on its entry, else
170
170
  * `default`, else the transition's own fields. Motion's `TransitionWithValueOverrides`.
171
171
  */
172
172
  export type WardicTransitionEntries = WardicValueEntries<WardicValueKey> & {
@@ -190,14 +190,14 @@ type TransitionFieldName = KeysOfEach<WardicTransitionWith<unknown>> | "layout";
190
190
  export type WardicTransitionFor<K extends string> = WardicTransitionWith<WardicValueEntries<Exclude<K, TransitionFieldName>>>;
191
191
  /**
192
192
  * A variant's own transition, or a target's: it runs the animation that variant starts, in place of
193
- * the element's `transition`, unless `inherit: true` lays it over the element's, its own fields winning.
193
+ * the Subject's `transition`, unless `inherit: true` lays it over the Subject's, its own fields winning.
194
194
  * Motion's.
195
195
  */
196
196
  export type WardicVariantTransition = WardicTransition & WardicInherit;
197
197
  /**
198
198
  * A target's **Transition end** (Motion's `transitionEnd`): values set at once, with no
199
199
  * animation, once the keys the target animates have landed. Its keys are the target's, so they return to their base when it's no longer active;
200
- * a target interrupted before it lands never sets them; the target an element renders first sets its
200
+ * a target interrupted before it lands never sets them; the target a Subject renders first sets its
201
201
  * own at once, on a server too.
202
202
  */
203
203
  export type WardicTransitionEnd = Omit<ValueKeys, "transition">;
@@ -217,40 +217,40 @@ export type WardicVariant = (WardicTargetValues & {
217
217
  * Variant names (Motion's `VariantLabels`): one name, or a list of them. A list merges its
218
218
  * names' values in order, a later name's winning a key both set. Each key animates on the own
219
219
  * transition of the last name that sets it, and each name orchestrates the keys it sets in the
220
- * element's Variant children. An empty list is no name.
220
+ * Subject's Variant children. An empty list is no name.
221
221
  */
222
222
  export type WardicVariantLabels = string | ReadonlyArray<string>;
223
223
  /**
224
224
  * A dynamic variant (Motion's `TargetResolver`): called each time the variant is
225
- * resolved with the element's `custom` (or, for an exit, its `<AnimatePresence custom>`), its values
225
+ * resolved with the Subject's `custom` (or, for an exit, its `<AnimatePresence custom>`), its values
226
226
  * now and their velocities, and returns its target, or another variant's name.
227
227
  *
228
- * One that throws is reported, and only its element is affected: it keeps its last target until the
228
+ * One that throws is reported, and only its Subject is affected: it keeps its last target until the
229
229
  * variant resolves, leaves without that exit, or starts without that variant's values.
230
230
  */
231
231
  export type WardicVariantResolver = (custom: any, current: Readonly<Record<string, number | string>>, velocity: Readonly<Record<string, number>>) => WardicVariant | string;
232
232
  /** Named targets, each a target or a {@link WardicVariantResolver}. */
233
233
  export type WardicVariants = Readonly<Record<string, WardicVariant | WardicVariantResolver>>;
234
- /** What controls start or set an element to: a target, a variant name or a list of them, or a function of each element's `custom`. Motion's `AnimationDefinition`. */
234
+ /** What controls start or set a Subject to: a target, a variant name or a list of them, or a function of each Subject's `custom`. Motion's `AnimationDefinition`. */
235
235
  export type WardicControlsDefinition = WardicVariant | WardicVariantLabels | WardicVariantResolver;
236
236
  /** The mark that tells controls from a target. */
237
237
  export declare const CONTROLS: unique symbol;
238
238
  /**
239
- * `createAnimationControls()`'s controls: give them as `animate={controls}`, and every element given
239
+ * `createAnimationControls()`'s controls: give them as `animate={controls}`, and every Subject given
240
240
  * them follows `start`, `set` and `stop`. Motion's `LegacyAnimationControls`.
241
241
  */
242
242
  export interface WardicAnimationControls {
243
243
  readonly [CONTROLS]: true;
244
244
  /**
245
- * Animates every element given these controls to `definition`, as a change of its `animate` would,
245
+ * Animates every Subject given these controls to `definition`, as a change of its `animate` would,
246
246
  * its variant children following. `transitionOverride`, when given, is the transition of this change,
247
- * over the definition's own, and its stagger. Resolves once each element and its children have landed.
248
- * A function definition that throws for one element refuses the call, throwing, with no element changed.
247
+ * over the definition's own, and its stagger. Resolves once each Subject and its children have landed.
248
+ * A function definition that throws for one Subject refuses the call, throwing, with no Subject changed.
249
249
  */
250
250
  readonly start: (definition: WardicControlsDefinition, transitionOverride?: WardicTransition) => Promise<void>;
251
- /** Sets every element given these controls, and its variant children, at `definition` at once; refused, with none set, as `start` is. */
251
+ /** Sets every Subject given these controls, and its variant children, at `definition` at once; refused, with none set, as `start` is. */
252
252
  readonly set: (definition: WardicControlsDefinition) => void;
253
- /** Ends every element's running animation where it is. */
253
+ /** Ends every Subject's running animation where it is. */
254
254
  readonly stop: () => void;
255
255
  }
256
256
  /**
@@ -270,7 +270,7 @@ export type WardicTransformPoint = (point: {
270
270
  readonly y: number;
271
271
  };
272
272
  /**
273
- * What the spine reads of an element's config: its start, its targets, variants and transitions, each
273
+ * What the spine reads of a Ward's config: its start, its targets, variants and transitions, each
274
274
  * gesture's target, its layout, and the callbacks it tells. Every binding's config extends it, with
275
275
  * its Environment's own props beside.
276
276
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/unstable/Config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,KAAK,KAAK,GAAG,MAAM,WAAW,CAAA;AACrC,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAA;AAE7C;;;;;;;;GAQG;AACH,MAAM,WAAW,SAAS;CAAG;AAE7B;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;AAExD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,CAAC,IAAI,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;CAC3I,CAAA;AAED,oIAAoI;AAEpI,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;AAE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EAAE,CAAC,UAAU,EAAE,yBAAyB,KAAK,IAAI,CAAA;CAC/E"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The late-frame rule's reader of the Frame loop's ticks, for a run that keeps the rule for each thing it
3
+ * moves, each begun at its own time: a long task delays a frame, whose dt then holds the task's time, and a
4
+ * thing begun in that task, or in the late frame after its tick, takes none of it. The loop carries its
5
+ * `Reader`: what one made now owes, and the dt of each of its steps while it owes one. A loop that carries
6
+ * none (a test's own) is read with `owingNothing`, under which nothing owes.
7
+ *
8
+ * Unstable, for Wardic's own packages: public, with no semver promise.
9
+ *
10
+ * @example
11
+ * import * as FirstSteps from "@wardic/core/unstable/FirstSteps"
12
+ * import * as Option from "effect/Option"
13
+ *
14
+ * const ticks = Option.getOrElse(FirstSteps.readerOf(loop), () => FirstSteps.owingNothing)
15
+ * // A thing made now: what it owes.
16
+ * let owed = ticks.madeOwing()
17
+ * // A step of it at the tick's `dt`, while it owes: its own dt, and what it owes after.
18
+ * const own = ticks.owingDt(owed, dt)
19
+ * owed = ticks.owedAfter(owed)
20
+ *
21
+ * @module
22
+ */
23
+ export type { Reader } from "../internal/firstSteps.ts";
24
+ export { owingNothing, readerOf } from "../internal/firstSteps.ts";
25
+ //# sourceMappingURL=FirstSteps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirstSteps.d.ts","sourceRoot":"","sources":["../../src/unstable/FirstSteps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,YAAY,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { owingNothing, readerOf } from "../internal/firstSteps.js";
2
+ //# sourceMappingURL=FirstSteps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirstSteps.js","sourceRoot":"","sources":["../../src/unstable/FirstSteps.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA"}
@@ -4,54 +4,55 @@
4
4
  * sinks, and its Environment the edges it reads (`GateEnvironment`); the gate imports nothing from a
5
5
  * framework.
6
6
  *
7
- * Per ADR-0006, per-frame writes never reach their element directly. Each source
7
+ * Per ADR-0006, per-frame writes never reach their Subject directly. Each source
8
8
  * `write(id, partialValues)`s into a provider-owned gate that:
9
9
  *
10
- * 1. Accumulates *value-maps* (NOT already-projected Patches) per element,
11
- * merging partials by key — so multiple sources can feed one element
10
+ * 1. Accumulates *value-maps* (NOT already-projected Patches) per Subject,
11
+ * merging partials by key — so multiple sources can feed one Subject
12
12
  * (e.g. a drag setting `x`/`y` while a spring drives `scale`, all
13
13
  * collapsing into one grouped `transform`). Projecting per source would
14
14
  * clobber the grouped transform.
15
15
  * 2. Resolves the Renderer's PURE `project` ONCE at creation and uses it to
16
- * turn each dirty element's merged value-map into a `Patch` exactly once
17
- * per element per frame.
18
- * 3. Commits each resulting Patch onto its element with the Renderer's `commit`, a plain
19
- * call (ADR-0034) — one pass over the elements per frame, shared by every element: at the end of the
16
+ * turn each dirty Subject's merged value-map into a `Patch` exactly once
17
+ * per Subject per frame; or, for a Renderer with a projector (`unstable/Projector`),
18
+ * the Subject's own, made when it registers, whose patch it rewrites in place.
19
+ * 3. Commits each resulting Patch onto its Subject with the Renderer's `commit`, a plain
20
+ * call (ADR-0034) — one pass over the Subjects per frame, shared by every Subject: at the end of the
20
21
  * Frame loop's tick, in the Refresh frame that computed the values (ADR-0033). No
21
- * framework runs per frame: a binding's render carries an element's style only until its
22
+ * framework runs per frame: a binding's render carries a Subject's style only until its
22
23
  * first commit (ADR-0021, decision 6), and after it only the keys the gate doesn't hold.
23
24
  *
24
25
  * Three locked design decisions (this session's grills):
25
26
  * - FLUSHED at the end of the Frame loop's tick (ADR-0033): the gate registers a hook on
26
27
  * the Environment's loop (`afterTick`), so everything a tick writes is applied at the end
27
- * of that tick, inside the Clock's callback, and paints in that Refresh frame. A write
28
+ * of that tick, inside the Clock's callback, and drawn in that Refresh frame. A write
28
29
  * made outside a tick (a drag's move, a `release` from a task, an effect a sink's hook ran,
29
30
  * a Tier 2 `Stream` on `Clock.ticks` subscribed after the loop) still requests a
30
31
  * Refresh frame, only if one is not already pending, and the hook withdraws that request
31
32
  * when it flushes first. `flush` does NOT auto-reschedule, so an idle accumulator
32
33
  * requests no frames — the next `write` does. The frames come from the Environment's
33
34
  * `RefreshFrameSource` (ADR-0031): `@wardic/dom`'s is its runtime's frame callback. No binding
34
- * asks its runtime for frames itself. A Tier 2 `Stream` that writes here paints in
35
+ * asks its runtime for frames itself. A Tier 2 `Stream` that writes here is drawn in
35
36
  * the loop's frame or the next one, by its subscription order (ADR-0033): run it on the
36
- * loop (`Machine.run`) to paint with it.
37
- * - ONE flush per frame: all dirty elements flush together. The one exception
37
+ * loop (`Machine.run`) to be drawn with it.
38
+ * - ONE flush per frame: all dirty Subjects flush together. The one exception
38
39
  * is `flushPass` (ADR-0018): a projection Measure pass's own writes are applied
39
- * at the end of its task, so a new layout never paints without its projection.
40
- * - ONE sink shape (ADR-0034): a sink is the element its patch is committed onto. The gate
41
- * also removes a key its last patch had and this one doesn't (a dragged element's raise
42
- * once it's dropped, ADR-0016 *Amendment (Reorder)*), restoring the element's own
40
+ * at the end of its task, so a new layout is never drawn without its projection.
41
+ * - ONE sink shape (ADR-0034): a sink is the Subject its patch is committed onto. The gate
42
+ * also removes a key its last patch had and this one doesn't (a dragged Subject's raise
43
+ * once it's dropped, ADR-0016 *Amendment (Reorder)*), restoring the Subject's own
43
44
  * value, saved before the gate first wrote the key. Two hooks reach the binding,
44
45
  * outside the commits, each in the binding's `batch` (ADR-0034, *Amendment (#209)*): the
45
- * Starting-style switch before an element's first commit (`beforeFirstCommit`), and the keys
46
- * the gate holds on the element whenever they change (`onHeld`), so the binding's `style`
46
+ * Starting-style switch before a Subject's first commit (`beforeFirstCommit`), and the keys
47
+ * the gate holds on the Subject whenever they change (`onHeld`), so the binding's `style`
47
48
  * leaves them to Wardic.
48
49
  *
49
50
  * Observability (CONTEXT.md convention): the hot path (`write`/`flush`) is the
50
51
  * per-frame work, so — exactly like core's per-frame writes and the Clock's
51
- * `tick` — it stays quiet (no span, no per-call log, no metric). A throw in one element's step (its
52
- * binding's hook, the read of its own value, its Timeline values, its commit) is that element's: it
52
+ * `tick` — it stays quiet (no span, no per-call log, no metric). A throw in one Subject's step (its
53
+ * binding's hook, the read of its own value, its Timeline values, its commit) is that Subject's: it
53
54
  * commits nothing that frame, a run of them is reported once (`Report.failure`) until it commits again,
54
- * and every other element still commits. Anything else a flush throws is reported and the gate
55
+ * and every other Subject still commits. Anything else a flush throws is reported and the gate
55
56
  * goes on, so it can't fail the Frame loop's tick it runs in (ADR-0033).
56
57
  *
57
58
  * Unstable, for Wardic's own packages: public, with no semver promise.
@@ -71,32 +72,32 @@ import * as Scope from "effect/Scope";
71
72
  * at flush time.
72
73
  */
73
74
  export interface FlushSink {
74
- /** The element the patch is committed onto. */
75
+ /** The Subject the patch is committed onto. */
75
76
  readonly target: unknown;
76
77
  /**
77
- * Called once, just before the element's first commit in a frame flush (not a Measure
78
- * pass's `flushPass`), inside the binding's `batch` with every other element's switch that
78
+ * Called once, just before the Subject's first commit in a frame flush (not a Measure
79
+ * pass's `flushPass`), inside the binding's `batch` with every other Subject's switch that
79
80
  * flush: a binding drops its Starting style from its `style` here,
80
81
  * so its framework removes those keys and the commit writes the first frame in the same
81
- * Refresh frame, with no paint in between.
82
+ * Refresh frame, with nothing drawn in between.
82
83
  */
83
84
  readonly beforeFirstCommit?: (() => void) | undefined;
84
85
  /**
85
- * Called with every key the gate now holds on the element, each time that set changes: after the
86
+ * Called with every key the gate now holds on the Subject, each time that set changes: after the
86
87
  * gate restores a key it dropped, and before the commit that first
87
- * writes a key. A binding whose `style` reaches the element leaves these keys out of it,
88
+ * writes a key. A binding whose `style` reaches the Subject leaves these keys out of it,
88
89
  * so its framework never writes over Wardic's value (`style` is a key's fallback). Called in
89
- * the binding's `batch`, with every other element's whose keys changed that flush, so what the
90
- * binding changes reaches the element before the commit, a framework that applies an update later
90
+ * the binding's `batch`, with every other Subject's whose keys changed that flush, so what the
91
+ * binding changes reaches the Subject before the commit, a framework that applies an update later
91
92
  * (Solid 2) included.
92
93
  */
93
94
  readonly onHeld?: ((keys: ReadonlyArray<string>) => void) | undefined;
94
95
  /**
95
- * Called once per frame in which the element's values were committed, after every commit of that
96
+ * Called once per frame in which the Subject's values were committed, after every commit of that
96
97
  * frame (Motion's `onUpdate`), with its values before
97
- * projection (`x` as a number). The object is the element's own, reused each call: valid during
98
+ * projection (`x` as a number). The object is the Subject's own, reused each call: valid during
98
99
  * the call, copied to keep. A Measure pass's commits are told at the frame flush after them, so
99
- * a frame tells each element once. A write it makes is the next frame's. A throw is reported,
100
+ * a frame tells each Subject once. A write it makes is the next frame's. A throw is reported,
100
101
  * and the others are still told.
101
102
  */
102
103
  readonly onCommit?: ((values: Readonly<Record<string, unknown>>) => void) | undefined;
@@ -109,24 +110,24 @@ export interface GateTimeline {
109
110
  /**
110
111
  * What the gate reads of its Environment's targets, and what it keeps from a sink: a target's value
111
112
  * for a key before the gate first writes it there (`""` for none), which it gives back at the key's
112
- * release, and the key its Renderer reserves for an element's Transform template, which `onCommit`
113
+ * release, and the key its Renderer reserves for a Subject's Transform template, which `onCommit`
113
114
  * never sees.
114
115
  */
115
116
  export interface GateEnvironment {
116
117
  readonly valueBeforeOf: (target: unknown, key: string) => string;
117
118
  readonly templateKey: string;
118
119
  }
119
- /** A Flush gate: what a binding registers its elements with and writes their values into, one per provider. */
120
+ /** A Flush gate: what a binding registers its Subjects with and writes their values into, one per provider. */
120
121
  export interface FlushGate {
121
122
  /**
122
- * Register an element under `id` with its `sink`. Returns an unregister fn
123
- * that removes the element from the accumulator (a subsequent `write` is a
123
+ * Register a Subject under `id` with its `sink`. Returns an unregister fn
124
+ * that removes the Subject from the accumulator (a subsequent `write` is a
124
125
  * no-op). `values` start its value-map, unflushed: drawn with its first `write`, so they never
125
126
  * commit alone.
126
127
  */
127
128
  readonly register: (id: string, sink: FlushSink, values?: Readonly<Record<string, unknown>>) => () => void;
128
129
  /**
129
- * Merge `partial` into the element's value-map by key, mark it dirty, and
130
+ * Merge `partial` into the Subject's value-map by key, mark it dirty, and
130
131
  * schedule a flush: the end of the Frame loop's tick, for a write made in one, or else the
131
132
  * next Refresh frame. A `write` for an unregistered (or unregistered-since) id
132
133
  * is a no-op.
@@ -138,41 +139,41 @@ export interface FlushGate {
138
139
  * `pass()` runs are recorded; each recorded entry is `project`ed and committed once, and
139
140
  * marked clean. Everything else stays dirty for its flush. A write made by an effect a sink's
140
141
  * hook runs (a Solid effect) takes the ordinary path. The Projection system calls it at the
141
- * end of a task, so a new layout never paints without its projection.
142
+ * end of a task, so a new layout is never drawn without its projection.
142
143
  */
143
144
  readonly flushPass: (pass: () => void) => void;
144
145
  /**
145
- * Hand `keys` back to the element's own style: drop each from the element's
146
+ * Hand `keys` back to the Subject's own style: drop each from the Subject's
146
147
  * value-map and schedule a flush, which writes `restore[key]` (its Environment's text form) for a key it had
147
- * written, or else the element's own value it overwrote, and tells the sink (`onHeld`). A key the
148
+ * written, or else the Subject's own value it overwrote, and tells the sink (`onHeld`). A key the
148
149
  * entry doesn't hold, or an unknown id, is a no-op. A binding releases a key back at its `style`
149
150
  * value, so a later `style` change shows at rest. A later `write` brings the key back. A property in
150
151
  * `keep` (`transform` for its keys) is left as it's drawn when it drops out: another writer draws it next.
151
152
  */
152
153
  readonly release: (id: string, keys: ReadonlyArray<string>, restore?: Readonly<Record<string, string>>, keep?: ReadonlyArray<string>) => void;
153
154
  /**
154
- * The element's value for `id`'s `key`, live: an `Atom` set as each write that
155
+ * The Subject's value for `id`'s `key`, live: an `Atom` set as each write that
155
156
  * changes it lands, so it's the value the next commit draws, before the Renderer projects it
156
157
  * (`x` as a number, not a `transform`). Set at the write, not the commit, so a value derived
157
158
  * from it (another key following it through a binding) is written in the same frame and
158
159
  * commits with it. `undefined` before the key's first write, and once it's released or the
159
- * element unregisters. One Atom for an id and a key, made on first ask, so per frame only the
160
+ * Subject unregisters. One Atom for an id and a key, made on first ask, so per frame only the
160
161
  * keys asked for cost anything.
161
162
  */
162
163
  readonly valueOf: (id: string, key: string) => Atom.Atom<unknown>;
163
164
  /**
164
- * Run `key`'s Timeline value on `id`'s element (#240), or stop it (`undefined`): a binding sets one
165
+ * Run `key`'s Timeline value on `id`'s Subject (#240), or stop it (`undefined`): a binding sets one
165
166
  * while the key shows its Live value, and clears it when an entry of the Override stack takes the
166
- * key. The gate goes on writing the key: at each flush that commits the element, before the commit,
167
+ * key. The gate goes on writing the key: at each flush that commits the Subject, before the commit,
167
168
  * it starts the value's animation over it, or cancels it while something else adds to its property
168
169
  * (a projection, a Transform template, another transform key off its identity), so a frame shows one
169
170
  * or the other. A cleared or replaced one is cancelled at the next flush; a released key's, an
170
- * unregistered element's and a disposed gate's, at once. Setting one schedules a flush.
171
+ * unregistered Subject's and a disposed gate's, at once. Setting one schedules a flush.
171
172
  */
172
173
  readonly timeline: (id: string, key: string, timeline: GateTimeline | undefined) => void;
173
174
  /**
174
175
  * Call `fn` once, after the gate's next flush: the end of the Frame loop's tick, for a call
175
- * made in one, else the next Refresh frame's, so what was written before it is on the elements.
176
+ * made in one, else the next Refresh frame's, so what was written before it is on the Subjects.
176
177
  * It schedules that flush if none is pending. A binding tells an animation's end here, as Motion's
177
178
  * `onAnimationComplete` comes with the final value set. One that throws is reported, and the rest
178
179
  * still run.
@@ -183,7 +184,7 @@ export interface FlushGate {
183
184
  }
184
185
  /** The gate as its spine and its binding use it: all but its `dispose`, which its Scope runs. */
185
186
  export type Shape = Omit<FlushGate, "dispose">;
186
- /** An element's commit target and hooks, given to `register`. */
187
+ /** A Subject's commit target and hooks, given to `register`. */
187
188
  export type Sink = FlushSink;
188
189
  /** What a flush gate needs from its Environment: the `Renderer`, the Frame loop it flushes at the end of each tick of, and the `RefreshFrameSource`. */
189
190
  export type FlushGateServices = Renderer.Renderer | RefreshFrameSource.RefreshFrameSource | FrameLoop.FrameLoop | AtomRegistry.AtomRegistry;
@@ -201,11 +202,11 @@ export interface FlushGateRuntime {
201
202
  export interface FlushGateOptions {
202
203
  /**
203
204
  * Runs a flush's hooks together: calls `apply`, and returns once every update inside it has reached
204
- * the elements, before the gate commits. Solid 1 passes its `batch`, Solid 2 runs `apply` then
205
+ * the Subjects, before the gate commits. Solid 1 passes its `batch`, Solid 2 runs `apply` then
205
206
  * `flush()`, and React would pass `flushSync`, untried; a binding with nothing to batch passes
206
207
  * `(apply) => apply()`. Called at most twice a flush: once for the starting-style switches
207
- * (`beforeFirstCommit`) of the elements committing for the first time, before anything is read off the
208
- * elements; and once for the held keys (`onHeld`) of the elements whose held keys changed.
208
+ * (`beforeFirstCommit`) of the Subjects committing for the first time, before anything is read off the
209
+ * Subjects; and once for the held keys (`onHeld`) of the Subjects whose held keys changed.
209
210
  */
210
211
  readonly batch: (apply: () => void) => void;
211
212
  }
@@ -214,7 +215,8 @@ export interface FlushGateOptions {
214
215
  * switches through the binding's `batch`.
215
216
  *
216
217
  * Resolves both ONCE here: `project` is pure and `commit` a plain call (both called directly at
217
- * flush, ADR-0034), `requestFrame` /
218
+ * flush, ADR-0034), and a Renderer's projector maker makes each Subject's projector as it registers;
219
+ * `requestFrame` /
218
220
  * `cancelFrame` schedule and cancel the flush of a write made outside a tick, and the Frame
219
221
  * loop's `afterTick` takes the gate's hook for its lifetime. All come from whichever env the
220
222
  * provider was given (`DomLive` / `TestLive`), so the gate inherits that environment's
@@ -1 +1 @@
1
- {"version":3,"file":"FlushGate.d.ts","sourceRoot":"","sources":["../../src/unstable/FlushGate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAIH,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,kBAAkB,MA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