@bagelink/blox 1.15.554 → 1.15.556

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.
@@ -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-ALA1j50w.cjs");
3
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-0x3sOVR5.cjs");
4
4
  exports.default = PreviewApp_vue_vue_type_style_index_0_lang._sfc_main;
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-DC8YgJAO.js";
1
+ import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-DhWhfWxA.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
- const routes = require("./routes-Dm9cxSGf.cjs");
3
+ const routes = require("./routes-BYHlDu-i.cjs");
4
4
  function sendToEditor(msg) {
5
5
  window.parent.postMessage(cloneForPostMessage(msg), "*");
6
6
  }
@@ -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-v4IuPpFg.js";
2
+ import { f as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, h as BLOX_RUNTIME_KEY } from "./routes-BngHUX7M.js";
3
3
  function sendToEditor(msg) {
4
4
  window.parent.postMessage(cloneForPostMessage(msg), "*");
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GA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,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const routes = require("./routes-Dm9cxSGf.cjs");
4
- const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-ALA1j50w.cjs");
3
+ const routes = require("./routes-BYHlDu-i.cjs");
4
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-0x3sOVR5.cjs");
5
5
  const vue = require("vue");
6
6
  const vueRouter = require("vue-router");
7
7
  const pinia = require("pinia");
@@ -268,18 +268,23 @@ function createBloxApp(options) {
268
268
  return first && supportedLocales.includes(first) ? first : locale;
269
269
  };
270
270
  router.beforeEach((to, from) => {
271
+ var _a2;
272
+ const browserPath = typeof window !== "undefined" ? `${window.location.pathname}${window.location.search}${window.location.hash}` : "/";
273
+ const toPath = typeof (to == null ? void 0 : to.path) === "string" ? to.path : browserPath;
274
+ const toFullPath = typeof (to == null ? void 0 : to.fullPath) === "string" ? to.fullPath : toPath;
275
+ const fromPath = typeof (from == null ? void 0 : from.path) === "string" ? from.path : "";
271
276
  const switched = routes.consumePendingLocaleSwitch();
272
277
  if (switched != null) {
273
278
  routes.setActiveLocale(switched);
274
279
  return true;
275
280
  }
276
- const intended = from && from.matched.length ? localeOf(from.path) : localeOf(to.path);
277
- const normalized = strategy.normalize(to.fullPath, intended);
278
- if (normalized && normalized !== to.fullPath) {
281
+ const intended = fromPath && ((_a2 = from == null ? void 0 : from.matched) == null ? void 0 : _a2.length) ? localeOf(fromPath) : localeOf(toPath);
282
+ const normalized = strategy.normalize(toFullPath, intended);
283
+ if (normalized && normalized !== toFullPath) {
279
284
  routes.setActiveLocale(localeOf(normalized));
280
285
  return normalized;
281
286
  }
282
- routes.setActiveLocale(localeOf(to.path));
287
+ routes.setActiveLocale(localeOf(toPath));
283
288
  return true;
284
289
  });
285
290
  const initialPath = typeof window !== "undefined" && ((_a = window.location) == null ? void 0 : _a.pathname) ? window.location.pathname : router.currentRoute.value.path;
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-v4IuPpFg.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-v4IuPpFg.js";
3
- import { _ as _2, P as P2, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-DC8YgJAO.js";
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-BngHUX7M.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-BngHUX7M.js";
3
+ import { _ as _2, P as P2, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-DhWhfWxA.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";
@@ -267,18 +267,23 @@ function createBloxApp(options) {
267
267
  return first && supportedLocales.includes(first) ? first : locale;
268
268
  };
269
269
  router.beforeEach((to, from) => {
270
+ var _a2;
271
+ const browserPath = typeof window !== "undefined" ? `${window.location.pathname}${window.location.search}${window.location.hash}` : "/";
272
+ const toPath = typeof (to == null ? void 0 : to.path) === "string" ? to.path : browserPath;
273
+ const toFullPath = typeof (to == null ? void 0 : to.fullPath) === "string" ? to.fullPath : toPath;
274
+ const fromPath = typeof (from == null ? void 0 : from.path) === "string" ? from.path : "";
270
275
  const switched = consumePendingLocaleSwitch();
271
276
  if (switched != null) {
272
277
  setActiveLocale(switched);
273
278
  return true;
274
279
  }
275
- const intended = from && from.matched.length ? localeOf(from.path) : localeOf(to.path);
276
- const normalized = strategy.normalize(to.fullPath, intended);
277
- if (normalized && normalized !== to.fullPath) {
280
+ const intended = fromPath && ((_a2 = from == null ? void 0 : from.matched) == null ? void 0 : _a2.length) ? localeOf(fromPath) : localeOf(toPath);
281
+ const normalized = strategy.normalize(toFullPath, intended);
282
+ if (normalized && normalized !== toFullPath) {
278
283
  setActiveLocale(localeOf(normalized));
279
284
  return normalized;
280
285
  }
281
- setActiveLocale(localeOf(to.path));
286
+ setActiveLocale(localeOf(toPath));
282
287
  return true;
283
288
  });
284
289
  const initialPath = typeof window !== "undefined" && ((_a = window.location) == null ? void 0 : _a.pathname) ? window.location.pathname : router.currentRoute.value.path;
@@ -912,7 +912,8 @@ class BloxInstance {
912
912
  if (this._config.supportedLocales.length > 0) {
913
913
  const { defaultLocale } = this._config;
914
914
  router.beforeEach((to) => {
915
- const segments = to.path.replace(/^\//, "").split("/");
915
+ const path = typeof (to == null ? void 0 : to.path) === "string" ? to.path : typeof window !== "undefined" ? window.location.pathname : "/";
916
+ const segments = path.replace(/^\//, "").split("/");
916
917
  if (segments[0] === defaultLocale) {
917
918
  const rest = segments.slice(1).join("/");
918
919
  return { path: `/${rest}`, replace: true };
@@ -921,7 +922,7 @@ class BloxInstance {
921
922
  }
922
923
  router.addRoute({
923
924
  path: "/_blox_preview",
924
- component: () => Promise.resolve().then(() => require("./PreviewApp-BMst1djN.cjs")),
925
+ component: () => Promise.resolve().then(() => require("./PreviewApp-CTrrFgIL.cjs")),
925
926
  beforeEnter: () => window.parent !== window ? true : "/"
926
927
  });
927
928
  router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$2 });
@@ -911,7 +911,8 @@ class BloxInstance {
911
911
  if (this._config.supportedLocales.length > 0) {
912
912
  const { defaultLocale } = this._config;
913
913
  router.beforeEach((to) => {
914
- const segments = to.path.replace(/^\//, "").split("/");
914
+ const path = typeof (to == null ? void 0 : to.path) === "string" ? to.path : typeof window !== "undefined" ? window.location.pathname : "/";
915
+ const segments = path.replace(/^\//, "").split("/");
915
916
  if (segments[0] === defaultLocale) {
916
917
  const rest = segments.slice(1).join("/");
917
918
  return { path: `/${rest}`, replace: true };
@@ -920,7 +921,7 @@ class BloxInstance {
920
921
  }
921
922
  router.addRoute({
922
923
  path: "/_blox_preview",
923
- component: () => import("./PreviewApp-BQrQorKx.js"),
924
+ component: () => import("./PreviewApp-f5pmxF9e.js"),
924
925
  beforeEnter: () => window.parent !== window ? true : "/"
925
926
  });
926
927
  router.addRoute({ path: "/:pathMatch(.*)*", component: _sfc_main$2 });
@@ -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-Dm9cxSGf.cjs");
30
+ const routes = require("../routes-BYHlDu-i.cjs");
31
31
  async function renderBloxSsgPage(options) {
32
32
  var _a, _b, _c, _d;
33
33
  const {
@@ -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 createBlox, g as generateContentRoutes, i as installLocaleAwareResolve } from "../routes-v4IuPpFg.js";
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 createBlox, g as generateContentRoutes, i as installLocaleAwareResolve } from "../routes-BngHUX7M.js";
9
9
  async function renderBloxSsgPage(options) {
10
10
  var _a, _b, _c, _d;
11
11
  const {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/blox",
3
3
  "type": "module",
4
- "version": "1.15.554",
4
+ "version": "1.15.556",
5
5
  "description": "Blox page builder library for drag-and-drop page building and static data management",
6
6
  "author": {
7
7
  "name": "Bagel Studio",