@jrapps/my_tickets_chat_ui 0.0.2
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 +0 -0
- package/dist/cjs/components/SiteChatComponent/index.js +3766 -0
- package/dist/cjs/components/SiteChatComponent/index.js.map +7 -0
- package/dist/cjs/index.js +3766 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/esm/chunks/chunk-UB6ZZ4NT.js +3762 -0
- package/dist/esm/chunks/chunk-UB6ZZ4NT.js.map +7 -0
- package/dist/esm/components/SiteChatComponent/index.js +7 -0
- package/dist/esm/components/SiteChatComponent/index.js.map +7 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/types/components/SiteChatComponent/FabButton/FabButton.d.ts +4 -0
- package/dist/types/components/SiteChatComponent/FabButton/FabButton.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/FabButton/FabButton.types.d.ts +8 -0
- package/dist/types/components/SiteChatComponent/FabButton/FabButton.types.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/Footer/Footer.d.ts +4 -0
- package/dist/types/components/SiteChatComponent/Footer/Footer.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/Footer/Footer.types.d.ts +37 -0
- package/dist/types/components/SiteChatComponent/Footer/Footer.types.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/Footer/attachment-list/attachment-list.d.ts +18 -0
- package/dist/types/components/SiteChatComponent/Footer/attachment-list/attachment-list.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/Footer/message-input/message-input.d.ts +14 -0
- package/dist/types/components/SiteChatComponent/Footer/message-input/message-input.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/Footer/send-button/send-button.d.ts +10 -0
- package/dist/types/components/SiteChatComponent/Footer/send-button/send-button.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/Header/Header.d.ts +4 -0
- package/dist/types/components/SiteChatComponent/Header/Header.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/Header/Header.types.d.ts +8 -0
- package/dist/types/components/SiteChatComponent/Header/Header.types.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/MessageContainer/MessageContainer.d.ts +4 -0
- package/dist/types/components/SiteChatComponent/MessageContainer/MessageContainer.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/MessageContainer/MessageContainer.types.d.ts +24 -0
- package/dist/types/components/SiteChatComponent/MessageContainer/MessageContainer.types.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/MessageContainer/messages/attachment.d.ts +11 -0
- package/dist/types/components/SiteChatComponent/MessageContainer/messages/attachment.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/MessageContainer/messages/messages-wrapper.d.ts +24 -0
- package/dist/types/components/SiteChatComponent/MessageContainer/messages/messages-wrapper.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/SiteChatComponent.d.ts +11 -0
- package/dist/types/components/SiteChatComponent/SiteChatComponent.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/SiteChatComponent.types.d.ts +14 -0
- package/dist/types/components/SiteChatComponent/SiteChatComponent.types.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/index.d.ts +6 -0
- package/dist/types/components/SiteChatComponent/index.d.ts.map +1 -0
- package/dist/types/components/SiteChatComponent/useSiteChatComponent.d.ts +8 -0
- package/dist/types/components/SiteChatComponent/useSiteChatComponent.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/test/test.d.ts +8 -0
- package/dist/types/test/test.d.ts.map +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FabButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/SiteChatComponent/FabButton/FabButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,eAAO,MAAM,SAAS,uFAwBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FabButton.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/SiteChatComponent/FabButton/FabButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SiteChatComponent/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAOlD,eAAO,MAAM,MAAM,oFAmClB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
interface SendButtonConfig {
|
|
3
|
+
buttonText?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
interface AttachmentListConfig {
|
|
8
|
+
items: Array<{
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
url: string;
|
|
12
|
+
}>;
|
|
13
|
+
onRemove?: (id: string) => void;
|
|
14
|
+
onClick?: (id: string, url: string) => void;
|
|
15
|
+
onFilesSent?: (files: Array<{
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
url: string;
|
|
19
|
+
}>) => void;
|
|
20
|
+
}
|
|
21
|
+
interface MessageInputWrapperConfig {
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
suffix?: React.ReactNode;
|
|
26
|
+
value?: string;
|
|
27
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
28
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
29
|
+
attachmentButton?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export interface FooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
sendButtonConfig?: SendButtonConfig;
|
|
33
|
+
attachmentListConfig?: AttachmentListConfig;
|
|
34
|
+
messageInputConfig?: MessageInputWrapperConfig;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=Footer.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/SiteChatComponent/Footer/Footer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,gBAAgB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,UAAU,oBAAoB;IAC5B,KAAK,EAAE,KAAK,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,KAAK,IAAI,CAAC;CACjF;AAED,UAAU,yBAAyB;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;CAChD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
interface AttachmentListWrapperProps {
|
|
3
|
+
items: Array<{
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
}>;
|
|
8
|
+
onRemove?: (id: string) => void;
|
|
9
|
+
onClick?: (id: string, url: string) => void;
|
|
10
|
+
onFilesSent?: (files: Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
url: string;
|
|
14
|
+
}>) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const AttachmentList: FC<AttachmentListWrapperProps>;
|
|
17
|
+
export default AttachmentList;
|
|
18
|
+
//# sourceMappingURL=attachment-list.d.ts.map
|
package/dist/types/components/SiteChatComponent/Footer/attachment-list/attachment-list.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment-list.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SiteChatComponent/Footer/attachment-list/attachment-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAQrD,UAAU,0BAA0B;IAChC,KAAK,EAAE,KAAK,CAAC;QACT,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,KAAK,IAAI,CAAC;CACnF;AAED,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,0BAA0B,CAgClD,CAAA;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MessageInputProps {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
suffix?: React.ReactNode;
|
|
7
|
+
value?: string;
|
|
8
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10
|
+
attachmentButton?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const MessageInput: React.FC<MessageInputProps>;
|
|
13
|
+
export default MessageInput;
|
|
14
|
+
//# sourceMappingURL=message-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-input.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SiteChatComponent/Footer/message-input/message-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,iBAAiB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0B7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SendButtonProps {
|
|
3
|
+
text?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const SendButton: React.FC<SendButtonProps>;
|
|
9
|
+
export default SendButton;
|
|
10
|
+
//# sourceMappingURL=send-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SiteChatComponent/Footer/send-button/send-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,eAAe;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAezC,CAAA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/components/SiteChatComponent/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,oFA0ClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/SiteChatComponent/Header/Header.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MessageContainerProps } from './MessageContainer.types';
|
|
3
|
+
export declare const MessageContainer: React.ForwardRefExoticComponent<MessageContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
//# sourceMappingURL=MessageContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SiteChatComponent/MessageContainer/MessageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAItE,eAAO,MAAM,gBAAgB,8FAoB5B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
interface MessageProps {
|
|
3
|
+
_id?: string;
|
|
4
|
+
ticketId?: string;
|
|
5
|
+
teamId?: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
agentId?: string;
|
|
8
|
+
type: 'agent' | 'user' | 'system';
|
|
9
|
+
message?: string;
|
|
10
|
+
attachment?: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
timestamp: number;
|
|
16
|
+
agentName?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface MessageContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
messages: MessageProps[];
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=MessageContainer.types.d.ts.map
|
package/dist/types/components/SiteChatComponent/MessageContainer/MessageContainer.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageContainer.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/SiteChatComponent/MessageContainer/MessageContainer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,YAAY;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE;QACX,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
interface AttachmentWrapperProps {
|
|
3
|
+
item?: {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare const Attachment: FC<AttachmentWrapperProps>;
|
|
10
|
+
export default Attachment;
|
|
11
|
+
//# sourceMappingURL=attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SiteChatComponent/MessageContainer/messages/attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAQhC,UAAU,sBAAsB;IAC5B,IAAI,CAAC,EAAE;QACH,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL;AAED,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,sBAAsB,CAe1C,CAAA;AAED,eAAe,UAAU,CAAC"}
|
package/dist/types/components/SiteChatComponent/MessageContainer/messages/messages-wrapper.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
interface MessageProps {
|
|
3
|
+
_id?: string;
|
|
4
|
+
ticketId?: string;
|
|
5
|
+
teamId?: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
agentId?: string;
|
|
8
|
+
type: 'agent' | 'user' | 'system';
|
|
9
|
+
message?: string;
|
|
10
|
+
attachment?: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
timestamp: number;
|
|
16
|
+
agentName?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
}
|
|
19
|
+
interface MessagesWrapperProps {
|
|
20
|
+
messages: MessageProps[];
|
|
21
|
+
}
|
|
22
|
+
declare const MessagesWrapper: FC<MessagesWrapperProps>;
|
|
23
|
+
export default MessagesWrapper;
|
|
24
|
+
//# sourceMappingURL=messages-wrapper.d.ts.map
|
package/dist/types/components/SiteChatComponent/MessageContainer/messages/messages-wrapper.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SiteChatComponent/MessageContainer/messages/messages-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAgChC,UAAU,YAAY;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE;QACX,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,YAAY,EAAE,CAAC;CAC5B;AAED,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAwB7C,CAAA;AAoED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SiteChatComponentProps } from './SiteChatComponent.types';
|
|
3
|
+
import '@wix/design-system/styles.global.css';
|
|
4
|
+
import './SiteChatComponent.css';
|
|
5
|
+
export declare const SiteChatComponent: React.ForwardRefExoticComponent<SiteChatComponentProps & React.RefAttributes<HTMLDivElement>> & {
|
|
6
|
+
Header: React.ForwardRefExoticComponent<import(".").HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
MessageContainer: React.ForwardRefExoticComponent<import(".").MessageContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Footer: React.ForwardRefExoticComponent<import(".").FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
FabButton: React.ForwardRefExoticComponent<import("./FabButton/FabButton.types").FabButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=SiteChatComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteChatComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/SiteChatComponent/SiteChatComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAOxE,OAAO,sCAAsC,CAAC;AAC9C,OAAO,yBAAyB,CAAC;AAoEjC,eAAO,MAAM,iBAAiB;;;;;CAK5B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export interface SiteChatComponentProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
viewMode: any;
|
|
4
|
+
editorShowChatPanel: boolean;
|
|
5
|
+
buttonTextValue: string;
|
|
6
|
+
demoMessages: any;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
messages: any;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
handleSendMessage: () => void;
|
|
11
|
+
handleToggle: () => void;
|
|
12
|
+
handleClose: () => void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SiteChatComponent.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteChatComponent.types.d.ts","sourceRoot":"","sources":["../../../../src/components/SiteChatComponent/SiteChatComponent.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC5E,QAAQ,EAAE,GAAG,CAAC;IACd,mBAAmB,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,GAAG,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { SiteChatComponent } from './SiteChatComponent';
|
|
2
|
+
export type { SiteChatComponentProps } from './SiteChatComponent.types';
|
|
3
|
+
export type { HeaderProps } from './Header/Header.types';
|
|
4
|
+
export type { MessageContainerProps } from './MessageContainer/MessageContainer.types';
|
|
5
|
+
export type { FooterProps } from './Footer/Footer.types';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SiteChatComponent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useSiteChatComponent
|
|
3
|
+
*
|
|
4
|
+
* Internal hook that encapsulates the logic for SiteChatComponent.
|
|
5
|
+
* Keep this file focused on state and side-effects; keep JSX in SiteChatComponent.tsx.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useSiteChatComponent(): {};
|
|
8
|
+
//# sourceMappingURL=useSiteChatComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSiteChatComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/SiteChatComponent/useSiteChatComponent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,oBAAoB,OAInC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/test/test.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jrapps/my_tickets_chat_ui",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Chat UI for My Tickets Application",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "JRApplications",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"main": "index.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"build": "node build.mjs",
|
|
12
|
+
"build:watch": "node build.mjs --watch",
|
|
13
|
+
"create:component": "node scripts/create-component.mjs"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@wix/design-system": "^1.285.0",
|
|
21
|
+
"@wix/essentials": "^1.0.8",
|
|
22
|
+
"@wix/wix-ui-icons-common": "^3.168.0",
|
|
23
|
+
"prism-react-renderer": "^2.4.1",
|
|
24
|
+
"react-to-webcomponent": "^2.0.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/react": "^18.0.28",
|
|
28
|
+
"@types/react-dom": "^18.3.7",
|
|
29
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
30
|
+
"esbuild": "^0.28.0",
|
|
31
|
+
"react": "^18.0.0",
|
|
32
|
+
"react-dom": "^18.0.0",
|
|
33
|
+
"typescript": "^5.4.0",
|
|
34
|
+
"vite": "^8.0.16"
|
|
35
|
+
}
|
|
36
|
+
}
|