@saooti/octopus-sdk 36.0.20 → 36.0.22

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.20",
3
+ "version": "36.0.22",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -3,13 +3,13 @@
3
3
  -webkit-box-sizing: border-box;
4
4
  box-sizing: border-box;
5
5
  }
6
+ input:not([class^="vs__"]), button:not([class^="vs__"]), select:not([class^="vs__"]), optgroup, textarea {
7
+ margin: 0;
8
+ font-family: inherit;
9
+ font-size: inherit;
10
+ line-height: inherit;
11
+ }
6
12
  .octopus-app{
7
- input:not([class^="vs__"]), button:not([class^="vs__"]), select:not([class^="vs__"]), optgroup, textarea {
8
- margin: 0;
9
- font-family: inherit;
10
- font-size: inherit;
11
- line-height: inherit;
12
- }
13
13
  button {
14
14
  cursor: pointer;
15
15
  }
@@ -22,7 +22,7 @@
22
22
  }
23
23
  margin-top: 0;
24
24
  margin-bottom:0;
25
- font-weight: 400;
25
+ font-weight: 600;
26
26
  line-height: 1.2;
27
27
  }
28
28
  h1,.h1{
@@ -69,7 +69,7 @@
69
69
  }
70
70
  .btn{
71
71
  display: inline-block;
72
- padding: 0.375rem 0.75rem;
72
+ padding: 0.5rem;
73
73
  line-height: 1.5;
74
74
  color: #212529;
75
75
  text-align: center;
@@ -99,7 +99,7 @@
99
99
  &.btn-underline{
100
100
  background: none;
101
101
  padding: 0;
102
- margin: 0 2rem 1rem 0;
102
+ margin: 0.5rem 2rem 1rem 0;
103
103
  border-radius: 0;
104
104
  font-size: 0.9rem;
105
105
  @media (max-width: 600px) {
@@ -184,6 +184,7 @@ export default defineComponent({
184
184
  display: flex;
185
185
  min-height: 15rem;
186
186
  background-size: cover;
187
+ background-position: center;
187
188
  h1{
188
189
  margin: 2rem 1rem auto;
189
190
  font-size: 2rem;
@@ -158,6 +158,7 @@ export default defineComponent({
158
158
  .participant-producer {
159
159
  font-weight: 300;
160
160
  font-size: 0.6rem;
161
+ margin-top: 0.5rem;
161
162
  }
162
163
  @media (max-width: 960px) {
163
164
  margin: 0;
@@ -222,7 +222,7 @@ export default defineComponent({
222
222
  select{
223
223
  width: auto;
224
224
  border-radius: $octopus-borderradius;
225
- margin: 0.2rem;
225
+ margin: 0.25rem;
226
226
  font-size: 0.6rem;
227
227
  padding: 0.5rem;
228
228
  }
@@ -117,7 +117,6 @@ export default defineComponent({
117
117
  },
118
118
  routerBackoffice(){
119
119
  return [
120
- {title:this.$t('My space'),class:"show-phone octopus-dropdown-item", path:'/main/priv/backoffice', condition: true},
121
120
  {title:this.$t('Edit my profile'),class:"octopus-dropdown-item", path:'/main/priv/edit/profile', condition: true},
122
121
  {title:this.$t('Edit my organisation'),class:"octopus-dropdown-item", path:'/main/priv/edit/organisation', condition: (state.generalParameters.isOrganisation as boolean) || 1<this.organisationsAvailable.length}];
123
122
  },
@@ -6,6 +6,7 @@ import { playerComment } from './playerComment';
6
6
  import { playerTranscript } from './playerTranscript';
7
7
  import { defineComponent } from 'vue';
8
8
  import { useAuthStore } from '@/stores/AuthStore';
9
+ import { useGeneralStore } from '@/stores/GeneralStore';
9
10
  import { usePlayerStore } from '@/stores/PlayerStore';
10
11
  import { mapState, mapActions } from 'pinia';
11
12
  export const playerLogic = defineComponent({
@@ -30,6 +31,7 @@ export const playerLogic = defineComponent({
30
31
  },
31
32
  computed: {
32
33
  ...mapState(useAuthStore, ['authOrgaId', 'authParam']),
34
+ ...mapState(useGeneralStore, ['consentTcf']),
33
35
  ...mapState(usePlayerStore, [
34
36
  'playerPodcast',
35
37
  'playerMedia',
@@ -146,6 +148,10 @@ export const playerLogic = defineComponent({
146
148
  'distributorId=' + this.authOrgaId
147
149
  );
148
150
  }
151
+ if(this.consentTcf){
152
+ parameters.push('consent='+this.consentTcf);
153
+ }
154
+
149
155
  if("SECURED" === this.playerPodcast.organisation.privacy && this.authParam.accessToken){
150
156
  parameters.push('access_token='+this.authParam.accessToken);
151
157
  }
package/src/main.ts CHANGED
@@ -51,11 +51,10 @@ paramStore.initialize({
51
51
  });
52
52
 
53
53
  const pinia = createPinia();
54
-
54
+ const app = createApp(App);
55
55
  // Initialisation store
56
- createApp(App)
57
- .use(i18n)
56
+ app.use(i18n)
58
57
  .use(pinia)
59
58
  .use(router)
60
- .use(VueLazyLoad)
61
- .mount('#app');
59
+ .use(VueLazyLoad);
60
+ app.mount('#app');
@@ -8,6 +8,7 @@ interface GeneralState{
8
8
  storedCategories: Array<Category>;
9
9
  storedCategoriesOrga: Array<Category>;
10
10
  isBeforeLive: boolean;
11
+ consentTcf: string|null;
11
12
  }
12
13
  export const useGeneralStore = defineStore('GeneralStore', {
13
14
  state: (): GeneralState => ({
@@ -17,6 +18,7 @@ export const useGeneralStore = defineStore('GeneralStore', {
17
18
  storedCategories: [],
18
19
  storedCategoriesOrga: [],
19
20
  isBeforeLive: true,
21
+ consentTcf: null,
20
22
  }),
21
23
  actions:{
22
24
  storedUpdateCategories(categories: Array<Category>) {
@@ -28,6 +30,9 @@ export const useGeneralStore = defineStore('GeneralStore', {
28
30
  isBeforeLiveUpdate(isBeforeLive: boolean) {
29
31
  this.isBeforeLive = isBeforeLive;
30
32
  },
33
+ consentTcfUpdate(consentTcf: string|null) {
34
+ this.consentTcf = consentTcf;
35
+ },
31
36
  platformUpdateEducation(isEducation: boolean) {
32
37
  this.platformEducation = isEducation;
33
38
  if(isEducation){