@wardic/solid 1.1.0 → 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.
- package/dist/browser/animation-controls.js +3 -149
- package/dist/browser/animation-controls.js.map +1 -1
- package/dist/browser/appear.js +3 -782
- package/dist/browser/appear.js.map +1 -1
- package/dist/browser/batch-gestures.js.map +1 -1
- package/dist/browser/batch.js +3 -2511
- package/dist/browser/batch.js.map +1 -1
- package/dist/browser/config.js +11 -1
- package/dist/browser/config.js.map +1 -1
- package/dist/browser/create-animate.js +4 -2
- package/dist/browser/create-animate.js.map +1 -1
- package/dist/browser/create-batch.js +2 -2
- package/dist/browser/create-batch.js.map +1 -1
- package/dist/browser/create-ward.js +28 -5
- package/dist/browser/create-ward.js.map +1 -1
- package/dist/browser/drag-constraints.js +3 -75
- package/dist/browser/drag-constraints.js.map +1 -1
- package/dist/browser/drag-controls.js +3 -50
- package/dist/browser/drag-controls.js.map +1 -1
- package/dist/browser/drag-defaults.js +4 -0
- package/dist/browser/drag-defaults.js.map +1 -0
- package/dist/browser/drag-track.js +3 -826
- package/dist/browser/drag-track.js.map +1 -1
- package/dist/browser/drag-transition.js +3 -55
- package/dist/browser/drag-transition.js.map +1 -1
- package/dist/browser/element-setup.js +4 -0
- package/dist/browser/element-setup.js.map +1 -0
- package/dist/browser/element.js.map +1 -1
- package/dist/browser/feature.js +3 -305
- package/dist/browser/feature.js.map +1 -1
- package/dist/browser/features/all.js +3 -17
- package/dist/browser/features/all.js.map +1 -1
- package/dist/browser/features/colors.js +3 -32
- package/dist/browser/features/colors.js.map +1 -1
- package/dist/browser/features/dom-animation.js +3 -14
- package/dist/browser/features/dom-animation.js.map +1 -1
- package/dist/browser/features/dom-max.js +3 -9
- package/dist/browser/features/dom-max.js.map +1 -1
- package/dist/browser/features/drag.js +3 -27
- package/dist/browser/features/drag.js.map +1 -1
- package/dist/browser/features/focus.js +3 -17
- package/dist/browser/features/focus.js.map +1 -1
- package/dist/browser/features/hover.js +3 -17
- package/dist/browser/features/hover.js.map +1 -1
- package/dist/browser/features/in-view.js +3 -17
- package/dist/browser/features/in-view.js.map +1 -1
- package/dist/browser/features/input.js +3 -26
- package/dist/browser/features/input.js.map +1 -1
- package/dist/browser/features/keys.js +3 -24
- package/dist/browser/features/keys.js.map +1 -1
- package/dist/browser/features/layout.js +3 -43
- package/dist/browser/features/layout.js.map +1 -1
- package/dist/browser/features/pan.js +3 -17
- package/dist/browser/features/pan.js.map +1 -1
- package/dist/browser/features/press.js +3 -11
- package/dist/browser/features/press.js.map +1 -1
- package/dist/browser/features/scroll.js +3 -27
- package/dist/browser/features/scroll.js.map +1 -1
- package/dist/browser/gesture-features.js +3 -28
- package/dist/browser/gesture-features.js.map +1 -1
- package/dist/browser/gesture-info.js +3 -42
- package/dist/browser/gesture-info.js.map +1 -1
- package/dist/browser/imperative.js +3 -886
- package/dist/browser/imperative.js.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/instant.js +3 -50
- package/dist/browser/instant.js.map +1 -1
- package/dist/browser/layout-group.js +3 -26
- package/dist/browser/layout-group.js.map +1 -1
- package/dist/browser/layout-member.js +3 -371
- package/dist/browser/layout-member.js.map +1 -1
- package/dist/browser/lazy-batch-gestures.js.map +1 -1
- package/dist/browser/live-style.js +3 -323
- package/dist/browser/live-style.js.map +1 -1
- package/dist/browser/member-hold.js +3 -210
- package/dist/browser/member-hold.js.map +1 -1
- package/dist/browser/owner-scope.js +3 -28
- package/dist/browser/owner-scope.js.map +1 -1
- package/dist/browser/presence-controller.js +3 -1541
- package/dist/browser/presence-controller.js.map +1 -1
- package/dist/browser/presence-record.js +9 -24
- package/dist/browser/presence-record.js.map +1 -1
- package/dist/browser/press.js +3 -23
- package/dist/browser/press.js.map +1 -1
- package/dist/browser/provider.js +8 -0
- package/dist/browser/provider.js.map +1 -1
- package/dist/browser/reactivity.js +0 -7
- package/dist/browser/reactivity.js.map +1 -1
- package/dist/browser/retarget-legs.js +3 -1021
- package/dist/browser/retarget-legs.js.map +1 -1
- package/dist/browser/runtime.js +54 -19
- package/dist/browser/runtime.js.map +1 -1
- package/dist/browser/server-interpolators.js +3 -19
- package/dist/browser/server-interpolators.js.map +1 -1
- package/dist/browser/spine.js +3 -2985
- package/dist/browser/spine.js.map +1 -1
- package/dist/browser/timelines.js +3 -8
- package/dist/browser/timelines.js.map +1 -1
- package/dist/browser/unstable/v2/create-animate.js +4 -2
- package/dist/browser/unstable/v2/create-animate.js.map +1 -1
- package/dist/browser/unstable/v2/create-batch.js +2 -2
- package/dist/browser/unstable/v2/create-batch.js.map +1 -1
- package/dist/browser/unstable/v2/element.js.map +1 -1
- package/dist/browser/unstable/v2/provider.js +8 -0
- package/dist/browser/unstable/v2/provider.js.map +1 -1
- package/dist/browser/unstable/v2/w.js.map +1 -1
- package/dist/browser/unstable/v2/ward.js +20 -5
- package/dist/browser/unstable/v2/ward.js.map +1 -1
- package/dist/browser/variant-target.js +3 -228
- package/dist/browser/variant-target.js.map +1 -1
- package/dist/browser/variant-tree.js +3 -393
- package/dist/browser/variant-tree.js.map +1 -1
- package/dist/browser/w.js.map +1 -1
- package/dist/browser/wardic-config-value.js +3 -90
- package/dist/browser/wardic-config-value.js.map +1 -1
- package/dist/server/animation-controls.js +3 -149
- package/dist/server/animation-controls.js.map +1 -1
- package/dist/server/appear.js +3 -782
- package/dist/server/appear.js.map +1 -1
- package/dist/server/batch-gestures.js.map +1 -1
- package/dist/server/batch.js +3 -2511
- package/dist/server/batch.js.map +1 -1
- package/dist/server/config.js +11 -1
- package/dist/server/config.js.map +1 -1
- package/dist/server/create-animate.js +4 -2
- package/dist/server/create-animate.js.map +1 -1
- package/dist/server/create-batch.js +2 -2
- package/dist/server/create-batch.js.map +1 -1
- package/dist/server/create-ward.js +28 -5
- package/dist/server/create-ward.js.map +1 -1
- package/dist/server/drag-constraints.js +3 -75
- package/dist/server/drag-constraints.js.map +1 -1
- package/dist/server/drag-controls.js +3 -50
- package/dist/server/drag-controls.js.map +1 -1
- package/dist/server/drag-defaults.js +4 -0
- package/dist/server/drag-defaults.js.map +1 -0
- package/dist/server/drag-track.js +3 -826
- package/dist/server/drag-track.js.map +1 -1
- package/dist/server/drag-transition.js +3 -55
- package/dist/server/drag-transition.js.map +1 -1
- package/dist/server/element-setup.js +4 -0
- package/dist/server/element-setup.js.map +1 -0
- package/dist/server/element.js.map +1 -1
- package/dist/server/feature.js +3 -305
- package/dist/server/feature.js.map +1 -1
- package/dist/server/features/all.js +3 -17
- package/dist/server/features/all.js.map +1 -1
- package/dist/server/features/colors.js +3 -32
- package/dist/server/features/colors.js.map +1 -1
- package/dist/server/features/dom-animation.js +3 -14
- package/dist/server/features/dom-animation.js.map +1 -1
- package/dist/server/features/dom-max.js +3 -9
- package/dist/server/features/dom-max.js.map +1 -1
- package/dist/server/features/drag.js +3 -27
- package/dist/server/features/drag.js.map +1 -1
- package/dist/server/features/focus.js +3 -17
- package/dist/server/features/focus.js.map +1 -1
- package/dist/server/features/hover.js +3 -17
- package/dist/server/features/hover.js.map +1 -1
- package/dist/server/features/in-view.js +3 -17
- package/dist/server/features/in-view.js.map +1 -1
- package/dist/server/features/input.js +3 -26
- package/dist/server/features/input.js.map +1 -1
- package/dist/server/features/keys.js +3 -24
- package/dist/server/features/keys.js.map +1 -1
- package/dist/server/features/layout.js +3 -43
- package/dist/server/features/layout.js.map +1 -1
- package/dist/server/features/pan.js +3 -17
- package/dist/server/features/pan.js.map +1 -1
- package/dist/server/features/press.js +3 -11
- package/dist/server/features/press.js.map +1 -1
- package/dist/server/features/scroll.js +3 -27
- package/dist/server/features/scroll.js.map +1 -1
- package/dist/server/gesture-features.js +3 -28
- package/dist/server/gesture-features.js.map +1 -1
- package/dist/server/gesture-info.js +3 -42
- package/dist/server/gesture-info.js.map +1 -1
- package/dist/server/imperative.js +3 -886
- package/dist/server/imperative.js.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/instant.js +3 -50
- package/dist/server/instant.js.map +1 -1
- package/dist/server/layout-group.js +3 -26
- package/dist/server/layout-group.js.map +1 -1
- package/dist/server/layout-member.js +3 -371
- package/dist/server/layout-member.js.map +1 -1
- package/dist/server/lazy-batch-gestures.js.map +1 -1
- package/dist/server/live-style.js +3 -323
- package/dist/server/live-style.js.map +1 -1
- package/dist/server/member-hold.js +3 -210
- package/dist/server/member-hold.js.map +1 -1
- package/dist/server/owner-scope.js +3 -28
- package/dist/server/owner-scope.js.map +1 -1
- package/dist/server/presence-controller.js +3 -1541
- package/dist/server/presence-controller.js.map +1 -1
- package/dist/server/presence-record.js +9 -24
- package/dist/server/presence-record.js.map +1 -1
- package/dist/server/press.js +3 -23
- package/dist/server/press.js.map +1 -1
- package/dist/server/provider.js +8 -0
- package/dist/server/provider.js.map +1 -1
- package/dist/server/reactivity.js +0 -7
- package/dist/server/reactivity.js.map +1 -1
- package/dist/server/retarget-legs.js +3 -1021
- package/dist/server/retarget-legs.js.map +1 -1
- package/dist/server/runtime.js +54 -19
- package/dist/server/runtime.js.map +1 -1
- package/dist/server/server-interpolators.js +3 -19
- package/dist/server/server-interpolators.js.map +1 -1
- package/dist/server/spine.js +3 -2985
- package/dist/server/spine.js.map +1 -1
- package/dist/server/timelines.js +3 -8
- package/dist/server/timelines.js.map +1 -1
- package/dist/server/unstable/v2/create-animate.js +4 -2
- package/dist/server/unstable/v2/create-animate.js.map +1 -1
- package/dist/server/unstable/v2/create-batch.js +2 -2
- package/dist/server/unstable/v2/create-batch.js.map +1 -1
- package/dist/server/unstable/v2/element.js.map +1 -1
- package/dist/server/unstable/v2/provider.js +8 -0
- package/dist/server/unstable/v2/provider.js.map +1 -1
- package/dist/server/unstable/v2/w.js.map +1 -1
- package/dist/server/unstable/v2/ward.js +20 -5
- package/dist/server/unstable/v2/ward.js.map +1 -1
- package/dist/server/variant-target.js +3 -228
- package/dist/server/variant-target.js.map +1 -1
- package/dist/server/variant-tree.js +3 -393
- package/dist/server/variant-tree.js.map +1 -1
- package/dist/server/w.js.map +1 -1
- package/dist/server/wardic-config-value.js +3 -90
- package/dist/server/wardic-config-value.js.map +1 -1
- package/dist/solid/animation-controls.d.ts +1 -102
- package/dist/solid/animation-controls.d.ts.map +1 -1
- package/dist/solid/animation-controls.js +3 -128
- package/dist/solid/animation-controls.js.map +1 -1
- package/dist/solid/appear.d.ts +1 -231
- package/dist/solid/appear.d.ts.map +1 -1
- package/dist/solid/appear.js +3 -570
- package/dist/solid/appear.js.map +1 -1
- package/dist/solid/batch-gestures.d.ts +2 -2
- package/dist/solid/batch-gestures.d.ts.map +1 -1
- package/dist/solid/batch-gestures.js.map +1 -1
- package/dist/solid/batch.d.ts +1 -511
- package/dist/solid/batch.d.ts.map +1 -1
- package/dist/solid/batch.js +3 -2484
- package/dist/solid/batch.js.map +1 -1
- package/dist/solid/config.d.ts +2 -728
- package/dist/solid/config.d.ts.map +1 -1
- package/dist/solid/config.js +11 -1
- package/dist/solid/config.js.map +1 -1
- package/dist/solid/create-animate.d.ts.map +1 -1
- package/dist/solid/create-animate.jsx +3 -1
- package/dist/solid/create-animate.jsx.map +1 -1
- package/dist/solid/create-batch.jsx +2 -2
- package/dist/solid/create-batch.jsx.map +1 -1
- package/dist/solid/create-ward.d.ts +5 -2
- package/dist/solid/create-ward.d.ts.map +1 -1
- package/dist/solid/create-ward.jsx +24 -5
- package/dist/solid/create-ward.jsx.map +1 -1
- package/dist/solid/drag-constraints.d.ts +1 -45
- package/dist/solid/drag-constraints.d.ts.map +1 -1
- package/dist/solid/drag-constraints.js +3 -48
- package/dist/solid/drag-constraints.js.map +1 -1
- package/dist/solid/drag-controls.d.ts +1 -49
- package/dist/solid/drag-controls.d.ts.map +1 -1
- package/dist/solid/drag-controls.js +3 -50
- package/dist/solid/drag-controls.js.map +1 -1
- package/dist/solid/drag-defaults.d.ts +2 -0
- package/dist/solid/drag-defaults.d.ts.map +1 -0
- package/dist/solid/drag-defaults.js +4 -0
- package/dist/solid/drag-defaults.js.map +1 -0
- package/dist/solid/drag-track.d.ts +1 -232
- package/dist/solid/drag-track.d.ts.map +1 -1
- package/dist/solid/drag-track.js +3 -641
- package/dist/solid/drag-track.js.map +1 -1
- package/dist/solid/drag-transition.d.ts +1 -19
- package/dist/solid/drag-transition.d.ts.map +1 -1
- package/dist/solid/drag-transition.js +3 -30
- package/dist/solid/drag-transition.js.map +1 -1
- package/dist/solid/element-setup.d.ts +2 -0
- package/dist/solid/element-setup.d.ts.map +1 -0
- package/dist/solid/element-setup.js +4 -0
- package/dist/solid/element-setup.js.map +1 -0
- package/dist/solid/element.d.ts +2 -1
- package/dist/solid/element.d.ts.map +1 -1
- package/dist/solid/element.jsx.map +1 -1
- package/dist/solid/feature.d.ts +1 -206
- package/dist/solid/feature.d.ts.map +1 -1
- package/dist/solid/feature.js +3 -286
- package/dist/solid/feature.js.map +1 -1
- package/dist/solid/features/all.d.ts +1 -16
- package/dist/solid/features/all.d.ts.map +1 -1
- package/dist/solid/features/all.js +3 -26
- package/dist/solid/features/all.js.map +1 -1
- package/dist/solid/features/colors.d.ts +1 -11
- package/dist/solid/features/colors.d.ts.map +1 -1
- package/dist/solid/features/colors.js +3 -33
- package/dist/solid/features/colors.js.map +1 -1
- package/dist/solid/features/dom-animation.d.ts +1 -13
- package/dist/solid/features/dom-animation.d.ts.map +1 -1
- package/dist/solid/features/dom-animation.js +3 -14
- package/dist/solid/features/dom-animation.js.map +1 -1
- package/dist/solid/features/dom-max.d.ts +1 -9
- package/dist/solid/features/dom-max.d.ts.map +1 -1
- package/dist/solid/features/dom-max.js +3 -9
- package/dist/solid/features/dom-max.js.map +1 -1
- package/dist/solid/features/drag.d.ts +1 -4
- package/dist/solid/features/drag.d.ts.map +1 -1
- package/dist/solid/features/drag.js +3 -27
- package/dist/solid/features/drag.js.map +1 -1
- package/dist/solid/features/focus.d.ts +1 -4
- package/dist/solid/features/focus.d.ts.map +1 -1
- package/dist/solid/features/focus.js +3 -15
- package/dist/solid/features/focus.js.map +1 -1
- package/dist/solid/features/hover.d.ts +1 -4
- package/dist/solid/features/hover.d.ts.map +1 -1
- package/dist/solid/features/hover.js +3 -15
- package/dist/solid/features/hover.js.map +1 -1
- package/dist/solid/features/in-view.d.ts +1 -4
- package/dist/solid/features/in-view.d.ts.map +1 -1
- package/dist/solid/features/in-view.js +3 -15
- package/dist/solid/features/in-view.js.map +1 -1
- package/dist/solid/features/input.d.ts +1 -25
- package/dist/solid/features/input.d.ts.map +1 -1
- package/dist/solid/features/input.js +3 -26
- package/dist/solid/features/input.js.map +1 -1
- package/dist/solid/features/keys.d.ts +1 -84
- package/dist/solid/features/keys.d.ts.map +1 -1
- package/dist/solid/features/keys.js +3 -32
- package/dist/solid/features/keys.js.map +1 -1
- package/dist/solid/features/layout.d.ts +1 -37
- package/dist/solid/features/layout.d.ts.map +1 -1
- package/dist/solid/features/layout.js +3 -43
- package/dist/solid/features/layout.js.map +1 -1
- package/dist/solid/features/pan.d.ts +1 -4
- package/dist/solid/features/pan.d.ts.map +1 -1
- package/dist/solid/features/pan.js +3 -15
- package/dist/solid/features/pan.js.map +1 -1
- package/dist/solid/features/press.d.ts +1 -10
- package/dist/solid/features/press.d.ts.map +1 -1
- package/dist/solid/features/press.js +3 -9
- package/dist/solid/features/press.js.map +1 -1
- package/dist/solid/features/scroll.d.ts +1 -17
- package/dist/solid/features/scroll.d.ts.map +1 -1
- package/dist/solid/features/scroll.js +3 -29
- package/dist/solid/features/scroll.js.map +1 -1
- package/dist/solid/gesture-features.d.ts +1 -27
- package/dist/solid/gesture-features.d.ts.map +1 -1
- package/dist/solid/gesture-features.js +3 -28
- package/dist/solid/gesture-features.js.map +1 -1
- package/dist/solid/gesture-info.d.ts +1 -58
- package/dist/solid/gesture-info.d.ts.map +1 -1
- package/dist/solid/gesture-info.js +3 -22
- package/dist/solid/gesture-info.js.map +1 -1
- package/dist/solid/imperative.d.ts +1 -202
- package/dist/solid/imperative.d.ts.map +1 -1
- package/dist/solid/imperative.js +3 -764
- package/dist/solid/imperative.js.map +1 -1
- package/dist/solid/index.d.ts +1 -1
- package/dist/solid/index.jsx +1 -1
- package/dist/solid/instant.d.ts +1 -43
- package/dist/solid/instant.d.ts.map +1 -1
- package/dist/solid/instant.js +3 -48
- package/dist/solid/instant.js.map +1 -1
- package/dist/solid/layout-group.d.ts +1 -13
- package/dist/solid/layout-group.d.ts.map +1 -1
- package/dist/solid/layout-group.js +3 -26
- package/dist/solid/layout-group.js.map +1 -1
- package/dist/solid/layout-member.d.ts +1 -124
- package/dist/solid/layout-member.d.ts.map +1 -1
- package/dist/solid/layout-member.js +3 -175
- package/dist/solid/layout-member.js.map +1 -1
- package/dist/solid/lazy-batch-gestures.d.ts +2 -2
- package/dist/solid/lazy-batch-gestures.d.ts.map +1 -1
- package/dist/solid/lazy-batch-gestures.js.map +1 -1
- package/dist/solid/live-style.d.ts +1 -158
- package/dist/solid/live-style.d.ts.map +1 -1
- package/dist/solid/live-style.js +3 -314
- package/dist/solid/live-style.js.map +1 -1
- package/dist/solid/member-hold.d.ts +1 -32
- package/dist/solid/member-hold.d.ts.map +1 -1
- package/dist/solid/member-hold.js +3 -223
- package/dist/solid/member-hold.js.map +1 -1
- package/dist/solid/owner-scope.d.ts +1 -15
- package/dist/solid/owner-scope.d.ts.map +1 -1
- package/dist/solid/owner-scope.js +3 -30
- package/dist/solid/owner-scope.js.map +1 -1
- package/dist/solid/presence-controller.d.ts +1 -121
- package/dist/solid/presence-controller.d.ts.map +1 -1
- package/dist/solid/presence-controller.js +3 -1426
- package/dist/solid/presence-controller.js.map +1 -1
- package/dist/solid/presence-record.d.ts +6 -168
- package/dist/solid/presence-record.d.ts.map +1 -1
- package/dist/solid/presence-record.js +9 -23
- package/dist/solid/presence-record.js.map +1 -1
- package/dist/solid/press.d.ts +1 -23
- package/dist/solid/press.d.ts.map +1 -1
- package/dist/solid/press.js +3 -18
- package/dist/solid/press.js.map +1 -1
- package/dist/solid/provider.d.ts +7 -1
- package/dist/solid/provider.d.ts.map +1 -1
- package/dist/solid/provider.jsx +8 -0
- package/dist/solid/provider.jsx.map +1 -1
- package/dist/solid/reactivity.d.ts +1 -20
- package/dist/solid/reactivity.d.ts.map +1 -1
- package/dist/solid/reactivity.js +0 -7
- package/dist/solid/reactivity.js.map +1 -1
- package/dist/solid/retarget-legs.d.ts +1 -188
- package/dist/solid/retarget-legs.d.ts.map +1 -1
- package/dist/solid/retarget-legs.js +3 -825
- package/dist/solid/retarget-legs.js.map +1 -1
- package/dist/solid/runtime.d.ts +12 -32
- package/dist/solid/runtime.d.ts.map +1 -1
- package/dist/solid/runtime.js +44 -21
- package/dist/solid/runtime.js.map +1 -1
- package/dist/solid/server-interpolators.d.ts +1 -12
- package/dist/solid/server-interpolators.d.ts.map +1 -1
- package/dist/solid/server-interpolators.js +3 -19
- package/dist/solid/server-interpolators.js.map +1 -1
- package/dist/solid/spine.d.ts +1 -743
- package/dist/solid/spine.d.ts.map +1 -1
- package/dist/solid/spine.js +3 -2834
- package/dist/solid/spine.js.map +1 -1
- package/dist/solid/timelines.d.ts +1 -43
- package/dist/solid/timelines.d.ts.map +1 -1
- package/dist/solid/timelines.js +3 -9
- package/dist/solid/timelines.js.map +1 -1
- package/dist/solid/unstable/v2/create-animate.d.ts.map +1 -1
- package/dist/solid/unstable/v2/create-animate.jsx +3 -1
- package/dist/solid/unstable/v2/create-animate.jsx.map +1 -1
- package/dist/solid/unstable/v2/create-batch.jsx +2 -2
- package/dist/solid/unstable/v2/create-batch.jsx.map +1 -1
- package/dist/solid/unstable/v2/element.d.ts +2 -1
- package/dist/solid/unstable/v2/element.d.ts.map +1 -1
- package/dist/solid/unstable/v2/element.jsx.map +1 -1
- package/dist/solid/unstable/v2/provider.d.ts +7 -1
- package/dist/solid/unstable/v2/provider.d.ts.map +1 -1
- package/dist/solid/unstable/v2/provider.jsx +8 -0
- package/dist/solid/unstable/v2/provider.jsx.map +1 -1
- package/dist/solid/unstable/v2/w.d.ts +2 -1
- package/dist/solid/unstable/v2/w.d.ts.map +1 -1
- package/dist/solid/unstable/v2/w.jsx.map +1 -1
- package/dist/solid/unstable/v2/ward.d.ts +3 -2
- package/dist/solid/unstable/v2/ward.d.ts.map +1 -1
- package/dist/solid/unstable/v2/ward.jsx +15 -5
- package/dist/solid/unstable/v2/ward.jsx.map +1 -1
- package/dist/solid/variant-target.d.ts +1 -103
- package/dist/solid/variant-target.d.ts.map +1 -1
- package/dist/solid/variant-target.js +3 -181
- package/dist/solid/variant-target.js.map +1 -1
- package/dist/solid/variant-tree.d.ts +1 -348
- package/dist/solid/variant-tree.d.ts.map +1 -1
- package/dist/solid/variant-tree.js +3 -357
- package/dist/solid/variant-tree.js.map +1 -1
- package/dist/solid/w.d.ts +2 -1
- package/dist/solid/w.d.ts.map +1 -1
- package/dist/solid/w.jsx.map +1 -1
- package/dist/solid/wardic-config-value.d.ts +1 -86
- package/dist/solid/wardic-config-value.d.ts.map +1 -1
- package/dist/solid/wardic-config-value.js +3 -105
- package/dist/solid/wardic-config-value.js.map +1 -1
- package/package.json +4 -4
- package/src/animation-controls.ts +3 -206
- package/src/appear.ts +3 -878
- package/src/batch-gestures.ts +2 -2
- package/src/batch.ts +3 -3078
- package/src/config.ts +5 -858
- package/src/create-animate.tsx +3 -1
- package/src/create-batch.tsx +2 -2
- package/src/create-ward.tsx +27 -46
- package/src/drag-constraints.ts +3 -103
- package/src/drag-controls.ts +3 -94
- package/src/drag-defaults.ts +3 -0
- package/src/drag-track.ts +3 -955
- package/src/drag-transition.ts +3 -43
- package/src/element-setup.ts +3 -0
- package/src/element.tsx +2 -1
- package/src/feature.ts +3 -491
- package/src/features/all.ts +3 -27
- package/src/features/colors.ts +3 -36
- package/src/features/dom-animation.ts +3 -15
- package/src/features/dom-max.ts +3 -10
- package/src/features/drag.ts +3 -30
- package/src/features/focus.ts +3 -17
- package/src/features/hover.ts +3 -17
- package/src/features/in-view.ts +3 -17
- package/src/features/input.ts +3 -34
- package/src/features/keys.ts +3 -106
- package/src/features/layout.ts +3 -66
- package/src/features/pan.ts +3 -17
- package/src/features/press.ts +3 -17
- package/src/features/scroll.ts +3 -31
- package/src/gesture-features.ts +3 -35
- package/src/gesture-info.ts +3 -81
- package/src/imperative.ts +3 -1052
- package/src/index.tsx +1 -1
- package/src/instant.ts +3 -90
- package/src/layout-group.ts +3 -32
- package/src/layout-member.ts +3 -315
- package/src/lazy-batch-gestures.ts +3 -3
- package/src/live-style.ts +3 -471
- package/src/member-hold.ts +3 -241
- package/src/owner-scope.ts +3 -31
- package/src/presence-controller.ts +3 -1732
- package/src/presence-record.ts +8 -192
- package/src/press.ts +3 -40
- package/src/provider.tsx +10 -0
- package/src/reactivity.ts +3 -23
- package/src/retarget-legs.ts +3 -1049
- package/src/runtime.ts +54 -42
- package/src/server-interpolators.ts +3 -33
- package/src/spine.ts +3 -3540
- package/src/timelines.ts +3 -46
- package/src/unstable/v2/create-animate.tsx +3 -1
- package/src/unstable/v2/create-batch.tsx +2 -2
- package/src/unstable/v2/element.tsx +2 -1
- package/src/unstable/v2/provider.tsx +10 -0
- package/src/unstable/v2/w.tsx +2 -1
- package/src/unstable/v2/ward.tsx +18 -43
- package/src/variant-target.ts +3 -240
- package/src/variant-tree.ts +3 -638
- package/src/w.tsx +2 -1
- package/src/wardic-config-value.ts +3 -150
- package/dist/browser/batch-handoff.js +0 -57
- package/dist/browser/batch-handoff.js.map +0 -1
- package/dist/browser/features/timeline-keys.js +0 -100
- package/dist/browser/features/timeline-keys.js.map +0 -1
- package/dist/browser/frame-time.js +0 -40
- package/dist/browser/frame-time.js.map +0 -1
- package/dist/server/batch-handoff.js +0 -57
- package/dist/server/batch-handoff.js.map +0 -1
- package/dist/server/features/timeline-keys.js +0 -100
- package/dist/server/features/timeline-keys.js.map +0 -1
- package/dist/server/frame-time.js +0 -40
- package/dist/server/frame-time.js.map +0 -1
- package/dist/solid/batch-handoff.d.ts +0 -25
- package/dist/solid/batch-handoff.d.ts.map +0 -1
- package/dist/solid/batch-handoff.js +0 -62
- package/dist/solid/batch-handoff.js.map +0 -1
- package/dist/solid/features/timeline-keys.d.ts +0 -7
- package/dist/solid/features/timeline-keys.d.ts.map +0 -1
- package/dist/solid/features/timeline-keys.js +0 -97
- package/dist/solid/features/timeline-keys.js.map +0 -1
- package/dist/solid/frame-time.d.ts +0 -21
- package/dist/solid/frame-time.d.ts.map +0 -1
- package/dist/solid/frame-time.js +0 -41
- package/dist/solid/frame-time.js.map +0 -1
- package/src/batch-handoff.ts +0 -73
- package/src/features/timeline-keys.ts +0 -109
- package/src/frame-time.ts +0 -45
package/src/features/drag.ts
CHANGED
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* never imports it ships none of it: the drag track (`drag-track.ts`), core's `Drag` and `Inertia`. Its
|
|
5
|
-
* top-level calls are marked pure, as every Feature module's are.
|
|
6
|
-
*
|
|
7
|
-
* @module
|
|
8
|
-
*/
|
|
9
|
-
import * as InputSource from "@wardic/core/InputSource"
|
|
10
|
-
import * as Effect from "effect/Effect"
|
|
11
|
-
import { trackConstraintsOf } from "../drag-constraints.ts"
|
|
12
|
-
import { driveDragTrack } from "../drag-track.ts"
|
|
13
|
-
import type { Feature } from "../feature.ts"
|
|
14
|
-
import { DragGesture } from "./keys.ts"
|
|
15
|
-
import { gestureLayer } from "./input.ts"
|
|
16
|
-
|
|
17
|
-
/** Drag gestures: `drag`, `dragControls`, the drag callbacks, and what a `Reorder` item drags with. */
|
|
18
|
-
export const drag: Feature<DragGesture, DragGesture["Service"], "drag"> = {
|
|
19
|
-
name: "drag",
|
|
20
|
-
key: DragGesture,
|
|
21
|
-
layer: /*#__PURE__*/ gestureLayer(DragGesture, (source) => ({
|
|
22
|
-
drive: (run) =>
|
|
23
|
-
driveDragTrack({
|
|
24
|
-
...run,
|
|
25
|
-
watch: (track) => run.watch((onDefect) => Effect.provideService(track(onDefect), InputSource.InputSource, source)),
|
|
26
|
-
fork: (response) => run.fork(Effect.provideService(response, InputSource.InputSource, source)),
|
|
27
|
-
}),
|
|
28
|
-
constraintsOf: trackConstraintsOf,
|
|
29
|
-
})),
|
|
30
|
-
}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Drag since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Drag"
|
package/src/features/focus.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @module
|
|
6
|
-
*/
|
|
7
|
-
import * as Recognizer from "@wardic/core/Recognizer"
|
|
8
|
-
import type { Feature } from "../feature.ts"
|
|
9
|
-
import { FocusGesture } from "./keys.ts"
|
|
10
|
-
import { gestureLayer, withInput } from "./input.ts"
|
|
11
|
-
|
|
12
|
-
/** Focus gestures: `whileFocus`. */
|
|
13
|
-
export const focus: Feature<FocusGesture, FocusGesture["Service"], "focus"> = {
|
|
14
|
-
name: "focus",
|
|
15
|
-
key: FocusGesture,
|
|
16
|
-
layer: /*#__PURE__*/ gestureLayer(FocusGesture, (source) => ({ watch: withInput(source, Recognizer.watchFocus) })),
|
|
17
|
-
}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Focus since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Focus"
|
package/src/features/hover.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @module
|
|
6
|
-
*/
|
|
7
|
-
import * as Recognizer from "@wardic/core/Recognizer"
|
|
8
|
-
import type { Feature } from "../feature.ts"
|
|
9
|
-
import { HoverGesture } from "./keys.ts"
|
|
10
|
-
import { gestureLayer, withInput } from "./input.ts"
|
|
11
|
-
|
|
12
|
-
/** Hover gestures: `whileHover` and the hover callbacks. */
|
|
13
|
-
export const hover: Feature<HoverGesture, HoverGesture["Service"], "hover"> = {
|
|
14
|
-
name: "hover",
|
|
15
|
-
key: HoverGesture,
|
|
16
|
-
layer: /*#__PURE__*/ gestureLayer(HoverGesture, (source) => ({ watch: withInput(source, Recognizer.watchHover) })),
|
|
17
|
-
}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Hover since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Hover"
|
package/src/features/in-view.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @module
|
|
6
|
-
*/
|
|
7
|
-
import * as Recognizer from "@wardic/core/Recognizer"
|
|
8
|
-
import * as Layer from "effect/Layer"
|
|
9
|
-
import type { Feature } from "../feature.ts"
|
|
10
|
-
import { InViewGesture } from "./keys.ts"
|
|
11
|
-
|
|
12
|
-
/** In-view gestures: `whileInView` and the viewport callbacks. It reads no input: the Probe's intersections. */
|
|
13
|
-
export const inView: Feature<InViewGesture, InViewGesture["Service"], "inView"> = {
|
|
14
|
-
name: "inView",
|
|
15
|
-
key: InViewGesture,
|
|
16
|
-
layer: /*#__PURE__*/ Layer.succeed(InViewGesture)({ watch: Recognizer.watchInView }),
|
|
17
|
-
}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/InView since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/InView"
|
package/src/features/input.ts
CHANGED
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* ships none of it. Its top-level calls are marked pure, as every Feature module's are.
|
|
5
|
-
*
|
|
6
|
-
* @module
|
|
7
|
-
*/
|
|
8
|
-
import * as InputSource from "@wardic/core/InputSource"
|
|
9
|
-
import * as DomInput from "@wardic/dom/DomInput"
|
|
10
|
-
import * as Context from "effect/Context"
|
|
11
|
-
import * as Effect from "effect/Effect"
|
|
12
|
-
import * as Layer from "effect/Layer"
|
|
13
|
-
import { fromEnvironmentOr } from "../feature.ts"
|
|
14
|
-
import type { ProviderServices } from "../runtime.ts"
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The gestures' `InputSource`: the Environment's when it gives one (`@wardic/test`'s `TestLive`, a
|
|
18
|
-
* test's pushed input), else the DOM's, built over the page's `document`. One Layer, so a provider's
|
|
19
|
-
* `MemoMap` builds it once for every gesture Feature it has.
|
|
20
|
-
*/
|
|
21
|
-
export const input: Layer.Layer<InputSource.InputSource> = /*#__PURE__*/ fromEnvironmentOr(InputSource.InputSource, DomInput.layer)
|
|
22
|
-
|
|
23
|
-
/** `watch` with the gestures' input given: what a gesture Feature hands its elements, which run it on their provider. */
|
|
24
|
-
export const withInput =
|
|
25
|
-
<Args extends ReadonlyArray<unknown>, A, E, R>(source: InputSource.InputSource["Service"], watch: (...args: Args) => Effect.Effect<A, E, R>) =>
|
|
26
|
-
(...args: Args): Effect.Effect<A, E, Exclude<R, InputSource.InputSource>> =>
|
|
27
|
-
Effect.provideService(watch(...args), InputSource.InputSource, source)
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* A gesture Feature's Layer: its service, made over the gestures' input, which it gives beside it, so
|
|
31
|
-
* a section with the Feature has the input too (a `Reorder` item's keys, a `createPress`).
|
|
32
|
-
*/
|
|
33
|
-
export const gestureLayer = <I, S>(key: Context.Key<I, S>, make: (source: InputSource.InputSource["Service"]) => S): Layer.Layer<I | InputSource.InputSource, never, ProviderServices> =>
|
|
34
|
-
Layer.effect(key)(Effect.map(InputSource.InputSource, make)).pipe(Layer.provideMerge(input))
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Input since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Input"
|
package/src/features/keys.ts
CHANGED
|
@@ -1,106 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
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
|
-
* @module
|
|
8
|
-
*/
|
|
9
|
-
import type * as DragRecognizer from "@wardic/core/DragRecognizer"
|
|
10
|
-
import type * as InputFeed from "@wardic/core/InputFeed"
|
|
11
|
-
import type * as Probe from "@wardic/core/Probe"
|
|
12
|
-
import type * as Recognizer from "@wardic/core/Recognizer"
|
|
13
|
-
import type * as ProjectionSystem from "@wardic/dom/ProjectionSystem"
|
|
14
|
-
import * as Context from "effect/Context"
|
|
15
|
-
import type * as Effect from "effect/Effect"
|
|
16
|
-
import type { LazyArg } from "effect/Function"
|
|
17
|
-
import type * as Scope from "effect/Scope"
|
|
18
|
-
import type { trackConstraintsOf } from "../drag-constraints.ts"
|
|
19
|
-
import type { DragTrack, DragTrackOptions } from "../drag-track.ts"
|
|
20
|
-
import type { CreateProjectionNodeOptions, WardLayout } from "../layout-member.ts"
|
|
21
|
-
import type { WardicServices } from "../runtime.ts"
|
|
22
|
-
|
|
23
|
-
/** The `hover` Feature's service: an element's hover watched, over the gestures' input. */
|
|
24
|
-
export class HoverGesture extends /*#__PURE__*/ Context.Service<
|
|
25
|
-
HoverGesture,
|
|
26
|
-
{ readonly watch: (target: unknown, handlers: Recognizer.HoverHandlers) => Effect.Effect<void, never, Scope.Scope> }
|
|
27
|
-
>()("@wardic/solid/HoverGesture") {}
|
|
28
|
-
|
|
29
|
-
/** The `press` Feature's service: an element's presses watched (`press.ts`), over the gestures' input. */
|
|
30
|
-
export class PressGesture extends /*#__PURE__*/ Context.Service<
|
|
31
|
-
PressGesture,
|
|
32
|
-
{
|
|
33
|
-
readonly watch: (
|
|
34
|
-
element: unknown,
|
|
35
|
-
handlers: InputFeed.Handlers<Recognizer.PressEvent>,
|
|
36
|
-
keysTaken?: boolean,
|
|
37
|
-
propagates?: LazyArg<boolean>,
|
|
38
|
-
) => Effect.Effect<void, never, Scope.Scope>
|
|
39
|
-
}
|
|
40
|
-
>()("@wardic/solid/PressGesture") {}
|
|
41
|
-
|
|
42
|
-
/** The `focus` Feature's service: an element's focus watched, over the gestures' input. */
|
|
43
|
-
export class FocusGesture extends /*#__PURE__*/ Context.Service<
|
|
44
|
-
FocusGesture,
|
|
45
|
-
{ readonly watch: (target: unknown, options: Recognizer.FocusOptions, handlers: InputFeed.Handlers<boolean>) => Effect.Effect<void, never, Scope.Scope> }
|
|
46
|
-
>()("@wardic/solid/FocusGesture") {}
|
|
47
|
-
|
|
48
|
-
/** The `inView` Feature's service: an element's intersections watched, over the Environment's Probe. */
|
|
49
|
-
export class InViewGesture extends /*#__PURE__*/ Context.Service<
|
|
50
|
-
InViewGesture,
|
|
51
|
-
{
|
|
52
|
-
readonly watch: (
|
|
53
|
-
target: unknown,
|
|
54
|
-
options: Recognizer.InViewOptions,
|
|
55
|
-
handlers: InputFeed.Handlers<Recognizer.ViewEdge>,
|
|
56
|
-
) => Effect.Effect<void, never, Scope.Scope | Probe.Probe>
|
|
57
|
-
}
|
|
58
|
-
>()("@wardic/solid/InViewGesture") {}
|
|
59
|
-
|
|
60
|
-
/** The `pan` Feature's service: an element's pans watched, over the gestures' input. */
|
|
61
|
-
export class PanGesture extends /*#__PURE__*/ Context.Service<
|
|
62
|
-
PanGesture,
|
|
63
|
-
{
|
|
64
|
-
readonly watch: (
|
|
65
|
-
target: unknown,
|
|
66
|
-
handlers: InputFeed.Handlers<DragRecognizer.PanSample>,
|
|
67
|
-
options?: DragRecognizer.PanOptions,
|
|
68
|
-
) => Effect.Effect<void, never, Scope.Scope>
|
|
69
|
-
}
|
|
70
|
-
>()("@wardic/solid/PanGesture") {}
|
|
71
|
-
|
|
72
|
-
/** What an element hands the drag Feature: the track's options, its watches and responses run on its provider. */
|
|
73
|
-
export interface DragRun extends Omit<DragTrackOptions, "watch" | "fork"> {
|
|
74
|
-
readonly watch: (track: (onDefect: InputFeed.OnDefect) => Effect.Effect<void, never, Scope.Scope | WardicServices>) => void
|
|
75
|
-
readonly fork: (response: Effect.Effect<void, never, WardicServices>) => void
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The `drag` Feature's service: an element's drag track driven over the gestures' input, and its
|
|
80
|
-
* `dragConstraints` read (a box, or a container measured against the element).
|
|
81
|
-
*/
|
|
82
|
-
export class DragGesture extends /*#__PURE__*/ Context.Service<
|
|
83
|
-
DragGesture,
|
|
84
|
-
{
|
|
85
|
-
readonly drive: (run: DragRun) => DragTrack
|
|
86
|
-
readonly constraintsOf: typeof trackConstraintsOf
|
|
87
|
-
}
|
|
88
|
-
>()("@wardic/solid/DragGesture") {}
|
|
89
|
-
|
|
90
|
-
/** The `colors` Feature's service: that the page reads every CSS colour space. */
|
|
91
|
-
export class Colors extends /*#__PURE__*/ Context.Service<Colors, true>()("@wardic/solid/Colors") {}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* The `layout` Feature's element code (#746, ADR-0067 *Amendment (#746)*, decision 9), beside the
|
|
95
|
-
* projection system it builds: what makes a Wardic element's **Projection node**, its options from its
|
|
96
|
-
* config and its registration, so an app without `layout` ships neither.
|
|
97
|
-
*/
|
|
98
|
-
export class ProjectionNodes extends /*#__PURE__*/ Context.Service<
|
|
99
|
-
ProjectionNodes,
|
|
100
|
-
{
|
|
101
|
-
/** A ward's node options, from its config (`layout-member.ts`'s `layoutOptionsOf`). */
|
|
102
|
-
readonly optionsOf: (ward: WardLayout) => CreateProjectionNodeOptions
|
|
103
|
-
/** What its node registers with the projection system (`layout-member.ts`'s `registrationOf`). */
|
|
104
|
-
readonly registrationOf: (opts: CreateProjectionNodeOptions) => ProjectionSystem.RegisterNodeOptions
|
|
105
|
-
}
|
|
106
|
-
>()("@wardic/solid/ProjectionNodes") {}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Keys since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Keys"
|
package/src/features/layout.ts
CHANGED
|
@@ -1,66 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
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
|
-
* @module
|
|
8
|
-
*/
|
|
9
|
-
import type * as Announcer from "@wardic/core/Announcer"
|
|
10
|
-
import * as DomProjectionSystem from "@wardic/dom/DomProjectionSystem"
|
|
11
|
-
import * as FlushGate from "@wardic/dom/FlushGate"
|
|
12
|
-
import * as ProjectionSystem from "@wardic/dom/ProjectionSystem"
|
|
13
|
-
import type * as ReorderController from "@wardic/dom/ReorderController"
|
|
14
|
-
import type * as Context from "effect/Context"
|
|
15
|
-
import * as Effect from "effect/Effect"
|
|
16
|
-
import * as Layer from "effect/Layer"
|
|
17
|
-
import * as UndefinedOr from "effect/UndefinedOr"
|
|
18
|
-
import type { Feature } from "../feature.ts"
|
|
19
|
-
import { layoutOptionsOf, registrationOf } from "../layout-member.ts"
|
|
20
|
-
import { ProjectionOptions, projectionIn, projectionNodesIn, type WardicContextValue } from "../runtime.ts"
|
|
21
|
-
import { ProjectionNodes } from "./keys.ts"
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Layout animations: a provider's projection system, built once for the provider, over its
|
|
25
|
-
* flush gate and with its reduced motion and scale correctors. Every section with it shares it, as the
|
|
26
|
-
* projection tree is the page's: a `layoutId` pair in two sections still crossfades.
|
|
27
|
-
*/
|
|
28
|
-
export const layout: Feature<ProjectionSystem.ProjectionSystem, ProjectionSystem.Shape, "layout"> = {
|
|
29
|
-
name: "layout",
|
|
30
|
-
key: ProjectionSystem.ProjectionSystem,
|
|
31
|
-
// The engine, and what its Reorder controllers hear each Measure pass by, beside it (#618); and the
|
|
32
|
-
// code that makes a Wardic element's node on it, here so the base ships none (#746).
|
|
33
|
-
layer: /*#__PURE__*/ Layer.merge(
|
|
34
|
-
/*#__PURE__*/ Layer.effectContext(
|
|
35
|
-
/*#__PURE__*/ Effect.flatMap(FlushGate.FlushGate, (gate) => Effect.flatMap(ProjectionOptions, (options) => DomProjectionSystem.make(gate, options))),
|
|
36
|
-
),
|
|
37
|
-
/*#__PURE__*/ Layer.succeed(ProjectionNodes, { optionsOf: layoutOptionsOf, registrationOf }),
|
|
38
|
-
),
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** What `layout` brings: the projection system, and what a Reorder controller over it takes beside it. */
|
|
42
|
-
export type LayoutServices = Exclude<ReorderController.Services, Announcer.Announcer>
|
|
43
|
-
|
|
44
|
-
/** What a component that brings `layout` asks its provider for: one list, so the provider joins it once. */
|
|
45
|
-
const BRINGS: ReadonlyArray<Feature> = [layout]
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The projection system of `value`'s provider, its `layout` Feature built now if nothing has built it
|
|
49
|
-
* yet (#511, decision 12): what a component that brings it works with (`LayoutGroup`, `Reorder`,
|
|
50
|
-
* `createProjectionNode`), whatever its section has. A clear error during a server render, which builds
|
|
51
|
-
* none (ADR-0021).
|
|
52
|
-
*/
|
|
53
|
-
export const projectionBrought = (value: WardicContextValue): ProjectionSystem.Shape =>
|
|
54
|
-
UndefinedOr.getOrThrowWith(projectionIn(value.features.build(BRINGS)), () => new Error("useWardicProjection: there is no projection system during a server render (ADR-0021)"))
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The `layout` Feature's element code (#746), brought as {@link projectionBrought} brings the projection
|
|
58
|
-
* system, whose call comes first and gives a server render's error: what `createProjectionNode` registers through.
|
|
59
|
-
*/
|
|
60
|
-
export const projectionNodesBrought = (value: WardicContextValue): ProjectionNodes["Service"] => projectionNodesIn(value.features.build(BRINGS))
|
|
61
|
-
|
|
62
|
-
/** {@link projectionBrought}'s services, all of them: what a Reorder controller is built with (#618). */
|
|
63
|
-
export const layoutBrought = (value: WardicContextValue): Context.Context<LayoutServices> => {
|
|
64
|
-
projectionBrought(value)
|
|
65
|
-
return value.features.build(BRINGS) as Context.Context<LayoutServices>
|
|
66
|
-
}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Layout since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Layout"
|
package/src/features/pan.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @module
|
|
6
|
-
*/
|
|
7
|
-
import * as DragRecognizer from "@wardic/core/DragRecognizer"
|
|
8
|
-
import type { Feature } from "../feature.ts"
|
|
9
|
-
import { PanGesture } from "./keys.ts"
|
|
10
|
-
import { gestureLayer, withInput } from "./input.ts"
|
|
11
|
-
|
|
12
|
-
/** Pan gestures: the pan callbacks. */
|
|
13
|
-
export const pan: Feature<PanGesture, PanGesture["Service"], "pan"> = {
|
|
14
|
-
name: "pan",
|
|
15
|
-
key: PanGesture,
|
|
16
|
-
layer: /*#__PURE__*/ gestureLayer(PanGesture, (source) => ({ watch: withInput(source, DragRecognizer.watchPan) })),
|
|
17
|
-
}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Pan since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Pan"
|
package/src/features/press.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @module
|
|
6
|
-
*/
|
|
7
|
-
import type { Feature } from "../feature.ts"
|
|
8
|
-
import { PressGesture } from "./keys.ts"
|
|
9
|
-
import { watchPressOn } from "../press.ts"
|
|
10
|
-
import { gestureLayer, withInput } from "./input.ts"
|
|
11
|
-
|
|
12
|
-
/** Press gestures, a pointer's and the keyboard's: `whileTap` and the tap callbacks. */
|
|
13
|
-
export const press: Feature<PressGesture, PressGesture["Service"], "press"> = {
|
|
14
|
-
name: "press",
|
|
15
|
-
key: PressGesture,
|
|
16
|
-
layer: /*#__PURE__*/ gestureLayer(PressGesture, (source) => ({ watch: withInput(source, watchPressOn) })),
|
|
17
|
-
}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Press since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Press"
|
package/src/features/scroll.ts
CHANGED
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Environment's scroll code. With it, the Timeline values (#240): a value derived from the scroll by
|
|
5
|
-
* ranges alone, drawn by the browser with the scroll. Its top-level calls are marked pure, as every
|
|
6
|
-
* Feature module's are.
|
|
7
|
-
*
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
import * as ScrollSource from "@wardic/core/ScrollSource"
|
|
11
|
-
import * as DomScrollSource from "@wardic/dom/DomScrollSource"
|
|
12
|
-
import * as Layer from "effect/Layer"
|
|
13
|
-
import { type Feature, fromEnvironmentOr } from "../feature.ts"
|
|
14
|
-
import { Timelines } from "../timelines.ts"
|
|
15
|
-
import { makeTimelines } from "./timeline-keys.ts"
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* A container's scroll, live, for the scroll-linked values. `createScroll` brings it, so an app doesn't
|
|
19
|
-
* give it. The Environment's `ScrollSource` when it gives one (`@wardic/test`'s `TestLive`), else the
|
|
20
|
-
* DOM's, built once per provider. Its Timeline values run where the browser has native scroll timelines.
|
|
21
|
-
*/
|
|
22
|
-
// #240 (ADR-0043 *Amendment (#240)*, decision 4): the `Timelines` service, which an element's spine finds
|
|
23
|
-
// among the provider's built Features.
|
|
24
|
-
export const scroll: Feature<ScrollSource.ScrollSource, ScrollSource.ScrollSource["Service"], "scroll"> = {
|
|
25
|
-
name: "scroll",
|
|
26
|
-
key: ScrollSource.ScrollSource,
|
|
27
|
-
layer: /*#__PURE__*/ Layer.merge(
|
|
28
|
-
/*#__PURE__*/ fromEnvironmentOr(ScrollSource.ScrollSource, DomScrollSource.layer),
|
|
29
|
-
/*#__PURE__*/ Layer.sync(Timelines)(makeTimelines),
|
|
30
|
-
),
|
|
31
|
-
}
|
|
1
|
+
// #672: @wardic/dom/unstable/features/Scroll since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/features/Scroll"
|
package/src/gesture-features.ts
CHANGED
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* development's message on a missing one names. Solid-free, for both bindings; it reaches no Feature's
|
|
5
|
-
* code, only their keys.
|
|
6
|
-
*
|
|
7
|
-
* @module
|
|
8
|
-
*/
|
|
9
|
-
import * as InputSource from "@wardic/core/InputSource"
|
|
10
|
-
import * as Context from "effect/Context"
|
|
11
|
-
import * as Option from "effect/Option"
|
|
12
|
-
|
|
13
|
-
/** `key`'s service among `services`, or `undefined` when they hold none: its Feature isn't there. */
|
|
14
|
-
export const serviceIn = <I, S>(services: Context.Context<never>, key: Context.Key<I, S>): S | undefined =>
|
|
15
|
-
Option.getOrUndefined(Context.getOption(services as Context.Context<I>, key))
|
|
16
|
-
|
|
17
|
-
/** The gestures' input among `services`: a section with any gesture Feature but `inView` has it. */
|
|
18
|
-
export const inputIn = (services: Context.Context<never>): InputSource.InputSource["Service"] =>
|
|
19
|
-
Context.get(services as Context.Context<InputSource.InputSource>, InputSource.InputSource)
|
|
20
|
-
|
|
21
|
-
/** What development's word on a missing gesture Feature names, by Feature: what the element asked of it. */
|
|
22
|
-
export const GESTURE_WORDS = {
|
|
23
|
-
hover: "Its hover (`whileHover`, or a hover event)",
|
|
24
|
-
press: "Its press (`whileTap`, or a tap event)",
|
|
25
|
-
focus: "Its focus (`whileFocus`)",
|
|
26
|
-
inView: "Its view (`whileInView`, or a viewport event)",
|
|
27
|
-
pan: "Its pan (a pan event)",
|
|
28
|
-
drag: "Its drag (`drag`)",
|
|
29
|
-
} as const
|
|
30
|
-
|
|
31
|
-
/** Whether `services` hold `key`'s service: its Feature is there. */
|
|
32
|
-
export const hasService = <I, S>(services: Context.Context<never>, key: Context.Key<I, S>): boolean => Option.isSome(Context.getOption(services as Context.Context<I>, key))
|
|
33
|
-
|
|
34
|
-
/** `key`'s service among `services`, which hold it: a Feature a hook or component brought. */
|
|
35
|
-
export const serviceOf = <I, S>(services: Context.Context<never>, key: Context.Key<I, S>): S => Context.get(services as Context.Context<I>, key)
|
|
1
|
+
// #672: @wardic/dom/unstable/GestureFeatures since the lift; solid's modules import it through
|
|
2
|
+
// here until each has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/GestureFeatures"
|
package/src/gesture-info.ts
CHANGED
|
@@ -1,81 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* `getBoundingClientRect()` measures), not the page as Motion's: both bindings, grilled B on each
|
|
5
|
-
* (ADR-0046, ADR-0047). Solid 1's callbacks and Solid 2's `next(name)` both build it here.
|
|
6
|
-
*
|
|
7
|
-
* @module
|
|
8
|
-
*/
|
|
9
|
-
import type * as Drag from "@wardic/core/Drag"
|
|
10
|
-
import type * as InputSource from "@wardic/core/InputSource"
|
|
11
|
-
import type * as Recognizer from "@wardic/core/Recognizer"
|
|
12
|
-
|
|
13
|
-
/** A point in the viewport. */
|
|
14
|
-
export interface WardicPoint {
|
|
15
|
-
readonly x: number
|
|
16
|
-
readonly y: number
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/** A hover's or a press's event: where the pointer was, in the viewport. */
|
|
20
|
-
export interface WardicPointInfo {
|
|
21
|
-
readonly point: WardicPoint
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* A drag's event: where the pointer was, in the viewport, and the drag's `offset` from its down, its
|
|
26
|
-
* last `delta` and its `velocity` (px/s). A scroll during the drag counts as movement in `offset`, as
|
|
27
|
-
* Motion's does; `point` stays where the pointer is on the screen. A one-axis drag's are zeroed off
|
|
28
|
-
* its axis.
|
|
29
|
-
*/
|
|
30
|
-
export interface WardicDragInfo {
|
|
31
|
-
readonly point: WardicPoint
|
|
32
|
-
readonly offset: WardicPoint
|
|
33
|
-
readonly delta: WardicPoint
|
|
34
|
-
readonly velocity: WardicPoint
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** How a press was made: by a pointer, or a **Keyboard press**. */
|
|
38
|
-
export type WardicPressInput = "pointer" | "keyboard"
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* A press's event: where it was, in the viewport, and how it was made. A **Keyboard
|
|
42
|
-
* press**'s point is its element's centre, measured at the key, so code that places something at a
|
|
43
|
-
* press works for one.
|
|
44
|
-
*/
|
|
45
|
-
export interface WardicPressInfo extends WardicPointInfo {
|
|
46
|
-
readonly input: WardicPressInput
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* The platform's event a press's callback hears: a pointer's; a **Keyboard press**'s key, or
|
|
51
|
-
* the blur that cancelled it.
|
|
52
|
-
*/
|
|
53
|
-
export type WardicPressEvent = PointerEvent | KeyboardEvent | FocusEvent
|
|
54
|
-
|
|
55
|
-
/** A press's info (#427): a pointer's point less the scroll its hold counted into it, or a **Keyboard press**'s element's centre. */
|
|
56
|
-
export const pressInfoOf = (press: Recognizer.PressEvent, element: Element): WardicPressInfo => {
|
|
57
|
-
if (press.input === "pointer") return { point: { x: press.event.x - press.event.scroll.x, y: press.event.y - press.event.scroll.y }, input: "pointer" }
|
|
58
|
-
const box = element.getBoundingClientRect()
|
|
59
|
-
return { point: { x: box.left + box.width / 2, y: box.top + box.height / 2 }, input: "keyboard" }
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** A hover's or a press's info: its event's point less the scroll its hold counted into it. */
|
|
63
|
-
export const pointInfoOf = (event: InputSource.PointerLikeEvent): WardicPointInfo => ({
|
|
64
|
-
point: { x: event.x - event.scroll.x, y: event.y - event.scroll.y },
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
/** What a drag's or a pan's sample carries for its info. */
|
|
68
|
-
type Sampled = Pick<Drag.Sample, "point" | "scroll" | "offset" | "delta" | "velocity">
|
|
69
|
-
|
|
70
|
-
/** A drag sample's info: its point less the scroll its hold counted into it, and its own offset, delta and velocity. */
|
|
71
|
-
export const dragInfoOf = (sample: Sampled): WardicDragInfo => ({
|
|
72
|
-
point: { x: sample.point.x - sample.scroll.x, y: sample.point.y - sample.scroll.y },
|
|
73
|
-
offset: sample.offset,
|
|
74
|
-
delta: sample.delta,
|
|
75
|
-
velocity: sample.velocity,
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
/** A sample's point alone, as a hover's or a press's info (a pan's session's start, #273). */
|
|
79
|
-
export const pointOfSample = (sample: Sampled): WardicPointInfo => ({
|
|
80
|
-
point: { x: sample.point.x - sample.scroll.x, y: sample.point.y - sample.scroll.y },
|
|
81
|
-
})
|
|
1
|
+
// #672: @wardic/dom/unstable/GestureInfo since the lift; solid's modules import it through here until each
|
|
2
|
+
// has moved.
|
|
3
|
+
export * from "@wardic/dom/unstable/GestureInfo"
|