@satek-team-intern/chatbot-widget 0.11.3 → 0.11.4
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/dist/{src/types/types.d.ts → index.d.ts} +90 -74
- package/package.json +3 -3
- package/dist/constants/scenario_guest_vi.json.d.ts +0 -103
- package/dist/locales/en.json.d.ts +0 -331
- package/dist/locales/vi.json.d.ts +0 -332
- package/dist/src/assets/Icons.d.ts +0 -67
- package/dist/src/assets/createIcon.d.ts +0 -24
- package/dist/src/assets/index.d.ts +0 -2
- package/dist/src/components/ChatWidget.d.ts +0 -3
- package/dist/src/components/ChatWindow.d.ts +0 -3
- package/dist/src/components/FloatingButton.d.ts +0 -1
- package/dist/src/components/account/MultiChatManager.d.ts +0 -6
- package/dist/src/components/account/index.d.ts +0 -1
- package/dist/src/components/index.d.ts +0 -8
- package/dist/src/components/modals/AddGroup.d.ts +0 -6
- package/dist/src/components/modals/AddMember.d.ts +0 -6
- package/dist/src/components/modals/FileViewer.d.ts +0 -10
- package/dist/src/components/modals/UpdateGroup.d.ts +0 -8
- package/dist/src/components/modals/UserProfileModal.d.ts +0 -1
- package/dist/src/components/modals/index.d.ts +0 -5
- package/dist/src/components/shared/AvatarFallBack.d.ts +0 -5
- package/dist/src/components/shared/OnboardingFormBlock.d.ts +0 -10
- package/dist/src/components/shared/QuickReplyButton.d.ts +0 -13
- package/dist/src/components/shared/ToastContainer.d.ts +0 -2
- package/dist/src/components/shared/index.d.ts +0 -4
- package/dist/src/components/sidebar/AppSideBar.d.ts +0 -1
- package/dist/src/components/sidebar/ChatInfoPanel.d.ts +0 -10
- package/dist/src/components/sidebar/ChatList.d.ts +0 -7
- package/dist/src/components/sidebar/ChatSearchBar.d.ts +0 -9
- package/dist/src/components/sidebar/ChatSidebar.d.ts +0 -9
- package/dist/src/components/sidebar/index.d.ts +0 -5
- package/dist/src/components/view/ChatHeader.d.ts +0 -10
- package/dist/src/components/view/ChatInput.d.ts +0 -4
- package/dist/src/components/view/ChatListItem.d.ts +0 -7
- package/dist/src/components/view/ChatMainArea.d.ts +0 -9
- package/dist/src/components/view/ChatMainHeader.d.ts +0 -6
- package/dist/src/components/view/ChatliveSetting.d.ts +0 -1
- package/dist/src/components/view/ContactList.d.ts +0 -6
- package/dist/src/components/view/EmptyChatState.d.ts +0 -1
- package/dist/src/components/view/FileIconMap.d.ts +0 -8
- package/dist/src/components/view/GroupList.d.ts +0 -9
- package/dist/src/components/view/ImageFileItem.d.ts +0 -10
- package/dist/src/components/view/MessageFiles.d.ts +0 -23
- package/dist/src/components/view/MessageItem.d.ts +0 -7
- package/dist/src/components/view/MessageList.d.ts +0 -2
- package/dist/src/components/view/SettingSection.d.ts +0 -1
- package/dist/src/components/view/ThemeSetting.d.ts +0 -1
- package/dist/src/components/view/WindowResizeHandles.d.ts +0 -6
- package/dist/src/components/view/index.d.ts +0 -16
- package/dist/src/config/configEnv.d.ts +0 -11
- package/dist/src/constants/common.d.ts +0 -15
- package/dist/src/constants/file.d.ts +0 -3
- package/dist/src/constants/index.d.ts +0 -6
- package/dist/src/constants/onboarding.d.ts +0 -4
- package/dist/src/constants/permissionRules.d.ts +0 -25
- package/dist/src/constants/permissions.d.ts +0 -15
- package/dist/src/contexts/FileViewerContext.d.ts +0 -14
- package/dist/src/contexts/ToastContext.d.ts +0 -4
- package/dist/src/contexts/index.d.ts +0 -3
- package/dist/src/contexts/toast-context.d.ts +0 -16
- package/dist/src/hooks/index.d.ts +0 -13
- package/dist/src/hooks/useChat.d.ts +0 -2
- package/dist/src/hooks/useChatActions.d.ts +0 -9
- package/dist/src/hooks/useChatSearch.d.ts +0 -27
- package/dist/src/hooks/useChatWidget.d.ts +0 -4
- package/dist/src/hooks/useDragDropFiles.d.ts +0 -12
- package/dist/src/hooks/useFileViewer.d.ts +0 -2
- package/dist/src/hooks/usePermissions.d.ts +0 -9
- package/dist/src/hooks/useProcessOnboarding.d.ts +0 -3
- package/dist/src/hooks/useSetting.d.ts +0 -8
- package/dist/src/hooks/useToast.d.ts +0 -1
- package/dist/src/hooks/useTranslation.d.ts +0 -5
- package/dist/src/hooks/useVoiceRecorder.d.ts +0 -14
- package/dist/src/hooks/useWindowControls.d.ts +0 -14
- package/dist/src/index.d.ts +0 -5
- package/dist/src/locales/index.d.ts +0 -3
- package/dist/src/services/chat.service.d.ts +0 -42
- package/dist/src/services/chatManager.service.d.ts +0 -16
- package/dist/src/services/index.d.ts +0 -3
- package/dist/src/services/language.service.d.ts +0 -18
- package/dist/src/store/index.d.ts +0 -3
- package/dist/src/store/selectors/chat.d.ts +0 -5
- package/dist/src/store/selectors/index.d.ts +0 -2
- package/dist/src/store/selectors/setting.d.ts +0 -4
- package/dist/src/store/slices/chatSlice.d.ts +0 -128
- package/dist/src/store/slices/index.d.ts +0 -4
- package/dist/src/store/slices/layoutSlice.d.ts +0 -12
- package/dist/src/store/slices/onboardingSlice.d.ts +0 -15
- package/dist/src/store/slices/settingSlice.d.ts +0 -16
- package/dist/src/store/store.d.ts +0 -20
- package/dist/src/types/chat.type.d.ts +0 -370
- package/dist/src/types/index.d.ts +0 -4
- package/dist/src/types/layout.type.d.ts +0 -13
- package/dist/src/types/onboarding.type.d.ts +0 -45
- package/dist/src/utils/chat.utils.d.ts +0 -30
- package/dist/src/utils/engine.utils.d.ts +0 -5
- package/dist/src/utils/file.utils.d.ts +0 -18
- package/dist/src/utils/format.utils.d.ts +0 -7
- package/dist/src/utils/index.d.ts +0 -7
- package/dist/src/utils/text.utils.d.ts +0 -1
- package/dist/src/utils/validate.utils.d.ts +0 -1
- package/dist/src/utils/voice.utils.d.ts +0 -1
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DeepData } from '../../types';
|
|
2
|
-
export declare const interpolateString: <T extends DeepData>(template: string, data: T) => string;
|
|
3
|
-
export declare const PHONE_REGEX: RegExp;
|
|
4
|
-
export declare const EMAIL_REGEX: RegExp;
|
|
5
|
-
export declare const evaluateCondition: (rule: string, value: unknown, input: string) => boolean;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
export declare const getFileKey: (file: File) => string | undefined;
|
|
3
|
-
export declare const formatFileSize: (bytes: number) => string;
|
|
4
|
-
export declare const getFileType: (fileName: string) => "image" | "video" | "audio" | "pdf" | "other";
|
|
5
|
-
export declare const getFileExt: (fileName: string) => string;
|
|
6
|
-
export declare const getImagePreview: (file: File) => string;
|
|
7
|
-
export declare const isImageFile: (file: File) => boolean;
|
|
8
|
-
export declare const isAudioFile: (file: File) => boolean;
|
|
9
|
-
export declare const getAudioPreview: (file: File) => string;
|
|
10
|
-
export declare const sortFilesByType: (files: File[]) => File[];
|
|
11
|
-
export declare const sanitizeImage: (file: File) => Promise<File>;
|
|
12
|
-
export declare const getFilesValidationError: (files: File[], hasMultipleAttachments: boolean, isFileTypeAllowed: (file: File) => boolean) => Promise<{
|
|
13
|
-
message: string;
|
|
14
|
-
type: "warning" | "error";
|
|
15
|
-
} | null>;
|
|
16
|
-
export declare const validateFileContent: (file: File) => Promise<boolean>;
|
|
17
|
-
export declare const validateFileUrlContent: (url: string, type: string) => Promise<boolean>;
|
|
18
|
-
export declare function getImageRatioStyleFromLink(imgUrl: string): Promise<CSSProperties>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LanguageOption } from '../../types';
|
|
2
|
-
export declare const formatDuration: (ms: number) => string;
|
|
3
|
-
export declare const removeVietnameseTones: (str: string) => string;
|
|
4
|
-
export declare const formatToDateTimeString: (dateInput: string | number | Date) => string;
|
|
5
|
-
export declare const getCleanTitle: (url: string) => string | null;
|
|
6
|
-
export declare const formatMessageTime: (dateInput: Date, language: LanguageOption) => string;
|
|
7
|
-
export declare const formatMessageDateShort: (dateInput: Date, language: LanguageOption) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const highlightText: (text: string, query: string) => string | import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isStandardUrl: (urlString: string) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const convertToMp3: (blob: Blob) => Promise<Blob>;
|