@bagelink/blox 1.15.627 → 1.15.631

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.
Files changed (31) hide show
  1. package/dist/{PreviewApp-DcD_Cjzn.js → PreviewApp-DQ5p-pJu.js} +1 -1
  2. package/dist/{PreviewApp-5XGQVrnd.cjs → PreviewApp-j062gN6d.cjs} +1 -1
  3. package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-OZtgkMXq.cjs → PreviewApp.vue_vue_type_style_index_0_lang-B9_7wgnw.cjs} +1 -1
  4. package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-m2TIr6Wk.js → PreviewApp.vue_vue_type_style_index_0_lang-DCYf0VuH.js} +1 -1
  5. package/dist/api/index.d.ts +2 -0
  6. package/dist/api/index.d.ts.map +1 -1
  7. package/dist/{appRuntime-BqvP0NaP.cjs → appRuntime-BWlOTcQo.cjs} +13 -210
  8. package/dist/{appRuntime-FphnGcV2.js → appRuntime-DEeCouh7.js} +38 -235
  9. package/dist/{client-XQnL-B6N.js → client-Ce9fRCGH.js} +2 -2
  10. package/dist/index.cjs +23 -19
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.mjs +52 -47
  14. package/dist/pageTitle-DyJ9r6xJ.cjs +268 -0
  15. package/dist/pageTitle-tOzMNilm.js +269 -0
  16. package/dist/{shard-runner-CinJMC5z.cjs → shard-runner-BJ7J4qF3.cjs} +2 -2
  17. package/dist/{shard-runner-C7_xAkA1.js → shard-runner-BSUEe9p3.js} +2 -2
  18. package/dist/ssg/cli.cjs +8 -2
  19. package/dist/ssg/cli.mjs +8 -2
  20. package/dist/ssg/client.mjs +2 -2
  21. package/dist/ssg/cms-routes.d.ts +19 -0
  22. package/dist/ssg/cms-routes.d.ts.map +1 -1
  23. package/dist/ssg/createSSREntry.d.ts +2 -0
  24. package/dist/ssg/createSSREntry.d.ts.map +1 -1
  25. package/dist/ssg/index.cjs +10 -5
  26. package/dist/ssg/index.mjs +25 -20
  27. package/dist/{validate-output-e0E998g_.js → validate-output-CRv_cnji.js} +44 -24
  28. package/dist/{validate-output-DQTw64Rc.cjs → validate-output-oVFDwKIA.cjs} +24 -4
  29. package/package.json +1 -1
  30. package/dist/pageTitle-BOTMH-D8.js +0 -56
  31. package/dist/pageTitle-nIl1cDfD.cjs +0 -55
@@ -2,197 +2,11 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { createPinia } from "pinia";
5
- import { getCurrentInstance, inject, computed, ref, defineComponent, onMounted, unref, openBlock, createElementBlock, createElementVNode, createCommentVNode, h, provide, watch, resolveComponent, toDisplayString, createVNode, withCtx, createTextVNode, Fragment, createBlock, shallowRef, onServerPrefetch, toValue, markRaw, resolveDynamicComponent } from "vue";
6
- import { a as BLOX_WEBSITE_ID_WINDOW_KEY, r as readBloxHydration } from "./client-XQnL-B6N.js";
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-tOzMNilm.js";
7
7
  import { useRoute, useRouter } from "vue-router";
8
8
  import { getI18n } from "@bagelink/vue";
