@bagelink/blox 1.15.34 → 1.15.38
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/{prerender-QNw4gq9W.js → prerender-757e4Ct2.js} +6 -7
- package/dist/{prerender-D_Hd055h.cjs → prerender-8xjJzqZN.cjs} +6 -7
- package/dist/ssg/cli.cjs +1 -1
- package/dist/ssg/cli.mjs +1 -1
- package/dist/ssg/index.cjs +1 -1
- package/dist/ssg/index.mjs +2 -2
- package/dist/ssg/seo.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -154,7 +154,7 @@ function buildPageHead(options) {
|
|
|
154
154
|
}
|
|
155
155
|
const ogTitle = (page == null ? void 0 : page.meta_title) || ctx.title || (page == null ? void 0 : page.title) || meta.og_site_name || meta.default_meta_title;
|
|
156
156
|
const ogDesc = (page == null ? void 0 : page.meta_description) || ctx.description || meta.og_description || meta.default_meta_description;
|
|
157
|
-
const ogImage = absUrl((page == null ? void 0 : page.og_image) || ctx.image || meta.default_og_image
|
|
157
|
+
const ogImage = absUrl((page == null ? void 0 : page.og_image) || ctx.image || meta.default_og_image);
|
|
158
158
|
const ogType = meta.og_type || "website";
|
|
159
159
|
if (ogTitle) parts.push(`<meta property="og:title" content="${esc(ogTitle)}">`);
|
|
160
160
|
if (ogDesc) parts.push(`<meta property="og:description" content="${esc(ogDesc)}">`);
|
|
@@ -188,12 +188,11 @@ function buildSiteHead(website) {
|
|
|
188
188
|
if (!website) return "";
|
|
189
189
|
const parts = [];
|
|
190
190
|
const meta = website.meta ?? {};
|
|
191
|
-
const
|
|
192
|
-
const favicon = absUrl(website.favicon_url, base);
|
|
191
|
+
const favicon = absUrl(website.favicon_url);
|
|
193
192
|
if (favicon) {
|
|
194
193
|
parts.push(`<link rel="icon" href="${esc(favicon)}">`);
|
|
195
194
|
}
|
|
196
|
-
const webclip = absUrl(meta.webclip
|
|
195
|
+
const webclip = absUrl(meta.webclip);
|
|
197
196
|
if (webclip) {
|
|
198
197
|
parts.push(`<link rel="apple-touch-icon" sizes="180x180" href="${esc(webclip)}">`);
|
|
199
198
|
}
|
|
@@ -282,13 +281,13 @@ function extractPrimaryContext(contexts) {
|
|
|
282
281
|
function esc(s) {
|
|
283
282
|
return s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
284
283
|
}
|
|
285
|
-
|
|
284
|
+
const FILES_BASE_URL = "https://files.bagel.design";
|
|
285
|
+
function absUrl(value) {
|
|
286
286
|
if (!value) return null;
|
|
287
287
|
const v = value.trim();
|
|
288
288
|
if (!v) return null;
|
|
289
289
|
if (/^(https?:)?\/\//i.test(v) || v.startsWith("/")) return v;
|
|
290
|
-
|
|
291
|
-
return cleanBase ? `${cleanBase}/${v}` : `/${v}`;
|
|
290
|
+
return `${FILES_BASE_URL}/${v.replace(/^\/+/, "")}`;
|
|
292
291
|
}
|
|
293
292
|
async function prerender({
|
|
294
293
|
root = process.cwd(),
|
|
@@ -177,7 +177,7 @@ function buildPageHead(options) {
|
|
|
177
177
|
}
|
|
178
178
|
const ogTitle = (page == null ? void 0 : page.meta_title) || ctx.title || (page == null ? void 0 : page.title) || meta.og_site_name || meta.default_meta_title;
|
|
179
179
|
const ogDesc = (page == null ? void 0 : page.meta_description) || ctx.description || meta.og_description || meta.default_meta_description;
|
|
180
|
-
const ogImage = absUrl((page == null ? void 0 : page.og_image) || ctx.image || meta.default_og_image
|
|
180
|
+
const ogImage = absUrl((page == null ? void 0 : page.og_image) || ctx.image || meta.default_og_image);
|
|
181
181
|
const ogType = meta.og_type || "website";
|
|
182
182
|
if (ogTitle) parts.push(`<meta property="og:title" content="${esc(ogTitle)}">`);
|
|
183
183
|
if (ogDesc) parts.push(`<meta property="og:description" content="${esc(ogDesc)}">`);
|
|
@@ -211,12 +211,11 @@ function buildSiteHead(website) {
|
|
|
211
211
|
if (!website) return "";
|
|
212
212
|
const parts = [];
|
|
213
213
|
const meta = website.meta ?? {};
|
|
214
|
-
const
|
|
215
|
-
const favicon = absUrl(website.favicon_url, base);
|
|
214
|
+
const favicon = absUrl(website.favicon_url);
|
|
216
215
|
if (favicon) {
|
|
217
216
|
parts.push(`<link rel="icon" href="${esc(favicon)}">`);
|
|
218
217
|
}
|
|
219
|
-
const webclip = absUrl(meta.webclip
|
|
218
|
+
const webclip = absUrl(meta.webclip);
|
|
220
219
|
if (webclip) {
|
|
221
220
|
parts.push(`<link rel="apple-touch-icon" sizes="180x180" href="${esc(webclip)}">`);
|
|
222
221
|
}
|
|
@@ -305,13 +304,13 @@ function extractPrimaryContext(contexts) {
|
|
|
305
304
|
function esc(s) {
|
|
306
305
|
return s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
307
306
|
}
|
|
308
|
-
|
|
307
|
+
const FILES_BASE_URL = "https://files.bagel.design";
|
|
308
|
+
function absUrl(value) {
|
|
309
309
|
if (!value) return null;
|
|
310
310
|
const v = value.trim();
|
|
311
311
|
if (!v) return null;
|
|
312
312
|
if (/^(https?:)?\/\//i.test(v) || v.startsWith("/")) return v;
|
|
313
|
-
|
|
314
|
-
return cleanBase ? `${cleanBase}/${v}` : `/${v}`;
|
|
313
|
+
return `${FILES_BASE_URL}/${v.replace(/^\/+/, "")}`;
|
|
315
314
|
}
|
|
316
315
|
async function prerender({
|
|
317
316
|
root = process.cwd(),
|
package/dist/ssg/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
"use strict";
|
|
3
3
|
const process = require("node:process");
|
|
4
|
-
const prerender = require("../prerender-
|
|
4
|
+
const prerender = require("../prerender-8xjJzqZN.cjs");
|
|
5
5
|
async function resolveApiBase(mode) {
|
|
6
6
|
if (process.env.BAGELINK_API_URL != null && process.env.BAGELINK_API_URL !== "") {
|
|
7
7
|
return { apiBase: process.env.BAGELINK_API_URL };
|
package/dist/ssg/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import process from "node:process";
|
|
3
|
-
import { p as polyfillBloxSsgGlobals, f as fetchCmsSiteData, a as prerender } from "../prerender-
|
|
3
|
+
import { p as polyfillBloxSsgGlobals, f as fetchCmsSiteData, a as prerender } from "../prerender-757e4Ct2.js";
|
|
4
4
|
async function resolveApiBase(mode) {
|
|
5
5
|
if (process.env.BAGELINK_API_URL != null && process.env.BAGELINK_API_URL !== "") {
|
|
6
6
|
return { apiBase: process.env.BAGELINK_API_URL };
|
package/dist/ssg/index.cjs
CHANGED
|
@@ -22,7 +22,7 @@ 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 prerender = require("../prerender-
|
|
25
|
+
const prerender = require("../prerender-8xjJzqZN.cjs");
|
|
26
26
|
const ssg_client = require("./client.cjs");
|
|
27
27
|
const pinia = require("pinia");
|
|
28
28
|
const vue = require("vue");
|
package/dist/ssg/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as buildPageHead } from "../prerender-
|
|
2
|
-
import { c, d, f, g, e, h, p, a } from "../prerender-
|
|
1
|
+
import { b as buildPageHead } from "../prerender-757e4Ct2.js";
|
|
2
|
+
import { c, d, f, g, e, h, p, a } from "../prerender-757e4Ct2.js";
|
|
3
3
|
import { BLOX_STATE_WINDOW_KEY, BLOX_COLLECTIONS_WINDOW_KEY, BLOX_WEBSITE_ID_WINDOW_KEY } from "./client.mjs";
|
|
4
4
|
import { getCollectionCache, getEmbeddedWebsiteId, installBloxStateCache, installCollectionCache } from "./client.mjs";
|
|
5
5
|
import { createPinia } from "pinia";
|
package/dist/ssg/seo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seo.d.ts","sourceRoot":"","sources":["../../src/ssg/seo.ts"],"names":[],"mappings":"AAA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