contactstudiocstools 1.0.275 → 1.0.276
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/module.json
CHANGED
|
@@ -38,7 +38,7 @@ interface IProps {
|
|
|
38
38
|
position?: 'left' | 'right' | 'center' | 'mobile';
|
|
39
39
|
}
|
|
40
40
|
const props = withDefaults(defineProps<IProps>(), {
|
|
41
|
-
language: '
|
|
41
|
+
language: 'pt',
|
|
42
42
|
position: 'left'
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -62,19 +62,13 @@ const positionClasses = computed(() => {
|
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
const dataSourceUrl = computed(() => {
|
|
65
|
-
|
|
66
|
-
const langCode = props.language.split('_')[0];
|
|
67
|
-
return `https://cdn.jsdelivr.net/npm/emoji-picker-element-data@1.6.1/${langCode}/cldr/data.json`;
|
|
65
|
+
return `https://d2gph0xd4nwkex.cloudfront.net/frontend-libs/emoji-picker-element/6.11.0/${props.language}/data.json`;
|
|
68
66
|
});
|
|
69
67
|
|
|
70
68
|
const i18nUrl = computed(() => {
|
|
71
|
-
return `https://
|
|
69
|
+
return `https://d2gph0xd4nwkex.cloudfront.net/frontend-libs/emoji-picker-element/6.11.0/${props.language}/script.json`;
|
|
72
70
|
});
|
|
73
71
|
|
|
74
|
-
const i18nUrlRetry = computed(() => {
|
|
75
|
-
const langCode = props.language.split('_')[0];
|
|
76
|
-
return `https://cdn.jsdelivr.net/npm/emoji-picker-element@1.21.3/i18n/${langCode}.js`;
|
|
77
|
-
});
|
|
78
72
|
|
|
79
73
|
// Methods
|
|
80
74
|
onMounted(async () => {
|
|
@@ -108,8 +102,7 @@ async function initPicker() {
|
|
|
108
102
|
const { default: i18nData } = await import(/* @vite-ignore */ i18nUrl.value);
|
|
109
103
|
picker.i18n = i18nData;
|
|
110
104
|
} catch (error) {
|
|
111
|
-
|
|
112
|
-
picker.i18n = i18nData;
|
|
105
|
+
console.error(error);
|
|
113
106
|
}
|
|
114
107
|
|
|
115
108
|
picker.addEventListener('emoji-click', (event: any) => {
|