cometchat-visual-builder-no-code 1.0.10-test8 → 1.0.12-firefox-theme-fix

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 (28) hide show
  1. package/README.md +62 -231
  2. package/dist/assets/svg/Copy.4d5c5370c2badfa4ec72.svg +5 -0
  3. package/dist/assets/svg/message_blocked.79ffe1a906c494f50bb9.svg +8 -0
  4. package/dist/assets/svg/right-arrow.d430f526b3249ce1e4c9.svg +3 -0
  5. package/dist/assets/svg/search_message_icon.dce7250b5966716057a8.svg +8 -0
  6. package/dist/assets/svg/send-message.fa7501d52cb01566a038.svg +3 -0
  7. package/dist/assets/svg/stop-message.394e6adf2af527d6b219.svg +3 -0
  8. package/dist/icons/docked_close_icon.svg +2 -9
  9. package/dist/icons/docked_open_icon.svg +9 -2
  10. package/dist/main.js +1 -1
  11. package/dist/main.js.LICENSE.txt +9 -0
  12. package/dist/src/CometChat/CometChatSettings.d.ts +9 -2
  13. package/dist/src/CometChat/context/CometChatContext.d.ts +22 -15
  14. package/dist/src/CometChat/customHook/useThemeStyles.d.ts +2 -0
  15. package/dist/src/CometChatNoCode/CometChatApi.d.ts +7 -4
  16. package/dist/src/CometChatNoCode/components/AIAgentView/AIAgentView.d.ts +9 -0
  17. package/dist/src/CometChatNoCode/components/IframePortal.d.ts +1 -0
  18. package/dist/src/CometChatNoCode/components/docked/DockedChatView.d.ts +3 -2
  19. package/dist/src/CometChatNoCode/components/embedded/EmbeddedChatView.d.ts +4 -2
  20. package/dist/src/CometChatNoCode/customHooks/useSyncCSSVarsToIframe.d.ts +2 -0
  21. package/dist/src/CometChatNoCode/utils/utils.d.ts +11 -0
  22. package/dist/src/index.d.ts +1 -1
  23. package/dist/src/noCodeConstants.d.ts +1 -4
  24. package/package.json +13 -4
  25. package/dist/330.main.js +0 -1
  26. package/dist/assets/svg/search_message_icon.90a1149086a61b9d62c9.svg +0 -14
  27. package/dist/src/App.d.ts +0 -4
  28. /package/dist/src/CometChatNoCode/{useInjectNoCodeStyles.d.ts → customHooks/useInjectNoCodeStyles.d.ts} +0 -0
