@bagelink/blox 1.15.164 → 1.15.166

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CmsPageView.vue.d.ts","sourceRoot":"","sources":["../src/CmsPageView.vue"],"names":[],"mappings":";AAubA,wBAMG"}
1
+ {"version":3,"file":"CmsPageView.vue.d.ts","sourceRoot":"","sources":["../src/CmsPageView.vue"],"names":[],"mappings":";AA0bA,wBAMG"}
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-hnJ-Wljq.cjs");
3
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-E1fz5U0S.cjs");
4
4
  exports.default = PreviewApp_vue_vue_type_style_index_0_lang._sfc_main;
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-Bi812qOg.js";
1
+ import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-jOqBFtyW.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
- const core = require("./core-kcqrnwf4.cjs");
3
+ const core = require("./core-z-MGlvcM.cjs");
4
4
  function sendToEditor(msg) {
5
5
  window.parent.postMessage(msg, "*");
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, ref, h, provide, onMounted, onUnmounted, openBlock, createElementBlock, createVNode, unref, nextTick } from "vue";
2
- import { B as BLOX_REGISTRY_KEY, g as globalRefOf, G as GlobalBlockHost, u as useLocale } from "./core-gh9n4Dh5.js";
2
+ import { B as BLOX_REGISTRY_KEY, g as globalRefOf, G as GlobalBlockHost, u as useLocale } from "./core-CcRbfY3w.js";
3
3
  function sendToEditor(msg) {
4
4
  window.parent.postMessage(msg, "*");
5
5
  }
@@ -269,7 +269,7 @@ const PageRenderer = defineComponent({
269
269
  const ref2 = globalRefOf(block);
270
270
  if (ref2) {
271
271
  return [h(GlobalBlockHost, {
272
- key: i,
272
+ key: `${block.type}-${i}`,
273
273
  component: definition.component,
274
274
  defaults: definition.schema.defaults,
275
275
  blockProps: block.props,
@@ -278,7 +278,7 @@ const PageRenderer = defineComponent({
278
278
  })];
279
279
  }
280
280
  const merged = { ...definition.schema.defaults, ...block.props };
281
- return [h(definition.component, { key: i, ...merged })];
281
+ return [h(definition.component, { key: `${block.type}-${i}`, ...merged })];
282
282
  })
283
283
  );
284
284
  }
@@ -407,7 +407,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
407
407
  })
408
408
  ])) : error.value ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(error.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
409
409
  navigating.value ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true),
410
- createVNode(unref(PageRenderer), { blocks: blocks.value }, null, 8, ["blocks"])
410
+ (openBlock(), createBlock(unref(PageRenderer), {
411
+ key: unref(route).path,
412
+ blocks: blocks.value
413
+ }, null, 8, ["blocks"]))
411
414
  ], 64)),
412
415
  unref(adminConfig) ? (openBlock(), createBlock(_sfc_main$2, {
413
416
  key: 4,
@@ -613,7 +616,7 @@ class BloxInstance {
613
616
  }
614
617
  router.addRoute({
615
618
  path: "/_blox_preview",
616
- component: () => import("./PreviewApp-BFlmJyS_.js"),
619
+ component: () => import("./PreviewApp-D4KSHYFg.js"),
617
620
  beforeEnter: () => window.parent !== window ? true : "/"
618
621
  });
619
622
  router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$1 });
@@ -270,7 +270,7 @@ const PageRenderer = vue.defineComponent({
270
270
  const ref = globalRefOf(block);
271
271
  if (ref) {
272
272
  return [vue.h(GlobalBlockHost, {
273
- key: i,
273
+ key: `${block.type}-${i}`,
274
274
  component: definition.component,
275
275
  defaults: definition.schema.defaults,
276
276
  blockProps: block.props,
@@ -279,7 +279,7 @@ const PageRenderer = vue.defineComponent({
279
279
  })];
280
280
  }
281
281
  const merged = { ...definition.schema.defaults, ...block.props };
282
- return [vue.h(definition.component, { key: i, ...merged })];
282
+ return [vue.h(definition.component, { key: `${block.type}-${i}`, ...merged })];
283
283
  })
284
284
  );
285
285
  }
@@ -408,7 +408,10 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
408
408
  })
