@akropolys/kiku 2.2.31 → 2.2.33
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/EMBED.md +5 -5
- package/README.md +2 -2
- package/dist/embed/embed.js +17 -15
- package/dist/embed/meta.json +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/EMBED.md
CHANGED
|
@@ -5,7 +5,7 @@ Add Kiku to any website with the published CDN script before your closing
|
|
|
5
5
|
HTMX. The loader fetches its stylesheet and embed module automatically.
|
|
6
6
|
|
|
7
7
|
```html
|
|
8
|
-
<script src="https://cdn.akropolys.cloud/kiku/2.2.
|
|
8
|
+
<script src="https://cdn.akropolys.cloud/kiku/2.2.33/kiku.js" data-site-id="YOUR_SITE_ID"
|
|
9
9
|
data-api-token="YOUR_PUBLIC_BROWSER_TOKEN" defer></script>
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -70,11 +70,11 @@ microphone permission.
|
|
|
70
70
|
|
|
71
71
|
## CDN files and self-hosting
|
|
72
72
|
|
|
73
|
-
- [Loader](https://cdn.akropolys.cloud/kiku/2.2.
|
|
74
|
-
- [Stylesheet](https://cdn.akropolys.cloud/kiku/2.2.
|
|
75
|
-
- [Embed module](https://cdn.akropolys.cloud/kiku/2.2.
|
|
73
|
+
- [Loader](https://cdn.akropolys.cloud/kiku/2.2.33/kiku.js)
|
|
74
|
+
- [Stylesheet](https://cdn.akropolys.cloud/kiku/2.2.33/styles.css)
|
|
75
|
+
- [Embed module](https://cdn.akropolys.cloud/kiku/2.2.33/embed/embed.js)
|
|
76
76
|
|
|
77
|
-
To self-host, install `@akropolys/kiku@2.2.
|
|
77
|
+
To self-host, install `@akropolys/kiku@2.2.33` and copy `dist/kiku.js`,
|
|
78
78
|
`dist/styles.css`, and the entire `dist/embed` directory to your server. Preserve
|
|
79
79
|
their relative paths and use your hosted loader URL in the script tag. Serve
|
|
80
80
|
JavaScript with the correct MIME type and allow CORS across origins.
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Add Kiku to any website with the published CDN script:
|
|
|
10
10
|
|
|
11
11
|
```html
|
|
12
12
|
<script
|
|
13
|
-
src="https://cdn.akropolys.cloud/kiku/2.2.
|
|
13
|
+
src="https://cdn.akropolys.cloud/kiku/2.2.33/kiku.js"
|
|
14
14
|
data-site-id="YOUR_SITE_ID"
|
|
15
15
|
data-api-token="YOUR_PUBLIC_BROWSER_TOKEN"
|
|
16
16
|
data-label="Ask Kiku"
|
|
@@ -25,7 +25,7 @@ The embed includes its own React runtime, styles, and mounting. Your website nee
|
|
|
25
25
|
Recommended for React and Next.js apps:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
npm install @akropolys/kiku@2.2.
|
|
28
|
+
npm install @akropolys/kiku@2.2.33 @akropolys/sdk@2.0.5
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
This package integration requires React and React DOM 17 or later.
|