@smart-input/core 1.0.0 → 1.0.1
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/core.min.mjs
CHANGED
|
@@ -233,7 +233,10 @@ const ze = (e) => {
|
|
|
233
233
|
if (t.anchorNode === e && e.lastChild) {
|
|
234
234
|
const n = document.createRange();
|
|
235
235
|
if (e.lastChild)
|
|
236
|
-
return e.lastChild.nodeType === Node.ELEMENT_NODE ? n.setStartAfter(e.lastChild) : e.lastChild.nodeType === Node.TEXT_NODE && n.setStart(
|
|
236
|
+
return e.lastChild.nodeType === Node.ELEMENT_NODE ? n.setStartAfter(e.lastChild) : e.lastChild.nodeType === Node.TEXT_NODE && n.setStart(
|
|
237
|
+
e.lastChild,
|
|
238
|
+
e.lastChild.length
|
|
239
|
+
), n.collapse(!0), n;
|
|
237
240
|
}
|
|
238
241
|
return t.rangeCount > 0 ? t.getRangeAt(0) : null;
|
|
239
242
|
}, ue = (e) => e.replaceAll(`\r
|
|
@@ -1015,7 +1018,9 @@ const ct = (e) => (t, n, r) => {
|
|
|
1015
1018
|
})), yt = () => _((e) => ({
|
|
1016
1019
|
keyHandlers: [],
|
|
1017
1020
|
addKeyboardHandler: (t) => e((n) => ({ keyHandlers: [...n.keyHandlers, t] })),
|
|
1018
|
-
removeKeyboardHandler: (t) => e((n) => ({
|
|
1021
|
+
removeKeyboardHandler: (t) => e((n) => ({
|
|
1022
|
+
keyHandlers: n.keyHandlers.filter((r) => r !== t)
|
|
1023
|
+
}))
|
|
1019
1024
|
}));
|
|
1020
1025
|
var L = /* @__PURE__ */ ((e) => (e.DragOver = "dragover", e.DragLeave = "dragleave", e.Drop = "drop", e))(L || {});
|
|
1021
1026
|
const bt = () => _((e) => ({
|