@saooti/octopus-sdk 36.0.52 → 36.0.54

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.52",
3
+ "version": "36.0.54",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="module-box" v-if="!isLoading && !noSharing">
2
+ <div class="module-box" v-if="!isLoading && (authenticated || !noSharing)">
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 class="d-flex flex-column me-2" v-if="!isGarStudent">
3
+ <div class="d-flex flex-column me-2" v-if="!isGarStudent && !noSharing">
4
4
  <div class="h4 mb-2">
5
5
  {{ $t('Social networks') }}
6
6
  </div>
@@ -142,6 +142,7 @@ export default defineComponent({
142
142
  mixins: [displayMethods],
143
143
 
144
144
  props: {
145
+ noSharing: { default: false, type: Boolean},
145
146
  podcast: { default: undefined, type: Object as ()=> Podcast},
146
147
  emission: { default: undefined, type: Object as ()=> Emission},
147
148
  playlist: { default: undefined, type: Object as ()=>Playlist},
@@ -265,13 +265,15 @@ export default defineComponent({
265
265
  ];
266
266
  html.push(
267
267
  `</table>
268
- <div style="font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;background: #f3f3f3;vertical-align: middle;padding: 15px 10px;display: flex; align-items:center; flex-wrap:wrap">
269
- <a href="${this.shareUrl}">
270
- <img width="44" height="44" style="display: inline-block;vertical-align: middle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAAxElEQVRIie3WMWpCURBG4Q8FSRrtbC2SPhvICmzchVuwtXQLbsE2pVUIkjqQHVgqNmIj6EvxGHhFQAIvcxt/OPVhhrlzh3sKZ4MvTLLFVYNPvJYQB294LiGucMYSw2xxcMQcj9niYIsputni4BvjEuJgjZcS4goXrDDKFgcnLDDIFgd7zNDLFgfvTUHnL23ISJuV7iS3Ooarn1VxkeeUvkDSV2b6J3FQT+pDW8Jb4vRD4Kqe1Kf/Ev4mTj32PhQ6b+9pPT+XHgysHrPM6QAAAABJRU5ErkJggg=="/>
271
- </a>
272
- <a style="color: #000;text-decoration: none; margin-right:8px" href="${this.shareUrl}">${this.shareText}</a>
268
+ <table width='100%' style="width:100%;background:#f3f3f3;font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;">
269
+ <tr style="font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;background: #f3f3f3;vertical-align: middle;padding: 15px 10px;display: flex; align-items:center; flex-wrap:wrap">
270
+ <td><a href="${this.shareUrl}">
271
+ <svg fill="#000000" height="30px" width="30px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 17.804 17.804" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <g id="c98_play"> <path d="M2.067,0.043C2.21-0.028,2.372-0.008,2.493,0.085l13.312,8.503c0.094,0.078,0.154,0.191,0.154,0.313 c0,0.12-0.061,0.237-0.154,0.314L2.492,17.717c-0.07,0.057-0.162,0.087-0.25,0.087l-0.176-0.04 c-0.136-0.065-0.222-0.207-0.222-0.361V0.402C1.844,0.25,1.93,0.107,2.067,0.043z"></path> </g> <g id="Capa_1_78_"> </g> </g> </g></svg>
272
+ </a></td>
273
+ <td style="margin-left:10px"><a style="color: #000;text-decoration: none; margin-right:8px" href="${this.shareUrl}">${this.shareText}</a></td>
273
274
  ${this.articleHtml}
274
- </div>${this.participantsName}`
275
+ </tr>
276
+ </table>${this.participantsName}`
275
277
  );
276
278
  return html.join('');
277
279
  },