@saooti/octopus-sdk 39.0.7 → 39.0.9

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/index.ts CHANGED
@@ -86,6 +86,9 @@ import initSDK from "./src/components/mixins/init.ts";
86
86
  import tagOfMixins from "./src/components/mixins/tagOfMixins.ts";
87
87
  import resizePhone from "./src/components/mixins/resizePhone.ts";
88
88
 
89
+
90
+ import topBar from "./src/components/misc/TopBar.vue";
91
+
89
92
  export {
90
93
  selenium,
91
94
  cookies,
@@ -94,5 +97,6 @@ export {
94
97
  orgaFilter,
95
98
  initSDK,
96
99
  tagOfMixins,
97
- resizePhone
100
+ resizePhone,
101
+ topBar
98
102
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "39.0.7",
3
+ "version": "39.0.9",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -180,8 +180,8 @@ body{
180
180
  margin: auto;
181
181
  float: inherit !important;
182
182
  display: flex;
183
- width: $octopus-mobile-item-size;
184
- height: $octopus-mobile-item-size;
183
+ width: $octopus-mobile-item-size !important;
184
+ height: $octopus-mobile-item-size !important;
185
185
  }
186
186
  }
187
187
  .img-box-podcast{
@@ -142,7 +142,7 @@ export default defineComponent({
142
142
  return;
143
143
  }
144
144
  event.preventDefault();
145
- const rubriqueChosenId = this.rubriqueId[this.rubriqueId.length - 1];
145
+ const rubriqueChosenId = this.rubriqueId.at(-1);
146
146
  let filterToAdd: RubriquageFilter = {
147
147
  rubriquageId: 0,
148
148
  rubriqueId: rubriqueChosenId,
@@ -234,7 +234,11 @@ export default defineComponent({
234
234
  },
235
235
  updateHtml(): void {
236
236
  if (this.editor) {
237
- this.html = this.editor.getHTML();
237
+ this.html = this.editor.getHTML().trim();
238
+ if(this.html.startsWith("<p>") && this.html.endsWith("</p>")&& 1===(this.html.match(/<p>/g) || []).length){
239
+ this.html = this.html.substring(3, this.html.length - 4);
240
+ }
241
+ this.html = this.html.replaceAll("&nbsp;", " ");
238
242
  this.$emit("update:content", this.html);
239
243
  }
240
244
  },
@@ -278,6 +282,7 @@ export default defineComponent({
278
282
  white-space: pre-wrap;
279
283
  width: 0;
280
284
  flex-grow: 1;
285
+ overflow: auto;
281
286
  }
282
287
  .editor-menubar {
283
288
  display: flex;