@t007/input 0.0.34 → 0.0.36
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/index.global.js +25 -3
- package/package.json +2 -2
package/dist/index.global.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(() => {
|
|
3
|
-
// ../../../sia-reactor/dist/chunk-
|
|
3
|
+
// ../../../sia-reactor/dist/chunk-PJTPFVEG.js
|
|
4
4
|
function createEl(tag, props, dataset, styles, el = tag ? document?.createElement(tag) : null) {
|
|
5
5
|
return assignEl(el, props, dataset, styles);
|
|
6
6
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
return el;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// ../../../sia-reactor/dist/chunk-
|
|
27
|
+
// ../../../sia-reactor/dist/chunk-LZJYX2LE.js
|
|
28
28
|
var RTR_BATCH = "undefined" !== typeof window ? ("undefined" !== typeof queueMicrotask ? queueMicrotask : setTimeout).bind(window) : "undefined" !== typeof process && process.nextTick ? process.nextTick : setTimeout;
|
|
29
29
|
var RTR_LOG = console.log.bind(console, "[S.I.A Reactor]");
|
|
30
30
|
var NIL = Object.freeze({});
|
|
@@ -33,8 +33,30 @@
|
|
|
33
33
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
34
34
|
} catch (e) {
|
|
35
35
|
}
|
|
36
|
+
var CTX_BUILD = {
|
|
37
|
+
/** Flag indicating whether the application is running in development mode. */
|
|
38
|
+
isDevEnv,
|
|
39
|
+
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
40
|
+
usingForce: false,
|
|
41
|
+
/** Active `Autotracker` instance, override for automatic dependency collection on `Reactor` traps. */
|
|
42
|
+
autotracker: null,
|
|
43
|
+
/** Extensible meta context for payloads and cross-cutting concerns. */
|
|
44
|
+
meta: null,
|
|
45
|
+
/** Default configuration for new `Reactor` instances and also fallback for utils that need and are called without these options. */
|
|
46
|
+
defaults: {
|
|
47
|
+
crossRealms: false,
|
|
48
|
+
smartCloning: false,
|
|
49
|
+
eventBubbling: true,
|
|
50
|
+
eventCapturing: "auto",
|
|
51
|
+
lineageTracing: false,
|
|
52
|
+
preserveContext: false,
|
|
53
|
+
equalityFunction: Object.is,
|
|
54
|
+
batchingFunction: RTR_BATCH
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
36
58
|
|
|
37
|
-
// ../utils/dist/chunk-
|
|
59
|
+
// ../utils/dist/chunk-ZFW6HNGO.js
|
|
38
60
|
var INTERACTIVE_SELECTOR = ":is(button,[href],input:not([type='hidden']),select,textarea,details>summary,[contenteditable],iframe,audio[controls],video[controls],[tabindex]):not([disabled],[tabindex='-1'],[data-focus-guard],[inert],[inert] *)";
|
|
39
61
|
var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
|
|
40
62
|
function loadResource(req, type = "style", { module, media, crossOrigin, integrity, referrerPolicy, nonce, fetchPriority, attempts = 3, retryKey = false } = {}, win = window) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t007/input",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"description": "A lightweight, pure JS input system.",
|
|
5
5
|
"author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"react-dom": "^18.3.1"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@t007/utils": "^0.0.
|
|
72
|
+
"@t007/utils": "^0.0.38"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^18.0.0"
|