9
- import { r as resolvePageTitle, s as siteNameFromContexts, a as preserveCurrentSiteSuffix } from "./pageTitle-BOTMH-D8.js";
10
- let BASE = "/api";
11
- let _websiteName = "";
12
- let _store = "";
13
- let _websiteId = null;
14
- let _origin = "";
15
- const BLOX_API_KEY = Symbol("blox:api");
16
- function configureApi(websiteName, store) {
17
- _websiteName = websiteName;
18
- _store = store;
19
- _websiteId = null;
20
- }
21
- function setApiOrigin(base) {
22
- if (!base) return;
23
- try {
24
- const u = new URL(base);
25
- _origin = u.origin;
26
- BASE = u.pathname && u.pathname !== "/" ? u.pathname.replace(/\/$/, "") : "";
27
- } catch {
28
- }
29
- }
30
- function apiBase(base = "/api", origin = "") {
31
- if (!origin) return { base, origin };
32
- try {
33
- const url = new URL(origin);
34
- return {
35
- origin: url.origin,
36
- base: url.pathname && url.pathname !== "/" ? url.pathname.replace(/\/$/, "") : ""
37
- };
38
- } catch {
39
- return { base, origin: "" };
40
- }
41
- }
42
- function createBloxApi(options) {
43
- const configured = apiBase("/api", options.origin);
44
- let websiteId = null;
45
- async function scopedRequest(path, { locale: locale2, params, ...opts } = {}) {
46
- const origin = configured.origin || (typeof window !== "undefined" ? window.location.origin : "");
47
- const url = new URL(`${configured.base}${path}`, origin || void 0);
48
- if (locale2) url.searchParams.set("locale", locale2);
49
- if (params) {
50
- for (const [key, value] of Object.entries(params)) url.searchParams.set(key, String(value));
51
- }
52
- const response = await fetch(url.toString(), opts);
53
- if (!response.ok) throw new Error(`API ${response.status}: ${path}`);
54
- if (response.status === 204) return null;
55
- return response.json();
56
- }
57
- function getWebsiteIdSync2() {
58
- var _a;
59
- if (websiteId) return websiteId;
60
- return ((_a = readBloxHydration()) == null ? void 0 : _a.websiteId) ?? null;
61
- }
62
- async function getWebsiteId2() {
63
- const existing = getWebsiteIdSync2();
64
- if (existing) {
65
- websiteId = existing;
66
- return existing;
67
- }
68
- try {
69
- const website = await scopedRequest(
70
- `/blox/sites/${encodeURIComponent(options.websiteName)}`
71
- );
72
- websiteId = website.id;
73
- return website.id;
74
- } catch {
75
- throw new Error(`Website "${options.websiteName}" not found. Run: npm run seed`);
76
- }
77
- }
78
- async function listItems2(collection, { locale: locale2, q, offset = 0, limit = 100 } = {}) {
79
- if (options.collectionResolver) {
80
- return await options.collectionResolver(collection, {
81
- locale: locale2,
82
- q,
83
- offset,
84
- limit
85
- });
86
- }
87
- return scopedRequest(`/datastore/${options.store}/collections/${collection}`, {
88
- locale: locale2,
89
- params: { ...q ? { q } : {}, offset, limit }
90
- });
91
- }
92
- return {
93
- getWebsiteIdSync: getWebsiteIdSync2,
94
- getWebsiteId: getWebsiteId2,
95
- resolvePath: async (path, locale2) => {
96
- const id = await getWebsiteId2();
97
- return scopedRequest(`/blox/websites/${id}/resolve-path`, {
98
- locale: locale2,
99
- params: { path }
100
- });
101
- },
102
- listItems: listItems2,
103
- getItemBySlug: async (collection, slug, locale2) => {
104
- const result = await listItems2(collection, { locale: locale2, limit: 1e3 });
105
- const items = Array.isArray(result) ? result : (result == null ? void 0 : result.items) ?? [];
106
- return items.find((item) => String((item == null ? void 0 : item.slug) ?? "") === slug) ?? null;
107
- },
108
- getItemById: async (collection, id, locale2) => {
109
- const result = await listItems2(collection, { locale: locale2, limit: 1e3 });
110
- const items = Array.isArray(result) ? result : (result == null ? void 0 : result.items) ?? [];
111
- return items.find((item) => {
112
- const record = item;
113
- return String((record == null ? void 0 : record.id) ?? (record == null ? void 0 : record._id) ?? "") === id;
114
- }) ?? null;
115
- }
116
- };
117
- }
118
- function provideBloxApi(app, options) {
119
- const client = createBloxApi(options);
120
- app.provide(BLOX_API_KEY, client);
121
- return client;
122
- }
123
- function useBloxApi() {
124
- return getCurrentInstance() ? inject(BLOX_API_KEY, null) : null;
125
- }
126
- async function request(path, { locale: locale2, params, ...opts } = {}) {
127
- const origin = _origin || (typeof window !== "undefined" ? window.location.origin : "");
128
- const url = new URL(`${BASE}${path}`, origin || void 0);
129
- if (locale2) url.searchParams.set("locale", locale2);
130
- if (params) {
131
- for (const [k, v] of Object.entries(params)) url.searchParams.set(k, String(v));
132
- }
133
- const res = await fetch(url.toString(), opts);
134
- if (!res.ok) throw new Error(`API ${res.status}: ${path}`);
135
- if (res.status === 204) return null;
136
- return res.json();
137
- }
138
- function getWebsiteIdSync() {
139
- if (_websiteId) return _websiteId;
140
- if (typeof window !== "undefined") {
141
- const embedded = window[BLOX_WEBSITE_ID_WINDOW_KEY];
142
- if (typeof embedded === "string" && embedded !== "") return embedded;
143
- }
144
- return null;
145
- }
146
- async function getWebsiteId() {
147
- if (_websiteId) return _websiteId;
148
- if (typeof window !== "undefined") {
149
- const embedded = window[BLOX_WEBSITE_ID_WINDOW_KEY];
150
- if (typeof embedded === "string" && embedded !== "") {
151
- _websiteId = embedded;
152
- return _websiteId;
153
- }
154
- }
155
- let website;
156
- try {
157
- website = await request(
158
- `/blox/sites/${encodeURIComponent(_websiteName)}`
159
- );
160
- } catch {
161
- throw new Error(`Website "${_websiteName}" not found. Run: npm run seed`);
162
- }
163
- _websiteId = website.id;
164
- return website.id;
165
- }
166
- async function resolvePath(path, locale2) {
167
- const websiteId = await getWebsiteId();
168
- return request(`/blox/websites/${websiteId}/resolve-path`, {
169
- locale: locale2,
170
- params: { path }
171
- });
172
- }
173
- async function listItems(collection, { locale: locale2, q, offset = 0, limit = 100 } = {}) {
174
- return request(`/datastore/${_store}/collections/${collection}`, {
175
- locale: locale2,
176
- params: { ...q ? { q } : {}, offset, limit }
177
- });
178
- }
179
- async function getItemBySlug(collection, slug, locale2) {
180
- const res = await listItemsFromActiveApi(collection, { locale: locale2, limit: 1e3 });
181
- const items = Array.isArray(res) ? res : (res == null ? void 0 : res.items) ?? [];
182
- return items.find((item) => String((item == null ? void 0 : item.slug) ?? "") === slug) ?? null;
183
- }
184
- async function getItemById(collection, id, locale2) {
185
- const res = await listItemsFromActiveApi(collection, { locale: locale2, limit: 1e3 });
186
- const items = Array.isArray(res) ? res : (res == null ? void 0 : res.items) ?? [];
187
- return items.find((item) => {
188
- const record = item;
189
- return String((record == null ? void 0 : record.id) ?? (record == null ? void 0 : record._id) ?? "") === id;
190
- }) ?? null;
191
- }
192
- function listItemsFromActiveApi(collection, options = {}) {
193
- var _a;
194
- return ((_a = useBloxApi()) == null ? void 0 : _a.listItems(collection, options)) ?? listItems(collection, options);
195
- }
9
+ import { r as readBloxHydration } from "./client-Ce9fRCGH.js";
196
10
  const BLOX_REGISTRY_KEY = Symbol("blox:registry");
