@myissue/vue-website-page-builder 3.3.89 → 3.3.90

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": "@myissue/vue-website-page-builder",
3
- "version": "3.3.89",
3
+ "version": "3.3.90",
4
4
  "description": "Vue 3 page builder component with drag & drop functionality.",
5
5
  "type": "module",
6
6
  "main": "./dist/vue-website-page-builder.umd.cjs",
@@ -62,7 +62,9 @@ const closePageBuilder = function () {
62
62
  emit('handleClosePageBuilder')
63
63
  }
64
64
  const closePublish = async function () {
65
+ pageBuilderStateStore.setIsLoadingGlobal(true)
65
66
  await pageBuilderService.handleManualSave()
67
+ pageBuilderStateStore.setIsLoadingGlobal(false)
66
68
  emit('handlePublishPageBuilder')
67
69
  }
68
70
 
@@ -733,7 +735,6 @@ onMounted(async () => {
733
735
  @click="
734
736
  async () => {
735
737
  closePublish()
736
- await pageBuilderService.clearHtmlSelection()
737
738
  }
738
739
  "
739
740
  >
@@ -893,13 +893,12 @@ export class PageBuilderService {
893
893
  }
894
894
 
895
895
  public handleManualSave = async () => {
896
- this.startEditing()
897
896
  this.pageBuilderStateStore.setIsSaving(true)
898
- this.pageBuilderStateStore.setIsLoadingGlobal(true)
897
+ this.clearHtmlSelection()
898
+ this.startEditing()
899
899
  this.saveDomComponentsToLocalStorage()
900
900
  await delay(300)
901
901
  this.pageBuilderStateStore.setIsSaving(false)
902
- this.pageBuilderStateStore.setIsLoadingGlobal(false)
903
902
  }
904
903
 
905
904
  public cloneCompObjForDOMInsertion(componentObject: ComponentObject): ComponentObject {