@lemonsliceai/lemon-slice-widget 1.0.9 → 1.0.12
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 +28 -38
- package/dist/index.js +30 -30
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -1,49 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# video-chat-widget
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## CLI Commands
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
``` bash
|
|
6
|
+
# install dependencies
|
|
7
|
+
pnpm install
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<lemon-slice-widget agent-id="agent_id"></lemon-slice-widget>
|
|
10
|
-
<script type="module" src="https://unpkg.com/@lemonsliceai/lemon-slice-widget"></script>
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Configuration
|
|
14
|
-
|
|
15
|
-
### Attributes
|
|
16
|
-
|
|
17
|
-
- **`agent-id`** (required): Your LemonSlice agent ID
|
|
18
|
-
- **`inline`**: Display widget inline instead of floating (default: `false`)
|
|
19
|
-
- **`show-minimize-button`**: Show/hide the minimize button (default: `true`)
|
|
20
|
-
- **`initial-state`**: Initial widget state on load - `"minimized"`, `"active"`, or `"hidden"` (default: `"minimized"`)
|
|
21
|
-
- **`controlled-widget-state`**: Dynamically control widget state - `"minimized"`, `"active"`, or `"hidden"`
|
|
22
|
-
- **`controlled-show-minimize-button`**: Dynamically control minimize button visibility - `"true"` or `"false"`
|
|
9
|
+
# serve with hot reload at localhost:5177
|
|
10
|
+
pnpm run dev
|
|
23
11
|
|
|
24
|
-
|
|
12
|
+
# lint the project with eslint to find code style issues
|
|
13
|
+
pnpm run lint
|
|
25
14
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<lemon-slice-widget agent-id="agent_id" initial-state="active"></lemon-slice-widget>
|
|
29
|
-
|
|
30
|
-
<!-- Hide minimize button -->
|
|
31
|
-
<lemon-slice-widget agent-id="agent_id" show-minimize-button="false"></lemon-slice-widget>
|
|
32
|
-
|
|
33
|
-
<!-- Inline widget -->
|
|
34
|
-
<lemon-slice-widget agent-id="agent_id" inline></lemon-slice-widget>
|
|
15
|
+
# run tests with jest and vitest
|
|
16
|
+
pnpm run test
|
|
35
17
|
```
|
|
36
18
|
|
|
37
|
-
|
|
19
|
+
## How to Deploy
|
|
38
20
|
|
|
39
|
-
|
|
21
|
+
``` bash
|
|
22
|
+
# Login to lemon slice npm account
|
|
23
|
+
npm login
|
|
40
24
|
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
# Update version by running one of these commands
|
|
26
|
+
npm version patch # 0.0.X
|
|
27
|
+
npm version minor # 0.X.0
|
|
28
|
+
npm version major # X.0.0
|
|
43
29
|
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
# Build the latest code
|
|
31
|
+
npm run build
|
|
46
32
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
# Publish it
|
|
34
|
+
npm publish --access public
|
|
35
|
+
|
|
36
|
+
# Use it
|
|
37
|
+
# <lemon-slice-widget agent-id="bot_123"></lemon-slice-widget>
|
|
38
|
+
# <script type="module" src="https://unpkg.com/lemon-slice-widget"></script>
|
|
39
|
+
```
|