@@ -1,3 +1,12 @@
1
+ /**
2
+ * Prism: Lightweight, robust, elegant syntax highlighting
3
+ *
4
+ * @license MIT <https://opensource.org/licenses/MIT>
5
+ * @author Lea Verou <https://lea.verou.me>
6
+ * @namespace
7
+ * @public
8
+ */
9
+
1
10
  /**
2
11
  * @license React
3
12
  * react-dom.production.min.js
@@ -11,6 +11,8 @@ export interface CometChatSettingsInterface {
11
11
  deleteMessage: boolean;
12
12
  messageDeliveryAndReadReceipts: boolean;
13
13
  userAndFriendsPresence: boolean;
14
+ conversationAndAdvancedSearch?: boolean;
15
+ moderation?: boolean;
14
16
  };
15
17
  deeperUserEngagement: {
16
18
  mentions: boolean;
@@ -82,9 +84,14 @@ export interface CometChatSettingsInterface {
82
84
  closeIcon: string;
83
85
  customJs: string;
84
86
  customCss: string;
85
- dockedAlignment: string;
87
+ dockedAlignment?: string;
86
88
  };
87
89
  };
88
- name?: string;
90
+ agent?: {
91
+ chatHistory: boolean;
92
+ newChat: boolean;
93
+ agentIcon: string;
94
+ showAgentIcon: boolean;
95
+ };
89
96
  }
90
97
  export declare const CometChatSettings: CometChatSettingsInterface;
@@ -1,17 +1,17 @@
1
- import React, { ReactNode } from "react";
1
+ import React, { ReactNode } from 'react';
2
2
  interface CometChatContextInterface {
3
- chatFeatures: CometChatSettingsInterface["chatFeatures"];
4
- callFeatures: CometChatSettingsInterface["callFeatures"];
5
- styleFeatures: CometChatSettingsInterface["style"];
6
- layoutFeatures: CometChatSettingsInterface["layout"];
7
- noCodeFeatures: CometChatSettingsInterface["noCode"];
8
- variantName: CometChatSettingsInterface["name"];
9
- setChatFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["chatFeatures"]>>;
10
- setCallFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["callFeatures"]>>;
11
- setStyleFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["style"]>>;
12
- setLayoutFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["layout"]>>;
13
- setNoCodeFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["noCode"]>>;
14
- setVariantName: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["name"]>>;
3
+ chatFeatures: CometChatSettingsInterface['chatFeatures'];
4
+ callFeatures: CometChatSettingsInterface['callFeatures'];
5
+ styleFeatures: CometChatSettingsInterface['style'];
6
+ layoutFeatures: CometChatSettingsInterface['layout'];
7
+ noCodeFeatures: CometChatSettingsInterface['noCode'];
8
+ aiAgentFeatures: CometChatSettingsInterface['agent'];
9
+ setChatFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface['chatFeatures']>>;
10
+ setCallFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface['callFeatures']>>;
11
+ setStyleFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface['style']>>;
12
+ setLayoutFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface['layout']>>;
13
+ setNoCodeFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface['noCode']>>;
14
+ setAiAgentFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface['agent']>>;
15
15
  }
16
16
  interface CometChatProviderProps {
17
17
  children: ReactNode;
@@ -32,6 +32,8 @@ export interface CometChatSettingsInterface {
32
32
  deleteMessage: boolean;
33
33
  messageDeliveryAndReadReceipts: boolean;
34
34
  userAndFriendsPresence: boolean;
35
+ conversationAndAdvancedSearch?: boolean;
36
+ moderation?: boolean;
35
37
  };
36
38
  deeperUserEngagement: {
37
39
  mentions: boolean;
@@ -103,10 +105,15 @@ export interface CometChatSettingsInterface {
103
105
  closeIcon: string;
104
106
  customJs: string;
105
107
  customCss: string;
106
- dockedAlignment: string;
108
+ dockedAlignment?: string;
107
109
  };
108
110
  };
109
- name?: string;
111
+ agent?: {
112
+ chatHistory: boolean;
113
+ newChat: boolean;
114
+ agentIcon: string;
115
+ showAgentIcon: boolean;
116
+ };
110
117
  }
111
118
  interface CometChatVisualBuilderReact {
112
119
  name: string;
@@ -0,0 +1,2 @@
1
+ declare function useThemeStyles(styleFeatures: any, systemTheme: string, setStyleFeatures: Function, loggedInUser: CometChat.User | null): void;
2
+ export default useThemeStyles;
@@ -11,10 +11,12 @@ export interface VcbData {
11
11
  isDocked?: boolean;
12
12
  height?: string;
13
13
  width?: string;
14
- chatType?: "user" | "group";
14
+ chatType?: string;
15
15
  defaultChatID?: string;
16
16
  theme?: string;
17
- dockedAlignment?: "left" | "right";
17
+ dockedAlignment?: string;
18
+ isAIAgentView?: boolean;
19
+ aiAssistantTools?: any;
18
20
  }
19
21
  export declare const vcbData: VcbData;
20
22
  export declare const listeners: Record<string, Function>;
@@ -35,9 +37,10 @@ declare const CometChatApp: {
35
37
  isDocked?: boolean;
36
38
  height?: string;
37
39
  width?: string;
38
- chatType?: "user" | "group";
40
+ chatType?: string;
39
41
  defaultChatID?: string;
40
- dockedAlignment?: "left" | "right";
42
+ dockedAlignment?: string;
43
+ aiAssistantTools?: any;
41
44
  }) => Promise<void>;
42
45
  uiEvent: (eventName: string, callback: Function) => void;
43
46
  callUser: (uid: string) => Promise<void>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { CometChatAIAssistantTools } from "@cometchat/chat-uikit-react";
3
+ import "./AiAgentView.css";
4
+ interface AIAgentViewProps {
5
+ user: CometChat.User;
6
+ aiAssistantTools?: CometChatAIAssistantTools;
7
+ }
8
+ declare const AIAgentView: React.FC<AIAgentViewProps>;
9
+ export default AIAgentView;
@@ -3,6 +3,7 @@ interface IframePortalProps {
3
3
  children: ReactNode;
4
4
  height?: string;
5
5
  width?: string;
6
+ dockedAlignment?: string;
6
7
  }
7
8
  declare const IframePortal: React.FC<IframePortalProps>;
8
9
  export default IframePortal;
@@ -1,9 +1,10 @@
1
1
  import React from "react";
2
+ import "./DockedChatView.css";
2
3
  interface DockedChatViewInterface {
3
4
  children: React.ReactNode;
4
5
  showSidebarOnDesktop?: boolean | undefined;
5
- type?: "user" | "group";
6
- dockedAlignment?: "left" | "right";
6
+ type?: string;
7
+ dockedAlignment?: string;
7
8
  }
8
9
  declare const DockedChatView: ({ children, showSidebarOnDesktop, type, dockedAlignment, }: DockedChatViewInterface) => import("react/jsx-runtime").JSX.Element;
9
10
  export default DockedChatView;
@@ -1,8 +1,10 @@
1
+ import { CometChatAIAssistantTools } from "@cometchat/chat-uikit-react";
1
2
  interface EmbeddedChatViewInterface {
2
3
  showSidebarOnDesktop?: boolean;
3
4
  user?: CometChat.User;
4
5
  group?: CometChat.Group;
5
- type?: "user" | "group";
6
+ type?: string;
7
+ aiAssistantTools?: CometChatAIAssistantTools;
6
8
  }
7
- declare const EmbeddedChatView: ({ showSidebarOnDesktop, user, group, type, }: EmbeddedChatViewInterface) => import("react/jsx-runtime").JSX.Element;
9
+ declare const EmbeddedChatView: ({ showSidebarOnDesktop, user, group, type, aiAssistantTools }: EmbeddedChatViewInterface) => import("react/jsx-runtime").JSX.Element;
8
10
  export default EmbeddedChatView;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function useSyncCSSVarsToIframe(iframeRef: React.RefObject<HTMLIFrameElement>, styleFeatures: any, systemTheme: string, setStyleFeatures: Function): void;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Dynamically generates and sets extended primary colors based on the primary color.
3
+ *
4
+ * This function retrieves the primary color from CSS variables and generates a set
5
+ * of extended primary colors by blending the primary color with white or black, depending
6
+ * on the current theme (light or dark mode). The generated colors are then applied as
7
+ * CSS variables.
8
+ *
9
+ * @static
10
+ */
11
+ export declare function generateExtendedColors(iframeDoc: Document | null | undefined): void;
@@ -1,4 +1,4 @@
1
- import "./App.css";
1
+ import "./noCodeGlobal.css";
2
2
  import "@cometchat/chat-uikit-react/css-variables.css";
