@bagelink/blox 1.15.601 → 1.15.603

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-C6e-tDzD.cjs");
3
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-DeDQpkll.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-Dl3bKQTA.js";
1
+ import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-DO-6pJux.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -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, g as BLOX_RUNTIME_KEY } from "./appRuntime-B6yWkH3M.js";
2
+ import { f as BLOX_REGISTRY_KEY, r as resolveBlockProps, u as useLocale, g as BLOX_RUNTIME_KEY } from "./appRuntime-CMgL56OK.js";
3
3
  function sendToEditor(msg) {
4
4
  window.parent.postMessage(cloneForPostMessage(msg), "*");
5
5
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
- const appRuntime = require("./appRuntime-D1Z3fX-G.cjs");
3
+ const appRuntime = require("./appRuntime-DScwVn-L.cjs");
4
4
  function sendToEditor(msg) {
5
5
  window.parent.postMessage(cloneForPostMessage(msg), "*");
6
6
  }
@@ -507,7 +507,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
507
507
  }
508
508
  function tryHydrateFromState(path) {
509
509
  if ((ssrRouteState == null ? void 0 : ssrRouteState.path) === path && ssrRouteState.resolved) {
510
- applyResolvedState(ssrRouteState.resolved, path);
510
+ applyResolvedState(ssrRouteState.resolved);
511
511
  return true;
512
512
  }
513
513
  const win = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : void 0;
@@ -516,7 +516,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
516
516
  if (!state || typeof state !== "object") return false;
517
517
  const entry = state[path];
518
518
  if (!entry) return false;
519
- applyResolvedState(entry, path);
519
+ applyResolvedState(entry);
520
520
  return true;
521
521
  }
522
522
  function applyResolvedState(entry, path) {
@@ -524,7 +524,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
524
524
  blocks.value = ((_b = (_a = entry.page) == null ? void 0 : _a.content) == null ? void 0 : _b.blocks) ?? [];
525
525
  contexts.value = entry.contexts ?? {};
526
526
  currentPageId.value = ((_c = entry.page) == null ? void 0 : _c.id) ?? null;
527
- setAlternates(entry.alternates && Object.keys(entry.alternates).length ? entry.alternates : { [locale2.value]: path });
527
+ setAlternates(entry.alternates && Object.keys(entry.alternates).length ? entry.alternates : {});
528
528
  updateDocumentTitle(entry);
529
529
  }
530
530
  function hasEmbeddedState() {
@@ -1068,7 +1068,7 @@ class BloxInstance {
1068
1068
  router.addRoute({
1069
1069
  path: "/_blox_preview",
1070
1070
  name: BLOX_PREVIEW_ROUTE_NAME,
1071
- component: () => import("./PreviewApp-BagepqPk.js"),
1071
+ component: () => import("./PreviewApp-CIyd-N0N.js"),
1072
1072
  beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
1073
1073
  });
1074
1074
  }
@@ -508,7 +508,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
508
508
  }
509
509
  function tryHydrateFromState(path) {
510
510
  if ((ssrRouteState == null ? void 0 : ssrRouteState.path) === path && ssrRouteState.resolved) {
511
- applyResolvedState(ssrRouteState.resolved, path);
511
+ applyResolvedState(ssrRouteState.resolved);
512
512
  return true;
513
513
  }
514
514
  const win = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : void 0;
@@ -517,7 +517,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
517
517
  if (!state || typeof state !== "object") return false;
518
518
  const entry = state[path];
519
519
  if (!entry) return false;
520
- applyResolvedState(entry, path);
520
+ applyResolvedState(entry);
521
521
  return true;
522
522
  }
523
523
  function applyResolvedState(entry, path) {
@@ -525,7 +525,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
525
525
  blocks.value = ((_b = (_a = entry.page) == null ? void 0 : _a.content) == null ? void 0 : _b.blocks) ?? [];
526
526
  contexts.value = entry.contexts ?? {};
527
527
  currentPageId.value = ((_c = entry.page) == null ? void 0 : _c.id) ?? null;
528
- setAlternates(entry.alternates && Object.keys(entry.alternates).length ? entry.alternates : { [locale2.value]: path });
528
+ setAlternates(entry.alternates && Object.keys(entry.alternates).length ? entry.alternates : {});
529
529
  updateDocumentTitle(entry);
530
530
  }
