@thisispamela/widget 1.1.0 → 1.1.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/README.md +14 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -23,7 +23,8 @@ Example:
|
|
|
23
23
|
<script src="https://cdn.thisispamela.com/widget.js"></script>
|
|
24
24
|
<script>
|
|
25
25
|
Pamela.init({
|
|
26
|
-
apiKey: 'pk_live_xxx',
|
|
26
|
+
apiKey: 'pk_live_xxx', // OR use accessToken for OAuth
|
|
27
|
+
// accessToken: 'at_xxx', // OAuth access token (alternative to apiKey)
|
|
27
28
|
mode: 'floating',
|
|
28
29
|
theme: 'auto',
|
|
29
30
|
position: 'bottom-right',
|
|
@@ -47,15 +48,18 @@ Pamela.init({ apiKey: 'pk_live_xxx', mode: 'floating' });
|
|
|
47
48
|
|
|
48
49
|
### `Pamela.init(options)`
|
|
49
50
|
|
|
50
|
-
| Option
|
|
51
|
-
|
|
|
52
|
-
| `apiKey`
|
|
53
|
-
| `
|
|
54
|
-
| `
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
51
|
+
| Option | Type | Default | Description |
|
|
52
|
+
| ------------- | ------ | -------------- | ------------------------------ |
|
|
53
|
+
| `apiKey` | string | **required**\* | Enterprise API key |
|
|
54
|
+
| `accessToken` | string | **required**\* | OAuth access token (alternative to apiKey) |
|
|
55
|
+
| `mode` | string | `'floating'` | `'floating'` \| `'modal'` \| `'inline'` \| `'none'` |
|
|
56
|
+
| `theme` | string | `'auto'` | `'light'` \| `'dark'` \| `'auto'` |
|
|
57
|
+
| `position` | string | `'bottom-right'` | Floating button position |
|
|
58
|
+
| `baseUrl` | string | Production API | Custom API base URL |
|
|
59
|
+
| `defaults` | object | — | Default voice, agentName, callerName, maxDuration |
|
|
60
|
+
| `styles` | object | — | CSS variable overrides: `--pamela-accent`, `--pamela-primary`, `--pamela-background`, `--pamela-text`, `--pamela-border-radius`, `--pamela-font` |
|
|
61
|
+
|
|
62
|
+
\* Either `apiKey` or `accessToken` is required (not both)
|
|
59
63
|
|
|
60
64
|
### `Pamela.call(options)`
|
|
61
65
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisispamela/widget",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Embeddable Pamela Voice AI widget for any website",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/widget.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "Pamela",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@thisispamela/sdk": "
|
|
34
|
+
"@thisispamela/sdk": "^1.1.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@rollup/plugin-commonjs": "^25.0.0",
|