@selfcommunity/react-ui 0.7.0-alpha.334 → 0.7.0-alpha.336
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/cjs/components/BottomNavigation/BottomNavigation.js +8 -11
- package/lib/cjs/components/BroadcastMessages/Message.js +14 -5
- package/lib/cjs/components/CommentsObject/CommentsObject.js +1 -22
- package/lib/cjs/components/Composer/Attributes/Attributes.d.ts +22 -0
- package/lib/cjs/components/Composer/Attributes/Attributes.js +41 -0
- package/lib/cjs/components/Composer/Attributes/index.d.ts +3 -0
- package/lib/cjs/components/Composer/{Poll → Attributes}/index.js +2 -2
- package/lib/cjs/components/Composer/Composer.d.ts +53 -84
- package/lib/cjs/components/Composer/Composer.js +249 -443
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.d.ts +32 -0
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +53 -0
- package/lib/cjs/components/Composer/Content/ContentDiscussion/index.d.ts +3 -0
- package/lib/cjs/components/Composer/Content/ContentDiscussion/index.js +5 -0
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.d.ts +26 -0
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +129 -0
- package/lib/cjs/components/Composer/Content/ContentPoll/index.d.ts +3 -0
- package/lib/cjs/components/Composer/Content/ContentPoll/index.js +5 -0
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.d.ts +32 -0
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +51 -0
- package/lib/cjs/components/Composer/Content/ContentPost/index.d.ts +3 -0
- package/lib/cjs/components/Composer/Content/ContentPost/index.js +5 -0
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +11 -0
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +74 -0
- package/lib/cjs/components/Composer/Layer/AudienceLayer/index.d.ts +3 -0
- package/lib/cjs/components/Composer/Layer/AudienceLayer/index.js +5 -0
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.d.ts +9 -0
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +41 -0
- package/lib/cjs/components/Composer/Layer/CategoryLayer/index.d.ts +3 -0
- package/lib/cjs/components/Composer/Layer/CategoryLayer/index.js +5 -0
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.d.ts +7 -0
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +41 -0
- package/lib/cjs/components/Composer/Layer/CloseLayer/index.d.ts +3 -0
- package/lib/cjs/components/Composer/{Audience → Layer/CloseLayer}/index.js +2 -2
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +9 -0
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +41 -0
- package/lib/cjs/components/Composer/Layer/LocationLayer/index.d.ts +3 -0
- package/lib/cjs/components/Composer/Layer/LocationLayer/index.js +5 -0
- package/lib/cjs/components/Composer/Skeleton.d.ts +0 -4
- package/lib/cjs/components/Composer/Skeleton.js +10 -72
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.d.ts +6 -0
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +47 -0
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/index.d.ts +3 -0
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/index.js +5 -0
- package/lib/cjs/components/Composer/constants.d.ts +1 -0
- package/lib/cjs/components/Composer/constants.js +4 -0
- package/lib/cjs/components/Composer/index.d.ts +2 -3
- package/lib/cjs/components/Composer/index.js +1 -6
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.d.ts +2 -1
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +8 -8
- package/lib/cjs/components/Editor/Editor.js +14 -5
- package/lib/cjs/components/Feed/prefetchedData.d.ts +2 -368
- package/lib/cjs/components/Feed/prefetchedData.js +17 -16
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +2 -2
- package/lib/cjs/components/FeedObject/FeedObject.d.ts +2 -2
- package/lib/cjs/components/FeedObject/FeedObject.js +8 -7
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +38 -0
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +66 -0
- package/lib/cjs/components/FeedObjectMediaPreview/index.d.ts +3 -0
- package/lib/cjs/components/FeedObjectMediaPreview/index.js +5 -0
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.d.ts +25 -33
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +34 -67
- package/lib/cjs/components/InlineComposerWidget/Skeleton.d.ts +4 -5
- package/lib/cjs/components/InlineComposerWidget/Skeleton.js +17 -37
- package/lib/cjs/components/InlineComposerWidget/constants.d.ts +1 -0
- package/lib/cjs/components/InlineComposerWidget/constants.js +4 -0
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.d.ts +2 -2
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +4 -2
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +1 -1
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +0 -5
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +19 -30
- package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +5 -6
- package/lib/cjs/components/NavigationToolbarMobile/constants.d.ts +1 -0
- package/lib/cjs/components/NavigationToolbarMobile/constants.js +4 -0
- package/lib/cjs/constants/Composer.d.ts +2 -0
- package/lib/cjs/constants/Composer.js +4 -2
- package/lib/cjs/index.d.ts +12 -12
- package/lib/cjs/index.js +14 -17
- package/lib/cjs/shared/Lightbox/Lightbox.js +2 -2
- package/lib/{esm/shared/Media/Image/PreviewComponent.d.ts → cjs/shared/Media/File/DisplayComponent.d.ts} +1 -11
- package/lib/cjs/shared/Media/{Image/PreviewComponent.js → File/DisplayComponent.js} +55 -145
- package/lib/{esm/shared/Media/Image/PreviewImage → cjs/shared/Media/File/Lightbox}/index.d.ts +4 -3
- package/lib/cjs/shared/Media/File/Lightbox/index.js +37 -0
- package/lib/cjs/shared/Media/File/PreviewComponent.d.ts +9 -0
- package/lib/cjs/shared/Media/File/PreviewComponent.js +51 -0
- package/lib/cjs/shared/Media/File/TriggerButton.d.ts +12 -0
- package/lib/cjs/shared/Media/File/TriggerButton.js +112 -0
- package/lib/cjs/shared/Media/File/asUploadButton.d.ts +7 -0
- package/lib/cjs/shared/Media/File/asUploadButton.js +30 -0
- package/lib/cjs/shared/Media/File/constants.d.ts +1 -0
- package/lib/cjs/shared/Media/File/constants.js +4 -0
- package/lib/cjs/shared/Media/File/filter.d.ts +3 -0
- package/lib/cjs/shared/Media/File/filter.js +4 -0
- package/lib/cjs/shared/Media/File/index.d.ts +3 -0
- package/lib/cjs/shared/Media/File/index.js +16 -0
- package/lib/cjs/shared/Media/Link/DisplayComponent.d.ts +20 -0
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +69 -0
- package/lib/cjs/shared/Media/Link/LayerComponent.d.ts +9 -0
- package/lib/cjs/shared/Media/Link/LayerComponent.js +46 -0
- package/lib/cjs/shared/Media/Link/PreviewComponent.d.ts +7 -21
- package/lib/cjs/shared/Media/Link/PreviewComponent.js +28 -56
- package/lib/cjs/shared/Media/Link/TriggerButton.d.ts +4 -0
- package/lib/cjs/shared/Media/Link/TriggerButton.js +21 -0
- package/lib/cjs/shared/Media/Link/UrlTextField/index.js +1 -2
- package/lib/cjs/shared/Media/Link/constants.d.ts +1 -0
- package/lib/cjs/shared/Media/Link/constants.js +4 -0
- package/lib/cjs/shared/Media/Link/filter.d.ts +3 -0
- package/lib/cjs/shared/Media/Link/filter.js +4 -0
- package/lib/cjs/shared/Media/Link/index.js +9 -8
- package/lib/cjs/shared/Media/Share/DisplayComponent.d.ts +11 -0
- package/lib/cjs/shared/Media/Share/DisplayComponent.js +31 -0
- package/lib/cjs/shared/Media/Share/constants.d.ts +1 -0
- package/lib/cjs/shared/Media/Share/constants.js +4 -0
- package/lib/cjs/shared/Media/Share/filter.d.ts +3 -0
- package/lib/cjs/shared/Media/Share/filter.js +4 -0
- package/lib/cjs/shared/Media/Share/index.js +7 -7
- package/lib/cjs/shared/Media/index.d.ts +2 -4
- package/lib/cjs/shared/Media/index.js +3 -7
- package/lib/cjs/types/composer.d.ts +15 -0
- package/lib/cjs/types/composer.js +2 -0
- package/lib/cjs/types/media.d.ts +9 -5
- package/lib/esm/components/BottomNavigation/BottomNavigation.js +8 -11
- package/lib/esm/components/BroadcastMessages/Message.js +14 -5
- package/lib/esm/components/CommentsObject/CommentsObject.js +1 -22
- package/lib/esm/components/Composer/Attributes/Attributes.d.ts +22 -0
- package/lib/esm/components/Composer/Attributes/Attributes.js +38 -0
- package/lib/esm/components/Composer/Attributes/index.d.ts +3 -0
- package/lib/esm/components/Composer/Attributes/index.js +2 -0
- package/lib/esm/components/Composer/Composer.d.ts +53 -84
- package/lib/esm/components/Composer/Composer.js +246 -439
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.d.ts +32 -0
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +50 -0
- package/lib/esm/components/Composer/Content/ContentDiscussion/index.d.ts +3 -0
- package/lib/esm/components/Composer/Content/ContentDiscussion/index.js +2 -0
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.d.ts +26 -0
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +127 -0
- package/lib/esm/components/Composer/Content/ContentPoll/index.d.ts +3 -0
- package/lib/esm/components/Composer/Content/ContentPoll/index.js +2 -0
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.d.ts +32 -0
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +49 -0
- package/lib/esm/components/Composer/Content/ContentPost/index.d.ts +3 -0
- package/lib/esm/components/Composer/Content/ContentPost/index.js +2 -0
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +11 -0
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +72 -0
- package/lib/esm/components/Composer/Layer/AudienceLayer/index.d.ts +3 -0
- package/lib/esm/components/Composer/Layer/AudienceLayer/index.js +2 -0
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.d.ts +9 -0
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +39 -0
- package/lib/esm/components/Composer/Layer/CategoryLayer/index.d.ts +3 -0
- package/lib/esm/components/Composer/Layer/CategoryLayer/index.js +2 -0
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.d.ts +7 -0
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +39 -0
- package/lib/esm/components/Composer/Layer/CloseLayer/index.d.ts +3 -0
- package/lib/esm/components/Composer/Layer/CloseLayer/index.js +2 -0
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +9 -0
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +39 -0
- package/lib/esm/components/Composer/Layer/LocationLayer/index.d.ts +3 -0
- package/lib/esm/components/Composer/Layer/LocationLayer/index.js +2 -0
- package/lib/esm/components/Composer/Skeleton.d.ts +0 -4
- package/lib/esm/components/Composer/Skeleton.js +6 -68
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.d.ts +6 -0
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +44 -0
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/index.d.ts +3 -0
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/index.js +2 -0
- package/lib/esm/components/Composer/constants.d.ts +1 -0
- package/lib/esm/components/Composer/constants.js +1 -0
- package/lib/esm/components/Composer/index.d.ts +2 -3
- package/lib/esm/components/Composer/index.js +1 -3
- package/lib/esm/components/ComposerIconButton/ComposerIconButton.d.ts +2 -1
- package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +8 -8
- package/lib/esm/components/Editor/Editor.js +16 -7
- package/lib/esm/components/Feed/Feed.js +4 -4
- package/lib/esm/components/Feed/prefetchedData.d.ts +2 -368
- package/lib/esm/components/Feed/prefetchedData.js +17 -16
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +4 -4
- package/lib/esm/components/FeedObject/FeedObject.d.ts +2 -2
- package/lib/esm/components/FeedObject/FeedObject.js +11 -10
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +38 -0
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +64 -0
- package/lib/esm/components/FeedObjectMediaPreview/index.d.ts +3 -0
- package/lib/esm/components/FeedObjectMediaPreview/index.js +2 -0
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.d.ts +25 -33
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +31 -64
- package/lib/esm/components/InlineComposerWidget/Skeleton.d.ts +4 -5
- package/lib/esm/components/InlineComposerWidget/Skeleton.js +15 -35
- package/lib/esm/components/InlineComposerWidget/constants.d.ts +1 -0
- package/lib/esm/components/InlineComposerWidget/constants.js +1 -0
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.d.ts +2 -2
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +4 -2
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -1
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +0 -5
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +12 -23
- package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +3 -4
- package/lib/esm/components/NavigationToolbarMobile/constants.d.ts +1 -0
- package/lib/esm/components/NavigationToolbarMobile/constants.js +1 -0
- package/lib/esm/constants/Composer.d.ts +2 -0
- package/lib/esm/constants/Composer.js +3 -1
- package/lib/esm/index.d.ts +12 -12
- package/lib/esm/index.js +33 -33
- package/lib/esm/shared/Lightbox/Lightbox.js +2 -2
- package/lib/{cjs/shared/Media/Image/PreviewComponent.d.ts → esm/shared/Media/File/DisplayComponent.d.ts} +1 -11
- package/lib/esm/shared/Media/{Image/PreviewComponent.js → File/DisplayComponent.js} +50 -140
- package/lib/{cjs/shared/Media/Image/PreviewImage → esm/shared/Media/File/Lightbox}/index.d.ts +4 -3
- package/lib/esm/shared/Media/File/Lightbox/index.js +34 -0
- package/lib/esm/shared/Media/File/PreviewComponent.d.ts +9 -0
- package/lib/esm/shared/Media/File/PreviewComponent.js +49 -0
- package/lib/esm/shared/Media/File/TriggerButton.d.ts +12 -0
- package/lib/esm/shared/Media/File/TriggerButton.js +110 -0
- package/lib/esm/shared/Media/File/asUploadButton.d.ts +7 -0
- package/lib/esm/shared/Media/File/asUploadButton.js +28 -0
- package/lib/esm/shared/Media/File/constants.d.ts +1 -0
- package/lib/esm/shared/Media/File/constants.js +1 -0
- package/lib/esm/shared/Media/File/filter.d.ts +3 -0
- package/lib/esm/shared/Media/File/filter.js +2 -0
- package/lib/esm/shared/Media/File/index.d.ts +3 -0
- package/lib/esm/shared/Media/File/index.js +13 -0
- package/lib/esm/shared/Media/Link/DisplayComponent.d.ts +20 -0
- package/lib/esm/shared/Media/Link/DisplayComponent.js +67 -0
- package/lib/esm/shared/Media/Link/LayerComponent.d.ts +9 -0
- package/lib/esm/shared/Media/Link/LayerComponent.js +44 -0
- package/lib/esm/shared/Media/Link/PreviewComponent.d.ts +7 -21
- package/lib/esm/shared/Media/Link/PreviewComponent.js +27 -54
- package/lib/esm/shared/Media/Link/TriggerButton.d.ts +4 -0
- package/lib/esm/shared/Media/Link/TriggerButton.js +19 -0
- package/lib/esm/shared/Media/Link/UrlTextField/index.js +2 -3
- package/lib/esm/shared/Media/Link/constants.d.ts +1 -0
- package/lib/esm/shared/Media/Link/constants.js +1 -0
- package/lib/esm/shared/Media/Link/filter.d.ts +3 -0
- package/lib/esm/shared/Media/Link/filter.js +2 -0
- package/lib/esm/shared/Media/Link/index.js +9 -8
- package/lib/esm/shared/Media/Share/DisplayComponent.d.ts +11 -0
- package/lib/esm/shared/Media/Share/DisplayComponent.js +29 -0
- package/lib/esm/shared/Media/Share/constants.d.ts +1 -0
- package/lib/esm/shared/Media/Share/constants.js +1 -0
- package/lib/esm/shared/Media/Share/filter.d.ts +3 -0
- package/lib/esm/shared/Media/Share/filter.js +2 -0
- package/lib/esm/shared/Media/Share/index.js +7 -7
- package/lib/esm/shared/Media/index.d.ts +2 -4
- package/lib/esm/shared/Media/index.js +2 -4
- package/lib/esm/types/composer.d.ts +15 -0
- package/lib/esm/types/composer.js +1 -0
- package/lib/esm/types/media.d.ts +9 -5
- package/lib/umd/react-ui.js +1 -1
- package/package.json +7 -7
- package/lib/cjs/components/Composer/Audience/Audience.d.ts +0 -71
- package/lib/cjs/components/Composer/Audience/Audience.js +0 -69
- package/lib/cjs/components/Composer/Audience/index.d.ts +0 -3
- package/lib/cjs/components/Composer/Poll/Poll.d.ts +0 -31
- package/lib/cjs/components/Composer/Poll/Poll.js +0 -151
- package/lib/cjs/components/Composer/Poll/index.d.ts +0 -3
- package/lib/cjs/shared/Media/Document/EditButton.d.ts +0 -2
- package/lib/cjs/shared/Media/Document/EditButton.js +0 -10
- package/lib/cjs/shared/Media/Document/EditComponent.d.ts +0 -3
- package/lib/cjs/shared/Media/Document/EditComponent.js +0 -103
- package/lib/cjs/shared/Media/Document/PreviewComponent.d.ts +0 -3
- package/lib/cjs/shared/Media/Document/PreviewComponent.js +0 -43
- package/lib/cjs/shared/Media/Document/index.d.ts +0 -3
- package/lib/cjs/shared/Media/Document/index.js +0 -16
- package/lib/cjs/shared/Media/Image/EditButton.d.ts +0 -2
- package/lib/cjs/shared/Media/Image/EditButton.js +0 -10
- package/lib/cjs/shared/Media/Image/EditComponent.d.ts +0 -3
- package/lib/cjs/shared/Media/Image/EditComponent.js +0 -102
- package/lib/cjs/shared/Media/Image/PreviewImage/index.js +0 -41
- package/lib/cjs/shared/Media/Image/index.d.ts +0 -3
- package/lib/cjs/shared/Media/Image/index.js +0 -16
- package/lib/cjs/shared/Media/Link/EditButton.d.ts +0 -2
- package/lib/cjs/shared/Media/Link/EditButton.js +0 -10
- package/lib/cjs/shared/Media/Link/EditComponent.d.ts +0 -3
- package/lib/cjs/shared/Media/Link/EditComponent.js +0 -46
- package/lib/cjs/shared/Media/Share/PreviewComponent.d.ts +0 -7
- package/lib/cjs/shared/Media/Share/PreviewComponent.js +0 -32
- package/lib/cjs/shared/Media/Video/EditButton.d.ts +0 -2
- package/lib/cjs/shared/Media/Video/EditButton.js +0 -10
- package/lib/cjs/shared/Media/Video/EditComponent.d.ts +0 -3
- package/lib/cjs/shared/Media/Video/EditComponent.js +0 -89
- package/lib/cjs/shared/Media/Video/PreviewComponent.d.ts +0 -19
- package/lib/cjs/shared/Media/Video/PreviewComponent.js +0 -37
- package/lib/cjs/shared/Media/Video/index.d.ts +0 -3
- package/lib/cjs/shared/Media/Video/index.js +0 -16
- package/lib/cjs/shared/MediasPreview/index.d.ts +0 -18
- package/lib/cjs/shared/MediasPreview/index.js +0 -44
- package/lib/esm/components/Composer/Audience/Audience.d.ts +0 -71
- package/lib/esm/components/Composer/Audience/Audience.js +0 -66
- package/lib/esm/components/Composer/Audience/index.d.ts +0 -3
- package/lib/esm/components/Composer/Audience/index.js +0 -2
- package/lib/esm/components/Composer/Poll/Poll.d.ts +0 -31
- package/lib/esm/components/Composer/Poll/Poll.js +0 -149
- package/lib/esm/components/Composer/Poll/index.d.ts +0 -3
- package/lib/esm/components/Composer/Poll/index.js +0 -2
- package/lib/esm/shared/Media/Document/EditButton.d.ts +0 -2
- package/lib/esm/shared/Media/Document/EditButton.js +0 -7
- package/lib/esm/shared/Media/Document/EditComponent.d.ts +0 -3
- package/lib/esm/shared/Media/Document/EditComponent.js +0 -101
- package/lib/esm/shared/Media/Document/PreviewComponent.d.ts +0 -3
- package/lib/esm/shared/Media/Document/PreviewComponent.js +0 -41
- package/lib/esm/shared/Media/Document/index.d.ts +0 -3
- package/lib/esm/shared/Media/Document/index.js +0 -13
- package/lib/esm/shared/Media/Image/EditButton.d.ts +0 -2
- package/lib/esm/shared/Media/Image/EditButton.js +0 -7
- package/lib/esm/shared/Media/Image/EditComponent.d.ts +0 -3
- package/lib/esm/shared/Media/Image/EditComponent.js +0 -100
- package/lib/esm/shared/Media/Image/PreviewImage/index.js +0 -38
- package/lib/esm/shared/Media/Image/index.d.ts +0 -3
- package/lib/esm/shared/Media/Image/index.js +0 -13
- package/lib/esm/shared/Media/Link/EditButton.d.ts +0 -2
- package/lib/esm/shared/Media/Link/EditButton.js +0 -7
- package/lib/esm/shared/Media/Link/EditComponent.d.ts +0 -3
- package/lib/esm/shared/Media/Link/EditComponent.js +0 -43
- package/lib/esm/shared/Media/Share/PreviewComponent.d.ts +0 -7
- package/lib/esm/shared/Media/Share/PreviewComponent.js +0 -29
- package/lib/esm/shared/Media/Video/EditButton.d.ts +0 -2
- package/lib/esm/shared/Media/Video/EditButton.js +0 -7
- package/lib/esm/shared/Media/Video/EditComponent.d.ts +0 -3
- package/lib/esm/shared/Media/Video/EditComponent.js +0 -87
- package/lib/esm/shared/Media/Video/PreviewComponent.d.ts +0 -19
- package/lib/esm/shared/Media/Video/PreviewComponent.js +0 -34
- package/lib/esm/shared/Media/Video/index.d.ts +0 -3
- package/lib/esm/shared/Media/Video/index.js +0 -13
- package/lib/esm/shared/MediasPreview/index.d.ts +0 -18
- package/lib/esm/shared/MediasPreview/index.js +0 -42
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import { Button, IconButton, styled, Toolbar } from '@mui/material';
|
|
3
|
-
import React, {
|
|
4
|
-
import { Link, SCPreferences, SCRoutes, useSCPreferences, useSCRouting, useSCUser } from '@selfcommunity/react-core';
|
|
3
|
+
import React, { useCallback, useState } from 'react';
|
|
4
|
+
import { Link, SCPreferences, SCRoutes, useSCPreferences, useSCRouting, useSCUser, } from '@selfcommunity/react-core';
|
|
5
5
|
import Icon from '@mui/material/Icon';
|
|
6
6
|
import { useThemeProps } from '@mui/system';
|
|
7
7
|
import classNames from 'classnames';
|
|
@@ -9,25 +9,21 @@ import NavigationToolbarMobileSkeleton from './Skeleton';
|
|
|
9
9
|
import { FormattedMessage } from 'react-intl';
|
|
10
10
|
import SearchDialog from '../SearchDialog';
|
|
11
11
|
import NavigationSettingsIconButton from '../NavigationSettingsIconButton';
|
|
12
|
-
import ComposerIconButton from '../ComposerIconButton';
|
|
13
12
|
import NavigationMenuIconButton from '../NavigationMenuIconButton';
|
|
14
|
-
|
|
13
|
+
import { PREFIX } from './constants';
|
|
15
14
|
const classes = {
|
|
16
15
|
root: `${PREFIX}-root`,
|
|
17
16
|
logo: `${PREFIX}-logo`,
|
|
18
17
|
search: `${PREFIX}-search`,
|
|
19
18
|
searchDialog: `${PREFIX}-search-dialog`,
|
|
20
|
-
composer: `${PREFIX}-composer`,
|
|
21
19
|
settings: `${PREFIX}-settings`,
|
|
22
20
|
settingsDialog: `${PREFIX}-settings-dialog`,
|
|
23
21
|
login: `${PREFIX}-login`
|
|
24
22
|
};
|
|
25
23
|
const Root = styled(Toolbar, {
|
|
26
24
|
name: PREFIX,
|
|
27
|
-
slot: 'Root'
|
|
28
|
-
overridesResolver: (props, styles) => styles.root
|
|
25
|
+
slot: 'Root'
|
|
29
26
|
})(() => ({}));
|
|
30
|
-
const PREFERENCES = [SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY, SCPreferences.LOGO_NAVBAR_LOGO_MOBILE];
|
|
31
27
|
/**
|
|
32
28
|
* > API documentation for the Community-JS Navigation Toolbar Mobile component. Learn about the available props and the CSS API.
|
|
33
29
|
*
|
|
@@ -54,7 +50,6 @@ const PREFERENCES = [SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY, SCPrefer
|
|
|
54
50
|
|logo|.SCNavigationToolbarMobile-logo|Styles applied to the logo element.|
|
|
55
51
|
|search|.SCNavigationToolbarMobile-search|Styles applied to the search button element|
|
|
56
52
|
|searchDialog|.SCNavigationToolbarMobile-search-dialog|Styles applied to the search dialog element|
|
|
57
|
-
|composer|.SCNavigationToolbarMobile-composer|Styles applied to the composer component|
|
|
58
53
|
|settings|.SCNavigationToolbarMobile-settings|Styles applied to the settings button element|
|
|
59
54
|
|settingsDialog|.SCNavigationToolbarMobile-settingsDialog|Styles applied to the settings dialog elements|
|
|
60
55
|
|login|.SCNavigationToolbarMobile-login|Styles applied to the login element.|
|
|
@@ -67,26 +62,21 @@ export default function NavigationToolbarMobile(inProps) {
|
|
|
67
62
|
props: inProps,
|
|
68
63
|
name: PREFIX
|
|
69
64
|
});
|
|
70
|
-
const { className = '', disableSearch = false,
|
|
65
|
+
const { className = '', disableSearch = false, SearchAutocompleteProps = {}, children = null, startActions = null, endActions = null, NavigationSettingsIconButtonComponent = NavigationSettingsIconButton } = props, rest = __rest(props, ["className", "disableSearch", "SearchAutocompleteProps", "children", "startActions", "endActions", "NavigationSettingsIconButtonComponent"]);
|
|
71
66
|
// CONTEXT
|
|
72
67
|
const scUserContext = useSCUser();
|
|
73
68
|
const scRoutingContext = useSCRouting();
|
|
74
69
|
// PREFERENCES
|
|
75
|
-
const
|
|
76
|
-
const preferences = useMemo(() => {
|
|
77
|
-
const _preferences = {};
|
|
78
|
-
PREFERENCES.map((p) => (_preferences[p] = p in scPreferences.preferences ? scPreferences.preferences[p].value : null));
|
|
79
|
-
return _preferences;
|
|
80
|
-
}, [scPreferences.preferences]);
|
|
70
|
+
const { preferences } = useSCPreferences();
|
|
81
71
|
// STATE
|
|
82
72
|
const [searchOpen, setSearchOpen] = useState(false);
|
|
83
73
|
// HANDLERS
|
|
84
|
-
const handleOpenSearch = () => {
|
|
74
|
+
const handleOpenSearch = useCallback(() => {
|
|
85
75
|
setSearchOpen(true);
|
|
86
|
-
};
|
|
87
|
-
const handleCloseSearch = () => {
|
|
76
|
+
}, []);
|
|
77
|
+
const handleCloseSearch = useCallback(() => {
|
|
88
78
|
setSearchOpen(false);
|
|
89
|
-
};
|
|
79
|
+
}, []);
|
|
90
80
|
// RENDER
|
|
91
81
|
if (scUserContext.loading) {
|
|
92
82
|
return React.createElement(NavigationToolbarMobileSkeleton, null);
|
|
@@ -94,15 +84,14 @@ export default function NavigationToolbarMobile(inProps) {
|
|
|
94
84
|
const _children = children || (React.createElement(React.Fragment, null,
|
|
95
85
|
React.createElement(NavigationMenuIconButton, null),
|
|
96
86
|
React.createElement(Link, { to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo },
|
|
97
|
-
React.createElement("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO_MOBILE], alt: "logo" }))));
|
|
87
|
+
React.createElement("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO_MOBILE].value, alt: "logo" }))));
|
|
98
88
|
return (React.createElement(Root, Object.assign({ className: classNames(className, classes.root) }, rest),
|
|
99
89
|
_children,
|
|
100
90
|
startActions,
|
|
101
|
-
(preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY] || scUserContext.user) && !disableSearch && (React.createElement(React.Fragment, null,
|
|
91
|
+
(preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY].value || scUserContext.user) && !disableSearch && (React.createElement(React.Fragment, null,
|
|
102
92
|
React.createElement(IconButton, { className: classes.search, onClick: handleOpenSearch },
|
|
103
93
|
React.createElement(Icon, null, "search")),
|
|
104
94
|
React.createElement(SearchDialog, { className: classes.searchDialog, fullScreen: true, open: searchOpen, SearchAutocompleteProps: Object.assign(Object.assign({}, SearchAutocompleteProps), { onClear: handleCloseSearch }) }))),
|
|
105
|
-
scUserContext.user && !disableComposer && React.createElement(ComposerIconButton, { className: classes.composer }),
|
|
106
95
|
endActions,
|
|
107
96
|
scUserContext.user ? (React.createElement(NavigationSettingsIconButtonComponent, { className: classes.settings })) : (React.createElement(Button, { className: classes.login, color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNIN_ROUTE_NAME, {}) },
|
|
108
97
|
React.createElement(FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" })))));
|
|
@@ -2,15 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { Toolbar } from '@mui/material';
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
4
|
import Skeleton from '@mui/material/Skeleton';
|
|
5
|
-
|
|
5
|
+
import { PREFIX } from './constants';
|
|
6
6
|
const classes = {
|
|
7
|
-
root: `${PREFIX}-root`,
|
|
7
|
+
root: `${PREFIX}-skeleton-root`,
|
|
8
8
|
logo: `${PREFIX}-logo`
|
|
9
9
|
};
|
|
10
10
|
const Root = styled(Toolbar, {
|
|
11
11
|
name: PREFIX,
|
|
12
|
-
slot: '
|
|
13
|
-
overridesResolver: (props, styles) => styles.root
|
|
12
|
+
slot: 'SkeletonRoot'
|
|
14
13
|
})(() => ({}));
|
|
15
14
|
/**
|
|
16
15
|
* > API documentation for the Community-JS Navigation Toolbar Mobile Skeleton component. Learn about the available props and the CSS API.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCNavigationToolbarMobile";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCNavigationToolbarMobile';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare const COMPOSER_TYPE_DISCUSSION = "discussion";
|
|
2
2
|
export declare const COMPOSER_TYPE_POST = "post";
|
|
3
|
+
export declare const COMPOSER_TYPE_POLL = "poll";
|
|
3
4
|
export declare const COMPOSER_TYPES: {
|
|
4
5
|
discussion: string;
|
|
5
6
|
post: string;
|
|
7
|
+
poll: string;
|
|
6
8
|
};
|
|
7
9
|
export declare const COMPOSER_TITLE_MAX_LENGTH = 160;
|
|
8
10
|
export declare const COMPOSER_POLL_TITLE_MAX_LENGTH = 160;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export const COMPOSER_TYPE_DISCUSSION = 'discussion';
|
|
2
2
|
export const COMPOSER_TYPE_POST = 'post';
|
|
3
|
+
export const COMPOSER_TYPE_POLL = 'poll';
|
|
3
4
|
export const COMPOSER_TYPES = {
|
|
4
5
|
[COMPOSER_TYPE_DISCUSSION]: COMPOSER_TYPE_DISCUSSION,
|
|
5
|
-
[COMPOSER_TYPE_POST]: COMPOSER_TYPE_POST
|
|
6
|
+
[COMPOSER_TYPE_POST]: COMPOSER_TYPE_POST,
|
|
7
|
+
[COMPOSER_TYPE_POLL]: COMPOSER_TYPE_POLL
|
|
6
8
|
};
|
|
7
9
|
export const COMPOSER_TITLE_MAX_LENGTH = 160;
|
|
8
10
|
export const COMPOSER_POLL_TITLE_MAX_LENGTH = 160;
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -16,15 +16,14 @@ import CategoryAutocomplete, { CategoryAutocompleteProps } from './components/Ca
|
|
|
16
16
|
import CategoryFollowersButton, { CategoryFollowersButtonProps } from './components/CategoryFollowersButton';
|
|
17
17
|
import CategoryHeader, { CategoryHeaderProps, CategoryHeaderSkeleton } from './components/CategoryHeader';
|
|
18
18
|
import Categories, { CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps } from './components/Categories';
|
|
19
|
-
import UserFollowedCategoriesWidget, {
|
|
19
|
+
import UserFollowedCategoriesWidget, { UserFollowedCategoriesWidgetProps, UserFollowedCategoriesWidgetSkeleton } from './components/UserFollowedCategoriesWidget';
|
|
20
20
|
import CategoriesPopularWidget, { CategoriesPopularWidgetSkeleton } from './components/CategoriesPopularWidget';
|
|
21
21
|
import CategoriesSuggestionWidget, { CategoriesSuggestionWidgetProps, CategoriesSuggestionWidgetSkeleton } from './components/CategoriesSuggestionWidget';
|
|
22
22
|
import ChangeCover, { ChangeCoverProps } from './components/ChangeCover';
|
|
23
23
|
import ChangePicture, { ChangePictureProps } from './components/ChangePicture';
|
|
24
24
|
import FriendshipUserButton, { FriendshipButtonProps } from './components/FriendshipUserButton';
|
|
25
|
-
import Composer, { ComposerProps
|
|
25
|
+
import Composer, { ComposerProps } from './components/Composer';
|
|
26
26
|
import ComposerIconButton, { ComposerIconButtonProps } from './components/ComposerIconButton';
|
|
27
|
-
import { COMPOSER_TYPE_DISCUSSION, COMPOSER_TYPE_POST } from './constants/Composer';
|
|
28
27
|
import Editor, { EditorProps, EditorSkeleton } from './components/Editor';
|
|
29
28
|
import User, { UserProps, UserSkeleton } from './components/User';
|
|
30
29
|
import Feed, { FeedProps, FeedRef, FeedSidebarProps, FeedSkeleton } from './components/Feed';
|
|
@@ -40,26 +39,26 @@ import PrivateMessageSnippets, { PrivateMessageSnippetsProps, PrivateMessageSnip
|
|
|
40
39
|
import LocationAutocomplete, { LocationAutocompleteProps } from './components/LocationAutocomplete';
|
|
41
40
|
import LoyaltyProgramWidget, { LoyaltyProgramWidgetProps, LoyaltyProgramWidgetSkeleton } from './components/LoyaltyProgramWidget';
|
|
42
41
|
import CategoryTrendingFeedWidget, { CategoryTrendingFeedWidgetProps, CategoryTrendingFeedWidgetSkeleton } from './components/CategoryTrendingFeedWidget';
|
|
43
|
-
import CategoryTrendingUsersWidget, {
|
|
42
|
+
import CategoryTrendingUsersWidget, { CategoryTrendingPeopleWidgetSkeleton, CategoryTrendingUsersWidgetProps } from './components/CategoryTrendingUsersWidget';
|
|
44
43
|
import UserActionIconButton, { UserActionIconButtonProps } from './components/UserActionIconButton';
|
|
45
44
|
import UserCounters, { UserCountersProps } from './components/UserCounters';
|
|
46
45
|
import UserProfileHeader, { UserProfileHeaderProps, UserProfileHeaderSkeleton } from './components/UserProfileHeader';
|
|
47
46
|
import UserInfoDialog, { UserInfoDialogProps } from './components/UserInfoDialog';
|
|
48
47
|
import UserInfo, { UserInfoProps, UserInfoSkeleton } from './components/UserInfo';
|
|
49
48
|
import UserProfileBlocked, { UserProfileBlockedProps } from './components/UserProfileBlocked';
|
|
50
|
-
import UserProfileEdit, { UserProfileEditProps,
|
|
49
|
+
import UserProfileEdit, { UserProfileEditProps, UserProfileEditSectionAccount, UserProfileEditSectionAccountProps, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps, UserProfileEditSkeleton } from './components/UserProfileEdit';
|
|
51
50
|
import UserFollowedUsersWidget, { UserFollowedUsersWidgetProps, UserFollowedUsersWidgetSkeleton } from './components/UserFollowedUsersWidget';
|
|
52
51
|
import UserSocialAssociation, { UserSocialAssociationProps } from './components/UserSocialAssociation';
|
|
53
52
|
import UserFollowersWidget, { UserFollowersWidgetProps, UserFollowersWidgetSkeleton } from './components/UserFollowersWidget';
|
|
54
53
|
import UserConnectionsWidget, { UserConnectionsWidgetProps, UserConnectionsWidgetSkeleton } from './components/UserConnectionsWidget';
|
|
55
54
|
import UserConnectionsRequestsWidget, { UserConnectionsRequestsWidgetProps, UserConnectionsRequestsWidgetSkeleton } from './components/UserConnectionsRequestsWidget';
|
|
56
55
|
import UserConnectionsRequestsSentWidget, { UserConnectionsRequestsSentWidgetProps, UserConnectionsRequestsSentWidgetSkeleton } from './components/UserConnectionsRequestsSentWidget';
|
|
57
|
-
import RelatedFeedObjectsWidget, {
|
|
56
|
+
import RelatedFeedObjectsWidget, { RelatedFeedObjectsWidgetSkeleton, RelatedFeedObjectWidgetProps } from './components/RelatedFeedObjectsWidget';
|
|
58
57
|
import CommentObject, { CommentObjectProps, CommentObjectSkeleton } from './components/CommentObject';
|
|
59
|
-
import CommentObjectReply
|
|
58
|
+
import CommentObjectReply from './components/CommentObjectReply';
|
|
59
|
+
import ReplyComment, { CommentObjectReplyProps } from './components/CommentObjectReply';
|
|
60
60
|
import CommentsObject, { CommentsObjectProps, CommentsObjectSkeleton } from './components/CommentsObject';
|
|
61
61
|
import CommentsFeedObject, { CommentsFeedObjectProps, CommentsFeedObjectSkeleton } from './components/CommentsFeedObject';
|
|
62
|
-
import ReplyComment from './components/CommentObjectReply';
|
|
63
62
|
import CustomAdv, { CustomAdvProps, CustomAdvSkeleton } from './components/CustomAdv';
|
|
64
63
|
import { AvatarGroupSkeleton, GenericSkeleton } from './components/Skeleton';
|
|
65
64
|
import PrivateMessageSnippetItem, { PrivateMessageSnippetItemProps, PrivateMessageSnippetItemSkeleton } from './components/PrivateMessageSnippetItem';
|
|
@@ -80,13 +79,13 @@ import LanguageSwitcher from './shared/LanguageSwitcher';
|
|
|
80
79
|
import BaseItem, { BaseItemProps } from './shared/BaseItem';
|
|
81
80
|
import BaseDialog, { BaseDialogProps } from './shared/BaseDialog';
|
|
82
81
|
import MediaChunkUploader, { MediaChunkUploaderProps } from './shared/MediaChunkUploader';
|
|
83
|
-
import {
|
|
82
|
+
import { File, EditMediaProps, Link, Share } from './shared/Media';
|
|
84
83
|
import UrlTextField from './shared/UrlTextField';
|
|
85
84
|
import UsernameTextField from './shared/UsernameTextField';
|
|
86
85
|
import EmailTextField from './shared/EmailTextField';
|
|
87
86
|
import PasswordTextField from './shared/PasswordTextField';
|
|
88
87
|
import PhoneTextField from './shared/PhoneTextField';
|
|
89
|
-
import StickyBox, {
|
|
88
|
+
import StickyBox, { StickyBoxComponent, StickyBoxProps, useStickyBox, UseStickyBoxProps } from './shared/StickyBox';
|
|
90
89
|
import TagChip, { TagChipProps } from './shared/TagChip';
|
|
91
90
|
import UserDeletedSnackBar, { UserDeletedSnackBarProps } from './shared/UserDeletedSnackBar';
|
|
92
91
|
import UserAvatar, { UserAvatarProps } from './shared/UserAvatar';
|
|
@@ -109,7 +108,7 @@ import PrivateMessageComponent, { PrivateMessageComponentProps, PrivateMessageCo
|
|
|
109
108
|
* Constants
|
|
110
109
|
*/
|
|
111
110
|
import { DEFAULT_WIDGETS_NUMBER } from './constants/Feed';
|
|
112
|
-
import {
|
|
111
|
+
import { DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_QUERY_PARAM_NAME } from './constants/Pagination';
|
|
113
112
|
import { FACEBOOK_SHARE, LINKEDIN_SHARE, TWITTER_SHARE } from './constants/SocialShare';
|
|
114
113
|
import { DEFAULT_PRELOAD_OFFSET_VIEWPORT, MAX_PRELOAD_OFFSET_VIEWPORT, MIN_PRELOAD_OFFSET_VIEWPORT } from './constants/LazyLoad';
|
|
115
114
|
import { LEGAL_POLICIES } from './constants/LegalPolicies';
|
|
@@ -125,7 +124,8 @@ import { bytesToSize } from './utils/sizeCoverter';
|
|
|
125
124
|
import { getUnseenNotification, getUnseenNotificationCounter } from './utils/feed';
|
|
126
125
|
import * as MessageUploaderUtils from './utils/thumbnailCoverter';
|
|
127
126
|
import { getRelativeTime } from './utils/formatRelativeTime';
|
|
127
|
+
import FeedObjectMediaPreview, { FeedObjectMediaPreviewProps } from './components/FeedObjectMediaPreview';
|
|
128
128
|
/**
|
|
129
129
|
* List all exports
|
|
130
130
|
*/
|
|
131
|
-
export { AccountDataPortability, AccountDataPortabilityProps, AccountDataPortabilityButton, AccountDataPortabilityButtonProps, AccountDelete, AccountDeleteProps, AccountDeleteButton, AccountDeleteButtonProps, AccountRecover, AccountRecoverProps, AccountReset, AccountResetProps, AccountVerify, AccountVerifyProps, AccountChangeMailValidation, AccountChangeMailValidationProps, NavigationSettingsIconButton, NavigationSettingsIconButtonProps, NavigationSettingsItem, NavigationToolbarMobile, NavigationToolbarMobileProps, NavigationToolbarMobileSkeleton, NavigationToolbar, NavigationToolbarProps, NavigationToolbarSkeleton, NavigationMenuIconButton, NavigationMenuIconButtonProps, BottomNavigation, BottomNavigationProps, BroadcastMessages, BroadcastMessagesProps, BroadcastMessagesSkeleton, Category, CategoryProps, CategorySkeleton, CategoryAutocomplete, CategoryAutocompleteProps, CategoryFollowersButton, CategoryFollowersButtonProps, CategoryHeader, CategoryHeaderProps, CategoryHeaderSkeleton, Categories, CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetProps, UserFollowedCategoriesWidgetSkeleton, CategoriesPopularWidget, CategoriesPopularWidgetSkeleton, CategoriesSuggestionWidget, CategoriesSuggestionWidgetProps, CategoriesSuggestionWidgetSkeleton, ChangeCover, ChangePicture, ChangePictureProps, ChangeCoverProps, Composer,
|
|
131
|
+
export { AccountDataPortability, AccountDataPortabilityProps, AccountDataPortabilityButton, AccountDataPortabilityButtonProps, AccountDelete, AccountDeleteProps, AccountDeleteButton, AccountDeleteButtonProps, AccountRecover, AccountRecoverProps, AccountReset, AccountResetProps, AccountVerify, AccountVerifyProps, AccountChangeMailValidation, AccountChangeMailValidationProps, NavigationSettingsIconButton, NavigationSettingsIconButtonProps, NavigationSettingsItem, NavigationToolbarMobile, NavigationToolbarMobileProps, NavigationToolbarMobileSkeleton, NavigationToolbar, NavigationToolbarProps, NavigationToolbarSkeleton, NavigationMenuIconButton, NavigationMenuIconButtonProps, BottomNavigation, BottomNavigationProps, BroadcastMessages, BroadcastMessagesProps, BroadcastMessagesSkeleton, Category, CategoryProps, CategorySkeleton, CategoryAutocomplete, CategoryAutocompleteProps, CategoryFollowersButton, CategoryFollowersButtonProps, CategoryHeader, CategoryHeaderProps, CategoryHeaderSkeleton, Categories, CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetProps, UserFollowedCategoriesWidgetSkeleton, CategoriesPopularWidget, CategoriesPopularWidgetSkeleton, CategoriesSuggestionWidget, CategoriesSuggestionWidgetProps, CategoriesSuggestionWidgetSkeleton, ChangeCover, ChangePicture, ChangePictureProps, ChangeCoverProps, Composer, ComposerProps, ComposerIconButton, ComposerIconButtonProps, Editor, EditorProps, EditorSkeleton, FriendshipUserButton, FriendshipButtonProps, Feed, FeedRef, FeedProps, FeedSidebarProps, FeedSkeleton, CategoryFollowButton, CategoryFollowButtonProps, FollowUserButton, FollowUserButtonProps, ConnectionUserButton, FeedObject, FeedObjectProps, FeedObjectSkeleton, FeedObjectMediaPreview, FeedObjectMediaPreviewProps, FeedUpdatesWidget, FeedUpdatesWidgetProps, FeedUpdatesWidgetSkeleton, GenericSkeleton, AvatarGroupSkeleton, CommentObject, CommentsObject, CommentsObjectProps, CommentObjectProps, CommentsObjectSkeleton, CommentObjectSkeleton, CommentObjectReply, CommentObjectReplyProps, CommentsFeedObject, CommentsFeedObjectProps, CommentsFeedObjectSkeleton, ReplyComment, InlineComposerWidget, InlineComposerWidgetProps, InlineComposerWidgetSkeleton, Notification, NotificationProps, NotificationSkeleton, UserSuggestionWidget, UserSuggestionWidgetProps, UserSuggestionWidgetSkeleton, PlatformWidget, PlatformWidgetProps, PlatformWidgetSkeleton, LocationAutocomplete, LocationAutocompleteProps, LoyaltyProgramWidget, LoyaltyProgramWidgetProps, LoyaltyProgramWidgetSkeleton, CategoryTrendingFeedWidget, CategoryTrendingFeedWidgetProps, CategoryTrendingFeedWidgetSkeleton, CategoryTrendingUsersWidget, CategoryTrendingUsersWidgetProps, CategoryTrendingPeopleWidgetSkeleton, RelatedFeedObjectsWidget, RelatedFeedObjectWidgetProps, RelatedFeedObjectsWidgetSkeleton, UserActionIconButton, UserActionIconButtonProps, UserCounters, UserCountersProps, UserProfileHeader, UserProfileHeaderProps, UserProfileHeaderSkeleton, UserInfoDialog, UserInfoDialogProps, UserInfo, UserInfoProps, UserInfoSkeleton, UserProfileBlocked, UserProfileBlockedProps, SCUserProfileFields, SCUserProfileSettings, UserProfileEdit, UserProfileEditProps, UserProfileEditSkeleton, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps, UserProfileEditSectionAccount, UserProfileEditSectionAccountProps, UserFollowedUsersWidget, UserFollowedUsersWidgetProps, UserFollowedUsersWidgetSkeleton, UserFollowersWidget, UserFollowersWidgetProps, UserFollowersWidgetSkeleton, UserConnectionsWidget, UserConnectionsWidgetProps, UserConnectionsWidgetSkeleton, UserConnectionsRequestsWidget, UserConnectionsRequestsWidgetProps, UserConnectionsRequestsWidgetSkeleton, UserConnectionsRequestsSentWidget, UserConnectionsRequestsSentWidgetProps, UserConnectionsRequestsSentWidgetSkeleton, UserSocialAssociation, UserSocialAssociationProps, SCUserSocialAssociations, CustomAdv, CustomAdvProps, CustomAdvSkeleton, User, UserProps, UserSkeleton, PrivateMessageThread, PrivateMessageThreadProps, PrivateMessageThreadSkeleton, PrivateMessageThreadItem, PrivateMessageThreadItemProps, PrivateMessageThreadItemSkeleton, PrivateMessageSnippetItem, PrivateMessageSnippetItemProps, PrivateMessageSnippetItemSkeleton, PrivateMessageEditor, PrivateMessageEditorProps, PrivateMessageEditorSkeleton, PrivateMessageSnippets, PrivateMessageSnippetsProps, PrivateMessageSnippetsSkeleton, PrivateMessageComponent, PrivateMessageComponentProps, PrivateMessageComponentSkeleton, PrivateMessageSettingsIconButton, PrivateMessageSettingsIconButtonProps, ToastNotifications, ToastNotificationsProps, ToastNotificationsSkeleton, SnippetNotifications, SnippetNotificationsProps, SnippetNotificationsSkeleton, SearchAutocomplete, SearchAutocompleteProps, SearchDialog, SearchDialogProps, Widget, WidgetProps, SCFeedWidgetType, SCFeedObjectTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCMediaObjectType, SCMediaChunkType, SCNotificationObjectTemplateType, SCBroadcastMessageTemplateType, UrlTextField, UsernameTextField, EmailTextField, PasswordTextField, PhoneTextField, MetadataField, InfiniteScroll, StickyBox, useStickyBox, StickyBoxProps, StickyBoxComponent, UseStickyBoxProps, TagChip, TagChipProps, UserDeletedSnackBar, UserDeletedSnackBarProps, UserAvatar, UserAvatarProps, Lightbox, CentralProgress, ConfirmDialog, LanguageSwitcher, MediaChunkUploader, MediaChunkUploaderProps, File, Link, Share, EditMediaProps, MEDIA_TYPE_EMBED, FACEBOOK_SHARE, TWITTER_SHARE, LINKEDIN_SHARE, DEFAULT_PRELOAD_OFFSET_VIEWPORT, MIN_PRELOAD_OFFSET_VIEWPORT, MAX_PRELOAD_OFFSET_VIEWPORT, ConsentSolution, ConsentSolutionProps, ConsentSolutionSkeleton, ConsentSolutionButton, ConsentSolutionButtonProps, LEGAL_POLICIES, DEFAULT_FIELDS, DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_LIMIT, DEFAULT_WIDGETS_NUMBER, PollSuggestionWidget, PollSuggestionWidgetProps, Incubator, IncubatorSubscribeButton, IncubatorSubscribeButtonProps, IncubatorProps, IncubatorListWidget, IncubatorListWidgetProps, IncubatorDetail, IncubatorDetailProps, IncubatorSuggestionWidget, IncubatorSuggestionWidgetProps, ContributionUtils, bytesToSize, getUnseenNotification, getUnseenNotificationCounter, MessageUploaderUtils, getRelativeTime, Footer, FooterProps, FooterSkeleton, BaseItem, BaseItemProps, BaseDialog, BaseDialogProps };
|
package/lib/esm/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import AccountDelete from './components/AccountDelete';
|
|
|
7
7
|
import AccountDeleteButton from './components/AccountDeleteButton';
|
|
8
8
|
import NavigationSettingsIconButton from './components/NavigationSettingsIconButton';
|
|
9
9
|
import NavigationToolbar, { NavigationToolbarSkeleton } from './components/NavigationToolbar';
|
|
10
|
-
import NavigationToolbarMobile, { NavigationToolbarMobileSkeleton } from './components/NavigationToolbarMobile';
|
|
10
|
+
import NavigationToolbarMobile, { NavigationToolbarMobileSkeleton, } from './components/NavigationToolbarMobile';
|
|
11
11
|
import NavigationMenuIconButton from './components/NavigationMenuIconButton';
|
|
12
12
|
import BottomNavigation from './components/BottomNavigation';
|
|
13
13
|
import BroadcastMessages, { BroadcastMessagesSkeleton } from './components/BroadcastMessages';
|
|
@@ -16,15 +16,14 @@ import CategoryAutocomplete from './components/CategoryAutocomplete';
|
|
|
16
16
|
import CategoryFollowersButton from './components/CategoryFollowersButton';
|
|
17
17
|
import CategoryHeader, { CategoryHeaderSkeleton } from './components/CategoryHeader';
|
|
18
18
|
import Categories, { CategoriesSkeleton } from './components/Categories';
|
|
19
|
-
import UserFollowedCategoriesWidget, { UserFollowedCategoriesWidgetSkeleton } from './components/UserFollowedCategoriesWidget';
|
|
19
|
+
import UserFollowedCategoriesWidget, { UserFollowedCategoriesWidgetSkeleton, } from './components/UserFollowedCategoriesWidget';
|
|
20
20
|
import CategoriesPopularWidget, { CategoriesPopularWidgetSkeleton } from './components/CategoriesPopularWidget';
|
|
21
|
-
import CategoriesSuggestionWidget, { CategoriesSuggestionWidgetSkeleton } from './components/CategoriesSuggestionWidget';
|
|
21
|
+
import CategoriesSuggestionWidget, { CategoriesSuggestionWidgetSkeleton, } from './components/CategoriesSuggestionWidget';
|
|
22
22
|
import ChangeCover from './components/ChangeCover';
|
|
23
23
|
import ChangePicture from './components/ChangePicture';
|
|
24
24
|
import FriendshipUserButton from './components/FriendshipUserButton';
|
|
25
|
-
import Composer
|
|
25
|
+
import Composer from './components/Composer';
|
|
26
26
|
import ComposerIconButton from './components/ComposerIconButton';
|
|
27
|
-
import { COMPOSER_TYPE_DISCUSSION, COMPOSER_TYPE_POST } from './constants/Composer';
|
|
28
27
|
import Editor, { EditorSkeleton } from './components/Editor';
|
|
29
28
|
import User, { UserSkeleton } from './components/User';
|
|
30
29
|
import Feed, { FeedSkeleton } from './components/Feed';
|
|
@@ -33,54 +32,54 @@ import FeedUpdatesWidget, { FeedUpdatesWidgetSkeleton } from './components/FeedU
|
|
|
33
32
|
import CategoryFollowButton from './components/CategoryFollowButton';
|
|
34
33
|
import FollowUserButton from './components/FollowUserButton';
|
|
35
34
|
import ConnectionUserButton from './components/ConnectionUserButton';
|
|
36
|
-
import InlineComposerWidget, { InlineComposerWidgetSkeleton } from './components/InlineComposerWidget';
|
|
37
|
-
import UserSuggestionWidget, { UserSuggestionWidgetSkeleton } from './components/UserSuggestionWidget';
|
|
35
|
+
import InlineComposerWidget, { InlineComposerWidgetSkeleton, } from './components/InlineComposerWidget';
|
|
36
|
+
import UserSuggestionWidget, { UserSuggestionWidgetSkeleton, } from './components/UserSuggestionWidget';
|
|
38
37
|
import PlatformWidget, { PlatformWidgetSkeleton } from './components/PlatformWidget';
|
|
39
|
-
import PrivateMessageSnippets, { PrivateMessageSnippetsSkeleton } from './components/PrivateMessageSnippets';
|
|
38
|
+
import PrivateMessageSnippets, { PrivateMessageSnippetsSkeleton, } from './components/PrivateMessageSnippets';
|
|
40
39
|
import LocationAutocomplete from './components/LocationAutocomplete';
|
|
41
|
-
import LoyaltyProgramWidget, { LoyaltyProgramWidgetSkeleton } from './components/LoyaltyProgramWidget';
|
|
42
|
-
import CategoryTrendingFeedWidget, { CategoryTrendingFeedWidgetSkeleton } from './components/CategoryTrendingFeedWidget';
|
|
43
|
-
import CategoryTrendingUsersWidget, { CategoryTrendingPeopleWidgetSkeleton } from './components/CategoryTrendingUsersWidget';
|
|
40
|
+
import LoyaltyProgramWidget, { LoyaltyProgramWidgetSkeleton, } from './components/LoyaltyProgramWidget';
|
|
41
|
+
import CategoryTrendingFeedWidget, { CategoryTrendingFeedWidgetSkeleton, } from './components/CategoryTrendingFeedWidget';
|
|
42
|
+
import CategoryTrendingUsersWidget, { CategoryTrendingPeopleWidgetSkeleton, } from './components/CategoryTrendingUsersWidget';
|
|
44
43
|
import UserActionIconButton from './components/UserActionIconButton';
|
|
45
44
|
import UserCounters from './components/UserCounters';
|
|
46
45
|
import UserProfileHeader, { UserProfileHeaderSkeleton } from './components/UserProfileHeader';
|
|
47
46
|
import UserInfoDialog from './components/UserInfoDialog';
|
|
48
47
|
import UserInfo, { UserInfoSkeleton } from './components/UserInfo';
|
|
49
48
|
import UserProfileBlocked from './components/UserProfileBlocked';
|
|
50
|
-
import UserProfileEdit, {
|
|
51
|
-
import UserFollowedUsersWidget, { UserFollowedUsersWidgetSkeleton } from './components/UserFollowedUsersWidget';
|
|
49
|
+
import UserProfileEdit, { UserProfileEditSectionAccount, UserProfileEditSectionPublicInfo, UserProfileEditSectionSettings, UserProfileEditSkeleton, } from './components/UserProfileEdit';
|
|
50
|
+
import UserFollowedUsersWidget, { UserFollowedUsersWidgetSkeleton, } from './components/UserFollowedUsersWidget';
|
|
52
51
|
import UserSocialAssociation from './components/UserSocialAssociation';
|
|
53
|
-
import UserFollowersWidget, { UserFollowersWidgetSkeleton } from './components/UserFollowersWidget';
|
|
54
|
-
import UserConnectionsWidget, { UserConnectionsWidgetSkeleton } from './components/UserConnectionsWidget';
|
|
55
|
-
import UserConnectionsRequestsWidget, { UserConnectionsRequestsWidgetSkeleton } from './components/UserConnectionsRequestsWidget';
|
|
56
|
-
import UserConnectionsRequestsSentWidget, { UserConnectionsRequestsSentWidgetSkeleton } from './components/UserConnectionsRequestsSentWidget';
|
|
57
|
-
import RelatedFeedObjectsWidget, { RelatedFeedObjectsWidgetSkeleton } from './components/RelatedFeedObjectsWidget';
|
|
52
|
+
import UserFollowersWidget, { UserFollowersWidgetSkeleton, } from './components/UserFollowersWidget';
|
|
53
|
+
import UserConnectionsWidget, { UserConnectionsWidgetSkeleton, } from './components/UserConnectionsWidget';
|
|
54
|
+
import UserConnectionsRequestsWidget, { UserConnectionsRequestsWidgetSkeleton, } from './components/UserConnectionsRequestsWidget';
|
|
55
|
+
import UserConnectionsRequestsSentWidget, { UserConnectionsRequestsSentWidgetSkeleton, } from './components/UserConnectionsRequestsSentWidget';
|
|
56
|
+
import RelatedFeedObjectsWidget, { RelatedFeedObjectsWidgetSkeleton, } from './components/RelatedFeedObjectsWidget';
|
|
58
57
|
import CommentObject, { CommentObjectSkeleton } from './components/CommentObject';
|
|
59
58
|
import CommentObjectReply from './components/CommentObjectReply';
|
|
60
|
-
import CommentsObject, { CommentsObjectSkeleton } from './components/CommentsObject';
|
|
61
|
-
import CommentsFeedObject, { CommentsFeedObjectSkeleton } from './components/CommentsFeedObject';
|
|
62
59
|
import ReplyComment from './components/CommentObjectReply';
|
|
60
|
+
import CommentsObject, { CommentsObjectSkeleton } from './components/CommentsObject';
|
|
61
|
+
import CommentsFeedObject, { CommentsFeedObjectSkeleton, } from './components/CommentsFeedObject';
|
|
63
62
|
import CustomAdv, { CustomAdvSkeleton } from './components/CustomAdv';
|
|
64
63
|
import { AvatarGroupSkeleton, GenericSkeleton } from './components/Skeleton';
|
|
65
|
-
import PrivateMessageSnippetItem, { PrivateMessageSnippetItemSkeleton } from './components/PrivateMessageSnippetItem';
|
|
66
|
-
import PrivateMessageThreadItem, { PrivateMessageThreadItemSkeleton } from './components/PrivateMessageThreadItem';
|
|
67
|
-
import PrivateMessageEditor, { PrivateMessageEditorSkeleton } from './components/PrivateMessageEditor';
|
|
68
|
-
import PrivateMessageThread, { PrivateMessageThreadSkeleton } from './components/PrivateMessageThread';
|
|
69
|
-
import ToastNotifications, { ToastNotificationsSkeleton } from './components/ToastNotifications';
|
|
70
|
-
import SnippetNotifications, { SnippetNotificationsSkeleton } from './components/SnippetNotifications';
|
|
64
|
+
import PrivateMessageSnippetItem, { PrivateMessageSnippetItemSkeleton, } from './components/PrivateMessageSnippetItem';
|
|
65
|
+
import PrivateMessageThreadItem, { PrivateMessageThreadItemSkeleton, } from './components/PrivateMessageThreadItem';
|
|
66
|
+
import PrivateMessageEditor, { PrivateMessageEditorSkeleton, } from './components/PrivateMessageEditor';
|
|
67
|
+
import PrivateMessageThread, { PrivateMessageThreadSkeleton, } from './components/PrivateMessageThread';
|
|
68
|
+
import ToastNotifications, { ToastNotificationsSkeleton, } from './components/ToastNotifications';
|
|
69
|
+
import SnippetNotifications, { SnippetNotificationsSkeleton, } from './components/SnippetNotifications';
|
|
71
70
|
import Notification, { NotificationSkeleton } from './components/Notification';
|
|
72
71
|
import AccountRecover from './components/AccountRecover';
|
|
73
72
|
import AccountReset from './components/AccountReset';
|
|
74
73
|
import AccountVerify from './components/AccountVerify';
|
|
75
74
|
import AccountChangeMailValidation from './components/AccountChangeMailValidation';
|
|
76
|
-
import { SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations } from './types';
|
|
75
|
+
import { SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, } from './types';
|
|
77
76
|
import Widget from './components/Widget';
|
|
78
77
|
import ConfirmDialog from './shared/ConfirmDialog/ConfirmDialog';
|
|
79
78
|
import LanguageSwitcher from './shared/LanguageSwitcher';
|
|
80
79
|
import BaseItem from './shared/BaseItem';
|
|
81
80
|
import BaseDialog from './shared/BaseDialog';
|
|
82
81
|
import MediaChunkUploader from './shared/MediaChunkUploader';
|
|
83
|
-
import {
|
|
82
|
+
import { File, Link, Share } from './shared/Media';
|
|
84
83
|
import UrlTextField from './shared/UrlTextField';
|
|
85
84
|
import UsernameTextField from './shared/UsernameTextField';
|
|
86
85
|
import EmailTextField from './shared/EmailTextField';
|
|
@@ -104,14 +103,14 @@ import Footer, { FooterSkeleton } from './components/Footer';
|
|
|
104
103
|
import SearchAutocomplete from './components/SearchAutocomplete';
|
|
105
104
|
import SearchDialog from './components/SearchDialog';
|
|
106
105
|
import PrivateMessageSettingsIconButton from './components/PrivateMessageSettingsIconButton';
|
|
107
|
-
import PrivateMessageComponent, { PrivateMessageComponentSkeleton } from './components/PrivateMessageComponent';
|
|
106
|
+
import PrivateMessageComponent, { PrivateMessageComponentSkeleton, } from './components/PrivateMessageComponent';
|
|
108
107
|
/**
|
|
109
108
|
* Constants
|
|
110
109
|
*/
|
|
111
110
|
import { DEFAULT_WIDGETS_NUMBER } from './constants/Feed';
|
|
112
|
-
import {
|
|
111
|
+
import { DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_QUERY_PARAM_NAME, } from './constants/Pagination';
|
|
113
112
|
import { FACEBOOK_SHARE, LINKEDIN_SHARE, TWITTER_SHARE } from './constants/SocialShare';
|
|
114
|
-
import { DEFAULT_PRELOAD_OFFSET_VIEWPORT, MAX_PRELOAD_OFFSET_VIEWPORT, MIN_PRELOAD_OFFSET_VIEWPORT } from './constants/LazyLoad';
|
|
113
|
+
import { DEFAULT_PRELOAD_OFFSET_VIEWPORT, MAX_PRELOAD_OFFSET_VIEWPORT, MIN_PRELOAD_OFFSET_VIEWPORT, } from './constants/LazyLoad';
|
|
115
114
|
import { LEGAL_POLICIES } from './constants/LegalPolicies';
|
|
116
115
|
import { DEFAULT_FIELDS } from './constants/UserProfile';
|
|
117
116
|
/**
|
|
@@ -125,12 +124,13 @@ import { bytesToSize } from './utils/sizeCoverter';
|
|
|
125
124
|
import { getUnseenNotification, getUnseenNotificationCounter } from './utils/feed';
|
|
126
125
|
import * as MessageUploaderUtils from './utils/thumbnailCoverter';
|
|
127
126
|
import { getRelativeTime } from './utils/formatRelativeTime';
|
|
127
|
+
import FeedObjectMediaPreview from './components/FeedObjectMediaPreview';
|
|
128
128
|
/**
|
|
129
129
|
* List all exports
|
|
130
130
|
*/
|
|
131
|
-
export { AccountDataPortability, AccountDataPortabilityButton, AccountDelete, AccountDeleteButton, AccountRecover, AccountReset, AccountVerify, AccountChangeMailValidation, NavigationSettingsIconButton, NavigationToolbarMobile, NavigationToolbarMobileSkeleton, NavigationToolbar, NavigationToolbarSkeleton, NavigationMenuIconButton, BottomNavigation, BroadcastMessages, BroadcastMessagesSkeleton, Category, CategorySkeleton, CategoryAutocomplete, CategoryFollowersButton, CategoryHeader, CategoryHeaderSkeleton, Categories, CategoriesSkeleton, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetSkeleton, CategoriesPopularWidget, CategoriesPopularWidgetSkeleton, CategoriesSuggestionWidget, CategoriesSuggestionWidgetSkeleton, ChangeCover, ChangePicture, Composer,
|
|
131
|
+
export { AccountDataPortability, AccountDataPortabilityButton, AccountDelete, AccountDeleteButton, AccountRecover, AccountReset, AccountVerify, AccountChangeMailValidation, NavigationSettingsIconButton, NavigationToolbarMobile, NavigationToolbarMobileSkeleton, NavigationToolbar, NavigationToolbarSkeleton, NavigationMenuIconButton, BottomNavigation, BroadcastMessages, BroadcastMessagesSkeleton, Category, CategorySkeleton, CategoryAutocomplete, CategoryFollowersButton, CategoryHeader, CategoryHeaderSkeleton, Categories, CategoriesSkeleton, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetSkeleton, CategoriesPopularWidget, CategoriesPopularWidgetSkeleton, CategoriesSuggestionWidget, CategoriesSuggestionWidgetSkeleton, ChangeCover, ChangePicture, Composer, ComposerIconButton, Editor, EditorSkeleton, FriendshipUserButton, Feed, FeedSkeleton, CategoryFollowButton, FollowUserButton, ConnectionUserButton, FeedObject, FeedObjectSkeleton, FeedObjectMediaPreview, FeedUpdatesWidget, FeedUpdatesWidgetSkeleton, GenericSkeleton, AvatarGroupSkeleton, CommentObject, CommentsObject, CommentsObjectSkeleton, CommentObjectSkeleton, CommentObjectReply, CommentsFeedObject, CommentsFeedObjectSkeleton, ReplyComment, InlineComposerWidget, InlineComposerWidgetSkeleton, Notification, NotificationSkeleton, UserSuggestionWidget, UserSuggestionWidgetSkeleton, PlatformWidget, PlatformWidgetSkeleton, LocationAutocomplete, LoyaltyProgramWidget, LoyaltyProgramWidgetSkeleton, CategoryTrendingFeedWidget, CategoryTrendingFeedWidgetSkeleton, CategoryTrendingUsersWidget, CategoryTrendingPeopleWidgetSkeleton, RelatedFeedObjectsWidget, RelatedFeedObjectsWidgetSkeleton, UserActionIconButton, UserCounters, UserProfileHeader, UserProfileHeaderSkeleton, UserInfoDialog, UserInfo, UserInfoSkeleton, UserProfileBlocked, SCUserProfileFields, SCUserProfileSettings, UserProfileEdit, UserProfileEditSkeleton, UserProfileEditSectionPublicInfo, UserProfileEditSectionSettings, UserProfileEditSectionAccount, UserFollowedUsersWidget, UserFollowedUsersWidgetSkeleton, UserFollowersWidget, UserFollowersWidgetSkeleton, UserConnectionsWidget, UserConnectionsWidgetSkeleton, UserConnectionsRequestsWidget, UserConnectionsRequestsWidgetSkeleton, UserConnectionsRequestsSentWidget, UserConnectionsRequestsSentWidgetSkeleton, UserSocialAssociation, SCUserSocialAssociations, CustomAdv, CustomAdvSkeleton, User, UserSkeleton, PrivateMessageThread, PrivateMessageThreadSkeleton, PrivateMessageThreadItem, PrivateMessageThreadItemSkeleton, PrivateMessageSnippetItem, PrivateMessageSnippetItemSkeleton, PrivateMessageEditor, PrivateMessageEditorSkeleton, PrivateMessageSnippets, PrivateMessageSnippetsSkeleton, PrivateMessageComponent, PrivateMessageComponentSkeleton, PrivateMessageSettingsIconButton, ToastNotifications, ToastNotificationsSkeleton, SnippetNotifications, SnippetNotificationsSkeleton, SearchAutocomplete, SearchDialog, Widget, SCFeedObjectTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCNotificationObjectTemplateType, SCBroadcastMessageTemplateType,
|
|
132
132
|
/* SC UI SHARED */
|
|
133
|
-
UrlTextField, UsernameTextField, EmailTextField, PasswordTextField, PhoneTextField, MetadataField, InfiniteScroll, StickyBox, useStickyBox, TagChip, UserDeletedSnackBar, UserAvatar, Lightbox, CentralProgress, ConfirmDialog, LanguageSwitcher, MediaChunkUploader,
|
|
133
|
+
UrlTextField, UsernameTextField, EmailTextField, PasswordTextField, PhoneTextField, MetadataField, InfiniteScroll, StickyBox, useStickyBox, TagChip, UserDeletedSnackBar, UserAvatar, Lightbox, CentralProgress, ConfirmDialog, LanguageSwitcher, MediaChunkUploader, File, Link, Share, MEDIA_TYPE_EMBED, FACEBOOK_SHARE, TWITTER_SHARE, LINKEDIN_SHARE, DEFAULT_PRELOAD_OFFSET_VIEWPORT, MIN_PRELOAD_OFFSET_VIEWPORT, MAX_PRELOAD_OFFSET_VIEWPORT,
|
|
134
134
|
/* SC CONSENT SOLUTION */
|
|
135
135
|
ConsentSolution, ConsentSolutionSkeleton, ConsentSolutionButton, LEGAL_POLICIES, DEFAULT_FIELDS,
|
|
136
136
|
/* SC UI PAGINATION */
|
|
@@ -13,14 +13,14 @@ const Root = styled(PhotoSlider, {
|
|
|
13
13
|
overridesResolver: (props, styles) => styles.root
|
|
14
14
|
})(() => ({}));
|
|
15
15
|
const ReactImageLightbox = (props) => {
|
|
16
|
-
const { images = [], index, onClose, visible = true, afterClose, onIndexChange, toolbarButtons = [] } = props, rest = __rest(props, ["images", "index", "onClose", "visible", "afterClose", "onIndexChange", "toolbarButtons"]);
|
|
16
|
+
const { images = [], index, onClose, visible = true, afterClose, onIndexChange, toolbarRender, toolbarButtons = [] } = props, rest = __rest(props, ["images", "index", "onClose", "visible", "afterClose", "onIndexChange", "toolbarRender", "toolbarButtons"]);
|
|
17
17
|
// STATE
|
|
18
18
|
const [currentImages] = useState(images || []);
|
|
19
19
|
const [currentImageIndex, setCurrentImageIndex] = useState(index || 0);
|
|
20
20
|
/**
|
|
21
21
|
* Renders root object
|
|
22
22
|
*/
|
|
23
|
-
return (React.createElement(Root, Object.assign({}, rest, { className: classes.root, images: currentImages, visible: visible && index !== -1, index: currentImageIndex, onIndexChange: setCurrentImageIndex, onClose: onClose, afterClose: afterClose, loadingElement: React.createElement(CircularProgress, { color: 'primary' }), toolbarRender: () => {
|
|
23
|
+
return (React.createElement(Root, Object.assign({}, rest, { className: classes.root, images: currentImages, visible: visible && index !== -1, index: currentImageIndex, onIndexChange: setCurrentImageIndex, onClose: onClose, afterClose: afterClose, loadingElement: React.createElement(CircularProgress, { color: 'primary' }), toolbarRender: toolbarRender ? toolbarRender : () => {
|
|
24
24
|
return React.createElement(React.Fragment, null, toolbarButtons);
|
|
25
25
|
} })));
|
|
26
26
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export interface ImagePreviewComponentProps {
|
|
3
2
|
/**
|
|
4
3
|
* Class name to apply to the root object
|
|
5
4
|
* @default empty string
|
|
6
5
|
*/
|
|
7
|
-
className
|
|
6
|
+
className?: string;
|
|
8
7
|
/**
|
|
9
8
|
* Medias objs
|
|
10
9
|
* @default []
|
|
@@ -20,15 +19,6 @@ export interface ImagePreviewComponentProps {
|
|
|
20
19
|
* @default true
|
|
21
20
|
*/
|
|
22
21
|
gallery?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Component adornments
|
|
25
|
-
* @default null
|
|
26
|
-
*/
|
|
27
|
-
adornment?: React.ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* Handles on click
|
|
30
|
-
*/
|
|
31
|
-
onClick?: (any: any) => void;
|
|
32
22
|
/**
|
|
33
23
|
* Handles on media click
|
|
34
24
|
*/
|