@coffer-org/plugin-webchat 2.0.0
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/dist/ChatWidget-B5heKPXv.js +29369 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +22 -0
- package/dist/runtime/actions.d.ts +22 -0
- package/dist/runtime/actions.js +38 -0
- package/dist/runtime/chain-store.d.ts +33 -0
- package/dist/runtime/chain-store.js +61 -0
- package/dist/runtime/config.d.ts +2 -0
- package/dist/runtime/config.js +7 -0
- package/dist/runtime/connector.d.ts +16 -0
- package/dist/runtime/connector.js +43 -0
- package/dist/runtime/format.d.ts +1 -0
- package/dist/runtime/format.js +10 -0
- package/dist/runtime/index.d.ts +7 -0
- package/dist/runtime/index.js +27 -0
- package/dist/runtime/send.d.ts +12 -0
- package/dist/runtime/send.js +57 -0
- package/dist/runtime/settings.d.ts +3 -0
- package/dist/runtime/settings.js +7 -0
- package/dist/schema.js +7108 -0
- package/dist/web.js +17 -0
- package/package.json +38 -0
package/dist/web.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { definePluginUI } from "@coffer-org/web-sdk";
|
|
2
|
+
//#region src/ui/ui.tsx
|
|
3
|
+
/**
|
|
4
|
+
* Web UI bundle of plugin-webchat. Federation loads this file only when the
|
|
5
|
+
* plugin is installed AND enabled — so "no plugin" means "no widget code",
|
|
6
|
+
* with no runtime probe involved.
|
|
7
|
+
*
|
|
8
|
+
* The widget itself is loaded lazily: this bundle is awaited before the first
|
|
9
|
+
* render, and the chat drags in markdown + sanitizer + the dialog kit.
|
|
10
|
+
*/
|
|
11
|
+
var ui_default = definePluginUI({ slots: [{
|
|
12
|
+
slot: "overlay",
|
|
13
|
+
id: "webchat",
|
|
14
|
+
load: () => import("./ChatWidget-B5heKPXv.js")
|
|
15
|
+
}] });
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ui_default as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@coffer-org/plugin-webchat",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=24"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./runtime": {
|
|
17
|
+
"types": "./dist/runtime/index.d.ts",
|
|
18
|
+
"default": "./dist/runtime/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc -b tsconfig.build.json",
|
|
23
|
+
"prepack": "npm run build && node ../../scripts/federation-build.mjs . && node ../../scripts/swap-exports.mjs dist",
|
|
24
|
+
"postpack": "node ../../scripts/swap-exports.mjs src",
|
|
25
|
+
"test": "node --import tsx --test \"src/runtime/*.test.ts\"",
|
|
26
|
+
"test:ui": "vitest run --root ."
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@coffer-org/plugin-orchestrator": "^2.0.0",
|
|
30
|
+
"@coffer-org/sdk": "^2.0.0",
|
|
31
|
+
"@coffer-org/server": "^2.0.1",
|
|
32
|
+
"react-markdown": "^10.1.0",
|
|
33
|
+
"remark-gfm": "^4.0.1"
|
|
34
|
+
},
|
|
35
|
+
"coffer": {
|
|
36
|
+
"schema": "dist/schema.js"
|
|
37
|
+
}
|
|
38
|
+
}
|