@bagelink/blox 1.15.659 → 1.15.661

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 +1 @@
1
- {"version":3,"file":"CmsPageView.vue.d.ts","sourceRoot":"","sources":["../src/CmsPageView.vue"],"names":[],"mappings":";AAioBA,wBAMG"}
1
+ {"version":3,"file":"CmsPageView.vue.d.ts","sourceRoot":"","sources":["../src/CmsPageView.vue"],"names":[],"mappings":";AA2pBA,wBAMG"}
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-DNNMZc3y.js";
1
+ import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-D3nz9VR7.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -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-BunY96Db.cjs");
3
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-BP6sRzCv.cjs");
4
4
  exports.default = PreviewApp_vue_vue_type_style_index_0_lang._sfc_main;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
- const appRuntime = require("./appRuntime-wuyiLmzO.cjs");
3
+ const appRuntime = require("./appRuntime-KrtrOgvG.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 { d as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, e as BLOX_RUNTIME_KEY } from "./appRuntime-GZNiXRKQ.js";
2
+ import { d as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, e as BLOX_RUNTIME_KEY } from "./appRuntime-wD8N8dxg.js";
3
3
  function sendToEditor(msg) {
4
4
  window.parent.postMessage(cloneForPostMessage(msg), "*");
5
5
  }
@@ -320,6 +320,13 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
320
320
  if (strategy) return strategy.toPath("/", localeCode);
321
321
  return localeCode === "en" ? "/" : `/${localeCode}`;
322
322
  }
323
+ function usableAlternates(alternates) {
324
+ const out = {};
325
+ for (const [localeKey, path] of Object.entries(alternates ?? {})) {
326
+ if (typeof path === "string" && path && !path.includes(":")) out[localeKey] = path;
327
+ }
328
+ return out;
329
+ }
323
330
  function hasUnresolvedBinding(resolved) {
324
331
  var _a2;
325
332
  const bindings = (_a2 = resolved.page) == null ? void 0 : _a2.data_bindings;
@@ -349,7 +356,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
349
356
  blocks.value = ((_b = (_a2 = entry.page) == null ? void 0 : _a2.content) == null ? void 0 : _b.blocks) ?? [];
350
357
  contexts.value = entry.contexts ?? {};
351
358
  currentPageId.value = ((_c = entry.page) == null ? void 0 : _c.id) ?? null;
352
- setAlternates(entry.alternates && Object.keys(entry.alternates).length ? entry.alternates : {});
359
+ setAlternates(usableAlternates(entry.alternates));
353
360
  updateDocumentTitle(entry);
354
361
  }
355
362
  function updateDocumentTitle(resolved) {
@@ -397,7 +404,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
397
404
  blocks.value = ((_a2 = resolved.page.content) == null ? void 0 : _a2.blocks) ?? [];
398
405
  contexts.value = resolved.contexts ?? {};
399
406
  currentPageId.value = resolved.page.id ?? null;
400
- setAlternates(resolved.alternates ?? {});
407
+ setAlternates(usableAlternates(resolved.alternates));
401
408
  updateDocumentTitle(resolved);
402
409
  } catch (e) {
403
410
  const msg = e instanceof Error ? e.message : String(e);
@@ -892,7 +899,7 @@ class BloxInstance {
892
899
  router.addRoute({
893
900
  path: "/_blox_preview",
894
901
  name: BLOX_PREVIEW_ROUTE_NAME,
895
- component: () => Promise.resolve().then(() => require("./PreviewApp-6SFipygX.cjs")),
902
+ component: () => Promise.resolve().then(() => require("./PreviewApp-_sBftiOk.cjs")),
896
903
  beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
897
904
  });
898
905
  }
@@ -319,6 +319,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
319
319
  if (strategy) return strategy.toPath("/", localeCode);
320
320
  return localeCode === "en" ? "/" : `/${localeCode}`;
321
321
  }
322
+ function usableAlternates(alternates) {
323
+ const out = {};
324
+ for (const [localeKey, path] of Object.entries(alternates ?? {})) {
325
+ if (typeof path === "string" && path && !path.includes(":")) out[localeKey] = path;
326
+ }
327
+ return out;
328
+ }
322
329
  function hasUnresolvedBinding(resolved) {
323
330
  var _a2;
324
331
  const bindings = (_a2 = resolved.page) == null ? void 0 : _a2.data_bindings;
@@ -348,7 +355,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
348
355
  blocks.value = ((_b = (_a2 = entry.page) == null ? void 0 : _a2.content) == null ? void 0 : _b.blocks) ?? [];
349
356
  contexts.value = entry.contexts ?? {};
350
357
  currentPageId.value = ((_c = entry.page) == null ? void 0 : _c.id) ?? null;
351
- setAlternates(entry.alternates && Object.keys(entry.alternates).length ? entry.alternates : {});
358
+ setAlternates(usableAlternates(entry.alternates));
352
359
  updateDocumentTitle(entry);
353
360
  }
