@webitel/ui-sdk 25.10.93 → 25.10.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.10.93",
3
+ "version": "25.10.94",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
@@ -1,4 +1,4 @@
1
- import { computed } from 'vue';
1
+ import { computed, toRef } from 'vue';
2
2
 
3
3
  import convertDuration from '../../scripts/convertDuration.js';
4
4
 
@@ -13,9 +13,7 @@ const isDurationOverflow = ({ durationMin, limitMin }) => {
13
13
  };
14
14
 
15
15
  const duration = ({ durationMin, limitMin }) => {
16
- return isDurationOverflow({ durationMin, limitMin })
17
- ? `-${prettifyPauseCauseDuration(durationMin - limitMin)}`
18
- : prettifyPauseCauseDuration(durationMin);
16
+ return prettifyPauseCauseDuration(durationMin);
19
17
  };
20
18
 
21
19
  const pauseCauseProgressColor = ({ durationMin, limitMin }) => {
@@ -26,8 +24,9 @@ const pauseCauseProgressColor = ({ durationMin, limitMin }) => {
26
24
 
27
25
  // eslint-disable-next-line import/prefer-default-export
28
26
  export const useRepresentableAgentPauseCause = (pauseCauses) => {
27
+ const pauseCausesRef = toRef(pauseCauses);
29
28
  const representablePauseCause = computed(() =>
30
- pauseCauses.value.map((pauseCause) => ({
29
+ pauseCausesRef.value.map((pauseCause) => ({
31
30
  ...pauseCause,
32
31
  duration: duration(pauseCause),
33
32
  progressColor: pauseCauseProgressColor(pauseCause),