@webitel/ui-sdk 26.8.6 → 26.8.8

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.
@@ -1,4 +1,4 @@
1
- import "./components-DkD3WP0T.js";
1
+ import "./components-DL68kJ6J.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-De8CDKZ1.js";
4
4
  import { t as n } from "./wt-button-DwAda_g4.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-DkD3WP0T.js";
1
+ import { C as e, i as t } from "./components-DL68kJ6J.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t as r } from "./displayText-CtaxzaBz.js";
4
4
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { n as e, r as t } from "./clients-DqzkR0RW.js";
2
- import { n } from "./components-DkD3WP0T.js";
2
+ import { n } from "./components-DL68kJ6J.js";
3
3
  import { t as r } from "./vue-i18n-Db_oYfO8.js";
4
4
  import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
5
5
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clients-DqzkR0RW.js";
2
- import { a as t, o as n, r, s as i } from "./components-DkD3WP0T.js";
2
+ import { a as t, o as n, r, s as i } from "./components-DL68kJ6J.js";
3
3
  import { t as a } from "./enums-De8CDKZ1.js";
4
4
  import { t as o } from "./vue-i18n-Db_oYfO8.js";
5
5
  import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
@@ -1,4 +1,4 @@
1
- import { w as e } from "./components-DkD3WP0T.js";
1
+ import { w as e } from "./components-DL68kJ6J.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-De8CDKZ1.js";
4
4
  import "./wt-button-DwAda_g4.js";
@@ -7592,6 +7592,6 @@ var Bo = { class: "controls-group__actions" }, Vo = /*#__PURE__*/ t(/* @__PURE__
7592
7592
  "countdown-time-mode"
7593
7593
  ])], 40, rs)], 2));
7594
7594
  }
7595
- }), [["__scopeId", "data-v-2dd467ff"]]);
7595
+ }), [["__scopeId", "data-v-b63f74b6"]]);
7596
7596
  //#endregion
7597
7597
  export { is as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.6",
3
+ "version": "26.8.8",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -39,7 +39,7 @@
39
39
  @keyup="handleKeyup"
40
40
  />
41
41
  <p-input-group-addon
42
- v-if="hasSuffixAddon"
42
+ v-if="hideInputValue || $slots.suffix"
43
43
  class="wt-input-text__addon typo-body-1"
44
44
  >
45
45
  <wt-icon-btn
@@ -158,7 +158,6 @@ const isValueHidden = ref(props.hideInputValue);
158
158
  const isInputMasked = computed(
159
159
  () => !!model.value?.length && isValueHidden.value,
160
160
  );
161
- const hasSuffixAddon = computed(() => props.hideInputValue || slots.suffix);
162
161
 
163
162
  const eyeIconName = computed(() =>
164
163
  isValueHidden.value ? 'eye--opened' : 'eye--closed',
@@ -1,3 +1,4 @@
1
+ import type { PlayerSrc } from 'vidstack';
1
2
  import { computed, toRef } from 'vue';
2
3
 
3
4
  import { normalizeVidstackMediaSrc } from '../utils/normalizeVidstackMediaSrc';
@@ -24,11 +25,11 @@ export const useVidstackSrc = ({ src, type, stream }) => {
24
25
  return src?.replace('/download', '/stream'); // fixme https://webitel.atlassian.net/browse/WTEL-8723?focusedCommentId=733348
25
26
  });
26
27
 
27
- const normalizedSrcObject = computed(() => {
28
+ const normalizedSrcObject = computed<PlayerSrc>(() => {
28
29
  return normalizeVidstackMediaSrc({
29
30
  src: normalizedSrcValue.value,
30
31
  type: normalizedType.value,
31
- });
32
+ }) as PlayerSrc;
32
33
  });
33
34
 
34
35
  return {
@@ -100,6 +100,13 @@ const emit = defineEmits<{
100
100
  ];
101
101
  }>();
102
102
 
103
+ defineSlots<{
104
+ avatar?: () => unknown;
105
+ 'display-panel-actions'?: () => unknown;
106
+ content?: (scope: { size: ComponentSize }) => unknown;
107
+ 'controls-panel'?: (scope: { size: ComponentSize }) => unknown;
108
+ }>();
109
+
103
110
  const rootEl = useTemplateRef<HTMLElement>('root');
104
111
 
105
112
  defineExpose({
@@ -33,7 +33,7 @@
33
33
  </template>
34
34
 
35
35
  <script setup lang="ts">
36
- import { WtVidstackPlayer } from '@webitel/ui-sdk/components';
36
+ import WtVidstackPlayer from '@webitel/ui-sdk/src/components/wt-vidstack-player/wt-vidstack-player.vue';
37
37
  import { useAttrs } from 'vue';
38
38
  import {
39
39
  RecordingIndicator,
@@ -168,7 +168,7 @@
168
168
  setup
169
169
  lang="ts"
170
170
  >
171
- import { WtVidstackPlayer } from '@webitel/ui-sdk/components';
171
+ import WtVidstackPlayer from '@webitel/ui-sdk/src/components/wt-vidstack-player/wt-vidstack-player.vue';
172
172
  import { computed, isRef, onBeforeUnmount, type Ref, ref, watch } from 'vue';
173
173
  import { useI18n } from 'vue-i18n';
174
174
  import { WtIcon, WtIconBtn } from '../../../../components';