409
409
  ])) : error.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, vue.toDisplayString(error.value), 1)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
410
410
  navigating.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4)) : vue.createCommentVNode("", true),
411
- vue.createVNode(vue.unref(PageRenderer), { blocks: blocks.value }, null, 8, ["blocks"])
411
+ (vue.openBlock(), vue.createBlock(vue.unref(PageRenderer), {
412
+ key: vue.unref(route).path,
413
+ blocks: blocks.value
414
+ }, null, 8, ["blocks"]))
412
415
  ], 64)),
413
416
  vue.unref(adminConfig) ? (vue.openBlock(), vue.createBlock(_sfc_main$2, {
414
417
  key: 4,
@@ -614,7 +617,7 @@ class BloxInstance {
614
617
  }
615
618
  router.addRoute({
616
619
  path: "/_blox_preview",
617
- component: () => Promise.resolve().then(() => require("./PreviewApp-F96n6nDi.cjs")),
620
+ component: () => Promise.resolve().then(() => require("./PreviewApp-BzkbTbJn.cjs")),
618
621
  beforeEnter: () => window.parent !== window ? true : "/"
619
622
  });
620
623
  router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$1 });
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const core = require("./core-kcqrnwf4.cjs");
4
- const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-hnJ-Wljq.cjs");
3
+ const core = require("./core-z-MGlvcM.cjs");
4
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-E1fz5U0S.cjs");
5
5
  const vue = require("vue");
6
6
  const vueRouter = require("vue-router");
7
7
  const pinia = require("pinia");
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { a as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, c as createBlox } from "./core-gh9n4Dh5.js";
2
- import { _, b, d, e, f, h, i, G, P, j, k, l, g, m, r, n } from "./core-gh9n4Dh5.js";
3
- import { _ as _2, P as P2, s, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-Bi812qOg.js";
1
+ import { a as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, c as createBlox } from "./core-CcRbfY3w.js";
2
+ import { _, b, d, e, f, h, i, G, P, j, k, l, g, m, r, n } from "./core-CcRbfY3w.js";
3
+ import { _ as _2, P as P2, s, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-jOqBFtyW.js";
4
4
  import { ref, onMounted, onUnmounted, inject, computed, createApp, markRaw } from "vue";
5
5
  import { useRouter } from "vue-router";
6
6
  import { createPinia } from "pinia";
@@ -26,7 +26,7 @@ const prerender = require("../prerender-BLECK5o5.cjs");
26
26
  const ssg_client = require("./client.cjs");
27
27
  const pinia = require("pinia");
28
28
  const vue = require("vue");
29
- const core = require("../core-kcqrnwf4.cjs");
29
+ const core = require("../core-z-MGlvcM.cjs");
30
30
  async function renderBloxSsgPage(options) {
31
31
  const {
32
32
  url,
@@ -4,7 +4,7 @@ import { BLOX_STATE_WINDOW_KEY, BLOX_COLLECTIONS_WINDOW_KEY, BLOX_WEBSITE_ID_WIN
4
4
  import { getCollectionCache, getEmbeddedWebsiteId, installBloxStateCache, installCollectionCache } from "./client.mjs";
5
5
  import { createPinia } from "pinia";
6
6
  import { createSSRApp, markRaw } from "vue";
7
- import { c as createBlox } from "../core-gh9n4Dh5.js";
7
+ import { c as createBlox } from "../core-CcRbfY3w.js";
8
8
  async function renderBloxSsgPage(options) {
9
9
  const {
10
10
  url,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/blox",
3
3
  "type": "module",
4
- "version": "1.15.164",
4
+ "version": "1.15.166",
5
5
  "description": "Blox page builder library for drag-and-drop page building and static data management",
6
6
  "author": {
7
7
  "name": "Bagel Studio",