@saooti/octopus-sdk 37.0.20 → 37.0.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": "@saooti/octopus-sdk",
3
- "version": "37.0.20",
3
+ "version": "37.0.21",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -217,6 +217,9 @@ body{
217
217
  -webkit-box-orient: vertical;
218
218
  word-break: break-word;
219
219
  }
220
+ .word-break-word{
221
+ word-break: break-word;
222
+ }
220
223
 
221
224
  .html-wysiwyg-content{
222
225
  h3,h4{
@@ -3,6 +3,7 @@
3
3
  <template v-if="!isPhone">
4
4
  <button
5
5
  v-show="isLoop"
6
+ :title="$t('Display previous')"
6
7
  class="btn-transparent swiper-button-prev"
7
8
  @click="slidePrevButton()"
8
9
  ></button>
@@ -63,6 +63,7 @@
63
63
  </button>
64
64
  <button
65
65
  v-if="isVideoPodcast"
66
+ :title="$t('Video')"
66
67
  class="btn admin-button btn-play-video saooti-video"
67
68
  @click="play(true)"
68
69
  ></button>
@@ -17,6 +17,9 @@
17
17
  <iframe
18
18
  id="miniplayerIframe"
19
19
  title="miniplayer"
20
+ allowfullscreen="true"
21
+ allow="autoplay"
22
+ referrerpolicy="no-referrer-when-downgrade"
20
23
  :src="iFrameSrc"
21
24
  width="100%"
22
25
  :height="iFrameHeight"
@@ -214,6 +217,9 @@ export default defineComponent({
214
217
  );
215
218
  },
216
219
  iFrameSrc(): string {
220
+ if("video" === this.iFrameModel){
221
+ return "//www.ultimedia.com/deliver/generic/iframe/mdtk/01009833/zone/1/showtitle/1/src/" + this.podcast?.video?.videoId
222
+ }
217
223
  let url = [""];
218
224
  let iFrameNumber =
219
225
  this.displayChoiceAllEpisodes && "all" === this.episodeNumbers
@@ -240,6 +246,7 @@ export default defineComponent({
240
246
  },
241
247
  iFrameHeight(): string {
242
248
  switch (this.iFrameModel) {
249
+ case 'video': return 'auto';
243
250
  case 'large':
244
251
  if (this.podcast) return '140px';
245
252
  return '350px';
@@ -254,7 +261,8 @@ export default defineComponent({
254
261
  }
255
262
  },
256
263
  iFrame(): string {
257
- return `<iframe src="${this.iFrameSrc}" width="100%" height="${this.iFrameHeight}" scrolling="no" frameborder="0"></iframe>`;
264
+ const specialDigiteka = this.podcast?.video?.videoId ? 'allowfullscreen="true" allow="autoplay" referrerpolicy="no-referrer-when-downgrade"' : '';
265
+ return `<iframe src="${this.iFrameSrc}" width="100%" height="${this.iFrameHeight}" scrolling="no" frameborder="0" ${specialDigiteka}></iframe>`;
258
266
  },
259
267
  isPodcastNotVisible(): boolean {
260
268
  return (
@@ -46,8 +46,12 @@ export default defineComponent({
46
46
  };
47
47
  },
48
48
  computed: {
49
+ isVideoPodcast(): boolean{
50
+ return undefined!==this.podcast && undefined!==this.podcast.video?.videoId;
51
+ },
49
52
  optionsSelect() {
50
53
  return [
54
+ {name: this.$t('Video Version'), value: 'video', condition: this.isVideoPodcast},
51
55
  {name: this.$t('Default version'), value: 'default', condition: true},
52
56
  {name: this.$t('Large version'), value: 'large', condition: true},
53
57
  {name: this.$t('Full Large version'), value: 'largeMore', condition: this.podcast && this.podcast.podcastId},
@@ -71,6 +75,9 @@ export default defineComponent({
71
75
  },
72
76
  },
73
77
  async created() {
78
+ if(this.isVideoPodcast){
79
+ this.$emit("update:iFrameModel","video");
80
+ }
74
81
  await this.initCustomPlayers();
75
82
  },
76
83
  methods: {
@@ -101,6 +108,7 @@ export default defineComponent({
101
108
  }
102
109
  this.customPlayers = this.customPlayers.concat(playersContent);
103
110
  if (
111
+ 'video'!==this.iFrameModel &&
104
112
  trySelect &&
105
113
  this.customPlayers[0] &&
106
114
  this.customPlayers[0].selected
@@ -10,13 +10,13 @@
10
10
  {{ tab }}
11
11
  </template>
12
12
  <template #tab0>
13
- <p>{{ embedLink }}</p>
13
+ <p class="word-break-word">{{ embedLink }}</p>
14
14
  <div class="saooti-copy" @click="onCopyCode(embedLink, afterCopy)" />
15
15
  </template>
16
16
  <template #tab1>
17
17
  <div class="d-flex flex-column flex-grow-1">
18
18
  <div class="d-flex justify-content-between align-items-center">
19
- <p>{{ embedlyLink }}</p>
19
+ <p class="word-break-word">{{ embedlyLink }}</p>
20
20
  <div
21
21
  class="saooti-copy"
22
22
  @click="onCopyCode(embedlyLink, afterCopy)"
@@ -26,7 +26,7 @@
26
26
  </div>
27
27
  </template>
28
28
  <template v-if="directLink" #tab2>
29
- <p>{{ directLink.audioUrl }}</p>
29
+ <p class="word-break-word">{{ directLink.audioUrl }}</p>
30
30
  <div
31
31
  class="saooti-copy"
32
32
  @click="onCopyCode(directLink.audioUrl, snackbarRef)"
package/src/locale/de.ts CHANGED
@@ -343,4 +343,7 @@ export default {
343
343
  "Display HTML":"HTML anzeigen",
344
344
  "Video is unavailable":"Video ist nicht verfügbar",
345
345
  'Full Large version': 'Vollständige große Version',
346
+ "Show only episodes with video":"Nur Episoden mit Video anzeigen",
347
+ "Video":"Video",
348
+ "Video Version":"Videoversion",
346
349
  }
package/src/locale/en.ts CHANGED
@@ -343,4 +343,7 @@ export default {
343
343
  "Display HTML":"Display HTML",
344
344
  "Video is unavailable":"Video is unavailable",
345
345
  'Full Large version': 'Full large version',
346
+ "Show only episodes with video":"Show only episodes with video",
347
+ "Video":"Video",
348
+ "Video Version":"Video version",
346
349
  };
package/src/locale/es.ts CHANGED
@@ -344,4 +344,7 @@ export default {
344
344
  "Display HTML":"Mostrar HTML",
345
345
  "Video is unavailable":"El vídeo no está disponible",
346
346
  'Full Large version': 'Versión grande completa',
347
+ "Show only episodes with video":"Mostrar solo episodios con video",
348
+ "Video":"Video",
349
+ "Video Version":"Versión de vídeo",
347
350
  }
package/src/locale/fr.ts CHANGED
@@ -354,4 +354,5 @@ export default {
354
354
 
355
355
  "Show only episodes with video":"Afficher uniquement les épisodes avec une vidéo",
356
356
  "Video":"Vidéo",
357
+ "Video Version":"Version vidéo",
357
358
  };
package/src/locale/it.ts CHANGED
@@ -335,5 +335,8 @@ export default{
335
335
  "List":"Elenco",
336
336
  "Display HTML":"Visualizza HTML",
337
337
  "Video is unavailable":"Il video non è disponibile",
338
- 'Full Large version': 'Versione completa di grandi dimensioni',
338
+ 'Full Large version': 'Versione completa di grandi dimensioni',
339
+ "Show only episodes with video":"Mostra solo episodi con video",
340
+ "Video":"Video",
341
+ "Video Version":"Versione video",
339
342
  };
package/src/locale/sl.ts CHANGED
@@ -333,4 +333,7 @@ export default {
333
333
  "Display HTML":"Prikaži HTML",
334
334
  "Video is unavailable":"Videoposnetek ni na voljo",
335
335
  'Full Large version': 'Popolna velika različica',
336
+ "Show only episodes with video":"Prikaži samo epizode z videom",
337
+ "Video":"Video",
338
+ "Video Version":"Video različica",
336
339
  }