@dialpad/dialtone-vue 2.124.0 → 2.125.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.
Files changed (43) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/dist/dialtone-vue.cjs +3 -2
  4. package/dist/dialtone-vue.cjs.map +1 -0
  5. package/dist/dialtone-vue.js +13 -7
  6. package/dist/dialtone-vue.js.map +1 -0
  7. package/dist/directives.cjs +1 -0
  8. package/dist/directives.cjs.map +1 -0
  9. package/dist/directives.js +1 -0
  10. package/dist/directives.js.map +1 -0
  11. package/dist/emoji.cjs +1 -0
  12. package/dist/emoji.cjs.map +1 -0
  13. package/dist/emoji.js +1 -0
  14. package/dist/emoji.js.map +1 -0
  15. package/dist/emoji_picker-kiTOKaq8.js +1 -0
  16. package/dist/emoji_picker-kiTOKaq8.js.map +1 -0
  17. package/dist/emoji_picker-njWWAm6V.cjs +1 -0
  18. package/dist/emoji_picker-njWWAm6V.cjs.map +1 -0
  19. package/dist/emoji_text_wrapper-48ClwKvf.js +1 -0
  20. package/dist/emoji_text_wrapper-48ClwKvf.js.map +1 -0
  21. package/dist/emoji_text_wrapper-ZlynvHnd.cjs +1 -0
  22. package/dist/emoji_text_wrapper-ZlynvHnd.cjs.map +1 -0
  23. package/dist/index-OF94C6nQ.js +1 -0
  24. package/dist/index-OF94C6nQ.js.map +1 -0
  25. package/dist/index-Wx7Jagcr.cjs +1 -0
  26. package/dist/index-Wx7Jagcr.cjs.map +1 -0
  27. package/dist/message_input.cjs +2 -1
  28. package/dist/message_input.cjs.map +1 -0
  29. package/dist/message_input.js +2 -1
  30. package/dist/message_input.js.map +1 -0
  31. package/dist/{rich_text_editor-Eh5kYokw.cjs → rich_text_editor-RVMsCB8N.cjs} +2 -1
  32. package/dist/rich_text_editor-RVMsCB8N.cjs.map +1 -0
  33. package/dist/{rich_text_editor-9sMob7ck.js → rich_text_editor-eMvTs_Gp.js} +3 -2
  34. package/dist/rich_text_editor-eMvTs_Gp.js.map +1 -0
  35. package/dist/style.css +1 -1
  36. package/dist/tooltip-88U5vFMA.js +1 -0
  37. package/dist/tooltip-88U5vFMA.js.map +1 -0
  38. package/dist/tooltip-i2wxFIIi.cjs +1 -0
  39. package/dist/tooltip-i2wxFIIi.cjs.map +1 -0
  40. package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +1 -1
  41. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +9 -0
  42. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  43. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
- import { S as Te, c as A, M as Z, d as Zt, e as De, f as Jt, D as J, L as ye, P as ea, g as Oe, h as fe, i as Ct, a as ta, R as aa, b as na } from "./rich_text_editor-9sMob7ck.js";
2
- import { n as tu, o as au, m as nu, j as ru, k as su, l as iu, A as ou, t as lu, u as du, q as cu, p as uu, r as fu, s as hu } from "./rich_text_editor-9sMob7ck.js";
1
+ import { S as Te, c as A, M as Z, d as Zt, e as De, f as Jt, D as J, L as ye, P as ea, g as Oe, h as fe, i as Ct, a as ta, R as aa, b as na } from "./rich_text_editor-eMvTs_Gp.js";
2
+ import { n as tu, o as au, m as nu, j as ru, k as su, l as iu, A as ou, t as lu, u as du, q as cu, p as uu, r as fu, s as hu } from "./rich_text_editor-eMvTs_Gp.js";
3
3
  import { w as y, t as S, F as ra, M as sa, G as ia, H as W, J as St, K as kt, N as It, O as xt, P as Le, x as Tt, D as oa } from "./index-OF94C6nQ.js";
