@saooti/octopus-sdk 40.1.1 → 40.1.3

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": "40.1.1",
3
+ "version": "40.1.3",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <section v-show="displayCommentSection" class="module-box">
3
3
  <div class="d-flex align-items-center">
4
- <h3 class="mb-0 me-2">{{ $t("Podcast's comments") }}</h3>
4
+ <component
5
+ :is="inStudio? 'div':'h3'"
6
+ :class="inStudio? 'm-1 fw-bold':'mb-0 me-2'">{{ $t("Podcast's comments") }}</component>
5
7
  <button
6
8
  :title="$t('Refresh')"
7
9
  class="btn btn-transparent"
@@ -17,11 +19,13 @@
17
19
  />
18
20
  <CommentList
19
21
  v-model:nb-comments="nbComments"
20
- class="mt-5"
22
+ :class="inStudio? 'mt-2':'mt-5'"
21
23
  :podcast="podcast"
24
+ :isFlatList="inStudio"
22
25
  :reload="reload"
23
26
  :config="configPodcast"
24
27
  :event-to-handle="eventToHandle"
28
+ :state-filter="stateFilter"
25
29
  />
26
30
  </section>
27
31
  </template>
@@ -49,7 +53,10 @@ export default defineComponent({
49
53
  },
50
54
  props: {
51
55
  podcast: { default: undefined, type: Object as () => Podcast },
56
+ inStudio: { default: false, type: Boolean },
57
+ stateFilter: { default: "", type: String },
52
58
  },
59
+ emits:['commentReceived'],
53
60
  data() {
54
61
  return {
55
62
  reload: false as boolean,
@@ -86,10 +93,12 @@ export default defineComponent({
86
93
  if (
87
94
  !this.commentEventToHandle.length ||
88
95
  this.commentPodcastId !== this.podcast?.podcastId
89
- )
96
+ ){
90
97
  return;
98
+ }
91
99
  this.eventToHandle = this.commentEventToHandle[0];
92
100
  this.commentEventHandled();
101
+ this.$emit('commentReceived');
93
102
  },
94
103
  },
95
104
  },
@@ -137,6 +137,9 @@ export default defineComponent({
137
137
  justify-content: space-between;
138
138
  padding: 0.5rem;
139
139
  flex-grow: 1;
140
+ @media (width <= 550px) {
141
+ padding:0;
142
+ }
140
143
  }
141
144
  }
142
145
  }