@sendbird/uikit-react 3.4.6-0 → 3.4.6-rc.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/App.js +45 -45
- package/CHANGELOG.md +14 -0
- package/Channel/components/ChannelHeader.js +20 -20
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +39 -38
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +15 -15
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +43 -42
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +27 -28
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageList.js +41 -59
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +17 -17
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +23 -30
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +15 -15
- package/Channel/components/TypingIndicator.js.map +1 -1
- package/Channel/components/UnreadCount.js +4 -4
- package/Channel/context.js +14 -14
- package/Channel.js +39 -38
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +15 -15
- package/ChannelList/components/ChannelListHeader.js +6 -6
- package/ChannelList/components/ChannelListUI.js +29 -30
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +27 -27
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/ChannelList/context.js +8 -8
- package/ChannelList.js +29 -30
- package/ChannelList.js.map +1 -1
- package/{ChannelListProvider-b7ce527e.js → ChannelListProvider-45cf488b.js} +8 -8
- package/ChannelListProvider-45cf488b.js.map +1 -0
- package/{ChannelProvider-cd9afff3.js → ChannelProvider-9a52ed96.js} +12 -12
- package/ChannelProvider-9a52ed96.js.map +1 -0
- package/ChannelSettings/components/ChannelProfile.js +11 -11
- package/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +14 -14
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/ChannelSettings/components/UserListItem.js +10 -10
- package/ChannelSettings/components/UserPanel.js +14 -14
- package/ChannelSettings/components/UserPanel.js.map +1 -1
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings/context.js.map +1 -1
- package/ChannelSettings.js +17 -17
- package/CreateChannel/components/CreateChannelUI.js +13 -13
- package/CreateChannel/components/InviteUsers.js +16 -14
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +13 -13
- package/{CreateChannelProvider-d7e8a10f.js → CreateChannelProvider-8c395571.js} +1 -1
- package/{CreateChannelProvider-d7e8a10f.js.map → CreateChannelProvider-8c395571.js.map} +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +9 -9
- package/CreateOpenChannel.js.map +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +11 -12
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile.js +11 -12
- package/EditUserProfile.js.map +1 -1
- package/{LocalizationContext-43b10f97.js → LocalizationContext-428ea690.js} +3 -3
- package/{LocalizationContext-43b10f97.js.map → LocalizationContext-428ea690.js.map} +1 -1
- package/{MediaQueryContext-f2df2472.js → MediaQueryContext-e4d4fb2a.js} +7 -7
- package/{MediaQueryContext-f2df2472.js.map → MediaQueryContext-e4d4fb2a.js.map} +1 -1
- package/{MemberList-70806978.js → MemberList-f0614320.js} +5 -5
- package/MemberList-f0614320.js.map +1 -0
- package/MessageSearch/components/MessageSearchUI.js +11 -11
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +1 -1
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +11 -11
- package/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/OpenChannel/components/OpenChannelInput.js +19 -19
- package/OpenChannel/components/OpenChannelMessage.js +28 -27
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +33 -67
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +32 -30
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +8 -8
- package/OpenChannel.js +32 -30
- package/OpenChannel.js.map +1 -1
- package/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +13 -13
- package/OpenChannelList.js.map +1 -1
- package/{OpenChannelListProvider-22244a14.js → OpenChannelListProvider-1657d7da.js} +6 -4
- package/OpenChannelListProvider-1657d7da.js.map +1 -0
- package/{OpenChannelProvider-36270182.js → OpenChannelProvider-de3ddd2b.js} +8 -8
- package/OpenChannelProvider-de3ddd2b.js.map +1 -0
- package/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +17 -17
- package/{RemoveMessageModal-d0a5c64c.js → RemoveMessageModal-cced59b5.js} +3 -3
- package/{RemoveMessageModal-d0a5c64c.js.map → RemoveMessageModal-cced59b5.js.map} +1 -1
- package/SendbirdProvider.js +143 -111
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +30 -30
- package/Thread/components/ParentMessageInfoItem.js +18 -18
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +34 -33
- package/Thread/components/ThreadList.js.map +1 -1
- package/Thread/components/ThreadListItem.js +33 -33
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +28 -29
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +37 -37
- package/Thread/context.js +8 -8
- package/Thread.js +37 -37
- package/{ThreadProvider-533e9025.js → ThreadProvider-c33f66a4.js} +9 -9
- package/ThreadProvider-c33f66a4.js.map +1 -0
- package/{UserProfileContext-12b6fabf.js → UserProfileContext-576f1ef9.js} +1 -1
- package/{UserProfileContext-12b6fabf.js.map → UserProfileContext-576f1ef9.js.map} +1 -1
- package/{VoiceMessageInputWrapper-c74412de.js → VoiceMessageInputWrapper-8f6bfd36.js} +19 -14
- package/VoiceMessageInputWrapper-8f6bfd36.js.map +1 -0
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +3 -4
- package/VoicePlayer/useVoicePlayer.js.map +1 -1
- package/VoiceRecorder/context.js +22 -125
- package/VoiceRecorder/context.js.map +1 -1
- package/VoiceRecorder/useVoiceRecorder.js +2 -3
- package/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/WebAudioUtils-f9237c94.js +123 -0
- package/WebAudioUtils-f9237c94.js.map +1 -0
- package/{_rollupPluginBabelHelpers-3756a6a3.js → _rollupPluginBabelHelpers-6e60e429.js} +1 -1
- package/_rollupPluginBabelHelpers-6e60e429.js.map +1 -0
- package/cjs/App.js +45 -45
- package/cjs/Channel/components/ChannelHeader.js +20 -20
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +39 -38
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +15 -15
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +47 -46
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +27 -28
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +41 -59
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +17 -17
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +23 -30
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +15 -15
- package/cjs/Channel/components/TypingIndicator.js.map +1 -1
- package/cjs/Channel/components/UnreadCount.js +4 -4
- package/cjs/Channel/context.js +14 -14
- package/cjs/Channel.js +39 -38
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +15 -15
- package/cjs/ChannelList/components/ChannelListHeader.js +6 -6
- package/cjs/ChannelList/components/ChannelListUI.js +29 -30
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +27 -27
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/cjs/ChannelList/context.js +8 -8
- package/cjs/ChannelList.js +29 -30
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/{ChannelListProvider-d8f65b18.js → ChannelListProvider-f74d4451.js} +8 -8
- package/cjs/ChannelListProvider-f74d4451.js.map +1 -0
- package/cjs/{ChannelProvider-473548f7.js → ChannelProvider-fcb80591.js} +12 -12
- package/cjs/ChannelProvider-fcb80591.js.map +1 -0
- package/cjs/ChannelSettings/components/ChannelProfile.js +11 -11
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/cjs/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +14 -14
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/cjs/ChannelSettings/components/UserListItem.js +10 -10
- package/cjs/ChannelSettings/components/UserPanel.js +14 -14
- package/cjs/ChannelSettings/components/UserPanel.js.map +1 -1
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings/context.js.map +1 -1
- package/cjs/ChannelSettings.js +17 -17
- package/cjs/CreateChannel/components/CreateChannelUI.js +13 -13
- package/cjs/CreateChannel/components/InviteUsers.js +16 -14
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +13 -13
- package/cjs/{CreateChannelProvider-387290bb.js → CreateChannelProvider-1be5d0c0.js} +1 -1
- package/cjs/{CreateChannelProvider-387290bb.js.map → CreateChannelProvider-1be5d0c0.js.map} +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +9 -9
- package/cjs/CreateOpenChannel.js.map +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +11 -12
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile.js +11 -12
- package/cjs/EditUserProfile.js.map +1 -1
- package/cjs/{LocalizationContext-e4a874cf.js → LocalizationContext-9b216d02.js} +3 -3
- package/cjs/{LocalizationContext-e4a874cf.js.map → LocalizationContext-9b216d02.js.map} +1 -1
- package/cjs/{MediaQueryContext-fcd92c17.js → MediaQueryContext-ea137add.js} +7 -7
- package/cjs/{MediaQueryContext-fcd92c17.js.map → MediaQueryContext-ea137add.js.map} +1 -1
- package/cjs/{MemberList-dbd3a4b4.js → MemberList-4f805690.js} +5 -5
- package/cjs/MemberList-4f805690.js.map +1 -0
- package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +1 -1
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +11 -11
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/cjs/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/cjs/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelInput.js +19 -19
- package/cjs/OpenChannel/components/OpenChannelMessage.js +28 -27
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +37 -71
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +32 -30
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +8 -8
- package/cjs/OpenChannel.js +32 -30
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +13 -13
- package/cjs/OpenChannelList.js.map +1 -1
- package/cjs/{OpenChannelListProvider-89659c0b.js → OpenChannelListProvider-6883fa4a.js} +6 -4
- package/cjs/OpenChannelListProvider-6883fa4a.js.map +1 -0
- package/cjs/{OpenChannelProvider-3d3d606e.js → OpenChannelProvider-cb41bba9.js} +8 -8
- package/cjs/OpenChannelProvider-cb41bba9.js.map +1 -0
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +17 -17
- package/cjs/{RemoveMessageModal-21a7c6ac.js → RemoveMessageModal-193a514d.js} +3 -3
- package/cjs/{RemoveMessageModal-21a7c6ac.js.map → RemoveMessageModal-193a514d.js.map} +1 -1
- package/cjs/SendbirdProvider.js +147 -115
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +30 -30
- package/cjs/Thread/components/ParentMessageInfoItem.js +18 -18
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +34 -33
- package/cjs/Thread/components/ThreadList.js.map +1 -1
- package/cjs/Thread/components/ThreadListItem.js +33 -33
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +28 -29
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +37 -37
- package/cjs/Thread/context.js +8 -8
- package/cjs/Thread.js +37 -37
- package/cjs/{ThreadProvider-572d67c0.js → ThreadProvider-c3623e5f.js} +9 -9
- package/cjs/ThreadProvider-c3623e5f.js.map +1 -0
- package/cjs/{UserProfileContext-ce0c283c.js → UserProfileContext-ad079e6d.js} +1 -1
- package/cjs/{UserProfileContext-ce0c283c.js.map → UserProfileContext-ad079e6d.js.map} +1 -1
- package/cjs/{VoiceMessageInputWrapper-88ad4670.js → VoiceMessageInputWrapper-1c4004d1.js} +18 -13
- package/cjs/VoiceMessageInputWrapper-1c4004d1.js.map +1 -0
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +3 -4
- package/cjs/VoicePlayer/useVoicePlayer.js.map +1 -1
- package/cjs/VoiceRecorder/context.js +21 -124
- package/cjs/VoiceRecorder/context.js.map +1 -1
- package/cjs/VoiceRecorder/useVoiceRecorder.js +2 -3
- package/cjs/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/cjs/WebAudioUtils-33ee4d42.js +126 -0
- package/cjs/WebAudioUtils-33ee4d42.js.map +1 -0
- package/cjs/{_rollupPluginBabelHelpers-6ab4baac.js → _rollupPluginBabelHelpers-440ec6e2.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-440ec6e2.js.map +1 -0
- package/cjs/{color-168c1d53.js → color-8b30623d.js} +1 -1
- package/cjs/{color-168c1d53.js.map → color-8b30623d.js.map} +1 -1
- package/cjs/{compareIds-441b4983.js → compareIds-3dbb4f79.js} +1 -1
- package/cjs/{compareIds-441b4983.js.map → compareIds-3dbb4f79.js.map} +1 -1
- package/cjs/{const-0273bf9e.js → const-1e096998.js} +1 -1
- package/cjs/{const-0273bf9e.js.map → const-1e096998.js.map} +1 -1
- package/cjs/{const-cf4cec6a.js → const-7bb85121.js} +1 -1
- package/cjs/{const-cf4cec6a.js.map → const-7bb85121.js.map} +1 -1
- package/cjs/{consts-b8c0be49.js → consts-02c09d93.js} +1 -1
- package/cjs/{consts-b8c0be49.js.map → consts-02c09d93.js.map} +1 -1
- package/cjs/{consts-e193b1b8.js → consts-3ebe6f94.js} +1 -1
- package/cjs/{consts-e193b1b8.js.map → consts-3ebe6f94.js.map} +1 -1
- package/cjs/{consts-2e23914f.js → consts-54b7b2b1.js} +1 -1
- package/cjs/{consts-2e23914f.js.map → consts-54b7b2b1.js.map} +1 -1
- package/cjs/{consts-472d9347.js → consts-d1f579c4.js} +1 -1
- package/cjs/{consts-472d9347.js.map → consts-d1f579c4.js.map} +1 -1
- package/cjs/{context-d718fff1.js → context-855dcb8e.js} +2 -2
- package/cjs/{context-d718fff1.js.map → context-855dcb8e.js.map} +1 -1
- package/cjs/dist/index.css +57 -56
- package/cjs/dist/index.css.map +1 -1
- package/cjs/handlers/OpenChannelHandler.js.map +1 -1
- package/cjs/handlers/SessionHandler.js.map +1 -1
- package/cjs/{index-903c0f93.js → index-02729806.js} +24 -3
- package/cjs/index-02729806.js.map +1 -0
- package/cjs/{index-9dd8a18a.js → index-15a62d58.js} +5 -6
- package/cjs/index-15a62d58.js.map +1 -0
- package/cjs/{index-0e43cd69.js → index-3d6159df.js} +2 -2
- package/cjs/{index-0e43cd69.js.map → index-3d6159df.js.map} +1 -1
- package/cjs/index-5bba1fd5.js +41 -0
- package/cjs/index-5bba1fd5.js.map +1 -0
- package/cjs/{index-b2e4a79e.js → index-6d24cef9.js} +7 -7
- package/cjs/index-6d24cef9.js.map +1 -0
- package/cjs/{index-4894fc55.js → index-7f214e91.js} +7 -7
- package/cjs/index-7f214e91.js.map +1 -0
- package/cjs/{index-44341b78.js → index-8a187344.js} +6 -3
- package/cjs/index-8a187344.js.map +1 -0
- package/cjs/{index-3d08adec.js → index-8a64de0e.js} +4 -4
- package/cjs/index-8a64de0e.js.map +1 -0
- package/cjs/{index-d3b05e98.js → index-8d42b734.js} +2 -2
- package/cjs/index-8d42b734.js.map +1 -0
- package/cjs/{index-3a7584a0.js → index-9e320445.js} +28 -29
- package/cjs/index-9e320445.js.map +1 -0
- package/cjs/{index-630f7132.js → index-a1141d68.js} +14 -14
- package/cjs/index-a1141d68.js.map +1 -0
- package/cjs/{index-47105c4f.js → index-b95c8165.js} +2 -2
- package/cjs/index-b95c8165.js.map +1 -0
- package/cjs/{index-5075f3b2.js → index-d6f14382.js} +14 -14
- package/cjs/index-d6f14382.js.map +1 -0
- package/cjs/{index-813deccc.js → index-d85616b2.js} +1 -1
- package/cjs/{index-813deccc.js.map → index-d85616b2.js.map} +1 -1
- package/cjs/{index-f2d71843.js → index-ecfe08c9.js} +113 -30
- package/cjs/index-ecfe08c9.js.map +1 -0
- package/cjs/{index-ba9683ca.js → index-f8237241.js} +7 -3
- package/cjs/index-f8237241.js.map +1 -0
- package/cjs/index.js +49 -49
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/sendbirdSelectors.js.map +1 -1
- package/cjs/{stringSet-76f7df68.js → stringSet-e52248ab.js} +1 -1
- package/cjs/{stringSet-76f7df68.js.map → stringSet-e52248ab.js.map} +1 -1
- package/cjs/{tokenize-5071d1a6.js → tokenize-c5dd544b.js} +19 -5
- package/cjs/tokenize-c5dd544b.js.map +1 -0
- package/cjs/{topics-f70c5e0f.js → topics-09d72ec0.js} +1 -1
- package/cjs/topics-09d72ec0.js.map +1 -0
- package/cjs/tslib.es6-957ba986.js +97 -0
- package/cjs/tslib.es6-957ba986.js.map +1 -0
- package/cjs/{types-43ef9367.js → types-68cc0fcf.js} +1 -1
- package/cjs/types-68cc0fcf.js.map +1 -0
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +2 -2
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +1 -1
- package/cjs/ui/BottomSheet.js.map +1 -1
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/Button.js.map +1 -1
- package/cjs/ui/ChannelAvatar.js +3 -3
- package/cjs/ui/ChannelAvatar.js.map +1 -1
- package/cjs/ui/Checkbox.js +2 -2
- package/cjs/ui/Checkbox.js.map +1 -1
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +6 -6
- package/cjs/ui/ContextMenu.js.map +1 -1
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +8 -8
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/IconButton.js.map +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/ImageRenderer.js.map +1 -1
- package/cjs/ui/Input.js +2 -2
- package/cjs/ui/Label.js +2 -2
- package/cjs/ui/LinkLabel.js +2 -2
- package/cjs/ui/Loader.js +1 -1
- package/cjs/ui/MentionLabel.js +10 -10
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +28 -28
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput.js +24 -23
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +8 -8
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +5 -5
- package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
- package/cjs/ui/MessageSearchFileItem.js +11 -11
- package/cjs/ui/MessageSearchFileItem.js.map +1 -1
- package/cjs/ui/MessageSearchItem.js +9 -9
- package/cjs/ui/MessageSearchItem.js.map +1 -1
- package/cjs/ui/MessageStatus.js +10 -10
- package/cjs/ui/Modal.js +7 -7
- package/cjs/ui/Modal.js.map +1 -1
- package/cjs/ui/OGMessageItemBody.js +14 -13
- package/cjs/ui/OGMessageItemBody.js.map +1 -1
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +6 -6
- package/cjs/ui/OpenChannelAvatar.js.map +1 -1
- package/cjs/ui/OpenchannelConversationHeader.js +6 -6
- package/cjs/ui/OpenchannelConversationHeader.js.map +1 -1
- package/cjs/ui/OpenchannelFileMessage.js +16 -16
- package/cjs/ui/OpenchannelFileMessage.js.map +1 -1
- package/cjs/ui/OpenchannelOGMessage.js +19 -18
- package/cjs/ui/OpenchannelOGMessage.js.map +1 -1
- package/cjs/ui/OpenchannelThumbnailMessage.js +15 -15
- package/cjs/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/cjs/ui/OpenchannelUserMessage.js +16 -16
- package/cjs/ui/OpenchannelUserMessage.js.map +1 -1
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/PlaybackTime.js +2 -2
- package/cjs/ui/ProgressBar.js.map +1 -1
- package/cjs/ui/QuoteMessage.js +6 -6
- package/cjs/ui/QuoteMessage.js.map +1 -1
- package/cjs/ui/QuoteMessageInput.js +6 -6
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionBadge.js.map +1 -1
- package/cjs/ui/ReactionButton.js +1 -1
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextButton.js.map +1 -1
- package/cjs/ui/TextMessageItemBody.js +14 -13
- package/cjs/ui/TextMessageItemBody.js.map +1 -1
- package/cjs/ui/ThreadReplies.js +6 -6
- package/cjs/ui/ThumbnailMessageItemBody.js +4 -4
- package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/Tooltip.js.map +1 -1
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +6 -6
- package/cjs/ui/UserListItem.js +11 -11
- package/cjs/ui/UserListItem.js.map +1 -1
- package/cjs/ui/UserProfile.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +5 -6
- package/cjs/ui/VoiceMessageItemBody.js.map +1 -1
- package/cjs/ui/VoiceMessgeInput.js +8 -8
- package/cjs/ui/Word.js +11 -11
- package/cjs/ui/Word.js.map +1 -1
- package/cjs/{useLongPress-3582b310.js → useLongPress-640ea281.js} +3 -3
- package/cjs/{useLongPress-3582b310.js.map → useLongPress-640ea281.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/useSendbirdStateContext.js.map +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/utils/message/isVoiceMessage.js.map +1 -1
- package/cjs/{utils-1ebf89f9.js → utils-7346a672.js} +1 -1
- package/cjs/{utils-1ebf89f9.js.map → utils-7346a672.js.map} +1 -1
- package/cjs/{utils-39eb2189.js → utils-93739833.js} +2 -2
- package/cjs/utils-93739833.js.map +1 -0
- package/cjs/{utils-fdfc9b0a.js → utils-a82eaed9.js} +1 -1
- package/cjs/{utils-fdfc9b0a.js.map → utils-a82eaed9.js.map} +1 -1
- package/cjs/{utils-39a3f99e.js → utils-dd55b959.js} +1 -1
- package/cjs/utils-dd55b959.js.map +1 -0
- package/cjs/{uuid-f23c161c.js → uuid-a8af0c03.js} +1 -1
- package/cjs/{uuid-f23c161c.js.map → uuid-a8af0c03.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-e54d3ed7.js → color-2037c3b8.js} +1 -1
- package/{color-e54d3ed7.js.map → color-2037c3b8.js.map} +1 -1
- package/{compareIds-3e30a438.js → compareIds-b858e41a.js} +1 -1
- package/{compareIds-3e30a438.js.map → compareIds-b858e41a.js.map} +1 -1
- package/{const-71bd6867.js → const-10a01327.js} +1 -1
- package/{const-71bd6867.js.map → const-10a01327.js.map} +1 -1
- package/{const-48a3200e.js → const-85ec8faf.js} +1 -1
- package/{const-48a3200e.js.map → const-85ec8faf.js.map} +1 -1
- package/{consts-e4e1a8fc.js → consts-3fe926ac.js} +1 -1
- package/{consts-e4e1a8fc.js.map → consts-3fe926ac.js.map} +1 -1
- package/{consts-4b1e008b.js → consts-89b1e965.js} +1 -1
- package/{consts-4b1e008b.js.map → consts-89b1e965.js.map} +1 -1
- package/{consts-665331c7.js → consts-ef58410d.js} +1 -1
- package/{consts-665331c7.js.map → consts-ef58410d.js.map} +1 -1
- package/{consts-30f09302.js → consts-f3b2a046.js} +1 -1
- package/{consts-30f09302.js.map → consts-f3b2a046.js.map} +1 -1
- package/{context-993ee0c3.js → context-8436b333.js} +2 -2
- package/{context-993ee0c3.js.map → context-8436b333.js.map} +1 -1
- package/dist/index.css +57 -56
- package/dist/index.css.map +1 -1
- package/handlers/OpenChannelHandler.js.map +1 -1
- package/handlers/SessionHandler.js.map +1 -1
- package/{index-ec8cbdfb.js → index-10da4b99.js} +14 -14
- package/index-10da4b99.js.map +1 -0
- package/index-23251a75.js +39 -0
- package/index-23251a75.js.map +1 -0
- package/{index-95f0372d.js → index-2f83ba2a.js} +2 -2
- package/index-2f83ba2a.js.map +1 -0
- package/index-390c0bba.js +53 -0
- package/index-390c0bba.js.map +1 -0
- package/{index-a90edcd2.js → index-4a1325ab.js} +7 -7
- package/index-4a1325ab.js.map +1 -0
- package/{index-88523047.js → index-5cbdbcf9.js} +7 -7
- package/index-5cbdbcf9.js.map +1 -0
- package/{index-10377bc5.js → index-84b28e71.js} +5 -6
- package/index-84b28e71.js.map +1 -0
- package/{index-0f373e79.js → index-8b3cd0b6.js} +24 -3
- package/index-8b3cd0b6.js.map +1 -0
- package/{index-8a52a6f4.js → index-8d6fa44a.js} +113 -30
- package/index-8d6fa44a.js.map +1 -0
- package/{index-8f0ae983.js → index-8efe881f.js} +2 -2
- package/{index-8f0ae983.js.map → index-8efe881f.js.map} +1 -1
- package/{index-2932882f.js → index-b41d07df.js} +6 -3
- package/index-b41d07df.js.map +1 -0
- package/{index-5c20d787.js → index-d5a761b9.js} +1 -1
- package/{index-5c20d787.js.map → index-d5a761b9.js.map} +1 -1
- package/{index-207577d6.js → index-e01f2743.js} +7 -3
- package/index-e01f2743.js.map +1 -0
- package/{index-c77693d8.js → index-e0325c33.js} +2 -2
- package/index-e0325c33.js.map +1 -0
- package/{index-d75ba9c0.js → index-f0fa0260.js} +4 -4
- package/index-f0fa0260.js.map +1 -0
- package/{index-cd1a9173.js → index-f87c5aab.js} +14 -14
- package/index-f87c5aab.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.js +49 -49
- package/package.json +4 -2
- package/sendbirdSelectors.js +2 -2
- package/sendbirdSelectors.js.map +1 -1
- package/{stringSet-2d42f6ff.js → stringSet-fa7e0d83.js} +1 -1
- package/{stringSet-2d42f6ff.js.map → stringSet-fa7e0d83.js.map} +1 -1
- package/{tokenize-cd9c48bb.js → tokenize-7bcc2072.js} +19 -6
- package/tokenize-7bcc2072.js.map +1 -0
- package/{topics-6d4bf2ed.js → topics-2647294d.js} +1 -1
- package/topics-2647294d.js.map +1 -0
- package/tslib.es6-debac48c.js +92 -0
- package/tslib.es6-debac48c.js.map +1 -0
- package/{types-2fb5793c.js → types-abb04b7a.js} +1 -1
- package/types-abb04b7a.js.map +1 -0
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +2 -2
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +1 -1
- package/ui/BottomSheet.js.map +1 -1
- package/ui/Button.js +3 -3
- package/ui/Button.js.map +1 -1
- package/ui/ChannelAvatar.js +3 -3
- package/ui/ChannelAvatar.js.map +1 -1
- package/ui/Checkbox.js +2 -2
- package/ui/Checkbox.js.map +1 -1
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +6 -6
- package/ui/ContextMenu.js.map +1 -1
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +7 -7
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +8 -8
- package/ui/IconButton.js +1 -1
- package/ui/IconButton.js.map +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/ImageRenderer.js.map +1 -1
- package/ui/Input.js +2 -2
- package/ui/Label.js +2 -2
- package/ui/LinkLabel.js +2 -2
- package/ui/Loader.js +1 -1
- package/ui/MentionLabel.js +10 -10
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +28 -28
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput.js +24 -23
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +8 -8
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +5 -5
- package/ui/MessageItemReactionMenu.js.map +1 -1
- package/ui/MessageSearchFileItem.js +11 -11
- package/ui/MessageSearchFileItem.js.map +1 -1
- package/ui/MessageSearchItem.js +9 -9
- package/ui/MessageSearchItem.js.map +1 -1
- package/ui/MessageStatus.js +10 -10
- package/ui/Modal.js +7 -7
- package/ui/Modal.js.map +1 -1
- package/ui/OGMessageItemBody.js +14 -13
- package/ui/OGMessageItemBody.js.map +1 -1
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +6 -6
- package/ui/OpenChannelAvatar.js.map +1 -1
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelConversationHeader.js.map +1 -1
- package/ui/OpenchannelFileMessage.js +16 -16
- package/ui/OpenchannelFileMessage.js.map +1 -1
- package/ui/OpenchannelOGMessage.js +19 -18
- package/ui/OpenchannelOGMessage.js.map +1 -1
- package/ui/OpenchannelThumbnailMessage.js +15 -15
- package/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/ui/OpenchannelUserMessage.js +16 -16
- package/ui/OpenchannelUserMessage.js.map +1 -1
- package/ui/PlaceHolder.js +6 -6
- package/ui/PlaybackTime.js +2 -2
- package/ui/ProgressBar.js.map +1 -1
- package/ui/QuoteMessage.js +6 -6
- package/ui/QuoteMessage.js.map +1 -1
- package/ui/QuoteMessageInput.js +6 -6
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionBadge.js.map +1 -1
- package/ui/ReactionButton.js +1 -1
- package/ui/SortByRow.js +2 -2
- package/ui/TextButton.js +2 -2
- package/ui/TextButton.js.map +1 -1
- package/ui/TextMessageItemBody.js +14 -13
- package/ui/TextMessageItemBody.js.map +1 -1
- package/ui/ThreadReplies.js +6 -6
- package/ui/ThumbnailMessageItemBody.js +4 -4
- package/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/Tooltip.js.map +1 -1
- package/ui/TooltipWrapper.js +1 -1
- package/ui/UnknownMessageItemBody.js +6 -6
- package/ui/UserListItem.js +11 -11
- package/ui/UserListItem.js.map +1 -1
- package/ui/UserProfile.js +9 -9
- package/ui/VoiceMessageItemBody.js +5 -6
- package/ui/VoiceMessageItemBody.js.map +1 -1
- package/ui/VoiceMessgeInput.js +8 -8
- package/ui/Word.js +11 -11
- package/ui/Word.js.map +1 -1
- package/{useLongPress-c1a00d6e.js → useLongPress-42dc7c5d.js} +3 -3
- package/{useLongPress-c1a00d6e.js.map → useLongPress-42dc7c5d.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/useSendbirdStateContext.js.map +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/utils/message/isVoiceMessage.js.map +1 -1
- package/{utils-3c726d0f.js → utils-1905e84d.js} +2 -2
- package/utils-1905e84d.js.map +1 -0
- package/{utils-4c1f97d4.js → utils-19ce54ee.js} +1 -1
- package/{utils-4c1f97d4.js.map → utils-19ce54ee.js.map} +1 -1
- package/{utils-a7563986.js → utils-87be98af.js} +1 -1
- package/{utils-a7563986.js.map → utils-87be98af.js.map} +1 -1
- package/{utils-760413c9.js → utils-b568cd44.js} +1 -1
- package/utils-b568cd44.js.map +1 -0
- package/{uuid-368c5040.js → uuid-e979d613.js} +1 -1
- package/{uuid-368c5040.js.map → uuid-e979d613.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/.yarn/install-state.gz +0 -0
- package/ChannelListProvider-b7ce527e.js.map +0 -1
- package/ChannelProvider-cd9afff3.js.map +0 -1
- package/MemberList-70806978.js.map +0 -1
- package/OpenChannelListProvider-22244a14.js.map +0 -1
- package/OpenChannelProvider-36270182.js.map +0 -1
- package/ThreadProvider-533e9025.js.map +0 -1
- package/VoiceMessageInputWrapper-c74412de.js.map +0 -1
- package/_rollupPluginBabelHelpers-3756a6a3.js.map +0 -1
- package/actionTypes-f6400d21.js +0 -6
- package/actionTypes-f6400d21.js.map +0 -1
- package/cjs/ChannelListProvider-d8f65b18.js.map +0 -1
- package/cjs/ChannelProvider-473548f7.js.map +0 -1
- package/cjs/MemberList-dbd3a4b4.js.map +0 -1
- package/cjs/OpenChannelListProvider-89659c0b.js.map +0 -1
- package/cjs/OpenChannelProvider-3d3d606e.js.map +0 -1
- package/cjs/ThreadProvider-572d67c0.js.map +0 -1
- package/cjs/VoiceMessageInputWrapper-88ad4670.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-6ab4baac.js.map +0 -1
- package/cjs/actionTypes-1b068888.js +0 -10
- package/cjs/actionTypes-1b068888.js.map +0 -1
- package/cjs/index-3a7584a0.js.map +0 -1
- package/cjs/index-3d08adec.js.map +0 -1
- package/cjs/index-44341b78.js.map +0 -1
- package/cjs/index-47105c4f.js.map +0 -1
- package/cjs/index-4894fc55.js.map +0 -1
- package/cjs/index-5075f3b2.js.map +0 -1
- package/cjs/index-630f7132.js.map +0 -1
- package/cjs/index-903c0f93.js.map +0 -1
- package/cjs/index-9dd8a18a.js.map +0 -1
- package/cjs/index-b2e4a79e.js.map +0 -1
- package/cjs/index-ba9683ca.js.map +0 -1
- package/cjs/index-d3b05e98.js.map +0 -1
- package/cjs/index-f2d71843.js.map +0 -1
- package/cjs/tokenize-5071d1a6.js.map +0 -1
- package/cjs/topics-f70c5e0f.js.map +0 -1
- package/cjs/tslib.es6-67bdb021.js +0 -176
- package/cjs/tslib.es6-67bdb021.js.map +0 -1
- package/cjs/types-43ef9367.js.map +0 -1
- package/cjs/utils-39a3f99e.js.map +0 -1
- package/cjs/utils-39eb2189.js.map +0 -1
- package/index-0f373e79.js.map +0 -1
- package/index-10377bc5.js.map +0 -1
- package/index-207577d6.js.map +0 -1
- package/index-2932882f.js.map +0 -1
- package/index-88523047.js.map +0 -1
- package/index-8a52a6f4.js.map +0 -1
- package/index-95f0372d.js.map +0 -1
- package/index-a90edcd2.js.map +0 -1
- package/index-c77693d8.js.map +0 -1
- package/index-cc626895.js +0 -54
- package/index-cc626895.js.map +0 -1
- package/index-cd1a9173.js.map +0 -1
- package/index-d75ba9c0.js.map +0 -1
- package/index-ec8cbdfb.js.map +0 -1
- package/tokenize-cd9c48bb.js.map +0 -1
- package/topics-6d4bf2ed.js.map +0 -1
- package/tslib.es6-5180f9d1.js +0 -171
- package/tslib.es6-5180f9d1.js.map +0 -1
- package/types-2fb5793c.js.map +0 -1
- package/utils-3c726d0f.js.map +0 -1
- package/utils-760413c9.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defaultLocale } from './index-
|
|
1
|
+
import { d as defaultLocale } from './index-8b3cd0b6.js';
|
|
2
2
|
|
|
3
3
|
function requiredArgs(required, args) {
|
|
4
4
|
if (args.length < required) {
|
|
@@ -6,20 +6,7 @@ function requiredArgs(required, args) {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
function _typeof$1(obj) {
|
|
10
|
-
"@babel/helpers - typeof";
|
|
11
|
-
|
|
12
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
13
|
-
_typeof$1 = function _typeof(obj) {
|
|
14
|
-
return typeof obj;
|
|
15
|
-
};
|
|
16
|
-
} else {
|
|
17
|
-
_typeof$1 = function _typeof(obj) {
|
|
18
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return _typeof$1(obj);
|
|
22
|
-
}
|
|
9
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
|
|
23
10
|
/**
|
|
24
11
|
* @name toDate
|
|
25
12
|
* @category Common Helpers
|
|
@@ -67,24 +54,12 @@ function toDate(argument) {
|
|
|
67
54
|
|
|
68
55
|
console.warn(new Error().stack);
|
|
69
56
|
}
|
|
57
|
+
|
|
70
58
|
return new Date(NaN);
|
|
71
59
|
}
|
|
72
60
|
}
|
|
73
61
|
|
|
74
|
-
function _typeof(obj) {
|
|
75
|
-
"@babel/helpers - typeof";
|
|
76
|
-
|
|
77
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
78
|
-
_typeof = function _typeof(obj) {
|
|
79
|
-
return typeof obj;
|
|
80
|
-
};
|
|
81
|
-
} else {
|
|
82
|
-
_typeof = function _typeof(obj) {
|
|
83
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
return _typeof(obj);
|
|
87
|
-
}
|
|
62
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
88
63
|
/**
|
|
89
64
|
* @name isDate
|
|
90
65
|
* @category Common Helpers
|
|
@@ -157,9 +132,11 @@ function isDate(value) {
|
|
|
157
132
|
|
|
158
133
|
function isValid(dirtyDate) {
|
|
159
134
|
requiredArgs(1, arguments);
|
|
135
|
+
|
|
160
136
|
if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
|
|
161
137
|
return false;
|
|
162
138
|
}
|
|
139
|
+
|
|
163
140
|
var date = toDate(dirtyDate);
|
|
164
141
|
return !isNaN(Number(date));
|
|
165
142
|
}
|
|
@@ -168,10 +145,13 @@ function toInteger(dirtyNumber) {
|
|
|
168
145
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
169
146
|
return NaN;
|
|
170
147
|
}
|
|
148
|
+
|
|
171
149
|
var number = Number(dirtyNumber);
|
|
150
|
+
|
|
172
151
|
if (isNaN(number)) {
|
|
173
152
|
return number;
|
|
174
153
|
}
|
|
154
|
+
|
|
175
155
|
return number < 0 ? Math.ceil(number) : Math.floor(number);
|
|
176
156
|
}
|
|
177
157
|
|
|
@@ -261,6 +241,7 @@ function getUTCISOWeekYear(dirtyDate) {
|
|
|
261
241
|
fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
|
|
262
242
|
fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
|
|
263
243
|
var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
|
|
244
|
+
|
|
264
245
|
if (date.getTime() >= startOfNextYear.getTime()) {
|
|
265
246
|
return year + 1;
|
|
266
247
|
} else if (date.getTime() >= startOfThisYear.getTime()) {
|
|
@@ -298,6 +279,7 @@ function getDefaultOptions() {
|
|
|
298
279
|
|
|
299
280
|
function startOfUTCWeek(dirtyDate, options) {
|
|
300
281
|
var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
282
|
+
|
|
301
283
|
requiredArgs(1, arguments);
|
|
302
284
|
var defaultOptions = getDefaultOptions();
|
|
303
285
|
var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
@@ -305,6 +287,7 @@ function startOfUTCWeek(dirtyDate, options) {
|
|
|
305
287
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
306
288
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
307
289
|
}
|
|
290
|
+
|
|
308
291
|
var date = toDate(dirtyDate);
|
|
309
292
|
var day = date.getUTCDay();
|
|
310
293
|
var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -315,6 +298,7 @@ function startOfUTCWeek(dirtyDate, options) {
|
|
|
315
298
|
|
|
316
299
|
function getUTCWeekYear(dirtyDate, options) {
|
|
317
300
|
var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
301
|
+
|
|
318
302
|
requiredArgs(1, arguments);
|
|
319
303
|
var date = toDate(dirtyDate);
|
|
320
304
|
var year = date.getUTCFullYear();
|
|
@@ -324,6 +308,7 @@ function getUTCWeekYear(dirtyDate, options) {
|
|
|
324
308
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
325
309
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
326
310
|
}
|
|
311
|
+
|
|
327
312
|
var firstWeekOfNextYear = new Date(0);
|
|
328
313
|
firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
|
|
329
314
|
firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
|
|
@@ -332,6 +317,7 @@ function getUTCWeekYear(dirtyDate, options) {
|
|
|
332
317
|
firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
|
|
333
318
|
firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
|
|
334
319
|
var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
|
|
320
|
+
|
|
335
321
|
if (date.getTime() >= startOfNextYear.getTime()) {
|
|
336
322
|
return year + 1;
|
|
337
323
|
} else if (date.getTime() >= startOfThisYear.getTime()) {
|
|
@@ -343,6 +329,7 @@ function getUTCWeekYear(dirtyDate, options) {
|
|
|
343
329
|
|
|
344
330
|
function startOfUTCWeekYear(dirtyDate, options) {
|
|
345
331
|
var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
332
|
+
|
|
346
333
|
requiredArgs(1, arguments);
|
|
347
334
|
var defaultOptions = getDefaultOptions();
|
|
348
335
|
var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
|
|
@@ -368,9 +355,11 @@ function getUTCWeek(dirtyDate, options) {
|
|
|
368
355
|
function addLeadingZeros(number, targetLength) {
|
|
369
356
|
var sign = number < 0 ? '-' : '';
|
|
370
357
|
var output = Math.abs(number).toString();
|
|
358
|
+
|
|
371
359
|
while (output.length < targetLength) {
|
|
372
360
|
output = '0' + output;
|
|
373
361
|
}
|
|
362
|
+
|
|
374
363
|
return sign + output;
|
|
375
364
|
}
|
|
376
365
|
|
|
@@ -415,14 +404,18 @@ var formatters$2 = {
|
|
|
415
404
|
// AM or PM
|
|
416
405
|
a: function a(date, token) {
|
|
417
406
|
var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
|
|
407
|
+
|
|
418
408
|
switch (token) {
|
|
419
409
|
case 'a':
|
|
420
410
|
case 'aa':
|
|
421
411
|
return dayPeriodEnumValue.toUpperCase();
|
|
412
|
+
|
|
422
413
|
case 'aaa':
|
|
423
414
|
return dayPeriodEnumValue;
|
|
415
|
+
|
|
424
416
|
case 'aaaaa':
|
|
425
417
|
return dayPeriodEnumValue[0];
|
|
418
|
+
|
|
426
419
|
case 'aaaa':
|
|
427
420
|
default:
|
|
428
421
|
return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
|
|
@@ -513,6 +506,7 @@ var formatters = {
|
|
|
513
506
|
// Era
|
|
514
507
|
G: function G(date, token, localize) {
|
|
515
508
|
var era = date.getUTCFullYear() > 0 ? 1 : 0;
|
|
509
|
+
|
|
516
510
|
switch (token) {
|
|
517
511
|
// AD, BC
|
|
518
512
|
case 'G':
|
|
@@ -547,6 +541,7 @@ var formatters = {
|
|
|
547
541
|
unit: 'year'
|
|
548
542
|
});
|
|
549
543
|
}
|
|
544
|
+
|
|
550
545
|
return formatters$2.y(date, token);
|
|
551
546
|
},
|
|
552
547
|
// Local week-numbering year
|
|
@@ -560,12 +555,14 @@ var formatters = {
|
|
|
560
555
|
return addLeadingZeros(twoDigitYear, 2);
|
|
561
556
|
} // Ordinal number
|
|
562
557
|
|
|
558
|
+
|
|
563
559
|
if (token === 'Yo') {
|
|
564
560
|
return localize.ordinalNumber(weekYear, {
|
|
565
561
|
unit: 'year'
|
|
566
562
|
});
|
|
567
563
|
} // Padding
|
|
568
564
|
|
|
565
|
+
|
|
569
566
|
return addLeadingZeros(weekYear, token.length);
|
|
570
567
|
},
|
|
571
568
|
// ISO week-numbering year
|
|
@@ -590,6 +587,7 @@ var formatters = {
|
|
|
590
587
|
// Quarter
|
|
591
588
|
Q: function Q(date, token, localize) {
|
|
592
589
|
var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
|
|
590
|
+
|
|
593
591
|
switch (token) {
|
|
594
592
|
// 1, 2, 3, 4
|
|
595
593
|
case 'Q':
|
|
@@ -631,6 +629,7 @@ var formatters = {
|
|
|
631
629
|
// Stand-alone quarter
|
|
632
630
|
q: function q(date, token, localize) {
|
|
633
631
|
var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
|
|
632
|
+
|
|
634
633
|
switch (token) {
|
|
635
634
|
// 1, 2, 3, 4
|
|
636
635
|
case 'q':
|
|
@@ -672,6 +671,7 @@ var formatters = {
|
|
|
672
671
|
// Month
|
|
673
672
|
M: function M(date, token, localize) {
|
|
674
673
|
var month = date.getUTCMonth();
|
|
674
|
+
|
|
675
675
|
switch (token) {
|
|
676
676
|
case 'M':
|
|
677
677
|
case 'MM':
|
|
@@ -709,6 +709,7 @@ var formatters = {
|
|
|
709
709
|
// Stand-alone month
|
|
710
710
|
L: function L(date, token, localize) {
|
|
711
711
|
var month = date.getUTCMonth();
|
|
712
|
+
|
|
712
713
|
switch (token) {
|
|
713
714
|
// 1, 2, ..., 12
|
|
714
715
|
case 'L':
|
|
@@ -750,21 +751,25 @@ var formatters = {
|
|
|
750
751
|
// Local week of year
|
|
751
752
|
w: function w(date, token, localize, options) {
|
|
752
753
|
var week = getUTCWeek(date, options);
|
|
754
|
+
|
|
753
755
|
if (token === 'wo') {
|
|
754
756
|
return localize.ordinalNumber(week, {
|
|
755
757
|
unit: 'week'
|
|
756
758
|
});
|
|
757
759
|
}
|
|
760
|
+
|
|
758
761
|
return addLeadingZeros(week, token.length);
|
|
759
762
|
},
|
|
760
763
|
// ISO week of year
|
|
761
764
|
I: function I(date, token, localize) {
|
|
762
765
|
var isoWeek = getUTCISOWeek(date);
|
|
766
|
+
|
|
763
767
|
if (token === 'Io') {
|
|
764
768
|
return localize.ordinalNumber(isoWeek, {
|
|
765
769
|
unit: 'week'
|
|
766
770
|
});
|
|
767
771
|
}
|
|
772
|
+
|
|
768
773
|
return addLeadingZeros(isoWeek, token.length);
|
|
769
774
|
},
|
|
770
775
|
// Day of the month
|
|
@@ -774,21 +779,25 @@ var formatters = {
|
|
|
774
779
|
unit: 'date'
|
|
775
780
|
});
|
|
776
781
|
}
|
|
782
|
+
|
|
777
783
|
return formatters$2.d(date, token);
|
|
778
784
|
},
|
|
779
785
|
// Day of year
|
|
780
786
|
D: function D(date, token, localize) {
|
|
781
787
|
var dayOfYear = getUTCDayOfYear(date);
|
|
788
|
+
|
|
782
789
|
if (token === 'Do') {
|
|
783
790
|
return localize.ordinalNumber(dayOfYear, {
|
|
784
791
|
unit: 'dayOfYear'
|
|
785
792
|
});
|
|
786
793
|
}
|
|
794
|
+
|
|
787
795
|
return addLeadingZeros(dayOfYear, token.length);
|
|
788
796
|
},
|
|
789
797
|
// Day of week
|
|
790
798
|
E: function E(date, token, localize) {
|
|
791
799
|
var dayOfWeek = date.getUTCDay();
|
|
800
|
+
|
|
792
801
|
switch (token) {
|
|
793
802
|
// Tue
|
|
794
803
|
case 'E':
|
|
@@ -826,6 +835,7 @@ var formatters = {
|
|
|
826
835
|
e: function e(date, token, localize, options) {
|
|
827
836
|
var dayOfWeek = date.getUTCDay();
|
|
828
837
|
var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
838
|
+
|
|
829
839
|
switch (token) {
|
|
830
840
|
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
831
841
|
case 'e':
|
|
@@ -840,6 +850,7 @@ var formatters = {
|
|
|
840
850
|
return localize.ordinalNumber(localDayOfWeek, {
|
|
841
851
|
unit: 'day'
|
|
842
852
|
});
|
|
853
|
+
|
|
843
854
|
case 'eee':
|
|
844
855
|
return localize.day(dayOfWeek, {
|
|
845
856
|
width: 'abbreviated',
|
|
@@ -873,6 +884,7 @@ var formatters = {
|
|
|
873
884
|
c: function c(date, token, localize, options) {
|
|
874
885
|
var dayOfWeek = date.getUTCDay();
|
|
875
886
|
var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
887
|
+
|
|
876
888
|
switch (token) {
|
|
877
889
|
// Numerical value (same as in `e`)
|
|
878
890
|
case 'c':
|
|
@@ -887,6 +899,7 @@ var formatters = {
|
|
|
887
899
|
return localize.ordinalNumber(localDayOfWeek, {
|
|
888
900
|
unit: 'day'
|
|
889
901
|
});
|
|
902
|
+
|
|
890
903
|
case 'ccc':
|
|
891
904
|
return localize.day(dayOfWeek, {
|
|
892
905
|
width: 'abbreviated',
|
|
@@ -920,6 +933,7 @@ var formatters = {
|
|
|
920
933
|
i: function i(date, token, localize) {
|
|
921
934
|
var dayOfWeek = date.getUTCDay();
|
|
922
935
|
var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
|
|
936
|
+
|
|
923
937
|
switch (token) {
|
|
924
938
|
// 2
|
|
925
939
|
case 'i':
|
|
@@ -969,6 +983,7 @@ var formatters = {
|
|
|
969
983
|
a: function a(date, token, localize) {
|
|
970
984
|
var hours = date.getUTCHours();
|
|
971
985
|
var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
|
|
986
|
+
|
|
972
987
|
switch (token) {
|
|
973
988
|
case 'a':
|
|
974
989
|
case 'aa':
|
|
@@ -976,16 +991,19 @@ var formatters = {
|
|
|
976
991
|
width: 'abbreviated',
|
|
977
992
|
context: 'formatting'
|
|
978
993
|
});
|
|
994
|
+
|
|
979
995
|
case 'aaa':
|
|
980
996
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
981
997
|
width: 'abbreviated',
|
|
982
998
|
context: 'formatting'
|
|
983
999
|
}).toLowerCase();
|
|
1000
|
+
|
|
984
1001
|
case 'aaaaa':
|
|
985
1002
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
986
1003
|
width: 'narrow',
|
|
987
1004
|
context: 'formatting'
|
|
988
1005
|
});
|
|
1006
|
+
|
|
989
1007
|
case 'aaaa':
|
|
990
1008
|
default:
|
|
991
1009
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
@@ -998,6 +1016,7 @@ var formatters = {
|
|
|
998
1016
|
b: function b(date, token, localize) {
|
|
999
1017
|
var hours = date.getUTCHours();
|
|
1000
1018
|
var dayPeriodEnumValue;
|
|
1019
|
+
|
|
1001
1020
|
if (hours === 12) {
|
|
1002
1021
|
dayPeriodEnumValue = dayPeriodEnum.noon;
|
|
1003
1022
|
} else if (hours === 0) {
|
|
@@ -1005,6 +1024,7 @@ var formatters = {
|
|
|
1005
1024
|
} else {
|
|
1006
1025
|
dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
|
|
1007
1026
|
}
|
|
1027
|
+
|
|
1008
1028
|
switch (token) {
|
|
1009
1029
|
case 'b':
|
|
1010
1030
|
case 'bb':
|
|
@@ -1012,16 +1032,19 @@ var formatters = {
|
|
|
1012
1032
|
width: 'abbreviated',
|
|
1013
1033
|
context: 'formatting'
|
|
1014
1034
|
});
|
|
1035
|
+
|
|
1015
1036
|
case 'bbb':
|
|
1016
1037
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
1017
1038
|
width: 'abbreviated',
|
|
1018
1039
|
context: 'formatting'
|
|
1019
1040
|
}).toLowerCase();
|
|
1041
|
+
|
|
1020
1042
|
case 'bbbbb':
|
|
1021
1043
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
1022
1044
|
width: 'narrow',
|
|
1023
1045
|
context: 'formatting'
|
|
1024
1046
|
});
|
|
1047
|
+
|
|
1025
1048
|
case 'bbbb':
|
|
1026
1049
|
default:
|
|
1027
1050
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
@@ -1034,6 +1057,7 @@ var formatters = {
|
|
|
1034
1057
|
B: function B(date, token, localize) {
|
|
1035
1058
|
var hours = date.getUTCHours();
|
|
1036
1059
|
var dayPeriodEnumValue;
|
|
1060
|
+
|
|
1037
1061
|
if (hours >= 17) {
|
|
1038
1062
|
dayPeriodEnumValue = dayPeriodEnum.evening;
|
|
1039
1063
|
} else if (hours >= 12) {
|
|
@@ -1043,6 +1067,7 @@ var formatters = {
|
|
|
1043
1067
|
} else {
|
|
1044
1068
|
dayPeriodEnumValue = dayPeriodEnum.night;
|
|
1045
1069
|
}
|
|
1070
|
+
|
|
1046
1071
|
switch (token) {
|
|
1047
1072
|
case 'B':
|
|
1048
1073
|
case 'BB':
|
|
@@ -1051,11 +1076,13 @@ var formatters = {
|
|
|
1051
1076
|
width: 'abbreviated',
|
|
1052
1077
|
context: 'formatting'
|
|
1053
1078
|
});
|
|
1079
|
+
|
|
1054
1080
|
case 'BBBBB':
|
|
1055
1081
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
1056
1082
|
width: 'narrow',
|
|
1057
1083
|
context: 'formatting'
|
|
1058
1084
|
});
|
|
1085
|
+
|
|
1059
1086
|
case 'BBBB':
|
|
1060
1087
|
default:
|
|
1061
1088
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
@@ -1073,6 +1100,7 @@ var formatters = {
|
|
|
1073
1100
|
unit: 'hour'
|
|
1074
1101
|
});
|
|
1075
1102
|
}
|
|
1103
|
+
|
|
1076
1104
|
return formatters$2.h(date, token);
|
|
1077
1105
|
},
|
|
1078
1106
|
// Hour [0-23]
|
|
@@ -1082,27 +1110,32 @@ var formatters = {
|
|
|
1082
1110
|
unit: 'hour'
|
|
1083
1111
|
});
|
|
1084
1112
|
}
|
|
1113
|
+
|
|
1085
1114
|
return formatters$2.H(date, token);
|
|
1086
1115
|
},
|
|
1087
1116
|
// Hour [0-11]
|
|
1088
1117
|
K: function K(date, token, localize) {
|
|
1089
1118
|
var hours = date.getUTCHours() % 12;
|
|
1119
|
+
|
|
1090
1120
|
if (token === 'Ko') {
|
|
1091
1121
|
return localize.ordinalNumber(hours, {
|
|
1092
1122
|
unit: 'hour'
|
|
1093
1123
|
});
|
|
1094
1124
|
}
|
|
1125
|
+
|
|
1095
1126
|
return addLeadingZeros(hours, token.length);
|
|
1096
1127
|
},
|
|
1097
1128
|
// Hour [1-24]
|
|
1098
1129
|
k: function k(date, token, localize) {
|
|
1099
1130
|
var hours = date.getUTCHours();
|
|
1100
1131
|
if (hours === 0) hours = 24;
|
|
1132
|
+
|
|
1101
1133
|
if (token === 'ko') {
|
|
1102
1134
|
return localize.ordinalNumber(hours, {
|
|
1103
1135
|
unit: 'hour'
|
|
1104
1136
|
});
|
|
1105
1137
|
}
|
|
1138
|
+
|
|
1106
1139
|
return addLeadingZeros(hours, token.length);
|
|
1107
1140
|
},
|
|
1108
1141
|
// Minute
|
|
@@ -1112,6 +1145,7 @@ var formatters = {
|
|
|
1112
1145
|
unit: 'minute'
|
|
1113
1146
|
});
|
|
1114
1147
|
}
|
|
1148
|
+
|
|
1115
1149
|
return formatters$2.m(date, token);
|
|
1116
1150
|
},
|
|
1117
1151
|
// Second
|
|
@@ -1121,6 +1155,7 @@ var formatters = {
|
|
|
1121
1155
|
unit: 'second'
|
|
1122
1156
|
});
|
|
1123
1157
|
}
|
|
1158
|
+
|
|
1124
1159
|
return formatters$2.s(date, token);
|
|
1125
1160
|
},
|
|
1126
1161
|
// Fraction of second
|
|
@@ -1131,9 +1166,11 @@ var formatters = {
|
|
|
1131
1166
|
X: function X(date, token, _localize, options) {
|
|
1132
1167
|
var originalDate = options._originalDate || date;
|
|
1133
1168
|
var timezoneOffset = originalDate.getTimezoneOffset();
|
|
1169
|
+
|
|
1134
1170
|
if (timezoneOffset === 0) {
|
|
1135
1171
|
return 'Z';
|
|
1136
1172
|
}
|
|
1173
|
+
|
|
1137
1174
|
switch (token) {
|
|
1138
1175
|
// Hours and optional minutes
|
|
1139
1176
|
case 'X':
|
|
@@ -1161,6 +1198,7 @@ var formatters = {
|
|
|
1161
1198
|
x: function x(date, token, _localize, options) {
|
|
1162
1199
|
var originalDate = options._originalDate || date;
|
|
1163
1200
|
var timezoneOffset = originalDate.getTimezoneOffset();
|
|
1201
|
+
|
|
1164
1202
|
switch (token) {
|
|
1165
1203
|
// Hours and optional minutes
|
|
1166
1204
|
case 'x':
|
|
@@ -1188,6 +1226,7 @@ var formatters = {
|
|
|
1188
1226
|
O: function O(date, token, _localize, options) {
|
|
1189
1227
|
var originalDate = options._originalDate || date;
|
|
1190
1228
|
var timezoneOffset = originalDate.getTimezoneOffset();
|
|
1229
|
+
|
|
1191
1230
|
switch (token) {
|
|
1192
1231
|
// Short
|
|
1193
1232
|
case 'O':
|
|
@@ -1205,6 +1244,7 @@ var formatters = {
|
|
|
1205
1244
|
z: function z(date, token, _localize, options) {
|
|
1206
1245
|
var originalDate = options._originalDate || date;
|
|
1207
1246
|
var timezoneOffset = originalDate.getTimezoneOffset();
|
|
1247
|
+
|
|
1208
1248
|
switch (token) {
|
|
1209
1249
|
// Short
|
|
1210
1250
|
case 'z':
|
|
@@ -1231,24 +1271,30 @@ var formatters = {
|
|
|
1231
1271
|
return addLeadingZeros(timestamp, token.length);
|
|
1232
1272
|
}
|
|
1233
1273
|
};
|
|
1274
|
+
|
|
1234
1275
|
function formatTimezoneShort(offset, dirtyDelimiter) {
|
|
1235
1276
|
var sign = offset > 0 ? '-' : '+';
|
|
1236
1277
|
var absOffset = Math.abs(offset);
|
|
1237
1278
|
var hours = Math.floor(absOffset / 60);
|
|
1238
1279
|
var minutes = absOffset % 60;
|
|
1280
|
+
|
|
1239
1281
|
if (minutes === 0) {
|
|
1240
1282
|
return sign + String(hours);
|
|
1241
1283
|
}
|
|
1284
|
+
|
|
1242
1285
|
var delimiter = dirtyDelimiter || '';
|
|
1243
1286
|
return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
|
|
1244
1287
|
}
|
|
1288
|
+
|
|
1245
1289
|
function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
|
|
1246
1290
|
if (offset % 60 === 0) {
|
|
1247
1291
|
var sign = offset > 0 ? '-' : '+';
|
|
1248
1292
|
return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
|
|
1249
1293
|
}
|
|
1294
|
+
|
|
1250
1295
|
return formatTimezone(offset, dirtyDelimiter);
|
|
1251
1296
|
}
|
|
1297
|
+
|
|
1252
1298
|
function formatTimezone(offset, dirtyDelimiter) {
|
|
1253
1299
|
var delimiter = dirtyDelimiter || '';
|
|
1254
1300
|
var sign = offset > 0 ? '-' : '+';
|
|
@@ -1257,6 +1303,7 @@ function formatTimezone(offset, dirtyDelimiter) {
|
|
|
1257
1303
|
var minutes = addLeadingZeros(absOffset % 60, 2);
|
|
1258
1304
|
return sign + hours + delimiter + minutes;
|
|
1259
1305
|
}
|
|
1306
|
+
|
|
1260
1307
|
var formatters$1 = formatters;
|
|
1261
1308
|
|
|
1262
1309
|
var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
@@ -1265,14 +1312,17 @@ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
|
1265
1312
|
return formatLong.date({
|
|
1266
1313
|
width: 'short'
|
|
1267
1314
|
});
|
|
1315
|
+
|
|
1268
1316
|
case 'PP':
|
|
1269
1317
|
return formatLong.date({
|
|
1270
1318
|
width: 'medium'
|
|
1271
1319
|
});
|
|
1320
|
+
|
|
1272
1321
|
case 'PPP':
|
|
1273
1322
|
return formatLong.date({
|
|
1274
1323
|
width: 'long'
|
|
1275
1324
|
});
|
|
1325
|
+
|
|
1276
1326
|
case 'PPPP':
|
|
1277
1327
|
default:
|
|
1278
1328
|
return formatLong.date({
|
|
@@ -1280,20 +1330,24 @@ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
|
1280
1330
|
});
|
|
1281
1331
|
}
|
|
1282
1332
|
};
|
|
1333
|
+
|
|
1283
1334
|
var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
|
|
1284
1335
|
switch (pattern) {
|
|
1285
1336
|
case 'p':
|
|
1286
1337
|
return formatLong.time({
|
|
1287
1338
|
width: 'short'
|
|
1288
1339
|
});
|
|
1340
|
+
|
|
1289
1341
|
case 'pp':
|
|
1290
1342
|
return formatLong.time({
|
|
1291
1343
|
width: 'medium'
|
|
1292
1344
|
});
|
|
1345
|
+
|
|
1293
1346
|
case 'ppp':
|
|
1294
1347
|
return formatLong.time({
|
|
1295
1348
|
width: 'long'
|
|
1296
1349
|
});
|
|
1350
|
+
|
|
1297
1351
|
case 'pppp':
|
|
1298
1352
|
default:
|
|
1299
1353
|
return formatLong.time({
|
|
@@ -1301,30 +1355,37 @@ var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
|
|
|
1301
1355
|
});
|
|
1302
1356
|
}
|
|
1303
1357
|
};
|
|
1358
|
+
|
|
1304
1359
|
var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
|
|
1305
1360
|
var matchResult = pattern.match(/(P+)(p+)?/) || [];
|
|
1306
1361
|
var datePattern = matchResult[1];
|
|
1307
1362
|
var timePattern = matchResult[2];
|
|
1363
|
+
|
|
1308
1364
|
if (!timePattern) {
|
|
1309
1365
|
return dateLongFormatter(pattern, formatLong);
|
|
1310
1366
|
}
|
|
1367
|
+
|
|
1311
1368
|
var dateTimeFormat;
|
|
1369
|
+
|
|
1312
1370
|
switch (datePattern) {
|
|
1313
1371
|
case 'P':
|
|
1314
1372
|
dateTimeFormat = formatLong.dateTime({
|
|
1315
1373
|
width: 'short'
|
|
1316
1374
|
});
|
|
1317
1375
|
break;
|
|
1376
|
+
|
|
1318
1377
|
case 'PP':
|
|
1319
1378
|
dateTimeFormat = formatLong.dateTime({
|
|
1320
1379
|
width: 'medium'
|
|
1321
1380
|
});
|
|
1322
1381
|
break;
|
|
1382
|
+
|
|
1323
1383
|
case 'PPP':
|
|
1324
1384
|
dateTimeFormat = formatLong.dateTime({
|
|
1325
1385
|
width: 'long'
|
|
1326
1386
|
});
|
|
1327
1387
|
break;
|
|
1388
|
+
|
|
1328
1389
|
case 'PPPP':
|
|
1329
1390
|
default:
|
|
1330
1391
|
dateTimeFormat = formatLong.dateTime({
|
|
@@ -1332,8 +1393,10 @@ var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong)
|
|
|
1332
1393
|
});
|
|
1333
1394
|
break;
|
|
1334
1395
|
}
|
|
1396
|
+
|
|
1335
1397
|
return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
|
|
1336
1398
|
};
|
|
1399
|
+
|
|
1337
1400
|
var longFormatters = {
|
|
1338
1401
|
p: timeLongFormatter,
|
|
1339
1402
|
P: dateTimeLongFormatter
|
|
@@ -1689,6 +1752,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
1689
1752
|
|
|
1690
1753
|
function format(dirtyDate, dirtyFormatStr, options) {
|
|
1691
1754
|
var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
|
|
1755
|
+
|
|
1692
1756
|
requiredArgs(2, arguments);
|
|
1693
1757
|
var formatStr = String(dirtyFormatStr);
|
|
1694
1758
|
var defaultOptions = getDefaultOptions();
|
|
@@ -1698,24 +1762,30 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
1698
1762
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
1699
1763
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
1700
1764
|
}
|
|
1765
|
+
|
|
1701
1766
|
var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
1702
1767
|
|
|
1703
1768
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
1704
1769
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
1705
1770
|
}
|
|
1771
|
+
|
|
1706
1772
|
if (!locale.localize) {
|
|
1707
1773
|
throw new RangeError('locale must contain localize property');
|
|
1708
1774
|
}
|
|
1775
|
+
|
|
1709
1776
|
if (!locale.formatLong) {
|
|
1710
1777
|
throw new RangeError('locale must contain formatLong property');
|
|
1711
1778
|
}
|
|
1779
|
+
|
|
1712
1780
|
var originalDate = toDate(dirtyDate);
|
|
1781
|
+
|
|
1713
1782
|
if (!isValid(originalDate)) {
|
|
1714
1783
|
throw new RangeError('Invalid time value');
|
|
1715
1784
|
} // Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
1716
1785
|
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
1717
1786
|
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
1718
1787
|
|
|
1788
|
+
|
|
1719
1789
|
var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
|
|
1720
1790
|
var utcDate = subMilliseconds(originalDate, timezoneOffset);
|
|
1721
1791
|
var formatterOptions = {
|
|
@@ -1726,44 +1796,57 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
1726
1796
|
};
|
|
1727
1797
|
var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
|
|
1728
1798
|
var firstCharacter = substring[0];
|
|
1799
|
+
|
|
1729
1800
|
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
1730
1801
|
var longFormatter = longFormatters$1[firstCharacter];
|
|
1731
1802
|
return longFormatter(substring, locale.formatLong);
|
|
1732
1803
|
}
|
|
1804
|
+
|
|
1733
1805
|
return substring;
|
|
1734
1806
|
}).join('').match(formattingTokensRegExp).map(function (substring) {
|
|
1735
1807
|
// Replace two single quote characters with one single quote character
|
|
1736
1808
|
if (substring === "''") {
|
|
1737
1809
|
return "'";
|
|
1738
1810
|
}
|
|
1811
|
+
|
|
1739
1812
|
var firstCharacter = substring[0];
|
|
1813
|
+
|
|
1740
1814
|
if (firstCharacter === "'") {
|
|
1741
1815
|
return cleanEscapedString(substring);
|
|
1742
1816
|
}
|
|
1817
|
+
|
|
1743
1818
|
var formatter = formatters$1[firstCharacter];
|
|
1819
|
+
|
|
1744
1820
|
if (formatter) {
|
|
1745
1821
|
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
1746
1822
|
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
1747
1823
|
}
|
|
1824
|
+
|
|
1748
1825
|
if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
|
|
1749
1826
|
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
1750
1827
|
}
|
|
1828
|
+
|
|
1751
1829
|
return formatter(utcDate, substring, locale.localize, formatterOptions);
|
|
1752
1830
|
}
|
|
1831
|
+
|
|
1753
1832
|
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
1754
1833
|
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
1755
1834
|
}
|
|
1835
|
+
|
|
1756
1836
|
return substring;
|
|
1757
1837
|
}).join('');
|
|
1758
1838
|
return result;
|
|
1759
1839
|
}
|
|
1840
|
+
|
|
1760
1841
|
function cleanEscapedString(input) {
|
|
1761
1842
|
var matched = input.match(escapedStringRegExp);
|
|
1843
|
+
|
|
1762
1844
|
if (!matched) {
|
|
1763
1845
|
return input;
|
|
1764
1846
|
}
|
|
1847
|
+
|
|
1765
1848
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
1766
1849
|
}
|
|
1767
1850
|
|
|
1768
1851
|
export { toInteger as a, format as f, requiredArgs as r, toDate as t };
|
|
1769
|
-
//# sourceMappingURL=index-
|
|
1852
|
+
//# sourceMappingURL=index-8d6fa44a.js.map
|