4
4
  import { W as mu, S as gu, R as _u, Q as bu, T as vu, a1 as yu, a4 as wu, a3 as Cu, a2 as Su, z as ku, y as Iu, U as xu, I as Tu, Y as Du, X as Ou, V as Lu, C as $u, L as Eu, a9 as Au, a5 as Mu, a6 as Ru, a8 as Bu, a7 as Pu, a0 as Nu, $ as Fu, Z as qu, _ as Hu } from "./index-OF94C6nQ.js";
5
5
  import { n as c, u as E, g as T, e as $e, l as he, E as C, T as Qe, v as la, h as da, b as Xe, a as Se, L as ca, w as ua, D as ee, i as fa, x as Ee, y as ha } from "./tooltip-88U5vFMA.js";
@@ -9806,12 +9806,18 @@ const Yc = Nd.exports, Fd = [
9806
9806
  buttonGroup: [e]
9807
9807
  }));
9808
9808
  return [
9809
+ { key: "new", buttonGroup: this.newButtons },
9809
9810
  { key: "format", buttonGroup: this.textFormatButtons },
9810
9811
  { key: "alignment", buttonGroup: this.alignmentButtons },
9811
9812
  { key: "list", buttonGroup: this.listButtons },
9812
9813
  ...t
9813
9814
  ].filter((e) => e.buttonGroup.length > 0);
9814
9815
  },
9816
+ newButtons() {
9817
+ return [
9818
+ { showBtn: this.showQuickRepliesButton, label: "Quick reply", selector: "quickReplies", iconName: "lightning-bolt", dataQA: "dt-editor-quick-replies-btn", tooltipMessage: "Quick Reply", onClick: this.onQuickRepliesClick }
9819
+ ].filter((t) => t.showBtn);
9820
+ },
9815
9821
  textFormatButtons() {
9816
9822
  return [
9817
9823
  { showBtn: this.showBoldButton, selector: "bold", iconName: "bold", dataQA: "dt-editor-bold-btn", tooltipMessage: "Bold", onClick: this.onBoldTextToggle },
@@ -9837,8 +9843,7 @@ const Yc = Nd.exports, Fd = [
9837
9843
  individualButtons() {
9838
9844
  return [
9839
9845
  { showBtn: this.showQuoteButton, selector: "blockquote", iconName: "quote", dataQA: "dt-editor-blockquote-btn", tooltipMessage: "Quote", onClick: this.onBlockquoteToggle },
9840
- { showBtn: this.showCodeBlockButton, selector: "codeBlock", iconName: "code-block", dataQA: "dt-editor-code-block-btn", tooltipMessage: "Code", onClick: this.onCodeBlockToggle },
9841
- { showBtn: this.showQuickRepliesButton, selector: "quickReplies", iconName: "lightning-bolt", dataQA: "dt-editor-quick-replies-btn", tooltipMessage: "Quick Replies", onClick: this.onQuickRepliesClick }
9846
+ { showBtn: this.showCodeBlockButton, selector: "codeBlock", iconName: "code-block", dataQA: "dt-editor-code-block-btn", tooltipMessage: "Code", onClick: this.onCodeBlockToggle }
9842
9847
  ].filter((t) => t.showBtn);
9843
9848
  },
9844
9849
  linkButton() {
@@ -9948,8 +9953,8 @@ var Wd = function() {
9948
9953
  return [a("dt-button", { attrs: { "data-qa": r.dataQA, importance: "clear", kind: "muted", active: (i = (s = e.$refs.richTextEditor) == null ? void 0 : s.editor) == null ? void 0 : i.isActive(r.selector), size: "xs", "aria-label": r.tooltipMessage }, on: { click: function(o) {
9949
9954
  return r.onClick();
9950
9955
  } }, scopedSlots: e._u([{ key: "icon", fn: function() {
9951
- return [a("dt-icon", { staticClass: "d-fw-bold", attrs: { name: r.iconName, size: "200" } })];
9952
- }, proxy: !0 }], null, !0) })];
9956
+ return [a("dt-icon", { attrs: { name: r.iconName, size: "200" } })];
9957
+ }, proxy: !0 }], null, !0) }, [r.label ? a("span", [e._v(e._s(r.label))]) : e._e()])];
9953
9958
  }, proxy: !0 }], null, !0) });
