@ludo.ninja/components 2.3.4 → 2.3.6
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/package.json +1 -1
- package/build/api/graphql/index.d.ts +0 -4
- package/build/api/graphql/index.js +0 -11
- package/build/api/server-assets/mutations/useDislikeAsset/index.d.ts +0 -7
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +0 -32
- package/build/api/server-assets/mutations/useLikeAsset/index.d.ts +0 -7
- package/build/api/server-assets/mutations/useLikeAsset/index.js +0 -33
- package/build/api/server-assets/queries/useFetchAssets/index.d.ts +0 -7
- package/build/api/server-assets/queries/useFetchAssets/index.js +0 -31
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.d.ts +0 -8
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +0 -35
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.d.ts +0 -7
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +0 -30
- package/build/api/server-collection/mutations/useDislikeCollection/index.d.ts +0 -7
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +0 -31
- package/build/api/server-collection/mutations/useLikeCollection/index.d.ts +0 -7
- package/build/api/server-collection/mutations/useLikeCollection/index.js +0 -31
- package/build/api/server-experiences/queries/useFetchMyActivityStreak/index.d.ts +0 -2
- package/build/api/server-experiences/queries/useFetchMyActivityStreak/index.js +0 -55
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.d.ts +0 -2
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +0 -51
- package/build/api/server-experiences/queries/useFetchMyTasks/index.d.ts +0 -31
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +0 -49
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.d.ts +0 -7
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +0 -36
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.d.ts +0 -4
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +0 -30
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.d.ts +0 -7
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +0 -35
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.d.ts +0 -7
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +0 -43
- package/build/api/server-galleries/mutations/useCreateFavorites/index.d.ts +0 -6
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +0 -25
- package/build/api/server-galleries/mutations/useCreateGallery/index.d.ts +0 -6
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +0 -25
- package/build/api/server-galleries/mutations/useDeleteGallery/index.d.ts +0 -8
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +0 -42
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.d.ts +0 -5
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +0 -39
- package/build/api/server-galleries/mutations/useEditGallery/index.d.ts +0 -5
- package/build/api/server-galleries/mutations/useEditGallery/index.js +0 -23
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.d.ts +0 -7
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +0 -49
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.d.ts +0 -7
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +0 -44
- package/build/api/server-galleries/queries/useFetchGallery/index.d.ts +0 -16
- package/build/api/server-galleries/queries/useFetchGallery/index.js +0 -43
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.d.ts +0 -18
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +0 -86
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.d.ts +0 -10
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +0 -67
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +0 -10
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +0 -69
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.d.ts +0 -9
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +0 -69
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.d.ts +0 -11
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +0 -65
- package/build/api/server-identities/mutations/useAddWalletElrond/index.d.ts +0 -6
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +0 -35
- package/build/api/server-identities/mutations/useAddWalletFlow/index.d.ts +0 -5
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +0 -35
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.d.ts +0 -12
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +0 -39
- package/build/api/server-identities/mutations/useAddWalletSolana/index.d.ts +0 -5
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +0 -35
- package/build/api/server-identities/mutations/useAddWalletTezos/index.d.ts +0 -5
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +0 -35
- package/build/api/server-identities/mutations/useAddWalletTon/index.d.ts +0 -6
- package/build/api/server-identities/mutations/useAddWalletTon/index.js +0 -35
- package/build/api/server-identities/mutations/useFollowProfile/index.d.ts +0 -7
- package/build/api/server-identities/mutations/useFollowProfile/index.js +0 -40
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.d.ts +0 -7
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +0 -31
- package/build/api/server-identities/mutations/useInviteCode/index.d.ts +0 -7
- package/build/api/server-identities/mutations/useInviteCode/index.js +0 -34
- package/build/api/server-identities/mutations/useRemoveWallet/index.d.ts +0 -6
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +0 -37
- package/build/api/server-identities/mutations/useRevokeToken/index.d.ts +0 -4
- package/build/api/server-identities/mutations/useRevokeToken/index.js +0 -21
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.d.ts +0 -7
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +0 -34
- package/build/api/server-identities/mutations/useUnfollowProfile/index.d.ts +0 -7
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +0 -39
- package/build/api/server-identities/queries/useFetchProfile/index.d.ts +0 -16
- package/build/api/server-identities/queries/useFetchProfile/index.js +0 -83
- package/build/api/server-identities/queries/useFetchUserWallets/index.d.ts +0 -10
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +0 -24
- package/build/api/server-medias/mutations/useDeleteUserpic/index.d.ts +0 -6
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +0 -20
- package/build/api/server-medias/mutations/useUploadUserpic/index.d.ts +0 -4
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +0 -27
- package/build/api/server-medias/queries/useFetchUserPic/index.d.ts +0 -12
- package/build/api/server-medias/queries/useFetchUserPic/index.js +0 -39
- package/build/api/server-opportunities/mutations/useCopyOpportunityShareLink/index.d.ts +0 -5
- package/build/api/server-opportunities/mutations/useCopyOpportunityShareLink/index.js +0 -28
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.d.ts +0 -4
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +0 -29
- package/build/api/server-opportunities/mutations/useLikeOpportunity.d.ts +0 -4
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +0 -29
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.d.ts +0 -5
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +0 -28
- package/build/api/server-opportunities/queries/useGetOpportunities.d.ts +0 -4
- package/build/api/server-opportunities/queries/useGetOpportunities.js +0 -41
- package/build/api/server-preferences/mutations/useSaveUserExpectations/index.d.ts +0 -4
- package/build/api/server-preferences/mutations/useSaveUserExpectations/index.js +0 -43
- package/build/api/server-preferences/mutations/useSaveUserInterests/index.d.ts +0 -4
- package/build/api/server-preferences/mutations/useSaveUserInterests/index.js +0 -43
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.d.ts +0 -28
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +0 -33
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.d.ts +0 -13
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +0 -37
- package/build/api/server-preferences/queries/useFetchExpectations/index.d.ts +0 -7
- package/build/api/server-preferences/queries/useFetchExpectations/index.js +0 -20
- package/build/api/server-preferences/queries/useFetchInterests/index.d.ts +0 -7
- package/build/api/server-preferences/queries/useFetchInterests/index.js +0 -20
- package/build/api/server-preferences/queries/useFetchSearchResultTimeSelection/index.d.ts +0 -12
- package/build/api/server-preferences/queries/useFetchSearchResultTimeSelection/index.js +0 -40
- package/build/api/server-preferences/queries/useFetchUserInterests/index.d.ts +0 -7
- package/build/api/server-preferences/queries/useFetchUserInterests/index.js +0 -21
- package/build/api/server-preferences/queries/useSearchResultBlockchainSelections/index.d.ts +0 -13
- package/build/api/server-preferences/queries/useSearchResultBlockchainSelections/index.js +0 -41
- package/build/api/server-preferences/queries/useSearchResultCategorySelections/index.d.ts +0 -13
- package/build/api/server-preferences/queries/useSearchResultCategorySelections/index.js +0 -40
- package/build/api/server-preferences/queries/useSearchResultStatusSelections/index.d.ts +0 -14
- package/build/api/server-preferences/queries/useSearchResultStatusSelections/index.js +0 -41
- package/build/api/server-preferences/queries/useSearchResultTypeSelections/index.d.ts +0 -13
- package/build/api/server-preferences/queries/useSearchResultTypeSelections/index.js +0 -48
- package/build/api/server-search/queries/useFetchAllCreations/index.d.ts +0 -32
- package/build/api/server-search/queries/useFetchAllCreations/index.js +0 -91
- package/build/api/server-search/queries/useFetchAssetsCount/index.d.ts +0 -7
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +0 -33
- package/build/api/server-search/queries/useFetchCollections/index.d.ts +0 -23
- package/build/api/server-search/queries/useFetchCollections/index.js +0 -99
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +0 -13
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +0 -123
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +0 -47
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +0 -56
- package/build/api/server-search/queries/useFetchLudoNftsTonPage/index.d.ts +0 -15
- package/build/api/server-search/queries/useFetchLudoNftsTonPage/index.js +0 -105
- package/build/api/server-search/queries/useFetchNetWorth/index.d.ts +0 -7
- package/build/api/server-search/queries/useFetchNetWorth/index.js +0 -23
- package/build/api/server-search/queries/useFindCreations/index.d.ts +0 -34
- package/build/api/server-search/queries/useFindCreations/index.js +0 -104
- package/build/api/server-search/queries/useFindProfilesByName/index.d.ts +0 -32
- package/build/api/server-search/queries/useFindProfilesByName/index.js +0 -59
- package/build/api/server-search/queries/useFindShowcaseItems/index.d.ts +0 -2
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +0 -42
- package/build/api/server-search/queries/useFindUserCreations/index.d.ts +0 -16
- package/build/api/server-search/queries/useFindUserCreations/index.js +0 -95
- package/build/api/server-search/queries/useFindUserLudoCreations/index.d.ts +0 -15
- package/build/api/server-search/queries/useFindUserLudoCreations/index.js +0 -93
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.d.ts +0 -2
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +0 -40
- package/build/api/subscriptions/SubscriberInviteNotification.d.ts +0 -1
- package/build/api/subscriptions/SubscriberInviteNotification.js +0 -53
- package/build/api/subscriptions/SubscriberNotifications.d.ts +0 -1
- package/build/api/subscriptions/SubscriberNotifications.js +0 -29
- package/build/api/subscriptions/SubscriberOpportunityNotification.d.ts +0 -1
- package/build/api/subscriptions/SubscriberOpportunityNotification.js +0 -75
- package/build/api/subscriptions/SubscriptionNotificationSPA.d.ts +0 -11
- package/build/api/subscriptions/SubscriptionNotificationSPA.js +0 -142
- package/build/api/subscriptions/noContent.d.ts +0 -1
- package/build/api/subscriptions/noContent.js +0 -6
- package/build/components/Page404/Page404SPA.d.ts +0 -3
- package/build/components/Page404/Page404SPA.js +0 -67
- package/build/components/Page404/index.d.ts +0 -2
- package/build/components/Page404/index.js +0 -27
- 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/Meta/index.d.ts +0 -2
- package/build/components/base/Meta/index.js +0 -24
- package/build/components/base/NoSSR/index.d.ts +0 -5
- package/build/components/base/NoSSR/index.js +0 -11
- package/build/components/base/PageHead/index.d.ts +0 -8
- package/build/components/base/PageHead/index.js +0 -13
- package/build/components/base/UserStreak/index.d.ts +0 -7
- package/build/components/base/UserStreak/index.js +0 -161
- 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/components/MobileToggle/index.d.ts +0 -0
- package/build/components/headers/components/MobileToggle/index.js +0 -1
- package/build/components/headers/components/headerExperienceLabel/index.d.ts +0 -4
- package/build/components/headers/components/headerExperienceLabel/index.js +0 -34
- package/build/components/headers/components/headerStreak/index.d.ts +0 -6
- package/build/components/headers/components/headerStreak/index.js +0 -21
- package/build/components/headers/components/headerUserPic/index.d.ts +0 -4
- package/build/components/headers/components/headerUserPic/index.js +0 -29
- package/build/components/headers/header/index.d.ts +0 -2
- package/build/components/headers/header/index.js +0 -36
- package/build/components/headers/headerSearch/index.d.ts +0 -5
- package/build/components/headers/headerSearch/index.js +0 -42
- 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/profile/profileSkeleton/index.d.ts +0 -4
- package/build/components/profile/profileSkeleton/index.js +0 -75
- package/build/components/search/SearchInputContainer.d.ts +0 -26
- package/build/components/search/SearchInputContainer.js +0 -237
- package/build/components/search/searchCloseMoreButtons/index.d.ts +0 -14
- package/build/components/search/searchCloseMoreButtons/index.js +0 -64
- package/build/components/search/searchSimpleInput/index.d.ts +0 -4
- package/build/components/search/searchSimpleInput/index.js +0 -139
- package/build/components/search/searchSuggestions/index.d.ts +0 -14
- package/build/components/search/searchSuggestions/index.js +0 -112
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.d.ts +0 -7
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +0 -45
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +0 -2
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +0 -52
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.d.ts +0 -12
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +0 -128
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +0 -3
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +0 -116
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +0 -4
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +0 -46
- 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 -133
- 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 -132
- package/build/components/toTopBtn/index.d.ts +0 -5
- package/build/components/toTopBtn/index.js +0 -95
- 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/Theme/interface.d.ts +0 -2
- package/build/dto/Theme/interface.js +0 -5
- 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/builder.d.ts +0 -3
- package/build/entities/asset/builder.js +0 -67
- package/build/entities/asset/getAssetMediasOpengraph.d.ts +0 -5
- package/build/entities/asset/getAssetMediasOpengraph.js +0 -39
- package/build/entities/asset/getAssetMiniatureUrl.d.ts +0 -7
- package/build/entities/asset/getAssetMiniatureUrl.js +0 -31
- package/build/entities/asset/types.d.ts +0 -37
- package/build/entities/asset/types.js +0 -2
- 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/entities/creation/CreationMediaView.d.ts +0 -6
- package/build/entities/creation/CreationMediaView.js +0 -81
- package/build/entities/creation/builder.d.ts +0 -3
- package/build/entities/creation/builder.js +0 -63
- package/build/entities/creation/collectionCreationBuilder.d.ts +0 -3
- package/build/entities/creation/collectionCreationBuilder.js +0 -26
- package/build/entities/creation/types.d.ts +0 -23
- package/build/entities/creation/types.js +0 -2
- package/build/entities/gallery/builder.d.ts +0 -3
- package/build/entities/gallery/builder.js +0 -35
- package/build/entities/gallery/types.d.ts +0 -18
- package/build/entities/gallery/types.js +0 -2
- package/build/entities/labelCreationType/data.d.ts +0 -3
- package/build/entities/labelCreationType/data.js +0 -41
- package/build/entities/labelCreationType/types.d.ts +0 -49
- package/build/entities/labelCreationType/types.js +0 -46
- package/build/entities/media/builder.d.ts +0 -11
- package/build/entities/media/builder.js +0 -29
- package/build/entities/media/getMediaVariant.d.ts +0 -4
- package/build/entities/media/getMediaVariant.js +0 -44
- package/build/entities/media/types.d.ts +0 -17
- package/build/entities/media/types.js +0 -12
- package/build/entities/media/urls.d.ts +0 -31
- package/build/entities/media/urls.js +0 -125
- package/build/entities/user/type.d.ts +0 -5
- package/build/entities/user/type.js +0 -2
- package/build/fonts/FontsInitializeLayout.d.ts +0 -12
- package/build/fonts/FontsInitializeLayout.js +0 -164
- package/build/fonts/vars.d.ts +0 -1
- package/build/fonts/vars.js +0 -6
- 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 -128
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +0 -23
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +0 -175
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +0 -23
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +0 -164
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +0 -29
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +0 -151
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.d.ts +0 -15
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +0 -125
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +0 -14
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +0 -128
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +0 -17
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +0 -134
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.d.ts +0 -16
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +0 -151
- 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 -110
- 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 -97
- package/build/index.d.ts +0 -0
- package/build/index.js +0 -1
- 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 -213
- package/build/modules/gallery/api/useGetFavoriteGallery.d.ts +0 -6
- package/build/modules/gallery/api/useGetFavoriteGallery.js +0 -40
- 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 -160
- package/build/modules/gallery/ui/createGalleryForm/index.d.ts +0 -12
- package/build/modules/gallery/ui/createGalleryForm/index.js +0 -140
- package/build/modules/gallery/ui/editGalleryForm/index.d.ts +0 -8
- package/build/modules/gallery/ui/editGalleryForm/index.js +0 -192
- 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 -41
- package/build/modules/notifications/index.d.ts +0 -17
- package/build/modules/notifications/index.js +0 -7
- package/build/modules/opportunity/OpportunityCard.d.ts +0 -5
- package/build/modules/opportunity/OpportunityCard.js +0 -261
- 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/index.d.ts +0 -14
- package/build/modules/sessionScroll/index.js +0 -62
- package/build/modules/sessionScroll/type.d.ts +0 -7
- package/build/modules/sessionScroll/type.js +0 -2
- 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 -69
- package/build/modules/user/store.d.ts +0 -42
- package/build/modules/user/store.js +0 -97
- 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/env/index.d.ts +0 -17
- package/build/store/env/index.js +0 -33
- package/build/store/index.d.ts +0 -9
- package/build/store/index.js +0 -12
- 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/store/ui/index.d.ts +0 -2
- package/build/store/ui/index.js +0 -116
- package/build/store/ui/types.d.ts +0 -34
- package/build/store/ui/types.js +0 -2
- package/build/store/ui/utils.d.ts +0 -7
- package/build/store/ui/utils.js +0 -25
- package/build/styles/ScreenWidth.d.ts +0 -22
- package/build/styles/ScreenWidth.js +0 -26
- package/build/styles/animations/index.d.ts +0 -2
- package/build/styles/animations/index.js +0 -20
- package/build/styles/colors/index.d.ts +0 -1
- package/build/styles/colors/index.js +0 -38
- package/build/styles/globalStyles.d.ts +0 -2
- package/build/styles/globalStyles.js +0 -86
- package/build/styles/mixins/boxShadow.d.ts +0 -2
- package/build/styles/mixins/boxShadow.js +0 -13
- package/build/styles/mixins/boxTransform.d.ts +0 -2
- package/build/styles/mixins/boxTransform.js +0 -12
- package/build/styles/mixins/z-indexes.d.ts +0 -10
- package/build/styles/mixins/z-indexes.js +0 -13
- package/build/styles/typography/index.d.ts +0 -1
- package/build/styles/typography/index.js +0 -13
- 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/Alert/type.d.ts +0 -2
- package/build/system/Alert/type.js +0 -8
- package/build/system/Badge/index.d.ts +0 -10
- package/build/system/Badge/index.js +0 -15
- 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/DropDown/index.d.ts +0 -8
- package/build/system/DropDown/index.js +0 -65
- package/build/system/Filters/helpers.d.ts +0 -6
- package/build/system/Filters/helpers.js +0 -8
- 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/Checkbox/Checkbox.test.d.ts +0 -1
- package/build/system/Forms/Checkbox/Checkbox.test.js +0 -76
- package/build/system/Forms/Checkbox/index.d.ts +0 -23
- package/build/system/Forms/Checkbox/index.js +0 -65
- 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/Forms/ErrorLabel/ErrorLabel.test.d.ts +0 -1
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +0 -28
- package/build/system/Forms/ErrorLabel/index.d.ts +0 -7
- package/build/system/Forms/ErrorLabel/index.js +0 -25
- package/build/system/Forms/Input/Input.test.d.ts +0 -1
- package/build/system/Forms/Input/Input.test.js +0 -54
- package/build/system/Forms/Input/index.d.ts +0 -16
- package/build/system/Forms/Input/index.js +0 -72
- package/build/system/Forms/Input/type.d.ts +0 -5
- package/build/system/Forms/Input/type.js +0 -2
- package/build/system/Forms/Messages/index.d.ts +0 -67
- package/build/system/Forms/Messages/index.js +0 -69
- package/build/system/Forms/RadioInput/RadioInput.test.d.ts +0 -1
- package/build/system/Forms/RadioInput/RadioInput.test.js +0 -62
- package/build/system/Forms/RadioInput/index.d.ts +0 -12
- package/build/system/Forms/RadioInput/index.js +0 -73
- package/build/system/Forms/Selects/DesktopSelect/index.d.ts +0 -12
- package/build/system/Forms/Selects/DesktopSelect/index.js +0 -180
- package/build/system/Forms/Selects/DesktopSelect/type.d.ts +0 -5
- package/build/system/Forms/Selects/DesktopSelect/type.js +0 -2
- package/build/system/Forms/Selects/MobileSelect/index.d.ts +0 -14
- package/build/system/Forms/Selects/MobileSelect/index.js +0 -31
- package/build/system/Forms/TextArea/TextArea.test.d.ts +0 -1
- package/build/system/Forms/TextArea/TextArea.test.js +0 -54
- package/build/system/Forms/TextArea/index.d.ts +0 -14
- package/build/system/Forms/TextArea/index.js +0 -70
- package/build/system/Forms/index.d.ts +0 -5
- package/build/system/Forms/index.js +0 -14
- package/build/system/Img/ExternalImage/index.d.ts +0 -6
- package/build/system/Img/ExternalImage/index.js +0 -22
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.d.ts +0 -1
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +0 -46
- package/build/system/Img/ImageInterceptor/index.d.ts +0 -17
- package/build/system/Img/ImageInterceptor/index.js +0 -61
- package/build/system/Img/Profilepic/index.d.ts +0 -10
- package/build/system/Img/Profilepic/index.js +0 -34
- package/build/system/Img/Userpic/UserPic.test.d.ts +0 -2
- package/build/system/Img/Userpic/UserPic.test.js +0 -68
- package/build/system/Img/Userpic/UserPicSpa.d.ts +0 -11
- package/build/system/Img/Userpic/UserPicSpa.js +0 -81
- package/build/system/Img/Userpic/index.d.ts +0 -9
- package/build/system/Img/Userpic/index.js +0 -86
- package/build/system/Img/index.d.ts +0 -3
- package/build/system/Img/index.js +0 -19
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.d.ts +0 -1
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +0 -52
- package/build/system/Labels/ExperienceLabel/index.d.ts +0 -6
- package/build/system/Labels/ExperienceLabel/index.js +0 -98
- 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/Labels/SkeletonLabel/index.d.ts +0 -2
- package/build/system/Labels/SkeletonLabel/index.js +0 -7
- 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/system/theme.d.ts +0 -1
- package/build/system/theme.js +0 -7
- package/build/utils/3d.d.ts +0 -5
- package/build/utils/3d.js +0 -44
- package/build/utils/adaptive/check4k.d.ts +0 -5
- package/build/utils/adaptive/check4k.js +0 -16
- package/build/utils/adaptive/scale.d.ts +0 -9
- package/build/utils/adaptive/scale.js +0 -18
- package/build/utils/auth/index.d.ts +0 -1
- package/build/utils/auth/index.js +0 -12
- package/build/utils/copyBtn/index.d.ts +0 -5
- package/build/utils/copyBtn/index.js +0 -46
- package/build/utils/env/index.d.ts +0 -1
- package/build/utils/env/index.js +0 -5
- 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/getPageSizeAssets.d.ts +0 -5
- package/build/utils/getPageSizeAssets.js +0 -17
- 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/screen/index.d.ts +0 -18
- package/build/utils/screen/index.js +0 -86
- package/build/utils/seacrhTabs.d.ts +0 -4
- package/build/utils/seacrhTabs.js +0 -17
- package/build/utils/ssrFunctions/index.d.ts +0 -17
- package/build/utils/ssrFunctions/index.js +0 -33
- package/build/utils/ui/index.d.ts +0 -8
- package/build/utils/ui/index.js +0 -6
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { TCreation } from '../../../../entities/creation/types';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from "@apollo/client";
|
|
3
|
-
import { searchSchema as schema } from "@ludo.ninja/api";
|
|
4
|
-
export declare const prefetchFindCreations: ({ term, input, page }: schema.IQueryFindCreationsArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
5
|
-
data: {
|
|
6
|
-
findCreations: null;
|
|
7
|
-
};
|
|
8
|
-
}>;
|
|
9
|
-
export declare const useFindCreations: ({ term, input, page }: schema.IQueryFindCreationsArgs) => {
|
|
10
|
-
loadMore: (pageToken: string | null) => Promise<void>;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
error: import("@apollo/client").ApolloError | undefined;
|
|
13
|
-
results: number;
|
|
14
|
-
creations: TCreation[];
|
|
15
|
-
nextPageToken: string | null;
|
|
16
|
-
refetchQuery: () => Promise<void>;
|
|
17
|
-
};
|
|
18
|
-
declare const _default: {
|
|
19
|
-
useFindCreations: ({ term, input, page }: schema.IQueryFindCreationsArgs) => {
|
|
20
|
-
loadMore: (pageToken: string | null) => Promise<void>;
|
|
21
|
-
loading: boolean;
|
|
22
|
-
error: import("@apollo/client").ApolloError | undefined;
|
|
23
|
-
results: number;
|
|
24
|
-
creations: TCreation[];
|
|
25
|
-
nextPageToken: string | null;
|
|
26
|
-
refetchQuery: () => Promise<void>;
|
|
27
|
-
};
|
|
28
|
-
prefetchFindCreations: ({ term, input, page }: schema.IQueryFindCreationsArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
29
|
-
data: {
|
|
30
|
-
findCreations: null;
|
|
31
|
-
};
|
|
32
|
-
}>;
|
|
33
|
-
};
|
|
34
|
-
export default _default;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFindCreations = exports.prefetchFindCreations = void 0;
|
|
4
|
-
const builder_1 = require("../../../../entities/creation/builder");
|
|
5
|
-
const ui_1 = require("../../../../store/ui");
|
|
6
|
-
const client_1 = require("@apollo/client");
|
|
7
|
-
const api_1 = require("@ludo.ninja/api");
|
|
8
|
-
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
9
|
-
const react_1 = require("react");
|
|
10
|
-
const prefetchFindCreations = ({ term, input, page }, apolloClient) => {
|
|
11
|
-
return apolloClient
|
|
12
|
-
.query({
|
|
13
|
-
query: api_1.searchSchema.FindCreationsDocument,
|
|
14
|
-
variables: {
|
|
15
|
-
term,
|
|
16
|
-
input,
|
|
17
|
-
page,
|
|
18
|
-
},
|
|
19
|
-
context: { uri: api_1.hosts.serverSearchHost },
|
|
20
|
-
fetchPolicy: "network-only",
|
|
21
|
-
})
|
|
22
|
-
.catch(() => {
|
|
23
|
-
return {
|
|
24
|
-
data: { findCreations: null },
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
exports.prefetchFindCreations = prefetchFindCreations;
|
|
29
|
-
const maxCreationLength = 1000;
|
|
30
|
-
const useFindCreations = ({ term, input, page }) => {
|
|
31
|
-
const [creations, setCreations] = (0, react_1.useState)([]);
|
|
32
|
-
const [nextPageToken, setNextPageToken] = (0, react_1.useState)(null);
|
|
33
|
-
const [results, setResults] = (0, react_1.useState)(0);
|
|
34
|
-
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
35
|
-
const { error, loading, fetchMore, networkStatus, refetch } = api_1.searchSchema.useFindCreationsQuery({
|
|
36
|
-
context: {
|
|
37
|
-
uri: api_1.hosts.searchHost,
|
|
38
|
-
},
|
|
39
|
-
variables: {
|
|
40
|
-
term,
|
|
41
|
-
input,
|
|
42
|
-
page,
|
|
43
|
-
},
|
|
44
|
-
onCompleted: ({ findCreations: { creations, ...nextPage } }) => {
|
|
45
|
-
setCreations(creations.map((creation) => (0, builder_1.buildCreation)(creation)));
|
|
46
|
-
setResults(nextPage.nextPage?.elements || 0);
|
|
47
|
-
setNextPageToken(nextPage.nextPage?.token || null);
|
|
48
|
-
},
|
|
49
|
-
onError: () => {
|
|
50
|
-
openAlert({
|
|
51
|
-
type: type_1.alertVariants.error,
|
|
52
|
-
caption: "Oops, something went wrong.",
|
|
53
|
-
});
|
|
54
|
-
setCreations([]);
|
|
55
|
-
setNextPageToken(null);
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
const loadingMoreCreations = networkStatus === client_1.NetworkStatus.fetchMore;
|
|
59
|
-
return {
|
|
60
|
-
loadMore,
|
|
61
|
-
loading: loading || loadingMoreCreations,
|
|
62
|
-
error,
|
|
63
|
-
results,
|
|
64
|
-
creations,
|
|
65
|
-
nextPageToken,
|
|
66
|
-
refetchQuery,
|
|
67
|
-
};
|
|
68
|
-
async function refetchQuery() {
|
|
69
|
-
await refetch();
|
|
70
|
-
}
|
|
71
|
-
async function loadMore(pageToken) {
|
|
72
|
-
if (!pageToken || creations.length >= maxCreationLength)
|
|
73
|
-
return;
|
|
74
|
-
await fetchMore({
|
|
75
|
-
variables: {
|
|
76
|
-
page: {
|
|
77
|
-
token: pageToken,
|
|
78
|
-
...(page && "size" in page ? { size: page.size } : {}),
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
updateQuery: (prev, { fetchMoreResult }) => {
|
|
82
|
-
if (!fetchMoreResult)
|
|
83
|
-
return prev;
|
|
84
|
-
const { creations: nextCreations, ...page } = fetchMoreResult.findCreations;
|
|
85
|
-
if (prev !== null && prev.hasOwnProperty("findCreations")) {
|
|
86
|
-
const { creations: prevCreations } = prev.findCreations;
|
|
87
|
-
return {
|
|
88
|
-
findCreations: {
|
|
89
|
-
creations: [...prevCreations, ...nextCreations],
|
|
90
|
-
...page,
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return {
|
|
96
|
-
findCreations: { creations: nextCreations, ...page },
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
exports.useFindCreations = useFindCreations;
|
|
104
|
-
exports.default = { useFindCreations: exports.useFindCreations, prefetchFindCreations: exports.prefetchFindCreations };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
|
-
import { searchSchema } from '@ludo.ninja/api';
|
|
3
|
-
import { ProfileEntity } from '@ludo.ninja/core';
|
|
4
|
-
export declare const prefetchFindProfilesByName: ({ name, page }: searchSchema.IQueryFindProfilesByNameArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
5
|
-
data: {
|
|
6
|
-
findProfilesByName: null;
|
|
7
|
-
};
|
|
8
|
-
}>;
|
|
9
|
-
export declare const useFindProfilesByName: ({ name, page, }: searchSchema.IQueryFindProfilesByNameArgs) => {
|
|
10
|
-
data: searchSchema.IFindProfilesByNameQuery | undefined;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
error: import("@apollo/client").ApolloError | undefined;
|
|
13
|
-
clientProfiles: ProfileEntity[] | null;
|
|
14
|
-
clientNextPageToken: string | null;
|
|
15
|
-
clientResults: number;
|
|
16
|
-
};
|
|
17
|
-
declare const _default: {
|
|
18
|
-
prefetchFindProfilesByName: ({ name, page }: searchSchema.IQueryFindProfilesByNameArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
19
|
-
data: {
|
|
20
|
-
findProfilesByName: null;
|
|
21
|
-
};
|
|
22
|
-
}>;
|
|
23
|
-
useFindProfilesByName: ({ name, page, }: searchSchema.IQueryFindProfilesByNameArgs) => {
|
|
24
|
-
data: searchSchema.IFindProfilesByNameQuery | undefined;
|
|
25
|
-
loading: boolean;
|
|
26
|
-
error: import("@apollo/client").ApolloError | undefined;
|
|
27
|
-
clientProfiles: ProfileEntity[] | null;
|
|
28
|
-
clientNextPageToken: string | null;
|
|
29
|
-
clientResults: number;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFindProfilesByName = exports.prefetchFindProfilesByName = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const api_1 = require("@ludo.ninja/api");
|
|
6
|
-
const core_1 = require("@ludo.ninja/core");
|
|
7
|
-
const prefetchFindProfilesByName = ({ name, page }, apolloClient) => {
|
|
8
|
-
return apolloClient
|
|
9
|
-
.query({
|
|
10
|
-
query: api_1.searchSchema.FindProfilesByNameDocument,
|
|
11
|
-
variables: {
|
|
12
|
-
name,
|
|
13
|
-
page,
|
|
14
|
-
},
|
|
15
|
-
context: { uri: api_1.hosts.serverSearchHost },
|
|
16
|
-
fetchPolicy: 'network-only',
|
|
17
|
-
})
|
|
18
|
-
.catch(() => {
|
|
19
|
-
return {
|
|
20
|
-
data: { findProfilesByName: null },
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
exports.prefetchFindProfilesByName = prefetchFindProfilesByName;
|
|
25
|
-
const useFindProfilesByName = ({ name, page, }) => {
|
|
26
|
-
const [profiles, setProfiles] = (0, react_1.useState)(null);
|
|
27
|
-
const [nextPageToken, setNextPageToken] = (0, react_1.useState)(null);
|
|
28
|
-
const [results, setResults] = (0, react_1.useState)(0);
|
|
29
|
-
const { data, error, loading } = api_1.searchSchema.useFindProfilesByNameQuery({
|
|
30
|
-
context: {
|
|
31
|
-
uri: api_1.hosts.searchHost,
|
|
32
|
-
},
|
|
33
|
-
variables: {
|
|
34
|
-
name,
|
|
35
|
-
page,
|
|
36
|
-
},
|
|
37
|
-
fetchPolicy: 'cache-first',
|
|
38
|
-
onCompleted: ({ findProfilesByName }) => {
|
|
39
|
-
setProfiles(findProfilesByName.profiles.map((profile) => new core_1.ProfileEntity(profile)));
|
|
40
|
-
setNextPageToken(findProfilesByName.nextPage?.token || null);
|
|
41
|
-
setResults(findProfilesByName.nextPage?.elements || 0);
|
|
42
|
-
},
|
|
43
|
-
onError: () => {
|
|
44
|
-
setProfiles([]);
|
|
45
|
-
setNextPageToken(null);
|
|
46
|
-
setResults(0);
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
return {
|
|
50
|
-
data,
|
|
51
|
-
loading,
|
|
52
|
-
error,
|
|
53
|
-
clientProfiles: profiles,
|
|
54
|
-
clientNextPageToken: nextPageToken,
|
|
55
|
-
clientResults: results,
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
exports.useFindProfilesByName = useFindProfilesByName;
|
|
59
|
-
exports.default = { prefetchFindProfilesByName: exports.prefetchFindProfilesByName, useFindProfilesByName: exports.useFindProfilesByName };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { useState } from 'react';
|
|
3
|
-
//
|
|
4
|
-
// import { useLazyQuery } from '@apollo/client';
|
|
5
|
-
//
|
|
6
|
-
// import { hosts, searchSchema as schema } from '@ludo.ninja/api';
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
const useFindShowCaseItems = () => {
|
|
9
|
-
// const [showcaseItemPage, setShowcaseItemPage] =
|
|
10
|
-
// useState<schema.IShowcaseItemPage | null>(null);
|
|
11
|
-
//
|
|
12
|
-
// const [findShowcaseItems, { error, loading }] = useLazyQuery(
|
|
13
|
-
// schema.FindShowcaseItemsDocument,
|
|
14
|
-
// {
|
|
15
|
-
// context: {
|
|
16
|
-
// uri: hosts.searchHost,
|
|
17
|
-
// },
|
|
18
|
-
// pollInterval: 0,
|
|
19
|
-
// notifyOnNetworkStatusChange: true,
|
|
20
|
-
// fetchPolicy: 'cache-and-network',
|
|
21
|
-
// onCompleted: ({ findShowcaseItems }) => {
|
|
22
|
-
// setShowcaseItemPage(findShowcaseItems);
|
|
23
|
-
// },
|
|
24
|
-
// onError: () => {
|
|
25
|
-
// setShowcaseItemPage(null);
|
|
26
|
-
// },
|
|
27
|
-
// }
|
|
28
|
-
// );
|
|
29
|
-
//
|
|
30
|
-
// return { load, loading, error, showcaseItemPage };
|
|
31
|
-
// function load(
|
|
32
|
-
// term: string,
|
|
33
|
-
// input: schema.IShowcaseItemFilterInput,
|
|
34
|
-
// pageSize: string,
|
|
35
|
-
// pageToken: string
|
|
36
|
-
// ) {
|
|
37
|
-
// findShowcaseItems({
|
|
38
|
-
// variables: { term, input, pageSize, pageToken },
|
|
39
|
-
// });
|
|
40
|
-
// }
|
|
41
|
-
};
|
|
42
|
-
exports.default = useFindShowCaseItems;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TCreation } from '../../../../entities/creation/types';
|
|
2
|
-
import { searchSchema as schema } from "@ludo.ninja/api";
|
|
3
|
-
declare const useFindUserCreations: ({ ownerId, input, scrollTab, }: {
|
|
4
|
-
scrollTab: string | undefined;
|
|
5
|
-
ownerId: schema.IQueryFindUserCreationsArgs["ownerId"];
|
|
6
|
-
input: schema.IQueryFindUserCreationsArgs["input"];
|
|
7
|
-
}) => {
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
error: import("@apollo/client").ApolloError | undefined;
|
|
10
|
-
totalResults: number;
|
|
11
|
-
creations: TCreation[];
|
|
12
|
-
refetchQuery: () => Promise<void>;
|
|
13
|
-
loadMore: () => Promise<void>;
|
|
14
|
-
isNextLoading: boolean;
|
|
15
|
-
};
|
|
16
|
-
export default useFindUserCreations;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const builder_1 = require("../../../../entities/creation/builder");
|
|
4
|
-
const getPageSizeAssets_1 = require("../../../../utils/getPageSizeAssets");
|
|
5
|
-
const api_1 = require("@ludo.ninja/api");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const limit = 20;
|
|
8
|
-
const useFindUserCreations = ({ ownerId, input, scrollTab, }) => {
|
|
9
|
-
const [creations, setCreations] = (0, react_1.useState)([]);
|
|
10
|
-
const nextPageToken = (0, react_1.useRef)(null);
|
|
11
|
-
const [results, setResults] = (0, react_1.useState)(0);
|
|
12
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(true);
|
|
13
|
-
const [isNextLoading, setIsNextLoading] = (0, react_1.useState)(false);
|
|
14
|
-
const isHaveNextPage = creations.length < results;
|
|
15
|
-
const [fetchCreations, { error, refetch, fetchMore }] = api_1.searchSchema.useFindUserCreationsLazyQuery({
|
|
16
|
-
context: {
|
|
17
|
-
uri: api_1.hosts.searchHost,
|
|
18
|
-
},
|
|
19
|
-
fetchPolicy: "no-cache",
|
|
20
|
-
onCompleted: ({ findUserCreations: { creations, ...nextPage } }) => {
|
|
21
|
-
setCreations(creations.map((creation) => (0, builder_1.buildCreation)(creation)));
|
|
22
|
-
setResults(nextPage.nextPage?.elements || 0);
|
|
23
|
-
setIsLoading(false);
|
|
24
|
-
nextPageToken.current = nextPage.nextPage?.token || null;
|
|
25
|
-
},
|
|
26
|
-
onError: () => {
|
|
27
|
-
setCreations([]);
|
|
28
|
-
setIsLoading(false);
|
|
29
|
-
nextPageToken.current = null;
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
(0, react_1.useEffect)(() => {
|
|
33
|
-
setIsLoading(true);
|
|
34
|
-
fetchCreations({
|
|
35
|
-
variables: {
|
|
36
|
-
ownerId,
|
|
37
|
-
input,
|
|
38
|
-
page: {
|
|
39
|
-
size: (0, getPageSizeAssets_1.getPageSize)({
|
|
40
|
-
scrollTab,
|
|
41
|
-
limit,
|
|
42
|
-
}),
|
|
43
|
-
token: "",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
}, [input, ownerId]);
|
|
48
|
-
async function refetchQuery() {
|
|
49
|
-
await refetch();
|
|
50
|
-
}
|
|
51
|
-
async function loadMore() {
|
|
52
|
-
if (!nextPageToken.current || !isHaveNextPage)
|
|
53
|
-
return;
|
|
54
|
-
setIsNextLoading(true);
|
|
55
|
-
try {
|
|
56
|
-
const { data } = await fetchMore({
|
|
57
|
-
variables: {
|
|
58
|
-
ownerId,
|
|
59
|
-
input,
|
|
60
|
-
page: {
|
|
61
|
-
token: nextPageToken.current,
|
|
62
|
-
size: limit,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
updateQuery: (previousQueryResult) => {
|
|
66
|
-
return previousQueryResult;
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
const { creations: nextCreations, ...nextPage } = data.findUserCreations;
|
|
70
|
-
setCreations((prevCreations) => [
|
|
71
|
-
...prevCreations,
|
|
72
|
-
...nextCreations.map((creation) => (0, builder_1.buildCreation)(creation)),
|
|
73
|
-
]);
|
|
74
|
-
setResults(nextPage.nextPage?.elements || 0);
|
|
75
|
-
nextPageToken.current = nextPage.nextPage?.token || null;
|
|
76
|
-
}
|
|
77
|
-
catch (error) {
|
|
78
|
-
//todo uncomment next line
|
|
79
|
-
// throw new Error(error as string);
|
|
80
|
-
}
|
|
81
|
-
finally {
|
|
82
|
-
setIsNextLoading(false);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return {
|
|
86
|
-
isLoading,
|
|
87
|
-
error,
|
|
88
|
-
totalResults: results,
|
|
89
|
-
creations,
|
|
90
|
-
refetchQuery,
|
|
91
|
-
loadMore,
|
|
92
|
-
isNextLoading,
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
exports.default = useFindUserCreations;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TCreation } from '../../../../entities/creation/types';
|
|
2
|
-
import { searchSchema as schema } from "@ludo.ninja/api";
|
|
3
|
-
declare const useFindUserLudoCreations: ({ ownerId, scrollTab, }: {
|
|
4
|
-
scrollTab: string | undefined;
|
|
5
|
-
ownerId: schema.IQueryFindUserLudoCreationsArgs["ownerId"];
|
|
6
|
-
}) => {
|
|
7
|
-
isLoading: boolean;
|
|
8
|
-
error: import("@apollo/client").ApolloError | undefined;
|
|
9
|
-
totalResults: number;
|
|
10
|
-
creations: TCreation[];
|
|
11
|
-
refetchQuery: () => Promise<void>;
|
|
12
|
-
loadMore: () => Promise<void>;
|
|
13
|
-
isNextLoading: boolean;
|
|
14
|
-
};
|
|
15
|
-
export default useFindUserLudoCreations;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const builder_1 = require("../../../../entities/creation/builder");
|
|
4
|
-
const getPageSizeAssets_1 = require("../../../../utils/getPageSizeAssets");
|
|
5
|
-
const api_1 = require("@ludo.ninja/api");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const limit = 20;
|
|
8
|
-
const useFindUserLudoCreations = ({ ownerId, scrollTab, }) => {
|
|
9
|
-
const [creations, setCreations] = (0, react_1.useState)([]);
|
|
10
|
-
const nextPageToken = (0, react_1.useRef)(null);
|
|
11
|
-
const [results, setResults] = (0, react_1.useState)(0);
|
|
12
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(true);
|
|
13
|
-
const [isNextLoading, setIsNextLoading] = (0, react_1.useState)(false);
|
|
14
|
-
const isHaveNextPage = creations.length < results;
|
|
15
|
-
const [fetchLudoCreations, { error, refetch, fetchMore }] = api_1.searchSchema.useFindUserLudoCreationsLazyQuery({
|
|
16
|
-
context: {
|
|
17
|
-
uri: api_1.hosts.searchHost,
|
|
18
|
-
},
|
|
19
|
-
fetchPolicy: "no-cache",
|
|
20
|
-
onCompleted: ({ findUserLudoCreations: { creations, ...nextPage } }) => {
|
|
21
|
-
setCreations(creations.map((creation) => (0, builder_1.buildCreation)(creation)));
|
|
22
|
-
setResults(nextPage.nextPage?.elements || 0);
|
|
23
|
-
setIsLoading(false);
|
|
24
|
-
nextPageToken.current = nextPage.nextPage?.token || null;
|
|
25
|
-
},
|
|
26
|
-
onError: () => {
|
|
27
|
-
setCreations([]);
|
|
28
|
-
setIsLoading(false);
|
|
29
|
-
nextPageToken.current = null;
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
(0, react_1.useEffect)(() => {
|
|
33
|
-
setIsLoading(true);
|
|
34
|
-
fetchLudoCreations({
|
|
35
|
-
variables: {
|
|
36
|
-
ownerId,
|
|
37
|
-
page: {
|
|
38
|
-
size: (0, getPageSizeAssets_1.getPageSize)({
|
|
39
|
-
scrollTab,
|
|
40
|
-
limit,
|
|
41
|
-
}),
|
|
42
|
-
token: "",
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
}, [ownerId]);
|
|
47
|
-
async function refetchQuery() {
|
|
48
|
-
await refetch();
|
|
49
|
-
}
|
|
50
|
-
async function loadMore() {
|
|
51
|
-
if (!nextPageToken.current || !isHaveNextPage)
|
|
52
|
-
return;
|
|
53
|
-
setIsNextLoading(true);
|
|
54
|
-
try {
|
|
55
|
-
const { data } = await fetchMore({
|
|
56
|
-
variables: {
|
|
57
|
-
ownerId,
|
|
58
|
-
page: {
|
|
59
|
-
token: nextPageToken.current,
|
|
60
|
-
size: limit,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
updateQuery: (previousQueryResult) => {
|
|
64
|
-
return previousQueryResult;
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
const { creations: nextCreations, ...nextPage } = data.findUserLudoCreations;
|
|
68
|
-
setCreations((prevCreations) => [
|
|
69
|
-
...prevCreations,
|
|
70
|
-
...nextCreations.map((creation) => (0, builder_1.buildCreation)(creation)),
|
|
71
|
-
]);
|
|
72
|
-
setResults(nextPage.nextPage?.elements || 0);
|
|
73
|
-
nextPageToken.current = nextPage.nextPage?.token || null;
|
|
74
|
-
}
|
|
75
|
-
catch (error) {
|
|
76
|
-
//todo uncomment next line
|
|
77
|
-
// throw new Error(error as string);
|
|
78
|
-
}
|
|
79
|
-
finally {
|
|
80
|
-
setIsNextLoading(false);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
isLoading,
|
|
85
|
-
error,
|
|
86
|
-
totalResults: results,
|
|
87
|
-
creations,
|
|
88
|
-
refetchQuery,
|
|
89
|
-
loadMore,
|
|
90
|
-
isNextLoading,
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
exports.default = useFindUserLudoCreations;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { useState } from 'react';
|
|
3
|
-
//
|
|
4
|
-
// import { useLazyQuery } from '@apollo/client';
|
|
5
|
-
//
|
|
6
|
-
// import { hosts, searchSchema as schema } from '@ludo.ninja/api';
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
const useFindUserShowcaseItems = () => {
|
|
9
|
-
// const [showcaseItemPage, setShowcaseItemPage] =
|
|
10
|
-
// useState<schema.IShowcaseItemPage | null>(null);
|
|
11
|
-
//
|
|
12
|
-
// const [findUserShowcaseItems, { data, error, loading }] = useLazyQuery(
|
|
13
|
-
// schema.FindUserShowcaseItemsDocument,
|
|
14
|
-
// {
|
|
15
|
-
// context: {
|
|
16
|
-
// uri: hosts.searchHost,
|
|
17
|
-
// },
|
|
18
|
-
// onCompleted: ({ findUserShowcaseItems }) => {
|
|
19
|
-
// setShowcaseItemPage(findUserShowcaseItems);
|
|
20
|
-
// },
|
|
21
|
-
// onError: () => setShowcaseItemPage(null),
|
|
22
|
-
// notifyOnNetworkStatusChange: true,
|
|
23
|
-
// fetchPolicy: 'cache-and-network',
|
|
24
|
-
// }
|
|
25
|
-
// );
|
|
26
|
-
//
|
|
27
|
-
// return { loading, error, data, load, showcaseItemPage };
|
|
28
|
-
//
|
|
29
|
-
// function load(
|
|
30
|
-
// ownerId: string,
|
|
31
|
-
// input: schema.IShowcaseItemFilterInput,
|
|
32
|
-
// pageSize: string,
|
|
33
|
-
// pageToken: string
|
|
34
|
-
// ) {
|
|
35
|
-
// findUserShowcaseItems({
|
|
36
|
-
// variables: { ownerId, input, pageSize, pageToken },
|
|
37
|
-
// });
|
|
38
|
-
// }
|
|
39
|
-
};
|
|
40
|
-
exports.default = useFindUserShowcaseItems;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SubscriberInviteNotification: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubscriberInviteNotification = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const router_1 = require("next/router");
|
|
7
|
-
const client_1 = require("@apollo/client");
|
|
8
|
-
const api_1 = require("@ludo.ninja/api");
|
|
9
|
-
const store_1 = require("../../modules/user/store");
|
|
10
|
-
const ui_1 = require("../../store/ui");
|
|
11
|
-
const notifications_1 = require("../../modules/notifications");
|
|
12
|
-
const ludoDomains_1 = require("@ludo.ninja/core/build/ludoDomains");
|
|
13
|
-
const env_1 = require("../../store/env");
|
|
14
|
-
const Subscription = () => {
|
|
15
|
-
const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)(state => state.NEXT_PUBLIC_ENV_VALUE);
|
|
16
|
-
const { authToken } = api_1.authCookies.getCookies();
|
|
17
|
-
const router = (0, router_1.useRouter)();
|
|
18
|
-
const addNotification = (0, ui_1.useUiStore)((state) => state.addNotification);
|
|
19
|
-
(0, client_1.useSubscription)(api_1.experiencesSchema.OnInviteCodeUsedDocument, {
|
|
20
|
-
variables: { authToken },
|
|
21
|
-
// onComplete: () => {
|
|
22
|
-
// console.log('complete');
|
|
23
|
-
// },
|
|
24
|
-
onData: (options) => {
|
|
25
|
-
const inviteCode = options.data.data?.onInviteCodeUsed.inviteCode;
|
|
26
|
-
// console.log('onData', inviteCode);
|
|
27
|
-
if (inviteCode) {
|
|
28
|
-
addNotification((0, notifications_1.createInviteNotification)({
|
|
29
|
-
inviteCode,
|
|
30
|
-
onClick: () => {
|
|
31
|
-
const domain = ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"];
|
|
32
|
-
if (domain === window.origin) {
|
|
33
|
-
router.push(`/invite-codes`);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
window.open(`${domain}/invite-codes`, '_self');
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
return null;
|
|
44
|
-
};
|
|
45
|
-
const SubscriberInviteNotification = () => {
|
|
46
|
-
const isSignedIn = (0, store_1.useUserStore)((state) => state.isSignedIn);
|
|
47
|
-
const [startSubscription, setStartSubscription] = (0, react_1.useState)(false);
|
|
48
|
-
(0, react_1.useEffect)(() => {
|
|
49
|
-
setStartSubscription(isSignedIn);
|
|
50
|
-
}, [isSignedIn]);
|
|
51
|
-
return startSubscription ? (0, jsx_runtime_1.jsx)(Subscription, {}) : null;
|
|
52
|
-
};
|
|
53
|
-
exports.SubscriberInviteNotification = SubscriberInviteNotification;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SubscriberNotification: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +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
|
-
exports.SubscriberNotification = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const store_1 = require("../../modules/user/store");
|
|
9
|
-
const NoSSR_1 = __importDefault(require("../../components/base/NoSSR"));
|
|
10
|
-
const router_1 = require("next/router");
|
|
11
|
-
const react_1 = require("react");
|
|
12
|
-
const SubscriptionNotificationSPA_1 = require("./SubscriptionNotificationSPA");
|
|
13
|
-
const SubscriberNotification = () => {
|
|
14
|
-
const isSignedIn = (0, store_1.useUserStore)((state) => state.isSignedIn);
|
|
15
|
-
const key = isSignedIn ? "all includes" : "only common";
|
|
16
|
-
const router = (0, router_1.useRouter)();
|
|
17
|
-
const [isWindowVisible, setIsWindowVisible] = (0, react_1.useState)(true);
|
|
18
|
-
(0, react_1.useEffect)(() => {
|
|
19
|
-
const changeVisibility = () => {
|
|
20
|
-
setIsWindowVisible(!document.hidden);
|
|
21
|
-
};
|
|
22
|
-
document.addEventListener("visibilitychange", changeVisibility);
|
|
23
|
-
return () => {
|
|
24
|
-
document.removeEventListener("visibilitychange", changeVisibility);
|
|
25
|
-
};
|
|
26
|
-
}, []);
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)(NoSSR_1.default, { children: isWindowVisible && (0, jsx_runtime_1.jsx)(SubscriptionNotificationSPA_1.Subscription, { routerPush: router.push }, key) }));
|
|
28
|
-
};
|
|
29
|
-
exports.SubscriberNotification = SubscriberNotification;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SubscriberOpportunityNotification: () => import("react/jsx-runtime").JSX.Element;
|