@release0/js 1.1.9 → 1.2.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/README.md +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/web.js +33 -33
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ npm install @release0/js
|
|
|
16
16
|
|
|
17
17
|
```
|
|
18
18
|
<script type="module">
|
|
19
|
-
import Agent from 'https://cdn.jsdelivr.net/npm/@release0/js@1.
|
|
19
|
+
import Agent from 'https://cdn.jsdelivr.net/npm/@release0/js@1.2.0/dist/web.js'
|
|
20
20
|
|
|
21
21
|
Agent.initStandard({
|
|
22
22
|
agent: 'my-agent-id',
|
|
@@ -34,7 +34,7 @@ There, you can change the container dimensions. Here is a code example:
|
|
|
34
34
|
|
|
35
35
|
```html
|
|
36
36
|
<script type="module">
|
|
37
|
-
import Agent from "https://cdn.jsdelivr.net/npm/@release0/js@1.
|
|
37
|
+
import Agent from "https://cdn.jsdelivr.net/npm/@release0/js@1.2.0/dist/web.js";
|
|
38
38
|
|
|
39
39
|
Agent.initStandard({
|
|
40
40
|
agent: "my-agent-id",
|
|
@@ -54,7 +54,7 @@ Here is an example:
|
|
|
54
54
|
|
|
55
55
|
```html
|
|
56
56
|
<script type="module">
|
|
57
|
-
import Agent from "https://cdn.jsdelivr.net/npm/@release0/js@1.
|
|
57
|
+
import Agent from "https://cdn.jsdelivr.net/npm/@release0/js@1.2.0/dist/web.js";
|
|
58
58
|
|
|
59
59
|
Agent.initPopup({
|
|
60
60
|
agent: "ag_herexisxyourxagentxid",
|
|
@@ -96,7 +96,7 @@ Here is an example:
|
|
|
96
96
|
|
|
97
97
|
```html
|
|
98
98
|
<script type="module">
|
|
99
|
-
import Agent from "https://cdn.jsdelivr.net/npm/@release0/js@1.
|
|
99
|
+
import Agent from "https://cdn.jsdelivr.net/npm/@release0/js@1.2.0/dist/web.js";
|
|
100
100
|
|
|
101
101
|
Agent.initBubble({
|
|
102
102
|
agent: "ag_herexisxyourxagentxid",
|
|
@@ -152,12 +152,12 @@ You can bind these commands on a button element, for example:
|
|
|
152
152
|
|
|
153
153
|
## Additional configuration
|
|
154
154
|
|
|
155
|
-
You can prefill the agent variable values in your embed code by adding the `
|
|
155
|
+
You can prefill the agent variable values in your embed code by adding the `initialContext` option. Here is an example:
|
|
156
156
|
|
|
157
157
|
```js
|
|
158
158
|
Agent.initStandard({
|
|
159
159
|
agent: "ag_herexisxyourxagentxid",
|
|
160
|
-
|
|
160
|
+
initialContext: {
|
|
161
161
|
"Account URL": "https://my-site.com/account",
|
|
162
162
|
"User name": "My username",
|
|
163
163
|
},
|
package/dist/index.d.ts
CHANGED