@ludo.ninja/components 2.3.36 → 2.3.38
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 +5 -5
- 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/Page500/index.d.ts +2 -0
- package/build/components/Page500/index.js +87 -0
- package/build/components/assetPage/assetLikes/index.d.ts +6 -0
- package/build/components/assetPage/assetLikes/index.js +58 -0
- package/build/components/assetPage/assetNft/index.d.ts +4 -0
- package/build/components/assetPage/assetNft/index.js +37 -0
- package/build/components/assetPage/audioVideoPlayer/Duration.d.ts +5 -0
- package/build/components/assetPage/audioVideoPlayer/Duration.js +22 -0
- package/build/components/assetPage/audioVideoPlayer/index.d.ts +96 -0
- package/build/components/assetPage/audioVideoPlayer/index.js +308 -0
- package/build/components/assetPage/category/index.d.ts +4 -0
- package/build/components/assetPage/category/index.js +58 -0
- package/build/components/assetPage/index.d.ts +5 -0
- package/build/components/assetPage/index.js +13 -0
- package/build/components/assetPage/information/index.d.ts +4 -0
- package/build/components/assetPage/information/index.js +114 -0
- package/build/components/assetPage/marketPlaces/index.d.ts +4 -0
- package/build/components/assetPage/marketPlaces/index.js +57 -0
- package/build/components/assetPage/media/AssetImage/index.d.ts +8 -0
- package/build/components/assetPage/media/AssetImage/index.js +187 -0
- package/build/components/assetPage/moreDropDown/index.d.ts +10 -0
- package/build/components/assetPage/moreDropDown/index.js +152 -0
- package/build/components/assetPage/properties/index.d.ts +4 -0
- package/build/components/assetPage/properties/index.js +42 -0
- package/build/components/assetPage/slider/store.d.ts +8 -0
- package/build/components/assetPage/slider/store.js +16 -0
- package/build/components/assetPage/viewer3D/index.d.ts +7 -0
- package/build/components/assetPage/viewer3D/index.js +124 -0
- package/build/components/base/Meta/index.js +1 -1
- package/build/components/base/PageHead/index.d.ts +8 -0
- package/build/components/base/PageHead/index.js +13 -0
- package/build/components/base/UserStreak/index.js +3 -3
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +7 -0
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +28 -0
- package/build/components/gallery/add/addCreationToGallery/index.d.ts +2 -0
- package/build/components/gallery/add/addCreationToGallery/index.js +48 -0
- 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/headers/headerSimple/index.d.ts +2 -0
- package/build/components/headers/headerSimple/index.js +78 -0
- package/build/components/linkTabs/index.d.ts +8 -0
- package/build/components/linkTabs/index.js +51 -0
- package/build/components/linkTabs/linkTab/index.d.ts +9 -0
- package/build/components/linkTabs/linkTab/index.js +74 -0
- package/build/components/myWallets/index.d.ts +9 -0
- package/build/components/myWallets/index.js +37 -0
- package/build/components/myWallets/myWalletItem/index.d.ts +10 -0
- package/build/components/myWallets/myWalletItem/index.js +82 -0
- package/build/components/myWallets/myWalletItem/myWalletItemCheckBox/index.d.ts +9 -0
- package/build/components/myWallets/myWalletItem/myWalletItemCheckBox/index.js +21 -0
- package/build/components/profile/profileSkeleton/index.d.ts +4 -0
- package/build/components/profile/profileSkeleton/index.js +75 -0
- 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/searchFiltersConnector/filters/applyResetBtns/index.d.ts +5 -0
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +55 -0
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.d.ts +10 -0
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +60 -0
- package/build/components/searchFiltersConnector/filters/index.d.ts +11 -0
- package/build/components/searchFiltersConnector/filters/index.js +158 -0
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.d.ts +5 -0
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +25 -0
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.d.ts +9 -0
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +53 -0
- package/build/components/searchFiltersConnector/index.d.ts +10 -0
- package/build/components/searchFiltersConnector/index.js +116 -0
- package/build/components/shareDialog/index.d.ts +34 -0
- package/build/components/shareDialog/index.js +92 -0
- package/build/components/sidebar/data.d.ts +6 -0
- package/build/components/sidebar/data.js +121 -0
- package/build/components/sidebar/icons.d.ts +9 -0
- package/build/components/sidebar/icons.js +22 -0
- package/build/components/sidebar/index.d.ts +2 -0
- package/build/components/sidebar/index.js +135 -0
- package/build/components/sidebar/initializer.d.ts +1 -0
- package/build/components/sidebar/initializer.js +36 -0
- package/build/components/sidebar/sidebarFilters/index.d.ts +7 -0
- package/build/components/sidebar/sidebarFilters/index.js +51 -0
- package/build/components/sidebar/sidebarInviteCodeLabel/index.d.ts +2 -0
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +49 -0
- package/build/components/sidebar/sidebarSpa.d.ts +10 -0
- package/build/components/sidebar/sidebarSpa.js +134 -0
- package/build/components/toTopBtn/index.js +7 -7
- package/build/dto/AssetEntity/index.d.ts +63 -0
- package/build/dto/AssetEntity/index.js +208 -0
- package/build/dto/AssetEntity/interface.d.ts +39 -0
- package/build/dto/AssetEntity/interface.js +2 -0
- package/build/dto/AssetEntity/views/AssetAudio/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetAudio/index.js +32 -0
- package/build/dto/AssetEntity/views/AssetImage/index.d.ts +12 -0
- package/build/dto/AssetEntity/views/AssetImage/index.js +44 -0
- package/build/dto/AssetEntity/views/AssetObject/index.d.ts +13 -0
- package/build/dto/AssetEntity/views/AssetObject/index.js +64 -0
- package/build/dto/AssetEntity/views/AssetOther/index.d.ts +13 -0
- package/build/dto/AssetEntity/views/AssetOther/index.js +47 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.d.ts +12 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +44 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.js +32 -0
- package/build/dto/AssetEntity/views/index.d.ts +6 -0
- package/build/dto/AssetEntity/views/index.js +16 -0
- package/build/dto/AssetSearchEntity/index.d.ts +60 -0
- package/build/dto/AssetSearchEntity/index.js +164 -0
- package/build/dto/AssetSearchEntity/interface.d.ts +36 -0
- package/build/dto/AssetSearchEntity/interface.js +2 -0
- package/build/dto/Collection/CollectionCreationEntity/index.d.ts +45 -0
- package/build/dto/Collection/CollectionCreationEntity/index.js +173 -0
- package/build/dto/Collection/CollectionCreationEntity/interface.d.ts +24 -0
- package/build/dto/Collection/CollectionCreationEntity/interface.js +2 -0
- package/build/dto/Collection/CollectionEntity/index.d.ts +32 -0
- package/build/dto/Collection/CollectionEntity/index.js +82 -0
- package/build/dto/Collection/CollectionEntity/interface.d.ts +16 -0
- package/build/dto/Collection/CollectionEntity/interface.js +2 -0
- package/build/dto/CreationEntity/index.d.ts +49 -0
- package/build/dto/CreationEntity/index.js +178 -0
- package/build/dto/CreationEntity/interface.d.ts +30 -0
- package/build/dto/CreationEntity/interface.js +2 -0
- package/build/dto/GalleryEntityV2/index.d.ts +32 -0
- package/build/dto/GalleryEntityV2/index.js +80 -0
- package/build/dto/GalleryEntityV2/interface.d.ts +16 -0
- package/build/dto/GalleryEntityV2/interface.js +2 -0
- package/build/dto/common/ItemType/data.d.ts +3 -0
- package/build/dto/common/ItemType/data.js +41 -0
- package/build/dto/common/ItemType/index.d.ts +49 -0
- package/build/dto/common/ItemType/index.js +46 -0
- package/build/dto/common/ItemViews/CreationAudio/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationAudio/index.js +28 -0
- package/build/dto/common/ItemViews/CreationImage/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationImage/index.js +39 -0
- package/build/dto/common/ItemViews/CreationObject/index.d.ts +7 -0
- package/build/dto/common/ItemViews/CreationObject/index.js +30 -0
- package/build/dto/common/ItemViews/CreationOther/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationOther/index.js +28 -0
- package/build/dto/common/ItemViews/CreationVideo/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationVideo/index.js +28 -0
- package/build/dto/common/Media/Audio/index.d.ts +15 -0
- package/build/dto/common/Media/Audio/index.js +40 -0
- package/build/dto/common/Media/Image/index.d.ts +15 -0
- package/build/dto/common/Media/Image/index.js +48 -0
- package/build/dto/common/Media/Object/index.d.ts +15 -0
- package/build/dto/common/Media/Object/index.js +49 -0
- package/build/dto/common/Media/Other/index.d.ts +15 -0
- package/build/dto/common/Media/Other/index.js +68 -0
- package/build/dto/common/Media/Screenshot/index.d.ts +15 -0
- package/build/dto/common/Media/Screenshot/index.js +48 -0
- package/build/dto/common/Media/Urls/index.d.ts +31 -0
- package/build/dto/common/Media/Urls/index.js +125 -0
- package/build/dto/common/Media/Video/index.d.ts +15 -0
- package/build/dto/common/Media/Video/index.js +40 -0
- package/build/dto/common/Media/index.d.ts +28 -0
- package/build/dto/common/Media/index.js +45 -0
- package/build/dto/common/Media/interface.d.ts +30 -0
- package/build/dto/common/Media/interface.js +2 -0
- package/build/entities/asset/AssetMediasViews.d.ts +4 -0
- package/build/entities/asset/AssetMediasViews.js +54 -0
- package/build/entities/asset/builder.d.ts +1 -1
- package/build/entities/asset/builder.js +2 -2
- package/build/entities/asset/getAssetMediasOpengraph.d.ts +5 -0
- package/build/entities/asset/getAssetMediasOpengraph.js +39 -0
- 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/collection/builder.d.ts +3 -0
- package/build/entities/collection/builder.js +31 -0
- package/build/entities/collection/types.d.ts +17 -0
- package/build/entities/collection/types.js +2 -0
- 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/fonts/FontsInitializeLayout.d.ts +12 -0
- package/build/fonts/FontsInitializeLayout.js +164 -0
- package/build/hoc/HOCSignUpInterceptor/CircleSvg.d.ts +1 -0
- package/build/hoc/HOCSignUpInterceptor/CircleSvg.js +6 -0
- package/build/hoc/HOCSignUpInterceptor/HOCSignUpInterceptor.d.ts +2 -0
- package/build/hoc/HOCSignUpInterceptor/HOCSignUpInterceptor.js +103 -0
- package/build/hooks/apollo/index.d.ts +1 -0
- package/build/hooks/apollo/index.js +24 -0
- package/build/hooks/audio/useMultiAudio/index.d.ts +2 -0
- package/build/hooks/audio/useMultiAudio/index.js +47 -0
- package/build/hooks/extension/useExtension/index.d.ts +7 -0
- package/build/hooks/extension/useExtension/index.js +32 -0
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +22 -0
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +122 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +23 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +166 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +23 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +155 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +29 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +145 -0
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.d.ts +15 -0
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +119 -0
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +14 -0
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +125 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +17 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +128 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.d.ts +16 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +142 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +18 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +48 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.d.ts +14 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.js +104 -0
- package/build/hooks/likes/index.d.ts +19 -0
- package/build/hooks/likes/index.js +113 -0
- package/build/hooks/likes/useGetLikesAsset.d.ts +20 -0
- package/build/hooks/likes/useGetLikesAsset.js +91 -0
- package/build/layouts/AppLayout.d.ts +6 -0
- package/build/layouts/AppLayout.js +24 -0
- package/build/layouts/GlobalLayout.d.ts +4 -0
- package/build/layouts/GlobalLayout.js +34 -0
- package/build/layouts/base/LWithRegularHeader/index.d.ts +3 -0
- package/build/layouts/base/LWithRegularHeader/index.js +16 -0
- package/build/layouts/base/LWithRegularHeader/type.d.ts +5 -0
- package/build/layouts/base/LWithRegularHeader/type.js +2 -0
- package/build/layouts/base/LWithSearchHeader/index.d.ts +3 -0
- package/build/layouts/base/LWithSearchHeader/index.js +12 -0
- package/build/layouts/base/LWithSearchHeader/type.d.ts +5 -0
- package/build/layouts/base/LWithSearchHeader/type.js +2 -0
- package/build/layouts/custom/mainLayout/index.d.ts +3 -0
- package/build/layouts/custom/mainLayout/index.js +17 -0
- package/build/layouts/custom/styles.d.ts +2 -0
- package/build/layouts/custom/styles.js +46 -0
- package/build/layouts/pageTransitionLayout.d.ts +6 -0
- package/build/layouts/pageTransitionLayout.js +23 -0
- package/build/layouts/pageWithLayout.d.ts +9 -0
- package/build/layouts/pageWithLayout.js +2 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.d.ts +19 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +204 -0
- package/build/modules/gallery/api/useGetFavoriteGallery.d.ts +6 -0
- package/build/modules/gallery/api/useGetFavoriteGallery.js +37 -0
- package/build/modules/gallery/store.d.ts +26 -0
- package/build/modules/gallery/store.js +97 -0
- package/build/modules/gallery/ui/AllResults.d.ts +3 -0
- package/build/modules/gallery/ui/AllResults.js +12 -0
- package/build/modules/gallery/ui/Description.d.ts +4 -0
- package/build/modules/gallery/ui/Description.js +101 -0
- package/build/modules/gallery/ui/EditGallery.d.ts +9 -0
- package/build/modules/gallery/ui/EditGallery.js +51 -0
- package/build/modules/gallery/ui/GalleryDeleteIcon.d.ts +4 -0
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +30 -0
- package/build/modules/gallery/ui/PlaceholderItemsGallery.d.ts +1 -0
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +71 -0
- package/build/modules/gallery/ui/STopSections.d.ts +1 -0
- package/build/modules/gallery/ui/STopSections.js +31 -0
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.d.ts +7 -0
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +97 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.d.ts +15 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +157 -0
- package/build/modules/gallery/ui/createGalleryForm/index.d.ts +12 -0
- package/build/modules/gallery/ui/createGalleryForm/index.js +137 -0
- package/build/modules/gallery/ui/editGalleryForm/index.d.ts +8 -0
- package/build/modules/gallery/ui/editGalleryForm/index.js +189 -0
- package/build/modules/gallery/ui/itemsPreview/index.d.ts +19 -0
- package/build/modules/gallery/ui/itemsPreview/index.js +279 -0
- package/build/modules/gallery/useToGalleryAsset.d.ts +18 -0
- package/build/modules/gallery/useToGalleryAsset.js +88 -0
- package/build/modules/notifications/CreatorNotifications.d.ts +1 -0
- package/build/modules/notifications/CreatorNotifications.js +42 -0
- package/build/modules/opportunity/OpportunityCard.d.ts +5 -0
- package/build/modules/opportunity/OpportunityCard.js +279 -0
- package/build/modules/opportunity/OpportunityDropDown.d.ts +5 -0
- package/build/modules/opportunity/OpportunityDropDown.js +42 -0
- package/build/modules/opportunity/ShareIcon.d.ts +1 -0
- package/build/modules/opportunity/ShareIcon.js +6 -0
- package/build/modules/opportunity/encodeQuery.d.ts +14 -0
- package/build/modules/opportunity/encodeQuery.js +31 -0
- package/build/modules/opportunity/popup/CopyIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/CopyIcon.js +7 -0
- package/build/modules/opportunity/popup/FacebookIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/FacebookIcon.js +7 -0
- package/build/modules/opportunity/popup/LinkedInIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/LinkedInIcon.js +7 -0
- package/build/modules/opportunity/popup/LogoXIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/LogoXIcon.js +7 -0
- package/build/modules/opportunity/popup/OpportunityMenu.d.ts +8 -0
- package/build/modules/opportunity/popup/OpportunityMenu.js +204 -0
- package/build/modules/opportunity/type.d.ts +2 -0
- package/build/modules/opportunity/type.js +2 -0
- package/build/modules/sessionScroll/globalTabs.d.ts +12 -0
- package/build/modules/sessionScroll/globalTabs.js +50 -0
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +12 -0
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +59 -0
- package/build/modules/user/auth/HOCAuthSearchParamsLocalhostInterceptor.d.ts +3 -0
- package/build/modules/user/auth/HOCAuthSearchParamsLocalhostInterceptor.js +34 -0
- package/build/modules/user/auth/useAuthVerification.d.ts +1 -0
- package/build/modules/user/auth/useAuthVerification.js +18 -0
- package/build/modules/user/auth/useSignIn.d.ts +2 -0
- package/build/modules/user/auth/useSignIn.js +23 -0
- package/build/modules/user/auth/useSignOut.d.ts +1 -0
- package/build/modules/user/auth/useSignOut.js +42 -0
- package/build/modules/user/auth/useVerification.d.ts +1 -0
- package/build/modules/user/auth/useVerification.js +67 -0
- package/build/modules/user/profileData/profileDataInitialization.d.ts +1 -0
- package/build/modules/user/profileData/profileDataInitialization.js +66 -0
- package/build/modules/user/store.d.ts +1 -1
- package/build/modules/virtuoso/VirtuosoPageBuilder.d.ts +19 -0
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +135 -0
- package/build/modules/virtuoso/VirtuosoToTopBtn.d.ts +9 -0
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +38 -0
- package/build/modules/virtuoso/types.d.ts +4 -0
- package/build/modules/virtuoso/types.js +2 -0
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +3 -0
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +27 -0
- package/build/modules/virtuoso/useVirtuosoData.d.ts +12 -0
- package/build/modules/virtuoso/useVirtuosoData.js +49 -0
- package/build/public/MobileSearchBtn/close.js +25 -0
- package/build/public/MobileSearchBtn/search.js +31 -0
- package/build/public/MobileSearchBtn/test/pirate.js +36 -0
- package/build/public/MobileSearchBtn/test/squircle.js +36 -0
- package/build/public/assetPage/audioPlaceholder.js +116 -0
- package/build/public/assetPage/details.js +31 -0
- package/build/public/assetPage/favorite.js +22 -0
- package/build/public/assetPage/favorite_hover.js +24 -0
- package/build/public/assetPage/flag.js +32 -0
- package/build/public/assetPage/fullScreen.js +24 -0
- package/build/public/assetPage/owners.js +27 -0
- package/build/public/assetPage/pause.js +25 -0
- package/build/public/assetPage/play.js +23 -0
- package/build/public/assetPage/share.js +26 -0
- package/build/public/assetPage/share2.js +25 -0
- package/build/public/assetPage/share2_hover.js +25 -0
- package/build/public/assetPage/shareWithDots.js +40 -0
- package/build/public/assetPage/shareWithDots_hover.js +40 -0
- package/build/public/assetPage/share_hover.js +24 -0
- package/build/public/assetPage/soundOf.js +24 -0
- package/build/public/assetPage/soundOn.js +24 -0
- package/build/public/calendar.js +24 -0
- package/build/public/cards/addToFavListIcon.js +30 -0
- package/build/public/cards/addToGalleryIcon.js +22 -0
- package/build/public/cards/heart.js +20 -0
- package/build/public/cardsHolderLoader/loader.js +25 -0
- package/build/public/checkbox-on.js +34 -0
- package/build/public/checkboxArrow.js +25 -0
- package/build/public/close.js +25 -0
- package/build/public/close20.js +25 -0
- package/build/public/collectionPage/export.js +25 -0
- package/build/public/copied.js +30 -0
- package/build/public/copy-icon-new.js +31 -0
- package/build/public/creation/card/moreBtn.js +24 -0
- package/build/public/creation/card/moreBtnVertical.js +28 -0
- package/build/public/creation/card/moreBtn_hover.js +28 -0
- package/build/public/dropDown/arrow_down.js +24 -0
- package/build/public/dropdown-arrow-down.js +22 -0
- package/build/public/dropdown-arrow-up.js +22 -0
- package/build/public/error/refresh.js +29 -0
- package/build/public/favicon.ico +0 -0
- package/build/public/favicon.png +0 -0
- package/build/public/follower.js +27 -0
- 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 +25 -0
- package/build/public/header/mobile_menu_icons/arrows/arrow_up.js +25 -0
- package/build/public/header/mobile_menu_icons/campaigns.js +40 -0
- package/build/public/header/mobile_menu_icons/dropdown/add_new_campaign.js +72 -0
- package/build/public/header/mobile_menu_icons/dropdown/my_galleries.js +71 -0
- package/build/public/header/mobile_menu_icons/dropdown/my_profile.js +35 -0
- package/build/public/header/mobile_menu_icons/dropdown/my_wallets.js +34 -0
- package/build/public/header/mobile_menu_icons/dropdown/notifications.js +36 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_campaigns.js +44 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_creations.js +41 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_creators.js +58 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_galleries.js +75 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_/321/201ollectors.js +64 -0
- package/build/public/header/mobile_menu_icons/experiences.js +49 -0
- package/build/public/header/mobile_menu_icons/settings.js +24 -0
- package/build/public/header/mobile_menu_icons/sign_out.js +31 -0
- package/build/public/header/mobile_menu_icons/submit_nft.js +88 -0
- package/build/public/header/mobile_menu_icons/top.js +45 -0
- package/build/public/header/mobile_toggle/close.js +25 -0
- package/build/public/header/mobile_toggle/regular.js +25 -0
- package/build/public/like-icon-active.js +27 -0
- package/build/public/like-icon.js +23 -0
- package/build/public/logOut/logOutBtn.js +35 -0
- package/build/public/logo/main_logo.js +726 -0
- package/build/public/logo/main_logo_dark.js +159 -0
- package/build/public/logo/mobile_logo.js +714 -0
- package/build/public/logo/mobile_logo_dark.js +147 -0
- package/build/public/ludo-logo-small.js +28 -0
- package/build/public/ludo-logo-square.js +40 -0
- package/build/public/no_image placeholder.js +41 -0
- package/build/public/no_media_placeholder.js +752 -0
- package/build/public/report.js +40 -0
- package/build/public/search/arrow_up.js +25 -0
- package/build/public/search/back.js +25 -0
- package/build/public/search/close.js +25 -0
- package/build/public/search/no_found.js +30 -0
- package/build/public/search/search.js +31 -0
- package/build/public/search-icon.js +34 -0
- package/build/public/services/opensea.js +28 -0
- package/build/public/services/other.js +40 -0
- package/build/public/services/rarible.js +29 -0
- package/build/public/settings_page/back.js +25 -0
- package/build/public/settings_page/burger_menu.js +37 -0
- package/build/public/settings_page/notifications.js +35 -0
- package/build/public/settings_page/notifications_active.js +35 -0
- package/build/public/settings_page/privacy.js +27 -0
- package/build/public/settings_page/privacy_active.js +27 -0
- package/build/public/settings_page/settings.js +28 -0
- package/build/public/settings_page/settings_active.js +28 -0
- package/build/public/settings_page/upload.js +30 -0
- package/build/public/share-icon.js +40 -0
- package/build/public/showCaseIcons/heart.js +20 -0
- package/build/public/tabs/arrow_right.js +25 -0
- package/build/public/tabs/arrow_right_dark.js +25 -0
- package/build/public/tests/audio.mp3 +0 -0
- package/build/public/tests/test_1.js +64 -0
- package/build/public/toTopBtn/toTopBtn.js +31 -0
- package/build/public/upload-userpic.js +64 -0
- package/build/public/userpic-placeholder.jpg +0 -0
- package/build/public/userpics/placeholder-lg-1.js +46 -0
- package/build/public/userpics/placeholder-sm-1.js +46 -0
- package/build/public/video/pause.js +33 -0
- package/build/public/video/play.js +29 -0
- package/build/public/wallets/arkane-btn.js +37 -0
- package/build/public/wallets/bitski-btn.js +52 -0
- package/build/public/wallets/elrond-btn.js +189 -0
- package/build/public/wallets/elrond-icon-sm.js +184 -0
- package/build/public/wallets/elrond.js +27 -0
- package/build/public/wallets/ethereum-icon-sm.js +34 -0
- package/build/public/wallets/flow-btn.js +33 -0
- package/build/public/wallets/flow-icon-sm.js +36 -0
- package/build/public/wallets/formatic-btn.js +25 -0
- package/build/public/wallets/formatic-icon-sm.js +25 -0
- package/build/public/wallets/maiar-btn.js +58 -0
- package/build/public/wallets/maiar-icon-sm.js +58 -0
- package/build/public/wallets/metamask-btn.js +176 -0
- package/build/public/wallets/metamask-icon-sm.js +169 -0
- package/build/public/wallets/phantom.js +27 -0
- package/build/public/wallets/plus.js +29 -0
- package/build/public/wallets/solana-btn.js +71 -0
- package/build/public/wallets/solana-icon-sm.js +64 -0
- package/build/public/wallets/terra-btn.js +94 -0
- package/build/public/wallets/terra-icon-sm.js +94 -0
- package/build/public/wallets/tezos-btn.js +42 -0
- package/build/public/wallets/tezos-icon-sm.js +37 -0
- package/build/public/wallets/wallet_connect.js +27 -0
- package/build/public/wallets/walletconnect-btn.js +22 -0
- package/build/public/wallets/walletlink-btn.js +36 -0
- package/build/public/wallets/walletlink-icon-sm.js +37 -0
- package/build/public/wallets/xdefi-btn.js +31 -0
- package/build/public/wallets/xdefi-icon-sm.js +31 -0
- package/build/public/warning.js +22 -0
- package/build/store/creation/index.d.ts +5 -0
- package/build/store/creation/index.js +38 -0
- package/build/store/media/index.d.ts +2 -0
- package/build/store/media/index.js +59 -0
- package/build/store/media/types.d.ts +11 -0
- package/build/store/media/types.js +2 -0
- 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/styles/animations/index.d.ts +2 -0
- package/build/styles/animations/index.js +20 -0
- package/build/styles/globalStyles.d.ts +2 -0
- package/build/styles/globalStyles.js +86 -0
- package/build/system/ActiveLink/ActiveLink.test.d.ts +1 -0
- package/build/system/ActiveLink/ActiveLink.test.js +48 -0
- package/build/system/ActiveLink/index.d.ts +9 -0
- package/build/system/ActiveLink/index.js +49 -0
- package/build/system/Alert/index.d.ts +2 -0
- package/build/system/Alert/index.js +21 -0
- package/build/system/BasicOverlay/index.d.ts +2 -0
- package/build/system/BasicOverlay/index.js +27 -0
- package/build/system/Buttons/IconButton/index.d.ts +2 -0
- package/build/system/Buttons/IconButton/index.js +7 -0
- package/build/system/Buttons/IconWithButton/index.d.ts +2 -0
- package/build/system/Buttons/IconWithButton/index.js +7 -0
- package/build/system/Buttons/IconWithButton/themes.d.ts +0 -0
- package/build/system/Buttons/IconWithButton/themes.js +1 -0
- package/build/system/Buttons/MainButton/index.d.ts +2 -0
- package/build/system/Buttons/MainButton/index.js +7 -0
- package/build/system/Buttons/MainButton/themes.d.ts +0 -0
- package/build/system/Buttons/MainButton/themes.js +1 -0
- package/build/system/Buttons/SecondaryButton/index.d.ts +2 -0
- package/build/system/Buttons/SecondaryButton/index.js +7 -0
- package/build/system/Cards/CardCheckbox/index.d.ts +5 -0
- package/build/system/Cards/CardCheckbox/index.js +89 -0
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +28 -0
- package/build/system/Cards/CardContent/CardCategory/index.d.ts +5 -0
- package/build/system/Cards/CardContent/CardCategory/index.js +54 -0
- package/build/system/Cards/CardContent/CardContent.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardContent.test.js +103 -0
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +37 -0
- package/build/system/Cards/CardContent/CardLikes/index.d.ts +5 -0
- package/build/system/Cards/CardContent/CardLikes/index.js +29 -0
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +46 -0
- package/build/system/Cards/CardContent/CardShowMore/index.d.ts +6 -0
- package/build/system/Cards/CardContent/CardShowMore/index.js +121 -0
- package/build/system/Cards/CardContent/index.d.ts +17 -0
- package/build/system/Cards/CardContent/index.js +97 -0
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.d.ts +1 -0
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +92 -0
- package/build/system/Cards/CardMedia/CardAudio/index.d.ts +7 -0
- package/build/system/Cards/CardMedia/CardAudio/index.js +66 -0
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.d.ts +1 -0
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +34 -0
- package/build/system/Cards/CardMedia/CardImage/index.d.ts +9 -0
- package/build/system/Cards/CardMedia/CardImage/index.js +24 -0
- package/build/system/Cards/CardMedia/CardVideo/index.d.ts +7 -0
- package/build/system/Cards/CardMedia/CardVideo/index.js +57 -0
- package/build/system/Cards/CardRank/index.d.ts +4 -0
- package/build/system/Cards/CardRank/index.js +82 -0
- package/build/system/Cards/CreationCard/CardHead.d.ts +12 -0
- package/build/system/Cards/CreationCard/CardHead.js +62 -0
- package/build/system/Cards/CreationCard/index.d.ts +29 -0
- package/build/system/Cards/CreationCard/index.js +129 -0
- package/build/system/Cards/MultiMediaCard/index.d.ts +8 -0
- package/build/system/Cards/MultiMediaCard/index.js +126 -0
- package/build/system/Cards/Styles/Content.d.ts +2 -0
- package/build/system/Cards/Styles/Content.js +40 -0
- package/build/system/Cards/Styles/Head.d.ts +2 -0
- package/build/system/Cards/Styles/Head.js +46 -0
- package/build/system/Cards/Styles/Headicons.d.ts +4 -0
- package/build/system/Cards/Styles/Headicons.js +122 -0
- package/build/system/Cards/Styles/Image.d.ts +4 -0
- package/build/system/Cards/Styles/Image.js +24 -0
- package/build/system/Cards/Styles/Likes.d.ts +4 -0
- package/build/system/Cards/Styles/Likes.js +53 -0
- package/build/system/Cards/Styles/MultiHead.d.ts +2 -0
- package/build/system/Cards/Styles/MultiHead.js +44 -0
- package/build/system/Cards/Styles/Video.d.ts +2 -0
- package/build/system/Cards/Styles/Video.js +15 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +4 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +48 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +4 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +34 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +5 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +57 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +2 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +42 -0
- package/build/system/DropDown/DropDown.test.d.ts +1 -0
- package/build/system/DropDown/DropDown.test.js +38 -0
- package/build/system/DropDown/index.js +2 -2
- package/build/system/Filters/type.d.ts +16 -0
- package/build/system/Filters/type.js +11 -0
- package/build/system/Flex/index.d.ts +0 -0
- package/build/system/Flex/index.js +1 -0
- package/build/system/Forms/Checkbox/Checkbox.test.js +1 -1
- package/build/system/Forms/Checkbox/index.js +4 -4
- package/build/system/Forms/DatePicker/DatePicker.test.d.ts +1 -0
- package/build/system/Forms/DatePicker/DatePicker.test.js +39 -0
- package/build/system/Forms/DatePicker/index.d.ts +14 -0
- package/build/system/Forms/DatePicker/index.js +138 -0
- 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/system/Labels/InviteLabel/InviteLabel.test.d.ts +1 -0
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +44 -0
- package/build/system/Labels/InviteLabel/index.d.ts +6 -0
- package/build/system/Labels/InviteLabel/index.js +44 -0
- package/build/system/Modals/Modal/Modal.test.d.ts +1 -0
- package/build/system/Modals/Modal/Modal.test.js +36 -0
- package/build/system/Modals/Modal/index.d.ts +2 -0
- package/build/system/Modals/Modal/index.js +82 -0
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +1 -0
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +47 -0
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.d.ts +1 -0
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +35 -0
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +5 -0
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +10 -0
- package/build/system/Modals/ModalSidebar/index.d.ts +3 -0
- package/build/system/Modals/ModalSidebar/index.js +78 -0
- package/build/system/Overlay/Overlay.test.d.ts +1 -0
- package/build/system/Overlay/Overlay.test.js +44 -0
- package/build/system/Overlay/index.d.ts +2 -0
- package/build/system/Overlay/index.js +41 -0
- package/build/system/PageLoader/index.d.ts +2 -0
- package/build/system/PageLoader/index.js +7 -0
- package/build/system/Palete/index.d.ts +2 -0
- package/build/system/Palete/index.js +7 -0
- package/build/system/ShareIconResize.d.ts +1 -0
- package/build/system/ShareIconResize.js +31 -0
- package/build/system/Tabs/TabNavLink/TabNavLink.test.d.ts +2 -0
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +40 -0
- package/build/system/Tabs/TabNavLink/index.d.ts +12 -0
- package/build/system/Tabs/TabNavLink/index.js +58 -0
- package/build/system/Tabs/TabsNav/TabsNav.test.d.ts +2 -0
- package/build/system/Tabs/TabsNav/TabsNav.test.js +43 -0
- package/build/system/Tabs/TabsNav/index.d.ts +10 -0
- package/build/system/Tabs/TabsNav/index.js +31 -0
- package/build/system/Tabs/TabsNav/type.d.ts +6 -0
- package/build/system/Tabs/TabsNav/type.js +2 -0
- package/build/system/Tabs/TabsPanel/TabsPanel.test.d.ts +2 -0
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +32 -0
- package/build/system/Tabs/TabsPanel/index.d.ts +7 -0
- package/build/system/Tabs/TabsPanel/index.js +17 -0
- package/build/system/Text/index.d.ts +0 -0
- package/build/system/Text/index.js +1 -0
- package/build/system/index.d.ts +6 -0
- package/build/system/index.js +22 -0
- 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/copyBtn/index.d.ts +5 -0
- package/build/utils/copyBtn/index.js +46 -0
- package/build/utils/extractItemIds.d.ts +2 -0
- package/build/utils/extractItemIds.js +6 -0
- package/build/utils/getDimensionsImage.d.ts +4 -0
- package/build/utils/getDimensionsImage.js +38 -0
- package/build/utils/getErrorAlertProps/index.js +1 -1
- package/build/utils/imageProportionsSize/index.d.ts +5 -0
- package/build/utils/imageProportionsSize/index.js +23 -0
- package/build/utils/redirectToApp.d.ts +1 -0
- package/build/utils/redirectToApp.js +29 -0
- package/build/utils/screen/index.js +2 -2
- package/build/utils/ssrFunctions/index.d.ts +17 -0
- package/build/utils/ssrFunctions/index.js +33 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const HOCSignUpInterceptor: (Component: ReactNode, isAuthorized?: boolean) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<import("react").AwaitedReactNode> | null | undefined;
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
exports.HOCSignUpInterceptor = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const CircleSvg_1 = require("./CircleSvg");
|
|
9
|
+
const LWithSearchHeader_1 = __importDefault(require("../../layouts/base/LWithSearchHeader"));
|
|
10
|
+
const store_1 = require("../../modules/user/store");
|
|
11
|
+
const redirectToApp_1 = require("../../utils/redirectToApp");
|
|
12
|
+
const ScreenWidth_1 = require("@ludo.ninja/ui/build/styles/ScreenWidth");
|
|
13
|
+
const MainButton_1 = __importDefault(require("@ludo.ninja/ui/build/system/Buttons/MainButton"));
|
|
14
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
15
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
16
|
+
const SWrapper = styled_components_1.default.div `
|
|
17
|
+
padding-top: 132px;
|
|
18
|
+
|
|
19
|
+
${ScreenWidth_1.mediaQuery.mobile} {
|
|
20
|
+
padding-top: 82px;
|
|
21
|
+
overflow-x: hidden;
|
|
22
|
+
min-height: var(--app-height);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
26
|
+
padding-top: ${(0, _4k_1.adaptiveValueCalc)(132)};
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
const SContainer = styled_components_1.default.div `
|
|
30
|
+
position: relative;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
|
|
34
|
+
& > svg {
|
|
35
|
+
height: 570px;
|
|
36
|
+
transform: scale(1.25) translateY(24px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
${ScreenWidth_1.mediaQuery.mobile} {
|
|
40
|
+
height: 486px;
|
|
41
|
+
|
|
42
|
+
& > svg {
|
|
43
|
+
position: absolute;
|
|
44
|
+
height: 486px;
|
|
45
|
+
transform: scale(1.25) translateY(20px);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
const SContent = styled_components_1.default.div `
|
|
50
|
+
position: absolute;
|
|
51
|
+
left: 50%;
|
|
52
|
+
top: 200px;
|
|
53
|
+
transform: translate(-50%, 0);
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: 46px;
|
|
58
|
+
|
|
59
|
+
.textLogin {
|
|
60
|
+
color: #696f90;
|
|
61
|
+
text-align: center;
|
|
62
|
+
font-size: 40px;
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
line-height: 52px;
|
|
65
|
+
max-width: 500px;
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
${ScreenWidth_1.mediaQuery.mobile} {
|
|
72
|
+
top: 144px;
|
|
73
|
+
gap: 29px;
|
|
74
|
+
|
|
75
|
+
.textLogin {
|
|
76
|
+
font-size: 28px;
|
|
77
|
+
line-height: 36px;
|
|
78
|
+
max-width: 330px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
const SignUpProtected = () => {
|
|
83
|
+
return ((0, jsx_runtime_1.jsx)(LWithSearchHeader_1.default, { children: (0, jsx_runtime_1.jsx)(SWrapper, { children: (0, jsx_runtime_1.jsxs)(SContainer, { children: [(0, jsx_runtime_1.jsx)(CircleSvg_1.CircleSvg, {}), (0, jsx_runtime_1.jsxs)(SContent, { children: [(0, jsx_runtime_1.jsxs)("p", { className: "textLogin", children: [(0, jsx_runtime_1.jsx)("span", { children: "Please log in" }), (0, jsx_runtime_1.jsx)("span", { children: "to proceed on this page" })] }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(MainButton_1.default, { onClick: redirectToApp_1.redirectToApp, variant: "primaryM", text: "Go to App" }) })] })] }) }) }));
|
|
84
|
+
};
|
|
85
|
+
// for initialize hoc use template :
|
|
86
|
+
// const Page = (props: any) => {
|
|
87
|
+
// return HOCSignUpInterceptor(<HomeBuildPage {...props} />);
|
|
88
|
+
// };
|
|
89
|
+
// export default Page;
|
|
90
|
+
const HOCSignUpInterceptor = (Component, isAuthorized) => {
|
|
91
|
+
const isSignedIn = (0, store_1.useUserStore)((state) => state.isSignedIn);
|
|
92
|
+
if (typeof isAuthorized !== "undefined") {
|
|
93
|
+
if (!isAuthorized) {
|
|
94
|
+
return (0, jsx_runtime_1.jsx)(SignUpProtected, {});
|
|
95
|
+
}
|
|
96
|
+
return Component;
|
|
97
|
+
}
|
|
98
|
+
if (!isSignedIn) {
|
|
99
|
+
return (0, jsx_runtime_1.jsx)(SignUpProtected, {});
|
|
100
|
+
}
|
|
101
|
+
return Component;
|
|
102
|
+
};
|
|
103
|
+
exports.HOCSignUpInterceptor = HOCSignUpInterceptor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useApollo(pageProps?: any): import("@apollo/client").ApolloClient<import("@apollo/client").NormalizedCacheObject>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useApollo = useApollo;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const graphql_1 = require("../../api/graphql");
|
|
6
|
+
const api_1 = require("@ludo.ninja/api");
|
|
7
|
+
const env_1 = require("../../store/env");
|
|
8
|
+
const nookies_1 = require("nookies");
|
|
9
|
+
const ludoDomains_1 = require("@ludo.ninja/core/build/ludoDomains");
|
|
10
|
+
function useApollo(pageProps) {
|
|
11
|
+
const { NEXT_PUBLIC_ENV_VALUE, NEXT_PUBLIC_ENV_DOMAIN } = (0, env_1.useEnvStore)((state) => ({
|
|
12
|
+
NEXT_PUBLIC_ENV_VALUE: state.NEXT_PUBLIC_ENV_VALUE,
|
|
13
|
+
NEXT_PUBLIC_ENV_DOMAIN: state.NEXT_PUBLIC_ENV_DOMAIN,
|
|
14
|
+
}));
|
|
15
|
+
const state = pageProps?.[graphql_1.APOLLO_STATE_PROP_NAME] || null;
|
|
16
|
+
return (0, react_1.useMemo)(() => api_1.graphqlConfig.createErrorAuthInterceptor(api_1.graphqlConfig.initializeApollo(state, NEXT_PUBLIC_ENV_DOMAIN), () => {
|
|
17
|
+
api_1.authCookies.destroyCookies(NEXT_PUBLIC_ENV_DOMAIN);
|
|
18
|
+
(0, nookies_1.destroyCookie)(null, "authMultiversXWallet", {
|
|
19
|
+
path: "/",
|
|
20
|
+
domain: NEXT_PUBLIC_ENV_DOMAIN,
|
|
21
|
+
});
|
|
22
|
+
window.location.replace(`${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["welcome"]}?alertError=authServerError`);
|
|
23
|
+
}), [state]);
|
|
24
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const router_1 = require("next/router");
|
|
5
|
+
const media_1 = require("../../../store/media");
|
|
6
|
+
const useMultiAudio = () => {
|
|
7
|
+
const tracks = (0, media_1.useMediaStore)((state) => state.audioTracks);
|
|
8
|
+
const setTracks = (0, media_1.useMediaStore)((state) => state.setAudioTracks);
|
|
9
|
+
const router = (0, router_1.useRouter)();
|
|
10
|
+
(0, react_1.useEffect)(() => {
|
|
11
|
+
const ifExist = tracks.some((track) => {
|
|
12
|
+
return track.playing;
|
|
13
|
+
});
|
|
14
|
+
if (ifExist) {
|
|
15
|
+
const newTracks = [...tracks].map((track) => {
|
|
16
|
+
track.playing = false;
|
|
17
|
+
track.audio.currentTime = 0;
|
|
18
|
+
return track;
|
|
19
|
+
});
|
|
20
|
+
setTracks(newTracks);
|
|
21
|
+
}
|
|
22
|
+
}, [router]);
|
|
23
|
+
(0, react_1.useEffect)(() => {
|
|
24
|
+
tracks.map((track) => {
|
|
25
|
+
track.playing ? track.audio.play() : track.audio.pause();
|
|
26
|
+
});
|
|
27
|
+
}, [tracks]);
|
|
28
|
+
(0, react_1.useEffect)(() => {
|
|
29
|
+
tracks.forEach((source, i) => {
|
|
30
|
+
source.audio.addEventListener('ended', () => {
|
|
31
|
+
const newTracks = [...tracks];
|
|
32
|
+
newTracks[i].playing = false;
|
|
33
|
+
setTracks(newTracks);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
return () => {
|
|
37
|
+
tracks.forEach((source, i) => {
|
|
38
|
+
source.audio.removeEventListener('ended', () => {
|
|
39
|
+
const newTracks = [...tracks];
|
|
40
|
+
newTracks[i].playing = false;
|
|
41
|
+
setTracks(newTracks);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
46
|
+
};
|
|
47
|
+
exports.default = useMultiAudio;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const utils_1 = require("@ludo.ninja/utils");
|
|
5
|
+
const useExtension = () => {
|
|
6
|
+
const [isExtensionInstalled, setIsExtensionInstalled] = (0, react_1.useState)(false);
|
|
7
|
+
const pingExtension = (0, react_1.useCallback)(async () => {
|
|
8
|
+
try {
|
|
9
|
+
const response = (await (0, utils_1.sendEventToExtension)(utils_1.eventsTypes.pingVersion));
|
|
10
|
+
setIsExtensionInstalled(Boolean(response?.version));
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
setIsExtensionInstalled(false);
|
|
14
|
+
}
|
|
15
|
+
}, [setIsExtensionInstalled]);
|
|
16
|
+
(0, react_1.useEffect)(() => {
|
|
17
|
+
pingExtension();
|
|
18
|
+
}, []);
|
|
19
|
+
return {
|
|
20
|
+
isExtensionInstalled,
|
|
21
|
+
openExtension,
|
|
22
|
+
openExtensionChromeStorePage,
|
|
23
|
+
pingExtension,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
exports.default = useExtension;
|
|
27
|
+
const openExtension = () => {
|
|
28
|
+
(0, utils_1.sendEventToExtension)(utils_1.eventsTypes.openExtension);
|
|
29
|
+
};
|
|
30
|
+
const openExtensionChromeStorePage = () => {
|
|
31
|
+
window.open('https://chromewebstore.google.com/detail/ludo-x/fgcmebogmgdheonhhefnblfodobpmfip', '_blank');
|
|
32
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TCreation } from '../../../entities/creation/types';
|
|
2
|
+
import { TGallery } from '../../../entities/gallery/types';
|
|
3
|
+
import { IQueryFetchGalleryV2Args } from "@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema";
|
|
4
|
+
declare const useGetFavoriteGallaryCreations: ({ galleryId, itemsCount, }: {
|
|
5
|
+
galleryId: string;
|
|
6
|
+
itemsCount: number | null;
|
|
7
|
+
}) => {
|
|
8
|
+
gallery: TGallery[] | null;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
creationsList: TCreation[];
|
|
11
|
+
loadingAssets: boolean;
|
|
12
|
+
loadingGallery: boolean;
|
|
13
|
+
loadingCollections: boolean;
|
|
14
|
+
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
15
|
+
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
16
|
+
errorGallery: import("@apollo/client").ApolloError | undefined;
|
|
17
|
+
fetchError: boolean;
|
|
18
|
+
allResults: number | null;
|
|
19
|
+
refetchQueryGalleryCreation: ({ galleryId }: IQueryFetchGalleryV2Args) => Promise<void>;
|
|
20
|
+
loadMore: () => void;
|
|
21
|
+
};
|
|
22
|
+
export { useGetFavoriteGallaryCreations };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useGetFavoriteGallaryCreations = void 0;
|
|
4
|
+
const useGetUserFevoritesCreations_1 = require("../useGetUserFevoritesCreations");
|
|
5
|
+
const builder_1 = require("../../../entities/creation/builder");
|
|
6
|
+
const collectionCreationBuilder_1 = require("../../../entities/creation/collectionCreationBuilder");
|
|
7
|
+
const builder_2 = require("../../../entities/gallery/builder");
|
|
8
|
+
const types_1 = require("../../../entities/labelCreationType/types");
|
|
9
|
+
const ui_1 = require("../../../store/ui");
|
|
10
|
+
const client_1 = require("@apollo/client");
|
|
11
|
+
const api_1 = require("@ludo.ninja/api");
|
|
12
|
+
const schema_1 = require("@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema");
|
|
13
|
+
const schema_2 = require("@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema");
|
|
14
|
+
const react_1 = require("react");
|
|
15
|
+
const getErrorAlertProps_1 = require("../../../utils/getErrorAlertProps");
|
|
16
|
+
const useGetFavoriteGallaryCreations = ({ galleryId, itemsCount, }) => {
|
|
17
|
+
const [gallery, setGallery] = (0, react_1.useState)([]);
|
|
18
|
+
const [assets, setAssets] = (0, react_1.useState)(null);
|
|
19
|
+
const [collections, setCollections] = (0, react_1.useState)(null);
|
|
20
|
+
const [currentPage, setCurrentPage] = (0, react_1.useState)(1);
|
|
21
|
+
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
22
|
+
const [fetchError, setFetchError] = (0, react_1.useState)(false);
|
|
23
|
+
const [allResults, setAllResults] = (0, react_1.useState)(null);
|
|
24
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
25
|
+
const { error: galleryError, loading: galleryLoading, refetch, } = (0, client_1.useQuery)(schema_1.FetchGalleryV2Document, {
|
|
26
|
+
variables: { galleryId },
|
|
27
|
+
context: {
|
|
28
|
+
uri: api_1.hosts.galleriesHost,
|
|
29
|
+
},
|
|
30
|
+
notifyOnNetworkStatusChange: true,
|
|
31
|
+
fetchPolicy: "no-cache",
|
|
32
|
+
onCompleted: ({ fetchGalleryV2 }) => {
|
|
33
|
+
setGallery([(0, builder_2.buildGallery)(fetchGalleryV2)]);
|
|
34
|
+
setAllResults(fetchGalleryV2.items);
|
|
35
|
+
},
|
|
36
|
+
onError: () => {
|
|
37
|
+
setGallery(null);
|
|
38
|
+
setLoading(false);
|
|
39
|
+
setFetchError(true);
|
|
40
|
+
setAllResults(0);
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
const [fetchAssets, { loading: assetsLoading, error: assetsError }] = (0, client_1.useLazyQuery)(schema_2.FetchAssetsDocument, {
|
|
44
|
+
context: { uri: api_1.hosts.searchHost },
|
|
45
|
+
fetchPolicy: "no-cache",
|
|
46
|
+
onCompleted: ({ fetchAssets: data }) => {
|
|
47
|
+
setAssets((prevAssets) => [
|
|
48
|
+
...(prevAssets || []),
|
|
49
|
+
...data.map((asset) => (0, builder_1.buildCreation)({
|
|
50
|
+
...asset,
|
|
51
|
+
itemType: "asset",
|
|
52
|
+
itemId: asset.assetId,
|
|
53
|
+
})),
|
|
54
|
+
]);
|
|
55
|
+
},
|
|
56
|
+
onError: (err) => {
|
|
57
|
+
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
58
|
+
setAssets([]);
|
|
59
|
+
setFetchError(true);
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
const [fetchCollections, { loading: collectionsLoading, error: collectionsError }] = (0, client_1.useLazyQuery)(schema_2.FetchCollectionsByIdsDocument, {
|
|
63
|
+
context: { uri: api_1.hosts.searchHost },
|
|
64
|
+
fetchPolicy: "no-cache",
|
|
65
|
+
onCompleted: ({ fetchCollectionsByIds: data }) => {
|
|
66
|
+
setCollections((prevCollections) => [
|
|
67
|
+
...(prevCollections || []),
|
|
68
|
+
...data.map((collection) => (0, collectionCreationBuilder_1.buildCollectionCreation)(collection, types_1.LabelKeys.collection)),
|
|
69
|
+
]);
|
|
70
|
+
},
|
|
71
|
+
onError: (err) => {
|
|
72
|
+
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
73
|
+
setCollections([]);
|
|
74
|
+
setFetchError(true);
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
(0, react_1.useEffect)(() => {
|
|
78
|
+
if (gallery && gallery.length > 0) {
|
|
79
|
+
const { assetArray, collectionsArray } = (0, useGetUserFevoritesCreations_1.getMediaForGallery)(gallery, false, currentPage, itemsCount);
|
|
80
|
+
const assetPromise = assetArray.length > 0 ? fetchAssets({ variables: { assetIds: assetArray } }) : Promise.resolve();
|
|
81
|
+
const collectionsPromise = collectionsArray.length > 0
|
|
82
|
+
? fetchCollections({ variables: { collectionIds: collectionsArray } })
|
|
83
|
+
: Promise.resolve();
|
|
84
|
+
Promise.all([assetPromise, collectionsPromise])
|
|
85
|
+
.then(() => {
|
|
86
|
+
setLoading(false);
|
|
87
|
+
})
|
|
88
|
+
.catch(() => {
|
|
89
|
+
setLoading(false);
|
|
90
|
+
setFetchError(true);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}, [gallery, fetchAssets, fetchCollections, currentPage]);
|
|
94
|
+
async function refetchQueryGalleryCreation({ galleryId }) {
|
|
95
|
+
await refetch({ galleryId });
|
|
96
|
+
}
|
|
97
|
+
function loadMore() {
|
|
98
|
+
if (!gallery)
|
|
99
|
+
return;
|
|
100
|
+
else {
|
|
101
|
+
setLoading(true);
|
|
102
|
+
setCurrentPage((prevPage) => ++prevPage);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const creations = [...(assets || []), ...(collections || [])];
|
|
106
|
+
return {
|
|
107
|
+
gallery,
|
|
108
|
+
loading,
|
|
109
|
+
creationsList: creations,
|
|
110
|
+
loadingAssets: assetsLoading,
|
|
111
|
+
loadingGallery: galleryLoading,
|
|
112
|
+
loadingCollections: collectionsLoading,
|
|
113
|
+
errorAssets: assetsError,
|
|
114
|
+
errorCollections: collectionsError,
|
|
115
|
+
errorGallery: galleryError,
|
|
116
|
+
fetchError,
|
|
117
|
+
allResults,
|
|
118
|
+
refetchQueryGalleryCreation,
|
|
119
|
+
loadMore,
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
exports.useGetFavoriteGallaryCreations = useGetFavoriteGallaryCreations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TCreation } from '../../../entities/creation/types';
|
|
2
|
+
import { TGallery } from '../../../entities/gallery/types';
|
|
3
|
+
import { IQueryFetchUserFavoritesV2Args } from "@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema";
|
|
4
|
+
declare const useGetUserFevoritesCreations: ({ userId, pageSize, pageToken }: IQueryFetchUserFavoritesV2Args) => {
|
|
5
|
+
favorites: TGallery[];
|
|
6
|
+
assets: TCreation[] | null;
|
|
7
|
+
collections: TCreation[] | null;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
loadingAssets: boolean;
|
|
10
|
+
loadingFavorites: boolean;
|
|
11
|
+
loadingCollections: boolean;
|
|
12
|
+
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
13
|
+
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
14
|
+
errorFavorites: import("@apollo/client").ApolloError | undefined;
|
|
15
|
+
refetchQueryFavoritesList: () => Promise<void>;
|
|
16
|
+
loadMoreFavoritesList: () => Promise<void>;
|
|
17
|
+
isNextLoading: boolean;
|
|
18
|
+
};
|
|
19
|
+
export { useGetUserFevoritesCreations };
|
|
20
|
+
export declare function getMediaForGallery(favorites: TGallery[], takeFirstFour: boolean, pageNumber?: number, totalLength?: number | null): {
|
|
21
|
+
assetArray: unknown[];
|
|
22
|
+
collectionsArray: unknown[];
|
|
23
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useGetUserFevoritesCreations = void 0;
|
|
4
|
+
exports.getMediaForGallery = getMediaForGallery;
|
|
5
|
+
const builder_1 = require("../../../entities/creation/builder");
|
|
6
|
+
const collectionCreationBuilder_1 = require("../../../entities/creation/collectionCreationBuilder");
|
|
7
|
+
const builder_2 = require("../../../entities/gallery/builder");
|
|
8
|
+
const ui_1 = require("../../../store/ui");
|
|
9
|
+
const client_1 = require("@apollo/client");
|
|
10
|
+
const api_1 = require("@ludo.ninja/api");
|
|
11
|
+
const schema_1 = require("@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema");
|
|
12
|
+
const schema_2 = require("@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema");
|
|
13
|
+
const react_1 = require("react");
|
|
14
|
+
const getErrorAlertProps_1 = require("../../../utils/getErrorAlertProps");
|
|
15
|
+
const maxUserFavoritesLength = 1000;
|
|
16
|
+
const useGetUserFevoritesCreations = ({ userId, pageSize, pageToken }) => {
|
|
17
|
+
const [assets, setAsset] = (0, react_1.useState)(null);
|
|
18
|
+
const [collections, setCollections] = (0, react_1.useState)(null);
|
|
19
|
+
const [favorites, setFavorites] = (0, react_1.useState)([]);
|
|
20
|
+
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
21
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
22
|
+
const nextPageToken = (0, react_1.useRef)(null);
|
|
23
|
+
const [isNextLoading, setIsNextLoading] = (0, react_1.useState)(false); // todo: after update api , get isNextPage from results
|
|
24
|
+
// const isHaveNextPage = favorites.length < results;
|
|
25
|
+
const isHaveNextPage = !!nextPageToken.current;
|
|
26
|
+
const { loading: favoritesLoading, error: favoritesError, refetch, fetchMore, } = (0, client_1.useQuery)(schema_1.FetchUserFavoritesV2Document, {
|
|
27
|
+
context: { uri: api_1.hosts.galleriesHost }, //todo : update variables to object page
|
|
28
|
+
variables: { pageSize, userId, pageToken },
|
|
29
|
+
fetchPolicy: "no-cache",
|
|
30
|
+
onCompleted: ({ fetchUserFavoritesV2: { galleries, nextPageToken: token } }) => {
|
|
31
|
+
// nextPageToken.current = nextPage.nextPage?.token || null;
|
|
32
|
+
nextPageToken.current = token || null;
|
|
33
|
+
setFavorites(galleries.map((gallery) => (0, builder_2.buildGallery)(gallery)));
|
|
34
|
+
setLoading(false);
|
|
35
|
+
},
|
|
36
|
+
onError: (err) => {
|
|
37
|
+
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
38
|
+
setFavorites([]);
|
|
39
|
+
setLoading(false);
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
const [fetchAssets, { loading: assetsLoading, error: assetsError }] = (0, client_1.useLazyQuery)(schema_2.FetchAssetsDocument, {
|
|
43
|
+
context: { uri: api_1.hosts.searchHost },
|
|
44
|
+
fetchPolicy: "no-cache",
|
|
45
|
+
onCompleted: ({ fetchAssets: data }) => {
|
|
46
|
+
setAsset(data.map((asset) => (0, builder_1.buildCreation)({
|
|
47
|
+
...asset,
|
|
48
|
+
itemType: "asset",
|
|
49
|
+
itemId: asset.assetId,
|
|
50
|
+
})));
|
|
51
|
+
setLoading(false);
|
|
52
|
+
},
|
|
53
|
+
onError: (err) => {
|
|
54
|
+
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
55
|
+
setAsset(null);
|
|
56
|
+
setLoading(false);
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
const [fetchCollections, { loading: collectionsLoading, error: collectionsError }] = (0, client_1.useLazyQuery)(schema_2.FetchCollectionsByIdsDocument, {
|
|
60
|
+
context: { uri: api_1.hosts.searchHost },
|
|
61
|
+
fetchPolicy: "no-cache",
|
|
62
|
+
onCompleted: ({ fetchCollectionsByIds: data }) => {
|
|
63
|
+
setCollections(data.map((collection) => (0, collectionCreationBuilder_1.buildCollectionCreation)(collection)));
|
|
64
|
+
setLoading(false);
|
|
65
|
+
},
|
|
66
|
+
onError: (err) => {
|
|
67
|
+
openAlert((0, getErrorAlertProps_1.getErrorAlertProps)(err));
|
|
68
|
+
setCollections(null);
|
|
69
|
+
setLoading(false);
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
(0, react_1.useEffect)(() => {
|
|
73
|
+
if (favorites.length > 0) {
|
|
74
|
+
const { assetArray, collectionsArray } = getMediaForGallery(favorites, true);
|
|
75
|
+
if (assetArray.length > 0) {
|
|
76
|
+
fetchAssets({ variables: { assetIds: assetArray } });
|
|
77
|
+
}
|
|
78
|
+
if (collectionsArray.length > 0) {
|
|
79
|
+
fetchCollections({ variables: { collectionIds: collectionsArray } });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}, [favorites, fetchAssets, fetchCollections]);
|
|
83
|
+
async function refetchQueryFavoritesList() {
|
|
84
|
+
await refetch();
|
|
85
|
+
}
|
|
86
|
+
async function loadMoreFavoritesList() {
|
|
87
|
+
if (!nextPageToken.current || !isHaveNextPage || favorites.length >= maxUserFavoritesLength)
|
|
88
|
+
return;
|
|
89
|
+
setIsNextLoading(true);
|
|
90
|
+
try {
|
|
91
|
+
await fetchMore({
|
|
92
|
+
variables: { pageToken: nextPageToken.current },
|
|
93
|
+
updateQuery: (prev, { fetchMoreResult }) => {
|
|
94
|
+
if (!fetchMoreResult)
|
|
95
|
+
return prev;
|
|
96
|
+
const { nextPageToken: token, favorites: nextFavorites } = fetchMoreResult.fetchMyFavoritesV2;
|
|
97
|
+
nextPageToken.current = token || null;
|
|
98
|
+
if (prev !== null && prev.hasOwnProperty("fetchMyFavoritesV2")) {
|
|
99
|
+
const { favorites: prevFavorites } = prev.fetchMyFavoritesV2;
|
|
100
|
+
return {
|
|
101
|
+
fetchMyFavorites: {
|
|
102
|
+
favorites: [...prevFavorites, ...nextFavorites],
|
|
103
|
+
nextPageToken: token,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
return {
|
|
109
|
+
fetchMyFavorites: {
|
|
110
|
+
favorites: nextFavorites,
|
|
111
|
+
nextPageToken: token,
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
catch (e) {
|
|
119
|
+
//====
|
|
120
|
+
}
|
|
121
|
+
finally {
|
|
122
|
+
setIsNextLoading(false);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
favorites,
|
|
127
|
+
assets,
|
|
128
|
+
collections,
|
|
129
|
+
loading,
|
|
130
|
+
loadingAssets: assetsLoading,
|
|
131
|
+
loadingFavorites: favoritesLoading,
|
|
132
|
+
loadingCollections: collectionsLoading,
|
|
133
|
+
errorAssets: assetsError,
|
|
134
|
+
errorCollections: collectionsError,
|
|
135
|
+
errorFavorites: favoritesError,
|
|
136
|
+
refetchQueryFavoritesList,
|
|
137
|
+
loadMoreFavoritesList,
|
|
138
|
+
isNextLoading,
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
exports.useGetUserFevoritesCreations = useGetUserFevoritesCreations;
|
|
142
|
+
function getMediaForGallery(favorites, takeFirstFour, pageNumber = 1, totalLength) {
|
|
143
|
+
if (favorites.length === 0)
|
|
144
|
+
return { assetArray: [], collectionsArray: [] };
|
|
145
|
+
const itemsPerPage = 40;
|
|
146
|
+
const assetArray = [];
|
|
147
|
+
const collectionsArray = [];
|
|
148
|
+
favorites.forEach((fav) => {
|
|
149
|
+
const creationIds = takeFirstFour ? fav.creationIds.slice(0, 4) : fav.creationIds;
|
|
150
|
+
if (!creationIds || creationIds.length === 0)
|
|
151
|
+
return;
|
|
152
|
+
const startIndex = (pageNumber - 1) * itemsPerPage;
|
|
153
|
+
const endIndex = totalLength ? totalLength : startIndex + itemsPerPage;
|
|
154
|
+
for (let i = startIndex; i < endIndex && i < creationIds.length; i++) {
|
|
155
|
+
if (creationIds[i].split(".")[0] === "asset") {
|
|
156
|
+
const assetId = creationIds[i].split(".").splice(1, creationIds[i].length).join(".");
|
|
157
|
+
assetArray.push(assetId);
|
|
158
|
+
}
|
|
159
|
+
else if (creationIds[i].split(".")[0] === "collection") {
|
|
160
|
+
const collectionId = creationIds[i].split(".").splice(1, creationIds[i].length).join(".");
|
|
161
|
+
collectionsArray.push(collectionId);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
return { assetArray, collectionsArray };
|
|
166
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TCreation } from '../../../entities/creation/types';
|
|
2
|
+
import { TGallery } from '../../../entities/gallery/types';
|
|
3
|
+
import { IQueryFetchUserGalleriesV2Args } from "@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema";
|
|
4
|
+
declare const useGetUserGalleriesCreations: ({ userId, pageSize, pageToken }: IQueryFetchUserGalleriesV2Args) => {
|
|
5
|
+
galleries: TGallery[];
|
|
6
|
+
assets: TCreation[] | null;
|
|
7
|
+
collections: TCreation[] | null;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
loadingAssets: boolean;
|
|
10
|
+
loadingFavorites: boolean;
|
|
11
|
+
loadingCollections: boolean;
|
|
12
|
+
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
13
|
+
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
14
|
+
errorGalleries: import("@apollo/client").ApolloError | undefined;
|
|
15
|
+
refetchQueryGalleriesList: () => Promise<void>;
|
|
16
|
+
loadMoreGalleriesList: () => Promise<void>;
|
|
17
|
+
isNextLoading: boolean;
|
|
18
|
+
};
|
|
19
|
+
export { useGetUserGalleriesCreations };
|
|
20
|
+
export declare function getMediaForGallery(favorites: TGallery[], takeFirstFour: boolean): {
|
|
21
|
+
assetArray: unknown[];
|
|
22
|
+
collectionsArray: unknown[];
|
|
23
|
+
};
|