contactstudiocstools 1.0.230 → 1.0.232

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.230"
4
+ "version": "1.0.232"
5
5
  }
@@ -20,14 +20,7 @@
20
20
 
21
21
  <!-- info -->
22
22
  <div class="flex-1 mx-3 w-24">
23
- <span
24
- class="badge badge-expertise"
25
- tooltip="Expertise"
26
- v-if="expertise"
27
- >
28
- {{ expertise.replace(/_/g, " ") }}
29
- </span>
30
- <p class="w-full overflow-hidden text-ellipsis whitespace-nowrap py-1 mt-1">
23
+ <p class="w-full overflow-hidden text-ellipsis whitespace-nowrap py-1">
31
24
  <!-- label -->
32
25
  <span class="text-xs">
33
26
  {{ contact.label }}
@@ -106,9 +99,6 @@ const getStatusClass = computed<string>(() => {
106
99
  if (props.contact.on) return "avatar-status-success";
107
100
  return "avatar-status-error";
108
101
  });
109
- const expertise = computed<string>(() => {
110
- return props.contact.primitive.expertise || ''
111
- })
112
102
 
113
103
  // data
114
104
  const expirated = ref<boolean>(false);
@@ -135,7 +125,7 @@ async function setTimerContact(): Promise<void> {
135
125
  setTimerContact()
136
126
  </script>
137
127
 
138
- <style>
128
+ <style scoped>
139
129
  .min-w-40px {
140
130
  min-width: 40px;
141
131
  }
@@ -143,22 +133,4 @@ setTimerContact()
143
133
  .text-2xs {
144
134
  font-size: 0.7rem;
145
135
  }
146
-
147
- :root {
148
- --badge-background-color: #fff;
149
- --badge-text-color: #9333EA;
150
- --badge-border-color: #e2e8f0;
151
- }
152
-
153
- .badge-expertise {
154
- background-color: var(--badge-background-color);
155
- color: var(--badge-text-color);
156
- border: 1px solid var(--badge-border-color);
157
- font-weight: 500;
158
- }
159
- .dark .badge-expertise {
160
- background-color: #1e293b!important;
161
- border: 1px solid #334155!important;
162
- color: #A855F7;
163
- }
164
136
  </style>
@@ -10,7 +10,8 @@ import { getCookie } from "typescript-cookie";
10
10
 
11
11
  //props
12
12
  const props = defineProps<{
13
- csAppHeader?: string
13
+ csAppHeader?: string,
14
+ userId?: string
14
15
  }>();
15
16
 
16
17
  // data
@@ -25,7 +26,8 @@ function initSnapshot(): void {
25
26
  //Objeto para adicionar os headers das requisições
26
27
  snapshot.postMessage({
27
28
  cssession,
28
- csAppHeader: props.csAppHeader || ''
29
+ csAppHeader: props.csAppHeader || '',
30
+ userId: props.userId || ''
29
31
  });
30
32
  snapshot.onmessage = ({ data }) => {
31
33
  if (data.error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contactstudiocstools",
3
- "version": "1.0.230",
3
+ "version": "1.0.232",
4
4
  "description": "Nuxt Tools Module for ContactStudio",
5
5
  "type": "module",
6
6
  "exports": {