@saooti/octopus-sdk 37.0.25 → 37.0.27

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.25",
3
+ "version": "37.0.27",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -74,6 +74,7 @@ export default defineComponent({
74
74
  rubriquageId: { default: () => [], type: Array as () => Array<number> },
75
75
  noRubriquageId: { default: () => [], type: Array as () => Array<number> },
76
76
  justSizeChosen: { default: false, type: Boolean },
77
+ withVideo: { default: undefined, type: Boolean },
77
78
  },
78
79
  emits: ["fetch", "emptyList"],
79
80
 
@@ -103,7 +104,8 @@ export default defineComponent({
103
104
  changed(): string {
104
105
  return `${this.first}|${this.size}|${this.organisation}|${this.emissionId}|${this.sortCriteria}|${this.sort}
105
106
  ${this.iabId}|${this.participantId}|${this.query}|${this.monetization}|${this.popularSort}|
106
- ${this.rubriqueId}|${this.rubriquageId}|${this.before}|${this.after}|${this.includeHidden}|${this.noRubriquageId}|${this.notValid}`;
107
+ ${this.rubriqueId}|${this.rubriquageId}|${this.before}|${this.after}|${this.includeHidden}|${this.noRubriquageId}|${this.notValid}|
108
+ ${this.withVideo}`;
107
109
  },
108
110
  organisation(): Array<string> {
109
111
  if (this.organisationId) {
@@ -183,6 +185,7 @@ export default defineComponent({
183
185
  ? this.authProfile?.userId
184
186
  : undefined,
185
187
  includeStatus: ["READY", "PROCESSING"],
188
+ withVideo: this.withVideo
186
189
  };
187
190
  try {
188
191
  const data = await octopusApi.fetchDataWithParams<{
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="!isLoading && !noSharing" class="module-box">
2
+ <div v-if="!isLoading && (authenticated || !noSharing)" class="module-box">
3
3
  <div class="d-flex align-items-center mb-3">
4
4
  <h2 class="big-h2 mb-0">
5
5
  {{ $t("Share") }}
@@ -21,6 +21,7 @@
21
21
  />
22
22
  </div>
23
23
  <ShareButtonsIntern
24
+ :no-sharing="noSharing"
24
25
  :podcast="podcast"
25
26
  :emission="emission"
26
27
  :playlist="playlist"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="d-flex align-items-center justify-content-between">
3
- <div v-if="!isGarStudent" class="d-flex flex-column me-2">
3
+ <div v-if="!isGarStudent && !noSharing" class="d-flex flex-column me-2">
4
4
  <div class="h4 mb-2">
5
5
  {{ $t("Social networks") }}
6
6
  </div>
@@ -135,6 +135,7 @@ export default defineComponent({
135
135
  mixins: [displayMethods],
136
136
 
137
137
  props: {
138
+ noSharing: { default: false, type: Boolean },
138
139
  podcast: { default: undefined, type: Object as () => Podcast },
139
140
  emission: { default: undefined, type: Object as () => Emission },
140
141
  playlist: { default: undefined, type: Object as () => Playlist },
@@ -219,7 +219,7 @@ export default defineComponent({
219
219
  iFrameSrc(): string {
220
220
  if ("video" === this.iFrameModel) {
221
221
  return (
222
- "//www.ultimedia.com/deliver/generic/iframe/mdtk/01009833/zone/1/showtitle/1/src/" +
222
+ "http://www.ultimedia.com/deliver/generic/iframe/mdtk/01009833/zone/1/showtitle/1/src/" +
223
223
  this.podcast?.video?.videoId
224
224
  );
225
225
  }
@@ -37,6 +37,7 @@
37
37
  :rubrique-id="rubriqueId"
38
38
  :rubriquage-id="rubriquageId"
39
39
  :no-rubriquage-id="noRubriquageId"
40
+ :with-video="withVideo"
40
41
  />
41
42
  </div>
42
43
  </template>
@@ -80,7 +81,6 @@ export default defineComponent({
80
81
  noRubriquageId: [] as Array<number>,
81
82
  rubriquageId: [] as Array<number>,
82
83
  rubriqueId: [] as Array<number>,
83
- //VIDEO_WORK
84
84
  onlyVideo: false as boolean,
85
85
  };
86
86
  },
@@ -100,6 +100,9 @@ export default defineComponent({
100
100
  organisation(): string | undefined {
101
101
  return this.organisationId ? this.organisationId : this.filterOrgaId;
102
102
  },
103
+ withVideo(): boolean|undefined{
104
+ return false===this.onlyVideo ? undefined : true;
105
+ }
103
106
  },
104
107
  watch: {
105
108
  organisationId(): void {