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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@contactstudio/cstools",
3
3
  "configKey": "CSTools",
4
- "version": "1.0.275"
4
+ "version": "1.0.276"
5
5
  }
@@ -38,7 +38,7 @@ interface IProps {
38
38
  position?: 'left' | 'right' | 'center' | 'mobile';
39
39
  }
40
40
  const props = withDefaults(defineProps<IProps>(), {
41
- language: 'pt_BR',
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
- // Extrair language code (e.g. pt_BR -> pt)
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://cdn.jsdelivr.net/npm/emoji-picker-element@1.21.3/i18n/${props.language}.js`;
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
- const { default: i18nData } = await import(/* @vite-ignore */ i18nUrlRetry.value);
112
- picker.i18n = i18nData;
105
+ console.error(error);
113
106
  }
114
107
 
115
108
  picker.addEventListener('emoji-click', (event: any) => {
@@ -125,7 +125,7 @@
125
125
 
126
126
  <AtomEmojiPicker
127
127
  class="mr-2"
128
- language="pt_BR"
128
+ language="pt"
129
129
  position="mobile"
130
130
  @select="onEmojiSelect"
131
131
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contactstudiocstools",
3
- "version": "1.0.275",
3
+ "version": "1.0.276",
4
4
  "description": "Nuxt Tools Module for ContactStudio",
5
5
  "type": "module",
6
6
  "exports": {