thub-embed 2.0.6 → 2.0.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.
Files changed (30) hide show
  1. package/README.md +4 -4
  2. package/dist/components/Bot.d.ts +115 -115
  3. package/dist/components/bubbles/AgentReasoningBubble.d.ts +15 -15
  4. package/dist/components/bubbles/BotBubble.d.ts +26 -26
  5. package/dist/components/bubbles/FollowUpPromptBubble.d.ts +7 -7
  6. package/dist/components/bubbles/GuestBubble.d.ts +15 -15
  7. package/dist/components/bubbles/LeadCaptureBubble.d.ts +1 -1
  8. package/dist/components/bubbles/StarterPromptBubble.d.ts +7 -7
  9. package/dist/components/buttons/AttachmentUploadButton.d.ts +10 -10
  10. package/dist/components/icons/AttachmentIcon.d.ts +2 -2
  11. package/dist/components/icons/SparklesIcon.d.ts +2 -2
  12. package/dist/components/icons/TickIcon.d.ts +1 -1
  13. package/dist/components/icons/XIcon.d.ts +4 -4
  14. package/dist/components/icons/index.d.ts +13 -13
  15. package/dist/components/inputs/textInput/components/FilePreview.d.ts +11 -11
  16. package/dist/components/inputs/textInput/components/TextInput.d.ts +27 -27
  17. package/dist/components/inputs/textInput/index.d.ts +2 -2
  18. package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
  19. package/dist/features/bubble/components/BubbleButton.d.ts +15 -15
  20. package/dist/features/bubble/components/Tooltip.d.ts +14 -14
  21. package/dist/features/bubble/types.d.ts +100 -100
  22. package/dist/features/popup/components/DisclaimerPopup.d.ts +8 -8
  23. package/dist/features/popup/components/index.d.ts +2 -2
  24. package/dist/queries/sendMessageQuery.d.ts +86 -86
  25. package/dist/utils/chatInputHistory.d.ts +21 -21
  26. package/dist/utils/index.d.ts +22 -22
  27. package/dist/web.d.ts +22 -22
  28. package/dist/web.js +1 -1
  29. package/dist/window.d.ts +29 -29
  30. package/package.json +65 -64
package/dist/window.d.ts CHANGED
@@ -1,30 +1,30 @@
1
- import { observersConfigType } from './components/Bot';
2
- import { BubbleTheme } from './features/bubble/types';
3
- type BotProps = {
4
- chatflowid: string;
5
- apiHost?: string;
6
- onRequest?: (request: RequestInit) => Promise<void>;
7
- chatflowConfig?: Record<string, unknown>;
8
- observersConfig?: observersConfigType;
9
- theme?: BubbleTheme;
10
- };
11
- export declare const initFull: (props: BotProps & {
12
- id?: string;
13
- }) => void;
14
- export declare const init: (props: BotProps) => void;
15
- export declare const destroy: () => void;
16
- type Chatbot = {
17
- initFull: typeof initFull;
18
- init: typeof init;
19
- destroy: typeof destroy;
20
- };
21
- export declare const parseChatbot: () => {
22
- initFull: (props: BotProps & {
23
- id?: string;
24
- }) => void;
25
- init: (props: BotProps) => void;
26
- destroy: () => void;
27
- };
28
- export declare const injectChatbotInWindow: (bot: Chatbot) => void;
29
- export {};
1
+ import { observersConfigType } from './components/Bot';
2
+ import { BubbleTheme } from './features/bubble/types';
3
+ type BotProps = {
4
+ workflowid: string;
5
+ apiHost?: string;
6
+ onRequest?: (request: RequestInit) => Promise<void>;
7
+ chatflowConfig?: Record<string, unknown>;
8
+ observersConfig?: observersConfigType;
9
+ theme?: BubbleTheme;
10
+ };
11
+ export declare const initFull: (props: BotProps & {
12
+ id?: string;
13
+ }) => void;
14
+ export declare const init: (props: BotProps) => void;
15
+ export declare const destroy: () => void;
16
+ type Chatbot = {
17
+ initFull: typeof initFull;
18
+ init: typeof init;
19
+ destroy: typeof destroy;
20
+ };
21
+ export declare const parseChatbot: () => {
22
+ initFull: (props: BotProps & {
23
+ id?: string;
24
+ }) => void;
25
+ init: (props: BotProps) => void;
26
+ destroy: () => void;
27
+ };
28
+ export declare const injectChatbotInWindow: (bot: Chatbot) => void;
29
+ export {};
30
30
  //# sourceMappingURL=window.d.ts.map