9954
9959
  }), a("div", { staticClass: "dt-editor--button-group-divider" })], 2);
9955
9960
  }), e.linkButton.showBtn ? a("dt-stack", { attrs: { direction: "row", gap: "300" } }, [a("dt-popover", { attrs: { open: e.showLinkInput, placement: "bottom-start", "visually-hidden-close": !0, "visually-hidden-close-label": "Close link input popover", "data-qa": "dt-editor-link-input-popover", "show-close-button": !1 }, on: { "update:open": function(n) {
@@ -9975,7 +9980,7 @@ var Wd = function() {
9975
9980
  }, expression: "linkInput" } })];
9976
9981
  }, proxy: !0 }, { key: "footerContent", fn: function() {
9977
9982
  return [a("div", { staticClass: "d-ml8 d-mr12" }, [a("dt-button", { staticClass: "d-mx2", attrs: { "aria-label": e.removeLinkButton.ariaLabel, importance: "clear", kind: "muted", size: "sm", "data-qa": "dt-editor-remove-link-btn" }, on: { click: e.removeLink } }, [e._v(" " + e._s(e.removeLinkButton.label) + " ")]), a("dt-button", { staticClass: "d-mx2", attrs: { "aria-label": e.cancelSetLinkButton.ariaLabel, importance: "clear", kind: "muted", size: "sm", "data-qa": "dt-editor-set-link-cancel-btn" }, on: { click: e.closeLinkInput } }, [e._v(" " + e._s(e.cancelSetLinkButton.label) + " ")]), a("dt-button", { staticClass: "d-mx2", attrs: { size: "sm", "aria-label": e.confirmSetLinkButton.ariaLabel, "data-qa": "dt-editor-set-link-confirm-btn" }, on: { click: e.setLink } }, [e._v(" " + e._s(e.confirmSetLinkButton.label) + " ")])], 1)];
9978
- }, proxy: !0 }], null, !1, 1792797475) })], 1) : e._e()], 2), a("div", { staticClass: "d-of-auto d-mx16 d-mt8 d-mb16 d-c-text", style: { "max-height": e.maxHeight } }, [a("dt-rich-text-editor", e._b({ ref: "richTextEditor", attrs: { "data-qa": "dt-rich-text-editor", editable: e.editable, "input-aria-label": e.inputAriaLabel, "input-class": `${e.inputClass} d-ol-none d-my6`, "output-format": e.htmlOutputFormat, "auto-focus": e.autoFocus, placeholder: e.placeholder, "allow-line-breaks": !0, link: !1 }, on: { focus: e.onFocus, blur: e.onBlur, input: function(n) {
9983
+ }, proxy: !0 }], null, !1, 1792797475) })], 1) : e._e()], 2), a("div", { staticClass: "d-of-auto d-mx16 d-mt8 d-mb16 d-c-text", style: { "max-height": e.maxHeight } }, [a("dt-rich-text-editor", e._b({ ref: "richTextEditor", attrs: { "data-qa": "dt-rich-text-editor", editable: e.editable, "input-aria-label": e.inputAriaLabel, "input-class": `d-ml16 d-ol-none d-my6 ${e.inputClass}`, "output-format": e.htmlOutputFormat, "auto-focus": e.autoFocus, placeholder: e.placeholder, "allow-line-breaks": !0, link: !1 }, on: { focus: e.onFocus, blur: e.onBlur, input: function(n) {
9979
9984
  return e.onInput(n);
9980
9985
  } }, model: { value: e.internalInputValue, callback: function(n) {
9981
9986
  e.internalInputValue = n;
@@ -10363,3 +10368,4 @@ export {
10363
10368
  Gc as setDateLocale,
10364
10369
  St as validationMessageValidator
10365
10370
  };
10371
+ //# sourceMappingURL=dialtone-vue.js.map