@verba-ai/chat-sdk 1.0.4 → 1.0.6

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.
@@ -32,13 +32,13 @@ export declare class ChatSDK {
32
32
  /**
33
33
  * Create a new `ChatSDK` instance.
34
34
  *
35
- * @param config - SDK configuration. Only `tenant` is required.
35
+ * @param config - SDK configuration. Only `tagId` is required.
36
36
  *
37
- * @throws {ChatSDKError} if `tenant` is empty.
37
+ * @throws {ChatSDKError} if `tagId` is empty.
38
38
  */
39
39
  constructor(config: ChatSDKConfig);
40
40
  /**
41
- * Inject the widget into the DOM and establish the postMessage bridge.
41
+ * Inject the widget into the DOM
42
42
  *
43
43
  * In **floating mode** a chat bubble is rendered in the viewport corner.
44
44
  * In **inline mode** the iframe is mounted directly into the configured container.
@@ -46,9 +46,9 @@ export interface ChatBubbleConfig {
46
46
  */
47
47
  export interface ChatSDKConfig {
48
48
  /**
49
- * Your Verba tenant ID — passed via the `tnt` URL parameter.
49
+ * Your Verba tag ID — passed via the `tagId` URL parameter.
50
50
  */
51
- tenant: string;
51
+ tagId: string;
52
52
  /**
53
53
  * Visual theme of the widget.
54
54
  * Can be a simple string ('light' | 'dark') or an object for detailed customisation.
package/package.json CHANGED
@@ -1,45 +1,56 @@
1
1
  {
2
- "name": "@verba-ai/chat-sdk",
3
- "version": "1.0.4",
4
- "description": "Lightweight TypeScript SDK for embedding the Verba AI chat widget via iframe.",
5
- "keywords": [
6
- "chat",
7
- "widget",
8
- "sdk",
9
- "iframe",
10
- "verba"
11
- ],
12
- "license": "MIT",
13
- "type": "module",
14
- "main": "./dist/chat-sdk.umd.cjs",
15
- "module": "./dist/chat-sdk.es.js",
16
- "types": "./dist/types/index.d.ts",
17
- "exports": {
18
- ".": {
19
- "import": "./dist/chat-sdk.es.js",
20
- "require": "./dist/chat-sdk.umd.cjs"
2
+ "name": "@verba-ai/chat-sdk",
3
+ "version": "1.0.6",
4
+ "description": "Lightweight TypeScript SDK for embedding the Verba AI chat widget via iframe.",
5
+ "keywords": [
6
+ "chat",
7
+ "widget",
8
+ "sdk",
9
+ "iframe",
10
+ "verba"
11
+ ],
12
+ "license": "MIT",
13
+ "type": "module",
14
+ "main": "./dist/chat-sdk.umd.cjs",
15
+ "module": "./dist/chat-sdk.es.js",
16
+ "types": "./dist/types/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "import": "./dist/chat-sdk.es.js",
20
+ "require": "./dist/chat-sdk.umd.cjs"
21
+ }
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "scripts": {
27
+ "dev": "vite",
28
+ "build:lib": "tsc --noEmit && vite build --config vite.config.ts",
29
+ "build": "vite build --config vite.config.ts",
30
+ "lint": "eslint .",
31
+ "preview": "vite preview",
32
+ "prepare": "husky"
33
+ },
34
+ "lint-staged": {
35
+ "*.{ts,tsx,js,jsx}": [
36
+ "prettier --write",
37
+ "eslint --fix"
38
+ ],
39
+ "*.{json,css,html,md}": "prettier --write"
40
+ },
41
+ "devDependencies": {
42
+ "@eslint/js": "^9.39.1",
43
+ "@types/node": "^22.0.0",
44
+ "eslint": "^9.39.1",
45
+ "globals": "^16.5.0",
46
+ "husky": "^9.1.7",
47
+ "lint-staged": "^16.3.3",
48
+ "prettier": "^3.8.1",
49
+ "typescript": "^5.7.0",
50
+ "vite": "^7.3.1",
51
+ "vite-plugin-dts": "^4.5.4"
52
+ },
53
+ "dependencies": {
54
+ "framer-motion": "^12.35.2"
21
55
  }
22
- },
23
- "files": [
24
- "dist"
25
- ],
26
- "scripts": {
27
- "dev": "vite",
28
- "build:lib": "tsc --noEmit && vite build --config vite.config.ts",
29
- "build": "vite build --config vite.config.ts",
30
- "lint": "eslint .",
31
- "preview": "vite preview"
32
- },
33
- "devDependencies": {
34
- "@eslint/js": "^9.39.1",
35
- "@types/node": "^22.0.0",
36
- "eslint": "^9.39.1",
37
- "globals": "^16.5.0",
38
- "typescript": "^5.7.0",
39
- "vite": "^7.3.1",
40
- "vite-plugin-dts": "^4.5.4"
41
- },
42
- "dependencies": {
43
- "framer-motion": "^12.35.2"
44
- }
45
56
  }