@saooti/octopus-sdk 36.0.28 → 36.0.30

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.28",
3
+ "version": "36.0.30",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -143,10 +143,10 @@
143
143
  &.three-emissions {
144
144
  grid-template-columns: repeat(auto-fill, 32%); /* 2 */
145
145
  }
146
- @media (max-width: 1200px) {
146
+ @media (max-width: 1100px) {
147
147
  grid-template-columns: auto !important;
148
148
  display: flex !important;
149
- flex-wrap: wrap;
149
+ flex-direction: column;
150
150
  }
151
151
  }
152
152
 
@@ -56,7 +56,7 @@ export default defineComponent({
56
56
  categoryFilter: { default: false, type: Boolean},
57
57
  reload: { default: false, type: Boolean},
58
58
  editRight: { default: false, type: Boolean},
59
- productorId: { default: undefined, type: String},
59
+ productorId: { default: () => [], type: Array as ()=> Array<string>},
60
60
  showCount: { default: false, type: Boolean },
61
61
  },
62
62
  emits: ['fetch'],
@@ -49,7 +49,7 @@ export default defineComponent({
49
49
  PodcastSwiperList,
50
50
  },
51
51
  props: {
52
- organisationId: { default: undefined, type: String},
52
+ organisationId: { default: () => [], type: Array as ()=> Array<string>},
53
53
  emissionId: { default: undefined, type: Number},
54
54
  iabId: { default: undefined, type: Number},
55
55
  title: { default: '', type: String},
@@ -69,7 +69,7 @@ export default defineComponent({
69
69
  },
70
70
  mixins:[imageProxy],
71
71
  props: {
72
- organisationId: { default: undefined, type: String},
72
+ organisationId: { default: () => [], type: Array as ()=> Array<string>},
73
73
  emissionId: { default: undefined, type: Number},
74
74
  iabId: { default: undefined, type: Number},
75
75
  title: { default: '', type: String},
@@ -113,8 +113,11 @@ export default defineComponent({
113
113
  isInlineAnimation(): boolean {
114
114
  return (state.generalParameters.isInlineAnimation as boolean);
115
115
  },
116
- organisation(): string|undefined {
117
- return this.organisationId ?this.organisationId: this.filterOrgaId;
116
+ organisation(): Array<string> {
117
+ if(this.organisationId){
118
+ return this.organisationId;
119
+ }
120
+ return this.filterOrgaId ? [this.filterOrgaId] : [];
118
121
  },
119
122
  previousAvailable(): boolean {
120
123
  return this.index > 0;
@@ -55,7 +55,7 @@ export default defineComponent({
55
55
  props: {
56
56
  first: { default: 0, type: Number},
57
57
  size: { default: 30, type: Number},
58
- organisationId: { default: undefined, type: String},
58
+ organisationId: { default: () => [], type: Array as ()=> Array<string>},
59
59
  emissionId: { default: undefined, type: Number},
60
60
  iabId: { default: undefined, type: Number},
61
61
  participantId: { default: undefined, type: Number},
@@ -102,8 +102,11 @@ export default defineComponent({
102
102
  ${this.iabId}|${this.participantId}|${this.query}|${this.monetization}|${this.popularSort}|
103
103
  ${this.rubriqueId}|${this.rubriquageId}|${this.before}|${this.after}|${this.includeHidden}|${this.noRubriquageId}|${this.notValid}`;
104
104
  },
105
- organisation(): string|undefined {
106
- return this.organisationId ?this.organisationId: this.filterOrgaId;
105
+ organisation(): Array<string> {
106
+ if(this.organisationId){
107
+ return this.organisationId;
108
+ }
109
+ return this.filterOrgaId ? [this.filterOrgaId] : [];
107
110
  },
108
111
  sort(): string {
109
112
  return this.popularSort? "POPULARITY" : this.sortCriteria??'DATE';
@@ -54,7 +54,7 @@ export default defineComponent({
54
54
  },
55
55
 
56
56
  props: {
57
- organisationId: { default: undefined, type: String},
57
+ organisationId: { default: () => [], type: Array as ()=> Array<string>},
58
58
  emissionId: { default: undefined, type: Number},
59
59
  iabId: { default: undefined, type: Number},
60
60
  title: { default: '', type: String},
@@ -79,8 +79,11 @@ export default defineComponent({
79
79
  },
80
80
  computed: {
81
81
  ...mapState(useFilterStore, ['filterOrgaId']),
82
- organisation(): string|undefined {
83
- return this.organisationId ?this.organisationId: this.filterOrgaId;
82
+ organisation(): Array<string> {
83
+ if(this.organisationId){
84
+ return this.organisationId;
85
+ }
86
+ return this.filterOrgaId ? [this.filterOrgaId] : [];
84
87
  },
85
88
  watchVariable():string{
86
89
  return `${this.emissionId}|${this.organisationId}|${this.filterOrgaId}|${this.iabId}|${this.rubriqueId}|${this.rubriquageId}|${this.query}`;
@@ -48,7 +48,7 @@ export default defineComponent({
48
48
  border: 2px solid #dee2e6;
49
49
  border-radius: $octopus-borderradius;
50
50
  margin: 0 !important;
51
- height: 44px;
51
+ height: 48px;
52
52
  }
53
53
  .saooti-search,
54
54
  .saooti-remove {
@@ -49,14 +49,43 @@
49
49
  :class="{ 'is-active': editor.isActive('link') }"
50
50
  @click="setLink"
51
51
  >
52
- <svg viewBox="0 0 24 24" fill="none">
53
- <path transform="translate(2, 2)scale(0.8)" d="M7.7574 10.5858L4.92897 13.4142C3.7574 14.5858 3.7574 16.4853 4.92897 17.6569L6.34319 19.0711C7.51476 20.2427 9.41425 20.2427 10.5858 19.0711L13.4143 16.2427M9.87873 14.1214L14.1214 9.87873M10.5858 7.7574L13.4142 4.92897C14.5858 3.7574 16.4853 3.7574 17.6569 4.92897L19.0711 6.34319C20.2427 7.51476 20.2427 9.41425 19.0711 10.5858L16.2427 13.4143" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
52
+ <svg
53
+ viewBox="0 0 24 24"
54
+ fill="none"
55
+ >
56
+ <path
57
+ transform="translate(2, 2)scale(0.8)"
58
+ d="M7.7574 10.5858L4.92897 13.4142C3.7574 14.5858 3.7574 16.4853 4.92897 17.6569L6.34319 19.0711C7.51476 20.2427 9.41425 20.2427 10.5858 19.0711L13.4143 16.2427M9.87873 14.1214L14.1214 9.87873M10.5858 7.7574L13.4142 4.92897C14.5858 3.7574 16.4853 3.7574 17.6569 4.92897L19.0711 6.34319C20.2427 7.51476 20.2427 9.41425 19.0711 10.5858L16.2427 13.4143"
59
+ stroke="#000000"
60
+ stroke-width="2"
61
+ stroke-linecap="round"
62
+ stroke-linejoin="round"
63
+ />
54
64
  </svg>
55
65
  </button>
56
- <button @click="editor.chain().focus().unsetLink().run()" :disabled="!editor.isActive('link')">
57
- <svg viewBox="0 0 24 24" fill="none">
58
- <path transform="translate(2, 2)scale(0.8)" d="M7.05029 11.2929L4.92897 13.4142C3.7574 14.5858 3.7574 16.4853 4.92897 17.6568L6.34319 19.0711C7.51476 20.2426 9.41425 20.2426 10.5858 19.0711L12.7071 16.9497M5.00004 5L19 19" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
59
- <path transform="translate(2, 2)scale(0.8)" fill-rule="evenodd" clip-rule="evenodd" d="M11.8358 10.75L9.17156 13.4142C8.78103 13.8048 8.78103 14.4379 9.17156 14.8284C9.56208 15.219 10.1952 15.219 10.5858 14.8284L13.25 12.1642L11.8358 10.75ZM17.4926 13.5785L16.0784 12.1643L16.2426 12L17.6568 10.5858L18.3639 9.87872C19.145 9.09767 19.145 7.83134 18.3639 7.05029L16.9497 5.63608C16.1687 4.85503 14.9024 4.85503 14.1213 5.63608L13.4142 6.34319L12 7.7574L11.8358 7.92161L10.4216 6.5074L10.5858 6.34319L12 4.92897L12.7071 4.22187C14.2692 2.65977 16.8019 2.65977 18.3639 4.22187L19.7782 5.63608C21.3403 7.19818 21.3403 9.73084 19.7782 11.2929L19.0711 12L17.6568 13.4143L17.4926 13.5785ZM13.25 9.33581L13.4142 9.1716C13.8047 8.78107 14.4379 8.78107 14.8284 9.1716C15.2189 9.56212 15.2189 10.1953 14.8284 10.5858L14.6642 10.75L13.25 9.33581Z" fill="#000000"/>
66
+ <button
67
+ :disabled="!editor.isActive('link')"
68
+ @click="editor.chain().focus().unsetLink().run()"
69
+ >
70
+ <svg
71
+ viewBox="0 0 24 24"
72
+ fill="none"
73
+ >
74
+ <path
75
+ transform="translate(2, 2)scale(0.8)"
76
+ d="M7.05029 11.2929L4.92897 13.4142C3.7574 14.5858 3.7574 16.4853 4.92897 17.6568L6.34319 19.0711C7.51476 20.2426 9.41425 20.2426 10.5858 19.0711L12.7071 16.9497M5.00004 5L19 19"
77
+ stroke="#000000"
78
+ stroke-width="2"
79
+ stroke-linecap="round"
80
+ stroke-linejoin="round"
81
+ />
82
+ <path
83
+ transform="translate(2, 2)scale(0.8)"
84
+ fill-rule="evenodd"
85
+ clip-rule="evenodd"
86
+ d="M11.8358 10.75L9.17156 13.4142C8.78103 13.8048 8.78103 14.4379 9.17156 14.8284C9.56208 15.219 10.1952 15.219 10.5858 14.8284L13.25 12.1642L11.8358 10.75ZM17.4926 13.5785L16.0784 12.1643L16.2426 12L17.6568 10.5858L18.3639 9.87872C19.145 9.09767 19.145 7.83134 18.3639 7.05029L16.9497 5.63608C16.1687 4.85503 14.9024 4.85503 14.1213 5.63608L13.4142 6.34319L12 7.7574L11.8358 7.92161L10.4216 6.5074L10.5858 6.34319L12 4.92897L12.7071 4.22187C14.2692 2.65977 16.8019 2.65977 18.3639 4.22187L19.7782 5.63608C21.3403 7.19818 21.3403 9.73084 19.7782 11.2929L19.0711 12L17.6568 13.4143L17.4926 13.5785ZM13.25 9.33581L13.4142 9.1716C13.8047 8.78107 14.4379 8.78107 14.8284 9.1716C15.2189 9.56212 15.2189 10.1953 14.8284 10.5858L14.6642 10.75L13.25 9.33581Z"
87
+ fill="#000000"
88
+ />
60
89
  </svg>
61
90
  </button>
62
91
  <button
@@ -46,7 +46,9 @@ export const playerLive = defineComponent({
46
46
  }, 1000);
47
47
  return;
48
48
  }
49
- if (this.audioElement.canPlayType('application/vnd.apple.mpegurl')) {
49
+ const ua = navigator.userAgent.toLowerCase();
50
+ const isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
51
+ if (this.audioElement.canPlayType('application/vnd.apple.mpegurl') && !isAndroid) {
50
52
  this.audioElement.src = hlsStreamUrl;
51
53
  await this.initLiveDownloadId();
52
54
  await this.audioElement.play();
@@ -5,7 +5,7 @@
5
5
  :first="0"
6
6
  :size="30"
7
7
  :iab-id="iabId"
8
- :organisation-id="filterOrgaId"
8
+ :organisation-id="orgaArray"
9
9
  />
10
10
  </div>
11
11
  </template>
@@ -28,6 +28,9 @@ export default defineComponent({
28
28
  computed: {
29
29
  ...mapState(useGeneralStore, ['storedCategories']),
30
30
  ...mapState(useFilterStore, ['filterOrgaId']),
31
+ orgaArray(): Array<string>{
32
+ return this.filterOrgaId ? [this.filterOrgaId] : [];
33
+ },
31
34
  title():string{
32
35
  const matchCategories = this.storedCategories.filter((c: Category) => c.id === this.iabId);
33
36
  if (1 !== matchCategories.length) return "";
@@ -68,7 +68,7 @@
68
68
  :emission-id="emissionId"
69
69
  :category-filter="false"
70
70
  :edit-right="editRight"
71
- :productor-id="emission.orga.id"
71
+ :productor-id="[emission.orga.id]"
72
72
  />
73
73
  </template>
74
74
  </div>
@@ -24,7 +24,7 @@
24
24
  :show-count="true"
25
25
  :first="0"
26
26
  :size="30"
27
- :organisation-id="organisationId"
27
+ :organisation-id="orgaArray"
28
28
  :query="searchPattern"
29
29
  :monetization="monetization"
30
30
  :before="toDate"
@@ -88,6 +88,9 @@ export default defineComponent({
88
88
  return (true===this.authenticated && this.myOrganisationId === this.organisationId) ||
89
89
  true===state.generalParameters.isAdmin;
90
90
  },
91
+ orgaArray(): Array<string>{
92
+ return this.organisationId ? [this.organisationId] : [];
93
+ },
91
94
  organisation(): string|undefined {
92
95
  return this.organisationId ?this.organisationId: this.filterOrgaId;
93
96
  },