@boomi/embedkit-cdn 1.1.6 → 1.1.7
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
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# @boomi/embedkit-cdn
|
|
2
|
+
|
|
3
|
+
Pre-built UMD bundle and CSS for **Boomi EmbedKit** — drop-in script tag distribution via jsDelivr and unpkg. No npm, no build pipeline required.
|
|
4
|
+
|
|
5
|
+
This package contains the compiled assets from [`@boomi/embedkit`](https://github.com/OfficialBoomi/embedkit) for use directly in HTML pages.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Assets
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
|------|---------|
|
|
13
|
+
| `embedkit-cdn.umd.cjs` | JavaScript bundle (UMD — React + ReactDOM bundled in) |
|
|
14
|
+
| `embedkit-cdn.css` | Required stylesheet |
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Quick Start
|
|
19
|
+
|
|
20
|
+
**1. Create a project** in the [EmbedKit Admin Console](https://admin.boomi.space), configure your agent and origins, and copy the generated public token.
|
|
21
|
+
|
|
22
|
+
**2. Add to your HTML:**
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<!-- EmbedKit stylesheet -->
|
|
26
|
+
<link rel="stylesheet" href="https://cdn.boomi.space/cdn/embedkit-cdn.css" />
|
|
27
|
+
|
|
28
|
+
<!-- Configure the embed -->
|
|
29
|
+
<script>
|
|
30
|
+
window.BoomiEmbed = {
|
|
31
|
+
publicToken: "pk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
|
32
|
+
agentId: "project_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
|
33
|
+
mountId: "boomi-agent",
|
|
34
|
+
serverBase: "https://api.boomi.space/api/v1"
|
|
35
|
+
};
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<!-- Load the bundle -->
|
|
39
|
+
<script src="https://cdn.boomi.space/embedkit-cdn.umd.cjs" async></script>
|
|
40
|
+
|
|
41
|
+
<!-- Mount target -->
|
|
42
|
+
<div id="boomi-agent"></div>
|
|
43
|
+
```
|
|
44
|
+
|
|
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 |
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Embed Types
|
|
61
|
+
|
|
62
|
+
The CDN supports three presentation modes, configured in the Admin Console:
|
|
63
|
+
|
|
64
|
+
| Type | Description |
|
|
65
|
+
|------|-------------|
|
|
66
|
+
| `single` | Floating launcher pill → opens one agent in a modal |
|
|
67
|
+
| `tiles` | Inline grid of agent cards — users pick and launch |
|
|
68
|
+
| `list` | Floating pill → opens a searchable agent list modal |
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Via jsDelivr / unpkg
|
|
73
|
+
|
|
74
|
+
These assets are also available directly from the npm CDNs:
|
|
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
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Documentation
|
|
84
|
+
|
|
85
|
+
- [Getting Started](https://github.com/OfficialBoomi/embedkit/blob/main/public-docs/GettingStarted.md)
|
|
86
|
+
- [CDN Configuration](https://github.com/OfficialBoomi/embedkit/blob/main/public-docs/CDNConfiguration.md)
|
|
87
|
+
- [Release Notes](https://github.com/OfficialBoomi/embedkit/blob/main/public-docs/ReleaseNotes.md)
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
BSD-2-Clause
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boomi/embedkit-cdn",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Pre-built UMD bundle and CSS for Boomi EmbedKit — drop-in script tag distribution via jsDelivr and unpkg",
|
|
5
5
|
"files": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
6
|
+
"embedkit-cdn.js",
|
|
7
|
+
"embedkit-cdn.umd.cjs",
|
|
8
|
+
"embedkit-cdn.css"
|
|
9
9
|
],
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|