@bagelink/blox 1.15.558 → 1.15.562
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/CmsPageView.vue.d.ts.map +1 -1
- package/dist/{PreviewApp-RWLkugBk.js → PreviewApp-B9SNVb5d.js} +1 -1
- package/dist/{PreviewApp-eEGjkQot.cjs → PreviewApp-DGaEtgeQ.cjs} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-CMOb3zfF.cjs → PreviewApp.vue_vue_type_style_index_0_lang-CSGhU0Km.cjs} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-DDcLQVr1.js → PreviewApp.vue_vue_type_style_index_0_lang-DmbZlg5I.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{routes-CYYoiqvi.js → routes-BLRBaLOB.js} +12 -6
- package/dist/{routes-C82wA2VY.cjs → routes-ClmCqqhk.cjs} +12 -6
- package/dist/ssg/index.cjs +1 -1
- package/dist/ssg/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CmsPageView.vue.d.ts","sourceRoot":"","sources":["../src/CmsPageView.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CmsPageView.vue.d.ts","sourceRoot":"","sources":["../src/CmsPageView.vue"],"names":[],"mappings":";AAmkBA,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-
|
|
3
|
+
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-CSGhU0Km.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 { h as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, j as BLOX_RUNTIME_KEY } from "./routes-
|
|
2
|
+
import { h as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, j as BLOX_RUNTIME_KEY } from "./routes-BLRBaLOB.js";
|
|
3
3
|
function sendToEditor(msg) {
|
|
4
4
|
window.parent.postMessage(cloneForPostMessage(msg), "*");
|
|
5
5
|
}
|
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-ClmCqqhk.cjs");
|
|
4
|
+
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-CSGhU0Km.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 { k as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, j as BLOX_RUNTIME_KEY, l as useSeo, m as getRegistryData, o as getItemBySlug, q as getItemById, t as getContentRoute, p as provideBloxData, f as createBlox, g as generateContentRoutes, v as installContentFallback, i as installLocaleAwareResolve, b as setActiveLocale, w as installSmartLinks, x as consumePendingLocaleSwitch, B as BLOX_DATA_WINDOW_KEY } from "./routes-
|
|
2
|
-
import { _, y, z, A, C, D, E, F, G, P, H, I, c, d, J, K, L, M, N, O, Q, R, S, T, U, V, r, W, s, 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 { k as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, j as BLOX_RUNTIME_KEY, l as useSeo, m as getRegistryData, o as getItemBySlug, q as getItemById, t as getContentRoute, p as provideBloxData, f as createBlox, g as generateContentRoutes, v as installContentFallback, i as installLocaleAwareResolve, b as setActiveLocale, w as installSmartLinks, x as consumePendingLocaleSwitch, B as BLOX_DATA_WINDOW_KEY } from "./routes-BLRBaLOB.js";
|
|
2
|
+
import { _, y, z, A, C, D, E, F, G, P, H, I, c, d, J, K, L, M, N, O, Q, R, S, T, U, V, r, W, s, X, Y, Z, $ } from "./routes-BLRBaLOB.js";
|
|
3
|
+
import { _ as _2, P as P2, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-DmbZlg5I.js";
|
|
4
4
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, Transition, resolveDynamicComponent, inject, ref, watch, onMounted, onUnmounted, computed, onServerPrefetch, toValue, h, Suspense, markRaw, createSSRApp, createApp } from "vue";
|
|
5
5
|
import { useRouter, useRoute } from "vue-router";
|
|
6
6
|
import { createPinia } from "pinia";
|
|
@@ -374,6 +374,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
374
374
|
isPreview: ref(false),
|
|
375
375
|
loading: computed(() => initialLoading.value || navigating.value)
|
|
376
376
|
});
|
|
377
|
+
function currentRoutePath() {
|
|
378
|
+
return typeof (route == null ? void 0 : route.path) === "string" && route.path ? route.path : typeof window !== "undefined" ? window.location.pathname || "/" : "/";
|
|
379
|
+
}
|
|
380
|
+
function currentRouteTarget(fallback) {
|
|
381
|
+
return typeof (route == null ? void 0 : route.fullPath) === "string" && route.fullPath ? route.fullPath : currentRoutePath() || fallback;
|
|
382
|
+
}
|
|
377
383
|
function navigableAlternates(alternates, resolvedSlug) {
|
|
378
384
|
const keys = Object.keys(alternates ?? {});
|
|
379
385
|
if (!keys.length) return { [locale2.value]: resolvedSlug };
|
|
@@ -417,9 +423,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
417
423
|
var _a;
|
|
418
424
|
if (strategy) {
|
|
419
425
|
const hostname = typeof window !== "undefined" ? ((_a = window.location) == null ? void 0 : _a.hostname) ?? "" : "";
|
|
420
|
-
return strategy.detect(hostname,
|
|
426
|
+
return strategy.detect(hostname, currentRoutePath()).slug;
|
|
421
427
|
}
|
|
422
|
-
return
|
|
428
|
+
return currentRoutePath();
|
|
423
429
|
})();
|
|
424
430
|
const ssrHydrated = tryHydrateFromState(initialSlug);
|
|
425
431
|
if (ssrHydrated) initialLoading.value = false;
|
|
@@ -427,14 +433,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
427
433
|
var _a;
|
|
428
434
|
notFound.value = false;
|
|
429
435
|
error.value = null;
|
|
430
|
-
const { locale: urlLocale, slug } = strategy ? strategy.detect(typeof window !== "undefined" ? window.location.hostname : "",
|
|
436
|
+
const { locale: urlLocale, slug } = strategy ? strategy.detect(typeof window !== "undefined" ? window.location.hostname : "", currentRoutePath()) : { locale: locale2.value, slug: currentRoutePath() };
|
|
431
437
|
if (urlLocale !== locale2.value) setLocale(urlLocale);
|
|
432
438
|
if (tryHydrateFromState(slug)) {
|
|
433
439
|
initialLoading.value = false;
|
|
434
440
|
return;
|
|
435
441
|
}
|
|
436
442
|
if (hasEmbeddedState() && typeof window !== "undefined") {
|
|
437
|
-
window.location.assign(
|
|
443
|
+
window.location.assign(currentRouteTarget(slug));
|
|
438
444
|
return;
|
|
439
445
|
}
|
|
440
446
|
navigating.value = true;
|
|
@@ -461,7 +467,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
461
467
|
if (!ssrHydrated) {
|
|
462
468
|
load();
|
|
463
469
|
}
|
|
464
|
-
watch(
|
|
470
|
+
watch(currentRoutePath, load);
|
|
465
471
|
onMounted(() => {
|
|
466
472
|
if (adminConfig && !websiteId.value) {
|
|
467
473
|
getWebsiteId().then((id) => {
|
|
@@ -939,7 +945,7 @@ class BloxInstance {
|
|
|
939
945
|
}
|
|
940
946
|
router.addRoute({
|
|
941
947
|
path: "/_blox_preview",
|
|
942
|
-
component: () => import("./PreviewApp-
|
|
948
|
+
component: () => import("./PreviewApp-B9SNVb5d.js"),
|
|
943
949
|
beforeEnter: () => window.parent !== window ? true : "/"
|
|
944
950
|
});
|
|
945
951
|
router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$2 });
|
|
@@ -375,6 +375,12 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
375
375
|
isPreview: vue.ref(false),
|
|
376
376
|
loading: vue.computed(() => initialLoading.value || navigating.value)
|
|
377
377
|
});
|
|
378
|
+
function currentRoutePath() {
|
|
379
|
+
return typeof (route == null ? void 0 : route.path) === "string" && route.path ? route.path : typeof window !== "undefined" ? window.location.pathname || "/" : "/";
|
|
380
|
+
}
|
|
381
|
+
function currentRouteTarget(fallback) {
|
|
382
|
+
return typeof (route == null ? void 0 : route.fullPath) === "string" && route.fullPath ? route.fullPath : currentRoutePath() || fallback;
|
|
383
|
+
}
|
|
378
384
|
function navigableAlternates(alternates, resolvedSlug) {
|
|
379
385
|
const keys = Object.keys(alternates ?? {});
|
|
380
386
|
if (!keys.length) return { [locale2.value]: resolvedSlug };
|
|
@@ -418,9 +424,9 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
418
424
|
var _a;
|
|
419
425
|
if (strategy) {
|
|
420
426
|
const hostname = typeof window !== "undefined" ? ((_a = window.location) == null ? void 0 : _a.hostname) ?? "" : "";
|
|
421
|
-
return strategy.detect(hostname,
|
|
427
|
+
return strategy.detect(hostname, currentRoutePath()).slug;
|
|
422
428
|
}
|
|
423
|
-
return
|
|
429
|
+
return currentRoutePath();
|
|
424
430
|
})();
|
|
425
431
|
const ssrHydrated = tryHydrateFromState(initialSlug);
|
|
426
432
|
if (ssrHydrated) initialLoading.value = false;
|
|
@@ -428,14 +434,14 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
428
434
|
var _a;
|
|
429
435
|
notFound.value = false;
|
|
430
436
|
error.value = null;
|
|
431
|
-
const { locale: urlLocale, slug } = strategy ? strategy.detect(typeof window !== "undefined" ? window.location.hostname : "",
|
|
437
|
+
const { locale: urlLocale, slug } = strategy ? strategy.detect(typeof window !== "undefined" ? window.location.hostname : "", currentRoutePath()) : { locale: locale2.value, slug: currentRoutePath() };
|
|
432
438
|
if (urlLocale !== locale2.value) setLocale(urlLocale);
|
|
433
439
|
if (tryHydrateFromState(slug)) {
|
|
434
440
|
initialLoading.value = false;
|
|
435
441
|
return;
|
|
436
442
|
}
|
|
437
443
|
if (hasEmbeddedState() && typeof window !== "undefined") {
|
|
438
|
-
window.location.assign(
|
|
444
|
+
window.location.assign(currentRouteTarget(slug));
|
|
439
445
|
return;
|
|
440
446
|
}
|
|
441
447
|
navigating.value = true;
|
|
@@ -462,7 +468,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
462
468
|
if (!ssrHydrated) {
|
|
463
469
|
load();
|
|
464
470
|
}
|
|
465
|
-
vue.watch(
|
|
471
|
+
vue.watch(currentRoutePath, load);
|
|
466
472
|
vue.onMounted(() => {
|
|
467
473
|
if (adminConfig && !websiteId.value) {
|
|
468
474
|
getWebsiteId().then((id) => {
|
|
@@ -940,7 +946,7 @@ class BloxInstance {
|
|
|
940
946
|
}
|
|
941
947
|
router.addRoute({
|
|
942
948
|
path: "/_blox_preview",
|
|
943
|
-
component: () => Promise.resolve().then(() => require("./PreviewApp-
|
|
949
|
+
component: () => Promise.resolve().then(() => require("./PreviewApp-DGaEtgeQ.cjs")),
|
|
944
950
|
beforeEnter: () => window.parent !== window ? true : "/"
|
|
945
951
|
});
|
|
946
952
|
router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$2 });
|
package/dist/ssg/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ const ssg_buildGrant = require("./build-grant.cjs");
|
|
|
27
27
|
const ssg_client = require("./client.cjs");
|
|
28
28
|
const pinia = require("pinia");
|
|
29
29
|
const vue = require("vue");
|
|
30
|
-
const routes = require("../routes-
|
|
30
|
+
const routes = require("../routes-ClmCqqhk.cjs");
|
|
31
31
|
async function renderBloxSsgPage(options) {
|
|
32
32
|
var _a, _b, _c, _d;
|
|
33
33
|
const {
|
package/dist/ssg/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { BLOX_STATE_WINDOW_KEY, BLOX_WEBSITE_ID_WINDOW_KEY } from "./client.mjs"
|
|
|
5
5
|
import { BLOX_COLLECTIONS_WINDOW_KEY, BLOX_DATA_WINDOW_KEY, BLOX_PAGE_SEO_WINDOW_KEY, getCollectionCache, getEmbeddedWebsiteId, installBloxStateCache, installCollectionCache } from "./client.mjs";
|
|
6
6
|
import { createPinia } from "pinia";
|
|
7
7
|
import { createSSRApp, h, Suspense, markRaw } from "vue";
|
|
8
|
-
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 BLOX_SSR_ROUTE_STATE_KEY, f as createBlox, g as generateContentRoutes, i as installLocaleAwareResolve } from "../routes-
|
|
8
|
+
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 BLOX_SSR_ROUTE_STATE_KEY, f as createBlox, g as generateContentRoutes, i as installLocaleAwareResolve } from "../routes-BLRBaLOB.js";
|
|
9
9
|
async function renderBloxSsgPage(options) {
|
|
10
10
|
var _a, _b, _c, _d;
|
|
11
11
|
const {
|
package/package.json
CHANGED