@boomi/embedkit-cdn 1.1.4 → 1.1.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.
package/LICENSE DELETED
@@ -1,24 +0,0 @@
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 DELETED
@@ -1,102 +0,0 @@
1
- # @boomi/embedkit-cdn
2
-
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
-
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 |
17
-
18
- ---
19
-
20
- ## What Is This Package?
21
-
22
- This package contains the pre-built CDN distribution files for EmbedKit:
23
-
24
- | File | Description |
25
- |------|-------------|
26
- | `embedkit-cdn.umd.cjs` | UMD bundle — works in all browsers via a `<script>` tag |
27
- | `embedkit-cdn.css` | Required stylesheet |
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
-
36
- ---
37
-
38
- ## Quick Start
39
-
40
- Add the following to any HTML page, just before `</body>`:
41
-
42
- ```html
43
- <!-- 1. EmbedKit Stylesheet -->
44
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@boomi/embedkit-cdn/embedkit-cdn.css" />
45
-
46
- <!-- 2. Configure the embed -->
47
- <script>
48
- window.BoomiEmbed = {
49
- publicToken: "pk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
50
- agentId: "project_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
51
- mountId: "boomi-agent",
52
- serverBase: "https://api.boomi.space/api/v1"
53
- };
54
- </script>
55
-
56
- <!-- 3. Load the bundle -->
57
- <script src="https://cdn.jsdelivr.net/npm/@boomi/embedkit-cdn/embedkit-cdn.umd.cjs" async></script>
58
-
59
- <!-- 4. Mount target -->
60
- <div id="boomi-agent"></div>
61
- ```
62
-
63
- The agent UI will automatically initialize and render inside the `boomi-agent` div.
64
-
65
- ---
66
-
67
- ## Configuration
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` |
77
-
78
- ---
79
-
80
- ## Getting a Public Token
81
-
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).
83
-
84
- ---
85
-
86
- ## Documentation
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)**
91
-
92
- ---
93
-
94
- ## Content Security Policy
95
-
96
- If your site uses a CSP, add the following directives:
97
-
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
- ```