@dialpad/dialtone-vue 2.21.0 → 2.22.2
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/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +785 -220
- package/dist/dialtone-vue.umd.js +785 -220
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/dist/emoji.common.js +6 -1
- package/dist/emoji.umd.js +6 -1
- package/dist/emoji.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/emoji.common.js
CHANGED
|
@@ -694,7 +694,8 @@ function shortcodeToEmojiData(shortcode) {
|
|
|
694
694
|
return reference;
|
|
695
695
|
} // Takes in an emoji unicode character(s) and converts it to an emoji string in the format the emoji data object expects
|
|
696
696
|
// as a key. There can be multiple unicode characters in an emoji to denote the emoji itself, skin tone, gender
|
|
697
|
-
// and such.
|
|
697
|
+
// and such. Note that this function does NOT return variation selectors (fe0f) or zero width joiners (200d), as these
|
|
698
|
+
// are not included as part of the key in the emoji.json.
|
|
698
699
|
//
|
|
699
700
|
// Example:
|
|
700
701
|
// return value for smile emoji (no skin tone): 1f600
|
|
@@ -704,6 +705,10 @@ function unicodeToString(emoji) {
|
|
|
704
705
|
let key = '';
|
|
705
706
|
|
|
706
707
|
for (const codePoint of emoji) {
|
|
708
|
+
const codepoint = codePoint.codePointAt(0).toString(16); // skip 200d and fe0f as these are not included in emoji_strategy.json keys
|
|
709
|
+
|
|
710
|
+
if (['200d', 'fe0f'].includes(codepoint)) continue;
|
|
711
|
+
|
|
707
712
|
if (key !== '') {
|
|
708
713
|
key = key + '-';
|
|
709
714
|
}
|
package/dist/emoji.umd.js
CHANGED
|
@@ -704,7 +704,8 @@ function shortcodeToEmojiData(shortcode) {
|
|
|
704
704
|
return reference;
|
|
705
705
|
} // Takes in an emoji unicode character(s) and converts it to an emoji string in the format the emoji data object expects
|
|
706
706
|
// as a key. There can be multiple unicode characters in an emoji to denote the emoji itself, skin tone, gender
|
|
707
|
-
// and such.
|
|
707
|
+
// and such. Note that this function does NOT return variation selectors (fe0f) or zero width joiners (200d), as these
|
|
708
|
+
// are not included as part of the key in the emoji.json.
|
|
708
709
|
//
|
|
709
710
|
// Example:
|
|
710
711
|
// return value for smile emoji (no skin tone): 1f600
|
|
@@ -714,6 +715,10 @@ function unicodeToString(emoji) {
|
|
|
714
715
|
let key = '';
|
|
715
716
|
|
|
716
717
|
for (const codePoint of emoji) {
|
|
718
|
+
const codepoint = codePoint.codePointAt(0).toString(16); // skip 200d and fe0f as these are not included in emoji_strategy.json keys
|
|
719
|
+
|
|
720
|
+
if (['200d', 'fe0f'].includes(codepoint)) continue;
|
|
721
|
+
|
|
717
722
|
if (key !== '') {
|
|
718
723
|
key = key + '-';
|
|
719
724
|
}
|