@saooti/octopus-sdk 41.10.4 → 41.10.5

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/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 41.10.4 (En cours)
3
+ ## 41.10.5 (26/05/2026)
4
+
5
+ **Features**
6
+
7
+ - Possibilité de désactiver l'affichage des podcasts dans `EmissionPlayerItem`
8
+
9
+ **Fixes**
10
+
11
+ - **14486** - Tri des saisons sur la page d'émission
12
+
13
+ ## 41.10.4 (13/05/2026)
4
14
 
5
15
  **Fixes**
6
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "41.10.4",
3
+ "version": "41.10.5",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -103,6 +103,7 @@ const PodcastPlayBasicButton = defineAsyncComponent(() => import("../podcasts/Po
103
103
  //Props
104
104
  const props = defineProps({
105
105
  emission: { default: () => ({}), type: Object as () => Emission },
106
+ /** Number of podcasts to display (default: 2); if set to 0, no podcasts will be displayed */
106
107
  nbPodcasts: { default: undefined, type: Number },
107
108
  rubriqueName: { default: undefined, type: String },
108
109
  })
@@ -125,6 +126,10 @@ onBeforeMount(()=>loadPodcasts())
125
126
 
126
127
  //Methods
127
128
  async function loadPodcasts(): Promise<void> {
129
+ if (props.nbPodcasts === 0) {
130
+ return;
131
+ }
132
+
128
133
  const nb = props.nbPodcasts ? props.nbPodcasts : 2;
129
134
  const data = await classicApi.fetchData<ListClassicReturn<Podcast>>({
130
135
  api: 0,
@@ -41,11 +41,15 @@
41
41
  v-model:active-tab="activeSeasonTab"
42
42
  :tab-number="emission.seasons.length"
43
43
  >
44
- <template v-for="(season, i) in emission.seasons" #[tabNameSlot(i)]>
44
+ <template v-for="(season, i) in seasons" #[tabNameSlot(i)]>
45
45
  {{ $t('Podcast - Season N', { season }) }}
46
46
  </template>
47
47
 
48
- <template v-for="(season, i) in emission.seasons" #[tabContentSlot(i)] :key="season">
48
+ <template
49
+ v-for="(season, i) in seasons"
50
+ #[tabContentSlot(i)]
51
+ :key="season"
52
+ >
49
53
  <PodcastList
50
54
  class="flex-grow-1"
51
55
  :first="dfirst"
@@ -137,6 +141,8 @@ const showSeasons = computed(() => {
137
141
  return props.emission !== undefined && areSeasonsEnabled(props.emission) && (props.emission.seasons?.length ?? 0) > 0;
138
142
  });
139
143
 
144
+ const seasons = computed((): Array<number> => [...props.emission.seasons].sort());
145
+
140
146
  const activeSeasonTab = ref(showSeasons.value ? props.emission.seasons?.indexOf(getMaxSeason(props.emission)) ?? 0 : 0);
141
147
 
142
148
  const sort = computed((): PodcastSort => {
@@ -108,7 +108,7 @@
108
108
  :size="ps"
109
109
  :show-count="true"
110
110
  :emission-id="emissionId"
111
- :emission="emission"
111
+ :emission="{ ...emission, seasons: [7, 3, 5, 1, 2, 4] }"
112
112
  :category-filter="false"
113
113
  :edit-right="editRight"
114
114
  :productor-id="[emission.orga.id]"