@bagelink/blox 1.15.299 → 1.15.301
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-zHU3IczK.js → PreviewApp-B5-NZk_P.js} +1 -1
- package/dist/{PreviewApp-CkYPSubW.cjs → PreviewApp-DnbkFCj9.cjs} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-DRNfZA56.js → PreviewApp.vue_vue_type_style_index_0_lang-Bkr18Gt1.js} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-D5JOgHMi.cjs → PreviewApp.vue_vue_type_style_index_0_lang-BonudFxL.cjs} +1 -1
- package/dist/data/useData.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{routes-CsGAn1AG.cjs → routes-CK-H0byK.cjs} +12 -4
- package/dist/{routes-BIVQyFL7.js → routes-CjlJQqgW.js} +12 -4
- 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-BonudFxL.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 { e as BLOX_REGISTRY_KEY, u as useLocale, f as BLOX_RUNTIME_KEY } from "./routes-
|
|
2
|
+
import { e as BLOX_REGISTRY_KEY, u as useLocale, f as BLOX_RUNTIME_KEY } from "./routes-CjlJQqgW.js";
|
|
3
3
|
function sendToEditor(msg) {
|
|
4
4
|
window.parent.postMessage(cloneForPostMessage(msg), "*");
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useData.d.ts","sourceRoot":"","sources":["../../src/data/useData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrD,eAAO,MAAM,oBAAoB,EAAG,eAAwB,CAAA;AAC5D,eAAO,MAAM,aAAa,eAAsB,CAAA;AAEhD,wEAAwE;AACxE,MAAM,WAAW,WAAW;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,gBAAgB;IAChC,yEAAyE;IACzE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAChD,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;IAC1B,iEAAiE;IACjE,GAAG,EAAE,WAAW,CAAA;IAChB,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;CAChE;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC/B,qFAAqF;IACrF,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;IACZ,8DAA8D;IAC9D,OAAO,EAAE,GAAG,CAAC,OAAO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,IAAI,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,gBAAgB,CAS3F;AAoBD,8EAA8E;AAC9E,wBAAgB,eAAe,IAAI,gBAAgB,GAAG,IAAI,CAEzD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEnF;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAezE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,gBAAgB,GAAG,WAAW,CAUtE;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACxB,GAAG,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAC7B,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,GACxB,aAAa,CAAC,CAAC,CAAC,CAqFlB"}
|
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-CK-H0byK.cjs");
|
|
4
|
+
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-BonudFxL.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 { h as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, f as BLOX_RUNTIME_KEY, j as useSeo, k as getRegistryData, l as getItemBySlug, m as getItemById, o as getContentRoute, p as provideBloxData, d as createBlox, g as generateContentRoutes, q as installContentFallback, i as installLocaleAwareResolve, a as setActiveLocale, r as installSmartLinks, t as consumePendingLocaleSwitch } from "./routes-
|
|
2
|
-
import { _, v, w, x, B, y, z, A, C, D, P, E, F, c, b, G, H, I, J, K, L, M, N, O, Q, R, S, T, s, U, V, W, X } from "./routes-
|
|
3
|
-
import { _ as _2, P as P2, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { h as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, f as BLOX_RUNTIME_KEY, j as useSeo, k as getRegistryData, l as getItemBySlug, m as getItemById, o as getContentRoute, p as provideBloxData, d as createBlox, g as generateContentRoutes, q as installContentFallback, i as installLocaleAwareResolve, a as setActiveLocale, r as installSmartLinks, t as consumePendingLocaleSwitch } from "./routes-CjlJQqgW.js";
|
|
2
|
+
import { _, v, w, x, B, y, z, A, C, D, P, E, F, c, b, G, H, I, J, K, L, M, N, O, Q, R, S, T, s, U, V, W, X } from "./routes-CjlJQqgW.js";
|
|
3
|
+
import { _ as _2, P as P2, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-Bkr18Gt1.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";
|
|
@@ -497,6 +497,7 @@ function useData(key, fetcher, options) {
|
|
|
497
497
|
const pending = vue.ref(false);
|
|
498
498
|
const error = vue.ref(null);
|
|
499
499
|
const currentKey = () => vue.toValue(key);
|
|
500
|
+
let refreshGeneration = 0;
|
|
500
501
|
const initialKey = currentKey();
|
|
501
502
|
if ((registry2 == null ? void 0 : registry2.payload) && initialKey in registry2.payload) {
|
|
502
503
|
data.value = registry2.payload[initialKey];
|
|
@@ -532,14 +533,21 @@ function useData(key, fetcher, options) {
|
|
|
532
533
|
});
|
|
533
534
|
}
|
|
534
535
|
async function refresh() {
|
|
536
|
+
const generation = ++refreshGeneration;
|
|
537
|
+
const requestedKey = currentKey();
|
|
535
538
|
pending.value = true;
|
|
536
539
|
error.value = null;
|
|
537
540
|
try {
|
|
538
|
-
|
|
541
|
+
const value = await fetcher();
|
|
542
|
+
if (generation === refreshGeneration && requestedKey === currentKey()) {
|
|
543
|
+
data.value = value;
|
|
544
|
+
}
|
|
539
545
|
} catch (e) {
|
|
540
|
-
|
|
546
|
+
if (generation === refreshGeneration && requestedKey === currentKey()) {
|
|
547
|
+
error.value = e;
|
|
548
|
+
}
|
|
541
549
|
} finally {
|
|
542
|
-
pending.value = false;
|
|
550
|
+
if (generation === refreshGeneration) pending.value = false;
|
|
543
551
|
}
|
|
544
552
|
}
|
|
545
553
|
}
|
|
@@ -857,7 +865,7 @@ class BloxInstance {
|
|
|
857
865
|
}
|
|
858
866
|
router.addRoute({
|
|
859
867
|
path: "/_blox_preview",
|
|
860
|
-
component: () => Promise.resolve().then(() => require("./PreviewApp-
|
|
868
|
+
component: () => Promise.resolve().then(() => require("./PreviewApp-DnbkFCj9.cjs")),
|
|
861
869
|
beforeEnter: () => window.parent !== window ? true : "/"
|
|
862
870
|
});
|
|
863
871
|
router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$2 });
|
|
@@ -496,6 +496,7 @@ function useData(key, fetcher, options) {
|
|
|
496
496
|
const pending = ref(false);
|
|
497
497
|
const error = ref(null);
|
|
498
498
|
const currentKey = () => toValue(key);
|
|
499
|
+
let refreshGeneration = 0;
|
|
499
500
|
const initialKey = currentKey();
|
|
500
501
|
if ((registry2 == null ? void 0 : registry2.payload) && initialKey in registry2.payload) {
|
|
501
502
|
data.value = registry2.payload[initialKey];
|
|
@@ -531,14 +532,21 @@ function useData(key, fetcher, options) {
|
|
|
531
532
|
});
|
|
532
533
|
}
|
|
533
534
|
async function refresh() {
|
|
535
|
+
const generation = ++refreshGeneration;
|
|
536
|
+
const requestedKey = currentKey();
|
|
534
537
|
pending.value = true;
|
|
535
538
|
error.value = null;
|
|
536
539
|
try {
|
|
537
|
-
|
|
540
|
+
const value = await fetcher();
|
|
541
|
+
if (generation === refreshGeneration && requestedKey === currentKey()) {
|
|
542
|
+
data.value = value;
|
|
543
|
+
}
|
|
538
544
|
} catch (e) {
|
|
539
|
-
|
|
545
|
+
if (generation === refreshGeneration && requestedKey === currentKey()) {
|
|
546
|
+
error.value = e;
|
|
547
|
+
}
|
|
540
548
|
} finally {
|
|
541
|
-
pending.value = false;
|
|
549
|
+
if (generation === refreshGeneration) pending.value = false;
|
|
542
550
|
}
|
|
543
551
|
}
|
|
544
552
|
}
|
|
@@ -856,7 +864,7 @@ class BloxInstance {
|
|
|
856
864
|
}
|
|
857
865
|
router.addRoute({
|
|
858
866
|
path: "/_blox_preview",
|
|
859
|
-
component: () => import("./PreviewApp-
|
|
867
|
+
component: () => import("./PreviewApp-B5-NZk_P.js"),
|
|
860
868
|
beforeEnter: () => window.parent !== window ? true : "/"
|
|
861
869
|
});
|
|
862
870
|
router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$2 });
|
package/dist/ssg/index.cjs
CHANGED
|
@@ -26,7 +26,7 @@ const cmsRoutes = require("../prerender-DQ7D6auC.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-CK-H0byK.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_COLLECTIONS_WINDOW_KEY, BLOX_WEBSITE_ID_WIN
|
|
|
4
4
|
import { 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 as h2, Suspense, markRaw } from "vue";
|
|
7
|
-
import { B as BLOX_DATA_WINDOW_KEY2, s as setApiOrigin, a as setActiveLocale, c as collectBloxData, b as collectBloxSeo, p as provideBloxData, d as createBlox, g as generateContentRoutes, i as installLocaleAwareResolve } from "../routes-
|
|
7
|
+
import { B as BLOX_DATA_WINDOW_KEY2, s as setApiOrigin, a as setActiveLocale, c as collectBloxData, b as collectBloxSeo, p as provideBloxData, d as createBlox, g as generateContentRoutes, i as installLocaleAwareResolve } from "../routes-CjlJQqgW.js";
|
|
8
8
|
async function renderBloxSsgPage(options) {
|
|
9
9
|
var _a, _b, _c;
|
|
10
10
|
const {
|
package/package.json
CHANGED