@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
|
@@ -1,103 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Snapshot } from "./spine.ts";
|
|
3
|
-
/** What controls start or set an element to: a target, a variant name or a list of them, or a function of each element's `custom`. Motion's `AnimationDefinition`. */
|
|
4
|
-
export type WardicControlsDefinition = WardicVariant | WardicVariantLabels | WardicVariantResolver;
|
|
5
|
-
/** The mark that tells controls from a target. */
|
|
6
|
-
declare const CONTROLS: unique symbol;
|
|
7
|
-
/**
|
|
8
|
-
* `createAnimationControls()`'s controls: give them as `animate={controls}`, and every element given
|
|
9
|
-
* them follows `start`, `set` and `stop`. Motion's `LegacyAnimationControls`.
|
|
10
|
-
*/
|
|
11
|
-
export interface WardicAnimationControls {
|
|
12
|
-
readonly [CONTROLS]: true;
|
|
13
|
-
/**
|
|
14
|
-
* Animates every element given these controls to `definition`, as a change of its `animate` would,
|
|
15
|
-
* its variant children following. `transitionOverride`, when given, is the transition of this change,
|
|
16
|
-
* over the definition's own, and its stagger. Resolves once each element and its children have landed.
|
|
17
|
-
*/
|
|
18
|
-
readonly start: (definition: WardicControlsDefinition, transitionOverride?: WardicTransition) => Promise<void>;
|
|
19
|
-
/** Sets every element given these controls, and its variant children, at `definition` at once. */
|
|
20
|
-
readonly set: (definition: WardicControlsDefinition) => void;
|
|
21
|
-
/** Ends every element's running animation where it is. */
|
|
22
|
-
readonly stop: () => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A **Controls change** (#433): what one `start` or `set` set one element's `animate` entry to, the
|
|
26
|
-
* transition it runs on, and the landings it waits for. The element and each Variant child it reaches
|
|
27
|
-
* join it at the Retarget it makes them run, and leave at that one's landing (or the next's).
|
|
28
|
-
*/
|
|
29
|
-
export interface ControlsChange {
|
|
30
|
-
/** Its place among every change: a trigger key part, so a change is a trigger even to the same name. */
|
|
31
|
-
readonly serial: number;
|
|
32
|
-
/** The element's `animate` entry: a target or a name, a resolver already called. */
|
|
33
|
-
readonly definition: WardicVariant | WardicVariantLabels;
|
|
34
|
-
/** The transition of the change (start's override, set's instant one), or none: the element's own. */
|
|
35
|
-
readonly override: WardicTransition | undefined;
|
|
36
|
-
/** Elements in it that haven't landed. */
|
|
37
|
-
pending: number;
|
|
38
|
-
/** Whether every element it reaches has had its chance to join: its binding's flush has run. */
|
|
39
|
-
armed: boolean;
|
|
40
|
-
/** Told once it has landed. */
|
|
41
|
-
readonly landed: () => void;
|
|
42
|
-
}
|
|
43
|
-
/** What a controlled element does at a change, as its binding wires it: its entry set, and the change's landing promised. */
|
|
44
|
-
export interface Controlled {
|
|
45
|
-
readonly change: (definition: WardicControlsDefinition, override: WardicTransition | undefined) => Promise<void>;
|
|
46
|
-
readonly stop: () => void;
|
|
47
|
-
}
|
|
48
|
-
/** `set`'s transition (#433, Motion's `setValues`): none to speak of, and no orchestration. */
|
|
49
|
-
export declare const INSTANT: WardicTransition;
|
|
50
|
-
/**
|
|
51
|
-
* Makes animation controls, which animate elements from code by their variants or targets: give them
|
|
52
|
-
* to each element as `animate={controls}`, on a `w.*` element, in a ward's config or on a
|
|
53
|
-
* `Reorder.Item`, then `start`, `set` or `stop` them. Needs no owner. Motion's `useAnimationControls`.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* const controls = createAnimationControls()
|
|
57
|
-
* <w.ul initial="hidden" animate={controls} variants={list}>…</w.ul>
|
|
58
|
-
* await controls.start("visible")
|
|
59
|
-
* @see https://wardic.dev/reference/solid/animation/create-animation-controls
|
|
60
|
-
*/
|
|
61
|
-
export declare const createAnimationControls: () => WardicAnimationControls;
|
|
62
|
-
/** Whether `u` is **Animation controls** (Motion's `isAnimationControls`). */
|
|
63
|
-
export declare const isAnimationControls: (u: unknown) => u is WardicAnimationControls;
|
|
64
|
-
/** Reach `element` from `controls`, until the returned function: its mount to its unmount. */
|
|
65
|
-
export declare const subscribe: (controls: WardicAnimationControls, element: Controlled) => (() => void);
|
|
66
|
-
/**
|
|
67
|
-
* A change of one element (#433): its entry, `definition` called with the element's `custom`, values
|
|
68
|
-
* and velocities when it's a resolver (once, as Motion's), on `override`; and its landing, promised. It
|
|
69
|
-
* lands once every element it reaches has joined, at the end of the binding's flush (`armed`), and
|
|
70
|
-
* left. One that reaches no element lands then.
|
|
71
|
-
*/
|
|
72
|
-
export declare const changeOf: (definition: WardicControlsDefinition, override: WardicTransition | undefined, custom: unknown, values: Readonly<Record<string, number | string>>, velocities: Readonly<Record<string, number>>) => {
|
|
73
|
-
readonly change: ControlsChange;
|
|
74
|
-
readonly landing: Promise<void>;
|
|
75
|
-
};
|
|
76
|
-
/** An element joins `change`: it runs a Retarget for it. */
|
|
77
|
-
export declare const join: (change: ControlsChange) => void;
|
|
78
|
-
/** An element in `change` landed, or left it (a later change, its unmount): it lands once none is left and it's armed. */
|
|
79
|
-
export declare const leave: (change: ControlsChange) => void;
|
|
80
|
-
/** `change` armed, its binding's flush having run: it lands now if no element joined, or all have left. */
|
|
81
|
-
export declare const arm: (change: ControlsChange) => void;
|
|
82
|
-
/**
|
|
83
|
-
* An element's config with **Animation controls** for its `animate` (#433), as everything but its
|
|
84
|
-
* controls reads it: `change`'s entry (none before the first), and marked controlled, so it names its
|
|
85
|
-
* own variants whatever the entry is (Motion's `isControllingVariants`).
|
|
86
|
-
*/
|
|
87
|
-
export declare const controlledConfigOf: <C extends Pick<WardConfig, "animate">>(config: C, change: ControlsChange | undefined) => C;
|
|
88
|
-
/** A config as a server reads it (#433): one given **Animation controls** has no entry yet, and is controlled. */
|
|
89
|
-
export declare const uncontrolledOf: <C extends Pick<WardConfig, "animate">>(config: C) => C;
|
|
90
|
-
/** What a controlled element reads at a change: its `custom`, and its values and velocities now (its Snapshot). */
|
|
91
|
-
export interface ControlledState {
|
|
92
|
-
readonly custom: () => unknown;
|
|
93
|
-
/** Its Snapshot: its values, and its velocities now (#663), a spring leg's being on its Frame. */
|
|
94
|
-
readonly snapshot: Snapshot;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* A mounted element as its controls reach it (#433): a change sets its entry through `setChange`, its
|
|
98
|
-
* binding's signal, and arms once the binding's flush has run (a microtask after, Solid 2's included),
|
|
99
|
-
* every element it reaches joined by then; `stop` ends its legs.
|
|
100
|
-
*/
|
|
101
|
-
export declare const controlledElement: (setChange: (change: ControlsChange) => void, state: ControlledState, stop: () => void) => Controlled;
|
|
102
|
-
export {};
|
|
1
|
+
export * from "@wardic/core/unstable/AnimationControls";
|
|
103
2
|
//# sourceMappingURL=animation-controls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation-controls.d.ts","sourceRoot":"","sources":["../../src/animation-controls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animation-controls.d.ts","sourceRoot":"","sources":["../../src/animation-controls.ts"],"names":[],"mappings":"AAEA,cAAc,yCAAyC,CAAA"}
|
|
@@ -1,129 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* elements, which follow its calls.
|
|
5
|
-
*
|
|
6
|
-
* - **`start(definition, transitionOverride)`** sets each element's `animate` entry (a **Controls
|
|
7
|
-
* change**), so it Retargets, staggers its Variant children and lands as a change of the prop would.
|
|
8
|
-
* It resolves once each element and the Variant children it hands its names to have landed.
|
|
9
|
-
* - The override is the transition of that change: it beats the definition's own on the element and
|
|
10
|
-
* on each Variant child, and it is their orchestration (stagger, `when`), as Motion's
|
|
11
|
-
* `transitionOverride` is.
|
|
12
|
-
* - Their next Retarget, a gesture's, runs on their own transitions again.
|
|
13
|
-
* - **`set(definition)`** is an **Instant change**: the elements and their Variant children
|
|
14
|
-
* snap there, as Motion's `setValues` sets them.
|
|
15
|
-
* - **`stop()`** ends each element's running legs where they are.
|
|
16
|
-
*
|
|
17
|
-
* A function definition is called once per element, with its `custom`, values and velocities, as
|
|
18
|
-
* Motion's `controls.start((i) => …)`. An element hears the controls from its mount to its unmount.
|
|
19
|
-
*
|
|
20
|
-
* @module
|
|
21
|
-
*/
|
|
22
|
-
import * as Arr from "effect/Array";
|
|
23
|
-
import * as Bool from "effect/Boolean";
|
|
24
|
-
import * as Predicate from "effect/Predicate";
|
|
25
|
-
import * as UndefinedOr from "effect/UndefinedOr";
|
|
26
|
-
/** The mark that tells controls from a target. */
|
|
27
|
-
const CONTROLS = Symbol("wardic.animationControls");
|
|
28
|
-
/** The elements each controls reach, by the controls. */
|
|
29
|
-
// Module state (#460, Q7): each controls object's subscribers, held weakly by it.
|
|
30
|
-
const subscribers = new WeakMap();
|
|
31
|
-
/** `set`'s transition (#433, Motion's `setValues`): none to speak of, and no orchestration. */
|
|
32
|
-
export const INSTANT = { type: "tween", duration: 0 };
|
|
33
|
-
/**
|
|
34
|
-
* Makes animation controls, which animate elements from code by their variants or targets: give them
|
|
35
|
-
* to each element as `animate={controls}`, on a `w.*` element, in a ward's config or on a
|
|
36
|
-
* `Reorder.Item`, then `start`, `set` or `stop` them. Needs no owner. Motion's `useAnimationControls`.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* const controls = createAnimationControls()
|
|
40
|
-
* <w.ul initial="hidden" animate={controls} variants={list}>…</w.ul>
|
|
41
|
-
* await controls.start("visible")
|
|
42
|
-
* @see https://wardic.dev/reference/solid/animation/create-animation-controls
|
|
43
|
-
*/
|
|
44
|
-
// #433's PR 3: each `start` or `set` is a Controls change of each element's `animate` entry.
|
|
45
|
-
export const createAnimationControls = () => {
|
|
46
|
-
const reached = new Set();
|
|
47
|
-
const controls = {
|
|
48
|
-
[CONTROLS]: true,
|
|
49
|
-
start: (definition, transitionOverride) => Promise.all(Arr.map(Arr.fromIterable(reached), (element) => element.change(definition, transitionOverride))).then(() => undefined),
|
|
50
|
-
set: (definition) => reached.forEach((element) => {
|
|
51
|
-
void element.change(definition, INSTANT);
|
|
52
|
-
}),
|
|
53
|
-
stop: () => reached.forEach((element) => element.stop()),
|
|
54
|
-
};
|
|
55
|
-
subscribers.set(controls, reached);
|
|
56
|
-
return controls;
|
|
57
|
-
};
|
|
58
|
-
/** Whether `u` is **Animation controls** (Motion's `isAnimationControls`). */
|
|
59
|
-
export const isAnimationControls = (u) => Predicate.hasProperty(u, CONTROLS);
|
|
60
|
-
/** Reach `element` from `controls`, until the returned function: its mount to its unmount. */
|
|
61
|
-
export const subscribe = (controls, element) => {
|
|
62
|
-
const reached = subscribers.get(controls);
|
|
63
|
-
if (Predicate.isUndefined(reached))
|
|
64
|
-
return () => undefined;
|
|
65
|
-
reached.add(element);
|
|
66
|
-
return () => {
|
|
67
|
-
reached.delete(element);
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
/** The changes made, counted. */
|
|
71
|
-
// Module state (#460, Q7): an id counter, only compared for order and identity.
|
|
72
|
-
let serials = 0;
|
|
73
|
-
/**
|
|
74
|
-
* A change of one element (#433): its entry, `definition` called with the element's `custom`, values
|
|
75
|
-
* and velocities when it's a resolver (once, as Motion's), on `override`; and its landing, promised. It
|
|
76
|
-
* lands once every element it reaches has joined, at the end of the binding's flush (`armed`), and
|
|
77
|
-
* left. One that reaches no element lands then.
|
|
78
|
-
*/
|
|
79
|
-
export const changeOf = (definition, override, custom, values, velocities) => {
|
|
80
|
-
let resolve;
|
|
81
|
-
const landing = new Promise((done) => {
|
|
82
|
-
resolve = done;
|
|
83
|
-
});
|
|
84
|
-
const entry = Bool.match(Predicate.isFunction(definition), {
|
|
85
|
-
onTrue: () => definition(custom, { ...values }, { ...velocities }),
|
|
86
|
-
onFalse: () => definition,
|
|
87
|
-
});
|
|
88
|
-
const change = { serial: ++serials, definition: entry, override, pending: 0, armed: false, landed: resolve };
|
|
89
|
-
return { change, landing };
|
|
90
|
-
};
|
|
91
|
-
/** An element joins `change`: it runs a Retarget for it. */
|
|
92
|
-
export const join = (change) => {
|
|
93
|
-
change.pending++;
|
|
94
|
-
};
|
|
95
|
-
/** An element in `change` landed, or left it (a later change, its unmount): it lands once none is left and it's armed. */
|
|
96
|
-
export const leave = (change) => {
|
|
97
|
-
change.pending--;
|
|
98
|
-
if (change.armed && change.pending <= 0)
|
|
99
|
-
change.landed();
|
|
100
|
-
};
|
|
101
|
-
/** `change` armed, its binding's flush having run: it lands now if no element joined, or all have left. */
|
|
102
|
-
export const arm = (change) => {
|
|
103
|
-
change.armed = true;
|
|
104
|
-
if (change.pending <= 0)
|
|
105
|
-
change.landed();
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* An element's config with **Animation controls** for its `animate` (#433), as everything but its
|
|
109
|
-
* controls reads it: `change`'s entry (none before the first), and marked controlled, so it names its
|
|
110
|
-
* own variants whatever the entry is (Motion's `isControllingVariants`).
|
|
111
|
-
*/
|
|
112
|
-
export const controlledConfigOf = (config, change) => ({ ...config, animate: UndefinedOr.map(change, (c) => c.definition), controlled: true });
|
|
113
|
-
/** A config as a server reads it (#433): one given **Animation controls** has no entry yet, and is controlled. */
|
|
114
|
-
export const uncontrolledOf = (config) => Bool.match(isAnimationControls(config.animate), { onTrue: () => controlledConfigOf(config, undefined), onFalse: () => config });
|
|
115
|
-
/**
|
|
116
|
-
* A mounted element as its controls reach it (#433): a change sets its entry through `setChange`, its
|
|
117
|
-
* binding's signal, and arms once the binding's flush has run (a microtask after, Solid 2's included),
|
|
118
|
-
* every element it reaches joined by then; `stop` ends its legs.
|
|
119
|
-
*/
|
|
120
|
-
export const controlledElement = (setChange, state, stop) => ({
|
|
121
|
-
change: (definition, override) => {
|
|
122
|
-
const made = changeOf(definition, override, state.custom(), state.snapshot.values, state.snapshot.velocitiesNow(state.snapshot));
|
|
123
|
-
setChange(made.change);
|
|
124
|
-
queueMicrotask(() => arm(made.change));
|
|
125
|
-
return made.landing;
|
|
126
|
-
},
|
|
127
|
-
stop,
|
|
128
|
-
});
|
|
1
|
+
// #672: @wardic/core/unstable/AnimationControls since the lift; solid's modules import it through here until
|
|
2
|
+
// each has moved.
|
|
3
|
+
export * from "@wardic/core/unstable/AnimationControls";
|
|
129
4
|
//# sourceMappingURL=animation-controls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation-controls.js","sourceRoot":"","sources":["../../src/animation-controls.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"animation-controls.js","sourceRoot":"","sources":["../../src/animation-controls.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,kBAAkB;AAClB,cAAc,yCAAyC,CAAA"}
|
package/dist/solid/appear.d.ts
CHANGED
|
@@ -1,232 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type * as Values from "@wardic/core/Values";
|
|
3
|
-
import * as Appear from "@wardic/dom/Appear";
|
|
4
|
-
import type * as DomRenderer from "@wardic/dom/DomRenderer";
|
|
5
|
-
import * as Option from "effect/Option";
|
|
6
|
-
import * as Result from "effect/Result";
|
|
7
|
-
import type { WardicTransition } from "./config.ts";
|
|
8
|
-
import { type StopsByKey } from "./retarget-legs.ts";
|
|
9
|
-
import type { Keyframes } from "./variant-target.ts";
|
|
10
|
-
import { type WardicStaggerConfig } from "./variant-tree.ts";
|
|
11
|
-
/** An element's mount animation, described the same on the server and the client. */
|
|
12
|
-
export interface MountAnimation {
|
|
13
|
-
/** The element's tag, for SVG's routing; `undefined` for an element whose tag isn't known. */
|
|
14
|
-
readonly tag: string | undefined;
|
|
15
|
-
/** Each animated key's start. */
|
|
16
|
-
readonly from: Values.Values;
|
|
17
|
-
/** Each animated key's target. */
|
|
18
|
-
readonly to: Values.Values;
|
|
19
|
-
/** The element's own transition: its stagger isn't in it (ADR-0007). */
|
|
20
|
-
readonly transition: WardicTransition | undefined;
|
|
21
|
-
/** Whether reduced motion is on for it (ADR-0029). */
|
|
22
|
-
readonly reduced: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether it's a layout node (#245): drawn through its projection at rest, as the client draws
|
|
25
|
-
* it, its own translate on top (#363). Part of its rule's name (`Appear.Spec.projected`).
|
|
26
|
-
*/
|
|
27
|
-
readonly layout: boolean;
|
|
28
|
-
/** Each key's Keyframes of more than two stops (#429), `from` at their first: part of its key. Left out with none. */
|
|
29
|
-
readonly stops?: StopsByKey | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Whether it's a **Skipped animation** (#468): every key lands on its first frame, so its rule is
|
|
32
|
-
* 0 s, holding its end from first paint. Part of its key; left out when it isn't.
|
|
33
|
-
*/
|
|
34
|
-
readonly skipped?: boolean | undefined;
|
|
35
|
-
/** Its **Transform template** (#443): its stops drawn through it, as the client draws them. Left out with none. */
|
|
36
|
-
readonly template?: DomRenderer.TransformTemplate | undefined;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The mount animation's key: its starts, targets and transition as one canonical text, and whether
|
|
40
|
-
* motion is reduced. `None` when the transition holds a function with no easing name
|
|
41
|
-
* (`Easing.nameOf`): the server can't tell it from another, so the element keeps its Starting style.
|
|
42
|
-
*/
|
|
43
|
-
export declare const keyOf: (m: MountAnimation) => Option.Option<string>;
|
|
44
|
-
/**
|
|
45
|
-
* A Batch's entrance's key (#706, Q9): its keys and each one's transition as a member's change runs them,
|
|
46
|
-
* as canonical text, and whether motion is reduced, or the change is skipped (#468). The server's rule
|
|
47
|
-
* group's, and what a client checks a member's Appear animation against. `None` when a transition holds
|
|
48
|
-
* a function with no easing name: the Batch waits for the JavaScript (Q4).
|
|
49
|
-
*/
|
|
50
|
-
export declare const batchKeyOf: (keys: ReadonlyArray<string>, transitions: ReadonlyArray<unknown>, reduced: boolean, skipped: boolean) => Option.Option<string>;
|
|
51
|
-
/** Whether a transition repeats for ever: a tween's `repeat: Infinity`, a tween as it runs (ADR-0051). */
|
|
52
|
-
export declare const repeatsForever: (transition: WardicTransition | undefined) => boolean;
|
|
53
|
-
/** A mount animation's spec for the DOM's sampler, or why it has none. */
|
|
54
|
-
export declare const specOf: (m: MountAnimation) => Result.Result<Appear.Spec, string>;
|
|
55
|
-
/**
|
|
56
|
-
* Why a mount animation can't play before hydration, or `None` when it can (decision 4): a key
|
|
57
|
-
* starting from anything but `initial`, a value the DOM reads from the element (`auto`, `var()`),
|
|
58
|
-
* or a start that can't take its target's shape (a length pair in two units).
|
|
59
|
-
*/
|
|
60
|
-
export declare const unplayable: (initial: Values.Values, to: Values.Values) => Option.Option<string>;
|
|
61
|
-
/** A variant parent's orchestration, on a server: its children in render order, its stagger and `when`. */
|
|
62
|
-
export interface AppearGroup {
|
|
63
|
-
readonly leader: Entry;
|
|
64
|
-
readonly stagger: WardicStaggerConfig;
|
|
65
|
-
readonly when: "beforeChildren" | "afterChildren" | undefined;
|
|
66
|
-
readonly children: Array<Entry>;
|
|
67
|
-
}
|
|
68
|
-
/** One element's place in a server render's Appear animations. */
|
|
69
|
-
export interface Entry {
|
|
70
|
-
/** Its mount animation per motion setting, or why it has none; `None` when nothing animates. */
|
|
71
|
-
readonly plays: {
|
|
72
|
-
readonly normal: Option.Option<Result.Result<MountAnimation, string>>;
|
|
73
|
-
readonly reduced: Option.Option<Result.Result<MountAnimation, string>>;
|
|
74
|
-
};
|
|
75
|
-
readonly slot: Option.Option<Appear.Slot>;
|
|
76
|
-
/** The group it staggers in, as a Variant child. */
|
|
77
|
-
readonly group: Option.Option<AppearGroup>;
|
|
78
|
-
/** Why it was ruled out after it rendered: its user style, read when `ward()` is called (ADR-0044, decision 4). */
|
|
79
|
-
readonly vetoes: Array<string>;
|
|
80
|
-
/**
|
|
81
|
-
* Whether it follows the user's preference (`"user"`, #434): its reduced play goes under the head's
|
|
82
|
-
* media query. With `"always"` or `"never"` its plays are already that setting's.
|
|
83
|
-
*/
|
|
84
|
-
readonly user: boolean;
|
|
85
|
-
/** Whether it's skipped (#468): its rule lands on first paint, and its own stagger holds it back no more than its client does. */
|
|
86
|
-
readonly skipped: boolean;
|
|
87
|
-
/** Its tag, and the keys its mount animates: what names it when the provider explains (#585). */
|
|
88
|
-
readonly tag: string | undefined;
|
|
89
|
-
readonly to: Option.Option<Values.Values>;
|
|
90
|
-
}
|
|
91
|
-
/** One server render's Appear animations: the provider's (ADR-0044, decisions 3 and 5). */
|
|
92
|
-
export interface ServerAppear {
|
|
93
|
-
/** The provider's reduced motion: an element's, unless its nearest `WardicConfig` sets its own (#434). */
|
|
94
|
-
readonly reducedMotion: ReducedMotion.Config;
|
|
95
|
-
/**
|
|
96
|
-
* An element's entry, and its inline `animation` when it plays: its plays as its reduced motion has
|
|
97
|
-
* them, `setting` (its nearest `WardicConfig`'s, #434) else the provider's. A skipped one's (#468)
|
|
98
|
-
* are one play in both slots, whatever its reduced motion.
|
|
99
|
-
*/
|
|
100
|
-
readonly enter: (animation: {
|
|
101
|
-
readonly normal: Option.Option<Result.Result<MountAnimation, string>>;
|
|
102
|
-
readonly reduced: Option.Option<Result.Result<MountAnimation, string>>;
|
|
103
|
-
}, group: Option.Option<AppearGroup>, setting: ReducedMotion.Config | undefined, skipped: boolean,
|
|
104
|
-
/** Its tag and its targets at mount, which name it when the provider explains (#585). */
|
|
105
|
-
tag: string | undefined, to: Option.Option<Values.Values>) => {
|
|
106
|
-
readonly entry: Entry;
|
|
107
|
-
readonly animation: Option.Option<string>;
|
|
108
|
-
/**
|
|
109
|
-
* Entered after the shell was flushed, so in a chunk a stream sends later (#245), and no late
|
|
110
|
-
* element around it: the chunk's root, which puts the chunk's `<style>` after itself.
|
|
111
|
-
*/
|
|
112
|
-
readonly chunkRoot: boolean;
|
|
113
|
-
readonly late: boolean;
|
|
114
|
-
};
|
|
115
|
-
/** A variant parent's group, its children to come. */
|
|
116
|
-
readonly group: (leader: Entry, transition: WardicTransition | undefined) => AppearGroup;
|
|
117
|
-
/**
|
|
118
|
-
* The head's CSS, once the shell is done: every element entered so far, its timing worked out,
|
|
119
|
-
* and the rules. Called once, by the provider's `useAssets`: what enters after is late (#245).
|
|
120
|
-
*/
|
|
121
|
-
readonly css: () => string;
|
|
122
|
-
/** Render a late element's subtree: an element inside it isn't a chunk's root (#245). */
|
|
123
|
-
readonly within: <A>(late: boolean, render: () => A) => A;
|
|
124
|
-
/**
|
|
125
|
-
* A late chunk's CSS (#245): the rules and timings of every element entered since the last
|
|
126
|
-
* write, those the head sent left out; "" for none. The Solid 2 binding hands it to `useHead`,
|
|
127
|
-
* which streams it with the chunk as a head patch (#209 PR 4a).
|
|
128
|
-
*/
|
|
129
|
-
readonly chunkCss: () => string;
|
|
130
|
-
/**
|
|
131
|
-
* A late chunk's `<style>` (#245), as server text: {@link chunkCss} in a `<style>`. The Solid 1
|
|
132
|
-
* binding's chunk root's thunk asks for it once the chunk has rendered.
|
|
133
|
-
*/
|
|
134
|
-
readonly chunk: () => string;
|
|
135
|
-
/** The nonce the page's Content Security Policy gives inline styles, which each `<style>` carries (#618, P1). */
|
|
136
|
-
readonly nonce: string | undefined;
|
|
137
|
-
/**
|
|
138
|
-
* A Batch's rule group's slot (#706): `play`'s rule, and `reduced`'s under the media query when given;
|
|
139
|
-
* each member's style its own values, the slot and its delay. In the head's CSS, or a late chunk's.
|
|
140
|
-
*/
|
|
141
|
-
readonly batch: (play: Appear.BatchKeyframes, reduced?: Appear.BatchKeyframes | undefined) => Appear.BatchSlot;
|
|
142
|
-
/** Says why a Batch, or one of its members, named by `name`, waits for the JavaScript, when the provider explains (#585, #706). */
|
|
143
|
-
readonly waits: (name: string, reason: string) => void;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* What a provider's `appear` explains with (#585): with `"explain"`, a Warning for each element that
|
|
147
|
-
* waits for the JavaScript, logged as the render finds it with Effect's own logger, since a server
|
|
148
|
-
* builds no runtime from the app's `env`; nothing otherwise.
|
|
149
|
-
*/
|
|
150
|
-
export declare const explainerOf: (appear: boolean | "explain" | undefined) => ((message: string) => void) | undefined;
|
|
151
|
-
/**
|
|
152
|
-
* A server render's Appear animations, for a provider whose reduced motion is `reducedMotion`. With
|
|
153
|
-
* `explain` (the provider's `appear="explain"`, #585), it says why each element that doesn't play
|
|
154
|
-
* waits for the JavaScript, as it finds out; without it, nothing is kept or said.
|
|
155
|
-
*/
|
|
156
|
-
export declare const serverAppear: (reducedMotion: ReducedMotion.Config, explain?: (message: string) => void, nonce?: string) => ServerAppear;
|
|
157
|
-
/** What the server knows of an element when it renders it. */
|
|
158
|
-
export interface ServerElement {
|
|
159
|
-
/** The element's own `appear` (the provider's is the render's {@link ServerAppear}). */
|
|
160
|
-
readonly appear: boolean | undefined;
|
|
161
|
-
readonly tag: string | undefined;
|
|
162
|
-
/** Its starting values: `initial`, an inherited `initial` name, or `animate` under `initial={false}`. */
|
|
163
|
-
readonly initial: Values.Values;
|
|
164
|
-
/** Its targets at mount: `animate`, or an inherited variant name resolved against its `variants`; `None` with neither. */
|
|
165
|
-
readonly to: Option.Option<Values.Values>;
|
|
166
|
-
/** Its targets' Keyframes (#429), each such key's value in `to` their last stop; `undefined` with none. */
|
|
167
|
-
readonly keyframes: Keyframes | undefined;
|
|
168
|
-
/** Whether its mount starts at its `animate` (#448, `startsQuiet`): nothing plays, its Keyframes included (#429). */
|
|
169
|
-
readonly quiet: boolean;
|
|
170
|
-
/** Its own transition, else the one it inherits (ADR-0007). */
|
|
171
|
-
readonly transition: WardicTransition | undefined;
|
|
172
|
-
/** Whether it's a layout node (`layout` or `layoutId`): drawn through its projection at rest (#245). */
|
|
173
|
-
readonly layout: boolean;
|
|
174
|
-
/** Its **Transform template** (#443), when it has one. */
|
|
175
|
-
readonly template?: DomRenderer.TransformTemplate | undefined;
|
|
176
|
-
/** The group it staggers in, as a Variant child: its parent's (`node.inherited`). */
|
|
177
|
-
readonly group: Option.Option<AppearGroup>;
|
|
178
|
-
/** Whether it orchestrates its Variant children: it has variants of its own (ADR-0007). */
|
|
179
|
-
readonly leads: boolean;
|
|
180
|
-
/** Its own transition, whose stagger and `when` its Variant children follow. */
|
|
181
|
-
readonly ownTransition: WardicTransition | undefined;
|
|
182
|
-
/** Its nearest `WardicConfig`'s reduced motion (#434), over the provider's: `undefined` for none. */
|
|
183
|
-
readonly reducedMotion?: ReducedMotion.Config | undefined;
|
|
184
|
-
/** Whether its nearest `WardicConfig` skips its animations (#468). Its transition's own `skipAnimations` counts too. */
|
|
185
|
-
readonly skipAnimations?: boolean | undefined;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* An element's entry in a server render's Appear animations: its inline `animation` when it plays
|
|
189
|
-
* one, and the group its Variant children join when it leads one.
|
|
190
|
-
*/
|
|
191
|
-
export declare const enterServer: (appear: ServerAppear, el: ServerElement) => {
|
|
192
|
-
readonly animation: Option.Option<string>;
|
|
193
|
-
readonly group: Option.Option<AppearGroup>;
|
|
194
|
-
readonly veto: (reason: string) => void;
|
|
195
|
-
/** Rendered after the shell (#245): in a late chunk, and that chunk's root when no late element is around it. */
|
|
196
|
-
readonly late: boolean;
|
|
197
|
-
readonly chunkRoot: boolean;
|
|
198
|
-
};
|
|
199
|
-
/** A mount animation's `skipped` (#468): left out when it isn't, so its key is as before. */
|
|
200
|
-
export declare const skippedField: (skipped: boolean) => {
|
|
201
|
-
readonly skipped?: true;
|
|
202
|
-
};
|
|
203
|
-
/** Whether a user style sets an `animation` of its own: the element's one CSS animation would be taken. */
|
|
204
|
-
export declare const setsAnimation: (css: object | string | undefined) => boolean;
|
|
205
|
-
/** An element's Appear animation, found at mount: the spine starts its first legs as far in as it has got. */
|
|
206
|
-
export interface Handoff {
|
|
207
|
-
readonly animation: Animation;
|
|
208
|
-
}
|
|
209
|
-
/** A root's Appear animations by element, as `Appear.findAll` reads them. */
|
|
210
|
-
type RootRead = ReadonlyMap<Element, Animation>;
|
|
211
|
-
/**
|
|
212
|
-
* The Appear animations on `element`'s page, its document or its shadow root: one `getAnimations()`
|
|
213
|
-
* (`Appear.findAll`), kept until the next microtask checkpoint, for every Handoff until then (#706 Q3,
|
|
214
|
-
* #724). A hydration pass makes all its lookups before one, so it reads once: each element's at mount, and
|
|
215
|
-
* a Batch's at its change's first step.
|
|
216
|
-
*/
|
|
217
|
-
export declare const pageAnimationsOf: (element: Element) => RootRead;
|
|
218
|
-
/**
|
|
219
|
-
* The element's Appear animation, if a server started one (decision 6). Only an element whose inline style
|
|
220
|
-
* names its slot looks, in its page's read (#724): a page with none reads nothing.
|
|
221
|
-
*/
|
|
222
|
-
export declare const handoffOf: (element: Element & ElementCSSInlineStyle) => Option.Option<Handoff>;
|
|
223
|
-
/**
|
|
224
|
-
* How far into its own run the client's first legs start, in seconds, read at their first tick:
|
|
225
|
-
* where the CSS has got, less what the CSS waited that the client waits for itself. The CSS waited
|
|
226
|
-
* its `animation-delay` and its rule's hold; the client's legs hold their transition's delay
|
|
227
|
-
* (`clientDelay`, the stagger in it). The difference is a `when` wait, which the client has already
|
|
228
|
-
* waited.
|
|
229
|
-
*/
|
|
230
|
-
export declare const startAtOf: (handoff: Handoff, ownTransition: WardicTransition | undefined, clientDelay: number) => () => number;
|
|
231
|
-
export {};
|
|
1
|
+
export * from "@wardic/dom/unstable/AppearAnimations";
|
|
232
2
|
//# sourceMappingURL=appear.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appear.d.ts","sourceRoot":"","sources":["../../src/appear.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appear.d.ts","sourceRoot":"","sources":["../../src/appear.ts"],"names":[],"mappings":"AAEA,cAAc,uCAAuC,CAAA"}
|