@boomi/embedkit-cdn 1.1.8 → 1.1.10
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/LICENSE +24 -0
- package/README.md +56 -47
- package/embedkit-cdn.js +6056 -6045
- package/embedkit-cdn.umd.cjs +90 -90
- package/embedkit-cdn.umd.js +1933 -0
- package/package.json +2 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
BSD-2-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, Boomi. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
16
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
17
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
18
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
19
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
20
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
21
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
22
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
23
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,31 +1,49 @@
|
|
|
1
1
|
# @boomi/embedkit-cdn
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CDN distribution package for [Boomi EmbedKit](https://github.com/OfficialBoomi/embedkit) — the pre-built JavaScript bundle that lets you embed Boomi AI Agents into any website with a few lines of HTML. No React, no npm, no build pipeline required.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## What Is EmbedKit?
|
|
8
|
+
|
|
9
|
+
[Boomi EmbedKit](https://github.com/OfficialBoomi/embedkit) is a React component library that surfaces Boomi AI Agents inside any web application. It handles authentication, session management, real-time streaming, and rendering of the full agent chat UI — all inside a Shadow DOM so it never conflicts with your existing styles.
|
|
10
|
+
|
|
11
|
+
EmbedKit comes in two forms:
|
|
12
|
+
|
|
13
|
+
| Package | Use case |
|
|
14
|
+
|---------|----------|
|
|
15
|
+
| [`@boomi/embedkit`](https://www.npmjs.com/package/@boomi/embedkit) | React apps — import components and hooks directly |
|
|
16
|
+
| [`@boomi/embedkit-cdn`](https://www.npmjs.com/package/@boomi/embedkit-cdn) ← **this package** | Any website — drop in a `<script>` tag, no build step needed |
|
|
6
17
|
|
|
7
18
|
---
|
|
8
19
|
|
|
9
|
-
##
|
|
20
|
+
## What Is This Package?
|
|
21
|
+
|
|
22
|
+
This package contains the pre-built CDN distribution files for EmbedKit:
|
|
10
23
|
|
|
11
|
-
| File |
|
|
12
|
-
|
|
13
|
-
| `embedkit-cdn.umd.cjs` |
|
|
24
|
+
| File | Description |
|
|
25
|
+
|------|-------------|
|
|
26
|
+
| `embedkit-cdn.umd.cjs` | UMD bundle — works in all browsers via a `<script>` tag |
|
|
14
27
|
| `embedkit-cdn.css` | Required stylesheet |
|
|
15
28
|
|
|
29
|
+
React and ReactDOM are bundled in — nothing else is required on the host page.
|
|
30
|
+
|
|
31
|
+
The files are served via public CDN providers:
|
|
32
|
+
|
|
33
|
+
- **jsDelivr:** `https://cdn.jsdelivr.net/npm/@boomi/embedkit-cdn/`
|
|
34
|
+
- **unpkg:** `https://unpkg.com/@boomi/embedkit-cdn/`
|
|
35
|
+
|
|
16
36
|
---
|
|
17
37
|
|
|
18
38
|
## Quick Start
|
|
19
39
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
**2. Add to your HTML:**
|
|
40
|
+
Add the following to any HTML page, just before `</body>`:
|
|
23
41
|
|
|
24
42
|
```html
|
|
25
|
-
<!-- EmbedKit
|
|
26
|
-
<link rel="stylesheet" href="https://cdn.
|
|
43
|
+
<!-- 1. EmbedKit Stylesheet -->
|
|
44
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@boomi/embedkit-cdn/embedkit-cdn.css" />
|
|
27
45
|
|
|
28
|
-
<!-- Configure the embed -->
|
|
46
|
+
<!-- 2. Configure the embed -->
|
|
29
47
|
<script>
|
|
30
48
|
window.BoomiEmbed = {
|
|
31
49
|
publicToken: "pk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
|
@@ -35,59 +53,50 @@ This package contains the compiled assets from [`@boomi/embedkit`](https://githu
|
|
|
35
53
|
};
|
|
36
54
|
</script>
|
|
37
55
|
|
|
38
|
-
<!-- Load the bundle -->
|
|
39
|
-
<script src="https://cdn.
|
|
56
|
+
<!-- 3. Load the bundle -->
|
|
57
|
+
<script src="https://cdn.jsdelivr.net/npm/@boomi/embedkit-cdn/embedkit-cdn.umd.cjs" async></script>
|
|
40
58
|
|
|
41
|
-
<!-- Mount target -->
|
|
59
|
+
<!-- 4. Mount target -->
|
|
42
60
|
<div id="boomi-agent"></div>
|
|
43
61
|
```
|
|
44
62
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
## Configuration Properties
|
|
48
|
-
|
|
49
|
-
| Property | Required | Description |
|
|
50
|
-
|----------|----------|-------------|
|
|
51
|
-
| `publicToken` | Yes | The `pk_...` token from your project in Admin Console |
|
|
52
|
-
| `agentId` | Yes | The project ID (`project_...`) from Admin Console |
|
|
53
|
-
| `serverBase` | Yes | EmbedKit API base URL: `https://api.boomi.space/api/v1` |
|
|
54
|
-
| `mountId` | No | ID of the `<div>` to mount into. Defaults to `"boomi-agent"` |
|
|
55
|
-
| `userId` | No | Your user's identifier for session tracking / analytics |
|
|
56
|
-
| `autoInit` | No | Set to `false` to defer initialization until you call it manually |
|
|
63
|
+
The agent UI will automatically initialize and render inside the `boomi-agent` div.
|
|
57
64
|
|
|
58
65
|
---
|
|
59
66
|
|
|
60
|
-
##
|
|
61
|
-
|
|
62
|
-
The CDN supports three presentation modes, configured in the Admin Console:
|
|
67
|
+
## Configuration
|
|
63
68
|
|
|
64
|
-
| Type | Description |
|
|
65
|
-
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `
|
|
69
|
+
| Property | Type | Required | Description |
|
|
70
|
+
|----------|------|----------|-------------|
|
|
71
|
+
| `publicToken` | `string` | Yes | The `pk_...` public token from your project in Admin Console |
|
|
72
|
+
| `agentId` | `string` | Yes | The project ID from Admin Console |
|
|
73
|
+
| `serverBase` | `string` | Yes | EmbedKit API base URL: `https://api.boomi.space/api/v1` |
|
|
74
|
+
| `mountId` | `string` | No | ID of the `<div>` to mount into. Defaults to `"boomi-agent"` |
|
|
75
|
+
| `userId` | `string` | No | Identifier for the current user (for session tracking / analytics) |
|
|
76
|
+
| `autoInit` | `boolean` | No | Set to `false` to disable automatic initialization. Default: `true` |
|
|
69
77
|
|
|
70
78
|
---
|
|
71
79
|
|
|
72
|
-
##
|
|
80
|
+
## Getting a Public Token
|
|
73
81
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
https://cdn.jsdelivr.net/npm/@boomi/embedkit-cdn/embedkit-cdn.umd.cjs
|
|
78
|
-
https://cdn.jsdelivr.net/npm/@boomi/embedkit-cdn/embedkit-cdn.css
|
|
79
|
-
```
|
|
82
|
+
Tokens and projects are managed through the EmbedKit Admin Console at [admin.boomi.space](https://admin.boomi.space). See the full setup guide in the [EmbedKit documentation](https://github.com/OfficialBoomi/embedkit).
|
|
80
83
|
|
|
81
84
|
---
|
|
82
85
|
|
|
83
86
|
## Documentation
|
|
84
87
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
Full documentation for EmbedKit — including the CDN configuration guide, project setup, embed types, theming, and API reference — is available in the main repository:
|
|
89
|
+
|
|
90
|
+
**[github.com/OfficialBoomi/embedkit](https://github.com/OfficialBoomi/embedkit)**
|
|
88
91
|
|
|
89
92
|
---
|
|
90
93
|
|
|
91
|
-
##
|
|
94
|
+
## Content Security Policy
|
|
95
|
+
|
|
96
|
+
If your site uses a CSP, add the following directives:
|
|
92
97
|
|
|
93
|
-
|
|
98
|
+
```
|
|
99
|
+
script-src 'self' https://cdn.jsdelivr.net;
|
|
100
|
+
style-src 'self' https://cdn.jsdelivr.net;
|
|
101
|
+
connect-src 'self' https://api.boomi.space;
|
|
102
|
+
```
|