@dialpad/dialtone-vue 2.112.2 → 2.114.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 (46) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +25 -0
  3. package/dist/component-documentation.json +1 -1
  4. package/dist/dialtone-vue.cjs +5 -5
  5. package/dist/dialtone-vue.js +1742 -1298
  6. package/dist/directives.cjs +1 -1
  7. package/dist/directives.js +1 -1
  8. package/dist/emoji.cjs +1 -1
  9. package/dist/emoji.js +4 -4
  10. package/dist/emoji_picker-G_dpCtLb.cjs +1 -0
  11. package/dist/emoji_picker-H4Qp2wF5.js +782 -0
  12. package/dist/{emoji_text_wrapper-VgRKbImg.js → emoji_text_wrapper-B6LYaq-4.js} +6 -7
  13. package/dist/emoji_text_wrapper-HXzlY5eZ.cjs +1 -0
  14. package/dist/index-ASOzBdZi.js +139513 -0
  15. package/dist/index-Fi4GXrPf.cjs +1 -0
  16. package/dist/message_input.cjs +1 -92
  17. package/dist/message_input.js +86 -13208
  18. package/dist/rich_text_editor-HGWAxljc.cjs +97 -0
  19. package/dist/rich_text_editor-hvsobGV1.js +16483 -0
  20. package/dist/style.css +1 -1
  21. package/dist/{tooltip-RmgCyjmY.cjs → tooltip-R7LTeOZf.cjs} +5 -5
  22. package/dist/{tooltip-UOWkfPpb.js → tooltip-vREVnN_1.js} +282 -263
  23. package/dist/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  24. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +16 -1
  25. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  26. package/dist/types/components/rich_text_editor/rich_text_editor_constants.d.ts +2 -0
  27. package/dist/types/components/rich_text_editor/rich_text_editor_constants.d.ts.map +1 -1
  28. package/dist/types/components/tooltip/tooltip.vue.d.ts +33 -1
  29. package/dist/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  30. package/dist/types/components/tooltip/tooltip_constants.d.ts +2 -0
  31. package/dist/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +518 -0
  34. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -0
  35. package/dist/types/recipes/conversation_view/editor/editor_constants.d.ts +8 -0
  36. package/dist/types/recipes/conversation_view/editor/editor_constants.d.ts.map +1 -0
  37. package/dist/types/recipes/conversation_view/editor/index.d.ts +2 -0
  38. package/dist/types/recipes/conversation_view/editor/index.d.ts.map +1 -0
  39. package/package.json +14 -4
  40. package/dist/emoji-dxiv7Pn5.cjs +0 -1
  41. package/dist/emoji-eFDb2_CE.js +0 -56678
  42. package/dist/emoji_picker-1wJCa-sD.js +0 -83604
  43. package/dist/emoji_picker-abQkp-dE.cjs +0 -1
  44. package/dist/emoji_text_wrapper-fbV6ZEWh.cjs +0 -1
  45. package/dist/stack-T6wnw8L8.cjs +0 -2
  46. package/dist/stack-ksXg6ONX.js +0 -1852
@@ -1,11 +1,10 @@
1
- import { D as o, I as i, p as a, r as l } from "./emoji-eFDb2_CE.js";
2
- import { n as c } from "./tooltip-UOWkfPpb.js";
1
+ import { D as o, I as i, p as a, r as l } from "./index-ASOzBdZi.js";
2
+ import { n as c } from "./tooltip-vREVnN_1.js";
3
3
  const p = {
4
4
  name: "DtEmojiTextWrapper",
5
5
  components: {
6
6
  DtEmoji: o
7
7
  },
8
- inheritAttrs: !1,
9
8
  props: {
10
9
  /**
11
10
  * Element type (tag name) to use for the wrapper.
@@ -39,9 +38,8 @@ const p = {
39
38
  replaceDtEmojis(e, t) {
40
39
  const s = new RegExp(`(${e.join("|")})`, "g");
41
40
  return t.split(s).map((r) => e.includes(r) ? this.$createElement(o, {
42
- attrs: { class: "d-d-inline-block" },
43
41
  props: { code: r, size: this.size, ...this.$attrs }
44
- }) : r);
42
+ }) : this.$createElement("span", r));
45
43
  },
46
44
  /**
47
45
  * Recursively search the Vue virtual DOM to find text
@@ -71,14 +69,15 @@ const p = {
71
69
  const t = this.$slots.default || [];
72
70
  return e(
73
71
  this.elementType,
72
+ { class: "d-emoji-text-wrapper" },
74
73
  this.loadingEmojiJson ? t : t.map((s) => this.searchVNodes(s))
75
74
  );
76
75
  }
77
- }, d = null, m = null;
76
+ }, m = null, d = null;
78
77
  var h = /* @__PURE__ */ c(
79
78
  p,
80
- d,
81
79
  m,
80
+ d,
82
81
  !1,
83
82
  null,
84
83
  null,
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./index-Fi4GXrPf.cjs"),o=require("./tooltip-R7LTeOZf.cjs"),a={name:"DtEmojiTextWrapper",components:{DtEmoji:n.DtEmoji},props:{elementType:{type:String,default:"div"},size:{type:String,default:"500",validator:e=>Object.keys(n.ICON_SIZE_MODIFIERS).includes(e)}},data(){return{loadingEmojiJson:!0}},async created(){this.loadingEmojiJson=!1},methods:{replaceDtEmojis(e,t){const s=new RegExp(`(${e.join("|")})`,"g");return t.split(s).map(i=>e.includes(i)?this.$createElement(n.DtEmoji,{props:{code:i,size:this.size,...this.$attrs}}):this.$createElement("span",i))},searchVNodes(e){if(!e.tag&&e.text)return this.searchCodes(e.text);const t=e.children?e.children.map(s=>this.searchVNodes(s)):[];return this.$createElement(e.tag,e.data,t)},replaceVueComponentVNodeContent(e){},searchCodes(e){const t=n.findShortCodes(e),s=n.findEmojis(e),r=[...t,...s];return r.length===0?e:this.replaceDtEmojis(r,e)}},render(e){const t=this.$slots.default||[];return e(this.elementType,{class:"d-emoji-text-wrapper"},this.loadingEmojiJson?t:t.map(s=>this.searchVNodes(s)))}},l=null,c=null;var p=o.normalizeComponent(a,l,c,!1,null,null,null,null);const d=p.exports;exports.DtEmojiTextWrapper=d;