@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,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
// Styles
|
|
9
|
+
const StyledMobileFilters = styled_components_1.default.div `
|
|
10
|
+
position: relative;
|
|
11
|
+
flex: 1;
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
padding: 0 32px;
|
|
14
|
+
|
|
15
|
+
& > div:last-child {
|
|
16
|
+
margin-bottom: 30px;
|
|
17
|
+
border-bottom: unset;
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
// Component
|
|
21
|
+
const MobileFilters = ({ children }) => {
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(StyledMobileFilters, { children: children });
|
|
23
|
+
};
|
|
24
|
+
// Export
|
|
25
|
+
exports.default = MobileFilters;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { optionType } from '@/system/Forms/Selects/DesktopSelect/type';
|
|
2
|
+
declare const SetsFiltersForm: ({ selectTypeSearchResult, selectBlockchainCategoryResult, selectBlockchainTimeResult, handleNeedShowButtons, handleFiltersCount, }: {
|
|
3
|
+
selectTypeSearchResult: optionType[];
|
|
4
|
+
selectBlockchainCategoryResult: optionType[];
|
|
5
|
+
selectBlockchainTimeResult: optionType[];
|
|
6
|
+
handleNeedShowButtons: (value: boolean) => void;
|
|
7
|
+
handleFiltersCount: (value: number) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SetsFiltersForm;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const DropDown_1 = __importDefault(require("@/system/DropDown"));
|
|
10
|
+
const RadioInput_1 = __importDefault(require("@/system/Forms/RadioInput"));
|
|
11
|
+
// Styles
|
|
12
|
+
const StyledSetsFiltersForm = styled_components_1.default.div `
|
|
13
|
+
position: relative;
|
|
14
|
+
`;
|
|
15
|
+
// Component
|
|
16
|
+
const SetsFiltersForm = ({ selectTypeSearchResult, selectBlockchainCategoryResult, selectBlockchainTimeResult, handleNeedShowButtons, handleFiltersCount, }) => {
|
|
17
|
+
const [selectedSearchResult, setSelectedSearchResult] = (0, react_1.useState)(null);
|
|
18
|
+
const [selectedBlockchainCategoryResult, setSelectedBlockchainCategoryResult,] = (0, react_1.useState)(null);
|
|
19
|
+
const [selectedBlockchainTimeResult, setSelectedBlockchainTimeResult] = (0, react_1.useState)(null);
|
|
20
|
+
(0, react_1.useEffect)(() => {
|
|
21
|
+
if (selectedSearchResult ||
|
|
22
|
+
selectedBlockchainCategoryResult ||
|
|
23
|
+
selectedBlockchainTimeResult) {
|
|
24
|
+
handleNeedShowButtons(true);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
handleNeedShowButtons(false);
|
|
28
|
+
}
|
|
29
|
+
const arr = [
|
|
30
|
+
selectedSearchResult,
|
|
31
|
+
selectedBlockchainCategoryResult,
|
|
32
|
+
selectedBlockchainTimeResult,
|
|
33
|
+
];
|
|
34
|
+
const count = arr.filter((value) => value).length;
|
|
35
|
+
handleFiltersCount(count);
|
|
36
|
+
}, [
|
|
37
|
+
selectedSearchResult,
|
|
38
|
+
selectedBlockchainCategoryResult,
|
|
39
|
+
selectedBlockchainTimeResult,
|
|
40
|
+
]);
|
|
41
|
+
const handleChangeSearchResult = (value) => {
|
|
42
|
+
setSelectedSearchResult(value);
|
|
43
|
+
};
|
|
44
|
+
const handleChangeBlockchainCategoryResult = (value) => {
|
|
45
|
+
setSelectedBlockchainCategoryResult(value);
|
|
46
|
+
};
|
|
47
|
+
const handleChangeBlockchainTimeResult = (value) => {
|
|
48
|
+
setSelectedBlockchainTimeResult(value);
|
|
49
|
+
};
|
|
50
|
+
return ((0, jsx_runtime_1.jsxs)(StyledSetsFiltersForm, { children: [(0, jsx_runtime_1.jsx)(DropDown_1.default, { caption: 'Type', fallBackOnClose: handleChangeSearchResult, children: selectTypeSearchResult.map((select) => ((0, jsx_runtime_1.jsx)(RadioInput_1.default, { radioLabel: select.label, radioValue: select.id, handleChange: handleChangeSearchResult, radioChecked: selectedSearchResult === select.id }, select.id))) }), (0, jsx_runtime_1.jsx)(DropDown_1.default, { caption: 'Category', fallBackOnClose: handleChangeBlockchainCategoryResult, children: selectBlockchainCategoryResult.map((select) => ((0, jsx_runtime_1.jsx)(RadioInput_1.default, { radioLabel: select.label, radioValue: select.id, handleChange: handleChangeBlockchainCategoryResult, radioChecked: selectedSearchResult === select.id }, select.id))) }), (0, jsx_runtime_1.jsx)(DropDown_1.default, { caption: 'Time', fallBackOnClose: handleChangeBlockchainTimeResult, children: selectBlockchainTimeResult.map((select) => ((0, jsx_runtime_1.jsx)(RadioInput_1.default, { radioLabel: select.label, radioValue: select.id, handleChange: handleChangeBlockchainTimeResult, radioChecked: selectedSearchResult === select.id }, select.id))) })] }));
|
|
51
|
+
};
|
|
52
|
+
// Export
|
|
53
|
+
exports.default = SetsFiltersForm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
+
import { DefaultsCollectionsSearchPageProps, DefaultsNftSearchPageProps } from '@/api/server-preferences/queries/fetchSearchResultSelections/queryData';
|
|
3
|
+
export declare const useSearchFiltersConnector: <TFilterInput extends schema.ICollectionFilterInput | schema.ICreationFilterInput = schema.ICreationFilterInput>({ defaults, isDisabledTypeFilters, isMobile, }: {
|
|
4
|
+
defaults: DefaultsNftSearchPageProps | DefaultsCollectionsSearchPageProps;
|
|
5
|
+
isDisabledTypeFilters?: boolean | undefined;
|
|
6
|
+
isMobile: boolean;
|
|
7
|
+
}) => {
|
|
8
|
+
filterInput: TFilterInput;
|
|
9
|
+
renderFilters: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
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.useSearchFiltersConnector = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const router_1 = require("next/router");
|
|
10
|
+
const fetchSearchResultSelections_1 = require("@/api/server-preferences/queries/fetchSearchResultSelections");
|
|
11
|
+
const filters_1 = __importDefault(require("./filters"));
|
|
12
|
+
const useSearchFiltersConnector = function ({ defaults, isDisabledTypeFilters, isMobile, }) {
|
|
13
|
+
const defaultCopyWithoutTerm = {
|
|
14
|
+
time: defaults.time,
|
|
15
|
+
blockchain: defaults.blockchain,
|
|
16
|
+
category: defaults.category,
|
|
17
|
+
status: defaults.status,
|
|
18
|
+
...('type' in defaults
|
|
19
|
+
? {
|
|
20
|
+
type: defaults.type,
|
|
21
|
+
}
|
|
22
|
+
: {}),
|
|
23
|
+
};
|
|
24
|
+
const { searchResultSelections } = (0, fetchSearchResultSelections_1.useFetchSearchResultSelections)();
|
|
25
|
+
const [filterInput, setFilterInput] = (0, react_1.useState)(defaultCopyWithoutTerm);
|
|
26
|
+
const router = (0, router_1.useRouter)();
|
|
27
|
+
(0, react_1.useEffect)(() => {
|
|
28
|
+
router.replace({
|
|
29
|
+
query: {
|
|
30
|
+
...router.query,
|
|
31
|
+
...defaultCopyWithoutTerm,
|
|
32
|
+
},
|
|
33
|
+
}, undefined, { shallow: true });
|
|
34
|
+
}, []);
|
|
35
|
+
const handleFilterInput = async (fieldName, fieldValue) => {
|
|
36
|
+
await router.replace({
|
|
37
|
+
query: { ...router.query, [fieldName]: fieldValue },
|
|
38
|
+
}, undefined, { shallow: true });
|
|
39
|
+
setFilterInput((prevFilters) => ({
|
|
40
|
+
...prevFilters,
|
|
41
|
+
[fieldName]: fieldValue,
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
const handleMobileFilterInput = async (newFilters) => {
|
|
45
|
+
await router.replace({
|
|
46
|
+
query: { ...router.query, ...newFilters },
|
|
47
|
+
}, undefined, { shallow: true });
|
|
48
|
+
setFilterInput((prevFilters) => ({
|
|
49
|
+
...prevFilters,
|
|
50
|
+
...newFilters,
|
|
51
|
+
}));
|
|
52
|
+
};
|
|
53
|
+
const handleResetFilter = () => {
|
|
54
|
+
if (searchResultSelections) {
|
|
55
|
+
const filterInitialStateNft = {
|
|
56
|
+
...(isDisabledTypeFilters
|
|
57
|
+
? {}
|
|
58
|
+
: { type: searchResultSelections.typeSelections[0]?.id }),
|
|
59
|
+
time: searchResultSelections.timeSelections[0]?.id,
|
|
60
|
+
blockchain: searchResultSelections.blockchainSelections[0]?.id,
|
|
61
|
+
category: searchResultSelections.categorySelections[0]?.id,
|
|
62
|
+
status: searchResultSelections.statusSelections[0]?.id,
|
|
63
|
+
};
|
|
64
|
+
setFilterInput(filterInitialStateNft);
|
|
65
|
+
router.replace({
|
|
66
|
+
query: {
|
|
67
|
+
...router.query,
|
|
68
|
+
...filterInitialStateNft,
|
|
69
|
+
},
|
|
70
|
+
}, undefined, { shallow: true });
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
filterInput,
|
|
75
|
+
renderFilters: !!(filterInput.time ||
|
|
76
|
+
filterInput.status ||
|
|
77
|
+
filterInput.category ||
|
|
78
|
+
filterInput.blockchain) ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: searchResultSelections && ((0, jsx_runtime_1.jsx)(filters_1.default, { filterInput: filterInput, selectData: [
|
|
79
|
+
...(!isDisabledTypeFilters
|
|
80
|
+
? [
|
|
81
|
+
{
|
|
82
|
+
id: 1,
|
|
83
|
+
data: {
|
|
84
|
+
selectName: 'type',
|
|
85
|
+
selectOptions: searchResultSelections.typeSelections,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
]
|
|
89
|
+
: []),
|
|
90
|
+
{
|
|
91
|
+
id: 2,
|
|
92
|
+
data: {
|
|
93
|
+
selectName: 'blockchain',
|
|
94
|
+
selectOptions: searchResultSelections.blockchainSelections,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 3,
|
|
99
|
+
data: {
|
|
100
|
+
selectName: 'category',
|
|
101
|
+
selectOptions: searchResultSelections.categorySelections,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: 4,
|
|
106
|
+
data: {
|
|
107
|
+
selectName: 'time',
|
|
108
|
+
selectOptions: searchResultSelections.timeSelections,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 5,
|
|
113
|
+
data: {
|
|
114
|
+
selectName: 'status',
|
|
115
|
+
selectOptions: searchResultSelections.statusSelections,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
], filterInputHandler: handleFilterInput, handleResetFilter: handleResetFilter, handleMobileFilterInput: handleMobileFilterInput, isMobile: isMobile })) })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})),
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
exports.useSearchFiltersConnector = useSearchFiltersConnector;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const sideBarDataForDev: ({ isAuthorized, isDarkTheme, userId, }: {
|
|
2
|
+
isAuthorized: boolean;
|
|
3
|
+
isDarkTheme: boolean;
|
|
4
|
+
userId: string;
|
|
5
|
+
}) => {
|
|
6
|
+
href: string;
|
|
7
|
+
title: string;
|
|
8
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
isExternalUrl: boolean;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const sideBarDataForProd: ({ isAuthorized, userId, }: {
|
|
12
|
+
isAuthorized: boolean;
|
|
13
|
+
userId: string;
|
|
14
|
+
}) => {
|
|
15
|
+
href: string;
|
|
16
|
+
title: string;
|
|
17
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
isExternalUrl: boolean;
|
|
19
|
+
}[];
|
|
@@ -0,0 +1,80 @@
|
|
|
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.sideBarDataForProd = exports.sideBarDataForDev = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const aboutLudo_svg_1 = __importDefault(require("@/public/sidebar/aboutLudo.svg"));
|
|
9
|
+
const aboutLudoDark_svg_1 = __importDefault(require("@/public/sidebar/aboutLudoDark.svg"));
|
|
10
|
+
const api_svg_1 = __importDefault(require("@/public/sidebar/api.svg"));
|
|
11
|
+
const explore_svg_1 = __importDefault(require("@/public/sidebar/explore.svg"));
|
|
12
|
+
const my_invites_svg_1 = __importDefault(require("@/public/sidebar/my-invites.svg"));
|
|
13
|
+
const rewards_svg_1 = __importDefault(require("@/public/sidebar/rewards.svg"));
|
|
14
|
+
const submitNft_svg_1 = __importDefault(require("@/public/sidebar/submitNft.svg"));
|
|
15
|
+
const sideBarDataForDev = ({ isAuthorized, isDarkTheme, userId, }) => {
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
href: '/',
|
|
19
|
+
title: 'Explore',
|
|
20
|
+
icon: (0, jsx_runtime_1.jsx)(explore_svg_1.default, {}),
|
|
21
|
+
isExternalUrl: false,
|
|
22
|
+
},
|
|
23
|
+
...(isAuthorized
|
|
24
|
+
? [
|
|
25
|
+
{
|
|
26
|
+
href: `/rewards/${userId}`,
|
|
27
|
+
title: 'Rewards',
|
|
28
|
+
icon: (0, jsx_runtime_1.jsx)(rewards_svg_1.default, {}),
|
|
29
|
+
isExternalUrl: false,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
href: '/invite-codes',
|
|
33
|
+
title: 'My invites',
|
|
34
|
+
icon: (0, jsx_runtime_1.jsx)(my_invites_svg_1.default, {}),
|
|
35
|
+
isExternalUrl: false,
|
|
36
|
+
},
|
|
37
|
+
]
|
|
38
|
+
: []),
|
|
39
|
+
{
|
|
40
|
+
href: 'https://apidocs.ludo.com/',
|
|
41
|
+
title: 'API',
|
|
42
|
+
icon: (0, jsx_runtime_1.jsx)(api_svg_1.default, {}),
|
|
43
|
+
isExternalUrl: true,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
href: '/',
|
|
47
|
+
title: 'Submit NFT',
|
|
48
|
+
icon: (0, jsx_runtime_1.jsx)(submitNft_svg_1.default, {}),
|
|
49
|
+
isExternalUrl: false,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
href: '/',
|
|
53
|
+
title: 'About Ludo',
|
|
54
|
+
icon: isDarkTheme ? (0, jsx_runtime_1.jsx)(aboutLudoDark_svg_1.default, {}) : (0, jsx_runtime_1.jsx)(aboutLudo_svg_1.default, {}),
|
|
55
|
+
isExternalUrl: false,
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
};
|
|
59
|
+
exports.sideBarDataForDev = sideBarDataForDev;
|
|
60
|
+
const sideBarDataForProd = ({ isAuthorized, userId, }) => {
|
|
61
|
+
return [
|
|
62
|
+
...(isAuthorized
|
|
63
|
+
? [
|
|
64
|
+
{
|
|
65
|
+
href: `/rewards/${userId}`,
|
|
66
|
+
title: 'Rewards',
|
|
67
|
+
icon: (0, jsx_runtime_1.jsx)(rewards_svg_1.default, {}),
|
|
68
|
+
isExternalUrl: false,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
href: '/invite-codes',
|
|
72
|
+
title: 'My invites',
|
|
73
|
+
icon: (0, jsx_runtime_1.jsx)(my_invites_svg_1.default, {}),
|
|
74
|
+
isExternalUrl: false,
|
|
75
|
+
},
|
|
76
|
+
]
|
|
77
|
+
: []),
|
|
78
|
+
];
|
|
79
|
+
};
|
|
80
|
+
exports.sideBarDataForProd = sideBarDataForProd;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
const link_1 = __importDefault(require("next/link"));
|
|
31
|
+
const styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
+
const sidebar_1 = require("@ludo.ninja/ui/build/components/sidebar");
|
|
33
|
+
const interface_1 = require("@ludo.ninja/ui/build/dto/Theme/interface");
|
|
34
|
+
const MainButton_1 = __importDefault(require("@ludo.ninja/ui/build/system/Buttons/MainButton"));
|
|
35
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
36
|
+
const data_1 = require("@/components/sidebar/data");
|
|
37
|
+
const sidebarInviteCodeLabel_1 = __importDefault(require("@/components/sidebar/sidebarInviteCodeLabel"));
|
|
38
|
+
const useSignOut_1 = require("@/modules/user/auth/useSignOut");
|
|
39
|
+
const store_1 = require("@/modules/user/store");
|
|
40
|
+
const env_1 = require("@/store/env");
|
|
41
|
+
const ui_1 = require("@/store/ui");
|
|
42
|
+
const ScreenWidth_1 = require("@/styles/ScreenWidth");
|
|
43
|
+
const Userpic_1 = __importDefault(require("@/system/Img/Userpic"));
|
|
44
|
+
const scale_1 = require("@/utils/adaptive/scale");
|
|
45
|
+
const auth_1 = require("@/utils/auth");
|
|
46
|
+
const screen_1 = require("@/utils/screen");
|
|
47
|
+
const useExtension_1 = __importDefault(require("@/hooks/extension/useExtension"));
|
|
48
|
+
const MenuItem = styled_components_1.default.div `
|
|
49
|
+
font-size: 15px;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
line-height: 22px;
|
|
52
|
+
display: flex;
|
|
53
|
+
gap: 8px;
|
|
54
|
+
align-items: center;
|
|
55
|
+
padding: 12px 4px;
|
|
56
|
+
text-indent: 4px;
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
color: ${({ theme }) => theme.colors.secondaryText};
|
|
60
|
+
|
|
61
|
+
${ScreenWidth_1.mediaQuery.mobile} {
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
line-height: 20px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
transition: background-color 0.3s ease-in-out;
|
|
67
|
+
|
|
68
|
+
@media (hover: hover) {
|
|
69
|
+
&:hover {
|
|
70
|
+
transition: background-color 0.3s ease-in;
|
|
71
|
+
background-color: ${({ theme }) => theme.colors.secondaryBg};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
76
|
+
font-size: ${(0, _4k_1.adaptiveValueCalc)(15)};
|
|
77
|
+
line-height: ${(0, _4k_1.adaptiveValueCalc)(22)};
|
|
78
|
+
gap: ${(0, _4k_1.adaptiveValueCalc)(8)};
|
|
79
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(12)} ${(0, _4k_1.adaptiveValueCalc)(4)};
|
|
80
|
+
text-indent: ${(0, _4k_1.adaptiveValueCalc)(4)};
|
|
81
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(4)};
|
|
82
|
+
img {
|
|
83
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(20)};
|
|
84
|
+
height: ${(0, _4k_1.adaptiveValueCalc)(20)};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
const BeforeMenuContainer = styled_components_1.default.div `
|
|
89
|
+
padding: 12px 0;
|
|
90
|
+
border-bottom: 1px solid ${({ theme }) => theme.colors.divider};
|
|
91
|
+
|
|
92
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
93
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(12)} 0;
|
|
94
|
+
border-bottom: ${(0, _4k_1.adaptiveValueCalc)(1)} solid
|
|
95
|
+
${({ theme }) => theme.colors.divider};
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
98
|
+
const SLink = (0, styled_components_1.default)(link_1.default) `
|
|
99
|
+
&:not(:last-child) svg path {
|
|
100
|
+
fill: ${({ theme }) => theme.colors.sidebarSvgPathFill};
|
|
101
|
+
}
|
|
102
|
+
.icon-wrapper {
|
|
103
|
+
width: 20px;
|
|
104
|
+
height: 20px;
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
109
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(20)};
|
|
110
|
+
height: ${(0, _4k_1.adaptiveValueCalc)(20)};
|
|
111
|
+
svg {
|
|
112
|
+
transform: ${(props) => 'transform' in props.scale && props.scale.transform};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
// Component
|
|
118
|
+
const Sidebar = () => {
|
|
119
|
+
const redirectToLoginWindow = (0, auth_1.useRedirectToLoginWindow)();
|
|
120
|
+
const isProd = (0, env_1.useEnvStore)((state) => state.isProd);
|
|
121
|
+
const closeSidebar = (0, ui_1.useUiStore)((state) => state.closeSidebar);
|
|
122
|
+
const isSidebarOpen = (0, ui_1.useUiStore)((state) => state.isSidebarOpen);
|
|
123
|
+
const isAuthorized = (0, store_1.useUserStore)((state) => state.isSignedIn);
|
|
124
|
+
const getUser = (0, store_1.useUserStore)((state) => state.user);
|
|
125
|
+
const signOut = (0, useSignOut_1.useSignOut)();
|
|
126
|
+
const { deviceType } = (0, screen_1.useWindowDimensions)();
|
|
127
|
+
const { isExtensionInstalled, openExtensionChromeStorePage, openExtension } = (0, useExtension_1.default)();
|
|
128
|
+
const { wallets, userId } = getUser ?? [''];
|
|
129
|
+
const { type } = (0, styled_components_1.useTheme)();
|
|
130
|
+
const isDarkTheme = type === interface_1.ThemeEnum.dark;
|
|
131
|
+
// Todo fav-list
|
|
132
|
+
const sideBarData = isProd()
|
|
133
|
+
? (0, data_1.sideBarDataForProd)({ userId, isAuthorized })
|
|
134
|
+
: (0, data_1.sideBarDataForDev)({ userId, isAuthorized, isDarkTheme });
|
|
135
|
+
const { windowDimensions } = (0, screen_1.useWindowDimensionsWithServerInitial)();
|
|
136
|
+
return ((0, jsx_runtime_1.jsx)(sidebar_1.Sidebar, { closeSidebar: closeSidebar, isOpen: isSidebarOpen, handle: {
|
|
137
|
+
login: () => {
|
|
138
|
+
closeSidebar();
|
|
139
|
+
redirectToLoginWindow();
|
|
140
|
+
},
|
|
141
|
+
logout: signOut,
|
|
142
|
+
}, isAuthorized: isAuthorized, userWallets: wallets, slots: {
|
|
143
|
+
menu: sideBarData.map(({ title, href, icon, isExternalUrl }) => ((0, jsx_runtime_1.jsxs)(SLink, { href: href, target: isExternalUrl ? '_blank' : '_self', onClick: closeSidebar, passHref: isExternalUrl, scale: (0, scale_1.getAdaptiveScale)({ windowDimensions, currentSize: 1 }), children: [(0, jsx_runtime_1.jsx)("span", { className: "icon-wrapper", children: icon }), title] }, title))),
|
|
144
|
+
userPicture: ({ children, height, width, isNeedBoxTransform }) => ((0, jsx_runtime_1.jsx)(Userpic_1.default, { width: width, height: height, userId: userId, isNeedBoxTransform: isNeedBoxTransform, children: children })),
|
|
145
|
+
inviteCode: (0, jsx_runtime_1.jsx)(sidebarInviteCodeLabel_1.default, {}),
|
|
146
|
+
...(deviceType == 'isDesktop' && isAuthorized
|
|
147
|
+
? {
|
|
148
|
+
beforeMenu: ((0, jsx_runtime_1.jsx)(BeforeMenuContainer, { children: isExtensionInstalled ? ((0, jsx_runtime_1.jsxs)(MenuItem, { onClick: () => {
|
|
149
|
+
closeSidebar();
|
|
150
|
+
openExtension();
|
|
151
|
+
}, children: [(0, jsx_runtime_1.jsx)("img", { src: "/sidebar/ludoX.svg", alt: "Ludo X", width: 20, height: 20 }), "Open Ludo X"] })) : ((0, jsx_runtime_1.jsx)("div", { style: { padding: '12px 0' }, children: (0, jsx_runtime_1.jsx)(MainButton_1.default, { onClick: () => {
|
|
152
|
+
closeSidebar();
|
|
153
|
+
openExtensionChromeStorePage();
|
|
154
|
+
}, text: 'Install Ludo X now', variant: 'primaryM' }) })) })),
|
|
155
|
+
}
|
|
156
|
+
: {}),
|
|
157
|
+
} }));
|
|
158
|
+
};
|
|
159
|
+
// Export
|
|
160
|
+
exports.default = Sidebar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SidebarInitializer: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SidebarInitializer = void 0;
|
|
30
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
+
const dynamic_1 = __importDefault(require("next/dynamic"));
|
|
32
|
+
const Sidebar = (0, dynamic_1.default)(() => Promise.resolve().then(() => __importStar(require('./index'))).then((res) => res.default), {
|
|
33
|
+
ssr: false,
|
|
34
|
+
});
|
|
35
|
+
const SidebarInitializer = () => (0, jsx_runtime_1.jsx)(Sidebar, {});
|
|
36
|
+
exports.SidebarInitializer = SidebarInitializer;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
const typography_1 = require("@/styles/typography");
|
|
9
|
+
const close20_svg_1 = __importDefault(require("@/public/close20.svg"));
|
|
10
|
+
// Styles
|
|
11
|
+
const StyledSidebarFilters = styled_components_1.default.aside `
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
background-color: white;
|
|
14
|
+
position: fixed;
|
|
15
|
+
z-index: 1000000;
|
|
16
|
+
transform: ${(props) => props.isOpen ? 'translateX(0%)' : 'translateX(calc(100% + 16px))'};
|
|
17
|
+
transition: transform 0.2s;
|
|
18
|
+
will-change: transform;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: var(--app-height);
|
|
21
|
+
top: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
|
|
28
|
+
.closeIcon {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 16px;
|
|
31
|
+
right: 16px;
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: flex-end;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.header {
|
|
38
|
+
padding: 32px 32px 6px 32px;
|
|
39
|
+
|
|
40
|
+
.caption {
|
|
41
|
+
${typography_1.FH3};
|
|
42
|
+
margin: 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
// Component
|
|
47
|
+
const SidebarFilters = ({ isOpen, handleClose, children, }) => {
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)(StyledSidebarFilters, { isOpen: isOpen, children: [(0, jsx_runtime_1.jsx)("div", { className: 'closeIcon', onClick: handleClose, children: (0, jsx_runtime_1.jsx)(close20_svg_1.default, {}) }), (0, jsx_runtime_1.jsx)("div", { className: "header", children: (0, jsx_runtime_1.jsx)("h3", { className: 'caption', children: "Filters" }) }), children] }));
|
|
49
|
+
};
|
|
50
|
+
// Export
|
|
51
|
+
exports.default = SidebarFilters;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
9
|
+
const store_1 = require("@/modules/user/store");
|
|
10
|
+
const ScreenWidth_1 = require("@/styles/ScreenWidth");
|
|
11
|
+
const ExperienceLabel_1 = __importDefault(require("@/system/Labels/ExperienceLabel"));
|
|
12
|
+
const InviteLabel_1 = __importDefault(require("@/system/Labels/InviteLabel"));
|
|
13
|
+
// Styles
|
|
14
|
+
const StyledSidebarInviteCodeLabel = styled_components_1.default.div `
|
|
15
|
+
display: flex;
|
|
16
|
+
gap: 16px;
|
|
17
|
+
margin-top: 16px;
|
|
18
|
+
|
|
19
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
20
|
+
gap: ${(0, _4k_1.adaptiveValueCalc)(16)};
|
|
21
|
+
margin-top: ${(0, _4k_1.adaptiveValueCalc)(16)};
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
// Component
|
|
25
|
+
const SidebarInviteCodeLabel = () => {
|
|
26
|
+
const { getUser, userExp, isLoadingExp, errorExp, isLoadingProfileData, inviteCodes, } = (0, store_1.useUserStore)((state) => ({
|
|
27
|
+
getUser: state.user,
|
|
28
|
+
userExp: state.userExp,
|
|
29
|
+
isLoadingExp: state.isLoadingExp,
|
|
30
|
+
errorExp: state.errorExp,
|
|
31
|
+
isLoadingProfileData: state.isLoadingProfileData,
|
|
32
|
+
inviteCodes: state.inviteCodes,
|
|
33
|
+
}));
|
|
34
|
+
const unUsedInviteCodes = inviteCodes?.filter((code) => !code.isUsed);
|
|
35
|
+
return ((0, jsx_runtime_1.jsxs)(StyledSidebarInviteCodeLabel, { children: [(0, jsx_runtime_1.jsx)(ExperienceLabel_1.default, { value: userExp.xps, link: `/rewards/${getUser?.userId}`, loading: isLoadingExp || !!errorExp }), !!unUsedInviteCodes && ((0, jsx_runtime_1.jsx)(InviteLabel_1.default, { value: unUsedInviteCodes.length, link: '/invite-codes', loading: isLoadingProfileData }))] }));
|
|
36
|
+
};
|
|
37
|
+
// Export
|
|
38
|
+
exports.default = SidebarInviteCodeLabel;
|