@glodon-aiot/bot-client-ui 2.4.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.
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const BotClientUIExample: () => JSX.Element;
3
+ export default BotClientUIExample;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const CustomFooter: () => JSX.Element;
3
+ export default CustomFooter;
4
+ export declare const createFooterElement: () => HTMLDivElement;
@@ -0,0 +1 @@
1
+ import './style.less';
@@ -0,0 +1,8 @@
1
+ import AgentClientUI from '@glodon-aiot/agent-cli-ui';
2
+ import { InitalData } from '@glodon-aiot/agent-cli-ui/dist/src/types';
3
+ import { BotClientType } from '../types';
4
+ export default class BotClientUI extends AgentClientUI {
5
+ constructor(props: InitalData);
6
+ static create(type: BotClientType): typeof BotClientUI;
7
+ }
8
+ export type { BotClientUI };
@@ -0,0 +1 @@
1
+ export type BotClientType = 'dialog' | 'agent';
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@glodon-aiot/bot-client-ui",
3
+ "version": "2.4.7",
4
+ "author": "glodoncv",
5
+ "description": "aiot libembeds",
6
+ "type": "module",
7
+ "types": "dist/src/index.d.ts",
8
+ "keywords": [
9
+ "aiot",
10
+ "aiot-bot-client-ui"
11
+ ],
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "module": "./dist/bot-client-ui.js",
16
+ "main": "./dist/bot-client-ui.umd.cjs",
17
+ "typings": "./dist/src/index.d.ts",
18
+ "exports": {
19
+ "import": "./dist/bot-client-ui.js",
20
+ "require": "./dist/bot-client-ui.umd.cjs",
21
+ "type": "./dist/dist/src/index.d.ts"
22
+ },
23
+ "license": "MIT",
24
+ "scripts": {
25
+ "dev": "vite",
26
+ "start": "vite",
27
+ "build": "tsc && vite build --mode prod",
28
+ "watch": "tsc && vite build --mode prod --watch",
29
+ "preview": "vite preview",
30
+ "check": "yarn prettier --check .",
31
+ "write": "yarn prettier --write .",
32
+ "lint": "eslint --ext .tsx,.ts --fix ./example -c .eslintrc.js",
33
+ "storybook": "start-storybook -p 6006",
34
+ "docs": "start-storybook -p 6006",
35
+ "build-storybook": "build-storybook",
36
+ "cy-open": "yarn run cypress open"
37
+ },
38
+ "dependencies": {
39
+ "@glodon-aiot/agent-cli-ui": "^2.4.7"
40
+ },
41
+ "devDependencies": {
42
+ "@babel/core": "^7.20.12",
43
+ "@commitlint/cli": "^17.0.3",
44
+ "@commitlint/config-conventional": "^17.0.3",
45
+ "@rollup/plugin-typescript": "^11.0.0",
46
+ "@storybook/addon-actions": "^6.5.16",
47
+ "@storybook/addon-essentials": "^6.5.16",
48
+ "@storybook/addon-interactions": "^6.5.16",
49
+ "@storybook/addon-links": "6.5.16",
50
+ "@storybook/builder-vite": "^0.4.0",
51
+ "@storybook/react": "^6.5.16",
52
+ "@storybook/testing-library": "^0.0.13",
53
+ "@types/react": "^17.0.44",
54
+ "@types/react-dom": "^17.0.17",
55
+ "@typescript-eslint/eslint-plugin": "^5.35.1",
56
+ "@typescript-eslint/parser": "^5.35.1",
57
+ "@vitejs/plugin-react": "^3.1.0",
58
+ "babel-loader": "^8.3.0",
59
+ "cypress": "^12.5.1",
60
+ "eslint": "^8.0.1",
61
+ "eslint-config-prettier": "^8.5.0",
62
+ "eslint-config-standard-with-typescript": "^22.0.0",
63
+ "eslint-plugin-import": "^2.25.2",
64
+ "eslint-plugin-n": "^15.0.0",
65
+ "eslint-plugin-promise": "^6.0.0",
66
+ "eslint-plugin-react": "^7.31.0",
67
+ "eslint-plugin-storybook": "^0.6.10",
68
+ "less": "^4.1.2",
69
+ "prettier": "2.7.1",
70
+ "require-from-string": "^2.0.2",
71
+ "typescript": "*",
72
+ "vite": "^4.1.1"
73
+ },
74
+ "publishConfig": {
75
+ "access": "public"
76
+ },
77
+ "lint-staged": {
78
+ "*.{js,css,md,jsx,less,ts,tsx,json}": "prettier --write"
79
+ }
80
+ }