@ludo.ninja/components 1.0.8 → 1.1.0
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/dist/hooks/likes/useGetLikesAsset.js +140 -305
- package/dist/index.js +1 -0
- package/dist/modules/index.js +3 -0
- package/dist/modules/sessionScroll/index.js +33 -43
- package/dist/modules/user/auth/index.js +1 -0
- package/dist/modules/user/index.js +3 -0
- package/dist/modules/user/profileData/index.js +1 -0
- package/dist/store/index.js +4 -5
- package/dist/types/api/server-search/queries/useFetchCollections/index.d.ts +13 -23
- package/dist/types/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +9 -13
- package/dist/types/components/CreationCard/CardHead.d.ts +10 -22
- package/dist/types/components/CreationCard/index.d.ts +18 -39
- package/dist/types/components/addWalletsRedirectPage/index.d.ts +2 -5
- package/dist/types/components/assetPage/assetLikes/index.d.ts +4 -9
- package/dist/types/components/assetPage/assetNft/index.d.ts +1 -5
- package/dist/types/components/assetPage/assetWrapper/index.d.ts +5 -12
- package/dist/types/components/assetPage/audioVideoPlayer/Duration.d.ts +1 -2
- package/dist/types/components/assetPage/audioVideoPlayer/index.d.ts +87 -99
- package/dist/types/components/assetPage/category/index.d.ts +2 -5
- package/dist/types/components/assetPage/description/index.d.ts +1 -5
- package/dist/types/components/assetPage/detailsAccordeon/index.d.ts +2 -6
- package/dist/types/components/assetPage/figCaption/index.d.ts +2 -6
- package/dist/types/components/assetPage/information/index.d.ts +2 -6
- package/dist/types/components/assetPage/moreDropDown/index.d.ts +4 -5
- package/dist/types/components/assetPage/participants/index.d.ts +5 -12
- package/dist/types/components/assetPage/priceRank/index.d.ts +5 -11
- package/dist/types/components/assetPage/properties/index.d.ts +1 -5
- package/dist/types/components/assetPage/slider/index.d.ts +2 -7
- package/dist/types/components/assetPage/tittle/index.d.ts +5 -12
- package/dist/types/components/assetPage/viewer3D/index.d.ts +4 -10
- package/dist/types/components/collectionPage/collectionLike/index.d.ts +4 -9
- package/dist/types/components/deleteDialog/index.d.ts +5 -11
- package/dist/types/components/editProfile/UserPicProfile/index.d.ts +2 -5
- package/dist/types/components/favoriteList/add/addAssetToFavoriteList/index.d.ts +1 -2
- package/dist/types/components/favoriteList/add/addCollectionToFavoriteList/index.d.ts +1 -2
- package/dist/types/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +2 -3
- package/dist/types/components/filters/index.d.ts +7 -23
- package/dist/types/components/forms/form/index.d.ts +8 -10
- package/dist/types/components/forms/formsNavigation/index.d.ts +0 -1
- package/dist/types/components/forms/formsTemplate/index.d.ts +6 -9
- package/dist/types/components/gallery/add/addAssetToGallery/index.d.ts +1 -2
- package/dist/types/components/gallery/add/addCreationToGallery/index.d.ts +0 -1
- package/dist/types/components/gradientLabel/index.d.ts +0 -1
- package/dist/types/components/headers/headerSearch/index.d.ts +0 -1
- package/dist/types/components/headers/headerSimple/index.d.ts +0 -1
- package/dist/types/components/inviteCodesPage/components/index.d.ts +0 -1
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCode/index.d.ts +3 -8
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.d.ts +4 -9
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.d.ts +2 -6
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.d.ts +2 -5
- package/dist/types/components/inviteCodesPage/wrappers/index.d.ts +0 -1
- package/dist/types/components/inviteCodesPage/wrappers/resumeCodes/index.d.ts +5 -11
- package/dist/types/components/inviteCodesPage/wrappers/unusedCodes/index.d.ts +3 -8
- package/dist/types/components/inviteCodesPage/wrappers/usedCodes/index.d.ts +3 -8
- package/dist/types/components/linkTabs/linkTab/index.d.ts +5 -11
- package/dist/types/components/myWallets/index.d.ts +0 -1
- package/dist/types/components/navigation/index.d.ts +3 -4
- package/dist/types/components/profile/ProfileTabs.d.ts +5 -11
- package/dist/types/components/profile/aboutText/index.d.ts +2 -21
- package/dist/types/components/profile/addToGalleryBtns/index.d.ts +2 -5
- package/dist/types/components/profile/followersSocial/followers/index.d.ts +3 -7
- package/dist/types/components/profile/info/index.d.ts +2 -6
- package/dist/types/components/profile/profileUserCards/profileUserCard/index.d.ts +7 -16
- package/dist/types/components/profile/rank/index.d.ts +1 -5
- package/dist/types/components/profile/wallets/index.d.ts +0 -1
- package/dist/types/components/profile/wrapper/index.d.ts +4 -10
- package/dist/types/components/registrationPage/registrationSelection/index.d.ts +10 -12
- package/dist/types/components/rewards/FAQ/index.d.ts +0 -1
- package/dist/types/components/rewards/clarifications/index.d.ts +6 -8
- package/dist/types/components/rewards/logoBottom/index.d.ts +1 -1
- package/dist/types/components/rewards/seasonBanner/index.d.ts +3 -5
- package/dist/types/components/rewards/taskExpTab/index.d.ts +10 -21
- package/dist/types/components/rewards/tasksGrid/index.d.ts +3 -6
- package/dist/types/components/rewards/userExp/index.d.ts +8 -17
- package/dist/types/components/search/SearchInputContainer.d.ts +21 -35
- package/dist/types/components/search/index.d.ts +0 -1
- package/dist/types/components/search/searchCloseMoreButtons/index.d.ts +9 -14
- package/dist/types/components/search/searchSimpleInput/index.d.ts +2 -5
- package/dist/types/components/shareDialog/index.d.ts +29 -33
- package/dist/types/components/sidebar/index.d.ts +0 -1
- package/dist/types/components/sidebar/initializer.d.ts +1 -1
- package/dist/types/components/socialButtons/index.d.ts +0 -1
- package/dist/types/components/toTopBtn/index.d.ts +2 -5
- package/dist/types/dto/AssetEntity/views/AssetAudio/index.d.ts +3 -11
- package/dist/types/dto/AssetEntity/views/AssetObject/index.d.ts +5 -14
- package/dist/types/dto/AssetEntity/views/AssetVideo/index.d.ts +3 -11
- package/dist/types/dto/Collection/CollectionCreationEntity/index.d.ts +37 -39
- package/dist/types/dto/CreationEntity/index.d.ts +41 -43
- package/dist/types/dto/common/ItemViews/CreationAudio/index.d.ts +3 -11
- package/dist/types/dto/common/ItemViews/CreationObject/index.d.ts +2 -10
- package/dist/types/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +16 -23
- package/dist/types/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +17 -28
- package/dist/types/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +17 -26
- package/dist/types/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +11 -18
- package/dist/types/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +13 -18
- package/dist/types/hooks/likes/dynamic/useGetTableLikes.d.ts +9 -19
- package/dist/types/hooks/likes/index.d.ts +12 -20
- package/dist/types/hooks/likes/useGetLikesAsset.d.ts +8 -20
- package/dist/types/hooks/useToGalleryAsset/index.d.ts +12 -21
- package/dist/types/index.d.ts +1 -0
- package/dist/types/layouts/GlobalLayout.d.ts +2 -5
- package/dist/types/layouts/base/LWithRegularHeader/index.d.ts +0 -1
- package/dist/types/layouts/base/LWithRegularHeader/type.d.ts +1 -3
- package/dist/types/layouts/base/LWithSearchHeader/index.d.ts +0 -1
- package/dist/types/layouts/base/LWithSearchHeader/type.d.ts +1 -3
- package/dist/types/layouts/base/LWithSimpleHeader/index.d.ts +0 -1
- package/dist/types/layouts/base/LWithSimpleHeader/type.d.ts +1 -3
- package/dist/types/layouts/base/LWithoutHeader/index.d.ts +0 -1
- package/dist/types/layouts/custom/accountLayout/index.d.ts +0 -1
- package/dist/types/layouts/custom/formsLayout/index.d.ts +0 -1
- package/dist/types/layouts/custom/mainLayout/index.d.ts +0 -1
- package/dist/types/layouts/custom/searchLayout/index.d.ts +0 -1
- package/dist/types/layouts/custom/simpleLayout/index.d.ts +0 -1
- package/dist/types/layouts/pageWithLayout.d.ts +3 -10
- package/dist/types/modules/gallery/ui/AllResults.d.ts +2 -5
- package/dist/types/modules/gallery/ui/EditGallery.d.ts +7 -18
- package/dist/types/modules/gallery/ui/GalleryDeleteIcon.d.ts +3 -7
- package/dist/types/modules/gallery/ui/chooseGalleryItems/index.d.ts +10 -15
- package/dist/types/modules/gallery/ui/itemsPreview/index.d.ts +13 -27
- package/dist/types/modules/index.d.ts +3 -0
- package/dist/types/modules/sessionScroll/index.d.ts +7 -10
- package/dist/types/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +6 -14
- package/dist/types/modules/user/auth/index.d.ts +1 -0
- package/dist/types/modules/user/index.d.ts +3 -0
- package/dist/types/modules/user/profileData/index.d.ts +1 -0
- package/dist/types/modules/virtuoso/VirtuosoPageBuilder.d.ts +14 -32
- package/dist/types/modules/virtuoso/VirtuosoToTopBtn.d.ts +5 -9
- package/dist/types/modules/virtuoso/types.d.ts +2 -3
- package/dist/types/modules/virtuoso/useVirtuosoData.d.ts +8 -16
- package/dist/types/store/index.d.ts +7 -14
- package/dist/types/system/Cards/CardContent/CardLikes/index.d.ts +3 -7
- package/dist/types/system/Cards/CardHeadIcons/index.d.ts +10 -24
- package/dist/types/system/Cards/CardMedia/CardAudio/index.d.ts +5 -11
- package/dist/types/system/Cards/CardRank/index.d.ts +3 -2
- package/dist/types/system/Cards/CardsGrid/index.d.ts +9 -19
- package/dist/types/system/Cards/MultiMediaCard/index.d.ts +4 -10
- package/dist/types/system/Cards/RegularCard/index.d.ts +14 -28
- package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/index.d.ts +13 -20
- package/dist/types/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +0 -1
- package/dist/types/system/CardsHolderWithSkeleton/index.d.ts +20 -27
- package/dist/types/system/Forms/Selects/DesktopSelect/index.d.ts +6 -15
- package/dist/types/system/Img/Profilepic/index.d.ts +4 -6
- package/dist/types/system/ShareIconResize.d.ts +1 -1
- package/dist/types/utils/adaptive/check4k.d.ts +3 -7
- package/dist/types/utils/adaptive/scale.d.ts +8 -14
- package/dist/types/utils/copyBtn/index.d.ts +3 -8
- package/dist/types/utils/extractItemIds/index.d.ts +1 -4
- package/dist/types/utils/getPageSizeAssets.d.ts +3 -6
- package/dist/types/utils/screen/index.d.ts +9 -9
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/modules/user/index.ts +1 -1
- package/src/store/index.ts +2 -0
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
type ExpUserProps = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
userPic: string | null;
|
|
4
|
+
userName: string | null;
|
|
5
|
+
userWallet: string | null;
|
|
6
|
+
userExpPercent: number;
|
|
7
|
+
userExp: number;
|
|
8
|
+
userLevel: string | number;
|
|
9
|
+
totalExpInLevel: number | null;
|
|
11
10
|
};
|
|
12
|
-
declare const UserInfoExpTab: ({
|
|
13
|
-
userPic,
|
|
14
|
-
userName,
|
|
15
|
-
userWallet,
|
|
16
|
-
userExpPercent,
|
|
17
|
-
userExp,
|
|
18
|
-
userLevel,
|
|
19
|
-
totalExpInLevel,
|
|
20
|
-
}: ExpUserProps) => React.JSX.Element;
|
|
11
|
+
declare const UserInfoExpTab: ({ userPic, userName, userWallet, userExpPercent, userExp, userLevel, totalExpInLevel, }: ExpUserProps) => React.JSX.Element;
|
|
21
12
|
export default UserInfoExpTab;
|
|
@@ -1,40 +1,26 @@
|
|
|
1
1
|
import React, { KeyboardEvent, MutableRefObject, ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
interface IUseSearch {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
handle: {
|
|
18
|
-
focus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
19
|
-
change: (e: {
|
|
20
|
-
target: {
|
|
21
|
-
value: string;
|
|
3
|
+
onFocusHandler?: (arg: boolean) => void;
|
|
4
|
+
isClearOnBlur?: boolean;
|
|
5
|
+
initializeInputComponent: ({ searchSuggestion, handle, inputRef, searchValue, isSearchFocused, mobileOrDesktopPlaceHolder, isMobileOpen, searchCloseButton, }: {
|
|
6
|
+
searchSuggestion: ReactNode | false;
|
|
7
|
+
handle: {
|
|
8
|
+
focus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
9
|
+
change: (e: {
|
|
10
|
+
target: {
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
}) => void;
|
|
14
|
+
blur: () => void;
|
|
15
|
+
keyPress: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
22
16
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
isSearchFocused: boolean;
|
|
31
|
-
isMobileOpen: boolean;
|
|
32
|
-
searchCloseButton: ReactNode;
|
|
33
|
-
}) => ReactNode;
|
|
17
|
+
inputRef: MutableRefObject<HTMLInputElement | null>;
|
|
18
|
+
searchValue: string;
|
|
19
|
+
mobileOrDesktopPlaceHolder: string;
|
|
20
|
+
isSearchFocused: boolean;
|
|
21
|
+
isMobileOpen: boolean;
|
|
22
|
+
searchCloseButton: ReactNode;
|
|
23
|
+
}) => ReactNode;
|
|
34
24
|
}
|
|
35
|
-
export declare const SearchInputContainer: ({
|
|
36
|
-
onFocusHandler,
|
|
37
|
-
isClearOnBlur,
|
|
38
|
-
initializeInputComponent,
|
|
39
|
-
}: IUseSearch) => React.JSX.Element;
|
|
25
|
+
export declare const SearchInputContainer: ({ onFocusHandler, isClearOnBlur, initializeInputComponent, }: IUseSearch) => React.JSX.Element;
|
|
40
26
|
export {};
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
interface PositionProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
top?: string;
|
|
4
|
+
left?: string;
|
|
5
|
+
right?: string;
|
|
6
|
+
bottom?: string;
|
|
7
|
+
transform?: string;
|
|
9
8
|
}
|
|
10
|
-
declare const SearchCloseMoreButtons: ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}: {
|
|
15
|
-
isNeedToShow: boolean;
|
|
16
|
-
position: PositionProps;
|
|
17
|
-
clearSearchValue: React.Dispatch<React.SetStateAction<string>>;
|
|
9
|
+
declare const SearchCloseMoreButtons: ({ isNeedToShow, position, clearSearchValue, }: {
|
|
10
|
+
isNeedToShow: boolean;
|
|
11
|
+
position: PositionProps;
|
|
12
|
+
clearSearchValue: React.Dispatch<React.SetStateAction<string>>;
|
|
18
13
|
}) => React.JSX.Element;
|
|
19
14
|
export default SearchCloseMoreButtons;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
onFocusHandler,
|
|
5
|
-
}: {
|
|
6
|
-
onFocusHandler: (arg: boolean) => void;
|
|
2
|
+
declare const SearchSimpleInput: ({ onFocusHandler, }: {
|
|
3
|
+
onFocusHandler: (arg: boolean) => void;
|
|
7
4
|
}) => React.JSX.Element;
|
|
8
5
|
export default SearchSimpleInput;
|
|
@@ -1,38 +1,34 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IShareDialog {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
link: string | null;
|
|
4
|
+
onHide: () => void;
|
|
5
|
+
params?: {
|
|
6
|
+
email?: {
|
|
7
|
+
body?: string;
|
|
8
|
+
separator?: string;
|
|
9
|
+
subject?: string;
|
|
10
|
+
};
|
|
11
|
+
telegram?: {
|
|
12
|
+
title?: string;
|
|
13
|
+
};
|
|
14
|
+
whatsapp?: {
|
|
15
|
+
title?: string;
|
|
16
|
+
separator?: string;
|
|
17
|
+
};
|
|
18
|
+
twitter?: {
|
|
19
|
+
title?: string;
|
|
20
|
+
via?: string;
|
|
21
|
+
hashtags?: string[];
|
|
22
|
+
related?: string[];
|
|
23
|
+
};
|
|
24
|
+
reddit?: {
|
|
25
|
+
title?: string;
|
|
26
|
+
};
|
|
27
|
+
facebook?: {
|
|
28
|
+
quote?: string;
|
|
29
|
+
hashtag?: string;
|
|
30
|
+
};
|
|
10
31
|
};
|
|
11
|
-
telegram?: {
|
|
12
|
-
title?: string;
|
|
13
|
-
};
|
|
14
|
-
whatsapp?: {
|
|
15
|
-
title?: string;
|
|
16
|
-
separator?: string;
|
|
17
|
-
};
|
|
18
|
-
twitter?: {
|
|
19
|
-
title?: string;
|
|
20
|
-
via?: string;
|
|
21
|
-
hashtags?: string[];
|
|
22
|
-
related?: string[];
|
|
23
|
-
};
|
|
24
|
-
reddit?: {
|
|
25
|
-
title?: string;
|
|
26
|
-
};
|
|
27
|
-
facebook?: {
|
|
28
|
-
quote?: string;
|
|
29
|
-
hashtag?: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
32
|
}
|
|
33
|
-
declare const ShareDialog: ({
|
|
34
|
-
link,
|
|
35
|
-
onHide,
|
|
36
|
-
params,
|
|
37
|
-
}: IShareDialog) => import('react').JSX.Element;
|
|
33
|
+
declare const ShareDialog: ({ link, onHide, params }: IShareDialog) => import("react").JSX.Element;
|
|
38
34
|
export default ShareDialog;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SidebarInitializer: () => import(
|
|
2
|
+
export declare const SidebarInitializer: () => import("react").JSX.Element;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
declare const ToTopBtn: () => React.JSX.Element | null;
|
|
4
|
-
export declare const ToTopBtnWithCustomHandler: ({
|
|
5
|
-
|
|
6
|
-
}: {
|
|
7
|
-
handleClickFunction: () => void;
|
|
3
|
+
export declare const ToTopBtnWithCustomHandler: ({ handleClickFunction, }: {
|
|
4
|
+
handleClickFunction: () => void;
|
|
8
5
|
}) => React.JSX.Element;
|
|
9
6
|
export default ToTopBtn;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Audio from '@/dto/common/Media/Audio';
|
|
3
3
|
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
-
|
|
5
4
|
declare class AssetAudio extends Audio {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
previewUrl,
|
|
10
|
-
nsfw,
|
|
11
|
-
alt,
|
|
12
|
-
originalMime,
|
|
13
|
-
}: BasicMediaType);
|
|
14
|
-
getMediaUrl(): string;
|
|
15
|
-
displaySingleMedia(): JSX.Element;
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
getMediaUrl(): string;
|
|
7
|
+
displaySingleMedia(): JSX.Element;
|
|
16
8
|
}
|
|
17
9
|
export default AssetAudio;
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Object from '@/dto/common/Media/Object';
|
|
3
3
|
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
-
|
|
5
4
|
declare class AssetObject extends Object {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
originalUrl,
|
|
12
|
-
alt,
|
|
13
|
-
originalMime,
|
|
14
|
-
}: BasicMediaType);
|
|
15
|
-
getMediaUrl(): string;
|
|
16
|
-
displaySingleMedia(): JSX.Element;
|
|
17
|
-
displayLinkedMedia(): JSX.Element;
|
|
18
|
-
displayMiniature(): JSX.Element;
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
getMediaUrl(): string;
|
|
7
|
+
displaySingleMedia(): JSX.Element;
|
|
8
|
+
displayLinkedMedia(): JSX.Element;
|
|
9
|
+
displayMiniature(): JSX.Element;
|
|
19
10
|
}
|
|
20
11
|
export default AssetObject;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Video from '@/dto/common/Media/Video';
|
|
3
3
|
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
-
|
|
5
4
|
declare class AssetVideo extends Video {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
previewUrl,
|
|
10
|
-
nsfw,
|
|
11
|
-
alt,
|
|
12
|
-
originalMime,
|
|
13
|
-
}: BasicMediaType);
|
|
14
|
-
getMediaUrl(): string;
|
|
15
|
-
displaySingleMedia(): JSX.Element;
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
getMediaUrl(): string;
|
|
7
|
+
displaySingleMedia(): JSX.Element;
|
|
16
8
|
}
|
|
17
9
|
export default AssetVideo;
|
|
@@ -1,47 +1,45 @@
|
|
|
1
1
|
import { collectionsSchema as schema } from '@ludo.ninja/api';
|
|
2
2
|
import { BlockChainEntity } from '@ludo.ninja/core';
|
|
3
|
-
|
|
4
3
|
import ICollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity/interface';
|
|
5
4
|
import { LabelKeys, LabelType } from '@/dto/common/ItemType';
|
|
6
5
|
import Media from '@/dto/common/Media';
|
|
7
|
-
|
|
8
6
|
declare class CollectionCreationEntity implements ICollectionCreationEntity {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
7
|
+
private collectionId;
|
|
8
|
+
private collectionTitle;
|
|
9
|
+
private id;
|
|
10
|
+
private itemType;
|
|
11
|
+
private blockchain;
|
|
12
|
+
private likes;
|
|
13
|
+
private creatorsAddresses;
|
|
14
|
+
private liked;
|
|
15
|
+
private rank;
|
|
16
|
+
private medias;
|
|
17
|
+
private originalUrls;
|
|
18
|
+
private address;
|
|
19
|
+
private tokenId;
|
|
20
|
+
private collectionCreationId;
|
|
21
|
+
private name;
|
|
22
|
+
constructor(collectionAsset: schema.ICollectionAsset, type?: string);
|
|
23
|
+
getCreationId(): string;
|
|
24
|
+
getId(): string;
|
|
25
|
+
getItemType(): LabelKeys;
|
|
26
|
+
getAddress(): string | null;
|
|
27
|
+
getTokenId(): string;
|
|
28
|
+
getCollectionCreationId(): string;
|
|
29
|
+
getCreationLink(): string;
|
|
30
|
+
getBlockchain(): BlockChainEntity;
|
|
31
|
+
getName(): string | null;
|
|
32
|
+
getItemId(): string;
|
|
33
|
+
getCreatorAddress(): string | null;
|
|
34
|
+
getLikes(): number;
|
|
35
|
+
getRank(): number;
|
|
36
|
+
getOriginalUrls(): string[] | null;
|
|
37
|
+
getIsLiked(): boolean;
|
|
38
|
+
getMediaOrOriginalUrl(): string | null;
|
|
39
|
+
getMimeType(): string | null;
|
|
40
|
+
getMedia(): null | string;
|
|
41
|
+
detectMediaType(): Media;
|
|
42
|
+
getLabel(): LabelType;
|
|
43
|
+
getCuttedSecondName(isMobileView: boolean): string | null;
|
|
46
44
|
}
|
|
47
45
|
export default CollectionCreationEntity;
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
2
|
import { BlockChainEntity } from '@ludo.ninja/core';
|
|
3
|
-
|
|
4
3
|
import ICreationEntity from '@/dto/CreationEntity/interface';
|
|
5
4
|
import { LabelKeys, LabelType } from '@/dto/common/ItemType';
|
|
6
5
|
import Media from '@/dto/common/Media';
|
|
7
|
-
|
|
8
6
|
declare class CreationEntity implements ICreationEntity {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
7
|
+
private itemId;
|
|
8
|
+
private itemType;
|
|
9
|
+
private likes;
|
|
10
|
+
private liked;
|
|
11
|
+
private media;
|
|
12
|
+
private id;
|
|
13
|
+
private originalUrls;
|
|
14
|
+
private rank;
|
|
15
|
+
private mimeType;
|
|
16
|
+
private name;
|
|
17
|
+
private blockchain;
|
|
18
|
+
private creatorsAddresses;
|
|
19
|
+
private isNeedRenderCheckbox;
|
|
20
|
+
private isCheckboxSelected;
|
|
21
|
+
private address;
|
|
22
|
+
private tokenId;
|
|
23
|
+
constructor(creation: schema.ICreation);
|
|
24
|
+
getAddress(): string;
|
|
25
|
+
getId(): string;
|
|
26
|
+
getTokenId(): string;
|
|
27
|
+
getItemId(): string;
|
|
28
|
+
getCreationId(): string;
|
|
29
|
+
getName(): null | string;
|
|
30
|
+
getRank(): number;
|
|
31
|
+
getOriginalUrls(): string[] | null;
|
|
32
|
+
getItemType(): LabelKeys;
|
|
33
|
+
getCheckboxSelected(): boolean;
|
|
34
|
+
getCreationLink(): string;
|
|
35
|
+
getLabel(): LabelType;
|
|
36
|
+
getLikes(): number;
|
|
37
|
+
getIsLiked(): boolean;
|
|
38
|
+
getMedia(): null | string;
|
|
39
|
+
getMimeType(): string | null;
|
|
40
|
+
set setIsNeedRenderCheckbox(isNeedToShow: boolean);
|
|
41
|
+
set setCheckboxSelected(isSelected: boolean);
|
|
42
|
+
getNeedRenderCheckbox(): boolean;
|
|
43
|
+
getBlockchain(): BlockChainEntity;
|
|
44
|
+
getCreatorAddress(): string | null;
|
|
45
|
+
getMediaOrOriginalUrl(): string | null;
|
|
46
|
+
getCuttedSecondName(isMobileView: boolean): string | null;
|
|
47
|
+
detectMediaType(): Media;
|
|
50
48
|
}
|
|
51
49
|
export default CreationEntity;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Audio from '@/dto/common/Media/Audio';
|
|
3
3
|
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
-
|
|
5
4
|
declare class CreationAudio extends Audio {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
previewUrl,
|
|
10
|
-
nsfw,
|
|
11
|
-
alt,
|
|
12
|
-
originalMime,
|
|
13
|
-
}: BasicMediaType);
|
|
14
|
-
getMediaUrl(): string;
|
|
15
|
-
displaySingleMedia(): JSX.Element;
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
getMediaUrl(): string;
|
|
7
|
+
displaySingleMedia(): JSX.Element;
|
|
16
8
|
}
|
|
17
9
|
export default CreationAudio;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Object from '@/dto/common/Media/Object';
|
|
3
3
|
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
-
|
|
5
4
|
declare class CreationObject extends Object {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
mimeType,
|
|
9
|
-
previewUrl,
|
|
10
|
-
nsfw,
|
|
11
|
-
alt,
|
|
12
|
-
originalMime,
|
|
13
|
-
}: BasicMediaType);
|
|
14
|
-
displaySingleMedia(): JSX.Element;
|
|
5
|
+
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
+
displaySingleMedia(): JSX.Element;
|
|
15
7
|
}
|
|
16
8
|
export default CreationObject;
|
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
import { IQueryFetchGalleryV2Args } from '@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema';
|
|
2
|
-
|
|
3
2
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
4
3
|
import CreationEntity from '@/dto/CreationEntity';
|
|
5
4
|
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
itemsCount,
|
|
10
|
-
}: {
|
|
11
|
-
galleryId: string;
|
|
12
|
-
itemsCount: number | null;
|
|
5
|
+
declare const useGetFavoriteGallaryCreations: ({ galleryId, itemsCount, }: {
|
|
6
|
+
galleryId: string;
|
|
7
|
+
itemsCount: number | null;
|
|
13
8
|
}) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}: IQueryFetchGalleryV2Args) => Promise<void>;
|
|
28
|
-
loadMore: () => void;
|
|
9
|
+
gallery: GalleryEntityV2[] | null;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
creationsList: (CollectionCreationEntity | CreationEntity)[];
|
|
12
|
+
loadingAssets: boolean;
|
|
13
|
+
loadingGallery: boolean;
|
|
14
|
+
loadingCollections: boolean;
|
|
15
|
+
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
16
|
+
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
17
|
+
errorGallery: import("@apollo/client").ApolloError | undefined;
|
|
18
|
+
fetchError: boolean;
|
|
19
|
+
allResults: number | null;
|
|
20
|
+
refetchQueryGalleryCreation: ({ galleryId, }: IQueryFetchGalleryV2Args) => Promise<void>;
|
|
21
|
+
loadMore: () => void;
|
|
29
22
|
};
|
|
30
23
|
export { useGetFavoriteGallaryCreations };
|
|
@@ -1,35 +1,24 @@
|
|
|
1
1
|
import { IQueryFetchUserFavoritesV2Args } from '@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema';
|
|
2
|
-
|
|
3
2
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
4
3
|
import CreationEntity from '@/dto/CreationEntity';
|
|
5
4
|
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
errorCollections: import('@apollo/client').ApolloError | undefined;
|
|
21
|
-
errorFavorites: import('@apollo/client').ApolloError | undefined;
|
|
22
|
-
refetchQueryFavoritesList: () => Promise<void>;
|
|
23
|
-
loadMoreFavoritesList: () => Promise<void>;
|
|
24
|
-
isNextLoading: boolean;
|
|
5
|
+
declare const useGetUserFevoritesCreations: ({ userId, pageSize, pageToken, }: IQueryFetchUserFavoritesV2Args) => {
|
|
6
|
+
favorites: GalleryEntityV2[];
|
|
7
|
+
assets: CreationEntity[] | null;
|
|
8
|
+
collections: CollectionCreationEntity[] | null;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
loadingAssets: boolean;
|
|
11
|
+
loadingFavorites: boolean;
|
|
12
|
+
loadingCollections: boolean;
|
|
13
|
+
errorAssets: import("@apollo/client").ApolloError | undefined;
|
|
14
|
+
errorCollections: import("@apollo/client").ApolloError | undefined;
|
|
15
|
+
errorFavorites: import("@apollo/client").ApolloError | undefined;
|
|
16
|
+
refetchQueryFavoritesList: () => Promise<void>;
|
|
17
|
+
loadMoreFavoritesList: () => Promise<void>;
|
|
18
|
+
isNextLoading: boolean;
|
|
25
19
|
};
|
|
26
20
|
export { useGetUserFevoritesCreations };
|
|
27
|
-
export declare function getMediaForGallery(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
pageNumber?: number,
|
|
31
|
-
totalLength?: number | null
|
|
32
|
-
): {
|
|
33
|
-
assetArray: unknown[];
|
|
34
|
-
collectionsArray: unknown[];
|
|
21
|
+
export declare function getMediaForGallery(favorites: GalleryEntityV2[], takeFirstFour: boolean, pageNumber?: number, totalLength?: number | null): {
|
|
22
|
+
assetArray: unknown[];
|
|
23
|
+
collectionsArray: unknown[];
|
|
35
24
|
};
|