197
11
  const BLOX_CONFIG_KEY = Symbol("blox:config");
198
12
  const BLOX_LOCALE_STRATEGY_KEY = Symbol("blox:locale-strategy");
@@ -1051,7 +865,7 @@ class BloxInstance {
1051
865
  router.addRoute({
1052
866
  path: "/_blox_preview",
1053
867
  name: BLOX_PREVIEW_ROUTE_NAME,
1054
- component: () => import("./PreviewApp-DcD_Cjzn.js"),
868
+ component: () => import("./PreviewApp-DQ5p-pJu.js"),
1055
869
  beforeEnter: () => typeof window === "undefined" || window.parent !== window ? true : "/"
1056
870
  });
1057
871
  }
@@ -1441,60 +1255,49 @@ function installBloxRuntime(options) {
1441
1255
  return blox;
1442
1256
  }
1443
1257
  export {
1444
- useBloxEdit as $,
1445
- _sfc_main$2 as A,
1258
+ classifyLink as A,
1446
1259
  BLOX_SSR_ROUTE_STATE_KEY as B,
1447
- _sfc_main$1 as C,
1448
- _sfc_main as D,
1449
- applyLayoutChrome as E,
1450
- classifyLink as F,
1451
- configureApi as G,
1452
- contentRoutes as H,
1453
- createBlox as I,
1454
- createBloxApi as J,
1455
- defineContent as K,
1456
- generateContentRoutes as L,
1457
- getContentRouteByCollection as M,
1458
- getWebsiteId as N,
1459
- getWebsiteIdSync as O,
1260
+ contentRoutes as C,
1261
+ createBlox as D,
1262
+ defineContent as E,
1263
+ generateContentRoutes as F,
1264
+ getContentRouteByCollection as G,
1265
+ installContentFallback as H,
1266
+ isAbsoluteExternal as I,
1267
+ isSoloContentPage as J,
1268
+ isSpecialScheme as K,
1269
+ normalizeTo as L,
1270
+ provideContentItem as M,
1271
+ toInternalPath as N,
1272
+ useBloxEdit as O,
1460
1273
  PageRenderer as P,
1461
- installContentFallback as Q,
1462
- isAbsoluteExternal as R,
1463
- isSoloContentPage as S,
1464
- isSpecialScheme as T,
1465
- listItems as U,
1466
- normalizeTo as V,
1467
- provideContentItem as W,
1468
- resolvePath as X,
1469
- setApiOrigin as Y,
1470
- toInternalPath as Z,
1274
+ useContentItem as Q,
1275
+ useData as R,
1471
1276
  _sfc_main$3 as _,
1472
1277
  collectBloxSeo as a,
1473
- useContentItem as a0,
1474
- useData as a1,
1475
- provideBloxApi as b,
1278
+ provideBloxLocale as b,
1476
1279
  collectBloxData as c,
1477
- provideBloxLocale as d,
1478
- BLOX_REGISTRY_KEY as e,
1479
- BLOX_RUNTIME_KEY as f,
1480
- BLOX_LOCALE_STRATEGY_KEY as g,
1481
- useBloxApi as h,
1280
+ BLOX_REGISTRY_KEY as d,
1281
+ BLOX_RUNTIME_KEY as e,
1282
+ BLOX_LOCALE_STRATEGY_KEY as f,
1283
+ useSeo as g,
1284
+ getRegistryData as h,
1482
1285
  installBloxRuntime as i,
1483
- useSeo as j,
1484
- getRegistryData as k,
1485
- getItemBySlug as l,
1486
- getItemById as m,
1286
+ getContentRoute as j,
1287
+ installSmartLinks as k,
1288
+ consumePendingLocaleSwitch as l,
1289
+ BLOX_ADMIN_CONFIG_KEY as m,
1487
1290
  normalizeLink as n,
1488
- getContentRoute as o,
1291
+ BLOX_CONFIG_KEY as o,
1489
1292
  provideBloxData as p,
1490
- installSmartLinks as q,
1293
+ BLOX_DATA_KEY as q,
1491
1294
  resolveBlockProps as r,
1492
1295
  setActiveLocale as s,
1493
- consumePendingLocaleSwitch as t,
1296
+ BLOX_LAYOUT_KEY as t,
1494
1297
  useLocale as u,
1495
- BLOX_ADMIN_CONFIG_KEY as v,
1496
- BLOX_CONFIG_KEY as w,
1497
- BLOX_DATA_KEY as x,
1498
- BLOX_LAYOUT_KEY as y,
1499
- BloxInstance as z
1298
+ BloxInstance as v,
1299
+ _sfc_main$2 as w,
1300
+ _sfc_main$1 as x,
1301
+ _sfc_main as y,
1302
+ applyLayoutChrome as z
1500
1303
  };
