@saooti/octopus-sdk 0.28.14 → 0.28.15

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/README.md CHANGED
@@ -465,6 +465,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
465
465
  * 0.28.12 Rubriquage
466
466
  * 0.28.13 Enlever les mises à jour
467
467
  * 0.28.14 QrCode
468
+ * 0.28.15 Theme player beta
468
469
 
469
470
 
470
471
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "0.28.14",
3
+ "version": "0.28.15",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -94,12 +94,12 @@
94
94
  ></swatches>
95
95
  </div>
96
96
  <swatches
97
- v-model="theme"
97
+ v-model="themeBeta"
98
98
  class="c-hand input-no-outline"
99
99
  show-fallback
100
100
  colors="text-advanced"
101
101
  popover-to="right"
102
- :data-color="theme"
102
+ :data-color="themeBeta"
103
103
  v-else
104
104
  ></swatches>
105
105
  </div>
@@ -223,6 +223,7 @@ export default Vue.extend({
223
223
  isShareModal: false as boolean,
224
224
  color: '#40a372' as string,
225
225
  theme: '#000000' as string,
226
+ themeBeta: '#000000' as string,
226
227
  proceedReading: true as boolean,
227
228
  episodeNumbers: 'number' as string,
228
229
  iFrameNumber: '3' as string,
@@ -347,11 +348,12 @@ export default Vue.extend({
347
348
  }
348
349
  }
349
350
  url.push('?distributorId=' + this.organisationId);
351
+ const theme = this.isBeta ? this.themeBeta : this.theme;
350
352
  url.push(
351
353
  '&color=' +
352
354
  this.color.substring(1) +
353
355
  '&theme=' +
354
- this.theme.substring(1)
356
+ theme.substring(1)
355
357
  );
356
358
  if (!this.proceedReading) {
357
359
  url.push('&proceed=false');
@@ -473,6 +475,9 @@ export default Vue.extend({
473
475
  this.theme = '#ffffff';
474
476
  }
475
477
  if (data.hasOwnProperty('playerBeta')) {
478
+ if (data.hasOwnProperty('THEMEBETA')) {
479
+ this.themeBeta = data.THEMEBETA;
480
+ }
476
481
  this.displayBetaChoice = data.playerBeta;
477
482
  let dataFetched = await octopusApi.fetchCustomPlayer('customPlayer/organisation/'+ this.organisationId!);
478
483
  this.customPlayers = dataFetched.content;