blueeyebot-widget 0.1.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/LICENSE +21 -0
- package/README.md +193 -0
- package/dist/ChatWidget.d.ts +5 -0
- package/dist/api.d.ts +37 -0
- package/dist/audio.d.ts +18 -0
- package/dist/blueeyebot.es.js +14 -0
- package/dist/blueeyebot.iife.js +53 -0
- package/dist/bob.d.ts +24 -0
- package/dist/config.d.ts +18 -0
- package/dist/icons.d.ts +19 -0
- package/dist/index.d.ts +14 -0
- package/dist/react.d.ts +7 -0
- package/dist/react.js +24 -0
- package/dist/storage.d.ts +5 -0
- package/dist/toast.d.ts +17 -0
- package/dist/types.d.ts +80 -0
- package/dist/web-component-DZRPaCAI.js +2602 -0
- package/dist/web-component.d.ts +25 -0
- package/package.json +58 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChatWidgetConfig } from './types';
|
|
2
|
+
export declare const TAG_NAME = "blue-eye-bot";
|
|
3
|
+
/**
|
|
4
|
+
* The <blue-eye-bot> custom element. Renders the Preact UI into its own shadow
|
|
5
|
+
* root for full style isolation. Configuration comes from HTML attributes and/or
|
|
6
|
+
* an imperatively-set `config` object (the latter wins on conflicts).
|
|
7
|
+
*/
|
|
8
|
+
export declare class ChatWidgetElement extends HTMLElement {
|
|
9
|
+
static get observedAttributes(): string[];
|
|
10
|
+
private mount;
|
|
11
|
+
private jsConfig;
|
|
12
|
+
private connected;
|
|
13
|
+
constructor();
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
16
|
+
attributeChangedCallback(): void;
|
|
17
|
+
/** Imperative configuration (objects/headers that can't be HTML attributes). */
|
|
18
|
+
set config(value: Partial<ChatWidgetConfig>);
|
|
19
|
+
get config(): Partial<ChatWidgetConfig>;
|
|
20
|
+
private resolve;
|
|
21
|
+
private applyHostStyles;
|
|
22
|
+
private update;
|
|
23
|
+
}
|
|
24
|
+
/** Register <chat-widget> once (safe to call repeatedly). */
|
|
25
|
+
export declare function defineChatWidget(): void;
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "blueeyebot-widget",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "BlueEyeBot — a configurable, embeddable chatbot Web Component. Drops into any webapp (React, Vue, Angular, plain HTML) via npm.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org",
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"blueeyebot",
|
|
13
|
+
"chatbot",
|
|
14
|
+
"chat-widget",
|
|
15
|
+
"web-component",
|
|
16
|
+
"custom-element",
|
|
17
|
+
"preact",
|
|
18
|
+
"embeddable"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"main": "./dist/blueeyebot.es.js",
|
|
24
|
+
"module": "./dist/blueeyebot.es.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/blueeyebot.es.js"
|
|
30
|
+
},
|
|
31
|
+
"./react": {
|
|
32
|
+
"types": "./dist/react.d.ts",
|
|
33
|
+
"import": "./dist/react.js"
|
|
34
|
+
},
|
|
35
|
+
"./dist/blueeyebot.iife.js": "./dist/blueeyebot.iife.js"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"dev": "vite",
|
|
39
|
+
"build": "tsc --noEmit && vite build && vite build --mode iife",
|
|
40
|
+
"build:watch": "vite build --watch",
|
|
41
|
+
"preview": "vite preview",
|
|
42
|
+
"prepublishOnly": "npm run build"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"marked": "^12.0.0",
|
|
46
|
+
"preact": "^10.24.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"react": ">=17"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@preact/preset-vite": "^2.9.0",
|
|
53
|
+
"@types/react": "^19.2.7",
|
|
54
|
+
"typescript": "~5.9.3",
|
|
55
|
+
"vite": "^7.0.0",
|
|
56
|
+
"vite-plugin-dts": "^4.5.0"
|
|
57
|
+
}
|
|
58
|
+
}
|