354
361
  function updateDocumentTitle(resolved) {
@@ -396,7 +403,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
396
403
  blocks.value = ((_a2 = resolved.page.content) == null ? void 0 : _a2.blocks) ?? [];
397
404
  contexts.value = resolved.contexts ?? {};
398
405
  currentPageId.value = resolved.page.id ?? null;
399
- setAlternates(resolved.alternates ?? {});
406
+ setAlternates(usableAlternates(resolved.alternates));
400
407
  updateDocumentTitle(resolved);
401
408
  } catch (e) {
402
409
  const msg = e instanceof Error ? e.message : String(e);
@@ -891,7 +898,7 @@ class BloxInstance {
891
898
  router.addRoute({
892
899
  path: "/_blox_preview",
893
900
  name: BLOX_PREVIEW_ROUTE_NAME,
894
- component: () => import("./PreviewApp-HmKWAJlr.js"),
901
+ component: () => import("./PreviewApp-6imffI4L.js"),
895
902
  beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
896
903
  });
897
904
  }
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-BunY96Db.cjs");
5
- const appRuntime = require("./appRuntime-wuyiLmzO.cjs");
4
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-BP6sRzCv.cjs");
5
+ const appRuntime = require("./appRuntime-KrtrOgvG.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-DNNMZc3y.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-GZNiXRKQ.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-GZNiXRKQ.js";
3
+ import { _, P, s, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-D3nz9VR7.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-wD8N8dxg.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-wD8N8dxg.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";
@@ -1 +1 @@
1
- {"version":3,"file":"createSSREntry.d.ts","sourceRoot":"","sources":["../../src/ssg/createSSREntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAK9D,OAAO,EAAyC,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAMrF,MAAM,WAAW,yBAAyB;IACzC,oCAAoC;IACpC,aAAa,EAAE,SAAS,CAAA;IACxB;;;;OAIG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,K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IAAI,CAAC,CAmER;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,YAAY,CAgNnF"}
@@ -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-wuyiLmzO.cjs");
29
+ const appRuntime = require("../appRuntime-KrtrOgvG.cjs");
30
30
  const index = require("../index-DUjEj7ts.cjs");
31
31
  async function renderBloxSsgPage(options) {
32
32
  var _a, _b, _c, _d;
@@ -181,10 +181,9 @@ async function resolvePublishedPage(pages, slug, locale, resolver) {
181
181
  const localizedValue = localizedItem == null ? void 0 : localizedItem[binding.bind_by];
182
182
  if (typeof localizedValue !== "string" || !localizedValue) return null;
183
183
  const template = ((_a2 = page.alternate_patterns) == null ? void 0 : _a2[targetLocale]) ?? page.slug;
184
- return [
185
- targetLocale,
186
- template.replace(`:${param.name}`, localizedValue)
187
- ];
184
+ const path = template.replace(`:${param.name}`, localizedValue);
185
+ if (path.includes(":")) return null;
186
+ return [targetLocale, path];
188
187
  }));
189
188
  alternates = Object.fromEntries(localized.filter((value2) => value2 != null));
190
189
  }
@@ -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-GZNiXRKQ.js";
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-wD8N8dxg.js";
7
7
  import { provideBloxApi, getCollectionResolver } from "../index-I81QTzv-.js";
8
8
  async function renderBloxSsgPage(options) {
9
9
  var _a, _b, _c, _d;
@@ -158,10 +158,9 @@ async function resolvePublishedPage(pages, slug, locale, resolver) {
158
158
  const localizedValue = localizedItem == null ? void 0 : localizedItem[binding.bind_by];
159
159
  if (typeof localizedValue !== "string" || !localizedValue) return null;
160
160
  const template = ((_a2 = page.alternate_patterns) == null ? void 0 : _a2[targetLocale]) ?? page.slug;
161
- return [
162
- targetLocale,
163
- template.replace(`:${param.name}`, localizedValue)
164
- ];
161
+ const path = template.replace(`:${param.name}`, localizedValue);
162
+ if (path.includes(":")) return null;
163
+ return [targetLocale, path];
165
164
  }));
166
165
  alternates = Object.fromEntries(localized.filter((value2) => value2 != null));
167
166
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/blox",
3
3
  "type": "module",
4
- "version": "1.15.659",
4
+ "version": "1.15.661",
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",