@dialpad/dialtone-vue 3.90.0 → 3.92.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/CHANGELOG.json +1 -1
- package/CHANGELOG.md +27 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +5 -5
- package/dist/dialtone-vue.js +1533 -1215
- package/dist/{emoji-e5c98301.js → emoji-83163b7b.js} +6271 -6188
- package/dist/emoji-f3e4b2ca.cjs +25 -0
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +23 -23
- package/dist/message_input-46ebe433.js +15857 -0
- package/dist/message_input-4b60e253.cjs +93 -0
- package/dist/message_input.cjs +1 -92
- package/dist/message_input.js +4 -13670
- package/dist/style.css +1 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts +2 -2
- package/dist/types/components/rich_text_editor/extensions/emoji/emoji.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts +4 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +1 -0
- package/dist/types/components/rich_text_editor/mention_suggestion.d.ts +1 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +6 -6
- package/dist/types/components/tooltip/tooltip.vue.d.ts +20 -4
- package/dist/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/types/components/tooltip/tooltip_variants.vue.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +82 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts +6 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts.map +1 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/index.d.ts +2 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/index.d.ts.map +1 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +49 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +30 -0
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts.map +1 -0
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +5 -4
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/package.json +19 -7
- package/dist/emoji-b45991f0.cjs +0 -25
- package/dist/stack-5e05e7f3.js +0 -2177
- package/dist/stack-96a00d5c.cjs +0 -2
package/dist/emoji.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./emoji-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./emoji-f3e4b2ca.cjs"),n=require("vue"),a={name:"DtEmojiTextWrapper",components:{DtEmoji:e.DtEmoji},inheritAttrs:!1,props:{elementType:{type:String,default:"div"},size:{type:String,default:"500",validator:t=>Object.keys(e.ICON_SIZE_MODIFIERS).includes(t)}},data(){return{loadingEmojiJson:!0}},async created(){this.loadingEmojiJson=!1},methods:{replaceDtEmojis(t,o){const i=new RegExp(`(${t.join("|")})`,"g");return o.split(i).map(r=>t.includes(r)?n.h(e.DtEmoji,{...this.$attrs,class:"d-mx4 d-d-inline-block",size:this.size,code:r}):r)},searchVNodes(t){var i;if(typeof t=="string")return this.searchCodes(t);if(typeof t.type=="symbol")return this.searchCodes(t.children);if((i=t.props)!=null&&i.innerHTML)return this.searchVNodes(t.props.innerHTML);const o=Array.isArray(t.children)?t.children:[t.children];return n.h(t.type,t.props,o.map(s=>this.searchVNodes(s)))},replaceVueComponentVNodeContent(t){},searchCodes(t){const o=e.findShortCodes(t),i=e.findEmojis(t),s=[...o,...i];return s.length===0?t:this.replaceDtEmojis(s,t)}},render(){const t=this.$slots.default?this.$slots.default():[];return n.h(this.elementType,{"data-qa":"emoji-text-wrapper",class:this.$attrs.class},this.loadingEmojiJson?t:t.map(o=>this.searchVNodes(o)))}};exports.CDN_URL=e.CDN_URL;exports.DtEmoji=e.DtEmoji;exports.DtEmojiPicker=e._sfc_main;exports.EMOJIS_PER_ROW=e.EMOJIS_PER_ROW;exports.EMOJI_CATEGORIES=e.EMOJI_CATEGORIES;exports.EMOJI_SKIN_TONE_MODIFIERS=e.EMOJI_SKIN_TONE_MODIFIERS;exports.codeToEmojiData=e.codeToEmojiData;Object.defineProperty(exports,"customEmojiAssetUrl",{enumerable:!0,get:()=>e.customEmojiAssetUrl});exports.defaultEmojiAssetUrl=e.defaultEmojiAssetUrl;Object.defineProperty(exports,"emojiFileExtensionLarge",{enumerable:!0,get:()=>e.emojiFileExtensionLarge});Object.defineProperty(exports,"emojiFileExtensionSmall",{enumerable:!0,get:()=>e.emojiFileExtensionSmall});Object.defineProperty(exports,"emojiImageUrlLarge",{enumerable:!0,get:()=>e.emojiImageUrlLarge});Object.defineProperty(exports,"emojiImageUrlSmall",{enumerable:!0,get:()=>e.emojiImageUrlSmall});exports.emojiJson=e.emojiJson;exports.emojiVersion=e.emojiVersion;exports.filterValidShortCodes=e.filterValidShortCodes;exports.findEmojis=e.findEmojis;exports.findShortCodes=e.findShortCodes;exports.getEmojiData=e.getEmojiData;exports.setCustomEmojiJson=e.setCustomEmojiJson;exports.setCustomEmojiUrl=e.setCustomEmojiUrl;exports.setEmojiAssetUrlLarge=e.setEmojiAssetUrlLarge;exports.setEmojiAssetUrlSmall=e.setEmojiAssetUrlSmall;exports.shortcodeToEmojiData=e.shortcodeToEmojiData;exports.stringToUnicode=e.stringToUnicode;exports.unicodeToString=e.unicodeToString;exports.validateCustomEmojiJson=e.validateCustomEmojiJson;exports.DtEmojiTextWrapper=a;
|
package/dist/emoji.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { h as
|
|
1
|
+
import { o as r, a0 as n, a6 as l, a7 as m } from "./emoji-83163b7b.js";
|
|
2
|
+
import { a2 as j, a1 as u, a3 as f, a5 as g, a4 as S, ap as y, aa as I, a9 as D, ae as T, ac as C, ad as _, ab as O, af as J, a8 as U, aq as A, ag as x, ak as M, aj as R, ai as L, ah as $, am as b, ao as k, an as F, al as v } from "./emoji-83163b7b.js";
|
|
3
|
+
import { h as o } from "vue";
|
|
4
4
|
const d = {
|
|
5
5
|
name: "DtEmojiTextWrapper",
|
|
6
6
|
components: {
|
|
7
|
-
DtEmoji:
|
|
7
|
+
DtEmoji: r
|
|
8
8
|
},
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
props: {
|
|
@@ -37,9 +37,9 @@ const d = {
|
|
|
37
37
|
* Replaces the valid codes from the text content with a DtEmoji component.
|
|
38
38
|
* @returns {Array<VNode|string>}
|
|
39
39
|
*/
|
|
40
|
-
replaceDtEmojis(s,
|
|
41
|
-
const
|
|
42
|
-
return
|
|
40
|
+
replaceDtEmojis(s, a) {
|
|
41
|
+
const e = new RegExp(`(${s.join("|")})`, "g");
|
|
42
|
+
return a.split(e).map((i) => s.includes(i) ? o(r, { ...this.$attrs, class: "d-mx4 d-d-inline-block", size: this.size, code: i }) : i);
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
45
45
|
* Recursively search the Vue virtual DOM to find text
|
|
@@ -47,15 +47,15 @@ const d = {
|
|
|
47
47
|
* @returns {VNode|*}
|
|
48
48
|
*/
|
|
49
49
|
searchVNodes(s) {
|
|
50
|
-
var
|
|
50
|
+
var e;
|
|
51
51
|
if (typeof s == "string")
|
|
52
52
|
return this.searchCodes(s);
|
|
53
53
|
if (typeof s.type == "symbol")
|
|
54
54
|
return this.searchCodes(s.children);
|
|
55
|
-
if ((
|
|
55
|
+
if ((e = s.props) != null && e.innerHTML)
|
|
56
56
|
return this.searchVNodes(s.props.innerHTML);
|
|
57
|
-
const
|
|
58
|
-
return
|
|
57
|
+
const a = Array.isArray(s.children) ? s.children : [s.children];
|
|
58
|
+
return o(s.type, s.props, a.map((t) => this.searchVNodes(t)));
|
|
59
59
|
},
|
|
60
60
|
// TODO: Find a way to crawl vue components
|
|
61
61
|
replaceVueComponentVNodeContent(s) {
|
|
@@ -66,25 +66,25 @@ const d = {
|
|
|
66
66
|
* @returns {Array<VNode|string>|string}
|
|
67
67
|
*/
|
|
68
68
|
searchCodes(s) {
|
|
69
|
-
const
|
|
69
|
+
const a = l(s), e = m(s), t = [...a, ...e];
|
|
70
70
|
return t.length === 0 ? s : this.replaceDtEmojis(t, s);
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
render() {
|
|
74
74
|
const s = this.$slots.default ? this.$slots.default() : [];
|
|
75
|
-
return
|
|
75
|
+
return o(
|
|
76
76
|
this.elementType,
|
|
77
77
|
{
|
|
78
78
|
"data-qa": "emoji-text-wrapper",
|
|
79
79
|
class: this.$attrs.class
|
|
80
80
|
},
|
|
81
|
-
this.loadingEmojiJson ? s : s.map((
|
|
81
|
+
this.loadingEmojiJson ? s : s.map((a) => this.searchVNodes(a))
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
export {
|
|
86
86
|
j as CDN_URL,
|
|
87
|
-
|
|
87
|
+
r as DtEmoji,
|
|
88
88
|
u as DtEmojiPicker,
|
|
89
89
|
d as DtEmojiTextWrapper,
|
|
90
90
|
f as EMOJIS_PER_ROW,
|
|
@@ -97,18 +97,18 @@ export {
|
|
|
97
97
|
C as emojiFileExtensionSmall,
|
|
98
98
|
_ as emojiImageUrlLarge,
|
|
99
99
|
O as emojiImageUrlSmall,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
J as emojiJson,
|
|
101
|
+
U as emojiVersion,
|
|
102
|
+
A as filterValidShortCodes,
|
|
103
103
|
m as findEmojis,
|
|
104
104
|
l as findShortCodes,
|
|
105
105
|
x as getEmojiData,
|
|
106
106
|
M as setCustomEmojiJson,
|
|
107
107
|
R as setCustomEmojiUrl,
|
|
108
108
|
L as setEmojiAssetUrlLarge,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
$ as setEmojiAssetUrlSmall,
|
|
110
|
+
b as shortcodeToEmojiData,
|
|
111
|
+
k as stringToUnicode,
|
|
112
|
+
F as unicodeToString,
|
|
113
|
+
v as validateCustomEmojiJson
|
|
114
114
|
};
|