package/package.json CHANGED
@@ -1,64 +1,65 @@
1
- {
2
- "name": "thub-embed",
3
- "version": "2.0.6",
4
- "description": "Javascript library to display THub chatbot on your website",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "license": "MIT",
9
- "dependencies": {
10
- "@babel/core": "^7.22.1",
11
- "@microsoft/fetch-event-source": "^2.0.1",
12
- "@ts-stack/markdown": "^1.4.0",
13
- "device-detector-js": "^3.0.3",
14
- "lodash": "^4.17.21",
15
- "prettier": "^3.1.0",
16
- "solid-element": "1.7.0",
17
- "solid-js": "1.7.1",
18
- "zod": "^3.22.4"
19
- },
20
- "devDependencies": {
21
- "@babel/preset-typescript": "7.21.4",
22
- "@rollup/plugin-babel": "6.0.3",
23
- "@rollup/plugin-commonjs": "^25.0.0",
24
- "@rollup/plugin-json": "^6.1.0",
25
- "@rollup/plugin-node-resolve": "15.0.1",
26
- "@rollup/plugin-terser": "0.4.0",
27
- "@rollup/plugin-typescript": "11.0.0",
28
- "@tailwindcss/typography": "^0.5.10",
29
- "@types/lodash": "^4.14.195",
30
- "@types/node": "18.15.11",
31
- "@types/uuid": "^8.3.4",
32
- "@typescript-eslint/eslint-plugin": "^5.57.0",
33
- "@typescript-eslint/parser": "^5.57.0",
34
- "autoprefixer": "10.4.14",
35
- "babel-plugin-lodash": "^3.3.4",
36
- "babel-preset-solid": "1.7.1",
37
- "eslint": "^8.24.0",
38
- "eslint-config-next": "13.2.4",
39
- "eslint-config-prettier": "^9.0.0",
40
- "eslint-plugin-prettier": "^5.0.1",
41
- "eslint-plugin-react": "^7.26.1",
42
- "eslint-plugin-solid": "0.12.0",
43
- "husky": "^8.0.0",
44
- "postcss": "8.4.21",
45
- "react": "18.2.0",
46
- "rollup": "3.23.0",
47
- "rollup-plugin-livereload": "2.0.5",
48
- "rollup-plugin-postcss": "4.0.2",
49
- "rollup-plugin-serve": "2.0.2",
50
- "rollup-plugin-typescript-paths": "1.4.0",
51
- "rollup-plugin-uglify": "^6.0.4",
52
- "tailwindcss": "3.3.1",
53
- "typescript": "5.0.3",
54
- "uuid": "^9.0.1"
55
- },
56
- "scripts": {
57
- "dev": "rollup --watch --config rollup.config.js",
58
- "build": "rollup --config rollup.config.js",
59
- "lint": "eslint \"src/**/*.ts*\"",
60
- "lint-fix": "eslint --fix \"src/**/*.ts*\"",
61
- "format": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
62
- "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\""
63
- }
64
- }
1
+ {
2
+ "name": "thub-embed",
3
+ "version": "2.0.7",
4
+ "description": "Javascript library to display THub chatbot on your website",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "scripts": {
9
+ "dev": "rollup --watch --config rollup.config.js",
10
+ "build": "rollup --config rollup.config.js",
11
+ "lint": "eslint \"src/**/*.ts*\"",
12
+ "lint-fix": "eslint --fix \"src/**/*.ts*\"",
13
+ "format": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
14
+ "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
15
+ "prepare": "husky install"
16
+ },
17
+ "license": "MIT",
18
+ "dependencies": {
19
+ "@babel/core": "^7.22.1",
20
+ "@microsoft/fetch-event-source": "^2.0.1",
21
+ "@ts-stack/markdown": "^1.4.0",
22
+ "device-detector-js": "^3.0.3",
23
+ "lodash": "^4.17.21",
24
+ "prettier": "^3.1.0",
25
+ "solid-element": "1.7.0",
26
+ "solid-js": "1.7.1",
27
+ "zod": "^3.22.4"
28
+ },
29
+ "devDependencies": {
30
+ "@babel/preset-typescript": "7.21.4",
31
+ "@rollup/plugin-babel": "6.0.3",
32
+ "@rollup/plugin-commonjs": "^25.0.0",
33
+ "@rollup/plugin-json": "^6.1.0",
34
+ "@rollup/plugin-node-resolve": "15.0.1",
35
+ "@rollup/plugin-terser": "0.4.0",
36
+ "@rollup/plugin-typescript": "11.0.0",
37
+ "@tailwindcss/typography": "^0.5.10",
38
+ "@types/lodash": "^4.14.195",
39
+ "@types/node": "18.15.11",
40
+ "@types/uuid": "^8.3.4",
41
+ "@typescript-eslint/eslint-plugin": "^5.57.0",
42
+ "@typescript-eslint/parser": "^5.57.0",
43
+ "autoprefixer": "10.4.14",
44
+ "babel-plugin-lodash": "^3.3.4",
45
+ "babel-preset-solid": "1.7.1",
46
+ "eslint": "^8.24.0",
47
+ "eslint-config-next": "13.2.4",
48
+ "eslint-config-prettier": "^9.0.0",
49
+ "eslint-plugin-prettier": "^5.0.1",
50
+ "eslint-plugin-react": "^7.26.1",
51
+ "eslint-plugin-solid": "0.12.0",
52
+ "husky": "^8.0.0",
53
+ "postcss": "8.4.21",
54
+ "react": "18.2.0",
55
+ "rollup": "3.23.0",
56
+ "rollup-plugin-livereload": "2.0.5",
57
+ "rollup-plugin-postcss": "4.0.2",
58
+ "rollup-plugin-serve": "2.0.2",
59
+ "rollup-plugin-typescript-paths": "1.4.0",
60
+ "rollup-plugin-uglify": "^6.0.4",
61
+ "tailwindcss": "3.3.1",
62
+ "typescript": "5.0.3",
63
+ "uuid": "^9.0.1"
64
+ }
65
+ }