@messenger-box/platform-browser 10.0.3-alpha.17 → 10.0.3-alpha.171
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/lib/components/InboxMessage/InboxDetails/index.d.ts +6 -1
- package/lib/components/InboxMessage/InboxDetails/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/InboxDetails/index.js +10 -11
- package/lib/components/InboxMessage/InboxDetails/index.js.map +1 -1
- package/lib/components/InboxMessage/InboxSidebar/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/InboxSidebar/index.js +23 -32
- package/lib/components/InboxMessage/InboxSidebar/index.js.map +1 -1
- package/lib/components/InboxMessage/Messages/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/Messages/index.js +42 -81
- package/lib/components/InboxMessage/Messages/index.js.map +1 -1
- package/lib/components/InboxMessage/MessagesList/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/MessagesList/index.js +53 -74
- package/lib/components/InboxMessage/MessagesList/index.js.map +1 -1
- package/lib/components/InboxMessage/Popover/index.d.ts +5 -1
- package/lib/components/InboxMessage/Popover/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/Popover/index.js +8 -35
- package/lib/components/InboxMessage/Popover/index.js.map +1 -1
- package/lib/components/InboxMessage/UserModalContent/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/UserModalContent/index.js +50 -47
- package/lib/components/InboxMessage/UserModalContent/index.js.map +1 -1
- package/lib/components/InboxMessage/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/index.js +38 -70
- package/lib/components/InboxMessage/index.js.map +1 -1
- package/lib/components/channel_view/DirectChannelView.js.map +1 -1
- package/lib/components/channel_view/PublicChannelView.js.map +1 -1
- package/lib/components/dashboard/menu_header.d.ts.map +1 -1
- package/lib/components/dashboard/menu_header.js +38 -24
- package/lib/components/dashboard/menu_header.js.map +1 -1
- package/lib/components/dashboard/modals/direct_modal.d.ts +10 -8
- package/lib/components/dashboard/modals/direct_modal.d.ts.map +1 -1
- package/lib/components/dashboard/modals/direct_modal.js +59 -39
- package/lib/components/dashboard/modals/direct_modal.js.map +1 -1
- package/lib/components/dashboard/modals.d.ts +18 -6
- package/lib/components/dashboard/modals.d.ts.map +1 -1
- package/lib/components/dashboard/modals.js +60 -101
- package/lib/components/dashboard/modals.js.map +1 -1
- package/lib/components/messenger/avatar/index.d.ts.map +1 -1
- package/lib/components/messenger/index.d.ts.map +1 -1
- package/lib/components/messenger/index.js +45 -82
- package/lib/components/messenger/index.js.map +1 -1
- package/lib/components/messenger/messagesList/index.d.ts.map +1 -1
- package/lib/components/messenger/messagesList/index.js +174 -454
- package/lib/components/messenger/messagesList/index.js.map +1 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts +0 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts.map +1 -1
- package/lib/components/messenger/more_action/index.d.ts.map +1 -1
- package/lib/components/messenger/postMessage/postMessage.d.ts +7 -2
- package/lib/components/messenger/postMessage/postMessage.d.ts.map +1 -1
- package/lib/components/messenger/sidebarThreadList/index.d.ts.map +1 -1
- package/lib/components/messenger/threadSidebar/index.d.ts.map +1 -1
- package/lib/components/messenger/types/message.d.ts +11 -11
- package/lib/components/messenger/types/message.d.ts.map +1 -1
- package/lib/components/post/channel_intro_message/channel_intro_message.d.ts.map +1 -1
- package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts.map +1 -1
- package/lib/components/post/channel_view/channel_view.d.ts.map +1 -1
- package/lib/components/post/create_post/create_post.d.ts +10 -1
- package/lib/components/post/create_post/create_post.d.ts.map +1 -1
- package/lib/components/post/failed_post_options/failed_post_options.d.ts.map +1 -1
- package/lib/components/post/index.d.ts +5 -3
- package/lib/components/post/index.d.ts.map +1 -1
- package/lib/components/post/index.js +63 -97
- package/lib/components/post/index.js.map +1 -1
- package/lib/components/post/markdown/markdown.d.ts.map +1 -1
- package/lib/components/post/post/post.d.ts.map +1 -1
- package/lib/components/post/post_body/post_body.d.ts.map +1 -1
- package/lib/components/post/post_body_additional_content/post_body_additional_content.d.ts.map +1 -1
- package/lib/components/post/post_header/post_header.d.ts.map +1 -1
- package/lib/components/post/post_header/post_header_custom_status.d.ts.map +1 -1
- package/lib/components/post/post_info/post_info.d.ts.map +1 -1
- package/lib/components/post/post_list/post_list.d.ts.map +1 -1
- package/lib/components/post/post_list_row/post_list_row.d.ts.map +1 -1
- package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts.map +1 -1
- package/lib/components/post/post_markdown/post_markdown.d.ts.map +1 -1
- package/lib/components/post/post_message_view/post_message_view.d.ts.map +1 -1
- package/lib/components/post/post_pre_header/post_pre_header.d.ts.map +1 -1
- package/lib/components/post/post_profile_picture/post_profile_picture.d.ts.map +1 -1
- package/lib/components/post/profile_picture/profile_picture.d.ts.map +1 -1
- package/lib/components/post/show_more/show_more.d.ts.map +1 -1
- package/lib/components/post/suggestion/suggestion_box.d.ts.map +1 -1
- package/lib/components/post/textbox/textbox.d.ts.map +1 -1
- package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts.map +1 -1
- package/lib/components/post/tutorial/menu_tutorial_tip.d.ts.map +1 -1
- package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts.map +1 -1
- package/lib/components/post_view/post_attachment_container/post_attachment_container.d.ts.map +1 -1
- package/lib/components/status_icon.d.ts.map +1 -1
- package/lib/compute.js.map +1 -1
- package/lib/containers/Dashboard.d.ts.map +1 -1
- package/lib/containers/Dashboard.js +110 -124
- package/lib/containers/Dashboard.js.map +1 -1
- package/lib/containers/DashboardWithLoader.d.ts.map +1 -1
- package/lib/containers/DashboardWithLoader.js +14 -5
- package/lib/containers/DashboardWithLoader.js.map +1 -1
- package/lib/containers/Inbox.js.map +1 -1
- package/lib/containers/Messenger.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/widgets/simple_tooltip/simple_tooltip.d.ts.map +1 -1
- package/package.json +5 -5
- package/CHANGELOG.md +0 -135
- package/jest.config.js +0 -24
- package/lib/components/InboxMessage/InboxDetails/style.d.ts +0 -2
- package/lib/components/InboxMessage/InboxDetails/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/InboxDetails/style.js +0 -27
- package/lib/components/InboxMessage/InboxDetails/style.js.map +0 -1
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +0 -2
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts.map +0 -1
- package/lib/components/InboxMessage/InboxSidebar/styles.js +0 -57
- package/lib/components/InboxMessage/InboxSidebar/styles.js.map +0 -1
- package/lib/components/InboxMessage/Messages/styles.d.ts +0 -81
- package/lib/components/InboxMessage/Messages/styles.d.ts.map +0 -1
- package/lib/components/InboxMessage/Messages/styles.js +0 -85
- package/lib/components/InboxMessage/Messages/styles.js.map +0 -1
- package/lib/components/InboxMessage/Popover/style.d.ts +0 -28
- package/lib/components/InboxMessage/Popover/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/Popover/style.js +0 -27
- package/lib/components/InboxMessage/Popover/style.js.map +0 -1
- package/lib/components/InboxMessage/UserModalContent/style.d.ts +0 -2
- package/lib/components/InboxMessage/UserModalContent/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/UserModalContent/style.js +0 -98
- package/lib/components/InboxMessage/UserModalContent/style.js.map +0 -1
- package/lib/components/InboxMessage/style.js +0 -189
- package/lib/components/InboxMessage/style.js.map +0 -1
- package/lib/components/messenger/avatar/style.d.ts +0 -2
- package/lib/components/messenger/avatar/style.d.ts.map +0 -1
- package/lib/components/messenger/messagesList/style.js +0 -446
- package/lib/components/messenger/messagesList/style.js.map +0 -1
- package/lib/components/messenger/more_action/index.js +0 -48
- package/lib/components/messenger/more_action/index.js.map +0 -1
- package/lib/components/messenger/more_action/style.d.ts +0 -2
- package/lib/components/messenger/more_action/style.d.ts.map +0 -1
- package/lib/components/messenger/more_action/style.js +0 -45
- package/lib/components/messenger/more_action/style.js.map +0 -1
- package/lib/components/post/style.js +0 -20101
- package/lib/components/post/style.js.map +0 -1
- package/lib/style.js +0 -400
- package/lib/style.js.map +0 -1
- package/rollup.config.mjs +0 -35
- package/src/cdm-locales/en/translations.json +0 -95
- package/src/cdm-locales/es/translations.json +0 -95
- package/src/components/InboxMessage/InboxDetails/index.tsx +0 -25
- package/src/components/InboxMessage/InboxDetails/style.ts +0 -27
- package/src/components/InboxMessage/InboxSidebar/index.tsx +0 -89
- package/src/components/InboxMessage/InboxSidebar/styles.ts +0 -57
- package/src/components/InboxMessage/Messages/index.tsx +0 -161
- package/src/components/InboxMessage/Messages/styles.ts +0 -85
- package/src/components/InboxMessage/MessagesList/index.tsx +0 -93
- package/src/components/InboxMessage/Popover/index.tsx +0 -60
- package/src/components/InboxMessage/Popover/style.ts +0 -27
- package/src/components/InboxMessage/UserModalContent/index.tsx +0 -63
- package/src/components/InboxMessage/UserModalContent/style.ts +0 -98
- package/src/components/InboxMessage/index.tsx +0 -289
- package/src/components/InboxMessage/mock.ts +0 -53
- package/src/components/InboxMessage/style.ts +0 -189
- package/src/components/NavBar.tsx +0 -10
- package/src/components/channel_view/DirectChannelView.tsx +0 -25
- package/src/components/channel_view/PublicChannelView.tsx +0 -25
- package/src/components/dashboard/menu_header.tsx +0 -62
- package/src/components/dashboard/modals/direct_modal.tsx +0 -54
- package/src/components/dashboard/modals.tsx +0 -121
- package/src/components/messenger/avatar/index.tsx +0 -39
- package/src/components/messenger/avatar/style.ts +0 -86
- package/src/components/messenger/index.tsx +0 -382
- package/src/components/messenger/messagesList/index.tsx +0 -764
- package/src/components/messenger/messagesList/messageBox.tsx +0 -66
- package/src/components/messenger/messagesList/style.ts +0 -448
- package/src/components/messenger/mock.ts +0 -77
- package/src/components/messenger/more_action/index.tsx +0 -79
- package/src/components/messenger/more_action/style.ts +0 -45
- package/src/components/messenger/postMessage/postMessage.tsx +0 -28
- package/src/components/messenger/postMessage/style.ts +0 -24
- package/src/components/messenger/sidebarThreadList/index.tsx +0 -201
- package/src/components/messenger/style.ts +0 -40
- package/src/components/messenger/threadSidebar/index.tsx +0 -129
- package/src/components/messenger/threadSidebar/style.ts +0 -65
- package/src/components/messenger/types/message.ts +0 -16
- package/src/components/messenger/utils/utils.ts +0 -5
- package/src/components/overlay_trigger.tsx +0 -59
- package/src/components/post/channel_intro_message/add_members_button.tsx +0 -152
- package/src/components/post/channel_intro_message/channel_intro_message.tsx +0 -53
- package/src/components/post/channel_intro_message/index.ts +0 -1
- package/src/components/post/channel_layout/center_channel/center_channel.test.tsx +0 -50
- package/src/components/post/channel_layout/center_channel/center_channel.tsx +0 -125
- package/src/components/post/channel_layout/center_channel/index.ts +0 -69
- package/src/components/post/channel_layout/channel_controller.test.tsx +0 -76
- package/src/components/post/channel_layout/channel_controller.tsx +0 -85
- package/src/components/post/channel_layout/channel_identifier_router/actions.test.ts +0 -243
- package/src/components/post/channel_layout/channel_identifier_router/actions.ts +0 -353
- package/src/components/post/channel_layout/channel_identifier_router/channel_identifier_router.test.tsx +0 -101
- package/src/components/post/channel_layout/channel_identifier_router/channel_identifier_router.tsx +0 -6
- package/src/components/post/channel_layout/channel_identifier_router/index.ts +0 -1
- package/src/components/post/channel_view/channel_view.test.tsx +0 -68
- package/src/components/post/channel_view/channel_view.tsx +0 -92
- package/src/components/post/channel_view/index.ts +0 -1
- package/src/components/post/create_post/create_post.test.jsx +0 -1335
- package/src/components/post/create_post/create_post.tsx +0 -225
- package/src/components/post/create_post/index.ts +0 -1
- package/src/components/post/failed_post_options/failed_post_options.tsx +0 -32
- package/src/components/post/failed_post_options/index.ts +0 -4
- package/src/components/post/index.tsx +0 -131
- package/src/components/post/markdown/index.ts +0 -1
- package/src/components/post/markdown/markdown.test.tsx +0 -62
- package/src/components/post/markdown/markdown.tsx +0 -38
- package/src/components/post/post/defaultpost.ts +0 -25
- package/src/components/post/post/post.tsx +0 -270
- package/src/components/post/post/style.ts +0 -0
- package/src/components/post/post_aria_label_div.tsx +0 -43
- package/src/components/post/post_body/post_body.tsx +0 -80
- package/src/components/post/post_body_additional_content/post_body_additional_content.tsx +0 -6
- package/src/components/post/post_context.tsx +0 -10
- package/src/components/post/post_header/index.ts +0 -38
- package/src/components/post/post_header/post_header.scss +0 -53
- package/src/components/post/post_header/post_header.tsx +0 -98
- package/src/components/post/post_header/post_header_custom_status.tsx +0 -49
- package/src/components/post/post_header/style.ts +0 -54
- package/src/components/post/post_info/post_info.tsx +0 -195
- package/src/components/post/post_list/index.tsx +0 -10
- package/src/components/post/post_list/post_list.tsx +0 -27
- package/src/components/post/post_list_row/index.ts +0 -42
- package/src/components/post/post_list_row/post_list_row.test.tsx +0 -176
- package/src/components/post/post_list_row/post_list_row.tsx +0 -130
- package/src/components/post/post_list_virtualized/latest_post_reader.tsx +0 -9
- package/src/components/post/post_list_virtualized/post_list_virtualized.tsx +0 -269
- package/src/components/post/post_markdown/index.test.js +0 -119
- package/src/components/post/post_markdown/index.ts +0 -1
- package/src/components/post/post_markdown/post_markdown.test.tsx +0 -178
- package/src/components/post/post_markdown/post_markdown.tsx +0 -58
- package/src/components/post/post_markdown/system_message_helpers.tsx +0 -420
- package/src/components/post/post_message_view/index.ts +0 -4
- package/src/components/post/post_message_view/post_message_view.test.tsx +0 -89
- package/src/components/post/post_message_view/post_message_view.tsx +0 -71
- package/src/components/post/post_pre_header/post_pre_header.tsx +0 -141
- package/src/components/post/post_profile_picture/post_profile_picture.tsx +0 -95
- package/src/components/post/post_view.tsx +0 -10
- package/src/components/post/profile_picture/profile_picture.tsx +0 -21
- package/src/components/post/show_more/index.ts +0 -1
- package/src/components/post/show_more/show_more.test.tsx +0 -102
- package/src/components/post/show_more/show_more.tsx +0 -97
- package/src/components/post/style.ts +0 -20101
- package/src/components/post/suggestion/suggestion_box.tsx +0 -5
- package/src/components/post/textbox/index.ts +0 -1
- package/src/components/post/textbox/textbox.tsx +0 -80
- package/src/components/post/textbox/textbox_links/index.ts +0 -24
- package/src/components/post/textbox/textbox_links/textbox_links.tsx +0 -143
- package/src/components/post/threading/channel_threads/thread_footer/index.ts +0 -4
- package/src/components/post/threading/channel_threads/thread_footer/thread_footer.scss +0 -72
- package/src/components/post/threading/channel_threads/thread_footer/thread_footer.tsx +0 -206
- package/src/components/post/threading/common/button/__snapshots__/button.test.tsx.snap +0 -68
- package/src/components/post/threading/common/button/button.scss +0 -148
- package/src/components/post/threading/common/button/button.test.tsx +0 -75
- package/src/components/post/threading/common/button/button.tsx +0 -51
- package/src/components/post/threading/common/button/index.ts +0 -4
- package/src/components/post/threading/common/follow_button/__snapshots__/follow_button.test.tsx.snap +0 -50
- package/src/components/post/threading/common/follow_button/follow_button.test.tsx +0 -56
- package/src/components/post/threading/common/follow_button/follow_button.tsx +0 -39
- package/src/components/post/threading/common/follow_button/index.ts +0 -4
- package/src/components/post/timestamp/__snapshots__/semantic_time.test.tsx.snap +0 -13
- package/src/components/post/timestamp/__snapshots__/timestamp.test.tsx.snap +0 -13
- package/src/components/post/timestamp/index.ts +0 -50
- package/src/components/post/timestamp/relative_ranges.tsx +0 -58
- package/src/components/post/timestamp/semantic_time.test.tsx +0 -47
- package/src/components/post/timestamp/semantic_time.tsx +0 -28
- package/src/components/post/timestamp/timestamp.stories.tsx +0 -190
- package/src/components/post/timestamp/timestamp.test.tsx +0 -309
- package/src/components/post/timestamp/timestamp.tsx +0 -441
- package/src/components/post/tutorial/menu_tutorial_tip.tsx +0 -63
- package/src/components/post/tutorial/tutorial_tip/index.ts +0 -0
- package/src/components/post/tutorial/tutorial_tip/tutorial_tip.test.tsx +0 -111
- package/src/components/post/tutorial/tutorial_tip/tutorial_tip.tsx +0 -224
- package/src/components/post/user_profile/index.tsx +0 -6
- package/src/components/post/user_profile/user_profile.tsx +0 -114
- package/src/components/post_view/__snapshots__/post_view.test.js.snap +0 -25
- package/src/components/post_view/channel_intro_message/add_members_button.scss +0 -72
- package/src/components/post_view/channel_intro_message/add_members_button.tsx +0 -152
- package/src/components/post_view/channel_intro_message/channel_intro_message.tsx +0 -549
- package/src/components/post_view/channel_intro_message/index.ts +0 -67
- package/src/components/post_view/combined_system_message/__snapshots__/combined_system_message.test.tsx.snap +0 -238
- package/src/components/post_view/combined_system_message/__snapshots__/last_users.test.tsx.snap +0 -74
- package/src/components/post_view/combined_system_message/combined_system_message.test.tsx +0 -167
- package/src/components/post_view/combined_system_message/combined_system_message.tsx +0 -380
- package/src/components/post_view/combined_system_message/index.ts +0 -46
- package/src/components/post_view/combined_system_message/last_users.test.tsx +0 -56
- package/src/components/post_view/combined_system_message/last_users.tsx +0 -135
- package/src/components/post_view/combined_user_activity_post/index.ts +0 -28
- package/src/components/post_view/comment_icon/index.ts +0 -31
- package/src/components/post_view/commented_on/__snapshots__/commented_on.test.tsx.snap +0 -276
- package/src/components/post_view/commented_on/commented_on.test.tsx +0 -184
- package/src/components/post_view/commented_on/commented_on.tsx +0 -92
- package/src/components/post_view/commented_on/index.ts +0 -37
- package/src/components/post_view/commented_on_files_message/__snapshots__/commented_on_files_message.test.jsx.snap +0 -24
- package/src/components/post_view/commented_on_files_message/commented_on_files_message.jsx +0 -47
- package/src/components/post_view/commented_on_files_message/commented_on_files_message.test.jsx +0 -53
- package/src/components/post_view/commented_on_files_message/index.js +0 -25
- package/src/components/post_view/date_separator/__snapshots__/date_separator.test.tsx.snap +0 -35
- package/src/components/post_view/date_separator/date_separator.test.tsx +0 -26
- package/src/components/post_view/date_separator/date_separator.tsx +0 -40
- package/src/components/post_view/date_separator/index.ts +0 -4
- package/src/components/post_view/embedded_bindings/button_binding/__snapshots__/button_binding.test.tsx.snap +0 -23
- package/src/components/post_view/embedded_bindings/button_binding/button_binding.test.tsx +0 -124
- package/src/components/post_view/embedded_bindings/button_binding/button_binding.tsx +0 -141
- package/src/components/post_view/embedded_bindings/button_binding/index.ts +0 -34
- package/src/components/post_view/embedded_bindings/embedded_binding/__snapshots__/embedded_binding.test.tsx.snap +0 -249
- package/src/components/post_view/embedded_bindings/embedded_binding/embedded_binding.test.tsx +0 -76
- package/src/components/post_view/embedded_bindings/embedded_binding/embedded_binding.tsx +0 -205
- package/src/components/post_view/embedded_bindings/embedded_binding/index.ts +0 -17
- package/src/components/post_view/embedded_bindings/embedded_bindings.tsx +0 -59
- package/src/components/post_view/embedded_bindings/select_binding/index.ts +0 -33
- package/src/components/post_view/embedded_bindings/select_binding/select_binding.test.tsx +0 -170
- package/src/components/post_view/embedded_bindings/select_binding/select_binding.tsx +0 -188
- package/src/components/post_view/failed_post_options/__snapshots__/failed_post_options.test.tsx.snap +0 -29
- package/src/components/post_view/failed_post_options/failed_post_options.test.tsx +0 -59
- package/src/components/post_view/failed_post_options/failed_post_options.tsx +0 -67
- package/src/components/post_view/failed_post_options/index.ts +0 -23
- package/src/components/post_view/floating_timestamp/__snapshots__/floating_timestamp.test.tsx.snap +0 -41
- package/src/components/post_view/floating_timestamp/floating_timestamp.test.tsx +0 -23
- package/src/components/post_view/floating_timestamp/floating_timestamp.tsx +0 -52
- package/src/components/post_view/floating_timestamp/index.ts +0 -35
- package/src/components/post_view/index.js +0 -61
- package/src/components/post_view/index.test.js +0 -37
- package/src/components/post_view/message_attachments/action_button/__snapshots__/action_button.test.tsx.snap +0 -26
- package/src/components/post_view/message_attachments/action_button/action_button.test.tsx +0 -113
- package/src/components/post_view/message_attachments/action_button/action_button.tsx +0 -80
- package/src/components/post_view/message_attachments/action_button/index.ts +0 -17
- package/src/components/post_view/message_attachments/action_menu/action_menu.test.tsx +0 -61
- package/src/components/post_view/message_attachments/action_menu/action_menu.tsx +0 -156
- package/src/components/post_view/message_attachments/action_menu/index.ts +0 -41
- package/src/components/post_view/message_attachments/message_attachment/__snapshots__/message_attachment.test.tsx.snap +0 -726
- package/src/components/post_view/message_attachments/message_attachment/index.ts +0 -32
- package/src/components/post_view/message_attachments/message_attachment/message_attachment.test.tsx +0 -234
- package/src/components/post_view/message_attachments/message_attachment/message_attachment.tsx +0 -544
- package/src/components/post_view/message_attachments/message_attachment_list.tsx +0 -64
- package/src/components/post_view/new_message_separator/__snapshots__/new_message_separator.test.tsx.snap +0 -16
- package/src/components/post_view/new_message_separator/new_message_separator.test.tsx +0 -16
- package/src/components/post_view/new_message_separator/new_message_separator.tsx +0 -31
- package/src/components/post_view/post/__snapshots__/post.test.js.snap +0 -337
- package/src/components/post_view/post/index.test.js +0 -61
- package/src/components/post_view/post/index.ts +0 -96
- package/src/components/post_view/post/post.jsx +0 -446
- package/src/components/post_view/post/post.test.js +0 -222
- package/src/components/post_view/post_add_channel_member/__snapshots__/post_add_channel_member.test.tsx.snap +0 -226
- package/src/components/post_view/post_add_channel_member/index.ts +0 -47
- package/src/components/post_view/post_add_channel_member/post_add_channel_member.test.tsx +0 -140
- package/src/components/post_view/post_add_channel_member/post_add_channel_member.tsx +0 -231
- package/src/components/post_view/post_aria_label_div.test.jsx +0 -106
- package/src/components/post_view/post_aria_label_div.tsx +0 -48
- package/src/components/post_view/post_attachment_container/__snapshots__/post_attachment_container.test.tsx.snap +0 -25
- package/src/components/post_view/post_attachment_container/post_attachment_container.test.tsx +0 -21
- package/src/components/post_view/post_attachment_container/post_attachment_container.tsx +0 -40
- package/src/components/post_view/post_attachment_opengraph/get_nearest_point.test.ts +0 -55
- package/src/components/post_view/post_attachment_opengraph/get_nearest_point.ts +0 -31
- package/src/components/post_view/post_attachment_opengraph/index.ts +0 -48
- package/src/components/post_view/post_attachment_opengraph/post_attachment_opengraph.test.tsx +0 -264
- package/src/components/post_view/post_attachment_opengraph/post_attachment_opengraph.tsx +0 -262
- package/src/components/post_view/post_body/index.js +0 -36
- package/src/components/post_view/post_body/post_body.jsx +0 -235
- package/src/components/post_view/post_body_additional_content/__snapshots__/post_body_additional_content.test.tsx.snap +0 -295
- package/src/components/post_view/post_body_additional_content/index.ts +0 -36
- package/src/components/post_view/post_body_additional_content/post_body_additional_content.test.tsx +0 -425
- package/src/components/post_view/post_body_additional_content/post_body_additional_content.tsx +0 -194
- package/src/components/post_view/post_context.js +0 -14
- package/src/components/post_view/post_flag_icon/__snapshots__/post_flag_icon.test.js.snap +0 -81
- package/src/components/post_view/post_flag_icon/index.js +0 -20
- package/src/components/post_view/post_flag_icon/post_flag_icon.js +0 -125
- package/src/components/post_view/post_flag_icon/post_flag_icon.test.js +0 -39
- package/src/components/post_view/post_header/__snapshots__/post_header.test.tsx.snap +0 -196
- package/src/components/post_view/post_header/index.ts +0 -38
- package/src/components/post_view/post_header/post_header.scss +0 -53
- package/src/components/post_view/post_header/post_header.test.tsx +0 -68
- package/src/components/post_view/post_header/post_header.tsx +0 -202
- package/src/components/post_view/post_header/post_header_custom_status.tsx +0 -73
- package/src/components/post_view/post_image/index.js +0 -6
- package/src/components/post_view/post_image/post_image.jsx +0 -69
- package/src/components/post_view/post_info/__snapshots__/post_info.test.tsx.snap +0 -322
- package/src/components/post_view/post_info/index.ts +0 -66
- package/src/components/post_view/post_info/post_info.test.tsx +0 -170
- package/src/components/post_view/post_info/post_info.tsx +0 -403
- package/src/components/post_view/post_list/__snapshots__/post_list.test.jsx.snap +0 -71
- package/src/components/post_view/post_list/index.js +0 -105
- package/src/components/post_view/post_list/post_list.jsx +0 -324
- package/src/components/post_view/post_list/post_list.test.jsx +0 -274
- package/src/components/post_view/post_list_row/__snapshots__/post_list_row.test.tsx.snap +0 -108
- package/src/components/post_view/post_list_row/index.ts +0 -42
- package/src/components/post_view/post_list_row/post_list_row.test.tsx +0 -176
- package/src/components/post_view/post_list_row/post_list_row.tsx +0 -165
- package/src/components/post_view/post_list_virtualized/latest_post_reader.test.jsx +0 -80
- package/src/components/post_view/post_list_virtualized/latest_post_reader.tsx +0 -46
- package/src/components/post_view/post_list_virtualized/post_list_virtualized.jsx +0 -626
- package/src/components/post_view/post_list_virtualized/post_list_virtualized.test.jsx +0 -623
- package/src/components/post_view/post_message_preview/__snapshots__/post_message_preview.test.tsx.snap +0 -88
- package/src/components/post_view/post_message_preview/index.ts +0 -35
- package/src/components/post_view/post_message_preview/post_message_preview.test.tsx +0 -50
- package/src/components/post_view/post_message_preview/post_message_preview.tsx +0 -92
- package/src/components/post_view/post_message_view/__snapshots__/post_message_view.test.tsx.snap +0 -242
- package/src/components/post_view/post_message_view/index.ts +0 -27
- package/src/components/post_view/post_message_view/post_message_view.test.tsx +0 -89
- package/src/components/post_view/post_message_view/post_message_view.tsx +0 -192
- package/src/components/post_view/post_pre_header/__snapshots__/post_pre_header.test.tsx.snap +0 -209
- package/src/components/post_view/post_pre_header/index.js +0 -18
- package/src/components/post_view/post_pre_header/post_pre_header.test.tsx +0 -188
- package/src/components/post_view/post_pre_header/post_pre_header.tsx +0 -148
- package/src/components/post_view/post_reaction/__snapshots__/post_reaction.test.tsx.snap +0 -63
- package/src/components/post_view/post_reaction/index.ts +0 -21
- package/src/components/post_view/post_reaction/post_reaction.test.tsx +0 -39
- package/src/components/post_view/post_reaction/post_reaction.tsx +0 -124
- package/src/components/post_view/post_time/index.ts +0 -18
- package/src/components/post_view/post_time/post_time.tsx +0 -113
- package/src/components/post_view/post_view.jsx +0 -83
- package/src/components/post_view/post_view.test.js +0 -53
- package/src/components/post_view/reaction/__snapshots__/reaction.test.jsx.snap +0 -339
- package/src/components/post_view/reaction/index.ts +0 -120
- package/src/components/post_view/reaction/reaction.scss +0 -157
- package/src/components/post_view/reaction/reaction.test.jsx +0 -80
- package/src/components/post_view/reaction/reaction.tsx +0 -263
- package/src/components/post_view/reaction/reaction_tooltip/index.test.js +0 -56
- package/src/components/post_view/reaction/reaction_tooltip/index.ts +0 -67
- package/src/components/post_view/reaction/reaction_tooltip/reaction_tooltip.tsx +0 -140
- package/src/components/post_view/reaction_list/__snapshots__/reactions_list.test.jsx.snap +0 -95
- package/src/components/post_view/reaction_list/index.ts +0 -52
- package/src/components/post_view/reaction_list/reaction_list.tsx +0 -201
- package/src/components/post_view/reaction_list/reactions_list.test.jsx +0 -57
- package/src/components/post_view/scroll_to_bottom_arrows.jsx +0 -37
- package/src/components/post_view/show_more/__snapshots__/show_more.test.tsx.snap +0 -237
- package/src/components/post_view/show_more/index.ts +0 -23
- package/src/components/post_view/show_more/show_more.test.tsx +0 -102
- package/src/components/post_view/show_more/show_more.tsx +0 -196
- package/src/components/status_icon.tsx +0 -49
- package/src/components/status_icon_new.tsx +0 -35
- package/src/compute.ts +0 -74
- package/src/containers/Dashboard.tsx +0 -527
- package/src/containers/DashboardWithLoader.tsx +0 -38
- package/src/containers/Inbox.tsx +0 -13
- package/src/containers/Loading.tsx +0 -12
- package/src/containers/Messenger.tsx +0 -18
- package/src/containers/__tests__/ApolloProvider.test.tsx +0 -48
- package/src/containers/__tests__/Counter.test.tsx +0 -49
- package/src/containers/__tests__/PersonList.test.tsx +0 -43
- package/src/containers/__tests__/__snapshots__/Counter.test.tsx.snap +0 -299
- package/src/containers/__tests__/__snapshots__/PersonList.test.tsx.snap +0 -230
- package/src/containers/__tests__/redux.test.tsx +0 -86
- package/src/containers/__tests__/setup.ts +0 -18
- package/src/containers/__tests__/utils.ts +0 -5
- package/src/containers/index.ts +0 -4
- package/src/index.ts +0 -5
- package/src/inversify-containers/index.ts +0 -1
- package/src/inversify-containers/module.ts +0 -4
- package/src/module.ts +0 -21
- package/src/packages/constants/constants.ts +0 -1831
- package/src/packages/types/channels.ts +0 -194
- package/src/packages/types/emojis.ts +0 -41
- package/src/packages/types/files.ts +0 -43
- package/src/packages/types/posts.ts +0 -155
- package/src/packages/types/reactions.ts +0 -8
- package/src/packages/types/teams.ts +0 -105
- package/src/packages/types/utilities.ts +0 -30
- package/src/services/index.ts +0 -0
- package/src/style.ts +0 -401
- package/src/utils/constants.tsx +0 -1120
- package/src/utils/i18n.tsx +0 -15
- package/src/utils/index.ts +0 -34
- package/src/utils/post_list.ts +0 -54
- package/src/utils/post_utils.ts +0 -33
- package/src/utils/user_agent.tsx +0 -153
- package/src/utils/utils.tsx +0 -54
- package/src/widgets/badges/badge.scss +0 -21
- package/src/widgets/badges/badge.tsx +0 -30
- package/src/widgets/badges/bot_badge.tsx +0 -31
- package/src/widgets/badges/guest_badge.tsx +0 -31
- package/src/widgets/badges/style.ts +0 -24
- package/src/widgets/icons/accordion_toggle_icon.tsx +0 -59
- package/src/widgets/icons/add_reaction_icon.tsx +0 -23
- package/src/widgets/icons/admin_eye_icon.tsx +0 -30
- package/src/widgets/icons/alert_icon.tsx +0 -22
- package/src/widgets/icons/archive_icon.tsx +0 -23
- package/src/widgets/icons/arrow_right_icon.tsx +0 -23
- package/src/widgets/icons/at_icon.tsx +0 -22
- package/src/widgets/icons/attachment_icon.tsx +0 -38
- package/src/widgets/icons/back_icon.tsx +0 -22
- package/src/widgets/icons/bot_icon.tsx +0 -23
- package/src/widgets/icons/camera_icon.tsx +0 -41
- package/src/widgets/icons/checkbox_checked_icon.tsx +0 -62
- package/src/widgets/icons/checkbox_partial_icon.tsx +0 -62
- package/src/widgets/icons/close_circle_icon.tsx +0 -25
- package/src/widgets/icons/close_circle_solid_icon.tsx +0 -25
- package/src/widgets/icons/close_icon.tsx +0 -27
- package/src/widgets/icons/dots_horizontal.tsx +0 -22
- package/src/widgets/icons/download_icon.tsx +0 -46
- package/src/widgets/icons/draft_icon.tsx +0 -32
- package/src/widgets/icons/ellipsis_h_icon.tsx +0 -23
- package/src/widgets/icons/email_icon.tsx +0 -23
- package/src/widgets/icons/emoji_icon.tsx +0 -22
- package/src/widgets/icons/fa_add_icon.tsx +0 -15
- package/src/widgets/icons/fa_back_icon.tsx +0 -16
- package/src/widgets/icons/fa_dropdown_icon.tsx +0 -15
- package/src/widgets/icons/fa_edit_icon.tsx +0 -16
- package/src/widgets/icons/fa_logout_icon.tsx +0 -15
- package/src/widgets/icons/fa_next_icon.tsx +0 -28
- package/src/widgets/icons/fa_previous_icon.tsx +0 -28
- package/src/widgets/icons/fa_reload_icon.tsx +0 -16
- package/src/widgets/icons/fa_remove_icon.tsx +0 -16
- package/src/widgets/icons/fa_search_icon.tsx +0 -16
- package/src/widgets/icons/fa_select_icon.tsx +0 -16
- package/src/widgets/icons/fa_success_icon.tsx +0 -16
- package/src/widgets/icons/fa_warning_icon.tsx +0 -28
- package/src/widgets/icons/flag_icon.tsx +0 -22
- package/src/widgets/icons/flag_icon_filled.tsx +0 -41
- package/src/widgets/icons/gfycat_icon.tsx +0 -38
- package/src/widgets/icons/gif_reactions_icon.tsx +0 -52
- package/src/widgets/icons/gif_search_clear_icon.tsx +0 -27
- package/src/widgets/icons/gif_search_icon.tsx +0 -29
- package/src/widgets/icons/gif_trending_icon.tsx +0 -49
- package/src/widgets/icons/globe_icon.tsx +0 -22
- package/src/widgets/icons/icons.stories.js +0 -110
- package/src/widgets/icons/info_icon.tsx +0 -40
- package/src/widgets/icons/info_small_icon.tsx +0 -35
- package/src/widgets/icons/invite_icon.tsx +0 -22
- package/src/widgets/icons/invite_members_icon.tsx +0 -22
- package/src/widgets/icons/leave_team_icon.tsx +0 -30
- package/src/widgets/icons/link_icon.tsx +0 -23
- package/src/widgets/icons/lock_icon.tsx +0 -41
- package/src/widgets/icons/mail_icon.tsx +0 -22
- package/src/widgets/icons/mail_plus_icon.tsx +0 -22
- package/src/widgets/icons/mattermost_logo.tsx +0 -40
- package/src/widgets/icons/member_icon.tsx +0 -22
- package/src/widgets/icons/mentions_icon.tsx +0 -24
- package/src/widgets/icons/menu_icon.tsx +0 -42
- package/src/widgets/icons/message_icon.tsx +0 -42
- package/src/widgets/icons/pin_icon.tsx +0 -23
- package/src/widgets/icons/plugin_channel_header_icon.tsx +0 -23
- package/src/widgets/icons/plugin_icon.tsx +0 -44
- package/src/widgets/icons/reply_icon.tsx +0 -23
- package/src/widgets/icons/scroll_to_bottom_icon.tsx +0 -23
- package/src/widgets/icons/search_icon.tsx +0 -22
- package/src/widgets/icons/shield_outline_icon.tsx +0 -23
- package/src/widgets/icons/status_away_avatar_icon.tsx +0 -33
- package/src/widgets/icons/status_away_icon.tsx +0 -33
- package/src/widgets/icons/status_dnd_avatar_icon.tsx +0 -41
- package/src/widgets/icons/status_dnd_icon.tsx +0 -33
- package/src/widgets/icons/status_offline_avatar_icon.tsx +0 -45
- package/src/widgets/icons/status_offline_icon.tsx +0 -31
- package/src/widgets/icons/status_online_avatar_icon.tsx +0 -49
- package/src/widgets/icons/status_online_icon.tsx +0 -33
- package/src/widgets/icons/team_info_icon.tsx +0 -32
- package/src/widgets/icons/unarchive_icon.tsx +0 -22
- package/src/widgets/icons/unread_below_icon.tsx +0 -23
- package/src/widgets/icons/user_guide_icon.tsx +0 -26
- package/src/widgets/overlay_trigger.tsx +0 -59
- package/src/widgets/shared_user_indicator.tsx +0 -37
- package/src/widgets/simple_tooltip/index.ts +0 -7
- package/src/widgets/simple_tooltip/simple_tooltip.tsx +0 -63
- package/src/widgets/users/avatar/avatar.test.tsx +0 -34
- package/src/widgets/users/avatar/avatar.tsx +0 -38
- package/src/widgets/users/avatar/index.ts +0 -4
- package/src/widgets/users/avatar/style.ts +0 -79
- package/src/widgets/users/avatars/__snapshots__/avatars.test.tsx.snap +0 -1585
- package/src/widgets/users/avatars/avatars.scss +0 -64
- package/src/widgets/users/avatars/avatars.test.tsx +0 -184
- package/src/widgets/users/avatars/avatars.tsx +0 -146
- package/src/widgets/users/avatars/index.ts +0 -4
- package/src/widgets/users/users.stories.tsx +0 -37
- package/tsconfig.json +0 -14
- package/webpack.config.js +0 -58
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import*as React from'react';import {useState,useEffect}from'react';import {
|
|
1
|
+
import*as React from'react';import {useState,useEffect}from'react';import {useAddMemberToChannelMutation,useSendMessagesMutation,useAddDirectChannelMutation,useAddChannelMutation}from'common/graphql';import {MenuHeader}from'../components/dashboard/menu_header.js';import {Modals}from'../components/dashboard/modals.js';import {DirectModal}from'../components/dashboard/modals/direct_modal.js';import {GoGlobe}from'@react-icons/all-files/go/GoGlobe.js';import {useTranslation}from'react-i18next';import {RiAdminFill}from'@react-icons/all-files/ri/RiAdminFill.js';import {indexOf}from'lodash-es';import {useSelector}from'react-redux';import {userSelector}from'@adminide-stack/user-auth0-client';import {useNavigate,useLocation,Link,Routes,Route}from'@remix-run/react';import {dashboardRoutes}from'../compute.js';React.lazy(() => import('./Messenger.js'));
|
|
2
2
|
const Dashboard = props => {
|
|
3
3
|
const [allUsers, usersToChat, currentUserRes, allChannels, getChannel] = props?.data;
|
|
4
4
|
const [channelInput, setChannelInput] = useState({});
|
|
5
|
-
// const [channels, setChannels] = useState([]);
|
|
6
5
|
const [publicChannels, setPublicChannels] = useState([]);
|
|
7
6
|
const [directChannels, setDirectChannels] = useState([]);
|
|
8
7
|
const [clickedChannel, setClickedChannel] = useState({});
|
|
9
|
-
const
|
|
8
|
+
const currentUser = useSelector(userSelector);
|
|
10
9
|
const [options, setOptions] = useState([]);
|
|
11
10
|
const [showDirectChl, setShowDirectChl] = useState(false);
|
|
12
11
|
const [selectedValues, setSelectedValues] = useState([]);
|
|
@@ -17,26 +16,19 @@ const Dashboard = props => {
|
|
|
17
16
|
const [publicChlModal, setPublicChlModal] = useState({
|
|
18
17
|
show: false
|
|
19
18
|
});
|
|
20
|
-
const [
|
|
21
|
-
left_bar: 'left_bar',
|
|
22
|
-
root_div: 'root_div'
|
|
23
|
-
});
|
|
19
|
+
const [isDrawerOpen, setIsDrawerOpen] = useState(false);
|
|
24
20
|
useSelector(state => state.user.authUserId);
|
|
25
21
|
const navigate = useNavigate();
|
|
26
22
|
const location = useLocation();
|
|
27
23
|
const {
|
|
28
24
|
t
|
|
29
25
|
} = useTranslation();
|
|
30
|
-
// const allUsers = useGetAllUsersQuery()
|
|
31
|
-
// const usersToChat = useUsersToChatQuery({ variables: { auth0Id: currentUserAuth0Id } })
|
|
32
|
-
// const currentUserRes = useCurrentUserQuery({ variables: { auth0Id: currentUserAuth0Id } })
|
|
33
26
|
const {
|
|
34
27
|
data,
|
|
35
28
|
loading,
|
|
36
29
|
error,
|
|
37
30
|
refetch
|
|
38
31
|
} = getChannel;
|
|
39
|
-
// const allChannels = useGetAllChannelQuery()
|
|
40
32
|
const [addMemberToChannelMutationInput, addMemberToChannelMutationResponse] = useAddMemberToChannelMutation({
|
|
41
33
|
update: (cache, mutationResult) => {
|
|
42
34
|
cache.modify({
|
|
@@ -71,7 +63,7 @@ const Dashboard = props => {
|
|
|
71
63
|
navigate(`/o/${location.pathname.split('/')[2]}/dashboard/message/${mutationResult.data.createDirectChannel.displayName.split('_').length === 2 ? mutationResult.data.createDirectChannel.displayName.split('_')[0].split('-')[0] !== currentUser.id ? mutationResult.data.createDirectChannel.displayName.split('_')[0].split('-')[1] : mutationResult.data.createDirectChannel.displayName.split('_')[1].split('-')[1] : mutationResult.data.createDirectChannel.title}`, {
|
|
72
64
|
state: {
|
|
73
65
|
channel: mutationResult.data.createDirectChannel,
|
|
74
|
-
currentUser:
|
|
66
|
+
currentUser: currentUser
|
|
75
67
|
}
|
|
76
68
|
});
|
|
77
69
|
cache.modify({
|
|
@@ -90,25 +82,28 @@ const Dashboard = props => {
|
|
|
90
82
|
navigate(`/o/${location.pathname.split('/')[2]}/dashboard/channel/${mutationResult.data.createChannel.title}`, {
|
|
91
83
|
state: {
|
|
92
84
|
channel: mutationResult.data.createChannel,
|
|
93
|
-
currentUser:
|
|
85
|
+
currentUser: currentUser
|
|
94
86
|
}
|
|
95
87
|
});
|
|
96
88
|
}
|
|
97
89
|
});
|
|
98
|
-
|
|
99
|
-
if (!
|
|
100
|
-
|
|
90
|
+
const handleJoin = React.useCallback(channelId => {
|
|
91
|
+
if (!currentUser) {
|
|
92
|
+
console.error('Current user is not loaded yet');
|
|
93
|
+
return;
|
|
101
94
|
}
|
|
102
|
-
}, [currentUserRes.data, currentUserRes.loading]);
|
|
103
|
-
const handleJoin = channelId => {
|
|
104
95
|
addMemberToChannelMutationInput({
|
|
105
96
|
variables: {
|
|
106
97
|
channelId: channelId,
|
|
107
98
|
memberId: currentUser.id
|
|
108
99
|
}
|
|
109
100
|
}).then(response => {
|
|
101
|
+
// Use currentUser from Redux selector
|
|
102
|
+
if (!currentUser) {
|
|
103
|
+
console.error('Current user is not available');
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
110
106
|
setClickedChannel(response.data.addMemberToChannel);
|
|
111
|
-
// setShowDirectMore(false)
|
|
112
107
|
setDirectMoreModal({
|
|
113
108
|
...directMoreModal,
|
|
114
109
|
showDirectMore: false
|
|
@@ -123,14 +118,12 @@ const Dashboard = props => {
|
|
|
123
118
|
}
|
|
124
119
|
});
|
|
125
120
|
});
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
const handleGo = () => {
|
|
133
|
-
// console.log('------directModal------', directModal)
|
|
121
|
+
}, [currentUser, addMemberToChannelMutationInput, sendMessagesMutationInput, directMoreModal]);
|
|
122
|
+
const handleGo = React.useCallback(() => {
|
|
123
|
+
if (!currentUser) {
|
|
124
|
+
console.error('Current user is not loaded yet');
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
134
127
|
if (selectedValues) {
|
|
135
128
|
let uids = [];
|
|
136
129
|
let dName = currentUser.username + ',';
|
|
@@ -154,7 +147,7 @@ const Dashboard = props => {
|
|
|
154
147
|
});
|
|
155
148
|
handleClose('directChannel');
|
|
156
149
|
}
|
|
157
|
-
};
|
|
150
|
+
}, [currentUser, selectedValues, createDirectChannel]);
|
|
158
151
|
useEffect(() => {
|
|
159
152
|
if (!addedDirectChannel.loading && addedDirectChannel.data) {
|
|
160
153
|
setClickedChannel(addedDirectChannel.data.createDirectChannel);
|
|
@@ -171,26 +164,25 @@ const Dashboard = props => {
|
|
|
171
164
|
uid: `${usr.id}`
|
|
172
165
|
},
|
|
173
166
|
label: React.createElement("div", {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}, React.createElement(
|
|
178
|
-
className:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}))
|
|
167
|
+
className: "flex items-center space-x-4 p-2 hover:bg-gray-50 cursor-pointer"
|
|
168
|
+
}, React.createElement("div", {
|
|
169
|
+
className: "flex-shrink-0"
|
|
170
|
+
}, React.createElement("div", {
|
|
171
|
+
className: `w-10 h-10 rounded-full flex items-center justify-center text-white bg-[#${Math.floor(Math.random() * 16777215).toString(16)}]`
|
|
172
|
+
}, usr.username.match(/\b(\w)/g).join('').toUpperCase())), React.createElement("div", {
|
|
173
|
+
className: "flex-1 min-w-0"
|
|
174
|
+
}, React.createElement("p", {
|
|
175
|
+
className: "text-sm font-medium text-gray-900"
|
|
176
|
+
}, "@", usr.username), React.createElement("p", {
|
|
177
|
+
className: "text-sm text-gray-500 truncate"
|
|
178
|
+
}, usr.email)))
|
|
187
179
|
});
|
|
188
180
|
});
|
|
189
181
|
setOptions(tempOpt);
|
|
190
182
|
}
|
|
191
183
|
}, [usersToChat.data, usersToChat.loading]);
|
|
192
184
|
useEffect(() => {
|
|
193
|
-
if (!loading) {
|
|
185
|
+
if (!loading && currentUser) {
|
|
194
186
|
let diChal = [];
|
|
195
187
|
let fChannel = [];
|
|
196
188
|
let joinedChannel = [];
|
|
@@ -225,9 +217,7 @@ const Dashboard = props => {
|
|
|
225
217
|
}
|
|
226
218
|
});
|
|
227
219
|
}
|
|
228
|
-
// setChannels([...data.channelsByUser, ...fChannel])
|
|
229
220
|
setPublicChannels(joinedChannel);
|
|
230
|
-
// setModalPublicChannels(modelChannel)
|
|
231
221
|
setDirectMoreModal({
|
|
232
222
|
...directMoreModal,
|
|
233
223
|
modalPublicChannels: modelChannel
|
|
@@ -293,18 +283,7 @@ const Dashboard = props => {
|
|
|
293
283
|
}
|
|
294
284
|
}, [addedDirectChannel.loading, addedDirectChannel.data]);
|
|
295
285
|
const handleClass = () => {
|
|
296
|
-
|
|
297
|
-
if (!oldClasses.left_bar.split(' ').includes('drawer_style')) {
|
|
298
|
-
setClasses({
|
|
299
|
-
left_bar: `${oldClasses.left_bar} drawer_style`,
|
|
300
|
-
root_div: `${oldClasses.root_div} clicked_class`
|
|
301
|
-
});
|
|
302
|
-
} else {
|
|
303
|
-
setClasses({
|
|
304
|
-
left_bar: 'left_bar',
|
|
305
|
-
root_div: 'root_div'
|
|
306
|
-
});
|
|
307
|
-
}
|
|
286
|
+
setIsDrawerOpen(!isDrawerOpen);
|
|
308
287
|
};
|
|
309
288
|
const handleSelect = selectedOption => {
|
|
310
289
|
setSelectedValues(selectedOption);
|
|
@@ -318,16 +297,20 @@ const Dashboard = props => {
|
|
|
318
297
|
}
|
|
319
298
|
});
|
|
320
299
|
}, []);
|
|
300
|
+
// Defensive check to prevent rendering when user data is not available
|
|
301
|
+
if (!currentUser) {
|
|
302
|
+
return React.createElement("div", null, "Loading...");
|
|
303
|
+
}
|
|
321
304
|
return React.createElement("div", {
|
|
322
|
-
className:
|
|
305
|
+
className: "min-h-screen bg-gray-50"
|
|
323
306
|
}, React.createElement("div", {
|
|
324
|
-
className:
|
|
307
|
+
className: `flex h-screen ${isDrawerOpen ? 'drawer-open' : ''}`
|
|
325
308
|
}, React.createElement(DirectModal, {
|
|
326
|
-
|
|
309
|
+
show: showDirectChl,
|
|
310
|
+
onHide: () => handleClose('directChannel'),
|
|
327
311
|
handleGo: handleGo,
|
|
328
312
|
handleSelect: handleSelect,
|
|
329
313
|
selectedValues: selectedValues,
|
|
330
|
-
showDirectChl: showDirectChl,
|
|
331
314
|
options: options
|
|
332
315
|
}), React.createElement(Modals, {
|
|
333
316
|
directMoreModal: directMoreModal,
|
|
@@ -339,84 +322,87 @@ const Dashboard = props => {
|
|
|
339
322
|
clickedChannel: clickedChannel,
|
|
340
323
|
handleClass: handleClass
|
|
341
324
|
}), React.createElement("div", {
|
|
342
|
-
className: "
|
|
325
|
+
className: "flex-1 flex overflow-hidden",
|
|
343
326
|
onClick: () => {
|
|
344
|
-
if (
|
|
327
|
+
if (isDrawerOpen) {
|
|
345
328
|
handleClass();
|
|
346
329
|
}
|
|
347
330
|
}
|
|
348
331
|
}, React.createElement("div", {
|
|
349
|
-
className:
|
|
332
|
+
className: `w-64 flex-shrink-0 bg-gray-800 overflow-y-auto transition-transform duration-300 ease-in-out ${isDrawerOpen ? 'translate-x-0' : '-translate-x-full md:translate-x-0'}`
|
|
333
|
+
}, React.createElement("div", {
|
|
334
|
+
className: "flex flex-col h-full"
|
|
335
|
+
}, React.createElement("div", {
|
|
336
|
+
className: "space-y-4 py-4"
|
|
350
337
|
}, React.createElement("div", {
|
|
351
|
-
className: "
|
|
352
|
-
}, React.createElement("
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
className: "add-channel-btn",
|
|
338
|
+
className: "px-4"
|
|
339
|
+
}, React.createElement("h4", {
|
|
340
|
+
className: "text-gray-400 uppercase text-sm font-semibold flex justify-between items-center"
|
|
341
|
+
}, React.createElement("span", null, t('messenger_box_browser.PUBLIC_CHANNELS')), React.createElement("button", {
|
|
342
|
+
className: "text-gray-400 hover:text-white w-6 h-6 rounded flex items-center justify-center hover:bg-gray-700",
|
|
357
343
|
onClick: () => handleShow('publicChannel')
|
|
358
|
-
}, React.createElement("span", null, "+"))),
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
id: "sidebarPublicChannelsMore",
|
|
379
|
-
className: "nav-more",
|
|
344
|
+
}, React.createElement("span", null, "+"))), React.createElement("ul", {
|
|
345
|
+
className: "mt-2 space-y-1"
|
|
346
|
+
}, publicChannels.map((chl, index) => React.createElement(Link, {
|
|
347
|
+
key: chl.id,
|
|
348
|
+
to: `/o/${location.pathname.split('/')[2]}/dashboard/channel/${chl.title}`,
|
|
349
|
+
state: {
|
|
350
|
+
channel: chl,
|
|
351
|
+
currentUser: currentUser
|
|
352
|
+
}
|
|
353
|
+
}, React.createElement("li", {
|
|
354
|
+
className: "group"
|
|
355
|
+
}, React.createElement("a", {
|
|
356
|
+
className: "flex items-center px-2 py-2 text-gray-300 rounded-md hover:bg-gray-700 hover:text-white group-hover:bg-gray-700",
|
|
357
|
+
onClick: () => handleChannelClick(chl)
|
|
358
|
+
}, React.createElement(GoGlobe, {
|
|
359
|
+
className: "mr-2 h-5 w-5"
|
|
360
|
+
}), React.createElement("span", {
|
|
361
|
+
className: "truncate"
|
|
362
|
+
}, chl.title)))))), React.createElement("button", {
|
|
363
|
+
className: "mt-2 text-sm text-gray-400 hover:text-white w-full text-left px-2 py-1",
|
|
380
364
|
onClick: () => setDirectMoreModal({
|
|
381
365
|
...directMoreModal,
|
|
382
366
|
showDirectMore: true
|
|
383
367
|
})
|
|
384
|
-
},
|
|
385
|
-
className: "
|
|
386
|
-
}, React.createElement("h4",
|
|
387
|
-
className: "
|
|
388
|
-
}, React.createElement("span", null,
|
|
389
|
-
className: "
|
|
390
|
-
}, React.createElement("
|
|
391
|
-
className: "
|
|
368
|
+
}, t('messenger_box_browser.more'))), React.createElement("div", {
|
|
369
|
+
className: "px-4"
|
|
370
|
+
}, React.createElement("h4", {
|
|
371
|
+
className: "text-gray-400 uppercase text-sm font-semibold flex justify-between items-center"
|
|
372
|
+
}, React.createElement("span", null, t('messenger_box_browser.PRIVATE_CHANNELS')), React.createElement("button", {
|
|
373
|
+
className: "text-gray-400 hover:text-white w-6 h-6 rounded flex items-center justify-center hover:bg-gray-700"
|
|
374
|
+
}, React.createElement("span", null, "+")))), React.createElement("div", {
|
|
375
|
+
className: "px-4"
|
|
376
|
+
}, React.createElement("h4", {
|
|
377
|
+
className: "text-gray-400 uppercase text-sm font-semibold flex justify-between items-center"
|
|
378
|
+
}, React.createElement("span", null, t('messenger_box_browser.DIRECT_MESSAGES')), React.createElement("button", {
|
|
379
|
+
className: "text-gray-400 hover:text-white w-6 h-6 rounded flex items-center justify-center hover:bg-gray-700",
|
|
392
380
|
onClick: () => handleShow('directChannel')
|
|
393
|
-
}, React.createElement("span", null, "+"))),
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
})))), React.createElement("div", {
|
|
416
|
-
className: "route_view"
|
|
381
|
+
}, React.createElement("span", null, "+"))), React.createElement("ul", {
|
|
382
|
+
className: "mt-2 space-y-1"
|
|
383
|
+
}, directChannels.map(cnl => React.createElement(Link, {
|
|
384
|
+
key: cnl.id,
|
|
385
|
+
to: `/o/${location.pathname.split('/')[2]}/dashboard/message/${cnl.displayName.split('_').length === 2 ? cnl.displayName.split('_')[0].split('-')[0] !== currentUser?.id ? cnl.displayName.split('_')[0].split('-')[1] : cnl.displayName.split('_')[1].split('-')[1] : cnl.title}`,
|
|
386
|
+
state: {
|
|
387
|
+
channel: cnl,
|
|
388
|
+
currentUser: currentUser
|
|
389
|
+
}
|
|
390
|
+
}, React.createElement("li", {
|
|
391
|
+
className: "group"
|
|
392
|
+
}, React.createElement("a", {
|
|
393
|
+
className: "flex items-center px-2 py-2 text-gray-300 rounded-md hover:bg-gray-700 hover:text-white group-hover:bg-gray-700",
|
|
394
|
+
onClick: () => handleChannelClick(cnl)
|
|
395
|
+
}, cnl.displayName.split(',').length > 1 ? React.createElement("span", {
|
|
396
|
+
className: "w-5 h-5 flex items-center justify-center bg-gray-600 rounded-full text-xs mr-2"
|
|
397
|
+
}, cnl.displayName.split(',').length) : React.createElement(RiAdminFill, {
|
|
398
|
+
className: "mr-2 h-5 w-5"
|
|
399
|
+
}), React.createElement("span", {
|
|
400
|
+
className: "truncate"
|
|
401
|
+
}, cnl.displayName.split('_').length === 2 ? cnl.displayName.split('_')[0].split('-')[0] !== currentUser?.id ? cnl.displayName.split('_')[0].split('-')[1] : cnl.displayName.split('_')[1].split('-')[1] : cnl.displayName)))))))))), React.createElement("div", {
|
|
402
|
+
className: "flex-1 overflow-auto bg-white"
|
|
417
403
|
}, React.createElement(Routes, null, dashboardRoutes.map((route, index) => React.createElement(Route, {
|
|
418
404
|
key: index,
|
|
419
405
|
path: route.path,
|
|
420
|
-
|
|
406
|
+
element: React.createElement(route.component, null)
|
|
421
407
|
})))))));
|
|
422
408
|
};export{Dashboard as default};//# sourceMappingURL=Dashboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sources":["../../src/containers/Dashboard.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dashboard.js","sources":["../../src/containers/Dashboard.tsx"],"sourcesContent":[null],"names":[],"mappings":"yyBAqBkB,KAAK,CAAC,IAAI,CAAC,MAAM,OAAO,gBAAa,CAAC;AAExD,MAAM,SAAS,GAAa,KAAC,IAAY;AACrC,EAAA,MAAA,CAAA,QAAO,EAAQ,WAAE,EAAW,cAAE,EAAc,WAAE,EAAW,cAAa,KAAG,EAAK;QAC9E,CAAA,YAAO,EAAY,eAAE,CAAA,WAAmB,CAAA,EAAc,CAAA;QACtD,CAAA,cAAO,EAAc,iBAAE,CAAA,WAAqB,CAAA,EAAS,CAAA;QACrD,CAAA,cAAO,EAAc,iBAAE,CAAA,WAAqB,CAAA,EAAS,CAAA;QACrD,CAAA,cAAO,EAAc,iBAAE,CAAA,WAAqB,CAAA,EAAc,CAAA;AAC1D,EAAA,MAAA,cAAiB,WAAQ,CAAA,YAAY,CAAA;QACrC,CAAA,OAAO,EAAO,UAAE,CAAA,WAAc,CAAA,EAAS,CAAA;QACvC,CAAA,aAAO,EAAa,gBAAE,CAAA,WAAoB,CAAA,KAAS,CAAA;QACnD,CAAA,cAAO,EAAc,iBAAE,CAAA,WAAqB,CAAA,EAAc,CAAA;AAC1D,EAAA,MAAA,CAAA,eAAO,EAAe,sBAAqB;AAC3C,IAAA,cAAO,EAAA,KAAc;IACrB,mBAAmB,EA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|
-
{"version":3,"file":"DashboardWithLoader.d.ts","sourceRoot":"","sources":["../../src/containers/DashboardWithLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardWithLoader.d.ts","sourceRoot":"","sources":["../../src/containers/DashboardWithLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,QAAA,MAAM,mBAAmB,GAAI,UAAK,sBAqCjC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default from'react';import {Await}from'@remix-run/react';import {
|
|
1
|
+
import React__default from'react';import {Await}from'@remix-run/react';import {useGetAllUsersQuery,useUsersToChatQuery,useCurrentUserQuery,useGetChannelsByUserQuery,useGetAllChannelQuery}from'common/graphql';import {useSelector}from'react-redux';import Dashboard from'./Dashboard.js';const DashboardWithLoader = props => {
|
|
2
2
|
const currentUserAuth0Id = useSelector(state => state.user.authUserId);
|
|
3
3
|
const allUsers = useGetAllUsersQuery({
|
|
4
4
|
variables: {},
|
|
@@ -8,13 +8,15 @@ import React__default from'react';import {Await}from'@remix-run/react';import {S
|
|
|
8
8
|
variables: {
|
|
9
9
|
auth0Id: currentUserAuth0Id
|
|
10
10
|
},
|
|
11
|
-
fetchPolicy: 'cache-only'
|
|
11
|
+
fetchPolicy: 'cache-only',
|
|
12
|
+
skip: !currentUserAuth0Id
|
|
12
13
|
});
|
|
13
14
|
const currentUserRes = useCurrentUserQuery({
|
|
14
15
|
variables: {
|
|
15
16
|
auth0Id: currentUserAuth0Id
|
|
16
17
|
},
|
|
17
|
-
fetchPolicy: 'cache-only'
|
|
18
|
+
fetchPolicy: 'cache-only',
|
|
19
|
+
skip: !currentUserAuth0Id
|
|
18
20
|
});
|
|
19
21
|
const getChannel = useGetChannelsByUserQuery({
|
|
20
22
|
variables: {},
|
|
@@ -25,10 +27,17 @@ import React__default from'react';import {Await}from'@remix-run/react';import {S
|
|
|
25
27
|
fetchPolicy: 'cache-only'
|
|
26
28
|
});
|
|
27
29
|
return React__default.createElement(React__default.Suspense, {
|
|
28
|
-
fallback: React__default.createElement(
|
|
30
|
+
fallback: React__default.createElement("div", {
|
|
31
|
+
className: "flex items-center justify-center w-full h-full"
|
|
32
|
+
}, React__default.createElement("div", {
|
|
33
|
+
className: "animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-blue-500"
|
|
34
|
+
}))
|
|
29
35
|
}, React__default.createElement(Await, {
|
|
30
36
|
resolve: Promise.all([allUsers, usersToChat, currentUserRes, allChannels, getChannel]),
|
|
31
|
-
errorElement: React__default.createElement(
|
|
37
|
+
errorElement: React__default.createElement("div", {
|
|
38
|
+
className: "p-4 mb-4 text-sm text-red-700 bg-red-100 rounded-lg",
|
|
39
|
+
role: "alert"
|
|
40
|
+
}, "Error loading Dashboard page!")
|
|
32
41
|
}, React__default.createElement(Dashboard, {
|
|
33
42
|
data: [allUsers, usersToChat, currentUserRes, allChannels, getChannel],
|
|
34
43
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardWithLoader.js","sources":["../../src/containers/DashboardWithLoader.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardWithLoader.js","sources":["../../src/containers/DashboardWithLoader.tsx"],"sourcesContent":[null],"names":[],"mappings":"4RAYA,MAAM,mBAAmB,GAAG,KAAC,IAAO;AAChC,EAAA,MAAA,kBAAM,GAAkB,WAAG,CAAA,KAAa,IAAU,UAAW,CAAA,UAAK,CAAA;AAElE,EAAA,MAAA,QAAM,GAAQ,mBAAG,CAAA;IACjB,SAAM,EAAA,EAAA;AACF,IAAA,WAAA,EAAS;AACT,GAAA,CAAA;QACA,WAAO,GAAA,mBAAkB,CAAA;AAC5B,IAAA,SAAE,EAAA;MACH,OAAM,EAAA;AACF,KAAA;AACA,IAAA,WAAA,EAAA,YAAa;QACb,EAAA,CAAA;AACH,GAAA,CAAA;AACD,EAAA,MAAA,cAAgB,GAAG,mBAAA,CAAA;AACnB,IAAA,SAAM,EAAA;MAEN,OACI,EAAA;AAGY,KAAA;AAIR,IAAA,WAAA,EAAA,YAAC;;AAYb,GAAE,CAAA;AACF,EAAA,MAAA,sCAAmC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Inbox.js","sources":["../../src/containers/Inbox.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Inbox.js","sources":["../../src/containers/Inbox.tsx"],"sourcesContent":[null],"names":[],"mappings":"0FAIA,MAAM,KAAK,GAAE,MAAK;AACd,EAAA,OAAA,KACI,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,EAAA,KAAA,CAAA,aAAA,CAAA,YAAA,EAAA,IAAA,CAAA,CAAA;AACI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Messenger.js","sources":["../../src/containers/Messenger.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Messenger.js","sources":["../../src/containers/Messenger.tsx"],"sourcesContent":[null],"names":[],"mappings":"8FASA,MAAM,SAAS,GAA2B,CAAC;SACvC;AAKJ,EAAE;AAEF,CAAA,KAAA;;;;;"}
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"6KAAA;AAKA,qBAAe,IAAI,OAAO,CAAC;AACvB,EAAA,WAAA,EAAW,
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"6KAAA;AAKA,qBAAe,IAAI,OAAO,CAAC;AACvB,EAAA,WAAA,EAAW,cAAE;kBACb;AACA,EAAA,iBAAA,EAAiB;AACjB,IAAA,QAAA,EAAA,MAAc;;;cAGV,EAAA,CAAA,kCAAmC,EAAA,8CAAA,EAAA,mCAAA;AACtC;;;;;;"}
|
package/lib/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,qBAAgB,EAAE,iBAAY,QAU9B,CAAC;AAElC,eAAO,MAAM,iBAAiB,GAAI,qBAAgB,EAAE,mBAAc,QAWjC,CAAC;AAElC,eAAO,MAAM,eAAe,GAAI,qBAAgB,EAAE,iBAAY,QAQ7B,CAAC"}
|
package/lib/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,EAAE,YAAY,KAC3D,gBAAgB,CAAA,GAAA,CAAA,IAAA,IAAA;AACX,EAAA,IAAA,YAAa,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA,CAAA,KAAA,EAAA,EAAA;AACV,IAAA,MAAI;UACA;eACO;AACH,MAAA,GAAA;YACF;IACN,OAAC;AACL,MAAE,CAAA,IAAA,GAAA;QACD,IAAO,EAAC,IAAK,CAAA,GAAI;AAE1B,QAAO,GAAA;AAEE;AACG,KAAA;AACI,EAAA;SACA,CAAA,KAAO,IAAA,KAAA;AACH,MAAC,iBAAW,GAAA,CAAA,gBAAA,EAAA,cAAA,KAAA,gBAAA,CAAA,GAAA,CAAA,IAAA,IAAA;oBACd,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA,CAAA,KAAA,EAAA,EAAA;IACN,MAAC;AACD,MAAA;AACJ,KAAE,GAAA,IAAA;WACK;AAEf,MAAM,CAAC,IAAA,GAAM;AAEJ,KAAA;AACG,EAAA;SACI,IAAA;AACA,CAAA,CAAA,CAAA,MAAA,CAAA,KAAO,IAAI,KAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple_tooltip.d.ts","sourceRoot":"","sources":["../../../src/widgets/simple_tooltip/simple_tooltip.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,cAAc,EAAY,aAAa,EAAU,MAAM,OAAO,CAAC;AAGzF,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAE9D,KAAK,KAAK,GAAG;IACT,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB,CAAA;AAED,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"simple_tooltip.d.ts","sourceRoot":"","sources":["../../../src/widgets/simple_tooltip/simple_tooltip.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,cAAc,EAAY,aAAa,EAAU,MAAM,OAAO,CAAC;AAGzF,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAE9D,KAAK,KAAK,GAAG;IACT,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB,CAAA;AAED,QAAA,MAAM,aAAa,GAAI,6EASpB,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAAE,SAAS,CAAC,sBAoBhE,CAAC;AAEF,eAAe,aAAa,CAAC;AAE7B,wBAAgB,wBAAwB,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC,CAW1H"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/platform-browser",
|
|
3
|
-
"version": "10.0.3-alpha.
|
|
3
|
+
"version": "10.0.3-alpha.171",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"watch": "yarn build:lib:watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"@messenger-box/core": "10.0.3-alpha.
|
|
25
|
-
"@messenger-box/platform-client": "10.0.3-alpha.
|
|
23
|
+
"@adminide-stack/file-info-client": "^5.4.4-alpha.3",
|
|
24
|
+
"@messenger-box/core": "10.0.3-alpha.165",
|
|
25
|
+
"@messenger-box/platform-client": "10.0.3-alpha.171",
|
|
26
26
|
"css-vars-ponyfill": "2.4.5",
|
|
27
27
|
"dynamic-virtualized-list": "github:mattermost/dynamic-virtualized-list#119db968c96643c7106d4d2c965f05b2e251bc83",
|
|
28
28
|
"emoji-mart": "^3.0.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"typescript": {
|
|
51
51
|
"definition": "lib/index.d.ts"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "c1244ee70b3e40dec9916c2ef7e801695ecc7b5a"
|
|
54
54
|
}
|