@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.
Files changed (155) hide show
  1. package/dist/hooks/likes/useGetLikesAsset.js +140 -305
  2. package/dist/index.js +1 -0
  3. package/dist/modules/index.js +3 -0
  4. package/dist/modules/sessionScroll/index.js +33 -43
  5. package/dist/modules/user/auth/index.js +1 -0
  6. package/dist/modules/user/index.js +3 -0
  7. package/dist/modules/user/profileData/index.js +1 -0
  8. package/dist/store/index.js +4 -5
  9. package/dist/types/api/server-search/queries/useFetchCollections/index.d.ts +13 -23
  10. package/dist/types/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +9 -13
  11. package/dist/types/components/CreationCard/CardHead.d.ts +10 -22
  12. package/dist/types/components/CreationCard/index.d.ts +18 -39
  13. package/dist/types/components/addWalletsRedirectPage/index.d.ts +2 -5
  14. package/dist/types/components/assetPage/assetLikes/index.d.ts +4 -9
  15. package/dist/types/components/assetPage/assetNft/index.d.ts +1 -5
  16. package/dist/types/components/assetPage/assetWrapper/index.d.ts +5 -12
  17. package/dist/types/components/assetPage/audioVideoPlayer/Duration.d.ts +1 -2
  18. package/dist/types/components/assetPage/audioVideoPlayer/index.d.ts +87 -99
  19. package/dist/types/components/assetPage/category/index.d.ts +2 -5
  20. package/dist/types/components/assetPage/description/index.d.ts +1 -5
  21. package/dist/types/components/assetPage/detailsAccordeon/index.d.ts +2 -6
  22. package/dist/types/components/assetPage/figCaption/index.d.ts +2 -6
  23. package/dist/types/components/assetPage/information/index.d.ts +2 -6
  24. package/dist/types/components/assetPage/moreDropDown/index.d.ts +4 -5
  25. package/dist/types/components/assetPage/participants/index.d.ts +5 -12
  26. package/dist/types/components/assetPage/priceRank/index.d.ts +5 -11
  27. package/dist/types/components/assetPage/properties/index.d.ts +1 -5
  28. package/dist/types/components/assetPage/slider/index.d.ts +2 -7
  29. package/dist/types/components/assetPage/tittle/index.d.ts +5 -12
  30. package/dist/types/components/assetPage/viewer3D/index.d.ts +4 -10
  31. package/dist/types/components/collectionPage/collectionLike/index.d.ts +4 -9
  32. package/dist/types/components/deleteDialog/index.d.ts +5 -11
  33. package/dist/types/components/editProfile/UserPicProfile/index.d.ts +2 -5
  34. package/dist/types/components/favoriteList/add/addAssetToFavoriteList/index.d.ts +1 -2
  35. package/dist/types/components/favoriteList/add/addCollectionToFavoriteList/index.d.ts +1 -2
  36. package/dist/types/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +2 -3
  37. package/dist/types/components/filters/index.d.ts +7 -23
  38. package/dist/types/components/forms/form/index.d.ts +8 -10
  39. package/dist/types/components/forms/formsNavigation/index.d.ts +0 -1
  40. package/dist/types/components/forms/formsTemplate/index.d.ts +6 -9
  41. package/dist/types/components/gallery/add/addAssetToGallery/index.d.ts +1 -2
  42. package/dist/types/components/gallery/add/addCreationToGallery/index.d.ts +0 -1
  43. package/dist/types/components/gradientLabel/index.d.ts +0 -1
  44. package/dist/types/components/headers/headerSearch/index.d.ts +0 -1
  45. package/dist/types/components/headers/headerSimple/index.d.ts +0 -1
  46. package/dist/types/components/inviteCodesPage/components/index.d.ts +0 -1
  47. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCode/index.d.ts +3 -8
  48. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.d.ts +4 -9
  49. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.d.ts +2 -6
  50. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.d.ts +2 -5
  51. package/dist/types/components/inviteCodesPage/wrappers/index.d.ts +0 -1
  52. package/dist/types/components/inviteCodesPage/wrappers/resumeCodes/index.d.ts +5 -11
  53. package/dist/types/components/inviteCodesPage/wrappers/unusedCodes/index.d.ts +3 -8
  54. package/dist/types/components/inviteCodesPage/wrappers/usedCodes/index.d.ts +3 -8
  55. package/dist/types/components/linkTabs/linkTab/index.d.ts +5 -11
  56. package/dist/types/components/myWallets/index.d.ts +0 -1
  57. package/dist/types/components/navigation/index.d.ts +3 -4
  58. package/dist/types/components/profile/ProfileTabs.d.ts +5 -11
  59. package/dist/types/components/profile/aboutText/index.d.ts +2 -21
  60. package/dist/types/components/profile/addToGalleryBtns/index.d.ts +2 -5
  61. package/dist/types/components/profile/followersSocial/followers/index.d.ts +3 -7
  62. package/dist/types/components/profile/info/index.d.ts +2 -6
  63. package/dist/types/components/profile/profileUserCards/profileUserCard/index.d.ts +7 -16
  64. package/dist/types/components/profile/rank/index.d.ts +1 -5
  65. package/dist/types/components/profile/wallets/index.d.ts +0 -1
  66. package/dist/types/components/profile/wrapper/index.d.ts +4 -10
  67. package/dist/types/components/registrationPage/registrationSelection/index.d.ts +10 -12
  68. package/dist/types/components/rewards/FAQ/index.d.ts +0 -1
  69. package/dist/types/components/rewards/clarifications/index.d.ts +6 -8
  70. package/dist/types/components/rewards/logoBottom/index.d.ts +1 -1
  71. package/dist/types/components/rewards/seasonBanner/index.d.ts +3 -5
  72. package/dist/types/components/rewards/taskExpTab/index.d.ts +10 -21
  73. package/dist/types/components/rewards/tasksGrid/index.d.ts +3 -6
  74. package/dist/types/components/rewards/userExp/index.d.ts +8 -17
  75. package/dist/types/components/search/SearchInputContainer.d.ts +21 -35
  76. package/dist/types/components/search/index.d.ts +0 -1
  77. package/dist/types/components/search/searchCloseMoreButtons/index.d.ts +9 -14
  78. package/dist/types/components/search/searchSimpleInput/index.d.ts +2 -5
  79. package/dist/types/components/shareDialog/index.d.ts +29 -33
  80. package/dist/types/components/sidebar/index.d.ts +0 -1
  81. package/dist/types/components/sidebar/initializer.d.ts +1 -1
  82. package/dist/types/components/socialButtons/index.d.ts +0 -1
  83. package/dist/types/components/toTopBtn/index.d.ts +2 -5
  84. package/dist/types/dto/AssetEntity/views/AssetAudio/index.d.ts +3 -11
  85. package/dist/types/dto/AssetEntity/views/AssetObject/index.d.ts +5 -14
  86. package/dist/types/dto/AssetEntity/views/AssetVideo/index.d.ts +3 -11
  87. package/dist/types/dto/Collection/CollectionCreationEntity/index.d.ts +37 -39
  88. package/dist/types/dto/CreationEntity/index.d.ts +41 -43
  89. package/dist/types/dto/common/ItemViews/CreationAudio/index.d.ts +3 -11
  90. package/dist/types/dto/common/ItemViews/CreationObject/index.d.ts +2 -10
  91. package/dist/types/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +16 -23
  92. package/dist/types/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +17 -28
  93. package/dist/types/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +17 -26
  94. package/dist/types/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +11 -18
  95. package/dist/types/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +13 -18
  96. package/dist/types/hooks/likes/dynamic/useGetTableLikes.d.ts +9 -19
  97. package/dist/types/hooks/likes/index.d.ts +12 -20
  98. package/dist/types/hooks/likes/useGetLikesAsset.d.ts +8 -20
  99. package/dist/types/hooks/useToGalleryAsset/index.d.ts +12 -21
  100. package/dist/types/index.d.ts +1 -0
  101. package/dist/types/layouts/GlobalLayout.d.ts +2 -5
  102. package/dist/types/layouts/base/LWithRegularHeader/index.d.ts +0 -1
  103. package/dist/types/layouts/base/LWithRegularHeader/type.d.ts +1 -3
  104. package/dist/types/layouts/base/LWithSearchHeader/index.d.ts +0 -1
  105. package/dist/types/layouts/base/LWithSearchHeader/type.d.ts +1 -3
  106. package/dist/types/layouts/base/LWithSimpleHeader/index.d.ts +0 -1
  107. package/dist/types/layouts/base/LWithSimpleHeader/type.d.ts +1 -3
  108. package/dist/types/layouts/base/LWithoutHeader/index.d.ts +0 -1
  109. package/dist/types/layouts/custom/accountLayout/index.d.ts +0 -1
  110. package/dist/types/layouts/custom/formsLayout/index.d.ts +0 -1
  111. package/dist/types/layouts/custom/mainLayout/index.d.ts +0 -1
  112. package/dist/types/layouts/custom/searchLayout/index.d.ts +0 -1
  113. package/dist/types/layouts/custom/simpleLayout/index.d.ts +0 -1
  114. package/dist/types/layouts/pageWithLayout.d.ts +3 -10
  115. package/dist/types/modules/gallery/ui/AllResults.d.ts +2 -5
  116. package/dist/types/modules/gallery/ui/EditGallery.d.ts +7 -18
  117. package/dist/types/modules/gallery/ui/GalleryDeleteIcon.d.ts +3 -7
  118. package/dist/types/modules/gallery/ui/chooseGalleryItems/index.d.ts +10 -15
  119. package/dist/types/modules/gallery/ui/itemsPreview/index.d.ts +13 -27
  120. package/dist/types/modules/index.d.ts +3 -0
  121. package/dist/types/modules/sessionScroll/index.d.ts +7 -10
  122. package/dist/types/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +6 -14
  123. package/dist/types/modules/user/auth/index.d.ts +1 -0
  124. package/dist/types/modules/user/index.d.ts +3 -0
  125. package/dist/types/modules/user/profileData/index.d.ts +1 -0
  126. package/dist/types/modules/virtuoso/VirtuosoPageBuilder.d.ts +14 -32
  127. package/dist/types/modules/virtuoso/VirtuosoToTopBtn.d.ts +5 -9
  128. package/dist/types/modules/virtuoso/types.d.ts +2 -3
  129. package/dist/types/modules/virtuoso/useVirtuosoData.d.ts +8 -16
  130. package/dist/types/store/index.d.ts +7 -14
  131. package/dist/types/system/Cards/CardContent/CardLikes/index.d.ts +3 -7
  132. package/dist/types/system/Cards/CardHeadIcons/index.d.ts +10 -24
  133. package/dist/types/system/Cards/CardMedia/CardAudio/index.d.ts +5 -11
  134. package/dist/types/system/Cards/CardRank/index.d.ts +3 -2
  135. package/dist/types/system/Cards/CardsGrid/index.d.ts +9 -19
  136. package/dist/types/system/Cards/MultiMediaCard/index.d.ts +4 -10
  137. package/dist/types/system/Cards/RegularCard/index.d.ts +14 -28
  138. package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/index.d.ts +13 -20
  139. package/dist/types/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +0 -1
  140. package/dist/types/system/CardsHolderWithSkeleton/index.d.ts +20 -27
  141. package/dist/types/system/Forms/Selects/DesktopSelect/index.d.ts +6 -15
  142. package/dist/types/system/Img/Profilepic/index.d.ts +4 -6
  143. package/dist/types/system/ShareIconResize.d.ts +1 -1
  144. package/dist/types/utils/adaptive/check4k.d.ts +3 -7
  145. package/dist/types/utils/adaptive/scale.d.ts +8 -14
  146. package/dist/types/utils/copyBtn/index.d.ts +3 -8
  147. package/dist/types/utils/extractItemIds/index.d.ts +1 -4
  148. package/dist/types/utils/getPageSizeAssets.d.ts +3 -6
  149. package/dist/types/utils/index.d.ts +3 -6
  150. package/dist/types/utils/screen/index.d.ts +9 -9
  151. package/dist/utils/index.js +3 -6
  152. package/package.json +1 -1
  153. package/src/index.ts +1 -0
  154. package/src/store/index.ts +2 -0
  155. 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
