@bagelink/blox 1.15.631 → 1.15.633
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-j062gN6d.cjs → PreviewApp-BtQBgxxJ.cjs} +1 -1
- package/dist/{PreviewApp-DQ5p-pJu.js → PreviewApp-D7nTn843.js} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-B9_7wgnw.cjs → PreviewApp.vue_vue_type_style_index_0_lang-BGQBi7kZ.cjs} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-DCYf0VuH.js → PreviewApp.vue_vue_type_style_index_0_lang-DDqfNEdN.js} +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/{appRuntime-DEeCouh7.js → appRuntime-MDr0X5u0.js} +2 -2
- package/dist/{appRuntime-BWlOTcQo.cjs → appRuntime-Zt_fH0wN.cjs} +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +5 -5
- package/dist/{pageTitle-tOzMNilm.js → pageTitle-BUVrac-4.js} +4 -1
- package/dist/{pageTitle-DyJ9r6xJ.cjs → pageTitle-Dh_UoICu.cjs} +4 -1
- package/dist/{shard-runner-BSUEe9p3.js → shard-runner-Cv5Cjm1f.js} +2 -2
- package/dist/{shard-runner-BJ7J4qF3.cjs → shard-runner-JbXPS_Dl.cjs} +2 -2
- package/dist/ssg/cli.cjs +3 -3
- package/dist/ssg/cli.mjs +3 -3
- package/dist/ssg/cms-routes.d.ts +5 -1
- package/dist/ssg/cms-routes.d.ts.map +1 -1
- package/dist/ssg/createSSREntry.d.ts +1 -1
- package/dist/ssg/createSSREntry.d.ts.map +1 -1
- package/dist/ssg/index.cjs +5 -5
- package/dist/ssg/index.mjs +6 -6
- package/dist/{validate-output-oVFDwKIA.cjs → validate-output-CgOarPEF.cjs} +2 -1
- package/dist/{validate-output-CRv_cnji.js → validate-output-ClPMepYU.js} +2 -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-BGQBi7kZ.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-MDr0X5u0.js";
|
|
3
3
|
function sendToEditor(msg) {
|
|
4
4
|
window.parent.postMessage(cloneForPostMessage(msg), "*");
|
|
5
5
|
}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CollectionItemsPage, PageResolveRead } from './types';
|
|
2
2
|
import { App, InjectionKey } from 'vue';
|
|
3
|
-
type CollectionResolver = (collection: string, options: ListItemsOptions) => Promise<Array<Record<string, unknown
|
|
3
|
+
type CollectionResolver = (collection: string, options: ListItemsOptions) => Promise<Array<Record<string, unknown>> | null>;
|
|
4
4
|
export interface BloxApiOptions {
|
|
5
5
|
websiteName: string;
|
|
6
6
|
store: string;
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAoB,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,CAAC,eAAe,CAAC,CAMxF;AAED,MAAM,WAAW,gBAAgB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAsB,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1D,UAAU,EAAE,MAAM,EAClB,EAAE,MAAM,EAAE,CAAC,EAAE,MAAU,EAAE,KAAW,EAAE,GAAE,gBAAqB,GAC3D,OAAO,CAAC,mBAAmB,GAAG;IAAE,KAAK,EAAE,CAAC,EAAE,CAAA;CAAE,CAAC,CAQ/C;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9D,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAMnB;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5D,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAOnB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjE,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,gBAAqB,GAC5B,OAAO,CAAC,mBAAmB,GAAG;IAAE,KAAK,EAAE,CAAC,EAAE,CAAA;CAAE,CAAC,CAE/C"}
|
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
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
|
-
import { u as useBloxApi, i as getWebsiteIdSync, h as getWebsiteId, r as resolvePageTitle, m as siteNameFromContexts, j as resolvePath, n as preserveCurrentSiteSuffix, e as configureApi, o as listItemsFromActiveApi, b as getItemBySlug, d as getItemById } from "./pageTitle-
|
|
6
|
+
import { u as useBloxApi, i as getWebsiteIdSync, h as getWebsiteId, r as resolvePageTitle, m as siteNameFromContexts, j as resolvePath, n as preserveCurrentSiteSuffix, e as configureApi, o as listItemsFromActiveApi, b as getItemBySlug, d as getItemById } from "./pageTitle-BUVrac-4.js";
|
|
7
7
|
import { useRoute, useRouter } from "vue-router";
|
|
8
8
|
import { getI18n } from "@bagelink/vue";
|
|
9
9
|
import { r as readBloxHydration } from "./client-Ce9fRCGH.js";
|
|
@@ -865,7 +865,7 @@ class BloxInstance {
|
|
|
865
865
|
router.addRoute({
|
|
866
866
|
path: "/_blox_preview",
|
|
867
867
|
name: BLOX_PREVIEW_ROUTE_NAME,
|
|
868
|
-
component: () => import("./PreviewApp-
|
|
868
|
+
component: () => import("./PreviewApp-D7nTn843.js"),
|
|
869
869
|
beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
|
|
870
870
|
});
|
|
871
871
|
}
|
|
@@ -4,7 +4,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
const pinia = require("pinia");
|
|
6
6
|
const vue = require("vue");
|
|
7
|
-
const pageTitle = require("./pageTitle-
|
|
7
|
+
const pageTitle = require("./pageTitle-Dh_UoICu.cjs");
|
|
8
8
|
const vueRouter = require("vue-router");
|
|
9
9
|
const vue$1 = require("@bagelink/vue");
|
|
10
10
|
const ssg_client = require("./client-AoDTJJXJ.cjs");
|
|
@@ -866,7 +866,7 @@ class BloxInstance {
|
|
|
866
866
|
router.addRoute({
|
|
867
867
|
path: "/_blox_preview",
|
|
868
868
|
name: BLOX_PREVIEW_ROUTE_NAME,
|
|
869
|
-
component: () => Promise.resolve().then(() => require("./PreviewApp-
|
|
869
|
+
component: () => Promise.resolve().then(() => require("./PreviewApp-BtQBgxxJ.cjs")),
|
|
870
870
|
beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
|
|
871
871
|
});
|
|
872
872
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const pageTitle = require("./pageTitle-
|
|
4
|
-
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
5
|
-
const appRuntime = require("./appRuntime-
|
|
3
|
+
const pageTitle = require("./pageTitle-Dh_UoICu.cjs");
|
|
4
|
+
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-BGQBi7kZ.cjs");
|
|
5
|
+
const appRuntime = require("./appRuntime-Zt_fH0wN.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
|
-
import { u as useBloxApi, b as getItemBySlug, d as getItemById, p as provideBloxApi } from "./pageTitle-
|
|
2
|
-
import { e, f, g, h, i, l, j, k, s } from "./pageTitle-
|
|
3
|
-
import { _, P, s as s2, 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-
|
|
1
|
+
import { u as useBloxApi, b as getItemBySlug, d as getItemById, p as provideBloxApi } from "./pageTitle-BUVrac-4.js";
|
|
2
|
+
import { e, f, g, h, i, l, j, k, s } from "./pageTitle-BUVrac-4.js";
|
|
3
|
+
import { _, P, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-DDqfNEdN.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-MDr0X5u0.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-MDr0X5u0.js";
|
|
6
6
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, Transition, resolveDynamicComponent, inject, ref, watch, onMounted, onUnmounted, computed, onServerPrefetch, toValue, h as h2, Suspense, createSSRApp, createApp } from "vue";
|
|
7
7
|
import { r as readBloxHydration } from "./client-Ce9fRCGH.js";
|
|
8
8
|
import { useRouter, useRoute } from "vue-router";
|
|
@@ -78,12 +78,15 @@ function createBloxApi(options) {
|
|
|
78
78
|
async function listItems2(collection, { locale, q, offset = 0, limit = 100 } = {}) {
|
|
79
79
|
const resolver = options.collectionResolver ?? _collectionResolver;
|
|
80
80
|
if (resolver) {
|
|
81
|
-
|
|
81
|
+
const resolved = await resolver(collection, {
|
|
82
82
|
locale,
|
|
83
83
|
q,
|
|
84
84
|
offset,
|
|
85
85
|
limit
|
|
86
86
|
});
|
|
87
|
+
if (resolved != null) {
|
|
88
|
+
return resolved;
|
|
89
|
+
}
|
|
87
90
|
}
|
|
88
91
|
return scopedRequest(`/datastore/${options.store}/collections/${collection}`, {
|
|
89
92
|
locale,
|
|
@@ -79,12 +79,15 @@ function createBloxApi(options) {
|
|
|
79
79
|
async function listItems2(collection, { locale, q, offset = 0, limit = 100 } = {}) {
|
|
80
80
|
const resolver = options.collectionResolver ?? _collectionResolver;
|
|
81
81
|
if (resolver) {
|
|
82
|
-
|
|
82
|
+
const resolved = await resolver(collection, {
|
|
83
83
|
locale,
|
|
84
84
|
q,
|
|
85
85
|
offset,
|
|
86
86
|
limit
|
|
87
87
|
});
|
|
88
|
+
if (resolved != null) {
|
|
89
|
+
return resolved;
|
|
90
|
+
}
|
|
88
91
|
}
|
|
89
92
|
return scopedRequest(`/datastore/${options.store}/collections/${collection}`, {
|
|
90
93
|
locale,
|
|
@@ -2,7 +2,7 @@ import { spawn } from "node:child_process";
|
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
5
|
-
import { f as fetchCmsSiteData, g as generateSitemapArtifacts } from "./validate-output-
|
|
5
|
+
import { f as fetchCmsSiteData, g as generateSitemapArtifacts } from "./validate-output-ClPMepYU.js";
|
|
6
6
|
const AUTO_SHARD_CAP = Number(process.env.BLOX_SSG_SHARD_CAP) || 6;
|
|
7
7
|
const PREFETCH_BUDGET = Number(process.env.BLOX_SSG_PREFETCH_BUDGET) || 24;
|
|
8
8
|
const SEQUENTIAL_SHARDS = process.env.BLOX_SSG_SEQUENTIAL === "1";
|
|
@@ -142,7 +142,7 @@ async function runSharded(opts) {
|
|
|
142
142
|
}
|
|
143
143
|
if (process.env.BLOX_SSG_LLM !== "0") {
|
|
144
144
|
try {
|
|
145
|
-
const { mergeLlmParts } = await import("./validate-output-
|
|
145
|
+
const { mergeLlmParts } = await import("./validate-output-ClPMepYU.js").then((n) => n.A);
|
|
146
146
|
const mergeWebsite = website;
|
|
147
147
|
const partFiles = Array.from({ length: total }, (_, i) => path.join(llmPartsDir, `part.${i}.json`));
|
|
148
148
|
const { pages } = await mergeLlmParts({
|
|
@@ -26,7 +26,7 @@ const node_child_process = require("node:child_process");
|
|
|
26
26
|
const os = require("node:os");
|
|
27
27
|
const path = require("node:path");
|
|
28
28
|
const process = require("node:process");
|
|
29
|
-
const llmArtifacts = require("./validate-output-
|
|
29
|
+
const llmArtifacts = require("./validate-output-CgOarPEF.cjs");
|
|
30
30
|
const AUTO_SHARD_CAP = Number(process.env.BLOX_SSG_SHARD_CAP) || 6;
|
|
31
31
|
const PREFETCH_BUDGET = Number(process.env.BLOX_SSG_PREFETCH_BUDGET) || 24;
|
|
32
32
|
const SEQUENTIAL_SHARDS = process.env.BLOX_SSG_SEQUENTIAL === "1";
|
|
@@ -166,7 +166,7 @@ async function runSharded(opts) {
|
|
|
166
166
|
}
|
|
167
167
|
if (process.env.BLOX_SSG_LLM !== "0") {
|
|
168
168
|
try {
|
|
169
|
-
const { mergeLlmParts } = await Promise.resolve().then(() => require("./validate-output-
|
|
169
|
+
const { mergeLlmParts } = await Promise.resolve().then(() => require("./validate-output-CgOarPEF.cjs")).then((n) => n.llmArtifacts);
|
|
170
170
|
const mergeWebsite = website;
|
|
171
171
|
const partFiles = Array.from({ length: total }, (_, i) => path.join(llmPartsDir, `part.${i}.json`));
|
|
172
172
|
const { pages } = await mergeLlmParts({
|
package/dist/ssg/cli.cjs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const process = require("node:process");
|
|
4
4
|
const fs = require("node:fs/promises");
|
|
5
5
|
const ssg_buildGrant = require("./build-grant.cjs");
|
|
6
|
-
const llmArtifacts = require("../validate-output-
|
|
7
|
-
const pageTitle = require("../pageTitle-
|
|
6
|
+
const llmArtifacts = require("../validate-output-CgOarPEF.cjs");
|
|
7
|
+
const pageTitle = require("../pageTitle-Dh_UoICu.cjs");
|
|
8
8
|
function installFetchTimeout() {
|
|
9
9
|
const ms = Number(process.env.BLOX_SSG_FETCH_TIMEOUT_MS) || 2e4;
|
|
10
10
|
const original = globalThis.fetch;
|
|
@@ -142,7 +142,7 @@ Environment:
|
|
|
142
142
|
if (shardsOpt !== null || routesCmd) {
|
|
143
143
|
const { apiBase: apiBase2, websiteName: configWebsiteName2 } = await resolveApiBase(mode);
|
|
144
144
|
const websiteName2 = process.env.WEBSITE_NAME ?? configWebsiteName2 ?? "default";
|
|
145
|
-
const { runSharded } = await Promise.resolve().then(() => require("../shard-runner-
|
|
145
|
+
const { runSharded } = await Promise.resolve().then(() => require("../shard-runner-JbXPS_Dl.cjs"));
|
|
146
146
|
const code = await runSharded({
|
|
147
147
|
shards: shardsOpt ?? "auto",
|
|
148
148
|
mode,
|
package/dist/ssg/cli.mjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import { resolveBloxBuildGrant } from "./build-grant.mjs";
|
|
5
|
-
import { v as validateSsgOutput, u as uploadBloxManifest, p as polyfillBloxSsgGlobals, f as fetchCmsSiteData, a as prerender, b as buildCollectionResolver } from "../validate-output-
|
|
6
|
-
import { s as setCollectionResolver } from "../pageTitle-
|
|
5
|
+
import { v as validateSsgOutput, u as uploadBloxManifest, p as polyfillBloxSsgGlobals, f as fetchCmsSiteData, a as prerender, b as buildCollectionResolver } from "../validate-output-ClPMepYU.js";
|
|
6
|
+
import { s as setCollectionResolver } from "../pageTitle-BUVrac-4.js";
|
|
7
7
|
function installFetchTimeout() {
|
|
8
8
|
const ms = Number(process.env.BLOX_SSG_FETCH_TIMEOUT_MS) || 2e4;
|
|
9
9
|
const original = globalThis.fetch;
|
|
@@ -141,7 +141,7 @@ Environment:
|
|
|
141
141
|
if (shardsOpt !== null || routesCmd) {
|
|
142
142
|
const { apiBase: apiBase2, websiteName: configWebsiteName2 } = await resolveApiBase(mode);
|
|
143
143
|
const websiteName2 = process.env.WEBSITE_NAME ?? configWebsiteName2 ?? "default";
|
|
144
|
-
const { runSharded } = await import("../shard-runner-
|
|
144
|
+
const { runSharded } = await import("../shard-runner-Cv5Cjm1f.js");
|
|
145
145
|
const code = await runSharded({
|
|
146
146
|
shards: shardsOpt ?? "auto",
|
|
147
147
|
mode,
|
package/dist/ssg/cms-routes.d.ts
CHANGED
|
@@ -38,11 +38,15 @@ export type CollectionResolver = (collection: string, options: {
|
|
|
38
38
|
q?: string;
|
|
39
39
|
offset?: number;
|
|
40
40
|
limit?: number;
|
|
41
|
-
}) => Promise<Record<string, unknown>[]>;
|
|
41
|
+
}) => Promise<Record<string, unknown>[] | null>;
|
|
42
42
|
/**
|
|
43
43
|
* Build an in-memory resolver over the bulk-loaded collection items, so data-bound
|
|
44
44
|
* detail pages resolve from memory during SSR instead of one network round-trip
|
|
45
45
|
* per page. Supports the SCIM `q` subset the renderer emits: `field eq "value"`.
|
|
46
|
+
*
|
|
47
|
+
* Returns `null` for collections that were NOT bulk-loaded during route expansion
|
|
48
|
+
* (i.e. not referenced by any dynamic template), so the caller can fall back to a
|
|
49
|
+
* live HTTP fetch instead of silently returning an empty list.
|
|
46
50
|
*/
|
|
47
51
|
export declare function buildCollectionResolver(collectionItems: Record<string, Record<string, unknown>[]>): CollectionResolver;
|
|
48
52
|
//# sourceMappingURL=cms-routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cms-routes.d.ts","sourceRoot":"","sources":["../../src/ssg/cms-routes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OA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AO,CAAC,EAAE,GAAG,IAAI,CAAC,CAAA;AAE9C;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACtC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,GACxD,kBAAkB,CAapB"}
|
|
@@ -32,7 +32,7 @@ export interface CreateBloxSSREntryOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
resolvePublishedPaths?: boolean;
|
|
34
34
|
/** Immutable build-time datastore resolver used by content routes and SEO. */
|
|
35
|
-
collectionResolver?: (collection: string, options: ListItemsOptions) => Promise<Array<Record<string, unknown
|
|
35
|
+
collectionResolver?: (collection: string, options: ListItemsOptions) => Promise<Array<Record<string, unknown>> | null>;
|
|
36
36
|
/** Default locale. @default 'en' */
|
|
37
37
|
locale?: string;
|
|
38
38
|
/** Supported locales. @default [locale] */
|
|
@@ -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,KAAK,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IAC9D;;;OAGG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MAAM,CAAA;QAChB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,OAAO,CAAC,EAAE,MAAM,CAAA;KAChB,CAAC,CAAA;IACF,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnC;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,aAAa,EAAE,EACtB,IAAI,EAAE,MAAM,EACZ,cAAc,UAAQ,GACpB,aAAa,GAAG,IAAI,CAUtB;AAuBD,wBAAsB,oBAAoB,CACzC,KAAK,EAAE,aAAa,EAAE,EACtB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,GACxD,OAAO,CAAC;IACV,IAAI,EAAE,aAAa,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,CAAA;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnC,GAAG,IAAI,CAAC,CA4DR;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,YAAY,CAkMnF"}
|
package/dist/ssg/index.cjs
CHANGED
|
@@ -22,12 +22,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
24
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
25
|
-
const llmArtifacts = require("../validate-output-
|
|
25
|
+
const llmArtifacts = require("../validate-output-CgOarPEF.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-
|
|
30
|
-
const pageTitle = require("../pageTitle-
|
|
29
|
+
const appRuntime = require("../appRuntime-Zt_fH0wN.cjs");
|
|
30
|
+
const pageTitle = require("../pageTitle-Dh_UoICu.cjs");
|
|
31
31
|
async function renderBloxSsgPage(options) {
|
|
32
32
|
var _a, _b, _c, _d;
|
|
33
33
|
const {
|
|
@@ -162,7 +162,7 @@ async function resolvePublishedPage(pages, slug, locale, resolver) {
|
|
|
162
162
|
locale,
|
|
163
163
|
q: `${binding.bind_by} eq "${escaped}"`,
|
|
164
164
|
limit: 1
|
|
165
|
-
});
|
|
165
|
+
}) ?? [];
|
|
166
166
|
const item = items[0] ?? null;
|
|
167
167
|
contexts[name] = item;
|
|
168
168
|
if (item && page.slug) {
|
|
@@ -175,7 +175,7 @@ async function resolvePublishedPage(pages, slug, locale, resolver) {
|
|
|
175
175
|
locale: targetLocale,
|
|
176
176
|
q: `id eq "${escapedId}"`,
|
|
177
177
|
limit: 1
|
|
178
|
-
});
|
|
178
|
+
}) ?? [];
|
|
179
179
|
const localizedItem = localizedItems[0];
|
|
180
180
|
const localizedValue = localizedItem == null ? void 0 : localizedItem[binding.bind_by];
|
|
181
181
|
if (typeof localizedValue !== "string" || !localizedValue) return null;
|
package/dist/ssg/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as buildPageHead, d as primaryContextEntry, e as buildJsonLd, h as extractPageText, B as BloxBuildResponseError, i as bloxBuildJson } from "../validate-output-
|
|
2
|
-
import { j, k, f, l, m, n, o, g, q, r, s, t, w, x, p, a, y, z, u, v } from "../validate-output-
|
|
1
|
+
import { c as buildPageHead, d as primaryContextEntry, e as buildJsonLd, h as extractPageText, B as BloxBuildResponseError, i as bloxBuildJson } from "../validate-output-ClPMepYU.js";
|
|
2
|
+
import { j, k, f, l, m, n, o, g, q, r, s, t, w, x, p, a, y, z, u, v } from "../validate-output-ClPMepYU.js";
|
|
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-
|
|
7
|
-
import { p as provideBloxApi, g as getCollectionResolver } from "../pageTitle-
|
|
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-MDr0X5u0.js";
|
|
7
|
+
import { p as provideBloxApi, g as getCollectionResolver } from "../pageTitle-BUVrac-4.js";
|
|
8
8
|
async function renderBloxSsgPage(options) {
|
|
9
9
|
var _a, _b, _c, _d;
|
|
10
10
|
const {
|
|
@@ -139,7 +139,7 @@ async function resolvePublishedPage(pages, slug, locale, resolver) {
|
|
|
139
139
|
locale,
|
|
140
140
|
q: `${binding.bind_by} eq "${escaped}"`,
|
|
141
141
|
limit: 1
|
|
142
|
-
});
|
|
142
|
+
}) ?? [];
|
|
143
143
|
const item = items[0] ?? null;
|
|
144
144
|
contexts[name] = item;
|
|
145
145
|
if (item && page.slug) {
|
|
@@ -152,7 +152,7 @@ async function resolvePublishedPage(pages, slug, locale, resolver) {
|
|
|
152
152
|
locale: targetLocale,
|
|
153
153
|
q: `id eq "${escapedId}"`,
|
|
154
154
|
limit: 1
|
|
155
|
-
});
|
|
155
|
+
}) ?? [];
|
|
156
156
|
const localizedItem = localizedItems[0];
|
|
157
157
|
const localizedValue = localizedItem == null ? void 0 : localizedItem[binding.bind_by];
|
|
158
158
|
if (typeof localizedValue !== "string" || !localizedValue) return null;
|
|
@@ -26,7 +26,7 @@ const fs = require("node:fs/promises");
|
|
|
26
26
|
const path = require("node:path");
|
|
27
27
|
const process$1 = require("node:process");
|
|
28
28
|
const node_url = require("node:url");
|
|
29
|
-
const pageTitle = require("./pageTitle-
|
|
29
|
+
const pageTitle = require("./pageTitle-Dh_UoICu.cjs");
|
|
30
30
|
class BloxBuildResponseError extends Error {
|
|
31
31
|
constructor(status, url, statusText) {
|
|
32
32
|
super(`Build API ${status} ${statusText}: ${url}`);
|
|
@@ -265,6 +265,7 @@ function extractCollectionRefs(pages) {
|
|
|
265
265
|
}
|
|
266
266
|
function buildCollectionResolver(collectionItems) {
|
|
267
267
|
return async (collection, { q, offset = 0, limit = 100 } = {}) => {
|
|
268
|
+
if (!(collection in collectionItems)) return null;
|
|
268
269
|
let items = collectionItems[collection] ?? [];
|
|
269
270
|
if (q) {
|
|
270
271
|
const match = /^\s*(\w+)\s+eq\s+"([^"]*)"\s*$/.exec(q);
|
|
@@ -3,7 +3,7 @@ import fs, { readFile } from "node:fs/promises";
|
|
|
3
3
|
import path, { resolve } from "node:path";
|
|
4
4
|
import process$1 from "node:process";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
|
-
import { r as resolvePageTitle, a as primaryPageContext, c as contextPageTitle } from "./pageTitle-
|
|
6
|
+
import { r as resolvePageTitle, a as primaryPageContext, c as contextPageTitle } from "./pageTitle-BUVrac-4.js";
|
|
7
7
|
class BloxBuildResponseError extends Error {
|
|
8
8
|
constructor(status, url, statusText) {
|
|
9
9
|
super(`Build API ${status} ${statusText}: ${url}`);
|
|
@@ -242,6 +242,7 @@ function extractCollectionRefs(pages) {
|
|
|
242
242
|
}
|
|
243
243
|
function buildCollectionResolver(collectionItems) {
|
|
244
244
|
return async (collection, { q, offset = 0, limit = 100 } = {}) => {
|
|
245
|
+
if (!(collection in collectionItems)) return null;
|
|
245
246
|
let items = collectionItems[collection] ?? [];
|
|
246
247
|
if (q) {
|
|
247
248
|
const match = /^\s*(\w+)\s+eq\s+"([^"]*)"\s*$/.exec(q);
|
package/package.json
CHANGED