@bagelink/blox 1.15.476 → 1.15.478
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-DdTJYLaU.cjs → PreviewApp-B1V5yAQU.cjs} +1 -1
- package/dist/{PreviewApp-CCP5TufQ.js → PreviewApp-qYBj0fnd.js} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-DihIptYr.cjs → PreviewApp.vue_vue_type_style_index_0_lang-CFqaQylr.cjs} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-DrO2PTcS.js → PreviewApp.vue_vue_type_style_index_0_lang-dv9ah2tW.js} +1 -1
- package/dist/content/routes.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{routes-y2qluUdf.cjs → routes-BybureCK.cjs} +31 -12
- package/dist/{routes-BLdP650Z.js → routes-DtTN43pK.js} +31 -12
- package/dist/ssg/index.cjs +1 -1
- package/dist/ssg/index.mjs +1 -1
- 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-CFqaQylr.cjs");
|
|
4
4
|
exports.default = PreviewApp_vue_vue_type_style_index_0_lang._sfc_main;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, h, provide, onMounted, onUnmounted, openBlock, createElementBlock, createVNode, unref, nextTick } from "vue";
|
|
2
|
-
import { f as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, h as BLOX_RUNTIME_KEY } from "./routes-
|
|
2
|
+
import { f as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, h as BLOX_RUNTIME_KEY } from "./routes-DtTN43pK.js";
|
|
3
3
|
function sendToEditor(msg) {
|
|
4
4
|
window.parent.postMessage(cloneForPostMessage(msg), "*");
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/content/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAOvD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACpC,gBAAgB,EAAE,MAAM,EAAE,EAC1B,aAAa,EAAE,MAAM,GACnB,cAAc,EAAE,CA4BlB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,cAAc,GACtB,IAAI,CA4BN;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACrC,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,MAAM,EAAE,EAC1B,aAAa,EAAE,MAAM,GACnB,IAAI,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/content/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAOvD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACpC,gBAAgB,EAAE,MAAM,EAAE,EAC1B,aAAa,EAAE,MAAM,GACnB,cAAc,EAAE,CA4BlB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,cAAc,GACtB,IAAI,CA4BN;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACrC,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,MAAM,EAAE,EAC1B,aAAa,EAAE,MAAM,GACnB,IAAI,CAoEN"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const routes = require("./routes-
|
|
4
|
-
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
3
|
+
const routes = require("./routes-BybureCK.cjs");
|
|
4
|
+
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-CFqaQylr.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 { j as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, h as BLOX_RUNTIME_KEY, k as useSeo, l as getRegistryData, m as getItemBySlug, o as getItemById, q as getContentRoute, p as provideBloxData, e as createBlox, g as generateContentRoutes, t as installContentFallback, i as installLocaleAwareResolve, b as setActiveLocale, v as installSmartLinks, w as consumePendingLocaleSwitch } from "./routes-
|
|
2
|
-
import { _, x, y, z, B, A, C, D, E, F, P, G, H, c, d, I, J, K, L, M, N, O, Q, R, S, T, U, r, V, s, W, X, Y, Z } from "./routes-
|
|
3
|
-
import { _ as _2, P as P2, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { j as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, h as BLOX_RUNTIME_KEY, k as useSeo, l as getRegistryData, m as getItemBySlug, o as getItemById, q as getContentRoute, p as provideBloxData, e as createBlox, g as generateContentRoutes, t as installContentFallback, i as installLocaleAwareResolve, b as setActiveLocale, v as installSmartLinks, w as consumePendingLocaleSwitch } from "./routes-DtTN43pK.js";
|
|
2
|
+
import { _, x, y, z, B, A, C, D, E, F, P, G, H, c, d, I, J, K, L, M, N, O, Q, R, S, T, U, r, V, s, W, X, Y, Z } from "./routes-DtTN43pK.js";
|
|
3
|
+
import { _ as _2, P as P2, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-dv9ah2tW.js";
|
|
4
4
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, Transition, resolveDynamicComponent, inject, ref, watch, onMounted, onUnmounted, computed, onServerPrefetch, toValue, createApp, h, Suspense, markRaw } from "vue";
|
|
5
5
|
import { useRouter, useRoute } from "vue-router";
|
|
6
6
|
import { createPinia } from "pinia";
|
|
@@ -912,7 +912,7 @@ class BloxInstance {
|
|
|
912
912
|
}
|
|
913
913
|
router.addRoute({
|
|
914
914
|
path: "/_blox_preview",
|
|
915
|
-
component: () => Promise.resolve().then(() => require("./PreviewApp-
|
|
915
|
+
component: () => Promise.resolve().then(() => require("./PreviewApp-B1V5yAQU.cjs")),
|
|
916
916
|
beforeEnter: () => window.parent !== window ? true : "/"
|
|
917
917
|
});
|
|
918
918
|
router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$2 });
|
|
@@ -1170,22 +1170,41 @@ function installContentFallback(router, supportedLocales, defaultLocale) {
|
|
|
1170
1170
|
const slug = String(to.params.slug ?? "");
|
|
1171
1171
|
if (!slug) return true;
|
|
1172
1172
|
const urlLocale = localeOf(to.path);
|
|
1173
|
-
|
|
1173
|
+
let here;
|
|
1174
|
+
try {
|
|
1175
|
+
here = await getItemBySlug(
|
|
1176
|
+
registration.collection,
|
|
1177
|
+
slug,
|
|
1178
|
+
urlLocale
|
|
1179
|
+
);
|
|
1180
|
+
} catch {
|
|
1181
|
+
return true;
|
|
1182
|
+
}
|
|
1174
1183
|
if (here) return true;
|
|
1175
1184
|
for (const sourceLocale of [defaultLocale, ...supportedLocales]) {
|
|
1176
1185
|
if (sourceLocale === urlLocale) continue;
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1186
|
+
let source;
|
|
1187
|
+
try {
|
|
1188
|
+
source = await getItemBySlug(
|
|
1189
|
+
registration.collection,
|
|
1190
|
+
slug,
|
|
1191
|
+
sourceLocale
|
|
1192
|
+
);
|
|
1193
|
+
} catch {
|
|
1194
|
+
return true;
|
|
1195
|
+
}
|
|
1182
1196
|
const id = String((source == null ? void 0 : source.id) ?? (source == null ? void 0 : source._id) ?? "");
|
|
1183
1197
|
if (!id) continue;
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1198
|
+
let target;
|
|
1199
|
+
try {
|
|
1200
|
+
target = await getItemById(
|
|
1201
|
+
registration.collection,
|
|
1202
|
+
id,
|
|
1203
|
+
urlLocale
|
|
1204
|
+
);
|
|
1205
|
+
} catch {
|
|
1206
|
+
return true;
|
|
1207
|
+
}
|
|
1189
1208
|
const targetSlug = String((target == null ? void 0 : target.slug) ?? "");
|
|
1190
1209
|
if (!targetSlug) break;
|
|
1191
1210
|
const barePath = registration.route.replace(/:slug(?=\/|$)/, targetSlug);
|
|
@@ -911,7 +911,7 @@ class BloxInstance {
|
|
|
911
911
|
}
|
|
912
912
|
router.addRoute({
|
|
913
913
|
path: "/_blox_preview",
|
|
914
|
-
component: () => import("./PreviewApp-
|
|
914
|
+
component: () => import("./PreviewApp-qYBj0fnd.js"),
|
|
915
915
|
beforeEnter: () => window.parent !== window ? true : "/"
|
|
916
916
|
});
|
|
917
917
|
router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$2 });
|
|
@@ -1169,22 +1169,41 @@ function installContentFallback(router, supportedLocales, defaultLocale) {
|
|
|
1169
1169
|
const slug = String(to.params.slug ?? "");
|
|
1170
1170
|
if (!slug) return true;
|
|
1171
1171
|
const urlLocale = localeOf(to.path);
|
|
1172
|
-
|
|
1172
|
+
let here;
|
|
1173
|
+
try {
|
|
1174
|
+
here = await getItemBySlug(
|
|
1175
|
+
registration.collection,
|
|
1176
|
+
slug,
|
|
1177
|
+
urlLocale
|
|
1178
|
+
);
|
|
1179
|
+
} catch {
|
|
1180
|
+
return true;
|
|
1181
|
+
}
|
|
1173
1182
|
if (here) return true;
|
|
1174
1183
|
for (const sourceLocale of [defaultLocale, ...supportedLocales]) {
|
|
1175
1184
|
if (sourceLocale === urlLocale) continue;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1185
|
+
let source;
|
|
1186
|
+
try {
|
|
1187
|
+
source = await getItemBySlug(
|
|
1188
|
+
registration.collection,
|
|
1189
|
+
slug,
|
|
1190
|
+
sourceLocale
|
|
1191
|
+
);
|
|
1192
|
+
} catch {
|
|
1193
|
+
return true;
|
|
1194
|
+
}
|
|
1181
1195
|
const id = String((source == null ? void 0 : source.id) ?? (source == null ? void 0 : source._id) ?? "");
|
|
1182
1196
|
if (!id) continue;
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1197
|
+
let target;
|
|
1198
|
+
try {
|
|
1199
|
+
target = await getItemById(
|
|
1200
|
+
registration.collection,
|
|
1201
|
+
id,
|
|
1202
|
+
urlLocale
|
|
1203
|
+
);
|
|
1204
|
+
} catch {
|
|
1205
|
+
return true;
|
|
1206
|
+
}
|
|
1188
1207
|
const targetSlug = String((target == null ? void 0 : target.slug) ?? "");
|
|
1189
1208
|
if (!targetSlug) break;
|
|
1190
1209
|
const barePath = registration.route.replace(/:slug(?=\/|$)/, targetSlug);
|
package/dist/ssg/index.cjs
CHANGED
|
@@ -26,7 +26,7 @@ const llmArtifacts = require("../prerender-JdRKimQ5.cjs");
|
|
|
26
26
|
const ssg_client = require("./client.cjs");
|
|
27
27
|
const pinia = require("pinia");
|
|
28
28
|
const vue = require("vue");
|
|
29
|
-
const routes = require("../routes-
|
|
29
|
+
const routes = require("../routes-BybureCK.cjs");
|
|
30
30
|
async function renderBloxSsgPage(options) {
|
|
31
31
|
var _a, _b, _c;
|
|
32
32
|
const {
|
package/dist/ssg/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { BLOX_STATE_WINDOW_KEY, BLOX_WEBSITE_ID_WINDOW_KEY } from "./client.mjs"
|
|
|
4
4
|
import { BLOX_COLLECTIONS_WINDOW_KEY, BLOX_DATA_WINDOW_KEY, BLOX_PAGE_SEO_WINDOW_KEY, getCollectionCache, getEmbeddedWebsiteId, installBloxStateCache, installCollectionCache } from "./client.mjs";
|
|
5
5
|
import { createPinia } from "pinia";
|
|
6
6
|
import { createSSRApp, h, Suspense, markRaw } from "vue";
|
|
7
|
-
import { B as BLOX_DATA_WINDOW_KEY2, s as setApiOrigin, a as setCollectionResolver, b as setActiveLocale, c as collectBloxData, d as collectBloxSeo, p as provideBloxData, e as createBlox, g as generateContentRoutes, i as installLocaleAwareResolve } from "../routes-
|
|
7
|
+
import { B as BLOX_DATA_WINDOW_KEY2, s as setApiOrigin, a as setCollectionResolver, b as setActiveLocale, c as collectBloxData, d as collectBloxSeo, p as provideBloxData, e as createBlox, g as generateContentRoutes, i as installLocaleAwareResolve } from "../routes-DtTN43pK.js";
|
|
8
8
|
async function renderBloxSsgPage(options) {
|
|
9
9
|
var _a, _b, _c;
|
|
10
10
|
const {
|
package/package.json
CHANGED