@dcodegroup-au/page-builder 0.6.8 → 0.6.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.
@@ -45281,6 +45281,7 @@ const _sfc_main$C = {
45281
45281
  };
45282
45282
  const deleteCallback = (index) => {
45283
45283
  var _a;
45284
+ componentData.value.data[index] = {};
45284
45285
  (_a = componentData.value.data) == null ? void 0 : _a.splice(index, 1);
45285
45286
  emit("update", false);
45286
45287
  };
@@ -45346,7 +45347,7 @@ const _sfc_main$C = {
45346
45347
  var _a2, _b, _c;
45347
45348
  return openBlock(), createElementBlock("div", {
45348
45349
  class: "flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",
45349
- key: index,
45350
+ key: `${index}-${Date.now() + Math.random()}`,
45350
45351
  ref_for: true,
45351
45352
  ref: index === componentData.value.data.length - 1 ? (el) => lastItemRef.value = el : null
45352
45353
  }, [
@@ -45284,6 +45284,7 @@ ${escapeText(this.code(index, length))}
45284
45284
  };
45285
45285
  const deleteCallback = (index) => {
45286
45286
  var _a;
45287
+ componentData.value.data[index] = {};
45287
45288
  (_a = componentData.value.data) == null ? void 0 : _a.splice(index, 1);
45288
45289
  emit("update", false);
45289
45290
  };
@@ -45349,7 +45350,7 @@ ${escapeText(this.code(index, length))}
45349
45350
  var _a2, _b, _c;
45350
45351
  return vue.openBlock(), vue.createElementBlock("div", {
45351
45352
  class: "flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",
45352
- key: index,
45353
+ key: `${index}-${Date.now() + Math.random()}`,
45353
45354
  ref_for: true,
45354
45355
  ref: index === componentData.value.data.length - 1 ? (el) => lastItemRef.value = el : null
45355
45356
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -44,7 +44,7 @@
44
44
  <div
45
45
  v-for="(item, index) in componentData.data"
46
46
  class="flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200"
47
- :key="index"
47
+ :key="`${index}-${Date.now() + Math.random()}`"
48
48
  :ref="index === componentData.data.length - 1 ? (el) => (lastItemRef = el) : null"
49
49
  >
50
50
  <div class="flex items-center justify-between">
@@ -186,6 +186,7 @@ const handleDeleteItem = (index) => {
186
186
  }
187
187
 
188
188
  const deleteCallback = (index) => {
189
+ componentData.value.data[index] = {};
189
190
  componentData.value.data?.splice(index, 1);
190
191
  emit("update", false);
191
192
  };