@bagelink/blox 1.15.653 → 1.15.655
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-7BXiNjwg.cjs → PreviewApp-CACfRxeF.cjs} +1 -1
- package/dist/{PreviewApp-hLsU5HKs.js → PreviewApp-D2UH5Z5c.js} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-BzGw32LW.js → PreviewApp.vue_vue_type_style_index_0_lang-C4QRUJtN.js} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-CRaNO3wo.cjs → PreviewApp.vue_vue_type_style_index_0_lang-DW84Blfc.cjs} +1 -1
- package/dist/{appRuntime-Cay272e9.cjs → appRuntime-CZtNzHTb.cjs} +7 -6
- package/dist/{appRuntime-BKUaccqq.js → appRuntime-lCWtPnUw.js} +8 -7
- 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/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":";AA+iBA,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-DW84Blfc.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 { d as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, e as BLOX_RUNTIME_KEY } from "./appRuntime-
|
|
2
|
+
import { d as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, e as BLOX_RUNTIME_KEY } from "./appRuntime-lCWtPnUw.js";
|
|
3
3
|
function sendToEditor(msg) {
|
|
4
4
|
window.parent.postMessage(cloneForPostMessage(msg), "*");
|
|
5
5
|
}
|
|
@@ -290,7 +290,6 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
290
290
|
setup(__props) {
|
|
291
291
|
var _a;
|
|
292
292
|
const route = vueRouter.useRoute();
|
|
293
|
-
const router = vueRouter.useRouter();
|
|
294
293
|
const { locale: locale2, setLocale, setAlternates } = useLocale();
|
|
295
294
|
const strategy = vue.inject(BLOX_LOCALE_STRATEGY_KEY, null);
|
|
296
295
|
const config = vue.inject(BLOX_CONFIG_KEY, null);
|
|
@@ -365,8 +364,11 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
365
364
|
return;
|
|
366
365
|
}
|
|
367
366
|
if ((config == null ? void 0 : config.navigation) === "document" && hasPrerenderedRouteState && typeof window !== "undefined") {
|
|
368
|
-
|
|
369
|
-
|
|
367
|
+
const target = currentRouteTarget(slug);
|
|
368
|
+
if (target !== `${window.location.pathname}${window.location.search}${window.location.hash}`) {
|
|
369
|
+
window.location.assign(target);
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
370
372
|
}
|
|
371
373
|
navigating.value = true;
|
|
372
374
|
try {
|
|
@@ -379,8 +381,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
379
381
|
} catch (e) {
|
|
380
382
|
const msg = e instanceof Error ? e.message : String(e);
|
|
381
383
|
if (msg.includes("404")) {
|
|
382
|
-
|
|
383
|
-
router.replace(home);
|
|
384
|
+
notFound.value = true;
|
|
384
385
|
} else {
|
|
385
386
|
error.value = msg;
|
|
386
387
|
}
|
|
@@ -870,7 +871,7 @@ class BloxInstance {
|
|
|
870
871
|
router.addRoute({
|
|
871
872
|
path: "/_blox_preview",
|
|
872
873
|
name: BLOX_PREVIEW_ROUTE_NAME,
|
|
873
|
-
component: () => Promise.resolve().then(() => require("./PreviewApp-
|
|
874
|
+
component: () => Promise.resolve().then(() => require("./PreviewApp-CACfRxeF.cjs")),
|
|
874
875
|
beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
|
|
875
876
|
});
|
|
876
877
|
}
|
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import { createPinia } from "pinia";
|
|
5
5
|
import { inject, computed, ref, defineComponent, onMounted, unref, openBlock, createElementBlock, createElementVNode, createCommentVNode, getCurrentInstance, h, provide, watch, resolveComponent, toDisplayString, createVNode, withCtx, createTextVNode, Fragment, createBlock, shallowRef, onServerPrefetch, toValue, markRaw, resolveDynamicComponent } from "vue";
|
|
6
6
|
import { useBloxApi, getWebsiteIdSync, getWebsiteId, resolvePath, configureApi, listItemsFromActiveApi, getItemBySlug, getItemById } from "./index-I81QTzv-.js";
|
|
7
|
-
import { useRoute
|
|
7
|
+
import { useRoute } from "vue-router";
|
|
8
8
|
import { getI18n } from "@bagelink/vue";
|
|
9
9
|
import { r as resolvePageTitle, s as siteNameFromContexts, a as preserveCurrentSiteSuffix } from "./pageTitle-B1mtDJKn.js";
|
|
10
10
|
import { r as readBloxHydration } from "./client-Ce9fRCGH.js";
|
|
@@ -289,7 +289,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
289
289
|
setup(__props) {
|
|
290
290
|
var _a;
|
|
291
291
|
const route = useRoute();
|
|
292
|
-
const router = useRouter();
|
|
293
292
|
const { locale: locale2, setLocale, setAlternates } = useLocale();
|
|
294
293
|
const strategy = inject(BLOX_LOCALE_STRATEGY_KEY, null);
|
|
295
294
|
const config = inject(BLOX_CONFIG_KEY, null);
|
|
@@ -364,8 +363,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
364
363
|
return;
|
|
365
364
|
}
|
|
366
365
|
if ((config == null ? void 0 : config.navigation) === "document" && hasPrerenderedRouteState && typeof window !== "undefined") {
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
const target = currentRouteTarget(slug);
|
|
367
|
+
if (target !== `${window.location.pathname}${window.location.search}${window.location.hash}`) {
|
|
368
|
+
window.location.assign(target);
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
369
371
|
}
|
|
370
372
|
navigating.value = true;
|
|
371
373
|
try {
|
|
@@ -378,8 +380,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
378
380
|
} catch (e) {
|
|
379
381
|
const msg = e instanceof Error ? e.message : String(e);
|
|
380
382
|
if (msg.includes("404")) {
|
|
381
|
-
|
|
382
|
-
router.replace(home);
|
|
383
|
+
notFound.value = true;
|
|
383
384
|
} else {
|
|
384
385
|
error.value = msg;
|
|
385
386
|
}
|
|
@@ -869,7 +870,7 @@ class BloxInstance {
|
|
|
869
870
|
router.addRoute({
|
|
870
871
|
path: "/_blox_preview",
|
|
871
872
|
name: BLOX_PREVIEW_ROUTE_NAME,
|
|
872
|
-
component: () => import("./PreviewApp-
|
|
873
|
+
component: () => import("./PreviewApp-D2UH5Z5c.js"),
|
|
873
874
|
beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
|
|
874
875
|
});
|
|
875
876
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index = require("./index-DUjEj7ts.cjs");
|
|
4
|
-
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
5
|
-
const appRuntime = require("./appRuntime-
|
|
4
|
+
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-DW84Blfc.cjs");
|
|
5
|
+
const appRuntime = require("./appRuntime-CZtNzHTb.cjs");
|
|
6
6
|
const vue = require("vue");
|
|
7
7
|
const ssg_client = require("./client-AoDTJJXJ.cjs");
|
|
8
8
|
const vueRouter = require("vue-router");
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useBloxApi, getItemBySlug, getItemById, provideBloxApi } from "./index-I81QTzv-.js";
|
|
2
2
|
import { configureApi, createBloxApi, getCollectionResolver, getWebsiteId, getWebsiteIdSync, listItems, resolvePath, setApiOrigin, setCollectionResolver } from "./index-I81QTzv-.js";
|
|
3
|
-
import { _, P, s, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { f as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, e as BLOX_RUNTIME_KEY, g as useSeo, h as getRegistryData, j as getContentRoute, p as provideBloxData, b as provideBloxLocale, i as installBloxRuntime, s as setActiveLocale, k as installSmartLinks, l as consumePendingLocaleSwitch } from "./appRuntime-
|
|
5
|
-
import { _ as _2, m, o, q, t, v, w, x, y, P as P2, z, A, c, a as a2, C, D, E, F, G, H, I, J, K, L, M, r, N, O, Q, R } from "./appRuntime-
|
|
3
|
+
import { _, P, s, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-C4QRUJtN.js";
|
|
4
|
+
import { f as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, e as BLOX_RUNTIME_KEY, g as useSeo, h as getRegistryData, j as getContentRoute, p as provideBloxData, b as provideBloxLocale, i as installBloxRuntime, s as setActiveLocale, k as installSmartLinks, l as consumePendingLocaleSwitch } from "./appRuntime-lCWtPnUw.js";
|
|
5
|
+
import { _ as _2, m, o, q, t, v, w, x, y, P as P2, z, A, c, a as a2, C, D, E, F, G, H, I, J, K, L, M, r, N, O, Q, R } from "./appRuntime-lCWtPnUw.js";
|
|
6
6
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, Transition, resolveDynamicComponent, inject, ref, watch, onMounted, onUnmounted, computed, onServerPrefetch, toValue, h, Suspense, createSSRApp, createApp } from "vue";
|
|
7
7
|
import { r as readBloxHydration } from "./client-Ce9fRCGH.js";
|
|
8
8
|
import { useRouter, useRoute } from "vue-router";
|
package/dist/ssg/index.cjs
CHANGED
|
@@ -26,7 +26,7 @@ const llmArtifacts = require("../validate-output-BdzD7fIN.cjs");
|
|
|
26
26
|
const ssg_buildGrant = require("./build-grant.cjs");
|
|
27
27
|
const ssg_client = require("../client-AoDTJJXJ.cjs");
|
|
28
28
|
const vue = require("vue");
|
|
29
|
-
const appRuntime = require("../appRuntime-
|
|
29
|
+
const appRuntime = require("../appRuntime-CZtNzHTb.cjs");
|
|
30
30
|
const index = require("../index-DUjEj7ts.cjs");
|
|
31
31
|
async function renderBloxSsgPage(options) {
|
|
32
32
|
var _a, _b, _c, _d;
|
package/dist/ssg/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { k, l, f, m, n, o, q, g, r, s, t, w, x, y, p, a, z, A, u, c, v } from ".
|
|
|
3
3
|
import { parseBloxBuildGrantBody, resolveBloxBuildGrant } from "./build-grant.mjs";
|
|
4
4
|
import { a as BLOX_HYDRATION_WINDOW_KEY } from "../client-Ce9fRCGH.js";
|
|
5
5
|
import { createSSRApp, h, Suspense } from "vue";
|
|
6
|
-
import { c as collectBloxData, a as collectBloxSeo, p as provideBloxData, b as provideBloxLocale, B as BLOX_SSR_ROUTE_STATE_KEY, i as installBloxRuntime, s as setActiveLocale } from "../appRuntime-
|
|
6
|
+
import { c as collectBloxData, a as collectBloxSeo, p as provideBloxData, b as provideBloxLocale, B as BLOX_SSR_ROUTE_STATE_KEY, i as installBloxRuntime, s as setActiveLocale } from "../appRuntime-lCWtPnUw.js";
|
|
7
7
|
import { provideBloxApi, getCollectionResolver } from "../index-I81QTzv-.js";
|
|
8
8
|
async function renderBloxSsgPage(options) {
|
|
9
9
|
var _a, _b, _c, _d;
|
package/package.json
CHANGED