@bindu-dashing/dam-solution-v2 5.8.6
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 +53 -0
- package/build/AssetType/AddFieldProperties.d.ts +9 -0
- package/build/AssetType/AddFieldProperties.js +197 -0
- package/build/AssetType/AssetTemplatesTable.d.ts +10 -0
- package/build/AssetType/AssetTemplatesTable.js +153 -0
- package/build/AssetType/CreateAssetTemplate.d.ts +3 -0
- package/build/AssetType/CreateAssetTemplate.js +68 -0
- package/build/AssetType/CreateOrEditAssetTemplate.d.ts +1 -0
- package/build/AssetType/CreateOrEditAssetTemplate.js +77 -0
- package/build/AssetType/DraggedField.d.ts +14 -0
- package/build/AssetType/DraggedField.js +40 -0
- package/build/AssetType/EditAssetTemplate.d.ts +5 -0
- package/build/AssetType/EditAssetTemplate.js +179 -0
- package/build/AssetType/FieldsSection.d.ts +14 -0
- package/build/AssetType/FieldsSection.js +239 -0
- package/build/AssetType/assetTemplatesContainer.d.ts +2 -0
- package/build/AssetType/assetTemplatesContainer.js +71 -0
- package/build/AssetType/fieldProperties/DateField.d.ts +5 -0
- package/build/AssetType/fieldProperties/DateField.js +23 -0
- package/build/AssetType/fieldProperties/NumberField.d.ts +5 -0
- package/build/AssetType/fieldProperties/NumberField.js +91 -0
- package/build/AssetType/fieldProperties/OptionsField.d.ts +6 -0
- package/build/AssetType/fieldProperties/OptionsField.js +55 -0
- package/build/AssetType/fieldProperties/TextField.d.ts +5 -0
- package/build/AssetType/fieldProperties/TextField.js +92 -0
- package/build/AssetType/index.d.ts +11 -0
- package/build/AssetType/index.js +24 -0
- package/build/AssetType/routes.d.ts +3 -0
- package/build/AssetType/routes.js +17 -0
- package/build/BookView/ProductDescription.d.ts +4 -0
- package/build/BookView/ProductDescription.js +20 -0
- package/build/BookView/bookDetail.d.ts +4 -0
- package/build/BookView/bookDetail.js +106 -0
- package/build/BookView/bookInfo.d.ts +4 -0
- package/build/BookView/bookInfo.js +17 -0
- package/build/BookView/description.d.ts +4 -0
- package/build/BookView/description.js +5 -0
- package/build/BookView/index.d.ts +10 -0
- package/build/BookView/index.js +23 -0
- package/build/CreateClient/CreateClientBtn.d.ts +8 -0
- package/build/CreateClient/CreateClientBtn.js +12 -0
- package/build/CreateClient/CreateClientForm.d.ts +9 -0
- package/build/CreateClient/CreateClientForm.js +165 -0
- package/build/CreateClient/index.d.ts +14 -0
- package/build/CreateClient/index.js +18 -0
- package/build/ImagePicker/MetaFieldOptions.d.ts +14 -0
- package/build/ImagePicker/MetaFieldOptions.js +75 -0
- package/build/ImagePicker/TestImagePickerModal.d.ts +8 -0
- package/build/ImagePicker/TestImagePickerModal.js +61 -0
- package/build/ImagePicker/TestImgFromMetaData.d.ts +7 -0
- package/build/ImagePicker/TestImgFromMetaData.js +82 -0
- package/build/ImagePicker/imagePickerComponent.d.ts +6 -0
- package/build/ImagePicker/imagePickerComponent.js +63 -0
- package/build/ImagePicker/index.d.ts +13 -0
- package/build/ImagePicker/index.js +24 -0
- package/build/ImagePicker/routes.d.ts +6 -0
- package/build/ImagePicker/routes.js +17 -0
- package/build/ImagePickerFilters/ImagePickerFiltersComponent.d.ts +8 -0
- package/build/ImagePickerFilters/ImagePickerFiltersComponent.js +223 -0
- package/build/ImagePickerFilters/index.d.ts +12 -0
- package/build/ImagePickerFilters/index.js +19 -0
- package/build/MyDrive/ActionBar.d.ts +6 -0
- package/build/MyDrive/ActionBar.js +165 -0
- package/build/MyDrive/AddDrive.d.ts +3 -0
- package/build/MyDrive/AddDrive.js +169 -0
- package/build/MyDrive/AddFolder.d.ts +10 -0
- package/build/MyDrive/AddFolder.js +150 -0
- package/build/MyDrive/BreadCrumbList.d.ts +9 -0
- package/build/MyDrive/BreadCrumbList.js +86 -0
- package/build/MyDrive/BulkUploadModal.d.ts +2 -0
- package/build/MyDrive/BulkUploadModal.js +279 -0
- package/build/MyDrive/DriveContainer.d.ts +13 -0
- package/build/MyDrive/DriveContainer.js +276 -0
- package/build/MyDrive/FileDownloadHistory.d.ts +7 -0
- package/build/MyDrive/FileDownloadHistory.js +94 -0
- package/build/MyDrive/FileMenuOptions.d.ts +11 -0
- package/build/MyDrive/FileMenuOptions.js +397 -0
- package/build/MyDrive/FilesGridView.d.ts +9 -0
- package/build/MyDrive/FilesGridView.js +25 -0
- package/build/MyDrive/FolderGridView.d.ts +19 -0
- package/build/MyDrive/FolderGridView.js +91 -0
- package/build/MyDrive/FolderListView.d.ts +25 -0
- package/build/MyDrive/FolderListView.js +188 -0
- package/build/MyDrive/FolderMenuOptions.d.ts +5 -0
- package/build/MyDrive/FolderMenuOptions.js +350 -0
- package/build/MyDrive/FolderTree.d.ts +8 -0
- package/build/MyDrive/FolderTree.js +342 -0
- package/build/MyDrive/ImageEditor/EditImage.d.ts +6 -0
- package/build/MyDrive/ImageEditor/EditImage.js +97 -0
- package/build/MyDrive/ImageEditor/EditImageModal.d.ts +8 -0
- package/build/MyDrive/ImageEditor/EditImageModal.js +30 -0
- package/build/MyDrive/ImageEditor/TuiImageEditor.d.ts +10 -0
- package/build/MyDrive/ImageEditor/TuiImageEditor.js +99 -0
- package/build/MyDrive/ImagePickerBreadCrumbList.d.ts +8 -0
- package/build/MyDrive/ImagePickerBreadCrumbList.js +35 -0
- package/build/MyDrive/ImagePickerDrive.d.ts +1 -0
- package/build/MyDrive/ImagePickerDrive.js +41 -0
- package/build/MyDrive/MyDriveMainContainer.d.ts +1 -0
- package/build/MyDrive/MyDriveMainContainer.js +32 -0
- package/build/MyDrive/SearchFilter.d.ts +8 -0
- package/build/MyDrive/SearchFilter.js +73 -0
- package/build/MyDrive/ShareBtn.d.ts +5 -0
- package/build/MyDrive/ShareBtn.js +19 -0
- package/build/MyDrive/ToggleView.d.ts +4 -0
- package/build/MyDrive/ToggleView.js +12 -0
- package/build/MyDrive/UploadStatusModal.d.ts +12 -0
- package/build/MyDrive/UploadStatusModal.js +40 -0
- package/build/MyDrive/fileDetails/CommentEntity.d.ts +8 -0
- package/build/MyDrive/fileDetails/CommentEntity.js +102 -0
- package/build/MyDrive/fileDetails/Comments.d.ts +6 -0
- package/build/MyDrive/fileDetails/Comments.js +65 -0
- package/build/MyDrive/fileDetails/Compliance.d.ts +2 -0
- package/build/MyDrive/fileDetails/Compliance.js +18 -0
- package/build/MyDrive/fileDetails/CreateComment.d.ts +7 -0
- package/build/MyDrive/fileDetails/CreateComment.js +48 -0
- package/build/MyDrive/fileDetails/Editor.d.ts +6 -0
- package/build/MyDrive/fileDetails/Editor.js +55 -0
- package/build/MyDrive/fileDetails/EmojiPicker.d.ts +5 -0
- package/build/MyDrive/fileDetails/EmojiPicker.js +6 -0
- package/build/MyDrive/fileDetails/FileDetails.d.ts +10 -0
- package/build/MyDrive/fileDetails/FileDetails.js +78 -0
- package/build/MyDrive/fileDetails/FileHeader.d.ts +7 -0
- package/build/MyDrive/fileDetails/FileHeader.js +25 -0
- package/build/MyDrive/fileDetails/FileViewer.d.ts +10 -0
- package/build/MyDrive/fileDetails/FileViewer.js +31 -0
- package/build/MyDrive/fileDetails/ImageOptions.d.ts +2 -0
- package/build/MyDrive/fileDetails/ImageOptions.js +44 -0
- package/build/MyDrive/fileDetails/ImageViewer.d.ts +5 -0
- package/build/MyDrive/fileDetails/ImageViewer.js +16 -0
- package/build/MyDrive/fileDetails/ManageFile.d.ts +7 -0
- package/build/MyDrive/fileDetails/ManageFile.js +34 -0
- package/build/MyDrive/fileDetails/MetaForm.d.ts +15 -0
- package/build/MyDrive/fileDetails/MetaForm.js +195 -0
- package/build/MyDrive/fileDetails/Metadata.d.ts +8 -0
- package/build/MyDrive/fileDetails/Metadata.js +52 -0
- package/build/MyDrive/fileDetails/PdfOptions.d.ts +9 -0
- package/build/MyDrive/fileDetails/PdfOptions.js +35 -0
- package/build/MyDrive/fileDetails/PdfViewer.d.ts +8 -0
- package/build/MyDrive/fileDetails/PdfViewer.js +18 -0
- package/build/MyDrive/fileDetails/Previewdetails.d.ts +9 -0
- package/build/MyDrive/fileDetails/Previewdetails.js +53 -0
- package/build/MyDrive/fileDetails/VideoPlayer.d.ts +4 -0
- package/build/MyDrive/fileDetails/VideoPlayer.js +21 -0
- package/build/MyDrive/files/AssetSelectionFormItem.d.ts +7 -0
- package/build/MyDrive/files/AssetSelectionFormItem.js +14 -0
- package/build/MyDrive/files/FolderTabs.d.ts +6 -0
- package/build/MyDrive/files/FolderTabs.js +83 -0
- package/build/MyDrive/files/MapFile.d.ts +8 -0
- package/build/MyDrive/files/MapFile.js +217 -0
- package/build/MyDrive/files/MoveToAnotherFolder.d.ts +9 -0
- package/build/MyDrive/files/MoveToAnotherFolder.js +53 -0
- package/build/MyDrive/filesListView.d.ts +2 -0
- package/build/MyDrive/filesListView.js +57 -0
- package/build/MyDrive/index.d.ts +10 -0
- package/build/MyDrive/index.js +35 -0
- package/build/MyDrive/routes.d.ts +7 -0
- package/build/MyDrive/routes.js +17 -0
- package/build/PenView/PenDetails.d.ts +4 -0
- package/build/PenView/PenDetails.js +114 -0
- package/build/PenView/ProductDescription.d.ts +5 -0
- package/build/PenView/ProductDescription.js +51 -0
- package/build/PenView/index.d.ts +10 -0
- package/build/PenView/index.js +23 -0
- package/build/RefreshKey/RefreshKeyBtn.d.ts +1 -0
- package/build/RefreshKey/RefreshKeyBtn.js +42 -0
- package/build/RefreshKey/index.d.ts +9 -0
- package/build/RefreshKey/index.js +23 -0
- package/build/ShoesView/ProductDescription.d.ts +4 -0
- package/build/ShoesView/ProductDescription.js +25 -0
- package/build/ShoesView/ShoeDetails.d.ts +4 -0
- package/build/ShoesView/ShoeDetails.js +96 -0
- package/build/ShoesView/index.d.ts +10 -0
- package/build/ShoesView/index.js +23 -0
- package/build/common/Button.d.ts +2 -0
- package/build/common/Button.js +18 -0
- package/build/common/CustomElements.d.ts +98 -0
- package/build/common/CustomElements.js +77 -0
- package/build/common/LoadMoreItems.d.ts +7 -0
- package/build/common/LoadMoreItems.js +33 -0
- package/build/common/RenderFormItem.d.ts +42 -0
- package/build/common/RenderFormItem.js +98 -0
- package/build/common/RenderThumnail.d.ts +7 -0
- package/build/common/RenderThumnail.js +6 -0
- package/build/common/deleteModal.d.ts +1 -0
- package/build/common/deleteModal.js +12 -0
- package/build/common/folders/TypeAndDateFilters.d.ts +10 -0
- package/build/common/folders/TypeAndDateFilters.js +59 -0
- package/build/common/folders/getFolderOrFileIcon.d.ts +2 -0
- package/build/common/folders/getFolderOrFileIcon.js +41 -0
- package/build/common/loader/CustomLoader.d.ts +7 -0
- package/build/common/loader/CustomLoader.js +8 -0
- package/build/common/loader/loader.d.ts +1 -0
- package/build/common/loader/loader.js +6 -0
- package/build/common/notifications.d.ts +2 -0
- package/build/common/notifications.js +30 -0
- package/build/common/steps.d.ts +4 -0
- package/build/common/steps.js +7 -0
- package/build/hocs/AppProvider.d.ts +3 -0
- package/build/hocs/AppProvider.js +11 -0
- package/build/hocs/DamConfigContext.d.ts +2 -0
- package/build/hocs/DamConfigContext.js +108 -0
- package/build/hocs/ThemeContext.d.ts +15 -0
- package/build/hocs/ThemeContext.js +131 -0
- package/build/hocs/ToastProvider.d.ts +2 -0
- package/build/hocs/ToastProvider.js +6 -0
- package/build/hocs/appConstants.d.ts +124 -0
- package/build/hocs/appConstants.js +211 -0
- package/build/hocs/configureAxios.d.ts +2 -0
- package/build/hocs/configureAxios.js +65 -0
- package/build/hocs/helpers.d.ts +15 -0
- package/build/hocs/helpers.js +177 -0
- package/build/index.d.ts +11 -0
- package/build/index.js +11 -0
- package/build/react-query/hooks/brand-hooks.d.ts +3 -0
- package/build/react-query/hooks/brand-hooks.js +10 -0
- package/build/react-query/hooks/folder-hooks.d.ts +7 -0
- package/build/react-query/hooks/folder-hooks.js +119 -0
- package/build/react-query/services/brand-services.d.ts +3 -0
- package/build/react-query/services/brand-services.js +30 -0
- package/build/react-query/services/file-services.d.ts +43 -0
- package/build/react-query/services/file-services.js +69 -0
- package/build/react-query/services/folder-services.d.ts +44 -0
- package/build/react-query/services/folder-services.js +87 -0
- package/build/react-query/services/image-picker-services.d.ts +5 -0
- package/build/react-query/services/image-picker-services.js +48 -0
- package/build/settings/InviteTeamModal.d.ts +12 -0
- package/build/settings/InviteTeamModal.js +174 -0
- package/build/settings/UpdateInvitationAccessType.d.ts +9 -0
- package/build/settings/UpdateInvitationAccessType.js +96 -0
- package/build/settings/getUserAvatar.d.ts +7 -0
- package/build/settings/getUserAvatar.js +11 -0
- package/build/style.css +1 -0
- package/build/types/assetType.d.ts +8 -0
- package/build/types/assetType.js +1 -0
- package/build/ui/pageTitle.d.ts +3 -0
- package/build/ui/pageTitle.js +4 -0
- package/build/utilities/FoldersContext.d.ts +14 -0
- package/build/utilities/FoldersContext.js +10 -0
- package/build/utilities/NavigatorProvider.d.ts +2 -0
- package/build/utilities/NavigatorProvider.js +10 -0
- package/build/utilities/constants/apiUrls.d.ts +95 -0
- package/build/utilities/constants/apiUrls.js +115 -0
- package/build/utilities/constants/imageUrls.d.ts +6 -0
- package/build/utilities/constants/imageUrls.js +6 -0
- package/build/utilities/constants/interface.d.ts +371 -0
- package/build/utilities/constants/interface.js +142 -0
- package/build/utilities/constants/messages.d.ts +54 -0
- package/build/utilities/constants/messages.js +54 -0
- package/build/utilities/constants/queryKeys.d.ts +16 -0
- package/build/utilities/constants/queryKeys.js +33 -0
- package/build/utilities/constants/routes.d.ts +22 -0
- package/build/utilities/constants/routes.js +22 -0
- package/build/utilities/helpers/validators.d.ts +12 -0
- package/build/utilities/helpers/validators.js +89 -0
- package/build/utilities/useAppNavigate.d.ts +2 -0
- package/build/utilities/useAppNavigate.js +19 -0
- package/build/utilities/useAppParams.d.ts +6 -0
- package/build/utilities/useAppParams.js +27 -0
- package/package.json +93 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const SOMETHING_WENT_WRONG = "Something went wrong";
|
|
2
|
+
export declare const UNAUTHORIZED = "Unauthorized";
|
|
3
|
+
export declare const NETWORK_ERROR = "Network error. Please check your connection.";
|
|
4
|
+
export declare const ENTITY_REQUIRED = ":entity is required";
|
|
5
|
+
export declare const EMAIL_NOT_VALID = "Email is not valid";
|
|
6
|
+
export declare const VERIFICATION_CODE_SENT_SUCCESS_MESSAGE = "Verification code sent successfully";
|
|
7
|
+
export declare const OTP_REQUIRED_MESSAGE = "Please enter all four digits.";
|
|
8
|
+
export declare const RESEND_OTP_SUCCESS = "Resent otp successfully";
|
|
9
|
+
export declare const VERIFICATION_SUCCESS_MESSAGE = "Verified successfully";
|
|
10
|
+
export declare const OLD_AND_NEW_PASSWORDS_SHOULDNT_SAME = "Old password and New password shouldn't be same";
|
|
11
|
+
export declare const PASSWORD_8_CHARS_MESSAGE = "Password must be at least 8 characters long";
|
|
12
|
+
export declare const PASSWORD_REQUIREMENTS_MESSAGE = "Password must contain at least one uppercase letter, one special character,one lowercase letter and one number";
|
|
13
|
+
export declare const UPDATE_SUCCESS = "Updated successfully";
|
|
14
|
+
export declare const OTP_SUCCESS = "Otp sent successfully";
|
|
15
|
+
export declare const PASSWORDS_DO_NOT_MATCH = "Passwords do not match";
|
|
16
|
+
export declare const PERMISSION_ERROR = "You don't have permission to access this page";
|
|
17
|
+
export declare const ADMIN_CANNOT_BE_REMOVED = "Admin cannot be removed";
|
|
18
|
+
export declare const CANNOT_REMOVE_SELF = "You can't remove yourself";
|
|
19
|
+
export declare const REMOVE_OK_TEXT = "Yes, Remove";
|
|
20
|
+
export declare const ARCHIVE_OK_TEXT = "Yes, Archive";
|
|
21
|
+
export declare const DELETE_OK_TEXT = "Yes, Delete";
|
|
22
|
+
export declare const DEACTIVATE_OK_TEXT = "Yes, Deactivate";
|
|
23
|
+
export declare const DELETE_CONFIRMATION_MESSAGE = ":action :entity?";
|
|
24
|
+
export declare const DELETE_MESSAGE_DESCRIPTION = "Are you sure you want to delete.";
|
|
25
|
+
export declare const CREATE_SUCCESS = "Created Successfully";
|
|
26
|
+
export declare const DELETE_SUCCESS = "Deleted Successfully";
|
|
27
|
+
export declare const REVOKE_SUCCESS = "Access revoked successfully.";
|
|
28
|
+
export declare const INVITATION_SENT_SUCCESS = "Invitation send successfully";
|
|
29
|
+
export declare const ARCHIVE_SUCCESS = "Archived successfully";
|
|
30
|
+
export declare const RESTORE_SUCCESS = "Restored successfully";
|
|
31
|
+
export declare const UPLOAD_SUCCESS = "Uploaded successfully";
|
|
32
|
+
export declare const ADDED_TO_FAV_MSG = "Added to favourites successfully";
|
|
33
|
+
export declare const REMOVED_FROM_FAV_MSG = "Removed from favourites successfully";
|
|
34
|
+
export declare const INVITED_USER_ALREADY_EXISTS_IN_CURRENT_BRAND = "User already exists in this brand. Invite users outside of this brand.";
|
|
35
|
+
export declare const SELF_INVITATION_ERROR = "You cannot invite yourself.";
|
|
36
|
+
export declare const SESSION_EXPIRED_MESSAGES: {
|
|
37
|
+
TITLE: string;
|
|
38
|
+
DESCRIPTION: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const USER_BRAND_REGISTER_SUCCESS = "You're in! Let's get started.";
|
|
41
|
+
export declare const ROLE_IDENTIFIER_ERROR_MESSAGE = "Only uppercase letters, numbers, and underscores are allowed";
|
|
42
|
+
export declare const PROFILE_IMAGE_SIZE_LIMITATION_MESSAGE = "You can only upload JPG/PNG files and the image must be smaller than 5MB!";
|
|
43
|
+
export declare const PROFILE_IMAGE_FORMAT_LIMITATION_MESSAGE = "You can only upload JPG/PNG files!";
|
|
44
|
+
export declare const DELETE_ACCCOUNT_CONFIRMATION_MESSAGE: {
|
|
45
|
+
title: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const INPUT_SETTINGS_VALIDATION_ERROR = "Configure input settings before adding a new input.";
|
|
49
|
+
export declare const INPUT_SETTINGS_VALIDATION_ERROR_AT_SWITCH_INPUT = "Configure input settings before switching.";
|
|
50
|
+
export declare const INVALID_URL = "Invalid URL";
|
|
51
|
+
export declare const DUPLICATE_SUCCESS = "Duplicated successfully";
|
|
52
|
+
export declare const FILE_UPLOAD_ERROR = "Error while uploading file";
|
|
53
|
+
export declare const MOVE_SUCCESS = "Moved Successfully";
|
|
54
|
+
export declare const SHARE_SUCCESS = "Shared successfully";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export const SOMETHING_WENT_WRONG = "Something went wrong";
|
|
2
|
+
export const UNAUTHORIZED = "Unauthorized";
|
|
3
|
+
export const NETWORK_ERROR = "Network error. Please check your connection.";
|
|
4
|
+
export const ENTITY_REQUIRED = ":entity is required";
|
|
5
|
+
export const EMAIL_NOT_VALID = "Email is not valid";
|
|
6
|
+
export const VERIFICATION_CODE_SENT_SUCCESS_MESSAGE = "Verification code sent successfully";
|
|
7
|
+
export const OTP_REQUIRED_MESSAGE = "Please enter all four digits.";
|
|
8
|
+
export const RESEND_OTP_SUCCESS = "Resent otp successfully";
|
|
9
|
+
export const VERIFICATION_SUCCESS_MESSAGE = "Verified successfully";
|
|
10
|
+
export const OLD_AND_NEW_PASSWORDS_SHOULDNT_SAME = "Old password and New password shouldn't be same";
|
|
11
|
+
export const PASSWORD_8_CHARS_MESSAGE = "Password must be at least 8 characters long";
|
|
12
|
+
export const PASSWORD_REQUIREMENTS_MESSAGE = "Password must contain at least one uppercase letter, one special character,one lowercase letter and one number";
|
|
13
|
+
export const UPDATE_SUCCESS = "Updated successfully";
|
|
14
|
+
export const OTP_SUCCESS = "Otp sent successfully";
|
|
15
|
+
export const PASSWORDS_DO_NOT_MATCH = "Passwords do not match";
|
|
16
|
+
export const PERMISSION_ERROR = "You don't have permission to access this page";
|
|
17
|
+
export const ADMIN_CANNOT_BE_REMOVED = "Admin cannot be removed";
|
|
18
|
+
export const CANNOT_REMOVE_SELF = "You can't remove yourself";
|
|
19
|
+
export const REMOVE_OK_TEXT = "Yes, Remove";
|
|
20
|
+
export const ARCHIVE_OK_TEXT = "Yes, Archive";
|
|
21
|
+
export const DELETE_OK_TEXT = "Yes, Delete";
|
|
22
|
+
export const DEACTIVATE_OK_TEXT = "Yes, Deactivate";
|
|
23
|
+
export const DELETE_CONFIRMATION_MESSAGE = ":action :entity?";
|
|
24
|
+
export const DELETE_MESSAGE_DESCRIPTION = "Are you sure you want to delete.";
|
|
25
|
+
export const CREATE_SUCCESS = "Created Successfully";
|
|
26
|
+
export const DELETE_SUCCESS = "Deleted Successfully";
|
|
27
|
+
export const REVOKE_SUCCESS = "Access revoked successfully.";
|
|
28
|
+
export const INVITATION_SENT_SUCCESS = "Invitation send successfully";
|
|
29
|
+
export const ARCHIVE_SUCCESS = "Archived successfully";
|
|
30
|
+
export const RESTORE_SUCCESS = "Restored successfully";
|
|
31
|
+
export const UPLOAD_SUCCESS = "Uploaded successfully";
|
|
32
|
+
export const ADDED_TO_FAV_MSG = "Added to favourites successfully";
|
|
33
|
+
export const REMOVED_FROM_FAV_MSG = "Removed from favourites successfully";
|
|
34
|
+
export const INVITED_USER_ALREADY_EXISTS_IN_CURRENT_BRAND = "User already exists in this brand. Invite users outside of this brand.";
|
|
35
|
+
export const SELF_INVITATION_ERROR = "You cannot invite yourself.";
|
|
36
|
+
export const SESSION_EXPIRED_MESSAGES = {
|
|
37
|
+
TITLE: "Link Expired",
|
|
38
|
+
DESCRIPTION: "The link has already been used or is no longer valid.",
|
|
39
|
+
};
|
|
40
|
+
export const USER_BRAND_REGISTER_SUCCESS = "You're in! Let's get started.";
|
|
41
|
+
export const ROLE_IDENTIFIER_ERROR_MESSAGE = "Only uppercase letters, numbers, and underscores are allowed";
|
|
42
|
+
export const PROFILE_IMAGE_SIZE_LIMITATION_MESSAGE = "You can only upload JPG/PNG files and the image must be smaller than 5MB!";
|
|
43
|
+
export const PROFILE_IMAGE_FORMAT_LIMITATION_MESSAGE = "You can only upload JPG/PNG files!";
|
|
44
|
+
export const DELETE_ACCCOUNT_CONFIRMATION_MESSAGE = {
|
|
45
|
+
title: "Are you sure you want to delete your account?",
|
|
46
|
+
description: "Note that while your account will be deactivated, it can be recovered if the admin revokes access restrictions for this brand.",
|
|
47
|
+
};
|
|
48
|
+
export const INPUT_SETTINGS_VALIDATION_ERROR = "Configure input settings before adding a new input.";
|
|
49
|
+
export const INPUT_SETTINGS_VALIDATION_ERROR_AT_SWITCH_INPUT = "Configure input settings before switching.";
|
|
50
|
+
export const INVALID_URL = "Invalid URL";
|
|
51
|
+
export const DUPLICATE_SUCCESS = "Duplicated successfully";
|
|
52
|
+
export const FILE_UPLOAD_ERROR = "Error while uploading file";
|
|
53
|
+
export const MOVE_SUCCESS = "Moved Successfully";
|
|
54
|
+
export const SHARE_SUCCESS = "Shared successfully";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { QueryClient } from "react-query";
|
|
2
|
+
export declare enum QueryKeys {
|
|
3
|
+
BRAND = "brand",
|
|
4
|
+
FOLDERS = "folders",
|
|
5
|
+
TRASH = "trash",
|
|
6
|
+
ARCHIVES = "archives",
|
|
7
|
+
STARRED = "starred",
|
|
8
|
+
RECENTS = "recents",
|
|
9
|
+
ALL = "all",
|
|
10
|
+
FILE = "file",
|
|
11
|
+
SHARED = "shared",
|
|
12
|
+
IMAGE_PICKERS = "image-pickers",
|
|
13
|
+
TREE = "tree"
|
|
14
|
+
}
|
|
15
|
+
export declare const generateFoldersQueryKey: (mode: any) => any;
|
|
16
|
+
export declare const invalidateData: (queryClient: QueryClient, queryKey: string, id: string) => Promise<void>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DriveModes } from "./interface";
|
|
2
|
+
export var QueryKeys;
|
|
3
|
+
(function (QueryKeys) {
|
|
4
|
+
QueryKeys["BRAND"] = "brand";
|
|
5
|
+
QueryKeys["FOLDERS"] = "folders";
|
|
6
|
+
QueryKeys["TRASH"] = "trash";
|
|
7
|
+
QueryKeys["ARCHIVES"] = "archives";
|
|
8
|
+
QueryKeys["STARRED"] = "starred";
|
|
9
|
+
QueryKeys["RECENTS"] = "recents";
|
|
10
|
+
QueryKeys["ALL"] = "all";
|
|
11
|
+
QueryKeys["FILE"] = "file";
|
|
12
|
+
QueryKeys["SHARED"] = "shared";
|
|
13
|
+
QueryKeys["IMAGE_PICKERS"] = "image-pickers";
|
|
14
|
+
QueryKeys["TREE"] = "tree";
|
|
15
|
+
})(QueryKeys || (QueryKeys = {}));
|
|
16
|
+
export const generateFoldersQueryKey = (mode) => {
|
|
17
|
+
return mode === DriveModes.ARCHIVES
|
|
18
|
+
? QueryKeys.ARCHIVES
|
|
19
|
+
: mode === DriveModes.TRASH
|
|
20
|
+
? QueryKeys.TRASH
|
|
21
|
+
: mode === DriveModes.STARRED
|
|
22
|
+
? QueryKeys.STARRED
|
|
23
|
+
: mode === DriveModes.RECENTS
|
|
24
|
+
? QueryKeys.RECENTS
|
|
25
|
+
: mode === DriveModes.SHARED
|
|
26
|
+
? QueryKeys.SHARED
|
|
27
|
+
: mode === QueryKeys.ALL
|
|
28
|
+
? mode
|
|
29
|
+
: QueryKeys.FOLDERS;
|
|
30
|
+
};
|
|
31
|
+
export const invalidateData = (queryClient, queryKey, id) => queryClient.invalidateQueries({
|
|
32
|
+
queryKey: [queryKey, id],
|
|
33
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const HOME_PAGE = "/";
|
|
2
|
+
export declare const SIGNUP_SCREEN = "/signup";
|
|
3
|
+
export declare const LOGIN_SCREEN = "/login";
|
|
4
|
+
export declare const SIGNUP_VERIFY_SCREEN = "/signup/verify";
|
|
5
|
+
export declare const SIGNUP_ONBOARDING_SCREEN = "/signup/access-integration";
|
|
6
|
+
export declare const SIGNUP_USER_SCREEN = "/signup/user-brand";
|
|
7
|
+
export declare const SIGNUP_DAM_CONFIGURATION_SCREEN = "/signup/dam-configuration";
|
|
8
|
+
export declare const SIGNUP_SUCCESS_SCREEN = "/signup/success";
|
|
9
|
+
export declare const FORGOT_PASSWORD_SCREEN = "/forgot-password";
|
|
10
|
+
export declare const SETTING_SCREEN = "/settings/:type";
|
|
11
|
+
export declare const ACCEPT_INVITATION_SCREEN = "/accept-invitation/:token";
|
|
12
|
+
export declare const LINK_EXPIRED_SCREEN = "/link-expired";
|
|
13
|
+
export declare const DASHBOARD_SCREEN = "/dashboard";
|
|
14
|
+
export declare const ASSETS_SCREEN = "/";
|
|
15
|
+
export declare const ASSET_TEMPLATE_SCREEN = "/asset-templates/:id";
|
|
16
|
+
export declare const BRAND_GUIDES_SCREEN = "/brand-guides";
|
|
17
|
+
export declare const MY_DRIVE_SCREEN = "/";
|
|
18
|
+
export declare const STORAGE_SCREEN = "/storage";
|
|
19
|
+
export declare const SUBFOLDERS_SCREEN = "/my-drive/:folderId";
|
|
20
|
+
export declare const DRIVE_MODES_SCREEN = "/drive/:type";
|
|
21
|
+
export declare const FETCH_ENTITY_SCREEN = "/drive/:type/:id";
|
|
22
|
+
export declare const IMAGE_PICKER_SCREEN = "/";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const HOME_PAGE = "/";
|
|
2
|
+
export const SIGNUP_SCREEN = "/signup";
|
|
3
|
+
export const LOGIN_SCREEN = "/login";
|
|
4
|
+
export const SIGNUP_VERIFY_SCREEN = "/signup/verify";
|
|
5
|
+
export const SIGNUP_ONBOARDING_SCREEN = "/signup/access-integration";
|
|
6
|
+
export const SIGNUP_USER_SCREEN = "/signup/user-brand";
|
|
7
|
+
export const SIGNUP_DAM_CONFIGURATION_SCREEN = "/signup/dam-configuration";
|
|
8
|
+
export const SIGNUP_SUCCESS_SCREEN = "/signup/success";
|
|
9
|
+
export const FORGOT_PASSWORD_SCREEN = "/forgot-password";
|
|
10
|
+
export const SETTING_SCREEN = "/settings/:type";
|
|
11
|
+
export const ACCEPT_INVITATION_SCREEN = "/accept-invitation/:token";
|
|
12
|
+
export const LINK_EXPIRED_SCREEN = "/link-expired";
|
|
13
|
+
export const DASHBOARD_SCREEN = "/dashboard";
|
|
14
|
+
export const ASSETS_SCREEN = "/";
|
|
15
|
+
export const ASSET_TEMPLATE_SCREEN = "/asset-templates/:id";
|
|
16
|
+
export const BRAND_GUIDES_SCREEN = "/brand-guides";
|
|
17
|
+
export const MY_DRIVE_SCREEN = "/";
|
|
18
|
+
export const STORAGE_SCREEN = "/storage";
|
|
19
|
+
export const SUBFOLDERS_SCREEN = "/my-drive/:folderId";
|
|
20
|
+
export const DRIVE_MODES_SCREEN = "/drive/:type";
|
|
21
|
+
export const FETCH_ENTITY_SCREEN = "/drive/:type/:id";
|
|
22
|
+
export const IMAGE_PICKER_SCREEN = "/";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputTypeEntity } from "../constants/interface";
|
|
2
|
+
export declare const validatePassword: (oldPassword: string, value: string) => Promise<void>;
|
|
3
|
+
export declare const getInputTypeValidationErrors: (updatedValues: any, field: InputTypeEntity) => string[];
|
|
4
|
+
export declare const validateEmail: (email: string) => {
|
|
5
|
+
valid: boolean;
|
|
6
|
+
email: string;
|
|
7
|
+
error?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
valid: boolean;
|
|
10
|
+
error: string;
|
|
11
|
+
email?: undefined;
|
|
12
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { EMAIL_NOT_VALID, OLD_AND_NEW_PASSWORDS_SHOULDNT_SAME, PASSWORD_8_CHARS_MESSAGE, PASSWORD_REQUIREMENTS_MESSAGE, } from "../constants/messages";
|
|
2
|
+
import { get, includes } from "lodash";
|
|
3
|
+
import { InputSupportedTypes, InputTypes, } from "../constants/interface";
|
|
4
|
+
import { PASSWORD_REGEX } from "../../hocs/appConstants";
|
|
5
|
+
export const validatePassword = (oldPassword, value) => {
|
|
6
|
+
if (value && value.length < 8) {
|
|
7
|
+
return Promise.reject(new Error(PASSWORD_8_CHARS_MESSAGE));
|
|
8
|
+
}
|
|
9
|
+
if (value && !PASSWORD_REGEX.test(value)) {
|
|
10
|
+
return Promise.reject(new Error(PASSWORD_REQUIREMENTS_MESSAGE));
|
|
11
|
+
}
|
|
12
|
+
if (value && oldPassword === value) {
|
|
13
|
+
return Promise.reject(new Error(OLD_AND_NEW_PASSWORDS_SHOULDNT_SAME));
|
|
14
|
+
}
|
|
15
|
+
return Promise.resolve();
|
|
16
|
+
};
|
|
17
|
+
export const getInputTypeValidationErrors = (updatedValues, field) => {
|
|
18
|
+
const errors = [];
|
|
19
|
+
const defaultName = get(field, "defaultName");
|
|
20
|
+
const typeValue = get(updatedValues, ["inputTypeSettings", defaultName]);
|
|
21
|
+
const supportedTypes = get(field, "supportedTypes", []);
|
|
22
|
+
const requiredFields = [
|
|
23
|
+
{ key: "name", source: updatedValues },
|
|
24
|
+
{ key: "placeholder", source: updatedValues },
|
|
25
|
+
{
|
|
26
|
+
key: "label",
|
|
27
|
+
source: { label: get(field, "label", get(field, "name", "")) },
|
|
28
|
+
},
|
|
29
|
+
{ key: "defaultName", source: field },
|
|
30
|
+
];
|
|
31
|
+
requiredFields.forEach(({ key, source }) => {
|
|
32
|
+
const value = get(source, key);
|
|
33
|
+
if (value === undefined || value === null || value === "") {
|
|
34
|
+
errors.push(`${key} is required.`);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
if (includes([InputTypes.CHECKBOX, InputTypes.RADIO, InputTypes.SELECT], defaultName)) {
|
|
38
|
+
const options = get(updatedValues, "options", []);
|
|
39
|
+
if (!Array.isArray(options) || options.length === 0) {
|
|
40
|
+
errors.push("Options must contain at least one entry.");
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
options.forEach((opt, index) => {
|
|
44
|
+
const label = get(opt, "label");
|
|
45
|
+
const value = get(opt, "value");
|
|
46
|
+
if (!label || !value) {
|
|
47
|
+
errors.push(`Option at index ${index + 1} must have both label and value.`);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
supportedTypes.forEach((type) => {
|
|
53
|
+
const defaultName = get(type, "defaultName");
|
|
54
|
+
const typeValue = get(updatedValues, ["inputTypeSettings", defaultName]);
|
|
55
|
+
if (includes([InputSupportedTypes.CHARACTER_LIMIT, InputSupportedTypes.VALUE_RANGE], defaultName)) {
|
|
56
|
+
if (typeValue === null || typeValue === void 0 ? void 0 : typeValue.allow) {
|
|
57
|
+
const min = get(typeValue, "minValue");
|
|
58
|
+
const max = get(typeValue, "maxValue");
|
|
59
|
+
// Case 1: neither min nor max entered → error
|
|
60
|
+
if ((min === undefined || min === null) &&
|
|
61
|
+
(max === undefined || max === null)) {
|
|
62
|
+
errors.push(`${defaultName}: Either Minimum or Maximum value is required.`);
|
|
63
|
+
}
|
|
64
|
+
// Case 2: both present → enforce min <= max
|
|
65
|
+
if (min !== undefined &&
|
|
66
|
+
min !== null &&
|
|
67
|
+
max !== undefined &&
|
|
68
|
+
max !== null &&
|
|
69
|
+
min > max) {
|
|
70
|
+
errors.push(`${defaultName}: Minimum should not be greater than Maximum.`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (defaultName === InputSupportedTypes.REGEX && (typeValue === null || typeValue === void 0 ? void 0 : typeValue.allow)) {
|
|
75
|
+
const pattern = get(typeValue, "value");
|
|
76
|
+
if (!pattern) {
|
|
77
|
+
errors.push("REGEX: Pattern is required.");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return errors;
|
|
82
|
+
};
|
|
83
|
+
const EMAIL_REGEX = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
84
|
+
export const validateEmail = (email) => {
|
|
85
|
+
const isValid = EMAIL_REGEX.test(email.trim());
|
|
86
|
+
return isValid
|
|
87
|
+
? { valid: true, email: email.trim() }
|
|
88
|
+
: { valid: false, error: EMAIL_NOT_VALID };
|
|
89
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
let useAppNavigate;
|
|
2
|
+
const rrd = require("react-router-dom");
|
|
3
|
+
if (rrd.useNavigate) {
|
|
4
|
+
// ✅ v6+
|
|
5
|
+
const { useNavigate } = rrd;
|
|
6
|
+
useAppNavigate = () => {
|
|
7
|
+
const navigate = useNavigate();
|
|
8
|
+
return (to) => navigate(to);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
// ✅ v4/v5 fallback → use our NavigatorProvider
|
|
13
|
+
const { useLegacyNavigate } = require("./NavigatorProvider");
|
|
14
|
+
useAppNavigate = () => {
|
|
15
|
+
const navigate = useLegacyNavigate();
|
|
16
|
+
return (to) => navigate(to);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export default useAppNavigate;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// src/utils/useAppParams.tsx
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
// Declare this always so TS doesn’t complain
|
|
5
|
+
const ParamsContext = React.createContext({});
|
|
6
|
+
export let ParamsProvider = ({ children, }) => _jsx(_Fragment, { children: children });
|
|
7
|
+
let useAppParams;
|
|
8
|
+
// Dynamically detect router version
|
|
9
|
+
try {
|
|
10
|
+
const rrd = require("react-router-dom");
|
|
11
|
+
if (rrd.useParams) {
|
|
12
|
+
// ✅ v6 or v5.1+
|
|
13
|
+
const { useParams } = rrd;
|
|
14
|
+
useAppParams = () => useParams();
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
// ✅ v4 fallback
|
|
18
|
+
const { Route } = rrd;
|
|
19
|
+
ParamsProvider = ({ children }) => (_jsx(Route, { path: "*", render: ({ match }) => (_jsx(ParamsContext.Provider, { value: match ? match.params : {}, children: children })) }));
|
|
20
|
+
useAppParams = () => React.useContext(ParamsContext);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
catch (_a) {
|
|
24
|
+
// if require fails for some reason
|
|
25
|
+
useAppParams = () => ({});
|
|
26
|
+
}
|
|
27
|
+
export default useAppParams;
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bindu-dashing/dam-solution-v2",
|
|
3
|
+
"version": "5.8.6",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@ant-design/icons": "^5.0.1",
|
|
6
|
+
"@emoji-mart/data": "^1.2.1",
|
|
7
|
+
"@emoji-mart/react": "^1.1.1",
|
|
8
|
+
"@react-pdf-viewer/core": "^3.12.0",
|
|
9
|
+
"@react-pdf-viewer/default-layout": "^3.12.0",
|
|
10
|
+
"@react-pdf-viewer/zoom": "^3.12.0",
|
|
11
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
12
|
+
"@testing-library/react": "^13.4.0",
|
|
13
|
+
"@testing-library/user-event": "^13.5.0",
|
|
14
|
+
"@tiptap/extension-emoji": "^3.0.7",
|
|
15
|
+
"@tiptap/extension-link": "^3.0.7",
|
|
16
|
+
"@tiptap/extension-strike": "^3.0.7",
|
|
17
|
+
"@tiptap/extension-underline": "^3.0.7",
|
|
18
|
+
"@tiptap/react": "^3.0.7",
|
|
19
|
+
"@tiptap/starter-kit": "^3.0.7",
|
|
20
|
+
"@types/lodash": "^4.17.20",
|
|
21
|
+
"antd": "^5.21.0",
|
|
22
|
+
"antd-img-crop": "^4.25.0",
|
|
23
|
+
"dayjs": "^1.11.7",
|
|
24
|
+
"emoji-mart": "^5.6.0",
|
|
25
|
+
"lodash": "^4.17.21",
|
|
26
|
+
"moment-timezone": "^0.6.0",
|
|
27
|
+
"pdfjs-dist": "^3.11.174",
|
|
28
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
29
|
+
"react-dom": "^18.2.0",
|
|
30
|
+
"react-icons": "^5.5.0",
|
|
31
|
+
"react-infinite-scroll-component": "^6.1.0",
|
|
32
|
+
"react-query": "^3.39.3",
|
|
33
|
+
"react-toastify": "^11.0.5",
|
|
34
|
+
"tui-image-editor": "^3.15.3",
|
|
35
|
+
"web-vitals": "^2.1.4"
|
|
36
|
+
},
|
|
37
|
+
"style": "build/style.css",
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"axios": "^1.11.0",
|
|
40
|
+
"react": "^18.2.0",
|
|
41
|
+
"react-router-dom": ">=5.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@babel/cli": "^7.21.0",
|
|
45
|
+
"@types/react-beautiful-dnd": "^13.1.8",
|
|
46
|
+
"axios": "^1.13.2",
|
|
47
|
+
"babel-cli": "^6.26.0",
|
|
48
|
+
"postcss": "^8.5.5",
|
|
49
|
+
"postcss-cli": "^11.0.1",
|
|
50
|
+
"postcss-loader": "^7.3.4",
|
|
51
|
+
"react": "^18.2.0",
|
|
52
|
+
"react-router-dom": "^7.9.6",
|
|
53
|
+
"react-scripts": "5.0.1",
|
|
54
|
+
"tailwindcss": "^3.4.1",
|
|
55
|
+
"typescript": "^5.8.3"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"start": "react-scripts start",
|
|
59
|
+
"build:css": "tailwindcss -i ./src/lib/style.css -o ./build/style.css --minify",
|
|
60
|
+
"build": "npm run build:css && tsc",
|
|
61
|
+
"test": "react-scripts test",
|
|
62
|
+
"eject": "react-scripts eject",
|
|
63
|
+
"preview": "npx serve -s build"
|
|
64
|
+
},
|
|
65
|
+
"eslintConfig": {
|
|
66
|
+
"extends": [
|
|
67
|
+
"react-app",
|
|
68
|
+
"react-app/jest"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"browserslist": {
|
|
72
|
+
"production": [
|
|
73
|
+
">0.2%",
|
|
74
|
+
"not dead",
|
|
75
|
+
"not op_mini all"
|
|
76
|
+
],
|
|
77
|
+
"development": [
|
|
78
|
+
"last 1 chrome version",
|
|
79
|
+
"last 1 firefox version",
|
|
80
|
+
"last 1 safari version"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"main": "build/index.js",
|
|
84
|
+
"module": "build/index.js",
|
|
85
|
+
"files": [
|
|
86
|
+
"build",
|
|
87
|
+
"README.md"
|
|
88
|
+
],
|
|
89
|
+
"repository": {
|
|
90
|
+
"type": "git",
|
|
91
|
+
"url": "URL_OF_YOUR_REPOSITORY"
|
|
92
|
+
}
|
|
93
|
+
}
|