@webitel/ui-sdk 23.12.19 → 23.12.21

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": "23.12.19",
3
+ "version": "23.12.21",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build --target lib --name ui-sdk ./src/install.js",
@@ -48,6 +48,7 @@
48
48
  "is-valid-domain": "^0.1.6",
49
49
  "jszip": "^3.5.0",
50
50
  "jszip-utils": "^0.1.0",
51
+ "lodash": "^4.17.21",
51
52
  "node-polyfill-webpack-plugin": "^1.1.4",
52
53
  "plyr": "3.6.2",
53
54
  "query-string": "^8.1.0",
@@ -73,6 +74,7 @@
73
74
  "@vue/eslint-config-airbnb": "^6.0.0",
74
75
  "@vue/test-utils": "^2.3.0",
75
76
  "@vue/vue3-jest": "^29.2.2",
77
+ "babel-preset-vite": "^1.1.0",
76
78
  "bamboo-jest-reporter": "^1.0.3",
77
79
  "eslint": "^8.14.0",
78
80
  "eslint-plugin-import": "^2.20.2",
@@ -3,7 +3,7 @@ import axios from 'axios';
3
3
  // 'X-Webitel-Access' ~ 'X-Access-Token'
4
4
  const generateInstance = ({ interceptors } = {}) => {
5
5
  const instance = axios.create({
6
- baseURL: process.env.VUE_APP_API_URL,
6
+ baseURL: process ? process.env.VUE_APP_API_URL : import.meta.env.VITE_API_URL,
7
7
  headers: {
8
8
  'X-Webitel-Access': localStorage.getItem('access-token') || '',
9
9
  },
@@ -3,6 +3,6 @@
3
3
  --headline-nav-indicator-size: 4px;
4
4
  --headline-nav-gap: var(--spacing-sm);
5
5
  --headline-nav-dot-gap: var(--spacing-2xs);
6
- --headline-nav-indicator-color: var(--primary-color);
6
+ --headline-nav-indicator-color: var(--icon-color);
7
7
  --headline-nav-accent-indicator-color: var(--primary-color);
8
8
  }
@@ -68,7 +68,7 @@ const props = defineProps({
68
68
  height: var(--headline-nav-indicator-size);
69
69
  content: '';
70
70
  border-radius: 50%;
71
- background: var(--icon-color);
71
+ background: var(--headline-nav-indicator-color);
72
72
  }
73
73
  }
74
74
 
@@ -85,7 +85,7 @@ const props = defineProps({
85
85
 
86
86
  .wt-headline-nav__indicator {
87
87
  &:before {
88
- background: var(--icon-primary-color);
88
+ background: var(--headline-nav-accent-indicator-color);
89
89
  }
90
90
  }
91
91
 
@@ -2,7 +2,7 @@ import { shallowMount } from '@vue/test-utils';
2
2
  import WtPlayer from '../wt-player.vue';
3
3
 
4
4
  describe('WtPlayer', () => {
5
- xit('renders a component', () => {
5
+ it.skip('renders a component', () => {
6
6
  const wrapper = shallowMount(WtPlayer);
7
7
  expect(wrapper.classes('wt-player')).toBe(true);
8
8
  });
@@ -101,7 +101,7 @@ export default {
101
101
  methods: {
102
102
  async setupPlayer() {
103
103
  await this.$nextTick(); // test is failing to render component if element is passed to Plyr as Vue $ref
104
- const baseURL = this.$baseURL || process.env.BASE_URL;
104
+ const baseURL = this.$baseURL || process.env.BASE_URL || import.meta.env.BASE_URL;
105
105
  if (this.player) this.player.destroy();
106
106
  const controls = [
107
107
  'play-large', 'play', 'progress', 'current-time',
Binary file
@@ -1,6 +1,6 @@
1
1
  const generateMediaURL = (id) => {
2
2
  const token = localStorage.getItem('access-token');
3
- const BASE_URL = process.env.VUE_APP_API_URL;
3
+ const BASE_URL = process ? process.env.VUE_APP_API_URL : import.meta.env.VITE_API_URL;
4
4
  return `${BASE_URL}/storage/recordings/${id}/stream?access_token=${token}`;
5
5
  };
6
6
 
@@ -16,7 +16,7 @@
16
16
  <script>
17
17
  import AuthAPI from '../api/auth';
18
18
 
19
- const authURL = process.env.VUE_APP_AUTH_MODULE_URL;
19
+ const authURL = process ? process.env.VUE_APP_AUTH_MODULE_URL : import.meta.env.VITE_AUTH_MODE_URL;
20
20
 
21
21
  export default {
22
22
  name: 'auth',
@@ -1,4 +1,4 @@
1
- import lodashDebounce from 'lodash.debounce';
1
+ import lodashDebounce from 'lodash/debounce';
2
2
 
3
3
  const debounce = (fn, wait = 1000, options) => lodashDebounce(fn, wait, options);
4
4