@saooti/octopus-sdk 30.0.90 → 30.0.91

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/README.md CHANGED
@@ -586,4 +586,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
586
586
  * 30.0.87 Podcastmaker newest (swiper list)
587
587
  * 30.0.88 Podcastmaker newest (swiper list)
588
588
  * 30.0.89 Podcastmaker newest (swiper list)
589
- * 30.0.90 Podcastmaker newest (swiper list)
589
+ * 30.0.90 Podcastmaker newest (swiper list)
590
+ * 30.0.91 Encore newest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.90",
3
+ "version": "30.0.91",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -99,7 +99,7 @@ export default defineComponent({
99
99
  props: {
100
100
  podcast: { default: ()=>({}), type: Object as ()=>Podcast},
101
101
  hidePlay: { default: false, type: Boolean},
102
- displayDescription: { default: undefined, type: String},
102
+ displayDescription: { default: false, type: Boolean},
103
103
  arrowDirection: { default: 'up', type: String},
104
104
  isAnimatorLive: { default: false, type: Boolean},
105
105
  fetchConference: { default: undefined, type: Object as ()=>Conference},
@@ -10,13 +10,14 @@
10
10
  >
11
11
  <PodcastImage
12
12
  :podcast="podcast"
13
- :hide-play="!hover || !description"
14
- :display-description="description"
13
+ :hide-play="!podcastItemDescription || (podcastItemDescription && (!hover || !description))"
14
+ :display-description="description && podcastItemDescription"
15
15
  :arrow-direction="arrowDirection"
16
16
  @hideDescription="hideDescription"
17
17
  @showDescription="showDescription"
18
18
  />
19
19
  <div
20
+ v-if="podcastItemDescription"
20
21
  :id="'description-podcast-container-' + podcast.podcastId"
21
22
  class="description-podcast-item html-wysiwyg-content"
22
23
  :class="[
@@ -145,6 +146,9 @@ export default defineComponent({
145
146
  podcastItemShowEmission(): boolean {
146
147
  return (state.podcastPage.podcastItemShowEmission as boolean);
147
148
  },
149
+ podcastItemDescription(): boolean {
150
+ return (state.podcastPage.podcastItemDescription as boolean);
151
+ },
148
152
  date(): string {
149
153
  return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
150
154
  },
@@ -221,6 +225,7 @@ export default defineComponent({
221
225
  },
222
226
 
223
227
  mounted() {
228
+ if(!this.podcastItemDescription){return}
224
229
  const podcastDesc = document.getElementById(
225
230
  'description-podcast-' + this.podcast.podcastId
226
231
  );
@@ -236,10 +241,12 @@ export default defineComponent({
236
241
  },
237
242
  methods: {
238
243
  showDescription(): void {
244
+ if(!this.podcastItemDescription){return}
239
245
  this.arrowDirection = 'down';
240
246
  this.hover = true;
241
247
  },
242
248
  hideDescription(): void {
249
+ if(!this.podcastItemDescription){return}
243
250
  this.arrowDirection = 'up';
244
251
  this.hover = false;
245
252
  },
@@ -35,6 +35,7 @@ const state:paramStore = {
35
35
  podcastItemShowEmission: false,
36
36
  clickPlayGoPage:false,
37
37
  listTypeClassic: true,
38
+ podcastItemDescription:true
38
39
  },
39
40
  podcastsPage: {
40
41
  ProductorSearch: true,
@@ -129,7 +130,8 @@ export interface PodcastPage{
129
130
  resourceUrl?: string |undefined,
130
131
  podcastItemShowEmission?: boolean,
131
132
  clickPlayGoPage?:boolean,
132
- listTypeClassic?:boolean
133
+ listTypeClassic?:boolean,
134
+ podcastItemDescription?:boolean,
133
135
  }
134
136
  export interface PodcastsPage{
135
137
  ProductorSearch?: boolean,