@deskhero/dh_ui 2.15.3 → 2.16.0
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/components/TextEditor.vue.d.ts +1 -0
- package/dist/dh_ui.es.js +8 -3
- package/dist/dh_ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
9
9
|
readonly data?: string | Record<string, any> | undefined;
|
|
10
10
|
readonly placeholder?: string | undefined;
|
|
11
11
|
readonly minHeight?: number | undefined;
|
|
12
|
+
readonly focus?: boolean | undefined;
|
|
12
13
|
readonly readOnly?: boolean | undefined;
|
|
13
14
|
readonly featureSet?: string | undefined;
|
|
14
15
|
readonly firstBlock?: boolean | undefined;
|
package/dist/dh_ui.es.js
CHANGED
|
@@ -17458,7 +17458,7 @@ const Py = /* @__PURE__ */ ht(nE, [["__scopeId", "data-v-5455ff32"]]), oE = /* @
|
|
|
17458
17458
|
x: g.left + window.scrollX,
|
|
17459
17459
|
y: g.top + window.scrollY
|
|
17460
17460
|
}), s = (g) => {
|
|
17461
|
-
!t.value || !n.value || (e.followCursor ? M(g) : u(), o.value = !0);
|
|
17461
|
+
!t.value || !n.value || !e.tooltipText || (e.followCursor ? M(g) : u(), o.value = !0);
|
|
17462
17462
|
}, u = () => {
|
|
17463
17463
|
const g = t.value.getBoundingClientRect(), j = n.value.getBoundingClientRect();
|
|
17464
17464
|
let N = a(g);
|
|
@@ -17537,7 +17537,7 @@ const Py = /* @__PURE__ */ ht(nE, [["__scopeId", "data-v-5455ff32"]]), oE = /* @
|
|
|
17537
17537
|
], 544));
|
|
17538
17538
|
}
|
|
17539
17539
|
});
|
|
17540
|
-
const rE = /* @__PURE__ */ ht(oE, [["__scopeId", "data-v-
|
|
17540
|
+
const rE = /* @__PURE__ */ ht(oE, [["__scopeId", "data-v-0c433aeb"]]);
|
|
17541
17541
|
const aE = { class: "copy__text" }, sE = ["readonly"], e3 = {
|
|
17542
17542
|
__name: "Copiable",
|
|
17543
17543
|
props: {
|
|
@@ -36009,6 +36009,11 @@ const Z2 = {
|
|
|
36009
36009
|
type: String,
|
|
36010
36010
|
default: "GPT Suggested Response",
|
|
36011
36011
|
required: !1
|
|
36012
|
+
},
|
|
36013
|
+
focus: {
|
|
36014
|
+
type: Boolean,
|
|
36015
|
+
default: !1,
|
|
36016
|
+
required: !1
|
|
36012
36017
|
}
|
|
36013
36018
|
},
|
|
36014
36019
|
emits: ["change", "blockMoved"],
|
|
@@ -36016,7 +36021,7 @@ const Z2 = {
|
|
|
36016
36021
|
const n = i, o = K(!1), r = K(0), a = K(!1), s = K({}), u = K(n.isSuggestionReplyEnabled), M = K(n.isSuggestionReplyEnabled), l = K(!0), c = K({
|
|
36017
36022
|
holder: n.holder,
|
|
36018
36023
|
// When readOnly is true the autofocus will fail as it is not possible to focus on a readOnly element
|
|
36019
|
-
autofocus: !n.readOnly,
|
|
36024
|
+
autofocus: n.focus && !n.readOnly,
|
|
36020
36025
|
minHeight: 0,
|
|
36021
36026
|
defaultBlock: "paragraph",
|
|
36022
36027
|
readOnly: n.readOnly,
|