@ludo.ninja/components 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/graphql/index.d.ts +4 -0
- package/build/api/graphql/index.js +11 -0
- package/build/api/server-assets/mutations/useDislikeAsset/index.d.ts +7 -0
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +32 -0
- package/build/api/server-assets/mutations/useLikeAsset/index.d.ts +7 -0
- package/build/api/server-assets/mutations/useLikeAsset/index.js +33 -0
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.d.ts +14 -0
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +48 -0
- package/build/api/server-assets/queries/useFetchAssets/index.d.ts +7 -0
- package/build/api/server-assets/queries/useFetchAssets/index.js +31 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.d.ts +8 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +35 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.d.ts +7 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +30 -0
- package/build/api/server-collection/mutations/useDislikeCollection/index.d.ts +7 -0
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +31 -0
- package/build/api/server-collection/mutations/useLikeCollection/index.d.ts +7 -0
- package/build/api/server-collection/mutations/useLikeCollection/index.js +31 -0
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.d.ts +2 -0
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +84 -0
- package/build/api/server-experiences/queries/useFetchMyTasks/index.d.ts +31 -0
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +49 -0
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +36 -0
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.d.ts +4 -0
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +30 -0
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +35 -0
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +43 -0
- package/build/api/server-galleries/mutations/useCreateFavorites/index.d.ts +6 -0
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +25 -0
- package/build/api/server-galleries/mutations/useCreateGallery/index.d.ts +6 -0
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +25 -0
- package/build/api/server-galleries/mutations/useDeleteGallery/index.d.ts +8 -0
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +42 -0
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.d.ts +5 -0
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +39 -0
- package/build/api/server-galleries/mutations/useEditGallery/index.d.ts +5 -0
- package/build/api/server-galleries/mutations/useEditGallery/index.js +23 -0
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +49 -0
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +44 -0
- package/build/api/server-galleries/queries/useFetchGallery/index.d.ts +16 -0
- package/build/api/server-galleries/queries/useFetchGallery/index.js +46 -0
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.d.ts +18 -0
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +86 -0
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.d.ts +10 -0
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +70 -0
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +10 -0
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +72 -0
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.d.ts +9 -0
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +69 -0
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.d.ts +11 -0
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +68 -0
- package/build/api/server-identities/mutations/useAddWalletElrond/index.d.ts +6 -0
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletFlow/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.d.ts +12 -0
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +39 -0
- package/build/api/server-identities/mutations/useAddWalletSolana/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletTezos/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +35 -0
- package/build/api/server-identities/mutations/useFollowProfile/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useFollowProfile/index.js +40 -0
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +31 -0
- package/build/api/server-identities/mutations/useInviteCode/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useInviteCode/index.js +34 -0
- package/build/api/server-identities/mutations/useRemoveWallet/index.d.ts +6 -0
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +37 -0
- package/build/api/server-identities/mutations/useRevokeToken/index.d.ts +4 -0
- package/build/api/server-identities/mutations/useRevokeToken/index.js +21 -0
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +34 -0
- package/build/api/server-identities/mutations/useUnfollowProfile/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +39 -0
- package/build/api/server-identities/queries/useFetchProfile/index.d.ts +16 -0
- package/build/api/server-identities/queries/useFetchProfile/index.js +80 -0
- package/build/api/server-identities/queries/useFetchUserWallets/index.d.ts +7 -0
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +19 -0
- package/build/api/server-medias/mutations/useDeleteUserpic/index.d.ts +6 -0
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +20 -0
- package/build/api/server-medias/mutations/useUploadUserpic/index.d.ts +4 -0
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +27 -0
- package/build/api/server-medias/queries/useFetchUserPic/index.d.ts +12 -0
- package/build/api/server-medias/queries/useFetchUserPic/index.js +39 -0
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.d.ts +4 -0
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +29 -0
- package/build/api/server-opportunities/mutations/useLikeOpportunity.d.ts +4 -0
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +29 -0
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.d.ts +5 -0
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +28 -0
- package/build/api/server-opportunities/queries/useGetOpportunities.d.ts +4 -0
- package/build/api/server-opportunities/queries/useGetOpportunities.js +26 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.d.ts +28 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +33 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.d.ts +14 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +37 -0
- package/build/api/server-search/queries/useFetchAllCreations/index.d.ts +32 -0
- package/build/api/server-search/queries/useFetchAllCreations/index.js +94 -0
- package/build/api/server-search/queries/useFetchAssetsCount/index.d.ts +7 -0
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +33 -0
- package/build/api/server-search/queries/useFetchCollection/index.d.ts +19 -0
- package/build/api/server-search/queries/useFetchCollection/index.js +59 -0
- package/build/api/server-search/queries/useFetchCollections/index.d.ts +23 -0
- package/build/api/server-search/queries/useFetchCollections/index.js +101 -0
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +13 -0
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +126 -0
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +47 -0
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +59 -0
- package/build/api/server-search/queries/useFetchNetWorth/index.d.ts +7 -0
- package/build/api/server-search/queries/useFetchNetWorth/index.js +23 -0
- package/build/api/server-search/queries/useFindCreations/index.d.ts +34 -0
- package/build/api/server-search/queries/useFindCreations/index.js +107 -0
- package/build/api/server-search/queries/useFindProfilesByName/index.d.ts +32 -0
- package/build/api/server-search/queries/useFindProfilesByName/index.js +59 -0
- package/build/api/server-search/queries/useFindShowcaseItems/index.d.ts +2 -0
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +42 -0
- package/build/api/server-search/queries/useFindUserCreations/index.d.ts +16 -0
- package/build/api/server-search/queries/useFindUserCreations/index.js +95 -0
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.d.ts +2 -0
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +40 -0
- package/build/api/subscriptions/SubscriberInviteNotification.d.ts +1 -0
- package/build/api/subscriptions/SubscriberInviteNotification.js +44 -0
- package/build/components/assetPage/assetLikes/index.d.ts +6 -0
- package/build/components/assetPage/assetLikes/index.js +58 -0
- package/build/components/assetPage/assetNft/index.d.ts +4 -0
- package/build/components/assetPage/assetNft/index.js +37 -0
- package/build/components/assetPage/audioVideoPlayer/Duration.d.ts +5 -0
- package/build/components/assetPage/audioVideoPlayer/Duration.js +22 -0
- package/build/components/assetPage/audioVideoPlayer/index.d.ts +96 -0
- package/build/components/assetPage/audioVideoPlayer/index.js +308 -0
- package/build/components/assetPage/category/index.d.ts +6 -0
- package/build/components/assetPage/category/index.js +55 -0
- package/build/components/assetPage/description/index.d.ts +4 -0
- package/build/components/assetPage/description/index.js +43 -0
- package/build/components/assetPage/index.d.ts +11 -0
- package/build/components/assetPage/index.js +25 -0
- package/build/components/assetPage/information/index.d.ts +6 -0
- package/build/components/assetPage/information/index.js +117 -0
- package/build/components/assetPage/marketPlaces/index.d.ts +4 -0
- package/build/components/assetPage/marketPlaces/index.js +57 -0
- package/build/components/assetPage/media/AssetImage/index.d.ts +8 -0
- package/build/components/assetPage/media/AssetImage/index.js +187 -0
- package/build/components/assetPage/moreDropDown/index.d.ts +10 -0
- package/build/components/assetPage/moreDropDown/index.js +152 -0
- package/build/components/assetPage/participants/index.d.ts +9 -0
- package/build/components/assetPage/participants/index.js +178 -0
- package/build/components/assetPage/priceRank/index.d.ts +9 -0
- package/build/components/assetPage/priceRank/index.js +112 -0
- package/build/components/assetPage/properties/index.d.ts +4 -0
- package/build/components/assetPage/properties/index.js +42 -0
- package/build/components/assetPage/slider/index.d.ts +5 -0
- package/build/components/assetPage/slider/index.js +178 -0
- package/build/components/assetPage/slider/slideItem.d.ts +5 -0
- package/build/components/assetPage/slider/slideItem.js +53 -0
- package/build/components/assetPage/slider/store.d.ts +8 -0
- package/build/components/assetPage/slider/store.js +16 -0
- package/build/components/assetPage/tittle/index.d.ts +9 -0
- package/build/components/assetPage/tittle/index.js +89 -0
- package/build/components/assetPage/viewer3D/index.d.ts +7 -0
- package/build/components/assetPage/viewer3D/index.js +123 -0
- package/build/components/base/Meta/index.d.ts +2 -0
- package/build/components/base/Meta/index.js +39 -0
- package/build/components/base/NoSSR/index.d.ts +5 -0
- package/build/components/base/NoSSR/index.js +11 -0
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +7 -0
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +28 -0
- package/build/components/gallery/add/addCreationToGallery/index.d.ts +2 -0
- package/build/components/gallery/add/addCreationToGallery/index.js +48 -0
- package/build/components/headers/components/MobileToggle/index.d.ts +0 -0
- package/build/components/headers/components/MobileToggle/index.js +1 -0
- package/build/components/headers/components/headerExperienceLabel/index.d.ts +4 -0
- package/build/components/headers/components/headerExperienceLabel/index.js +31 -0
- package/build/components/headers/components/headerUserPic/index.d.ts +4 -0
- package/build/components/headers/components/headerUserPic/index.js +29 -0
- package/build/components/headers/header/index.d.ts +2 -0
- package/build/components/headers/header/index.js +30 -0
- package/build/components/headers/headerSearch/index.d.ts +2 -0
- package/build/components/headers/headerSearch/index.js +37 -0
- package/build/components/headers/headerSimple/index.d.ts +2 -0
- package/build/components/headers/headerSimple/index.js +76 -0
- package/build/components/linkTabs/index.d.ts +7 -0
- package/build/components/linkTabs/index.js +51 -0
- package/build/components/linkTabs/linkTab/index.d.ts +8 -0
- package/build/components/linkTabs/linkTab/index.js +74 -0
- package/build/components/profile/profileSkeleton/index.d.ts +4 -0
- package/build/components/profile/profileSkeleton/index.js +75 -0
- package/build/components/search/SearchInputContainer.d.ts +26 -0
- package/build/components/search/SearchInputContainer.js +226 -0
- package/build/components/search/searchCloseMoreButtons/index.d.ts +14 -0
- package/build/components/search/searchCloseMoreButtons/index.js +58 -0
- package/build/components/search/searchSimpleInput/index.d.ts +4 -0
- package/build/components/search/searchSimpleInput/index.js +139 -0
- package/build/components/search/searchSuggestions/index.d.ts +14 -0
- package/build/components/search/searchSuggestions/index.js +145 -0
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.d.ts +7 -0
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +45 -0
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +2 -0
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +52 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.d.ts +11 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +117 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +3 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +116 -0
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +4 -0
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +46 -0
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.d.ts +5 -0
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +55 -0
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.d.ts +10 -0
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +60 -0
- package/build/components/searchFiltersConnector/filters/index.d.ts +11 -0
- package/build/components/searchFiltersConnector/filters/index.js +158 -0
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.d.ts +5 -0
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +25 -0
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.d.ts +9 -0
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +53 -0
- package/build/components/searchFiltersConnector/index.d.ts +10 -0
- package/build/components/searchFiltersConnector/index.js +121 -0
- package/build/components/sidebar/data.d.ts +19 -0
- package/build/components/sidebar/data.js +80 -0
- package/build/components/sidebar/index.d.ts +2 -0
- package/build/components/sidebar/index.js +160 -0
- package/build/components/sidebar/initializer.d.ts +1 -0
- package/build/components/sidebar/initializer.js +36 -0
- package/build/components/sidebar/sidebarFilters/index.d.ts +7 -0
- package/build/components/sidebar/sidebarFilters/index.js +51 -0
- package/build/components/sidebar/sidebarInviteCodeLabel/index.d.ts +2 -0
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +38 -0
- package/build/components/toTopBtn/index.d.ts +5 -0
- package/build/components/toTopBtn/index.js +95 -0
- package/build/dto/AssetEntity/index.d.ts +63 -0
- package/build/dto/AssetEntity/index.js +223 -0
- package/build/dto/AssetEntity/interface.d.ts +39 -0
- package/build/dto/AssetEntity/interface.js +2 -0
- package/build/dto/AssetEntity/views/AssetAudio/index.d.ts +9 -0
- package/build/dto/AssetEntity/views/AssetAudio/index.js +27 -0
- package/build/dto/AssetEntity/views/AssetImage/index.d.ts +10 -0
- package/build/dto/AssetEntity/views/AssetImage/index.js +38 -0
- package/build/dto/AssetEntity/views/AssetObject/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetObject/index.js +59 -0
- package/build/dto/AssetEntity/views/AssetOther/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetOther/index.js +43 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.d.ts +10 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +38 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.d.ts +9 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.js +27 -0
- package/build/dto/AssetEntity/views/index.d.ts +6 -0
- package/build/dto/AssetEntity/views/index.js +16 -0
- package/build/dto/Collection/CollectionCreationEntity/index.d.ts +45 -0
- package/build/dto/Collection/CollectionCreationEntity/index.js +173 -0
- package/build/dto/Collection/CollectionCreationEntity/interface.d.ts +24 -0
- package/build/dto/Collection/CollectionCreationEntity/interface.js +2 -0
- package/build/dto/Collection/CollectionEntity/index.d.ts +32 -0
- package/build/dto/Collection/CollectionEntity/index.js +82 -0
- package/build/dto/Collection/CollectionEntity/interface.d.ts +16 -0
- package/build/dto/Collection/CollectionEntity/interface.js +2 -0
- package/build/dto/CreationEntity/index.d.ts +49 -0
- package/build/dto/CreationEntity/index.js +178 -0
- package/build/dto/CreationEntity/interface.d.ts +30 -0
- package/build/dto/CreationEntity/interface.js +2 -0
- package/build/dto/GalleryEntityV2/index.d.ts +32 -0
- package/build/dto/GalleryEntityV2/index.js +82 -0
- package/build/dto/GalleryEntityV2/interface.d.ts +16 -0
- package/build/dto/GalleryEntityV2/interface.js +2 -0
- package/build/dto/Theme/interface.d.ts +2 -0
- package/build/dto/Theme/interface.js +5 -0
- package/build/dto/common/ItemType/data.d.ts +3 -0
- package/build/dto/common/ItemType/data.js +36 -0
- package/build/dto/common/ItemType/index.d.ts +45 -0
- package/build/dto/common/ItemType/index.js +42 -0
- package/build/dto/common/ItemViews/CreationAudio/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationAudio/index.js +27 -0
- package/build/dto/common/ItemViews/CreationImage/index.d.ts +10 -0
- package/build/dto/common/ItemViews/CreationImage/index.js +38 -0
- package/build/dto/common/ItemViews/CreationObject/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationObject/index.js +30 -0
- package/build/dto/common/ItemViews/CreationOther/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationOther/index.js +27 -0
- package/build/dto/common/ItemViews/CreationVideo/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationVideo/index.js +27 -0
- package/build/dto/common/Media/Audio/index.d.ts +13 -0
- package/build/dto/common/Media/Audio/index.js +37 -0
- package/build/dto/common/Media/Image/index.d.ts +13 -0
- package/build/dto/common/Media/Image/index.js +45 -0
- package/build/dto/common/Media/Object/index.d.ts +13 -0
- package/build/dto/common/Media/Object/index.js +46 -0
- package/build/dto/common/Media/Other/index.d.ts +13 -0
- package/build/dto/common/Media/Other/index.js +65 -0
- package/build/dto/common/Media/Screenshot/index.d.ts +13 -0
- package/build/dto/common/Media/Screenshot/index.js +45 -0
- package/build/dto/common/Media/Urls/index.d.ts +31 -0
- package/build/dto/common/Media/Urls/index.js +124 -0
- package/build/dto/common/Media/Video/index.d.ts +13 -0
- package/build/dto/common/Media/Video/index.js +37 -0
- package/build/dto/common/Media/index.d.ts +26 -0
- package/build/dto/common/Media/index.js +45 -0
- package/build/dto/common/Media/interface.d.ts +28 -0
- package/build/dto/common/Media/interface.js +2 -0
- package/build/entities/user/type.d.ts +5 -0
- package/build/entities/user/type.js +2 -0
- package/build/fonts/FontsInitializeLayout.d.ts +6 -0
- package/build/fonts/FontsInitializeLayout.js +160 -0
- package/build/fonts/vars.d.ts +1 -0
- package/build/fonts/vars.js +6 -0
- package/build/hooks/apollo/index.d.ts +2 -0
- package/build/hooks/apollo/index.js +13 -0
- package/build/hooks/audio/useMultiAudio/index.d.ts +2 -0
- package/build/hooks/audio/useMultiAudio/index.js +47 -0
- package/build/hooks/extension/useExtension/index.d.ts +7 -0
- package/build/hooks/extension/useExtension/index.js +32 -0
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +23 -0
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +132 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +24 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +188 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +24 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +177 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +29 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +150 -0
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.d.ts +15 -0
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +125 -0
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +14 -0
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +135 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +18 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +139 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.d.ts +16 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +151 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +19 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +49 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.d.ts +15 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.js +117 -0
- package/build/hooks/likes/index.d.ts +19 -0
- package/build/hooks/likes/index.js +113 -0
- package/build/hooks/likes/useGetLikesAsset.d.ts +20 -0
- package/build/hooks/likes/useGetLikesAsset.js +97 -0
- package/build/index.d.ts +0 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.d.ts +19 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +221 -0
- package/build/modules/gallery/api/useGetFavoriteGallery.d.ts +6 -0
- package/build/modules/gallery/api/useGetFavoriteGallery.js +40 -0
- package/build/modules/gallery/store.d.ts +26 -0
- package/build/modules/gallery/store.js +101 -0
- package/build/modules/gallery/ui/AllResults.d.ts +3 -0
- package/build/modules/gallery/ui/AllResults.js +12 -0
- package/build/modules/gallery/ui/Description.d.ts +4 -0
- package/build/modules/gallery/ui/Description.js +101 -0
- package/build/modules/gallery/ui/EditGallery.d.ts +9 -0
- package/build/modules/gallery/ui/EditGallery.js +51 -0
- package/build/modules/gallery/ui/GalleryDeleteIcon.d.ts +4 -0
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +28 -0
- package/build/modules/gallery/ui/PlaceholderItemsGallery.d.ts +1 -0
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +71 -0
- package/build/modules/gallery/ui/STopSections.d.ts +2 -0
- package/build/modules/gallery/ui/STopSections.js +31 -0
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.d.ts +7 -0
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +92 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.d.ts +15 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +161 -0
- package/build/modules/gallery/ui/createGalleryForm/index.d.ts +13 -0
- package/build/modules/gallery/ui/createGalleryForm/index.js +140 -0
- package/build/modules/gallery/ui/editGalleryForm/index.d.ts +8 -0
- package/build/modules/gallery/ui/editGalleryForm/index.js +192 -0
- package/build/modules/gallery/ui/itemsPreview/index.d.ts +20 -0
- package/build/modules/gallery/ui/itemsPreview/index.js +279 -0
- package/build/modules/gallery/useToGalleryAsset.d.ts +18 -0
- package/build/modules/gallery/useToGalleryAsset.js +88 -0
- package/build/modules/notifications/CreatorNotifications.d.ts +1 -0
- package/build/modules/notifications/CreatorNotifications.js +41 -0
- package/build/modules/notifications/index.d.ts +22 -0
- package/build/modules/notifications/index.js +6 -0
- package/build/modules/opportunity/OpportunityCard.d.ts +5 -0
- package/build/modules/opportunity/OpportunityCard.js +235 -0
- package/build/modules/opportunity/OpportunityDropDown.d.ts +5 -0
- package/build/modules/opportunity/OpportunityDropDown.js +42 -0
- package/build/modules/opportunity/ShareIcon.d.ts +1 -0
- package/build/modules/opportunity/ShareIcon.js +6 -0
- package/build/modules/opportunity/encodeQuery.d.ts +14 -0
- package/build/modules/opportunity/encodeQuery.js +31 -0
- package/build/modules/opportunity/popup/CopyIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/CopyIcon.js +7 -0
- package/build/modules/opportunity/popup/FacebookIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/FacebookIcon.js +7 -0
- package/build/modules/opportunity/popup/LinkedInIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/LinkedInIcon.js +7 -0
- package/build/modules/opportunity/popup/LogoXIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/LogoXIcon.js +7 -0
- package/build/modules/opportunity/popup/OpportunityMenu.d.ts +8 -0
- package/build/modules/opportunity/popup/OpportunityMenu.js +201 -0
- package/build/modules/opportunity/type.d.ts +2 -0
- package/build/modules/opportunity/type.js +2 -0
- package/build/modules/sessionScroll/globalTabs.d.ts +12 -0
- package/build/modules/sessionScroll/globalTabs.js +50 -0
- package/build/modules/sessionScroll/index.d.ts +14 -0
- package/build/modules/sessionScroll/index.js +61 -0
- package/build/modules/sessionScroll/type.d.ts +7 -0
- package/build/modules/sessionScroll/type.js +2 -0
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +12 -0
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +59 -0
- package/build/modules/user/auth/useAuthVerification.d.ts +1 -0
- package/build/modules/user/auth/useAuthVerification.js +74 -0
- package/build/modules/user/auth/useSignIn.d.ts +2 -0
- package/build/modules/user/auth/useSignIn.js +23 -0
- package/build/modules/user/auth/useSignOut.d.ts +1 -0
- package/build/modules/user/auth/useSignOut.js +37 -0
- package/build/modules/user/profileData/profileDataInitialization.d.ts +1 -0
- package/build/modules/user/profileData/profileDataInitialization.js +59 -0
- package/build/modules/user/store.d.ts +33 -0
- package/build/modules/user/store.js +73 -0
- package/build/modules/virtuoso/VirtuosoPageBuilder.d.ts +19 -0
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +135 -0
- package/build/modules/virtuoso/VirtuosoToTopBtn.d.ts +9 -0
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +38 -0
- package/build/modules/virtuoso/types.d.ts +7 -0
- package/build/modules/virtuoso/types.js +2 -0
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +3 -0
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +27 -0
- package/build/modules/virtuoso/useVirtuosoData.d.ts +12 -0
- package/build/modules/virtuoso/useVirtuosoData.js +49 -0
- package/build/store/env/index.d.ts +22 -0
- package/build/store/env/index.js +37 -0
- package/build/store/index.d.ts +10 -0
- package/build/store/index.js +12 -0
- package/build/store/media/index.d.ts +2 -0
- package/build/store/media/index.js +59 -0
- package/build/store/media/types.d.ts +11 -0
- package/build/store/media/types.js +2 -0
- package/build/store/ui/index.d.ts +2 -0
- package/build/store/ui/index.js +116 -0
- package/build/store/ui/types.d.ts +34 -0
- package/build/store/ui/types.js +2 -0
- package/build/store/ui/utils.d.ts +7 -0
- package/build/store/ui/utils.js +25 -0
- package/build/styles/ScreenWidth.d.ts +22 -0
- package/build/styles/ScreenWidth.js +26 -0
- package/build/styles/animations/index.d.ts +2 -0
- package/build/styles/animations/index.js +20 -0
- package/build/styles/colors/index.d.ts +1 -0
- package/build/styles/colors/index.js +38 -0
- package/build/styles/globalStyles.d.ts +3 -0
- package/build/styles/globalStyles.js +86 -0
- package/build/styles/mixins/boxShadow.d.ts +2 -0
- package/build/styles/mixins/boxShadow.js +13 -0
- package/build/styles/mixins/boxTransform.d.ts +2 -0
- package/build/styles/mixins/boxTransform.js +12 -0
- package/build/styles/mixins/z-indexes.d.ts +10 -0
- package/build/styles/mixins/z-indexes.js +13 -0
- package/build/styles/typography/index.d.ts +1 -0
- package/build/styles/typography/index.js +13 -0
- package/build/system/ActiveLink/ActiveLink.test.d.ts +1 -0
- package/build/system/ActiveLink/ActiveLink.test.js +48 -0
- package/build/system/ActiveLink/index.d.ts +9 -0
- package/build/system/ActiveLink/index.js +49 -0
- package/build/system/Alert/index.d.ts +2 -0
- package/build/system/Alert/index.js +21 -0
- package/build/system/Alert/type.d.ts +2 -0
- package/build/system/Alert/type.js +8 -0
- package/build/system/BasicOverlay/index.d.ts +2 -0
- package/build/system/BasicOverlay/index.js +27 -0
- package/build/system/Buttons/IconButton/index.d.ts +2 -0
- package/build/system/Buttons/IconButton/index.js +7 -0
- package/build/system/Buttons/IconWithButton/index.d.ts +2 -0
- package/build/system/Buttons/IconWithButton/index.js +7 -0
- package/build/system/Buttons/IconWithButton/themes.d.ts +0 -0
- package/build/system/Buttons/IconWithButton/themes.js +1 -0
- package/build/system/Buttons/MainButton/index.d.ts +2 -0
- package/build/system/Buttons/MainButton/index.js +7 -0
- package/build/system/Buttons/MainButton/themes.d.ts +0 -0
- package/build/system/Buttons/MainButton/themes.js +1 -0
- package/build/system/Buttons/SecondaryButton/index.d.ts +2 -0
- package/build/system/Buttons/SecondaryButton/index.js +7 -0
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.d.ts +1 -0
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +35 -0
- package/build/system/Cards/CardCheckbox/index.d.ts +5 -0
- package/build/system/Cards/CardCheckbox/index.js +92 -0
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +28 -0
- package/build/system/Cards/CardContent/CardCategory/index.d.ts +5 -0
- package/build/system/Cards/CardContent/CardCategory/index.js +54 -0
- package/build/system/Cards/CardContent/CardContent.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardContent.test.js +103 -0
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +37 -0
- package/build/system/Cards/CardContent/CardLikes/index.d.ts +5 -0
- package/build/system/Cards/CardContent/CardLikes/index.js +29 -0
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +46 -0
- package/build/system/Cards/CardContent/CardShowMore/index.d.ts +7 -0
- package/build/system/Cards/CardContent/CardShowMore/index.js +121 -0
- package/build/system/Cards/CardContent/index.d.ts +17 -0
- package/build/system/Cards/CardContent/index.js +97 -0
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.d.ts +1 -0
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +92 -0
- package/build/system/Cards/CardMedia/CardAudio/index.d.ts +7 -0
- package/build/system/Cards/CardMedia/CardAudio/index.js +66 -0
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.d.ts +1 -0
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +34 -0
- package/build/system/Cards/CardMedia/CardImage/index.d.ts +6 -0
- package/build/system/Cards/CardMedia/CardImage/index.js +19 -0
- package/build/system/Cards/CardMedia/CardVideo/index.d.ts +6 -0
- package/build/system/Cards/CardMedia/CardVideo/index.js +54 -0
- package/build/system/Cards/CardRank/index.d.ts +4 -0
- package/build/system/Cards/CardRank/index.js +82 -0
- package/build/system/Cards/CreationCard/CardHead.d.ts +13 -0
- package/build/system/Cards/CreationCard/CardHead.js +76 -0
- package/build/system/Cards/CreationCard/index.d.ts +28 -0
- package/build/system/Cards/CreationCard/index.js +124 -0
- package/build/system/Cards/MultiMediaCard/index.d.ts +9 -0
- package/build/system/Cards/MultiMediaCard/index.js +130 -0
- package/build/system/Cards/Styles/Content.d.ts +3 -0
- package/build/system/Cards/Styles/Content.js +40 -0
- package/build/system/Cards/Styles/Head.d.ts +3 -0
- package/build/system/Cards/Styles/Head.js +45 -0
- package/build/system/Cards/Styles/Headicons.d.ts +5 -0
- package/build/system/Cards/Styles/Headicons.js +121 -0
- package/build/system/Cards/Styles/Image.d.ts +5 -0
- package/build/system/Cards/Styles/Image.js +24 -0
- package/build/system/Cards/Styles/Likes.d.ts +5 -0
- package/build/system/Cards/Styles/Likes.js +53 -0
- package/build/system/Cards/Styles/MultiHead.d.ts +3 -0
- package/build/system/Cards/Styles/MultiHead.js +44 -0
- package/build/system/Cards/Styles/Video.d.ts +3 -0
- package/build/system/Cards/Styles/Video.js +15 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +4 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +48 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +4 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +34 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +5 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +57 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +2 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +42 -0
- package/build/system/DropDown/DropDown.test.d.ts +1 -0
- package/build/system/DropDown/DropDown.test.js +38 -0
- package/build/system/DropDown/index.d.ts +8 -0
- package/build/system/DropDown/index.js +65 -0
- package/build/system/Filters/helpers.d.ts +6 -0
- package/build/system/Filters/helpers.js +8 -0
- package/build/system/Filters/type.d.ts +16 -0
- package/build/system/Filters/type.js +11 -0
- package/build/system/Flex/index.d.ts +0 -0
- package/build/system/Flex/index.js +1 -0
- package/build/system/Forms/Checkbox/Checkbox.test.d.ts +1 -0
- package/build/system/Forms/Checkbox/Checkbox.test.js +76 -0
- package/build/system/Forms/Checkbox/index.d.ts +22 -0
- package/build/system/Forms/Checkbox/index.js +64 -0
- package/build/system/Forms/DatePicker/index.d.ts +16 -0
- package/build/system/Forms/DatePicker/index.js +137 -0
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.d.ts +1 -0
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +28 -0
- package/build/system/Forms/ErrorLabel/index.d.ts +7 -0
- package/build/system/Forms/ErrorLabel/index.js +25 -0
- package/build/system/Forms/Input/Input.test.d.ts +1 -0
- package/build/system/Forms/Input/Input.test.js +54 -0
- package/build/system/Forms/Input/index.d.ts +16 -0
- package/build/system/Forms/Input/index.js +72 -0
- package/build/system/Forms/Input/type.d.ts +5 -0
- package/build/system/Forms/Input/type.js +2 -0
- package/build/system/Forms/Messages/index.d.ts +67 -0
- package/build/system/Forms/Messages/index.js +69 -0
- package/build/system/Forms/RadioInput/index.d.ts +12 -0
- package/build/system/Forms/RadioInput/index.js +73 -0
- package/build/system/Forms/Selects/DesktopSelect/index.d.ts +12 -0
- package/build/system/Forms/Selects/DesktopSelect/index.js +184 -0
- package/build/system/Forms/Selects/DesktopSelect/type.d.ts +5 -0
- package/build/system/Forms/Selects/DesktopSelect/type.js +2 -0
- package/build/system/Forms/Selects/MobileSelect/index.d.ts +14 -0
- package/build/system/Forms/Selects/MobileSelect/index.js +31 -0
- package/build/system/Forms/TextArea/TextArea.test.d.ts +1 -0
- package/build/system/Forms/TextArea/TextArea.test.js +54 -0
- package/build/system/Forms/TextArea/index.d.ts +14 -0
- package/build/system/Forms/TextArea/index.js +70 -0
- package/build/system/Forms/index.d.ts +5 -0
- package/build/system/Forms/index.js +14 -0
- package/build/system/Img/ExternalImage/index.d.ts +6 -0
- package/build/system/Img/ExternalImage/index.js +22 -0
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.d.ts +1 -0
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +45 -0
- package/build/system/Img/ImageInterceptor/index.d.ts +17 -0
- package/build/system/Img/ImageInterceptor/index.js +60 -0
- package/build/system/Img/Profilepic/index.d.ts +10 -0
- package/build/system/Img/Profilepic/index.js +34 -0
- package/build/system/Img/Userpic/UserPic.test.d.ts +2 -0
- package/build/system/Img/Userpic/UserPic.test.js +65 -0
- package/build/system/Img/Userpic/index.d.ts +9 -0
- package/build/system/Img/Userpic/index.js +84 -0
- package/build/system/Img/index.d.ts +3 -0
- package/build/system/Img/index.js +19 -0
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.d.ts +1 -0
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +52 -0
- package/build/system/Labels/ExperienceLabel/index.d.ts +6 -0
- package/build/system/Labels/ExperienceLabel/index.js +65 -0
- package/build/system/Labels/InviteLabel/InviteLabel.test.d.ts +1 -0
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +44 -0
- package/build/system/Labels/InviteLabel/index.d.ts +6 -0
- package/build/system/Labels/InviteLabel/index.js +44 -0
- package/build/system/Labels/SkeletonLabel/index.d.ts +2 -0
- package/build/system/Labels/SkeletonLabel/index.js +7 -0
- package/build/system/Modals/Modal/Modal.test.d.ts +1 -0
- package/build/system/Modals/Modal/Modal.test.js +36 -0
- package/build/system/Modals/Modal/index.d.ts +2 -0
- package/build/system/Modals/Modal/index.js +82 -0
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +1 -0
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +47 -0
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.d.ts +1 -0
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +35 -0
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +5 -0
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +10 -0
- package/build/system/Modals/ModalSidebar/index.d.ts +4 -0
- package/build/system/Modals/ModalSidebar/index.js +78 -0
- package/build/system/Overlay/Overlay.test.d.ts +1 -0
- package/build/system/Overlay/Overlay.test.js +44 -0
- package/build/system/Overlay/index.d.ts +2 -0
- package/build/system/Overlay/index.js +41 -0
- package/build/system/PageLoader/index.d.ts +2 -0
- package/build/system/PageLoader/index.js +7 -0
- package/build/system/Palete/index.d.ts +2 -0
- package/build/system/Palete/index.js +7 -0
- package/build/system/ShareIconResize.d.ts +1 -0
- package/build/system/ShareIconResize.js +31 -0
- package/build/system/Tabs/TabNavLink/TabNavLink.test.d.ts +2 -0
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +40 -0
- package/build/system/Tabs/TabNavLink/index.d.ts +12 -0
- package/build/system/Tabs/TabNavLink/index.js +58 -0
- package/build/system/Tabs/TabsNav/TabsNav.test.d.ts +2 -0
- package/build/system/Tabs/TabsNav/TabsNav.test.js +43 -0
- package/build/system/Tabs/TabsNav/index.d.ts +10 -0
- package/build/system/Tabs/TabsNav/index.js +31 -0
- package/build/system/Tabs/TabsNav/type.d.ts +6 -0
- package/build/system/Tabs/TabsNav/type.js +2 -0
- package/build/system/Tabs/TabsPanel/TabsPanel.test.d.ts +2 -0
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +32 -0
- package/build/system/Tabs/TabsPanel/index.d.ts +7 -0
- package/build/system/Tabs/TabsPanel/index.js +17 -0
- package/build/system/Text/index.d.ts +0 -0
- package/build/system/Text/index.js +1 -0
- package/build/system/index.d.ts +6 -0
- package/build/system/index.js +22 -0
- package/build/system/theme.d.ts +1 -0
- package/build/system/theme.js +7 -0
- package/build/utils/3d.d.ts +5 -0
- package/build/utils/3d.js +44 -0
- package/build/utils/adaptive/check4k.d.ts +5 -0
- package/build/utils/adaptive/check4k.js +16 -0
- package/build/utils/adaptive/scale.d.ts +9 -0
- package/build/utils/adaptive/scale.js +18 -0
- package/build/utils/auth/index.d.ts +1 -0
- package/build/utils/auth/index.js +9 -0
- package/build/utils/copyBtn/index.d.ts +5 -0
- package/build/utils/copyBtn/index.js +46 -0
- package/build/utils/env/index.d.ts +1 -0
- package/build/utils/env/index.js +5 -0
- package/build/utils/extractItemIds.d.ts +2 -0
- package/build/utils/extractItemIds.js +13 -0
- package/build/utils/getDimensionsImage.d.ts +4 -0
- package/build/utils/getDimensionsImage.js +38 -0
- package/build/utils/getPageSizeAssets.d.ts +5 -0
- package/build/utils/getPageSizeAssets.js +17 -0
- package/build/utils/imageProportionsSize/index.d.ts +5 -0
- package/build/utils/imageProportionsSize/index.js +23 -0
- package/build/utils/screen/index.d.ts +18 -0
- package/build/utils/screen/index.js +87 -0
- package/build/utils/seacrhTabs.d.ts +4 -0
- package/build/utils/seacrhTabs.js +17 -0
- package/build/utils/ssrFunctions/index.d.ts +17 -0
- package/build/utils/ssrFunctions/index.js +33 -0
- package/build/utils/ui/index.d.ts +8 -0
- package/build/utils/ui/index.js +6 -0
- package/package.json +2 -2
- package/public/404/404.svg +8 -0
- package/public/500/500.svg +8 -0
- package/public/MobileSearchBtn/close.svg +3 -0
- package/public/MobileSearchBtn/search.svg +4 -0
- package/public/MobileSearchBtn/test/pirate.svg +9 -0
- package/public/MobileSearchBtn/test/squircle.svg +9 -0
- package/public/alerts/close.svg +5 -0
- package/public/alerts/errorIcon.svg +4 -0
- package/public/alerts/successIcon.svg +4 -0
- package/public/alerts/warningIcon.svg +8 -0
- package/public/assetPage/arrow.svg +3 -0
- package/public/assetPage/audioPlaceholder.svg +35 -0
- package/public/assetPage/details.svg +6 -0
- package/public/assetPage/favorite.svg +3 -0
- package/public/assetPage/favorite_hover.svg +3 -0
- package/public/assetPage/flag.svg +5 -0
- package/public/assetPage/fullScreen.svg +3 -0
- package/public/assetPage/owners.svg +4 -0
- package/public/assetPage/pause.svg +4 -0
- package/public/assetPage/play.svg +3 -0
- package/public/assetPage/share.svg +3 -0
- package/public/assetPage/share2.svg +3 -0
- package/public/assetPage/share2_hover.svg +3 -0
- package/public/assetPage/shareWithDots.svg +6 -0
- package/public/assetPage/shareWithDots_hover.svg +6 -0
- package/public/assetPage/share_hover.svg +3 -0
- package/public/assetPage/soundOf.svg +3 -0
- package/public/assetPage/soundOn.svg +3 -0
- package/public/banner/banner_img.svg +96 -0
- package/public/banner/banner_stroke.svg +3 -0
- package/public/button_skin/accept.svg +11 -0
- package/public/button_skin/decline.svg +11 -0
- package/public/calendar.svg +3 -0
- package/public/cards/addToFavListIcon.svg +5 -0
- package/public/cards/addToGalleryIcon.svg +3 -0
- package/public/cards/heart.svg +3 -0
- package/public/cardsHolderLoader/loader.svg +4 -0
- package/public/checkbox-on.svg +4 -0
- package/public/checkboxArrow.svg +3 -0
- package/public/close.svg +3 -0
- package/public/close20.svg +4 -0
- package/public/collectionPage/export.svg +3 -0
- package/public/copied.svg +4 -0
- package/public/copy-icon-new.svg +4 -0
- package/public/creation/card/moreBtn.svg +6 -0
- package/public/creation/card/moreBtnVertical.svg +5 -0
- package/public/creation/card/moreBtn_hover.svg +5 -0
- package/public/defaultUserpics/0.svg +24 -0
- package/public/defaultUserpics/1.svg +24 -0
- package/public/defaultUserpics/10.svg +24 -0
- package/public/defaultUserpics/11.svg +24 -0
- package/public/defaultUserpics/12.svg +24 -0
- package/public/defaultUserpics/13.svg +24 -0
- package/public/defaultUserpics/14.svg +24 -0
- package/public/defaultUserpics/15.svg +24 -0
- package/public/defaultUserpics/16.svg +24 -0
- package/public/defaultUserpics/17.svg +24 -0
- package/public/defaultUserpics/18.svg +24 -0
- package/public/defaultUserpics/19.svg +24 -0
- package/public/defaultUserpics/2.svg +24 -0
- package/public/defaultUserpics/20.svg +24 -0
- package/public/defaultUserpics/3.svg +24 -0
- package/public/defaultUserpics/4.svg +24 -0
- package/public/defaultUserpics/5.svg +24 -0
- package/public/defaultUserpics/6.svg +24 -0
- package/public/defaultUserpics/7.svg +24 -0
- package/public/defaultUserpics/8.svg +24 -0
- package/public/defaultUserpics/9.svg +24 -0
- package/public/defaultUserpics/defaultUserpic.svg +31 -0
- package/public/dropDown/arrow_down.svg +3 -0
- package/public/dropdown-arrow-down.svg +3 -0
- package/public/dropdown-arrow-up.svg +3 -0
- package/public/error/refresh.svg +4 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.png +0 -0
- package/public/follower.svg +4 -0
- package/public/fonts/dm-sans-v15-latin-500.woff2 +0 -0
- package/public/fonts/dm-sans-v15-latin-500italic.woff2 +0 -0
- package/public/fonts/dm-sans-v15-latin-600.woff2 +0 -0
- package/public/fonts/dm-sans-v15-latin-600italic.woff2 +0 -0
- package/public/fonts/dm-sans-v15-latin-700.woff2 +0 -0
- package/public/fonts/dm-sans-v15-latin-700italic.woff2 +0 -0
- package/public/fonts/dm-sans-v15-latin-italic.woff2 +0 -0
- package/public/fonts/dm-sans-v15-latin-regular.woff2 +0 -0
- package/public/fonts/poppins-v21-latin-200.woff2 +0 -0
- package/public/fonts/poppins-v21-latin-300.woff2 +0 -0
- package/public/fonts/poppins-v21-latin-500.woff2 +0 -0
- package/public/fonts/poppins-v21-latin-600.woff2 +0 -0
- package/public/fonts/poppins-v21-latin-700.woff2 +0 -0
- package/public/fonts/poppins-v21-latin-800.woff2 +0 -0
- package/public/fonts/poppins-v21-latin-regular.woff2 +0 -0
- package/public/forms/checkbox/checked.svg +4 -0
- package/public/formsBg/get_early_access_bg.jpg +0 -0
- package/public/gallery/defaultImage.svg +3 -0
- package/public/gallery/delete.svg +4 -0
- package/public/header/mobile_menu_icons/arrows/arrow_down.svg +3 -0
- package/public/header/mobile_menu_icons/arrows/arrow_up.svg +3 -0
- package/public/header/mobile_menu_icons/campaigns.svg +6 -0
- package/public/header/mobile_menu_icons/dropdown/add_new_campaign.svg +10 -0
- package/public/header/mobile_menu_icons/dropdown/my_galleries.svg +12 -0
- package/public/header/mobile_menu_icons/dropdown/my_profile.svg +5 -0
- package/public/header/mobile_menu_icons/dropdown/my_wallets.svg +5 -0
- package/public/header/mobile_menu_icons/dropdown/notifications.svg +6 -0
- package/public/header/mobile_menu_icons/dropdown/top_campaigns.svg +7 -0
- package/public/header/mobile_menu_icons/dropdown/top_creations.svg +6 -0
- package/public/header/mobile_menu_icons/dropdown/top_creators.svg +10 -0
- package/public/header/mobile_menu_icons/dropdown/top_galleries.svg +13 -0
- package/public/header/mobile_menu_icons/dropdown/top_/321/201ollectors.svg +10 -0
- package/public/header/mobile_menu_icons/experiences.svg +11 -0
- package/public/header/mobile_menu_icons/settings.svg +3 -0
- package/public/header/mobile_menu_icons/sign_out.svg +4 -0
- package/public/header/mobile_menu_icons/submit_nft.svg +16 -0
- package/public/header/mobile_menu_icons/top.svg +7 -0
- package/public/header/mobile_toggle/close.svg +3 -0
- package/public/header/mobile_toggle/regular.svg +3 -0
- package/public/iconButton/share.svg +6 -0
- package/public/iconButton/trash.svg +5 -0
- package/public/iconButton/trash_open.svg +6 -0
- package/public/like-icon-active.svg +4 -0
- package/public/like-icon.svg +3 -0
- package/public/logOut/logOutBtn.svg +5 -0
- package/public/logo/main_logo.svg +214 -0
- package/public/logo/main_logo_dark.svg +49 -0
- package/public/logo/mobile_logo.svg +210 -0
- package/public/logo/mobile_logo_dark.svg +45 -0
- package/public/ludo-logo-small.svg +5 -0
- package/public/ludo-logo-square.svg +9 -0
- package/public/modal/close.svg +3 -0
- package/public/noContent/noContent.svg +9 -0
- package/public/noContent/noContentAudio.svg +34 -0
- package/public/noContent/noContentObject.svg +35 -0
- package/public/no_image placeholder.svg +9 -0
- package/public/no_media_placeholder.svg +222 -0
- package/public/report.svg +6 -0
- package/public/rewardsPage/XP_logo.svg +22 -0
- package/public/rewardsPage/arrow_up_light.svg +3 -0
- package/public/rewardsPage/banner_rewards.svg +9 -0
- package/public/rewardsPage/banner_rewards_mobile.svg +9 -0
- package/public/rewardsPage/banner_rewards_tablet.svg +9 -0
- package/public/rewardsPage/banner_seasons.svg +9 -0
- package/public/rewardsPage/defaultUserPic.svg +9 -0
- package/public/rewardsPage/ludo_logo_white.svg +49 -0
- package/public/search/arrow_up.svg +3 -0
- package/public/search/back.svg +3 -0
- package/public/search/close.svg +3 -0
- package/public/search/no_found.svg +4 -0
- package/public/search/search.svg +4 -0
- package/public/search-icon.svg +4 -0
- package/public/selects/arrow_down.svg +3 -0
- package/public/services/opensea.svg +5 -0
- package/public/services/other.svg +8 -0
- package/public/services/rarible.svg +4 -0
- package/public/settings_page/back.svg +3 -0
- package/public/settings_page/burger_menu.svg +5 -0
- package/public/settings_page/notifications.svg +5 -0
- package/public/settings_page/notifications_active.svg +5 -0
- package/public/settings_page/privacy.svg +4 -0
- package/public/settings_page/privacy_active.svg +4 -0
- package/public/settings_page/settings.svg +5 -0
- package/public/settings_page/settings_active.svg +5 -0
- package/public/settings_page/upload.svg +4 -0
- package/public/share/copy-link-btn.svg +6 -0
- package/public/share/email-btn.svg +5 -0
- package/public/share/facebook-btn.svg +5 -0
- package/public/share/insta-btn.svg +21 -0
- package/public/share/reddit-btn.svg +11 -0
- package/public/share/telegram-btn.svg +4 -0
- package/public/share/twitter-btn.svg +5 -0
- package/public/share/whatsapp-btn.svg +6 -0
- package/public/share-icon.svg +7 -0
- package/public/showCaseIcons/heart.svg +3 -0
- package/public/sidebar/aboutLudo.svg +40 -0
- package/public/sidebar/aboutLudoDark.svg +52 -0
- package/public/sidebar/api.svg +3 -0
- package/public/sidebar/close.svg +3 -0
- package/public/sidebar/disconnect.svg +3 -0
- package/public/sidebar/explore.svg +5 -0
- package/public/sidebar/ludoX.svg +63 -0
- package/public/sidebar/my-invites.svg +4 -0
- package/public/sidebar/rewards.svg +4 -0
- package/public/sidebar/submitNft.svg +3 -0
- package/public/socials/facebook.svg +4 -0
- package/public/socials/instagram.svg +5 -0
- package/public/socials/twitter.svg +3 -0
- package/public/socials/website.svg +8 -0
- package/public/tabs/arrow_right.svg +3 -0
- package/public/tabs/arrow_right_dark.svg +3 -0
- package/public/tests/audio.mp3 +0 -0
- package/public/tests/test_1.svg +11 -0
- package/public/toTopBtn/toTopBtn.svg +4 -0
- package/public/upload-userpic.svg +11 -0
- package/public/userpic-placeholder.jpg +0 -0
- package/public/userpics/placeholder-lg-1.svg +10 -0
- package/public/userpics/placeholder-sm-1.svg +10 -0
- package/public/video/pause.svg +5 -0
- package/public/video/play.svg +4 -0
- package/public/wallets/arkane-btn.svg +5 -0
- package/public/wallets/bitski-btn.svg +12 -0
- package/public/wallets/elrond-btn.svg +36 -0
- package/public/wallets/elrond-icon-sm.svg +35 -0
- package/public/wallets/elrond.svg +4 -0
- package/public/wallets/ethereum-icon-sm.svg +7 -0
- package/public/wallets/flow-btn.svg +6 -0
- package/public/wallets/flow-icon-sm.svg +12 -0
- package/public/wallets/formatic-btn.svg +4 -0
- package/public/wallets/formatic-icon-sm.svg +4 -0
- package/public/wallets/maiar-btn.svg +17 -0
- package/public/wallets/maiar-icon-sm.svg +17 -0
- package/public/wallets/metamask-btn.svg +33 -0
- package/public/wallets/metamask-icon-sm.svg +32 -0
- package/public/wallets/phantom.svg +4 -0
- package/public/wallets/plus.svg +4 -0
- package/public/wallets/solana-btn.svg +20 -0
- package/public/wallets/solana-icon-sm.svg +19 -0
- package/public/wallets/terra-btn.svg +29 -0
- package/public/wallets/terra-icon-sm.svg +29 -0
- package/public/wallets/tezos-btn.svg +12 -0
- package/public/wallets/tezos-icon-sm.svg +11 -0
- package/public/wallets/wallet_connect.svg +4 -0
- package/public/wallets/walletconnect-btn.svg +3 -0
- package/public/wallets/walletlink-btn.svg +5 -0
- package/public/wallets/walletlink-icon-sm.svg +5 -0
- package/public/wallets/xdefi-btn.svg +6 -0
- package/public/wallets/xdefi-icon-sm.svg +6 -0
- package/public/warning.svg +3 -0
|
@@ -0,0 +1,178 @@
|
|
|
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 core_1 = require("@ludo.ninja/core");
|
|
7
|
+
const ItemType_1 = require("@/dto/common/ItemType");
|
|
8
|
+
const data_1 = __importDefault(require("@/dto/common/ItemType/data"));
|
|
9
|
+
const CreationAudio_1 = __importDefault(require("@/dto/common/ItemViews/CreationAudio"));
|
|
10
|
+
const CreationImage_1 = __importDefault(require("@/dto/common/ItemViews/CreationImage"));
|
|
11
|
+
const CreationObject_1 = __importDefault(require("@/dto/common/ItemViews/CreationObject"));
|
|
12
|
+
const CreationOther_1 = __importDefault(require("@/dto/common/ItemViews/CreationOther"));
|
|
13
|
+
const CreationVideo_1 = __importDefault(require("@/dto/common/ItemViews/CreationVideo"));
|
|
14
|
+
class CreationEntity {
|
|
15
|
+
itemId;
|
|
16
|
+
itemType;
|
|
17
|
+
likes;
|
|
18
|
+
liked;
|
|
19
|
+
media;
|
|
20
|
+
id;
|
|
21
|
+
// private mediaPreview;
|
|
22
|
+
// private creatorsProfiles;
|
|
23
|
+
// private ownersAddresses;
|
|
24
|
+
// private ownersProfiles;
|
|
25
|
+
originalUrls;
|
|
26
|
+
rank;
|
|
27
|
+
mimeType;
|
|
28
|
+
name;
|
|
29
|
+
// private nsfw;
|
|
30
|
+
blockchain;
|
|
31
|
+
creatorsAddresses;
|
|
32
|
+
isNeedRenderCheckbox;
|
|
33
|
+
isCheckboxSelected;
|
|
34
|
+
address;
|
|
35
|
+
tokenId;
|
|
36
|
+
constructor(creation) {
|
|
37
|
+
this.itemId = creation.itemId;
|
|
38
|
+
this.id = creation.id;
|
|
39
|
+
this.itemType = creation.itemType;
|
|
40
|
+
this.blockchain = new core_1.BlockChainEntity(creation.blockchain);
|
|
41
|
+
this.address = creation.address;
|
|
42
|
+
this.tokenId = creation.tokenId;
|
|
43
|
+
// this.creatorsProfiles = creation.creatorsProfiles;
|
|
44
|
+
// this.ownersAddresses = creation.ownersAddresses;
|
|
45
|
+
// this.ownersProfiles = creation.ownersProfiles;
|
|
46
|
+
this.originalUrls = creation.originalUrls;
|
|
47
|
+
this.rank = creation.rank;
|
|
48
|
+
this.likes = creation.likes;
|
|
49
|
+
this.liked = creation.liked;
|
|
50
|
+
this.media = creation.media;
|
|
51
|
+
// this.mediaPreview = creation.mediaPreview;
|
|
52
|
+
this.mimeType = creation.mimeType;
|
|
53
|
+
this.name = creation.name;
|
|
54
|
+
this.creatorsAddresses = creation.creatorsAddresses;
|
|
55
|
+
this.isNeedRenderCheckbox = false;
|
|
56
|
+
this.isCheckboxSelected = false;
|
|
57
|
+
}
|
|
58
|
+
// accessors
|
|
59
|
+
getAddress() {
|
|
60
|
+
return this.address ? this.address : '';
|
|
61
|
+
}
|
|
62
|
+
getId() {
|
|
63
|
+
return this.id ? this.id : '';
|
|
64
|
+
}
|
|
65
|
+
getTokenId() {
|
|
66
|
+
return this.tokenId ? this.tokenId : '';
|
|
67
|
+
}
|
|
68
|
+
getItemId() {
|
|
69
|
+
return this.itemId;
|
|
70
|
+
}
|
|
71
|
+
getCreationId() {
|
|
72
|
+
return `${this.getItemType()}.${this.getItemId()}`;
|
|
73
|
+
}
|
|
74
|
+
getName() {
|
|
75
|
+
return this.name ? this.name : null;
|
|
76
|
+
}
|
|
77
|
+
getRank() {
|
|
78
|
+
return this.rank ? Math.round(this.rank) : 0;
|
|
79
|
+
}
|
|
80
|
+
getOriginalUrls() {
|
|
81
|
+
return this.originalUrls ? this.originalUrls : null;
|
|
82
|
+
}
|
|
83
|
+
getItemType() {
|
|
84
|
+
return this.itemType;
|
|
85
|
+
}
|
|
86
|
+
getCheckboxSelected() {
|
|
87
|
+
return this.isCheckboxSelected;
|
|
88
|
+
}
|
|
89
|
+
getCreationLink() {
|
|
90
|
+
if (this.getItemType() === ItemType_1.LabelKeys.asset) {
|
|
91
|
+
const blockChainPrivateLabel = this.getBlockchain().getBlockChainPrivateLabel();
|
|
92
|
+
if (blockChainPrivateLabel === core_1.BlockChainKeys.elrond) {
|
|
93
|
+
return `/${this.getItemType()}/${this.getBlockchain().getBlockChainPrivateLabel()}/${this.getId()}`;
|
|
94
|
+
}
|
|
95
|
+
else if (blockChainPrivateLabel === core_1.BlockChainKeys.solana) {
|
|
96
|
+
return `/${this.getItemType()}/${this.getBlockchain().getBlockChainPrivateLabel()}/${this.getTokenId()}`;
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
return `/${this.getItemType()}/${this.getBlockchain().getBlockChainPrivateLabel()}/${this.getAddress()}/${this.getTokenId()}`;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return `/${this.getItemType()}/${this.getItemId()}`;
|
|
103
|
+
}
|
|
104
|
+
getLabel() {
|
|
105
|
+
return data_1.default[this.getItemType()];
|
|
106
|
+
}
|
|
107
|
+
getLikes() {
|
|
108
|
+
return this.likes ? this.likes : 0;
|
|
109
|
+
}
|
|
110
|
+
getIsLiked() {
|
|
111
|
+
return this.liked;
|
|
112
|
+
}
|
|
113
|
+
getMedia() {
|
|
114
|
+
return this.media ? this.media : null;
|
|
115
|
+
}
|
|
116
|
+
getMimeType() {
|
|
117
|
+
return this.mimeType ? this.mimeType : null;
|
|
118
|
+
}
|
|
119
|
+
set setIsNeedRenderCheckbox(isNeedToShow) {
|
|
120
|
+
this.isNeedRenderCheckbox = isNeedToShow;
|
|
121
|
+
}
|
|
122
|
+
set setCheckboxSelected(isSelected) {
|
|
123
|
+
this.isCheckboxSelected = isSelected;
|
|
124
|
+
}
|
|
125
|
+
getNeedRenderCheckbox() {
|
|
126
|
+
return this.isNeedRenderCheckbox;
|
|
127
|
+
}
|
|
128
|
+
getBlockchain() {
|
|
129
|
+
return this.blockchain;
|
|
130
|
+
}
|
|
131
|
+
getCreatorAddress() {
|
|
132
|
+
return this.creatorsAddresses ? this.creatorsAddresses[0] : null;
|
|
133
|
+
}
|
|
134
|
+
getMediaOrOriginalUrl() {
|
|
135
|
+
if (!this.getMedia()) {
|
|
136
|
+
if (!this.getOriginalUrls())
|
|
137
|
+
return null;
|
|
138
|
+
return this.getOriginalUrls()?.[0];
|
|
139
|
+
}
|
|
140
|
+
return this.getMedia();
|
|
141
|
+
}
|
|
142
|
+
getCuttedSecondName(isMobileView) {
|
|
143
|
+
if (!this.name)
|
|
144
|
+
return null;
|
|
145
|
+
return isMobileView
|
|
146
|
+
? this.name && this.name.length >= 20
|
|
147
|
+
? this.name?.substring(0, 22).concat('...')
|
|
148
|
+
: this.name
|
|
149
|
+
: this.name && this.name.length >= 11
|
|
150
|
+
? this.name?.substring(0, 13).concat('...')
|
|
151
|
+
: this.name;
|
|
152
|
+
}
|
|
153
|
+
// methods
|
|
154
|
+
detectMediaType() {
|
|
155
|
+
const mediaFields = {
|
|
156
|
+
media: this.getMediaOrOriginalUrl(),
|
|
157
|
+
nsfw: null,
|
|
158
|
+
mimeType: this.getMimeType(),
|
|
159
|
+
previewUrl: null,
|
|
160
|
+
alt: `${this.getName()} ${this.getAddress()}`,
|
|
161
|
+
};
|
|
162
|
+
const mediaTypes = [
|
|
163
|
+
new CreationImage_1.default(mediaFields),
|
|
164
|
+
new CreationVideo_1.default(mediaFields),
|
|
165
|
+
new CreationAudio_1.default(mediaFields),
|
|
166
|
+
new CreationObject_1.default(mediaFields),
|
|
167
|
+
];
|
|
168
|
+
let currentMedia = new CreationOther_1.default(mediaFields);
|
|
169
|
+
for (let i = 0; i < mediaTypes.length; i++) {
|
|
170
|
+
if (mediaTypes[i].checkOwnType()) {
|
|
171
|
+
currentMedia = mediaTypes[i];
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return currentMedia;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
exports.default = CreationEntity;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BlockChainEntity } from '@ludo.ninja/core';
|
|
2
|
+
import { LabelKeys, LabelType } from '../common/ItemType';
|
|
3
|
+
import Media from '../common/Media';
|
|
4
|
+
interface ICreationEntity {
|
|
5
|
+
getItemId(): string;
|
|
6
|
+
getId(): string;
|
|
7
|
+
getCreationId(): string;
|
|
8
|
+
getItemType(): LabelKeys;
|
|
9
|
+
getAddress(): string;
|
|
10
|
+
getTokenId(): string;
|
|
11
|
+
getLikes(): number;
|
|
12
|
+
getIsLiked(): boolean;
|
|
13
|
+
getMedia(): null | string;
|
|
14
|
+
getRank(): number;
|
|
15
|
+
getMimeType(): string | null;
|
|
16
|
+
getNeedRenderCheckbox(): boolean;
|
|
17
|
+
getCheckboxSelected(): boolean;
|
|
18
|
+
getOriginalUrls(): string[] | null;
|
|
19
|
+
getMediaOrOriginalUrl(): string | null;
|
|
20
|
+
set setIsNeedRenderCheckbox(isNeedToShow: boolean);
|
|
21
|
+
set setCheckboxSelected(isSelected: boolean);
|
|
22
|
+
getLabel(): LabelType;
|
|
23
|
+
getCreationLink(): string;
|
|
24
|
+
getName(): null | string;
|
|
25
|
+
getBlockchain(): BlockChainEntity;
|
|
26
|
+
getCreatorAddress(): string | null;
|
|
27
|
+
getCuttedSecondName(isMobileView: boolean): string | null;
|
|
28
|
+
detectMediaType(): Media;
|
|
29
|
+
}
|
|
30
|
+
export default ICreationEntity;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { galleriesSchema as schema } from '@ludo.ninja/api';
|
|
2
|
+
import { ProfileEntity } from '@ludo.ninja/core';
|
|
3
|
+
import { LabelKeys, LabelType } from '../common/ItemType';
|
|
4
|
+
import IGalleryEntityV2 from './interface';
|
|
5
|
+
declare class GalleryEntityV2 implements IGalleryEntityV2 {
|
|
6
|
+
private galleryId;
|
|
7
|
+
private galleryType;
|
|
8
|
+
private name;
|
|
9
|
+
private description;
|
|
10
|
+
private username;
|
|
11
|
+
private userpic;
|
|
12
|
+
private banner;
|
|
13
|
+
private items;
|
|
14
|
+
private creationIds;
|
|
15
|
+
private userWallets;
|
|
16
|
+
private profile;
|
|
17
|
+
constructor(gallery: schema.IGalleryV2);
|
|
18
|
+
getProfile(): ProfileEntity;
|
|
19
|
+
getBanner(): string | null;
|
|
20
|
+
getGalleryId(): string;
|
|
21
|
+
getGalleryUsername(): string;
|
|
22
|
+
getGalleryUserpic(): string;
|
|
23
|
+
getGalleryUserWallets(): schema.IWallet[];
|
|
24
|
+
getGalleryName(): string;
|
|
25
|
+
getGalleryItemsCount(): string;
|
|
26
|
+
getGalleryCreationIds(): string[];
|
|
27
|
+
getGalleryDescription(): string;
|
|
28
|
+
getGalleryType(): LabelKeys;
|
|
29
|
+
getLabel(): LabelType;
|
|
30
|
+
getCreationLink(): string;
|
|
31
|
+
}
|
|
32
|
+
export default GalleryEntityV2;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 core_1 = require("@ludo.ninja/core");
|
|
7
|
+
const data_1 = __importDefault(require("../common/ItemType/data"));
|
|
8
|
+
class GalleryEntityV2 {
|
|
9
|
+
galleryId;
|
|
10
|
+
galleryType;
|
|
11
|
+
name;
|
|
12
|
+
description;
|
|
13
|
+
username;
|
|
14
|
+
userpic;
|
|
15
|
+
banner;
|
|
16
|
+
items;
|
|
17
|
+
creationIds;
|
|
18
|
+
userWallets;
|
|
19
|
+
profile;
|
|
20
|
+
constructor(gallery) {
|
|
21
|
+
this.galleryId = gallery.galleryId;
|
|
22
|
+
this.galleryType = gallery.galleryType;
|
|
23
|
+
this.description = gallery.description;
|
|
24
|
+
this.banner = gallery.banner;
|
|
25
|
+
this.profile = new core_1.ProfileEntity({
|
|
26
|
+
userpic: gallery.userpic,
|
|
27
|
+
username: gallery.username,
|
|
28
|
+
userId: gallery.userId,
|
|
29
|
+
});
|
|
30
|
+
this.name = gallery.name;
|
|
31
|
+
this.username = gallery.username;
|
|
32
|
+
this.userpic = gallery.userpic;
|
|
33
|
+
this.items = gallery.items;
|
|
34
|
+
this.userWallets = gallery.userWallets;
|
|
35
|
+
this.creationIds = gallery.creationIds;
|
|
36
|
+
}
|
|
37
|
+
// accessors
|
|
38
|
+
getProfile() {
|
|
39
|
+
return this.profile;
|
|
40
|
+
}
|
|
41
|
+
getBanner() {
|
|
42
|
+
return this.banner ? this.banner : null;
|
|
43
|
+
}
|
|
44
|
+
getGalleryId() {
|
|
45
|
+
return this.galleryId;
|
|
46
|
+
}
|
|
47
|
+
getGalleryUsername() {
|
|
48
|
+
return this.username ?? '';
|
|
49
|
+
}
|
|
50
|
+
getGalleryUserpic() {
|
|
51
|
+
return this.userpic ?? '';
|
|
52
|
+
}
|
|
53
|
+
getGalleryUserWallets() {
|
|
54
|
+
return this.userWallets;
|
|
55
|
+
}
|
|
56
|
+
getGalleryName() {
|
|
57
|
+
return this.name;
|
|
58
|
+
}
|
|
59
|
+
getGalleryItemsCount() {
|
|
60
|
+
return this.items
|
|
61
|
+
? `${this?.items > 1 ? `${this?.items} items` : `${this?.items} item`}`
|
|
62
|
+
: '0 items';
|
|
63
|
+
}
|
|
64
|
+
getGalleryCreationIds() {
|
|
65
|
+
return this.creationIds ? this.creationIds : [];
|
|
66
|
+
}
|
|
67
|
+
getGalleryDescription() {
|
|
68
|
+
return this.description ? this.description : '';
|
|
69
|
+
}
|
|
70
|
+
getGalleryType() {
|
|
71
|
+
return this.galleryType;
|
|
72
|
+
}
|
|
73
|
+
getLabel() {
|
|
74
|
+
return data_1.default[this.getGalleryType()];
|
|
75
|
+
}
|
|
76
|
+
getCreationLink() {
|
|
77
|
+
return this.getGalleryType() === 'likelist'
|
|
78
|
+
? `/favorites/${this.getGalleryId()}`
|
|
79
|
+
: `/${this.getGalleryType()}/${this.getGalleryId()}`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.default = GalleryEntityV2;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ProfileEntity } from '@ludo.ninja/core';
|
|
2
|
+
import { LabelKeys, LabelType } from '../common/ItemType';
|
|
3
|
+
interface IGalleryEntityV2 {
|
|
4
|
+
getGalleryId(): string;
|
|
5
|
+
getGalleryType(): LabelKeys;
|
|
6
|
+
getGalleryName(): string;
|
|
7
|
+
getGalleryItemsCount(): string;
|
|
8
|
+
getLabel(): LabelType;
|
|
9
|
+
getGalleryDescription(): string;
|
|
10
|
+
getGalleryUsername(): string;
|
|
11
|
+
getGalleryCreationIds(): string[];
|
|
12
|
+
getGalleryUserpic(): string;
|
|
13
|
+
getProfile(): ProfileEntity;
|
|
14
|
+
getBanner(): string | null;
|
|
15
|
+
}
|
|
16
|
+
export default IGalleryEntityV2;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThemeEnum = void 0;
|
|
4
|
+
var interface_1 = require("@ludo.ninja/ui/build/dto/Theme/interface");
|
|
5
|
+
Object.defineProperty(exports, "ThemeEnum", { enumerable: true, get: function () { return interface_1.ThemeEnum; } });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const ItemType_1 = require("@/dto/common/ItemType");
|
|
4
|
+
const labelsData = {
|
|
5
|
+
[ItemType_1.LabelKeys.asset]: {
|
|
6
|
+
backgroundColor: ItemType_1.LabelBackground.asset,
|
|
7
|
+
color: ItemType_1.LabelColor.asset,
|
|
8
|
+
text: ItemType_1.LabelText.asset,
|
|
9
|
+
},
|
|
10
|
+
[ItemType_1.LabelKeys.collection]: {
|
|
11
|
+
backgroundColor: ItemType_1.LabelBackground.collection,
|
|
12
|
+
color: ItemType_1.LabelColor.collection,
|
|
13
|
+
text: ItemType_1.LabelText.collection,
|
|
14
|
+
},
|
|
15
|
+
[ItemType_1.LabelKeys.gallery]: {
|
|
16
|
+
backgroundColor: ItemType_1.LabelBackground.gallery,
|
|
17
|
+
color: ItemType_1.LabelColor.gallery,
|
|
18
|
+
text: ItemType_1.LabelText.gallery,
|
|
19
|
+
},
|
|
20
|
+
[ItemType_1.LabelKeys.favorites]: {
|
|
21
|
+
backgroundColor: ItemType_1.LabelBackground.favorites,
|
|
22
|
+
color: ItemType_1.LabelColor.favorites,
|
|
23
|
+
text: ItemType_1.LabelText.favorites,
|
|
24
|
+
},
|
|
25
|
+
[ItemType_1.LabelKeys.likelist]: {
|
|
26
|
+
backgroundColor: ItemType_1.LabelBackground.likelist,
|
|
27
|
+
color: ItemType_1.LabelColor.likelist,
|
|
28
|
+
text: ItemType_1.LabelText.likelist,
|
|
29
|
+
},
|
|
30
|
+
[ItemType_1.LabelKeys.opportunity]: {
|
|
31
|
+
backgroundColor: ItemType_1.LabelBackground.opportunity,
|
|
32
|
+
color: ItemType_1.LabelColor.opportunity,
|
|
33
|
+
text: ItemType_1.LabelText.opportunity,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
exports.default = labelsData;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare enum LabelKeys {
|
|
2
|
+
asset = "asset",
|
|
3
|
+
collection = "collection",
|
|
4
|
+
gallery = "gallery",
|
|
5
|
+
favorites = "favorites",
|
|
6
|
+
likelist = "likelist",
|
|
7
|
+
opportunity = "opportunity"
|
|
8
|
+
}
|
|
9
|
+
declare enum LabelBackground {
|
|
10
|
+
asset = "#F3D6FD",
|
|
11
|
+
collection = "#CDE4FF",
|
|
12
|
+
event = "#CDF8D9",
|
|
13
|
+
gallery = "#FFDFCD",
|
|
14
|
+
favorites = "#CDCFF8",
|
|
15
|
+
likelist = "#CDCFF8",
|
|
16
|
+
opportunity = "#CDF8D9"
|
|
17
|
+
}
|
|
18
|
+
declare enum LabelColor {
|
|
19
|
+
asset = "#9177B1",
|
|
20
|
+
collection = "#6E86C3",
|
|
21
|
+
event = "#77B179",
|
|
22
|
+
gallery = "#B19077",
|
|
23
|
+
favorites = "#7779B1",
|
|
24
|
+
likelist = "#7779B1",
|
|
25
|
+
opportunity = "#77B179"
|
|
26
|
+
}
|
|
27
|
+
declare enum LabelText {
|
|
28
|
+
asset = "nft",
|
|
29
|
+
collection = "collection",
|
|
30
|
+
event = "event",
|
|
31
|
+
gallery = "gallery",
|
|
32
|
+
favorites = "favorites",
|
|
33
|
+
likelist = "liked",
|
|
34
|
+
opportunity = "opportunity"
|
|
35
|
+
}
|
|
36
|
+
type LabelType = {
|
|
37
|
+
backgroundColor: LabelBackground;
|
|
38
|
+
text: LabelText;
|
|
39
|
+
color: LabelColor;
|
|
40
|
+
};
|
|
41
|
+
type LabelItem = {
|
|
42
|
+
[key in LabelKeys]: LabelType;
|
|
43
|
+
};
|
|
44
|
+
export { LabelBackground, LabelText, LabelColor, LabelKeys };
|
|
45
|
+
export type { LabelItem, LabelType };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LabelKeys = exports.LabelColor = exports.LabelText = exports.LabelBackground = void 0;
|
|
4
|
+
var LabelKeys;
|
|
5
|
+
(function (LabelKeys) {
|
|
6
|
+
LabelKeys["asset"] = "asset";
|
|
7
|
+
LabelKeys["collection"] = "collection";
|
|
8
|
+
LabelKeys["gallery"] = "gallery";
|
|
9
|
+
LabelKeys["favorites"] = "favorites";
|
|
10
|
+
LabelKeys["likelist"] = "likelist";
|
|
11
|
+
LabelKeys["opportunity"] = "opportunity";
|
|
12
|
+
})(LabelKeys || (exports.LabelKeys = LabelKeys = {}));
|
|
13
|
+
var LabelBackground;
|
|
14
|
+
(function (LabelBackground) {
|
|
15
|
+
LabelBackground["asset"] = "#F3D6FD";
|
|
16
|
+
LabelBackground["collection"] = "#CDE4FF";
|
|
17
|
+
LabelBackground["event"] = "#CDF8D9";
|
|
18
|
+
LabelBackground["gallery"] = "#FFDFCD";
|
|
19
|
+
LabelBackground["favorites"] = "#CDCFF8";
|
|
20
|
+
LabelBackground["likelist"] = "#CDCFF8";
|
|
21
|
+
LabelBackground["opportunity"] = "#CDF8D9";
|
|
22
|
+
})(LabelBackground || (exports.LabelBackground = LabelBackground = {}));
|
|
23
|
+
var LabelColor;
|
|
24
|
+
(function (LabelColor) {
|
|
25
|
+
LabelColor["asset"] = "#9177B1";
|
|
26
|
+
LabelColor["collection"] = "#6E86C3";
|
|
27
|
+
LabelColor["event"] = "#77B179";
|
|
28
|
+
LabelColor["gallery"] = "#B19077";
|
|
29
|
+
LabelColor["favorites"] = "#7779B1";
|
|
30
|
+
LabelColor["likelist"] = "#7779B1";
|
|
31
|
+
LabelColor["opportunity"] = "#77B179";
|
|
32
|
+
})(LabelColor || (exports.LabelColor = LabelColor = {}));
|
|
33
|
+
var LabelText;
|
|
34
|
+
(function (LabelText) {
|
|
35
|
+
LabelText["asset"] = "nft";
|
|
36
|
+
LabelText["collection"] = "collection";
|
|
37
|
+
LabelText["event"] = "event";
|
|
38
|
+
LabelText["gallery"] = "gallery";
|
|
39
|
+
LabelText["favorites"] = "favorites";
|
|
40
|
+
LabelText["likelist"] = "liked";
|
|
41
|
+
LabelText["opportunity"] = "opportunity";
|
|
42
|
+
})(LabelText || (exports.LabelText = LabelText = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Audio from '@/dto/common/Media/Audio';
|
|
3
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '@/dto/common/Media/interface';
|
|
4
|
+
declare class CreationAudio extends Audio {
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
getMediaUrl(): TGetMediaUrlFunc;
|
|
7
|
+
displaySingleMedia(): JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
export default CreationAudio;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 Audio_1 = __importDefault(require("@/dto/common/Media/Audio"));
|
|
8
|
+
const Urls_1 = require("@/dto/common/Media/Urls");
|
|
9
|
+
const env_1 = require("@/store/env");
|
|
10
|
+
const CardAudio_1 = __importDefault(require("@/system/Cards/CardMedia/CardAudio"));
|
|
11
|
+
class CreationAudio extends Audio_1.default {
|
|
12
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }) {
|
|
13
|
+
super({ nsfw, previewUrl, media, mimeType, alt, originalMime });
|
|
14
|
+
}
|
|
15
|
+
getMediaUrl() {
|
|
16
|
+
const media = this.getMedia();
|
|
17
|
+
return (getAudioENVDomain) => (0, Urls_1.isExternalMediaAudio)(media, getAudioENVDomain);
|
|
18
|
+
}
|
|
19
|
+
displaySingleMedia() {
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(DisplaySingleMedia, { getMediaUrl: this.getMediaUrl(), alt: this.getAlt() }));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const DisplaySingleMedia = ({ getMediaUrl, alt, }) => {
|
|
24
|
+
const getAudioENVDomain = (0, env_1.useEnvStore)((state) => state.getAudioDomain);
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(CardAudio_1.default, { alt: alt, audioSrc: getMediaUrl(getAudioENVDomain), imgSrc: '/noContent/noContentAudio.svg', errorImg: '/noContent/noContentAudio.svg' }));
|
|
26
|
+
};
|
|
27
|
+
exports.default = CreationAudio;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Image from '@/dto/common/Media/Image';
|
|
3
|
+
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
+
declare class CreationImage extends Image {
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
getMediaUrl(): (NEXT_PUBLIC_STATIC_DOMAIN: string) => string;
|
|
7
|
+
displaySingleMedia(): JSX.Element;
|
|
8
|
+
displayLinkedMedia(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default CreationImage;
|
|
@@ -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 Image_1 = __importDefault(require("@/dto/common/Media/Image"));
|
|
8
|
+
const Urls_1 = require("@/dto/common/Media/Urls");
|
|
9
|
+
const env_1 = require("@/store/env");
|
|
10
|
+
const CardImage_1 = __importDefault(require("@/system/Cards/CardMedia/CardImage"));
|
|
11
|
+
const DisplaySingleMedia = ({ getMediaUrl, errorImg, alt, }) => {
|
|
12
|
+
const NEXT_PUBLIC_STATIC_DOMAIN = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_STATIC_DOMAIN);
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(CardImage_1.default, { alt: alt, imgSrc: getMediaUrl(NEXT_PUBLIC_STATIC_DOMAIN), errorImg: errorImg }));
|
|
14
|
+
};
|
|
15
|
+
class CreationImage extends Image_1.default {
|
|
16
|
+
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }) {
|
|
17
|
+
super({
|
|
18
|
+
nsfw,
|
|
19
|
+
previewUrl,
|
|
20
|
+
media,
|
|
21
|
+
mimeType,
|
|
22
|
+
originalUrl,
|
|
23
|
+
alt,
|
|
24
|
+
originalMime,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
getMediaUrl() {
|
|
28
|
+
const media = this.getMedia();
|
|
29
|
+
return (NEXT_PUBLIC_STATIC_DOMAIN) => (0, Urls_1.isExternalMediaImage)(media, Urls_1.mediaSizes.small, NEXT_PUBLIC_STATIC_DOMAIN);
|
|
30
|
+
}
|
|
31
|
+
displaySingleMedia() {
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(DisplaySingleMedia, { alt: this.getAlt(), getMediaUrl: this.getMediaUrl(), errorImg: '/noContent/noContent.svg' }));
|
|
33
|
+
}
|
|
34
|
+
displayLinkedMedia() {
|
|
35
|
+
return (0, jsx_runtime_1.jsx)("div", { children: "Its linked image" });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = CreationImage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Object from '@/dto/common/Media/Object';
|
|
3
|
+
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
+
declare class CreationObject extends Object {
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
displaySingleMedia(): JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
export default CreationObject;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 assetPage_1 = require("@/components/assetPage");
|
|
8
|
+
// import CardImage from '@/system/Cards/CardMedia/CardImage';
|
|
9
|
+
const Object_1 = __importDefault(require("@/dto/common/Media/Object"));
|
|
10
|
+
const env_1 = require("@/store/env");
|
|
11
|
+
class CreationObject extends Object_1.default {
|
|
12
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }) {
|
|
13
|
+
super({ nsfw, previewUrl, media, mimeType, alt, originalMime });
|
|
14
|
+
}
|
|
15
|
+
displaySingleMedia() {
|
|
16
|
+
return (0, jsx_runtime_1.jsx)(DisplaySingleMedia, { getMediaUrl: this.getMediaUrl() });
|
|
17
|
+
// return (
|
|
18
|
+
// <CardImage
|
|
19
|
+
// alt={this.getAlt()}
|
|
20
|
+
// imgSrc={'/noContent/noContentObject.svg'}
|
|
21
|
+
// errorImg={'/noContent/noContentObject.svg'}
|
|
22
|
+
// />
|
|
23
|
+
// );
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const DisplaySingleMedia = ({ getMediaUrl, }) => {
|
|
27
|
+
const getMediaDomain = (0, env_1.useEnvStore)((state) => state.getMediaDomain);
|
|
28
|
+
return (0, jsx_runtime_1.jsx)(assetPage_1.Viewer3D, { file3D: getMediaUrl(getMediaDomain), file2D: 'file2D' });
|
|
29
|
+
};
|
|
30
|
+
exports.default = CreationObject;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Other from '@/dto/common/Media/Other';
|
|
3
|
+
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
+
declare class CreationOther extends Other {
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
getMediaUrl(): (NEXT_PUBLIC_STATIC_DOMAIN: string) => string;
|
|
7
|
+
displaySingleMedia(): JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
export default CreationOther;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 Other_1 = __importDefault(require("@/dto/common/Media/Other"));
|
|
8
|
+
const Urls_1 = require("@/dto/common/Media/Urls");
|
|
9
|
+
const env_1 = require("@/store/env");
|
|
10
|
+
const CardImage_1 = __importDefault(require("@/system/Cards/CardMedia/CardImage"));
|
|
11
|
+
class CreationOther extends Other_1.default {
|
|
12
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }) {
|
|
13
|
+
super({ nsfw, previewUrl, media, mimeType, alt, originalMime });
|
|
14
|
+
}
|
|
15
|
+
getMediaUrl() {
|
|
16
|
+
const media = this.getMedia();
|
|
17
|
+
return (NEXT_PUBLIC_STATIC_DOMAIN) => (0, Urls_1.isExternalMediaImage)(media, Urls_1.mediaSizes.small, NEXT_PUBLIC_STATIC_DOMAIN);
|
|
18
|
+
}
|
|
19
|
+
displaySingleMedia() {
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(DisplaySingleMedia, { alt: this.getAlt(), getMediaUrl: this.getMediaUrl(), errorImg: '/noContent/noContent.svg' }));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const DisplaySingleMedia = ({ getMediaUrl, errorImg, alt, }) => {
|
|
24
|
+
const NEXT_PUBLIC_STATIC_DOMAIN = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_STATIC_DOMAIN);
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(CardImage_1.default, { alt: alt, imgSrc: getMediaUrl(NEXT_PUBLIC_STATIC_DOMAIN), errorImg: errorImg }));
|
|
26
|
+
};
|
|
27
|
+
exports.default = CreationOther;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Video from '@/dto/common/Media/Video';
|
|
3
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '@/dto/common/Media/interface';
|
|
4
|
+
declare class CreationVideo extends Video {
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
getMediaUrl(): TGetMediaUrlFunc;
|
|
7
|
+
displaySingleMedia(): JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
export default CreationVideo;
|