3
3
  export declare const showOutgoingCallUI: (call: any) => void;
4
4
  export declare const showOnGoingCallUI: (sessionId: string) => void;
@@ -1,8 +1,5 @@
1
- /** Type definition for noCode constants. */
2
1
  type NoCodeConstants = {
3
- /** The domain URL for the dashboard. */
4
2
  noCodeDomain: string;
5
3
  };
6
- /** Configuration constants for the noCode based on the environment. */
7
- declare let noCodeConstants: NoCodeConstants;
4
+ declare const noCodeConstants: NoCodeConstants;
8
5
  export default noCodeConstants;
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "cometchat-visual-builder-no-code",
3
- "version": "1.0.10-test8",
4
- "description": "CometChat Visual Builder No-Code Integration",
3
+ "version": "1.0.12-firefox-theme-fix",
4
+ "description": "CometChat Chat Builder No-Code Integration",
5
+ "cometChatCustomConfig": {
6
+ "prodVersion": "1.0.12",
7
+ "devStagingVersion": "1.0.10-test29",
8
+ "prodName": "@cometchat/chat-embed",
9
+ "devName": "cometchat-visual-builder-no-code",
10
+ "name": "cometchat-visual-builder-react-no-code",
11
+ "version": "1.0.12",
12
+ "production": true
13
+ },
5
14
  "author": "CometChat",
