@ludo.ninja/components 2.0.9 → 2.0.11
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/build/api/graphql/index.js +3 -7
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +7 -9
- package/build/api/server-assets/mutations/useLikeAsset/index.js +7 -9
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +14 -21
- package/build/api/server-assets/queries/useFetchAssets/index.js +11 -14
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +13 -15
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +11 -13
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +7 -9
- package/build/api/server-collection/mutations/useLikeCollection/index.js +7 -9
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +19 -21
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +15 -20
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +5 -8
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +5 -8
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +10 -12
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useEditGallery/index.js +5 -7
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +12 -15
- package/build/api/server-galleries/queries/useFetchGallery/index.js +11 -18
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +9 -12
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +11 -17
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +13 -19
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +9 -11
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +10 -16
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +10 -12
- package/build/api/server-identities/mutations/useFollowProfile/index.js +13 -15
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +7 -9
- package/build/api/server-identities/mutations/useInviteCode/index.js +9 -11
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +10 -12
- package/build/api/server-identities/mutations/useRevokeToken/index.js +5 -7
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +9 -11
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +13 -15
- package/build/api/server-identities/queries/useFetchProfile/index.js +19 -23
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +4 -6
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +7 -9
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +7 -9
- package/build/api/server-medias/queries/useFetchUserPic/index.js +8 -10
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +8 -10
- package/build/api/server-opportunities/queries/useGetOpportunities.js +9 -13
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +6 -11
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +9 -13
- package/build/api/server-search/queries/useFetchAllCreations/index.js +15 -23
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +2 -4
- package/build/api/server-search/queries/useFetchCollection/index.js +16 -23
- package/build/api/server-search/queries/useFetchCollections/index.js +16 -23
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +18 -24
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +16 -24
- package/build/api/server-search/queries/useFetchNetWorth/index.js +7 -9
- package/build/api/server-search/queries/useFindCreations/index.js +20 -28
- package/build/api/server-search/queries/useFindProfilesByName/index.js +14 -19
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +1 -3
- package/build/api/server-search/queries/useFindUserCreations/index.js +16 -21
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +1 -3
- package/build/api/subscriptions/SubscriberInviteNotification.js +18 -22
- package/build/components/assetPage/assetLikes/index.js +25 -30
- package/build/components/assetPage/assetNft/index.js +14 -21
- package/build/components/assetPage/audioVideoPlayer/Duration.js +5 -8
- package/build/components/assetPage/audioVideoPlayer/index.js +51 -81
- package/build/components/assetPage/category/index.js +18 -25
- package/build/components/assetPage/description/index.js +17 -24
- package/build/components/assetPage/index.js +11 -25
- package/build/components/assetPage/information/index.js +43 -50
- package/build/components/assetPage/marketPlaces/index.js +26 -33
- package/build/components/assetPage/media/AssetImage/index.js +52 -80
- package/build/components/assetPage/moreDropDown/index.js +47 -77
- package/build/components/assetPage/participants/index.js +64 -71
- package/build/components/assetPage/priceRank/index.js +38 -45
- package/build/components/assetPage/properties/index.js +19 -26
- package/build/components/assetPage/slider/index.js +44 -51
- package/build/components/assetPage/slider/slideItem.js +14 -21
- package/build/components/assetPage/slider/store.js +2 -5
- package/build/components/assetPage/tittle/index.js +32 -39
- package/build/components/assetPage/viewer3D/index.js +50 -58
- package/build/components/base/Meta/index.js +6 -11
- package/build/components/base/NoSSR/index.js +4 -9
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +14 -19
- package/build/components/gallery/add/addCreationToGallery/index.js +20 -25
- package/build/components/headers/components/headerExperienceLabel/index.js +12 -17
- package/build/components/headers/components/headerUserPic/index.js +11 -16
- package/build/components/headers/header/index.js +17 -22
- package/build/components/headers/headerSearch/index.js +21 -26
- package/build/components/headers/headerSimple/index.js +14 -19
- package/build/components/linkTabs/index.js +14 -19
- package/build/components/linkTabs/linkTab/index.js +22 -27
- package/build/components/profile/profileSkeleton/index.js +10 -18
- package/build/components/search/SearchInputContainer.js +61 -91
- package/build/components/search/searchCloseMoreButtons/index.js +20 -25
- package/build/components/search/searchSimpleInput/index.js +37 -65
- package/build/components/search/searchSuggestions/index.js +32 -37
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +17 -22
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +20 -25
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +29 -34
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +28 -58
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +19 -24
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +11 -16
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +13 -18
- package/build/components/searchFiltersConnector/filters/index.js +38 -43
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +5 -10
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +12 -17
- package/build/components/searchFiltersConnector/index.js +12 -19
- package/build/components/sidebar/data.js +18 -26
- package/build/components/sidebar/index.js +59 -87
- package/build/components/sidebar/initializer.js +4 -34
- package/build/components/sidebar/sidebarFilters/index.js +8 -13
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +14 -19
- package/build/components/toTopBtn/index.js +32 -39
- package/build/dto/AssetEntity/index.js +19 -24
- package/build/dto/AssetEntity/interface.js +1 -2
- package/build/dto/AssetEntity/views/AssetAudio/index.js +11 -16
- package/build/dto/AssetEntity/views/AssetImage/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetObject/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetOther/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetVideo/index.js +11 -16
- package/build/dto/AssetEntity/views/index.js +6 -16
- package/build/dto/Collection/CollectionCreationEntity/index.js +22 -27
- package/build/dto/Collection/CollectionCreationEntity/interface.js +1 -2
- package/build/dto/Collection/CollectionEntity/index.js +5 -7
- package/build/dto/Collection/CollectionEntity/interface.js +1 -2
- package/build/dto/CreationEntity/index.js +19 -24
- package/build/dto/CreationEntity/interface.js +1 -2
- package/build/dto/GalleryEntityV2/index.js +5 -10
- package/build/dto/GalleryEntityV2/interface.js +1 -2
- package/build/dto/Theme/interface.js +1 -5
- package/build/dto/common/ItemType/data.js +26 -28
- package/build/dto/common/ItemType/index.js +5 -7
- package/build/dto/common/ItemViews/CreationAudio/index.js +11 -16
- package/build/dto/common/ItemViews/CreationImage/index.js +12 -17
- package/build/dto/common/ItemViews/CreationObject/index.js +10 -15
- package/build/dto/common/ItemViews/CreationOther/index.js +11 -16
- package/build/dto/common/ItemViews/CreationVideo/index.js +11 -16
- package/build/dto/common/Media/Audio/index.js +9 -14
- package/build/dto/common/Media/Image/index.js +10 -15
- package/build/dto/common/Media/Object/index.js +9 -14
- package/build/dto/common/Media/Other/index.js +14 -19
- package/build/dto/common/Media/Screenshot/index.js +10 -15
- package/build/dto/common/Media/Urls/index.js +23 -38
- package/build/dto/common/Media/Video/index.js +9 -14
- package/build/dto/common/Media/index.js +3 -5
- package/build/dto/common/Media/interface.js +1 -2
- package/build/entities/user/type.js +1 -2
- package/build/fonts/FontsInitializeLayout.js +13 -16
- package/build/fonts/vars.js +1 -6
- package/build/hooks/apollo/index.js +8 -11
- package/build/hooks/audio/useMultiAudio/index.js +10 -12
- package/build/hooks/extension/useExtension/index.js +8 -10
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +33 -39
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +32 -39
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +32 -39
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +26 -32
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +23 -29
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +30 -36
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +11 -13
- package/build/hooks/likes/dynamic/useGetTableLikes.js +24 -30
- package/build/hooks/likes/index.js +27 -32
- package/build/hooks/likes/useGetLikesAsset.js +20 -24
- package/build/layouts/GlobalLayout.js +24 -31
- package/build/layouts/base/LWithRegularHeader/index.js +7 -12
- package/build/layouts/base/LWithRegularHeader/type.js +1 -2
- package/build/layouts/base/LWithSearchHeader/index.js +5 -10
- package/build/layouts/base/LWithSearchHeader/type.js +1 -2
- package/build/layouts/custom/mainLayout/index.js +8 -13
- package/build/layouts/custom/styles.js +15 -21
- package/build/layouts/pageTransitionLayout.js +6 -8
- package/build/layouts/pageWithLayout.js +1 -2
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +35 -42
- package/build/modules/gallery/api/useGetFavoriteGallery.js +11 -15
- package/build/modules/gallery/store.js +10 -16
- package/build/modules/gallery/ui/AllResults.js +7 -11
- package/build/modules/gallery/ui/Description.js +24 -31
- package/build/modules/gallery/ui/EditGallery.js +15 -22
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +12 -19
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +21 -28
- package/build/modules/gallery/ui/STopSections.js +10 -16
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +25 -30
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +47 -52
- package/build/modules/gallery/ui/createGalleryForm/index.js +31 -36
- package/build/modules/gallery/ui/editGalleryForm/index.js +40 -45
- package/build/modules/gallery/ui/itemsPreview/index.js +54 -61
- package/build/modules/gallery/useToGalleryAsset.js +15 -23
- package/build/modules/notifications/CreatorNotifications.js +10 -40
- package/build/modules/notifications/index.js +3 -6
- package/build/modules/opportunity/OpportunityCard.js +81 -88
- package/build/modules/opportunity/OpportunityDropDown.js +11 -18
- package/build/modules/opportunity/ShareIcon.js +2 -6
- package/build/modules/opportunity/encodeQuery.js +4 -10
- package/build/modules/opportunity/popup/CopyIcon.js +3 -5
- package/build/modules/opportunity/popup/FacebookIcon.js +3 -5
- package/build/modules/opportunity/popup/LinkedInIcon.js +3 -5
- package/build/modules/opportunity/popup/LogoXIcon.js +3 -5
- package/build/modules/opportunity/popup/OpportunityMenu.js +44 -51
- package/build/modules/opportunity/type.js +1 -2
- package/build/modules/sessionScroll/globalTabs.js +1 -4
- package/build/modules/sessionScroll/index.js +16 -23
- package/build/modules/sessionScroll/type.js +1 -2
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +12 -16
- package/build/modules/user/auth/useAuthVerification.js +10 -37
- package/build/modules/user/auth/useSignIn.js +7 -11
- package/build/modules/user/auth/useSignOut.js +11 -18
- package/build/modules/user/profileData/profileDataInitialization.js +14 -18
- package/build/modules/user/store.js +9 -12
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +36 -43
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +8 -13
- package/build/modules/virtuoso/types.js +1 -2
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +4 -8
- package/build/modules/virtuoso/useVirtuosoData.js +6 -10
- package/build/store/env/index.js +4 -7
- package/build/store/index.js +4 -7
- package/build/store/media/index.js +4 -7
- package/build/store/media/types.js +1 -2
- package/build/store/ui/index.js +21 -24
- package/build/store/ui/types.js +1 -2
- package/build/store/ui/utils.js +4 -8
- package/build/styles/ScreenWidth.js +3 -6
- package/build/styles/animations/index.js +3 -6
- package/build/styles/colors/index.js +1 -38
- package/build/styles/globalStyles.js +5 -7
- package/build/styles/mixins/boxShadow.js +3 -5
- package/build/styles/mixins/boxTransform.js +3 -5
- package/build/styles/mixins/z-indexes.js +10 -13
- package/build/styles/typography/index.js +1 -13
- package/build/system/ActiveLink/ActiveLink.test.js +14 -19
- package/build/system/ActiveLink/index.js +10 -38
- package/build/system/Alert/index.js +6 -11
- package/build/system/Alert/type.js +1 -8
- package/build/system/BasicOverlay/index.js +5 -10
- package/build/system/Buttons/IconButton/index.js +2 -7
- package/build/system/Buttons/IconWithButton/index.js +2 -7
- package/build/system/Buttons/MainButton/index.js +2 -7
- package/build/system/Buttons/SecondaryButton/index.js +2 -7
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +8 -13
- package/build/system/Cards/CardCheckbox/index.js +19 -24
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +11 -16
- package/build/system/Cards/CardContent/CardCategory/index.js +13 -18
- package/build/system/Cards/CardContent/CardContent.test.js +31 -36
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +11 -16
- package/build/system/Cards/CardContent/CardLikes/index.js +11 -16
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +20 -25
- package/build/system/Cards/CardContent/CardShowMore/index.js +34 -40
- package/build/system/Cards/CardContent/index.js +32 -37
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +35 -40
- package/build/system/Cards/CardMedia/CardAudio/index.js +18 -23
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +14 -19
- package/build/system/Cards/CardMedia/CardImage/index.js +8 -13
- package/build/system/Cards/CardMedia/CardVideo/index.js +17 -22
- package/build/system/Cards/CardRank/index.js +32 -37
- package/build/system/Cards/CreationCard/CardHead.js +35 -42
- package/build/system/Cards/CreationCard/index.js +45 -76
- package/build/system/Cards/MultiMediaCard/index.js +30 -35
- package/build/system/Cards/Styles/Content.js +9 -14
- package/build/system/Cards/Styles/Head.js +8 -13
- package/build/system/Cards/Styles/Headicons.js +23 -28
- package/build/system/Cards/Styles/Image.js +8 -13
- package/build/system/Cards/Styles/Likes.js +14 -19
- package/build/system/Cards/Styles/MultiHead.js +11 -16
- package/build/system/Cards/Styles/Video.js +3 -8
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +14 -19
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +10 -15
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +17 -24
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +15 -20
- package/build/system/DropDown/DropDown.test.js +14 -19
- package/build/system/DropDown/index.js +12 -17
- package/build/system/Filters/helpers.js +1 -5
- package/build/system/Filters/type.js +2 -5
- package/build/system/Forms/Checkbox/Checkbox.test.js +13 -18
- package/build/system/Forms/Checkbox/index.js +16 -21
- package/build/system/Forms/DatePicker/index.js +46 -51
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +11 -16
- package/build/system/Forms/ErrorLabel/index.js +10 -15
- package/build/system/Forms/Input/Input.test.js +13 -18
- package/build/system/Forms/Input/index.js +29 -35
- package/build/system/Forms/Input/type.js +1 -2
- package/build/system/Forms/Messages/index.js +1 -3
- package/build/system/Forms/RadioInput/index.js +12 -17
- package/build/system/Forms/Selects/DesktopSelect/index.js +41 -69
- package/build/system/Forms/Selects/DesktopSelect/type.js +1 -2
- package/build/system/Forms/Selects/MobileSelect/index.js +10 -15
- package/build/system/Forms/TextArea/TextArea.test.js +13 -18
- package/build/system/Forms/TextArea/index.js +26 -31
- package/build/system/Forms/index.js +5 -14
- package/build/system/Img/ExternalImage/index.js +11 -17
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +18 -23
- package/build/system/Img/ImageInterceptor/index.js +10 -40
- package/build/system/Img/Profilepic/index.js +12 -19
- package/build/system/Img/Userpic/UserPic.test.js +15 -20
- package/build/system/Img/Userpic/index.js +28 -33
- package/build/system/Img/index.js +3 -19
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +12 -17
- package/build/system/Labels/ExperienceLabel/index.js +27 -32
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +10 -15
- package/build/system/Labels/InviteLabel/index.js +14 -19
- package/build/system/Labels/SkeletonLabel/index.js +2 -7
- package/build/system/Modals/Modal/Modal.test.js +11 -16
- package/build/system/Modals/Modal/index.js +24 -29
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +7 -37
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +11 -16
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +5 -9
- package/build/system/Modals/ModalSidebar/index.js +23 -29
- package/build/system/Overlay/Overlay.test.js +11 -16
- package/build/system/Overlay/index.js +11 -16
- package/build/system/PageLoader/index.js +2 -7
- package/build/system/Palete/index.js +2 -7
- package/build/system/ShareIconResize.js +14 -21
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +15 -20
- package/build/system/Tabs/TabNavLink/index.js +17 -23
- package/build/system/Tabs/TabsNav/TabsNav.test.js +18 -23
- package/build/system/Tabs/TabsNav/index.js +7 -13
- package/build/system/Tabs/TabsNav/type.js +1 -2
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +13 -18
- package/build/system/Tabs/TabsPanel/index.js +5 -10
- package/build/system/index.js +6 -22
- package/build/system/theme.js +1 -7
- package/build/utils/3d.js +1 -5
- package/build/utils/adaptive/check4k.js +5 -9
- package/build/utils/adaptive/scale.js +5 -9
- package/build/utils/auth/index.js +3 -7
- package/build/utils/copyBtn/index.js +23 -30
- package/build/utils/env/index.js +1 -5
- package/build/utils/extractItemIds.js +3 -9
- package/build/utils/getDimensionsImage.js +1 -5
- package/build/utils/getPageSizeAssets.js +4 -8
- package/build/utils/imageProportionsSize/index.js +1 -5
- package/build/utils/screen/index.js +24 -30
- package/build/utils/seacrhTabs.js +1 -4
- package/build/utils/ssrFunctions/index.js +9 -15
- package/build/utils/ui/index.js +1 -5
- package/package.json +2 -3
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const typography_1 = require("../../../../styles/typography");
|
|
18
|
-
const CardImage_1 = __importDefault(require("../../../../system/Cards/CardMedia/CardImage"));
|
|
19
|
-
const CardsHolderLoader_1 = __importDefault(require("../../../../system/CardsHolderWithSkeleton/CardsHolderLoader"));
|
|
20
|
-
const check4k_1 = require("../../../../utils/adaptive/check4k");
|
|
21
|
-
const screen_1 = require("../../../../utils/screen");
|
|
22
|
-
// import DeleteIcon from '@/public/gallery/delete.svg';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import Skeleton from 'react-loading-skeleton';
|
|
4
|
+
import { Virtuoso } from 'react-virtuoso';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { ScreenWidth } from '@ludo.ninja/ui/build/styles/ScreenWidth';
|
|
7
|
+
import { adaptiveValueCalc, getAdaptiveValue, } from '@ludo.ninja/ui/build/utils/4k';
|
|
8
|
+
import CollectionCreationEntity from "../../../../dto/Collection/CollectionCreationEntity";
|
|
9
|
+
import { mediaQuery } from "../../../../styles/ScreenWidth";
|
|
10
|
+
import { BlackColor } from "../../../../styles/colors";
|
|
11
|
+
import { FH3 } from "../../../../styles/typography";
|
|
12
|
+
import CardImage from "../../../../system/Cards/CardMedia/CardImage";
|
|
13
|
+
import CardsHolderLoader from "../../../../system/CardsHolderWithSkeleton/CardsHolderLoader";
|
|
14
|
+
import { getAdaptiveValueWithCheck4k } from "../../../../utils/adaptive/check4k";
|
|
15
|
+
import { useWindowDimensionsWithServerInitial } from "../../../../utils/screen";
|
|
16
|
+
// import DeleteIcon from "../../../../public/gallery/delete";
|
|
23
17
|
// Styles
|
|
24
|
-
const StyledItemsPreview =
|
|
18
|
+
const StyledItemsPreview = styled.div `
|
|
25
19
|
margin-right: 40px;
|
|
26
20
|
|
|
27
21
|
.head {
|
|
28
22
|
margin-bottom: 20px;
|
|
29
23
|
|
|
30
24
|
.tittle {
|
|
31
|
-
${
|
|
32
|
-
color: ${
|
|
25
|
+
${FH3};
|
|
26
|
+
color: ${BlackColor};
|
|
33
27
|
margin: 0;
|
|
34
28
|
}
|
|
35
29
|
}
|
|
@@ -99,48 +93,48 @@ const StyledItemsPreview = styled_components_1.default.div `
|
|
|
99
93
|
}
|
|
100
94
|
}
|
|
101
95
|
|
|
102
|
-
${
|
|
103
|
-
margin-right: ${
|
|
96
|
+
${mediaQuery.minWidthFourK} {
|
|
97
|
+
margin-right: ${adaptiveValueCalc(40)};
|
|
104
98
|
|
|
105
99
|
.head {
|
|
106
|
-
margin-bottom: ${
|
|
100
|
+
margin-bottom: ${adaptiveValueCalc(20)};
|
|
107
101
|
}
|
|
108
102
|
|
|
109
103
|
.content {
|
|
110
|
-
gap: ${
|
|
111
|
-
max-height: ${
|
|
112
|
-
min-width: ${
|
|
104
|
+
gap: ${adaptiveValueCalc(8)};
|
|
105
|
+
max-height: ${adaptiveValueCalc(302)};
|
|
106
|
+
min-width: ${adaptiveValueCalc(168)};
|
|
113
107
|
}
|
|
114
108
|
|
|
115
109
|
.content-item {
|
|
116
|
-
width: ${
|
|
117
|
-
height: ${
|
|
110
|
+
width: ${adaptiveValueCalc(80)};
|
|
111
|
+
height: ${adaptiveValueCalc(80)};
|
|
118
112
|
|
|
119
113
|
> img,
|
|
120
114
|
video {
|
|
121
|
-
border-radius: ${
|
|
115
|
+
border-radius: ${adaptiveValueCalc(6)};
|
|
122
116
|
}
|
|
123
117
|
|
|
124
118
|
.content-item-gallery-pic {
|
|
125
|
-
border-radius: ${
|
|
119
|
+
border-radius: ${adaptiveValueCalc(6)};
|
|
126
120
|
}
|
|
127
121
|
|
|
128
122
|
.content-item-gallery-deleteIcon {
|
|
129
|
-
right: ${
|
|
130
|
-
bottom: ${
|
|
131
|
-
width: ${
|
|
132
|
-
height: ${
|
|
123
|
+
right: ${adaptiveValueCalc(4)};
|
|
124
|
+
bottom: ${adaptiveValueCalc(4)};
|
|
125
|
+
width: ${adaptiveValueCalc(24)};
|
|
126
|
+
height: ${adaptiveValueCalc(24)};
|
|
133
127
|
}
|
|
134
128
|
}
|
|
135
129
|
}
|
|
136
130
|
`;
|
|
137
|
-
const SCardsRow =
|
|
131
|
+
const SCardsRow = styled.div `
|
|
138
132
|
display: flex;
|
|
139
133
|
justify-content: space-between;
|
|
140
134
|
`;
|
|
141
135
|
// Component
|
|
142
|
-
const useVirtuosoData = ({ creations, isMobile, }) => {
|
|
143
|
-
const virtuosoData =
|
|
136
|
+
export const useVirtuosoData = ({ creations, isMobile, }) => {
|
|
137
|
+
const virtuosoData = useMemo(() => {
|
|
144
138
|
const columnCount = isMobile ? 4 : 2;
|
|
145
139
|
const creationPacks = [];
|
|
146
140
|
let indexPack = 0;
|
|
@@ -155,7 +149,7 @@ const useVirtuosoData = ({ creations, isMobile, }) => {
|
|
|
155
149
|
});
|
|
156
150
|
return { creationPacks, creations };
|
|
157
151
|
}, [isMobile, creations]);
|
|
158
|
-
const placeholderData =
|
|
152
|
+
const placeholderData = useMemo(() => {
|
|
159
153
|
const columnCount = isMobile ? 4 : 2;
|
|
160
154
|
const creationPacks = [[]];
|
|
161
155
|
let indexPack = 0;
|
|
@@ -177,18 +171,17 @@ const useVirtuosoData = ({ creations, isMobile, }) => {
|
|
|
177
171
|
placeholderData,
|
|
178
172
|
};
|
|
179
173
|
};
|
|
180
|
-
exports.useVirtuosoData = useVirtuosoData;
|
|
181
174
|
const ItemsPreview = ({ creations, deleteMethod, title, loadMore, isLoading, isNextLoading, allCount, }) => {
|
|
182
|
-
const { isMobile, windowDimensions } =
|
|
183
|
-
const { virtuosoData, placeholderData } =
|
|
175
|
+
const { isMobile, windowDimensions } = useWindowDimensionsWithServerInitial();
|
|
176
|
+
const { virtuosoData, placeholderData } = useVirtuosoData({
|
|
184
177
|
creations,
|
|
185
178
|
isMobile,
|
|
186
179
|
});
|
|
187
180
|
const virtuosoBody = (() => {
|
|
188
181
|
const getGapCards = () => {
|
|
189
182
|
if (windowDimensions &&
|
|
190
|
-
windowDimensions.windowWidth >=
|
|
191
|
-
return
|
|
183
|
+
windowDimensions.windowWidth >= ScreenWidth.FOUR_K_MIN) {
|
|
184
|
+
return getAdaptiveValue({
|
|
192
185
|
currentSize: 8,
|
|
193
186
|
windowWidth: windowDimensions.windowWidth,
|
|
194
187
|
});
|
|
@@ -199,7 +192,7 @@ const ItemsPreview = ({ creations, deleteMethod, title, loadMore, isLoading, isN
|
|
|
199
192
|
return {
|
|
200
193
|
totalCount: placeholderData.length,
|
|
201
194
|
itemContent: (index) => {
|
|
202
|
-
return ((
|
|
195
|
+
return (_jsx(SCardsRow, { style: {
|
|
203
196
|
paddingBottom: (() => {
|
|
204
197
|
if (index === virtuosoData.creationPacks.length - 1) {
|
|
205
198
|
return 0;
|
|
@@ -207,14 +200,14 @@ const ItemsPreview = ({ creations, deleteMethod, title, loadMore, isLoading, isN
|
|
|
207
200
|
return getGapCards();
|
|
208
201
|
})(),
|
|
209
202
|
gap: getGapCards(),
|
|
210
|
-
}, children: placeholderData[index].map((_, ind) => ((
|
|
203
|
+
}, children: placeholderData[index].map((_, ind) => (_jsx(Skeleton, { height: isMobile
|
|
211
204
|
? 68
|
|
212
|
-
:
|
|
205
|
+
: getAdaptiveValueWithCheck4k({
|
|
213
206
|
currentSize: 80,
|
|
214
207
|
windowDimensions,
|
|
215
208
|
}), width: isMobile
|
|
216
209
|
? 68
|
|
217
|
-
:
|
|
210
|
+
: getAdaptiveValueWithCheck4k({
|
|
218
211
|
currentSize: 80,
|
|
219
212
|
windowDimensions,
|
|
220
213
|
}) }, ind))) }));
|
|
@@ -233,14 +226,14 @@ const ItemsPreview = ({ creations, deleteMethod, title, loadMore, isLoading, isN
|
|
|
233
226
|
totalCount: virtuosoData.creationPacks.length,
|
|
234
227
|
itemContent: (index) => {
|
|
235
228
|
const data = virtuosoData.creationPacks[index];
|
|
236
|
-
return ((
|
|
229
|
+
return (_jsx(SCardsRow, { style: {
|
|
237
230
|
paddingBottom: (() => {
|
|
238
231
|
if (index === virtuosoData.creationPacks.length - 1) {
|
|
239
232
|
return 0;
|
|
240
233
|
}
|
|
241
234
|
return getGapCards();
|
|
242
235
|
})(),
|
|
243
|
-
}, children: data.map((creation) => ((
|
|
236
|
+
}, children: data.map((creation) => (_jsxs("div", { className: "content-item", children: [creation instanceof CollectionCreationEntity ? (_jsx(CardImage, { alt: `${creation.getName()} ${creation.getAddress() || ''}`, imgSrc: creation.getOriginalUrls()?.[0] ?? '', errorImg: '/noContent/noContent.svg' })) : (creation.detectMediaType().displaySingleMedia()), _jsx("img", { src: "/gallery/delete.svg", alt: "delete", width: 24, height: 24, className: 'content-item-gallery-deleteIcon', onClick: () => deleteMethod(creation instanceof CollectionCreationEntity
|
|
244
237
|
? `${creation.getItemType() +
|
|
245
238
|
'.' +
|
|
246
239
|
creation.getCreationId()}`
|
|
@@ -248,13 +241,13 @@ const ItemsPreview = ({ creations, deleteMethod, title, loadMore, isLoading, isN
|
|
|
248
241
|
},
|
|
249
242
|
};
|
|
250
243
|
})();
|
|
251
|
-
return ((
|
|
244
|
+
return (_jsxs(StyledItemsPreview, { children: [_jsx("div", { className: 'head', children: _jsx("h3", { className: 'tittle', children: `${title} (${allCount || creations?.length})` }) }), _jsx(Virtuoso, { style: {
|
|
252
245
|
height: isMobile
|
|
253
246
|
? 144
|
|
254
247
|
: (() => {
|
|
255
248
|
if (windowDimensions &&
|
|
256
|
-
windowDimensions.windowWidth >=
|
|
257
|
-
return
|
|
249
|
+
windowDimensions.windowWidth >= ScreenWidth.FOUR_K_MIN) {
|
|
250
|
+
return getAdaptiveValue({
|
|
258
251
|
currentSize: 302,
|
|
259
252
|
windowWidth: windowDimensions.windowWidth,
|
|
260
253
|
});
|
|
@@ -263,8 +256,8 @@ const ItemsPreview = ({ creations, deleteMethod, title, loadMore, isLoading, isN
|
|
|
263
256
|
})(),
|
|
264
257
|
minWidth: (() => {
|
|
265
258
|
if (windowDimensions &&
|
|
266
|
-
windowDimensions.windowWidth >=
|
|
267
|
-
return
|
|
259
|
+
windowDimensions.windowWidth >= ScreenWidth.FOUR_K_MIN) {
|
|
260
|
+
return getAdaptiveValue({
|
|
268
261
|
currentSize: 168,
|
|
269
262
|
windowWidth: windowDimensions.windowWidth,
|
|
270
263
|
});
|
|
@@ -272,8 +265,8 @@ const ItemsPreview = ({ creations, deleteMethod, title, loadMore, isLoading, isN
|
|
|
272
265
|
return 168;
|
|
273
266
|
})(),
|
|
274
267
|
}, totalCount: virtuosoBody.totalCount, endReached: loadMore, overscan: 200, itemContent: virtuosoBody.itemContent, components: {
|
|
275
|
-
Footer: () => (isNextLoading ? (
|
|
268
|
+
Footer: () => (isNextLoading ? _jsx(CardsHolderLoader, {}) : null),
|
|
276
269
|
} })] }));
|
|
277
270
|
};
|
|
278
271
|
// Export
|
|
279
|
-
|
|
272
|
+
export default ItemsPreview;
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const shallow_1 = require("zustand/shallow");
|
|
10
|
-
const traditional_1 = require("zustand/traditional");
|
|
11
|
-
const addCreationToGallery_1 = __importDefault(require("../../components/gallery/add/addCreationToGallery"));
|
|
12
|
-
const ui_1 = require("../../store/ui");
|
|
13
|
-
const getIsActiveCreation = (creations, creation) => !!creations.find((gCreation) => gCreation.getCreationId() === creation.getCreationId());
|
|
14
|
-
exports.getIsActiveCreation = getIsActiveCreation;
|
|
15
|
-
exports.useToGalleryStore = (0, traditional_1.createWithEqualityFn)()((setState, getState) => ({
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { shallow } from 'zustand/shallow';
|
|
4
|
+
import { createWithEqualityFn } from 'zustand/traditional';
|
|
5
|
+
import AddCreationToGallery from "../../components/gallery/add/addCreationToGallery";
|
|
6
|
+
import { useUiStore } from "../../store/ui";
|
|
7
|
+
export const getIsActiveCreation = (creations, creation) => !!creations.find((gCreation) => gCreation.getCreationId() === creation.getCreationId());
|
|
8
|
+
export const useToGalleryStore = createWithEqualityFn()((setState, getState) => ({
|
|
16
9
|
isActiveGalleryMode: false,
|
|
17
10
|
activateGalleryMode: () => {
|
|
18
11
|
setState({
|
|
@@ -54,7 +47,7 @@ exports.useToGalleryStore = (0, traditional_1.createWithEqualityFn)()((setState,
|
|
|
54
47
|
},
|
|
55
48
|
toggleCreationToGallery: (creation) => {
|
|
56
49
|
const { removeCreationFromGallery, addCreationToGallery, creationsToGallery, } = getState();
|
|
57
|
-
if (
|
|
50
|
+
if (getIsActiveCreation(creationsToGallery, creation)) {
|
|
58
51
|
removeCreationFromGallery(creation.getCreationId());
|
|
59
52
|
}
|
|
60
53
|
else {
|
|
@@ -67,22 +60,21 @@ exports.useToGalleryStore = (0, traditional_1.createWithEqualityFn)()((setState,
|
|
|
67
60
|
isActiveGalleryMode: false,
|
|
68
61
|
});
|
|
69
62
|
},
|
|
70
|
-
}),
|
|
71
|
-
const useInitializeToGalleryAsset = () => {
|
|
72
|
-
const openModalSidebarPortal =
|
|
73
|
-
const { resetCreationsInGallery } =
|
|
63
|
+
}), shallow);
|
|
64
|
+
export const useInitializeToGalleryAsset = () => {
|
|
65
|
+
const openModalSidebarPortal = useUiStore((state) => state.openModalSidebarPortal);
|
|
66
|
+
const { resetCreationsInGallery } = useToGalleryStore((state) => ({
|
|
74
67
|
resetCreationsInGallery: state.resetCreationsInGallery,
|
|
75
68
|
}));
|
|
76
|
-
|
|
69
|
+
useEffect(() => {
|
|
77
70
|
return () => {
|
|
78
71
|
resetCreationsInGallery();
|
|
79
72
|
};
|
|
80
73
|
}, []);
|
|
81
74
|
const handleAddToGallery = () => {
|
|
82
|
-
openModalSidebarPortal((
|
|
75
|
+
openModalSidebarPortal(_jsx(AddCreationToGallery, {}));
|
|
83
76
|
};
|
|
84
77
|
return {
|
|
85
78
|
handleAddToGallery,
|
|
86
79
|
};
|
|
87
80
|
};
|
|
88
|
-
exports.useInitializeToGalleryAsset = useInitializeToGalleryAsset;
|
|
@@ -1,41 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import dynamic from 'next/dynamic';
|
|
3
|
+
import { useIsOpenNotifications } from '@ludo.ninja/ui/build/modules/notifications/useIsOpenNotifications';
|
|
4
|
+
import { useUiStore } from "../../store/ui";
|
|
5
|
+
const Notifications = dynamic(() => import('@ludo.ninja/ui/build/modules/notifications').then((_) => _.Notifications));
|
|
6
|
+
export const CreatorNotifications = () => {
|
|
7
|
+
const notifications = useUiStore((state) => state.notifications);
|
|
8
|
+
const removeNotification = useUiStore((state) => state.removeNotification);
|
|
9
|
+
const isOpen = useIsOpenNotifications({ notifications });
|
|
10
|
+
return (_jsx(_Fragment, { children: isOpen && (_jsx(Notifications, { notifications: notifications, removeNotification: removeNotification })) }));
|
|
24
11
|
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.CreatorNotifications = void 0;
|
|
30
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
-
const dynamic_1 = __importDefault(require("next/dynamic"));
|
|
32
|
-
const useIsOpenNotifications_1 = require("@ludo.ninja/ui/build/modules/notifications/useIsOpenNotifications");
|
|
33
|
-
const ui_1 = require("../../store/ui");
|
|
34
|
-
const Notifications = (0, dynamic_1.default)(() => Promise.resolve().then(() => __importStar(require('@ludo.ninja/ui/build/modules/notifications'))).then((_) => _.Notifications));
|
|
35
|
-
const CreatorNotifications = () => {
|
|
36
|
-
const notifications = (0, ui_1.useUiStore)((state) => state.notifications);
|
|
37
|
-
const removeNotification = (0, ui_1.useUiStore)((state) => state.removeNotification);
|
|
38
|
-
const isOpen = (0, useIsOpenNotifications_1.useIsOpenNotifications)({ notifications });
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isOpen && ((0, jsx_runtime_1.jsx)(Notifications, { notifications: notifications, removeNotification: removeNotification })) }));
|
|
40
|
-
};
|
|
41
|
-
exports.CreatorNotifications = CreatorNotifications;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const variants_1 = require("@ludo.ninja/ui/build/modules/notifications/variants");
|
|
5
|
-
exports.createXpNotification = variants_1.createNotificationVariants.newXp;
|
|
6
|
-
exports.createInviteNotification = variants_1.createNotificationVariants.inviteCode;
|
|
1
|
+
import { createNotificationVariants } from '@ludo.ninja/ui/build/modules/notifications/variants';
|
|
2
|
+
export const createXpNotification = createNotificationVariants.newXp;
|
|
3
|
+
export const createInviteNotification = createNotificationVariants.inviteCode;
|