@ludo.ninja/components 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/graphql/index.d.ts +4 -0
- package/build/api/graphql/index.js +11 -0
- package/build/api/server-assets/mutations/useDislikeAsset/index.d.ts +7 -0
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +32 -0
- package/build/api/server-assets/mutations/useLikeAsset/index.d.ts +7 -0
- package/build/api/server-assets/mutations/useLikeAsset/index.js +33 -0
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.d.ts +14 -0
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +48 -0
- package/build/api/server-assets/queries/useFetchAssets/index.d.ts +7 -0
- package/build/api/server-assets/queries/useFetchAssets/index.js +31 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.d.ts +8 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +35 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.d.ts +7 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +30 -0
- package/build/api/server-collection/mutations/useDislikeCollection/index.d.ts +7 -0
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +31 -0
- package/build/api/server-collection/mutations/useLikeCollection/index.d.ts +7 -0
- package/build/api/server-collection/mutations/useLikeCollection/index.js +31 -0
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.d.ts +2 -0
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +84 -0
- package/build/api/server-experiences/queries/useFetchMyTasks/index.d.ts +31 -0
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +49 -0
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +36 -0
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.d.ts +4 -0
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +30 -0
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +35 -0
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +43 -0
- package/build/api/server-galleries/mutations/useCreateFavorites/index.d.ts +6 -0
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +25 -0
- package/build/api/server-galleries/mutations/useCreateGallery/index.d.ts +6 -0
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +25 -0
- package/build/api/server-galleries/mutations/useDeleteGallery/index.d.ts +8 -0
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +42 -0
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.d.ts +5 -0
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +39 -0
- package/build/api/server-galleries/mutations/useEditGallery/index.d.ts +5 -0
- package/build/api/server-galleries/mutations/useEditGallery/index.js +23 -0
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +49 -0
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +44 -0
- package/build/api/server-galleries/queries/useFetchGallery/index.d.ts +16 -0
- package/build/api/server-galleries/queries/useFetchGallery/index.js +46 -0
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.d.ts +18 -0
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +86 -0
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.d.ts +10 -0
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +70 -0
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +10 -0
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +72 -0
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.d.ts +9 -0
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +69 -0
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.d.ts +11 -0
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +68 -0
- package/build/api/server-identities/mutations/useAddWalletElrond/index.d.ts +6 -0
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletFlow/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.d.ts +12 -0
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +39 -0
- package/build/api/server-identities/mutations/useAddWalletSolana/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletTezos/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +35 -0
- package/build/api/server-identities/mutations/useFollowProfile/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useFollowProfile/index.js +40 -0
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +31 -0
- package/build/api/server-identities/mutations/useInviteCode/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useInviteCode/index.js +34 -0
- package/build/api/server-identities/mutations/useRemoveWallet/index.d.ts +6 -0
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +37 -0
- package/build/api/server-identities/mutations/useRevokeToken/index.d.ts +4 -0
- package/build/api/server-identities/mutations/useRevokeToken/index.js +21 -0
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +34 -0
- package/build/api/server-identities/mutations/useUnfollowProfile/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +39 -0
- package/build/api/server-identities/queries/useFetchProfile/index.d.ts +16 -0
- package/build/api/server-identities/queries/useFetchProfile/index.js +80 -0
- package/build/api/server-identities/queries/useFetchUserWallets/index.d.ts +7 -0
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +19 -0
- package/build/api/server-medias/mutations/useDeleteUserpic/index.d.ts +6 -0
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +20 -0
- package/build/api/server-medias/mutations/useUploadUserpic/index.d.ts +4 -0
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +27 -0
- package/build/api/server-medias/queries/useFetchUserPic/index.d.ts +12 -0
- package/build/api/server-medias/queries/useFetchUserPic/index.js +39 -0
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.d.ts +4 -0
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +29 -0
- package/build/api/server-opportunities/mutations/useLikeOpportunity.d.ts +4 -0
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +29 -0
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.d.ts +5 -0
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +28 -0
- package/build/api/server-opportunities/queries/useGetOpportunities.d.ts +4 -0
- package/build/api/server-opportunities/queries/useGetOpportunities.js +26 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.d.ts +28 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +33 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.d.ts +14 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +37 -0
- package/build/api/server-search/queries/useFetchAllCreations/index.d.ts +32 -0
- package/build/api/server-search/queries/useFetchAllCreations/index.js +94 -0
- package/build/api/server-search/queries/useFetchAssetsCount/index.d.ts +7 -0
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +33 -0
- package/build/api/server-search/queries/useFetchCollection/index.d.ts +19 -0
- package/build/api/server-search/queries/useFetchCollection/index.js +59 -0
- package/build/api/server-search/queries/useFetchCollections/index.d.ts +23 -0
- package/build/api/server-search/queries/useFetchCollections/index.js +101 -0
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +13 -0
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +126 -0
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +47 -0
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +59 -0
- package/build/api/server-search/queries/useFetchNetWorth/index.d.ts +7 -0
- package/build/api/server-search/queries/useFetchNetWorth/index.js +23 -0
- package/build/api/server-search/queries/useFindCreations/index.d.ts +34 -0
- package/build/api/server-search/queries/useFindCreations/index.js +107 -0
- package/build/api/server-search/queries/useFindProfilesByName/index.d.ts +32 -0
- package/build/api/server-search/queries/useFindProfilesByName/index.js +59 -0
- package/build/api/server-search/queries/useFindShowcaseItems/index.d.ts +2 -0
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +42 -0
- package/build/api/server-search/queries/useFindUserCreations/index.d.ts +16 -0
- package/build/api/server-search/queries/useFindUserCreations/index.js +95 -0
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.d.ts +2 -0
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +40 -0
- package/build/api/subscriptions/SubscriberInviteNotification.d.ts +1 -0
- package/build/api/subscriptions/SubscriberInviteNotification.js +44 -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 +6 -0
- package/build/components/assetPage/category/index.js +55 -0
- package/build/components/assetPage/description/index.d.ts +4 -0
- package/build/components/assetPage/description/index.js +43 -0
- package/build/components/assetPage/index.d.ts +11 -0
- package/build/components/assetPage/index.js +25 -0
- package/build/components/assetPage/information/index.d.ts +6 -0
- package/build/components/assetPage/information/index.js +117 -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/participants/index.d.ts +9 -0
- package/build/components/assetPage/participants/index.js +178 -0
- package/build/components/assetPage/priceRank/index.d.ts +9 -0
- package/build/components/assetPage/priceRank/index.js +112 -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/index.d.ts +5 -0
- package/build/components/assetPage/slider/index.js +178 -0
- package/build/components/assetPage/slider/slideItem.d.ts +5 -0
- package/build/components/assetPage/slider/slideItem.js +53 -0
- package/build/components/assetPage/slider/store.d.ts +8 -0
- package/build/components/assetPage/slider/store.js +16 -0
- package/build/components/assetPage/tittle/index.d.ts +9 -0
- package/build/components/assetPage/tittle/index.js +89 -0
- package/build/components/assetPage/viewer3D/index.d.ts +7 -0
- package/build/components/assetPage/viewer3D/index.js +123 -0
- package/build/components/base/Meta/index.d.ts +2 -0
- package/build/components/base/Meta/index.js +39 -0
- package/build/components/base/NoSSR/index.d.ts +5 -0
- package/build/components/base/NoSSR/index.js +11 -0
- 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/MobileToggle/index.d.ts +0 -0
- package/build/components/headers/components/MobileToggle/index.js +1 -0
- package/build/components/headers/components/headerExperienceLabel/index.d.ts +4 -0
- package/build/components/headers/components/headerExperienceLabel/index.js +31 -0
- package/build/components/headers/components/headerUserPic/index.d.ts +4 -0
- package/build/components/headers/components/headerUserPic/index.js +29 -0
- package/build/components/headers/header/index.d.ts +2 -0
- package/build/components/headers/header/index.js +30 -0
- package/build/components/headers/headerSearch/index.d.ts +2 -0
- package/build/components/headers/headerSearch/index.js +37 -0
- package/build/components/headers/headerSimple/index.d.ts +2 -0
- package/build/components/headers/headerSimple/index.js +76 -0
- package/build/components/linkTabs/index.d.ts +7 -0
- package/build/components/linkTabs/index.js +51 -0
- package/build/components/linkTabs/linkTab/index.d.ts +8 -0
- package/build/components/linkTabs/linkTab/index.js +74 -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.d.ts +26 -0
- package/build/components/search/SearchInputContainer.js +226 -0
- package/build/components/search/searchCloseMoreButtons/index.d.ts +14 -0
- package/build/components/search/searchCloseMoreButtons/index.js +58 -0
- package/build/components/search/searchSimpleInput/index.d.ts +4 -0
- package/build/components/search/searchSimpleInput/index.js +139 -0
- package/build/components/search/searchSuggestions/index.d.ts +14 -0
- package/build/components/search/searchSuggestions/index.js +145 -0
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.d.ts +7 -0
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +45 -0
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +2 -0
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +52 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.d.ts +11 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +117 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +3 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +116 -0
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +4 -0
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +46 -0
- 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 +121 -0
- package/build/components/sidebar/data.d.ts +19 -0
- package/build/components/sidebar/data.js +80 -0
- package/build/components/sidebar/index.d.ts +2 -0
- package/build/components/sidebar/index.js +160 -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 +38 -0
- package/build/components/toTopBtn/index.d.ts +5 -0
- package/build/components/toTopBtn/index.js +95 -0
- package/build/dto/AssetEntity/index.d.ts +63 -0
- package/build/dto/AssetEntity/index.js +223 -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 +9 -0
- package/build/dto/AssetEntity/views/AssetAudio/index.js +27 -0
- package/build/dto/AssetEntity/views/AssetImage/index.d.ts +10 -0
- package/build/dto/AssetEntity/views/AssetImage/index.js +38 -0
- package/build/dto/AssetEntity/views/AssetObject/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetObject/index.js +59 -0
- package/build/dto/AssetEntity/views/AssetOther/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetOther/index.js +43 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.d.ts +10 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +38 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.d.ts +9 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.js +27 -0
- package/build/dto/AssetEntity/views/index.d.ts +6 -0
- package/build/dto/AssetEntity/views/index.js +16 -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 +82 -0
- package/build/dto/GalleryEntityV2/interface.d.ts +16 -0
- package/build/dto/GalleryEntityV2/interface.js +2 -0
- package/build/dto/Theme/interface.d.ts +2 -0
- package/build/dto/Theme/interface.js +5 -0
- package/build/dto/common/ItemType/data.d.ts +3 -0
- package/build/dto/common/ItemType/data.js +36 -0
- package/build/dto/common/ItemType/index.d.ts +45 -0
- package/build/dto/common/ItemType/index.js +42 -0
- package/build/dto/common/ItemViews/CreationAudio/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationAudio/index.js +27 -0
- package/build/dto/common/ItemViews/CreationImage/index.d.ts +10 -0
- package/build/dto/common/ItemViews/CreationImage/index.js +38 -0
- package/build/dto/common/ItemViews/CreationObject/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationObject/index.js +30 -0
- package/build/dto/common/ItemViews/CreationOther/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationOther/index.js +27 -0
- package/build/dto/common/ItemViews/CreationVideo/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationVideo/index.js +27 -0
- package/build/dto/common/Media/Audio/index.d.ts +13 -0
- package/build/dto/common/Media/Audio/index.js +37 -0
- package/build/dto/common/Media/Image/index.d.ts +13 -0
- package/build/dto/common/Media/Image/index.js +45 -0
- package/build/dto/common/Media/Object/index.d.ts +13 -0
- package/build/dto/common/Media/Object/index.js +46 -0
- package/build/dto/common/Media/Other/index.d.ts +13 -0
- package/build/dto/common/Media/Other/index.js +65 -0
- package/build/dto/common/Media/Screenshot/index.d.ts +13 -0
- package/build/dto/common/Media/Screenshot/index.js +45 -0
- package/build/dto/common/Media/Urls/index.d.ts +31 -0
- package/build/dto/common/Media/Urls/index.js +124 -0
- package/build/dto/common/Media/Video/index.d.ts +13 -0
- package/build/dto/common/Media/Video/index.js +37 -0
- package/build/dto/common/Media/index.d.ts +26 -0
- package/build/dto/common/Media/index.js +45 -0
- package/build/dto/common/Media/interface.d.ts +28 -0
- package/build/dto/common/Media/interface.js +2 -0
- package/build/entities/user/type.d.ts +5 -0
- package/build/entities/user/type.js +2 -0
- package/build/fonts/FontsInitializeLayout.d.ts +6 -0
- package/build/fonts/FontsInitializeLayout.js +160 -0
- package/build/fonts/vars.d.ts +1 -0
- package/build/fonts/vars.js +6 -0
- package/build/hooks/apollo/index.d.ts +2 -0
- package/build/hooks/apollo/index.js +13 -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 +23 -0
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +132 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +24 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +188 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +24 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +177 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +29 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +150 -0
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.d.ts +15 -0
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +125 -0
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +14 -0
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +135 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +18 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +139 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.d.ts +16 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +151 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +19 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +49 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.d.ts +15 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.js +117 -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 +97 -0
- package/build/index.d.ts +0 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.d.ts +19 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +221 -0
- package/build/modules/gallery/api/useGetFavoriteGallery.d.ts +6 -0
- package/build/modules/gallery/api/useGetFavoriteGallery.js +40 -0
- package/build/modules/gallery/store.d.ts +26 -0
- package/build/modules/gallery/store.js +101 -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 +28 -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 +2 -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 +92 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.d.ts +15 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +161 -0
- package/build/modules/gallery/ui/createGalleryForm/index.d.ts +13 -0
- package/build/modules/gallery/ui/createGalleryForm/index.js +140 -0
- package/build/modules/gallery/ui/editGalleryForm/index.d.ts +8 -0
- package/build/modules/gallery/ui/editGalleryForm/index.js +192 -0
- package/build/modules/gallery/ui/itemsPreview/index.d.ts +20 -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 +41 -0
- package/build/modules/notifications/index.d.ts +22 -0
- package/build/modules/notifications/index.js +6 -0
- package/build/modules/opportunity/OpportunityCard.d.ts +5 -0
- package/build/modules/opportunity/OpportunityCard.js +235 -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 +201 -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/index.d.ts +14 -0
- package/build/modules/sessionScroll/index.js +61 -0
- package/build/modules/sessionScroll/type.d.ts +7 -0
- package/build/modules/sessionScroll/type.js +2 -0
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +12 -0
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +59 -0
- package/build/modules/user/auth/useAuthVerification.d.ts +1 -0
- package/build/modules/user/auth/useAuthVerification.js +74 -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 +37 -0
- package/build/modules/user/profileData/profileDataInitialization.d.ts +1 -0
- package/build/modules/user/profileData/profileDataInitialization.js +59 -0
- package/build/modules/user/store.d.ts +33 -0
- package/build/modules/user/store.js +73 -0
- 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 +7 -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/store/env/index.d.ts +22 -0
- package/build/store/env/index.js +37 -0
- package/build/store/index.d.ts +10 -0
- package/build/store/index.js +12 -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.d.ts +2 -0
- package/build/store/ui/index.js +116 -0
- package/build/store/ui/types.d.ts +34 -0
- package/build/store/ui/types.js +2 -0
- package/build/store/ui/utils.d.ts +7 -0
- package/build/store/ui/utils.js +25 -0
- package/build/styles/ScreenWidth.d.ts +22 -0
- package/build/styles/ScreenWidth.js +26 -0
- package/build/styles/animations/index.d.ts +2 -0
- package/build/styles/animations/index.js +20 -0
- package/build/styles/colors/index.d.ts +1 -0
- package/build/styles/colors/index.js +38 -0
- package/build/styles/globalStyles.d.ts +3 -0
- package/build/styles/globalStyles.js +86 -0
- package/build/styles/mixins/boxShadow.d.ts +2 -0
- package/build/styles/mixins/boxShadow.js +13 -0
- package/build/styles/mixins/boxTransform.d.ts +2 -0
- package/build/styles/mixins/boxTransform.js +12 -0
- package/build/styles/mixins/z-indexes.d.ts +10 -0
- package/build/styles/mixins/z-indexes.js +13 -0
- package/build/styles/typography/index.d.ts +1 -0
- package/build/styles/typography/index.js +13 -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/Alert/type.d.ts +2 -0
- package/build/system/Alert/type.js +8 -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/CardCheckbox.test.d.ts +1 -0
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +35 -0
- package/build/system/Cards/CardCheckbox/index.d.ts +5 -0
- package/build/system/Cards/CardCheckbox/index.js +92 -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 +7 -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 +6 -0
- package/build/system/Cards/CardMedia/CardImage/index.js +19 -0
- package/build/system/Cards/CardMedia/CardVideo/index.d.ts +6 -0
- package/build/system/Cards/CardMedia/CardVideo/index.js +54 -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 +13 -0
- package/build/system/Cards/CreationCard/CardHead.js +76 -0
- package/build/system/Cards/CreationCard/index.d.ts +28 -0
- package/build/system/Cards/CreationCard/index.js +124 -0
- package/build/system/Cards/MultiMediaCard/index.d.ts +9 -0
- package/build/system/Cards/MultiMediaCard/index.js +130 -0
- package/build/system/Cards/Styles/Content.d.ts +3 -0
- package/build/system/Cards/Styles/Content.js +40 -0
- package/build/system/Cards/Styles/Head.d.ts +3 -0
- package/build/system/Cards/Styles/Head.js +45 -0
- package/build/system/Cards/Styles/Headicons.d.ts +5 -0
- package/build/system/Cards/Styles/Headicons.js +121 -0
- package/build/system/Cards/Styles/Image.d.ts +5 -0
- package/build/system/Cards/Styles/Image.js +24 -0
- package/build/system/Cards/Styles/Likes.d.ts +5 -0
- package/build/system/Cards/Styles/Likes.js +53 -0
- package/build/system/Cards/Styles/MultiHead.d.ts +3 -0
- package/build/system/Cards/Styles/MultiHead.js +44 -0
- package/build/system/Cards/Styles/Video.d.ts +3 -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.d.ts +8 -0
- package/build/system/DropDown/index.js +65 -0
- package/build/system/Filters/helpers.d.ts +6 -0
- package/build/system/Filters/helpers.js +8 -0
- 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.d.ts +1 -0
- package/build/system/Forms/Checkbox/Checkbox.test.js +76 -0
- package/build/system/Forms/Checkbox/index.d.ts +22 -0
- package/build/system/Forms/Checkbox/index.js +64 -0
- package/build/system/Forms/DatePicker/index.d.ts +16 -0
- package/build/system/Forms/DatePicker/index.js +137 -0
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.d.ts +1 -0
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +28 -0
- package/build/system/Forms/ErrorLabel/index.d.ts +7 -0
- package/build/system/Forms/ErrorLabel/index.js +25 -0
- package/build/system/Forms/Input/Input.test.d.ts +1 -0
- package/build/system/Forms/Input/Input.test.js +54 -0
- package/build/system/Forms/Input/index.d.ts +16 -0
- package/build/system/Forms/Input/index.js +72 -0
- package/build/system/Forms/Input/type.d.ts +5 -0
- package/build/system/Forms/Input/type.js +2 -0
- package/build/system/Forms/Messages/index.d.ts +67 -0
- package/build/system/Forms/Messages/index.js +69 -0
- package/build/system/Forms/RadioInput/index.d.ts +12 -0
- package/build/system/Forms/RadioInput/index.js +73 -0
- package/build/system/Forms/Selects/DesktopSelect/index.d.ts +12 -0
- package/build/system/Forms/Selects/DesktopSelect/index.js +184 -0
- package/build/system/Forms/Selects/DesktopSelect/type.d.ts +5 -0
- package/build/system/Forms/Selects/DesktopSelect/type.js +2 -0
- package/build/system/Forms/Selects/MobileSelect/index.d.ts +14 -0
- package/build/system/Forms/Selects/MobileSelect/index.js +31 -0
- package/build/system/Forms/TextArea/TextArea.test.d.ts +1 -0
- package/build/system/Forms/TextArea/TextArea.test.js +54 -0
- package/build/system/Forms/TextArea/index.d.ts +14 -0
- package/build/system/Forms/TextArea/index.js +70 -0
- package/build/system/Forms/index.d.ts +5 -0
- package/build/system/Forms/index.js +14 -0
- package/build/system/Img/ExternalImage/index.d.ts +6 -0
- package/build/system/Img/ExternalImage/index.js +22 -0
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.d.ts +1 -0
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +45 -0
- package/build/system/Img/ImageInterceptor/index.d.ts +17 -0
- package/build/system/Img/ImageInterceptor/index.js +60 -0
- package/build/system/Img/Profilepic/index.d.ts +10 -0
- package/build/system/Img/Profilepic/index.js +34 -0
- package/build/system/Img/Userpic/UserPic.test.d.ts +2 -0
- package/build/system/Img/Userpic/UserPic.test.js +65 -0
- package/build/system/Img/Userpic/index.d.ts +9 -0
- package/build/system/Img/Userpic/index.js +84 -0
- package/build/system/Img/index.d.ts +3 -0
- package/build/system/Img/index.js +19 -0
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.d.ts +1 -0
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +52 -0
- package/build/system/Labels/ExperienceLabel/index.d.ts +6 -0
- package/build/system/Labels/ExperienceLabel/index.js +65 -0
- 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/Labels/SkeletonLabel/index.d.ts +2 -0
- package/build/system/Labels/SkeletonLabel/index.js +7 -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 +4 -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/system/theme.d.ts +1 -0
- package/build/system/theme.js +7 -0
- package/build/utils/3d.d.ts +5 -0
- package/build/utils/3d.js +44 -0
- package/build/utils/adaptive/check4k.d.ts +5 -0
- package/build/utils/adaptive/check4k.js +16 -0
- package/build/utils/adaptive/scale.d.ts +9 -0
- package/build/utils/adaptive/scale.js +18 -0
- package/build/utils/auth/index.d.ts +1 -0
- package/build/utils/auth/index.js +9 -0
- package/build/utils/copyBtn/index.d.ts +5 -0
- package/build/utils/copyBtn/index.js +46 -0
- package/build/utils/env/index.d.ts +1 -0
- package/build/utils/env/index.js +5 -0
- package/build/utils/extractItemIds.d.ts +2 -0
- package/build/utils/extractItemIds.js +13 -0
- package/build/utils/getDimensionsImage.d.ts +4 -0
- package/build/utils/getDimensionsImage.js +38 -0
- package/build/utils/getPageSizeAssets.d.ts +5 -0
- package/build/utils/getPageSizeAssets.js +17 -0
- package/build/utils/imageProportionsSize/index.d.ts +5 -0
- package/build/utils/imageProportionsSize/index.js +23 -0
- package/build/utils/screen/index.d.ts +18 -0
- package/build/utils/screen/index.js +87 -0
- package/build/utils/seacrhTabs.d.ts +4 -0
- package/build/utils/seacrhTabs.js +17 -0
- package/build/utils/ssrFunctions/index.d.ts +17 -0
- package/build/utils/ssrFunctions/index.js +33 -0
- package/build/utils/ui/index.d.ts +8 -0
- package/build/utils/ui/index.js +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { identitySchema as schema } from '@ludo.ninja/api';
|
|
2
|
+
declare const useSaveEmailOfJoiner: () => {
|
|
3
|
+
saveEmailOfJoiner: ({ email, isSubscribed, }: schema.IMutationSaveEmailOfJoinerArgs) => Promise<import("@apollo/client").FetchResult<schema.ISaveEmailOfJoinerMutation>>;
|
|
4
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default useSaveEmailOfJoiner;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("@ludo.ninja/api");
|
|
4
|
+
const data_1 = require("@ludo.ninja/ui/build/system/Alert/data");
|
|
5
|
+
const ui_1 = require("@/store/ui");
|
|
6
|
+
const useSaveEmailOfJoiner = () => {
|
|
7
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
8
|
+
const [mutate, { error, loading }] = api_1.identitySchema.useSaveEmailOfJoinerMutation({
|
|
9
|
+
context: {
|
|
10
|
+
uri: api_1.hosts.identityHost,
|
|
11
|
+
},
|
|
12
|
+
onCompleted: () => {
|
|
13
|
+
openAlert({
|
|
14
|
+
...data_1.alertSuccess,
|
|
15
|
+
caption: 'Success!',
|
|
16
|
+
text: 'You subscribed',
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
onError: (err) => {
|
|
20
|
+
openAlert({
|
|
21
|
+
...data_1.alertError,
|
|
22
|
+
caption: err.message,
|
|
23
|
+
text: '',
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
return { saveEmailOfJoiner, error, loading };
|
|
28
|
+
async function saveEmailOfJoiner({ email, isSubscribed, }) {
|
|
29
|
+
return mutate({
|
|
30
|
+
variables: { email, isSubscribed },
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.default = useSaveEmailOfJoiner;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const useUnfollowProfile: (followingUserId: string) => {
|
|
2
|
+
unfollowProfile: (options?: import("@apollo/client").MutationFunctionOptions<any, import("@apollo/client").OperationVariables, {
|
|
3
|
+
uri: string;
|
|
4
|
+
}, import("@apollo/client").ApolloCache<any>> | undefined) => Promise<import("@apollo/client").FetchResult<any>>;
|
|
5
|
+
isUnFollowedProfile: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default useUnfollowProfile;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const api_1 = require("@ludo.ninja/api");
|
|
6
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
7
|
+
const ui_1 = require("@/store/ui");
|
|
8
|
+
const UNFOLLOW_PROFILE_MUTATION = (0, client_1.gql) `
|
|
9
|
+
mutation UnfollowProfile($followingUserId: ID!) {
|
|
10
|
+
unfollowProfile(followingUserId: $followingUserId)
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
const useUnfollowProfile = (followingUserId) => {
|
|
14
|
+
const [isUnFollowedProfile, setIsUnFollowed] = (0, react_1.useState)(false);
|
|
15
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
16
|
+
const [unfollowProfile, {}] = (0, client_1.useMutation)(UNFOLLOW_PROFILE_MUTATION, {
|
|
17
|
+
variables: { followingUserId },
|
|
18
|
+
context: {
|
|
19
|
+
uri: api_1.hosts.identityHost,
|
|
20
|
+
},
|
|
21
|
+
onCompleted: ({ unfollowProfile }) => {
|
|
22
|
+
setIsUnFollowed(unfollowProfile);
|
|
23
|
+
openAlert({
|
|
24
|
+
type: type_1.alertVariants.success,
|
|
25
|
+
caption: 'You successfully unsubscribed!',
|
|
26
|
+
text: '',
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
onError: (err) => {
|
|
30
|
+
openAlert({
|
|
31
|
+
type: type_1.alertVariants.error,
|
|
32
|
+
caption: err.message,
|
|
33
|
+
});
|
|
34
|
+
setIsUnFollowed(false);
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
return { unfollowProfile, isUnFollowedProfile };
|
|
38
|
+
};
|
|
39
|
+
exports.default = useUnfollowProfile;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
|
+
import { identitySchema as schema } from '@ludo.ninja/api';
|
|
3
|
+
import { ProfileEntity } from '@ludo.ninja/core';
|
|
4
|
+
declare const prefetchProfile: ({ userId }: schema.IQueryFetchProfileArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
5
|
+
data: {
|
|
6
|
+
fetchProfile: null;
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
declare const useFetchProfile: ({ userId }: schema.IQueryFetchProfileArgs, prefetchedProfile: ProfileEntity | null) => {
|
|
10
|
+
refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
11
|
+
data: any;
|
|
12
|
+
clientProfileData: ProfileEntity | null;
|
|
13
|
+
clientProfileLoading: boolean;
|
|
14
|
+
clientProfileError: import("@apollo/client").ApolloError | undefined;
|
|
15
|
+
};
|
|
16
|
+
export { prefetchProfile, useFetchProfile };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useFetchProfile = exports.prefetchProfile = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const client_1 = require("@apollo/client");
|
|
6
|
+
const api_1 = require("@ludo.ninja/api");
|
|
7
|
+
const core_1 = require("@ludo.ninja/core");
|
|
8
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
9
|
+
const store_1 = require("@/modules/user/store");
|
|
10
|
+
const ui_1 = require("@/store/ui");
|
|
11
|
+
const prefetchProfile = ({ userId }, apolloClient) => {
|
|
12
|
+
return apolloClient
|
|
13
|
+
.query({
|
|
14
|
+
query: api_1.identitySchema.FetchProfileDocument,
|
|
15
|
+
variables: { userId },
|
|
16
|
+
context: { uri: api_1.hosts.serverIdentityHost },
|
|
17
|
+
fetchPolicy: 'network-only',
|
|
18
|
+
})
|
|
19
|
+
.catch(() => {
|
|
20
|
+
return {
|
|
21
|
+
data: { fetchProfile: null },
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
exports.prefetchProfile = prefetchProfile;
|
|
26
|
+
const useFetchProfile = ({ userId }, prefetchedProfile) => {
|
|
27
|
+
const [profile, setProfile] = (0, react_1.useState)(prefetchedProfile);
|
|
28
|
+
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
29
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
30
|
+
const { profileData, isLoadingProfileData, user } = (0, store_1.useUserStore)((state) => ({
|
|
31
|
+
profileData: state.profileData,
|
|
32
|
+
isLoadingProfileData: state.isLoadingProfileData,
|
|
33
|
+
user: state.user,
|
|
34
|
+
}));
|
|
35
|
+
const [fetchProfile, { data, error, refetch }] = (0, client_1.useLazyQuery)(api_1.identitySchema.FetchProfileDocument, {
|
|
36
|
+
variables: { userId },
|
|
37
|
+
context: {
|
|
38
|
+
uri: api_1.hosts.identityHost,
|
|
39
|
+
},
|
|
40
|
+
onCompleted: ({ fetchProfile }) => {
|
|
41
|
+
setProfile(new core_1.ProfileEntity(fetchProfile));
|
|
42
|
+
setIsLoading(false);
|
|
43
|
+
},
|
|
44
|
+
onError: (err) => {
|
|
45
|
+
openAlert({
|
|
46
|
+
type: type_1.alertVariants.error,
|
|
47
|
+
caption: err.message,
|
|
48
|
+
});
|
|
49
|
+
setProfile(null);
|
|
50
|
+
setIsLoading(false);
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
(0, react_1.useEffect)(() => {
|
|
54
|
+
if (!prefetchedProfile) {
|
|
55
|
+
if (userId === user?.userId) {
|
|
56
|
+
if (!isLoadingProfileData && !profileData) {
|
|
57
|
+
setProfile(null);
|
|
58
|
+
setIsLoading(true);
|
|
59
|
+
fetchProfile();
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
setProfile(profileData);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
setProfile(null);
|
|
67
|
+
setIsLoading(true);
|
|
68
|
+
fetchProfile();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, [isLoadingProfileData, profileData, userId]);
|
|
72
|
+
return {
|
|
73
|
+
refetch,
|
|
74
|
+
data,
|
|
75
|
+
clientProfileData: profile,
|
|
76
|
+
clientProfileLoading: isLoading,
|
|
77
|
+
clientProfileError: error,
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
exports.useFetchProfile = useFetchProfile;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { identitySchema as schema } from '@ludo.ninja/api';
|
|
2
|
+
declare const useFetchUserWallets: ({ userId }: schema.IQueryFetchUserWalletsArgs) => {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
5
|
+
userWallets: schema.IWallet[];
|
|
6
|
+
};
|
|
7
|
+
export default useFetchUserWallets;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("@ludo.ninja/api");
|
|
4
|
+
const useFetchUserWallets = ({ userId }) => {
|
|
5
|
+
const { loading, error, data } = api_1.identitySchema.useFetchUserWalletsQuery({
|
|
6
|
+
variables: { userId },
|
|
7
|
+
context: {
|
|
8
|
+
uri: api_1.hosts.identityHost,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
loading,
|
|
13
|
+
error,
|
|
14
|
+
userWallets: data?.fetchUserWallets
|
|
15
|
+
?.slice()
|
|
16
|
+
.sort((wallet, nextWallet) => Number(nextWallet?.mainWallet) - Number(wallet?.mainWallet)) || null,
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
exports.default = useFetchUserWallets;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const useDeleteUserpic: () => {
|
|
2
|
+
deleteUserpic: (options?: import("@apollo/client").MutationFunctionOptions<any, import("@apollo/client").OperationVariables, {
|
|
3
|
+
uri: string;
|
|
4
|
+
}, import("@apollo/client").ApolloCache<any>> | undefined) => Promise<import("@apollo/client").FetchResult<any>>;
|
|
5
|
+
};
|
|
6
|
+
export default useDeleteUserpic;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const client_1 = require("@apollo/client");
|
|
4
|
+
const api_1 = require("@ludo.ninja/api");
|
|
5
|
+
const DELETE_USERPIC_MUTATION = (0, client_1.gql) `
|
|
6
|
+
mutation DeleteUserpic {
|
|
7
|
+
deleteUserpic
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
const useDeleteUserpic = () => {
|
|
11
|
+
const [deleteUserpic] = (0, client_1.useMutation)(DELETE_USERPIC_MUTATION, {
|
|
12
|
+
context: {
|
|
13
|
+
uri: api_1.hosts.mediasHost,
|
|
14
|
+
},
|
|
15
|
+
refetchQueries: [api_1.mediasSchema.FetchUserpicDocument],
|
|
16
|
+
// onError: (err) => console.log(err),
|
|
17
|
+
});
|
|
18
|
+
return { deleteUserpic };
|
|
19
|
+
};
|
|
20
|
+
exports.default = useDeleteUserpic;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const client_1 = require("@apollo/client");
|
|
4
|
+
const api_1 = require("@ludo.ninja/api");
|
|
5
|
+
const UPLOAD_USERPIC_MUTATION = (0, client_1.gql) `
|
|
6
|
+
mutation UploadUserpic($file: Upload!) {
|
|
7
|
+
uploadUserpic(file: $file)
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
const useUploadUserpic = () => {
|
|
11
|
+
const [mutate] = (0, client_1.useMutation)(UPLOAD_USERPIC_MUTATION, {
|
|
12
|
+
context: {
|
|
13
|
+
uri: api_1.hosts.mediasHost,
|
|
14
|
+
},
|
|
15
|
+
refetchQueries: [api_1.mediasSchema.FetchUserpicDocument],
|
|
16
|
+
// onError: (err) => {
|
|
17
|
+
// throw new Error(err as string)
|
|
18
|
+
// },
|
|
19
|
+
});
|
|
20
|
+
return { uploadUserpic };
|
|
21
|
+
async function uploadUserpic(file) {
|
|
22
|
+
return await mutate({
|
|
23
|
+
variables: { file },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.default = useUploadUserpic;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { mediasSchema as schema } from '@ludo.ninja/api';
|
|
2
|
+
declare const useFetchUserpic: () => {
|
|
3
|
+
data: schema.IFetchUserpicQuery | undefined;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
6
|
+
refetch: (variables?: Partial<schema.Exact<{
|
|
7
|
+
userId: string;
|
|
8
|
+
}>> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<schema.IFetchUserpicQuery>>;
|
|
9
|
+
load: (userId: string) => void;
|
|
10
|
+
userPic: string | null;
|
|
11
|
+
};
|
|
12
|
+
export default useFetchUserpic;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const api_1 = require("@ludo.ninja/api");
|
|
5
|
+
const env_1 = require("@/store/env");
|
|
6
|
+
const useFetchUserpic = () => {
|
|
7
|
+
const getMediaENVDomain = (0, env_1.useEnvStore)((state) => state.getMediaDomain);
|
|
8
|
+
const [userPic, setUserPic] = (0, react_1.useState)(null);
|
|
9
|
+
const [fetchUserpic, { data, error, loading, refetch }] = api_1.mediasSchema.useFetchUserpicLazyQuery({
|
|
10
|
+
context: {
|
|
11
|
+
uri: api_1.hosts.mediasHost,
|
|
12
|
+
},
|
|
13
|
+
onCompleted: ({ fetchUserpic }) => {
|
|
14
|
+
if (fetchUserpic) {
|
|
15
|
+
setUserPic(`${getMediaENVDomain()}/userpics/${fetchUserpic}`);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
setUserPic(null);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
onError: () => {
|
|
22
|
+
setUserPic(null);
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
function load(userId) {
|
|
26
|
+
fetchUserpic({
|
|
27
|
+
variables: { userId },
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
data,
|
|
32
|
+
loading,
|
|
33
|
+
error,
|
|
34
|
+
refetch,
|
|
35
|
+
load,
|
|
36
|
+
userPic,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.default = useFetchUserpic;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDislikeOpportunity = void 0;
|
|
4
|
+
const api_1 = require("@ludo.ninja/api");
|
|
5
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
6
|
+
const ui_1 = require("@/store/ui");
|
|
7
|
+
const useDislikeOpportunity = () => {
|
|
8
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
9
|
+
const [mutate] = api_1.opportunitiesSchema.useDislikeOpportunityMutation({
|
|
10
|
+
context: {
|
|
11
|
+
uri: api_1.hosts.opportunitiesHost,
|
|
12
|
+
},
|
|
13
|
+
// onCompleted: () => {
|
|
14
|
+
// },
|
|
15
|
+
onError: (err) => {
|
|
16
|
+
openAlert({
|
|
17
|
+
type: type_1.alertVariants.error,
|
|
18
|
+
caption: err.message,
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
async function dislikeOpportunityAction({ opportunityId, }) {
|
|
23
|
+
await mutate({
|
|
24
|
+
variables: { opportunityId },
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return { dislikeOpportunityAction };
|
|
28
|
+
};
|
|
29
|
+
exports.useDislikeOpportunity = useDislikeOpportunity;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useLikeOpportunity = void 0;
|
|
4
|
+
const api_1 = require("@ludo.ninja/api");
|
|
5
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
6
|
+
const ui_1 = require("@/store/ui");
|
|
7
|
+
const useLikeOpportunity = () => {
|
|
8
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
9
|
+
const [mutate] = api_1.opportunitiesSchema.useLikeOpportunityMutation({
|
|
10
|
+
context: {
|
|
11
|
+
uri: api_1.hosts.opportunitiesHost,
|
|
12
|
+
},
|
|
13
|
+
// onCompleted: () => {
|
|
14
|
+
// },
|
|
15
|
+
onError: (err) => {
|
|
16
|
+
openAlert({
|
|
17
|
+
type: type_1.alertVariants.error,
|
|
18
|
+
caption: err.message,
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
async function likeOpportunityAction({ opportunityId, }) {
|
|
23
|
+
await mutate({
|
|
24
|
+
variables: { opportunityId },
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return { likeOpportunityAction };
|
|
28
|
+
};
|
|
29
|
+
exports.useLikeOpportunity = useLikeOpportunity;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("@ludo.ninja/api");
|
|
4
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
5
|
+
const ui_1 = require("@/store/ui");
|
|
6
|
+
const useOpenOpportunity = () => {
|
|
7
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
8
|
+
const [mutate] = api_1.opportunitiesSchema.useOpenOpportunityMutation({
|
|
9
|
+
context: {
|
|
10
|
+
uri: api_1.hosts.opportunitiesHost,
|
|
11
|
+
},
|
|
12
|
+
// onCompleted: () => {
|
|
13
|
+
// },
|
|
14
|
+
onError: (err) => {
|
|
15
|
+
openAlert({
|
|
16
|
+
type: type_1.alertVariants.error,
|
|
17
|
+
caption: err.message,
|
|
18
|
+
});
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
async function openOpportunityAction({ opportunityId, }) {
|
|
22
|
+
await mutate({
|
|
23
|
+
variables: { opportunityId },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return { openOpportunityAction };
|
|
27
|
+
};
|
|
28
|
+
exports.default = useOpenOpportunity;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const useGetOpportunities: () => {
|
|
2
|
+
opportunities: import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").Maybe<Pick<import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").IOpportunityV2, "collection" | "liked" | "media" | "name" | "views" | "createdAt" | "blockchain" | "description" | "opportunityId" | "brandId" | "categoryId" | "opportunityStatus" | "opportunityType" | "notificationType" | "brandName" | "brandDescription" | "brandMedia" | "brandUrl" | "brandIndustry" | "categoryName" | "ludoUrl" | "projectUrl" | "activeFrom" | "activeUntil" | "minXpLevel" | "maxXpLevel" | "minRank" | "maxRank" | "reportLink" | "clicks" | "minWalletValue" | "maxWalletValue" | "shareLink">>[] | undefined;
|
|
3
|
+
isLoadingOpportunities: boolean;
|
|
4
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useGetOpportunities = void 0;
|
|
4
|
+
const api_1 = require("@ludo.ninja/api");
|
|
5
|
+
const schema_1 = require("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema");
|
|
6
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
7
|
+
const ui_1 = require("@/store/ui");
|
|
8
|
+
const useGetOpportunities = () => {
|
|
9
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
10
|
+
const { data, loading } = (0, schema_1.useFetchOpportunitiesForProfileQuery)({
|
|
11
|
+
context: {
|
|
12
|
+
uri: api_1.hosts.opportunitiesHost,
|
|
13
|
+
},
|
|
14
|
+
onError: () => {
|
|
15
|
+
openAlert({
|
|
16
|
+
type: type_1.alertVariants.error,
|
|
17
|
+
caption: 'Oops, something went wrong.',
|
|
18
|
+
});
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
return {
|
|
22
|
+
opportunities: data?.fetchOpportunitiesForProfile,
|
|
23
|
+
isLoadingOpportunities: loading,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
exports.useGetOpportunities = useGetOpportunities;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
|
+
import { preferencesSchema as schema } from '@ludo.ninja/api';
|
|
3
|
+
export declare const prefetchSearchResultSelections: (apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<schema.IFetchSearchResultSelectionsQuery> | {
|
|
4
|
+
data: {
|
|
5
|
+
fetchSearchResultSelections: null;
|
|
6
|
+
};
|
|
7
|
+
}>;
|
|
8
|
+
export declare const useFetchSearchResultSelections: () => {
|
|
9
|
+
resultTimeSelectionsLoading: boolean;
|
|
10
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
11
|
+
searchResultSelections: {
|
|
12
|
+
typeSelections: schema.Maybe<Pick<schema.ISelection, "label"> & {
|
|
13
|
+
id: string;
|
|
14
|
+
}>[];
|
|
15
|
+
blockchainSelections: schema.Maybe<Pick<schema.ISelection, "label"> & {
|
|
16
|
+
id: string;
|
|
17
|
+
}>[];
|
|
18
|
+
categorySelections: schema.Maybe<Pick<schema.ISelection, "label"> & {
|
|
19
|
+
id: string;
|
|
20
|
+
}>[];
|
|
21
|
+
timeSelections: schema.Maybe<Pick<schema.ISelection, "label"> & {
|
|
22
|
+
id: string;
|
|
23
|
+
}>[];
|
|
24
|
+
statusSelections: schema.Maybe<Pick<schema.ISelection, "label"> & {
|
|
25
|
+
id: string;
|
|
26
|
+
}>[];
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useFetchSearchResultSelections = exports.prefetchSearchResultSelections = void 0;
|
|
4
|
+
const api_1 = require("@ludo.ninja/api");
|
|
5
|
+
const context = {
|
|
6
|
+
uri: api_1.hosts.preferencesHost,
|
|
7
|
+
};
|
|
8
|
+
const prefetchSearchResultSelections = (apolloClient) => {
|
|
9
|
+
return apolloClient
|
|
10
|
+
.query({
|
|
11
|
+
query: api_1.preferencesSchema.FetchSearchResultSelectionsDocument,
|
|
12
|
+
context,
|
|
13
|
+
fetchPolicy: 'no-cache',
|
|
14
|
+
})
|
|
15
|
+
.catch(() => {
|
|
16
|
+
return {
|
|
17
|
+
data: { fetchSearchResultSelections: null },
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
exports.prefetchSearchResultSelections = prefetchSearchResultSelections;
|
|
22
|
+
const useFetchSearchResultSelections = () => {
|
|
23
|
+
const { error, loading, data } = api_1.preferencesSchema.useFetchSearchResultSelectionsQuery({
|
|
24
|
+
context,
|
|
25
|
+
fetchPolicy: 'no-cache',
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
resultTimeSelectionsLoading: loading,
|
|
29
|
+
error,
|
|
30
|
+
searchResultSelections: data?.fetchSearchResultSelections,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
exports.useFetchSearchResultSelections = useFetchSearchResultSelections;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
|
+
import * as querystring from 'querystring';
|
|
4
|
+
import { ICollectionFilterInput, ICreationFilterInput } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
5
|
+
export interface DefaultsCollectionsSearchPageProps extends ICollectionFilterInput {
|
|
6
|
+
term: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DefaultsNftSearchPageProps extends ICreationFilterInput {
|
|
9
|
+
term: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getQueryData: (query: querystring.ParsedUrlQuery, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<{
|
|
12
|
+
nft(): DefaultsNftSearchPageProps;
|
|
13
|
+
collections(): DefaultsCollectionsSearchPageProps;
|
|
14
|
+
} | null>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getQueryData = void 0;
|
|
4
|
+
const index_1 = require("@/api/server-preferences/queries/fetchSearchResultSelections/index");
|
|
5
|
+
const helpers_1 = require("@/system/Filters/helpers");
|
|
6
|
+
const getQueryData = async (query, apolloClient) => {
|
|
7
|
+
const { term, type, time, blockchain, category, status } = query;
|
|
8
|
+
const { data: { fetchSearchResultSelections }, } = await (0, index_1.prefetchSearchResultSelections)(apolloClient);
|
|
9
|
+
// const res = await prefetchSearchResultSelections(apolloClient);
|
|
10
|
+
// console.log(JSON.stringify(res, null, ' '));
|
|
11
|
+
if (!fetchSearchResultSelections) {
|
|
12
|
+
// redirect to home page if error fetch selections
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
const defaults = {
|
|
16
|
+
term: term ? term : '',
|
|
17
|
+
time: (0, helpers_1.findDefaultFilterValue)(time, fetchSearchResultSelections.timeSelections, fetchSearchResultSelections.timeSelections[0]?.id),
|
|
18
|
+
blockchain: (0, helpers_1.findDefaultFilterValue)(blockchain, fetchSearchResultSelections.blockchainSelections, fetchSearchResultSelections.blockchainSelections[0]?.id),
|
|
19
|
+
category: (0, helpers_1.findDefaultFilterValue)(category, fetchSearchResultSelections.categorySelections, fetchSearchResultSelections.categorySelections[0]?.id),
|
|
20
|
+
status: (0, helpers_1.findDefaultFilterValue)(status, fetchSearchResultSelections.statusSelections, fetchSearchResultSelections.statusSelections[0]?.id),
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
nft() {
|
|
24
|
+
return {
|
|
25
|
+
...defaults,
|
|
26
|
+
type: (0, helpers_1.findDefaultFilterValue)(type, fetchSearchResultSelections.typeSelections, fetchSearchResultSelections.typeSelections[0]?.id),
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
collections() {
|
|
30
|
+
return defaults;
|
|
31
|
+
},
|
|
32
|
+
// gallery() {
|
|
33
|
+
// return;
|
|
34
|
+
// },
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
exports.getQueryData = getQueryData;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
|
+
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
3
|
+
import CreationEntity from '@/dto/CreationEntity';
|
|
4
|
+
export declare const prefetchAllCreations: ({ page }: schema.IQueryFetchAllCreationsArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
5
|
+
data: {
|
|
6
|
+
fetchAllCreations: null;
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
export declare const useFetchAllCreations: ({ page, }: schema.IQueryFetchAllCreationsArgs) => {
|
|
10
|
+
loadMore: (pageToken: string | null) => Promise<void>;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
refetchQuery: () => Promise<void>;
|
|
13
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
14
|
+
allCreations: CreationEntity[];
|
|
15
|
+
nextPageToken: string | null;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: {
|
|
18
|
+
useFetchAllCreations: ({ page, }: schema.IQueryFetchAllCreationsArgs) => {
|
|
19
|
+
loadMore: (pageToken: string | null) => Promise<void>;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
refetchQuery: () => Promise<void>;
|
|
22
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
23
|
+
allCreations: CreationEntity[];
|
|
24
|
+
nextPageToken: string | null;
|
|
25
|
+
};
|
|
26
|
+
prefetchAllCreations: ({ page }: schema.IQueryFetchAllCreationsArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
27
|
+
data: {
|
|
28
|
+
fetchAllCreations: null;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|