6
15
  "dependencies": {
7
- "@cometchat/calls-sdk-javascript": "4.0.12",
8
- "@cometchat/chat-uikit-react": "6.1.1",
16
+ "@cometchat/calls-sdk-javascript": "4.1.0",
17
+ "@cometchat/chat-uikit-react": "6.2.6",
9
18
  "react": "18.2.0",
10
19
  "react-dom": "18.2.0",
11
20
  "react-frame-component": "^5.2.7",
package/dist/330.main.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunkVisualBuilder=this.webpackChunkVisualBuilder||[]).push([[330],{8330:e=>{e.exports=JSON.parse('{"name":"cometchat-visual-builder-no-code","version":"1.0.10-test7","description":"CometChat Visual Builder No-Code Integration","author":"CometChat","dependencies":{"@cometchat/calls-sdk-javascript":"4.0.12","@cometchat/chat-uikit-react":"6.1.1","react":"18.2.0","react-dom":"18.2.0","react-frame-component":"^5.2.7","react-router-dom":"6.14.2","react-scripts":"^5.0.1","react-shadow":"^20.6.0","web-vitals":"2.1.4"},"scripts":{"start":"react-scripts start","build":"react-scripts build","build-lib":"rm -rf dist/ && webpack --mode production","test":"react-scripts test","eject":"react-scripts eject"},"eslintConfig":{"extends":["react-app","react-app/jest"]},"devDependencies":{"@svgr/webpack":"^8.1.0","@testing-library/jest-dom":"5.17.0","@testing-library/react":"13.4.0","@testing-library/user-event":"13.5.0","@types/jest":"27.5.2","@types/node":"16.18.38","@types/react":"18.2.15","@types/react-dom":"18.2.7","@typescript-eslint/eslint-plugin":"^8.15.0","@typescript-eslint/parser":"^8.15.0","copy-webpack-plugin":"^13.0.0","css-loader":"^7.1.2","eslint":"^8.0.0","raw-loader":"^4.0.2","sass":"^1.78.0","style-loader":"^4.0.0","ts-loader":"^9.5.2","typescript":"^4.9.5","webpack":"^5.99.9","webpack-cli":"^6.0.1"},"overrides":{"rimraf":"^4.0.0","glob":"^9.0.0","resolve-url-loader":{"postcss":"8.4.49"},"svgo":{"nth-check":"2.1.1"},"@svgr/webpack":{"nth-check":"2.1.1"},"cross-spawn":"7.0.6"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"homepage":"https://www.cometchat.com","main":"dist/main.js","files":["dist"],"publishConfig":{"access":"public"},"license":"SEE LICENSE IN LICENSE.md","bugs":{"url":"https://help.cometchat.com/hc/en-us"}}')}}]);
@@ -1,14 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
2
- <g clip-path="url(#clip0_13442_134983)">
3
- <path opacity="0.2" d="M105 45.2598H97.5V64.0098C97.5 74.3635 89.1037 82.7598 78.75 82.7598H45V90.2598C45 98.5435 51.7162 105.26 60 105.26H82.5L98.85 118.872C100.44 120.196 102.806 119.982 104.13 118.392C104.692 117.717 105 116.866 105 115.985V105.26C113.284 105.26 120 98.5435 120 90.2598V60.2598C120 51.976 113.284 45.2598 105 45.2598Z" fill="#DCDCDC"/>
4
- <path opacity="0.2" d="M75 0.259766H15C6.71625 0.259766 0 6.97602 0 15.2598V60.2598C0 68.5435 6.71625 75.2598 15 75.2598V89.6223C15 91.6923 16.68 93.3723 18.75 93.3723C19.6425 93.3723 20.5088 93.0535 21.1875 92.4723L41.25 75.2598H75C83.2838 75.2598 90 68.5435 90 60.2598V15.2598C90 6.97602 83.2838 0.259766 75 0.259766ZM27.7875 43.0473C27.4575 43.411 27.0788 43.726 26.6625 43.9848C26.2575 44.2585 25.8337 44.4985 25.3875 44.6973C24.9225 44.8698 24.4462 45.0085 23.9625 45.1098C23.4825 45.2148 22.9912 45.2635 22.5 45.2598C18.3563 45.2598 15 41.9035 15 37.7598C14.9213 33.6198 18.2138 30.196 22.3538 30.1173C22.8937 30.106 23.4338 30.1548 23.9625 30.2598C24.4462 30.361 24.9225 30.4998 25.3875 30.6723C25.8412 30.8598 26.2688 31.096 26.6625 31.3848C27.0713 31.6435 27.4462 31.9435 27.7875 32.2848C29.2425 33.7323 30.0413 35.7085 30 37.7598C29.9925 39.7473 29.1975 41.6485 27.7875 43.0473ZM50.2875 43.0473C48.8887 44.4573 46.9875 45.2523 45 45.2598C44.5125 45.316 44.025 45.316 43.5375 45.2598C43.0537 45.1585 42.5775 45.0198 42.1125 44.8473C41.6662 44.6485 41.2425 44.4085 40.8375 44.1348C40.4175 43.8648 40.0275 43.5535 39.675 43.1973C38.2425 41.7535 37.4588 39.7923 37.5 37.7598C37.4437 37.2723 37.4437 36.7848 37.5 36.2973C37.6012 35.8135 37.74 35.3373 37.9125 34.8723C38.1 34.4185 38.3363 33.991 38.625 33.5973C38.8913 33.1848 39.195 32.7948 39.525 32.4348C39.885 32.1048 40.275 31.801 40.6875 31.5348C41.0813 31.246 41.5087 31.0098 41.9625 30.8223C42.4725 30.5898 42.9975 30.4023 43.5375 30.2598C47.5987 29.4498 51.5475 32.0898 52.3575 36.151C52.4625 36.6798 52.5112 37.2198 52.5 37.7598C52.5 39.7398 51.72 41.641 50.325 43.0473H50.2875ZM72.7875 43.0473C72.4575 43.411 72.0788 43.726 71.6625 43.9848C71.2575 44.2585 70.8338 44.4985 70.3875 44.6973C69.9225 44.8698 69.4463 45.0085 68.9625 45.1098C68.4825 45.2148 67.9912 45.2635 67.5 45.2598C63.3563 45.2598 60 41.9035 60 37.7598C59.9212 33.6198 63.2138 30.196 67.3538 30.1173C67.8938 30.106 68.4337 30.1548 68.9625 30.2598C69.4463 30.361 69.9225 30.4998 70.3875 30.6723C70.8413 30.8598 71.2688 31.096 71.6625 31.3848C72.0713 31.6435 72.4463 31.9435 72.7875 32.2848C74.2425 33.7323 75.0413 35.7085 75 37.7598C74.9925 39.7473 74.1975 41.6485 72.7875 43.0473Z" fill="#DCDCDC"/>
5
- <path d="M47.7349 18.3633C41.9551 18.3602 36.3043 20.0713 31.497 23.2801C26.6898 26.4889 22.9422 31.0513 20.7283 36.3902C18.5143 41.7291 17.9334 47.6047 19.0591 53.2738C20.1847 58.9429 22.9664 64.1508 27.0522 68.2389C31.138 72.3269 36.3445 75.1114 42.013 76.2401C47.6815 77.3688 53.5574 76.7911 58.8975 74.58C64.2376 72.3688 68.802 68.6237 72.0134 63.8182C75.2248 59.0127 76.9389 53.3628 76.9389 47.583C76.9389 39.8362 73.8626 32.4064 68.3862 26.9271C62.9099 21.4478 55.4817 18.3674 47.7349 18.3633Z" fill="white" stroke="#A1A1A1" stroke-width="1.57011" stroke-linecap="round" stroke-linejoin="round"/>
6
- <path d="M68.5233 68.7793L76.311 76.567" stroke="#A1A1A1" stroke-width="1.57011" stroke-linecap="round" stroke-linejoin="round"/>
7
- <path d="M75.4307 72.7835L73.0113 75.3144C71.9267 76.4489 71.9672 78.2479 73.1017 79.3324L94.0982 99.4041C95.2328 100.489 97.0317 100.448 98.1163 99.3137L100.536 96.7827C101.62 95.6482 101.58 93.8493 100.445 92.7647L79.4487 72.693C78.3142 71.6084 76.5153 71.6489 75.4307 72.7835Z" fill="#A1A1A1"/>
8
- </g>
9
- <defs>
10
- <clipPath id="clip0_13442_134983">
11
- <rect width="120" height="120" fill="white"/>
12
- </clipPath>
13
- </defs>
14
- </svg>
package/dist/src/App.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import "./App.css";
2
- import "@cometchat/chat-uikit-react/css-variables.css";
3
- declare function App(): import("react/jsx-runtime").JSX.Element;
4
- export default App;