- declare const useFetchDynamicCollectionData: ({
6
- input,
7
- }: schema.IQueryFetchDynamicCollectionDataArgs) => {
8
- loadMore: (pageToken: string | null) => Promise<void>;
9
- loading: boolean;
10
- error: import('@apollo/client').ApolloError | undefined;
11
- refetchQuery: () => Promise<void>;
12
- collectionAssetsList: CollectionCreationEntity[];
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
- export declare const CardHead: ({
7
- creation,
8
- isRegularCard,
9
- isIconLiked,
10
- addLikeToCard,
11
- deleteLikeFromCard,
12
- isUserProfile,
13
- isDisabled,
14
- isShowCheckbox,
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
- gallery?: GalleryEntityV2;
11
- removeFn: (itemType: 'asset' | 'collection') => void;
6
+ gallery?: GalleryEntityV2;
7
+ removeFn: (itemType: 'asset' | 'collection') => void;
12
8
  };
13
9
  interface ICheckboxState {
14
- isShowCheckbox?: boolean;
15
- isActiveCheckbox?: boolean;
16
- toggleCreationToGallery?: (creation: TCreationAndCollection) => void;
10
+ isShowCheckbox?: boolean;
11
+ isActiveCheckbox?: boolean;
12
+ toggleCreationToGallery?: (creation: TCreationAndCollection) => void;
17
13
  }
18
14
  interface ICreationCard {
19
- creationName?: string;
20
- creation: TCreationAndCollection;
21
- isNeedHeight: boolean;
22
- likesDynamicInfo?: schema.IDynamicAssetData | schema.IDynamicCollectionData;
23
- toolsForRemove?: RemoveToolsType | undefined;
24
- isMobile: boolean;
25
- isLoadingLikes?: boolean | undefined;
26
- isNeedShowMoreButton?: boolean;
27
- isUserProfile?: boolean;
28
- isRegularCard?: boolean;
29
- currentMyGalleryId?: false | string;
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
- props: ICreationCard
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
- declare const AddWalletsRedirectPage: ({
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
- declare const AssetLikes: ({
4
- assetId,
5
- likesByUser,
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
- declare const AssetWrapper: ({
6
- blockchain,
7
- address,
8
- elrondId,
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,7 +1,6 @@
1
1
  import React from 'react';
2
-
3
2
  type DurationProps = {
4
- seconds: number;
3
+ seconds: number;
5
4
  };
6
5
  export default function Duration({ seconds }: DurationProps): React.JSX.Element;
7
6
  export {};
@@ -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
- playerType: string;
7
- isLoading?: boolean;
8
- poster?: string | undefined | null;
9
- src?: string | null;
10
- playing?: boolean;
11
- loop?: boolean;
12
- controls?: boolean;
13
- volume?: number;
14
- playbackRate?: number;
15
- width?: string | number;
16
- height?: string | number;
17
- hidden?: boolean;
18
- className?: string;
19
- style?: object;
20
- progressFrequency?: number;
21
- soundcloudConfig?: {
22
- clientId: string;
23
- showArtwork: boolean;
24
- };
25
- youtubeConfig?: {
26
- playerVars: object;
27
- preload: boolean;
28
- };
29
- vimeoConfig?: {
30
- iframeParams: object;
31
- preload: boolean;
32
- };
33
- fileConfig?: {
34
- attributes: object;
35
- };
36
- onReady?(): void;
37
- onStart?(): void;
38
- onPlay?(): void;
39
- onPause?(): void;
40
- onBuffer?(): void;
41
- onEnded?(): void;
42
- onError?(error: unknown): void;
43
- onDuration?(duration: number): void;
44
- onProgress?(state: { played: number; loaded: number }): void;
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
- played: number;
48
- playedSeconds: number;
49
- loaded: number;
50
- loadedSeconds: number;
48
+ played: number;
49
+ playedSeconds: number;
50
+ loaded: number;
51
+ loadedSeconds: number;
51
52
  }
52
53
  export interface PlayerStateTypes {
53
- url: string | null | undefined;
54
- playing: boolean;
55
- controls: boolean;
56
- light: boolean;
57
- volume: number;
58
- muted: boolean;
59
- played: number;
60
- duration: number;
61
- playedSeconds: number;
62
- seeking: boolean;
63
- loaded: number;
64
- loadedSeconds: number;
65
- error: boolean;
66
- isFullscreenMode: boolean;
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('styled-components/dist/types').IStyledComponentBase<
69
- 'web',
70
- import('styled-components/dist/types').Substitute<
71
- React.DetailedHTMLProps<
72
- React.HTMLAttributes<HTMLDivElement>,
73
- HTMLDivElement
74
- >,
75
- {
76
- poster: string | null | undefined;
77
- playerType: string;
78
- isFullscreenMode: boolean;
79
- }
80
- >
81
- > &
82
- string;
83
- export declare class AudioVideoPlayer extends Component<
84
- ReactPlayerProps,
85
- PlayerStateTypes
86
- > {
87
- private player;
88
- constructor(props: ReactPlayerProps);
89
- load: (url: string) => void;
90
- handlePlayPause: () => void;
91
- handleVolumeChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
92
- handleToggleMuted: () => void;
93
- handlePlay: () => void;
94
- handlePause: () => void;
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
- asset: AssetEntity;
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
- asset: AssetEntity;
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
- export declare const Figcaption: ({
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
- asset: AssetEntity;
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
- id: number | string;
5
- title: string;
6
- onClick?: () => void;
3
+ id: number | string;
4
+ title: string;
5
+ onClick?: () => void;
7
6
  };
8
7
  interface IDropDown {
9
- items: TItem[];
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
- creatorsAddresses: string[] | null;
7
- creatorsProfiles: schema.IProfile[];
8
- ownersProfiles: schema.IProfile[];
9
- ownersAddresses: string[] | null;
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
- blockchain: BlockChainEntity;
7
- rank: number;
8
- latestPriceAmount: number | null;
9
- latestPriceCurrency: string | null;
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
- export declare const CollectionSlider: ({
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
- collectionId: string | null;
7
- collectionTitle: string | null;
8
- collectionMedias: schema.IMedia[];
9
- name: null | string;
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
- file2D?: string | undefined | null;
5
- file3D: string | undefined | null;
3
+ file2D?: string | undefined | null;
4
+ file3D: string | undefined | null;
6
5
  };
7
- export declare const ScenePreview: ({
8
- file3D,
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
- declare const CollectionLike: ({
4
- likesCount,
5
- isLiked,
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
- declare const DeleteDialog: ({
4
- galleryId,
5
- userId,
6
- onHide,
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;