sia-reactor 0.0.45 → 0.0.47
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/{TimeTravelConsole-svHnyVJ5.d.cts → TimeTravelConsole-CFwqDhnh.d.cts} +2 -2
- package/dist/{TimeTravelConsole-BQv0oWkM.d.ts → TimeTravelConsole-FgH7tE4N.d.ts} +2 -2
- package/dist/adapters/react.cjs +14 -11
- package/dist/adapters/react.cjs.map +1 -0
- package/dist/adapters/react.d.cts +3 -3
- package/dist/adapters/react.d.ts +3 -3
- package/dist/adapters/react.js +5 -4
- package/dist/adapters/react.js.map +1 -0
- package/dist/adapters/vanilla.cjs +14 -11
- package/dist/adapters/vanilla.cjs.map +1 -0
- package/dist/adapters/vanilla.d.cts +4 -4
- package/dist/adapters/vanilla.d.ts +4 -4
- package/dist/adapters/vanilla.js +5 -4
- package/dist/adapters/vanilla.js.map +1 -0
- package/dist/{chunk-GH5QAGIC.js → chunk-57KOBPY7.js} +15 -14
- package/dist/chunk-57KOBPY7.js.map +1 -0
- package/dist/{chunk-RGLU7GF7.js → chunk-G2WKPDNU.js} +1 -0
- package/dist/chunk-G2WKPDNU.js.map +1 -0
- package/dist/{chunk-JGEI2Q4M.js → chunk-IZK2TOJP.js} +1 -0
- package/dist/chunk-IZK2TOJP.js.map +1 -0
- package/dist/{chunk-KSP2RS2U.js → chunk-JKBN232I.js} +4 -3
- package/dist/chunk-JKBN232I.js.map +1 -0
- package/dist/{chunk-TWHE4ZHF.js → chunk-TEZYMFP3.js} +3 -2
- package/dist/chunk-TEZYMFP3.js.map +1 -0
- package/dist/{chunk-YITKWJ2E.js → chunk-U4SR3CZF.js} +7 -3
- package/dist/chunk-U4SR3CZF.js.map +1 -0
- package/dist/{consts-CS2UoTQk.d.cts → consts-Bq1B4lOB.d.cts} +58 -126
- package/dist/{consts-CS2UoTQk.d.ts → consts-Bq1B4lOB.d.ts} +58 -126
- package/dist/{index-D6S7TeWV.d.ts → index-DApQ-Emc.d.ts} +3 -2
- package/dist/{index-C2r5vx2_.d.cts → index-D_5wXk_Q.d.cts} +3 -2
- package/dist/index.cjs +9 -8
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -0
- package/dist/modules.cjs +14 -13
- package/dist/modules.cjs.map +1 -0
- package/dist/modules.d.cts +5 -5
- package/dist/modules.d.ts +5 -5
- package/dist/modules.js +9 -8
- package/dist/modules.js.map +1 -0
- package/dist/super.d.ts +64 -129
- package/dist/super.global.js +24 -20
- package/dist/super.global.js.map +1 -0
- package/dist/utils.cjs +22 -17
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +3 -2
- package/dist/utils.d.ts +3 -2
- package/dist/utils.js +6 -3
- package/dist/utils.js.map +1 -0
- package/package.json +7 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as TimeTravelModule } from './index-
|
|
1
|
+
import { W as Reactive } from './consts-Bq1B4lOB.cjs';
|
|
2
|
+
import { g as TimeTravelModule } from './index-D_5wXk_Q.cjs';
|
|
3
3
|
|
|
4
4
|
/** Reactive options for the TimeTravel overlay instance. */
|
|
5
5
|
interface TimeTravelConsoleConfig {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as TimeTravelModule } from './index-
|
|
1
|
+
import { W as Reactive } from './consts-Bq1B4lOB.js';
|
|
2
|
+
import { g as TimeTravelModule } from './index-DApQ-Emc.js';
|
|
3
3
|
|
|
4
4
|
/** Reactive options for the TimeTravel overlay instance. */
|
|
5
5
|
interface TimeTravelConsoleConfig {
|
package/dist/adapters/react.cjs
CHANGED
|
@@ -55,7 +55,7 @@ var NOOP = () => {
|
|
|
55
55
|
};
|
|
56
56
|
var isDevEnv = false;
|
|
57
57
|
try {
|
|
58
|
-
isDevEnv =
|
|
58
|
+
isDevEnv = false;
|
|
59
59
|
} catch (e) {
|
|
60
60
|
}
|
|
61
61
|
var CTX_BUILD = {
|
|
@@ -213,24 +213,24 @@ var ReactorEvent = class _ReactorEvent {
|
|
|
213
213
|
eventPhase = _ReactorEvent.NONE;
|
|
214
214
|
/** Current event type for the active propagation path, use immediately if async */
|
|
215
215
|
type;
|
|
216
|
-
/** Current target context for the active propagation path, use immediately if async. Also use to survive future object shape changes from nesting for a path callback. */
|
|
217
216
|
currentTarget;
|
|
218
|
-
/**
|
|
217
|
+
/** Current target context for the active propagation path, use immediately if async. Also survives future shape changes from nesting for a path callback. */
|
|
219
218
|
target;
|
|
220
|
-
/**
|
|
219
|
+
/** Original event target context. */
|
|
221
220
|
root;
|
|
222
|
-
/**
|
|
221
|
+
/** Root reactive object for this event instance wave. */
|
|
223
222
|
reactor;
|
|
223
|
+
/** The `Reactor` instance that dispatched this event instance. */
|
|
224
224
|
/** Whether resolve/reject intent semantics are allowed for this event instance. */
|
|
225
225
|
rejectable;
|
|
226
226
|
/** Original event type before propagation remapping. */
|
|
227
227
|
staticType;
|
|
228
|
-
/** Original target path for this event instance wave. */
|
|
229
228
|
path;
|
|
230
|
-
/**
|
|
229
|
+
/** Original target path for this event instance wave. */
|
|
231
230
|
value;
|
|
232
|
-
/**
|
|
231
|
+
/** Current value at the event target path. */
|
|
233
232
|
oldValue;
|
|
233
|
+
/** Previous value at the event target path. */
|
|
234
234
|
/** Whether this event instance wave can bubble back up to ancestors or just capture down. */
|
|
235
235
|
bubbles = false;
|
|
236
236
|
/** Whether this event instance wave can capture down to descendants or just bubble up. */
|
|
@@ -1167,6 +1167,7 @@ function getActiveEl(root, noBody = true) {
|
|
|
1167
1167
|
// src/ts/utils/keys.ts
|
|
1168
1168
|
var KEYS_BLOCKS = ["Ctrl+Tab", "Ctrl+Shift+Tab", "Ctrl+PageUp", "Ctrl+PageDown", "Cmd+Option+ArrowRight", "Cmd+Option+ArrowLeft", "Ctrl+1", "Ctrl+2", "Ctrl+3", "Ctrl+4", "Ctrl+5", "Ctrl+6", "Ctrl+7", "Ctrl+8", "Ctrl+9", "Cmd+1", "Cmd+2", "Cmd+3", "Cmd+4", "Cmd+5", "Cmd+6", "Cmd+7", "Cmd+8", "Cmd+9", "Alt+ArrowLeft", "Alt+ArrowRight", "Cmd+ArrowLeft", "Cmd+ArrowRight", "Ctrl+r", "Ctrl+Shift+r", "F5", "Shift+F5", "Cmd+r", "Cmd+Shift+r", "Ctrl+h", "Ctrl+j", "Ctrl+d", "Ctrl+f", "Cmd+y", "Cmd+Option+b", "Cmd+d", "Cmd+f", "Ctrl+Shift+i", "Ctrl+Shift+j", "Ctrl+Shift+c", "Ctrl+u", "F12", "Cmd+Option+i", "Cmd+Option+j", "Cmd+Option+c", "Cmd+Option+u", "Ctrl+=", "Ctrl+-", "Ctrl+0", "Cmd+=", "Cmd+-", "Cmd+0", "Ctrl+p", "Ctrl+s", "Ctrl+o", "Cmd+p", "Cmd+s", "Cmd+o"];
|
|
1169
1169
|
var KEYS_MODS = ["ctrl", "shift", "alt", "meta"];
|
|
1170
|
+
var KEYS_CMODS = ["ctrl", "alt", "meta"];
|
|
1170
1171
|
var KEYS_ALIAS = { cmd: "meta", space: " " };
|
|
1171
1172
|
function stringifyKeyEvent(e) {
|
|
1172
1173
|
const parts = [];
|
|
@@ -1187,8 +1188,9 @@ function matchKeys(required, actual, strict = false, clean = true) {
|
|
|
1187
1188
|
const match = (req, actual2) => {
|
|
1188
1189
|
req = cleanKeyCombo(req);
|
|
1189
1190
|
if (strict) return req === actual2;
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1191
|
+
const reqs = req.split("+"), reals = actual2.split("+");
|
|
1192
|
+
for (const mod of KEYS_CMODS) if (reals.includes(mod) && !reqs.includes(mod)) return false;
|
|
1193
|
+
return reqs.every((k) => reals.includes(k));
|
|
1192
1194
|
};
|
|
1193
1195
|
return Array.isArray(required) ? required.some((req) => match(req, actual)) : match(required, actual);
|
|
1194
1196
|
}
|
|
@@ -1221,7 +1223,7 @@ function keyEventAllowed(e, settings) {
|
|
|
1221
1223
|
}
|
|
1222
1224
|
var formatKeyTooltip = (combo = "", keyFn = (c = "") => cleanKeyCombo(c).replace(" ", "space")) => {
|
|
1223
1225
|
const combined = combo?.length ? Array.isArray(combo) ? combo.map(keyFn).join(" or ") : keyFn(combo) : "";
|
|
1224
|
-
return combined ? ` (
|
|
1226
|
+
return combined ? ` (${combined})` : "";
|
|
1225
1227
|
};
|
|
1226
1228
|
function parseForARIAKS(s = "", format = true) {
|
|
1227
1229
|
const m = { ctrl: "Control", cmd: "Meta", space: "Space", plus: "+" };
|
|
@@ -1369,3 +1371,4 @@ function TimeTravelConsole2(props) {
|
|
|
1369
1371
|
useSelector,
|
|
1370
1372
|
useSelectorSnapshot
|
|
1371
1373
|
});
|
|
1374
|
+
//# sourceMappingURL=react.cjs.map
|