@saooti/octopus-sdk 34.0.8 → 34.0.10

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": "34.0.8",
3
+ "version": "34.0.10",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="module-box text-center-mobile">
3
3
  <template
4
- v-if="authenticated || participantId || organisationId || notExclusive"
4
+ v-if="!isVertical"
5
5
  >
6
6
  <div class="d-flex mb-2">
7
7
  <h3 class="mb-0">
@@ -69,7 +69,7 @@ export default defineComponent({
69
69
  playlist: { default: undefined, type: Object as ()=>Playlist},
70
70
  participantId: { default: undefined, type: Number},
71
71
  organisationId: { default: undefined, type: String},
72
- notExclusive: { default: true, type: Boolean},
72
+ isVertical: { default: false, type: Boolean},
73
73
  },
74
74
  computed: {
75
75
  authenticated(): boolean {
@@ -111,7 +111,7 @@ export default defineComponent({
111
111
  playlist: { default: undefined, type: Object as ()=>Playlist},
112
112
  participantId: { default: undefined, type: Number},
113
113
  organisationId: { default: undefined, type: String},
114
- notExclusive: { default: true, type: Boolean},
114
+ isVertical: { default: false, type: Boolean},
115
115
  },
116
116
 
117
117
  data() {
@@ -149,14 +149,6 @@ export default defineComponent({
149
149
  urlPage(): string{
150
150
  return window.location.href;
151
151
  },
152
- verticalDisplay(): boolean {
153
- return (
154
- !this.authenticated &&
155
- !this.participantId &&
156
- !this.organisationId &&
157
- !this.notExclusive
158
- );
159
- },
160
152
  authenticated(): boolean {
161
153
  return (state.generalParameters.authenticated as boolean);
162
154
  },
@@ -171,6 +163,9 @@ export default defineComponent({
171
163
  if (this.organisationId){
172
164
  return api +'productor/' + this.organisationId + '.rss';
173
165
  }
166
+ if(this.playlist){
167
+ return api +'playlist/' + this.playlist.playlistId + '.rss';
168
+ }
174
169
  return '';
175
170
  },
176
171
  },
@@ -185,7 +180,7 @@ export default defineComponent({
185
180
  methods: {
186
181
  getClass(className='btn-rss'): string{
187
182
  let returnString = `btn ${className} share-btn mb-2 text-dark`;
188
- returnString+= this.verticalDisplay ? '' : ' mx-2';
183
+ returnString+= this.isVertical ? '' : ' mx-2';
189
184
  return returnString;
190
185
  },
191
186
  openPopup(): void {
@@ -101,6 +101,12 @@ export default defineComponent({
101
101
  let parentScrollTop = 0;
102
102
  if(this.relativeClass){
103
103
  const modalBody = document.getElementsByClassName(this.relativeClass)[0];
104
+ if(undefined===modalBody){
105
+ (this.$refs.popover as HTMLElement).style.display = 'block';
106
+ this.posX = 0;
107
+ this.posY = 0;
108
+ return;
109
+ }
104
110
  const modalBodyRect = modalBody.getBoundingClientRect();
105
111
  parentLeft = modalBodyRect.left;
106
112
  parentRight = modalBodyRect.right;
@@ -50,7 +50,7 @@
50
50
  <ShareButtons
51
51
  v-if="pageParameters.isShareButtons"
52
52
  :emission="emission"
53
- :not-exclusive="notExclusive"
53
+ :isVertical="!authenticated && !notExclusive"
54
54
  />
55
55
  </div>
56
56
  </div>
@@ -37,6 +37,7 @@
37
37
  v-if="pageParameters.isShareButtons"
38
38
  :participant-id="participantId"
39
39
  :organisation-id="participant.orga.id"
40
+ :isVertical="false"
40
41
  />
41
42
  </div>
42
43
  </div>
@@ -39,6 +39,7 @@
39
39
  <ShareButtons
40
40
  v-if="pageParameters.isShareButtons"
41
41
  :playlist="playlist"
42
+ :isVertical="true"
42
43
  />
43
44
  </div>
44
45
  </div>
@@ -54,7 +54,7 @@
54
54
  <ShareButtons
55
55
  v-if="pageParameters.isShareButtons"
56
56
  :podcast="podcast"
57
- :not-exclusive="notExclusive"
57
+ :isVertical="!authenticated && !notExclusive"
58
58
  />
59
59
  </div>
60
60
  </div>