@@ -24,7 +24,7 @@ function readBloxHydration() {
24
24
  };
25
25
  }
26
26
  export {
27
- BLOX_HYDRATION_WINDOW_KEY as B,
28
- BLOX_WEBSITE_ID_WINDOW_KEY as a,
27
+ BLOX_WEBSITE_ID_WINDOW_KEY as B,
28
+ BLOX_HYDRATION_WINDOW_KEY as a,
29
29
  readBloxHydration as r
30
30
  };
package/dist/index.cjs CHANGED
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const appRuntime = require("./appRuntime-BqvP0NaP.cjs");
4
- const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-OZtgkMXq.cjs");
3
+ const pageTitle = require("./pageTitle-DyJ9r6xJ.cjs");
4
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-B9_7wgnw.cjs");
5
+ const appRuntime = require("./appRuntime-BWlOTcQo.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 = appRuntime.useBloxApi();
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)) ?? appRuntime.getItemBySlug(reg.collection, slug, activeLoc)).catch(() => null) : null);
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)) ?? appRuntime.getItemById(reg.collection, id, loc)).catch(() => null)) == null ? void 0 : _a2.slug) ?? "");
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 = appRuntime.provideBloxApi(app, { websiteName, store });
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';
@@ -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;AAC/H,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAChE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAKlF,YAAY,EACX,cAAc,EACd,KAAK,EAEL,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,cAAc,EACd,QAAQ,EACR,eAAe,EACf,cAAc,EACd,WAAW,GACX,MAAM,aAAa,CAAA;AAIpB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACtD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAI9E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAK3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAKjD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAExE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,eAA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O,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAK1E,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACjE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAKlE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAI5E,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,eAAe,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC/H,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAClG,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA"}
package/dist/index.mjs CHANGED
@@ -1,8 +1,10 @@
1
- import { g as BLOX_LOCALE_STRATEGY_KEY, u as useLocale, n as normalizeLink, f as BLOX_RUNTIME_KEY, h as useBloxApi, j as useSeo, k as getRegistryData, l as getItemBySlug, m as getItemById, o as getContentRoute, p as provideBloxData, b as provideBloxApi, d as provideBloxLocale, i as installBloxRuntime, s as setActiveLocale, q as installSmartLinks, t as consumePendingLocaleSwitch } from "./appRuntime-FphnGcV2.js";
2
- import { _, v, w, x, y, z, A, C, D, P, E, F, c, a, G, H, I, J, K, L, M, N, O, Q, R, S, T, U, V, W, r, X, Y, Z, $, a0, a1 } from "./appRuntime-FphnGcV2.js";
3
- import { _ as _2, P as P2, s, a as a2 } from "./PreviewApp.vue_vue_type_style_index_0_lang-m2TIr6Wk.js";
4
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, Transition, resolveDynamicComponent, inject, ref, watch, onMounted, onUnmounted, computed, onServerPrefetch, toValue, h, Suspense, createSSRApp, createApp } from "vue";
5
- import { r as readBloxHydration } from "./client-XQnL-B6N.js";
1
+ import { u as useBloxApi, b as getItemBySlug, d as getItemById, p as provideBloxApi } from "./pageTitle-tOzMNilm.js";
2
+ import { e, f, g, h, i, l, j, k, s } from "./pageTitle-tOzMNilm.js";
3
+ import { _, P, s as s2, a } from "./PreviewApp.vue_vue_type_style_index_0_lang-DCYf0VuH.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-DEeCouh7.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-DEeCouh7.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((l) => supported.includes(l));
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: () => h(Suspense, null, { default: () => h(rootComponent) })
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((l) => l !== defaultLocale);
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
- _ as AdminEditBar,
416
- v as BLOX_ADMIN_CONFIG_KEY,
417
- w as BLOX_CONFIG_KEY,
418
- x as BLOX_DATA_KEY,
419
- y as BLOX_LAYOUT_KEY,
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
- z as BloxInstance,
424
+ v as BloxInstance,
423
425
  _sfc_main as BloxRouterView,
