@t007/dialog 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.css +0 -1
- package/dist/index.global.js +25 -3
- package/package.json +2 -2
package/dist/index.css
CHANGED
package/dist/index.global.js
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
return !activeEl ? null : activeEl.shadowRoot ? getActiveEl(activeEl.shadowRoot) : activeEl;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
// ../../../sia-reactor/dist/chunk-
|
|
52
|
+
// ../../../sia-reactor/dist/chunk-DCUPDG7B.js
|
|
53
53
|
var RTR_BATCH = "undefined" !== typeof window ? ("undefined" !== typeof queueMicrotask ? queueMicrotask : setTimeout).bind(window) : "undefined" !== typeof process && process.nextTick ? process.nextTick : setTimeout;
|
|
54
54
|
var RTR_LOG = console.log.bind(console, "[S.I.A Reactor]");
|
|
55
55
|
var NIL = Object.freeze({});
|
|
@@ -60,8 +60,30 @@
|
|
|
60
60
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
61
61
|
} catch (e) {
|
|
62
62
|
}
|
|
63
|
+
var CTX_BUILD = {
|
|
64
|
+
/** Flag indicating whether the application is running in development mode. */
|
|
65
|
+
isDevEnv,
|
|
66
|
+
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
67
|
+
usingForce: false,
|
|
68
|
+
/** Active `Autotracker` instance, override for automatic dependency collection on `Reactor` traps. */
|
|
69
|
+
autotracker: null,
|
|
70
|
+
/** Extensible meta context for payloads and cross-cutting concerns. */
|
|
71
|
+
meta: null,
|
|
72
|
+
/** Default configuration for new `Reactor` instances and also fallback for utils that need and are called without these options. */
|
|
73
|
+
defaults: {
|
|
74
|
+
crossRealms: false,
|
|
75
|
+
smartCloning: false,
|
|
76
|
+
eventBubbling: true,
|
|
77
|
+
eventCapturing: "auto",
|
|
78
|
+
lineageTracing: false,
|
|
79
|
+
preserveContext: false,
|
|
80
|
+
equalityFunction: Object.is,
|
|
81
|
+
batchingFunction: RTR_BATCH
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
63
85
|
|
|
64
|
-
// ../utils/dist/chunk-
|
|
86
|
+
// ../utils/dist/chunk-4S4VEQL7.js
|
|
65
87
|
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] *)";
|
|
66
88
|
var isInteractive = (target) => target instanceof HTMLElement && target.matches(INTERACTIVE_SELECTOR);
|
|
67
89
|
var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
|
|
@@ -133,7 +155,7 @@
|
|
|
133
155
|
window.T007_DIALOG_CSS_SRC ??= `https://cdn.jsdelivr.net/npm/@t007/dialog@latest/dist/index.min.css`;
|
|
134
156
|
}
|
|
135
157
|
|
|
136
|
-
// ../utils/dist/chunk-
|
|
158
|
+
// ../utils/dist/chunk-7TIUDIEW.js
|
|
137
159
|
function initOutsideClick(el, { enabled = false, onOutside = NOOP, outOnClick = true, outOnEscape = true, outOnFocusOut = false, allowBounds = false, allowInputs = false, root = window, scoped = true, capture = true } = NIL) {
|
|
138
160
|
const stack = t007._outsiders_stack ??= [], existing = (t007._outsiders ??= /* @__PURE__ */ new WeakMap()).get(el);
|
|
139
161
|
if (!enabled || existing) return existing ? existing : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t007/dialog",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"description": "A lightweight, pure JS dialog system.",
|
|
5
5
|
"author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"accessible"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@t007/utils": "^0.0.
|
|
60
|
+
"@t007/utils": "^0.0.37"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"esbuild-sass-plugin": "^3.7.0"
|