@t007/dialog 0.0.32 → 0.0.33
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 +1 -0
- package/dist/index.global.js +5 -5
- 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-WYSENFHG.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({});
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
} catch (e) {
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
// ../utils/dist/chunk-
|
|
64
|
+
// ../utils/dist/chunk-ZOFWWRKV.js
|
|
65
65
|
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
66
|
var isInteractive = (target) => target instanceof HTMLElement && target.matches(INTERACTIVE_SELECTOR);
|
|
67
67
|
var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
console.warn(`Retrying ${type} load for "${src}" (${attempts - remaining + 1})...`);
|
|
82
82
|
} else {
|
|
83
83
|
delete win.t007._resourceCache[src];
|
|
84
|
-
reject(new Error(`${capitalize(type)} load failed for "${src}"
|
|
84
|
+
reject(new Error(`${capitalize(type)} load failed for "${src}"`));
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
const url = retryKey && remaining < attempts ? `${src}${src.includes("?") ? "&" : "?"}_${retryKey}=${Date.now()}` : src;
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
window.T007_DIALOG_CSS_SRC ??= `https://cdn.jsdelivr.net/npm/@t007/dialog@latest/dist/index.min.css`;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// ../utils/dist/chunk-
|
|
136
|
+
// ../utils/dist/chunk-DSDFIB5F.js
|
|
137
137
|
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
138
|
const stack = t007._outsiders_stack ??= [], existing = (t007._outsiders ??= /* @__PURE__ */ new WeakMap()).get(el);
|
|
139
139
|
if (!enabled || existing) return existing ? existing : void 0;
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
var DEFAULT_CONFIG = {
|
|
236
236
|
enabled: null,
|
|
237
237
|
selector: "[data-arrow-item]",
|
|
238
|
-
focusOnHover:
|
|
238
|
+
focusOnHover: false,
|
|
239
239
|
loop: true,
|
|
240
240
|
virtual: false,
|
|
241
241
|
typeahead: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t007/dialog",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
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.36"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"esbuild-sass-plugin": "^3.7.0"
|