@webitel/ui-chats 0.1.5 → 0.1.7

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-chats",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Reusable Webitel Frontend Code for Chats UI",
5
5
  "workspaces": [
6
6
  "../../",
@@ -13,7 +13,7 @@
13
13
  "build": "(npm run build:types || true)",
14
14
  "build:types": "vue-tsc -p ./tsconfig.build.json",
15
15
  "lint:biome": "biome check --write",
16
- "utils:publish": "npm publish --access public"
16
+ "utils:publish": "npm publish --access public --tag ${NPM_TAG:-latest}"
17
17
  },
18
18
  "dependencies": {
19
19
  "autolinker": "^4.1.5",
@@ -24,8 +24,8 @@
24
24
  "@types/node": "^24.10.0",
25
25
  "@vitejs/plugin-vue": "^6.0.1",
26
26
  "@vue/tsconfig": "^0.8.1",
27
- "@webitel/styleguide": "^26.2.5",
28
- "@webitel/ui-sdk": "^26.2.15",
27
+ "@webitel/styleguide": "^26.2.53",
28
+ "@webitel/ui-sdk": "^26.2.53",
29
29
  "mitt": "^3",
30
30
  "typescript": "~5.9.3",
31
31
  "vite": "npm:rolldown-vite@7.2.2",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@webitel/api-services": "^0.1.0",
37
- "@webitel/styleguide": "^26.2.5",
38
- "@webitel/ui-sdk": "^26.2.15",
37
+ "@webitel/styleguide": "^26.2.53",
38
+ "@webitel/ui-sdk": "^26.2.53",
39
39
  "mitt": "^3",
40
40
  "vue": "^3.5"
41
41
  },
@@ -16,9 +16,9 @@
16
16
  </template>
17
17
 
18
18
  <script setup lang="ts">
19
- import { computed, defineEmits, defineProps } from "vue";
19
+ import { computed, defineEmits, defineProps } from 'vue';
20
20
 
21
- import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
21
+ import type { ChatMessageFile } from '../../../../types/ChatMessage.types';
22
22
 
23
23
  const props = defineProps<{
24
24
  file: ChatMessageFile;
@@ -36,11 +36,13 @@ const emit = defineEmits<{
36
36
  const mediaUrl = computed(() => props.file.streamUrl || props.file.url);
37
37
 
38
38
  function handlePlayerInitialize(player) {
39
- emit("initialized", player);
39
+ emit('initialized', player);
40
40
  }
41
41
  </script>
42
42
 
43
43
  <style lang="scss" scoped>
44
+ $chat-file-max-width: 280px;
45
+ $chat-file-max-height: 280px;
44
46
  .chat-message-player {
45
47
  .wt-player :deep(.plyr) {
46
48
  .wt-player__close-icon,
@@ -49,8 +51,8 @@ function handlePlayerInitialize(player) {
49
51
  }
50
52
 
51
53
  &.plyr--video {
52
- max-height: var(--chat-file-max-height);
53
- max-width: var(--chat-file-max-width);
54
+ max-height: $chat-file-max-height;
55
+ max-width: $chat-file-max-width;
54
56
  }
55
57
  }
56
58
  }
@@ -1,4 +1,4 @@
1
- import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
1
+ import type { ChatMessageFile } from '../../../../types/ChatMessage.types';
2
2
  type __VLS_Props = {
3
3
  file: ChatMessageFile;
4
4
  type: string;