@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,49 +0,0 @@
|
|
|
1
|
-
// import 'jest';
|
|
2
|
-
// import * as React from 'react';
|
|
3
|
-
// import { shallow, mount } from 'enzyme';
|
|
4
|
-
// import * as Sinon from 'sinon';
|
|
5
|
-
// import * as TestUtils from 'react-dom/test-utils';
|
|
6
|
-
// import { createStore, combineReducers } from 'redux';
|
|
7
|
-
// import configureStore from 'redux-mock-store';
|
|
8
|
-
// import { Counter } from '../Counter';
|
|
9
|
-
// import { reducers, Store } from '@messenger-box/platform-browser';
|
|
10
|
-
// import { Provider } from 'react-redux';
|
|
11
|
-
// import './setup';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// describe('components/Counter', () => {
|
|
15
|
-
// it('renders', () => {
|
|
16
|
-
// const store: any = createStore(combineReducers<Store.Sample>(reducers));
|
|
17
|
-
|
|
18
|
-
// expect(shallow(
|
|
19
|
-
// <Counter label="a counter!" store={store} />,
|
|
20
|
-
// ).shallow()).toMatchSnapshot();
|
|
21
|
-
// });
|
|
22
|
-
|
|
23
|
-
// describe('COUNTER --- react-redux clicking "increment"', () => {
|
|
24
|
-
// let counter;
|
|
25
|
-
// let store;
|
|
26
|
-
|
|
27
|
-
// beforeEach(() => {
|
|
28
|
-
// store = createStore(combineReducers(reducers));
|
|
29
|
-
// counter = mount(
|
|
30
|
-
// <Provider store={store}>
|
|
31
|
-
// <Counter label="a counter!'" />
|
|
32
|
-
// </Provider>,
|
|
33
|
-
// );
|
|
34
|
-
// });
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// it('+++ check Props after increments counter', () => {
|
|
38
|
-
// const increment = counter.find('button').first();
|
|
39
|
-
// increment.simulate('click');
|
|
40
|
-
// increment.simulate('click');
|
|
41
|
-
// increment.simulate('click');
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
// const getText = () => counter.find('pre').text();
|
|
45
|
-
// expect(JSON.parse(getText()).counter.value).toBe(3);
|
|
46
|
-
|
|
47
|
-
// });
|
|
48
|
-
// });
|
|
49
|
-
// });
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// import 'jest';
|
|
2
|
-
// import * as React from 'react';
|
|
3
|
-
// import { shallow, mount } from 'enzyme';
|
|
4
|
-
// import ApolloClient from 'apollo-client';
|
|
5
|
-
// import { MockedProvider } from 'react-apollo/test-utils';
|
|
6
|
-
// import './setup';
|
|
7
|
-
|
|
8
|
-
// declare function require(name: string);
|
|
9
|
-
// import * as TestUtils from 'react-addons-test-utils';
|
|
10
|
-
// import { createStore, combineReducers, applyMiddleware } from 'redux';
|
|
11
|
-
// import gql from 'graphql-tag';
|
|
12
|
-
|
|
13
|
-
// import { PersonList } from '../PersonList';
|
|
14
|
-
// import { reducers, Store } from '@messenger-box/platform-browser';
|
|
15
|
-
// import { ApolloProvider, graphql, createNetworkInterface } from 'react-apollo';
|
|
16
|
-
// import { database } from '@messenger-box/graphql-schema';
|
|
17
|
-
// import { mockNetworkInterface } from 'apollo-test-utils';
|
|
18
|
-
// import { PERSONS_QUERY } from '@messenger-box/platform-browser';
|
|
19
|
-
|
|
20
|
-
// describe('components/PersonList', () => {
|
|
21
|
-
// it('renders correctly', (done) => {
|
|
22
|
-
// const networkInterface = mockNetworkInterface({
|
|
23
|
-
// request: { query: PERSONS_QUERY, variables: {} }, result: { data: database.persons },
|
|
24
|
-
// });
|
|
25
|
-
|
|
26
|
-
// const client = new ApolloClient({
|
|
27
|
-
// networkInterface: networkInterface,
|
|
28
|
-
// });
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// const store = createStore(combineReducers({
|
|
32
|
-
// ...reducers,
|
|
33
|
-
// apollo: client.reducer(),
|
|
34
|
-
// }), applyMiddleware(client.middleware()));
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// expect(mount(
|
|
38
|
-
// <ApolloProvider client={client} store={store}>
|
|
39
|
-
// <PersonList />
|
|
40
|
-
// </ApolloProvider>,
|
|
41
|
-
// )).toMatchSnapshot();
|
|
42
|
-
// });
|
|
43
|
-
// });
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`components/Counter renders 1`] = `
|
|
4
|
-
ShallowWrapper {
|
|
5
|
-
"complexSelector": ComplexSelector {
|
|
6
|
-
"buildPredicate": [Function],
|
|
7
|
-
"childrenOfNode": [Function],
|
|
8
|
-
"findWhereUnwrapped": [Function],
|
|
9
|
-
},
|
|
10
|
-
"length": 1,
|
|
11
|
-
"node": <form>
|
|
12
|
-
<legend>
|
|
13
|
-
a counter!
|
|
14
|
-
</legend>
|
|
15
|
-
<pre>
|
|
16
|
-
{
|
|
17
|
-
"counter": {
|
|
18
|
-
"value": 0
|
|
19
|
-
},
|
|
20
|
-
"isSaving": false,
|
|
21
|
-
"isLoading": false
|
|
22
|
-
}
|
|
23
|
-
</pre>
|
|
24
|
-
<button
|
|
25
|
-
onClick={[Function]}
|
|
26
|
-
>
|
|
27
|
-
click me!
|
|
28
|
-
</button>
|
|
29
|
-
<button
|
|
30
|
-
disabled={false}
|
|
31
|
-
onClick={[Function]}
|
|
32
|
-
>
|
|
33
|
-
save
|
|
34
|
-
</button>
|
|
35
|
-
<button
|
|
36
|
-
disabled={false}
|
|
37
|
-
onClick={[Function]}
|
|
38
|
-
>
|
|
39
|
-
load
|
|
40
|
-
</button>
|
|
41
|
-
</form>,
|
|
42
|
-
"nodes": Array [
|
|
43
|
-
<form>
|
|
44
|
-
<legend>
|
|
45
|
-
a counter!
|
|
46
|
-
</legend>
|
|
47
|
-
<pre>
|
|
48
|
-
{
|
|
49
|
-
"counter": {
|
|
50
|
-
"value": 0
|
|
51
|
-
},
|
|
52
|
-
"isSaving": false,
|
|
53
|
-
"isLoading": false
|
|
54
|
-
}
|
|
55
|
-
</pre>
|
|
56
|
-
<button
|
|
57
|
-
onClick={[Function]}
|
|
58
|
-
>
|
|
59
|
-
click me!
|
|
60
|
-
</button>
|
|
61
|
-
<button
|
|
62
|
-
disabled={false}
|
|
63
|
-
onClick={[Function]}
|
|
64
|
-
>
|
|
65
|
-
save
|
|
66
|
-
</button>
|
|
67
|
-
<button
|
|
68
|
-
disabled={false}
|
|
69
|
-
onClick={[Function]}
|
|
70
|
-
>
|
|
71
|
-
load
|
|
72
|
-
</button>
|
|
73
|
-
</form>,
|
|
74
|
-
],
|
|
75
|
-
"options": Object {},
|
|
76
|
-
"renderer": ReactShallowRenderer {
|
|
77
|
-
"_instance": ShallowComponentWrapper {
|
|
78
|
-
"_calledComponentWillUnmount": false,
|
|
79
|
-
"_compositeType": 0,
|
|
80
|
-
"_context": Object {},
|
|
81
|
-
"_currentElement": <CounterComponent
|
|
82
|
-
counter={
|
|
83
|
-
Object {
|
|
84
|
-
"value": 0,
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
error=""
|
|
88
|
-
increment={[Function]}
|
|
89
|
-
isLoading={false}
|
|
90
|
-
isSaving={false}
|
|
91
|
-
label="a counter!"
|
|
92
|
-
load={[Function]}
|
|
93
|
-
save={[Function]}
|
|
94
|
-
store={
|
|
95
|
-
Object {
|
|
96
|
-
"dispatch": [Function],
|
|
97
|
-
"getState": [Function],
|
|
98
|
-
"replaceReducer": [Function],
|
|
99
|
-
"subscribe": [Function],
|
|
100
|
-
Symbol(observable): [Function],
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
storeSubscription={
|
|
104
|
-
Subscription {
|
|
105
|
-
"listeners": Object {
|
|
106
|
-
"notify": [Function],
|
|
107
|
-
},
|
|
108
|
-
"onStateChange": [Function],
|
|
109
|
-
"parentSub": undefined,
|
|
110
|
-
"store": Object {
|
|
111
|
-
"dispatch": [Function],
|
|
112
|
-
"getState": [Function],
|
|
113
|
-
"replaceReducer": [Function],
|
|
114
|
-
"subscribe": [Function],
|
|
115
|
-
Symbol(observable): [Function],
|
|
116
|
-
},
|
|
117
|
-
"unsubscribe": null,
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/>,
|
|
121
|
-
"_debugID": 3,
|
|
122
|
-
"_hostContainerInfo": null,
|
|
123
|
-
"_hostParent": null,
|
|
124
|
-
"_instance": CounterComponent {
|
|
125
|
-
"_onClickIncrement": [Function],
|
|
126
|
-
"_onClickLoad": [Function],
|
|
127
|
-
"_onClickSave": [Function],
|
|
128
|
-
"_reactInternalInstance": [Circular],
|
|
129
|
-
"context": Object {},
|
|
130
|
-
"props": Object {
|
|
131
|
-
"counter": Object {
|
|
132
|
-
"value": 0,
|
|
133
|
-
},
|
|
134
|
-
"error": "",
|
|
135
|
-
"increment": [Function],
|
|
136
|
-
"isLoading": false,
|
|
137
|
-
"isSaving": false,
|
|
138
|
-
"label": "a counter!",
|
|
139
|
-
"load": [Function],
|
|
140
|
-
"save": [Function],
|
|
141
|
-
"store": Object {
|
|
142
|
-
"dispatch": [Function],
|
|
143
|
-
"getState": [Function],
|
|
144
|
-
"replaceReducer": [Function],
|
|
145
|
-
"subscribe": [Function],
|
|
146
|
-
Symbol(observable): [Function],
|
|
147
|
-
},
|
|
148
|
-
"storeSubscription": Subscription {
|
|
149
|
-
"listeners": Object {
|
|
150
|
-
"notify": [Function],
|
|
151
|
-
},
|
|
152
|
-
"onStateChange": [Function],
|
|
153
|
-
"parentSub": undefined,
|
|
154
|
-
"store": Object {
|
|
155
|
-
"dispatch": [Function],
|
|
156
|
-
"getState": [Function],
|
|
157
|
-
"replaceReducer": [Function],
|
|
158
|
-
"subscribe": [Function],
|
|
159
|
-
Symbol(observable): [Function],
|
|
160
|
-
},
|
|
161
|
-
"unsubscribe": null,
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
"refs": Object {},
|
|
165
|
-
"state": null,
|
|
166
|
-
"updater": Object {
|
|
167
|
-
"enqueueCallback": [Function],
|
|
168
|
-
"enqueueCallbackInternal": [Function],
|
|
169
|
-
"enqueueElementInternal": [Function],
|
|
170
|
-
"enqueueForceUpdate": [Function],
|
|
171
|
-
"enqueueReplaceState": [Function],
|
|
172
|
-
"enqueueSetState": [Function],
|
|
173
|
-
"isMounted": [Function],
|
|
174
|
-
"validateCallback": [Function],
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
"_mountOrder": 2,
|
|
178
|
-
"_pendingCallbacks": null,
|
|
179
|
-
"_pendingElement": null,
|
|
180
|
-
"_pendingForceUpdate": false,
|
|
181
|
-
"_pendingReplaceState": false,
|
|
182
|
-
"_pendingStateQueue": null,
|
|
183
|
-
"_renderedComponent": NoopInternalComponent {
|
|
184
|
-
"_currentElement": <form>
|
|
185
|
-
<legend>
|
|
186
|
-
a counter!
|
|
187
|
-
</legend>
|
|
188
|
-
<pre>
|
|
189
|
-
{
|
|
190
|
-
"counter": {
|
|
191
|
-
"value": 0
|
|
192
|
-
},
|
|
193
|
-
"isSaving": false,
|
|
194
|
-
"isLoading": false
|
|
195
|
-
}
|
|
196
|
-
</pre>
|
|
197
|
-
<button
|
|
198
|
-
onClick={[Function]}
|
|
199
|
-
>
|
|
200
|
-
click me!
|
|
201
|
-
</button>
|
|
202
|
-
<button
|
|
203
|
-
disabled={false}
|
|
204
|
-
onClick={[Function]}
|
|
205
|
-
>
|
|
206
|
-
save
|
|
207
|
-
</button>
|
|
208
|
-
<button
|
|
209
|
-
disabled={false}
|
|
210
|
-
onClick={[Function]}
|
|
211
|
-
>
|
|
212
|
-
load
|
|
213
|
-
</button>
|
|
214
|
-
</form>,
|
|
215
|
-
"_debugID": 4,
|
|
216
|
-
"_renderedOutput": <form>
|
|
217
|
-
<legend>
|
|
218
|
-
a counter!
|
|
219
|
-
</legend>
|
|
220
|
-
<pre>
|
|
221
|
-
{
|
|
222
|
-
"counter": {
|
|
223
|
-
"value": 0
|
|
224
|
-
},
|
|
225
|
-
"isSaving": false,
|
|
226
|
-
"isLoading": false
|
|
227
|
-
}
|
|
228
|
-
</pre>
|
|
229
|
-
<button
|
|
230
|
-
onClick={[Function]}
|
|
231
|
-
>
|
|
232
|
-
click me!
|
|
233
|
-
</button>
|
|
234
|
-
<button
|
|
235
|
-
disabled={false}
|
|
236
|
-
onClick={[Function]}
|
|
237
|
-
>
|
|
238
|
-
save
|
|
239
|
-
</button>
|
|
240
|
-
<button
|
|
241
|
-
disabled={false}
|
|
242
|
-
onClick={[Function]}
|
|
243
|
-
>
|
|
244
|
-
load
|
|
245
|
-
</button>
|
|
246
|
-
</form>,
|
|
247
|
-
},
|
|
248
|
-
"_renderedNodeType": 0,
|
|
249
|
-
"_rootNodeID": 0,
|
|
250
|
-
"_topLevelWrapper": null,
|
|
251
|
-
"_updateBatchNumber": null,
|
|
252
|
-
"_warnedAboutRefsInRender": false,
|
|
253
|
-
},
|
|
254
|
-
"getRenderOutput": [Function],
|
|
255
|
-
"render": [Function],
|
|
256
|
-
},
|
|
257
|
-
"root": [Circular],
|
|
258
|
-
"unrendered": <CounterComponent
|
|
259
|
-
counter={
|
|
260
|
-
Object {
|
|
261
|
-
"value": 0,
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
error=""
|
|
265
|
-
increment={[Function]}
|
|
266
|
-
isLoading={false}
|
|
267
|
-
isSaving={false}
|
|
268
|
-
label="a counter!"
|
|
269
|
-
load={[Function]}
|
|
270
|
-
save={[Function]}
|
|
271
|
-
store={
|
|
272
|
-
Object {
|
|
273
|
-
"dispatch": [Function],
|
|
274
|
-
"getState": [Function],
|
|
275
|
-
"replaceReducer": [Function],
|
|
276
|
-
"subscribe": [Function],
|
|
277
|
-
Symbol(observable): [Function],
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
storeSubscription={
|
|
281
|
-
Subscription {
|
|
282
|
-
"listeners": Object {
|
|
283
|
-
"notify": [Function],
|
|
284
|
-
},
|
|
285
|
-
"onStateChange": [Function],
|
|
286
|
-
"parentSub": undefined,
|
|
287
|
-
"store": Object {
|
|
288
|
-
"dispatch": [Function],
|
|
289
|
-
"getState": [Function],
|
|
290
|
-
"replaceReducer": [Function],
|
|
291
|
-
"subscribe": [Function],
|
|
292
|
-
Symbol(observable): [Function],
|
|
293
|
-
},
|
|
294
|
-
"unsubscribe": null,
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
/>,
|
|
298
|
-
}
|
|
299
|
-
`;
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`components/PersonList renders correctly 1`] = `
|
|
4
|
-
ShallowWrapper {
|
|
5
|
-
"complexSelector": ComplexSelector {
|
|
6
|
-
"buildPredicate": [Function],
|
|
7
|
-
"childrenOfNode": [Function],
|
|
8
|
-
"findWhereUnwrapped": [Function],
|
|
9
|
-
},
|
|
10
|
-
"length": 1,
|
|
11
|
-
"node": <ApolloProvider
|
|
12
|
-
client={
|
|
13
|
-
ApolloClient {
|
|
14
|
-
"addTypename": true,
|
|
15
|
-
"dataId": [Function],
|
|
16
|
-
"dataIdFromObject": [Function],
|
|
17
|
-
"disableNetworkFetches": false,
|
|
18
|
-
"fieldWithArgs": [Function],
|
|
19
|
-
"fragmentMatcher": HeuristicFragmentMatcher {},
|
|
20
|
-
"initialState": Object {},
|
|
21
|
-
"middleware": [Function],
|
|
22
|
-
"mutate": [Function],
|
|
23
|
-
"networkInterface": MockNetworkInterface {
|
|
24
|
-
"mockedResponsesByKey": Object {},
|
|
25
|
-
},
|
|
26
|
-
"query": [Function],
|
|
27
|
-
"queryDeduplication": true,
|
|
28
|
-
"reducerConfig": Object {
|
|
29
|
-
"addTypename": true,
|
|
30
|
-
"customResolvers": undefined,
|
|
31
|
-
"dataIdFromObject": [Function],
|
|
32
|
-
"fragmentMatcher": [Function],
|
|
33
|
-
},
|
|
34
|
-
"resetStore": [Function],
|
|
35
|
-
"setStore": [Function],
|
|
36
|
-
"ssrMode": false,
|
|
37
|
-
"version": "local",
|
|
38
|
-
"watchQuery": [Function],
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
store={null}
|
|
42
|
-
>
|
|
43
|
-
<Apollo(flattenProp(pure(PersonListComponent))) />
|
|
44
|
-
</ApolloProvider>,
|
|
45
|
-
"nodes": Array [
|
|
46
|
-
<ApolloProvider
|
|
47
|
-
client={
|
|
48
|
-
ApolloClient {
|
|
49
|
-
"addTypename": true,
|
|
50
|
-
"dataId": [Function],
|
|
51
|
-
"dataIdFromObject": [Function],
|
|
52
|
-
"disableNetworkFetches": false,
|
|
53
|
-
"fieldWithArgs": [Function],
|
|
54
|
-
"fragmentMatcher": HeuristicFragmentMatcher {},
|
|
55
|
-
"initialState": Object {},
|
|
56
|
-
"middleware": [Function],
|
|
57
|
-
"mutate": [Function],
|
|
58
|
-
"networkInterface": MockNetworkInterface {
|
|
59
|
-
"mockedResponsesByKey": Object {},
|
|
60
|
-
},
|
|
61
|
-
"query": [Function],
|
|
62
|
-
"queryDeduplication": true,
|
|
63
|
-
"reducerConfig": Object {
|
|
64
|
-
"addTypename": true,
|
|
65
|
-
"customResolvers": undefined,
|
|
66
|
-
"dataIdFromObject": [Function],
|
|
67
|
-
"fragmentMatcher": [Function],
|
|
68
|
-
},
|
|
69
|
-
"resetStore": [Function],
|
|
70
|
-
"setStore": [Function],
|
|
71
|
-
"ssrMode": false,
|
|
72
|
-
"version": "local",
|
|
73
|
-
"watchQuery": [Function],
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
store={null}
|
|
77
|
-
>
|
|
78
|
-
<Apollo(flattenProp(pure(PersonListComponent))) />
|
|
79
|
-
</ApolloProvider>,
|
|
80
|
-
],
|
|
81
|
-
"options": Object {},
|
|
82
|
-
"renderer": ReactShallowRenderer {
|
|
83
|
-
"_instance": ShallowComponentWrapper {
|
|
84
|
-
"_calledComponentWillUnmount": false,
|
|
85
|
-
"_compositeType": 0,
|
|
86
|
-
"_context": Object {},
|
|
87
|
-
"_currentElement": <MockedProvider>
|
|
88
|
-
<Apollo(flattenProp(pure(PersonListComponent))) />
|
|
89
|
-
</MockedProvider>,
|
|
90
|
-
"_debugID": 1,
|
|
91
|
-
"_hostContainerInfo": null,
|
|
92
|
-
"_hostParent": null,
|
|
93
|
-
"_instance": MockedProvider {
|
|
94
|
-
"_reactInternalInstance": [Circular],
|
|
95
|
-
"client": ApolloClient {
|
|
96
|
-
"addTypename": true,
|
|
97
|
-
"dataId": [Function],
|
|
98
|
-
"dataIdFromObject": [Function],
|
|
99
|
-
"disableNetworkFetches": false,
|
|
100
|
-
"fieldWithArgs": [Function],
|
|
101
|
-
"fragmentMatcher": HeuristicFragmentMatcher {},
|
|
102
|
-
"initialState": Object {},
|
|
103
|
-
"middleware": [Function],
|
|
104
|
-
"mutate": [Function],
|
|
105
|
-
"networkInterface": MockNetworkInterface {
|
|
106
|
-
"mockedResponsesByKey": Object {},
|
|
107
|
-
},
|
|
108
|
-
"query": [Function],
|
|
109
|
-
"queryDeduplication": true,
|
|
110
|
-
"reducerConfig": Object {
|
|
111
|
-
"addTypename": true,
|
|
112
|
-
"customResolvers": undefined,
|
|
113
|
-
"dataIdFromObject": [Function],
|
|
114
|
-
"fragmentMatcher": [Function],
|
|
115
|
-
},
|
|
116
|
-
"resetStore": [Function],
|
|
117
|
-
"setStore": [Function],
|
|
118
|
-
"ssrMode": false,
|
|
119
|
-
"version": "local",
|
|
120
|
-
"watchQuery": [Function],
|
|
121
|
-
},
|
|
122
|
-
"context": Object {},
|
|
123
|
-
"props": Object {
|
|
124
|
-
"children": <Apollo(flattenProp(pure(PersonListComponent))) />,
|
|
125
|
-
},
|
|
126
|
-
"refs": Object {},
|
|
127
|
-
"state": null,
|
|
128
|
-
"updater": Object {
|
|
129
|
-
"enqueueCallback": [Function],
|
|
130
|
-
"enqueueCallbackInternal": [Function],
|
|
131
|
-
"enqueueElementInternal": [Function],
|
|
132
|
-
"enqueueForceUpdate": [Function],
|
|
133
|
-
"enqueueReplaceState": [Function],
|
|
134
|
-
"enqueueSetState": [Function],
|
|
135
|
-
"isMounted": [Function],
|
|
136
|
-
"validateCallback": [Function],
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
"_mountOrder": 1,
|
|
140
|
-
"_pendingCallbacks": null,
|
|
141
|
-
"_pendingElement": null,
|
|
142
|
-
"_pendingForceUpdate": false,
|
|
143
|
-
"_pendingReplaceState": false,
|
|
144
|
-
"_pendingStateQueue": null,
|
|
145
|
-
"_renderedComponent": NoopInternalComponent {
|
|
146
|
-
"_currentElement": <ApolloProvider
|
|
147
|
-
client={
|
|
148
|
-
ApolloClient {
|
|
149
|
-
"addTypename": true,
|
|
150
|
-
"dataId": [Function],
|
|
151
|
-
"dataIdFromObject": [Function],
|
|
152
|
-
"disableNetworkFetches": false,
|
|
153
|
-
"fieldWithArgs": [Function],
|
|
154
|
-
"fragmentMatcher": HeuristicFragmentMatcher {},
|
|
155
|
-
"initialState": Object {},
|
|
156
|
-
"middleware": [Function],
|
|
157
|
-
"mutate": [Function],
|
|
158
|
-
"networkInterface": MockNetworkInterface {
|
|
159
|
-
"mockedResponsesByKey": Object {},
|
|
160
|
-
},
|
|
161
|
-
"query": [Function],
|
|
162
|
-
"queryDeduplication": true,
|
|
163
|
-
"reducerConfig": Object {
|
|
164
|
-
"addTypename": true,
|
|
165
|
-
"customResolvers": undefined,
|
|
166
|
-
"dataIdFromObject": [Function],
|
|
167
|
-
"fragmentMatcher": [Function],
|
|
168
|
-
},
|
|
169
|
-
"resetStore": [Function],
|
|
170
|
-
"setStore": [Function],
|
|
171
|
-
"ssrMode": false,
|
|
172
|
-
"version": "local",
|
|
173
|
-
"watchQuery": [Function],
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
store={null}
|
|
177
|
-
>
|
|
178
|
-
<Apollo(flattenProp(pure(PersonListComponent))) />
|
|
179
|
-
</ApolloProvider>,
|
|
180
|
-
"_debugID": 2,
|
|
181
|
-
"_renderedOutput": <ApolloProvider
|
|
182
|
-
client={
|
|
183
|
-
ApolloClient {
|
|
184
|
-
"addTypename": true,
|
|
185
|
-
"dataId": [Function],
|
|
186
|
-
"dataIdFromObject": [Function],
|
|
187
|
-
"disableNetworkFetches": false,
|
|
188
|
-
"fieldWithArgs": [Function],
|
|
189
|
-
"fragmentMatcher": HeuristicFragmentMatcher {},
|
|
190
|
-
"initialState": Object {},
|
|
191
|
-
"middleware": [Function],
|
|
192
|
-
"mutate": [Function],
|
|
193
|
-
"networkInterface": MockNetworkInterface {
|
|
194
|
-
"mockedResponsesByKey": Object {},
|
|
195
|
-
},
|
|
196
|
-
"query": [Function],
|
|
197
|
-
"queryDeduplication": true,
|
|
198
|
-
"reducerConfig": Object {
|
|
199
|
-
"addTypename": true,
|
|
200
|
-
"customResolvers": undefined,
|
|
201
|
-
"dataIdFromObject": [Function],
|
|
202
|
-
"fragmentMatcher": [Function],
|
|
203
|
-
},
|
|
204
|
-
"resetStore": [Function],
|
|
205
|
-
"setStore": [Function],
|
|
206
|
-
"ssrMode": false,
|
|
207
|
-
"version": "local",
|
|
208
|
-
"watchQuery": [Function],
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
store={null}
|
|
212
|
-
>
|
|
213
|
-
<Apollo(flattenProp(pure(PersonListComponent))) />
|
|
214
|
-
</ApolloProvider>,
|
|
215
|
-
},
|
|
216
|
-
"_renderedNodeType": 1,
|
|
217
|
-
"_rootNodeID": 0,
|
|
218
|
-
"_topLevelWrapper": null,
|
|
219
|
-
"_updateBatchNumber": null,
|
|
220
|
-
"_warnedAboutRefsInRender": false,
|
|
221
|
-
},
|
|
222
|
-
"getRenderOutput": [Function],
|
|
223
|
-
"render": [Function],
|
|
224
|
-
},
|
|
225
|
-
"root": [Circular],
|
|
226
|
-
"unrendered": <MockedProvider>
|
|
227
|
-
<Apollo(flattenProp(pure(PersonListComponent))) />
|
|
228
|
-
</MockedProvider>,
|
|
229
|
-
}
|
|
230
|
-
`;
|