@ludo.ninja/components 2.0.0 → 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/index.js +1 -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,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare const FontsInitializeLayout: ({ children }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const GlobalFontsFallback: import("styled-components").RuleSet<object>;
|
|
6
|
+
export default FontsInitializeLayout;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlobalFontsFallback = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const google_1 = require("next/font/google");
|
|
7
|
+
const styled_components_1 = require("styled-components");
|
|
8
|
+
const vars_1 = require("@/fonts/vars");
|
|
9
|
+
// const poppinsFont = Poppins({
|
|
10
|
+
// subsets: ['latin'],
|
|
11
|
+
// style: ['normal'],
|
|
12
|
+
// weight: ['200', '300', '400', '500', '600', '700', '800'],
|
|
13
|
+
// });
|
|
14
|
+
const fallbackPoppins = 'LocalPoppinsFont, sans-serif';
|
|
15
|
+
const fallbackDMSans = 'LocalDMSansFont';
|
|
16
|
+
const poppinsFont = (0, google_1.Poppins)({
|
|
17
|
+
subsets: ['latin'],
|
|
18
|
+
weight: ['200', '300', '400', '500', '600', '700', '800'],
|
|
19
|
+
variable: '--PoppinsFont', //poppinsFontVarCss.variable
|
|
20
|
+
fallback: ['LocalPoppinsFont, sans-serif'], // fallbackPoppins
|
|
21
|
+
});
|
|
22
|
+
const dmsansFont = (0, google_1.DM_Sans)({
|
|
23
|
+
subsets: ['latin'],
|
|
24
|
+
style: ['normal', 'italic'],
|
|
25
|
+
weight: ['400', '500', '600', '700'],
|
|
26
|
+
variable: '--DMSansFont', //dmsansFontVarCss.variable
|
|
27
|
+
fallback: ['LocalDMSansFont'], // fallbackDMSans
|
|
28
|
+
});
|
|
29
|
+
const FontsInitializeLayout = ({ children }) => {
|
|
30
|
+
(0, react_1.useEffect)(() => {
|
|
31
|
+
// update fonts to react portal elements
|
|
32
|
+
document.body.classList.add(poppinsFont.variable);
|
|
33
|
+
document.body.classList.add(dmsansFont.variable);
|
|
34
|
+
document.body.style.fontFamily = vars_1.poppinsFontVarCss.css; // initial font family
|
|
35
|
+
}, []);
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)("main", { style: { fontFamily: vars_1.poppinsFontVarCss.css }, className: `${dmsansFont.variable} ${poppinsFont.variable}`, children: children }));
|
|
37
|
+
};
|
|
38
|
+
exports.GlobalFontsFallback = (0, styled_components_1.css) `
|
|
39
|
+
/* poppins-200 - latin */
|
|
40
|
+
@font-face {
|
|
41
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
42
|
+
font-family: ${fallbackPoppins};
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 200;
|
|
45
|
+
src: url('/fonts/poppins-v21-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
46
|
+
}
|
|
47
|
+
/* poppins-300 - latin */
|
|
48
|
+
@font-face {
|
|
49
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
50
|
+
font-family: ${fallbackPoppins};
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 300;
|
|
53
|
+
src: url('/fonts/poppins-v21-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
54
|
+
}
|
|
55
|
+
/* poppins-regular - latin */
|
|
56
|
+
@font-face {
|
|
57
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
58
|
+
font-family: ${fallbackPoppins};
|
|
59
|
+
font-style: normal;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
src: url('/fonts/poppins-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
62
|
+
}
|
|
63
|
+
/* poppins-500 - latin */
|
|
64
|
+
@font-face {
|
|
65
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
66
|
+
font-family: ${fallbackPoppins};
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
src: url('/fonts/poppins-v21-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
70
|
+
}
|
|
71
|
+
/* poppins-600 - latin */
|
|
72
|
+
@font-face {
|
|
73
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
74
|
+
font-family: ${fallbackPoppins};
|
|
75
|
+
font-style: normal;
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
src: url('/fonts/poppins-v21-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
78
|
+
}
|
|
79
|
+
/* poppins-700 - latin */
|
|
80
|
+
@font-face {
|
|
81
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
82
|
+
font-family: ${fallbackPoppins};
|
|
83
|
+
font-style: normal;
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
src: url('/fonts/poppins-v21-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
86
|
+
}
|
|
87
|
+
/* poppins-800 - latin */
|
|
88
|
+
@font-face {
|
|
89
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
90
|
+
font-family: ${fallbackPoppins};
|
|
91
|
+
font-style: normal;
|
|
92
|
+
font-weight: 800;
|
|
93
|
+
src: url('/fonts/poppins-v21-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
94
|
+
}
|
|
95
|
+
/* dm-sans-regular - latin */
|
|
96
|
+
@font-face {
|
|
97
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
98
|
+
font-family: ${fallbackDMSans};
|
|
99
|
+
font-style: normal;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
src: url('/fonts/dm-sans-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
102
|
+
}
|
|
103
|
+
/* dm-sans-italic - latin */
|
|
104
|
+
@font-face {
|
|
105
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
106
|
+
font-family: ${fallbackDMSans};
|
|
107
|
+
font-style: italic;
|
|
108
|
+
font-weight: 400;
|
|
109
|
+
src: url('/fonts/dm-sans-v15-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
110
|
+
}
|
|
111
|
+
/* dm-sans-500 - latin */
|
|
112
|
+
@font-face {
|
|
113
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
114
|
+
font-family: ${fallbackDMSans};
|
|
115
|
+
font-style: normal;
|
|
116
|
+
font-weight: 500;
|
|
117
|
+
src: url('/fonts/dm-sans-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
118
|
+
}
|
|
119
|
+
/* dm-sans-500italic - latin */
|
|
120
|
+
@font-face {
|
|
121
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
122
|
+
font-family: ${fallbackDMSans};
|
|
123
|
+
font-style: italic;
|
|
124
|
+
font-weight: 500;
|
|
125
|
+
src: url('/fonts/dm-sans-v15-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
126
|
+
}
|
|
127
|
+
/* dm-sans-600 - latin */
|
|
128
|
+
@font-face {
|
|
129
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
130
|
+
font-family: ${fallbackDMSans};
|
|
131
|
+
font-style: normal;
|
|
132
|
+
font-weight: 600;
|
|
133
|
+
src: url('/fonts/dm-sans-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
134
|
+
}
|
|
135
|
+
/* dm-sans-600italic - latin */
|
|
136
|
+
@font-face {
|
|
137
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
138
|
+
font-family: ${fallbackDMSans};
|
|
139
|
+
font-style: italic;
|
|
140
|
+
font-weight: 600;
|
|
141
|
+
src: url('/fonts/dm-sans-v15-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
142
|
+
}
|
|
143
|
+
/* dm-sans-700 - latin */
|
|
144
|
+
@font-face {
|
|
145
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
146
|
+
font-family: ${fallbackDMSans};
|
|
147
|
+
font-style: normal;
|
|
148
|
+
font-weight: 700;
|
|
149
|
+
src: url('/fonts/dm-sans-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
150
|
+
}
|
|
151
|
+
/* dm-sans-700italic - latin */
|
|
152
|
+
@font-face {
|
|
153
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
154
|
+
font-family: ${fallbackDMSans};
|
|
155
|
+
font-style: italic;
|
|
156
|
+
font-weight: 700;
|
|
157
|
+
src: url('/fonts/dm-sans-v15-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
158
|
+
}
|
|
159
|
+
`;
|
|
160
|
+
exports.default = FontsInitializeLayout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { dmsansFontVarCss, poppinsFontVarCss, } from '@ludo.ninja/ui/build/fonts/vars';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.poppinsFontVarCss = exports.dmsansFontVarCss = void 0;
|
|
4
|
+
var vars_1 = require("@ludo.ninja/ui/build/fonts/vars");
|
|
5
|
+
Object.defineProperty(exports, "dmsansFontVarCss", { enumerable: true, get: function () { return vars_1.dmsansFontVarCss; } });
|
|
6
|
+
Object.defineProperty(exports, "poppinsFontVarCss", { enumerable: true, get: function () { return vars_1.poppinsFontVarCss; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useApollo = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const graphql_1 = require("@/api/graphql");
|
|
6
|
+
const api_1 = require("@ludo.ninja/api");
|
|
7
|
+
const env_1 = require("@/store/env");
|
|
8
|
+
function useApollo(pageProps) {
|
|
9
|
+
const NEXT_PUBLIC_ENV_DOMAIN = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_ENV_DOMAIN);
|
|
10
|
+
const state = pageProps[graphql_1.APOLLO_STATE_PROP_NAME];
|
|
11
|
+
return (0, react_1.useMemo)(() => api_1.graphqlConfig.initializeApollo(state, NEXT_PUBLIC_ENV_DOMAIN), [state]);
|
|
12
|
+
}
|
|
13
|
+
exports.useApollo = useApollo;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const router_1 = require("next/router");
|
|
5
|
+
const media_1 = require("@/store/media");
|
|
6
|
+
const useMultiAudio = () => {
|
|
7
|
+
const tracks = (0, media_1.useMediaStore)((state) => state.audioTracks);
|
|
8
|
+
const setTracks = (0, media_1.useMediaStore)((state) => state.setAudioTracks);
|
|
9
|
+
const router = (0, router_1.useRouter)();
|
|
10
|
+
(0, react_1.useEffect)(() => {
|
|
11
|
+
const ifExist = tracks.some((track) => {
|
|
12
|
+
return track.playing;
|
|
13
|
+
});
|
|
14
|
+
if (ifExist) {
|
|
15
|
+
const newTracks = [...tracks].map((track) => {
|
|
16
|
+
track.playing = false;
|
|
17
|
+
track.audio.currentTime = 0;
|
|
18
|
+
return track;
|
|
19
|
+
});
|
|
20
|
+
setTracks(newTracks);
|
|
21
|
+
}
|
|
22
|
+
}, [router]);
|
|
23
|
+
(0, react_1.useEffect)(() => {
|
|
24
|
+
tracks.map((track) => {
|
|
25
|
+
track.playing ? track.audio.play() : track.audio.pause();
|
|
26
|
+
});
|
|
27
|
+
}, [tracks]);
|
|
28
|
+
(0, react_1.useEffect)(() => {
|
|
29
|
+
tracks.forEach((source, i) => {
|
|
30
|
+
source.audio.addEventListener('ended', () => {
|
|
31
|
+
const newTracks = [...tracks];
|
|
32
|
+
newTracks[i].playing = false;
|
|
33
|
+
setTracks(newTracks);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
return () => {
|
|
37
|
+
tracks.forEach((source, i) => {
|
|
38
|
+
source.audio.removeEventListener('ended', () => {
|
|
39
|
+
const newTracks = [...tracks];
|
|
40
|
+
newTracks[i].playing = false;
|
|
41
|
+
setTracks(newTracks);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
46
|
+
};
|
|
47
|
+
exports.default = useMultiAudio;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const utils_1 = require("@ludo.ninja/utils");
|
|
5
|
+
const useExtension = () => {
|
|
6
|
+
const [isExtensionInstalled, setIsExtensionInstalled] = (0, react_1.useState)(false);
|
|
7
|
+
const pingExtension = (0, react_1.useCallback)(async () => {
|
|
8
|
+
try {
|
|
9
|
+
const response = (await (0, utils_1.sendEventToExtension)(utils_1.eventsTypes.pingVersion));
|
|
10
|
+
setIsExtensionInstalled(Boolean(response?.version));
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
setIsExtensionInstalled(false);
|
|
14
|
+
}
|
|
15
|
+
}, [setIsExtensionInstalled]);
|
|
16
|
+
(0, react_1.useEffect)(() => {
|
|
17
|
+
pingExtension();
|
|
18
|
+
}, []);
|
|
19
|
+
return {
|
|
20
|
+
isExtensionInstalled,
|
|
21
|
+
openExtension,
|
|
22
|
+
openExtensionChromeStorePage,
|
|
23
|
+
pingExtension,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
exports.default = useExtension;
|
|
27
|
+
const openExtension = () => {
|
|
28
|
+
(0, utils_1.sendEventToExtension)(utils_1.eventsTypes.openExtension);
|
|
29
|
+
};
|
|
30
|
+
const openExtensionChromeStorePage = () => {
|
|
31
|
+
window.open('https://chromewebstore.google.com/detail/ludo-x/fgcmebogmgdheonhhefnblfodobpmfip', '_blank');
|
|
32
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IQueryFetchGalleryV2Args } from '@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema';
|
|
2
|
+
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
|
+
import CreationEntity from '@/dto/CreationEntity';
|
|
4
|
+
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
5
|
+
declare const useGetFavoriteGallaryCreations: ({ galleryId, itemsCount, }: {
|
|
6
|
+
galleryId: string;
|
|
7
|
+
itemsCount: number | null;
|
|
8
|
+
}) => {
|
|
9
|
+
gallery: GalleryEntityV2[] | null;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
creationsList: (CreationEntity | CollectionCreationEntity)[];
|
|
12
|
+
loadingAssets: boolean;
|
|
13
|
+
loadingGallery: boolean;
|
|
14
|
+
loadingCollections: boolean;
|
|
15
|
+
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
16
|
+
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
17
|
+
errorGallery: import("@apollo/client").ApolloError | undefined;
|
|
18
|
+
fetchError: boolean;
|
|
19
|
+
allResults: number | null;
|
|
20
|
+
refetchQueryGalleryCreation: ({ galleryId, }: IQueryFetchGalleryV2Args) => Promise<void>;
|
|
21
|
+
loadMore: () => void;
|
|
22
|
+
};
|
|
23
|
+
export { useGetFavoriteGallaryCreations };
|
|
@@ -0,0 +1,132 @@
|
|
|
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.useGetFavoriteGallaryCreations = void 0;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const client_1 = require("@apollo/client");
|
|
9
|
+
const api_1 = require("@ludo.ninja/api");
|
|
10
|
+
const schema_1 = require("@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema");
|
|
11
|
+
const schema_2 = require("@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema");
|
|
12
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
13
|
+
const ui_1 = require("@/store/ui");
|
|
14
|
+
const CollectionCreationEntity_1 = __importDefault(require("@/dto/Collection/CollectionCreationEntity"));
|
|
15
|
+
const CreationEntity_1 = __importDefault(require("@/dto/CreationEntity"));
|
|
16
|
+
const GalleryEntityV2_1 = __importDefault(require("@/dto/GalleryEntityV2"));
|
|
17
|
+
const useGetUserFevoritesCreations_1 = require("../useGetUserFevoritesCreations");
|
|
18
|
+
const useGetFavoriteGallaryCreations = ({ galleryId, itemsCount, }) => {
|
|
19
|
+
const [gallery, setGallery] = (0, react_1.useState)([]);
|
|
20
|
+
const [assets, setAssets] = (0, react_1.useState)(null);
|
|
21
|
+
const [collections, setCollections] = (0, react_1.useState)(null);
|
|
22
|
+
const [currentPage, setCurrentPage] = (0, react_1.useState)(1);
|
|
23
|
+
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
24
|
+
const [fetchError, setFetchError] = (0, react_1.useState)(false);
|
|
25
|
+
const [allResults, setAllResults] = (0, react_1.useState)(null);
|
|
26
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
27
|
+
const { error: galleryError, loading: galleryLoading, refetch, } = (0, client_1.useQuery)(schema_1.FetchGalleryV2Document, {
|
|
28
|
+
variables: { galleryId },
|
|
29
|
+
context: {
|
|
30
|
+
uri: api_1.hosts.galleriesHost,
|
|
31
|
+
},
|
|
32
|
+
notifyOnNetworkStatusChange: true,
|
|
33
|
+
fetchPolicy: 'no-cache',
|
|
34
|
+
onCompleted: ({ fetchGalleryV2 }) => {
|
|
35
|
+
setGallery([new GalleryEntityV2_1.default(fetchGalleryV2)]);
|
|
36
|
+
setAllResults(fetchGalleryV2.items);
|
|
37
|
+
},
|
|
38
|
+
onError: () => {
|
|
39
|
+
setGallery(null);
|
|
40
|
+
setLoading(false);
|
|
41
|
+
setFetchError(true);
|
|
42
|
+
setAllResults(0);
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
const [fetchAssets, { loading: assetsLoading, error: assetsError }] = (0, client_1.useLazyQuery)(schema_2.FetchAssetsDocument, {
|
|
46
|
+
context: { uri: api_1.hosts.searchHost },
|
|
47
|
+
fetchPolicy: 'no-cache',
|
|
48
|
+
onCompleted: ({ fetchAssets: data }) => {
|
|
49
|
+
setAssets((prevAssets) => [
|
|
50
|
+
...(prevAssets || []),
|
|
51
|
+
...data.map((asset) => new CreationEntity_1.default({
|
|
52
|
+
...asset,
|
|
53
|
+
itemType: 'asset',
|
|
54
|
+
itemId: asset.assetId,
|
|
55
|
+
})),
|
|
56
|
+
]);
|
|
57
|
+
},
|
|
58
|
+
onError: () => {
|
|
59
|
+
openAlert({
|
|
60
|
+
type: type_1.alertVariants.error,
|
|
61
|
+
caption: 'Oops, something went wrong.',
|
|
62
|
+
});
|
|
63
|
+
setAssets([]);
|
|
64
|
+
setFetchError(true);
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
const [fetchCollections, { loading: collectionsLoading, error: collectionsError },] = (0, client_1.useLazyQuery)(schema_2.FetchCollectionsByIdsDocument, {
|
|
68
|
+
context: { uri: api_1.hosts.searchHost },
|
|
69
|
+
fetchPolicy: 'no-cache',
|
|
70
|
+
onCompleted: ({ fetchCollectionsByIds: data }) => {
|
|
71
|
+
setCollections((prevCollections) => [
|
|
72
|
+
...(prevCollections || []),
|
|
73
|
+
...data.map((collection) => new CollectionCreationEntity_1.default(collection, 'collection')),
|
|
74
|
+
]);
|
|
75
|
+
},
|
|
76
|
+
onError: () => {
|
|
77
|
+
openAlert({
|
|
78
|
+
type: type_1.alertVariants.error,
|
|
79
|
+
caption: 'Oops, something went wrong.',
|
|
80
|
+
});
|
|
81
|
+
setCollections([]);
|
|
82
|
+
setFetchError(true);
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
(0, react_1.useEffect)(() => {
|
|
86
|
+
if (gallery && gallery.length > 0) {
|
|
87
|
+
const { assetArray, collectionsArray } = (0, useGetUserFevoritesCreations_1.getMediaForGallery)(gallery, false, currentPage, itemsCount);
|
|
88
|
+
const assetPromise = assetArray.length > 0
|
|
89
|
+
? fetchAssets({ variables: { assetIds: assetArray } })
|
|
90
|
+
: Promise.resolve();
|
|
91
|
+
const collectionsPromise = collectionsArray.length > 0
|
|
92
|
+
? fetchCollections({ variables: { collectionIds: collectionsArray } })
|
|
93
|
+
: Promise.resolve();
|
|
94
|
+
Promise.all([assetPromise, collectionsPromise])
|
|
95
|
+
.then(() => {
|
|
96
|
+
setLoading(false);
|
|
97
|
+
})
|
|
98
|
+
.catch(() => {
|
|
99
|
+
setLoading(false);
|
|
100
|
+
setFetchError(true);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}, [gallery, fetchAssets, fetchCollections, currentPage]);
|
|
104
|
+
async function refetchQueryGalleryCreation({ galleryId, }) {
|
|
105
|
+
await refetch({ galleryId });
|
|
106
|
+
}
|
|
107
|
+
function loadMore() {
|
|
108
|
+
if (!gallery)
|
|
109
|
+
return;
|
|
110
|
+
else {
|
|
111
|
+
setLoading(true);
|
|
112
|
+
setCurrentPage((prevPage) => ++prevPage);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const creations = [...(assets || []), ...(collections || [])];
|
|
116
|
+
return {
|
|
117
|
+
gallery,
|
|
118
|
+
loading,
|
|
119
|
+
creationsList: creations,
|
|
120
|
+
loadingAssets: assetsLoading,
|
|
121
|
+
loadingGallery: galleryLoading,
|
|
122
|
+
loadingCollections: collectionsLoading,
|
|
123
|
+
errorAssets: assetsError,
|
|
124
|
+
errorCollections: collectionsError,
|
|
125
|
+
errorGallery: galleryError,
|
|
126
|
+
fetchError,
|
|
127
|
+
allResults,
|
|
128
|
+
refetchQueryGalleryCreation,
|
|
129
|
+
loadMore,
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
exports.useGetFavoriteGallaryCreations = useGetFavoriteGallaryCreations;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IQueryFetchUserFavoritesV2Args } from '@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema';
|
|
2
|
+
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
|
+
import CreationEntity from '@/dto/CreationEntity';
|
|
4
|
+
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
5
|
+
declare const useGetUserFevoritesCreations: ({ userId, pageSize, pageToken, }: IQueryFetchUserFavoritesV2Args) => {
|
|
6
|
+
favorites: GalleryEntityV2[];
|
|
7
|
+
assets: CreationEntity[] | null;
|
|
8
|
+
collections: CollectionCreationEntity[] | null;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
loadingAssets: boolean;
|
|
11
|
+
loadingFavorites: boolean;
|
|
12
|
+
loadingCollections: boolean;
|
|
13
|
+
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
14
|
+
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
15
|
+
errorFavorites: import("@apollo/client").ApolloError | undefined;
|
|
16
|
+
refetchQueryFavoritesList: () => Promise<void>;
|
|
17
|
+
loadMoreFavoritesList: () => Promise<void>;
|
|
18
|
+
isNextLoading: boolean;
|
|
19
|
+
};
|
|
20
|
+
export { useGetUserFevoritesCreations };
|
|
21
|
+
export declare function getMediaForGallery(favorites: GalleryEntityV2[], takeFirstFour: boolean, pageNumber?: number, totalLength?: number | null): {
|
|
22
|
+
assetArray: unknown[];
|
|
23
|
+
collectionsArray: unknown[];
|
|
24
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
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.getMediaForGallery = exports.useGetUserFevoritesCreations = void 0;
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const client_1 = require("@apollo/client");
|
|
9
|
+
const api_1 = require("@ludo.ninja/api");
|
|
10
|
+
const schema_1 = require("@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema");
|
|
11
|
+
const schema_2 = require("@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema");
|
|
12
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
13
|
+
const ui_1 = require("@/store/ui");
|
|
14
|
+
const CollectionCreationEntity_1 = __importDefault(require("@/dto/Collection/CollectionCreationEntity"));
|
|
15
|
+
const CreationEntity_1 = __importDefault(require("@/dto/CreationEntity"));
|
|
16
|
+
const GalleryEntityV2_1 = __importDefault(require("@/dto/GalleryEntityV2"));
|
|
17
|
+
const maxUserFavoritesLength = 1000;
|
|
18
|
+
const useGetUserFevoritesCreations = ({ userId, pageSize, pageToken, }) => {
|
|
19
|
+
const [assets, setAsset] = (0, react_1.useState)(null);
|
|
20
|
+
const [collections, setCollections] = (0, react_1.useState)(null);
|
|
21
|
+
const [favorites, setFavorites] = (0, react_1.useState)([]);
|
|
22
|
+
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
23
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
24
|
+
const nextPageToken = (0, react_1.useRef)(null);
|
|
25
|
+
const [isNextLoading, setIsNextLoading] = (0, react_1.useState)(false); // todo: after update api , get isNextPage from results
|
|
26
|
+
// const isHaveNextPage = favorites.length < results;
|
|
27
|
+
const isHaveNextPage = !!nextPageToken.current;
|
|
28
|
+
const { loading: favoritesLoading, error: favoritesError, refetch, fetchMore, } = (0, client_1.useQuery)(schema_1.FetchUserFavoritesV2Document, {
|
|
29
|
+
context: { uri: api_1.hosts.galleriesHost }, //todo : update variables to object page
|
|
30
|
+
variables: { pageSize, userId, pageToken },
|
|
31
|
+
fetchPolicy: 'no-cache',
|
|
32
|
+
onCompleted: ({ fetchUserFavoritesV2: { galleries, nextPageToken: token }, }) => {
|
|
33
|
+
// nextPageToken.current = nextPage.nextPage?.token || null;
|
|
34
|
+
nextPageToken.current = token || null;
|
|
35
|
+
setFavorites(galleries.map((gallery) => new GalleryEntityV2_1.default(gallery)));
|
|
36
|
+
setLoading(false);
|
|
37
|
+
},
|
|
38
|
+
onError: () => {
|
|
39
|
+
openAlert({
|
|
40
|
+
type: type_1.alertVariants.error,
|
|
41
|
+
caption: 'Oops, something went wrong while fetching favorites.',
|
|
42
|
+
});
|
|
43
|
+
setFavorites([]);
|
|
44
|
+
setLoading(false);
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
const [fetchAssets, { loading: assetsLoading, error: assetsError }] = (0, client_1.useLazyQuery)(schema_2.FetchAssetsDocument, {
|
|
48
|
+
context: { uri: api_1.hosts.searchHost },
|
|
49
|
+
fetchPolicy: 'no-cache',
|
|
50
|
+
onCompleted: ({ fetchAssets: data }) => {
|
|
51
|
+
setAsset(data.map((asset) => new CreationEntity_1.default({
|
|
52
|
+
...asset,
|
|
53
|
+
itemType: 'asset',
|
|
54
|
+
itemId: asset.assetId,
|
|
55
|
+
})));
|
|
56
|
+
setLoading(false);
|
|
57
|
+
},
|
|
58
|
+
onError: () => {
|
|
59
|
+
openAlert({
|
|
60
|
+
type: type_1.alertVariants.error,
|
|
61
|
+
caption: 'Oops, something went wrong.',
|
|
62
|
+
});
|
|
63
|
+
setAsset(null);
|
|
64
|
+
setLoading(false);
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
const [fetchCollections, { loading: collectionsLoading, error: collectionsError },] = (0, client_1.useLazyQuery)(schema_2.FetchCollectionsByIdsDocument, {
|
|
68
|
+
context: { uri: api_1.hosts.searchHost },
|
|
69
|
+
fetchPolicy: 'no-cache',
|
|
70
|
+
onCompleted: ({ fetchCollectionsByIds: data }) => {
|
|
71
|
+
setCollections(data.map((collection) => new CollectionCreationEntity_1.default(collection)));
|
|
72
|
+
setLoading(false);
|
|
73
|
+
},
|
|
74
|
+
onError: () => {
|
|
75
|
+
openAlert({
|
|
76
|
+
type: type_1.alertVariants.error,
|
|
77
|
+
caption: 'Oops, something went wrong.',
|
|
78
|
+
});
|
|
79
|
+
setCollections(null);
|
|
80
|
+
setLoading(false);
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
(0, react_1.useEffect)(() => {
|
|
84
|
+
if (favorites.length > 0) {
|
|
85
|
+
const { assetArray, collectionsArray } = getMediaForGallery(favorites, true);
|
|
86
|
+
if (assetArray.length > 0) {
|
|
87
|
+
fetchAssets({ variables: { assetIds: assetArray } });
|
|
88
|
+
}
|
|
89
|
+
if (collectionsArray.length > 0) {
|
|
90
|
+
fetchCollections({ variables: { collectionIds: collectionsArray } });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}, [favorites, fetchAssets, fetchCollections]);
|
|
94
|
+
async function refetchQueryFavoritesList() {
|
|
95
|
+
await refetch();
|
|
96
|
+
}
|
|
97
|
+
async function loadMoreFavoritesList() {
|
|
98
|
+
if (!nextPageToken.current ||
|
|
99
|
+
!isHaveNextPage ||
|
|
100
|
+
favorites.length >= maxUserFavoritesLength)
|
|
101
|
+
return;
|
|
102
|
+
setIsNextLoading(true);
|
|
103
|
+
try {
|
|
104
|
+
await fetchMore({
|
|
105
|
+
variables: { pageToken: nextPageToken.current },
|
|
106
|
+
updateQuery: (prev, { fetchMoreResult }) => {
|
|
107
|
+
if (!fetchMoreResult)
|
|
108
|
+
return prev;
|
|
109
|
+
const { nextPageToken: token, favorites: nextFavorites } = fetchMoreResult.fetchMyFavoritesV2;
|
|
110
|
+
nextPageToken.current = token || null;
|
|
111
|
+
if (prev !== null && prev.hasOwnProperty('fetchMyFavoritesV2')) {
|
|
112
|
+
const { favorites: prevFavorites } = prev.fetchMyFavoritesV2;
|
|
113
|
+
return {
|
|
114
|
+
fetchMyFavorites: {
|
|
115
|
+
favorites: [...prevFavorites, ...nextFavorites],
|
|
116
|
+
nextPageToken: token,
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return {
|
|
122
|
+
fetchMyFavorites: {
|
|
123
|
+
favorites: nextFavorites,
|
|
124
|
+
nextPageToken: token,
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
catch (e) {
|
|
132
|
+
//====
|
|
133
|
+
}
|
|
134
|
+
finally {
|
|
135
|
+
setIsNextLoading(false);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
favorites,
|
|
140
|
+
assets,
|
|
141
|
+
collections,
|
|
142
|
+
loading,
|
|
143
|
+
loadingAssets: assetsLoading,
|
|
144
|
+
loadingFavorites: favoritesLoading,
|
|
145
|
+
loadingCollections: collectionsLoading,
|
|
146
|
+
errorAssets: assetsError,
|
|
147
|
+
errorCollections: collectionsError,
|
|
148
|
+
errorFavorites: favoritesError,
|
|
149
|
+
refetchQueryFavoritesList,
|
|
150
|
+
loadMoreFavoritesList,
|
|
151
|
+
isNextLoading,
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
exports.useGetUserFevoritesCreations = useGetUserFevoritesCreations;
|
|
155
|
+
function getMediaForGallery(favorites, takeFirstFour, pageNumber = 1, totalLength) {
|
|
156
|
+
if (favorites.length === 0)
|
|
157
|
+
return { assetArray: [], collectionsArray: [] };
|
|
158
|
+
const itemsPerPage = 40;
|
|
159
|
+
const assetArray = [];
|
|
160
|
+
const collectionsArray = [];
|
|
161
|
+
favorites.forEach((fav) => {
|
|
162
|
+
const creationIds = takeFirstFour
|
|
163
|
+
? fav.getGalleryCreationIds().slice(0, 4)
|
|
164
|
+
: fav.getGalleryCreationIds();
|
|
165
|
+
if (!creationIds || creationIds.length === 0)
|
|
166
|
+
return;
|
|
167
|
+
const startIndex = (pageNumber - 1) * itemsPerPage;
|
|
168
|
+
const endIndex = totalLength ? totalLength : startIndex + itemsPerPage;
|
|
169
|
+
for (let i = startIndex; i < endIndex && i < creationIds.length; i++) {
|
|
170
|
+
if (creationIds[i].split('.')[0] === 'asset') {
|
|
171
|
+
const assetId = creationIds[i]
|
|
172
|
+
.split('.')
|
|
173
|
+
.splice(1, creationIds[i].length)
|
|
174
|
+
.join('.');
|
|
175
|
+
assetArray.push(assetId);
|
|
176
|
+
}
|
|
177
|
+
else if (creationIds[i].split('.')[0] === 'collection') {
|
|
178
|
+
const collectionId = creationIds[i]
|
|
179
|
+
.split('.')
|
|
180
|
+
.splice(1, creationIds[i].length)
|
|
181
|
+
.join('.');
|
|
182
|
+
collectionsArray.push(collectionId);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
return { assetArray, collectionsArray };
|
|
187
|
+
}
|
|
188
|
+
exports.getMediaForGallery = getMediaForGallery;
|