sia-reactor 0.0.32 → 0.0.33
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/adapters/react.cjs +2 -3
- package/dist/adapters/react.js +3 -3
- package/dist/adapters/vanilla.cjs +2 -3
- package/dist/adapters/vanilla.js +3 -3
- package/dist/{chunk-AKQSBLBX.js → chunk-6HZSS2TX.js} +2 -3
- package/dist/{chunk-GD7HZBXA.js → chunk-QPJNSYXT.js} +1 -1
- package/dist/{chunk-XNYVGOKB.js → chunk-UXQ5NJIO.js} +2 -2
- package/dist/index.cjs +2 -3
- package/dist/index.js +1 -1
- package/dist/modules.cjs +2 -3
- package/dist/modules.js +2 -2
- package/dist/styles/time-travel-overlay.css +14 -13
- package/dist/super.global.js +2 -3
- package/package.json +1 -1
package/dist/adapters/react.cjs
CHANGED
|
@@ -666,9 +666,8 @@ var Reactor = class {
|
|
|
666
666
|
if (cord) return cord.clup;
|
|
667
667
|
let task;
|
|
668
668
|
cord = { cb, once, clup: () => (lazy && this.nostall(task), this[`no${key}`](path, cb)) };
|
|
669
|
-
immediate && onImmediate(immediate);
|
|
670
669
|
task = () => (cords ?? (store.set(path, cords = []), cords)).push(cord);
|
|
671
|
-
lazy ? this.stall(task) : task();
|
|
670
|
+
immediate && onImmediate(immediate), lazy ? this.stall(task) : task();
|
|
672
671
|
return this.bindSignal(cord, signal);
|
|
673
672
|
}
|
|
674
673
|
dropSync(store, path, cb) {
|
|
@@ -766,7 +765,7 @@ var Reactor = class {
|
|
|
766
765
|
* const cleanup = rtr.watch("user.name", (value) => console.log(value));
|
|
767
766
|
*/
|
|
768
767
|
watch(path, callback, options) {
|
|
769
|
-
return this.addSync("watch", path, callback, options, (imm) => imm !== "auto"
|
|
768
|
+
return this.addSync("watch", path, callback, options, (imm) => (imm !== "auto" || inAny(this.core, path)) && ((target) => callback(target.value, { type: "init", target, currentTarget: target, root: this.core, rejectable: false }))(this.getContext(path)));
|
|
770
769
|
}
|
|
771
770
|
/** Registers a watcher for a path that only triggers once. */
|
|
772
771
|
wonce(path, callback, options) {
|
package/dist/adapters/react.js
CHANGED
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
Autotracker,
|
|
3
3
|
TimeTravelOverlay,
|
|
4
4
|
withTracker
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-UXQ5NJIO.js";
|
|
6
6
|
import "../chunk-PLYS4CVP.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-QPJNSYXT.js";
|
|
8
8
|
import {
|
|
9
9
|
getReactor
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-6HZSS2TX.js";
|
|
11
11
|
import "../chunk-RI45W4O6.js";
|
|
12
12
|
import "../chunk-3OT72G7R.js";
|
|
13
13
|
import {
|
|
@@ -654,9 +654,8 @@ var Reactor = class {
|
|
|
654
654
|
if (cord) return cord.clup;
|
|
655
655
|
let task;
|
|
656
656
|
cord = { cb, once, clup: () => (lazy && this.nostall(task), this[`no${key}`](path, cb)) };
|
|
657
|
-
immediate && onImmediate(immediate);
|
|
658
657
|
task = () => (cords ?? (store.set(path, cords = []), cords)).push(cord);
|
|
659
|
-
lazy ? this.stall(task) : task();
|
|
658
|
+
immediate && onImmediate(immediate), lazy ? this.stall(task) : task();
|
|
660
659
|
return this.bindSignal(cord, signal);
|
|
661
660
|
}
|
|
662
661
|
dropSync(store, path, cb) {
|
|
@@ -754,7 +753,7 @@ var Reactor = class {
|
|
|
754
753
|
* const cleanup = rtr.watch("user.name", (value) => console.log(value));
|
|
755
754
|
*/
|
|
756
755
|
watch(path, callback, options) {
|
|
757
|
-
return this.addSync("watch", path, callback, options, (imm) => imm !== "auto"
|
|
756
|
+
return this.addSync("watch", path, callback, options, (imm) => (imm !== "auto" || inAny(this.core, path)) && ((target) => callback(target.value, { type: "init", target, currentTarget: target, root: this.core, rejectable: false }))(this.getContext(path)));
|
|
758
757
|
}
|
|
759
758
|
/** Registers a watcher for a path that only triggers once. */
|
|
760
759
|
wonce(path, callback, options) {
|
package/dist/adapters/vanilla.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
TimeTravelOverlay,
|
|
4
4
|
effect,
|
|
5
5
|
withTracker
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UXQ5NJIO.js";
|
|
7
7
|
import "../chunk-PLYS4CVP.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-QPJNSYXT.js";
|
|
9
|
+
import "../chunk-6HZSS2TX.js";
|
|
10
10
|
import "../chunk-RI45W4O6.js";
|
|
11
11
|
import "../chunk-3OT72G7R.js";
|
|
12
12
|
import "../chunk-EZ4VRGYI.js";
|
|
@@ -510,9 +510,8 @@ var Reactor = class {
|
|
|
510
510
|
if (cord) return cord.clup;
|
|
511
511
|
let task;
|
|
512
512
|
cord = { cb, once, clup: () => (lazy && this.nostall(task), this[`no${key}`](path, cb)) };
|
|
513
|
-
immediate && onImmediate(immediate);
|
|
514
513
|
task = () => (cords ?? (store.set(path, cords = []), cords)).push(cord);
|
|
515
|
-
lazy ? this.stall(task) : task();
|
|
514
|
+
immediate && onImmediate(immediate), lazy ? this.stall(task) : task();
|
|
516
515
|
return this.bindSignal(cord, signal);
|
|
517
516
|
}
|
|
518
517
|
dropSync(store, path, cb) {
|
|
@@ -610,7 +609,7 @@ var Reactor = class {
|
|
|
610
609
|
* const cleanup = rtr.watch("user.name", (value) => console.log(value));
|
|
611
610
|
*/
|
|
612
611
|
watch(path, callback, options) {
|
|
613
|
-
return this.addSync("watch", path, callback, options, (imm) => imm !== "auto"
|
|
612
|
+
return this.addSync("watch", path, callback, options, (imm) => (imm !== "auto" || inAny(this.core, path)) && ((target) => callback(target.value, { type: "init", target, currentTarget: target, root: this.core, rejectable: false }))(this.getContext(path)));
|
|
614
613
|
}
|
|
615
614
|
/** Registers a watcher for a path that only triggers once. */
|
|
616
615
|
wonce(path, callback, options) {
|
package/dist/index.cjs
CHANGED
|
@@ -679,9 +679,8 @@ var Reactor = class {
|
|
|
679
679
|
if (cord) return cord.clup;
|
|
680
680
|
let task;
|
|
681
681
|
cord = { cb, once, clup: () => (lazy && this.nostall(task), this[`no${key}`](path, cb)) };
|
|
682
|
-
immediate && onImmediate(immediate);
|
|
683
682
|
task = () => (cords ?? (store.set(path, cords = []), cords)).push(cord);
|
|
684
|
-
lazy ? this.stall(task) : task();
|
|
683
|
+
immediate && onImmediate(immediate), lazy ? this.stall(task) : task();
|
|
685
684
|
return this.bindSignal(cord, signal);
|
|
686
685
|
}
|
|
687
686
|
dropSync(store, path, cb) {
|
|
@@ -779,7 +778,7 @@ var Reactor = class {
|
|
|
779
778
|
* const cleanup = rtr.watch("user.name", (value) => console.log(value));
|
|
780
779
|
*/
|
|
781
780
|
watch(path, callback, options) {
|
|
782
|
-
return this.addSync("watch", path, callback, options, (imm) => imm !== "auto"
|
|
781
|
+
return this.addSync("watch", path, callback, options, (imm) => (imm !== "auto" || inAny(this.core, path)) && ((target) => callback(target.value, { type: "init", target, currentTarget: target, root: this.core, rejectable: false }))(this.getContext(path)));
|
|
783
782
|
}
|
|
784
783
|
/** Registers a watcher for a path that only triggers once. */
|
|
785
784
|
wonce(path, callback, options) {
|
package/dist/index.js
CHANGED
package/dist/modules.cjs
CHANGED
|
@@ -716,9 +716,8 @@ var Reactor = class {
|
|
|
716
716
|
if (cord) return cord.clup;
|
|
717
717
|
let task;
|
|
718
718
|
cord = { cb, once, clup: () => (lazy && this.nostall(task), this[`no${key}`](path, cb)) };
|
|
719
|
-
immediate && onImmediate(immediate);
|
|
720
719
|
task = () => (cords ?? (store.set(path, cords = []), cords)).push(cord);
|
|
721
|
-
lazy ? this.stall(task) : task();
|
|
720
|
+
immediate && onImmediate(immediate), lazy ? this.stall(task) : task();
|
|
722
721
|
return this.bindSignal(cord, signal);
|
|
723
722
|
}
|
|
724
723
|
dropSync(store, path, cb) {
|
|
@@ -816,7 +815,7 @@ var Reactor = class {
|
|
|
816
815
|
* const cleanup = rtr.watch("user.name", (value) => console.log(value));
|
|
817
816
|
*/
|
|
818
817
|
watch(path, callback, options) {
|
|
819
|
-
return this.addSync("watch", path, callback, options, (imm) => imm !== "auto"
|
|
818
|
+
return this.addSync("watch", path, callback, options, (imm) => (imm !== "auto" || inAny(this.core, path)) && ((target) => callback(target.value, { type: "init", target, currentTarget: target, root: this.core, rejectable: false }))(this.getContext(path)));
|
|
820
819
|
}
|
|
821
820
|
/** Registers a watcher for a path that only triggers once. */
|
|
822
821
|
wonce(path, callback, options) {
|
package/dist/modules.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
.tt-overlay-host {
|
|
2
2
|
--sia-tt-color: #e26e02;
|
|
3
|
-
--sia-
|
|
4
|
-
--sia-tt-bg
|
|
5
|
-
--sia-tt-
|
|
6
|
-
--sia-tt-
|
|
7
|
-
--sia-tt-
|
|
8
|
-
--sia-tt-
|
|
3
|
+
--sia-brand-color: rgb(from var(--sia-tt-color) r g b / 1);
|
|
4
|
+
--sia-tt-bg: rgb(from var(--sia-brand-color) calc((r * 0.09) + 6) calc((g * 0.08) + 7) calc((b * 0.1) + 10) / 0.66);
|
|
5
|
+
--sia-tt-bg-soft: rgb(from var(--sia-brand-color) calc((r * 0.11) + 9) calc((g * 0.1) + 9) calc((b * 0.12) + 12) / 0.64);
|
|
6
|
+
--sia-tt-line: hsl(from var(--sia-brand-color) h calc(s * 0.1) 24% / 0.6);
|
|
7
|
+
--sia-tt-text: rgb(from var(--sia-brand-color) calc((r * 0.2) + 218) calc((g * 0.11) + 214) calc((b * 0.09) + 214));
|
|
8
|
+
--sia-tt-muted: rgb(from var(--sia-brand-color) calc((r * 0.24) + 150) calc((g * 0.14) + 146) calc((b * 0.12) + 146));
|
|
9
|
+
--sia-tt-input-bg: rgb(from var(--sia-brand-color) calc((r * 0.08) + 8) calc((g * 0.07) + 8) calc((b * 0.09) + 10) / 0.66);
|
|
9
10
|
position: relative;
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -21,15 +22,15 @@
|
|
|
21
22
|
padding: 0;
|
|
22
23
|
margin: 0;
|
|
23
24
|
scrollbar-width: thin;
|
|
24
|
-
scrollbar-color: var(--sia-
|
|
25
|
+
scrollbar-color: var(--sia-brand-color) transparent;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
:where(.tt-overlay-host) *::selection {
|
|
28
29
|
color: currentColor;
|
|
29
|
-
background-color: var(--sia-
|
|
30
|
+
background-color: rgb(from var(--sia-brand-color) r g b / 0.25);
|
|
30
31
|
}
|
|
31
32
|
.tt-overlay-host :is(*:focus-visible, #o#o#o#o#o) {
|
|
32
|
-
outline: 1.5px dashed var(--sia-
|
|
33
|
+
outline: 1.5px dashed var(--sia-brand-color);
|
|
33
34
|
outline-offset: 1px;
|
|
34
35
|
transition: none;
|
|
35
36
|
}
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
.tt-overlay .title {
|
|
109
|
-
color: var(--sia-
|
|
110
|
+
color: var(--sia-brand-color);
|
|
110
111
|
font-weight: bold;
|
|
111
112
|
}
|
|
112
113
|
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
.tt-overlay button:hover {
|
|
125
|
-
border-color: hsl(from var(--sia-
|
|
126
|
+
border-color: hsl(from var(--sia-brand-color) h calc(s * 0.35) 40% / 0.9);
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
.tt-overlay button:disabled {
|
|
@@ -175,7 +176,7 @@
|
|
|
175
176
|
.tt-overlay input[type="range"] {
|
|
176
177
|
width: 100%;
|
|
177
178
|
height: 5px;
|
|
178
|
-
accent-color: var(--sia-
|
|
179
|
+
accent-color: var(--sia-brand-color);
|
|
179
180
|
border-radius: 8px;
|
|
180
181
|
}
|
|
181
182
|
|
|
@@ -218,7 +219,7 @@
|
|
|
218
219
|
}
|
|
219
220
|
|
|
220
221
|
.tt-footnote a {
|
|
221
|
-
color: var(--sia-
|
|
222
|
+
color: var(--sia-brand-color);
|
|
222
223
|
text-decoration: none;
|
|
223
224
|
border-bottom: 1px solid var(--sia-tt-line);
|
|
224
225
|
}
|
package/dist/super.global.js
CHANGED
|
@@ -743,9 +743,8 @@ var sia = (() => {
|
|
|
743
743
|
if (cord) return cord.clup;
|
|
744
744
|
let task;
|
|
745
745
|
cord = { cb, once, clup: () => (lazy && this.nostall(task), this[`no${key}`](path, cb)) };
|
|
746
|
-
immediate && onImmediate(immediate);
|
|
747
746
|
task = () => (cords ?? (store.set(path, cords = []), cords)).push(cord);
|
|
748
|
-
lazy ? this.stall(task) : task();
|
|
747
|
+
immediate && onImmediate(immediate), lazy ? this.stall(task) : task();
|
|
749
748
|
return this.bindSignal(cord, signal);
|
|
750
749
|
}
|
|
751
750
|
dropSync(store, path, cb) {
|
|
@@ -843,7 +842,7 @@ var sia = (() => {
|
|
|
843
842
|
* const cleanup = rtr.watch("user.name", (value) => console.log(value));
|
|
844
843
|
*/
|
|
845
844
|
watch(path, callback, options) {
|
|
846
|
-
return this.addSync("watch", path, callback, options, (imm) => imm !== "auto"
|
|
845
|
+
return this.addSync("watch", path, callback, options, (imm) => (imm !== "auto" || inAny(this.core, path)) && ((target) => callback(target.value, { type: "init", target, currentTarget: target, root: this.core, rejectable: false }))(this.getContext(path)));
|
|
847
846
|
}
|
|
848
847
|
/** Registers a watcher for a path that only triggers once. */
|
|
849
848
|
wonce(path, callback, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sia-reactor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"description": "The Programmable Data DOM. A high-performance State & Intent Architecture (S.I.A.) Engine with zero-allocation loops, event propagation, and structural sharing.",
|
|
5
5
|
"author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
|
|
6
6
|
"license": "MIT",
|