@bagelink/blox 1.15.629 → 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-5XGQVrnd.cjs → PreviewApp-BtQBgxxJ.cjs} +1 -1
- package/dist/{PreviewApp-DcD_Cjzn.js → PreviewApp-D7nTn843.js} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-OZtgkMXq.cjs → PreviewApp.vue_vue_type_style_index_0_lang-BGQBi7kZ.cjs} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-m2TIr6Wk.js → PreviewApp.vue_vue_type_style_index_0_lang-DDqfNEdN.js} +1 -1
- package/dist/api/index.d.ts +3 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/{appRuntime-FphnGcV2.js → appRuntime-MDr0X5u0.js} +38 -235
- package/dist/{appRuntime-BqvP0NaP.cjs → appRuntime-Zt_fH0wN.cjs} +13 -210
- package/dist/{client-XQnL-B6N.js → client-Ce9fRCGH.js} +2 -2
- package/dist/index.cjs +23 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +52 -47
- package/dist/pageTitle-BUVrac-4.js +272 -0
- package/dist/pageTitle-Dh_UoICu.cjs +271 -0
- package/dist/{shard-runner-C7_xAkA1.js → shard-runner-Cv5Cjm1f.js} +2 -2
- package/dist/{shard-runner-CinJMC5z.cjs → shard-runner-JbXPS_Dl.cjs} +2 -2
- package/dist/ssg/cli.cjs +8 -2
- package/dist/ssg/cli.mjs +8 -2
- package/dist/ssg/client.mjs +2 -2
- package/dist/ssg/cms-routes.d.ts +23 -0
- 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 +9 -7
- package/dist/ssg/index.mjs +24 -22
- package/dist/{validate-output-DQTw64Rc.cjs → validate-output-CgOarPEF.cjs} +25 -4
- package/dist/{validate-output-e0E998g_.js → validate-output-ClPMepYU.js} +45 -24
- package/package.json +1 -1
- package/dist/pageTitle-BOTMH-D8.js +0 -56
- package/dist/pageTitle-nIl1cDfD.cjs +0 -55
|
@@ -4,196 +4,10 @@ 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
|
|
7
|
+
const pageTitle = require("./pageTitle-Dh_UoICu.cjs");
|
|
8
8
|
const vueRouter = require("vue-router");
|
|
9
9
|
const vue$1 = require("@bagelink/vue");
|
|
10
|
-
const
|
|
11
|
-
let BASE = "/api";
|
|
12
|
-
let _websiteName = "";
|
|
13
|
-
let _store = "";
|
|
14
|
-
let _websiteId = null;
|
|
15
|
-
let _origin = "";
|
|
16
|
-
const BLOX_API_KEY = Symbol("blox:api");
|
|
17
|
-
function configureApi(websiteName, store) {
|
|
18
|
-
_websiteName = websiteName;
|
|
19
|
-
_store = store;
|
|
20
|
-
_websiteId = null;
|
|
21
|
-
}
|
|
22
|
-
function setApiOrigin(base) {
|
|
23
|
-
if (!base) return;
|
|
24
|
-
try {
|
|
25
|
-
const u = new URL(base);
|
|
26
|
-
_origin = u.origin;
|
|
27
|
-
BASE = u.pathname && u.pathname !== "/" ? u.pathname.replace(/\/$/, "") : "";
|
|
28
|
-
} catch {
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function apiBase(base = "/api", origin = "") {
|
|
32
|
-
if (!origin) return { base, origin };
|
|
33
|
-
try {
|
|
34
|
-
const url = new URL(origin);
|
|
35
|
-
return {
|
|
36
|
-
origin: url.origin,
|
|
37
|
-
base: url.pathname && url.pathname !== "/" ? url.pathname.replace(/\/$/, "") : ""
|
|
38
|
-
};
|
|
39
|
-
} catch {
|
|
40
|
-
return { base, origin: "" };
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function createBloxApi(options) {
|
|
44
|
-
const configured = apiBase("/api", options.origin);
|
|
45
|
-
let websiteId = null;
|
|
46
|
-
async function scopedRequest(path, { locale: locale2, params, ...opts } = {}) {
|
|
47
|
-
const origin = configured.origin || (typeof window !== "undefined" ? window.location.origin : "");
|
|
48
|
-
const url = new URL(`${configured.base}${path}`, origin || void 0);
|
|
49
|
-
if (locale2) url.searchParams.set("locale", locale2);
|
|
50
|
-
if (params) {
|
|
51
|
-
for (const [key, value] of Object.entries(params)) url.searchParams.set(key, String(value));
|
|
52
|
-
}
|
|
53
|
-
const response = await fetch(url.toString(), opts);
|
|
54
|
-
if (!response.ok) throw new Error(`API ${response.status}: ${path}`);
|
|
55
|
-
if (response.status === 204) return null;
|
|
56
|
-
return response.json();
|
|
57
|
-
}
|
|
58
|
-
function getWebsiteIdSync2() {
|
|
59
|
-
var _a;
|
|
60
|
-
if (websiteId) return websiteId;
|
|
61
|
-
return ((_a = ssg_client.readBloxHydration()) == null ? void 0 : _a.websiteId) ?? null;
|
|
62
|
-
}
|
|
63
|
-
async function getWebsiteId2() {
|
|
64
|
-
const existing = getWebsiteIdSync2();
|
|
65
|
-
if (existing) {
|
|
66
|
-
websiteId = existing;
|
|
67
|
-
return existing;
|
|
68
|
-
}
|
|
69
|
-
try {
|
|
70
|
-
const website = await scopedRequest(
|
|
71
|
-
`/blox/sites/${encodeURIComponent(options.websiteName)}`
|
|
72
|
-
);
|
|
73
|
-
websiteId = website.id;
|
|
74
|
-
return website.id;
|
|
75
|
-
} catch {
|
|
76
|
-
throw new Error(`Website "${options.websiteName}" not found. Run: npm run seed`);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
async function listItems2(collection, { locale: locale2, q, offset = 0, limit = 100 } = {}) {
|
|
80
|
-
if (options.collectionResolver) {
|
|
81
|
-
return await options.collectionResolver(collection, {
|
|
82
|
-
locale: locale2,
|
|
83
|
-
q,
|
|
84
|
-
offset,
|
|
85
|
-
limit
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
return scopedRequest(`/datastore/${options.store}/collections/${collection}`, {
|
|
89
|
-
locale: locale2,
|
|
90
|
-
params: { ...q ? { q } : {}, offset, limit }
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
getWebsiteIdSync: getWebsiteIdSync2,
|
|
95
|
-
getWebsiteId: getWebsiteId2,
|
|
96
|
-
resolvePath: async (path, locale2) => {
|
|
97
|
-
const id = await getWebsiteId2();
|
|
98
|
-
return scopedRequest(`/blox/websites/${id}/resolve-path`, {
|
|
99
|
-
locale: locale2,
|
|
100
|
-
params: { path }
|
|
101
|
-
});
|
|
102
|
-
},
|
|
103
|
-
listItems: listItems2,
|
|
104
|
-
getItemBySlug: async (collection, slug, locale2) => {
|
|
105
|
-
const result = await listItems2(collection, { locale: locale2, limit: 1e3 });
|
|
106
|
-
const items = Array.isArray(result) ? result : (result == null ? void 0 : result.items) ?? [];
|
|
107
|
-
return items.find((item) => String((item == null ? void 0 : item.slug) ?? "") === slug) ?? null;
|
|
108
|
-
},
|
|
109
|
-
getItemById: async (collection, id, locale2) => {
|
|
110
|
-
const result = await listItems2(collection, { locale: locale2, limit: 1e3 });
|
|
111
|
-
const items = Array.isArray(result) ? result : (result == null ? void 0 : result.items) ?? [];
|
|
112
|
-
return items.find((item) => {
|
|
113
|
-
const record = item;
|
|
114
|
-
return String((record == null ? void 0 : record.id) ?? (record == null ? void 0 : record._id) ?? "") === id;
|
|
115
|
-
}) ?? null;
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
function provideBloxApi(app, options) {
|
|
120
|
-
const client = createBloxApi(options);
|
|
121
|
-
app.provide(BLOX_API_KEY, client);
|
|
122
|
-
return client;
|
|
123
|
-
}
|
|
124
|
-
function useBloxApi() {
|
|
125
|
-
return vue.getCurrentInstance() ? vue.inject(BLOX_API_KEY, null) : null;
|
|
126
|
-
}
|
|
127
|
-
async function request(path, { locale: locale2, params, ...opts } = {}) {
|
|
128
|
-
const origin = _origin || (typeof window !== "undefined" ? window.location.origin : "");
|
|
129
|
-
const url = new URL(`${BASE}${path}`, origin || void 0);
|
|
130
|
-
if (locale2) url.searchParams.set("locale", locale2);
|
|
131
|
-
if (params) {
|
|
132
|
-
for (const [k, v] of Object.entries(params)) url.searchParams.set(k, String(v));
|
|
133
|
-
}
|
|
134
|
-
const res = await fetch(url.toString(), opts);
|
|
135
|
-
if (!res.ok) throw new Error(`API ${res.status}: ${path}`);
|
|
136
|
-
if (res.status === 204) return null;
|
|
137
|
-
return res.json();
|
|
138
|
-
}
|
|
139
|
-
function getWebsiteIdSync() {
|
|
140
|
-
if (_websiteId) return _websiteId;
|
|
141
|
-
if (typeof window !== "undefined") {
|
|
142
|
-
const embedded = window[ssg_client.BLOX_WEBSITE_ID_WINDOW_KEY];
|
|
143
|
-
if (typeof embedded === "string" && embedded !== "") return embedded;
|
|
144
|
-
}
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
async function getWebsiteId() {
|
|
148
|
-
if (_websiteId) return _websiteId;
|
|
149
|
-
if (typeof window !== "undefined") {
|
|
150
|
-
const embedded = window[ssg_client.BLOX_WEBSITE_ID_WINDOW_KEY];
|
|
151
|
-
if (typeof embedded === "string" && embedded !== "") {
|
|
152
|
-
_websiteId = embedded;
|
|
153
|
-
return _websiteId;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
let website;
|
|
157
|
-
try {
|
|
158
|
-
website = await request(
|
|
159
|
-
`/blox/sites/${encodeURIComponent(_websiteName)}`
|
|
160
|
-
);
|
|
161
|
-
} catch {
|
|
162
|
-
throw new Error(`Website "${_websiteName}" not found. Run: npm run seed`);
|
|
163
|
-
}
|
|
164
|
-
_websiteId = website.id;
|
|
165
|
-
return website.id;
|
|
166
|
-
}
|
|
167
|
-
async function resolvePath(path, locale2) {
|
|
168
|
-
const websiteId = await getWebsiteId();
|
|
169
|
-
return request(`/blox/websites/${websiteId}/resolve-path`, {
|
|
170
|
-
locale: locale2,
|
|
171
|
-
params: { path }
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
async function listItems(collection, { locale: locale2, q, offset = 0, limit = 100 } = {}) {
|
|
175
|
-
return request(`/datastore/${_store}/collections/${collection}`, {
|
|
176
|
-
locale: locale2,
|
|
177
|
-
params: { ...q ? { q } : {}, offset, limit }
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
async function getItemBySlug(collection, slug, locale2) {
|
|
181
|
-
const res = await listItemsFromActiveApi(collection, { locale: locale2, limit: 1e3 });
|
|
182
|
-
const items = Array.isArray(res) ? res : (res == null ? void 0 : res.items) ?? [];
|
|
183
|
-
return items.find((item) => String((item == null ? void 0 : item.slug) ?? "") === slug) ?? null;
|
|
184
|
-
}
|
|
185
|
-
async function getItemById(collection, id, locale2) {
|
|
186
|
-
const res = await listItemsFromActiveApi(collection, { locale: locale2, limit: 1e3 });
|
|
187
|
-
const items = Array.isArray(res) ? res : (res == null ? void 0 : res.items) ?? [];
|
|
188
|
-
return items.find((item) => {
|
|
189
|
-
const record = item;
|
|
190
|
-
return String((record == null ? void 0 : record.id) ?? (record == null ? void 0 : record._id) ?? "") === id;
|
|
191
|
-
}) ?? null;
|
|
192
|
-
}
|
|
193
|
-
function listItemsFromActiveApi(collection, options = {}) {
|
|
194
|
-
var _a;
|
|
195
|
-
return ((_a = useBloxApi()) == null ? void 0 : _a.listItems(collection, options)) ?? listItems(collection, options);
|
|
196
|
-
}
|
|
10
|
+
const ssg_client = require("./client-AoDTJJXJ.cjs");
|
|
197
11
|
const BLOX_REGISTRY_KEY = Symbol("blox:registry");
|
|
198
12
|
const BLOX_CONFIG_KEY = Symbol("blox:config");
|
|
199
13
|
const BLOX_LOCALE_STRATEGY_KEY = Symbol("blox:locale-strategy");
|
|
@@ -479,13 +293,13 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
479
293
|
const strategy = vue.inject(BLOX_LOCALE_STRATEGY_KEY, null);
|
|
480
294
|
const config = vue.inject(BLOX_CONFIG_KEY, null);
|
|
481
295
|
const ssrRouteState = vue.inject(BLOX_SSR_ROUTE_STATE_KEY, null);
|
|
482
|
-
const api = useBloxApi();
|
|
296
|
+
const api = pageTitle.useBloxApi();
|
|
483
297
|
const blocks = vue.ref([]);
|
|
484
298
|
const contexts = vue.ref({});
|
|
485
299
|
vue.provide("contexts", contexts);
|
|
486
300
|
const adminConfig = vue.inject(BLOX_ADMIN_CONFIG_KEY, null);
|
|
487
301
|
const currentPageId = vue.ref(null);
|
|
488
|
-
const websiteId = vue.ref((api == null ? void 0 : api.getWebsiteIdSync()) ?? getWebsiteIdSync());
|
|
302
|
+
const websiteId = vue.ref((api == null ? void 0 : api.getWebsiteIdSync()) ?? pageTitle.getWebsiteIdSync());
|
|
489
303
|
const notFound = vue.ref(false);
|
|
490
304
|
const error = vue.ref(null);
|
|
491
305
|
const initialLoading = vue.ref(true);
|
|
@@ -553,7 +367,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
553
367
|
}
|
|
554
368
|
navigating.value = true;
|
|
555
369
|
try {
|
|
556
|
-
const resolved = await ((api == null ? void 0 : api.resolvePath(slug, urlLocale)) ?? resolvePath(slug, urlLocale));
|
|
370
|
+
const resolved = await ((api == null ? void 0 : api.resolvePath(slug, urlLocale)) ?? pageTitle.resolvePath(slug, urlLocale));
|
|
557
371
|
blocks.value = ((_a = resolved.page.content) == null ? void 0 : _a.blocks) ?? [];
|
|
558
372
|
contexts.value = resolved.contexts ?? {};
|
|
559
373
|
currentPageId.value = resolved.page.id ?? null;
|
|
@@ -578,7 +392,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
578
392
|
vue.watch(currentRoutePath, load);
|
|
579
393
|
vue.onMounted(() => {
|
|
580
394
|
if (adminConfig && !websiteId.value) {
|
|
581
|
-
((api == null ? void 0 : api.getWebsiteId()) ?? getWebsiteId()).then((id) => {
|
|
395
|
+
((api == null ? void 0 : api.getWebsiteId()) ?? pageTitle.getWebsiteId()).then((id) => {
|
|
582
396
|
websiteId.value = id;
|
|
583
397
|
}).catch(() => {
|
|
584
398
|
});
|
|
@@ -1052,7 +866,7 @@ class BloxInstance {
|
|
|
1052
866
|
router.addRoute({
|
|
1053
867
|
path: "/_blox_preview",
|
|
1054
868
|
name: BLOX_PREVIEW_ROUTE_NAME,
|
|
1055
|
-
component: () => Promise.resolve().then(() => require("./PreviewApp-
|
|
869
|
+
component: () => Promise.resolve().then(() => require("./PreviewApp-BtQBgxxJ.cjs")),
|
|
1056
870
|
beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
|
|
1057
871
|
});
|
|
1058
872
|
}
|
|
@@ -1085,7 +899,7 @@ class BloxInstance {
|
|
|
1085
899
|
if (options == null ? void 0 : options.router) this.registerRoutes(options.router);
|
|
1086
900
|
if (options == null ? void 0 : options.adminEdit) this._adminEdit = options.adminEdit;
|
|
1087
901
|
if ((options == null ? void 0 : options.websiteName) || (options == null ? void 0 : options.store)) {
|
|
1088
|
-
configureApi(options.websiteName ?? "", options.store ?? "");
|
|
902
|
+
pageTitle.configureApi(options.websiteName ?? "", options.store ?? "");
|
|
1089
903
|
}
|
|
1090
904
|
if (options == null ? void 0 : options.defaultLocale) {
|
|
1091
905
|
const { setLocale } = useLocale();
|
|
@@ -1103,7 +917,7 @@ function isBlockDefinition(value) {
|
|
|
1103
917
|
function createBlox(options) {
|
|
1104
918
|
const instance = new BloxInstance(options);
|
|
1105
919
|
if ((options == null ? void 0 : options.websiteName) || (options == null ? void 0 : options.store)) {
|
|
1106
|
-
configureApi(options.websiteName ?? "", options.store ?? "");
|
|
920
|
+
pageTitle.configureApi(options.websiteName ?? "", options.store ?? "");
|
|
1107
921
|
}
|
|
1108
922
|
if (options == null ? void 0 : options.modules) instance.registerModules(options.modules);
|
|
1109
923
|
if (options == null ? void 0 : options.components) instance.registerComponents(options.components);
|
|
@@ -1165,7 +979,7 @@ function useContentItem(collectionArg, slugArg) {
|
|
|
1165
979
|
const c = coll();
|
|
1166
980
|
const s = slg();
|
|
1167
981
|
if (!c || !s) return null;
|
|
1168
|
-
const res = await listItemsFromActiveApi(c, { locale: loc(), limit: 1e3 });
|
|
982
|
+
const res = await pageTitle.listItemsFromActiveApi(c, { locale: loc(), limit: 1e3 });
|
|
1169
983
|
const items = Array.isArray(res) ? res : (res == null ? void 0 : res.items) ?? [];
|
|
1170
984
|
return items.find((it) => String((it == null ? void 0 : it.slug) ?? "") === s) ?? null;
|
|
1171
985
|
},
|
|
@@ -1331,7 +1145,7 @@ function installContentFallback(router, supportedLocales, defaultLocale, api) {
|
|
|
1331
1145
|
registration.collection,
|
|
1332
1146
|
slug,
|
|
1333
1147
|
urlLocale
|
|
1334
|
-
)) ?? getItemBySlug(
|
|
1148
|
+
)) ?? pageTitle.getItemBySlug(
|
|
1335
1149
|
registration.collection,
|
|
1336
1150
|
slug,
|
|
1337
1151
|
urlLocale
|
|
@@ -1348,7 +1162,7 @@ function installContentFallback(router, supportedLocales, defaultLocale, api) {
|
|
|
1348
1162
|
registration.collection,
|
|
1349
1163
|
slug,
|
|
1350
1164
|
sourceLocale
|
|
1351
|
-
)) ?? getItemBySlug(
|
|
1165
|
+
)) ?? pageTitle.getItemBySlug(
|
|
1352
1166
|
registration.collection,
|
|
1353
1167
|
slug,
|
|
1354
1168
|
sourceLocale
|
|
@@ -1364,7 +1178,7 @@ function installContentFallback(router, supportedLocales, defaultLocale, api) {
|
|
|
1364
1178
|
registration.collection,
|
|
1365
1179
|
id,
|
|
1366
1180
|
urlLocale
|
|
1367
|
-
)) ?? getItemById(
|
|
1181
|
+
)) ?? pageTitle.getItemById(
|
|
1368
1182
|
registration.collection,
|
|
1369
1183
|
id,
|
|
1370
1184
|
urlLocale
|
|
@@ -1459,39 +1273,28 @@ exports.applyLayoutChrome = applyLayoutChrome;
|
|
|
1459
1273
|
exports.classifyLink = classifyLink;
|
|
1460
1274
|
exports.collectBloxData = collectBloxData;
|
|
1461
1275
|
exports.collectBloxSeo = collectBloxSeo;
|
|
1462
|
-
exports.configureApi = configureApi;
|
|
1463
1276
|
exports.consumePendingLocaleSwitch = consumePendingLocaleSwitch;
|
|
1464
1277
|
exports.contentRoutes = contentRoutes;
|
|
1465
1278
|
exports.createBlox = createBlox;
|
|
1466
|
-
exports.createBloxApi = createBloxApi;
|
|
1467
1279
|
exports.defineContent = defineContent;
|
|
1468
1280
|
exports.generateContentRoutes = generateContentRoutes;
|
|
1469
1281
|
exports.getContentRoute = getContentRoute;
|
|
1470
1282
|
exports.getContentRouteByCollection = getContentRouteByCollection;
|
|
1471
|
-
exports.getItemById = getItemById;
|
|
1472
|
-
exports.getItemBySlug = getItemBySlug;
|
|
1473
1283
|
exports.getRegistryData = getRegistryData;
|
|
1474
|
-
exports.getWebsiteId = getWebsiteId;
|
|
1475
|
-
exports.getWebsiteIdSync = getWebsiteIdSync;
|
|
1476
1284
|
exports.installBloxRuntime = installBloxRuntime;
|
|
1477
1285
|
exports.installContentFallback = installContentFallback;
|
|
1478
1286
|
exports.installSmartLinks = installSmartLinks;
|
|
1479
1287
|
exports.isAbsoluteExternal = isAbsoluteExternal;
|
|
1480
1288
|
exports.isSoloContentPage = isSoloContentPage;
|
|
1481
1289
|
exports.isSpecialScheme = isSpecialScheme;
|
|
1482
|
-
exports.listItems = listItems;
|
|
1483
1290
|
exports.normalizeLink = normalizeLink;
|
|
1484
1291
|
exports.normalizeTo = normalizeTo;
|
|
1485
|
-
exports.provideBloxApi = provideBloxApi;
|
|
1486
1292
|
exports.provideBloxData = provideBloxData;
|
|
1487
1293
|
exports.provideBloxLocale = provideBloxLocale;
|
|
1488
1294
|
exports.provideContentItem = provideContentItem;
|
|
1489
1295
|
exports.resolveBlockProps = resolveBlockProps;
|
|
1490
|
-
exports.resolvePath = resolvePath;
|
|
1491
1296
|
exports.setActiveLocale = setActiveLocale;
|
|
1492
|
-
exports.setApiOrigin = setApiOrigin;
|
|
1493
1297
|
exports.toInternalPath = toInternalPath;
|
|
1494
|
-
exports.useBloxApi = useBloxApi;
|
|
1495
1298
|
exports.useBloxEdit = useBloxEdit;
|
|
1496
1299
|
exports.useContentItem = useContentItem;
|
|
1497
1300
|
exports.useData = useData;
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-
|
|
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");
|
|
5
6
|
const vue = require("vue");
|
|
6
7
|
const ssg_client = require("./client-AoDTJJXJ.cjs");
|
|
7
8
|
const vueRouter = require("vue-router");
|
|
@@ -185,7 +186,7 @@ function useBloxRuntime() {
|
|
|
185
186
|
function useContentSeo(item, head) {
|
|
186
187
|
const route = safeRoute();
|
|
187
188
|
const { locale } = appRuntime.useLocale();
|
|
188
|
-
const api =
|
|
189
|
+
const api = pageTitle.useBloxApi();
|
|
189
190
|
const strategy = vue.inject(appRuntime.BLOX_LOCALE_STRATEGY_KEY, null);
|
|
190
191
|
const registration = () => {
|
|
191
192
|
var _a;
|
|
@@ -207,7 +208,7 @@ function useContentSeo(item, head) {
|
|
|
207
208
|
const slug = String(((_a = route == null ? void 0 : route.params) == null ? void 0 : _a.slug) ?? ((_b = vue.toValue(item)) == null ? void 0 : _b.slug) ?? "");
|
|
208
209
|
const activeLoc = String(locale.value || "en").slice(0, 2).toLowerCase();
|
|
209
210
|
const activeItem = vue.toValue(item);
|
|
210
|
-
const entity = activeItem ?? (slug ? await ((api == null ? void 0 : api.getItemBySlug(reg.collection, slug, activeLoc)) ??
|
|
211
|
+
const entity = activeItem ?? (slug ? await ((api == null ? void 0 : api.getItemBySlug(reg.collection, slug, activeLoc)) ?? pageTitle.getItemBySlug(reg.collection, slug, activeLoc)).catch(() => null) : null);
|
|
211
212
|
if (!entity) return;
|
|
212
213
|
const id = String(entity.id ?? entity._id ?? "");
|
|
213
214
|
const supported = (strategy == null ? void 0 : strategy.locales) ?? [locale.value];
|
|
@@ -216,7 +217,7 @@ function useContentSeo(item, head) {
|
|
|
216
217
|
const built = {};
|
|
217
218
|
await Promise.all(locales.map(async (loc) => {
|
|
218
219
|
var _a2;
|
|
219
|
-
const locSlug = loc === activeLoc ? String(entity.slug ?? "") : String(((_a2 = await ((api == null ? void 0 : api.getItemById(reg.collection, id, loc)) ??
|
|
220
|
+
const locSlug = loc === activeLoc ? String(entity.slug ?? "") : String(((_a2 = await ((api == null ? void 0 : api.getItemById(reg.collection, id, loc)) ?? pageTitle.getItemById(reg.collection, id, loc)).catch(() => null)) == null ? void 0 : _a2.slug) ?? "");
|
|
220
221
|
if (locSlug) built[loc] = reg.route.replace(/:slug(?=\/|$)/, locSlug);
|
|
221
222
|
}));
|
|
222
223
|
if (Object.keys(built).length > 1) alternates = built;
|
|
@@ -286,7 +287,7 @@ function createBloxApp(options) {
|
|
|
286
287
|
render: () => vue.h(vue.Suspense, null, { default: () => vue.h(rootComponent) })
|
|
287
288
|
});
|
|
288
289
|
const dataRegistry = appRuntime.provideBloxData(app);
|
|
289
|
-
const api =
|
|
290
|
+
const api = pageTitle.provideBloxApi(app, { websiteName, store });
|
|
290
291
|
const localeState = appRuntime.provideBloxLocale(app, locale);
|
|
291
292
|
const blox = appRuntime.installBloxRuntime({
|
|
292
293
|
app,
|
|
@@ -412,6 +413,22 @@ function serializeRegistry(registry) {
|
|
|
412
413
|
function buildBloxManifest(blox) {
|
|
413
414
|
return serializeRegistry(blox.getRegistry());
|
|
414
415
|
}
|
|
416
|
+
exports.configureApi = pageTitle.configureApi;
|
|
417
|
+
exports.createBloxApi = pageTitle.createBloxApi;
|
|
418
|
+
exports.getCollectionResolver = pageTitle.getCollectionResolver;
|
|
419
|
+
exports.getItemById = pageTitle.getItemById;
|
|
420
|
+
exports.getItemBySlug = pageTitle.getItemBySlug;
|
|
421
|
+
exports.getWebsiteId = pageTitle.getWebsiteId;
|
|
422
|
+
exports.getWebsiteIdSync = pageTitle.getWebsiteIdSync;
|
|
423
|
+
exports.listItems = pageTitle.listItems;
|
|
424
|
+
exports.resolvePath = pageTitle.resolvePath;
|
|
425
|
+
exports.setApiOrigin = pageTitle.setApiOrigin;
|
|
426
|
+
exports.setCollectionResolver = pageTitle.setCollectionResolver;
|
|
427
|
+
exports.useBloxApi = pageTitle.useBloxApi;
|
|
428
|
+
exports.PreviewApp = PreviewApp_vue_vue_type_style_index_0_lang._sfc_main;
|
|
429
|
+
exports.PreviewRenderer = PreviewApp_vue_vue_type_style_index_0_lang.PreviewRenderer;
|
|
430
|
+
exports.sendToEditor = PreviewApp_vue_vue_type_style_index_0_lang.sendToEditor;
|
|
431
|
+
exports.sendToPreview = PreviewApp_vue_vue_type_style_index_0_lang.sendToPreview;
|
|
415
432
|
exports.AdminEditBar = appRuntime._sfc_main;
|
|
416
433
|
exports.BLOX_ADMIN_CONFIG_KEY = appRuntime.BLOX_ADMIN_CONFIG_KEY;
|
|
417
434
|
exports.BLOX_CONFIG_KEY = appRuntime.BLOX_CONFIG_KEY;
|
|
@@ -428,41 +445,28 @@ exports.applyLayoutChrome = appRuntime.applyLayoutChrome;
|
|
|
428
445
|
exports.classifyLink = appRuntime.classifyLink;
|
|
429
446
|
exports.collectBloxData = appRuntime.collectBloxData;
|
|
430
447
|
exports.collectBloxSeo = appRuntime.collectBloxSeo;
|
|
431
|
-
exports.configureApi = appRuntime.configureApi;
|
|
432
448
|
exports.contentRoutes = appRuntime.contentRoutes;
|
|
433
449
|
exports.createBlox = appRuntime.createBlox;
|
|
434
|
-
exports.createBloxApi = appRuntime.createBloxApi;
|
|
435
450
|
exports.defineContent = appRuntime.defineContent;
|
|
436
451
|
exports.generateContentRoutes = appRuntime.generateContentRoutes;
|
|
437
452
|
exports.getContentRoute = appRuntime.getContentRoute;
|
|
438
453
|
exports.getContentRouteByCollection = appRuntime.getContentRouteByCollection;
|
|
439
|
-
exports.getItemById = appRuntime.getItemById;
|
|
440
|
-
exports.getItemBySlug = appRuntime.getItemBySlug;
|
|
441
|
-
exports.getWebsiteId = appRuntime.getWebsiteId;
|
|
442
|
-
exports.getWebsiteIdSync = appRuntime.getWebsiteIdSync;
|
|
443
454
|
exports.installContentFallback = appRuntime.installContentFallback;
|
|
444
455
|
exports.installSmartLinks = appRuntime.installSmartLinks;
|
|
445
456
|
exports.isAbsoluteExternal = appRuntime.isAbsoluteExternal;
|
|
446
457
|
exports.isSoloContentPage = appRuntime.isSoloContentPage;
|
|
447
458
|
exports.isSpecialScheme = appRuntime.isSpecialScheme;
|
|
448
|
-
exports.listItems = appRuntime.listItems;
|
|
449
459
|
exports.normalizeLink = appRuntime.normalizeLink;
|
|
450
460
|
exports.normalizeTo = appRuntime.normalizeTo;
|
|
451
461
|
exports.provideBloxData = appRuntime.provideBloxData;
|
|
452
462
|
exports.provideContentItem = appRuntime.provideContentItem;
|
|
453
463
|
exports.resolveBlockProps = appRuntime.resolveBlockProps;
|
|
454
|
-
exports.resolvePath = appRuntime.resolvePath;
|
|
455
|
-
exports.setApiOrigin = appRuntime.setApiOrigin;
|
|
456
464
|
exports.toInternalPath = appRuntime.toInternalPath;
|
|
457
465
|
exports.useBloxEdit = appRuntime.useBloxEdit;
|
|
458
466
|
exports.useContentItem = appRuntime.useContentItem;
|
|
459
467
|
exports.useData = appRuntime.useData;
|
|
460
468
|
exports.useLocale = appRuntime.useLocale;
|
|
461
469
|
exports.useSeo = appRuntime.useSeo;
|
|
462
|
-
exports.PreviewApp = PreviewApp_vue_vue_type_style_index_0_lang._sfc_main;
|
|
463
|
-
exports.PreviewRenderer = PreviewApp_vue_vue_type_style_index_0_lang.PreviewRenderer;
|
|
464
|
-
exports.sendToEditor = PreviewApp_vue_vue_type_style_index_0_lang.sendToEditor;
|
|
465
|
-
exports.sendToPreview = PreviewApp_vue_vue_type_style_index_0_lang.sendToPreview;
|
|
466
470
|
exports.readBloxHydration = ssg_client.readBloxHydration;
|
|
467
471
|
exports.BloxRouterView = _sfc_main;
|
|
468
472
|
exports.buildBloxManifest = buildBloxManifest;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { configureApi, createBloxApi, getWebsiteId, getWebsiteIdSync, listItems, resolvePath, setApiOrigin } from './api/index';
|
|
1
|
+
export { configureApi, createBloxApi, getCollectionResolver, getWebsiteId, getWebsiteIdSync, listItems, resolvePath, setApiOrigin, setCollectionResolver, useBloxApi } from './api/index';
|
|
2
2
|
export { installDocumentNavigation } from './documentNavigation';
|
|
3
3
|
export type { BloxApiClient, BloxApiOptions, ListItemsOptions } from './api/index';
|
|
4
4
|
export type { BindingWarning, Block, BloxPageApiAdapter, CollectionItem, CollectionItemsPage, ContentStatus, PageContent, PageCreateData, PageRead, PageResolveRead, PageUpdateData, WebsiteRead, } from './api/types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
+
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
|
+
import { r as readBloxHydration } from "./client-Ce9fRCGH.js";
|
|
6
8
|
import { useRouter, useRoute } from "vue-router";
|
|
7
9
|
const FORM_CONTROL_SELECTOR = "button, input, select, textarea, label, option";
|
|
8
10
|
function isEditorPreview() {
|
|
@@ -210,7 +212,7 @@ function useContentSeo(item, head) {
|
|
|
210
212
|
if (!entity) return;
|
|
211
213
|
const id = String(entity.id ?? entity._id ?? "");
|
|
212
214
|
const supported = (strategy == null ? void 0 : strategy.locales) ?? [locale.value];
|
|
213
|
-
const locales = (Array.isArray(entity.available_locales) ? entity.available_locales : []).filter((
|
|
215
|
+
const locales = (Array.isArray(entity.available_locales) ? entity.available_locales : []).filter((l2) => supported.includes(l2));
|
|
214
216
|
if (!id || !locales.length) return;
|
|
215
217
|
const built = {};
|
|
216
218
|
await Promise.all(locales.map(async (loc) => {
|
|
@@ -282,7 +284,7 @@ function createBloxApp(options) {
|
|
|
282
284
|
const createVueApp = hasSsgState ? createSSRApp : createApp;
|
|
283
285
|
const app = createVueApp({
|
|
284
286
|
name: "BloxRoot",
|
|
285
|
-
render: () =>
|
|
287
|
+
render: () => h2(Suspense, null, { default: () => h2(rootComponent) })
|
|
286
288
|
});
|
|
287
289
|
const dataRegistry = provideBloxData(app);
|
|
288
290
|
const api = provideBloxApi(app, { websiteName, store });
|
|
@@ -368,7 +370,7 @@ function defineBlock(meta) {
|
|
|
368
370
|
}
|
|
369
371
|
function withLocaleRoutes(path, component, supportedLocales, defaultLocale = "en") {
|
|
370
372
|
const normalized = path.startsWith("/") ? path : `/${path}`;
|
|
371
|
-
const prefixed = supportedLocales.filter((
|
|
373
|
+
const prefixed = supportedLocales.filter((l2) => l2 !== defaultLocale);
|
|
372
374
|
const make = (p) => ({ path: p, component });
|
|
373
375
|
const routes = [make(normalized)];
|
|
374
376
|
if (prefixed.length) {
|
|
@@ -412,66 +414,69 @@ function buildBloxManifest(blox) {
|
|
|
412
414
|
return serializeRegistry(blox.getRegistry());
|
|
413
415
|
}
|
|
414
416
|
export {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
_2 as AdminEditBar,
|
|
418
|
+
m as BLOX_ADMIN_CONFIG_KEY,
|
|
419
|
+
o as BLOX_CONFIG_KEY,
|
|
420
|
+
q as BLOX_DATA_KEY,
|
|
421
|
+
t as BLOX_LAYOUT_KEY,
|
|
420
422
|
BLOX_LOCALE_STRATEGY_KEY,
|
|
421
423
|
BLOX_RUNTIME_KEY,
|
|
422
|
-
|
|
424
|
+
v as BloxInstance,
|
|
423
425
|
_sfc_main as BloxRouterView,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
426
|
+
w as CmsPageView,
|
|
427
|
+
x as ContentDetailView,
|
|
428
|
+
y as ContentHost,
|
|
429
|
+
P2 as PageRenderer,
|
|
430
|
+
_ as PreviewApp,
|
|
431
|
+
P as PreviewRenderer,
|
|
432
|
+
z as applyLayoutChrome,
|
|
431
433
|
buildBloxManifest,
|
|
432
|
-
|
|
434
|
+
A as classifyLink,
|
|
433
435
|
c as collectBloxData,
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
436
|
+
a2 as collectBloxSeo,
|
|
437
|
+
e as configureApi,
|
|
438
|
+
C as contentRoutes,
|
|
439
|
+
D as createBlox,
|
|
440
|
+
f as createBloxApi,
|
|
439
441
|
createBloxApp,
|
|
440
442
|
defineBlock,
|
|
441
443
|
defineBloxSite,
|
|
442
|
-
|
|
443
|
-
|
|
444
|
+
E as defineContent,
|
|
445
|
+
F as generateContentRoutes,
|
|
446
|
+
g as getCollectionResolver,
|
|
444
447
|
getContentRoute,
|
|
445
|
-
|
|
448
|
+
G as getContentRouteByCollection,
|
|
446
449
|
getItemById,
|
|
447
450
|
getItemBySlug,
|
|
448
|
-
|
|
449
|
-
|
|
451
|
+
h as getWebsiteId,
|
|
452
|
+
i as getWebsiteIdSync,
|
|
450
453
|
injectPlausible,
|
|
451
|
-
|
|
454
|
+
H as installContentFallback,
|
|
452
455
|
installDocumentNavigation,
|
|
453
456
|
installSmartLinks,
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
457
|
+
I as isAbsoluteExternal,
|
|
458
|
+
J as isSoloContentPage,
|
|
459
|
+
K as isSpecialScheme,
|
|
460
|
+
l as listItems,
|
|
458
461
|
normalizeLink,
|
|
459
|
-
|
|
462
|
+
L as normalizeTo,
|
|
460
463
|
provideBloxData,
|
|
461
|
-
|
|
464
|
+
M as provideContentItem,
|
|
462
465
|
readBloxHydration,
|
|
463
466
|
r as resolveBlockProps,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
+
j as resolvePath,
|
|
468
|
+
s2 as sendToEditor,
|
|
469
|
+
a as sendToPreview,
|
|
467
470
|
serializeRegistry,
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
+
k as setApiOrigin,
|
|
472
|
+
s as setCollectionResolver,
|
|
473
|
+
N as toInternalPath,
|
|
474
|
+
useBloxApi,
|
|
475
|
+
O as useBloxEdit,
|
|
471
476
|
useBloxRuntime,
|
|
472
|
-
|
|
477
|
+
Q as useContentItem,
|
|
473
478
|
useContentSeo,
|
|
474
|
-
|
|
479
|
+
R as useData,
|
|
475
480
|
useGlobalBlock,
|
|
476
481
|
useLocale,
|
|
477
482
|
useLocaleNav,
|