deep-chat-dev 9.0.161 → 9.0.162
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/custom-elements.json +13718 -13718
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.js +4 -4
- package/package.json +1 -1
package/dist/deepChat.js
CHANGED
@@ -215,10 +215,10 @@ var je = /*#__PURE__*/function () {
|
|
215
215
|
value:
|
216
216
|
// prettier-ignore
|
217
217
|
function add(e, t, i, n) {
|
218
|
-
i !== void 0 && e.addEventListener("keydown", je.onKeyDown.bind(this, i)), e.oninput = je.onInput.bind(this, i, n), e.
|
218
|
+
i !== void 0 && e.addEventListener("keydown", je.onKeyDown.bind(this, i)), e.oninput = je.onInput.bind(this, i, n), e.addEventListener("paste", function (r) {
|
219
219
|
var o;
|
220
220
|
r.preventDefault(), (o = r.clipboardData) != null && o.files.length && t.addFilesToAnyType(Array.from(r.clipboardData.files));
|
221
|
-
};
|
221
|
+
});
|
222
222
|
}
|
223
223
|
// preventing insertion early for a nicer UX
|
224
224
|
// prettier-ignore
|
@@ -254,7 +254,7 @@ var us = /*#__PURE__*/function () {
|
|
254
254
|
var i, n;
|
255
255
|
e.preventDefault();
|
256
256
|
var t = (i = e.clipboardData) == null ? void 0 : i.getData("text/plain");
|
257
|
-
(n = document.execCommand) == null || n.call(document, "insertText", !1, t);
|
257
|
+
t && ((n = document.execCommand) == null || n.call(document, "insertText", !1, t));
|
258
258
|
}
|
259
259
|
}]);
|
260
260
|
}();
|
@@ -286,7 +286,7 @@ var Ae = /*#__PURE__*/function () {
|
|
286
286
|
key: "addEventListeners",
|
287
287
|
value: function addEventListeners(e, t) {
|
288
288
|
var i, n, r;
|
289
|
-
e.onfocus = this.onFocus.bind(this, (i = t == null ? void 0 : t.styles) == null ? void 0 : i.focus), (n = t == null ? void 0 : t.styles) != null && n.focus && (e.onblur = this.onBlur.bind(this, t.styles.focus, (r = t == null ? void 0 : t.styles) == null ? void 0 : r.container)), e.addEventListener("keydown", this.onKeydown.bind(this)), e.
|
289
|
+
e.onfocus = this.onFocus.bind(this, (i = t == null ? void 0 : t.styles) == null ? void 0 : i.focus), (n = t == null ? void 0 : t.styles) != null && n.focus && (e.onblur = this.onBlur.bind(this, t.styles.focus, (r = t == null ? void 0 : t.styles) == null ? void 0 : r.container)), e.addEventListener("keydown", this.onKeydown.bind(this)), e.addEventListener("paste", us.sanitizePastedTextContent);
|
290
290
|
}
|
291
291
|
}, {
|
292
292
|
key: "onFocus",
|