@saooti/octopus-sdk 36.0.3 → 36.0.4

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": "36.0.3",
3
+ "version": "36.0.4",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -54,7 +54,7 @@
54
54
  <div
55
55
  v-for="p in podcasts"
56
56
  :key="p.podcastId"
57
- class="border-top emission-item-border-color p-2 secondary-bg d-flex flex-column"
57
+ class="border-top emission-item-border-color p-2 d-flex flex-column"
58
58
  >
59
59
  <router-link
60
60
  v-if="isProgressBar"
@@ -93,7 +93,7 @@
93
93
  <!-- eslint-enable -->
94
94
  </div>
95
95
  </router-link>
96
- <PodcastPlayBar :podcast="p" />
96
+ <PodcastPlayBar :podcast-id="p.podcastId" :duration="p.duration" />
97
97
  </div>
98
98
  <button
99
99
  v-if="
@@ -233,8 +233,8 @@ export default defineComponent({
233
233
  this.podcasts = data.result;
234
234
  this.$nextTick(() => {
235
235
  for (let index = 0, len = this.podcasts.length; index < len; index++) {
236
- const podcastDesc = (this.$refs['descriptionPodcast'+this.podcasts[index].podcastId] as Array<HTMLElement>)[0];
237
- const podcastDescContainer = (this.$refs['descriptionPodcastContainer'+this.podcasts[index].podcastId] as Array<HTMLElement>)[0];
236
+ const podcastDesc = (this.$refs['descriptionPodcast'+this.podcasts[index].podcastId] as Array<HTMLElement>)?.[0] ?? null;
237
+ const podcastDescContainer = (this.$refs['descriptionPodcastContainer'+this.podcasts[index].podcastId] as Array<HTMLElement>)?.[0] ?? null;
238
238
  if (
239
239
  null !== podcastDesc && null !== podcastDescContainer &&
240
240
  podcastDesc.clientHeight > podcastDescContainer.clientHeight
@@ -258,6 +258,7 @@ export default defineComponent({
258
258
  width: 100%;
259
259
  max-width: $octopus-item-size;
260
260
  height: min-content;
261
+ border: 2px solid #eee;
261
262
  border-radius: $octopus-borderradius;
262
263
  overflow: hidden;
263
264
  .emission-item-border-color {
@@ -165,7 +165,7 @@ export default defineComponent({
165
165
  justify-content: flex-end;
166
166
  width: 100%;
167
167
  position: sticky;
168
- background: white;
168
+ background: $octopus-background;
169
169
  padding: 0.5rem 0;
170
170
  z-index: 10;
171
171
  .btn{
@@ -101,7 +101,8 @@
101
101
  :is-guest="true"
102
102
  />
103
103
  <PodcastPlayBar
104
- :podcast="podcast"
104
+ :podcast-id="podcast.podcastId"
105
+ :duration="podcast.duration"
105
106
  />
106
107
  <div v-if="editRight && !isPodcastmaker">
107
108
  <div
@@ -20,11 +20,10 @@
20
20
  </template>
21
21
  </div>
22
22
  </div>
23
- <div class="d-flex flex-column me-2">
23
+ <div class="d-flex flex-column me-2" v-if="podcast || emission ||playlist">
24
24
  <div class="h4 mb-2">{{$t('Newsletter')}}</div>
25
25
  <div class="d-flex align-items-center justify-content-center">
26
26
  <button
27
- v-if="podcast || emission ||playlist"
28
27
  :class="getClass()"
29
28
  class="saooti-newsletter"
30
29
  :title="$t('Share newsletter')"