webim-adapter 1.0.2 → 1.1.0

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 ADDED
@@ -0,0 +1,11 @@
1
+ export type { WebimBundle } from './ssr';
2
+
3
+ import type { WebimBundle } from './ssr';
4
+
5
+ export function assembleBundle(input: {
6
+ page: { title?: string; slug?: string; blocks: Record<string, unknown>; meta?: Record<string, any> };
7
+ settings?: { global?: Record<string, unknown>; tenant?: Record<string, unknown> };
8
+ tenant?: string;
9
+ apiUrl?: string;
10
+ locale?: string;
11
+ }): WebimBundle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webim-adapter",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Render WebIM builder pages inside any React app",
5
5
  "author": "Orhan POLAT",
6
6
  "license": "ISC",
@@ -10,6 +10,10 @@
10
10
  "exports": {
11
11
  ".": "./build/webim-adapter.js",
12
12
  "./embed": "./build/webim-embed.js",
13
+ "./bundle": {
14
+ "types": "./bundle.d.ts",
15
+ "default": "./build/webim-bundle.js"
16
+ },
13
17
  "./ssr": {
14
18
  "types": "./ssr.d.ts",
15
19
  "default": "./build/webim-ssr.js"
@@ -17,12 +21,13 @@
17
21
  },
18
22
  "files": [
19
23
  "build",
24
+ "bundle.d.ts",
20
25
  "ssr.d.ts",
21
26
  "README.md"
22
27
  ],
23
28
  "sideEffects": false,
24
29
  "scripts": {
25
- "build": "vite build && vite build -c vite.embed.config.js && vite build -c vite.ssr.config.js",
30
+ "build": "vite build && vite build -c vite.embed.config.js && vite build -c vite.ssr.config.js && vite build -c vite.bundle.config.js",
26
31
  "watch": "vite build --watch",
27
32
  "prepublishOnly": "npm run build"
28
33
  },