@ludo.ninja/components 1.0.9 → 1.1.1
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/index.d.ts +3 -6
- package/dist/types/utils/screen/index.d.ts +9 -9
- package/dist/utils/index.js +3 -6
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/store/index.ts +2 -0
- package/src/utils/index.ts +4 -6
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
|
|
3
2
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
nextPageToken: string | null;
|
|
14
|
-
likesCount: number;
|
|
15
|
-
isLikedByUser: boolean;
|
|
3
|
+
declare const useFetchDynamicCollectionData: ({ input, }: schema.IQueryFetchDynamicCollectionDataArgs) => {
|
|
4
|
+
loadMore: (pageToken: string | null) => Promise<void>;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
7
|
+
refetchQuery: () => Promise<void>;
|
|
8
|
+
collectionAssetsList: CollectionCreationEntity[];
|
|
9
|
+
nextPageToken: string | null;
|
|
10
|
+
likesCount: number;
|
|
11
|
+
isLikedByUser: boolean;
|
|
16
12
|
};
|
|
17
13
|
export { useFetchDynamicCollectionData };
|
|
@@ -1,26 +1,14 @@
|
|
|
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
|
-
currentMyGalleryId,
|
|
16
|
-
}: {
|
|
17
|
-
creation: CreationEntity | CollectionCreationEntity;
|
|
18
|
-
isRegularCard: boolean;
|
|
19
|
-
isIconLiked: boolean;
|
|
20
|
-
addLikeToCard: (id: string) => void;
|
|
21
|
-
deleteLikeFromCard: (id: string) => void;
|
|
22
|
-
isUserProfile: boolean;
|
|
23
|
-
isDisabled?: boolean | undefined;
|
|
24
|
-
isShowCheckbox?: boolean | undefined;
|
|
25
|
-
currentMyGalleryId?: string | false | undefined;
|
|
4
|
+
export declare const CardHead: ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, isUserProfile, isDisabled, isShowCheckbox, currentMyGalleryId, }: {
|
|
5
|
+
creation: CreationEntity | CollectionCreationEntity;
|
|
6
|
+
isRegularCard: boolean;
|
|
7
|
+
isIconLiked: boolean;
|
|
8
|
+
addLikeToCard: (id: string) => void;
|
|
9
|
+
deleteLikeFromCard: (id: string) => void;
|
|
10
|
+
isUserProfile: boolean;
|
|
11
|
+
isDisabled?: boolean | undefined;
|
|
12
|
+
isShowCheckbox?: boolean | undefined;
|
|
13
|
+
currentMyGalleryId?: string | false | undefined;
|
|
26
14
|
}) => React.JSX.Element;
|
|
@@ -1,50 +1,29 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
4
|
-
|
|
5
3
|
import { TCreationAndCollection } from '@/modules/virtuoso/types';
|
|
6
|
-
|
|
7
4
|
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
8
|
-
|
|
9
5
|
export type RemoveToolsType = {
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
gallery?: GalleryEntityV2;
|
|
7
|
+
removeFn: (itemType: 'asset' | 'collection') => void;
|
|
12
8
|
};
|
|
13
9
|
interface ICheckboxState {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
isShowCheckbox?: boolean;
|
|
11
|
+
isActiveCheckbox?: boolean;
|
|
12
|
+
toggleCreationToGallery?: (creation: TCreationAndCollection) => void;
|
|
17
13
|
}
|
|
18
14
|
interface ICreationCard {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
creationName?: string;
|
|
16
|
+
creation: TCreationAndCollection;
|
|
17
|
+
isNeedHeight: boolean;
|
|
18
|
+
likesDynamicInfo?: schema.IDynamicAssetData | schema.IDynamicCollectionData;
|
|
19
|
+
toolsForRemove?: RemoveToolsType | undefined;
|
|
20
|
+
isMobile: boolean;
|
|
21
|
+
isLoadingLikes?: boolean | undefined;
|
|
22
|
+
isNeedShowMoreButton?: boolean;
|
|
23
|
+
isUserProfile?: boolean;
|
|
24
|
+
isRegularCard?: boolean;
|
|
25
|
+
currentMyGalleryId?: false | string;
|
|
30
26
|
}
|
|
31
|
-
export declare const CreationCardWithCheckboxState: (
|
|
32
|
-
|
|
33
|
-
) => React.JSX.Element;
|
|
34
|
-
export declare const CreationCard: ({
|
|
35
|
-
creationName,
|
|
36
|
-
creation,
|
|
37
|
-
isNeedHeight,
|
|
38
|
-
likesDynamicInfo,
|
|
39
|
-
toolsForRemove,
|
|
40
|
-
isMobile,
|
|
41
|
-
isLoadingLikes,
|
|
42
|
-
isNeedShowMoreButton,
|
|
43
|
-
isUserProfile,
|
|
44
|
-
isRegularCard,
|
|
45
|
-
isShowCheckbox,
|
|
46
|
-
isActiveCheckbox,
|
|
47
|
-
toggleCreationToGallery,
|
|
48
|
-
currentMyGalleryId,
|
|
49
|
-
}: ICreationCard & ICheckboxState) => React.JSX.Element;
|
|
27
|
+
export declare const CreationCardWithCheckboxState: (props: ICreationCard) => React.JSX.Element;
|
|
28
|
+
export declare const CreationCard: ({ creationName, creation, isNeedHeight, likesDynamicInfo, toolsForRemove, isMobile, isLoadingLikes, isNeedShowMoreButton, isUserProfile, isRegularCard, isShowCheckbox, isActiveCheckbox, toggleCreationToGallery, currentMyGalleryId, }: ICreationCard & ICheckboxState) => React.JSX.Element;
|
|
50
29
|
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
walletType,
|
|
5
|
-
}: {
|
|
6
|
-
walletType: string;
|
|
2
|
+
declare const AddWalletsRedirectPage: ({ walletType }: {
|
|
3
|
+
walletType: string;
|
|
7
4
|
}) => React.JSX.Element;
|
|
8
5
|
export default AddWalletsRedirectPage;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isLikedByUser,
|
|
7
|
-
}: {
|
|
8
|
-
assetId: string;
|
|
9
|
-
likesByUser: number;
|
|
10
|
-
isLikedByUser: boolean;
|
|
2
|
+
declare const AssetLikes: ({ assetId, likesByUser, isLikedByUser, }: {
|
|
3
|
+
assetId: string;
|
|
4
|
+
likesByUser: number;
|
|
5
|
+
isLikedByUser: boolean;
|
|
11
6
|
}) => React.JSX.Element;
|
|
12
7
|
export default AssetLikes;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { assetSchema as schema } from '@ludo.ninja/api';
|
|
4
|
-
|
|
5
3
|
type AssetMediaProps = Pick<schema.IAsset, 'medias'>;
|
|
6
|
-
export declare const AssetMedia: ({
|
|
7
|
-
medias,
|
|
8
|
-
}: AssetMediaProps) => React.JSX.Element;
|
|
4
|
+
export declare const AssetMedia: ({ medias }: AssetMediaProps) => React.JSX.Element;
|
|
9
5
|
export {};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { BlockChainKeys } from '@ludo.ninja/core';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
tokenId,
|
|
10
|
-
}: {
|
|
11
|
-
blockchain: BlockChainKeys;
|
|
12
|
-
address: string;
|
|
13
|
-
elrondId: string;
|
|
14
|
-
tokenId: string;
|
|
3
|
+
declare const AssetWrapper: ({ blockchain, address, elrondId, tokenId, }: {
|
|
4
|
+
blockchain: BlockChainKeys;
|
|
5
|
+
address: string;
|
|
6
|
+
elrondId: string;
|
|
7
|
+
tokenId: string;
|
|
15
8
|
}) => React.JSX.Element | null;
|
|
16
9
|
export default AssetWrapper;
|
|
@@ -1,108 +1,96 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
|
|
3
2
|
import ReactPlayer from 'react-player';
|
|
4
|
-
|
|
5
3
|
export interface ReactPlayerProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
4
|
+
playerType: string;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
poster?: string | undefined | null;
|
|
7
|
+
src?: string | null;
|
|
8
|
+
playing?: boolean;
|
|
9
|
+
loop?: boolean;
|
|
10
|
+
controls?: boolean;
|
|
11
|
+
volume?: number;
|
|
12
|
+
playbackRate?: number;
|
|
13
|
+
width?: string | number;
|
|
14
|
+
height?: string | number;
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: object;
|
|
18
|
+
progressFrequency?: number;
|
|
19
|
+
soundcloudConfig?: {
|
|
20
|
+
clientId: string;
|
|
21
|
+
showArtwork: boolean;
|
|
22
|
+
};
|
|
23
|
+
youtubeConfig?: {
|
|
24
|
+
playerVars: object;
|
|
25
|
+
preload: boolean;
|
|
26
|
+
};
|
|
27
|
+
vimeoConfig?: {
|
|
28
|
+
iframeParams: object;
|
|
29
|
+
preload: boolean;
|
|
30
|
+
};
|
|
31
|
+
fileConfig?: {
|
|
32
|
+
attributes: object;
|
|
33
|
+
};
|
|
34
|
+
onReady?(): void;
|
|
35
|
+
onStart?(): void;
|
|
36
|
+
onPlay?(): void;
|
|
37
|
+
onPause?(): void;
|
|
38
|
+
onBuffer?(): void;
|
|
39
|
+
onEnded?(): void;
|
|
40
|
+
onError?(error: unknown): void;
|
|
41
|
+
onDuration?(duration: number): void;
|
|
42
|
+
onProgress?(state: {
|
|
43
|
+
played: number;
|
|
44
|
+
loaded: number;
|
|
45
|
+
}): void;
|
|
45
46
|
}
|
|
46
47
|
export interface OnProgressProps {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
played: number;
|
|
49
|
+
playedSeconds: number;
|
|
50
|
+
loaded: number;
|
|
51
|
+
loadedSeconds: number;
|
|
51
52
|
}
|
|
52
53
|
export interface PlayerStateTypes {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
54
|
+
url: string | null | undefined;
|
|
55
|
+
playing: boolean;
|
|
56
|
+
controls: boolean;
|
|
57
|
+
light: boolean;
|
|
58
|
+
volume: number;
|
|
59
|
+
muted: boolean;
|
|
60
|
+
played: number;
|
|
61
|
+
duration: number;
|
|
62
|
+
playedSeconds: number;
|
|
63
|
+
seeking: boolean;
|
|
64
|
+
loaded: number;
|
|
65
|
+
loadedSeconds: number;
|
|
66
|
+
error: boolean;
|
|
67
|
+
isFullscreenMode: boolean;
|
|
67
68
|
}
|
|
68
|
-
export declare const ReactPlayerWrapper: import(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
handleSeekMouseDown: () => void;
|
|
96
|
-
handleSeekChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
97
|
-
handleSeekMouseUp: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
98
|
-
handleProgress: (state: OnProgressProps) => void;
|
|
99
|
-
handleDuration: (duration: number) => void;
|
|
100
|
-
handleClickFullscreen: () => void;
|
|
101
|
-
handleErrors: () => void;
|
|
102
|
-
renderLoadButton: (url: string, label: string) => React.JSX.Element;
|
|
103
|
-
ref: (player: ReactPlayer) => void;
|
|
104
|
-
updateIsFullscreenMode: () => void;
|
|
105
|
-
componentDidMount(): void;
|
|
106
|
-
componentWillUnmount(): void;
|
|
107
|
-
render(): React.JSX.Element | null;
|
|
69
|
+
export declare const ReactPlayerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
70
|
+
poster: string | null | undefined;
|
|
71
|
+
playerType: string;
|
|
72
|
+
isFullscreenMode: boolean;
|
|
73
|
+
}>> & string;
|
|
74
|
+
export declare class AudioVideoPlayer extends Component<ReactPlayerProps, PlayerStateTypes> {
|
|
75
|
+
private player;
|
|
76
|
+
constructor(props: ReactPlayerProps);
|
|
77
|
+
load: (url: string) => void;
|
|
78
|
+
handlePlayPause: () => void;
|
|
79
|
+
handleVolumeChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
80
|
+
handleToggleMuted: () => void;
|
|
81
|
+
handlePlay: () => void;
|
|
82
|
+
handlePause: () => void;
|
|
83
|
+
handleSeekMouseDown: () => void;
|
|
84
|
+
handleSeekChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
85
|
+
handleSeekMouseUp: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
86
|
+
handleProgress: (state: OnProgressProps) => void;
|
|
87
|
+
handleDuration: (duration: number) => void;
|
|
88
|
+
handleClickFullscreen: () => void;
|
|
89
|
+
handleErrors: () => void;
|
|
90
|
+
renderLoadButton: (url: string, label: string) => React.JSX.Element;
|
|
91
|
+
ref: (player: ReactPlayer) => void;
|
|
92
|
+
updateIsFullscreenMode: () => void;
|
|
93
|
+
componentDidMount(): void;
|
|
94
|
+
componentWillUnmount(): void;
|
|
95
|
+
render(): React.JSX.Element | null;
|
|
108
96
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import AssetEntity from '@/dto/AssetEntity';
|
|
3
|
-
|
|
4
3
|
type InformationProps = {
|
|
5
|
-
|
|
4
|
+
asset: AssetEntity;
|
|
6
5
|
};
|
|
7
|
-
export declare const Category: ({
|
|
8
|
-
asset,
|
|
9
|
-
}: InformationProps) => import('react').JSX.Element;
|
|
6
|
+
export declare const Category: ({ asset }: InformationProps) => import("react").JSX.Element;
|
|
10
7
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { assetSchema as schema } from '@ludo.ninja/api';
|
|
4
|
-
|
|
5
3
|
type DescriptionProps = Pick<schema.IAsset, 'description'>;
|
|
6
|
-
export declare const Description: ({
|
|
7
|
-
description,
|
|
8
|
-
}: DescriptionProps) => React.JSX.Element | null;
|
|
4
|
+
export declare const Description: ({ description }: DescriptionProps) => React.JSX.Element | null;
|
|
9
5
|
export {};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import AssetEntity from '@/dto/AssetEntity';
|
|
4
|
-
|
|
5
3
|
type DetailsAccordeonProps = {
|
|
6
|
-
|
|
4
|
+
asset: AssetEntity;
|
|
7
5
|
};
|
|
8
|
-
export declare const DetailsAccordeon: ({
|
|
9
|
-
asset,
|
|
10
|
-
}: DetailsAccordeonProps) => React.JSX.Element;
|
|
6
|
+
export declare const DetailsAccordeon: ({ asset }: DetailsAccordeonProps) => React.JSX.Element;
|
|
11
7
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import AssetEntity from '@/dto/AssetEntity';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
asset,
|
|
7
|
-
}: {
|
|
8
|
-
asset: AssetEntity | null;
|
|
3
|
+
export declare const Figcaption: ({ asset }: {
|
|
4
|
+
asset: AssetEntity | null;
|
|
9
5
|
}) => React.JSX.Element;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import AssetEntity from '@/dto/AssetEntity';
|
|
4
|
-
|
|
5
3
|
type InformationProps = {
|
|
6
|
-
|
|
4
|
+
asset: AssetEntity;
|
|
7
5
|
};
|
|
8
|
-
export declare const Information: ({
|
|
9
|
-
asset,
|
|
10
|
-
}: InformationProps) => React.JSX.Element;
|
|
6
|
+
export declare const Information: ({ asset }: InformationProps) => React.JSX.Element;
|
|
11
7
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
type TItem = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
id: number | string;
|
|
4
|
+
title: string;
|
|
5
|
+
onClick?: () => void;
|
|
7
6
|
};
|
|
8
7
|
interface IDropDown {
|
|
9
|
-
|
|
8
|
+
items: TItem[];
|
|
10
9
|
}
|
|
11
10
|
export declare const MoreDropDown: ({ items }: IDropDown) => React.JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { identitySchema as schema } from '@ludo.ninja/api';
|
|
4
|
-
|
|
5
3
|
type ParticipantsProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
creatorsAddresses: string[] | null;
|
|
5
|
+
creatorsProfiles: schema.IProfile[];
|
|
6
|
+
ownersProfiles: schema.IProfile[];
|
|
7
|
+
ownersAddresses: string[] | null;
|
|
10
8
|
};
|
|
11
|
-
export declare const Participants: ({
|
|
12
|
-
creatorsProfiles,
|
|
13
|
-
ownersProfiles,
|
|
14
|
-
creatorsAddresses,
|
|
15
|
-
ownersAddresses,
|
|
16
|
-
}: ParticipantsProps) => React.JSX.Element;
|
|
9
|
+
export declare const Participants: ({ creatorsProfiles, ownersProfiles, creatorsAddresses, ownersAddresses, }: ParticipantsProps) => React.JSX.Element;
|
|
17
10
|
export {};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { BlockChainEntity } from '@ludo.ninja/core';
|
|
4
|
-
|
|
5
3
|
type PriceRankProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
blockchain: BlockChainEntity;
|
|
5
|
+
rank: number;
|
|
6
|
+
latestPriceAmount: number | null;
|
|
7
|
+
latestPriceCurrency: string | null;
|
|
10
8
|
};
|
|
11
|
-
export declare const PriceRank: ({
|
|
12
|
-
rank,
|
|
13
|
-
latestPriceAmount,
|
|
14
|
-
latestPriceCurrency,
|
|
15
|
-
}: PriceRankProps) => React.JSX.Element;
|
|
9
|
+
export declare const PriceRank: ({ rank, latestPriceAmount, latestPriceCurrency, }: PriceRankProps) => React.JSX.Element;
|
|
16
10
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { assetSchema as schema } from '@ludo.ninja/api';
|
|
4
|
-
|
|
5
3
|
type PropertiesProps = Pick<schema.IAsset, 'attributes'>;
|
|
6
|
-
export declare const Properties: ({
|
|
7
|
-
attributes,
|
|
8
|
-
}: PropertiesProps) => React.JSX.Element;
|
|
4
|
+
export declare const Properties: ({ attributes }: PropertiesProps) => React.JSX.Element;
|
|
9
5
|
export {};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import 'slick-carousel/slick/slick.css';
|
|
4
|
-
|
|
5
3
|
import Media from '@/dto/common/Media';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
medias,
|
|
9
|
-
}: {
|
|
10
|
-
medias: Media[] | null;
|
|
4
|
+
export declare const CollectionSlider: ({ medias }: {
|
|
5
|
+
medias: Media[] | null;
|
|
11
6
|
}) => React.JSX.Element | null;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { assetSchema as schema } from '@ludo.ninja/api';
|
|
4
|
-
|
|
5
3
|
type TitleProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
collectionId: string | null;
|
|
5
|
+
collectionTitle: string | null;
|
|
6
|
+
collectionMedias: schema.IMedia[];
|
|
7
|
+
name: null | string;
|
|
10
8
|
};
|
|
11
|
-
export declare const Title: ({
|
|
12
|
-
name,
|
|
13
|
-
collectionTitle,
|
|
14
|
-
collectionMedias,
|
|
15
|
-
collectionId,
|
|
16
|
-
}: TitleProps) => React.JSX.Element;
|
|
9
|
+
export declare const Title: ({ name, collectionTitle, collectionMedias, collectionId, }: TitleProps) => React.JSX.Element;
|
|
17
10
|
export {};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
type Viewer3dProps = {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
file2D?: string | undefined | null;
|
|
4
|
+
file3D: string | undefined | null;
|
|
6
5
|
};
|
|
7
|
-
export declare const ScenePreview: ({
|
|
8
|
-
|
|
9
|
-
}: Pick<Viewer3dProps, 'file3D'>) => React.JSX.Element | null;
|
|
10
|
-
export declare const Viewer3D: ({
|
|
11
|
-
file3D,
|
|
12
|
-
file2D,
|
|
13
|
-
}: Viewer3dProps) => React.JSX.Element;
|
|
6
|
+
export declare const ScenePreview: ({ file3D }: Pick<Viewer3dProps, 'file3D'>) => React.JSX.Element | null;
|
|
7
|
+
export declare const Viewer3D: ({ file3D, file2D }: Viewer3dProps) => React.JSX.Element;
|
|
14
8
|
export {};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
collectionId,
|
|
7
|
-
}: {
|
|
8
|
-
likesCount: number;
|
|
9
|
-
isLiked: boolean;
|
|
10
|
-
collectionId: string;
|
|
2
|
+
declare const CollectionLike: ({ likesCount, isLiked, collectionId, }: {
|
|
3
|
+
likesCount: number;
|
|
4
|
+
isLiked: boolean;
|
|
5
|
+
collectionId: string;
|
|
11
6
|
}) => React.JSX.Element;
|
|
12
7
|
export default CollectionLike;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
isGallery,
|
|
8
|
-
}: {
|
|
9
|
-
galleryId: string;
|
|
10
|
-
userId?: string | undefined;
|
|
11
|
-
onHide: () => void;
|
|
12
|
-
isGallery: boolean;
|
|
2
|
+
declare const DeleteDialog: ({ galleryId, userId, onHide, isGallery, }: {
|
|
3
|
+
galleryId: string;
|
|
4
|
+
userId?: string | undefined;
|
|
5
|
+
onHide: () => void;
|
|
6
|
+
isGallery: boolean;
|
|
13
7
|
}) => React.JSX.Element;
|
|
14
8
|
export default DeleteDialog;
|