@bagelink/blox 1.12.74 → 1.12.78

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,4 +1,4 @@
1
- import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-B9iqsIKI.js";
1
+ import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-DnbVyH_z.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -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-Bp39MENi.cjs");
3
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-Bl94C9pL.cjs");
4
4
  exports.default = PreviewApp_vue_vue_type_style_index_0_lang._sfc_main;
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewApp.vue.d.ts","sourceRoot":"","sources":["../src/PreviewApp.vue"],"names":[],"mappings":";AAyNA,wBAMG"}
1
+ {"version":3,"file":"PreviewApp.vue.d.ts","sourceRoot":"","sources":["../src/PreviewApp.vue"],"names":[],"mappings":";AA+NA,wBAMG"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
- const core = require("./core-D60gEgpD.cjs");
3
+ const core = require("./core-C7YdybrT.cjs");
4
4
  function sendToEditor(msg) {
5
5
  window.parent.postMessage(msg, "*");
6
6
  }
@@ -150,6 +150,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
150
150
  case "BLOX_HOVER_BLOCK":
151
151
  hoveredIndex.value = msg.index;
152
152
  break;
153
+ case "BLOX_SCROLL_TOP":
154
+ window.scrollTo(0, 0);
155
+ break;
153
156
  }
154
157
  }
155
158
  vue.onMounted(() => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, ref, h, provide, onMounted, onUnmounted, createElementBlock, openBlock, createVNode, unref, nextTick } from "vue";
2
- import { e as BLOX_REGISTRY_KEY, u as useLocale } from "./core-Dgbxe2KR.js";
2
+ import { e as BLOX_REGISTRY_KEY, u as useLocale } from "./core-CMIqR-Qh.js";
3
3
  function sendToEditor(msg) {
4
4
  window.parent.postMessage(msg, "*");
5
5
  }
@@ -149,6 +149,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
149
149
  case "BLOX_HOVER_BLOCK":
150
150
  hoveredIndex.value = msg.index;
151
151
  break;
152
+ case "BLOX_SCROLL_TOP":
153
+ window.scrollTo(0, 0);
154
+ break;
152
155
  }
153
156
  }
154
157
  onMounted(() => {
package/dist/bridge.d.ts CHANGED
@@ -24,6 +24,8 @@ export type EditorMessage = {
24
24
  } | {
25
25
  type: 'BLOX_HOVER_BLOCK';
26
26
  index: number | null;
27
+ } | {
28
+ type: 'BLOX_SCROLL_TOP';
27
29
  };
28
30
  export type PreviewMessage = {
29
31
  type: 'BLOX_READY';
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAEzD,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,gBAAgB,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,CAAA;CACpB;AAMD,MAAM,MAAM,aAAa,GACpB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;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M,EAAE,iBAAiB,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAEjF"}
@@ -398,7 +398,7 @@ class BloxInstance {
398
398
  }
399
399
  router.addRoute({
400
400
  path: "/_blox_preview",
401
- component: () => Promise.resolve().then(() => require("./PreviewApp-DTES03XQ.cjs")),
401
+ component: () => Promise.resolve().then(() => require("./PreviewApp-Cz4vlGIj.cjs")),
402
402
  beforeEnter: () => window.parent !== window ? true : "/"
403
403
  });
404
404
  router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$1 });
@@ -397,7 +397,7 @@ class BloxInstance {
397
397
  }
398
398
  router.addRoute({
399
399
  path: "/_blox_preview",
400
- component: () => import("./PreviewApp-GXgDk2xP.js"),
400
+ component: () => import("./PreviewApp-B9-bFr10.js"),
401
401
  beforeEnter: () => window.parent !== window ? true : "/"
402
402
  });
403
403
  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-D60gEgpD.cjs");
4
- const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-Bp39MENi.cjs");
3
+ const core = require("./core-C7YdybrT.cjs");
4
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-Bl94C9pL.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 { B as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, c as createBlox } from "./core-Dgbxe2KR.js";
2
- import { d, b, _, P, a, l, r } from "./core-Dgbxe2KR.js";
3
- import { _ as _2, P as P2, s, a as a2 } from "./PreviewApp.vue_vue_type_style_index_0_lang-B9iqsIKI.js";
1
+ import { B as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, c as createBlox } from "./core-CMIqR-Qh.js";
2
+ import { d, b, _, P, a, l, r } from "./core-CMIqR-Qh.js";
3
+ import { _ as _2, P as P2, s, a as a2 } from "./PreviewApp.vue_vue_type_style_index_0_lang-DnbVyH_z.js";
4
4
  import { 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-ZBDFjWPT.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-D60gEgpD.cjs");
29
+ const core = require("../core-C7YdybrT.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-Dgbxe2KR.js";
7
+ import { c as createBlox } from "../core-CMIqR-Qh.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.12.74",
4
+ "version": "1.12.78",
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",