@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,37 +1,19 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
import { ApolloError } from '@apollo/client';
|
|
4
|
-
|
|
5
3
|
import { TActiveTab } from '@/system/Tabs/TabsNav/type';
|
|
6
|
-
|
|
7
4
|
import { TDimensions } from '@/utils/screen';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
isProfileCards,
|
|
23
|
-
}: {
|
|
24
|
-
activeTab: TActiveTab;
|
|
25
|
-
isMobile: boolean;
|
|
26
|
-
creations: TCreation[];
|
|
27
|
-
windowDimensions: TDimensions | null;
|
|
28
|
-
isLoading: boolean;
|
|
29
|
-
isNextLoading: boolean;
|
|
30
|
-
error: ApolloError | undefined;
|
|
31
|
-
refetchQuery: () => Promise<void>;
|
|
32
|
-
loadMore: () => Promise<void>;
|
|
33
|
-
renderCreation: (creation: TCreation) => ReactNode;
|
|
34
|
-
notFoundText?: string | undefined;
|
|
35
|
-
headerSlot: JSX.Element;
|
|
36
|
-
isProfileCards?: boolean | undefined;
|
|
5
|
+
export declare const VirtuosoPageBuilder: <TCreation>({ activeTab, isMobile, creations, windowDimensions, isLoading, error, refetchQuery, loadMore, renderCreation, notFoundText, isNextLoading, headerSlot, isProfileCards, }: {
|
|
6
|
+
activeTab: TActiveTab;
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
creations: TCreation[];
|
|
9
|
+
windowDimensions: TDimensions | null;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isNextLoading: boolean;
|
|
12
|
+
error: ApolloError | undefined;
|
|
13
|
+
refetchQuery: () => Promise<void>;
|
|
14
|
+
loadMore: () => Promise<void>;
|
|
15
|
+
renderCreation: (creation: TCreation) => ReactNode;
|
|
16
|
+
notFoundText?: string | undefined;
|
|
17
|
+
headerSlot: JSX.Element;
|
|
18
|
+
isProfileCards?: boolean | undefined;
|
|
37
19
|
}) => React.JSX.Element;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
|
|
3
2
|
import { VirtuosoHandle } from 'react-virtuoso';
|
|
4
|
-
|
|
5
3
|
export declare const useVirtuosoToTopBtnInitialize: () => {
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
isShowBtn: boolean;
|
|
5
|
+
onScroll(scrollY: number): void;
|
|
8
6
|
};
|
|
9
|
-
export declare const VirtuosoToTopBtn: ({
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
virtuoso: RefObject<null | VirtuosoHandle>;
|
|
13
|
-
}) => import('react').JSX.Element;
|
|
7
|
+
export declare const VirtuosoToTopBtn: ({ virtuoso, }: {
|
|
8
|
+
virtuoso: RefObject<null | VirtuosoHandle>;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
2
2
|
import CreationEntity from '@/dto/CreationEntity';
|
|
3
|
-
|
|
4
3
|
export type TCreationAndCollection = CreationEntity | CollectionCreationEntity;
|
|
5
4
|
export type TVirtuosoData<TData> = {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
creationPacks: TData[][];
|
|
6
|
+
creations: TData[];
|
|
8
7
|
};
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { TVirtuosoData } from '@/modules/virtuoso/types';
|
|
2
|
-
|
|
3
2
|
import { TActiveTab } from '@/system/Tabs/TabsNav/type';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
isProfileCards,
|
|
11
|
-
}: {
|
|
12
|
-
activeTab: TActiveTab;
|
|
13
|
-
isMobile: boolean;
|
|
14
|
-
creations: TData[];
|
|
15
|
-
isThreeColumn?: boolean | undefined;
|
|
16
|
-
isProfileCards?: boolean | undefined;
|
|
3
|
+
export declare const useVirtuosoData: <TData>({ activeTab, creations, isMobile, isThreeColumn, isProfileCards, }: {
|
|
4
|
+
activeTab: TActiveTab;
|
|
5
|
+
isMobile: boolean;
|
|
6
|
+
creations: TData[];
|
|
7
|
+
isThreeColumn?: boolean | undefined;
|
|
8
|
+
isProfileCards?: boolean | undefined;
|
|
17
9
|
}) => {
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
virtuosoData: TVirtuosoData<TData>;
|
|
11
|
+
placeholderData: number[][];
|
|
20
12
|
};
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export * from './ui';
|
|
3
|
+
export * from './media';
|
|
2
4
|
interface ISSRStore {
|
|
3
|
-
|
|
5
|
+
isMobile: boolean;
|
|
4
6
|
}
|
|
5
|
-
export declare const useSSRStore: <F>(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
) =>
|
|
9
|
-
export declare const SSRProvider: ({
|
|
10
|
-
children,
|
|
11
|
-
initialState,
|
|
12
|
-
}: {
|
|
13
|
-
children: import('react').ReactNode;
|
|
14
|
-
initialState:
|
|
15
|
-
| ((prevStore: ISSRStore) => Partial<ISSRStore>)
|
|
16
|
-
| Partial<ISSRStore>;
|
|
7
|
+
export declare const useSSRStore: <F>(selector: (state: ISSRStore) => F, equalityFn?: ((a: F, b: F) => boolean) | undefined) => F;
|
|
8
|
+
export declare const SSRProvider: ({ children, initialState }: {
|
|
9
|
+
children: import("react").ReactNode;
|
|
10
|
+
initialState: ((prevStore: ISSRStore) => Partial<ISSRStore>) | Partial<ISSRStore>;
|
|
17
11
|
}) => JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
isLiked,
|
|
6
|
-
}: {
|
|
7
|
-
likes: number;
|
|
8
|
-
isLiked: boolean;
|
|
2
|
+
declare const CardLikes: ({ likes, isLiked }: {
|
|
3
|
+
likes: number;
|
|
4
|
+
isLiked: boolean;
|
|
9
5
|
}) => React.JSX.Element;
|
|
10
6
|
export default CardLikes;
|
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
4
3
|
import CreationEntity from '@/dto/CreationEntity';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
isDisabled,
|
|
16
|
-
}: {
|
|
17
|
-
creation: CreationEntity | CollectionCreationEntity;
|
|
18
|
-
isRegularCard: boolean;
|
|
19
|
-
isIconLiked: boolean;
|
|
20
|
-
addLikeToCard: (id: string) => void;
|
|
21
|
-
deleteLikeFromCard: (id: string) => void;
|
|
22
|
-
actionIsNeedRenderCheckbox?:
|
|
23
|
-
| ((isNeedToShow: boolean, itemId?: string) => void)
|
|
24
|
-
| undefined;
|
|
25
|
-
itemId: string;
|
|
26
|
-
isUserProfile: boolean;
|
|
27
|
-
isDisabled?: boolean | undefined;
|
|
4
|
+
declare const CardHeadIcons: ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, actionIsNeedRenderCheckbox, itemId, isUserProfile, isDisabled, }: {
|
|
5
|
+
creation: CreationEntity | CollectionCreationEntity;
|
|
6
|
+
isRegularCard: boolean;
|
|
7
|
+
isIconLiked: boolean;
|
|
8
|
+
addLikeToCard: (id: string) => void;
|
|
9
|
+
deleteLikeFromCard: (id: string) => void;
|
|
10
|
+
actionIsNeedRenderCheckbox?: ((isNeedToShow: boolean, itemId?: string) => void) | undefined;
|
|
11
|
+
itemId: string;
|
|
12
|
+
isUserProfile: boolean;
|
|
13
|
+
isDisabled?: boolean | undefined;
|
|
28
14
|
}) => React.JSX.Element;
|
|
29
15
|
export default CardHeadIcons;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
alt,
|
|
8
|
-
}: {
|
|
9
|
-
audioSrc: string;
|
|
10
|
-
imgSrc: string;
|
|
11
|
-
errorImg: string;
|
|
12
|
-
alt: string;
|
|
2
|
+
declare const CardAudio: ({ audioSrc, imgSrc, errorImg, alt, }: {
|
|
3
|
+
audioSrc: string;
|
|
4
|
+
imgSrc: string;
|
|
5
|
+
errorImg: string;
|
|
6
|
+
alt: string;
|
|
13
7
|
}) => React.JSX.Element;
|
|
14
8
|
export default CardAudio;
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
import CreationEntity from '@/dto/CreationEntity';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}: {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
isTwoColumnLayout?: boolean | undefined;
|
|
16
|
-
isNeedShowNetWorth?: boolean | undefined;
|
|
17
|
-
addMethod?: (() => void) | undefined;
|
|
18
|
-
creations?: CreationEntity[] | undefined;
|
|
19
|
-
isEmptyGallery?: boolean | undefined;
|
|
20
|
-
isForVirtualize?: boolean | undefined;
|
|
21
|
-
tabsSlot?: ReactNode;
|
|
3
|
+
declare const CardsGrid: ({ children, isTwoColumnLayout, addMethod, creations, isEmptyGallery, isForVirtualize, tabsSlot, }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
isTwoColumnLayout?: boolean | undefined;
|
|
6
|
+
isNeedShowNetWorth?: boolean | undefined;
|
|
7
|
+
addMethod?: (() => void) | undefined;
|
|
8
|
+
creations?: CreationEntity[] | undefined;
|
|
9
|
+
isEmptyGallery?: boolean | undefined;
|
|
10
|
+
isForVirtualize?: boolean | undefined;
|
|
11
|
+
tabsSlot?: ReactNode;
|
|
22
12
|
}) => React.JSX.Element;
|
|
23
13
|
export default CardsGrid;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
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
|
-
collections,
|
|
11
|
-
}: {
|
|
12
|
-
gallery: GalleryEntityV2;
|
|
13
|
-
assets: CreationEntity[] | null;
|
|
14
|
-
collections: CollectionCreationEntity[] | null;
|
|
5
|
+
declare const MultiMediaCard: ({ gallery, assets, collections, }: {
|
|
6
|
+
gallery: GalleryEntityV2;
|
|
7
|
+
assets: CreationEntity[] | null;
|
|
8
|
+
collections: CollectionCreationEntity[] | null;
|
|
15
9
|
}) => React.JSX.Element;
|
|
16
10
|
export default MultiMediaCard;
|
|
@@ -1,36 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
IDynamicAssetData,
|
|
5
|
-
IDynamicCollectionData,
|
|
6
|
-
} from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
7
|
-
|
|
2
|
+
import { IDynamicAssetData, IDynamicCollectionData } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
8
3
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
9
4
|
import CreationEntity from '@/dto/CreationEntity';
|
|
10
5
|
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
11
|
-
|
|
12
6
|
export type RemoveToolsType = {
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
gallery: GalleryEntityV2;
|
|
8
|
+
removeFn: () => void;
|
|
15
9
|
};
|
|
16
|
-
declare const RegularCard: ({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
cardsCount: number;
|
|
28
|
-
scrollKeys: {
|
|
29
|
-
pageOffsetKey: string;
|
|
30
|
-
itemsCountKey: string;
|
|
31
|
-
};
|
|
32
|
-
isNeedHeight: boolean;
|
|
33
|
-
likesDynamicInfo?: IDynamicAssetData | IDynamicCollectionData | undefined;
|
|
34
|
-
toolsForRemove?: RemoveToolsType | undefined;
|
|
10
|
+
declare const RegularCard: ({ creationName, creation, cardsCount, scrollKeys, isNeedHeight, likesDynamicInfo, toolsForRemove, }: {
|
|
11
|
+
creationName?: string | undefined;
|
|
12
|
+
creation: CreationEntity | CollectionCreationEntity;
|
|
13
|
+
cardsCount: number;
|
|
14
|
+
scrollKeys: {
|
|
15
|
+
pageOffsetKey: string;
|
|
16
|
+
itemsCountKey: string;
|
|
17
|
+
};
|
|
18
|
+
isNeedHeight: boolean;
|
|
19
|
+
likesDynamicInfo?: IDynamicAssetData | IDynamicCollectionData | undefined;
|
|
20
|
+
toolsForRemove?: RemoveToolsType | undefined;
|
|
35
21
|
}) => React.JSX.Element;
|
|
36
22
|
export default RegularCard;
|
|
@@ -1,29 +1,22 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
import { ApolloError } from '@apollo/client';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
IDynamicAssetData,
|
|
7
|
-
IDynamicCollectionData,
|
|
8
|
-
} from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
9
|
-
|
|
3
|
+
import { IDynamicAssetData, IDynamicCollectionData } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
10
4
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
11
5
|
import CreationEntity from '@/dto/CreationEntity';
|
|
12
6
|
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
13
|
-
|
|
14
7
|
interface Props {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
loading: boolean;
|
|
9
|
+
items: GalleryEntityV2[] | CreationEntity[] | CollectionCreationEntity[];
|
|
10
|
+
refetchQuery: () => Promise<void>;
|
|
11
|
+
error: ApolloError | undefined;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
notFoundText: string;
|
|
14
|
+
isOneColumn?: number;
|
|
15
|
+
isTwoColumnLayout: boolean;
|
|
16
|
+
isNeedShowNetWorth: boolean;
|
|
17
|
+
isForVirtualize?: boolean;
|
|
18
|
+
likesArray?: Array<IDynamicAssetData | IDynamicCollectionData> | [];
|
|
19
|
+
tabsSlot?: ReactNode;
|
|
27
20
|
}
|
|
28
21
|
declare const CardsHolder: React.FC<Props>;
|
|
29
22
|
export default CardsHolder;
|
|
@@ -1,36 +1,29 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
import { ApolloError } from '@apollo/client';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
IDynamicAssetData,
|
|
7
|
-
IDynamicCollectionData,
|
|
8
|
-
} from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
9
|
-
|
|
3
|
+
import { IDynamicAssetData, IDynamicCollectionData } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
10
4
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
11
5
|
import CreationEntity from '@/dto/CreationEntity';
|
|
12
6
|
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
13
|
-
|
|
14
7
|
interface Props {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
8
|
+
loading: boolean;
|
|
9
|
+
items: CreationEntity[] | GalleryEntityV2[] | CollectionCreationEntity[];
|
|
10
|
+
scrollKeys: {
|
|
11
|
+
pageOffsetKey: string;
|
|
12
|
+
itemsCountKey: string;
|
|
13
|
+
};
|
|
14
|
+
nextPageToken: string | null;
|
|
15
|
+
refetchQuery: () => Promise<void>;
|
|
16
|
+
loadMore: (pageToken: string) => Promise<void>;
|
|
17
|
+
error: ApolloError | undefined;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
notFoundText: string;
|
|
20
|
+
isOneColumn?: number;
|
|
21
|
+
isTwoColumnLayout: boolean;
|
|
22
|
+
isNeedShowNetWorth: boolean;
|
|
23
|
+
infinityScrollLoader?: boolean;
|
|
24
|
+
isForVirtualize?: boolean;
|
|
25
|
+
likesArray?: Array<IDynamicAssetData | IDynamicCollectionData> | [];
|
|
26
|
+
tabsSlot?: ReactNode;
|
|
34
27
|
}
|
|
35
28
|
declare const CardsHolderWithSkeleton: React.FC<Props>;
|
|
36
29
|
export default CardsHolderWithSkeleton;
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ICollectionFilterInput,
|
|
5
|
-
ICreationFilterInput,
|
|
6
|
-
} from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
7
|
-
|
|
2
|
+
import { ICollectionFilterInput, ICreationFilterInput } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
8
3
|
import { ISelectInput } from '@/system/Forms/Selects/MobileSelect';
|
|
9
|
-
|
|
10
4
|
interface Props {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
fieldValue: string
|
|
17
|
-
) => Promise<void>;
|
|
18
|
-
name: string;
|
|
5
|
+
options: ISelectInput[];
|
|
6
|
+
defaultOptionValue: string;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
onChangeHandler: (fieldName: keyof ICreationFilterInput & keyof ICollectionFilterInput, fieldValue: string) => Promise<void>;
|
|
9
|
+
name: string;
|
|
19
10
|
}
|
|
20
11
|
declare const DesktopSelect: React.FC<Props>;
|
|
21
12
|
export default DesktopSelect;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { SpaceProps } from 'styled-system';
|
|
4
|
-
|
|
5
3
|
export interface ProfilePicRawProps extends SpaceProps {
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
userPicSrc: string;
|
|
5
|
+
size: number;
|
|
8
6
|
}
|
|
9
7
|
export type ProfilePicProps = ProfilePicRawProps;
|
|
10
8
|
export declare const ProfilePic: {
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
({ userPicSrc, size }: ProfilePicProps): React.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
13
11
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ShareIconResize: () => import(
|
|
2
|
+
export declare const ShareIconResize: () => import("react").JSX.Element;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { TDimensions } from '@/utils/screen';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
currentSize,
|
|
6
|
-
}: {
|
|
7
|
-
currentSize: number;
|
|
8
|
-
windowDimensions: TDimensions | null;
|
|
2
|
+
export declare const getAdaptiveValueWithCheck4k: ({ windowDimensions, currentSize, }: {
|
|
3
|
+
currentSize: number;
|
|
4
|
+
windowDimensions: TDimensions | null;
|
|
9
5
|
}) => number;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { TDimensions } from '@/utils/screen';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
| {
|
|
11
|
-
transform: string;
|
|
12
|
-
}
|
|
13
|
-
| {
|
|
14
|
-
transform?: undefined;
|
|
15
|
-
};
|
|
2
|
+
export declare const getAdaptiveScale: ({ windowDimensions, currentSize, }: {
|
|
3
|
+
currentSize: number;
|
|
4
|
+
windowDimensions: TDimensions | null;
|
|
5
|
+
}) => {
|
|
6
|
+
transform: string;
|
|
7
|
+
} | {
|
|
8
|
+
transform?: undefined;
|
|
9
|
+
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
style,
|
|
6
|
-
children,
|
|
7
|
-
}: React.PropsWithChildren<{
|
|
8
|
-
value?: string | null | undefined;
|
|
9
|
-
style?: CSSProperties | undefined;
|
|
2
|
+
export declare const CopyButton: ({ value, style, children, }: React.PropsWithChildren<{
|
|
3
|
+
value?: string | null | undefined;
|
|
4
|
+
style?: CSSProperties | undefined;
|
|
10
5
|
}>) => React.JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export declare const limitCount = 40;
|
|
2
|
-
export declare const getPageSize: ({
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}: {
|
|
6
|
-
limit?: number | undefined;
|
|
7
|
-
scrollTab?: string | undefined;
|
|
2
|
+
export declare const getPageSize: ({ limit, scrollTab, }: {
|
|
3
|
+
limit?: number | undefined;
|
|
4
|
+
scrollTab?: string | undefined;
|
|
8
5
|
}) => number;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export type TDimensions = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
windowWidth: number;
|
|
3
|
+
windowHeight: number;
|
|
4
4
|
};
|
|
5
5
|
export declare function getWindowDimensions(): {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
windowWidth: number;
|
|
7
|
+
windowHeight: number;
|
|
8
8
|
};
|
|
9
9
|
export declare function useWindowDimensions(isMobileInitial?: boolean): {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
windowDimensions: TDimensions;
|
|
11
|
+
deviceType: "isMobile" | "isDesktop" | "isTablet";
|
|
12
|
+
isMobile: boolean | undefined;
|
|
13
13
|
};
|
|
14
14
|
export declare function useWindowDimensionsWithServerInitial(): {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
isMobile: boolean;
|
|
16
|
+
windowDimensions: TDimensions | null;
|
|
17
17
|
};
|
|
18
18
|
export declare function InitializeAppHeight(): null;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED