@wardic/solid 1.0.0-rc.5 → 1.0.0-rc.7
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/bridge.js +1 -1
- package/dist/browser/bridge.js.map +1 -1
- package/dist/browser/create-ward.js +1 -1
- package/dist/browser/create-ward.js.map +1 -1
- package/dist/browser/imperative.js +16 -5
- package/dist/browser/imperative.js.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/live-scroll.js +1 -1
- package/dist/browser/live-scroll.js.map +1 -1
- package/dist/browser/live-style.js +2 -1
- package/dist/browser/live-style.js.map +1 -1
- package/dist/browser/live-value.js +2 -1
- package/dist/browser/live-value.js.map +1 -1
- package/dist/browser/runtime.js +1 -1
- package/dist/browser/runtime.js.map +1 -1
- package/dist/browser/spine.js +6 -9
- package/dist/browser/spine.js.map +1 -1
- package/dist/browser/unstable/v2/bridge.js +1 -1
- package/dist/browser/unstable/v2/bridge.js.map +1 -1
- package/dist/browser/unstable/v2/live-scroll.js +2 -1
- package/dist/browser/unstable/v2/live-scroll.js.map +1 -1
- package/dist/browser/unstable/v2/live-value.js +2 -1
- package/dist/browser/unstable/v2/live-value.js.map +1 -1
- package/dist/browser/unstable/v2/ward.js +1 -1
- package/dist/browser/unstable/v2/ward.js.map +1 -1
- package/dist/server/bridge.js +1 -1
- package/dist/server/bridge.js.map +1 -1
- package/dist/server/create-ward.js +1 -1
- package/dist/server/create-ward.js.map +1 -1
- package/dist/server/imperative.js +16 -5
- package/dist/server/imperative.js.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/live-scroll.js +1 -1
- package/dist/server/live-scroll.js.map +1 -1
- package/dist/server/live-style.js +2 -1
- package/dist/server/live-style.js.map +1 -1
- package/dist/server/live-value.js +2 -1
- package/dist/server/live-value.js.map +1 -1
- package/dist/server/runtime.js +1 -1
- package/dist/server/runtime.js.map +1 -1
- package/dist/server/spine.js +6 -9
- package/dist/server/spine.js.map +1 -1
- package/dist/server/unstable/v2/bridge.js +1 -1
- package/dist/server/unstable/v2/bridge.js.map +1 -1
- package/dist/server/unstable/v2/live-scroll.js +2 -1
- package/dist/server/unstable/v2/live-scroll.js.map +1 -1
- package/dist/server/unstable/v2/live-value.js +2 -1
- package/dist/server/unstable/v2/live-value.js.map +1 -1
- package/dist/server/unstable/v2/ward.js +1 -1
- package/dist/server/unstable/v2/ward.js.map +1 -1
- package/dist/solid/bridge.d.ts +1 -1
- package/dist/solid/bridge.d.ts.map +1 -1
- package/dist/solid/bridge.js +1 -1
- package/dist/solid/bridge.js.map +1 -1
- package/dist/solid/create-ward.d.ts +1 -1
- package/dist/solid/create-ward.d.ts.map +1 -1
- package/dist/solid/create-ward.jsx +1 -1
- package/dist/solid/create-ward.jsx.map +1 -1
- package/dist/solid/imperative.d.ts.map +1 -1
- package/dist/solid/imperative.js +17 -5
- package/dist/solid/imperative.js.map +1 -1
- package/dist/solid/index.d.ts +1 -1
- package/dist/solid/index.js +1 -1
- package/dist/solid/live-scroll.js +1 -1
- package/dist/solid/live-scroll.js.map +1 -1
- package/dist/solid/live-style.d.ts +2 -1
- package/dist/solid/live-style.d.ts.map +1 -1
- package/dist/solid/live-style.js +2 -1
- package/dist/solid/live-style.js.map +1 -1
- package/dist/solid/live-value.d.ts.map +1 -1
- package/dist/solid/live-value.js +2 -1
- package/dist/solid/live-value.js.map +1 -1
- package/dist/solid/runtime.d.ts +1 -1
- package/dist/solid/runtime.d.ts.map +1 -1
- package/dist/solid/runtime.js +1 -1
- package/dist/solid/runtime.js.map +1 -1
- package/dist/solid/spine.d.ts +1 -1
- package/dist/solid/spine.d.ts.map +1 -1
- package/dist/solid/spine.js +6 -3
- package/dist/solid/spine.js.map +1 -1
- package/dist/solid/unstable/v2/bridge.d.ts +2 -1
- package/dist/solid/unstable/v2/bridge.d.ts.map +1 -1
- package/dist/solid/unstable/v2/bridge.js +1 -1
- package/dist/solid/unstable/v2/bridge.js.map +1 -1
- package/dist/solid/unstable/v2/live-scroll.d.ts.map +1 -1
- package/dist/solid/unstable/v2/live-scroll.js +2 -1
- package/dist/solid/unstable/v2/live-scroll.js.map +1 -1
- package/dist/solid/unstable/v2/live-value.d.ts.map +1 -1
- package/dist/solid/unstable/v2/live-value.js +2 -1
- package/dist/solid/unstable/v2/live-value.js.map +1 -1
- package/dist/solid/unstable/v2/ward.d.ts +1 -1
- package/dist/solid/unstable/v2/ward.d.ts.map +1 -1
- package/dist/solid/unstable/v2/ward.jsx +1 -1
- package/dist/solid/unstable/v2/ward.jsx.map +1 -1
- package/dist/solid/ward-keys.d.ts +1 -1
- package/dist/solid/ward-keys.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/bridge.ts +2 -1
- package/src/create-ward.tsx +1 -1
- package/src/imperative.ts +16 -5
- package/src/index.ts +1 -1
- package/src/live-scroll.ts +1 -1
- package/src/live-style.ts +2 -1
- package/src/live-value.ts +2 -1
- package/src/runtime.ts +1 -1
- package/src/spine.ts +6 -3
- package/src/unstable/v2/bridge.ts +2 -1
- package/src/unstable/v2/live-scroll.ts +2 -1
- package/src/unstable/v2/live-value.ts +2 -1
- package/src/unstable/v2/ward.tsx +1 -1
- package/src/ward-keys.ts +1 -1
package/src/spine.ts
CHANGED
|
@@ -48,7 +48,7 @@ import * as Match from "effect/Match"
|
|
|
48
48
|
import * as Option from "effect/Option"
|
|
49
49
|
import * as Predicate from "effect/Predicate"
|
|
50
50
|
import * as Rec from "effect/Record"
|
|
51
|
-
import
|
|
51
|
+
import * as AtomRegistry from "effect/reactivity/AtomRegistry"
|
|
52
52
|
import * as UndefinedOr from "effect/UndefinedOr"
|
|
53
53
|
import { enterServer, type Handoff, keyOf, type MountAnimation, repeatsForever, type ServerAppear, skippedField, startAtOf } from "./appear.ts"
|
|
54
54
|
import type {
|
|
@@ -2223,9 +2223,12 @@ export const makeElementSpine = (options: ElementSpineOptions): ElementSpine =>
|
|
|
2223
2223
|
// rather than replacing it, so the drag's direct-set x/y survive alongside the
|
|
2224
2224
|
// spring's keys (drag owns x/y, spring owns the rest) and the post-drag
|
|
2225
2225
|
// handoff continues from the rested position. Only the keys it still draws (#325).
|
|
2226
|
+
// In place, as the Follow sink writes (#659): a spread made two records per element per
|
|
2227
|
+
// frame. The Snapshot's records are always its own (`snapshotOf`, `emptySnapshotOf`), and
|
|
2228
|
+
// whatever keeps one copies it or reads it at once.
|
|
2226
2229
|
const value = running.values(frame.value)
|
|
2227
|
-
|
|
2228
|
-
|
|
2230
|
+
Object.assign(snapshot.values, value)
|
|
2231
|
+
Object.assign(snapshot.velocities, running.velocities(frame.velocity))
|
|
2229
2232
|
gate.write(id, value)
|
|
2230
2233
|
recordFrame(value)
|
|
2231
2234
|
drew(running, frame.done, snapshot.now())
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as Effect from "effect/Effect"
|
|
11
11
|
import * as Predicate from "effect/Predicate"
|
|
12
|
-
import
|
|
12
|
+
import type * as Atom from "effect/reactivity/Atom"
|
|
13
|
+
import * as AtomRegistry from "effect/reactivity/AtomRegistry"
|
|
13
14
|
import * as Stream from "effect/Stream"
|
|
14
15
|
import { isServer } from "@solidjs/web"
|
|
15
16
|
import { type Accessor, createSignal, isHydrating, onCleanup } from "solid-js"
|
|
@@ -12,7 +12,8 @@ import * as Bool from "effect/Boolean"
|
|
|
12
12
|
import * as Effect from "effect/Effect"
|
|
13
13
|
import * as Option from "effect/Option"
|
|
14
14
|
import * as Predicate from "effect/Predicate"
|
|
15
|
-
import
|
|
15
|
+
import * as Atom from "effect/reactivity/Atom"
|
|
16
|
+
import * as AtomRegistry from "effect/reactivity/AtomRegistry"
|
|
16
17
|
import * as Rec from "effect/Record"
|
|
17
18
|
import * as Scope from "effect/Scope"
|
|
18
19
|
import * as UndefinedOr from "effect/UndefinedOr"
|
|
@@ -28,7 +28,8 @@ import * as LiveValue from "@wardic/core/LiveValue"
|
|
|
28
28
|
import * as Bool from "effect/Boolean"
|
|
29
29
|
import * as Effect from "effect/Effect"
|
|
30
30
|
import * as Predicate from "effect/Predicate"
|
|
31
|
-
import
|
|
31
|
+
import * as Atom from "effect/reactivity/Atom"
|
|
32
|
+
import * as AtomRegistry from "effect/reactivity/AtomRegistry"
|
|
32
33
|
import * as Scope from "effect/Scope"
|
|
33
34
|
import * as UndefinedOr from "effect/UndefinedOr"
|
|
34
35
|
import { isServer } from "@solidjs/web"
|
package/src/unstable/v2/ward.tsx
CHANGED
|
@@ -66,7 +66,7 @@ import { constFalse, constTrue, constUndefined, constVoid, identity, pipe } from
|
|
|
66
66
|
import * as Option from "effect/Option"
|
|
67
67
|
import * as Predicate from "effect/Predicate"
|
|
68
68
|
import * as UndefinedOr from "effect/UndefinedOr"
|
|
69
|
-
import
|
|
69
|
+
import * as Atom from "effect/reactivity/Atom"
|
|
70
70
|
import { isServer, type JSX, useHead } from "@solidjs/web"
|
|
71
71
|
import {
|
|
72
72
|
type Accessor,
|
package/src/ward-keys.ts
CHANGED