531
531
  function hasEmbeddedState() {
@@ -1069,7 +1069,7 @@ class BloxInstance {
1069
1069
  router.addRoute({
1070
1070
  path: "/_blox_preview",
1071
1071
  name: BLOX_PREVIEW_ROUTE_NAME,
1072
- component: () => Promise.resolve().then(() => require("./PreviewApp-HVipxMQ3.cjs")),
1072
+ component: () => Promise.resolve().then(() => require("./PreviewApp-BRrYLB8D.cjs")),
1073
1073
  beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
1074
1074
  });
1075
1075
  }
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const appRuntime = require("./appRuntime-D1Z3fX-G.cjs");
4
- const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-C6e-tDzD.cjs");
3
+ const appRuntime = require("./appRuntime-DScwVn-L.cjs");
4
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-DeDQpkll.cjs");
5
5
  const vue = require("vue");
6
6
  const vueRouter = require("vue-router");
7
7
  const ssg_client = require("./ssg/client.cjs");
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { h as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, g as BLOX_RUNTIME_KEY, j as useBloxApi, k as useSeo, l as getRegistryData, m as getItemBySlug, o as getItemById, q as getContentRoute, p as provideBloxData, b as provideBloxApi, d as provideBloxLocale, i as installBloxRuntime, s as setActiveLocale, t as installSmartLinks, v as consumePendingLocaleSwitch, B as BLOX_DATA_WINDOW_KEY } from "./appRuntime-B6yWkH3M.js";
2
- import { _, w, x, y, z, A, C, D, E, P, F, G, c, a, H, I, J, K, L, M, N, O, Q, R, S, T, U, V, W, X, r, Y, Z, $, a0, a1, a2 } from "./appRuntime-B6yWkH3M.js";
3
- import { _ as _2, P as P2, s, a as a3 } from "./PreviewApp.vue_vue_type_style_index_0_lang-Dl3bKQTA.js";
1
+ import { h as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, g as BLOX_RUNTIME_KEY, j as useBloxApi, k as useSeo, l as getRegistryData, m as getItemBySlug, o as getItemById, q as getContentRoute, p as provideBloxData, b as provideBloxApi, d as provideBloxLocale, i as installBloxRuntime, s as setActiveLocale, t as installSmartLinks, v as consumePendingLocaleSwitch, B as BLOX_DATA_WINDOW_KEY } from "./appRuntime-CMgL56OK.js";
2
+ import { _, w, x, y, z, A, C, D, E, P, F, G, c, a, H, I, J, K, L, M, N, O, Q, R, S, T, U, V, W, X, r, Y, Z, $, a0, a1, a2 } from "./appRuntime-CMgL56OK.js";
3
+ import { _ as _2, P as P2, s, a as a3 } from "./PreviewApp.vue_vue_type_style_index_0_lang-DO-6pJux.js";
4
4
  import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, Transition, resolveDynamicComponent, inject, ref, watch, onMounted, onUnmounted, computed, onServerPrefetch, toValue, h, Suspense, createSSRApp, createApp } from "vue";
5
5
  import { useRouter, useRoute } from "vue-router";
6
6
  import { BLOX_STATE_WINDOW_KEY } from "./ssg/client.mjs";
@@ -26,7 +26,7 @@ const llmArtifacts = require("../validate-output-KdMpE6Uz.cjs");
26
26
  const ssg_buildGrant = require("./build-grant.cjs");
27
27
  const ssg_client = require("./client.cjs");
28
28
  const vue = require("vue");
29
- const appRuntime = require("../appRuntime-D1Z3fX-G.cjs");
29
+ const appRuntime = require("../appRuntime-DScwVn-L.cjs");
30
30
  async function renderBloxSsgPage(options) {
31
31
  var _a, _b, _c, _d;
32
32
  const {
@@ -4,7 +4,7 @@ import { parseBloxBuildGrantBody, resolveBloxBuildGrant } from "./build-grant.mj
4
4
  import { BLOX_STATE_WINDOW_KEY, BLOX_WEBSITE_ID_WINDOW_KEY } from "./client.mjs";
5
5
  import { BLOX_DATA_WINDOW_KEY } from "./client.mjs";
6
6
  import { createSSRApp, h, Suspense } from "vue";
7
- import { B as BLOX_DATA_WINDOW_KEY2, c as collectBloxData, a as collectBloxSeo, p as provideBloxData, b as provideBloxApi, d as provideBloxLocale, e as BLOX_SSR_ROUTE_STATE_KEY, i as installBloxRuntime, s as setActiveLocale } from "../appRuntime-B6yWkH3M.js";
7
+ import { B as BLOX_DATA_WINDOW_KEY2, c as collectBloxData, a as collectBloxSeo, p as provideBloxData, b as provideBloxApi, d as provideBloxLocale, e as BLOX_SSR_ROUTE_STATE_KEY, i as installBloxRuntime, s as setActiveLocale } from "../appRuntime-CMgL56OK.js";
8
8
  async function renderBloxSsgPage(options) {
9
9
  var _a, _b, _c, _d;
10
10
  const {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/blox",
3
3
  "type": "module",
4
- "version": "1.15.601",
4
+ "version": "1.15.603",
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",