@wardic/solid 3.0.0-next.3 → 3.0.0-next.4
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/create-animate.js +48 -7
- package/dist/browser/create-animate.js.map +1 -1
- package/dist/browser/diagnostic-codes.js +10 -0
- package/dist/browser/diagnostic-codes.js.map +1 -1
- package/dist/browser/hooks/ward.js +33 -8
- package/dist/browser/hooks/ward.js.map +1 -1
- package/dist/browser/index.js +33 -13
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/live-scroll.js +14 -6
- package/dist/browser/live-scroll.js.map +1 -1
- package/dist/browser/reorder-components.js +4 -0
- package/dist/browser/reorder-components.js.map +1 -1
- package/dist/browser/v1/index.js +1 -1
- package/dist/browser/v1/live-scroll.js +3 -2
- package/dist/browser/v1/live-scroll.js.map +1 -1
- package/dist/browser/ward.js +1 -1
- package/dist/browser/ward.js.map +1 -1
- package/dist/server/create-animate.js +48 -7
- package/dist/server/create-animate.js.map +1 -1
- package/dist/server/diagnostic-codes.js +10 -0
- package/dist/server/diagnostic-codes.js.map +1 -1
- package/dist/server/hooks/ward.js +33 -8
- package/dist/server/hooks/ward.js.map +1 -1
- package/dist/server/index.js +33 -13
- package/dist/server/index.js.map +1 -1
- package/dist/server/live-scroll.js +14 -6
- package/dist/server/live-scroll.js.map +1 -1
- package/dist/server/reorder-components.js +4 -0
- package/dist/server/reorder-components.js.map +1 -1
- package/dist/server/v1/index.js +1 -1
- package/dist/server/v1/live-scroll.js +3 -2
- package/dist/server/v1/live-scroll.js.map +1 -1
- package/dist/server/ward.js +1 -1
- package/dist/server/ward.js.map +1 -1
- package/dist/solid/create-animate.d.ts +36 -6
- package/dist/solid/create-animate.d.ts.map +1 -1
- package/dist/solid/create-animate.jsx +46 -7
- package/dist/solid/create-animate.jsx.map +1 -1
- package/dist/solid/diagnostic-codes.d.ts.map +1 -1
- package/dist/solid/diagnostic-codes.js +11 -0
- package/dist/solid/diagnostic-codes.js.map +1 -1
- package/dist/solid/hooks/ward.d.ts.map +1 -1
- package/dist/solid/hooks/ward.js +35 -9
- package/dist/solid/hooks/ward.js.map +1 -1
- package/dist/solid/index.d.ts +132 -20
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.jsx +50 -14
- package/dist/solid/index.jsx.map +1 -1
- package/dist/solid/live-scroll.d.ts +9 -4
- package/dist/solid/live-scroll.d.ts.map +1 -1
- package/dist/solid/live-scroll.jsx +14 -6
- package/dist/solid/live-scroll.jsx.map +1 -1
- package/dist/solid/reorder-components.d.ts +3 -0
- package/dist/solid/reorder-components.d.ts.map +1 -1
- package/dist/solid/reorder-components.jsx +4 -0
- package/dist/solid/reorder-components.jsx.map +1 -1
- package/dist/solid/v1/index.d.ts +1 -1
- package/dist/solid/v1/index.jsx +1 -1
- package/dist/solid/v1/live-scroll.d.ts +3 -2
- package/dist/solid/v1/live-scroll.d.ts.map +1 -1
- package/dist/solid/v1/live-scroll.jsx +3 -2
- package/dist/solid/v1/live-scroll.jsx.map +1 -1
- package/dist/solid/ward.d.ts +2 -2
- package/dist/solid/ward.d.ts.map +1 -1
- package/dist/solid/ward.jsx +1 -1
- package/dist/solid/ward.jsx.map +1 -1
- package/package.json +5 -5
- package/skills/wardic-diagnostics/SKILL.md +43 -2
- package/skills/wardic-solid/from-motion.md +1 -0
- package/src/create-animate.tsx +93 -8
- package/src/diagnostic-codes.ts +13 -0
- package/src/hooks/ward.ts +33 -8
- package/src/index.tsx +121 -20
- package/src/live-scroll.tsx +22 -9
- package/src/reorder-components.tsx +4 -0
- package/src/v1/index.tsx +1 -1
- package/src/v1/live-scroll.tsx +3 -2
- package/src/ward.tsx +3 -3
package/dist/solid/index.d.ts
CHANGED
|
@@ -53,9 +53,31 @@ export type { WardicConfigProps } from "./wardic-config.tsx";
|
|
|
53
53
|
* of the element's props, so an inline `{...ward(config)}` would make a new one each time, and throws.
|
|
54
54
|
* A kept ward has `.Provider` for its Variant children, `.read(key)` and `.atom(key)` for its values.
|
|
55
55
|
*/
|
|
56
|
-
export {
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
export {
|
|
57
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
58
|
+
type AnyWard,
|
|
59
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
60
|
+
type Ward,
|
|
61
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
62
|
+
type WardChecked,
|
|
63
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
64
|
+
type WardConfig,
|
|
65
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
66
|
+
type WardOptions,
|
|
67
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
68
|
+
type WardProps,
|
|
69
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
70
|
+
type WardRead,
|
|
71
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
72
|
+
type WardStyle,
|
|
73
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
74
|
+
type WardWithProps, } from "./ward.tsx";
|
|
75
|
+
export {
|
|
76
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
77
|
+
ward, } from "./complete.tsx";
|
|
78
|
+
export type {
|
|
79
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
80
|
+
HeldWard, } from "./ward-first.ts";
|
|
59
81
|
/** A Stage (#884, ADR-0073 decisions 12 and 20): what runs a scene, found through its own Solid context. */
|
|
60
82
|
export { type SceneObjectEvent, type SceneObjectEvents, type SceneObjectExit, type SceneWard, type Stage, type StageBatch, type StageBatchBinding, type StageBatchEvents, type StageBatchHooks, type StageBatchMemberInfo, type StageBatchMembers, type StageBatchTarget, type StageBatchValues, type StageCountBatchConfig, type StageDrag, type StageDragConfig, type StageDragHandlers, type StageDragRange, type StageDragTransition, type StageEvent, type StageEvents, type StageKeyedBatchConfig, type StageRead, type StageReadKey, type StageReads, type StageSubject, type StageSubjectOf, type StageSubjects, type StageTargetValues, type StageValueKey, type StageValueOf, type StageValues, type StageWard, type StageWardChecked, type StageWardConfig, type StageWardConfigValues, WardicStage, } from "./stage.ts";
|
|
61
83
|
export { stageSceneObject, type StageMembership, stageWard, type StageWardEnvironment } from "./stage-ward.tsx";
|
|
@@ -65,30 +87,76 @@ export type { WardDragEndInfo, WardDragInfo, WardElement, WardEvent, WardEvents,
|
|
|
65
87
|
export type { WardicAnimationDefinition } from "@wardic/dom/unstable/WardConfig";
|
|
66
88
|
export type { AnimatedKey, WardKey, WardValueOf } from "./ward-keys.ts";
|
|
67
89
|
/** The variant context (ADR-0007): what a ward's `.Provider` and a `wardic.*` element hand their children. */
|
|
68
|
-
export {
|
|
69
|
-
|
|
90
|
+
export {
|
|
91
|
+
/** @deprecated What a 2.x ward's `.Provider` and `wardic.*` hand their children, going at 3.0 with them: a hook ward's child follows it by the rune key `follow`. */
|
|
92
|
+
useVariantContext,
|
|
93
|
+
/** @deprecated What a 2.x ward's `.Provider` and `wardic.*` hand their children, going at 3.0 with them: a hook ward's child follows it by the rune key `follow`. */
|
|
94
|
+
WardicVariantContext, } from "./variant-node.ts";
|
|
95
|
+
export type {
|
|
96
|
+
/** @deprecated What a 2.x ward's `.Provider` and `wardic.*` hand their children, going at 3.0 with them: a hook ward's child follows it by the rune key `follow`. */
|
|
97
|
+
WardicVariantContextValue, } from "@wardic/core/unstable/VariantTree";
|
|
70
98
|
export type { WardicOrchestration, WardicReducedMotion, WardicSkipAnimations, WardicInertia, WardicStagger, WardicPath, WardicPropagate, WardicTransformShorthands, WardicTransition, WardicTransitionEntries, WardicValueKey, WardicValueTransition, WardicKeyframes, WardicTargetValues, WardicValues, WardicVariant, WardicVariantLabels, WardicVariantResolver, WardicVariants, WardicVariantTransition, } from "@wardic/dom/unstable/WardConfig";
|
|
71
99
|
/**
|
|
72
100
|
* `wardic.<tag>` and `wardic.create(tag | Component)` (ADR-0008): Motion's components, with the
|
|
73
101
|
* element's own props and the motion props; a `wardic.create(Component)` component forwards its `ref`.
|
|
74
102
|
*/
|
|
75
|
-
export {
|
|
103
|
+
export {
|
|
104
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
105
|
+
type GivenWard,
|
|
106
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
107
|
+
type Wardic,
|
|
108
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
109
|
+
type WardicBeside,
|
|
110
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
111
|
+
type WardicComponent,
|
|
112
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
113
|
+
type WardicMotion,
|
|
114
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
115
|
+
type WardicProps,
|
|
116
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
117
|
+
type WardicWrappable,
|
|
118
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
119
|
+
type WardicWrapped,
|
|
120
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
121
|
+
type WardNodeKey,
|
|
122
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
123
|
+
type WardRefCallback,
|
|
124
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
125
|
+
wardic, } from "./wardic.tsx";
|
|
76
126
|
/**
|
|
77
127
|
* `w` (#511, ADR-0067; Motion's `m`): the **Slim element**'s forms, `w.<tag>`, `w.create` and
|
|
78
128
|
* `w.ward()`, each as its Complete form but with only the Features chosen above it.
|
|
79
129
|
*/
|
|
80
|
-
export {
|
|
130
|
+
export {
|
|
131
|
+
/** @deprecated `w.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
132
|
+
type W,
|
|
133
|
+
/** @deprecated `w.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
134
|
+
w, } from "./w.tsx";
|
|
81
135
|
export type { WardConfigOf, WardicInstance } from "./wardic-instance.ts";
|
|
82
|
-
export type {
|
|
83
|
-
|
|
84
|
-
|
|
136
|
+
export type {
|
|
137
|
+
/** @deprecated `w.*`'s and `wardic.*`'s, going at 3.0 with them: a hook ward (`createWard` from `@wardic/solid/hooks`) takes runes, not motion props. */
|
|
138
|
+
WardicMotionPropsV2 as WardicMotionProps, } from "./motion-props.ts";
|
|
139
|
+
export {
|
|
140
|
+
/** @deprecated `w.*`'s and `wardic.*`'s, going at 3.0 with them: a hook ward (`createWard` from `@wardic/solid/hooks`) is spread on its element, no component of its own. */
|
|
141
|
+
isWardicComponent,
|
|
142
|
+
/** @deprecated `w.*`'s and `wardic.*`'s, going at 3.0 with them: a hook ward (`createWard` from `@wardic/solid/hooks`) is spread on its element, no component of its own. */
|
|
143
|
+
unwrapWardicComponent,
|
|
144
|
+
/** @deprecated `w.*`'s and `wardic.*`'s, going at 3.0 with them: a hook ward (`createWard` from `@wardic/solid/hooks`) is spread on its element, no component of its own. */
|
|
145
|
+
type WardicCreateOptions, } from "./wardic-component.ts";
|
|
146
|
+
export {
|
|
147
|
+
/** @deprecated `w.*`'s and `wardic.*`'s, going at 3.0 with them: a hook ward (`createWard` from `@wardic/solid/hooks`) takes runes, not motion props. */
|
|
148
|
+
isValidWardicPropV2 as isValidWardicProp, } from "./motion-props.ts";
|
|
85
149
|
/**
|
|
86
150
|
* A presence (ADR-0007): each child's exit before it's removed, from its ward's `exit`. `<AnimatePresence>`
|
|
87
151
|
* was deleted from the exports at the owner's word (probe: behaviour-runes, after the scopes round): the
|
|
88
152
|
* hooks' `<Presence>` and `createPresenceScope` are built on it, and take its place. Solid 1's stays. A
|
|
89
153
|
* presence handle, `createPresence()`, is what a `<Presence ref>` is given.
|
|
90
154
|
*/
|
|
91
|
-
export {
|
|
155
|
+
export {
|
|
156
|
+
/** @deprecated The main entry's presence handle goes at 3.0: `createPresenceRef()` from `@wardic/solid/hooks`, for `<Presence ref>`. */
|
|
157
|
+
createPresence,
|
|
158
|
+
/** @deprecated The main entry's presence handle goes at 3.0: `createPresenceRef()` from `@wardic/solid/hooks`, for `<Presence ref>`. */
|
|
159
|
+
type Presence, type PresenceEvent, type PresenceEvents, } from "./presence-handle.ts";
|
|
92
160
|
export type { PresenceMode, PresenceRecord } from "@wardic/dom/unstable/PresenceController";
|
|
93
161
|
/**
|
|
94
162
|
* Layout (ADR-0009, ADR-0010): a ward's `layout`, `layoutId`, `layoutScroll`, `layoutRoot` and
|
|
@@ -104,21 +172,37 @@ export { measureLayoutBox } from "@wardic/dom/ProjectionSystem";
|
|
|
104
172
|
* `createReducedMotion` follows the user's preference, `createReducedMotionConfig` the nearest config's
|
|
105
173
|
* setting over it, and `createPageInView` whether the page is shown (#443).
|
|
106
174
|
*/
|
|
107
|
-
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
export {
|
|
111
|
-
|
|
175
|
+
export {
|
|
176
|
+
/** @deprecated `createDrag` goes at 3.0: a hook ward's `dragging()` and its `drag` events (`when("drag")`), `createWard` from `@wardic/solid/hooks`. */
|
|
177
|
+
type CreateDragOptions, createInView, createPageInView, createReducedMotion, createReducedMotionConfig, type Sensor, } from "./sensors.tsx";
|
|
178
|
+
export {
|
|
179
|
+
/** @deprecated `createDrag` goes at 3.0: a hook ward's `dragging()` and its `drag` events (`when("drag")`), `createWard` from `@wardic/solid/hooks`. */
|
|
180
|
+
createDrag, } from "./drag-sensor.tsx";
|
|
181
|
+
export {
|
|
182
|
+
/** @deprecated `createFocus` goes at 3.0: a hook ward's `focusing()`, `createWard` from `@wardic/solid/hooks`, spread on its element or handed one by a rune's `subject`. */
|
|
183
|
+
createFocus, } from "./focus-sensor.tsx";
|
|
184
|
+
export {
|
|
185
|
+
/** @deprecated `createHover` goes at 3.0: a hook ward's `hovering()`, `createWard` from `@wardic/solid/hooks`, spread on its element or handed one by a rune's `subject`. */
|
|
186
|
+
createHover, } from "./hover-sensor.tsx";
|
|
187
|
+
export {
|
|
188
|
+
/** @deprecated `createPress` goes at 3.0: a hook ward's `pressing()`, `createWard` from `@wardic/solid/hooks`, spread on its element or handed one by a rune's `subject`. */
|
|
189
|
+
createPress, } from "./press-sensor.tsx";
|
|
112
190
|
export { createCycle, type Cycle } from "./cycle.ts";
|
|
113
191
|
/** Reactive bridges (ADR-0006): a core `Stream` or an Effect `Atom` as an accessor. */
|
|
114
192
|
export { fromAtom, streamToSignal } from "./bridge.tsx";
|
|
115
193
|
export type { WardicDragTransition, WardicLayoutBox, WardicScaleCorrector, WardicTransformPoint, WardicTransformTemplate, WardicViewport } from "@wardic/dom/unstable/WardConfig";
|
|
116
194
|
export type { WardicBoundingBox, WardicDragConstraints, WardicMeasureDragConstraints } from "@wardic/dom/unstable/DragConstraints";
|
|
117
|
-
export {
|
|
118
|
-
|
|
195
|
+
export {
|
|
196
|
+
/** @deprecated `createDragControls` goes at 3.0: `createGrip(row)` from `@wardic/solid/hooks`, a rune of the grip's own ward. */
|
|
197
|
+
createDragControls,
|
|
198
|
+
/** @deprecated `createDragControls` goes at 3.0: `createGrip(row)` from `@wardic/solid/hooks`, a rune of the grip's own ward. */
|
|
199
|
+
type WardicDragControls,
|
|
200
|
+
/** @deprecated `createDragControls` goes at 3.0: `createGrip(row)` from `@wardic/solid/hooks`, a rune of the grip's own ward. */
|
|
201
|
+
type WardicDragControlsOptions, } from "@wardic/dom/unstable/DragControls";
|
|
202
|
+
export { createAnimate, type WardicAnimate, type WardicAnimationScopeV2 as WardicAnimationScope, type WardicAnimationSequence, type WardicAnimationSubject, type WardicElementSegment, type WardicScopeLanding, type WardicSegment, } from "./create-animate.tsx";
|
|
119
203
|
export { createBatch, type WardicBatch, type WardicBatchConfig, type WardicBatchEvents, type WardicBatchMember, type WardicBatchMemberProps, type WardicBatchPointInfo, type WardicBatchPressInfo, type WardicKeyedBatch, type WardicKeyedBatchConfig, } from "./create-batch.tsx";
|
|
120
204
|
export type { WardicBatchExit, WardicBatchGesture, WardicBatchKey, WardicBatchLanding, WardicBatchSegmentTarget, WardicBatchSegmentValue, WardicBatchStop, WardicBatchSubject, WardicBatchTarget, WardicBatchTransition, WardicBatchValues, } from "@wardic/dom/unstable/BatchMembers";
|
|
121
|
-
export type {
|
|
205
|
+
export type { WardicAnimateOptions, WardicAnimationEnd, WardicBatchSegment, WardicFunctionSegment, WardicPlaybackControls, WardicPlayState, WardicSegmentOptions, WardicSegmentTarget, WardicSequenceLabel, WardicSequenceOptions, WardicSequenceTime, } from "@wardic/dom/unstable/Imperative";
|
|
122
206
|
export { createAnimationControls } from "./create-animation-controls.ts";
|
|
123
207
|
export type { WardicAnimationControls, WardicControlsDefinition } from "@wardic/core/unstable/AnimationControls";
|
|
124
208
|
/**
|
|
@@ -138,7 +222,35 @@ export type { FollowAccessor, FollowValueOptions, Live, LiveSource, SpringAccess
|
|
|
138
222
|
* utilities over `createReorder` (probe: hooks-first, the Reorder round).
|
|
139
223
|
*/
|
|
140
224
|
export { Reorder } from "./reorder-components.tsx";
|
|
141
|
-
export {
|
|
225
|
+
export {
|
|
226
|
+
/** @deprecated `reorderGroup` and `<Reorder.Group>` go at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
227
|
+
type AnyReorderGroup,
|
|
228
|
+
/** @deprecated `reorderItem` and `<Reorder.Item>` go at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
229
|
+
type AnyReorderItem,
|
|
230
|
+
/** @deprecated `reorderGroup` and `<Reorder.Group>` go at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
231
|
+
type GroupRefCallback, type ReorderElementTag, type ReorderGroup,
|
|
232
|
+
/** @deprecated `reorderGroup` and `<Reorder.Group>` go at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
233
|
+
type ReorderGroupComponentProps,
|
|
234
|
+
/** @deprecated `reorderGroup` and `<Reorder.Group>` go at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
235
|
+
type ReorderGroupConfig, type ReorderGroupEvents,
|
|
236
|
+
/** @deprecated `reorderGroup` and `<Reorder.Group>` go at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
237
|
+
type ReorderGroupOf,
|
|
238
|
+
/** @deprecated `reorderGroup` and `<Reorder.Group>` go at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
239
|
+
type ReorderGroupProps,
|
|
240
|
+
/** @deprecated `reorderGroup` and `<Reorder.Group>` go at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
241
|
+
reorderGroup,
|
|
242
|
+
/** @deprecated `reorderItem` and `<Reorder.Item>` go at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
243
|
+
type ReorderItem,
|
|
244
|
+
/** @deprecated `reorderItem` and `<Reorder.Item>` go at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
245
|
+
type ReorderItemComponentProps,
|
|
246
|
+
/** @deprecated `reorderItem` and `<Reorder.Item>` go at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
247
|
+
type ReorderItemConfig,
|
|
248
|
+
/** @deprecated `reorderItem` and `<Reorder.Item>` go at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
249
|
+
type ReorderItemLayout,
|
|
250
|
+
/** @deprecated `reorderItem` and `<Reorder.Item>` go at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
251
|
+
type ReorderItemOf,
|
|
252
|
+
/** @deprecated `reorderItem` and `<Reorder.Item>` go at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
253
|
+
reorderItem, type ReorderBatchColumnSize, type ReorderBatchGap, type ReorderBatchGroup, type ReorderBatchGroupProps, type ReorderBatchItemProps, type ReorderBatchItemSize, type ReorderBatchSizing, } from "./reorder.tsx";
|
|
142
254
|
/**
|
|
143
255
|
* Motion's easing functions, by Motion's names (#360, ADR-0052), so a port's imports carry over:
|
|
144
256
|
* `import { easeOut, cubicBezier } from "@wardic/solid"`. An `ease` also takes the names as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,qBAAqB,EACrB,SAAS,EACT,gBAAgB,EAChB,cAA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nB,uJAAuJ;AACvJ,KAAK,iBAAiB;AACtB,uJAAuJ;AACvJ,YAAY;AACZ,2JAA2J;AAC3J,KAAK,WAAW;AAChB,2JAA2J;AAC3J,KAAK,yBAAyB;AAC9B,2JAA2J;AAC3J,KAAK,iBAAiB;AACtB,2JAA2J;AAC3J,KAAK,iBAAiB;AACtB,2JAA2J;AAC3J,KAAK,aAAa;AAClB,2JAA2J;AAC3J,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,MAAM,eAAe,CAAA;AAEtB;;;;;GAKG;AACH,OAAO,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,SAAS,EACT,OAAO,EACP,WAAW,EACX,MAAM,EACN,SAAS,EACT,OAAO,EACP,KAAK,GACN,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/solid/index.jsx
CHANGED
|
@@ -44,36 +44,57 @@ export { WardicConfig } from "./hooks/config.jsx";
|
|
|
44
44
|
* of the element's props, so an inline `{...ward(config)}` would make a new one each time, and throws.
|
|
45
45
|
* A kept ward has `.Provider` for its Variant children, `.read(key)` and `.atom(key)` for its values.
|
|
46
46
|
*/
|
|
47
|
+
// `ward(config)`, `wardic.*`, `w.*` and what serves them alone, the main entry's presence handle, `reorderGroup`,
|
|
48
|
+
// `reorderItem`, drag controls and the four sensors go at 3.0, `@deprecated` until then, each naming what takes
|
|
49
|
+
// its place (the 3.0 bar's Q10, Q11 and Q13). TypeScript reads the tag on an export specifier, so each carries its own.
|
|
47
50
|
export {} from "./ward.jsx";
|
|
48
|
-
export {
|
|
51
|
+
export {
|
|
52
|
+
/** @deprecated `ward(config)` goes at 3.0: `createWard(...runes)` from `@wardic/solid/hooks` takes its place. */
|
|
53
|
+
ward, } from "./complete.jsx";
|
|
49
54
|
/** A Stage (#884, ADR-0073 decisions 12 and 20): what runs a scene, found through its own Solid context. */
|
|
50
55
|
export { WardicStage, } from "./stage.js";
|
|
51
56
|
export { stageSceneObject, stageWard } from "./stage-ward.jsx";
|
|
52
57
|
// A Stage's hooks alone (#927), for an Environment's binding to re-export under the hooks' own names.
|
|
53
58
|
export { createBatchOnStage, createDragOnStage, createHoverOnStage, createPressOnStage, wardOnStage } from "./stage-hooks.js";
|
|
54
59
|
/** The variant context (ADR-0007): what a ward's `.Provider` and a `wardic.*` element hand their children. */
|
|
55
|
-
export {
|
|
60
|
+
export {
|
|
61
|
+
/** @deprecated What a 2.x ward's `.Provider` and `wardic.*` hand their children, going at 3.0 with them: a hook ward's child follows it by the rune key `follow`. */
|
|
62
|
+
useVariantContext,
|
|
63
|
+
/** @deprecated What a 2.x ward's `.Provider` and `wardic.*` hand their children, going at 3.0 with them: a hook ward's child follows it by the rune key `follow`. */
|
|
64
|
+
WardicVariantContext, } from "./variant-node.js";
|
|
56
65
|
/**
|
|
57
66
|
* `wardic.<tag>` and `wardic.create(tag | Component)` (ADR-0008): Motion's components, with the
|
|
58
67
|
* element's own props and the motion props; a `wardic.create(Component)` component forwards its `ref`.
|
|
59
68
|
*/
|
|
60
|
-
export {
|
|
69
|
+
export {
|
|
70
|
+
/** @deprecated `wardic.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
71
|
+
wardic, } from "./wardic.jsx";
|
|
61
72
|
/**
|
|
62
73
|
* `w` (#511, ADR-0067; Motion's `m`): the **Slim element**'s forms, `w.<tag>`, `w.create` and
|
|
63
74
|
* `w.ward()`, each as its Complete form but with only the Features chosen above it.
|
|
64
75
|
*/
|
|
65
|
-
export {
|
|
76
|
+
export {
|
|
77
|
+
/** @deprecated `w.*` goes at 3.0: a hook ward, `createWard(...runes)` from `@wardic/solid/hooks`, spread on the element. */
|
|
78
|
+
w, } from "./w.jsx";
|
|
66
79
|
// #443 (Motion's): `wardic.create`'s options; whether a component is a Wardic element's and what it
|
|
67
80
|
// wraps; whether a prop is a motion prop, Solid 2's own list.
|
|
68
|
-
export {
|
|
69
|
-
|
|
81
|
+
export {
|
|
82
|
+
/** @deprecated `w.*`'s and `wardic.*`'s, going at 3.0 with them: a hook ward (`createWard` from `@wardic/solid/hooks`) is spread on its element, no component of its own. */
|
|
83
|
+
isWardicComponent,
|
|
84
|
+
/** @deprecated `w.*`'s and `wardic.*`'s, going at 3.0 with them: a hook ward (`createWard` from `@wardic/solid/hooks`) is spread on its element, no component of its own. */
|
|
85
|
+
unwrapWardicComponent, } from "./wardic-component.js";
|
|
86
|
+
export {
|
|
87
|
+
/** @deprecated `w.*`'s and `wardic.*`'s, going at 3.0 with them: a hook ward (`createWard` from `@wardic/solid/hooks`) takes runes, not motion props. */
|
|
88
|
+
isValidWardicPropV2 as isValidWardicProp, } from "./motion-props.js";
|
|
70
89
|
/**
|
|
71
90
|
* A presence (ADR-0007): each child's exit before it's removed, from its ward's `exit`. `<AnimatePresence>`
|
|
72
91
|
* was deleted from the exports at the owner's word (probe: behaviour-runes, after the scopes round): the
|
|
73
92
|
* hooks' `<Presence>` and `createPresenceScope` are built on it, and take its place. Solid 1's stays. A
|
|
74
93
|
* presence handle, `createPresence()`, is what a `<Presence ref>` is given.
|
|
75
94
|
*/
|
|
76
|
-
export {
|
|
95
|
+
export {
|
|
96
|
+
/** @deprecated The main entry's presence handle goes at 3.0: `createPresenceRef()` from `@wardic/solid/hooks`, for `<Presence ref>`. */
|
|
97
|
+
createPresence, } from "./presence-handle.js";
|
|
77
98
|
// `usePresence`, `useIsPresent`, `usePresenceData`, `PresenceContext` and `usePresenceContext` were deleted at the owner's
|
|
78
99
|
// word (probe: behaviour-runes, after the scopes round; the gap grill's Q52): what cares about leaving has a ward, one with
|
|
79
100
|
// no motion if it needs none, and reads its `exiting()` and takes its `hold()`. Solid 1's stay.
|
|
@@ -92,19 +113,29 @@ export { measureLayoutBox } from "@wardic/dom/ProjectionSystem";
|
|
|
92
113
|
* setting over it, and `createPageInView` whether the page is shown (#443).
|
|
93
114
|
*/
|
|
94
115
|
export { createInView, createPageInView, createReducedMotion, createReducedMotionConfig, } from "./sensors.jsx";
|
|
95
|
-
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
export {
|
|
116
|
+
export {
|
|
117
|
+
/** @deprecated `createDrag` goes at 3.0: a hook ward's `dragging()` and its `drag` events (`when("drag")`), `createWard` from `@wardic/solid/hooks`. */
|
|
118
|
+
createDrag, } from "./drag-sensor.jsx";
|
|
119
|
+
export {
|
|
120
|
+
/** @deprecated `createFocus` goes at 3.0: a hook ward's `focusing()`, `createWard` from `@wardic/solid/hooks`, spread on its element or handed one by a rune's `subject`. */
|
|
121
|
+
createFocus, } from "./focus-sensor.jsx";
|
|
122
|
+
export {
|
|
123
|
+
/** @deprecated `createHover` goes at 3.0: a hook ward's `hovering()`, `createWard` from `@wardic/solid/hooks`, spread on its element or handed one by a rune's `subject`. */
|
|
124
|
+
createHover, } from "./hover-sensor.jsx";
|
|
125
|
+
export {
|
|
126
|
+
/** @deprecated `createPress` goes at 3.0: a hook ward's `pressing()`, `createWard` from `@wardic/solid/hooks`, spread on its element or handed one by a rune's `subject`. */
|
|
127
|
+
createPress, } from "./press-sensor.jsx";
|
|
99
128
|
// `createCycle` (#443, Motion's `useCycle`): one of a list of states at a time, stepped through.
|
|
100
129
|
export { createCycle } from "./cycle.js";
|
|
101
130
|
/** Reactive bridges (ADR-0006): a core `Stream` or an Effect `Atom` as an accessor. */
|
|
102
131
|
export { fromAtom, streamToSignal } from "./bridge.jsx";
|
|
103
132
|
// Drag controls (#431, Motion's `useDragControls`): a drag started from a handle or a track.
|
|
104
|
-
export {
|
|
133
|
+
export {
|
|
134
|
+
/** @deprecated `createDragControls` goes at 3.0: `createGrip(row)` from `@wardic/solid/hooks`, a rune of the grip's own ward. */
|
|
135
|
+
createDragControls, } from "@wardic/dom/unstable/DragControls";
|
|
105
136
|
// Imperative animation (#433, Motion's `useAnimate`): an Animation scope with `settled()`, its `animate` and its Playback controls.
|
|
106
137
|
// `WardicAnimationScope` on both bindings, each its own (#618, P1), as `isValidWardicProp` is.
|
|
107
|
-
export { createAnimate } from "./create-animate.jsx";
|
|
138
|
+
export { createAnimate, } from "./create-animate.jsx";
|
|
108
139
|
export { createBatch, } from "./create-batch.jsx";
|
|
109
140
|
export { createAnimationControls } from "./create-animation-controls.js";
|
|
110
141
|
/**
|
|
@@ -123,7 +154,12 @@ export { createFrameEffect } from "./frame-effect.jsx";
|
|
|
123
154
|
* utilities over `createReorder` (probe: hooks-first, the Reorder round).
|
|
124
155
|
*/
|
|
125
156
|
export { Reorder } from "./reorder-components.jsx";
|
|
126
|
-
|
|
157
|
+
// `ReorderGroup`, `ReorderGroupEvents` and `ReorderElementTag` the Batch pair names too, so the Batch round decides them.
|
|
158
|
+
export {
|
|
159
|
+
/** @deprecated `reorderGroup` and `<Reorder.Group>` go at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
160
|
+
reorderGroup,
|
|
161
|
+
/** @deprecated `reorderItem` and `<Reorder.Item>` go at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
162
|
+
reorderItem, } from "./reorder.jsx";
|
|
127
163
|
/**
|
|
128
164
|
* Motion's easing functions, by Motion's names (#360, ADR-0052), so a port's imports carry over:
|
|
129
165
|
* `import { easeOut, cubicBezier } from "@wardic/solid"`. An `ease` also takes the names as
|
package/dist/solid/index.jsx.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.jsx","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EAC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AAM,cAAc,CAAA;AAGvD,6FAA6F;AAC7F,OAAO;AACL,iIAAiI;AACjI,kBAAkB,GAKnB,MAAM,mCAAmC,CAAA;AAC1C,oIAAoI;AACpI,+FAA+F;AAC/F,OAAO,EACL,aAAa,GAQd,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,WAAW,GAUZ,MAAM,oBAAoB,CAAA;AA2B3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAIxE;;;;;GAKG;AACH,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,eAAe,EACf,cAAc,EACd,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,YAAY,EAA6D,MAAM,mBAAmB,CAAA;AAC3G,0HAA0H;AAC1H,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAGtD;;;;GAIG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,0HAA0H;AAC1H,OAAO;AAkBL,uJAAuJ;AACvJ,YAAY;AAWZ,2JAA2J;AAC3J,WAAW,GAQZ,MAAM,eAAe,CAAA;AAEtB;;;;;GAKG;AACH,OAAO,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,SAAS,EACT,OAAO,EACP,WAAW,EACX,MAAM,EACN,SAAS,EACT,OAAO,EACP,KAAK,GACN,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,OAAO,EAA6B,MAAM,cAAc,CAAA;AACjE,OAAO,EAAE,GAAG,EAAyB,MAAM,UAAU,CAAA"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type * as ScrollOffset from "@wardic/dom/ScrollOffset";
|
|
2
2
|
import { type Accessor } from "solid-js";
|
|
3
|
+
import type { HookWard } from "./hooks/ward.ts";
|
|
3
4
|
/** An element, or an accessor of one, such as `() => box` for a ref: read once it's there. */
|
|
4
5
|
export type ElementSource = Element | Accessor<Element | undefined>;
|
|
5
6
|
/** `createScroll`'s options, as Motion's `useScroll`'s. */
|
|
6
7
|
export interface ScrollOptions {
|
|
7
8
|
/** The scrolling element, as an accessor of its ref: `() => box`. The page's scroll when left out. */
|
|
8
9
|
readonly container?: ElementSource;
|
|
9
|
-
/**
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* An element whose way through the container the progress reads, between the `offset`s, or a ward, its
|
|
12
|
+
* Subject's, followed to another element as the ward moves (the 3.0 bar's Q4).
|
|
13
|
+
*/
|
|
14
|
+
readonly target?: ElementSource | HookWard;
|
|
11
15
|
/**
|
|
12
16
|
* Where the progress runs, as Motion's: each stop pairs an edge of the target with an edge of the
|
|
13
17
|
* container, `["start end", "end start"]`, 0 at the first and 1 at the last. An edge is `start`,
|
|
@@ -33,8 +37,9 @@ export interface ScrollValues {
|
|
|
33
37
|
* and `scrollYProgress`, from 0 to 1 through its range. The page's, or a `container`'s. With a
|
|
34
38
|
* `target`, the progress is the target's way through, between two `offset`s, on `axis`. Each is set in
|
|
35
39
|
* the scroll's own event, so a value derived from one paints in the frame that shows the scroll. A
|
|
36
|
-
* `container` or `target` given as an accessor of a ref reads 0s until the ref is there
|
|
37
|
-
* server. Motion's
|
|
40
|
+
* `container` or `target` given as an accessor of a ref reads 0s until the ref is there, and a target
|
|
41
|
+
* taken off the page holds the values where they were until one is back. 0s on a server. Motion's
|
|
42
|
+
* `useScroll`.
|
|
38
43
|
*
|
|
39
44
|
* Where the browser has native scroll timelines, an element's `opacity`, `filter`, `clipPath` or
|
|
40
45
|
* transform key given one of these, or a `createTransform` of one through ranges, is drawn by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-scroll.d.ts","sourceRoot":"","sources":["../../src/live-scroll.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,YAAY,MAAM,0BAA0B,CAAA;AAU7D,OAAO,EAAE,KAAK,QAAQ,EAAyC,MAAM,UAAU,CAAA;
|
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Features from "@wardic/dom/unstable/GestureFeatures";
|
|
21
21
|
import * as OwnerScope from "@wardic/dom/unstable/OwnerScope";
|
|
22
22
|
import { followScroll, letGoScroll, scrollAtomsOf } from "./scroll-values.js";
|
|
23
|
+
import { sensedOf } from "./ward.jsx";
|
|
23
24
|
import * as Timelines from "@wardic/core/unstable/Timelines";
|
|
24
25
|
import { followAtom } from "./bridge.jsx";
|
|
25
26
|
import { CLOSE_FAILED, SERVER_ZERO } from "./live-value.jsx";
|
|
@@ -30,18 +31,25 @@ const SCROLL = [Scroll.scroll];
|
|
|
30
31
|
/** `createScroll`'s elements before the render has settled: none yet. */
|
|
31
32
|
const NOT_YET = { container: Option.none(), target: Option.none() };
|
|
32
33
|
const SERVER_SCROLL = { scrollX: SERVER_ZERO, scrollY: SERVER_ZERO, scrollXProgress: SERVER_ZERO, scrollYProgress: SERVER_ZERO };
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
/**
|
|
35
|
+
* An element source read now: `None` for an accessor whose ref hasn't arrived, or a ward with no Subject.
|
|
36
|
+
* A ward's is followed (the 3.0 bar's Q4), so the scroll moves with it to another element.
|
|
37
|
+
*/
|
|
38
|
+
const elementOf = (source) => UndefinedOr.match(sensedOf(source), {
|
|
39
|
+
onDefined: (sensed) => Option.fromUndefinedOr(sensed.element()),
|
|
40
|
+
onUndefined: () => Bool.match(Predicate.isFunction(source), {
|
|
41
|
+
onTrue: () => Option.fromUndefinedOr(source()),
|
|
42
|
+
onFalse: () => Option.some(source),
|
|
43
|
+
}),
|
|
37
44
|
});
|
|
38
45
|
/**
|
|
39
46
|
* A scroll as values: `scrollX` and `scrollY`, how far it's scrolled, in pixels, and `scrollXProgress`
|
|
40
47
|
* and `scrollYProgress`, from 0 to 1 through its range. The page's, or a `container`'s. With a
|
|
41
48
|
* `target`, the progress is the target's way through, between two `offset`s, on `axis`. Each is set in
|
|
42
49
|
* the scroll's own event, so a value derived from one paints in the frame that shows the scroll. A
|
|
43
|
-
* `container` or `target` given as an accessor of a ref reads 0s until the ref is there
|
|
44
|
-
* server. Motion's
|
|
50
|
+
* `container` or `target` given as an accessor of a ref reads 0s until the ref is there, and a target
|
|
51
|
+
* taken off the page holds the values where they were until one is back. 0s on a server. Motion's
|
|
52
|
+
* `useScroll`.
|
|
45
53
|
*
|
|
46
54
|
* Where the browser has native scroll timelines, an element's `opacity`, `filter`, `clipPath` or
|
|
47
55
|
* transform key given one of these, or a `createTransform` of one through ranges, is drawn by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-scroll.jsx","sourceRoot":"","sources":["../../src/live-scroll.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,YAAY,MAAM,2BAA2B,CAAA;AAEzD,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAA;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,YAAY,MAAM,gCAAgC,CAAA;AAC9D,OAAO,KAAK,GAAG,MAAM,eAAe,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAiB,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAE/E,OAAO,KAAK,MAAM,MAAM,sCAAsC,CAAA;AAC9D,OAAO,KAAK,eAAe,MAAM,sCAAsC,CAAA;AACvE,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,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AK,CAAC,OAAO,EAAE,KAAK,EAAE,YAAY,CAAC,CAAA;QAChD,CAAC,CAAA;IACH,CAAC,EACD,WAAW,CACZ,CAAA;IACD,OAAO,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAA4B,CAAA;AACvF,CAAC,CAAA"}
|
|
@@ -23,8 +23,11 @@ import { type ReorderElementTag, type ReorderGripComponentProps, type ReorderGro
|
|
|
23
23
|
* @see https://wardic.dev/reference/solid/reorder/reorder
|
|
24
24
|
*/
|
|
25
25
|
export declare const Reorder: {
|
|
26
|
+
/** @deprecated `<Reorder.Group>` goes at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
26
27
|
readonly Group: <V, Tag extends ReorderElementTag = "ul">(props: ReorderGroupComponentProps<V, Tag>) => JSX.Element;
|
|
28
|
+
/** @deprecated `<Reorder.Item>` goes at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
27
29
|
readonly Item: <V, Tag extends ReorderElementTag = "li">(props: ReorderItemComponentProps<V, Tag>) => JSX.Element;
|
|
30
|
+
/** @deprecated `<Reorder.Grip>` goes at 3.0: `createGrip(row)` from `@wardic/solid/hooks`, a rune of the grip's own ward. */
|
|
28
31
|
readonly Grip: <Tag extends ReorderElementTag = "button">(props: ReorderGripComponentProps<Tag>) => JSX.Element;
|
|
29
32
|
readonly BatchGroup: typeof BatchGroup;
|
|
30
33
|
readonly BatchItem: typeof BatchItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reorder-components.d.ts","sourceRoot":"","sources":["../../src/reorder-components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAGvC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAIjE,OAAO,EAAe,KAAK,iBAAiB,EAAE,KAAK,yBAAyB,EAAE,KAAK,0BAA0B,EAAE,KAAK,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAyBpK;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"reorder-components.d.ts","sourceRoot":"","sources":["../../src/reorder-components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAGvC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAIjE,OAAO,EAAe,KAAK,iBAAiB,EAAE,KAAK,yBAAyB,EAAE,KAAK,0BAA0B,EAAE,KAAK,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAyBpK;;;;;;;;;;;GAWG;AAGH,eAAO,MAAM,OAAO;IAClB,sIAAsI;oBACtH,CAAC,CAAC,EAAE,GAAG,SAAS,iBAAiB,GAAG,IAAI,EAAE,KAAK,EAAE,0BAA0B,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO;IACnH,2IAA2I;mBAC7H,CAAC,CAAC,EAAE,GAAG,SAAS,iBAAiB,GAAG,IAAI,EAAE,KAAK,EAAE,yBAAyB,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO;IAChH,6HAA6H;mBAC/G,CAAC,GAAG,SAAS,iBAAiB,GAAG,QAAQ,EAAE,KAAK,EAAE,yBAAyB,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO;;;CAGtG,CAAA"}
|
|
@@ -39,9 +39,13 @@ const Grip = (props) => elements().Grip(props);
|
|
|
39
39
|
* @see https://wardic.dev/reference/solid/reorder/reorder
|
|
40
40
|
*/
|
|
41
41
|
// ADR-0020; the Batch pair, ADR-0072 (#712); the grip, probe: behaviour-runes (Q29).
|
|
42
|
+
// The three going at 3.0 are `@deprecated` until then (the 3.0 bar's Q10 and Q13); the Batch pair is the Batch round's.
|
|
42
43
|
export const Reorder = {
|
|
44
|
+
/** @deprecated `<Reorder.Group>` goes at 3.0: `createReorder({ each, onReorder })` from `@wardic/solid/hooks`, spread on the list. */
|
|
43
45
|
Group: Group,
|
|
46
|
+
/** @deprecated `<Reorder.Item>` goes at 3.0: `list.item(value)`, a rune of the row's ward (`createReorder` from `@wardic/solid/hooks`). */
|
|
44
47
|
Item: Item,
|
|
48
|
+
/** @deprecated `<Reorder.Grip>` goes at 3.0: `createGrip(row)` from `@wardic/solid/hooks`, a rune of the grip's own ward. */
|
|
45
49
|
Grip: Grip,
|
|
46
50
|
BatchGroup,
|
|
47
51
|
BatchItem,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reorder-components.jsx","sourceRoot":"","sources":["../../src/reorder-components.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAwC,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,WAAW,EAA2H,MAAM,eAAe,CAAA;AACpK,OAAO,EAAE,CAAC,EAAE,MAAM,SAAS,CAAA;AAE3B;;;;GAIG;AACH,8EAA8E;AAC9E,IAAI,IAAiC,CAAA;AACrC,MAAM,QAAQ,GAAG,GAAoB,EAAE;IACrC,6GAA6G;IAC7G,qGAAqG;IACrG,wGAAwG;IACxG,yGAAyG;IACzG,wGAAwG;IACxG,2EAA2E;IAC3E,IAAI,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC;QAAE,IAAI,GAAG,iBAAiB,CAAC,CAA4E,EAAE,aAA0B,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,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AAC,WAAW,CAAC,IAAI,CAAC;QAAE,IAAI,GAAG,iBAAiB,CAAC,CAA4E,EAAE,aAA0B,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,CAAA;IAC9M,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,KAAK,GAAG,CAAC,KAA8B,EAAe,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;AACtF,MAAM,IAAI,GAAG,CAAC,KAA8B,EAAe,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACpF,MAAM,IAAI,GAAG,CAAC,KAA8B,EAAe,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AAEpF;;;;;;;;;;;GAWG;AACH,qFAAqF;AACrF,wHAAwH;AACxH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,sIAAsI;IACtI,KAAK,EAAE,KAA4G;IACnH,2IAA2I;IAC3I,IAAI,EAAE,IAA0G;IAChH,6HAA6H;IAC7H,IAAI,EAAE,IAAwG;IAC9G,UAAU;IACV,SAAS;CACD,CAAA"}
|
package/dist/solid/v1/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @deprecated Solid 1's binding, deprecated and frozen: it goes at Wardic's next major. Solid 2's is `@wardic/solid` (#566).
|
|
19
19
|
*/
|
|
20
|
-
export declare const VERSION = "3.0.0-next.
|
|
20
|
+
export declare const VERSION = "3.0.0-next.4";
|
|
21
21
|
/**
|
|
22
22
|
* `WardicProvider` (one Effect runtime + `AtomRegistry` per ADR-0006), the
|
|
23
23
|
* `useWardicRuntime` accessor, and the scoped-fiber runner (`runScoped` /
|
package/dist/solid/v1/index.jsx
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @deprecated Solid 1's binding, deprecated and frozen: it goes at Wardic's next major. Solid 2's is `@wardic/solid` (#566).
|
|
19
19
|
*/
|
|
20
|
-
export const VERSION = "3.0.0-next.
|
|
20
|
+
export const VERSION = "3.0.0-next.4";
|
|
21
21
|
/**
|
|
22
22
|
* `WardicProvider` (one Effect runtime + `AtomRegistry` per ADR-0006), the
|
|
23
23
|
* `useWardicRuntime` accessor, and the scoped-fiber runner (`runScoped` /
|
|
@@ -33,8 +33,9 @@ export interface ScrollValues {
|
|
|
33
33
|
* and `scrollYProgress`, from 0 to 1 through its range. The page's, or a `container`'s. With a
|
|
34
34
|
* `target`, the progress is the target's way through, between two `offset`s, on `axis`. Each is set in
|
|
35
35
|
* the scroll's own event, so a value derived from one paints in the frame that shows the scroll. A
|
|
36
|
-
* `container` or `target` given as an accessor of a ref reads 0s until the ref is there
|
|
37
|
-
* server. Motion's
|
|
36
|
+
* `container` or `target` given as an accessor of a ref reads 0s until the ref is there, and a target
|
|
37
|
+
* taken off the page holds the values where they were until one is back. 0s on a server. Motion's
|
|
38
|
+
* `useScroll`.
|
|
38
39
|
*
|
|
39
40
|
* Where the browser has native scroll timelines, an element's `opacity`, `filter`, `clipPath` or
|
|
40
41
|
* transform key given one of these, or a `createTransform` of one through ranges, is drawn by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-scroll.d.ts","sourceRoot":"","sources":["../../../src/v1/live-scroll.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,YAAY,MAAM,0BAA0B,CAAA;AAS7D,OAAO,EAAE,KAAK,QAAQ,EAA2B,MAAM,UAAU,CAAA;AAgBjE,8FAA8F;AAC9F,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;AAEnE,2DAA2D;AAC3D,MAAM,WAAW,aAAa;IAC5B,sGAAsG;IACtG,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAA;IAClC,4FAA4F;IAC5F,QAAQ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YAAY;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IAClC,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IAClC,4GAA4G;IAC5G,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC1C,0GAA0G;IAC1G,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAC3C;AAYD;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,eAAO,MAAM,YAAY,aAAa,aAAa,KAAQ,YAkC1D,CAAA"}
|
|
@@ -38,8 +38,9 @@ const elementOf = (source) => Bool.match(Predicate.isFunction(source), {
|
|
|
38
38
|
* and `scrollYProgress`, from 0 to 1 through its range. The page's, or a `container`'s. With a
|
|
39
39
|
* `target`, the progress is the target's way through, between two `offset`s, on `axis`. Each is set in
|
|
40
40
|
* the scroll's own event, so a value derived from one paints in the frame that shows the scroll. A
|
|
41
|
-
* `container` or `target` given as an accessor of a ref reads 0s until the ref is there
|
|
42
|
-
* server. Motion's
|
|
41
|
+
* `container` or `target` given as an accessor of a ref reads 0s until the ref is there, and a target
|
|
42
|
+
* taken off the page holds the values where they were until one is back. 0s on a server. Motion's
|
|
43
|
+
* `useScroll`.
|
|
43
44
|
*
|
|
44
45
|
* Where the browser has native scroll timelines, an element's `opacity`, `filter`, `clipPath` or
|
|
45
46
|
* transform key given one of these, or a `createTransform` of one through ranges, is drawn by the
|