@deskhero/dh_ui 2.54.9 → 2.55.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/dh_ui.es.js CHANGED
@@ -36550,7 +36550,8 @@ const WZ = {
36550
36550
  toolbarPosition: { default: "left" },
36551
36551
  i18n: {},
36552
36552
  suggestedReply: {},
36553
- fileUpload: {}
36553
+ fileUpload: {},
36554
+ mentions: {}
36554
36555
  },
36555
36556
  emits: ["update:data", "update:attachments", "file-upload"],
36556
36557
  setup(n, { expose: e, emit: t }) {
@@ -56113,8 +56114,12 @@ class tne {
56113
56114
  const nne = Jte.extend({
56114
56115
  name: "imageResize",
56115
56116
  addOptions() {
56117
+ const n = this.parent?.() ?? {};
56116
56118
  return {
56117
- ...this.parent?.(),
56119
+ ...n,
56120
+ // Ensure required properties are present for type compatibility
56121
+ allowBase64: n.allowBase64 ?? !1,
56122
+ HTMLAttributes: n.HTMLAttributes ?? {},
56118
56123
  inline: !1
56119
56124
  };
56120
56125
  },
@@ -56154,21 +56159,21 @@ const nne = Jte.extend({
56154
56159
  view: (n) => {
56155
56160
  let e = n.editable;
56156
56161
  return {
56157
- update: (t, r) => {
56158
- const i = t.editable;
56159
- if (e !== i && (e = i, !i)) {
56160
- const o = t.state.selection;
56161
- if (o instanceof Te) {
56162
- const a = Math.max(0, o.from), l = t.state.tr.setSelection(
56163
- De.create(t.state.doc, a)
56162
+ update: (t) => {
56163
+ const r = t.editable;
56164
+ if (e !== r && (e = r, !r)) {
56165
+ const i = t.state.selection;
56166
+ if (i instanceof Te) {
56167
+ const s = Math.max(0, i.from), a = t.state.tr.setSelection(
56168
+ De.create(t.state.doc, s)
56164
56169
  );
56165
- t.dispatch(l);
56170
+ t.dispatch(a);
56166
56171
  }
56167
- const s = t.dom;
56168
- s && s.querySelectorAll(
56172
+ const o = t.dom;
56173
+ o && o.querySelectorAll(
56169
56174
  "div[style*='border: 1px dashed']"
56170
- ).forEach((l) => {
56171
- bo.clearContainerBorder(l), bo.removeResizeElements(l);
56175
+ ).forEach((a) => {
56176
+ bo.clearContainerBorder(a), bo.removeResizeElements(a);
56172
56177
  });
56173
56178
  }
56174
56179
  }
@@ -58659,7 +58664,8 @@ const mie = {
58659
58664
  toolbarPosition: { default: "left" },
58660
58665
  i18n: {},
58661
58666
  suggestedReply: {},
58662
- fileUpload: {}
58667
+ fileUpload: {},
58668
+ mentions: {}
58663
58669
  },
58664
58670
  emits: ["update:data", "update:attachments", "file-upload"],
58665
58671
  setup(n, { expose: e, emit: t }) {
@@ -58728,6 +58734,8 @@ const mie = {
58728
58734
  i("file-upload", M);
58729
58735
  }
58730
58736
  })
58737
+ //createMentionExtension(props.mentions),
58738
+ //createEmojiExtension(),
58731
58739
  ],
58732
58740
  content: g(r.data, r.attachments),
58733
58741
  onUpdate({ editor: M }) {
@@ -59045,7 +59053,7 @@ const mie = {
59045
59053
  }
59046
59054
  }, Tie = {
59047
59055
  toEditorData(n) {
59048
- return n?.tiptap ? n.tiptap : n?.editorjs ? Eie(n.editorjs) : { type: "doc", content: [] };
59056
+ return n?.tiptap ? n.tiptap : n?.editorjs ? Eie(n.editorjs) : { type: "doc", content: [{ type: "paragraph" }] };
59049
59057
  },
59050
59058
  fromEditorData(n, e) {
59051
59059
  return {