@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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-02729806.js');
|
|
4
4
|
|
|
5
5
|
function requiredArgs(required, args) {
|
|
6
6
|
if (args.length < required) {
|
|
@@ -8,20 +8,7 @@ function requiredArgs(required, args) {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
function _typeof$1(obj) {
|
|
12
|
-
"@babel/helpers - typeof";
|
|
13
|
-
|
|
14
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
15
|
-
_typeof$1 = function _typeof(obj) {
|
|
16
|
-
return typeof obj;
|
|
17
|
-
};
|
|
18
|
-
} else {
|
|
19
|
-
_typeof$1 = function _typeof(obj) {
|
|
20
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return _typeof$1(obj);
|
|
24
|
-
}
|
|
11
|
+
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); }
|
|
25
12
|
/**
|
|
26
13
|
* @name toDate
|
|
27
14
|
* @category Common Helpers
|
|
@@ -69,24 +56,12 @@ function toDate(argument) {
|
|
|
69
56
|
|
|
70
57
|
console.warn(new Error().stack);
|
|
71
58
|
}
|
|
59
|
+
|
|
72
60
|
return new Date(NaN);
|
|
73
61
|
}
|
|
74
62
|
}
|
|
75
63
|
|
|
76
|
-
function _typeof(obj) {
|
|
77
|
-
"@babel/helpers - typeof";
|
|
78
|
-
|
|
79
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
80
|
-
_typeof = function _typeof(obj) {
|
|
81
|
-
return typeof obj;
|
|
82
|
-
};
|
|
83
|
-
} else {
|
|
84
|
-
_typeof = function _typeof(obj) {
|
|
85
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
return _typeof(obj);
|
|
89
|
-
}
|
|
64
|
+
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); }
|
|
90
65
|
/**
|
|
91
66
|
* @name isDate
|
|
92
67
|
* @category Common Helpers
|
|
@@ -159,9 +134,11 @@ function isDate(value) {
|
|
|
159
134
|
|
|
160
135
|
function isValid(dirtyDate) {
|
|
161
136
|
requiredArgs(1, arguments);
|
|
137
|
+
|
|
162
138
|
if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
|
|
163
139
|
return false;
|
|
164
140
|
}
|
|
141
|
+
|
|
165
142
|
var date = toDate(dirtyDate);
|
|
166
143
|
return !isNaN(Number(date));
|
|
167
144
|
}
|
|
@@ -170,10 +147,13 @@ function toInteger(dirtyNumber) {
|
|
|
170
147
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
171
148
|
return NaN;
|
|
172
149
|
}
|
|
150
|
+
|
|
173
151
|
var number = Number(dirtyNumber);
|
|
152
|
+
|
|
174
153
|
if (isNaN(number)) {
|
|
175
154
|
return number;
|
|
176
155
|
}
|
|
156
|
+
|
|
177
157
|
return number < 0 ? Math.ceil(number) : Math.floor(number);
|
|
178
158
|
}
|
|
179
159
|
|
|
@@ -263,6 +243,7 @@ function getUTCISOWeekYear(dirtyDate) {
|
|
|
263
243
|
fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
|
|
264
244
|
fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
|
|
265
245
|
var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
|
|
246
|
+
|
|
266
247
|
if (date.getTime() >= startOfNextYear.getTime()) {
|
|
267
248
|
return year + 1;
|
|
268
249
|
} else if (date.getTime() >= startOfThisYear.getTime()) {
|
|
@@ -300,6 +281,7 @@ function getDefaultOptions() {
|
|
|
300
281
|
|
|
301
282
|
function startOfUTCWeek(dirtyDate, options) {
|
|
302
283
|
var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
284
|
+
|
|
303
285
|
requiredArgs(1, arguments);
|
|
304
286
|
var defaultOptions = getDefaultOptions();
|
|
305
287
|
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
|
|
@@ -307,6 +289,7 @@ function startOfUTCWeek(dirtyDate, options) {
|
|
|
307
289
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
308
290
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
309
291
|
}
|
|
292
|
+
|
|
310
293
|
var date = toDate(dirtyDate);
|
|
311
294
|
var day = date.getUTCDay();
|
|
312
295
|
var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -317,6 +300,7 @@ function startOfUTCWeek(dirtyDate, options) {
|
|
|
317
300
|
|
|
318
301
|
function getUTCWeekYear(dirtyDate, options) {
|
|
319
302
|
var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
303
|
+
|
|
320
304
|
requiredArgs(1, arguments);
|
|
321
305
|
var date = toDate(dirtyDate);
|
|
322
306
|
var year = date.getUTCFullYear();
|
|
@@ -326,6 +310,7 @@ function getUTCWeekYear(dirtyDate, options) {
|
|
|
326
310
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
327
311
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
328
312
|
}
|
|
313
|
+
|
|
329
314
|
var firstWeekOfNextYear = new Date(0);
|
|
330
315
|
firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
|
|
331
316
|
firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
|
|
@@ -334,6 +319,7 @@ function getUTCWeekYear(dirtyDate, options) {
|
|
|
334
319
|
firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
|
|
335
320
|
firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
|
|
336
321
|
var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
|
|
322
|
+
|
|
337
323
|
if (date.getTime() >= startOfNextYear.getTime()) {
|
|
338
324
|
return year + 1;
|
|
339
325
|
} else if (date.getTime() >= startOfThisYear.getTime()) {
|
|
@@ -345,6 +331,7 @@ function getUTCWeekYear(dirtyDate, options) {
|
|
|
345
331
|
|
|
346
332
|
function startOfUTCWeekYear(dirtyDate, options) {
|
|
347
333
|
var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
334
|
+
|
|
348
335
|
requiredArgs(1, arguments);
|
|
349
336
|
var defaultOptions = getDefaultOptions();
|
|
350
337
|
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);
|
|
@@ -370,9 +357,11 @@ function getUTCWeek(dirtyDate, options) {
|
|
|
370
357
|
function addLeadingZeros(number, targetLength) {
|
|
371
358
|
var sign = number < 0 ? '-' : '';
|
|
372
359
|
var output = Math.abs(number).toString();
|
|
360
|
+
|
|
373
361
|
while (output.length < targetLength) {
|
|
374
362
|
output = '0' + output;
|
|
375
363
|
}
|
|
364
|
+
|
|
376
365
|
return sign + output;
|
|
377
366
|
}
|
|
378
367
|
|
|
@@ -417,14 +406,18 @@ var formatters$2 = {
|
|
|
417
406
|
// AM or PM
|
|
418
407
|
a: function a(date, token) {
|
|
419
408
|
var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
|
|
409
|
+
|
|
420
410
|
switch (token) {
|
|
421
411
|
case 'a':
|
|
422
412
|
case 'aa':
|
|
423
413
|
return dayPeriodEnumValue.toUpperCase();
|
|
414
|
+
|
|
424
415
|
case 'aaa':
|
|
425
416
|
return dayPeriodEnumValue;
|
|
417
|
+
|
|
426
418
|
case 'aaaaa':
|
|
427
419
|
return dayPeriodEnumValue[0];
|
|
420
|
+
|
|
428
421
|
case 'aaaa':
|
|
429
422
|
default:
|
|
430
423
|
return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
|
|
@@ -515,6 +508,7 @@ var formatters = {
|
|
|
515
508
|
// Era
|
|
516
509
|
G: function G(date, token, localize) {
|
|
517
510
|
var era = date.getUTCFullYear() > 0 ? 1 : 0;
|
|
511
|
+
|
|
518
512
|
switch (token) {
|
|
519
513
|
// AD, BC
|
|
520
514
|
case 'G':
|
|
@@ -549,6 +543,7 @@ var formatters = {
|
|
|
549
543
|
unit: 'year'
|
|
550
544
|
});
|
|
551
545
|
}
|
|
546
|
+
|
|
552
547
|
return formatters$2.y(date, token);
|
|
553
548
|
},
|
|
554
549
|
// Local week-numbering year
|
|
@@ -562,12 +557,14 @@ var formatters = {
|
|
|
562
557
|
return addLeadingZeros(twoDigitYear, 2);
|
|
563
558
|
} // Ordinal number
|
|
564
559
|
|
|
560
|
+
|
|
565
561
|
if (token === 'Yo') {
|
|
566
562
|
return localize.ordinalNumber(weekYear, {
|
|
567
563
|
unit: 'year'
|
|
568
564
|
});
|
|
569
565
|
} // Padding
|
|
570
566
|
|
|
567
|
+
|
|
571
568
|
return addLeadingZeros(weekYear, token.length);
|
|
572
569
|
},
|
|
573
570
|
// ISO week-numbering year
|
|
@@ -592,6 +589,7 @@ var formatters = {
|
|
|
592
589
|
// Quarter
|
|
593
590
|
Q: function Q(date, token, localize) {
|
|
594
591
|
var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
|
|
592
|
+
|
|
595
593
|
switch (token) {
|
|
596
594
|
// 1, 2, 3, 4
|
|
597
595
|
case 'Q':
|
|
@@ -633,6 +631,7 @@ var formatters = {
|
|
|
633
631
|
// Stand-alone quarter
|
|
634
632
|
q: function q(date, token, localize) {
|
|
635
633
|
var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
|
|
634
|
+
|
|
636
635
|
switch (token) {
|
|
637
636
|
// 1, 2, 3, 4
|
|
638
637
|
case 'q':
|
|
@@ -674,6 +673,7 @@ var formatters = {
|
|
|
674
673
|
// Month
|
|
675
674
|
M: function M(date, token, localize) {
|
|
676
675
|
var month = date.getUTCMonth();
|
|
676
|
+
|
|
677
677
|
switch (token) {
|
|
678
678
|
case 'M':
|
|
679
679
|
case 'MM':
|
|
@@ -711,6 +711,7 @@ var formatters = {
|
|
|
711
711
|
// Stand-alone month
|
|
712
712
|
L: function L(date, token, localize) {
|
|
713
713
|
var month = date.getUTCMonth();
|
|
714
|
+
|
|
714
715
|
switch (token) {
|
|
715
716
|
// 1, 2, ..., 12
|
|
716
717
|
case 'L':
|
|
@@ -752,21 +753,25 @@ var formatters = {
|
|
|
752
753
|
// Local week of year
|
|
753
754
|
w: function w(date, token, localize, options) {
|
|
754
755
|
var week = getUTCWeek(date, options);
|
|
756
|
+
|
|
755
757
|
if (token === 'wo') {
|
|
756
758
|
return localize.ordinalNumber(week, {
|
|
757
759
|
unit: 'week'
|
|
758
760
|
});
|
|
759
761
|
}
|
|
762
|
+
|
|
760
763
|
return addLeadingZeros(week, token.length);
|
|
761
764
|
},
|
|
762
765
|
// ISO week of year
|
|
763
766
|
I: function I(date, token, localize) {
|
|
764
767
|
var isoWeek = getUTCISOWeek(date);
|
|
768
|
+
|
|
765
769
|
if (token === 'Io') {
|
|
766
770
|
return localize.ordinalNumber(isoWeek, {
|
|
767
771
|
unit: 'week'
|
|
768
772
|
});
|
|
769
773
|
}
|
|
774
|
+
|
|
770
775
|
return addLeadingZeros(isoWeek, token.length);
|
|
771
776
|
},
|
|
772
777
|
// Day of the month
|
|
@@ -776,21 +781,25 @@ var formatters = {
|
|
|
776
781
|
unit: 'date'
|
|
777
782
|
});
|
|
778
783
|
}
|
|
784
|
+
|
|
779
785
|
return formatters$2.d(date, token);
|
|
780
786
|
},
|
|
781
787
|
// Day of year
|
|
782
788
|
D: function D(date, token, localize) {
|
|
783
789
|
var dayOfYear = getUTCDayOfYear(date);
|
|
790
|
+
|
|
784
791
|
if (token === 'Do') {
|
|
785
792
|
return localize.ordinalNumber(dayOfYear, {
|
|
786
793
|
unit: 'dayOfYear'
|
|
787
794
|
});
|
|
788
795
|
}
|
|
796
|
+
|
|
789
797
|
return addLeadingZeros(dayOfYear, token.length);
|
|
790
798
|
},
|
|
791
799
|
// Day of week
|
|
792
800
|
E: function E(date, token, localize) {
|
|
793
801
|
var dayOfWeek = date.getUTCDay();
|
|
802
|
+
|
|
794
803
|
switch (token) {
|
|
795
804
|
// Tue
|
|
796
805
|
case 'E':
|
|
@@ -828,6 +837,7 @@ var formatters = {
|
|
|
828
837
|
e: function e(date, token, localize, options) {
|
|
829
838
|
var dayOfWeek = date.getUTCDay();
|
|
830
839
|
var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
840
|
+
|
|
831
841
|
switch (token) {
|
|
832
842
|
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
833
843
|
case 'e':
|
|
@@ -842,6 +852,7 @@ var formatters = {
|
|
|
842
852
|
return localize.ordinalNumber(localDayOfWeek, {
|
|
843
853
|
unit: 'day'
|
|
844
854
|
});
|
|
855
|
+
|
|
845
856
|
case 'eee':
|
|
846
857
|
return localize.day(dayOfWeek, {
|
|
847
858
|
width: 'abbreviated',
|
|
@@ -875,6 +886,7 @@ var formatters = {
|
|
|
875
886
|
c: function c(date, token, localize, options) {
|
|
876
887
|
var dayOfWeek = date.getUTCDay();
|
|
877
888
|
var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
|
|
889
|
+
|
|
878
890
|
switch (token) {
|
|
879
891
|
// Numerical value (same as in `e`)
|
|
880
892
|
case 'c':
|
|
@@ -889,6 +901,7 @@ var formatters = {
|
|
|
889
901
|
return localize.ordinalNumber(localDayOfWeek, {
|
|
890
902
|
unit: 'day'
|
|
891
903
|
});
|
|
904
|
+
|
|
892
905
|
case 'ccc':
|
|
893
906
|
return localize.day(dayOfWeek, {
|
|
894
907
|
width: 'abbreviated',
|
|
@@ -922,6 +935,7 @@ var formatters = {
|
|
|
922
935
|
i: function i(date, token, localize) {
|
|
923
936
|
var dayOfWeek = date.getUTCDay();
|
|
924
937
|
var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
|
|
938
|
+
|
|
925
939
|
switch (token) {
|
|
926
940
|
// 2
|
|
927
941
|
case 'i':
|
|
@@ -971,6 +985,7 @@ var formatters = {
|
|
|
971
985
|
a: function a(date, token, localize) {
|
|
972
986
|
var hours = date.getUTCHours();
|
|
973
987
|
var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
|
|
988
|
+
|
|
974
989
|
switch (token) {
|
|
975
990
|
case 'a':
|
|
976
991
|
case 'aa':
|
|
@@ -978,16 +993,19 @@ var formatters = {
|
|
|
978
993
|
width: 'abbreviated',
|
|
979
994
|
context: 'formatting'
|
|
980
995
|
});
|
|
996
|
+
|
|
981
997
|
case 'aaa':
|
|
982
998
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
983
999
|
width: 'abbreviated',
|
|
984
1000
|
context: 'formatting'
|
|
985
1001
|
}).toLowerCase();
|
|
1002
|
+
|
|
986
1003
|
case 'aaaaa':
|
|
987
1004
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
988
1005
|
width: 'narrow',
|
|
989
1006
|
context: 'formatting'
|
|
990
1007
|
});
|
|
1008
|
+
|
|
991
1009
|
case 'aaaa':
|
|
992
1010
|
default:
|
|
993
1011
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
@@ -1000,6 +1018,7 @@ var formatters = {
|
|
|
1000
1018
|
b: function b(date, token, localize) {
|
|
1001
1019
|
var hours = date.getUTCHours();
|
|
1002
1020
|
var dayPeriodEnumValue;
|
|
1021
|
+
|
|
1003
1022
|
if (hours === 12) {
|
|
1004
1023
|
dayPeriodEnumValue = dayPeriodEnum.noon;
|
|
1005
1024
|
} else if (hours === 0) {
|
|
@@ -1007,6 +1026,7 @@ var formatters = {
|
|
|
1007
1026
|
} else {
|
|
1008
1027
|
dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
|
|
1009
1028
|
}
|
|
1029
|
+
|
|
1010
1030
|
switch (token) {
|
|
1011
1031
|
case 'b':
|
|
1012
1032
|
case 'bb':
|
|
@@ -1014,16 +1034,19 @@ var formatters = {
|
|
|
1014
1034
|
width: 'abbreviated',
|
|
1015
1035
|
context: 'formatting'
|
|
1016
1036
|
});
|
|
1037
|
+
|
|
1017
1038
|
case 'bbb':
|
|
1018
1039
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
1019
1040
|
width: 'abbreviated',
|
|
1020
1041
|
context: 'formatting'
|
|
1021
1042
|
}).toLowerCase();
|
|
1043
|
+
|
|
1022
1044
|
case 'bbbbb':
|
|
1023
1045
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
1024
1046
|
width: 'narrow',
|
|
1025
1047
|
context: 'formatting'
|
|
1026
1048
|
});
|
|
1049
|
+
|
|
1027
1050
|
case 'bbbb':
|
|
1028
1051
|
default:
|
|
1029
1052
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
@@ -1036,6 +1059,7 @@ var formatters = {
|
|
|
1036
1059
|
B: function B(date, token, localize) {
|
|
1037
1060
|
var hours = date.getUTCHours();
|
|
1038
1061
|
var dayPeriodEnumValue;
|
|
1062
|
+
|
|
1039
1063
|
if (hours >= 17) {
|
|
1040
1064
|
dayPeriodEnumValue = dayPeriodEnum.evening;
|
|
1041
1065
|
} else if (hours >= 12) {
|
|
@@ -1045,6 +1069,7 @@ var formatters = {
|
|
|
1045
1069
|
} else {
|
|
1046
1070
|
dayPeriodEnumValue = dayPeriodEnum.night;
|
|
1047
1071
|
}
|
|
1072
|
+
|
|
1048
1073
|
switch (token) {
|
|
1049
1074
|
case 'B':
|
|
1050
1075
|
case 'BB':
|
|
@@ -1053,11 +1078,13 @@ var formatters = {
|
|
|
1053
1078
|
width: 'abbreviated',
|
|
1054
1079
|
context: 'formatting'
|
|
1055
1080
|
});
|
|
1081
|
+
|
|
1056
1082
|
case 'BBBBB':
|
|
1057
1083
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
1058
1084
|
width: 'narrow',
|
|
1059
1085
|
context: 'formatting'
|
|
1060
1086
|
});
|
|
1087
|
+
|
|
1061
1088
|
case 'BBBB':
|
|
1062
1089
|
default:
|
|
1063
1090
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
@@ -1075,6 +1102,7 @@ var formatters = {
|
|
|
1075
1102
|
unit: 'hour'
|
|
1076
1103
|
});
|
|
1077
1104
|
}
|
|
1105
|
+
|
|
1078
1106
|
return formatters$2.h(date, token);
|
|
1079
1107
|
},
|
|
1080
1108
|
// Hour [0-23]
|
|
@@ -1084,27 +1112,32 @@ var formatters = {
|
|
|
1084
1112
|
unit: 'hour'
|
|
1085
1113
|
});
|
|
1086
1114
|
}
|
|
1115
|
+
|
|
1087
1116
|
return formatters$2.H(date, token);
|
|
1088
1117
|
},
|
|
1089
1118
|
// Hour [0-11]
|
|
1090
1119
|
K: function K(date, token, localize) {
|
|
1091
1120
|
var hours = date.getUTCHours() % 12;
|
|
1121
|
+
|
|
1092
1122
|
if (token === 'Ko') {
|
|
1093
1123
|
return localize.ordinalNumber(hours, {
|
|
1094
1124
|
unit: 'hour'
|
|
1095
1125
|
});
|
|
1096
1126
|
}
|
|
1127
|
+
|
|
1097
1128
|
return addLeadingZeros(hours, token.length);
|
|
1098
1129
|
},
|
|
1099
1130
|
// Hour [1-24]
|
|
1100
1131
|
k: function k(date, token, localize) {
|
|
1101
1132
|
var hours = date.getUTCHours();
|
|
1102
1133
|
if (hours === 0) hours = 24;
|
|
1134
|
+
|
|
1103
1135
|
if (token === 'ko') {
|
|
1104
1136
|
return localize.ordinalNumber(hours, {
|
|
1105
1137
|
unit: 'hour'
|
|
1106
1138
|
});
|
|
1107
1139
|
}
|
|
1140
|
+
|
|
1108
1141
|
return addLeadingZeros(hours, token.length);
|
|
1109
1142
|
},
|
|
1110
1143
|
// Minute
|
|
@@ -1114,6 +1147,7 @@ var formatters = {
|
|
|
1114
1147
|
unit: 'minute'
|
|
1115
1148
|
});
|
|
1116
1149
|
}
|
|
1150
|
+
|
|
1117
1151
|
return formatters$2.m(date, token);
|
|
1118
1152
|
},
|
|
1119
1153
|
// Second
|
|
@@ -1123,6 +1157,7 @@ var formatters = {
|
|
|
1123
1157
|
unit: 'second'
|
|
1124
1158
|
});
|
|
1125
1159
|
}
|
|
1160
|
+
|
|
1126
1161
|
return formatters$2.s(date, token);
|
|
1127
1162
|
},
|
|
1128
1163
|
// Fraction of second
|
|
@@ -1133,9 +1168,11 @@ var formatters = {
|
|
|
1133
1168
|
X: function X(date, token, _localize, options) {
|
|
1134
1169
|
var originalDate = options._originalDate || date;
|
|
1135
1170
|
var timezoneOffset = originalDate.getTimezoneOffset();
|
|
1171
|
+
|
|
1136
1172
|
if (timezoneOffset === 0) {
|
|
1137
1173
|
return 'Z';
|
|
1138
1174
|
}
|
|
1175
|
+
|
|
1139
1176
|
switch (token) {
|
|
1140
1177
|
// Hours and optional minutes
|
|
1141
1178
|
case 'X':
|
|
@@ -1163,6 +1200,7 @@ var formatters = {
|
|
|
1163
1200
|
x: function x(date, token, _localize, options) {
|
|
1164
1201
|
var originalDate = options._originalDate || date;
|
|
1165
1202
|
var timezoneOffset = originalDate.getTimezoneOffset();
|
|
1203
|
+
|
|
1166
1204
|
switch (token) {
|
|
1167
1205
|
// Hours and optional minutes
|
|
1168
1206
|
case 'x':
|
|
@@ -1190,6 +1228,7 @@ var formatters = {
|
|
|
1190
1228
|
O: function O(date, token, _localize, options) {
|
|
1191
1229
|
var originalDate = options._originalDate || date;
|
|
1192
1230
|
var timezoneOffset = originalDate.getTimezoneOffset();
|
|
1231
|
+
|
|
1193
1232
|
switch (token) {
|
|
1194
1233
|
// Short
|
|
1195
1234
|
case 'O':
|
|
@@ -1207,6 +1246,7 @@ var formatters = {
|
|
|
1207
1246
|
z: function z(date, token, _localize, options) {
|
|
1208
1247
|
var originalDate = options._originalDate || date;
|
|
1209
1248
|
var timezoneOffset = originalDate.getTimezoneOffset();
|
|
1249
|
+
|
|
1210
1250
|
switch (token) {
|
|
1211
1251
|
// Short
|
|
1212
1252
|
case 'z':
|
|
@@ -1233,24 +1273,30 @@ var formatters = {
|
|
|
1233
1273
|
return addLeadingZeros(timestamp, token.length);
|
|
1234
1274
|
}
|
|
1235
1275
|
};
|
|
1276
|
+
|
|
1236
1277
|
function formatTimezoneShort(offset, dirtyDelimiter) {
|
|
1237
1278
|
var sign = offset > 0 ? '-' : '+';
|
|
1238
1279
|
var absOffset = Math.abs(offset);
|
|
1239
1280
|
var hours = Math.floor(absOffset / 60);
|
|
1240
1281
|
var minutes = absOffset % 60;
|
|
1282
|
+
|
|
1241
1283
|
if (minutes === 0) {
|
|
1242
1284
|
return sign + String(hours);
|
|
1243
1285
|
}
|
|
1286
|
+
|
|
1244
1287
|
var delimiter = dirtyDelimiter || '';
|
|
1245
1288
|
return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
|
|
1246
1289
|
}
|
|
1290
|
+
|
|
1247
1291
|
function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
|
|
1248
1292
|
if (offset % 60 === 0) {
|
|
1249
1293
|
var sign = offset > 0 ? '-' : '+';
|
|
1250
1294
|
return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
|
|
1251
1295
|
}
|
|
1296
|
+
|
|
1252
1297
|
return formatTimezone(offset, dirtyDelimiter);
|
|
1253
1298
|
}
|
|
1299
|
+
|
|
1254
1300
|
function formatTimezone(offset, dirtyDelimiter) {
|
|
1255
1301
|
var delimiter = dirtyDelimiter || '';
|
|
1256
1302
|
var sign = offset > 0 ? '-' : '+';
|
|
@@ -1259,6 +1305,7 @@ function formatTimezone(offset, dirtyDelimiter) {
|
|
|
1259
1305
|
var minutes = addLeadingZeros(absOffset % 60, 2);
|
|
1260
1306
|
return sign + hours + delimiter + minutes;
|
|
1261
1307
|
}
|
|
1308
|
+
|
|
1262
1309
|
var formatters$1 = formatters;
|
|
1263
1310
|
|
|
1264
1311
|
var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
@@ -1267,14 +1314,17 @@ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
|
1267
1314
|
return formatLong.date({
|
|
1268
1315
|
width: 'short'
|
|
1269
1316
|
});
|
|
1317
|
+
|
|
1270
1318
|
case 'PP':
|
|
1271
1319
|
return formatLong.date({
|
|
1272
1320
|
width: 'medium'
|
|
1273
1321
|
});
|
|
1322
|
+
|
|
1274
1323
|
case 'PPP':
|
|
1275
1324
|
return formatLong.date({
|
|
1276
1325
|
width: 'long'
|
|
1277
1326
|
});
|
|
1327
|
+
|
|
1278
1328
|
case 'PPPP':
|
|
1279
1329
|
default:
|
|
1280
1330
|
return formatLong.date({
|
|
@@ -1282,20 +1332,24 @@ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
|
1282
1332
|
});
|
|
1283
1333
|
}
|
|
1284
1334
|
};
|
|
1335
|
+
|
|
1285
1336
|
var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
|
|
1286
1337
|
switch (pattern) {
|
|
1287
1338
|
case 'p':
|
|
1288
1339
|
return formatLong.time({
|
|
1289
1340
|
width: 'short'
|
|
1290
1341
|
});
|
|
1342
|
+
|
|
1291
1343
|
case 'pp':
|
|
1292
1344
|
return formatLong.time({
|
|
1293
1345
|
width: 'medium'
|
|
1294
1346
|
});
|
|
1347
|
+
|
|
1295
1348
|
case 'ppp':
|
|
1296
1349
|
return formatLong.time({
|
|
1297
1350
|
width: 'long'
|
|
1298
1351
|
});
|
|
1352
|
+
|
|
1299
1353
|
case 'pppp':
|
|
1300
1354
|
default:
|
|
1301
1355
|
return formatLong.time({
|
|
@@ -1303,30 +1357,37 @@ var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
|
|
|
1303
1357
|
});
|
|
1304
1358
|
}
|
|
1305
1359
|
};
|
|
1360
|
+
|
|
1306
1361
|
var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
|
|
1307
1362
|
var matchResult = pattern.match(/(P+)(p+)?/) || [];
|
|
1308
1363
|
var datePattern = matchResult[1];
|
|
1309
1364
|
var timePattern = matchResult[2];
|
|
1365
|
+
|
|
1310
1366
|
if (!timePattern) {
|
|
1311
1367
|
return dateLongFormatter(pattern, formatLong);
|
|
1312
1368
|
}
|
|
1369
|
+
|
|
1313
1370
|
var dateTimeFormat;
|
|
1371
|
+
|
|
1314
1372
|
switch (datePattern) {
|
|
1315
1373
|
case 'P':
|
|
1316
1374
|
dateTimeFormat = formatLong.dateTime({
|
|
1317
1375
|
width: 'short'
|
|
1318
1376
|
});
|
|
1319
1377
|
break;
|
|
1378
|
+
|
|
1320
1379
|
case 'PP':
|
|
1321
1380
|
dateTimeFormat = formatLong.dateTime({
|
|
1322
1381
|
width: 'medium'
|
|
1323
1382
|
});
|
|
1324
1383
|
break;
|
|
1384
|
+
|
|
1325
1385
|
case 'PPP':
|
|
1326
1386
|
dateTimeFormat = formatLong.dateTime({
|
|
1327
1387
|
width: 'long'
|
|
1328
1388
|
});
|
|
1329
1389
|
break;
|
|
1390
|
+
|
|
1330
1391
|
case 'PPPP':
|
|
1331
1392
|
default:
|
|
1332
1393
|
dateTimeFormat = formatLong.dateTime({
|
|
@@ -1334,8 +1395,10 @@ var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong)
|
|
|
1334
1395
|
});
|
|
1335
1396
|
break;
|
|
1336
1397
|
}
|
|
1398
|
+
|
|
1337
1399
|
return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
|
|
1338
1400
|
};
|
|
1401
|
+
|
|
1339
1402
|
var longFormatters = {
|
|
1340
1403
|
p: timeLongFormatter,
|
|
1341
1404
|
P: dateTimeLongFormatter
|
|
@@ -1691,6 +1754,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
1691
1754
|
|
|
1692
1755
|
function format(dirtyDate, dirtyFormatStr, options) {
|
|
1693
1756
|
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;
|
|
1757
|
+
|
|
1694
1758
|
requiredArgs(2, arguments);
|
|
1695
1759
|
var formatStr = String(dirtyFormatStr);
|
|
1696
1760
|
var defaultOptions = getDefaultOptions();
|
|
@@ -1700,24 +1764,30 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
1700
1764
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
1701
1765
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
1702
1766
|
}
|
|
1767
|
+
|
|
1703
1768
|
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
|
|
1704
1769
|
|
|
1705
1770
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
1706
1771
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
1707
1772
|
}
|
|
1773
|
+
|
|
1708
1774
|
if (!locale.localize) {
|
|
1709
1775
|
throw new RangeError('locale must contain localize property');
|
|
1710
1776
|
}
|
|
1777
|
+
|
|
1711
1778
|
if (!locale.formatLong) {
|
|
1712
1779
|
throw new RangeError('locale must contain formatLong property');
|
|
1713
1780
|
}
|
|
1781
|
+
|
|
1714
1782
|
var originalDate = toDate(dirtyDate);
|
|
1783
|
+
|
|
1715
1784
|
if (!isValid(originalDate)) {
|
|
1716
1785
|
throw new RangeError('Invalid time value');
|
|
1717
1786
|
} // Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
1718
1787
|
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
1719
1788
|
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
1720
1789
|
|
|
1790
|
+
|
|
1721
1791
|
var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
|
|
1722
1792
|
var utcDate = subMilliseconds(originalDate, timezoneOffset);
|
|
1723
1793
|
var formatterOptions = {
|
|
@@ -1728,42 +1798,55 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
1728
1798
|
};
|
|
1729
1799
|
var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
|
|
1730
1800
|
var firstCharacter = substring[0];
|
|
1801
|
+
|
|
1731
1802
|
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
1732
1803
|
var longFormatter = longFormatters$1[firstCharacter];
|
|
1733
1804
|
return longFormatter(substring, locale.formatLong);
|
|
1734
1805
|
}
|
|
1806
|
+
|
|
1735
1807
|
return substring;
|
|
1736
1808
|
}).join('').match(formattingTokensRegExp).map(function (substring) {
|
|
1737
1809
|
// Replace two single quote characters with one single quote character
|
|
1738
1810
|
if (substring === "''") {
|
|
1739
1811
|
return "'";
|
|
1740
1812
|
}
|
|
1813
|
+
|
|
1741
1814
|
var firstCharacter = substring[0];
|
|
1815
|
+
|
|
1742
1816
|
if (firstCharacter === "'") {
|
|
1743
1817
|
return cleanEscapedString(substring);
|
|
1744
1818
|
}
|
|
1819
|
+
|
|
1745
1820
|
var formatter = formatters$1[firstCharacter];
|
|
1821
|
+
|
|
1746
1822
|
if (formatter) {
|
|
1747
1823
|
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
1748
1824
|
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
1749
1825
|
}
|
|
1826
|
+
|
|
1750
1827
|
if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
|
|
1751
1828
|
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
1752
1829
|
}
|
|
1830
|
+
|
|
1753
1831
|
return formatter(utcDate, substring, locale.localize, formatterOptions);
|
|
1754
1832
|
}
|
|
1833
|
+
|
|
1755
1834
|
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
1756
1835
|
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
1757
1836
|
}
|
|
1837
|
+
|
|
1758
1838
|
return substring;
|
|
1759
1839
|
}).join('');
|
|
1760
1840
|
return result;
|
|
1761
1841
|
}
|
|
1842
|
+
|
|
1762
1843
|
function cleanEscapedString(input) {
|
|
1763
1844
|
var matched = input.match(escapedStringRegExp);
|
|
1845
|
+
|
|
1764
1846
|
if (!matched) {
|
|
1765
1847
|
return input;
|
|
1766
1848
|
}
|
|
1849
|
+
|
|
1767
1850
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
1768
1851
|
}
|
|
1769
1852
|
|
|
@@ -1771,4 +1854,4 @@ exports.format = format;
|
|
|
1771
1854
|
exports.requiredArgs = requiredArgs;
|
|
1772
1855
|
exports.toDate = toDate;
|
|
1773
1856
|
exports.toInteger = toInteger;
|
|
1774
|
-
//# sourceMappingURL=index-
|
|
1857
|
+
//# sourceMappingURL=index-ecfe08c9.js.map
|