@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,12 @@
1
+ import type * as Feature from "../Feature.ts";
2
+ import * as Keys from "./Keys.ts";
3
+ /**
4
+ * Every CSS colour space beyond a hex, `rgb()`, `hsl()` and the colour names, which every element
5
+ * reads: `oklch()`, `lab()`, `lch()`, `oklab()`, `hwb()` and `color()`'s spaces (`display-p3`,
6
+ * `rec2020` …). Blends don't change: every colour blends in sRGB. culori
7
+ * keeps its spaces in one registry for the page, so once one provider, or a server render, registers
8
+ * them, every element on the page reads them; a pair another provider resolved before stays as it
9
+ * was resolved there.
10
+ */
11
+ export declare const colors: Feature.Feature<Keys.Colors, true, "colors">;
12
+ //# sourceMappingURL=Colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Colors.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/Colors.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAY/D,CAAA"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The **`colors` Feature** (#511, ADR-0067 decision 5), in a module of its own: an app that never
3
+ * imports it ships none of its colour spaces. Its top-level calls are marked pure: without the marks,
4
+ * Rollup kept `registerSpaces` and every space's definition for the callback `Effect.sync` is given,
5
+ * though nothing of the module's was emitted (1 KB gzipped on a Slim element's app).
6
+ *
7
+ * Unstable, for Wardic's own packages: public, with no semver promise.
8
+ *
9
+ * @module
10
+ */
11
+ // Unstable: ADR-0071, decision 5. #672 (PR6-Q1): solid's `features/colors.ts`, moved to dom with the Features, for
12
+ // every DOM binding.
13
+ import * as InterpolatorRegistry from "@wardic/core/InterpolatorRegistry";
14
+ import * as Color from "../../Color.js";
15
+ import * as Effect from "effect/Effect";
16
+ import * as Layer from "effect/Layer";
17
+ import * as Keys from "./Keys.js";
18
+ /**
19
+ * Every CSS colour space beyond a hex, `rgb()`, `hsl()` and the colour names, which every element
20
+ * reads: `oklch()`, `lab()`, `lch()`, `oklab()`, `hwb()` and `color()`'s spaces (`display-p3`,
21
+ * `rec2020` …). Blends don't change: every colour blends in sRGB. culori
22
+ * keeps its spaces in one registry for the page, so once one provider, or a server render, registers
23
+ * them, every element on the page reads them; a pair another provider resolved before stays as it
24
+ * was resolved there.
25
+ */
26
+ export const colors = {
27
+ name: "colors",
28
+ key: Keys.Colors,
29
+ // The provider's registry forgets the pairs it resolved before: one with a wide-gamut colour read as
30
+ // a complex value then is a colour from now on (decision 8, "from then on").
31
+ layer: /*#__PURE__*/ Layer.effect(Keys.Colors)(
32
+ /*#__PURE__*/ Effect.flatMap(InterpolatorRegistry.InterpolatorRegistry, (registry) => {
33
+ Color.registerSpaces();
34
+ return Effect.as(registry.forget, true);
35
+ })),
36
+ server: Color.registerSpaces,
37
+ };
38
+ //# sourceMappingURL=Colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Colors.js","sourceRoot":"","sources":["../../../src/unstable/features/Colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,mHAAmH;AACnH,qBAAqB;AACrB,OAAO,KAAK,oBAAoB,MAAM,mCAAmC,CAAA;AACzE,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAErC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAiD;IAClE,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,IAAI,CAAC,MAAM;IAChB,qGAAqG;IACrG,6EAA6E;IAC7E,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;IAC5C,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAAC,oBAAoB,EAAE,CAAC,QAAQ,EAAE,EAAE;QACnF,KAAK,CAAC,cAAc,EAAE,CAAA;QACtB,OAAO,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAa,CAAC,CAAA;IAClD,CAAC,CAAC,CACH;IACD,MAAM,EAAE,KAAK,CAAC,cAAc;CAC7B,CAAA"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Motion's `domAnimation` bundle (#511, ADR-0067 decision 3), as a list of Features: give it where a
3
+ * list goes (`features={domAnimation}`, or nested, `features={[domAnimation, layout]}`). In a module
4
+ * apart from `domMax` (#548), so a page given `domAnimation` never ships `domMax`'s Features with it.
5
+ *
6
+ * Unstable, for Wardic's own packages: public, with no semver promise.
7
+ *
8
+ * @module
9
+ */
10
+ import * as Focus from "./Focus.ts";
11
+ import * as Hover from "./Hover.ts";
12
+ import * as InView from "./InView.ts";
13
+ import * as Press from "./Press.ts";
14
+ /** Motion's `domAnimation`: the gestures an element animates on without dragging, `hover`, `press`, `focus` and `inView`. */
15
+ export declare const domAnimation: readonly [typeof Hover.hover, typeof Press.press, typeof Focus.focus, typeof InView.inView];
16
+ //# sourceMappingURL=DomAnimation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DomAnimation.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/DomAnimation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,6HAA6H;AAE7H,eAAO,MAAM,YAAY,EAAE,SAAS,CAAC,OAAO,KAAK,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,KAAK,EAAE,OAAO,MAAM,CAAC,MAAM,CAA0D,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Motion's `domAnimation` bundle (#511, ADR-0067 decision 3), as a list of Features: give it where a
3
+ * list goes (`features={domAnimation}`, or nested, `features={[domAnimation, layout]}`). In a module
4
+ * apart from `domMax` (#548), so a page given `domAnimation` never ships `domMax`'s Features with it.
5
+ *
6
+ * Unstable, for Wardic's own packages: public, with no semver promise.
7
+ *
8
+ * @module
9
+ */
10
+ // Unstable: ADR-0071, decision 5. #672 (PR6-Q1): solid's `features/dom-animation.ts`, moved to dom with the Features, for
11
+ // every DOM binding.
12
+ import * as Focus from "./Focus.js";
13
+ import * as Hover from "./Hover.js";
14
+ import * as InView from "./InView.js";
15
+ import * as Press from "./Press.js";
16
+ /** Motion's `domAnimation`: the gestures an element animates on without dragging, `hover`, `press`, `focus` and `inView`. */
17
+ // A tuple, so a Wardic instance's types keep each Feature's name (#516).
18
+ export const domAnimation = [Hover.hover, Press.press, Focus.focus, InView.inView];
19
+ //# sourceMappingURL=DomAnimation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DomAnimation.js","sourceRoot":"","sources":["../../../src/unstable/features/DomAnimation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,0HAA0H;AAC1H,qBAAqB;AACrB,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,6HAA6H;AAC7H,yEAAyE;AACzE,MAAM,CAAC,MAAM,YAAY,GAAgG,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Motion's `domMax` bundle (#511, ADR-0067 decision 3), as a list of Features: every one, as a Complete
3
+ * element has. In a module apart from `domAnimation` (#548).
4
+ *
5
+ * Unstable, for Wardic's own packages: public, with no semver promise.
6
+ *
7
+ * @module
8
+ */
9
+ import * as All from "./All.ts";
10
+ /** Motion's `domMax`: every Feature, `pan`, `drag`, `layout` and `colors` beside `domAnimation`'s, as a Complete element has. */
11
+ export declare const domMax: typeof All.ALL;
12
+ //# sourceMappingURL=DomMax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DomMax.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/DomMax.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,iIAAiI;AACjI,eAAO,MAAM,MAAM,EAAE,OAAO,GAAG,CAAC,GAAa,CAAA"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Motion's `domMax` bundle (#511, ADR-0067 decision 3), as a list of Features: every one, as a Complete
3
+ * element has. In a module apart from `domAnimation` (#548).
4
+ *
5
+ * Unstable, for Wardic's own packages: public, with no semver promise.
6
+ *
7
+ * @module
8
+ */
9
+ // Unstable: ADR-0071, decision 5. #672 (PR6-Q1): solid's `features/dom-max.ts`, moved to dom with the Features, for
10
+ // every DOM binding.
11
+ import * as All from "./All.js";
12
+ /** Motion's `domMax`: every Feature, `pan`, `drag`, `layout` and `colors` beside `domAnimation`'s, as a Complete element has. */
13
+ export const domMax = All.ALL;
14
+ //# sourceMappingURL=DomMax.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DomMax.js","sourceRoot":"","sources":["../../../src/unstable/features/DomMax.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oHAAoH;AACpH,qBAAqB;AACrB,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,iIAAiI;AACjI,MAAM,CAAC,MAAM,MAAM,GAAmB,GAAG,CAAC,GAAG,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type * as Feature from "../Feature.ts";
2
+ import * as Keys from "./Keys.ts";
3
+ /** Drag gestures: `drag`, `dragControls`, the drag callbacks, and what a `Reorder` item drags with. */
4
+ export declare const drag: Feature.Feature<Keys.DragGesture, Keys.DragGesture["Service"], "drag">;
5
+ //# sourceMappingURL=Drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drag.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/Drag.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAGjC,uGAAuG;AACvG,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,MAAM,CAYvF,CAAA"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The **`drag` Feature** (#511, ADR-0067 decision 3): an element's drag (`drag`, `dragControls`, its
3
+ * constraints, its release's inertia; Solid 2's `"drag"` events), in a module of its own, so an app that
4
+ * never imports it ships none of it: the drag track (`DragTrack`), core's `Drag` and `Inertia`. Its
5
+ * top-level calls are marked pure, as every Feature module's are.
6
+ *
7
+ * Unstable, for Wardic's own packages: public, with no semver promise.
8
+ *
9
+ * @module
10
+ */
11
+ // Unstable: ADR-0071, decision 5. #672 (PR6-Q1): solid's `features/drag.ts`, moved to dom with the Features, for
12
+ // every DOM binding.
13
+ import * as InputSource from "@wardic/core/InputSource";
14
+ import * as Effect from "effect/Effect";
15
+ import * as DragConstraints from "../DragConstraints.js";
16
+ import * as DragTrack from "../DragTrack.js";
17
+ import * as Keys from "./Keys.js";
18
+ import * as Input from "./Input.js";
19
+ /** Drag gestures: `drag`, `dragControls`, the drag callbacks, and what a `Reorder` item drags with. */
20
+ export const drag = {
21
+ name: "drag",
22
+ key: Keys.DragGesture,
23
+ layer: /*#__PURE__*/ Input.gestureLayer(Keys.DragGesture, (source) => ({
24
+ drive: (run) => DragTrack.driveDragTrack({
25
+ ...run,
26
+ watch: (track) => run.watch((onDefect) => Effect.provideService(track(onDefect), InputSource.InputSource, source)),
27
+ fork: (response) => run.fork(Effect.provideService(response, InputSource.InputSource, source)),
28
+ }),
29
+ constraintsOf: DragConstraints.trackConstraintsOf,
30
+ })),
31
+ };
32
+ //# sourceMappingURL=Drag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drag.js","sourceRoot":"","sources":["../../../src/unstable/features/Drag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,iHAAiH;AACjH,qBAAqB;AACrB,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,uGAAuG;AACvG,MAAM,CAAC,MAAM,IAAI,GAA2E;IAC1F,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,IAAI,CAAC,WAAW;IACrB,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACrE,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CACb,SAAS,CAAC,cAAc,CAAC;YACvB,GAAG,GAAG;YACN,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;YAClH,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;SAC/F,CAAC;QACJ,aAAa,EAAE,eAAe,CAAC,kBAAkB;KAClD,CAAC,CAAC;CACJ,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type * as Feature from "../Feature.ts";
2
+ import * as Keys from "./Keys.ts";
3
+ /** Focus gestures: `whileFocus`. */
4
+ export declare const focus: Feature.Feature<Keys.FocusGesture, Keys.FocusGesture["Service"], "focus">;
5
+ //# sourceMappingURL=Focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Focus.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/Focus.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAGjC,oCAAoC;AACpC,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,OAAO,CAI3F,CAAA"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The **`focus` Feature** (#511, ADR-0067 decision 3): an element's focus as the browser shows it (`whileFocus`), in a module of its own, so an app that
3
+ * never imports it ships none of it. Its top-level calls are marked pure, as every Feature module's are.
4
+ *
5
+ * Unstable, for Wardic's own packages: public, with no semver promise.
6
+ *
7
+ * @module
8
+ */
9
+ // Unstable: ADR-0071, decision 5. #672 (PR6-Q1): solid's `features/focus.ts`, moved to dom with the Features, for
10
+ // every DOM binding.
11
+ import * as Recognizer from "@wardic/core/Recognizer";
12
+ import * as Keys from "./Keys.js";
13
+ import * as Input from "./Input.js";
14
+ /** Focus gestures: `whileFocus`. */
15
+ export const focus = {
16
+ name: "focus",
17
+ key: Keys.FocusGesture,
18
+ layer: /*#__PURE__*/ Input.gestureLayer(Keys.FocusGesture, (source) => ({ watch: Input.withInput(source, Recognizer.watchFocus) })),
19
+ };
20
+ //# sourceMappingURL=Focus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Focus.js","sourceRoot":"","sources":["../../../src/unstable/features/Focus.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,kHAAkH;AAClH,qBAAqB;AACrB,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAA;AAErD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,oCAAoC;AACpC,MAAM,CAAC,MAAM,KAAK,GAA8E;IAC9F,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,IAAI,CAAC,YAAY;IACtB,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;CACpI,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type * as Feature from "../Feature.ts";
2
+ import * as Keys from "./Keys.ts";
3
+ /** Hover gestures: `whileHover` and the hover callbacks. */
4
+ export declare const hover: Feature.Feature<Keys.HoverGesture, Keys.HoverGesture["Service"], "hover">;
5
+ //# sourceMappingURL=Hover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hover.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/Hover.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAGjC,4DAA4D;AAC5D,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,OAAO,CAI3F,CAAA"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The **`hover` Feature** (#511, ADR-0067 decision 3): an element's hover (`whileHover`, `onHoverStart`, `onHoverEnd`; Solid 2's `"hover"` events), in a module of its own, so an app that
3
+ * never imports it ships none of it. Its top-level calls are marked pure, as every Feature module's are.
4
+ *
5
+ * Unstable, for Wardic's own packages: public, with no semver promise.
6
+ *
7
+ * @module
8
+ */
9
+ // Unstable: ADR-0071, decision 5. #672 (PR6-Q1): solid's `features/hover.ts`, moved to dom with the Features, for
10
+ // every DOM binding.
11
+ import * as Recognizer from "@wardic/core/Recognizer";
12
+ import * as Keys from "./Keys.js";
13
+ import * as Input from "./Input.js";
14
+ /** Hover gestures: `whileHover` and the hover callbacks. */
15
+ export const hover = {
16
+ name: "hover",
17
+ key: Keys.HoverGesture,
18
+ layer: /*#__PURE__*/ Input.gestureLayer(Keys.HoverGesture, (source) => ({ watch: Input.withInput(source, Recognizer.watchHover) })),
19
+ };
20
+ //# sourceMappingURL=Hover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hover.js","sourceRoot":"","sources":["../../../src/unstable/features/Hover.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,kHAAkH;AAClH,qBAAqB;AACrB,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAA;AAErD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,4DAA4D;AAC5D,MAAM,CAAC,MAAM,KAAK,GAA8E;IAC9F,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,IAAI,CAAC,YAAY;IACtB,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;CACpI,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type * as Feature from "../Feature.ts";
2
+ import * as Keys from "./Keys.ts";
3
+ /** In-view gestures: `whileInView` and the viewport callbacks. It reads no input: the Probe's intersections. */
4
+ export declare const inView: Feature.Feature<Keys.InViewGesture, Keys.InViewGesture["Service"], "inView">;
5
+ //# sourceMappingURL=InView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InView.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/InView.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,gHAAgH;AAChH,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,QAAQ,CAI/F,CAAA"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The **`inView` Feature** (#511, ADR-0067 decision 3): an element's place in its viewport (`whileInView`, `onViewportEnter`, `onViewportLeave`, `viewport`), in a module of its own, so an app that
3
+ * never imports it ships none of it. Its top-level calls are marked pure, as every Feature module's are.
4
+ *
5
+ * Unstable, for Wardic's own packages: public, with no semver promise.
6
+ *
7
+ * @module
8
+ */
9
+ // Unstable: ADR-0071, decision 5. #672 (PR6-Q1): solid's `features/in-view.ts`, moved to dom with the Features, for
10
+ // every DOM binding.
11
+ import * as Recognizer from "@wardic/core/Recognizer";
12
+ import * as Layer from "effect/Layer";
13
+ import * as Keys from "./Keys.js";
14
+ /** In-view gestures: `whileInView` and the viewport callbacks. It reads no input: the Probe's intersections. */
15
+ export const inView = {
16
+ name: "inView",
17
+ key: Keys.InViewGesture,
18
+ layer: /*#__PURE__*/ Layer.succeed(Keys.InViewGesture)({ watch: Recognizer.watchInView }),
19
+ };
20
+ //# sourceMappingURL=InView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InView.js","sourceRoot":"","sources":["../../../src/unstable/features/InView.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oHAAoH;AACpH,qBAAqB;AACrB,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAA;AACrD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAErC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,gHAAgH;AAChH,MAAM,CAAC,MAAM,MAAM,GAAiF;IAClG,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,IAAI,CAAC,aAAa;IACvB,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,CAAC;CAC1F,CAAA"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * The gestures' input (#511, ADR-0067 decision 14): what every gesture Feature but `inView` stands on,
3
+ * in a module of its own. `DomLive` no longer builds the DOM's `InputSource`, so an app with no gesture
4
+ * ships none of it. Its top-level calls are marked pure, as every Feature module's are.
5
+ *
6
+ * Unstable, for Wardic's own packages: public, with no semver promise.
7
+ *
8
+ * @module
9
+ */
10
+ import * as InputSource from "@wardic/core/InputSource";
11
+ import * as Context from "effect/Context";
12
+ import * as Effect from "effect/Effect";
13
+ import * as Layer from "effect/Layer";
14
+ import * as Feature from "../Feature.ts";
15
+ /**
16
+ * The gestures' `InputSource`: the Environment's when it gives one (`@wardic/test`'s `TestLive`, a
17
+ * test's pushed input), else the DOM's, built over the page's `document`. One Layer, so a provider's
18
+ * `MemoMap` builds it once for every gesture Feature it has.
19
+ */
20
+ export declare const input: Layer.Layer<InputSource.InputSource>;
21
+ /** `watch` with the gestures' input given: what a gesture Feature hands its elements, which run it on their provider. */
22
+ export declare const withInput: <Args extends ReadonlyArray<unknown>, A, E, R>(source: InputSource.InputSource["Service"], watch: (...args: Args) => Effect.Effect<A, E, R>) => (...args: Args) => Effect.Effect<A, E, Exclude<R, InputSource.InputSource>>;
23
+ /**
24
+ * A gesture Feature's Layer: its service, made over the gestures' input, which it gives beside it, so
25
+ * a section with the Feature has the input too (a `Reorder` item's keys, a `createPress`).
26
+ */
27
+ export declare const gestureLayer: <I, S>(key: Context.Key<I, S>, make: (source: InputSource.InputSource["Service"]) => S) => Layer.Layer<I | InputSource.InputSource, never, Feature.ProviderServices>;
28
+ //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/Input.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAA;AAEvD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,eAAe,CAAA;AAExC;;;;GAIG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,CAAoF,CAAA;AAE3I,yHAAyH;AACzH,eAAO,MAAM,SAAS,GACnB,IAAI,SAAS,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,eACjI,IAAI,KAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CACA,CAAA;AAE1E;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC,KAAG,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,WAAW,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAC/F,CAAA"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The gestures' input (#511, ADR-0067 decision 14): what every gesture Feature but `inView` stands on,
3
+ * in a module of its own. `DomLive` no longer builds the DOM's `InputSource`, so an app with no gesture
4
+ * ships none of it. Its top-level calls are marked pure, as every Feature module's are.
5
+ *
6
+ * Unstable, for Wardic's own packages: public, with no semver promise.
7
+ *
8
+ * @module
9
+ */
10
+ // Unstable: ADR-0071, decision 5. #672 (PR6-Q1): solid's `features/input.ts`, moved to dom with the Features, for
11
+ // every DOM binding.
12
+ import * as InputSource from "@wardic/core/InputSource";
13
+ import * as DomInput from "../../DomInput.js";
14
+ import * as Context from "effect/Context";
15
+ import * as Effect from "effect/Effect";
16
+ import * as Layer from "effect/Layer";
17
+ import * as Feature from "../Feature.js";
18
+ /**
19
+ * The gestures' `InputSource`: the Environment's when it gives one (`@wardic/test`'s `TestLive`, a
20
+ * test's pushed input), else the DOM's, built over the page's `document`. One Layer, so a provider's
21
+ * `MemoMap` builds it once for every gesture Feature it has.
22
+ */
23
+ export const input = /*#__PURE__*/ Feature.fromEnvironmentOr(InputSource.InputSource, DomInput.layer);
24
+ /** `watch` with the gestures' input given: what a gesture Feature hands its elements, which run it on their provider. */
25
+ export const withInput = (source, watch) => (...args) => Effect.provideService(watch(...args), InputSource.InputSource, source);
26
+ /**
27
+ * A gesture Feature's Layer: its service, made over the gestures' input, which it gives beside it, so
28
+ * a section with the Feature has the input too (a `Reorder` item's keys, a `createPress`).
29
+ */
30
+ export const gestureLayer = (key, make) => Layer.effect(key)(Effect.map(InputSource.InputSource, make)).pipe(Layer.provideMerge(input));
31
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/unstable/features/Input.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,kHAAkH;AAClH,qBAAqB;AACrB,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAC7C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,eAAe,CAAA;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAyC,aAAa,CAAC,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAA;AAE3I,yHAAyH;AACzH,MAAM,CAAC,MAAM,SAAS,GACpB,CAA+C,MAA0C,EAAE,KAAgD,EAAE,EAAE,CAC/I,CAAC,GAAG,IAAU,EAA4D,EAAE,CAC1E,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;AAE1E;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAO,GAAsB,EAAE,IAAuD,EAA6E,EAAE,CAC/L,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA"}
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Every Feature's key (#548, ADR-0067 *Amendment (#548)*): the services an element's code looks up,
3
+ * apart from the Features themselves, whose Layers bring a gesture's or the colour spaces' code. Every
4
+ * page's elements import these; only a page whose section has a Feature imports its module. The
5
+ * `layout` Feature's key is dom's `ProjectionSystem`, beside {@link ProjectionNodes}, its element code's.
6
+ *
7
+ * Unstable, for Wardic's own packages: public, with no semver promise.
8
+ *
9
+ * @module
10
+ */
11
+ import type * as DragRecognizer from "@wardic/core/DragRecognizer";
12
+ import type * as InputFeed from "@wardic/core/InputFeed";
13
+ import type * as Probe from "@wardic/core/Probe";
14
+ import type * as Recognizer from "@wardic/core/Recognizer";
15
+ import * as ProjectionSystem from "../../ProjectionSystem.ts";
16
+ import * as Context from "effect/Context";
17
+ import type * as Effect from "effect/Effect";
18
+ import type { LazyArg } from "effect/Function";
19
+ import type * as Scope from "effect/Scope";
20
+ import type * as DragConstraints from "../DragConstraints.ts";
21
+ import type * as DragTrack from "../DragTrack.ts";
22
+ import type * as LayoutMember from "../LayoutMember.ts";
23
+ import type * as WardicServices from "@wardic/core/unstable/WardicServices";
24
+ declare const HoverGesture_base: Context.ServiceClass<HoverGesture, "@wardic/dom/unstable/HoverGesture", {
25
+ readonly watch: (target: unknown, handlers: Recognizer.HoverHandlers) => Effect.Effect<void, never, Scope.Scope>;
26
+ }>;
27
+ /** The `hover` Feature's service: an element's hover watched, over the gestures' input. */
28
+ export declare class HoverGesture extends /*#__PURE__*/ HoverGesture_base {
29
+ }
30
+ declare const PressGesture_base: Context.ServiceClass<PressGesture, "@wardic/dom/unstable/PressGesture", {
31
+ readonly watch: (element: unknown, handlers: InputFeed.Handlers<Recognizer.PressEvent>, keysTaken?: boolean, propagates?: LazyArg<boolean>) => Effect.Effect<void, never, Scope.Scope>;
32
+ }>;
33
+ /** The `press` Feature's service: an element's presses watched (`Press`), over the gestures' input. */
34
+ export declare class PressGesture extends /*#__PURE__*/ PressGesture_base {
35
+ }
36
+ declare const FocusGesture_base: Context.ServiceClass<FocusGesture, "@wardic/dom/unstable/FocusGesture", {
37
+ readonly watch: (target: unknown, options: Recognizer.FocusOptions, handlers: InputFeed.Handlers<boolean>) => Effect.Effect<void, never, Scope.Scope>;
38
+ }>;
39
+ /** The `focus` Feature's service: an element's focus watched, over the gestures' input. */
40
+ export declare class FocusGesture extends /*#__PURE__*/ FocusGesture_base {
41
+ }
42
+ declare const InViewGesture_base: Context.ServiceClass<InViewGesture, "@wardic/dom/unstable/InViewGesture", {
43
+ readonly watch: (target: unknown, options: Recognizer.InViewOptions, handlers: InputFeed.Handlers<Recognizer.ViewEdge>) => Effect.Effect<void, never, Scope.Scope | Probe.Probe>;
44
+ }>;
45
+ /** The `inView` Feature's service: an element's intersections watched, over the Environment's Probe. */
46
+ export declare class InViewGesture extends /*#__PURE__*/ InViewGesture_base {
47
+ }
48
+ declare const PanGesture_base: Context.ServiceClass<PanGesture, "@wardic/dom/unstable/PanGesture", {
49
+ readonly watch: (target: unknown, handlers: InputFeed.Handlers<DragRecognizer.PanSample>, options?: DragRecognizer.PanOptions) => Effect.Effect<void, never, Scope.Scope>;
50
+ }>;
51
+ /** The `pan` Feature's service: an element's pans watched, over the gestures' input. */
52
+ export declare class PanGesture extends /*#__PURE__*/ PanGesture_base {
53
+ }
54
+ /** What an element hands the drag Feature: the track's options, its watches and responses run on its provider. */
55
+ export interface DragRun extends Omit<DragTrack.DragTrackOptions, "watch" | "fork"> {
56
+ readonly watch: (track: (onDefect: InputFeed.OnDefect) => Effect.Effect<void, never, Scope.Scope | WardicServices.WardicServices>) => void;
57
+ readonly fork: (response: Effect.Effect<void, never, WardicServices.WardicServices>) => void;
58
+ }
59
+ declare const DragGesture_base: Context.ServiceClass<DragGesture, "@wardic/dom/unstable/DragGesture", {
60
+ readonly drive: (run: DragRun) => DragTrack.DragTrack;
61
+ readonly constraintsOf: typeof DragConstraints.trackConstraintsOf;
62
+ }>;
63
+ /**
64
+ * The `drag` Feature's service: an element's drag track driven over the gestures' input, and its
65
+ * `dragConstraints` read (a box, or a container measured against the element).
66
+ */
67
+ export declare class DragGesture extends /*#__PURE__*/ DragGesture_base {
68
+ }
69
+ declare const Colors_base: Context.ServiceClass<Colors, "@wardic/dom/unstable/Colors", true>;
70
+ /** The `colors` Feature's service: that the page reads every CSS colour space. */
71
+ export declare class Colors extends /*#__PURE__*/ Colors_base {
72
+ }
73
+ declare const ProjectionNodes_base: Context.ServiceClass<ProjectionNodes, "@wardic/dom/unstable/ProjectionNodes", {
74
+ /** A ward's node options, from its config (`LayoutMember`'s `layoutOptionsOf`). */
75
+ readonly optionsOf: (ward: LayoutMember.WardLayout) => LayoutMember.CreateProjectionNodeOptions;
76
+ /** What its node registers with the projection system (`LayoutMember`'s `registrationOf`). */
77
+ readonly registrationOf: (opts: LayoutMember.CreateProjectionNodeOptions) => ProjectionSystem.RegisterNodeOptions;
78
+ }>;
79
+ /**
80
+ * The `layout` Feature's element code (#746, ADR-0067 *Amendment (#746)*, decision 9), beside the
81
+ * projection system it builds: what makes a Wardic element's **Projection node**, its options from its
82
+ * config and its registration, so an app without `layout` ships neither.
83
+ */
84
+ export declare class ProjectionNodes extends /*#__PURE__*/ ProjectionNodes_base {
85
+ }
86
+ /** The projection system among `services`, the `layout` Feature's (#511), or `undefined` when they hold none. */
87
+ export declare const projectionIn: (services: Context.Context<never>) => ProjectionSystem.Shape | undefined;
88
+ /**
89
+ * The `layout` Feature's element code in `services` (#746): what makes a Wardic element's node on its
90
+ * projection system. Read where an element makes its node, from Features {@link projectionIn} found
91
+ * `layout` in, which give both.
92
+ */
93
+ export declare const projectionNodesIn: (services: Context.Context<never>) => ProjectionNodes["Service"];
94
+ export {};
95
+ //# sourceMappingURL=Keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Keys.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/Keys.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,44 @@
1
+ import * as ProjectionSystem from "../../ProjectionSystem.js";
2
+ import * as Context from "effect/Context";
3
+ import * as Option from "effect/Option";
4
+ /** The `hover` Feature's service: an element's hover watched, over the gestures' input. */
5
+ export class HoverGesture extends /*#__PURE__*/ /*#__PURE__*/ Context.Service()("@wardic/dom/unstable/HoverGesture") {
6
+ }
7
+ /** The `press` Feature's service: an element's presses watched (`Press`), over the gestures' input. */
8
+ export class PressGesture extends /*#__PURE__*/ /*#__PURE__*/ Context.Service()("@wardic/dom/unstable/PressGesture") {
9
+ }
10
+ /** The `focus` Feature's service: an element's focus watched, over the gestures' input. */
11
+ export class FocusGesture extends /*#__PURE__*/ /*#__PURE__*/ Context.Service()("@wardic/dom/unstable/FocusGesture") {
12
+ }
13
+ /** The `inView` Feature's service: an element's intersections watched, over the Environment's Probe. */
14
+ export class InViewGesture extends /*#__PURE__*/ /*#__PURE__*/ Context.Service()("@wardic/dom/unstable/InViewGesture") {
15
+ }
16
+ /** The `pan` Feature's service: an element's pans watched, over the gestures' input. */
17
+ export class PanGesture extends /*#__PURE__*/ /*#__PURE__*/ Context.Service()("@wardic/dom/unstable/PanGesture") {
18
+ }
19
+ /**
20
+ * The `drag` Feature's service: an element's drag track driven over the gestures' input, and its
21
+ * `dragConstraints` read (a box, or a container measured against the element).
22
+ */
23
+ export class DragGesture extends /*#__PURE__*/ /*#__PURE__*/ Context.Service()("@wardic/dom/unstable/DragGesture") {
24
+ }
25
+ /** The `colors` Feature's service: that the page reads every CSS colour space. */
26
+ export class Colors extends /*#__PURE__*/ /*#__PURE__*/ Context.Service()("@wardic/dom/unstable/Colors") {
27
+ }
28
+ /**
29
+ * The `layout` Feature's element code (#746, ADR-0067 *Amendment (#746)*, decision 9), beside the
30
+ * projection system it builds: what makes a Wardic element's **Projection node**, its options from its
31
+ * config and its registration, so an app without `layout` ships neither.
32
+ */
33
+ export class ProjectionNodes extends /*#__PURE__*/ /*#__PURE__*/ Context.Service()("@wardic/dom/unstable/ProjectionNodes") {
34
+ }
35
+ // #672: the readers of a section's layout services, out of solid's runtime.ts, with the keys they read.
36
+ /** The projection system among `services`, the `layout` Feature's (#511), or `undefined` when they hold none. */
37
+ export const projectionIn = (services) => Option.getOrUndefined(Context.getOption(services, ProjectionSystem.ProjectionSystem));
38
+ /**
39
+ * The `layout` Feature's element code in `services` (#746): what makes a Wardic element's node on its
40
+ * projection system. Read where an element makes its node, from Features {@link projectionIn} found
41
+ * `layout` in, which give both.
42
+ */
43
+ export const projectionNodesIn = (services) => Context.get(services, ProjectionNodes);
44
+ //# sourceMappingURL=Keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Keys.js","sourceRoot":"","sources":["../../../src/unstable/features/Keys.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAQvC,2FAA2F;AAC3F,MAAM,OAAO,YAAa,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAG5D,CAAC,mCAAmC,CAAC;CAAG;AAE3C,uGAAuG;AACvG,MAAM,OAAO,YAAa,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAU5D,CAAC,mCAAmC,CAAC;CAAG;AAE3C,2FAA2F;AAC3F,MAAM,OAAO,YAAa,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAG5D,CAAC,mCAAmC,CAAC;CAAG;AAE3C,wGAAwG;AACxG,MAAM,OAAO,aAAc,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAS7D,CAAC,oCAAoC,CAAC;CAAG;AAE5C,wFAAwF;AACxF,MAAM,OAAO,UAAW,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAS1D,CAAC,iCAAiC,CAAC;CAAG;AAQzC;;;GAGG;AACH,MAAM,OAAO,WAAY,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAM3D,CAAC,kCAAkC,CAAC;CAAG;AAE1C,kFAAkF;AAClF,MAAM,OAAO,MAAO,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAAgB,CAAC,6BAA6B,CAAC;CAAG;AAE3G;;;;GAIG;AACH,MAAM,OAAO,eAAgB,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAQ/D,CAAC,sCAAsC,CAAC;CAAG;AAE9C,wGAAwG;AACxG,iHAAiH;AACjH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAgC,EAAsC,EAAE,CACnG,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,QAA8D,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAE7I;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAgC,EAA8B,EAAE,CAChG,OAAO,CAAC,GAAG,CAAC,QAA4C,EAAE,eAAe,CAAC,CAAA"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * The **`layout` Feature** (#511, ADR-0067 decisions 3 and 15): the projection system (ADR-0009), in a
3
+ * module of its own, so an app that never imports it ships none of it. It's what a Slim element's
4
+ * `layout`, `layoutId` and `layoutScroll` need, and the shared-element crossfades and Switches between
5
+ * `layoutId` twins (ADR-0010). Its top-level calls are marked pure, as `colors`' are.
6
+ *
7
+ * Unstable, for Wardic's own packages: public, with no semver promise.
8
+ *
9
+ * @module
10
+ */
11
+ import type * as Announcer from "@wardic/core/Announcer";
12
+ import * as ProjectionSystem from "../../ProjectionSystem.ts";
13
+ import type * as ReorderController from "../../ReorderController.ts";
14
+ import type * as Context from "effect/Context";
15
+ import * as Feature from "../Feature.ts";
16
+ import * as Keys from "./Keys.ts";
17
+ /**
18
+ * Layout animations: a provider's projection system, built once for the provider, over its
19
+ * flush gate and with its reduced motion and scale correctors. Every section with it shares it, as the
20
+ * projection tree is the page's: a `layoutId` pair in two sections still crossfades.
21
+ */
22
+ export declare const layout: Feature.Feature<ProjectionSystem.ProjectionSystem, ProjectionSystem.Shape, "layout">;
23
+ /** What `layout` brings: the projection system, and what a Reorder controller over it takes beside it. */
24
+ export type LayoutServices = Exclude<ReorderController.Services, Announcer.Announcer>;
25
+ /** What the layout Feature's helpers read of a provider (Q15): its Features, built as they're asked for. */
26
+ export interface BringsFeatures {
27
+ readonly features: Pick<Feature.FeatureRegistry, "build">;
28
+ }
29
+ /**
30
+ * The projection system of `value`'s provider, its `layout` Feature built now if nothing has built it
31
+ * yet (#511, decision 12): what a component that brings it works with (`LayoutGroup`, `Reorder`,
32
+ * `createProjectionNode`), whatever its section has. A clear error during a server render, which builds
33
+ * none (ADR-0021).
34
+ */
35
+ export declare const projectionBrought: (value: BringsFeatures) => ProjectionSystem.Shape;
36
+ /**
37
+ * The `layout` Feature's element code (#746), brought as {@link projectionBrought} brings the projection
38
+ * system, whose call comes first and gives a server render's error: what `createProjectionNode` registers through.
39
+ */
40
+ export declare const projectionNodesBrought: (value: BringsFeatures) => Keys.ProjectionNodes["Service"];
41
+ /** {@link projectionBrought}'s services, all of them: what a Reorder controller is built with (#618). */
42
+ export declare const layoutBrought: (value: BringsFeatures) => Context.Context<LayoutServices>;
43
+ //# sourceMappingURL=Layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/Layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAA;AAGxD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,KAAK,iBAAiB,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAI9C,OAAO,KAAK,OAAO,MAAM,eAAe,CAAA;AAExC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,KAAK,EAAE,QAAQ,CAWvG,CAAA;AAED,0GAA0G;AAC1G,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,QAAQ,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;AAKrF,4GAA4G;AAE5G,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;CAC1D;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,UAAW,cAAc,KAAG,gBAAgB,CAAC,KAC2G,CAAA;AAEtL;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAAW,cAAc,KAAG,IAAI,CAAC,eAAe,CAAC,SAAS,CAAyD,CAAA;AAEtJ,yGAAyG;AACzG,eAAO,MAAM,aAAa,UAAW,cAAc,KAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAGnF,CAAA"}