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.
- package/CHANGELOG.md +11 -0
- package/build/webim-adapter.js +2879 -1561
- package/build/webim-bundle.js +9 -1
- package/build/webim-embed.js +22 -22
- package/build/webim-ssr.js +2937 -1610
- package/bundle.d.ts +3 -0
- package/package.json +1 -1
- package/ssr.d.ts +5 -0
package/bundle.d.ts
CHANGED
package/package.json
CHANGED
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;
|