cometchat-visual-builder-no-code 1.0.10-test1 → 1.0.10-test2
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/README.md +1 -1
- package/dist/CometChat/CometChatSettings.d.ts +1 -0
- package/dist/CometChat/context/CometChatContext.d.ts +14 -13
- package/dist/CometChat/styleConfig.d.ts +4 -0
- package/dist/CometChatNoCode/CometChatApi.d.ts +5 -4
- package/dist/CometChatNoCode/components/docked/DockedChatView.d.ts +2 -2
- package/dist/CometChatNoCode/components/embedded/EmbeddedChatView.d.ts +3 -3
- package/dist/CometChatNoCode/services/builders.d.ts +4 -0
- package/dist/CometChatNoCode/useInjectNoCodeStyles.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p>
|
|
6
|
-
<img alt="version" src="https://img.shields.io/badge/version-v1.0.
|
|
6
|
+
<img alt="version" src="https://img.shields.io/badge/version-v1.0.dev-blue" />
|
|
7
7
|
<img alt="status" src="https://img.shields.io/badge/status-stable-brightgreen" />
|
|
8
8
|
<img alt="react" src="https://img.shields.io/badge/react-supported-61DAFB?logo=react" />
|
|
9
9
|
<img alt="vite" src="https://img.shields.io/badge/vite-supported-646CFF?logo=vite" />
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React, { ReactNode } from
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
interface CometChatContextInterface {
|
|
3
|
-
chatFeatures: CometChatSettingsInterface[
|
|
4
|
-
callFeatures: CometChatSettingsInterface[
|
|
5
|
-
styleFeatures: CometChatSettingsInterface[
|
|
6
|
-
layoutFeatures: CometChatSettingsInterface[
|
|
7
|
-
noCodeFeatures: CometChatSettingsInterface[
|
|
8
|
-
builderOrNocodeName: CometChatSettingsInterface[
|
|
9
|
-
setChatFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface[
|
|
10
|
-
setCallFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface[
|
|
11
|
-
setStyleFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface[
|
|
12
|
-
setLayoutFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface[
|
|
13
|
-
setNoCodeFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface[
|
|
14
|
-
setBuilderOrNocodeName: React.Dispatch<React.SetStateAction<CometChatSettingsInterface[
|
|
3
|
+
chatFeatures: CometChatSettingsInterface['chatFeatures'];
|
|
4
|
+
callFeatures: CometChatSettingsInterface['callFeatures'];
|
|
5
|
+
styleFeatures: CometChatSettingsInterface['style'];
|
|
6
|
+
layoutFeatures: CometChatSettingsInterface['layout'];
|
|
7
|
+
noCodeFeatures: CometChatSettingsInterface['noCode'];
|
|
8
|
+
builderOrNocodeName: 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
|
+
setBuilderOrNocodeName: React.Dispatch<React.SetStateAction<CometChatSettingsInterface['name']>>;
|
|
15
15
|
}
|
|
16
16
|
interface CometChatProviderProps {
|
|
17
17
|
children: ReactNode;
|
|
@@ -99,6 +99,7 @@ export interface CometChatSettingsInterface {
|
|
|
99
99
|
styles: {
|
|
100
100
|
buttonBackGround: string;
|
|
101
101
|
buttonShape: string;
|
|
102
|
+
dockedAlignment: string;
|
|
102
103
|
openIcon: string;
|
|
103
104
|
closeIcon: string;
|
|
104
105
|
customJs: string;
|
|
@@ -10,6 +10,10 @@ export declare const buttonShapeOptions: {
|
|
|
10
10
|
value: string;
|
|
11
11
|
label: string;
|
|
12
12
|
}[];
|
|
13
|
+
export declare const dockedAlignOptions: {
|
|
14
|
+
value: string;
|
|
15
|
+
label: string;
|
|
16
|
+
}[];
|
|
13
17
|
export declare const fontSizes: {
|
|
14
18
|
compact: {
|
|
15
19
|
'--cometchat-font-title-bold': string;
|
|
@@ -11,8 +11,9 @@ export interface VcbData {
|
|
|
11
11
|
isDocked?: boolean;
|
|
12
12
|
height?: string;
|
|
13
13
|
width?: string;
|
|
14
|
-
chatType?:
|
|
14
|
+
chatType?: "user" | "group";
|
|
15
15
|
defaultChatID?: string;
|
|
16
|
+
theme?: string;
|
|
16
17
|
}
|
|
17
18
|
export declare const vcbData: VcbData;
|
|
18
19
|
export declare const listeners: Record<string, Function>;
|
|
@@ -33,10 +34,10 @@ declare const CometChatApp: {
|
|
|
33
34
|
isDocked?: boolean;
|
|
34
35
|
height?: string;
|
|
35
36
|
width?: string;
|
|
36
|
-
chatType?:
|
|
37
|
+
chatType?: "user" | "group";
|
|
37
38
|
defaultChatID?: string;
|
|
38
|
-
}) => void
|
|
39
|
-
|
|
39
|
+
}) => Promise<void>;
|
|
40
|
+
uiEvent: (eventName: string, callback: Function) => void;
|
|
40
41
|
callUser: (uid: string) => Promise<void>;
|
|
41
42
|
callGroup: (guid: string) => Promise<void>;
|
|
42
43
|
createOrUpdateUser: (user: CometChat.User) => Promise<import("@cometchat/chat-sdk-javascript").User>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface DockedChatViewInterface {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
-
|
|
4
|
+
showSidebarOnDesktop?: boolean | undefined;
|
|
5
5
|
type?: 'user' | 'group';
|
|
6
6
|
}
|
|
7
|
-
declare const DockedChatView: ({ children,
|
|
7
|
+
declare const DockedChatView: ({ children, showSidebarOnDesktop, type }: DockedChatViewInterface) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default DockedChatView;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
interface EmbeddedChatViewInterface {
|
|
2
|
-
|
|
2
|
+
showSidebarOnDesktop?: boolean;
|
|
3
3
|
user?: CometChat.User;
|
|
4
4
|
group?: CometChat.Group;
|
|
5
|
-
type?:
|
|
5
|
+
type?: "user" | "group";
|
|
6
6
|
}
|
|
7
|
-
declare const EmbeddedChatView: ({
|
|
7
|
+
declare const EmbeddedChatView: ({ showSidebarOnDesktop, user, group, type, }: EmbeddedChatViewInterface) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default EmbeddedChatView;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Custom React hook to fetch and apply CometChat noCode styles (CSS & JS) dynamically.
|
|
3
3
|
*
|
|
4
4
|
* @param variantID - The unique nocode vcb ID provided by CometChat.
|
|
5
|
-
* @param
|
|
5
|
+
* @param appId - The unique nocode App ID provided by CometChat.
|
|
6
6
|
*/
|
|
7
7
|
declare const useInjectNoCodeStyles: (appId?: string, variantID?: string) => void;
|
|
8
8
|
export default useInjectNoCodeStyles;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import "./App.css";
|
|
2
|
+
import "@cometchat/chat-uikit-react/css-variables.css";
|
|
2
3
|
export declare const showOutgoingCallUI: (call: any) => void;
|
|
3
4
|
export declare const showOnGoingCallUI: (sessionId: string) => void;
|
|
5
|
+
export declare const showDirectOnGoingCall: (callToken: string) => void;
|
|
6
|
+
export declare const cleanupCallUI: () => void;
|
|
4
7
|
declare global {
|
|
5
8
|
interface Window {
|
|
6
9
|
MyReactComponents: any;
|