@t007/dialog 0.0.37 → 0.0.39
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 +5 -5
- package/package.json +2 -2
package/dist/index.global.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
return Math.min(Math.max(val, min), max);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
// ../../../sia-reactor/dist/chunk-
|
|
8
|
+
// ../../../sia-reactor/dist/chunk-4SGW3Y6X.js
|
|
9
9
|
function onAllMethods(owner, callback, skipOwn = true, nested = false) {
|
|
10
10
|
let proto = owner;
|
|
11
11
|
while (proto && proto !== Object.prototype) {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
return !activeEl || noBody && activeEl === document.body ? null : activeEl.shadowRoot ? getActiveEl(activeEl.shadowRoot) : activeEl;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
// ../../../sia-reactor/dist/chunk-
|
|
52
|
+
// ../../../sia-reactor/dist/chunk-GH5QAGIC.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({});
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
};
|
|
84
84
|
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
85
85
|
|
|
86
|
-
// ../utils/dist/chunk-
|
|
86
|
+
// ../utils/dist/chunk-RCSOMCIC.js
|
|
87
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] *)";
|
|
88
88
|
var isInteractive = (target) => target instanceof HTMLElement && target.matches(INTERACTIVE_SELECTOR);
|
|
89
89
|
var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
el?.remove?.();
|
|
101
101
|
if (remaining > 1) {
|
|
102
102
|
setTimeout(tryLoad, 1e3, remaining - 1);
|
|
103
|
-
console.warn(`Retrying ${type} load for "${src}" (${attempts - remaining + 1})...`);
|
|
103
|
+
console.warn(`Retrying ${type} load for "${src}" (${attempts - remaining + 1}/${attempts})...`);
|
|
104
104
|
} else {
|
|
105
105
|
delete win.t007._resourceCache[src];
|
|
106
106
|
reject(new Error(`${capitalize(type)} load failed for "${src}"`));
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
window.T007_DIALOG_CSS_SRC ??= `https://cdn.jsdelivr.net/npm/@t007/dialog@latest/dist/index.min.css`;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
// ../utils/dist/chunk-
|
|
158
|
+
// ../utils/dist/chunk-34CRZ3Z7.js
|
|
159
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) {
|
|
160
160
|
const stack = t007._outsiders_stack ??= [], existing = (t007._outsiders ??= /* @__PURE__ */ new WeakMap()).get(el);
|
|
161
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.39",
|
|
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.40"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"esbuild-sass-plugin": "^3.7.0"
|