webim-adapter 2.3.0 → 2.4.1

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.
@@ -204,6 +204,7 @@ function a({ page: e, settings: t, tenant: n, apiUrl: r, locale: a }) {
204
204
  schema: 1,
205
205
  title: e.title,
206
206
  slug: e.slug,
207
+ param: e.param ?? "",
207
208
  blocks: a && s.i18n?.[a]?.blocks || e.blocks,
208
209
  theme: i(s, o.builder_themes?.themes),
209
210
  components: o.builder_components?.components ?? {},
@@ -219,5 +220,12 @@ function a({ page: e, settings: t, tenant: n, apiUrl: r, locale: a }) {
219
220
  settings: o
220
221
  };
221
222
  }
223
+ function o(e) {
224
+ let t = e?.seo ?? {}, n = String(t.title || e?.title || e?.slug || "").trim(), r = e?.settings ?? {}, i = r["site.titleFormat"], a = typeof r["site.name"] == "string" ? r["site.name"].trim() : "";
225
+ if (!a || i !== "suffix" && i !== "prefix") return n;
226
+ if (!n || n.toLowerCase().includes(a.toLowerCase())) return n || a;
227
+ let o = typeof r["site.titleSeparator"] == "string" ? r["site.titleSeparator"].trim() : "", s = o ? ` ${o} ` : " ";
228
+ return i === "prefix" ? `${a}${s}${n}` : `${n}${s}${a}`;
229
+ }
222
230
  //#endregion
223
- export { a as assembleBundle };
231
+ export { a as assembleBundle, o as documentTitle };