424
- A as CmsPageView,
425
- C as ContentDetailView,
426
- D as ContentHost,
427
- P as PageRenderer,
428
- _2 as PreviewApp,
429
- P2 as PreviewRenderer,
430
- E as applyLayoutChrome,
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
- F as classifyLink,
434
+ A as classifyLink,
433
435
  c as collectBloxData,
434
- a as collectBloxSeo,
435
- G as configureApi,
436
- H as contentRoutes,
437
- I as createBlox,
438
- J as createBloxApi,
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
- K as defineContent,
443
- L as generateContentRoutes,
444
+ E as defineContent,
445
+ F as generateContentRoutes,
446
+ g as getCollectionResolver,
444
447
  getContentRoute,
445
- M as getContentRouteByCollection,
448
+ G as getContentRouteByCollection,
446
449
  getItemById,
447
450
  getItemBySlug,
448
- N as getWebsiteId,
449
- O as getWebsiteIdSync,
451
+ h as getWebsiteId,
452
+ i as getWebsiteIdSync,
450
453
  injectPlausible,
451
- Q as installContentFallback,
454
+ H as installContentFallback,
452
455
  installDocumentNavigation,
453
456
  installSmartLinks,
454
- R as isAbsoluteExternal,
455
- S as isSoloContentPage,
456
- T as isSpecialScheme,
457
- U as listItems,
457
+ I as isAbsoluteExternal,
458
+ J as isSoloContentPage,
459
+ K as isSpecialScheme,
460
+ l as listItems,
458
461
  normalizeLink,
459
- V as normalizeTo,
462
+ L as normalizeTo,
460
463
  provideBloxData,
461
- W as provideContentItem,
464
+ M as provideContentItem,
462
465
  readBloxHydration,
463
466
  r as resolveBlockProps,
464
- X as resolvePath,
465
- s as sendToEditor,
466
- a2 as sendToPreview,
467
+ j as resolvePath,
468
+ s2 as sendToEditor,
469
+ a as sendToPreview,
467
470
  serializeRegistry,
468
- Y as setApiOrigin,
469
- Z as toInternalPath,
470
- $ as useBloxEdit,
471
+ k as setApiOrigin,
472
+ s as setCollectionResolver,
473
+ N as toInternalPath,
474
+ useBloxApi,
475
+ O as useBloxEdit,
471
476
  useBloxRuntime,
472
- a0 as useContentItem,
477
+ Q as useContentItem,
473
478
  useContentSeo,
474
- a1 as useData,
479
+ R as useData,
475
480
  useGlobalBlock,
476
481
  useLocale,
477
482
  useLocaleNav,