@myissue/vue-website-page-builder 3.2.70 → 3.2.72

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": "v3.2.70",
3
+ "version": "v3.2.72",
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",
@@ -98,6 +98,7 @@ onMounted(async () => {
98
98
  JSON.stringify(localStorage.getItem(getLocalStorageItemName.value)),
99
99
  )
100
100
  } else {
101
+ console.log('den eer:', JSON.stringify(html))
101
102
  pageBuilderClass.loadExistingContent(JSON.stringify(html), true)
102
103
  }
103
104
  }
@@ -1134,27 +1134,8 @@ class PageBuilderClass {
1134
1134
  })
1135
1135
  })
1136
1136
 
1137
- if (
1138
- this.pageBuilderStateStore.getConfigPageBuilder &&
1139
- this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate &&
1140
- typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType === 'string' &&
1141
- this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType === 'update'
1142
- ) {
1143
- const item = {
1144
- components: componentsToSave,
1145
- savedAt: new Date().toISOString(),
1146
- }
1147
- localStorage.setItem(this.getLocalStorageItemName.value, JSON.stringify(item))
1148
-
1149
- return
1150
- }
1151
-
1152
1137
  if (this.getLocalStorageItemName.value) {
1153
- const item = {
1154
- components: componentsToSave,
1155
- savedAt: new Date().toISOString(),
1156
- }
1157
- localStorage.setItem(this.getLocalStorageItemName.value, JSON.stringify(item))
1138
+ localStorage.setItem(this.getLocalStorageItemName.value, JSON.stringify(componentsToSave))
1158
1139
  }
1159
1140
 
1160
1141
  // No DOM mutation here!