sia-reactor 0.0.35 → 0.0.37
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/README.md +1 -1
- package/dist/{TimeTravelConsole-BLDKZ0U1.d.ts → TimeTravelConsole-B1du_ohf.d.ts} +3 -3
- package/dist/{TimeTravelConsole-zvu8eqTZ.d.cts → TimeTravelConsole-C9eSXGTz.d.cts} +3 -3
- package/dist/adapters/react.cjs +44 -30
- package/dist/adapters/react.d.cts +3 -3
- package/dist/adapters/react.d.ts +3 -3
- package/dist/adapters/react.js +6 -8
- package/dist/adapters/vanilla.cjs +416 -402
- package/dist/adapters/vanilla.d.cts +4 -4
- package/dist/adapters/vanilla.d.ts +4 -4
- package/dist/adapters/vanilla.js +4 -5
- package/dist/{chunk-A3ZCYWWM.js → chunk-EA3LQVCI.js} +17 -12
- package/dist/{chunk-4S44OX5N.js → chunk-OFH4X3QD.js} +18 -17
- package/dist/{chunk-243U74PP.js → chunk-ORK3EGB6.js} +13 -7
- package/dist/{chunk-OTBKVZ4L.js → chunk-WYSENFHG.js} +373 -39
- package/dist/{index-CuLuFYu3.d.cts → index-CQNn1GIg.d.cts} +1 -1
- package/dist/{index-rWwvrfdn.d.cts → index-D0NxfxUv.d.cts} +51 -5
- package/dist/{index-rWwvrfdn.d.ts → index-D0NxfxUv.d.ts} +51 -5
- package/dist/{index-D_U8Nai1.d.ts → index-lo6ft5Zu.d.ts} +1 -1
- package/dist/index.cjs +76 -69
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -16
- package/dist/modules.cjs +36 -23
- package/dist/modules.d.cts +4 -4
- package/dist/modules.d.ts +4 -4
- package/dist/modules.js +3 -4
- package/dist/styles/time-travel-console.css +2 -0
- package/dist/super.d.ts +59 -10
- package/dist/super.global.js +160 -94
- package/dist/utils.cjs +774 -13
- package/dist/utils.d.cts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +8 -2
- package/package.json +2 -2
- package/dist/chunk-2ZYYYSZ4.js +0 -313
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# sia-reactor
|
|
2
2
|
|
|
3
|
-
> The Programmable Data DOM. A high-performance State & Intent Architecture (S.I.A.)
|
|
3
|
+
> The Programmable Data DOM. A high-performance State & Intent Architecture (S.I.A.) engine that gives your data transactional mutation routing and multi-phase state observation.
|
|
4
4
|
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://www.npmjs.com/package/sia-reactor)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Reactive } from './index-
|
|
2
|
-
import { T as TimeTravelModule } from './index-
|
|
1
|
+
import { R as Reactive } from './index-D0NxfxUv.js';
|
|
2
|
+
import { T as TimeTravelModule } from './index-lo6ft5Zu.js';
|
|
3
3
|
|
|
4
4
|
/** Reactive options for the TimeTravel overlay instance. */
|
|
5
5
|
interface TimeTravelConsoleConfig {
|
|
@@ -12,7 +12,7 @@ interface TimeTravelConsoleConfig {
|
|
|
12
12
|
/** Initial open state applied when the overlay is created. */
|
|
13
13
|
startOpen: boolean;
|
|
14
14
|
/** Container element that owns the overlay layer and dock. */
|
|
15
|
-
container
|
|
15
|
+
container?: HTMLElement;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* - Vanilla overlay controller for visual time-travel controls and timeline I/O.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Reactive } from './index-
|
|
2
|
-
import { T as TimeTravelModule } from './index-
|
|
1
|
+
import { R as Reactive } from './index-D0NxfxUv.cjs';
|
|
2
|
+
import { T as TimeTravelModule } from './index-CQNn1GIg.cjs';
|
|
3
3
|
|
|
4
4
|
/** Reactive options for the TimeTravel overlay instance. */
|
|
5
5
|
interface TimeTravelConsoleConfig {
|
|
@@ -12,7 +12,7 @@ interface TimeTravelConsoleConfig {
|
|
|
12
12
|
/** Initial open state applied when the overlay is created. */
|
|
13
13
|
startOpen: boolean;
|
|
14
14
|
/** Container element that owns the overlay layer and dock. */
|
|
15
|
-
container
|
|
15
|
+
container?: HTMLElement;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* - Vanilla overlay controller for visual time-travel controls and timeline I/O.
|
package/dist/adapters/react.cjs
CHANGED
|
@@ -53,9 +53,14 @@ var EVT_OPTS = { LISTENER: ["capture", "depth", "once", "signal", "init"], MEDIA
|
|
|
53
53
|
var NIL = Object.freeze({});
|
|
54
54
|
var NOOP = () => {
|
|
55
55
|
};
|
|
56
|
+
var isDevEnv = false;
|
|
57
|
+
try {
|
|
58
|
+
isDevEnv = process.env.NODE_ENV !== "production";
|
|
59
|
+
} catch (e) {
|
|
60
|
+
}
|
|
56
61
|
var CTX = {
|
|
57
62
|
/** Flag indicating whether the application is running in development mode. */
|
|
58
|
-
isDevEnv
|
|
63
|
+
isDevEnv,
|
|
59
64
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
60
65
|
usingForce: false,
|
|
61
66
|
/** Active `Autotracker` instance, override for automatic dependency collection on `Reactor` traps. */
|
|
@@ -97,10 +102,10 @@ function getPath(source, key, separator = ".", keyFunc) {
|
|
|
97
102
|
const key2 = keyFunc ? keyFunc(keys2[i]) : keys2[i], match = key2.includes("[") && key2.match(arrRegex);
|
|
98
103
|
if (match) {
|
|
99
104
|
const [, key3, iStr] = match;
|
|
100
|
-
if (!Array.isArray(currObj[key3]) || !(key3 in currObj)) return
|
|
105
|
+
if (!Array.isArray(currObj[key3]) || !(key3 in currObj)) return currObj[key3];
|
|
101
106
|
currObj = currObj[key3][Number(iStr)];
|
|
102
107
|
} else {
|
|
103
|
-
if (!isObj(currObj) || !(key2 in currObj)) return
|
|
108
|
+
if (!isObj(currObj) || !(key2 in currObj)) return currObj[key2];
|
|
104
109
|
currObj = currObj[key2];
|
|
105
110
|
}
|
|
106
111
|
}
|
|
@@ -354,10 +359,10 @@ var Reactor = class {
|
|
|
354
359
|
const proxy = new Proxy(target, {
|
|
355
360
|
// Robust Proxy handler
|
|
356
361
|
get: (object, key2, receiver) => {
|
|
357
|
-
if (key2 === RAW) return this.log(`\u{1F440} [
|
|
362
|
+
if (key2 === RAW) return this.log(`\u{1F440} [\`get\` Trap] Peeked at ${object}`), object;
|
|
358
363
|
let value = !this.config.preserveContext ? object[key2] : Reflect.get(object, key2, receiver);
|
|
359
364
|
const keyStr = String(key2), fullPath = path ? path + "." + keyStr : keyStr, paths = this.config.lineageTracing ? this.trace(object, keyStr) : fullPath;
|
|
360
|
-
this.log(`\u{1F50D} [
|
|
365
|
+
this.log(`\u{1F50D} [\`get\` Trap] Initiated for "${keyStr}" on [${paths}]`), CTX.autotracker?.track(fullPath, this);
|
|
361
366
|
if (this.config.get) value = this.config.get(object, key2, value, receiver, paths);
|
|
362
367
|
if (this.getters) {
|
|
363
368
|
const wildcords = this.getters.get("*");
|
|
@@ -376,13 +381,13 @@ var Reactor = class {
|
|
|
376
381
|
set: (object, key2, value, receiver) => {
|
|
377
382
|
let unchanged, safeValue, safeOldValue, terminated = false;
|
|
378
383
|
const keyStr = String(key2), fullPath = path ? path + "." + keyStr : keyStr, paths = this.config.lineageTracing ? this.trace(object, keyStr) : fullPath, loopLen = this.config.lineageTracing ? paths.length : 1, oldValue = !this.config.preserveContext ? object[key2] : Reflect.get(object, key2, receiver), hadKey = !this.config.preserveContext ? key2 in object : Reflect.has(object, key2);
|
|
379
|
-
this.log(`\u270F\uFE0F [
|
|
384
|
+
this.log(`\u270F\uFE0F [\`set\` Trap] Initiated for "${keyStr}" on [${paths}]`), CTX.autotracker?.track(fullPath, this, true);
|
|
380
385
|
if (this.config.referenceTracking || !indiffable) {
|
|
381
386
|
safeOldValue = oldValue?.[RAW] || oldValue;
|
|
382
387
|
safeValue = value?.[RAW] || value;
|
|
383
388
|
unchanged = this.config.equalityFunction(safeValue, safeOldValue);
|
|
384
389
|
}
|
|
385
|
-
if (!indiffable && unchanged && !CTX.usingForce && keyStr !== "length") return this.log(`\u{1F504} [
|
|
390
|
+
if (!indiffable && unchanged && !CTX.usingForce && keyStr !== "length") return this.log(`\u{1F504} [\`set\` Trap] Unchanged for "${keyStr}" on [${paths}]`), true;
|
|
386
391
|
if (this.config.set) terminated = (value = this.config.set(object, key2, value, oldValue, receiver, paths)) === TERMINATOR;
|
|
387
392
|
if (this.setters) {
|
|
388
393
|
const wildcords = this.setters.get("*");
|
|
@@ -400,9 +405,9 @@ var Reactor = class {
|
|
|
400
405
|
if (!(terminated ||= payload.terminated)) value = result;
|
|
401
406
|
}
|
|
402
407
|
}
|
|
403
|
-
if (terminated) return this.log(`\u{1F6E1}\uFE0F [
|
|
408
|
+
if (terminated) return this.log(`\u{1F6E1}\uFE0F [\`set\` Trap] Terminated for "${keyStr}" on [${paths}]`), true;
|
|
404
409
|
const success = !this.config.preserveContext ? (object[key2] = value, true) : Reflect.set(object, key2, value, receiver);
|
|
405
|
-
if (!success) return this.log(`\u274C [
|
|
410
|
+
if (!success) return this.log(`\u274C [\`set\` Trap] Failed for "${keyStr}" on [${paths}]`), false;
|
|
406
411
|
if (this.config.referenceTracking && !unchanged) this.config.smartCloning && this.stamp(object), this.unlink(safeOldValue, object, keyStr), this.link(safeValue, object, keyStr);
|
|
407
412
|
if (this.watchers || this.listeners)
|
|
408
413
|
for (let i = 0; i < loopLen; i++) {
|
|
@@ -414,7 +419,7 @@ var Reactor = class {
|
|
|
414
419
|
deleteProperty: (object, key2) => {
|
|
415
420
|
let value, receiver = this.proxyCache.get(object), terminated = false;
|
|
416
421
|
const keyStr = String(key2), fullPath = path ? path + "." + keyStr : keyStr, paths = this.config.lineageTracing ? this.trace(object, keyStr) : fullPath, loopLen = this.config.lineageTracing ? paths.length : 1, oldValue = !this.config.preserveContext ? object[key2] : Reflect.get(object, key2, receiver), hadKey = !this.config.preserveContext ? key2 in object : Reflect.has(object, key2);
|
|
417
|
-
this.log(`\u{1F5D1}\uFE0F [
|
|
422
|
+
this.log(`\u{1F5D1}\uFE0F [\`deleteProperty\` Trap] Initiated for "${keyStr}" on [${paths}]`), CTX.autotracker?.track(fullPath, this, true);
|
|
418
423
|
if (this.config.deleteProperty) terminated = (value = this.config.deleteProperty(object, key2, oldValue, receiver, paths)) === TERMINATOR;
|
|
419
424
|
if (this.deleters) {
|
|
420
425
|
const wildcords = this.deleters.get("*");
|
|
@@ -431,9 +436,9 @@ var Reactor = class {
|
|
|
431
436
|
if (!(terminated ||= payload.terminated)) value = result;
|
|
432
437
|
}
|
|
433
438
|
}
|
|
434
|
-
if (terminated) return this.log(`\u{1F6E1}\uFE0F [
|
|
439
|
+
if (terminated) return this.log(`\u{1F6E1}\uFE0F [\`deleteProperty\` Trap] Terminated for "${keyStr}" on [${paths}]`), true;
|
|
435
440
|
const success = !this.config.preserveContext ? delete object[key2] : Reflect.deleteProperty(object, key2);
|
|
436
|
-
if (!success) return this.log(`\u274C [
|
|
441
|
+
if (!success) return this.log(`\u274C [\`deleteProperty\` Trap] Failed for "${keyStr}" on [${paths}]`), false;
|
|
437
442
|
if (this.config.referenceTracking) this.config.smartCloning && this.stamp(object), this.unlink(oldValue?.[RAW] || oldValue, object, keyStr);
|
|
438
443
|
if (this.watchers || this.listeners)
|
|
439
444
|
for (let i = 0; i < loopLen; i++) {
|
|
@@ -445,21 +450,21 @@ var Reactor = class {
|
|
|
445
450
|
has: (object, key2) => {
|
|
446
451
|
let has = !this.config.preserveContext ? key2 in object : Reflect.has(object, key2);
|
|
447
452
|
const keyStr = String(key2), fullPath = path ? path + "." + keyStr : keyStr;
|
|
448
|
-
this.log(`\u2753 [
|
|
453
|
+
this.log(`\u2753 [\`has\` Trap] Initiated for "${keyStr}" on '${fullPath}'`), CTX.autotracker?.track(fullPath, this);
|
|
449
454
|
if (this.config.has) has = this.config.has(object, key2, has, this.proxyCache.get(object), fullPath);
|
|
450
455
|
return has;
|
|
451
456
|
},
|
|
452
457
|
getOwnPropertyDescriptor: (object, key2) => {
|
|
453
458
|
let descriptor = !this.config.preserveContext ? Object.getOwnPropertyDescriptor(object, key2) : Reflect.getOwnPropertyDescriptor(object, key2);
|
|
454
459
|
const keyStr = String(key2), fullPath = path ? path + "." + keyStr : keyStr;
|
|
455
|
-
this.log(`\u{1F4CB} [
|
|
460
|
+
this.log(`\u{1F4CB} [\`getOwnPropertyDescriptor\` Trap] Initiated for "${keyStr}" on '${fullPath}'`), CTX.autotracker?.track(fullPath, this);
|
|
456
461
|
if (this.config.getOwnPropertyDescriptor) descriptor = this.config.getOwnPropertyDescriptor(object, key2, descriptor, this.proxyCache.get(object), this.config.lineageTracing ? this.trace(object, keyStr) : fullPath);
|
|
457
462
|
return descriptor;
|
|
458
463
|
},
|
|
459
464
|
ownKeys: (object) => {
|
|
460
465
|
let ownKeys = Reflect.ownKeys(object);
|
|
461
466
|
const safePath = path || "*";
|
|
462
|
-
this.log(`\u{1F511} [
|
|
467
|
+
this.log(`\u{1F511} [\`ownKeys\` Trap] Initiated on "${safePath}"`), CTX.autotracker?.track(safePath, this);
|
|
463
468
|
if (this.config.ownKeys) ownKeys = this.config.ownKeys(object, ownKeys, this.proxyCache.get(object), safePath);
|
|
464
469
|
return ownKeys;
|
|
465
470
|
}
|
|
@@ -938,41 +943,44 @@ var Autotracker = class {
|
|
|
938
943
|
get: (object, key, receiver) => {
|
|
939
944
|
if (key === RAW) return this.rtr.log(`\u{1F440} [AutoTracker \`get\` Trap] Peeked at ${object}`), object;
|
|
940
945
|
const keyStr = String(key), fullPath = path ? `${path}.${keyStr}` : keyStr;
|
|
941
|
-
return this.rtr.log(`\u{1F50D} [AutoTracker \`get\` Trap] Initiated for "${keyStr}" on
|
|
946
|
+
return this.rtr.log(`\u{1F50D} [AutoTracker \`get\` Trap] Initiated for "${keyStr}" on '${path}'`), this.track(fullPath), this.proxied(!this.rtr.config.preserveContext ? object[key] : Reflect.get(object, key, receiver), fullPath);
|
|
942
947
|
},
|
|
943
948
|
has: (object, key) => {
|
|
944
949
|
const keyStr = String(key), fullPath = path ? `${path}.${keyStr}` : keyStr;
|
|
945
|
-
return this.rtr.log(`\u2753 [AutoTracker \`has\` Trap] Initiated for "${keyStr}" on
|
|
950
|
+
return this.rtr.log(`\u2753 [AutoTracker \`has\` Trap] Initiated for "${keyStr}" on '${path}'`), this.track(fullPath), !this.rtr.config.preserveContext ? key in object : Reflect.has(object, key);
|
|
946
951
|
},
|
|
947
952
|
getOwnPropertyDescriptor: (object, key) => {
|
|
948
953
|
const keyStr = String(key), fullPath = path ? `${path}.${keyStr}` : keyStr;
|
|
949
|
-
return this.rtr.log(`\u{1F4CB} [AutoTracker \`getOwnPropertyDescriptor\` Trap] Initiated for "${keyStr}" on
|
|
954
|
+
return this.rtr.log(`\u{1F4CB} [AutoTracker \`getOwnPropertyDescriptor\` Trap] Initiated for "${keyStr}" on '${path}'`), this.track(fullPath), !this.rtr.config.preserveContext ? Object.getOwnPropertyDescriptor(object, key) : Reflect.getOwnPropertyDescriptor(object, key);
|
|
950
955
|
},
|
|
951
956
|
ownKeys: (object) => {
|
|
952
957
|
const safePath = path || "*";
|
|
953
958
|
return this.rtr.log(`\u{1F511} [AutoTracker \`ownKeys\` Trap] Initiated on "${safePath}"`), this.track(safePath), Reflect.ownKeys(object);
|
|
954
959
|
},
|
|
955
960
|
set: (_, key) => {
|
|
956
|
-
throw new Error(`\u{1F6E1}\uFE0F [AutoTracker \`set\` Trap] Blocked for "${String(key)}" on
|
|
961
|
+
throw new Error(`\u{1F6E1}\uFE0F [AutoTracker \`set\` Trap] Blocked for "${String(key)}" on '${path}'`);
|
|
957
962
|
},
|
|
958
963
|
deleteProperty: (_, key) => {
|
|
959
|
-
throw new Error(`\u{1F6E1}\uFE0F [AutoTracker \`deleteProperty\` Trap] Blocked for "${String(key)}" on
|
|
964
|
+
throw new Error(`\u{1F6E1}\uFE0F [AutoTracker \`deleteProperty\` Trap] Blocked for "${String(key)}" on '${path}'`);
|
|
960
965
|
},
|
|
961
966
|
defineProperty: (_, key) => {
|
|
962
|
-
throw new Error(`\u{1F6E1}\uFE0F [AutoTracker \`defineProperty\` Trap] Blocked for "${String(key)}" on
|
|
967
|
+
throw new Error(`\u{1F6E1}\uFE0F [AutoTracker \`defineProperty\` Trap] Blocked for "${String(key)}" on '${path}'`);
|
|
963
968
|
},
|
|
964
969
|
setPrototypeOf: (_, key) => {
|
|
965
|
-
throw new Error(`\u{1F6E1}\uFE0F [AutoTracker \`setPrototypeOf\` Trap] Blocked for "${String(key)}" on
|
|
970
|
+
throw new Error(`\u{1F6E1}\uFE0F [AutoTracker \`setPrototypeOf\` Trap] Blocked for "${String(key)}" on '${path}'`);
|
|
966
971
|
}
|
|
967
972
|
});
|
|
968
973
|
return this.proxyCache.set(obj, proxy), proxy;
|
|
969
974
|
}
|
|
970
975
|
/** Adds a path to the tracking set. */
|
|
971
|
-
track(path, rtr = this.rtr, prune = false) {
|
|
976
|
+
track(path, rtr = this.rtr, prune = false, strict = false) {
|
|
972
977
|
if (!this.isTracking || !path || this.autortr && this.autortr !== rtr) return path;
|
|
973
978
|
let paths = this.deps.get(rtr);
|
|
974
979
|
if (!prune && !paths) paths = (this.deps.set(rtr, paths = /* @__PURE__ */ new Set()), paths);
|
|
975
|
-
if (path.startsWith(this.lastPath + "."))
|
|
980
|
+
if (path.startsWith(this.lastPath + ".")) {
|
|
981
|
+
const child = path.slice(this.lastPath.length + 1);
|
|
982
|
+
(strict || !child.includes("Symbol(") && child !== "length" && !/^\d+$/.test(child)) && paths.delete(this.lastPath);
|
|
983
|
+
}
|
|
976
984
|
return !prune && paths.add(this.lastPath = path), path;
|
|
977
985
|
}
|
|
978
986
|
/** Removes a path from the tracking set. */
|
|
@@ -1131,16 +1139,22 @@ var wpArr = ["*"];
|
|
|
1131
1139
|
function createEl(tag, props, dataset, styles, el = tag ? document?.createElement(tag) : null) {
|
|
1132
1140
|
return assignEl(el, props, dataset, styles);
|
|
1133
1141
|
}
|
|
1134
|
-
function assignEl(el, props, dataset, styles) {
|
|
1142
|
+
function assignEl(el, props, dataset, styles, nodiff = true) {
|
|
1135
1143
|
if (!el) return null;
|
|
1136
1144
|
if (props) {
|
|
1137
|
-
for (const k of Object.keys(props)) if (props[k] !== void 0)
|
|
1145
|
+
for (const k of Object.keys(props)) if (props[k] !== void 0) {
|
|
1146
|
+
if (nodiff || el[k] !== props[k]) el[k] = props[k];
|
|
1147
|
+
}
|
|
1138
1148
|
}
|
|
1139
1149
|
if (dataset) {
|
|
1140
|
-
for (const k of Object.keys(dataset)) if (dataset[k] !== void 0)
|
|
1150
|
+
for (const k of Object.keys(dataset)) if (dataset[k] !== void 0) {
|
|
1151
|
+
if (nodiff || el.dataset[k] !== dataset[k]) el.dataset[k] = String(dataset[k]);
|
|
1152
|
+
}
|
|
1141
1153
|
}
|
|
1142
1154
|
if (styles) {
|
|
1143
|
-
for (const k of Object.keys(styles)) if (styles[k] !== void 0)
|
|
1155
|
+
for (const k of Object.keys(styles)) if (styles[k] !== void 0) {
|
|
1156
|
+
if (nodiff || el.style[k] !== styles[k]) el.style[k] = styles[k];
|
|
1157
|
+
}
|
|
1144
1158
|
}
|
|
1145
1159
|
return el;
|
|
1146
1160
|
}
|
|
@@ -1193,7 +1207,7 @@ function keyEventAllowed(e, settings) {
|
|
|
1193
1207
|
if (settings.disabled) return false;
|
|
1194
1208
|
const activeEl = getActiveEl(e.target?.ownerDocument);
|
|
1195
1209
|
if ((e.key === " " || e.key === "Enter") && activeEl?.matches("button,input[type='button'],input[type='submit']")) return false;
|
|
1196
|
-
if (e.currentTarget !== activeEl && activeEl?.matches("input,textarea,[contenteditable]") && !(e.key === "Escape" && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey)) return false;
|
|
1210
|
+
if (e.currentTarget !== activeEl && activeEl?.matches("input,textarea,[contenteditable],[role]") && !(e.key === "Escape" && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey)) return false;
|
|
1197
1211
|
const combo = stringifyKeyEvent(e), { override, block, action, whitelisted } = getTermsForKey(combo, settings);
|
|
1198
1212
|
if (block) return false;
|
|
1199
1213
|
if (override) e.preventDefault();
|
|
@@ -1240,7 +1254,7 @@ var TimeTravelConsole = class _TimeTravelConsole {
|
|
|
1240
1254
|
* @param time TimeTravel module instance that owns timeline operations.
|
|
1241
1255
|
* @param build Optional initial overlay config overrides.
|
|
1242
1256
|
*/
|
|
1243
|
-
constructor(time, build = {}) {
|
|
1257
|
+
constructor(time, build = { devOnly: true }) {
|
|
1244
1258
|
this.time = time;
|
|
1245
1259
|
this.config = reactive({ title: `Time Travel Console ${this.index = ++_TimeTravelConsole.count}`, ...build });
|
|
1246
1260
|
this.state.open = !!this.config.startOpen;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EffectOptions, d as Reactor, R as Reactive,
|
|
1
|
+
import { E as EffectOptions, d as Reactor, R as Reactive, J as ReactorBuild, K as DeepReadonly, W as WildPaths, a as PathValue } from '../index-D0NxfxUv.cjs';
|
|
2
2
|
import { useLayoutEffect } from 'react';
|
|
3
|
-
import { T as TimeTravelModule } from '../index-
|
|
4
|
-
import { a as TimeTravelConsoleConfig } from '../TimeTravelConsole-
|
|
3
|
+
import { T as TimeTravelModule } from '../index-CQNn1GIg.cjs';
|
|
4
|
+
import { a as TimeTravelConsoleConfig } from '../TimeTravelConsole-C9eSXGTz.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Subscribes a component to desired Reactor state and returns it.
|
package/dist/adapters/react.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EffectOptions, d as Reactor, R as Reactive,
|
|
1
|
+
import { E as EffectOptions, d as Reactor, R as Reactive, J as ReactorBuild, K as DeepReadonly, W as WildPaths, a as PathValue } from '../index-D0NxfxUv.js';
|
|
2
2
|
import { useLayoutEffect } from 'react';
|
|
3
|
-
import { T as TimeTravelModule } from '../index-
|
|
4
|
-
import { a as TimeTravelConsoleConfig } from '../TimeTravelConsole-
|
|
3
|
+
import { T as TimeTravelModule } from '../index-lo6ft5Zu.js';
|
|
4
|
+
import { a as TimeTravelConsoleConfig } from '../TimeTravelConsole-B1du_ohf.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Subscribes a component to desired Reactor state and returns it.
|
package/dist/adapters/react.js
CHANGED
|
@@ -2,18 +2,16 @@ import {
|
|
|
2
2
|
Autotracker,
|
|
3
3
|
TimeTravelConsole,
|
|
4
4
|
withTracker
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import
|
|
8
|
-
getReactor
|
|
9
|
-
} from "../chunk-OTBKVZ4L.js";
|
|
10
|
-
import "../chunk-243U74PP.js";
|
|
5
|
+
} from "../chunk-OFH4X3QD.js";
|
|
6
|
+
import "../chunk-EA3LQVCI.js";
|
|
7
|
+
import "../chunk-ORK3EGB6.js";
|
|
11
8
|
import {
|
|
12
9
|
CTX,
|
|
13
10
|
NIL,
|
|
14
11
|
NOOP,
|
|
15
|
-
getPath
|
|
16
|
-
|
|
12
|
+
getPath,
|
|
13
|
+
getReactor
|
|
14
|
+
} from "../chunk-WYSENFHG.js";
|
|
17
15
|
|
|
18
16
|
// src/ts/adapters/react/hooks/useReactor.ts
|
|
19
17
|
import { useRef, useCallback, useSyncExternalStore, useMemo } from "react";
|