webim-adapter 2.4.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.
package/bundle.d.ts CHANGED
@@ -9,3 +9,6 @@ export function assembleBundle(input: {
9
9
  apiUrl?: string;
10
10
  locale?: string;
11
11
  }): WebimBundle;
12
+
13
+ /** The page's <title> with the site name added per the site.titleFormat setting. */
14
+ export function documentTitle(bundle: WebimBundle): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webim-adapter",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Render Web-IM builder pages inside any React app",
5
5
  "author": "Orhan POLAT",
6
6
  "license": "ISC",
package/ssr.d.ts CHANGED
@@ -7,6 +7,8 @@ export interface WebimBundle {
7
7
  components?: Record<string, unknown>;
8
8
  custom?: { css?: string; js?: string };
9
9
  seo?: { title?: string; description?: string; image?: string; noindex?: boolean };
10
+ /** The merged PUBLIC settings (site.name, site.titleFormat, …). */
11
+ settings?: Record<string, unknown>;
10
12
  locales?: unknown;
11
13
  tenant?: string;
12
14
  apiUrl?: string;
@@ -33,6 +35,9 @@ export function fetchPage(options: {
33
35
  fetch?: typeof fetch;
34
36
  }): Promise<WebimBundle>;
35
37
 
38
+ /** The page's <title> with the site name added per the site.titleFormat setting. */
39
+ export function documentTitle(bundle: WebimBundle): string;
40
+
36
41
  export function renderBundleHtml(bundle: WebimBundle, options?: RenderOptions & { style?: object }): string;
37
42
 
38
43
  export function renderPageDocument(bundle: WebimBundle, options?: RenderOptions & { lang?: string }): string;