@cometchat/chat-uikit-react-native 4.1.4 → 4.2.0
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 +8 -8
- package/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.idea/misc.xml +0 -1
- package/android/.idea/modules/android.iml +18 -0
- package/android/.idea/modules.xml +8 -0
- package/android/build.gradle +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitPackage.java +1 -0
- package/android/src/main/java/com/reactnativecometchatuikit/TimeZoneCodeManager.java +41 -0
- package/ios/TimeZoneCodeManager.h +6 -0
- package/ios/TimeZoneCodeManager.m +22 -0
- package/package.json +3 -2
- package/src/AI/AIConversationStarter/AIConversationStarterDecorator.tsx +3 -0
- package/src/AI/AIConversationSummary/AIConversationSummaryDecorator.tsx +3 -0
- package/src/AI/AISmartReplies/AISmartRepliesDecorator.tsx +3 -0
- package/src/CometChatConversations/CometChatConversations.tsx +5 -1
- package/src/CometChatMessageList/CometChatMessageList.tsx +4 -1
- package/src/index.ts +6 -0
- package/src/shared/CometChatUiKit/CometChatUIKit.ts +32 -1
- package/src/shared/assets/images/BackArrow.png +0 -0
- package/src/shared/assets/images/calendar.png +0 -0
- package/src/shared/assets/images/clock-alert.png +0 -0
- package/src/shared/assets/images/clock.png +0 -0
- package/src/shared/assets/images/earth.png +0 -0
- package/src/shared/assets/images/empty-slot.png +0 -0
- package/src/shared/assets/images/forwardArrow.png +0 -0
- package/src/shared/assets/images/index.ts +12 -0
- package/src/shared/constants/UIKitConstants.ts +2 -0
- package/src/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.ts +3 -0
- package/src/shared/events/CometChatUIEventHandler/Listener.ts +4 -0
- package/src/shared/events/ListenerInitializer.ts +3 -0
- package/src/shared/events/messages.ts +1 -0
- package/src/shared/framework/DataSource.ts +6 -0
- package/src/shared/framework/DataSourceDecorator.tsx +17 -0
- package/src/shared/framework/MessageDataSource.tsx +42 -1
- package/src/shared/index.ts +7 -1
- package/src/shared/libs/CometChatCalendar/Calendars/BaseCalendar.tsx +226 -0
- package/src/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.tsx +88 -0
- package/src/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.tsx +106 -0
- package/src/shared/libs/CometChatCalendar/Calendars/Providers.tsx +27 -0
- package/src/shared/libs/CometChatCalendar/Calendars/index.ts +3 -0
- package/src/shared/libs/CometChatCalendar/Components/Arrow.test.tsx +112 -0
- package/src/shared/libs/CometChatCalendar/Components/Arrow.tsx +46 -0
- package/src/shared/libs/CometChatCalendar/Components/Day.test.tsx +396 -0
- package/src/shared/libs/CometChatCalendar/Components/Day.tsx +93 -0
- package/src/shared/libs/CometChatCalendar/Components/Days.test.tsx +216 -0
- package/src/shared/libs/CometChatCalendar/Components/Days.tsx +109 -0
- package/src/shared/libs/CometChatCalendar/Components/Month.test.tsx +160 -0
- package/src/shared/libs/CometChatCalendar/Components/Month.tsx +46 -0
- package/src/shared/libs/CometChatCalendar/Components/Months.test.tsx +262 -0
- package/src/shared/libs/CometChatCalendar/Components/Months.tsx +78 -0
- package/src/shared/libs/CometChatCalendar/Components/Title.test.tsx +111 -0
- package/src/shared/libs/CometChatCalendar/Components/Title.tsx +45 -0
- package/src/shared/libs/CometChatCalendar/Components/Weekdays.test.tsx +69 -0
- package/src/shared/libs/CometChatCalendar/Components/Weekdays.tsx +29 -0
- package/src/shared/libs/CometChatCalendar/Components/index.ts +7 -0
- package/src/shared/libs/CometChatCalendar/Constants/View.ts +4 -0
- package/src/shared/libs/CometChatCalendar/Constants/index.ts +1 -0
- package/src/shared/libs/CometChatCalendar/Contexts/LocaleContext.tsx +7 -0
- package/src/shared/libs/CometChatCalendar/Contexts/ThemeContext.tsx +7 -0
- package/src/shared/libs/CometChatCalendar/Contexts/index.ts +2 -0
- package/src/shared/libs/CometChatCalendar/Entities/ArrowDirections.ts +1 -0
- package/src/shared/libs/CometChatCalendar/Entities/Calendar.ts +26 -0
- package/src/shared/libs/CometChatCalendar/Entities/Components.ts +13 -0
- package/src/shared/libs/CometChatCalendar/Entities/DateProperties.ts +6 -0
- package/src/shared/libs/CometChatCalendar/Entities/Locale.ts +12 -0
- package/src/shared/libs/CometChatCalendar/Entities/Theme.ts +70 -0
- package/src/shared/libs/CometChatCalendar/Entities/index.ts +6 -0
- package/src/shared/libs/CometChatCalendar/Hooks/index.ts +1 -0
- package/src/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.ts +44 -0
- package/src/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.ts +60 -0
- package/src/shared/libs/CometChatCalendar/Icons/BackArrow.png +0 -0
- package/src/shared/libs/CometChatCalendar/Icons/chevron-left-16.png +0 -0
- package/src/shared/libs/CometChatCalendar/Icons/index.ts +7 -0
- package/src/shared/libs/CometChatCalendar/Locales/index.ts +3 -0
- package/src/shared/libs/CometChatCalendar/Themes/Colors.ts +31 -0
- package/src/shared/libs/CometChatCalendar/Themes/DarkTheme.ts +79 -0
- package/src/shared/libs/CometChatCalendar/Themes/DefaultTheme.ts +164 -0
- package/src/shared/libs/CometChatCalendar/Themes/index.ts +3 -0
- package/src/shared/libs/CometChatCalendar/Utils/addOpacity.test.ts +49 -0
- package/src/shared/libs/CometChatCalendar/Utils/addOpacity.ts +15 -0
- package/src/shared/libs/CometChatCalendar/Utils/checkChangedProps.ts +10 -0
- package/src/shared/libs/CometChatCalendar/Utils/clamp.test.ts +39 -0
- package/src/shared/libs/CometChatCalendar/Utils/clamp.ts +5 -0
- package/src/shared/libs/CometChatCalendar/Utils/dateRange.test.ts +20 -0
- package/src/shared/libs/CometChatCalendar/Utils/dateRange.ts +22 -0
- package/src/shared/libs/CometChatCalendar/Utils/getExtraDays.test.ts +48 -0
- package/src/shared/libs/CometChatCalendar/Utils/getExtraDays.ts +24 -0
- package/src/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.ts +60 -0
- package/src/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.ts +19 -0
- package/src/shared/libs/CometChatCalendar/Utils/index.ts +6 -0
- package/src/shared/libs/CometChatCalendar/index.ts +5 -0
- package/src/shared/libs/datePickerModal/DateTimePickerModal.android.js +81 -0
- package/src/shared/libs/datePickerModal/DateTimePickerModal.ios.js +363 -0
- package/src/shared/libs/datePickerModal/DateTimePickerModal.js +9 -0
- package/src/shared/libs/datePickerModal/Modal.js +180 -0
- package/src/shared/libs/datePickerModal/index.d.ts +310 -0
- package/src/shared/libs/datePickerModal/index.js +5 -0
- package/src/shared/libs/datePickerModal/utils.js +25 -0
- package/src/shared/libs/luxon/src/datetime.js +2422 -0
- package/src/shared/libs/luxon/src/duration.js +990 -0
- package/src/shared/libs/luxon/src/errors.js +61 -0
- package/src/shared/libs/luxon/src/impl/conversions.js +206 -0
- package/src/shared/libs/luxon/src/impl/diff.js +95 -0
- package/src/shared/libs/luxon/src/impl/digits.js +75 -0
- package/src/shared/libs/luxon/src/impl/english.js +233 -0
- package/src/shared/libs/luxon/src/impl/formats.js +176 -0
- package/src/shared/libs/luxon/src/impl/formatter.js +409 -0
- package/src/shared/libs/luxon/src/impl/invalid.js +14 -0
- package/src/shared/libs/luxon/src/impl/locale.js +542 -0
- package/src/shared/libs/luxon/src/impl/regexParser.js +335 -0
- package/src/shared/libs/luxon/src/impl/tokenParser.js +473 -0
- package/src/shared/libs/luxon/src/impl/util.js +309 -0
- package/src/shared/libs/luxon/src/impl/zoneUtil.js +34 -0
- package/src/shared/libs/luxon/src/info.js +205 -0
- package/src/shared/libs/luxon/src/interval.js +657 -0
- package/src/shared/libs/luxon/src/luxon.js +26 -0
- package/src/shared/libs/luxon/src/package.json +4 -0
- package/src/shared/libs/luxon/src/settings.js +175 -0
- package/src/shared/libs/luxon/src/zone.js +91 -0
- package/src/shared/libs/luxon/src/zones/IANAZone.js +189 -0
- package/src/shared/libs/luxon/src/zones/fixedOffsetZone.js +102 -0
- package/src/shared/libs/luxon/src/zones/invalidZone.js +53 -0
- package/src/shared/libs/luxon/src/zones/systemZone.js +61 -0
- package/src/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.ts +103 -0
- package/src/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.ts +4 -1
- package/src/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.ts +149 -0
- package/src/shared/modals/InteractiveData/InteractiveMessage/index.ts +1 -0
- package/src/shared/modals/InteractiveData/index.ts +2 -1
- package/src/shared/modals/index.ts +3 -2
- package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/de/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/en/translation.json +29 -19
- package/src/shared/resources/CometChatLocalize/resources/es/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +301 -292
- package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +301 -291
- package/src/shared/resources/CometChatTheme/Palette.ts +30 -0
- package/src/shared/resources/CometChatTheme/Typography.ts +109 -0
- package/src/shared/utils/InteractiveMessageUtils.ts +3 -2
- package/src/shared/utils/SchedulerUtils.ts +196 -0
- package/src/shared/utils/conversationUtils.ts +8 -1
- package/src/shared/utils/icsToJson.js +113 -0
- package/src/shared/views/CometChatCheckBox/CometChatCheckBox.tsx +3 -3
- package/src/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.tsx +189 -0
- package/src/shared/views/CometChatDateTimePicker/DateTimePickerStyle.ts +19 -0
- package/src/shared/views/CometChatDateTimePicker/index.ts +5 -0
- package/src/shared/views/CometChatDropDown/CometChatDropDown.tsx +3 -3
- package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +104 -23
- package/src/shared/views/CometChatFormBubble/FormBubbleStyle.tsx +5 -0
- package/src/shared/views/CometChatLabel/CometChatLabel.tsx +1 -1
- package/src/shared/views/CometChatRadioButton/CometChatRadioButton.tsx +3 -3
- package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +1500 -0
- package/src/shared/views/CometChatSchedulerBubble/index.ts +5 -0
- package/src/shared/views/CometChatSchedulerBubble/styles.ts +92 -0
- package/src/shared/views/CometChatSingleSelect/CometChatSingleSelect.tsx +4 -4
- package/src/shared/views/CometChatTextInput/CometChatTextInput.tsx +4 -4
- package/src/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.tsx +113 -0
- package/src/shared/views/CometChatTimeSlotSelector/index.ts +5 -0
- package/src/shared/views/CometChatTimeSlotSelector/styles.ts +30 -0
- package/src/shared/views/index.ts +4 -1
- package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +0 -43
- package/lib/CometChatAddMembers/AddMembersConfiguration.js +0 -41
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +0 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +0 -10
- package/lib/CometChatAddMembers/CometChatAddMembers.js +0 -60
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +0 -1
- package/lib/CometChatAddMembers/index.d.ts +0 -3
- package/lib/CometChatAddMembers/index.js +0 -4
- package/lib/CometChatAddMembers/index.js.map +0 -1
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +0 -46
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js +0 -43
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +0 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +0 -18
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +0 -72
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +0 -1
- package/lib/CometChatBannedMembers/index.d.ts +0 -3
- package/lib/CometChatBannedMembers/index.js +0 -4
- package/lib/CometChatBannedMembers/index.js.map +0 -1
- package/lib/CometChatBannedMembers/resources/index.d.ts +0 -3
- package/lib/CometChatBannedMembers/resources/index.js +0 -3
- package/lib/CometChatBannedMembers/resources/index.js.map +0 -1
- package/lib/CometChatContacts/CometChatContacts.d.ts +0 -75
- package/lib/CometChatContacts/CometChatContacts.js +0 -84
- package/lib/CometChatContacts/CometChatContacts.js.map +0 -1
- package/lib/CometChatContacts/ContactsConfiguration.d.ts +0 -73
- package/lib/CometChatContacts/ContactsConfiguration.js +0 -2
- package/lib/CometChatContacts/ContactsConfiguration.js.map +0 -1
- package/lib/CometChatContacts/ContactsStyle.d.ts +0 -59
- package/lib/CometChatContacts/ContactsStyle.js +0 -2
- package/lib/CometChatContacts/ContactsStyle.js.map +0 -1
- package/lib/CometChatContacts/Header.d.ts +0 -31
- package/lib/CometChatContacts/Header.js +0 -72
- package/lib/CometChatContacts/Header.js.map +0 -1
- package/lib/CometChatContacts/index.d.ts +0 -4
- package/lib/CometChatContacts/index.js +0 -3
- package/lib/CometChatContacts/index.js.map +0 -1
- package/lib/CometChatContacts/styles.d.ts +0 -101
- package/lib/CometChatContacts/styles.js +0 -104
- package/lib/CometChatContacts/styles.js.map +0 -1
- package/lib/CometChatConversations/CometChatConversations.d.ts +0 -199
- package/lib/CometChatConversations/CometChatConversations.js +0 -643
- package/lib/CometChatConversations/CometChatConversations.js.map +0 -1
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +0 -96
- package/lib/CometChatConversations/ConversationsConfiguration.js +0 -87
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +0 -1
- package/lib/CometChatConversations/ConversationsStyle.d.ts +0 -38
- package/lib/CometChatConversations/ConversationsStyle.js +0 -46
- package/lib/CometChatConversations/ConversationsStyle.js.map +0 -1
- package/lib/CometChatConversations/index.d.ts +0 -4
- package/lib/CometChatConversations/index.js +0 -5
- package/lib/CometChatConversations/index.js.map +0 -1
- package/lib/CometChatConversations/resources/index.d.ts +0 -14
- package/lib/CometChatConversations/resources/index.js +0 -15
- package/lib/CometChatConversations/resources/index.js.map +0 -1
- package/lib/CometChatConversations/style.d.ts +0 -61
- package/lib/CometChatConversations/style.js +0 -63
- package/lib/CometChatConversations/style.js.map +0 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +0 -14
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +0 -168
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +0 -1
- package/lib/CometChatConversationsWithMessages/index.d.ts +0 -2
- package/lib/CometChatConversationsWithMessages/index.js +0 -3
- package/lib/CometChatConversationsWithMessages/index.js.map +0 -1
- package/lib/CometChatConversationsWithMessages/resources/index.d.ts +0 -2
- package/lib/CometChatConversationsWithMessages/resources/index.js +0 -3
- package/lib/CometChatConversationsWithMessages/resources/index.js.map +0 -1
- package/lib/CometChatConversationsWithMessages/styles.d.ts +0 -12
- package/lib/CometChatConversationsWithMessages/styles.js +0 -14
- package/lib/CometChatConversationsWithMessages/styles.js.map +0 -1
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +0 -98
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js +0 -196
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +0 -1
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.d.ts +0 -14
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js +0 -15
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +0 -1
- package/lib/CometChatCreateGroup/Header.d.ts +0 -3
- package/lib/CometChatCreateGroup/Header.js +0 -41
- package/lib/CometChatCreateGroup/Header.js.map +0 -1
- package/lib/CometChatCreateGroup/index.d.ts +0 -3
- package/lib/CometChatCreateGroup/index.js +0 -4
- package/lib/CometChatCreateGroup/index.js.map +0 -1
- package/lib/CometChatCreateGroup/resources/index.d.ts +0 -5
- package/lib/CometChatCreateGroup/resources/index.js +0 -9
- package/lib/CometChatCreateGroup/resources/index.js.map +0 -1
- package/lib/CometChatCreateGroup/style.d.ts +0 -46
- package/lib/CometChatCreateGroup/style.js +0 -43
- package/lib/CometChatCreateGroup/style.js.map +0 -1
- package/lib/CometChatDetails/CometChatDetails.d.ts +0 -281
- package/lib/CometChatDetails/CometChatDetails.js +0 -405
- package/lib/CometChatDetails/CometChatDetails.js.map +0 -1
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +0 -36
- package/lib/CometChatDetails/DetailsConfiguration.js +0 -26
- package/lib/CometChatDetails/DetailsConfiguration.js.map +0 -1
- package/lib/CometChatDetails/Header.d.ts +0 -3
- package/lib/CometChatDetails/Header.js +0 -26
- package/lib/CometChatDetails/Header.js.map +0 -1
- package/lib/CometChatDetails/index.d.ts +0 -3
- package/lib/CometChatDetails/index.js +0 -4
- package/lib/CometChatDetails/index.js.map +0 -1
- package/lib/CometChatDetails/listners.d.ts +0 -20
- package/lib/CometChatDetails/listners.js +0 -57
- package/lib/CometChatDetails/listners.js.map +0 -1
- package/lib/CometChatDetails/resources/index.d.ts +0 -7
- package/lib/CometChatDetails/resources/index.js +0 -13
- package/lib/CometChatDetails/resources/index.js.map +0 -1
- package/lib/CometChatDetails/styles.d.ts +0 -28
- package/lib/CometChatDetails/styles.js +0 -23
- package/lib/CometChatDetails/styles.js.map +0 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -96
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +0 -360
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +0 -1
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +0 -63
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +0 -59
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +0 -1
- package/lib/CometChatGroupMembers/GroupMemberStyle.d.ts +0 -42
- package/lib/CometChatGroupMembers/GroupMemberStyle.js +0 -48
- package/lib/CometChatGroupMembers/GroupMemberStyle.js.map +0 -1
- package/lib/CometChatGroupMembers/GroupScopeStyle.d.ts +0 -28
- package/lib/CometChatGroupMembers/GroupScopeStyle.js +0 -35
- package/lib/CometChatGroupMembers/GroupScopeStyle.js.map +0 -1
- package/lib/CometChatGroupMembers/index.d.ts +0 -4
- package/lib/CometChatGroupMembers/index.js +0 -5
- package/lib/CometChatGroupMembers/index.js.map +0 -1
- package/lib/CometChatGroupMembers/resources/index.d.ts +0 -5
- package/lib/CometChatGroupMembers/resources/index.js +0 -6
- package/lib/CometChatGroupMembers/resources/index.js.map +0 -1
- package/lib/CometChatGroupMembers/style.d.ts +0 -31
- package/lib/CometChatGroupMembers/style.js +0 -30
- package/lib/CometChatGroupMembers/style.js.map +0 -1
- package/lib/CometChatGroups/CometChatGroups.d.ts +0 -141
- package/lib/CometChatGroups/CometChatGroups.js +0 -322
- package/lib/CometChatGroups/CometChatGroups.js.map +0 -1
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +0 -74
- package/lib/CometChatGroups/GroupsConfiguration.js +0 -72
- package/lib/CometChatGroups/GroupsConfiguration.js.map +0 -1
- package/lib/CometChatGroups/GroupsStyle.d.ts +0 -51
- package/lib/CometChatGroups/GroupsStyle.js +0 -61
- package/lib/CometChatGroups/GroupsStyle.js.map +0 -1
- package/lib/CometChatGroups/index.d.ts +0 -4
- package/lib/CometChatGroups/index.js +0 -5
- package/lib/CometChatGroups/index.js.map +0 -1
- package/lib/CometChatGroups/resources/index.d.ts +0 -10
- package/lib/CometChatGroups/resources/index.js +0 -11
- package/lib/CometChatGroups/resources/index.js.map +0 -1
- package/lib/CometChatGroups/style.d.ts +0 -16
- package/lib/CometChatGroups/style.js +0 -19
- package/lib/CometChatGroups/style.js.map +0 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +0 -13
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +0 -172
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +0 -1
- package/lib/CometChatGroupsWithMessages/index.d.ts +0 -2
- package/lib/CometChatGroupsWithMessages/index.js +0 -3
- package/lib/CometChatGroupsWithMessages/index.js.map +0 -1
- package/lib/CometChatGroupsWithMessages/resources/index.d.ts +0 -2
- package/lib/CometChatGroupsWithMessages/resources/index.js +0 -3
- package/lib/CometChatGroupsWithMessages/resources/index.js.map +0 -1
- package/lib/CometChatGroupsWithMessages/styles.d.ts +0 -12
- package/lib/CometChatGroupsWithMessages/styles.js +0 -14
- package/lib/CometChatGroupsWithMessages/styles.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +0 -111
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +0 -96
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/Header.d.ts +0 -3
- package/lib/CometChatJoinProtectedGroup/Header.js +0 -33
- package/lib/CometChatJoinProtectedGroup/Header.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.d.ts +0 -15
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js +0 -16
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/index.d.ts +0 -3
- package/lib/CometChatJoinProtectedGroup/index.js +0 -4
- package/lib/CometChatJoinProtectedGroup/index.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/resources/index.d.ts +0 -4
- package/lib/CometChatJoinProtectedGroup/resources/index.js +0 -7
- package/lib/CometChatJoinProtectedGroup/resources/index.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/style.d.ts +0 -11
- package/lib/CometChatJoinProtectedGroup/style.js +0 -10
- package/lib/CometChatJoinProtectedGroup/style.js.map +0 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -269
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +0 -571
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +0 -1
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +0 -47
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +0 -34
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +0 -1
- package/lib/CometChatMessageComposer/index.d.ts +0 -3
- package/lib/CometChatMessageComposer/index.js +0 -4
- package/lib/CometChatMessageComposer/index.js.map +0 -1
- package/lib/CometChatMessageComposer/resources/index.d.ts +0 -10
- package/lib/CometChatMessageComposer/resources/index.js +0 -19
- package/lib/CometChatMessageComposer/resources/index.js.map +0 -1
- package/lib/CometChatMessageComposer/styles.d.ts +0 -28
- package/lib/CometChatMessageComposer/styles.js +0 -30
- package/lib/CometChatMessageComposer/styles.js.map +0 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -150
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +0 -220
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +0 -1
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +0 -37
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js +0 -27
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +0 -1
- package/lib/CometChatMessageHeader/index.d.ts +0 -3
- package/lib/CometChatMessageHeader/index.js +0 -4
- package/lib/CometChatMessageHeader/index.js.map +0 -1
- package/lib/CometChatMessageHeader/listners.d.ts +0 -27
- package/lib/CometChatMessageHeader/listners.js +0 -50
- package/lib/CometChatMessageHeader/listners.js.map +0 -1
- package/lib/CometChatMessageHeader/resources/index.d.ts +0 -5
- package/lib/CometChatMessageHeader/resources/index.js +0 -9
- package/lib/CometChatMessageHeader/resources/index.js.map +0 -1
- package/lib/CometChatMessageHeader/styles.d.ts +0 -16
- package/lib/CometChatMessageHeader/styles.js +0 -16
- package/lib/CometChatMessageHeader/styles.js.map +0 -1
- package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -36
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +0 -173
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +0 -1
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.d.ts +0 -3
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.js +0 -2
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.js.map +0 -1
- package/lib/CometChatMessageInformation/MessageInformationStyle.d.ts +0 -11
- package/lib/CometChatMessageInformation/MessageInformationStyle.js +0 -2
- package/lib/CometChatMessageInformation/MessageInformationStyle.js.map +0 -1
- package/lib/CometChatMessageInformation/index.d.ts +0 -4
- package/lib/CometChatMessageInformation/index.js +0 -3
- package/lib/CometChatMessageInformation/index.js.map +0 -1
- package/lib/CometChatMessageInformation/resources/index.d.ts +0 -2
- package/lib/CometChatMessageInformation/resources/index.js +0 -3
- package/lib/CometChatMessageInformation/resources/index.js.map +0 -1
- package/lib/CometChatMessageInformation/styles.d.ts +0 -23
- package/lib/CometChatMessageInformation/styles.js +0 -26
- package/lib/CometChatMessageInformation/styles.js.map +0 -1
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +0 -75
- package/lib/CometChatMessageList/CometChatMessageList.js +0 -1047
- package/lib/CometChatMessageList/CometChatMessageList.js.map +0 -1
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +0 -101
- package/lib/CometChatMessageList/MessageListConfiguration.js +0 -37
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +0 -1
- package/lib/CometChatMessageList/MessageListStyle.d.ts +0 -32
- package/lib/CometChatMessageList/MessageListStyle.js +0 -39
- package/lib/CometChatMessageList/MessageListStyle.js.map +0 -1
- package/lib/CometChatMessageList/index.d.ts +0 -4
- package/lib/CometChatMessageList/index.js +0 -5
- package/lib/CometChatMessageList/index.js.map +0 -1
- package/lib/CometChatMessageList/resources/index.d.ts +0 -6
- package/lib/CometChatMessageList/resources/index.js +0 -7
- package/lib/CometChatMessageList/resources/index.js.map +0 -1
- package/lib/CometChatMessageList/style.d.ts +0 -52
- package/lib/CometChatMessageList/style.js +0 -54
- package/lib/CometChatMessageList/style.js.map +0 -1
- package/lib/CometChatMessages/CometChatMessages.d.ts +0 -42
- package/lib/CometChatMessages/CometChatMessages.js +0 -200
- package/lib/CometChatMessages/CometChatMessages.js.map +0 -1
- package/lib/CometChatMessages/MessageStyle.d.ts +0 -15
- package/lib/CometChatMessages/MessageStyle.js +0 -19
- package/lib/CometChatMessages/MessageStyle.js.map +0 -1
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +0 -69
- package/lib/CometChatMessages/MessagesConfiguration.js +0 -25
- package/lib/CometChatMessages/MessagesConfiguration.js.map +0 -1
- package/lib/CometChatMessages/index.d.ts +0 -4
- package/lib/CometChatMessages/index.js +0 -5
- package/lib/CometChatMessages/index.js.map +0 -1
- package/lib/CometChatMessages/resources/index.d.ts +0 -2
- package/lib/CometChatMessages/resources/index.js +0 -3
- package/lib/CometChatMessages/resources/index.js.map +0 -1
- package/lib/CometChatMessages/style.d.ts +0 -21
- package/lib/CometChatMessages/style.js +0 -23
- package/lib/CometChatMessages/style.js.map +0 -1
- package/lib/CometChatTabs/CometChatTabs.d.ts +0 -11
- package/lib/CometChatTabs/CometChatTabs.js +0 -113
- package/lib/CometChatTabs/CometChatTabs.js.map +0 -1
- package/lib/CometChatTabs/CometChatTabsStyle.d.ts +0 -16
- package/lib/CometChatTabs/CometChatTabsStyle.js +0 -23
- package/lib/CometChatTabs/CometChatTabsStyle.js.map +0 -1
- package/lib/CometChatTabs/TabItemStyle.d.ts +0 -22
- package/lib/CometChatTabs/TabItemStyle.js +0 -29
- package/lib/CometChatTabs/TabItemStyle.js.map +0 -1
- package/lib/CometChatTabs/TabItems.d.ts +0 -11
- package/lib/CometChatTabs/TabItems.js +0 -2
- package/lib/CometChatTabs/TabItems.js.map +0 -1
- package/lib/CometChatTabs/index.d.ts +0 -4
- package/lib/CometChatTabs/index.js +0 -4
- package/lib/CometChatTabs/index.js.map +0 -1
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +0 -90
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +0 -139
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +0 -1
- package/lib/CometChatThreadedMessages/Header.d.ts +0 -12
- package/lib/CometChatThreadedMessages/Header.js +0 -23
- package/lib/CometChatThreadedMessages/Header.js.map +0 -1
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +0 -18
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +0 -16
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +0 -1
- package/lib/CometChatThreadedMessages/index.d.ts +0 -3
- package/lib/CometChatThreadedMessages/index.js +0 -4
- package/lib/CometChatThreadedMessages/index.js.map +0 -1
- package/lib/CometChatThreadedMessages/resources/index.d.ts +0 -8
- package/lib/CometChatThreadedMessages/resources/index.js +0 -15
- package/lib/CometChatThreadedMessages/resources/index.js.map +0 -1
- package/lib/CometChatThreadedMessages/style.d.ts +0 -28
- package/lib/CometChatThreadedMessages/style.js +0 -26
- package/lib/CometChatThreadedMessages/style.js.map +0 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +0 -41
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +0 -58
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +0 -1
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +0 -41
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js +0 -37
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +0 -1
- package/lib/CometChatTransferOwnership/index.d.ts +0 -3
- package/lib/CometChatTransferOwnership/index.js +0 -4
- package/lib/CometChatTransferOwnership/index.js.map +0 -1
- package/lib/CometChatUsers/CometChatUsers.d.ts +0 -69
- package/lib/CometChatUsers/CometChatUsers.js +0 -64
- package/lib/CometChatUsers/CometChatUsers.js.map +0 -1
- package/lib/CometChatUsers/UsersConfiguration.d.ts +0 -43
- package/lib/CometChatUsers/UsersConfiguration.js +0 -41
- package/lib/CometChatUsers/UsersConfiguration.js.map +0 -1
- package/lib/CometChatUsers/index.d.ts +0 -3
- package/lib/CometChatUsers/index.js +0 -4
- package/lib/CometChatUsers/index.js.map +0 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +0 -11
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +0 -89
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +0 -1
- package/lib/CometChatUsersWithMessages/index.d.ts +0 -2
- package/lib/CometChatUsersWithMessages/index.js +0 -3
- package/lib/CometChatUsersWithMessages/index.js.map +0 -1
- package/lib/CometChatUsersWithMessages/styles.d.ts +0 -12
- package/lib/CometChatUsersWithMessages/styles.js +0 -14
- package/lib/CometChatUsersWithMessages/styles.js.map +0 -1
- package/lib/calls/CallEvents.d.ts +0 -9
- package/lib/calls/CallEvents.js +0 -10
- package/lib/calls/CallEvents.js.map +0 -1
- package/lib/calls/CallUtils.d.ts +0 -5
- package/lib/calls/CallUtils.js +0 -60
- package/lib/calls/CallUtils.js.map +0 -1
- package/lib/calls/CallingConfiguration.d.ts +0 -3
- package/lib/calls/CallingConfiguration.js +0 -5
- package/lib/calls/CallingConfiguration.js.map +0 -1
- package/lib/calls/CallingDetailsUtils.d.ts +0 -7
- package/lib/calls/CallingDetailsUtils.js +0 -31
- package/lib/calls/CallingDetailsUtils.js.map +0 -1
- package/lib/calls/CallingExtension.d.ts +0 -11
- package/lib/calls/CallingExtension.js +0 -36
- package/lib/calls/CallingExtension.js.map +0 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +0 -33
- package/lib/calls/CallingExtentionDecorator.js +0 -157
- package/lib/calls/CallingExtentionDecorator.js.map +0 -1
- package/lib/calls/CallingPackage.d.ts +0 -4
- package/lib/calls/CallingPackage.js +0 -7
- package/lib/calls/CallingPackage.js.map +0 -1
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.d.ts +0 -13
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js +0 -11
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.d.ts +0 -18
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js +0 -25
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js.map +0 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +0 -11
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +0 -21
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +0 -1
- package/lib/calls/CometChatCallBubble/index.d.ts +0 -4
- package/lib/calls/CometChatCallBubble/index.js +0 -5
- package/lib/calls/CometChatCallBubble/index.js.map +0 -1
- package/lib/calls/CometChatCallBubble/resources/index.d.ts +0 -4
- package/lib/calls/CometChatCallBubble/resources/index.js +0 -5
- package/lib/calls/CometChatCallBubble/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallBubble/styles.d.ts +0 -20
- package/lib/calls/CometChatCallBubble/styles.js +0 -22
- package/lib/calls/CometChatCallBubble/styles.js.map +0 -1
- package/lib/calls/CometChatCallButtons/CallButtonStyle.d.ts +0 -12
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js +0 -19
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js.map +0 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.d.ts +0 -34
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js +0 -19
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +0 -61
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +0 -198
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +0 -1
- package/lib/calls/CometChatCallButtons/index.d.ts +0 -4
- package/lib/calls/CometChatCallButtons/index.js +0 -4
- package/lib/calls/CometChatCallButtons/index.js.map +0 -1
- package/lib/calls/CometChatCallButtons/resources/index.d.ts +0 -3
- package/lib/calls/CometChatCallButtons/resources/index.js +0 -4
- package/lib/calls/CometChatCallButtons/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallButtons/style.d.ts +0 -12
- package/lib/calls/CometChatCallButtons/style.js +0 -14
- package/lib/calls/CometChatCallButtons/style.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.d.ts +0 -54
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js +0 -31
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.d.ts +0 -20
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js +0 -27
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.d.ts +0 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +0 -137
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js.map +0 -1
- package/lib/calls/CometChatCallDetails/index.d.ts +0 -3
- package/lib/calls/CometChatCallDetails/index.js +0 -4
- package/lib/calls/CometChatCallDetails/index.js.map +0 -1
- package/lib/calls/CometChatCallDetails/resources/index.d.ts +0 -2
- package/lib/calls/CometChatCallDetails/resources/index.js +0 -3
- package/lib/calls/CometChatCallDetails/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallDetails/style.d.ts +0 -12
- package/lib/calls/CometChatCallDetails/style.js +0 -14
- package/lib/calls/CometChatCallDetails/style.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +0 -86
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js +0 -39
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.d.ts +0 -13
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js +0 -20
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.d.ts +0 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +0 -250
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js.map +0 -1
- package/lib/calls/CometChatCallHistory/index.d.ts +0 -3
- package/lib/calls/CometChatCallHistory/index.js +0 -4
- package/lib/calls/CometChatCallHistory/index.js.map +0 -1
- package/lib/calls/CometChatCallHistory/resources/index.d.ts +0 -8
- package/lib/calls/CometChatCallHistory/resources/index.js +0 -9
- package/lib/calls/CometChatCallHistory/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallHistory/style.d.ts +0 -21
- package/lib/calls/CometChatCallHistory/style.js +0 -23
- package/lib/calls/CometChatCallHistory/style.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.d.ts +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js +0 -30
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.d.ts +0 -6
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.d.ts +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/index.d.ts +0 -3
- package/lib/calls/CometChatCallHistoryWithDetails/index.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/index.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +0 -8
- package/lib/calls/CometChatCallHistoryWithDetails/style.js +0 -10
- package/lib/calls/CometChatCallHistoryWithDetails/style.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -21
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +0 -160
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.d.ts +0 -32
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js +0 -39
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/index.d.ts +0 -3
- package/lib/calls/CometChatIncomingCall/index.js +0 -4
- package/lib/calls/CometChatIncomingCall/index.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/resources/index.d.ts +0 -5
- package/lib/calls/CometChatIncomingCall/resources/index.js +0 -6
- package/lib/calls/CometChatIncomingCall/resources/index.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/styles.d.ts +0 -9
- package/lib/calls/CometChatIncomingCall/styles.js +0 -11
- package/lib/calls/CometChatIncomingCall/styles.js.map +0 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +0 -12
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +0 -41
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +0 -1
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.d.ts +0 -13
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js +0 -13
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js.map +0 -1
- package/lib/calls/CometChatOngoingCall/index.d.ts +0 -3
- package/lib/calls/CometChatOngoingCall/index.js +0 -3
- package/lib/calls/CometChatOngoingCall/index.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -46
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +0 -149
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.d.ts +0 -18
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js +0 -15
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.d.ts +0 -14
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js +0 -21
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/index.d.ts +0 -3
- package/lib/calls/CometChatOutgoingCall/index.js +0 -4
- package/lib/calls/CometChatOutgoingCall/index.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/resources/index.d.ts +0 -2
- package/lib/calls/CometChatOutgoingCall/resources/index.js +0 -3
- package/lib/calls/CometChatOutgoingCall/resources/index.js.map +0 -1
- package/lib/calls/index.d.ts +0 -12
- package/lib/calls/index.js +0 -13
- package/lib/calls/index.js.map +0 -1
- package/lib/calls/resources/index.d.ts +0 -3
- package/lib/calls/resources/index.js +0 -4
- package/lib/calls/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.d.ts +0 -55
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +0 -30
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +0 -44
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +0 -61
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/resources/index.d.ts +0 -3
- package/lib/extensions/CollaborativeBubble/resources/index.js +0 -3
- package/lib/extensions/CollaborativeBubble/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/styles.d.ts +0 -33
- package/lib/extensions/CollaborativeBubble/styles.js +0 -72
- package/lib/extensions/CollaborativeBubble/styles.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -14
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js +0 -7
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -12
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +0 -25
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -22
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +0 -129
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/index.d.ts +0 -5
- package/lib/extensions/CollaborativeDocument/index.js +0 -6
- package/lib/extensions/CollaborativeDocument/index.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/resources/index.d.ts +0 -2
- package/lib/extensions/CollaborativeDocument/resources/index.js +0 -5
- package/lib/extensions/CollaborativeDocument/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -14
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js +0 -7
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -12
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +0 -27
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -23
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +0 -135
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/index.d.ts +0 -5
- package/lib/extensions/CollaborativeWhiteboard/index.js +0 -6
- package/lib/extensions/CollaborativeWhiteboard/index.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/resources/index.d.ts +0 -2
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js +0 -5
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js.map +0 -1
- package/lib/extensions/ExtensionConstants.d.ts +0 -50
- package/lib/extensions/ExtensionConstants.js +0 -51
- package/lib/extensions/ExtensionConstants.js.map +0 -1
- package/lib/extensions/ExtensionModerator.d.ts +0 -16
- package/lib/extensions/ExtensionModerator.js +0 -51
- package/lib/extensions/ExtensionModerator.js.map +0 -1
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +0 -13
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js +0 -45
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +0 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.d.ts +0 -14
- package/lib/extensions/ImageModeration/ImageModerationExtension.js +0 -28
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +0 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +0 -17
- package/lib/extensions/ImageModeration/ImageModerationFilter.js +0 -93
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +0 -1
- package/lib/extensions/ImageModeration/index.d.ts +0 -4
- package/lib/extensions/ImageModeration/index.js +0 -5
- package/lib/extensions/ImageModeration/index.js.map +0 -1
- package/lib/extensions/ImageModeration/resources/index.d.ts +0 -3
- package/lib/extensions/ImageModeration/resources/index.js +0 -3
- package/lib/extensions/ImageModeration/resources/index.js.map +0 -1
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.d.ts +0 -18
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js +0 -17
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +0 -12
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +0 -34
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.d.ts +0 -14
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js +0 -13
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +0 -8
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js +0 -21
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +0 -13
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +0 -37
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +0 -1
- package/lib/extensions/LinkPreview/index.d.ts +0 -6
- package/lib/extensions/LinkPreview/index.js +0 -6
- package/lib/extensions/LinkPreview/index.js.map +0 -1
- package/lib/extensions/LinkPreview/resources/index.d.ts +0 -2
- package/lib/extensions/LinkPreview/resources/index.js +0 -3
- package/lib/extensions/LinkPreview/resources/index.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +0 -22
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +0 -69
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +0 -21
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +0 -152
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -14
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +0 -28
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +0 -1
- package/lib/extensions/MessageTranslation/index.d.ts +0 -4
- package/lib/extensions/MessageTranslation/index.js +0 -5
- package/lib/extensions/MessageTranslation/index.js.map +0 -1
- package/lib/extensions/MessageTranslation/resources/index.d.ts +0 -3
- package/lib/extensions/MessageTranslation/resources/index.js +0 -5
- package/lib/extensions/MessageTranslation/resources/index.js.map +0 -1
- package/lib/extensions/Polls/Header.d.ts +0 -14
- package/lib/extensions/Polls/Header.js +0 -41
- package/lib/extensions/Polls/Header.js.map +0 -1
- package/lib/extensions/Polls/Polls.d.ts +0 -132
- package/lib/extensions/Polls/Polls.js +0 -218
- package/lib/extensions/Polls/Polls.js.map +0 -1
- package/lib/extensions/Polls/PollsBubble.d.ts +0 -83
- package/lib/extensions/Polls/PollsBubble.js +0 -202
- package/lib/extensions/Polls/PollsBubble.js.map +0 -1
- package/lib/extensions/Polls/PollsConfigurations.d.ts +0 -15
- package/lib/extensions/Polls/PollsConfigurations.js +0 -2
- package/lib/extensions/Polls/PollsConfigurations.js.map +0 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +0 -21
- package/lib/extensions/Polls/PollsDecorator.js +0 -103
- package/lib/extensions/Polls/PollsDecorator.js.map +0 -1
- package/lib/extensions/Polls/PollsExtension.d.ts +0 -12
- package/lib/extensions/Polls/PollsExtension.js +0 -27
- package/lib/extensions/Polls/PollsExtension.js.map +0 -1
- package/lib/extensions/Polls/index.d.ts +0 -4
- package/lib/extensions/Polls/index.js +0 -4
- package/lib/extensions/Polls/index.js.map +0 -1
- package/lib/extensions/Polls/resources/index.d.ts +0 -7
- package/lib/extensions/Polls/resources/index.js +0 -13
- package/lib/extensions/Polls/resources/index.js.map +0 -1
- package/lib/extensions/Polls/style.d.ts +0 -45
- package/lib/extensions/Polls/style.js +0 -39
- package/lib/extensions/Polls/style.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +0 -22
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +0 -203
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/index.d.ts +0 -2
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js +0 -3
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/style.d.ts +0 -40
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js +0 -42
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js.map +0 -1
- package/lib/extensions/Reactions/ReactionsDecorator.d.ts +0 -23
- package/lib/extensions/Reactions/ReactionsDecorator.js +0 -113
- package/lib/extensions/Reactions/ReactionsDecorator.js.map +0 -1
- package/lib/extensions/Reactions/ReactionsExtension.d.ts +0 -14
- package/lib/extensions/Reactions/ReactionsExtension.js +0 -28
- package/lib/extensions/Reactions/ReactionsExtension.js.map +0 -1
- package/lib/extensions/Reactions/index.d.ts +0 -3
- package/lib/extensions/Reactions/index.js +0 -4
- package/lib/extensions/Reactions/index.js.map +0 -1
- package/lib/extensions/Reactions/resources/index.d.ts +0 -3
- package/lib/extensions/Reactions/resources/index.js +0 -3
- package/lib/extensions/Reactions/resources/index.js.map +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +0 -14
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +0 -95
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.d.ts +0 -14
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js +0 -28
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +0 -27
- package/lib/extensions/SmartReplies/SmartRepliesView.js +0 -152
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +0 -1
- package/lib/extensions/SmartReplies/index.d.ts +0 -3
- package/lib/extensions/SmartReplies/index.js +0 -4
- package/lib/extensions/SmartReplies/index.js.map +0 -1
- package/lib/extensions/SmartReplies/resources/index.d.ts +0 -3
- package/lib/extensions/SmartReplies/resources/index.js +0 -5
- package/lib/extensions/SmartReplies/resources/index.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +0 -33
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +0 -90
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +0 -17
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js +0 -17
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.d.ts +0 -20
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js +0 -27
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.d.ts +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +0 -61
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.d.ts +0 -4
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js +0 -5
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +0 -55
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js +0 -55
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js.map +0 -1
- package/lib/extensions/Stickers/StickerConfiguration.d.ts +0 -8
- package/lib/extensions/Stickers/StickerConfiguration.js +0 -12
- package/lib/extensions/Stickers/StickerConfiguration.js.map +0 -1
- package/lib/extensions/Stickers/StickerStyle.d.ts +0 -6
- package/lib/extensions/Stickers/StickerStyle.js +0 -10
- package/lib/extensions/Stickers/StickerStyle.js.map +0 -1
- package/lib/extensions/Stickers/StickersBubble.d.ts +0 -17
- package/lib/extensions/Stickers/StickersBubble.js +0 -21
- package/lib/extensions/Stickers/StickersBubble.js.map +0 -1
- package/lib/extensions/Stickers/StickersExtension.d.ts +0 -8
- package/lib/extensions/Stickers/StickersExtension.js +0 -28
- package/lib/extensions/Stickers/StickersExtension.js.map +0 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +0 -22
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +0 -108
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +0 -1
- package/lib/extensions/Stickers/index.d.ts +0 -5
- package/lib/extensions/Stickers/index.js +0 -5
- package/lib/extensions/Stickers/index.js.map +0 -1
- package/lib/extensions/Stickers/resources/index.d.ts +0 -2
- package/lib/extensions/Stickers/resources/index.js +0 -3
- package/lib/extensions/Stickers/resources/index.js.map +0 -1
- package/lib/extensions/TextModeration/TextModerationConfiguration.d.ts +0 -14
- package/lib/extensions/TextModeration/TextModerationConfiguration.js +0 -7
- package/lib/extensions/TextModeration/TextModerationConfiguration.js.map +0 -1
- package/lib/extensions/TextModeration/TextModerationExtension.d.ts +0 -13
- package/lib/extensions/TextModeration/TextModerationExtension.js +0 -37
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +0 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +0 -14
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +0 -55
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +0 -1
- package/lib/extensions/TextModeration/index.d.ts +0 -4
- package/lib/extensions/TextModeration/index.js +0 -4
- package/lib/extensions/TextModeration/index.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +0 -16
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +0 -64
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -15
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +0 -28
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/index.d.ts +0 -2
- package/lib/extensions/ThumbnailGeneration/index.js +0 -3
- package/lib/extensions/ThumbnailGeneration/index.js.map +0 -1
- package/lib/extensions/index.d.ts +0 -13
- package/lib/extensions/index.js +0 -14
- package/lib/extensions/index.js.map +0 -1
- package/lib/index.d.ts +0 -26
- package/lib/index.js +0 -53
- package/lib/index.js.map +0 -1
- package/lib/shared/CometChatContext.d.ts +0 -4
- package/lib/shared/CometChatContext.js +0 -30
- package/lib/shared/CometChatContext.js.map +0 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +0 -26
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +0 -195
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +0 -1
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.d.ts +0 -20
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js +0 -66
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js.map +0 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +0 -13
- package/lib/shared/CometChatUiKit/UIKitSettings.js +0 -15
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +0 -1
- package/lib/shared/CometChatUiKit/index.d.ts +0 -4
- package/lib/shared/CometChatUiKit/index.js +0 -5
- package/lib/shared/CometChatUiKit/index.js.map +0 -1
- package/lib/shared/assets/images/index.d.ts +0 -9
- package/lib/shared/assets/images/index.js +0 -17
- package/lib/shared/assets/images/index.js.map +0 -1
- package/lib/shared/base/BaseStyle.d.ts +0 -26
- package/lib/shared/base/BaseStyle.js +0 -26
- package/lib/shared/base/BaseStyle.js.map +0 -1
- package/lib/shared/base/BorderStyle.d.ts +0 -19
- package/lib/shared/base/BorderStyle.js +0 -19
- package/lib/shared/base/BorderStyle.js.map +0 -1
- package/lib/shared/base/FontStyle.d.ts +0 -18
- package/lib/shared/base/FontStyle.js +0 -18
- package/lib/shared/base/FontStyle.js.map +0 -1
- package/lib/shared/base/ShadowStyle.d.ts +0 -33
- package/lib/shared/base/ShadowStyle.js +0 -27
- package/lib/shared/base/ShadowStyle.js.map +0 -1
- package/lib/shared/base/Types.d.ts +0 -14
- package/lib/shared/base/Types.js +0 -2
- package/lib/shared/base/Types.js.map +0 -1
- package/lib/shared/base/index.d.ts +0 -6
- package/lib/shared/base/index.js +0 -6
- package/lib/shared/base/index.js.map +0 -1
- package/lib/shared/constants/UIKitConstants.d.ts +0 -285
- package/lib/shared/constants/UIKitConstants.js +0 -304
- package/lib/shared/constants/UIKitConstants.js.map +0 -1
- package/lib/shared/events/CometChatMessageEvents/index.d.ts +0 -43
- package/lib/shared/events/CometChatMessageEvents/index.js +0 -93
- package/lib/shared/events/CometChatMessageEvents/index.js.map +0 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.d.ts +0 -30
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +0 -310
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +0 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +0 -184
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +0 -270
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +0 -1
- package/lib/shared/events/CometChatUIEvents.d.ts +0 -17
- package/lib/shared/events/CometChatUIEvents.js +0 -19
- package/lib/shared/events/CometChatUIEvents.js.map +0 -1
- package/lib/shared/events/conversations.d.ts +0 -3
- package/lib/shared/events/conversations.js +0 -5
- package/lib/shared/events/conversations.js.map +0 -1
- package/lib/shared/events/groups.d.ts +0 -10
- package/lib/shared/events/groups.js +0 -12
- package/lib/shared/events/groups.js.map +0 -1
- package/lib/shared/events/index.d.ts +0 -6
- package/lib/shared/events/index.js +0 -7
- package/lib/shared/events/index.js.map +0 -1
- package/lib/shared/events/messages.d.ts +0 -11
- package/lib/shared/events/messages.js +0 -13
- package/lib/shared/events/messages.js.map +0 -1
- package/lib/shared/framework/ChatConfigurator.d.ts +0 -8
- package/lib/shared/framework/ChatConfigurator.js +0 -23
- package/lib/shared/framework/ChatConfigurator.js.map +0 -1
- package/lib/shared/framework/DataSource.d.ts +0 -49
- package/lib/shared/framework/DataSource.js +0 -2
- package/lib/shared/framework/DataSource.js.map +0 -1
- package/lib/shared/framework/DataSourceDecorator.d.ts +0 -49
- package/lib/shared/framework/DataSourceDecorator.js +0 -121
- package/lib/shared/framework/DataSourceDecorator.js.map +0 -1
- package/lib/shared/framework/ExtensionsDataSource.d.ts +0 -6
- package/lib/shared/framework/ExtensionsDataSource.js +0 -14
- package/lib/shared/framework/ExtensionsDataSource.js.map +0 -1
- package/lib/shared/framework/MessageDataSource.d.ts +0 -72
- package/lib/shared/framework/MessageDataSource.js +0 -548
- package/lib/shared/framework/MessageDataSource.js.map +0 -1
- package/lib/shared/framework/index.d.ts +0 -6
- package/lib/shared/framework/index.js +0 -6
- package/lib/shared/framework/index.js.map +0 -1
- package/lib/shared/framework/resources/index.d.ts +0 -22
- package/lib/shared/framework/resources/index.js +0 -45
- package/lib/shared/framework/resources/index.js.map +0 -1
- package/lib/shared/helper/SwipeRow.d.ts +0 -162
- package/lib/shared/helper/SwipeRow.js +0 -808
- package/lib/shared/helper/SwipeRow.js.map +0 -1
- package/lib/shared/helper/Toast.d.ts +0 -4
- package/lib/shared/helper/Toast.js +0 -23
- package/lib/shared/helper/Toast.js.map +0 -1
- package/lib/shared/helper/functions.d.ts +0 -3
- package/lib/shared/helper/functions.js +0 -32
- package/lib/shared/helper/functions.js.map +0 -1
- package/lib/shared/helper/helperFunctions.d.ts +0 -2
- package/lib/shared/helper/helperFunctions.js +0 -17
- package/lib/shared/helper/helperFunctions.js.map +0 -1
- package/lib/shared/helper/types/index.d.ts +0 -19
- package/lib/shared/helper/types/index.js +0 -2
- package/lib/shared/helper/types/index.js.map +0 -1
- package/lib/shared/helper/useKeyboard.d.ts +0 -1
- package/lib/shared/helper/useKeyboard.js +0 -25
- package/lib/shared/helper/useKeyboard.js.map +0 -1
- package/lib/shared/index.d.ts +0 -14
- package/lib/shared/index.js +0 -28
- package/lib/shared/index.js.map +0 -1
- package/lib/shared/modals/CometChatDetailsOption.d.ts +0 -18
- package/lib/shared/modals/CometChatDetailsOption.js +0 -2
- package/lib/shared/modals/CometChatDetailsOption.js.map +0 -1
- package/lib/shared/modals/CometChatDetailsTemplate.d.ts +0 -15
- package/lib/shared/modals/CometChatDetailsTemplate.js +0 -2
- package/lib/shared/modals/CometChatDetailsTemplate.js.map +0 -1
- package/lib/shared/modals/CometChatMessageOption.d.ts +0 -13
- package/lib/shared/modals/CometChatMessageOption.js +0 -2
- package/lib/shared/modals/CometChatMessageOption.js.map +0 -1
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +0 -24
- package/lib/shared/modals/CometChatMessageTemplate.js +0 -20
- package/lib/shared/modals/CometChatMessageTemplate.js.map +0 -1
- package/lib/shared/modals/CometChatOptions.d.ts +0 -14
- package/lib/shared/modals/CometChatOptions.js +0 -2
- package/lib/shared/modals/CometChatOptions.js.map +0 -1
- package/lib/shared/modals/index.d.ts +0 -6
- package/lib/shared/modals/index.js +0 -3
- package/lib/shared/modals/index.js.map +0 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +0 -3681
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +0 -164
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +0 -1
- package/lib/shared/resources/CometChatLocalize/index.d.ts +0 -2
- package/lib/shared/resources/CometChatLocalize/index.js +0 -3
- package/lib/shared/resources/CometChatLocalize/index.js.map +0 -1
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +0 -270
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +0 -13
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +0 -82
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/index.d.ts +0 -2
- package/lib/shared/resources/CometChatSoundManager/index.js +0 -3
- package/lib/shared/resources/CometChatSoundManager/index.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/resources/index.d.ts +0 -1
- package/lib/shared/resources/CometChatSoundManager/resources/index.js +0 -6
- package/lib/shared/resources/CometChatSoundManager/resources/index.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/sound.d.ts +0 -56
- package/lib/shared/resources/CometChatSoundManager/sound.js +0 -303
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +0 -1
- package/lib/shared/resources/CometChatTheme/CometChatTheme.d.ts +0 -22
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js +0 -23
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js.map +0 -1
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +0 -118
- package/lib/shared/resources/CometChatTheme/Palette.js +0 -389
- package/lib/shared/resources/CometChatTheme/Palette.js.map +0 -1
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +0 -80
- package/lib/shared/resources/CometChatTheme/Typography.js +0 -212
- package/lib/shared/resources/CometChatTheme/Typography.js.map +0 -1
- package/lib/shared/resources/CometChatTheme/index.d.ts +0 -2
- package/lib/shared/resources/CometChatTheme/index.js +0 -3
- package/lib/shared/resources/CometChatTheme/index.js.map +0 -1
- package/lib/shared/resources/index.d.ts +0 -4
- package/lib/shared/resources/index.js +0 -5
- package/lib/shared/resources/index.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +0 -15
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js +0 -87
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.d.ts +0 -20
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js +0 -27
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/index.d.ts +0 -1
- package/lib/shared/utils/CometChatLiveReactions/index.js +0 -2
- package/lib/shared/utils/CometChatLiveReactions/index.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/resources/index.d.ts +0 -2
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js +0 -3
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/style.d.ts +0 -5
- package/lib/shared/utils/CometChatLiveReactions/style.js +0 -7
- package/lib/shared/utils/CometChatLiveReactions/style.js.map +0 -1
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +0 -12
- package/lib/shared/utils/CometChatMessageHelper/index.js +0 -42
- package/lib/shared/utils/CometChatMessageHelper/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +0 -49
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +0 -107
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.d.ts +0 -24
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +0 -23
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +0 -31
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js +0 -29
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/index.d.ts +0 -4
- package/lib/shared/utils/CometChatMessagePreview/index.js +0 -5
- package/lib/shared/utils/CometChatMessagePreview/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/resources/index.d.ts +0 -2
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js +0 -3
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +0 -9
- package/lib/shared/utils/CometChatMessagePreview/style.js +0 -71
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +0 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +0 -13
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +0 -295
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +0 -1
- package/lib/shared/utils/DetailsUtils/resources/index.d.ts +0 -9
- package/lib/shared/utils/DetailsUtils/resources/index.js +0 -17
- package/lib/shared/utils/DetailsUtils/resources/index.js.map +0 -1
- package/lib/shared/utils/MessageUtils.d.ts +0 -15
- package/lib/shared/utils/MessageUtils.js +0 -31
- package/lib/shared/utils/MessageUtils.js.map +0 -1
- package/lib/shared/utils/conversationUtils.d.ts +0 -7
- package/lib/shared/utils/conversationUtils.js +0 -73
- package/lib/shared/utils/conversationUtils.js.map +0 -1
- package/lib/shared/utils/index.d.ts +0 -6
- package/lib/shared/utils/index.js +0 -7
- package/lib/shared/utils/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +0 -49
- package/lib/shared/views/CometChatActionSheet/ActionItem.js +0 -38
- package/lib/shared/views/CometChatActionSheet/ActionItem.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +0 -43
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +0 -49
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +0 -23
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +0 -170
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/hooks.d.ts +0 -1
- package/lib/shared/views/CometChatActionSheet/hooks.js +0 -7
- package/lib/shared/views/CometChatActionSheet/hooks.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/index.d.ts +0 -3
- package/lib/shared/views/CometChatActionSheet/index.js +0 -4
- package/lib/shared/views/CometChatActionSheet/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/resources/index.d.ts +0 -4
- package/lib/shared/views/CometChatActionSheet/resources/index.js +0 -7
- package/lib/shared/views/CometChatActionSheet/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/style.d.ts +0 -44
- package/lib/shared/views/CometChatActionSheet/style.js +0 -46
- package/lib/shared/views/CometChatActionSheet/style.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.d.ts +0 -16
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js +0 -23
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +0 -35
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +0 -92
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatAudioBubble/index.js +0 -4
- package/lib/shared/views/CometChatAudioBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatAudioBubble/resources/index.js +0 -4
- package/lib/shared/views/CometChatAudioBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +0 -26
- package/lib/shared/views/CometChatAudioBubble/style.js +0 -28
- package/lib/shared/views/CometChatAudioBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.d.ts +0 -19
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js +0 -19
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/AvatarStyle.d.ts +0 -28
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js +0 -38
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +0 -25
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +0 -88
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/index.d.ts +0 -4
- package/lib/shared/views/CometChatAvatar/index.js +0 -5
- package/lib/shared/views/CometChatAvatar/index.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatAvatar/resources/index.js +0 -5
- package/lib/shared/views/CometChatAvatar/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/styles.d.ts +0 -21
- package/lib/shared/views/CometChatAvatar/styles.js +0 -24
- package/lib/shared/views/CometChatAvatar/styles.js.map +0 -1
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.d.ts +0 -34
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js +0 -37
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatBadge/BadgeStyle.d.ts +0 -11
- package/lib/shared/views/CometChatBadge/BadgeStyle.js +0 -25
- package/lib/shared/views/CometChatBadge/BadgeStyle.js.map +0 -1
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +0 -23
- package/lib/shared/views/CometChatBadge/CometChatBadge.js +0 -48
- package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +0 -1
- package/lib/shared/views/CometChatBadge/index.d.ts +0 -4
- package/lib/shared/views/CometChatBadge/index.js +0 -5
- package/lib/shared/views/CometChatBadge/index.js.map +0 -1
- package/lib/shared/views/CometChatBadge/styles.d.ts +0 -14
- package/lib/shared/views/CometChatBadge/styles.js +0 -17
- package/lib/shared/views/CometChatBadge/styles.js.map +0 -1
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +0 -18
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +0 -99
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +0 -1
- package/lib/shared/views/CometChatBottomSheet/index.d.ts +0 -2
- package/lib/shared/views/CometChatBottomSheet/index.js +0 -3
- package/lib/shared/views/CometChatBottomSheet/index.js.map +0 -1
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +0 -50
- package/lib/shared/views/CometChatBottomSheet/style.js +0 -52
- package/lib/shared/views/CometChatBottomSheet/style.js.map +0 -1
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +0 -10
- package/lib/shared/views/CometChatButton/CometChatButton.js +0 -30
- package/lib/shared/views/CometChatButton/CometChatButton.js.map +0 -1
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.d.ts +0 -18
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js +0 -25
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js.map +0 -1
- package/lib/shared/views/CometChatButton/index.d.ts +0 -3
- package/lib/shared/views/CometChatButton/index.js +0 -4
- package/lib/shared/views/CometChatButton/index.js.map +0 -1
- package/lib/shared/views/CometChatButton/style.d.ts +0 -6
- package/lib/shared/views/CometChatButton/style.js +0 -8
- package/lib/shared/views/CometChatButton/style.js.map +0 -1
- package/lib/shared/views/CometChatCard/CometChatCard.d.ts +0 -15
- package/lib/shared/views/CometChatCard/CometChatCard.js +0 -35
- package/lib/shared/views/CometChatCard/CometChatCard.js.map +0 -1
- package/lib/shared/views/CometChatCard/CometChatCardStyle.d.ts +0 -10
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js +0 -17
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js.map +0 -1
- package/lib/shared/views/CometChatCard/index.d.ts +0 -3
- package/lib/shared/views/CometChatCard/index.js +0 -4
- package/lib/shared/views/CometChatCard/index.js.map +0 -1
- package/lib/shared/views/CometChatCard/style.d.ts +0 -11
- package/lib/shared/views/CometChatCard/style.js +0 -13
- package/lib/shared/views/CometChatCard/style.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +0 -25
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +0 -90
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.d.ts +0 -24
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js +0 -19
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/index.d.ts +0 -3
- package/lib/shared/views/CometChatConfirmDialog/index.js +0 -3
- package/lib/shared/views/CometChatConfirmDialog/index.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +0 -61
- package/lib/shared/views/CometChatConfirmDialog/style.js +0 -63
- package/lib/shared/views/CometChatConfirmDialog/style.js.map +0 -1
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +0 -41
- package/lib/shared/views/CometChatDate/CometChatDate.js +0 -140
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +0 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.d.ts +0 -21
- package/lib/shared/views/CometChatDate/DateConfiguration.js +0 -19
- package/lib/shared/views/CometChatDate/DateConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatDate/DateStyle.d.ts +0 -11
- package/lib/shared/views/CometChatDate/DateStyle.js +0 -16
- package/lib/shared/views/CometChatDate/DateStyle.js.map +0 -1
- package/lib/shared/views/CometChatDate/index.d.ts +0 -4
- package/lib/shared/views/CometChatDate/index.js +0 -5
- package/lib/shared/views/CometChatDate/index.js.map +0 -1
- package/lib/shared/views/CometChatDate/style.d.ts +0 -5
- package/lib/shared/views/CometChatDate/style.js +0 -8
- package/lib/shared/views/CometChatDate/style.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +0 -38
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +0 -153
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +0 -16
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js +0 -17
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.d.ts +0 -21
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js +0 -22
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +0 -19
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +0 -20
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +0 -27
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +0 -33
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.d.ts +0 -6579
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js +0 -8218
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/index.d.ts +0 -4
- package/lib/shared/views/CometChatEmojiKeyboard/index.js +0 -5
- package/lib/shared/views/CometChatEmojiKeyboard/index.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.d.ts +0 -9
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js +0 -10
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +0 -44
- package/lib/shared/views/CometChatEmojiKeyboard/style.js +0 -57
- package/lib/shared/views/CometChatEmojiKeyboard/style.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +0 -35
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +0 -66
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.d.ts +0 -31
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js +0 -23
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatFileBubble/index.js +0 -4
- package/lib/shared/views/CometChatFileBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatFileBubble/resources/index.js +0 -4
- package/lib/shared/views/CometChatFileBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/style.d.ts +0 -42
- package/lib/shared/views/CometChatFileBubble/style.js +0 -45
- package/lib/shared/views/CometChatFileBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +0 -29
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +0 -52
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +0 -10
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +0 -13
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatImageBubble/index.js +0 -4
- package/lib/shared/views/CometChatImageBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatList/CometChatList.d.ts +0 -86
- package/lib/shared/views/CometChatList/CometChatList.js +0 -443
- package/lib/shared/views/CometChatList/CometChatList.js.map +0 -1
- package/lib/shared/views/CometChatList/Header.d.ts +0 -2
- package/lib/shared/views/CometChatList/Header.js +0 -71
- package/lib/shared/views/CometChatList/Header.js.map +0 -1
- package/lib/shared/views/CometChatList/index.d.ts +0 -2
- package/lib/shared/views/CometChatList/index.js +0 -3
- package/lib/shared/views/CometChatList/index.js.map +0 -1
- package/lib/shared/views/CometChatList/resources/index.d.ts +0 -7
- package/lib/shared/views/CometChatList/resources/index.js +0 -13
- package/lib/shared/views/CometChatList/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatList/styles.d.ts +0 -99
- package/lib/shared/views/CometChatList/styles.js +0 -102
- package/lib/shared/views/CometChatList/styles.js.map +0 -1
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +0 -37
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +0 -173
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +0 -1
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.d.ts +0 -6
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js +0 -9
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatListItem/ListItemStyle.d.ts +0 -27
- package/lib/shared/views/CometChatListItem/ListItemStyle.js +0 -34
- package/lib/shared/views/CometChatListItem/ListItemStyle.js.map +0 -1
- package/lib/shared/views/CometChatListItem/index.d.ts +0 -4
- package/lib/shared/views/CometChatListItem/index.js +0 -5
- package/lib/shared/views/CometChatListItem/index.js.map +0 -1
- package/lib/shared/views/CometChatListItem/style.d.ts +0 -61
- package/lib/shared/views/CometChatListItem/style.js +0 -61
- package/lib/shared/views/CometChatListItem/style.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +0 -25
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +0 -151
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.d.ts +0 -26
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js +0 -33
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/index.d.ts +0 -3
- package/lib/shared/views/CometChatMediaRecorder/index.js +0 -4
- package/lib/shared/views/CometChatMediaRecorder/index.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/style.d.ts +0 -27
- package/lib/shared/views/CometChatMediaRecorder/style.js +0 -28
- package/lib/shared/views/CometChatMediaRecorder/style.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -21
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +0 -41
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.d.ts +0 -6
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js +0 -13
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/index.d.ts +0 -2
- package/lib/shared/views/CometChatMessageBubble/index.js +0 -3
- package/lib/shared/views/CometChatMessageBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/style.js +0 -1
- package/lib/shared/views/CometChatMessageBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +0 -98
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +0 -50
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/index.d.ts +0 -2
- package/lib/shared/views/CometChatMessageInput/index.js +0 -3
- package/lib/shared/views/CometChatMessageInput/index.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +0 -7
- package/lib/shared/views/CometChatMessageInput/styles.js +0 -9
- package/lib/shared/views/CometChatMessageInput/styles.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +0 -30
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +0 -48
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.d.ts +0 -30
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +0 -39
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.d.ts +0 -3
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js +0 -4
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/index.d.ts +0 -3
- package/lib/shared/views/CometChatReceipt/index.js +0 -4
- package/lib/shared/views/CometChatReceipt/index.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/resources/index.d.ts +0 -7
- package/lib/shared/views/CometChatReceipt/resources/index.js +0 -18
- package/lib/shared/views/CometChatReceipt/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/style.d.ts +0 -8
- package/lib/shared/views/CometChatReceipt/style.js +0 -10
- package/lib/shared/views/CometChatReceipt/style.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +0 -25
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +0 -40
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.d.ts +0 -17
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js +0 -16
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.d.ts +0 -20
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.js +0 -22
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/index.d.ts +0 -4
- package/lib/shared/views/CometChatStatusIndicator/index.js +0 -5
- package/lib/shared/views/CometChatStatusIndicator/index.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +0 -12
- package/lib/shared/views/CometChatStatusIndicator/styles.js +0 -15
- package/lib/shared/views/CometChatStatusIndicator/styles.js.map +0 -1
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +0 -27
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +0 -84
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +0 -1
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.d.ts +0 -26
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +0 -21
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatTextBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatTextBubble/index.js +0 -4
- package/lib/shared/views/CometChatTextBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +0 -31
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +0 -54
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.d.ts +0 -16
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +0 -17
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatVideoBubble/index.js +0 -4
- package/lib/shared/views/CometChatVideoBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/resources/index.d.ts +0 -2
- package/lib/shared/views/CometChatVideoBubble/resources/index.js +0 -3
- package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +0 -7
- package/lib/shared/views/CometChatVideoBubble/style.js +0 -9
- package/lib/shared/views/CometChatVideoBubble/style.js.map +0 -1
- package/lib/shared/views/SwipeRow/SwipeRow.d.ts +0 -8
- package/lib/shared/views/SwipeRow/SwipeRow.js +0 -79
- package/lib/shared/views/SwipeRow/SwipeRow.js.map +0 -1
- package/lib/shared/views/SwipeRow/index.d.ts +0 -2
- package/lib/shared/views/SwipeRow/index.js +0 -3
- package/lib/shared/views/SwipeRow/index.js.map +0 -1
- package/lib/shared/views/SwipeRow/style.d.ts +0 -28
- package/lib/shared/views/SwipeRow/style.js +0 -28
- package/lib/shared/views/SwipeRow/style.js.map +0 -1
- package/lib/shared/views/index.d.ts +0 -18
- package/lib/shared/views/index.js +0 -21
- package/lib/shared/views/index.js.map +0 -1
- /package/{lib/shared/views/CometChatMessageBubble/style.d.ts → android/.gradle/7.4.2/gc.properties} +0 -0
|
@@ -21,6 +21,8 @@ import { CometChatFormBubble, CometChatCardBubble } from "../views";
|
|
|
21
21
|
import { CardMessage, FormMessage } from "../modals/InteractiveData";
|
|
22
22
|
import { FormBubbleStyle } from "../views/CometChatFormBubble/FormBubbleStyle";
|
|
23
23
|
import { CardBubbleStyle } from "../views/CometChatCardBubble/CardBubbleStyle";
|
|
24
|
+
import { SchedulerMessage } from "../modals/InteractiveData/InteractiveMessage";
|
|
25
|
+
import { CometChatSchedulerBubble, SchedulerBubbleStyles } from "../views/CometChatSchedulerBubble";
|
|
24
26
|
|
|
25
27
|
function isAudioMessage(message: CometChat.BaseMessage): message is CometChat.MediaMessage {
|
|
26
28
|
return message.getCategory() == CometChat.CATEGORY_MESSAGE &&
|
|
@@ -152,6 +154,13 @@ export class MessageDataSource implements DataSource {
|
|
|
152
154
|
return optionsList;
|
|
153
155
|
}
|
|
154
156
|
|
|
157
|
+
getSchedulerMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[] {
|
|
158
|
+
let optionsList: Array<CometChatMessageOption> = [];
|
|
159
|
+
if (!isDeletedMessage(messageObject))
|
|
160
|
+
optionsList.push(...ChatConfigurator.dataSource.getCommonOptions(loggedInUser, messageObject, group));
|
|
161
|
+
return optionsList;
|
|
162
|
+
}
|
|
163
|
+
|
|
155
164
|
getCardMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[] {
|
|
156
165
|
let optionsList: Array<CometChatMessageOption> = [];
|
|
157
166
|
if (!isDeletedMessage(messageObject))
|
|
@@ -311,6 +320,15 @@ export class MessageDataSource implements DataSource {
|
|
|
311
320
|
style={style}
|
|
312
321
|
/>
|
|
313
322
|
}
|
|
323
|
+
|
|
324
|
+
getSchedulerMessageBubble(message: SchedulerMessage, theme: CometChatTheme, style?: SchedulerBubbleStyles, onScheduleClick?: (data: any) => void): JSX.Element {
|
|
325
|
+
return <CometChatSchedulerBubble
|
|
326
|
+
schedulerMessage={message}
|
|
327
|
+
onScheduleClick={onScheduleClick}
|
|
328
|
+
style={style}
|
|
329
|
+
/>
|
|
330
|
+
}
|
|
331
|
+
|
|
314
332
|
getCardMessageBubble(message: CardMessage, theme: CometChatTheme, style?: CardBubbleStyle, onSubmitClick?: (data: any) => void): JSX.Element {
|
|
315
333
|
return <CometChatCardBubble
|
|
316
334
|
message={message}
|
|
@@ -356,6 +374,9 @@ export class MessageDataSource implements DataSource {
|
|
|
356
374
|
getFormMessageContentView(message: FormMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element {
|
|
357
375
|
return ChatConfigurator.dataSource.getFormMessageBubble(message, theme);
|
|
358
376
|
}
|
|
377
|
+
getSchedulerMessageContentView(message: SchedulerMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element {
|
|
378
|
+
return ChatConfigurator.dataSource.getSchedulerMessageBubble(message, theme);
|
|
379
|
+
}
|
|
359
380
|
getCardMessageContentView(message: CardMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element {
|
|
360
381
|
return ChatConfigurator.dataSource.getCardMessageBubble(message, theme);
|
|
361
382
|
}
|
|
@@ -438,6 +459,21 @@ export class MessageDataSource implements DataSource {
|
|
|
438
459
|
});
|
|
439
460
|
}
|
|
440
461
|
|
|
462
|
+
getSchedulerMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate {
|
|
463
|
+
return new CometChatMessageTemplate({
|
|
464
|
+
type: MessageTypeConstants.scheduler,
|
|
465
|
+
category: MessageCategoryConstants.interactive,
|
|
466
|
+
ContentView: (message: CometChat.BaseMessage, _alignment: MessageBubbleAlignmentType) => {
|
|
467
|
+
if (isDeletedMessage(message)) {
|
|
468
|
+
return ChatConfigurator.dataSource.getDeleteMessageBubble(message, theme);
|
|
469
|
+
} else {
|
|
470
|
+
return ChatConfigurator.dataSource.getSchedulerMessageContentView(message, _alignment, theme);
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
options: (loggedInuser, message, group) => ChatConfigurator.dataSource.getSchedulerMessageOptions(loggedInuser, message, group),
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
|
|
441
477
|
getCardMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate {
|
|
442
478
|
return new CometChatMessageTemplate({
|
|
443
479
|
type: MessageTypeConstants.card,
|
|
@@ -520,6 +556,7 @@ export class MessageDataSource implements DataSource {
|
|
|
520
556
|
return [
|
|
521
557
|
ChatConfigurator.dataSource.getTextMessageTemplate(theme),
|
|
522
558
|
ChatConfigurator.dataSource.getFormMessageTemplate(theme),
|
|
559
|
+
ChatConfigurator.dataSource.getSchedulerMessageTemplate(theme),
|
|
523
560
|
ChatConfigurator.dataSource.getCardMessageTemplate(theme),
|
|
524
561
|
ChatConfigurator.dataSource.getAudioMessageTemplate(theme),
|
|
525
562
|
ChatConfigurator.dataSource.getVideoMessageTemplate(theme),
|
|
@@ -556,6 +593,9 @@ export class MessageDataSource implements DataSource {
|
|
|
556
593
|
case MessageTypeConstants.form:
|
|
557
594
|
template = ChatConfigurator.dataSource.getFormMessageTemplate(theme)
|
|
558
595
|
break;
|
|
596
|
+
case MessageTypeConstants.scheduler:
|
|
597
|
+
template = ChatConfigurator.dataSource.getSchedulerMessageTemplate(theme)
|
|
598
|
+
break;
|
|
559
599
|
case MessageTypeConstants.card:
|
|
560
600
|
template = ChatConfigurator.dataSource.getCardMessageTemplate(theme)
|
|
561
601
|
break;
|
|
@@ -573,7 +613,8 @@ export class MessageDataSource implements DataSource {
|
|
|
573
613
|
MessageTypeConstants.groupActions,
|
|
574
614
|
MessageTypeConstants.groupMember,
|
|
575
615
|
MessageTypeConstants.form,
|
|
576
|
-
MessageTypeConstants.card
|
|
616
|
+
MessageTypeConstants.card,
|
|
617
|
+
MessageTypeConstants.scheduler
|
|
577
618
|
];
|
|
578
619
|
}
|
|
579
620
|
getAllMessageCategories(): string[] {
|
package/src/shared/index.ts
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
DropdownElement,
|
|
39
39
|
ElementEntity,
|
|
40
40
|
FormMessage,
|
|
41
|
+
SchedulerMessage,
|
|
41
42
|
LabelElement,
|
|
42
43
|
OptionElement,
|
|
43
44
|
RadioButtonElement,
|
|
@@ -136,7 +137,9 @@ import {
|
|
|
136
137
|
CometChatFormBubble,
|
|
137
138
|
CometChatFormBubbleInterface,
|
|
138
139
|
CometChatCardBubble,
|
|
139
|
-
CometChatCardBubbleInterface
|
|
140
|
+
CometChatCardBubbleInterface,
|
|
141
|
+
CometChatSchedulerBubble,
|
|
142
|
+
CometChatSchedulerBubbleInterface
|
|
140
143
|
} from './views';
|
|
141
144
|
|
|
142
145
|
import {
|
|
@@ -289,6 +292,8 @@ export {
|
|
|
289
292
|
CometChatFormBubbleInterface,
|
|
290
293
|
CometChatCardBubble,
|
|
291
294
|
CometChatCardBubbleInterface,
|
|
295
|
+
CometChatSchedulerBubble,
|
|
296
|
+
CometChatSchedulerBubbleInterface,
|
|
292
297
|
APIAction,
|
|
293
298
|
ActionEntity,
|
|
294
299
|
BaseInputElement,
|
|
@@ -301,6 +306,7 @@ export {
|
|
|
301
306
|
DropdownElement,
|
|
302
307
|
ElementEntity,
|
|
303
308
|
FormMessage,
|
|
309
|
+
SchedulerMessage,
|
|
304
310
|
LabelElement,
|
|
305
311
|
OptionElement,
|
|
306
312
|
RadioButtonElement,
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import React, { useEffect, useState, useCallback } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
|
|
5
|
+
import localeData from 'dayjs/plugin/localeData';
|
|
6
|
+
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
|
7
|
+
import utc from 'dayjs/plugin/utc';
|
|
8
|
+
|
|
9
|
+
import { getSurroundingTimeUnits } from '../Utils';
|
|
10
|
+
import { useSurroundingTimeUnits } from '../Hooks';
|
|
11
|
+
import { ThemeContext, LocaleContext } from '../Contexts';
|
|
12
|
+
import { VIEW } from '../Constants';
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
Months,
|
|
16
|
+
Days,
|
|
17
|
+
Arrow as DefaultArrow,
|
|
18
|
+
Title as DefaultTitle,
|
|
19
|
+
Weekdays as DefaultWeekdays,
|
|
20
|
+
} from '../Components';
|
|
21
|
+
|
|
22
|
+
import type {
|
|
23
|
+
Theme,
|
|
24
|
+
Locale,
|
|
25
|
+
ArrowComponentType,
|
|
26
|
+
TitleComponentType,
|
|
27
|
+
DayComponentType,
|
|
28
|
+
MonthComponentType,
|
|
29
|
+
WeekdaysComponentType,
|
|
30
|
+
} from '../Entities';
|
|
31
|
+
|
|
32
|
+
dayjs.extend(localeData);
|
|
33
|
+
dayjs.extend(localizedFormat);
|
|
34
|
+
dayjs.extend(utc);
|
|
35
|
+
|
|
36
|
+
export interface Props {
|
|
37
|
+
ArrowComponent?: ArrowComponentType;
|
|
38
|
+
TitleComponent?: TitleComponentType;
|
|
39
|
+
DayComponent?: DayComponentType;
|
|
40
|
+
MonthComponent?: MonthComponentType;
|
|
41
|
+
WeekdaysComponent?: WeekdaysComponentType;
|
|
42
|
+
testID?: string;
|
|
43
|
+
showExtraDates?: boolean;
|
|
44
|
+
allowYearView?: boolean; // Boolean that disables the calendar year view
|
|
45
|
+
onPressDay: (date: string) => void; // Recieves a date format string
|
|
46
|
+
minDate?: string; // YYYY-MM-DD format string respresenting the minimum date that can be selected
|
|
47
|
+
maxDate?: string; // YYYY-MM-DD format string respresenting the maximum date that can be selected
|
|
48
|
+
initVisibleDate?: string; // YYYY-MM-DD format string respresenting the date that should be visible when the calendar first renders
|
|
49
|
+
dateProperties: {
|
|
50
|
+
[date: string /* YYYY-MM-DD */]: {
|
|
51
|
+
isSelected?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const BaseCalendar: React.FC<Props> = ({
|
|
57
|
+
ArrowComponent: CustomArrow,
|
|
58
|
+
TitleComponent: CustomTitle,
|
|
59
|
+
WeekdaysComponent: CustomWeekdays,
|
|
60
|
+
DayComponent,
|
|
61
|
+
MonthComponent,
|
|
62
|
+
allowYearView,
|
|
63
|
+
showExtraDates,
|
|
64
|
+
onPressDay,
|
|
65
|
+
maxDate,
|
|
66
|
+
minDate,
|
|
67
|
+
initVisibleDate,
|
|
68
|
+
dateProperties,
|
|
69
|
+
testID,
|
|
70
|
+
}) => {
|
|
71
|
+
const theme = React.useContext<Theme>(ThemeContext);
|
|
72
|
+
const locale = React.useContext<Locale>(LocaleContext);
|
|
73
|
+
|
|
74
|
+
const [rightArrowDisabled, disableRightArrow] = useState<boolean>(false);
|
|
75
|
+
const [leftArrowDisabled, disableLeftArrow] = useState<boolean>(false);
|
|
76
|
+
const [activeView, setActiveView] = useState<VIEW>(VIEW.MONTH);
|
|
77
|
+
const [visibleDate, setVisibleDate] = useState<string>(
|
|
78
|
+
initVisibleDate ?? dayjs().local().format()
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
const localeAwareVisibleDate = React.useMemo(
|
|
82
|
+
() => dayjs(visibleDate).locale(locale.name, locale),
|
|
83
|
+
[locale, visibleDate]
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
const weekdays = React.useMemo(() => locale.weekdaysShort ?? [''], [locale]);
|
|
87
|
+
|
|
88
|
+
const { month, year } = useSurroundingTimeUnits(visibleDate);
|
|
89
|
+
|
|
90
|
+
const verifyUnitIsPastMaxDate = useCallback(
|
|
91
|
+
(unit) => {
|
|
92
|
+
if (maxDate) {
|
|
93
|
+
if (unit.isAfter(maxDate)) {
|
|
94
|
+
disableRightArrow(true);
|
|
95
|
+
} else {
|
|
96
|
+
disableRightArrow(false);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
[disableRightArrow, maxDate]
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const verifyUnitIsBeforeMinDate = useCallback(
|
|
104
|
+
(unit) => {
|
|
105
|
+
if (minDate) {
|
|
106
|
+
if (unit.isBefore(minDate)) {
|
|
107
|
+
disableLeftArrow(true);
|
|
108
|
+
} else {
|
|
109
|
+
disableLeftArrow(false);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
[disableLeftArrow, minDate]
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
const toggleCalendarView = useCallback(
|
|
117
|
+
(newVisibleDate: string = visibleDate) => {
|
|
118
|
+
const { month: _month, year: _year } = getSurroundingTimeUnits(newVisibleDate);
|
|
119
|
+
|
|
120
|
+
if (activeView === VIEW.MONTH) {
|
|
121
|
+
setActiveView(VIEW.YEAR);
|
|
122
|
+
verifyUnitIsPastMaxDate(_year.next);
|
|
123
|
+
verifyUnitIsBeforeMinDate(_year.last);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (activeView === VIEW.YEAR) {
|
|
127
|
+
setActiveView(VIEW.MONTH);
|
|
128
|
+
verifyUnitIsPastMaxDate(_month.next);
|
|
129
|
+
verifyUnitIsBeforeMinDate(_month.last);
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
[activeView, verifyUnitIsBeforeMinDate, verifyUnitIsPastMaxDate, visibleDate]
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
useEffect(() => {
|
|
136
|
+
verifyUnitIsPastMaxDate(month.next.start);
|
|
137
|
+
verifyUnitIsBeforeMinDate(month.last.end);
|
|
138
|
+
}, [
|
|
139
|
+
month.last.end,
|
|
140
|
+
month.next.start,
|
|
141
|
+
verifyUnitIsPastMaxDate,
|
|
142
|
+
verifyUnitIsBeforeMinDate,
|
|
143
|
+
]);
|
|
144
|
+
|
|
145
|
+
const addMonth = useCallback(() => {
|
|
146
|
+
setVisibleDate(month.next.start.local().format());
|
|
147
|
+
verifyUnitIsPastMaxDate(month.afterNext);
|
|
148
|
+
verifyUnitIsBeforeMinDate(month.current.end);
|
|
149
|
+
}, [month, verifyUnitIsBeforeMinDate, verifyUnitIsPastMaxDate]);
|
|
150
|
+
|
|
151
|
+
const subtractMonth = useCallback(() => {
|
|
152
|
+
setVisibleDate(month.last.start.local().format());
|
|
153
|
+
verifyUnitIsPastMaxDate(month.current.start);
|
|
154
|
+
verifyUnitIsBeforeMinDate(month.beforeLast);
|
|
155
|
+
}, [month, verifyUnitIsBeforeMinDate, verifyUnitIsPastMaxDate]);
|
|
156
|
+
|
|
157
|
+
const addYear = useCallback(() => {
|
|
158
|
+
setVisibleDate(year.next.persistMonth.local().format());
|
|
159
|
+
verifyUnitIsPastMaxDate(year.afterNext);
|
|
160
|
+
verifyUnitIsBeforeMinDate(year.current.end);
|
|
161
|
+
}, [year, verifyUnitIsBeforeMinDate, verifyUnitIsPastMaxDate]);
|
|
162
|
+
|
|
163
|
+
const subtractYear = useCallback(() => {
|
|
164
|
+
setVisibleDate(year.last.persistMonth.local().format());
|
|
165
|
+
verifyUnitIsPastMaxDate(year.current.start);
|
|
166
|
+
verifyUnitIsBeforeMinDate(year.beforeLast);
|
|
167
|
+
}, [year, verifyUnitIsBeforeMinDate, verifyUnitIsPastMaxDate]);
|
|
168
|
+
|
|
169
|
+
const onPressMonth = (newVisibleDate: string) => {
|
|
170
|
+
setVisibleDate(newVisibleDate);
|
|
171
|
+
toggleCalendarView(newVisibleDate);
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const Weekdays = CustomWeekdays || DefaultWeekdays;
|
|
175
|
+
const Arrow = CustomArrow || DefaultArrow;
|
|
176
|
+
const Title = CustomTitle || DefaultTitle;
|
|
177
|
+
|
|
178
|
+
return (
|
|
179
|
+
<View style={theme.calendarContainer} testID={testID}>
|
|
180
|
+
<View testID={'header'} style={theme.headerContainer}>
|
|
181
|
+
<Arrow
|
|
182
|
+
direction={'left'}
|
|
183
|
+
isDisabled={leftArrowDisabled}
|
|
184
|
+
onPress={activeView === VIEW.MONTH ? subtractMonth : subtractYear}
|
|
185
|
+
/>
|
|
186
|
+
<Title
|
|
187
|
+
activeView={activeView}
|
|
188
|
+
locale={locale}
|
|
189
|
+
date={localeAwareVisibleDate.format('YYYY-MM-DD')}
|
|
190
|
+
isDisabled={!allowYearView}
|
|
191
|
+
onPress={toggleCalendarView}
|
|
192
|
+
/>
|
|
193
|
+
<Arrow
|
|
194
|
+
direction={'right'}
|
|
195
|
+
isDisabled={rightArrowDisabled}
|
|
196
|
+
onPress={activeView === VIEW.MONTH ? addMonth : addYear}
|
|
197
|
+
/>
|
|
198
|
+
</View>
|
|
199
|
+
{activeView === VIEW.MONTH ? (
|
|
200
|
+
<>
|
|
201
|
+
<Weekdays days={weekdays} />
|
|
202
|
+
<Days
|
|
203
|
+
DayComponent={DayComponent}
|
|
204
|
+
visibleDate={localeAwareVisibleDate}
|
|
205
|
+
showExtraDates={!!showExtraDates}
|
|
206
|
+
dateProperties={dateProperties}
|
|
207
|
+
onPressDay={onPressDay}
|
|
208
|
+
minDate={minDate}
|
|
209
|
+
maxDate={maxDate}
|
|
210
|
+
/>
|
|
211
|
+
</>
|
|
212
|
+
) : (
|
|
213
|
+
<Months
|
|
214
|
+
MonthComponent={MonthComponent}
|
|
215
|
+
visibleDate={localeAwareVisibleDate}
|
|
216
|
+
minDate={minDate ? dayjs(minDate).local().format() : undefined}
|
|
217
|
+
maxDate={maxDate ? dayjs(maxDate).local().format() : undefined}
|
|
218
|
+
dateProperties={dateProperties}
|
|
219
|
+
onPressMonth={onPressMonth}
|
|
220
|
+
/>
|
|
221
|
+
)}
|
|
222
|
+
</View>
|
|
223
|
+
);
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
export default BaseCalendar;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
import utc from 'dayjs/plugin/utc';
|
|
4
|
+
|
|
5
|
+
import BaseCalendarWrappedInProviders from './Providers';
|
|
6
|
+
import type { DateProperties, WrapperCalendarProps } from '../Entities';
|
|
7
|
+
|
|
8
|
+
dayjs.extend(utc);
|
|
9
|
+
|
|
10
|
+
interface SpecificProps {
|
|
11
|
+
onSelectDate: (date: string) => void;
|
|
12
|
+
selectedDate: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
type Props = SpecificProps & WrapperCalendarProps;
|
|
16
|
+
|
|
17
|
+
// A thin wrapper to limit the props that can be passed to the BaseCalendar component
|
|
18
|
+
const DateSelectionCalendar: React.FC<Props> = ({
|
|
19
|
+
onSelectDate,
|
|
20
|
+
disabledDates,
|
|
21
|
+
selectedDate,
|
|
22
|
+
initVisibleDate,
|
|
23
|
+
allowYearView = true,
|
|
24
|
+
...others
|
|
25
|
+
}) => {
|
|
26
|
+
if (!selectedDate) {
|
|
27
|
+
throw new Error(
|
|
28
|
+
'The `selectedDate` prop is required. Use an empty array if no dates should be selected.'
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (typeof selectedDate !== 'string') {
|
|
33
|
+
throw new Error(
|
|
34
|
+
'The `selectedDate` prop should be a date string in YYYY-MM-DD format.'
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (!onSelectDate) {
|
|
39
|
+
throw new Error('The `onSelectDate` prop is required.');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (typeof onSelectDate !== 'function') {
|
|
43
|
+
throw new Error(
|
|
44
|
+
'The `onSelectDate` prop should be function that receives a date string as paramater.'
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const dateProperties = useMemo(() => {
|
|
49
|
+
let disabledDateProperties: Record<string, DateProperties> = {};
|
|
50
|
+
let selectedDateProperties: Record<string, DateProperties> = {};
|
|
51
|
+
|
|
52
|
+
disabledDateProperties = (disabledDates as string[])?.reduce(
|
|
53
|
+
(disabled: Record<string, DateProperties>, date) => {
|
|
54
|
+
disabled[date] = { isDisabled: true };
|
|
55
|
+
return disabled;
|
|
56
|
+
},
|
|
57
|
+
{}
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
if (dayjs(selectedDate).isValid()) {
|
|
61
|
+
selectedDateProperties = {
|
|
62
|
+
[dayjs(selectedDate).local().format('YYYY-MM-DD')]: {
|
|
63
|
+
isSelected: true,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Not possible for a date to be both disabled and selected, so overwriting is OK
|
|
69
|
+
return {
|
|
70
|
+
...disabledDateProperties,
|
|
71
|
+
...selectedDateProperties,
|
|
72
|
+
};
|
|
73
|
+
}, [selectedDate, disabledDates]);
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
<BaseCalendarWrappedInProviders
|
|
77
|
+
allowYearView={allowYearView}
|
|
78
|
+
onPressDay={onSelectDate}
|
|
79
|
+
initVisibleDate={
|
|
80
|
+
initVisibleDate || (dayjs(selectedDate).isValid() ? selectedDate : undefined)
|
|
81
|
+
}
|
|
82
|
+
dateProperties={dateProperties}
|
|
83
|
+
{...others}
|
|
84
|
+
/>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default DateSelectionCalendar;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
import utc from 'dayjs/plugin/utc';
|
|
4
|
+
|
|
5
|
+
import BaseCalendarWrappedInProviders from './Providers';
|
|
6
|
+
import type { DateProperties, WrapperCalendarProps } from '../Entities';
|
|
7
|
+
|
|
8
|
+
dayjs.extend(utc);
|
|
9
|
+
|
|
10
|
+
interface SpecificProps {
|
|
11
|
+
onSelectDates: (dates: string[]) => void;
|
|
12
|
+
selectedDates: string[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
type Props = SpecificProps & WrapperCalendarProps;
|
|
16
|
+
|
|
17
|
+
// A thin wrapper to limit the props that can be passed to the BaseCalendar component
|
|
18
|
+
const MultiDateSelectionCalendar: React.FC<Props> = ({
|
|
19
|
+
onSelectDates,
|
|
20
|
+
disabledDates,
|
|
21
|
+
selectedDates,
|
|
22
|
+
allowYearView = true,
|
|
23
|
+
...others
|
|
24
|
+
}) => {
|
|
25
|
+
if (!selectedDates) {
|
|
26
|
+
throw new Error(
|
|
27
|
+
'The `selectedDates` prop is required. Use an empty array if no dates should be selected.'
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (typeof selectedDates !== 'object') {
|
|
32
|
+
throw new Error(
|
|
33
|
+
'The `selectedDates` prop should be an array of date strings in YYYY-MM-DD format.'
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (!onSelectDates) {
|
|
38
|
+
throw new Error('The `onSelectDates` prop is required.');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (typeof onSelectDates !== 'function') {
|
|
42
|
+
throw new Error(
|
|
43
|
+
'The `onSelectDates` prop should be function that receives an array of date strings as paramater.'
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const selDatesRef = React.useRef<string[]>(selectedDates);
|
|
48
|
+
|
|
49
|
+
const dateProperties = useMemo(() => {
|
|
50
|
+
const disabledDateProperties = disabledDates?.reduce(
|
|
51
|
+
(disabled: Record<string, DateProperties>, date) => {
|
|
52
|
+
disabled[date] = { isDisabled: true };
|
|
53
|
+
return disabled;
|
|
54
|
+
},
|
|
55
|
+
{}
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const selectedDateProperties = selectedDates.reduce(
|
|
59
|
+
(selected: Record<string, DateProperties>, date) => {
|
|
60
|
+
selected[date] = { isSelected: true };
|
|
61
|
+
return selected;
|
|
62
|
+
},
|
|
63
|
+
{}
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
// Not possible for a date to be both disabled and selected, so overwriting is OK
|
|
67
|
+
return {
|
|
68
|
+
...disabledDateProperties,
|
|
69
|
+
...selectedDateProperties,
|
|
70
|
+
};
|
|
71
|
+
}, [selectedDates, disabledDates]);
|
|
72
|
+
|
|
73
|
+
const remove = (dateToRemove: string) => {
|
|
74
|
+
const newSelectedDates = selDatesRef.current.filter((date) => date !== dateToRemove);
|
|
75
|
+
selDatesRef.current = newSelectedDates;
|
|
76
|
+
return newSelectedDates;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const append = (dateToAppend: string) => {
|
|
80
|
+
const newSelectedDates = [...selDatesRef.current, dateToAppend].sort();
|
|
81
|
+
selDatesRef.current = newSelectedDates;
|
|
82
|
+
return newSelectedDates;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const onPressDay = React.useCallback(
|
|
86
|
+
(date: string) => {
|
|
87
|
+
if (selDatesRef.current.includes(date)) {
|
|
88
|
+
onSelectDates(remove(date));
|
|
89
|
+
} else {
|
|
90
|
+
onSelectDates(append(date));
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
[onSelectDates]
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<BaseCalendarWrappedInProviders
|
|
98
|
+
onPressDay={onPressDay}
|
|
99
|
+
allowYearView={allowYearView}
|
|
100
|
+
dateProperties={dateProperties}
|
|
101
|
+
{...others}
|
|
102
|
+
/>
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export default MultiDateSelectionCalendar;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { ThemeContext, LocaleContext } from '../Contexts';
|
|
4
|
+
import { DefaultTheme } from '../Themes';
|
|
5
|
+
import { DefaultLocale } from '../Locales';
|
|
6
|
+
import type { Theme, Locale } from '../Entities';
|
|
7
|
+
|
|
8
|
+
import BaseCalendar, { Props as BaseCalendarProps } from './BaseCalendar';
|
|
9
|
+
|
|
10
|
+
interface ProviderProps {
|
|
11
|
+
locale?: Locale;
|
|
12
|
+
theme?: Theme;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
type Props = ProviderProps & BaseCalendarProps;
|
|
16
|
+
|
|
17
|
+
const Providers: React.FC<Props> = ({ theme, locale, ...otherProps }) => {
|
|
18
|
+
return (
|
|
19
|
+
<LocaleContext.Provider value={locale ?? DefaultLocale}>
|
|
20
|
+
<ThemeContext.Provider value={theme ?? DefaultTheme}>
|
|
21
|
+
<BaseCalendar {...otherProps} />
|
|
22
|
+
</ThemeContext.Provider>
|
|
23
|
+
</LocaleContext.Provider>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default React.memo(Providers);
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactTestInstance } from 'react-test-renderer';
|
|
3
|
+
import { render, fireEvent } from '@testing-library/react-native';
|
|
4
|
+
import { ThemeContext } from '../Contexts';
|
|
5
|
+
import { DefaultTheme } from '../Themes';
|
|
6
|
+
|
|
7
|
+
import Arrow, { Props } from './Arrow';
|
|
8
|
+
|
|
9
|
+
test('Arrow renders without error', () => {
|
|
10
|
+
const arrow = new ArrowPage({ direction: 'left' });
|
|
11
|
+
expect(arrow.component).toBeTruthy();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
test('Component calls onPress callback when clicked', () => {
|
|
15
|
+
const onPress = jest.fn();
|
|
16
|
+
const month = new ArrowPage({ onPress });
|
|
17
|
+
fireEvent.press(month.component);
|
|
18
|
+
expect(onPress).toHaveBeenCalledTimes(1);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
describe('Enabling and disabling', () => {
|
|
22
|
+
test('Disable clicking if prop ´isDisabled´ is true', () => {
|
|
23
|
+
const arrow = new ArrowPage({ isDisabled: true });
|
|
24
|
+
expect(arrow.component).toBeDisabled();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
test('Enable clicking if prop ´isDisabled´ is false', () => {
|
|
28
|
+
const arrow = new ArrowPage({ isDisabled: false });
|
|
29
|
+
expect(arrow.component).toBeEnabled();
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
describe('Theme context', () => {
|
|
34
|
+
test('Container applies normal theme in enabled state', () => {
|
|
35
|
+
const arrow = new ArrowPage({});
|
|
36
|
+
expect(arrow.component).toHaveStyle(theme.normalArrowContainer);
|
|
37
|
+
expect(arrow.component).not.toHaveStyle(theme.disabledArrowContainer);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
test('Container applies isDisabled theme in isDisabled state', () => {
|
|
41
|
+
const arrow = new ArrowPage({ isDisabled: true });
|
|
42
|
+
expect(arrow.component).toHaveStyle([
|
|
43
|
+
theme.normalArrowContainer,
|
|
44
|
+
theme.disabledArrowContainer,
|
|
45
|
+
]);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('Image applies normal theme in enabled state', () => {
|
|
49
|
+
const arrow = new ArrowPage({});
|
|
50
|
+
expect(arrow.image).toHaveStyle(theme.normalArrowImage);
|
|
51
|
+
expect(arrow.image).not.toHaveStyle(theme.disabledArrowImage);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test('Image applies isDisabled theme in isDisabled state', () => {
|
|
55
|
+
const arrow = new ArrowPage({ isDisabled: true });
|
|
56
|
+
expect(arrow.image).toHaveStyle([theme.normalArrowImage, theme.disabledArrowImage]);
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
describe('Automatic image rotation', () => {
|
|
61
|
+
const rotation = { transform: [{ rotate: '180deg' }] };
|
|
62
|
+
|
|
63
|
+
test('Rotate "right" arrow towards the right', () => {
|
|
64
|
+
const arrow = new ArrowPage({ direction: 'right' });
|
|
65
|
+
expect(arrow.image).toHaveStyle(rotation);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
test('Do not rotate "left" arrows', () => {
|
|
69
|
+
const arrow = new ArrowPage({ direction: 'left' });
|
|
70
|
+
expect(arrow.image).not.toHaveStyle(rotation);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
class ArrowPage {
|
|
75
|
+
component: ReactTestInstance;
|
|
76
|
+
image: ReactTestInstance;
|
|
77
|
+
|
|
78
|
+
constructor({
|
|
79
|
+
direction = 'left',
|
|
80
|
+
isDisabled = false,
|
|
81
|
+
onPress = () => {},
|
|
82
|
+
}: Partial<Props>) {
|
|
83
|
+
const { getByLabelText, getByTestId } = render(
|
|
84
|
+
<ThemeContext.Provider value={theme}>
|
|
85
|
+
<Arrow {...{ direction, isDisabled, onPress }} />
|
|
86
|
+
</ThemeContext.Provider>
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
this.component = getByLabelText(`${direction} arrow`);
|
|
90
|
+
this.image = getByTestId('arrow-image');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const theme = {
|
|
95
|
+
...DefaultTheme,
|
|
96
|
+
normalArrowContainer: {
|
|
97
|
+
marginTop: 10,
|
|
98
|
+
backgroundColor: 'green',
|
|
99
|
+
},
|
|
100
|
+
disabledArrowContainer: {
|
|
101
|
+
marginBottom: 10,
|
|
102
|
+
backgroundColor: 'gray',
|
|
103
|
+
},
|
|
104
|
+
normalArrowImage: {
|
|
105
|
+
marginTop: 10,
|
|
106
|
+
tintColor: 'green',
|
|
107
|
+
},
|
|
108
|
+
disabledArrowImage: {
|
|
109
|
+
marginBottom: 10,
|
|
110
|
+
tintColor: 'gray',
|
|
111
|
+
},
|
|
112
|
+
};
|