@ludo.ninja/components 2.3.35 → 2.3.36
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/server-assets/queries/useFetchAssets/index.js +2 -2
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +2 -2
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +2 -2
- package/build/api/server-experiences/queries/useFetchMyActivityStreak/index.js +3 -3
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +3 -3
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +2 -2
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +1 -1
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +1 -1
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +2 -2
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +1 -1
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +2 -2
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +1 -1
- package/build/api/server-galleries/queries/useFetchGallery/index.d.ts +1 -1
- package/build/api/server-galleries/queries/useFetchGallery/index.js +1 -1
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.d.ts +1 -1
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +1 -1
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +1 -1
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +1 -1
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.d.ts +1 -1
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +1 -1
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +2 -2
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +2 -2
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +2 -2
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +2 -2
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +2 -2
- package/build/api/server-identities/mutations/useAddWalletTon/index.js +2 -2
- package/build/api/server-identities/mutations/useFollowProfile/index.js +2 -2
- package/build/api/server-identities/mutations/useInviteCode/index.js +2 -2
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +2 -2
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +2 -2
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +2 -2
- package/build/api/server-identities/queries/useFetchProfile/index.js +3 -3
- package/build/api/server-medias/queries/useFetchUserPic/index.js +1 -1
- package/build/api/server-opportunities/mutations/useCopyOpportunityShareLink/index.js +2 -2
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +2 -2
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +2 -2
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +2 -2
- package/build/api/server-opportunities/queries/useGetOpportunities.js +3 -3
- package/build/api/server-preferences/mutations/useSaveUserExpectations/index.js +2 -2
- package/build/api/server-preferences/mutations/useSaveUserInterests/index.js +2 -2
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +2 -2
- package/build/api/server-preferences/queries/useFetchSearchResultTimeSelection/index.d.ts +1 -1
- package/build/api/server-preferences/queries/useSearchResultBlockchainSelections/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchAllCreations/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchAllCreations/index.js +1 -1
- package/build/api/server-search/queries/useFetchCollections/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchCollections/index.js +4 -4
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +3 -3
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +1 -1
- package/build/api/server-search/queries/useFetchLudoNftsTonPage/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchLudoNftsTonPage/index.js +2 -2
- package/build/api/server-search/queries/useFindCreations/index.d.ts +1 -1
- package/build/api/server-search/queries/useFindCreations/index.js +3 -3
- package/build/api/server-search/queries/useFindUserCreations/index.d.ts +1 -1
- package/build/api/server-search/queries/useFindUserCreations/index.js +2 -2
- package/build/api/server-search/queries/useFindUserLudoCreations/index.d.ts +1 -1
- package/build/api/server-search/queries/useFindUserLudoCreations/index.js +2 -2
- package/build/api/subscriptions/SubscriberInviteNotification.js +4 -4
- package/build/api/subscriptions/SubscriberNotifications.js +2 -2
- package/build/api/subscriptions/SubscriberOpportunityNotification.js +4 -4
- package/build/api/subscriptions/SubscriptionNotificationSPA.js +4 -4
- package/build/components/Page404/Page404SPA.js +1 -1
- package/build/components/Page404/index.js +3 -3
- package/build/components/base/Meta/index.js +1 -1
- package/build/components/base/UserStreak/index.js +3 -3
- package/build/components/headers/components/headerExperienceLabel/index.js +4 -4
- package/build/components/headers/components/headerStreak/index.js +2 -2
- package/build/components/headers/components/headerUserPic/index.js +2 -2
- package/build/components/headers/header/index.js +7 -7
- package/build/components/headers/headerSearch/index.js +8 -8
- package/build/components/search/SearchInputContainer.js +9 -9
- package/build/components/search/searchCloseMoreButtons/index.js +4 -4
- package/build/components/search/searchSimpleInput/index.js +7 -7
- package/build/components/search/searchSuggestions/index.d.ts +1 -1
- package/build/components/search/searchSuggestions/index.js +10 -10
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +3 -3
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +4 -4
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +4 -4
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +3 -3
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +3 -3
- package/build/components/toTopBtn/index.js +7 -7
- package/build/entities/asset/builder.d.ts +1 -1
- package/build/entities/asset/builder.js +2 -2
- package/build/entities/asset/getAssetMiniatureUrl.d.ts +1 -1
- package/build/entities/asset/getAssetMiniatureUrl.js +3 -3
- package/build/entities/asset/types.d.ts +2 -2
- package/build/entities/creation/CreationMediaView.d.ts +1 -1
- package/build/entities/creation/CreationMediaView.js +7 -7
- package/build/entities/creation/builder.d.ts +1 -1
- package/build/entities/creation/builder.js +3 -3
- package/build/entities/creation/collectionCreationBuilder.d.ts +1 -1
- package/build/entities/creation/collectionCreationBuilder.js +2 -2
- package/build/entities/creation/types.d.ts +2 -2
- package/build/entities/gallery/builder.d.ts +1 -1
- package/build/entities/gallery/builder.js +1 -1
- package/build/entities/gallery/types.d.ts +1 -1
- package/build/entities/media/builder.d.ts +1 -1
- package/build/entities/media/getMediaVariant.d.ts +1 -1
- package/build/entities/media/getMediaVariant.js +2 -2
- package/build/modules/user/store.d.ts +1 -1
- package/build/store/ui/index.js +2 -2
- package/build/store/ui/types.d.ts +3 -3
- package/build/store/ui/utils.d.ts +1 -1
- package/build/system/DropDown/index.js +2 -2
- package/build/system/Forms/Checkbox/Checkbox.test.js +1 -1
- package/build/system/Forms/Checkbox/index.js +4 -4
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +1 -1
- package/build/system/Forms/ErrorLabel/index.js +1 -1
- package/build/system/Forms/Input/Input.test.js +2 -2
- package/build/system/Forms/Input/index.js +5 -5
- package/build/system/Forms/RadioInput/RadioInput.test.js +1 -1
- package/build/system/Forms/RadioInput/index.js +2 -2
- package/build/system/Forms/Selects/DesktopSelect/index.d.ts +1 -1
- package/build/system/Forms/Selects/DesktopSelect/index.js +6 -6
- package/build/system/Forms/Selects/MobileSelect/index.js +2 -2
- package/build/system/Forms/TextArea/TextArea.test.js +2 -2
- package/build/system/Forms/TextArea/index.js +4 -4
- package/build/system/Img/Profilepic/index.js +3 -3
- package/build/system/Img/Userpic/UserPic.test.js +4 -4
- package/build/system/Img/Userpic/UserPicSpa.js +6 -6
- package/build/system/Img/Userpic/index.js +6 -6
- package/build/system/Img/index.d.ts +3 -3
- package/build/system/Img/index.js +3 -3
- package/build/system/Labels/ExperienceLabel/index.js +5 -5
- package/build/utils/adaptive/check4k.d.ts +1 -1
- package/build/utils/adaptive/check4k.js +1 -1
- package/build/utils/adaptive/scale.d.ts +1 -1
- package/build/utils/adaptive/scale.js +1 -1
- package/build/utils/auth/index.js +1 -1
- package/build/utils/getErrorAlertProps/index.js +1 -1
- package/build/utils/screen/index.js +2 -2
- package/package.json +1 -1
- package/build/components/Page500/index.d.ts +0 -2
- package/build/components/Page500/index.js +0 -87
- package/build/components/assetPage/assetLikes/index.d.ts +0 -6
- package/build/components/assetPage/assetLikes/index.js +0 -58
- package/build/components/assetPage/assetNft/index.d.ts +0 -4
- package/build/components/assetPage/assetNft/index.js +0 -37
- package/build/components/assetPage/audioVideoPlayer/Duration.d.ts +0 -5
- package/build/components/assetPage/audioVideoPlayer/Duration.js +0 -22
- package/build/components/assetPage/audioVideoPlayer/index.d.ts +0 -96
- package/build/components/assetPage/audioVideoPlayer/index.js +0 -308
- package/build/components/assetPage/category/index.d.ts +0 -4
- package/build/components/assetPage/category/index.js +0 -58
- package/build/components/assetPage/index.d.ts +0 -5
- package/build/components/assetPage/index.js +0 -13
- package/build/components/assetPage/information/index.d.ts +0 -4
- package/build/components/assetPage/information/index.js +0 -114
- package/build/components/assetPage/marketPlaces/index.d.ts +0 -4
- package/build/components/assetPage/marketPlaces/index.js +0 -57
- package/build/components/assetPage/media/AssetImage/index.d.ts +0 -8
- package/build/components/assetPage/media/AssetImage/index.js +0 -187
- package/build/components/assetPage/moreDropDown/index.d.ts +0 -10
- package/build/components/assetPage/moreDropDown/index.js +0 -152
- package/build/components/assetPage/properties/index.d.ts +0 -4
- package/build/components/assetPage/properties/index.js +0 -42
- package/build/components/assetPage/slider/store.d.ts +0 -8
- package/build/components/assetPage/slider/store.js +0 -16
- package/build/components/assetPage/viewer3D/index.d.ts +0 -7
- package/build/components/assetPage/viewer3D/index.js +0 -124
- package/build/components/base/PageHead/index.d.ts +0 -8
- package/build/components/base/PageHead/index.js +0 -13
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +0 -7
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +0 -28
- package/build/components/gallery/add/addCreationToGallery/index.d.ts +0 -2
- package/build/components/gallery/add/addCreationToGallery/index.js +0 -48
- package/build/components/headers/headerSimple/index.d.ts +0 -2
- package/build/components/headers/headerSimple/index.js +0 -78
- package/build/components/linkTabs/index.d.ts +0 -8
- package/build/components/linkTabs/index.js +0 -51
- package/build/components/linkTabs/linkTab/index.d.ts +0 -9
- package/build/components/linkTabs/linkTab/index.js +0 -74
- package/build/components/myWallets/index.d.ts +0 -9
- package/build/components/myWallets/index.js +0 -37
- package/build/components/myWallets/myWalletItem/index.d.ts +0 -10
- package/build/components/myWallets/myWalletItem/index.js +0 -82
- package/build/components/myWallets/myWalletItem/myWalletItemCheckBox/index.d.ts +0 -9
- package/build/components/myWallets/myWalletItem/myWalletItemCheckBox/index.js +0 -21
- package/build/components/profile/profileSkeleton/index.d.ts +0 -4
- package/build/components/profile/profileSkeleton/index.js +0 -75
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.d.ts +0 -5
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +0 -55
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.d.ts +0 -10
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +0 -60
- package/build/components/searchFiltersConnector/filters/index.d.ts +0 -11
- package/build/components/searchFiltersConnector/filters/index.js +0 -158
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.d.ts +0 -5
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +0 -25
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.d.ts +0 -9
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +0 -53
- package/build/components/searchFiltersConnector/index.d.ts +0 -10
- package/build/components/searchFiltersConnector/index.js +0 -116
- package/build/components/shareDialog/index.d.ts +0 -34
- package/build/components/shareDialog/index.js +0 -92
- package/build/components/sidebar/data.d.ts +0 -6
- package/build/components/sidebar/data.js +0 -121
- package/build/components/sidebar/icons.d.ts +0 -9
- package/build/components/sidebar/icons.js +0 -22
- package/build/components/sidebar/index.d.ts +0 -2
- package/build/components/sidebar/index.js +0 -135
- package/build/components/sidebar/initializer.d.ts +0 -1
- package/build/components/sidebar/initializer.js +0 -36
- package/build/components/sidebar/sidebarFilters/index.d.ts +0 -7
- package/build/components/sidebar/sidebarFilters/index.js +0 -51
- package/build/components/sidebar/sidebarInviteCodeLabel/index.d.ts +0 -2
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +0 -49
- package/build/components/sidebar/sidebarSpa.d.ts +0 -10
- package/build/components/sidebar/sidebarSpa.js +0 -134
- package/build/dto/AssetEntity/index.d.ts +0 -63
- package/build/dto/AssetEntity/index.js +0 -208
- package/build/dto/AssetEntity/interface.d.ts +0 -39
- package/build/dto/AssetEntity/interface.js +0 -2
- package/build/dto/AssetEntity/views/AssetAudio/index.d.ts +0 -11
- package/build/dto/AssetEntity/views/AssetAudio/index.js +0 -32
- package/build/dto/AssetEntity/views/AssetImage/index.d.ts +0 -12
- package/build/dto/AssetEntity/views/AssetImage/index.js +0 -44
- package/build/dto/AssetEntity/views/AssetObject/index.d.ts +0 -13
- package/build/dto/AssetEntity/views/AssetObject/index.js +0 -64
- package/build/dto/AssetEntity/views/AssetOther/index.d.ts +0 -13
- package/build/dto/AssetEntity/views/AssetOther/index.js +0 -47
- package/build/dto/AssetEntity/views/AssetScreenshot/index.d.ts +0 -12
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +0 -44
- package/build/dto/AssetEntity/views/AssetVideo/index.d.ts +0 -11
- package/build/dto/AssetEntity/views/AssetVideo/index.js +0 -32
- package/build/dto/AssetEntity/views/index.d.ts +0 -6
- package/build/dto/AssetEntity/views/index.js +0 -16
- package/build/dto/AssetSearchEntity/index.d.ts +0 -60
- package/build/dto/AssetSearchEntity/index.js +0 -164
- package/build/dto/AssetSearchEntity/interface.d.ts +0 -36
- package/build/dto/AssetSearchEntity/interface.js +0 -2
- package/build/dto/Collection/CollectionCreationEntity/index.d.ts +0 -45
- package/build/dto/Collection/CollectionCreationEntity/index.js +0 -173
- package/build/dto/Collection/CollectionCreationEntity/interface.d.ts +0 -24
- package/build/dto/Collection/CollectionCreationEntity/interface.js +0 -2
- package/build/dto/Collection/CollectionEntity/index.d.ts +0 -32
- package/build/dto/Collection/CollectionEntity/index.js +0 -82
- package/build/dto/Collection/CollectionEntity/interface.d.ts +0 -16
- package/build/dto/Collection/CollectionEntity/interface.js +0 -2
- package/build/dto/CreationEntity/index.d.ts +0 -49
- package/build/dto/CreationEntity/index.js +0 -178
- package/build/dto/CreationEntity/interface.d.ts +0 -30
- package/build/dto/CreationEntity/interface.js +0 -2
- package/build/dto/GalleryEntityV2/index.d.ts +0 -32
- package/build/dto/GalleryEntityV2/index.js +0 -80
- package/build/dto/GalleryEntityV2/interface.d.ts +0 -16
- package/build/dto/GalleryEntityV2/interface.js +0 -2
- package/build/dto/common/ItemType/data.d.ts +0 -3
- package/build/dto/common/ItemType/data.js +0 -41
- package/build/dto/common/ItemType/index.d.ts +0 -49
- package/build/dto/common/ItemType/index.js +0 -46
- package/build/dto/common/ItemViews/CreationAudio/index.d.ts +0 -8
- package/build/dto/common/ItemViews/CreationAudio/index.js +0 -28
- package/build/dto/common/ItemViews/CreationImage/index.d.ts +0 -9
- package/build/dto/common/ItemViews/CreationImage/index.js +0 -39
- package/build/dto/common/ItemViews/CreationObject/index.d.ts +0 -7
- package/build/dto/common/ItemViews/CreationObject/index.js +0 -30
- package/build/dto/common/ItemViews/CreationOther/index.d.ts +0 -8
- package/build/dto/common/ItemViews/CreationOther/index.js +0 -28
- package/build/dto/common/ItemViews/CreationVideo/index.d.ts +0 -8
- package/build/dto/common/ItemViews/CreationVideo/index.js +0 -28
- package/build/dto/common/Media/Audio/index.d.ts +0 -15
- package/build/dto/common/Media/Audio/index.js +0 -40
- package/build/dto/common/Media/Image/index.d.ts +0 -15
- package/build/dto/common/Media/Image/index.js +0 -48
- package/build/dto/common/Media/Object/index.d.ts +0 -15
- package/build/dto/common/Media/Object/index.js +0 -49
- package/build/dto/common/Media/Other/index.d.ts +0 -15
- package/build/dto/common/Media/Other/index.js +0 -68
- package/build/dto/common/Media/Screenshot/index.d.ts +0 -15
- package/build/dto/common/Media/Screenshot/index.js +0 -48
- package/build/dto/common/Media/Urls/index.d.ts +0 -31
- package/build/dto/common/Media/Urls/index.js +0 -125
- package/build/dto/common/Media/Video/index.d.ts +0 -15
- package/build/dto/common/Media/Video/index.js +0 -40
- package/build/dto/common/Media/index.d.ts +0 -28
- package/build/dto/common/Media/index.js +0 -45
- package/build/dto/common/Media/interface.d.ts +0 -30
- package/build/dto/common/Media/interface.js +0 -2
- package/build/entities/asset/AssetMediasViews.d.ts +0 -4
- package/build/entities/asset/AssetMediasViews.js +0 -54
- package/build/entities/asset/getAssetMediasOpengraph.d.ts +0 -5
- package/build/entities/asset/getAssetMediasOpengraph.js +0 -39
- package/build/entities/collection/builder.d.ts +0 -3
- package/build/entities/collection/builder.js +0 -31
- package/build/entities/collection/types.d.ts +0 -17
- package/build/entities/collection/types.js +0 -2
- package/build/fonts/FontsInitializeLayout.d.ts +0 -12
- package/build/fonts/FontsInitializeLayout.js +0 -164
- package/build/hoc/HOCSignUpInterceptor/CircleSvg.d.ts +0 -1
- package/build/hoc/HOCSignUpInterceptor/CircleSvg.js +0 -6
- package/build/hoc/HOCSignUpInterceptor/HOCSignUpInterceptor.d.ts +0 -2
- package/build/hoc/HOCSignUpInterceptor/HOCSignUpInterceptor.js +0 -103
- package/build/hooks/apollo/index.d.ts +0 -1
- package/build/hooks/apollo/index.js +0 -24
- package/build/hooks/audio/useMultiAudio/index.d.ts +0 -2
- package/build/hooks/audio/useMultiAudio/index.js +0 -47
- package/build/hooks/extension/useExtension/index.d.ts +0 -7
- package/build/hooks/extension/useExtension/index.js +0 -32
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +0 -22
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +0 -122
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +0 -23
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +0 -166
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +0 -23
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +0 -155
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +0 -29
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +0 -145
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.d.ts +0 -15
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +0 -119
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +0 -14
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +0 -125
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +0 -17
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +0 -128
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.d.ts +0 -16
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +0 -142
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +0 -18
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +0 -48
- package/build/hooks/likes/dynamic/useGetTableLikes.d.ts +0 -14
- package/build/hooks/likes/dynamic/useGetTableLikes.js +0 -104
- package/build/hooks/likes/index.d.ts +0 -19
- package/build/hooks/likes/index.js +0 -113
- package/build/hooks/likes/useGetLikesAsset.d.ts +0 -20
- package/build/hooks/likes/useGetLikesAsset.js +0 -91
- package/build/layouts/AppLayout.d.ts +0 -6
- package/build/layouts/AppLayout.js +0 -24
- package/build/layouts/GlobalLayout.d.ts +0 -4
- package/build/layouts/GlobalLayout.js +0 -34
- package/build/layouts/base/LWithRegularHeader/index.d.ts +0 -3
- package/build/layouts/base/LWithRegularHeader/index.js +0 -16
- package/build/layouts/base/LWithRegularHeader/type.d.ts +0 -5
- package/build/layouts/base/LWithRegularHeader/type.js +0 -2
- package/build/layouts/base/LWithSearchHeader/index.d.ts +0 -3
- package/build/layouts/base/LWithSearchHeader/index.js +0 -12
- package/build/layouts/base/LWithSearchHeader/type.d.ts +0 -5
- package/build/layouts/base/LWithSearchHeader/type.js +0 -2
- package/build/layouts/custom/mainLayout/index.d.ts +0 -3
- package/build/layouts/custom/mainLayout/index.js +0 -17
- package/build/layouts/custom/styles.d.ts +0 -2
- package/build/layouts/custom/styles.js +0 -46
- package/build/layouts/pageTransitionLayout.d.ts +0 -6
- package/build/layouts/pageTransitionLayout.js +0 -23
- package/build/layouts/pageWithLayout.d.ts +0 -9
- package/build/layouts/pageWithLayout.js +0 -2
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.d.ts +0 -19
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +0 -204
- package/build/modules/gallery/api/useGetFavoriteGallery.d.ts +0 -6
- package/build/modules/gallery/api/useGetFavoriteGallery.js +0 -37
- package/build/modules/gallery/store.d.ts +0 -26
- package/build/modules/gallery/store.js +0 -97
- package/build/modules/gallery/ui/AllResults.d.ts +0 -3
- package/build/modules/gallery/ui/AllResults.js +0 -12
- package/build/modules/gallery/ui/Description.d.ts +0 -4
- package/build/modules/gallery/ui/Description.js +0 -101
- package/build/modules/gallery/ui/EditGallery.d.ts +0 -9
- package/build/modules/gallery/ui/EditGallery.js +0 -51
- package/build/modules/gallery/ui/GalleryDeleteIcon.d.ts +0 -4
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +0 -30
- package/build/modules/gallery/ui/PlaceholderItemsGallery.d.ts +0 -1
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +0 -71
- package/build/modules/gallery/ui/STopSections.d.ts +0 -1
- package/build/modules/gallery/ui/STopSections.js +0 -31
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.d.ts +0 -7
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +0 -97
- package/build/modules/gallery/ui/chooseGalleryItems/index.d.ts +0 -15
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +0 -157
- package/build/modules/gallery/ui/createGalleryForm/index.d.ts +0 -12
- package/build/modules/gallery/ui/createGalleryForm/index.js +0 -137
- package/build/modules/gallery/ui/editGalleryForm/index.d.ts +0 -8
- package/build/modules/gallery/ui/editGalleryForm/index.js +0 -189
- package/build/modules/gallery/ui/itemsPreview/index.d.ts +0 -19
- package/build/modules/gallery/ui/itemsPreview/index.js +0 -279
- package/build/modules/gallery/useToGalleryAsset.d.ts +0 -18
- package/build/modules/gallery/useToGalleryAsset.js +0 -88
- package/build/modules/notifications/CreatorNotifications.d.ts +0 -1
- package/build/modules/notifications/CreatorNotifications.js +0 -42
- package/build/modules/opportunity/OpportunityCard.d.ts +0 -5
- package/build/modules/opportunity/OpportunityCard.js +0 -272
- package/build/modules/opportunity/OpportunityDropDown.d.ts +0 -5
- package/build/modules/opportunity/OpportunityDropDown.js +0 -42
- package/build/modules/opportunity/ShareIcon.d.ts +0 -1
- package/build/modules/opportunity/ShareIcon.js +0 -6
- package/build/modules/opportunity/encodeQuery.d.ts +0 -14
- package/build/modules/opportunity/encodeQuery.js +0 -31
- package/build/modules/opportunity/popup/CopyIcon.d.ts +0 -8
- package/build/modules/opportunity/popup/CopyIcon.js +0 -7
- package/build/modules/opportunity/popup/FacebookIcon.d.ts +0 -8
- package/build/modules/opportunity/popup/FacebookIcon.js +0 -7
- package/build/modules/opportunity/popup/LinkedInIcon.d.ts +0 -8
- package/build/modules/opportunity/popup/LinkedInIcon.js +0 -7
- package/build/modules/opportunity/popup/LogoXIcon.d.ts +0 -8
- package/build/modules/opportunity/popup/LogoXIcon.js +0 -7
- package/build/modules/opportunity/popup/OpportunityMenu.d.ts +0 -8
- package/build/modules/opportunity/popup/OpportunityMenu.js +0 -204
- package/build/modules/opportunity/type.d.ts +0 -2
- package/build/modules/opportunity/type.js +0 -2
- package/build/modules/sessionScroll/globalTabs.d.ts +0 -12
- package/build/modules/sessionScroll/globalTabs.js +0 -50
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +0 -12
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +0 -59
- package/build/modules/user/auth/HOCAuthSearchParamsLocalhostInterceptor.d.ts +0 -3
- package/build/modules/user/auth/HOCAuthSearchParamsLocalhostInterceptor.js +0 -34
- package/build/modules/user/auth/useAuthVerification.d.ts +0 -1
- package/build/modules/user/auth/useAuthVerification.js +0 -18
- package/build/modules/user/auth/useSignIn.d.ts +0 -2
- package/build/modules/user/auth/useSignIn.js +0 -23
- package/build/modules/user/auth/useSignOut.d.ts +0 -1
- package/build/modules/user/auth/useSignOut.js +0 -42
- package/build/modules/user/auth/useVerification.d.ts +0 -1
- package/build/modules/user/auth/useVerification.js +0 -67
- package/build/modules/user/profileData/profileDataInitialization.d.ts +0 -1
- package/build/modules/user/profileData/profileDataInitialization.js +0 -66
- package/build/modules/virtuoso/VirtuosoPageBuilder.d.ts +0 -19
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +0 -135
- package/build/modules/virtuoso/VirtuosoToTopBtn.d.ts +0 -9
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +0 -38
- package/build/modules/virtuoso/types.d.ts +0 -4
- package/build/modules/virtuoso/types.js +0 -2
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +0 -3
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +0 -27
- package/build/modules/virtuoso/useVirtuosoData.d.ts +0 -12
- package/build/modules/virtuoso/useVirtuosoData.js +0 -49
- package/build/public/MobileSearchBtn/close.js +0 -25
- package/build/public/MobileSearchBtn/search.js +0 -31
- package/build/public/MobileSearchBtn/test/pirate.js +0 -36
- package/build/public/MobileSearchBtn/test/squircle.js +0 -36
- package/build/public/assetPage/audioPlaceholder.js +0 -116
- package/build/public/assetPage/details.js +0 -31
- package/build/public/assetPage/favorite.js +0 -22
- package/build/public/assetPage/favorite_hover.js +0 -24
- package/build/public/assetPage/flag.js +0 -32
- package/build/public/assetPage/fullScreen.js +0 -24
- package/build/public/assetPage/owners.js +0 -27
- package/build/public/assetPage/pause.js +0 -25
- package/build/public/assetPage/play.js +0 -23
- package/build/public/assetPage/share.js +0 -26
- package/build/public/assetPage/share2.js +0 -25
- package/build/public/assetPage/share2_hover.js +0 -25
- package/build/public/assetPage/shareWithDots.js +0 -40
- package/build/public/assetPage/shareWithDots_hover.js +0 -40
- package/build/public/assetPage/share_hover.js +0 -24
- package/build/public/assetPage/soundOf.js +0 -24
- package/build/public/assetPage/soundOn.js +0 -24
- package/build/public/calendar.js +0 -24
- package/build/public/cards/addToFavListIcon.js +0 -30
- package/build/public/cards/addToGalleryIcon.js +0 -22
- package/build/public/cards/heart.js +0 -20
- package/build/public/cardsHolderLoader/loader.js +0 -25
- package/build/public/checkbox-on.js +0 -34
- package/build/public/checkboxArrow.js +0 -25
- package/build/public/close.js +0 -25
- package/build/public/close20.js +0 -25
- package/build/public/collectionPage/export.js +0 -25
- package/build/public/copied.js +0 -30
- package/build/public/copy-icon-new.js +0 -31
- package/build/public/creation/card/moreBtn.js +0 -24
- package/build/public/creation/card/moreBtnVertical.js +0 -28
- package/build/public/creation/card/moreBtn_hover.js +0 -28
- package/build/public/dropDown/arrow_down.js +0 -24
- package/build/public/dropdown-arrow-down.js +0 -22
- package/build/public/dropdown-arrow-up.js +0 -22
- package/build/public/error/refresh.js +0 -29
- package/build/public/favicon.ico +0 -0
- package/build/public/favicon.png +0 -0
- package/build/public/follower.js +0 -27
- package/build/public/fonts/dm-sans-v15-latin-500.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-500italic.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-600.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-600italic.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-700.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-700italic.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-italic.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-regular.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-200.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-300.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-500.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-600.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-700.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-800.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-regular.woff2 +0 -0
- package/build/public/header/mobile_menu_icons/arrows/arrow_down.js +0 -25
- package/build/public/header/mobile_menu_icons/arrows/arrow_up.js +0 -25
- package/build/public/header/mobile_menu_icons/campaigns.js +0 -40
- package/build/public/header/mobile_menu_icons/dropdown/add_new_campaign.js +0 -72
- package/build/public/header/mobile_menu_icons/dropdown/my_galleries.js +0 -71
- package/build/public/header/mobile_menu_icons/dropdown/my_profile.js +0 -35
- package/build/public/header/mobile_menu_icons/dropdown/my_wallets.js +0 -34
- package/build/public/header/mobile_menu_icons/dropdown/notifications.js +0 -36
- package/build/public/header/mobile_menu_icons/dropdown/top_campaigns.js +0 -44
- package/build/public/header/mobile_menu_icons/dropdown/top_creations.js +0 -41
- package/build/public/header/mobile_menu_icons/dropdown/top_creators.js +0 -58
- package/build/public/header/mobile_menu_icons/dropdown/top_galleries.js +0 -75
- package/build/public/header/mobile_menu_icons/dropdown/top_/321/201ollectors.js +0 -64
- package/build/public/header/mobile_menu_icons/experiences.js +0 -49
- package/build/public/header/mobile_menu_icons/settings.js +0 -24
- package/build/public/header/mobile_menu_icons/sign_out.js +0 -31
- package/build/public/header/mobile_menu_icons/submit_nft.js +0 -88
- package/build/public/header/mobile_menu_icons/top.js +0 -45
- package/build/public/header/mobile_toggle/close.js +0 -25
- package/build/public/header/mobile_toggle/regular.js +0 -25
- package/build/public/like-icon-active.js +0 -27
- package/build/public/like-icon.js +0 -23
- package/build/public/logOut/logOutBtn.js +0 -35
- package/build/public/logo/main_logo.js +0 -726
- package/build/public/logo/main_logo_dark.js +0 -159
- package/build/public/logo/mobile_logo.js +0 -714
- package/build/public/logo/mobile_logo_dark.js +0 -147
- package/build/public/ludo-logo-small.js +0 -28
- package/build/public/ludo-logo-square.js +0 -40
- package/build/public/no_image placeholder.js +0 -41
- package/build/public/no_media_placeholder.js +0 -752
- package/build/public/report.js +0 -40
- package/build/public/search/arrow_up.js +0 -25
- package/build/public/search/back.js +0 -25
- package/build/public/search/close.js +0 -25
- package/build/public/search/no_found.js +0 -30
- package/build/public/search/search.js +0 -31
- package/build/public/search-icon.js +0 -34
- package/build/public/services/opensea.js +0 -28
- package/build/public/services/other.js +0 -40
- package/build/public/services/rarible.js +0 -29
- package/build/public/settings_page/back.js +0 -25
- package/build/public/settings_page/burger_menu.js +0 -37
- package/build/public/settings_page/notifications.js +0 -35
- package/build/public/settings_page/notifications_active.js +0 -35
- package/build/public/settings_page/privacy.js +0 -27
- package/build/public/settings_page/privacy_active.js +0 -27
- package/build/public/settings_page/settings.js +0 -28
- package/build/public/settings_page/settings_active.js +0 -28
- package/build/public/settings_page/upload.js +0 -30
- package/build/public/share-icon.js +0 -40
- package/build/public/showCaseIcons/heart.js +0 -20
- package/build/public/tabs/arrow_right.js +0 -25
- package/build/public/tabs/arrow_right_dark.js +0 -25
- package/build/public/tests/audio.mp3 +0 -0
- package/build/public/tests/test_1.js +0 -64
- package/build/public/toTopBtn/toTopBtn.js +0 -31
- package/build/public/upload-userpic.js +0 -64
- package/build/public/userpic-placeholder.jpg +0 -0
- package/build/public/userpics/placeholder-lg-1.js +0 -46
- package/build/public/userpics/placeholder-sm-1.js +0 -46
- package/build/public/video/pause.js +0 -33
- package/build/public/video/play.js +0 -29
- package/build/public/wallets/arkane-btn.js +0 -37
- package/build/public/wallets/bitski-btn.js +0 -52
- package/build/public/wallets/elrond-btn.js +0 -189
- package/build/public/wallets/elrond-icon-sm.js +0 -184
- package/build/public/wallets/elrond.js +0 -27
- package/build/public/wallets/ethereum-icon-sm.js +0 -34
- package/build/public/wallets/flow-btn.js +0 -33
- package/build/public/wallets/flow-icon-sm.js +0 -36
- package/build/public/wallets/formatic-btn.js +0 -25
- package/build/public/wallets/formatic-icon-sm.js +0 -25
- package/build/public/wallets/maiar-btn.js +0 -58
- package/build/public/wallets/maiar-icon-sm.js +0 -58
- package/build/public/wallets/metamask-btn.js +0 -176
- package/build/public/wallets/metamask-icon-sm.js +0 -169
- package/build/public/wallets/phantom.js +0 -27
- package/build/public/wallets/plus.js +0 -29
- package/build/public/wallets/solana-btn.js +0 -71
- package/build/public/wallets/solana-icon-sm.js +0 -64
- package/build/public/wallets/terra-btn.js +0 -94
- package/build/public/wallets/terra-icon-sm.js +0 -94
- package/build/public/wallets/tezos-btn.js +0 -42
- package/build/public/wallets/tezos-icon-sm.js +0 -37
- package/build/public/wallets/wallet_connect.js +0 -27
- package/build/public/wallets/walletconnect-btn.js +0 -22
- package/build/public/wallets/walletlink-btn.js +0 -36
- package/build/public/wallets/walletlink-icon-sm.js +0 -37
- package/build/public/wallets/xdefi-btn.js +0 -31
- package/build/public/wallets/xdefi-icon-sm.js +0 -31
- package/build/public/warning.js +0 -22
- package/build/store/creation/index.d.ts +0 -5
- package/build/store/creation/index.js +0 -38
- package/build/store/media/index.d.ts +0 -2
- package/build/store/media/index.js +0 -59
- package/build/store/media/types.d.ts +0 -11
- package/build/store/media/types.js +0 -2
- package/build/styles/animations/index.d.ts +0 -2
- package/build/styles/animations/index.js +0 -20
- package/build/styles/globalStyles.d.ts +0 -2
- package/build/styles/globalStyles.js +0 -86
- package/build/system/ActiveLink/ActiveLink.test.d.ts +0 -1
- package/build/system/ActiveLink/ActiveLink.test.js +0 -48
- package/build/system/ActiveLink/index.d.ts +0 -9
- package/build/system/ActiveLink/index.js +0 -49
- package/build/system/Alert/index.d.ts +0 -2
- package/build/system/Alert/index.js +0 -21
- package/build/system/BasicOverlay/index.d.ts +0 -2
- package/build/system/BasicOverlay/index.js +0 -27
- package/build/system/Buttons/IconButton/index.d.ts +0 -2
- package/build/system/Buttons/IconButton/index.js +0 -7
- package/build/system/Buttons/IconWithButton/index.d.ts +0 -2
- package/build/system/Buttons/IconWithButton/index.js +0 -7
- package/build/system/Buttons/IconWithButton/themes.d.ts +0 -0
- package/build/system/Buttons/IconWithButton/themes.js +0 -1
- package/build/system/Buttons/MainButton/index.d.ts +0 -2
- package/build/system/Buttons/MainButton/index.js +0 -7
- package/build/system/Buttons/MainButton/themes.d.ts +0 -0
- package/build/system/Buttons/MainButton/themes.js +0 -1
- package/build/system/Buttons/SecondaryButton/index.d.ts +0 -2
- package/build/system/Buttons/SecondaryButton/index.js +0 -7
- package/build/system/Cards/CardCheckbox/index.d.ts +0 -5
- package/build/system/Cards/CardCheckbox/index.js +0 -89
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.d.ts +0 -1
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +0 -28
- package/build/system/Cards/CardContent/CardCategory/index.d.ts +0 -5
- package/build/system/Cards/CardContent/CardCategory/index.js +0 -54
- package/build/system/Cards/CardContent/CardContent.test.d.ts +0 -1
- package/build/system/Cards/CardContent/CardContent.test.js +0 -103
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.d.ts +0 -1
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +0 -37
- package/build/system/Cards/CardContent/CardLikes/index.d.ts +0 -5
- package/build/system/Cards/CardContent/CardLikes/index.js +0 -29
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.d.ts +0 -1
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +0 -46
- package/build/system/Cards/CardContent/CardShowMore/index.d.ts +0 -6
- package/build/system/Cards/CardContent/CardShowMore/index.js +0 -121
- package/build/system/Cards/CardContent/index.d.ts +0 -17
- package/build/system/Cards/CardContent/index.js +0 -97
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.d.ts +0 -1
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +0 -92
- package/build/system/Cards/CardMedia/CardAudio/index.d.ts +0 -7
- package/build/system/Cards/CardMedia/CardAudio/index.js +0 -66
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.d.ts +0 -1
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +0 -34
- package/build/system/Cards/CardMedia/CardImage/index.d.ts +0 -9
- package/build/system/Cards/CardMedia/CardImage/index.js +0 -24
- package/build/system/Cards/CardMedia/CardVideo/index.d.ts +0 -7
- package/build/system/Cards/CardMedia/CardVideo/index.js +0 -57
- package/build/system/Cards/CardRank/index.d.ts +0 -4
- package/build/system/Cards/CardRank/index.js +0 -82
- package/build/system/Cards/CreationCard/CardHead.d.ts +0 -12
- package/build/system/Cards/CreationCard/CardHead.js +0 -62
- package/build/system/Cards/CreationCard/index.d.ts +0 -29
- package/build/system/Cards/CreationCard/index.js +0 -129
- package/build/system/Cards/MultiMediaCard/index.d.ts +0 -8
- package/build/system/Cards/MultiMediaCard/index.js +0 -126
- package/build/system/Cards/Styles/Content.d.ts +0 -2
- package/build/system/Cards/Styles/Content.js +0 -40
- package/build/system/Cards/Styles/Head.d.ts +0 -2
- package/build/system/Cards/Styles/Head.js +0 -46
- package/build/system/Cards/Styles/Headicons.d.ts +0 -4
- package/build/system/Cards/Styles/Headicons.js +0 -122
- package/build/system/Cards/Styles/Image.d.ts +0 -4
- package/build/system/Cards/Styles/Image.js +0 -24
- package/build/system/Cards/Styles/Likes.d.ts +0 -4
- package/build/system/Cards/Styles/Likes.js +0 -53
- package/build/system/Cards/Styles/MultiHead.d.ts +0 -2
- package/build/system/Cards/Styles/MultiHead.js +0 -44
- package/build/system/Cards/Styles/Video.d.ts +0 -2
- package/build/system/Cards/Styles/Video.js +0 -15
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +0 -4
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +0 -48
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +0 -4
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +0 -34
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +0 -5
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +0 -57
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +0 -2
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +0 -42
- package/build/system/DropDown/DropDown.test.d.ts +0 -1
- package/build/system/DropDown/DropDown.test.js +0 -38
- package/build/system/Filters/type.d.ts +0 -16
- package/build/system/Filters/type.js +0 -11
- package/build/system/Flex/index.d.ts +0 -0
- package/build/system/Flex/index.js +0 -1
- package/build/system/Forms/DatePicker/DatePicker.test.d.ts +0 -1
- package/build/system/Forms/DatePicker/DatePicker.test.js +0 -39
- package/build/system/Forms/DatePicker/index.d.ts +0 -14
- package/build/system/Forms/DatePicker/index.js +0 -138
- package/build/system/Labels/InviteLabel/InviteLabel.test.d.ts +0 -1
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +0 -44
- package/build/system/Labels/InviteLabel/index.d.ts +0 -6
- package/build/system/Labels/InviteLabel/index.js +0 -44
- package/build/system/Modals/Modal/Modal.test.d.ts +0 -1
- package/build/system/Modals/Modal/Modal.test.js +0 -36
- package/build/system/Modals/Modal/index.d.ts +0 -2
- package/build/system/Modals/Modal/index.js +0 -82
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +0 -1
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +0 -47
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.d.ts +0 -1
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +0 -35
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +0 -5
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +0 -10
- package/build/system/Modals/ModalSidebar/index.d.ts +0 -3
- package/build/system/Modals/ModalSidebar/index.js +0 -78
- package/build/system/Overlay/Overlay.test.d.ts +0 -1
- package/build/system/Overlay/Overlay.test.js +0 -44
- package/build/system/Overlay/index.d.ts +0 -2
- package/build/system/Overlay/index.js +0 -41
- package/build/system/PageLoader/index.d.ts +0 -2
- package/build/system/PageLoader/index.js +0 -7
- package/build/system/Palete/index.d.ts +0 -2
- package/build/system/Palete/index.js +0 -7
- package/build/system/ShareIconResize.d.ts +0 -1
- package/build/system/ShareIconResize.js +0 -31
- package/build/system/Tabs/TabNavLink/TabNavLink.test.d.ts +0 -2
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +0 -40
- package/build/system/Tabs/TabNavLink/index.d.ts +0 -12
- package/build/system/Tabs/TabNavLink/index.js +0 -58
- package/build/system/Tabs/TabsNav/TabsNav.test.d.ts +0 -2
- package/build/system/Tabs/TabsNav/TabsNav.test.js +0 -43
- package/build/system/Tabs/TabsNav/index.d.ts +0 -10
- package/build/system/Tabs/TabsNav/index.js +0 -31
- package/build/system/Tabs/TabsNav/type.d.ts +0 -6
- package/build/system/Tabs/TabsNav/type.js +0 -2
- package/build/system/Tabs/TabsPanel/TabsPanel.test.d.ts +0 -2
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +0 -32
- package/build/system/Tabs/TabsPanel/index.d.ts +0 -7
- package/build/system/Tabs/TabsPanel/index.js +0 -17
- package/build/system/Text/index.d.ts +0 -0
- package/build/system/Text/index.js +0 -1
- package/build/system/index.d.ts +0 -6
- package/build/system/index.js +0 -22
- package/build/utils/copyBtn/index.d.ts +0 -5
- package/build/utils/copyBtn/index.js +0 -46
- package/build/utils/extractItemIds.d.ts +0 -2
- package/build/utils/extractItemIds.js +0 -6
- package/build/utils/getDimensionsImage.d.ts +0 -4
- package/build/utils/getDimensionsImage.js +0 -38
- package/build/utils/imageProportionsSize/index.d.ts +0 -5
- package/build/utils/imageProportionsSize/index.js +0 -23
- package/build/utils/redirectToApp.d.ts +0 -1
- package/build/utils/redirectToApp.js +0 -29
- package/build/utils/ssrFunctions/index.d.ts +0 -17
- package/build/utils/ssrFunctions/index.js +0 -33
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useGetCreationsAndLikes = void 0;
|
|
4
|
-
exports.extractItemIds = extractItemIds;
|
|
5
|
-
const builder_1 = require("../../../entities/creation/builder");
|
|
6
|
-
const types_1 = require("../../../entities/labelCreationType/types");
|
|
7
|
-
const ui_1 = require("../../../store/ui");
|
|
8
|
-
const client_1 = require("@apollo/client");
|
|
9
|
-
const api_1 = require("@ludo.ninja/api");
|
|
10
|
-
const schema_1 = require("@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema");
|
|
11
|
-
const react_1 = require("react");
|
|
12
|
-
const getErrorAlertProps_1 = require("../../../utils/getErrorAlertProps");
|
|
13
|
-
const maxCreationLength = 1000;
|
|
14
|
-
const useGetCreationsAndLikes = ({ page }) => {
|
|
15
|
-
const [allCreations, setCreations] = (0, react_1.useState)([]);
|
|
16
|
-
const [nextPageToken, setNextPageToken] = (0, react_1.useState)(null);
|
|
17
|
-
const [assetsLikes, setAssetsLikes] = (0, react_1.useState)([]);
|
|
18
|
-
const [collectionsLikes, setCollectionsLikes] = (0, react_1.useState)([]);
|
|
19
|
-
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
20
|
-
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
21
|
-
const { error: creationsError, loading: creationsLoading, refetch, fetchMore, } = (0, schema_1.useFetchAllCreationsQuery)({
|
|
22
|
-
variables: {
|
|
23
|
-
page,
|
|
24
|
-
},
|
|
25
|
-
context: {
|
|
26
|
-
uri: api_1.hosts.searchHost,
|
|
27
|
-
},
|
|
28
|
-
onCompleted: ({ fetchAllCreations: { creations, ...nextPage } }) => {
|
|
29
|
-
setCreations(creations.map((creation) => (0, builder_1.buildCreation)(creation)));
|
|
30
|
-
setNextPageToken(nextPage.nextPage?.token || null);
|
|
31
|
-
},
|
|
32
|
-
onError: () => {
|
|
33
|
-
setCreations([]);
|
|
34
|
-
setNextPageToken(null);
|
|
35
|
-
setLoading(false);
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
const [fetchAssetsLikes, { loading: assetsLikesLoading }] = (0, client_1.useLazyQuery)(schema_1.FetchDynamicAssetsLikesDocument, {
|
|
39
|
-
context: {
|
|
40
|
-
uri: api_1.hosts.searchHost,
|
|
41
|
-
},
|
|
42
|
-
onCompleted: ({ fetchDynamicAssetsData }) => {
|
|
43
|
-
setAssetsLikes(fetchDynamicAssetsData);
|
|
44
|
-
setLoading(false);
|
|
45
|
-
},
|
|
46
|
-
onError: (err) => {
|
|
47
|
-
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
48
|
-
setAssetsLikes([]);
|
|
49
|
-
setLoading(false);
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
const [fetchCollectionsLikes, { loading: collectionsLikesLoading }] = (0, client_1.useLazyQuery)(schema_1.FetchDynamicCollectionsDataDocument, {
|
|
53
|
-
context: { uri: api_1.hosts.searchHost },
|
|
54
|
-
onCompleted: ({ fetchDynamicCollectionsData }) => {
|
|
55
|
-
setCollectionsLikes(fetchDynamicCollectionsData);
|
|
56
|
-
setLoading(false);
|
|
57
|
-
},
|
|
58
|
-
onError: (err) => {
|
|
59
|
-
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
60
|
-
setCollectionsLikes([]);
|
|
61
|
-
setLoading(false);
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
(0, react_1.useEffect)(() => {
|
|
65
|
-
if (allCreations.length > 0) {
|
|
66
|
-
const itemsIdsArray = extractItemIds(allCreations);
|
|
67
|
-
if (itemsIdsArray.length > 0) {
|
|
68
|
-
if (allCreations[0].itemType === types_1.LabelKeys.asset) {
|
|
69
|
-
fetchAssetsLikes({ variables: { assetIds: itemsIdsArray } });
|
|
70
|
-
}
|
|
71
|
-
else if (allCreations[0].itemType === types_1.LabelKeys.collection) {
|
|
72
|
-
fetchCollectionsLikes({
|
|
73
|
-
variables: {
|
|
74
|
-
input: itemsIdsArray.map((collectionId) => {
|
|
75
|
-
return {
|
|
76
|
-
collectionId,
|
|
77
|
-
};
|
|
78
|
-
}),
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}, [allCreations, fetchAssetsLikes, fetchCollectionsLikes]);
|
|
85
|
-
return {
|
|
86
|
-
loading,
|
|
87
|
-
assetsLikesLoading,
|
|
88
|
-
collectionsLikesLoading,
|
|
89
|
-
creationsLoading,
|
|
90
|
-
error: creationsError,
|
|
91
|
-
allCreations,
|
|
92
|
-
assetsLikes,
|
|
93
|
-
collectionsLikes,
|
|
94
|
-
nextPageToken,
|
|
95
|
-
loadMore,
|
|
96
|
-
refetchQuery,
|
|
97
|
-
};
|
|
98
|
-
async function refetchQuery() {
|
|
99
|
-
await refetch();
|
|
100
|
-
}
|
|
101
|
-
async function loadMore(pageToken) {
|
|
102
|
-
if (!pageToken || allCreations.length >= maxCreationLength)
|
|
103
|
-
return;
|
|
104
|
-
try {
|
|
105
|
-
const { data } = await fetchMore({
|
|
106
|
-
variables: {
|
|
107
|
-
page: {
|
|
108
|
-
token: pageToken,
|
|
109
|
-
...(page && "size" in page ? { size: page.size } : {}),
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
const { creations: nextCreations, ...nextPage } = data.fetchAllCreations;
|
|
114
|
-
setCreations((prevCreations) => [
|
|
115
|
-
...prevCreations,
|
|
116
|
-
...nextCreations.map((creation) => (0, builder_1.buildCreation)(creation)),
|
|
117
|
-
]);
|
|
118
|
-
setNextPageToken(nextPage.nextPage?.token || null);
|
|
119
|
-
}
|
|
120
|
-
catch (err) {
|
|
121
|
-
throw new Error(err);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
exports.useGetCreationsAndLikes = useGetCreationsAndLikes;
|
|
126
|
-
function extractItemIds(creations) {
|
|
127
|
-
return creations.map((creation) => creation.itemId);
|
|
128
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TCreation } from '../../../entities/creation/types';
|
|
2
|
-
import { IDynamicAssetData, IDynamicCollectionData, IQueryFetchCreationsByTypeArgs } from "@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema";
|
|
3
|
-
declare const useGetCreationsAndLikesByType: ({ itemType, page }: IQueryFetchCreationsByTypeArgs) => {
|
|
4
|
-
loading: boolean;
|
|
5
|
-
assetsLikesLoading: boolean;
|
|
6
|
-
collectionsLikesLoading: boolean;
|
|
7
|
-
creationsLoading: boolean;
|
|
8
|
-
error: import("@apollo/client").ApolloError | undefined;
|
|
9
|
-
allCreations: TCreation[];
|
|
10
|
-
assetsLikes: [] | IDynamicAssetData[];
|
|
11
|
-
collectionsLikes: [] | IDynamicCollectionData[];
|
|
12
|
-
nextPageToken: string | null;
|
|
13
|
-
loadMore: (pageToken: string | null) => Promise<void>;
|
|
14
|
-
refetchQuery: () => Promise<void>;
|
|
15
|
-
};
|
|
16
|
-
export { useGetCreationsAndLikesByType };
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useGetCreationsAndLikesByType = void 0;
|
|
4
|
-
const useGetCreationsAndLikes_1 = require("./useGetCreationsAndLikes");
|
|
5
|
-
const builder_1 = require("../../../entities/creation/builder");
|
|
6
|
-
const ui_1 = require("../../../store/ui");
|
|
7
|
-
const client_1 = require("@apollo/client");
|
|
8
|
-
const api_1 = require("@ludo.ninja/api");
|
|
9
|
-
const schema_1 = require("@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema");
|
|
10
|
-
const react_1 = require("react");
|
|
11
|
-
const getErrorAlertProps_1 = require("../../../utils/getErrorAlertProps");
|
|
12
|
-
const maxCreationLength = 1000;
|
|
13
|
-
const useGetCreationsAndLikesByType = ({ itemType, page }) => {
|
|
14
|
-
const [allCreations, setAllCreations] = (0, react_1.useState)([]);
|
|
15
|
-
const [nextPageToken, setNextPageToken] = (0, react_1.useState)(null);
|
|
16
|
-
const [assetsLikes, setAssetsLikes] = (0, react_1.useState)([]);
|
|
17
|
-
const [collectionsLikes, setCollectionsLikes] = (0, react_1.useState)([]);
|
|
18
|
-
const [currentItemType, setCurrentItemType] = (0, react_1.useState)(itemType);
|
|
19
|
-
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
20
|
-
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
21
|
-
const { error: creationsError, loading: creationsLoading, fetchMore, refetch, } = (0, schema_1.useFetchCreationsByTypeQuery)({
|
|
22
|
-
variables: {
|
|
23
|
-
itemType,
|
|
24
|
-
page,
|
|
25
|
-
},
|
|
26
|
-
context: {
|
|
27
|
-
uri: api_1.hosts.searchHost,
|
|
28
|
-
},
|
|
29
|
-
fetchPolicy: "no-cache",
|
|
30
|
-
onCompleted: ({ fetchCreationsByType: { creations, ...data } }) => {
|
|
31
|
-
setAllCreations(creations.map((creation) => (0, builder_1.buildCreation)(creation)));
|
|
32
|
-
setNextPageToken(data.nextPage?.token || null);
|
|
33
|
-
setLoading(false);
|
|
34
|
-
},
|
|
35
|
-
onError: (err) => {
|
|
36
|
-
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
37
|
-
setAllCreations([]);
|
|
38
|
-
setNextPageToken(null);
|
|
39
|
-
setLoading(false);
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
const [fetchAssetsLikes, { loading: assetsLikesLoading }] = (0, client_1.useLazyQuery)(schema_1.FetchDynamicAssetsLikesDocument, {
|
|
43
|
-
context: {
|
|
44
|
-
uri: api_1.hosts.searchHost,
|
|
45
|
-
},
|
|
46
|
-
fetchPolicy: "no-cache",
|
|
47
|
-
onCompleted: ({ fetchDynamicAssetsData }) => {
|
|
48
|
-
setAssetsLikes(fetchDynamicAssetsData);
|
|
49
|
-
setLoading(false);
|
|
50
|
-
},
|
|
51
|
-
onError: (err) => {
|
|
52
|
-
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
53
|
-
setAssetsLikes([]);
|
|
54
|
-
setLoading(false);
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
const [fetchCollectionsLikes, { loading: collectionsLikesLoading }] = (0, client_1.useLazyQuery)(schema_1.FetchDynamicCollectionsDataDocument, {
|
|
58
|
-
context: { uri: api_1.hosts.searchHost },
|
|
59
|
-
onCompleted: ({ fetchDynamicCollectionsData }) => {
|
|
60
|
-
setCollectionsLikes(fetchDynamicCollectionsData);
|
|
61
|
-
setLoading(false);
|
|
62
|
-
},
|
|
63
|
-
fetchPolicy: "no-cache",
|
|
64
|
-
onError: (err) => {
|
|
65
|
-
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
66
|
-
setCollectionsLikes([]);
|
|
67
|
-
setLoading(false);
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
(0, react_1.useEffect)(() => {
|
|
71
|
-
if (allCreations.length > 0) {
|
|
72
|
-
const itemsIdsArray = (0, useGetCreationsAndLikes_1.extractItemIds)(allCreations);
|
|
73
|
-
if (itemsIdsArray.length > 0) {
|
|
74
|
-
if (currentItemType === "asset") {
|
|
75
|
-
fetchAssetsLikes({ variables: { assetIds: itemsIdsArray } });
|
|
76
|
-
}
|
|
77
|
-
else if (currentItemType === "collection") {
|
|
78
|
-
fetchCollectionsLikes({
|
|
79
|
-
variables: {
|
|
80
|
-
input: itemsIdsArray.map((collectionId) => {
|
|
81
|
-
return {
|
|
82
|
-
collectionId,
|
|
83
|
-
};
|
|
84
|
-
}),
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}, [allCreations, fetchAssetsLikes, fetchCollectionsLikes, currentItemType]);
|
|
91
|
-
(0, react_1.useEffect)(() => {
|
|
92
|
-
setLoading(true);
|
|
93
|
-
setCurrentItemType(itemType);
|
|
94
|
-
setAssetsLikes([]);
|
|
95
|
-
setCollectionsLikes([]);
|
|
96
|
-
setAllCreations([]);
|
|
97
|
-
}, [itemType]);
|
|
98
|
-
return {
|
|
99
|
-
loading,
|
|
100
|
-
assetsLikesLoading,
|
|
101
|
-
collectionsLikesLoading,
|
|
102
|
-
creationsLoading,
|
|
103
|
-
error: creationsError,
|
|
104
|
-
allCreations,
|
|
105
|
-
assetsLikes,
|
|
106
|
-
collectionsLikes,
|
|
107
|
-
nextPageToken,
|
|
108
|
-
loadMore,
|
|
109
|
-
refetchQuery,
|
|
110
|
-
};
|
|
111
|
-
async function refetchQuery() {
|
|
112
|
-
await refetch();
|
|
113
|
-
}
|
|
114
|
-
async function loadMore(pageToken) {
|
|
115
|
-
if (!pageToken || allCreations.length >= maxCreationLength)
|
|
116
|
-
return;
|
|
117
|
-
try {
|
|
118
|
-
const { data } = await fetchMore({
|
|
119
|
-
variables: {
|
|
120
|
-
itemType,
|
|
121
|
-
page: {
|
|
122
|
-
token: pageToken,
|
|
123
|
-
...(page && "size" in page ? { size: page.size } : {}),
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
updateQuery: (previousQueryResult) => {
|
|
127
|
-
return previousQueryResult;
|
|
128
|
-
},
|
|
129
|
-
});
|
|
130
|
-
const { creations: nextCreations, ...token } = data.fetchCreationsByType;
|
|
131
|
-
setAllCreations((prevCreations) => [
|
|
132
|
-
...prevCreations,
|
|
133
|
-
...nextCreations.map((creation) => (0, builder_1.buildCreation)(creation)),
|
|
134
|
-
]);
|
|
135
|
-
setNextPageToken(token.nextPage?.token || null);
|
|
136
|
-
}
|
|
137
|
-
catch (err) {
|
|
138
|
-
throw new Error(err);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
exports.useGetCreationsAndLikesByType = useGetCreationsAndLikesByType;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TCreation } from '../../../entities/creation/types';
|
|
2
|
-
import { searchSchema as schema } from "@ludo.ninja/api";
|
|
3
|
-
declare const useGetMixedLikesFavoriteList: ({ galleryId, itemsCount }: {
|
|
4
|
-
galleryId: string;
|
|
5
|
-
itemsCount: number | null;
|
|
6
|
-
}) => {
|
|
7
|
-
gallery: import("../../../entities/gallery/types").TGallery[] | null;
|
|
8
|
-
creationsList: TCreation[];
|
|
9
|
-
likes: (schema.IDynamicAssetData | schema.IDynamicCollectionData)[];
|
|
10
|
-
allResults: number | null;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
13
|
-
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
14
|
-
errorGallery: import("@apollo/client").ApolloError | undefined;
|
|
15
|
-
allItemsFetched: boolean;
|
|
16
|
-
loadMore: () => void;
|
|
17
|
-
};
|
|
18
|
-
export default useGetMixedLikesFavoriteList;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const useGetTableLikes_1 = require("./useGetTableLikes");
|
|
4
|
-
const types_1 = require("../../../entities/labelCreationType/types");
|
|
5
|
-
const useGetFavoriteGallaryCreations_1 = require("../../favorites/useGetFavoriteGallaryCreations");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const useGetMixedLikesFavoriteList = ({ galleryId, itemsCount }) => {
|
|
8
|
-
const [likes, setLikes] = (0, react_1.useState)([]);
|
|
9
|
-
const [creationsList, setCreationsList] = (0, react_1.useState)([]);
|
|
10
|
-
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
11
|
-
const [allItemsFetched, setAllItemsFetched] = (0, react_1.useState)(false);
|
|
12
|
-
const { gallery, creationsList: fetchedCreationsList, loading: creationsLoading, allResults, errorAssets, errorCollections, errorGallery, loadMore, } = (0, useGetFavoriteGallaryCreations_1.useGetFavoriteGallaryCreations)({ galleryId, itemsCount });
|
|
13
|
-
const { assetsLikes, collectionsLikes, loadingLikes } = (0, useGetTableLikes_1.useGetTableLikes)({
|
|
14
|
-
allItems: fetchedCreationsList,
|
|
15
|
-
});
|
|
16
|
-
// TODO resolve JSON.stringify
|
|
17
|
-
(0, react_1.useEffect)(() => {
|
|
18
|
-
if (!creationsLoading && !loadingLikes) {
|
|
19
|
-
const combinedLikes = [];
|
|
20
|
-
fetchedCreationsList.forEach((item) => {
|
|
21
|
-
if (item.itemType === types_1.LabelKeys.asset) {
|
|
22
|
-
combinedLikes.push(...assetsLikes.filter((like) => like.assetId === item.itemId));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
combinedLikes.push(...collectionsLikes.filter((like) => like.collectionId === item.creationId));
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
creationsList.length !== combinedLikes.length &&
|
|
29
|
-
setLikes(combinedLikes);
|
|
30
|
-
creationsList.length !== combinedLikes.length && setCreationsList(fetchedCreationsList);
|
|
31
|
-
fetchedCreationsList.length === combinedLikes.length && setLoading(false);
|
|
32
|
-
creationsList.length === fetchedCreationsList.length && setAllItemsFetched(true);
|
|
33
|
-
}
|
|
34
|
-
}, [creationsLoading, JSON.stringify(fetchedCreationsList), loadingLikes]);
|
|
35
|
-
return {
|
|
36
|
-
gallery,
|
|
37
|
-
creationsList,
|
|
38
|
-
likes,
|
|
39
|
-
allResults,
|
|
40
|
-
loading,
|
|
41
|
-
errorAssets,
|
|
42
|
-
errorCollections,
|
|
43
|
-
errorGallery,
|
|
44
|
-
allItemsFetched,
|
|
45
|
-
loadMore,
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
exports.default = useGetMixedLikesFavoriteList;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TCreation } from '../../../entities/creation/types';
|
|
2
|
-
import { searchSchema as schema } from "@ludo.ninja/api";
|
|
3
|
-
declare const useGetTableLikes: ({ allItems }: {
|
|
4
|
-
allItems: Array<TCreation>;
|
|
5
|
-
}) => {
|
|
6
|
-
fetchAssetsLikes: import("@apollo/client").LazyQueryExecFunction<any, import("@apollo/client").OperationVariables>;
|
|
7
|
-
fetchCollectionsLikes: import("@apollo/client").LazyQueryExecFunction<any, import("@apollo/client").OperationVariables>;
|
|
8
|
-
assetsLikes: [] | schema.IDynamicAssetData[];
|
|
9
|
-
collectionsLikes: [] | schema.IDynamicCollectionData[];
|
|
10
|
-
loadingLikes: boolean;
|
|
11
|
-
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
12
|
-
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
13
|
-
};
|
|
14
|
-
export { useGetTableLikes };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useGetTableLikes = void 0;
|
|
4
|
-
const types_1 = require("../../../entities/labelCreationType/types");
|
|
5
|
-
const ui_1 = require("../../../store/ui");
|
|
6
|
-
const client_1 = require("@apollo/client");
|
|
7
|
-
const api_1 = require("@ludo.ninja/api");
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const getErrorAlertProps_1 = require("../../../utils/getErrorAlertProps");
|
|
10
|
-
const useGetTableLikes = ({ allItems }) => {
|
|
11
|
-
const [assetsLikes, setAssetsLikes] = (0, react_1.useState)([]);
|
|
12
|
-
const [collectionsLikes, setCollectionsLikes] = (0, react_1.useState)([]);
|
|
13
|
-
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
14
|
-
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
15
|
-
const prevAssetsIds = (0, react_1.useRef)([]);
|
|
16
|
-
const prevCollectionsIds = (0, react_1.useRef)([]);
|
|
17
|
-
const activeRequestsCount = (0, react_1.useRef)(0);
|
|
18
|
-
const [fetchAssetsLikes, { error: assetsError,
|
|
19
|
-
// loading: assetsLoading,
|
|
20
|
-
},] = (0, client_1.useLazyQuery)(api_1.searchSchema.FetchDynamicAssetsLikesDocument, {
|
|
21
|
-
context: {
|
|
22
|
-
uri: api_1.hosts.searchHost,
|
|
23
|
-
},
|
|
24
|
-
fetchPolicy: "no-cache",
|
|
25
|
-
onCompleted: ({ fetchDynamicAssetsData }) => {
|
|
26
|
-
setAssetsLikes(fetchDynamicAssetsData);
|
|
27
|
-
activeRequestsCount.current -= 1;
|
|
28
|
-
checkAllRequestsCompleted();
|
|
29
|
-
},
|
|
30
|
-
onError: (err) => {
|
|
31
|
-
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
32
|
-
setAssetsLikes([]);
|
|
33
|
-
activeRequestsCount.current -= 1;
|
|
34
|
-
checkAllRequestsCompleted();
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
const [fetchCollectionsLikes, { error: collectionsError,
|
|
38
|
-
// loading: collectionsLoading
|
|
39
|
-
},] = (0, client_1.useLazyQuery)(api_1.searchSchema.FetchDynamicCollectionsDataDocument, {
|
|
40
|
-
context: { uri: api_1.hosts.searchHost },
|
|
41
|
-
fetchPolicy: "no-cache",
|
|
42
|
-
onCompleted: ({ fetchDynamicCollectionsData }) => {
|
|
43
|
-
setCollectionsLikes(fetchDynamicCollectionsData);
|
|
44
|
-
activeRequestsCount.current -= 1;
|
|
45
|
-
checkAllRequestsCompleted();
|
|
46
|
-
},
|
|
47
|
-
onError: (err) => {
|
|
48
|
-
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
49
|
-
setCollectionsLikes([]);
|
|
50
|
-
activeRequestsCount.current -= 1;
|
|
51
|
-
checkAllRequestsCompleted();
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
const checkAllRequestsCompleted = () => {
|
|
55
|
-
if (activeRequestsCount.current === 0) {
|
|
56
|
-
setLoading(false);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
(0, react_1.useEffect)(() => {
|
|
60
|
-
if (allItems && allItems.length > 0) {
|
|
61
|
-
const assetIds = [];
|
|
62
|
-
const collectionIds = [];
|
|
63
|
-
allItems.forEach((item) => {
|
|
64
|
-
if (item.itemType === types_1.LabelKeys.asset) {
|
|
65
|
-
assetIds.push(item.itemId);
|
|
66
|
-
}
|
|
67
|
-
else if (item.itemType === types_1.LabelKeys.collection) {
|
|
68
|
-
collectionIds.push(item.creationId);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (assetIds.length > 0 && JSON.stringify(assetIds) !== JSON.stringify(prevAssetsIds.current)) {
|
|
72
|
-
prevAssetsIds.current = assetIds;
|
|
73
|
-
activeRequestsCount.current += 1;
|
|
74
|
-
!loading && setLoading(true);
|
|
75
|
-
fetchAssetsLikes({ variables: { assetIds } });
|
|
76
|
-
}
|
|
77
|
-
if (collectionIds.length > 0 && JSON.stringify(collectionIds) !== JSON.stringify(prevCollectionsIds.current)) {
|
|
78
|
-
prevCollectionsIds.current = collectionIds;
|
|
79
|
-
activeRequestsCount.current += 1;
|
|
80
|
-
!loading && setLoading(true);
|
|
81
|
-
fetchCollectionsLikes({
|
|
82
|
-
variables: {
|
|
83
|
-
input: collectionIds.map((collectionId) => {
|
|
84
|
-
return {
|
|
85
|
-
collectionId,
|
|
86
|
-
};
|
|
87
|
-
}),
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
93
|
-
}, [allItems, fetchAssetsLikes, fetchCollectionsLikes]);
|
|
94
|
-
return {
|
|
95
|
-
fetchAssetsLikes,
|
|
96
|
-
fetchCollectionsLikes,
|
|
97
|
-
assetsLikes,
|
|
98
|
-
collectionsLikes,
|
|
99
|
-
loadingLikes: loading,
|
|
100
|
-
errorAssets: assetsError,
|
|
101
|
-
errorCollections: collectionsError,
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
exports.useGetTableLikes = useGetTableLikes;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LabelKeys } from '../../entities/labelCreationType/types';
|
|
2
|
-
import { RemoveToolsType } from '../../system/Cards/CreationCard';
|
|
3
|
-
export type LikesType = {
|
|
4
|
-
likesCount: number;
|
|
5
|
-
isLiked: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare const useLikes: ({ defaultLikesCount, defaultIsLiked, itemType, removeOnDislike, isLoadingLikes, }: {
|
|
8
|
-
defaultLikesCount: number;
|
|
9
|
-
defaultIsLiked: boolean;
|
|
10
|
-
itemType: LabelKeys;
|
|
11
|
-
removeOnDislike?: RemoveToolsType | undefined;
|
|
12
|
-
isLoadingLikes?: boolean | undefined;
|
|
13
|
-
}) => {
|
|
14
|
-
likes: LikesType;
|
|
15
|
-
addLike: (id: string) => Promise<void>;
|
|
16
|
-
deleteLike: (id: string) => Promise<void>;
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
};
|
|
19
|
-
export default useLikes;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const useDislikeAsset_1 = __importDefault(require("../../api/server-assets/mutations/useDislikeAsset"));
|
|
7
|
-
const useLikeAsset_1 = __importDefault(require("../../api/server-assets/mutations/useLikeAsset"));
|
|
8
|
-
const useDislikeCollection_1 = __importDefault(require("../../api/server-collection/mutations/useDislikeCollection"));
|
|
9
|
-
const useLikeCollection_1 = __importDefault(require("../../api/server-collection/mutations/useLikeCollection"));
|
|
10
|
-
const useRemoveAssetFromGallery_1 = require("../../api/server-galleries/mutations/useRemoveAssetFromGallery");
|
|
11
|
-
const useRemoveCollectionFromGallery_1 = require("../../api/server-galleries/mutations/useRemoveCollectionFromGallery");
|
|
12
|
-
const types_1 = require("../../entities/labelCreationType/types");
|
|
13
|
-
const ui_1 = require("../../store/ui");
|
|
14
|
-
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
15
|
-
const react_1 = require("react");
|
|
16
|
-
// Component
|
|
17
|
-
const useLikes = ({ defaultLikesCount, defaultIsLiked, itemType, removeOnDislike, isLoadingLikes, }) => {
|
|
18
|
-
const [likes, setLikes] = (0, react_1.useState)({
|
|
19
|
-
likesCount: defaultLikesCount,
|
|
20
|
-
isLiked: defaultIsLiked,
|
|
21
|
-
});
|
|
22
|
-
(0, react_1.useEffect)(() => {
|
|
23
|
-
if (!isLoadingLikes) {
|
|
24
|
-
setLikes({
|
|
25
|
-
likesCount: defaultLikesCount,
|
|
26
|
-
isLiked: defaultIsLiked,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}, [isLoadingLikes]);
|
|
30
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
31
|
-
const { likeAsset, errorLikeAsset } = (0, useLikeAsset_1.default)();
|
|
32
|
-
const { dislikeAsset, errorDislikeAsset } = (0, useDislikeAsset_1.default)();
|
|
33
|
-
const { dislikeCollection, errorDislikeCollection } = (0, useDislikeCollection_1.default)();
|
|
34
|
-
const { likeCollection, errorLikeCollection } = (0, useLikeCollection_1.default)();
|
|
35
|
-
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
36
|
-
const { removeAssetFromGallery, errorRemoveAsset } = (0, useRemoveAssetFromGallery_1.useRemoveAssetFromGalleryV2)();
|
|
37
|
-
const { removeCollectionFromGallery, errorRemoveCollection } = (0, useRemoveCollectionFromGallery_1.useRemoveCollectionFromGalleryV2)();
|
|
38
|
-
(0, react_1.useEffect)(() => {
|
|
39
|
-
if (errorLikeAsset ||
|
|
40
|
-
errorDislikeAsset ||
|
|
41
|
-
errorDislikeCollection ||
|
|
42
|
-
errorLikeCollection ||
|
|
43
|
-
errorRemoveAsset ||
|
|
44
|
-
errorRemoveCollection) {
|
|
45
|
-
openAlert({
|
|
46
|
-
type: type_1.alertVariants.error,
|
|
47
|
-
caption: "Oops, something went wrong.",
|
|
48
|
-
text: "Please try another NFT",
|
|
49
|
-
});
|
|
50
|
-
setLikes({
|
|
51
|
-
likesCount: defaultLikesCount,
|
|
52
|
-
isLiked: false,
|
|
53
|
-
});
|
|
54
|
-
setIsLoading(false);
|
|
55
|
-
}
|
|
56
|
-
}, [
|
|
57
|
-
errorLikeAsset,
|
|
58
|
-
errorDislikeAsset,
|
|
59
|
-
errorDislikeCollection,
|
|
60
|
-
errorLikeCollection,
|
|
61
|
-
errorRemoveAsset,
|
|
62
|
-
errorRemoveCollection,
|
|
63
|
-
]);
|
|
64
|
-
const addLike = async (id) => {
|
|
65
|
-
setIsLoading(true);
|
|
66
|
-
if (itemType === types_1.LabelKeys.asset) {
|
|
67
|
-
await likeAsset({ assetId: id });
|
|
68
|
-
}
|
|
69
|
-
else if (itemType === types_1.LabelKeys.collection) {
|
|
70
|
-
await likeCollection({ collectionId: id });
|
|
71
|
-
}
|
|
72
|
-
if (!errorLikeAsset || !errorLikeCollection) {
|
|
73
|
-
setLikes({
|
|
74
|
-
likesCount: likes.likesCount + 1,
|
|
75
|
-
isLiked: true,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
setIsLoading(false);
|
|
79
|
-
};
|
|
80
|
-
const deleteLike = async (id) => {
|
|
81
|
-
setIsLoading(true);
|
|
82
|
-
if (itemType === types_1.LabelKeys.asset) {
|
|
83
|
-
await dislikeAsset({ assetId: id });
|
|
84
|
-
if (removeOnDislike && removeOnDislike.gallery) {
|
|
85
|
-
await removeAssetFromGallery({
|
|
86
|
-
galleryId: removeOnDislike.gallery.galleryId,
|
|
87
|
-
assetId: id,
|
|
88
|
-
});
|
|
89
|
-
removeOnDislike?.removeFn(itemType);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
else if (itemType === types_1.LabelKeys.collection) {
|
|
93
|
-
await dislikeCollection({ collectionId: id });
|
|
94
|
-
if (removeOnDislike && removeOnDislike.gallery) {
|
|
95
|
-
await removeCollectionFromGallery({
|
|
96
|
-
galleryId: removeOnDislike.gallery.galleryId,
|
|
97
|
-
collectionId: id,
|
|
98
|
-
});
|
|
99
|
-
removeOnDislike?.removeFn(itemType);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
if (!errorDislikeAsset || !errorDislikeCollection) {
|
|
103
|
-
setLikes({
|
|
104
|
-
likesCount: likes.likesCount - 1,
|
|
105
|
-
isLiked: false,
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
setIsLoading(false);
|
|
109
|
-
};
|
|
110
|
-
return { likes, addLike, deleteLike, isLoading };
|
|
111
|
-
};
|
|
112
|
-
// Export
|
|
113
|
-
exports.default = useLikes;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { searchSchema } from '@ludo.ninja/api';
|
|
2
|
-
export type TCurrentItemType = 'asset' | 'collection';
|
|
3
|
-
export declare const useGetLikesAsset: () => {
|
|
4
|
-
isLoadingLikes: boolean;
|
|
5
|
-
fetchLikes: (itemsIdsArray: string[], currentItemType: TCurrentItemType) => Promise<void>;
|
|
6
|
-
likes: Map<string, {
|
|
7
|
-
assetId: searchSchema.Scalars["String"];
|
|
8
|
-
isLikedByUser?: searchSchema.Maybe<searchSchema.Scalars["Boolean"]>;
|
|
9
|
-
likesNum?: searchSchema.Maybe<searchSchema.Scalars["Int"]>;
|
|
10
|
-
medias?: searchSchema.Maybe<Array<searchSchema.Maybe<searchSchema.IMedia>>>;
|
|
11
|
-
id: string;
|
|
12
|
-
} | {
|
|
13
|
-
collectionId: searchSchema.Scalars["String"];
|
|
14
|
-
isLikedByUser?: searchSchema.Maybe<searchSchema.Scalars["Boolean"]>;
|
|
15
|
-
likesNum?: searchSchema.Maybe<searchSchema.Scalars["Int"]>;
|
|
16
|
-
collectionAssetsPage?: searchSchema.Maybe<searchSchema.IAssetsPage>;
|
|
17
|
-
id: string;
|
|
18
|
-
}>;
|
|
19
|
-
resetLikes: () => void;
|
|
20
|
-
};
|