cmcts-c-agent-embedding 1.0.0-cagent
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/.env +2 -0
- package/.env.example +34 -0
- package/.eslintrc.cjs +14 -0
- package/.prettierignore +3 -0
- package/.prettierrc +8 -0
- package/README.md +349 -0
- package/base.json +21 -0
- package/dist/BubbleChat.d.ts +13 -0
- package/dist/BubbleChat.d.ts.map +1 -0
- package/dist/FullPageChat.d.ts +18 -0
- package/dist/FullPageChat.d.ts.map +1 -0
- package/dist/components/Badge.d.ts +10 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Bot.d.ts +127 -0
- package/dist/components/Bot.d.ts.map +1 -0
- package/dist/components/FeedbackContentDialog.d.ts +13 -0
- package/dist/components/FeedbackContentDialog.d.ts.map +1 -0
- package/dist/components/Toast.d.ts +10 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/TypingBubble.d.ts +2 -0
- package/dist/components/TypingBubble.d.ts.map +1 -0
- package/dist/components/avatars/Avatar.d.ts +4 -0
- package/dist/components/avatars/Avatar.d.ts.map +1 -0
- package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
- package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
- package/dist/components/bubbles/AgentReasoningBubble.d.ts +16 -0
- package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
- package/dist/components/bubbles/BotBubble.d.ts +35 -0
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts +8 -0
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
- package/dist/components/bubbles/GuestBubble.d.ts +16 -0
- package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LeadCaptureBubble.d.ts +20 -0
- package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LoadingBubble.d.ts +8 -0
- package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
- package/dist/components/bubbles/SourceBubble.d.ts +9 -0
- package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
- package/dist/components/bubbles/StarterPromptBubble.d.ts +8 -0
- package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
- package/dist/components/buttons/AttachmentUploadButton.d.ts +11 -0
- package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
- package/dist/components/buttons/CancelButton.d.ts +10 -0
- package/dist/components/buttons/CancelButton.d.ts.map +1 -0
- package/dist/components/buttons/FeedbackButtons.d.ts +14 -0
- package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
- package/dist/components/buttons/ImageUploadButton.d.ts +11 -0
- package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
- package/dist/components/buttons/LeadCaptureButtons.d.ts +11 -0
- package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
- package/dist/components/buttons/RecordAudioButton.d.ts +11 -0
- package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
- package/dist/components/buttons/SendButton.d.ts +13 -0
- package/dist/components/buttons/SendButton.d.ts.map +1 -0
- package/dist/components/icons/AddImageIcon.d.ts +3 -0
- package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
- package/dist/components/icons/AttachmentIcon.d.ts +3 -0
- package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
- package/dist/components/icons/CircleDotIcon.d.ts +3 -0
- package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
- package/dist/components/icons/ClipboardIcon.d.ts +3 -0
- package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
- package/dist/components/icons/CmcIcon.d.ts +3 -0
- package/dist/components/icons/CmcIcon.d.ts.map +1 -0
- package/dist/components/icons/DeleteIcon.d.ts +3 -0
- package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
- package/dist/components/icons/FullScreenIcon.d.ts +3 -0
- package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
- package/dist/components/icons/RecordIcon.d.ts +3 -0
- package/dist/components/icons/RecordIcon.d.ts.map +1 -0
- package/dist/components/icons/ResetBtn.d.ts +3 -0
- package/dist/components/icons/ResetBtn.d.ts.map +1 -0
- package/dist/components/icons/SendIcon.d.ts +3 -0
- package/dist/components/icons/SendIcon.d.ts.map +1 -0
- package/dist/components/icons/SendIconOff.d.ts +3 -0
- package/dist/components/icons/SendIconOff.d.ts.map +1 -0
- package/dist/components/icons/SendIconOn.d.ts +3 -0
- package/dist/components/icons/SendIconOn.d.ts.map +1 -0
- package/dist/components/icons/SparklesIcon.d.ts +3 -0
- package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsDownIcon.d.ts +5 -0
- package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsUpIcon.d.ts +5 -0
- package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
- package/dist/components/icons/TickIcon.d.ts +2 -0
- package/dist/components/icons/TickIcon.d.ts.map +1 -0
- package/dist/components/icons/TrashIcon.d.ts +3 -0
- package/dist/components/icons/TrashIcon.d.ts.map +1 -0
- package/dist/components/icons/XIcon.d.ts +5 -0
- package/dist/components/icons/XIcon.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts +15 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/image/PreviewImage.d.ts +5 -0
- package/dist/components/image/PreviewImage.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/FilePreview.d.ts +12 -0
- package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +13 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/TextInput.d.ts +44 -0
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
- package/dist/components/inputs/textInput/index.d.ts +3 -0
- package/dist/components/inputs/textInput/index.d.ts.map +1 -0
- package/dist/components/mobile/MobileWelcomeScreen.d.ts +13 -0
- package/dist/components/mobile/MobileWelcomeScreen.d.ts.map +1 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/features/bubble/components/Bubble.d.ts +5 -0
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
- package/dist/features/bubble/components/BubbleButton.d.ts +16 -0
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
- package/dist/features/bubble/components/Tooltip.d.ts +15 -0
- package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
- package/dist/features/bubble/components/index.d.ts +2 -0
- package/dist/features/bubble/components/index.d.ts.map +1 -0
- package/dist/features/bubble/index.d.ts +2 -0
- package/dist/features/bubble/index.d.ts.map +1 -0
- package/dist/features/bubble/types.d.ts +108 -0
- package/dist/features/bubble/types.d.ts.map +1 -0
- package/dist/features/full/components/Full.d.ts +7 -0
- package/dist/features/full/components/Full.d.ts.map +1 -0
- package/dist/features/full/components/index.d.ts +2 -0
- package/dist/features/full/components/index.d.ts.map +1 -0
- package/dist/features/full/index.d.ts +2 -0
- package/dist/features/full/index.d.ts.map +1 -0
- package/dist/features/popup/components/DisclaimerPopup.d.ts +14 -0
- package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
- package/dist/features/popup/components/Popup.d.ts +8 -0
- package/dist/features/popup/components/Popup.d.ts.map +1 -0
- package/dist/features/popup/components/index.d.ts +3 -0
- package/dist/features/popup/components/index.d.ts.map +1 -0
- package/dist/features/popup/index.d.ts +2 -0
- package/dist/features/popup/index.d.ts.map +1 -0
- package/dist/features/popup/types.d.ts +8 -0
- package/dist/features/popup/types.d.ts.map +1 -0
- package/dist/hooks/useMobileDetection.d.ts +52 -0
- package/dist/hooks/useMobileDetection.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/queries/sendMessageQuery.d.ts +125 -0
- package/dist/queries/sendMessageQuery.d.ts.map +1 -0
- package/dist/register.d.ts +2 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/test-markdown-component.d.ts +2 -0
- package/dist/test-markdown-component.d.ts.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/audioRecording.d.ts +21 -0
- package/dist/utils/audioRecording.d.ts.map +1 -0
- package/dist/utils/chatInputHistory.d.ts +22 -0
- package/dist/utils/chatInputHistory.d.ts.map +1 -0
- package/dist/utils/index.d.ts +27 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/isMobileSignal.d.ts +2 -0
- package/dist/utils/isMobileSignal.d.ts.map +1 -0
- package/dist/utils/mobileUtils.d.ts +32 -0
- package/dist/utils/mobileUtils.d.ts.map +1 -0
- package/dist/utils/ultimateJsonParser.d.ts +2 -0
- package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
- package/dist/web.d.ts +29 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +1 -0
- package/dist/window.d.ts +33 -0
- package/dist/window.d.ts.map +1 -0
- package/images/ChatEmbed.gif +0 -0
- package/images/proxyserver.png +0 -0
- package/package.json +81 -0
- package/public/index.html +153 -0
- package/server.js +401 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/TextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6C,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOrE,KAAK,eAAe,GAAG,MAAM,GAAG,WAAW,CAAC;AAC5C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,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MAAM,CAAC,OAAO,CAAC,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,cAAc,mCA2V9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
welcomeMessage?: string;
|
|
3
|
+
onSubmit: (message: string) => void;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
sendButtonColor?: string;
|
|
8
|
+
textInput?: any;
|
|
9
|
+
fontSize?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const MobileWelcomeScreen: (props: Props) => import("solid-js").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=MobileWelcomeScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileWelcomeScreen.d.ts","sourceRoot":"","sources":["../../../src/components/mobile/MobileWelcomeScreen.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAUF,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCA0F/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,eAAe,EAAE,WAe7B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BubbleParams } from '../types';
|
|
2
|
+
import { BotProps } from '../../../components/Bot';
|
|
3
|
+
export type BubbleProps = BotProps & BubbleParams;
|
|
4
|
+
export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=Bubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAOxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,mCAoXxC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ButtonTheme } from '../types';
|
|
2
|
+
type Props = ButtonTheme & {
|
|
3
|
+
isBotOpened: boolean;
|
|
4
|
+
toggleBot: () => void;
|
|
5
|
+
setButtonPosition: (position: {
|
|
6
|
+
bottom: number;
|
|
7
|
+
right: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
dragAndDrop: boolean;
|
|
10
|
+
autoOpen?: boolean;
|
|
11
|
+
openDelay?: number;
|
|
12
|
+
autoOpenOnMobile?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=BubbleButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,EAAE,CAAC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACzE,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAOF,eAAO,MAAM,YAAY,UAAW,KAAK,mCA8HxC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type TooltipProps = {
|
|
2
|
+
showTooltip: boolean;
|
|
3
|
+
position: {
|
|
4
|
+
bottom: number;
|
|
5
|
+
right: number;
|
|
6
|
+
};
|
|
7
|
+
buttonSize: number;
|
|
8
|
+
tooltipMessage?: string;
|
|
9
|
+
tooltipBackgroundColor?: string;
|
|
10
|
+
tooltipTextColor?: string;
|
|
11
|
+
tooltipFontSize?: number;
|
|
12
|
+
};
|
|
13
|
+
declare const Tooltip: (props: TooltipProps) => import("solid-js").JSX.Element;
|
|
14
|
+
export default Tooltip;
|
|
15
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Tooltip.tsx"],"names":[],"mappings":"AAOA,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,YAAY,mCA2CnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export type BubbleParams = {
|
|
2
|
+
theme?: BubbleTheme;
|
|
3
|
+
};
|
|
4
|
+
export type BubbleTheme = {
|
|
5
|
+
chatWindow?: ChatWindowTheme;
|
|
6
|
+
button?: ButtonTheme;
|
|
7
|
+
tooltip?: ToolTipTheme;
|
|
8
|
+
disclaimer?: DisclaimerPopUpTheme;
|
|
9
|
+
customCSS?: string;
|
|
10
|
+
};
|
|
11
|
+
export type TextInputTheme = {
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
textColor?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
sendButtonColor?: string;
|
|
16
|
+
maxChars?: number;
|
|
17
|
+
maxCharsWarningMessage?: string;
|
|
18
|
+
autoFocus?: boolean;
|
|
19
|
+
sendMessageSound?: boolean;
|
|
20
|
+
sendSoundLocation?: string;
|
|
21
|
+
receiveMessageSound?: boolean;
|
|
22
|
+
receiveSoundLocation?: string;
|
|
23
|
+
};
|
|
24
|
+
export type UserMessageTheme = {
|
|
25
|
+
backgroundColor?: string;
|
|
26
|
+
textColor?: string;
|
|
27
|
+
showAvatar?: boolean;
|
|
28
|
+
avatarSrc?: string;
|
|
29
|
+
};
|
|
30
|
+
export type BotMessageTheme = {
|
|
31
|
+
backgroundColor?: string;
|
|
32
|
+
textColor?: string;
|
|
33
|
+
showAvatar?: boolean;
|
|
34
|
+
avatarSrc?: string;
|
|
35
|
+
};
|
|
36
|
+
export type FooterTheme = {
|
|
37
|
+
showFooter?: boolean;
|
|
38
|
+
textColor?: string;
|
|
39
|
+
text?: string;
|
|
40
|
+
company?: string;
|
|
41
|
+
companyLink?: string;
|
|
42
|
+
};
|
|
43
|
+
export type FeedbackTheme = {
|
|
44
|
+
color?: string;
|
|
45
|
+
};
|
|
46
|
+
export type ChatWindowTheme = {
|
|
47
|
+
showTitle?: boolean;
|
|
48
|
+
showAgentMessages?: boolean;
|
|
49
|
+
title?: string;
|
|
50
|
+
titleAvatarSrc?: string;
|
|
51
|
+
welcomeMessage?: string;
|
|
52
|
+
secondMessage?: string;
|
|
53
|
+
errorMessage?: string;
|
|
54
|
+
backgroundColor?: string;
|
|
55
|
+
backgroundImage?: string;
|
|
56
|
+
height?: number;
|
|
57
|
+
width?: number;
|
|
58
|
+
fontSize?: number;
|
|
59
|
+
userMessage?: UserMessageTheme;
|
|
60
|
+
botMessage?: BotMessageTheme;
|
|
61
|
+
textInput?: TextInputTheme;
|
|
62
|
+
feedback?: FeedbackTheme;
|
|
63
|
+
footer?: FooterTheme;
|
|
64
|
+
sourceDocsTitle?: string;
|
|
65
|
+
poweredByTextColor?: string;
|
|
66
|
+
starterPrompts?: string[];
|
|
67
|
+
starterPromptFontSize?: number;
|
|
68
|
+
clearChatOnReload?: boolean;
|
|
69
|
+
dateTimeToggle?: DateTimeToggleTheme;
|
|
70
|
+
renderHTML?: boolean;
|
|
71
|
+
};
|
|
72
|
+
export type ButtonTheme = {
|
|
73
|
+
size?: 'small' | 'medium' | 'large' | number;
|
|
74
|
+
backgroundColor?: string;
|
|
75
|
+
iconColor?: string;
|
|
76
|
+
customIconSrc?: string;
|
|
77
|
+
bottom?: number;
|
|
78
|
+
right?: number;
|
|
79
|
+
dragAndDrop?: boolean;
|
|
80
|
+
autoWindowOpen?: autoWindowOpenTheme;
|
|
81
|
+
};
|
|
82
|
+
export type ToolTipTheme = {
|
|
83
|
+
showTooltip?: boolean;
|
|
84
|
+
tooltipMessage?: string;
|
|
85
|
+
tooltipBackgroundColor?: string;
|
|
86
|
+
tooltipTextColor?: string;
|
|
87
|
+
tooltipFontSize?: number;
|
|
88
|
+
};
|
|
89
|
+
export type autoWindowOpenTheme = {
|
|
90
|
+
autoOpen?: boolean;
|
|
91
|
+
openDelay?: number;
|
|
92
|
+
autoOpenOnMobile?: boolean;
|
|
93
|
+
};
|
|
94
|
+
export type DisclaimerPopUpTheme = {
|
|
95
|
+
title?: string;
|
|
96
|
+
message?: string;
|
|
97
|
+
textColor?: string;
|
|
98
|
+
buttonColor?: string;
|
|
99
|
+
buttonTextColor?: string;
|
|
100
|
+
buttonText?: string;
|
|
101
|
+
blurredBackgroundColor?: string;
|
|
102
|
+
backgroundColor?: string;
|
|
103
|
+
};
|
|
104
|
+
export type DateTimeToggleTheme = {
|
|
105
|
+
date?: boolean;
|
|
106
|
+
time?: boolean;
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW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AK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BotProps } from '@/components/Bot';
|
|
2
|
+
import { BubbleParams } from '@/features/bubble/types';
|
|
3
|
+
export type FullProps = BotProps & BubbleParams;
|
|
4
|
+
export declare const Full: (props: FullProps, { element }: {
|
|
5
|
+
element: HTMLElement;
|
|
6
|
+
}) => import("solid-js").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=Full.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Full.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/Full.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,IAAI,UAAW,SAAS;aAA0B,WAAW;oCA8FzE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/full/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type DisclaimerPopupProps = {
|
|
2
|
+
isOpen?: boolean;
|
|
3
|
+
onAccept?: () => void;
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
buttonText?: string;
|
|
7
|
+
blurredBackgroundColor?: string;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
buttonColor?: string;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
buttonTextColor?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=DisclaimerPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisclaimerPopup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/DisclaimerPopup.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAoD1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/Popup.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AA4BF,eAAO,MAAM,KAAK,UAAW,UAAU,mCAkRtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/popup/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/popup/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type DeviceType = 'mobile' | 'tablet' | 'desktop';
|
|
2
|
+
export type ScreenSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3
|
+
export interface DeviceInfo {
|
|
4
|
+
isMobile: boolean;
|
|
5
|
+
isTablet: boolean;
|
|
6
|
+
isDesktop: boolean;
|
|
7
|
+
deviceType: DeviceType;
|
|
8
|
+
screenSize: ScreenSize;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
orientation: 'portrait' | 'landscape';
|
|
12
|
+
touchSupport: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Enhanced mobile detection hook with comprehensive device information
|
|
16
|
+
* Follows Tailwind CSS breakpoints:
|
|
17
|
+
* - xs: < 640px (mobile)
|
|
18
|
+
* - sm: 640px - 768px (large mobile/small tablet)
|
|
19
|
+
* - md: 768px - 1024px (tablet)
|
|
20
|
+
* - lg: 1024px - 1280px (small desktop)
|
|
21
|
+
* - xl: 1280px - 1536px (desktop)
|
|
22
|
+
* - 2xl: >= 1536px (large desktop)
|
|
23
|
+
*/
|
|
24
|
+
export declare const useMobileDetection: () => import("solid-js").Accessor<DeviceInfo>;
|
|
25
|
+
/**
|
|
26
|
+
* Simple mobile detection hook (backward compatibility)
|
|
27
|
+
*/
|
|
28
|
+
export declare const useIsMobile: () => () => boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Utility functions for responsive design
|
|
31
|
+
*/
|
|
32
|
+
export declare const createResponsiveClass: (deviceInfo: () => DeviceInfo) => {
|
|
33
|
+
mobile: (classes: string) => string;
|
|
34
|
+
tablet: (classes: string) => string;
|
|
35
|
+
desktop: (classes: string) => string;
|
|
36
|
+
touchDevice: (classes: string) => string;
|
|
37
|
+
portrait: (classes: string) => string;
|
|
38
|
+
landscape: (classes: string) => string;
|
|
39
|
+
screenSize: (size: ScreenSize, classes: string) => string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Media query utilities
|
|
43
|
+
*/
|
|
44
|
+
export declare const mediaQueries: {
|
|
45
|
+
readonly mobile: "(max-width: 767px)";
|
|
46
|
+
readonly tablet: "(min-width: 768px) and (max-width: 1023px)";
|
|
47
|
+
readonly desktop: "(min-width: 1024px)";
|
|
48
|
+
readonly touch: "(hover: none) and (pointer: coarse)";
|
|
49
|
+
readonly portrait: "(orientation: portrait)";
|
|
50
|
+
readonly landscape: "(orientation: landscape)";
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=useMobileDetection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMobileDetection.d.ts","sourceRoot":"","sources":["../../src/hooks/useMobileDetection.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,UAAU,GAAG,WAAW,CAAC;IACtC,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,+CAgF9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,qBAGvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,eAAgB,MAAM,UAAU;sBAE5C,MAAM;sBACN,MAAM;uBACL,MAAM;2BACF,MAAM;wBACT,MAAM;yBACL,MAAM;uBACR,UAAU,WAAW,MAAM;CAEjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC"}
|