@quoreadmin/ui 0.27.27 → 0.27.29

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.js CHANGED
@@ -60060,7 +60060,7 @@ const _oe = /* @__PURE__ */ Ue(Ioe, [["render", Poe]]), Loe = ke({
60060
60060
  // default: () => [],
60061
60061
  // },
60062
60062
  },
60063
- emits: ["update:model-value", "update:attachments"],
60063
+ emits: ["update:model-value", "update:attachments", "keyboard-open"],
60064
60064
  setup(n, { emit: e }) {
60065
60065
  const t = z(), r = z(!1), i = z(""), s = z(), o = z(), a = z(!1), l = z(!1), u = z(!1), c = z([]), d = z(), f = z(), h = z(), p = z(!1), g = z(window.innerHeight), y = J(() => B.value.getAttributes("textStyle").color || "#121517"), v = J(() => n.attachments), b = J(() => n.isStacked || n.expands && (v.value.length > 0 || u.value || !B.value.isEmpty) || l.value), w = jA(WL).greaterOrEqual("md"), x = () => {
60066
60066
  const Z = window.prompt("URL");
@@ -60077,8 +60077,8 @@ const _oe = /* @__PURE__ */ Ue(Ioe, [["render", Poe]]), Loe = ke({
60077
60077
  }, $ = (Z) => {
60078
60078
  B.value.chain().focus().insertContent(Z).run(), s.value.$el.click();
60079
60079
  }, R = () => {
60080
- const Z = (visualViewport == null ? void 0 : visualViewport.height) || window.innerHeight;
60081
- p.value = g.value - Z > 0, p.value || (u.value = !1);
60080
+ const Z = p.value, ae = (visualViewport == null ? void 0 : visualViewport.height) || window.innerHeight;
60081
+ p.value = g.value - ae > 0, Z !== p.value && (u.value = p.value, e("keyboard-open", p.value));
60082
60082
  }, H = (Z) => {
60083
60083
  B.value.chain().focus().insertContent(Z.i).run(), r.value = !1;
60084
60084
  }, Y = (Z) => {
@@ -60204,7 +60204,9 @@ function zoe(n, e, t, r, i, s) {
60204
60204
  "!rounded-2xl md:!rounded-lg expands": n.expands
60205
60205
  }
60206
60206
  ]),
60207
- onFocusin: e[11] || (e[11] = (c) => n.focused = !0)
60207
+ onMousedown: e[11] || (e[11] = (c) => {
60208
+ n.focused = !0;
60209
+ })
60208
60210
  }, [
60209
60211
  P("div", {
60210
60212
  class: V([
@@ -60379,7 +60381,7 @@ function zoe(n, e, t, r, i, s) {
60379
60381
  ], 2)
60380
60382
  ], 34)) : L("", !0);
60381
60383
  }
60382
- const RN = /* @__PURE__ */ Ue(Loe, [["render", zoe], ["__scopeId", "data-v-15d05e43"]]), Voe = {
60384
+ const RN = /* @__PURE__ */ Ue(Loe, [["render", zoe], ["__scopeId", "data-v-adbd73a1"]]), Voe = {
60383
60385
  /** ID of the comment - maybe this will be in the data. We will need this for taking action on a comment */
60384
60386
  id: {
60385
60387
  type: [Number, String],