@bagelink/blox 1.12.71 → 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.
- package/dist/{PreviewApp-GXgDk2xP.js → PreviewApp-B9-bFr10.js} +1 -1
- package/dist/{PreviewApp-DTES03XQ.cjs → PreviewApp-Cz4vlGIj.cjs} +1 -1
- package/dist/PreviewApp.vue.d.ts.map +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-Bp39MENi.cjs → PreviewApp.vue_vue_type_style_index_0_lang-Bl94C9pL.cjs} +4 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-B9iqsIKI.js → PreviewApp.vue_vue_type_style_index_0_lang-DnbVyH_z.js} +4 -1
- package/dist/bridge.d.ts +2 -0
- package/dist/bridge.d.ts.map +1 -1
- package/dist/{core-D60gEgpD.cjs → core-C7YdybrT.cjs} +1 -1
- package/dist/{core-Dgbxe2KR.js → core-CMIqR-Qh.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/ssg/index.cjs +1 -1
- package/dist/ssg/index.mjs +1 -1
- package/dist/vite-plugin.cjs +8 -7
- package/dist/vite-plugin.d.ts.map +1 -1
- package/dist/vite-plugin.mjs +8 -7
- package/package.json +1 -1
|
@@ -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-
|
|
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":";
|
|
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-
|
|
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-
|
|
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
package/dist/bridge.d.ts.map
CHANGED
|
@@ -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;CAAE,GAC7D;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,MAAM,EAAE,KAAK,EAAE,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;
|
|
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,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gB,aAAa,CAAC,MAAM,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-
|
|
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-
|
|
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-
|
|
4
|
-
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
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-
|
|
2
|
-
import { d, b, _, P, a, l, r } from "./core-
|
|
3
|
-
import { _ as _2, P as P2, s, a as a2 } from "./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
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";
|
package/dist/ssg/index.cjs
CHANGED
|
@@ -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-
|
|
29
|
+
const core = require("../core-C7YdybrT.cjs");
|
|
30
30
|
async function renderBloxSsgPage(options) {
|
|
31
31
|
const {
|
|
32
32
|
url,
|
package/dist/ssg/index.mjs
CHANGED
|
@@ -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-
|
|
7
|
+
import { c as createBlox } from "../core-CMIqR-Qh.js";
|
|
8
8
|
async function renderBloxSsgPage(options) {
|
|
9
9
|
const {
|
|
10
10
|
url,
|
package/dist/vite-plugin.cjs
CHANGED
|
@@ -1087,17 +1087,18 @@ function bloxPlugin(options = {}) {
|
|
|
1087
1087
|
try {
|
|
1088
1088
|
const req = node_module.createRequire(base);
|
|
1089
1089
|
const vueEntry = req.resolve("vue");
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
"vue/server-renderer": path.join(vueDir, "server-renderer", "index.mjs"),
|
|
1094
|
-
"@vue/server-renderer": req.resolve("@vue/server-renderer")
|
|
1095
|
-
|
|
1090
|
+
const vuePkgJson = req.resolve("vue/package.json");
|
|
1091
|
+
const vueDir = path.dirname(vuePkgJson);
|
|
1092
|
+
return [
|
|
1093
|
+
{ find: "vue/server-renderer", replacement: path.join(vueDir, "server-renderer", "index.mjs") },
|
|
1094
|
+
{ find: "@vue/server-renderer", replacement: req.resolve("@vue/server-renderer") },
|
|
1095
|
+
{ find: "vue", replacement: vueEntry }
|
|
1096
|
+
];
|
|
1096
1097
|
} catch {
|
|
1097
1098
|
continue;
|
|
1098
1099
|
}
|
|
1099
1100
|
}
|
|
1100
|
-
return
|
|
1101
|
+
return [];
|
|
1101
1102
|
}
|
|
1102
1103
|
const dedupe = [
|
|
1103
1104
|
"vue",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAA;AAM9C,MAAM,WAAW,iBAAiB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAA;AAM9C,MAAM,WAAW,iBAAiB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,EAAE,CAgTpE"}
|
package/dist/vite-plugin.mjs
CHANGED
|
@@ -1085,17 +1085,18 @@ function bloxPlugin(options = {}) {
|
|
|
1085
1085
|
try {
|
|
1086
1086
|
const req = createRequire(base);
|
|
1087
1087
|
const vueEntry = req.resolve("vue");
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
"vue/server-renderer": join(vueDir, "server-renderer", "index.mjs"),
|
|
1092
|
-
"@vue/server-renderer": req.resolve("@vue/server-renderer")
|
|
1093
|
-
|
|
1088
|
+
const vuePkgJson = req.resolve("vue/package.json");
|
|
1089
|
+
const vueDir = dirname(vuePkgJson);
|
|
1090
|
+
return [
|
|
1091
|
+
{ find: "vue/server-renderer", replacement: join(vueDir, "server-renderer", "index.mjs") },
|
|
1092
|
+
{ find: "@vue/server-renderer", replacement: req.resolve("@vue/server-renderer") },
|
|
1093
|
+
{ find: "vue", replacement: vueEntry }
|
|
1094
|
+
];
|
|
1094
1095
|
} catch {
|
|
1095
1096
|
continue;
|
|
1096
1097
|
}
|
|
1097
1098
|
}
|
|
1098
|
-
return
|
|
1099
|
+
return [];
|
|
1099
1100
|
}
|
|
1100
1101
|
const dedupe = [
|
|
1101
1102
|
"vue",
|
package/package.json
CHANGED