@ludo.ninja/components 1.9.6 → 2.0.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/build/index.js +1 -0
- package/package.json +4 -6
- package/README.md +0 -40
- package/dist/api/graphql/index.d.ts +0 -4
- package/dist/api/graphql/index.js +0 -11
- package/dist/components/CreationCard/CardHead.d.ts +0 -14
- package/dist/components/CreationCard/CardHead.js +0 -129
- package/dist/components/CreationCard/index.d.ts +0 -30
- package/dist/components/CreationCard/index.js +0 -103
- package/dist/components/addWalletsRedirectPage/index.d.ts +0 -5
- package/dist/components/addWalletsRedirectPage/index.js +0 -38
- package/dist/components/banner/index.d.ts +0 -3
- package/dist/components/banner/index.js +0 -71
- package/dist/components/base/Meta/index.d.ts +0 -3
- package/dist/components/base/Meta/index.js +0 -60
- package/dist/components/base/NoSSR/index.d.ts +0 -5
- package/dist/components/base/NoSSR/index.js +0 -10
- package/dist/components/collectionPage/collectionLike/index.d.ts +0 -7
- package/dist/components/collectionPage/collectionLike/index.js +0 -41
- package/dist/components/deleteDialog/index.d.ts +0 -8
- package/dist/components/deleteDialog/index.js +0 -109
- package/dist/components/favoriteList/add/addAssetToFavoriteList/index.d.ts +0 -6
- package/dist/components/favoriteList/add/addAssetToFavoriteList/index.js +0 -94
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/index.d.ts +0 -6
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/index.js +0 -92
- package/dist/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +0 -7
- package/dist/components/favoriteList/add/addCreationToFavoriteList/index.js +0 -94
- package/dist/components/filters/applyResetBtns/index.d.ts +0 -6
- package/dist/components/filters/applyResetBtns/index.js +0 -28
- package/dist/components/filters/galleriesFiltersForm/index.d.ts +0 -11
- package/dist/components/filters/galleriesFiltersForm/index.js +0 -90
- package/dist/components/filters/index.d.ts +0 -12
- package/dist/components/filters/index.js +0 -111
- package/dist/components/filters/mobileFilters/index.d.ts +0 -5
- package/dist/components/filters/mobileFilters/index.js +0 -21
- package/dist/components/filters/setsFiltersForm/index.d.ts +0 -10
- package/dist/components/filters/setsFiltersForm/index.js +0 -82
- package/dist/components/forms/form/index.d.ts +0 -14
- package/dist/components/forms/form/index.js +0 -136
- package/dist/components/forms/formsNavigation/index.d.ts +0 -3
- package/dist/components/forms/formsNavigation/index.js +0 -73
- package/dist/components/forms/formsTemplate/index.d.ts +0 -14
- package/dist/components/forms/formsTemplate/index.js +0 -776
- package/dist/components/forms/types/index.d.ts +0 -32
- package/dist/components/forms/types/index.js +0 -13
- package/dist/components/gallery/add/addAssetToGallery/index.d.ts +0 -6
- package/dist/components/gallery/add/addAssetToGallery/index.js +0 -94
- package/dist/components/gallery/add/addCreationToGallery/index.d.ts +0 -3
- package/dist/components/gallery/add/addCreationToGallery/index.js +0 -114
- package/dist/components/gradientLabel/index.d.ts +0 -3
- package/dist/components/gradientLabel/index.js +0 -24
- package/dist/components/headers/components/MobileToggle/index.d.ts +0 -0
- package/dist/components/headers/components/MobileToggle/index.js +0 -0
- package/dist/components/headers/components/headerExperienceLabel/index.d.ts +0 -5
- package/dist/components/headers/components/headerExperienceLabel/index.js +0 -32
- package/dist/components/headers/components/headerUserPic/index.d.ts +0 -5
- package/dist/components/headers/components/headerUserPic/index.js +0 -27
- package/dist/components/headers/header/index.d.ts +0 -3
- package/dist/components/headers/header/index.js +0 -32
- package/dist/components/headers/headerSearch/index.d.ts +0 -3
- package/dist/components/headers/headerSearch/index.js +0 -39
- package/dist/components/headers/headerSimple/index.d.ts +0 -3
- package/dist/components/headers/headerSimple/index.js +0 -33
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +0 -23
- package/dist/components/inviteCodesForms/getEarlyAccessForm/index.d.ts +0 -3
- package/dist/components/inviteCodesForms/getEarlyAccessForm/index.js +0 -181
- package/dist/components/inviteCodesForms/joinWaitListForm/index.d.ts +0 -3
- package/dist/components/inviteCodesForms/joinWaitListForm/index.js +0 -126
- package/dist/components/inviteCodesForms/styles/index.d.ts +0 -6
- package/dist/components/inviteCodesForms/styles/index.js +0 -18
- package/dist/components/inviteCodesPage/components/index.d.ts +0 -5
- package/dist/components/inviteCodesPage/components/index.js +0 -14
- package/dist/components/inviteCodesPage/components/inviteCodes/index.d.ts +0 -6
- package/dist/components/inviteCodesPage/components/inviteCodes/index.js +0 -24
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/index.d.ts +0 -7
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/index.js +0 -30
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/index.d.ts +0 -3
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/index.js +0 -26
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.d.ts +0 -7
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.js +0 -28
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/index.d.ts +0 -3
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/index.js +0 -21
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.d.ts +0 -6
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.js +0 -27
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.d.ts +0 -5
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.js +0 -23
- package/dist/components/inviteCodesPage/wrappers/index.d.ts +0 -4
- package/dist/components/inviteCodesPage/wrappers/index.js +0 -12
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/index.d.ts +0 -8
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/index.js +0 -49
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.d.ts +0 -3
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +0 -17
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/index.d.ts +0 -7
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/index.js +0 -31
- package/dist/components/inviteCodesPage/wrappers/usedCodes/index.d.ts +0 -7
- package/dist/components/inviteCodesPage/wrappers/usedCodes/index.js +0 -37
- package/dist/components/linkTabs/index.d.ts +0 -7
- package/dist/components/linkTabs/index.js +0 -23
- package/dist/components/linkTabs/linkTab/index.d.ts +0 -9
- package/dist/components/linkTabs/linkTab/index.js +0 -28
- package/dist/components/myWallets/index.d.ts +0 -3
- package/dist/components/myWallets/index.js +0 -33
- package/dist/components/myWallets/myWalletItem/index.d.ts +0 -10
- package/dist/components/myWallets/myWalletItem/index.js +0 -137
- package/dist/components/navigation/index.d.ts +0 -8
- package/dist/components/navigation/index.js +0 -75
- package/dist/components/profile/MultiversXAudit/MultiversXAudit.d.ts +0 -2
- package/dist/components/profile/MultiversXAudit/MultiversXAudit.js +0 -136
- package/dist/components/profile/ProfileTabs.d.ts +0 -7
- package/dist/components/profile/ProfileTabs.js +0 -46
- package/dist/components/profile/aboutText/index.d.ts +0 -5
- package/dist/components/profile/aboutText/index.js +0 -105
- package/dist/components/profile/addToGalleryBtns/index.d.ts +0 -5
- package/dist/components/profile/addToGalleryBtns/index.js +0 -42
- package/dist/components/profile/followersSocial/followers/index.d.ts +0 -7
- package/dist/components/profile/followersSocial/followers/index.js +0 -28
- package/dist/components/profile/followersSocial/index.d.ts +0 -5
- package/dist/components/profile/followersSocial/index.js +0 -28
- package/dist/components/profile/followersSocial/social/index.d.ts +0 -3
- package/dist/components/profile/followersSocial/social/index.js +0 -40
- package/dist/components/profile/index.d.ts +0 -1
- package/dist/components/profile/index.js +0 -5
- package/dist/components/profile/info/index.d.ts +0 -7
- package/dist/components/profile/info/index.js +0 -43
- package/dist/components/profile/interests/data.d.ts +0 -3
- package/dist/components/profile/interests/data.js +0 -22
- package/dist/components/profile/interests/index.d.ts +0 -2
- package/dist/components/profile/interests/index.js +0 -56
- package/dist/components/profile/interests/type.d.ts +0 -6
- package/dist/components/profile/interests/type.js +0 -2
- package/dist/components/profile/jsonLd/index.d.ts +0 -4
- package/dist/components/profile/jsonLd/index.js +0 -9
- package/dist/components/profile/pageHead/index.d.ts +0 -6
- package/dist/components/profile/pageHead/index.js +0 -51
- package/dist/components/profile/profileSkeleton/index.d.ts +0 -5
- package/dist/components/profile/profileSkeleton/index.js +0 -35
- package/dist/components/profile/profileUserCards/index.d.ts +0 -4
- package/dist/components/profile/profileUserCards/index.js +0 -19
- package/dist/components/profile/profileUserCards/profileUserCard/index.d.ts +0 -10
- package/dist/components/profile/profileUserCards/profileUserCard/index.js +0 -157
- package/dist/components/profile/rank/index.d.ts +0 -5
- package/dist/components/profile/rank/index.js +0 -33
- package/dist/components/profile/stats/index.d.ts +0 -5
- package/dist/components/profile/stats/index.js +0 -28
- package/dist/components/profile/wallets/index.d.ts +0 -2
- package/dist/components/profile/wallets/index.js +0 -73
- package/dist/components/profile/wrapper/index.d.ts +0 -7
- package/dist/components/profile/wrapper/index.js +0 -17
- package/dist/components/registrationPage/index.d.ts +0 -3
- package/dist/components/registrationPage/index.js +0 -10
- package/dist/components/registrationPage/registrationSelectBox/index.d.ts +0 -9
- package/dist/components/registrationPage/registrationSelectBox/index.js +0 -24
- package/dist/components/registrationPage/registrationSelection/index.d.ts +0 -16
- package/dist/components/registrationPage/registrationSelection/index.js +0 -43
- package/dist/components/rewards/FAQ/index.d.ts +0 -3
- package/dist/components/rewards/FAQ/index.js +0 -132
- package/dist/components/rewards/clarifications/index.d.ts +0 -8
- package/dist/components/rewards/clarifications/index.js +0 -54
- package/dist/components/rewards/logoBottom/index.d.ts +0 -3
- package/dist/components/rewards/logoBottom/index.js +0 -29
- package/dist/components/rewards/prograssBar/index.d.ts +0 -7
- package/dist/components/rewards/prograssBar/index.js +0 -32
- package/dist/components/rewards/rewardsButton/index.d.ts +0 -3
- package/dist/components/rewards/rewardsButton/index.js +0 -17
- package/dist/components/rewards/seasonBanner/index.d.ts +0 -5
- package/dist/components/rewards/seasonBanner/index.js +0 -29
- package/dist/components/rewards/taskExpTab/index.d.ts +0 -14
- package/dist/components/rewards/taskExpTab/index.js +0 -64
- package/dist/components/rewards/tasksGrid/index.d.ts +0 -6
- package/dist/components/rewards/tasksGrid/index.js +0 -142
- package/dist/components/rewards/userExp/index.d.ts +0 -12
- package/dist/components/rewards/userExp/index.js +0 -72
- package/dist/components/search/SearchInputContainer.d.ts +0 -26
- package/dist/components/search/SearchInputContainer.js +0 -244
- package/dist/components/search/index.d.ts +0 -3
- package/dist/components/search/index.js +0 -86
- package/dist/components/search/searchCategories/index.d.ts +0 -3
- package/dist/components/search/searchCategories/index.js +0 -79
- package/dist/components/search/searchCategories/type.d.ts +0 -5
- package/dist/components/search/searchCategories/type.js +0 -2
- package/dist/components/search/searchCloseMoreButtons/index.d.ts +0 -14
- package/dist/components/search/searchCloseMoreButtons/index.js +0 -54
- package/dist/components/search/searchResultCaption/index.d.ts +0 -7
- package/dist/components/search/searchResultCaption/index.js +0 -31
- package/dist/components/search/searchSelectsGalleries/index.d.ts +0 -9
- package/dist/components/search/searchSelectsGalleries/index.js +0 -70
- package/dist/components/search/searchSelectsSets/index.d.ts +0 -8
- package/dist/components/search/searchSelectsSets/index.js +0 -69
- package/dist/components/search/searchSimpleInput/index.d.ts +0 -5
- package/dist/components/search/searchSimpleInput/index.js +0 -85
- package/dist/components/search/searchSuggestions/index.d.ts +0 -14
- package/dist/components/search/searchSuggestions/index.js +0 -117
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/index.d.ts +0 -7
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/index.js +0 -27
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +0 -3
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/index.js +0 -30
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/index.d.ts +0 -11
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/index.js +0 -40
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +0 -4
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +0 -56
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +0 -5
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +0 -29
- package/dist/components/shareDialog/index.d.ts +0 -34
- package/dist/components/shareDialog/index.js +0 -73
- package/dist/components/showcaseAssets/showcaseSort/data.d.ts +0 -3
- package/dist/components/showcaseAssets/showcaseSort/data.js +0 -29
- package/dist/components/showcaseAssets/showcaseSort/index.d.ts +0 -8
- package/dist/components/showcaseAssets/showcaseSort/index.js +0 -28
- package/dist/components/sidebar/data.d.ts +0 -20
- package/dist/components/sidebar/data.js +0 -89
- package/dist/components/sidebar/index.d.ts +0 -3
- package/dist/components/sidebar/index.js +0 -131
- package/dist/components/sidebar/initializer.d.ts +0 -2
- package/dist/components/sidebar/initializer.js +0 -36
- package/dist/components/sidebar/sidebarFilters/index.d.ts +0 -7
- package/dist/components/sidebar/sidebarFilters/index.js +0 -30
- package/dist/components/sidebar/sidebarInviteCodeLabel/index.d.ts +0 -3
- package/dist/components/sidebar/sidebarInviteCodeLabel/index.js +0 -67
- package/dist/components/socialButtons/data.d.ts +0 -3
- package/dist/components/socialButtons/data.js +0 -52
- package/dist/components/socialButtons/icons/discord.d.ts +0 -3
- package/dist/components/socialButtons/icons/discord.js +0 -7
- package/dist/components/socialButtons/icons/facebook.d.ts +0 -3
- package/dist/components/socialButtons/icons/facebook.js +0 -8
- package/dist/components/socialButtons/icons/instagram.d.ts +0 -3
- package/dist/components/socialButtons/icons/instagram.js +0 -9
- package/dist/components/socialButtons/icons/medium.d.ts +0 -3
- package/dist/components/socialButtons/icons/medium.js +0 -7
- package/dist/components/socialButtons/icons/telegram.d.ts +0 -3
- package/dist/components/socialButtons/icons/telegram.js +0 -7
- package/dist/components/socialButtons/icons/twitter.d.ts +0 -3
- package/dist/components/socialButtons/icons/twitter.js +0 -7
- package/dist/components/socialButtons/index.d.ts +0 -3
- package/dist/components/socialButtons/index.js +0 -32
- package/dist/components/socialButtons/type.d.ts +0 -8
- package/dist/components/socialButtons/type.js +0 -2
- package/dist/components/tabs/icons/bell.d.ts +0 -5
- package/dist/components/tabs/icons/bell.js +0 -9
- package/dist/components/tabs/icons/profile.d.ts +0 -5
- package/dist/components/tabs/icons/profile.js +0 -9
- package/dist/components/tabs/icons/secure.d.ts +0 -5
- package/dist/components/tabs/icons/secure.js +0 -8
- package/dist/components/tabs/index.d.ts +0 -3
- package/dist/components/tabs/index.js +0 -55
- package/dist/components/toTopBtn/index.d.ts +0 -6
- package/dist/components/toTopBtn/index.js +0 -85
- package/dist/dto/AssetEntity/index.d.ts +0 -63
- package/dist/dto/AssetEntity/index.js +0 -211
- package/dist/dto/AssetEntity/interface.d.ts +0 -39
- package/dist/dto/AssetEntity/interface.js +0 -2
- package/dist/dto/AssetEntity/views/AssetAudio/index.d.ts +0 -9
- package/dist/dto/AssetEntity/views/AssetAudio/index.js +0 -39
- package/dist/dto/AssetEntity/views/AssetImage/index.d.ts +0 -10
- package/dist/dto/AssetEntity/views/AssetImage/index.js +0 -50
- package/dist/dto/AssetEntity/views/AssetObject/index.d.ts +0 -11
- package/dist/dto/AssetEntity/views/AssetObject/index.js +0 -70
- package/dist/dto/AssetEntity/views/AssetOther/index.d.ts +0 -11
- package/dist/dto/AssetEntity/views/AssetOther/index.js +0 -54
- package/dist/dto/AssetEntity/views/AssetScreenshot/index.d.ts +0 -10
- package/dist/dto/AssetEntity/views/AssetScreenshot/index.js +0 -50
- package/dist/dto/AssetEntity/views/AssetVideo/index.d.ts +0 -9
- package/dist/dto/AssetEntity/views/AssetVideo/index.js +0 -39
- package/dist/dto/AssetEntity/views/index.d.ts +0 -6
- package/dist/dto/AssetEntity/views/index.js +0 -16
- package/dist/dto/Collection/CollectionCreationEntity/index.d.ts +0 -45
- package/dist/dto/Collection/CollectionCreationEntity/index.js +0 -162
- package/dist/dto/Collection/CollectionCreationEntity/interface.d.ts +0 -24
- package/dist/dto/Collection/CollectionCreationEntity/interface.js +0 -2
- package/dist/dto/Collection/CollectionEntity/index.d.ts +0 -32
- package/dist/dto/Collection/CollectionEntity/index.js +0 -74
- package/dist/dto/Collection/CollectionEntity/interface.d.ts +0 -16
- package/dist/dto/Collection/CollectionEntity/interface.js +0 -2
- package/dist/dto/CreationEntity/index.d.ts +0 -49
- package/dist/dto/CreationEntity/index.js +0 -168
- package/dist/dto/CreationEntity/interface.d.ts +0 -30
- package/dist/dto/CreationEntity/interface.js +0 -2
- package/dist/dto/GalleryEntityV2/index.d.ts +0 -32
- package/dist/dto/GalleryEntityV2/index.js +0 -74
- package/dist/dto/GalleryEntityV2/interface.d.ts +0 -16
- package/dist/dto/GalleryEntityV2/interface.js +0 -2
- package/dist/dto/common/ItemType/data.d.ts +0 -3
- package/dist/dto/common/ItemType/data.js +0 -37
- package/dist/dto/common/ItemType/index.d.ts +0 -45
- package/dist/dto/common/ItemType/index.js +0 -42
- package/dist/dto/common/ItemViews/CreationAudio/index.d.ts +0 -9
- package/dist/dto/common/ItemViews/CreationAudio/index.js +0 -39
- package/dist/dto/common/ItemViews/CreationImage/index.d.ts +0 -10
- package/dist/dto/common/ItemViews/CreationImage/index.js +0 -50
- package/dist/dto/common/ItemViews/CreationObject/index.d.ts +0 -8
- package/dist/dto/common/ItemViews/CreationObject/index.js +0 -43
- package/dist/dto/common/ItemViews/CreationOther/index.d.ts +0 -9
- package/dist/dto/common/ItemViews/CreationOther/index.js +0 -39
- package/dist/dto/common/ItemViews/CreationVideo/index.d.ts +0 -9
- package/dist/dto/common/ItemViews/CreationVideo/index.js +0 -39
- package/dist/dto/common/ItemViews/index.d.ts +0 -5
- package/dist/dto/common/ItemViews/index.js +0 -21
- package/dist/dto/common/Media/Audio/index.d.ts +0 -13
- package/dist/dto/common/Media/Audio/index.js +0 -54
- package/dist/dto/common/Media/Image/index.d.ts +0 -13
- package/dist/dto/common/Media/Image/index.js +0 -62
- package/dist/dto/common/Media/Object/index.d.ts +0 -13
- package/dist/dto/common/Media/Object/index.js +0 -63
- package/dist/dto/common/Media/Other/index.d.ts +0 -13
- package/dist/dto/common/Media/Other/index.js +0 -82
- package/dist/dto/common/Media/Screenshot/index.d.ts +0 -13
- package/dist/dto/common/Media/Screenshot/index.js +0 -62
- package/dist/dto/common/Media/Urls/index.d.ts +0 -31
- package/dist/dto/common/Media/Urls/index.js +0 -130
- package/dist/dto/common/Media/Video/index.d.ts +0 -13
- package/dist/dto/common/Media/Video/index.js +0 -54
- package/dist/dto/common/Media/index.d.ts +0 -26
- package/dist/dto/common/Media/index.js +0 -40
- package/dist/dto/common/Media/interface.d.ts +0 -26
- package/dist/dto/common/Media/interface.js +0 -2
- package/dist/dto/index.d.ts +0 -8
- package/dist/dto/index.js +0 -33
- package/dist/entities/user/type.d.ts +0 -5
- package/dist/entities/user/type.js +0 -2
- package/dist/fonts/FontsInitializeLayout.d.ts +0 -6
- package/dist/fonts/FontsInitializeLayout.js +0 -67
- package/dist/fonts/index.d.ts +0 -3
- package/dist/fonts/index.js +0 -25
- package/dist/fonts/vars.d.ts +0 -1
- package/dist/fonts/vars.js +0 -6
- package/dist/hooks/apollo/index.d.ts +0 -5
- package/dist/hooks/apollo/index.js +0 -11
- package/dist/hooks/audio/useMultiAudio/index.d.ts +0 -2
- package/dist/hooks/audio/useMultiAudio/index.js +0 -56
- package/dist/hooks/extension/useExtension/index.d.ts +0 -7
- package/dist/hooks/extension/useExtension/index.js +0 -78
- package/dist/hooks/favorites/index.d.ts +0 -2
- package/dist/hooks/favorites/index.js +0 -18
- package/dist/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +0 -20
- package/dist/hooks/favorites/useGetFavoriteGallaryCreations/index.js +0 -194
- package/dist/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +0 -22
- package/dist/hooks/favorites/useGetUserFevoritesCreations/index.js +0 -270
- package/dist/hooks/galleries/index.d.ts +0 -1
- package/dist/hooks/galleries/index.js +0 -17
- package/dist/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +0 -17
- package/dist/hooks/galleries/useGetUserGalleriesCreations/index.js +0 -226
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/index.js +0 -21
- package/dist/hooks/likes/dynamic/useFindCollectionsAndLikes.js +0 -241
- package/dist/hooks/likes/dynamic/useFindCreationsAndLikes.js +0 -213
- package/dist/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +0 -13
- package/dist/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +0 -210
- package/dist/hooks/likes/dynamic/useGetCreationsAndLikes.js +0 -230
- package/dist/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +0 -240
- package/dist/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +0 -17
- package/dist/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +0 -50
- package/dist/hooks/likes/dynamic/useGetTableLikes.d.ts +0 -15
- package/dist/hooks/likes/dynamic/useGetTableLikes.js +0 -116
- package/dist/hooks/likes/index.d.ts +0 -19
- package/dist/hooks/likes/index.js +0 -177
- package/dist/hooks/likes/useGetLikesAsset.d.ts +0 -20
- package/dist/hooks/likes/useGetLikesAsset.js +0 -159
- package/dist/hooks/searchFiltersConnector/index.d.ts +0 -11
- package/dist/hooks/searchFiltersConnector/index.js +0 -195
- package/dist/hooks/useToGalleryAsset/index.d.ts +0 -18
- package/dist/hooks/useToGalleryAsset/index.js +0 -103
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -25
- package/dist/layouts/GlobalLayout.d.ts +0 -4
- package/dist/layouts/GlobalLayout.js +0 -48
- package/dist/layouts/base/LWithRegularHeader/index.d.ts +0 -3
- package/dist/layouts/base/LWithRegularHeader/index.js +0 -25
- package/dist/layouts/base/LWithRegularHeader/type.d.ts +0 -5
- package/dist/layouts/base/LWithRegularHeader/type.js +0 -2
- package/dist/layouts/base/LWithSearchHeader/index.d.ts +0 -3
- package/dist/layouts/base/LWithSearchHeader/index.js +0 -18
- package/dist/layouts/base/LWithSearchHeader/type.d.ts +0 -5
- package/dist/layouts/base/LWithSearchHeader/type.js +0 -2
- package/dist/layouts/base/LWithSimpleHeader/index.d.ts +0 -3
- package/dist/layouts/base/LWithSimpleHeader/index.js +0 -21
- package/dist/layouts/base/LWithSimpleHeader/type.d.ts +0 -5
- package/dist/layouts/base/LWithSimpleHeader/type.js +0 -2
- package/dist/layouts/base/LWithoutHeader/index.d.ts +0 -3
- package/dist/layouts/base/LWithoutHeader/index.js +0 -23
- package/dist/layouts/custom/accountLayout/index.d.ts +0 -3
- package/dist/layouts/custom/accountLayout/index.js +0 -23
- package/dist/layouts/custom/formsLayout/index.d.ts +0 -3
- package/dist/layouts/custom/formsLayout/index.js +0 -18
- package/dist/layouts/custom/mainLayout/index.d.ts +0 -3
- package/dist/layouts/custom/mainLayout/index.js +0 -22
- package/dist/layouts/custom/searchLayout/index.d.ts +0 -3
- package/dist/layouts/custom/searchLayout/index.js +0 -26
- package/dist/layouts/custom/simpleLayout/index.d.ts +0 -3
- package/dist/layouts/custom/simpleLayout/index.js +0 -22
- package/dist/layouts/custom/styles.d.ts +0 -3
- package/dist/layouts/custom/styles.js +0 -16
- package/dist/layouts/pageTransitionLayout.d.ts +0 -6
- package/dist/layouts/pageTransitionLayout.js +0 -24
- package/dist/layouts/pageWithLayout.d.ts +0 -9
- package/dist/layouts/pageWithLayout.js +0 -2
- package/dist/modules/index.d.ts +0 -4
- package/dist/modules/index.js +0 -20
- package/dist/modules/notifications/CreatorNotifications.d.ts +0 -2
- package/dist/modules/notifications/CreatorNotifications.js +0 -42
- package/dist/modules/notifications/index.d.ts +0 -22
- package/dist/modules/notifications/index.js +0 -6
- package/dist/modules/sessionScroll/globalTabs.d.ts +0 -12
- package/dist/modules/sessionScroll/globalTabs.js +0 -50
- package/dist/modules/sessionScroll/index.d.ts +0 -15
- package/dist/modules/sessionScroll/index.js +0 -77
- package/dist/modules/sessionScroll/type.d.ts +0 -7
- package/dist/modules/sessionScroll/type.js +0 -2
- package/dist/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +0 -12
- package/dist/modules/sessionScroll/useVirtuosoInitialScroll.js +0 -62
- package/dist/modules/user/auth/index.d.ts +0 -1
- package/dist/modules/user/auth/index.js +0 -17
- package/dist/modules/user/auth/useAuthVerification.d.ts +0 -1
- package/dist/modules/user/auth/useAuthVerification.js +0 -120
- package/dist/modules/user/auth/useSignIn.d.ts +0 -1
- package/dist/modules/user/auth/useSignIn.js +0 -21
- package/dist/modules/user/auth/useSignOut.d.ts +0 -1
- package/dist/modules/user/auth/useSignOut.js +0 -78
- package/dist/modules/user/index.d.ts +0 -3
- package/dist/modules/user/index.js +0 -19
- package/dist/modules/user/profileData/index.d.ts +0 -1
- package/dist/modules/user/profileData/index.js +0 -17
- package/dist/modules/user/profileData/profileDataInitialization.d.ts +0 -2
- package/dist/modules/user/profileData/profileDataInitialization.js +0 -59
- package/dist/modules/user/store.d.ts +0 -33
- package/dist/modules/user/store.js +0 -78
- package/dist/modules/virtuoso/VirtuosoPageBuilder.d.ts +0 -19
- package/dist/modules/virtuoso/VirtuosoPageBuilder.js +0 -146
- package/dist/modules/virtuoso/VirtuosoToTopBtn.d.ts +0 -10
- package/dist/modules/virtuoso/VirtuosoToTopBtn.js +0 -43
- package/dist/modules/virtuoso/index.d.ts +0 -5
- package/dist/modules/virtuoso/index.js +0 -21
- package/dist/modules/virtuoso/types.d.ts +0 -7
- package/dist/modules/virtuoso/types.js +0 -2
- package/dist/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +0 -3
- package/dist/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +0 -27
- package/dist/modules/virtuoso/useVirtuosoData.d.ts +0 -11
- package/dist/modules/virtuoso/useVirtuosoData.js +0 -50
- package/dist/pages/index.d.ts +0 -2
- package/dist/pages/index.js +0 -16
- package/dist/store/index.d.ts +0 -11
- package/dist/store/index.js +0 -28
- package/dist/store/media/index.d.ts +0 -1
- package/dist/store/media/index.js +0 -69
- package/dist/store/media/types.d.ts +0 -11
- package/dist/store/media/types.js +0 -2
- package/dist/store/ui/index.d.ts +0 -2
- package/dist/store/ui/index.js +0 -167
- package/dist/store/ui/types.d.ts +0 -34
- package/dist/store/ui/types.js +0 -2
- package/dist/store/ui/utils.d.ts +0 -7
- package/dist/store/ui/utils.js +0 -32
- package/dist/styles/ScreenWidth.d.ts +0 -22
- package/dist/styles/ScreenWidth.js +0 -26
- package/dist/styles/animations/index.d.ts +0 -2
- package/dist/styles/animations/index.js +0 -11
- package/dist/styles/colors/index.d.ts +0 -1
- package/dist/styles/colors/index.js +0 -38
- package/dist/styles/globalStyles.d.ts +0 -3
- package/dist/styles/globalStyles.js +0 -23
- package/dist/styles/index.d.ts +0 -5
- package/dist/styles/index.js +0 -26
- package/dist/styles/mixins/boxShadow.d.ts +0 -2
- package/dist/styles/mixins/boxShadow.js +0 -10
- package/dist/styles/mixins/boxTransform.d.ts +0 -2
- package/dist/styles/mixins/boxTransform.js +0 -10
- package/dist/styles/mixins/index.d.ts +0 -3
- package/dist/styles/mixins/index.js +0 -25
- package/dist/styles/mixins/z-indexes.d.ts +0 -10
- package/dist/styles/mixins/z-indexes.js +0 -13
- package/dist/styles/typography/index.d.ts +0 -1
- package/dist/styles/typography/index.js +0 -12
- package/dist/system/ActiveLink/index.d.ts +0 -9
- package/dist/system/ActiveLink/index.js +0 -71
- package/dist/system/Alert/index.d.ts +0 -3
- package/dist/system/Alert/index.js +0 -20
- package/dist/system/Alert/type.d.ts +0 -2
- package/dist/system/Alert/type.js +0 -8
- package/dist/system/BasicOverlay/index.d.ts +0 -3
- package/dist/system/BasicOverlay/index.js +0 -20
- package/dist/system/Buttons/IconButton/index.d.ts +0 -2
- package/dist/system/Buttons/IconButton/index.js +0 -7
- package/dist/system/Buttons/IconWithButton/index.d.ts +0 -2
- package/dist/system/Buttons/IconWithButton/index.js +0 -7
- package/dist/system/Buttons/IconWithButton/themes.d.ts +0 -0
- package/dist/system/Buttons/IconWithButton/themes.js +0 -0
- package/dist/system/Buttons/MainButton/index.d.ts +0 -2
- package/dist/system/Buttons/MainButton/index.js +0 -7
- package/dist/system/Buttons/MainButton/themes.d.ts +0 -0
- package/dist/system/Buttons/MainButton/themes.js +0 -0
- package/dist/system/Buttons/SecondaryButton/index.d.ts +0 -2
- package/dist/system/Buttons/SecondaryButton/index.js +0 -7
- package/dist/system/Buttons/index.d.ts +0 -4
- package/dist/system/Buttons/index.js +0 -14
- package/dist/system/Cards/CardCheckbox/index.d.ts +0 -6
- package/dist/system/Cards/CardCheckbox/index.js +0 -50
- package/dist/system/Cards/CardContent/CardCategory/index.d.ts +0 -6
- package/dist/system/Cards/CardContent/CardCategory/index.js +0 -27
- package/dist/system/Cards/CardContent/CardLikes/index.d.ts +0 -6
- package/dist/system/Cards/CardContent/CardLikes/index.js +0 -32
- package/dist/system/Cards/CardContent/CardShowMore/index.d.ts +0 -7
- package/dist/system/Cards/CardContent/CardShowMore/index.js +0 -40
- package/dist/system/Cards/CardContent/index.d.ts +0 -17
- package/dist/system/Cards/CardContent/index.js +0 -50
- package/dist/system/Cards/CardHeadIcons/index.d.ts +0 -15
- package/dist/system/Cards/CardHeadIcons/index.js +0 -134
- package/dist/system/Cards/CardMedia/CardAudio/index.d.ts +0 -8
- package/dist/system/Cards/CardMedia/CardAudio/index.js +0 -93
- package/dist/system/Cards/CardMedia/CardImage/index.d.ts +0 -7
- package/dist/system/Cards/CardMedia/CardImage/index.js +0 -44
- package/dist/system/Cards/CardMedia/CardVideo/index.d.ts +0 -7
- package/dist/system/Cards/CardMedia/CardVideo/index.js +0 -83
- package/dist/system/Cards/CardMedia/index.d.ts +0 -3
- package/dist/system/Cards/CardMedia/index.js +0 -12
- package/dist/system/Cards/CardRank/index.d.ts +0 -5
- package/dist/system/Cards/CardRank/index.js +0 -33
- package/dist/system/Cards/CardsGrid/index.d.ts +0 -13
- package/dist/system/Cards/CardsGrid/index.js +0 -80
- package/dist/system/Cards/HideLink/index.d.ts +0 -10
- package/dist/system/Cards/HideLink/index.js +0 -27
- package/dist/system/Cards/MultiMediaCard/index.d.ts +0 -10
- package/dist/system/Cards/MultiMediaCard/index.js +0 -78
- package/dist/system/Cards/RegularCard/index.d.ts +0 -22
- package/dist/system/Cards/RegularCard/index.js +0 -53
- package/dist/system/Cards/Styles/Content.d.ts +0 -3
- package/dist/system/Cards/Styles/Content.js +0 -16
- package/dist/system/Cards/Styles/Head.d.ts +0 -3
- package/dist/system/Cards/Styles/Head.js +0 -16
- package/dist/system/Cards/Styles/Headicons.d.ts +0 -5
- package/dist/system/Cards/Styles/Headicons.js +0 -19
- package/dist/system/Cards/Styles/Image.d.ts +0 -5
- package/dist/system/Cards/Styles/Image.js +0 -15
- package/dist/system/Cards/Styles/Likes.d.ts +0 -5
- package/dist/system/Cards/Styles/Likes.js +0 -17
- package/dist/system/Cards/Styles/MultiHead.d.ts +0 -3
- package/dist/system/Cards/Styles/MultiHead.js +0 -16
- package/dist/system/Cards/Styles/Video.d.ts +0 -3
- package/dist/system/Cards/Styles/Video.js +0 -13
- package/dist/system/Cards/Styles/index.d.ts +0 -7
- package/dist/system/Cards/Styles/index.js +0 -20
- package/dist/system/Cards/index.d.ts +0 -14
- package/dist/system/Cards/index.js +0 -46
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +0 -5
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +0 -100
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +0 -5
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +0 -26
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +0 -6
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +0 -38
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.d.ts +0 -22
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.js +0 -38
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +0 -3
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +0 -26
- package/dist/system/CardsHolderWithSkeleton/index.d.ts +0 -30
- package/dist/system/CardsHolderWithSkeleton/index.js +0 -19
- package/dist/system/DropDown/DropDown.test.d.ts +0 -1
- package/dist/system/DropDown/DropDown.test.js +0 -42
- package/dist/system/DropDown/index.d.ts +0 -8
- package/dist/system/DropDown/index.js +0 -63
- package/dist/system/Filters/helpers.d.ts +0 -7
- package/dist/system/Filters/helpers.js +0 -8
- package/dist/system/Filters/index.d.ts +0 -2
- package/dist/system/Filters/index.js +0 -18
- package/dist/system/Filters/type.d.ts +0 -16
- package/dist/system/Filters/type.js +0 -11
- package/dist/system/Flex/index.d.ts +0 -0
- package/dist/system/Flex/index.js +0 -0
- package/dist/system/Forms/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/system/Forms/Checkbox/Checkbox.test.js +0 -90
- package/dist/system/Forms/Checkbox/index.d.ts +0 -22
- package/dist/system/Forms/Checkbox/index.js +0 -71
- package/dist/system/Forms/DatePicker/index.d.ts +0 -16
- package/dist/system/Forms/DatePicker/index.js +0 -43
- package/dist/system/Forms/ErrorLabel/ErrorLabel.test.d.ts +0 -1
- package/dist/system/Forms/ErrorLabel/ErrorLabel.test.js +0 -27
- package/dist/system/Forms/ErrorLabel/index.d.ts +0 -7
- package/dist/system/Forms/ErrorLabel/index.js +0 -20
- package/dist/system/Forms/Input/Input.test.d.ts +0 -1
- package/dist/system/Forms/Input/Input.test.js +0 -57
- package/dist/system/Forms/Input/index.d.ts +0 -16
- package/dist/system/Forms/Input/index.js +0 -45
- package/dist/system/Forms/Input/type.d.ts +0 -5
- package/dist/system/Forms/Input/type.js +0 -2
- package/dist/system/Forms/Messages/index.d.ts +0 -67
- package/dist/system/Forms/Messages/index.js +0 -69
- package/dist/system/Forms/RadioInput/index.d.ts +0 -13
- package/dist/system/Forms/RadioInput/index.js +0 -42
- package/dist/system/Forms/Selects/DesktopSelect/index.d.ts +0 -12
- package/dist/system/Forms/Selects/DesktopSelect/index.js +0 -151
- package/dist/system/Forms/Selects/DesktopSelect/type.d.ts +0 -5
- package/dist/system/Forms/Selects/DesktopSelect/type.js +0 -2
- package/dist/system/Forms/Selects/MobileSelect/index.d.ts +0 -14
- package/dist/system/Forms/Selects/MobileSelect/index.js +0 -55
- package/dist/system/Forms/TextArea/index.d.ts +0 -14
- package/dist/system/Forms/TextArea/index.js +0 -44
- package/dist/system/Forms/index.d.ts +0 -6
- package/dist/system/Forms/index.js +0 -16
- package/dist/system/Img/ExternalImage/index.d.ts +0 -6
- package/dist/system/Img/ExternalImage/index.js +0 -53
- package/dist/system/Img/ImageInterceptor/ImageInterceptor.test.d.ts +0 -1
- package/dist/system/Img/ImageInterceptor/ImageInterceptor.test.js +0 -53
- package/dist/system/Img/ImageInterceptor/index.d.ts +0 -17
- package/dist/system/Img/ImageInterceptor/index.js +0 -56
- package/dist/system/Img/Profilepic/index.d.ts +0 -11
- package/dist/system/Img/Profilepic/index.js +0 -39
- package/dist/system/Img/Userpic/UserPic.test.d.ts +0 -2
- package/dist/system/Img/Userpic/UserPic.test.js +0 -69
- package/dist/system/Img/Userpic/index.d.ts +0 -9
- package/dist/system/Img/Userpic/index.js +0 -98
- package/dist/system/Img/index.d.ts +0 -4
- package/dist/system/Img/index.js +0 -20
- package/dist/system/Labels/ExperienceLabel/ExperienceLabel.test.d.ts +0 -1
- package/dist/system/Labels/ExperienceLabel/ExperienceLabel.test.js +0 -64
- package/dist/system/Labels/ExperienceLabel/index.d.ts +0 -7
- package/dist/system/Labels/ExperienceLabel/index.js +0 -42
- package/dist/system/Labels/InviteLabel/InviteLabel.test.d.ts +0 -1
- package/dist/system/Labels/InviteLabel/InviteLabel.test.js +0 -56
- package/dist/system/Labels/InviteLabel/index.d.ts +0 -7
- package/dist/system/Labels/InviteLabel/index.js +0 -38
- package/dist/system/Labels/SkeletonLabel/index.d.ts +0 -2
- package/dist/system/Labels/SkeletonLabel/index.js +0 -7
- package/dist/system/Modals/Modal/Modal.test.d.ts +0 -1
- package/dist/system/Modals/Modal/Modal.test.js +0 -36
- package/dist/system/Modals/Modal/index.d.ts +0 -3
- package/dist/system/Modals/Modal/index.js +0 -31
- package/dist/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +0 -2
- package/dist/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +0 -48
- package/dist/system/Modals/ModalSidebar/ModalSidebar.test.d.ts +0 -1
- package/dist/system/Modals/ModalSidebar/ModalSidebar.test.js +0 -35
- package/dist/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +0 -5
- package/dist/system/Modals/ModalSidebar/ModalSidebarPortal.js +0 -19
- package/dist/system/Modals/ModalSidebar/index.d.ts +0 -4
- package/dist/system/Modals/ModalSidebar/index.js +0 -31
- package/dist/system/Modals/index.d.ts +0 -2
- package/dist/system/Modals/index.js +0 -10
- package/dist/system/Overlay/Overlay.test.d.ts +0 -1
- package/dist/system/Overlay/Overlay.test.js +0 -47
- package/dist/system/Overlay/index.d.ts +0 -3
- package/dist/system/Overlay/index.js +0 -28
- package/dist/system/PageLoader/index.d.ts +0 -2
- package/dist/system/PageLoader/index.js +0 -7
- package/dist/system/Palete/index.d.ts +0 -2
- package/dist/system/Palete/index.js +0 -7
- package/dist/system/ShareIconResize.d.ts +0 -2
- package/dist/system/ShareIconResize.js +0 -26
- package/dist/system/Tabs/TabNavLink/TabNavLink.test.d.ts +0 -2
- package/dist/system/Tabs/TabNavLink/TabNavLink.test.js +0 -40
- package/dist/system/Tabs/TabNavLink/index.d.ts +0 -12
- package/dist/system/Tabs/TabNavLink/index.js +0 -26
- package/dist/system/Tabs/TabsNav/TabsNav.test.d.ts +0 -2
- package/dist/system/Tabs/TabsNav/TabsNav.test.js +0 -43
- package/dist/system/Tabs/TabsNav/index.d.ts +0 -10
- package/dist/system/Tabs/TabsNav/index.js +0 -28
- package/dist/system/Tabs/TabsNav/type.d.ts +0 -6
- package/dist/system/Tabs/TabsNav/type.js +0 -2
- package/dist/system/Tabs/TabsPanel/TabsPanel.test.d.ts +0 -2
- package/dist/system/Tabs/TabsPanel/TabsPanel.test.js +0 -37
- package/dist/system/Tabs/TabsPanel/index.d.ts +0 -7
- package/dist/system/Tabs/TabsPanel/index.js +0 -21
- package/dist/system/Tabs/index.d.ts +0 -4
- package/dist/system/Tabs/index.js +0 -27
- package/dist/system/Text/index.d.ts +0 -0
- package/dist/system/Text/index.js +0 -0
- package/dist/system/index.d.ts +0 -21
- package/dist/system/index.js +0 -49
- package/dist/system/theme.d.ts +0 -1
- package/dist/system/theme.js +0 -7
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/utils/3d.d.ts +0 -5
- package/dist/utils/3d.js +0 -45
- package/dist/utils/adaptive/check4k.d.ts +0 -5
- package/dist/utils/adaptive/check4k.js +0 -17
- package/dist/utils/adaptive/index.d.ts +0 -2
- package/dist/utils/adaptive/index.js +0 -18
- package/dist/utils/adaptive/scale.d.ts +0 -9
- package/dist/utils/adaptive/scale.js +0 -19
- package/dist/utils/auth/index.d.ts +0 -1
- package/dist/utils/auth/index.js +0 -11
- package/dist/utils/copyBtn/index.d.ts +0 -5
- package/dist/utils/copyBtn/index.js +0 -107
- package/dist/utils/env/index.d.ts +0 -5
- package/dist/utils/env/index.js +0 -34
- package/dist/utils/env/isProd/index.d.ts +0 -3
- package/dist/utils/env/isProd/index.js +0 -9
- package/dist/utils/env/type.d.ts +0 -5
- package/dist/utils/env/type.js +0 -9
- package/dist/utils/extractItemIds/index.d.ts +0 -2
- package/dist/utils/extractItemIds/index.js +0 -12
- package/dist/utils/getDimensionsImage.d.ts +0 -4
- package/dist/utils/getDimensionsImage.js +0 -84
- package/dist/utils/getPageSizeAssets.d.ts +0 -5
- package/dist/utils/getPageSizeAssets.js +0 -19
- package/dist/utils/healzHandler/index.d.ts +0 -9
- package/dist/utils/healzHandler/index.js +0 -10
- package/dist/utils/imageProportionsSize/index.d.ts +0 -5
- package/dist/utils/imageProportionsSize/index.js +0 -24
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/index.js +0 -23
- package/dist/utils/screen/index.d.ts +0 -18
- package/dist/utils/screen/index.js +0 -87
- package/dist/utils/ssrFunctions/index.d.ts +0 -11
- package/dist/utils/ssrFunctions/index.js +0 -41
- package/dist/utils/ui/index.d.ts +0 -8
- package/dist/utils/ui/index.js +0 -8
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isExternalMediaObject = exports.isExternalMediaAudio = exports.isExternalMediaVideo = exports.isExternalMediaImage = exports.getAssetObjectPreviews = exports.getAssetObjectOrigins = exports.getAssetVideoPreviews = exports.getAssetAudioOrigins = exports.getAssetVideoOrigins = exports.getGalleryBannerImage = exports.getAssetImage = exports.getUserPicImage = exports.mediaSizes = void 0;
|
|
7
|
-
var process_1 = __importDefault(require("process"));
|
|
8
|
-
var core_1 = require("@ludo.ninja/core");
|
|
9
|
-
var utils_1 = require("@ludo.ninja/utils");
|
|
10
|
-
var env_1 = require("@/utils/env");
|
|
11
|
-
var mediaType;
|
|
12
|
-
(function (mediaType) {
|
|
13
|
-
mediaType["ASSETS"] = "assets/";
|
|
14
|
-
mediaType["USER_PICKS"] = "userpics/";
|
|
15
|
-
mediaType["GALLERY_BANNERS"] = "gallery-banners/";
|
|
16
|
-
})(mediaType || (mediaType = {}));
|
|
17
|
-
var mediaFoldersType;
|
|
18
|
-
(function (mediaFoldersType) {
|
|
19
|
-
mediaFoldersType["IMAGES"] = "images/";
|
|
20
|
-
mediaFoldersType["VIDEOS"] = "videos/";
|
|
21
|
-
mediaFoldersType["OBJECT"] = "models/";
|
|
22
|
-
})(mediaFoldersType || (mediaFoldersType = {}));
|
|
23
|
-
var mediaObjectsFoldersType;
|
|
24
|
-
(function (mediaObjectsFoldersType) {
|
|
25
|
-
mediaObjectsFoldersType["ORIGINS"] = "origins/";
|
|
26
|
-
mediaObjectsFoldersType["PREVIEWS"] = "previews/";
|
|
27
|
-
})(mediaObjectsFoldersType || (mediaObjectsFoldersType = {}));
|
|
28
|
-
var mediaVideosFoldersType;
|
|
29
|
-
(function (mediaVideosFoldersType) {
|
|
30
|
-
mediaVideosFoldersType["ORIGINS"] = "origins/";
|
|
31
|
-
mediaVideosFoldersType["PREVIEWS"] = "previews/";
|
|
32
|
-
})(mediaVideosFoldersType || (mediaVideosFoldersType = {}));
|
|
33
|
-
var mediaSizes;
|
|
34
|
-
(function (mediaSizes) {
|
|
35
|
-
mediaSizes["small"] = "252";
|
|
36
|
-
mediaSizes["regular"] = "510";
|
|
37
|
-
})(mediaSizes || (exports.mediaSizes = mediaSizes = {}));
|
|
38
|
-
var getUserPicImage = function (userPic, fallbackImage, dimensions) {
|
|
39
|
-
if (!userPic) {
|
|
40
|
-
return fallbackImage;
|
|
41
|
-
}
|
|
42
|
-
return "".concat((0, core_1.getMediaDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN }), "/").concat(mediaType.USER_PICKS).concat(userPic).concat(getDimensions(dimensions));
|
|
43
|
-
};
|
|
44
|
-
exports.getUserPicImage = getUserPicImage;
|
|
45
|
-
var getDimensions = function (dimensions) {
|
|
46
|
-
return dimensions ? "?d=".concat(dimensions.w, "x").concat(dimensions.h) : '';
|
|
47
|
-
};
|
|
48
|
-
var getAssetImage = function (media, fallbackImage, dimension) {
|
|
49
|
-
if (!media) {
|
|
50
|
-
return fallbackImage;
|
|
51
|
-
}
|
|
52
|
-
return "https://".concat(dimension, ".").concat(process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN, "/assets/images/").concat(media);
|
|
53
|
-
};
|
|
54
|
-
exports.getAssetImage = getAssetImage;
|
|
55
|
-
var getGalleryBannerImage = function (galleryId, fallbackImage, dimensions) {
|
|
56
|
-
if (!galleryId) {
|
|
57
|
-
return fallbackImage;
|
|
58
|
-
}
|
|
59
|
-
return "".concat((0, core_1.getMediaDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN }), "/").concat(mediaType.GALLERY_BANNERS).concat(galleryId).concat(getDimensions(dimensions));
|
|
60
|
-
};
|
|
61
|
-
exports.getGalleryBannerImage = getGalleryBannerImage;
|
|
62
|
-
var getAssetVideoOrigins = function (media, fallbackImage) {
|
|
63
|
-
if (!media) {
|
|
64
|
-
return fallbackImage;
|
|
65
|
-
}
|
|
66
|
-
return "".concat((0, env_1.getVideoENVDomain)(), "/").concat(media);
|
|
67
|
-
};
|
|
68
|
-
exports.getAssetVideoOrigins = getAssetVideoOrigins;
|
|
69
|
-
var getAssetAudioOrigins = function (media, fallbackImage) {
|
|
70
|
-
if (!media) {
|
|
71
|
-
return fallbackImage;
|
|
72
|
-
}
|
|
73
|
-
return "".concat((0, env_1.getAudioENVDomain)(), "/").concat(media);
|
|
74
|
-
};
|
|
75
|
-
exports.getAssetAudioOrigins = getAssetAudioOrigins;
|
|
76
|
-
var getAssetVideoPreviews = function (assetId, fallbackImage, dimensions) {
|
|
77
|
-
if (!assetId) {
|
|
78
|
-
return fallbackImage;
|
|
79
|
-
}
|
|
80
|
-
return "".concat((0, core_1.getMediaDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN }), "/").concat(mediaType.ASSETS).concat(mediaFoldersType.VIDEOS).concat(mediaVideosFoldersType.PREVIEWS).concat(assetId).concat(getDimensions(dimensions));
|
|
81
|
-
};
|
|
82
|
-
exports.getAssetVideoPreviews = getAssetVideoPreviews;
|
|
83
|
-
var getAssetObjectOrigins = function (assetId, fallbackImage, dimensions) {
|
|
84
|
-
if (!assetId) {
|
|
85
|
-
return fallbackImage;
|
|
86
|
-
}
|
|
87
|
-
return "".concat((0, core_1.getMediaDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN }), "/").concat(mediaType.ASSETS).concat(mediaFoldersType.OBJECT).concat(mediaObjectsFoldersType.ORIGINS).concat(assetId).concat(getDimensions(dimensions));
|
|
88
|
-
};
|
|
89
|
-
exports.getAssetObjectOrigins = getAssetObjectOrigins;
|
|
90
|
-
var getAssetObjectPreviews = function (assetId, fallbackImage, dimensions) {
|
|
91
|
-
if (!assetId) {
|
|
92
|
-
return fallbackImage;
|
|
93
|
-
}
|
|
94
|
-
return "".concat((0, core_1.getMediaDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN }), "/").concat(mediaType.ASSETS).concat(mediaFoldersType.OBJECT).concat(mediaObjectsFoldersType.PREVIEWS).concat(assetId).concat(getDimensions(dimensions));
|
|
95
|
-
};
|
|
96
|
-
exports.getAssetObjectPreviews = getAssetObjectPreviews;
|
|
97
|
-
var isExternalMediaImage = function (media, mediaSize) {
|
|
98
|
-
if (media == null || !media.length)
|
|
99
|
-
return '/noContent/noContent.svg';
|
|
100
|
-
if (media.includes('base64'))
|
|
101
|
-
return media;
|
|
102
|
-
if (media.includes('https' || 'http'))
|
|
103
|
-
return (0, utils_1.checkGltfUrl)(media);
|
|
104
|
-
return (0, exports.getAssetImage)(media, '/noContent/noContent.svg', mediaSize);
|
|
105
|
-
};
|
|
106
|
-
exports.isExternalMediaImage = isExternalMediaImage;
|
|
107
|
-
var isExternalMediaVideo = function (media) {
|
|
108
|
-
if (media == null)
|
|
109
|
-
return '/noContent/noContent.svg';
|
|
110
|
-
if (media.includes('https' || 'http'))
|
|
111
|
-
return (0, utils_1.checkGltfUrl)(media);
|
|
112
|
-
return (0, exports.getAssetVideoOrigins)(media, '/noContent/noContent.svg');
|
|
113
|
-
};
|
|
114
|
-
exports.isExternalMediaVideo = isExternalMediaVideo;
|
|
115
|
-
var isExternalMediaAudio = function (media) {
|
|
116
|
-
if (media == null)
|
|
117
|
-
return '/noContent/noContentAudio.svg';
|
|
118
|
-
if (media.includes('https' || 'http'))
|
|
119
|
-
return (0, utils_1.checkGltfUrl)(media);
|
|
120
|
-
return (0, exports.getAssetAudioOrigins)(media, '/noContent/noContentAudio.svg');
|
|
121
|
-
};
|
|
122
|
-
exports.isExternalMediaAudio = isExternalMediaAudio;
|
|
123
|
-
var isExternalMediaObject = function (media) {
|
|
124
|
-
if (media == null)
|
|
125
|
-
return '/noContent/noContentObject.svg';
|
|
126
|
-
if (media.includes('https' || 'http'))
|
|
127
|
-
return (0, utils_1.checkGltfUrl)(media);
|
|
128
|
-
return (0, exports.getAssetObjectOrigins)(media, '/noContent/noContentObject.svg');
|
|
129
|
-
};
|
|
130
|
-
exports.isExternalMediaObject = isExternalMediaObject;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import Media from '@/dto/common/Media';
|
|
3
|
-
import { BasicMediaType } from '@/dto/common/Media/interface';
|
|
4
|
-
declare class Video extends Media {
|
|
5
|
-
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
6
|
-
checkOwnType(): boolean;
|
|
7
|
-
getMediaUrl(): string;
|
|
8
|
-
displaySingleMedia(): JSX.Element;
|
|
9
|
-
displayMultipleMedia(): JSX.Element;
|
|
10
|
-
displayMiniature(): JSX.Element;
|
|
11
|
-
displayLinkedMedia(): JSX.Element;
|
|
12
|
-
}
|
|
13
|
-
export default Video;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
// helpers
|
|
22
|
-
var core_1 = require("@ludo.ninja/core");
|
|
23
|
-
var Media_1 = __importDefault(require("@/dto/common/Media"));
|
|
24
|
-
var Video = /** @class */ (function (_super) {
|
|
25
|
-
__extends(Video, _super);
|
|
26
|
-
function Video(_a) {
|
|
27
|
-
var media = _a.media, mimeType = _a.mimeType, previewUrl = _a.previewUrl, nsfw = _a.nsfw, alt = _a.alt, originalMime = _a.originalMime;
|
|
28
|
-
return _super.call(this, { nsfw: nsfw, previewUrl: previewUrl, media: media, mimeType: mimeType, alt: alt, originalMime: originalMime }) || this;
|
|
29
|
-
}
|
|
30
|
-
Video.prototype.checkOwnType = function () {
|
|
31
|
-
return (0, core_1.isVideo)({
|
|
32
|
-
media: this.getMedia(),
|
|
33
|
-
mimeType: this.getMimeType(),
|
|
34
|
-
originalMimeType: this.getOriginalMime(),
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
Video.prototype.getMediaUrl = function () {
|
|
38
|
-
return 'path to custom video';
|
|
39
|
-
};
|
|
40
|
-
Video.prototype.displaySingleMedia = function () {
|
|
41
|
-
return React.createElement("div", null, "its video");
|
|
42
|
-
};
|
|
43
|
-
Video.prototype.displayMultipleMedia = function () {
|
|
44
|
-
return React.createElement("div", null, "its multiple video");
|
|
45
|
-
};
|
|
46
|
-
Video.prototype.displayMiniature = function () {
|
|
47
|
-
return React.createElement("div", null, "its miniature video");
|
|
48
|
-
};
|
|
49
|
-
Video.prototype.displayLinkedMedia = function () {
|
|
50
|
-
return this.displaySingleMedia();
|
|
51
|
-
};
|
|
52
|
-
return Video;
|
|
53
|
-
}(Media_1.default));
|
|
54
|
-
exports.default = Video;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BasicMediaType, IMedia } from '@/dto/common/Media/interface';
|
|
3
|
-
declare abstract class Media implements IMedia {
|
|
4
|
-
protected readonly media: any;
|
|
5
|
-
protected readonly originalUrl: any;
|
|
6
|
-
private readonly mimeType;
|
|
7
|
-
private readonly previewUrl;
|
|
8
|
-
private readonly nsfw;
|
|
9
|
-
private readonly alt;
|
|
10
|
-
private readonly originalMime;
|
|
11
|
-
protected constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
12
|
-
getMedia(): null | string;
|
|
13
|
-
getMimeType(): null | string;
|
|
14
|
-
getAlt(): string;
|
|
15
|
-
getOriginalUrl(): null | string | undefined;
|
|
16
|
-
getOriginalMime(): string | null;
|
|
17
|
-
getNsfw(): number | null;
|
|
18
|
-
getPreviewUrl(): null | string[];
|
|
19
|
-
abstract checkOwnType(): boolean;
|
|
20
|
-
abstract getMediaUrl(isExternalImage?: boolean): string;
|
|
21
|
-
abstract displaySingleMedia(): JSX.Element;
|
|
22
|
-
abstract displayLinkedMedia(): JSX.Element;
|
|
23
|
-
abstract displayMultipleMedia(): JSX.Element;
|
|
24
|
-
abstract displayMiniature(): JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
export default Media;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// interface
|
|
4
|
-
var utils_1 = require("@ludo.ninja/utils");
|
|
5
|
-
var Media = /** @class */ (function () {
|
|
6
|
-
function Media(_a) {
|
|
7
|
-
var media = _a.media, mimeType = _a.mimeType, previewUrl = _a.previewUrl, nsfw = _a.nsfw, originalUrl = _a.originalUrl, alt = _a.alt, originalMime = _a.originalMime;
|
|
8
|
-
this.media = media;
|
|
9
|
-
this.mimeType = mimeType;
|
|
10
|
-
this.previewUrl = previewUrl;
|
|
11
|
-
this.originalUrl = originalUrl;
|
|
12
|
-
this.nsfw = nsfw;
|
|
13
|
-
this.originalUrl = originalUrl;
|
|
14
|
-
this.alt = alt;
|
|
15
|
-
this.originalMime = originalMime;
|
|
16
|
-
}
|
|
17
|
-
Media.prototype.getMedia = function () {
|
|
18
|
-
return (0, utils_1.checkGltfUrl)(this.media || '');
|
|
19
|
-
};
|
|
20
|
-
Media.prototype.getMimeType = function () {
|
|
21
|
-
return this.mimeType;
|
|
22
|
-
};
|
|
23
|
-
Media.prototype.getAlt = function () {
|
|
24
|
-
return this.alt;
|
|
25
|
-
};
|
|
26
|
-
Media.prototype.getOriginalUrl = function () {
|
|
27
|
-
return this.originalUrl;
|
|
28
|
-
};
|
|
29
|
-
Media.prototype.getOriginalMime = function () {
|
|
30
|
-
return this.originalMime;
|
|
31
|
-
};
|
|
32
|
-
Media.prototype.getNsfw = function () {
|
|
33
|
-
return this.nsfw;
|
|
34
|
-
};
|
|
35
|
-
Media.prototype.getPreviewUrl = function () {
|
|
36
|
-
return this.previewUrl;
|
|
37
|
-
};
|
|
38
|
-
return Media;
|
|
39
|
-
}());
|
|
40
|
-
exports.default = Media;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import ICreationEntity from '@/dto/CreationEntity/interface';
|
|
3
|
-
export interface IMedia {
|
|
4
|
-
getMedia(): null | string;
|
|
5
|
-
getMimeType(): null | string;
|
|
6
|
-
getPreviewUrl(): null | string[];
|
|
7
|
-
getOriginalUrl(): null | string | undefined;
|
|
8
|
-
getNsfw(): number | null;
|
|
9
|
-
getAlt(): string;
|
|
10
|
-
getOriginalMime(): null | string;
|
|
11
|
-
getMediaUrl(isExternalImage?: boolean): string;
|
|
12
|
-
checkOwnType(): boolean;
|
|
13
|
-
displaySingleMedia(arg?: ICreationEntity): JSX.Element;
|
|
14
|
-
displayLinkedMedia(arg?: ICreationEntity): JSX.Element;
|
|
15
|
-
displayMultipleMedia(arg?: ICreationEntity): JSX.Element;
|
|
16
|
-
displayMiniature(arg?: ICreationEntity): JSX.Element;
|
|
17
|
-
}
|
|
18
|
-
export type BasicMediaType = {
|
|
19
|
-
media: null | string;
|
|
20
|
-
mimeType: null | string;
|
|
21
|
-
nsfw: number | null;
|
|
22
|
-
previewUrl: string[] | null;
|
|
23
|
-
originalUrl?: string | null;
|
|
24
|
-
alt: string;
|
|
25
|
-
originalMime: null | string;
|
|
26
|
-
};
|
package/dist/dto/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as AssetEntity } from './AssetEntity';
|
|
2
|
-
export { default as CollectionCreationEntity } from './Collection/CollectionCreationEntity';
|
|
3
|
-
export { default as CollectionEntity } from './Collection/CollectionEntity';
|
|
4
|
-
export * from './common/ItemType';
|
|
5
|
-
export * from './common/ItemViews';
|
|
6
|
-
export * from './common/Media';
|
|
7
|
-
export { default as CreationEntity } from './CreationEntity';
|
|
8
|
-
export { default as GalleryEntityV2 } from './GalleryEntityV2';
|
package/dist/dto/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.GalleryEntityV2 = exports.CreationEntity = exports.CollectionEntity = exports.CollectionCreationEntity = exports.AssetEntity = void 0;
|
|
21
|
-
var AssetEntity_1 = require("./AssetEntity");
|
|
22
|
-
Object.defineProperty(exports, "AssetEntity", { enumerable: true, get: function () { return __importDefault(AssetEntity_1).default; } });
|
|
23
|
-
var CollectionCreationEntity_1 = require("./Collection/CollectionCreationEntity");
|
|
24
|
-
Object.defineProperty(exports, "CollectionCreationEntity", { enumerable: true, get: function () { return __importDefault(CollectionCreationEntity_1).default; } });
|
|
25
|
-
var CollectionEntity_1 = require("./Collection/CollectionEntity");
|
|
26
|
-
Object.defineProperty(exports, "CollectionEntity", { enumerable: true, get: function () { return __importDefault(CollectionEntity_1).default; } });
|
|
27
|
-
__exportStar(require("./common/ItemType"), exports);
|
|
28
|
-
__exportStar(require("./common/ItemViews"), exports);
|
|
29
|
-
__exportStar(require("./common/Media"), exports);
|
|
30
|
-
var CreationEntity_1 = require("./CreationEntity");
|
|
31
|
-
Object.defineProperty(exports, "CreationEntity", { enumerable: true, get: function () { return __importDefault(CreationEntity_1).default; } });
|
|
32
|
-
var GalleryEntityV2_1 = require("./GalleryEntityV2");
|
|
33
|
-
Object.defineProperty(exports, "GalleryEntityV2", { enumerable: true, get: function () { return __importDefault(GalleryEntityV2_1).default; } });
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
declare const FontsInitializeLayout: ({ children }: {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}) => React.JSX.Element;
|
|
5
|
-
export declare const GlobalFontsFallback: import("styled-components").RuleSet<object>;
|
|
6
|
-
export default FontsInitializeLayout;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
-
}) : function(o, v) {
|
|
20
|
-
o["default"] = v;
|
|
21
|
-
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
-
if (mod && mod.__esModule) return mod;
|
|
24
|
-
var result = {};
|
|
25
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
-
__setModuleDefault(result, mod);
|
|
27
|
-
return result;
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.GlobalFontsFallback = void 0;
|
|
31
|
-
var react_1 = __importStar(require("react"));
|
|
32
|
-
var google_1 = require("next/font/google");
|
|
33
|
-
var styled_components_1 = require("styled-components");
|
|
34
|
-
var vars_1 = require("@ludo.ninja/ui/build/fonts/vars");
|
|
35
|
-
// const poppinsFont = Poppins({
|
|
36
|
-
// subsets: ['latin'],
|
|
37
|
-
// style: ['normal'],
|
|
38
|
-
// weight: ['200', '300', '400', '500', '600', '700', '800'],
|
|
39
|
-
// });
|
|
40
|
-
var fallbackPoppins = 'LocalPoppinsFont, sans-serif';
|
|
41
|
-
var fallbackDMSans = 'LocalDMSansFont';
|
|
42
|
-
var poppinsFont = (0, google_1.Poppins)({
|
|
43
|
-
subsets: ['latin'],
|
|
44
|
-
weight: ['200', '300', '400', '500', '600', '700', '800'],
|
|
45
|
-
variable: '--PoppinsFont', //poppinsFontVarCss.variable
|
|
46
|
-
fallback: ['LocalPoppinsFont, sans-serif'], // fallbackPoppins
|
|
47
|
-
});
|
|
48
|
-
var dmsansFont = (0, google_1.DM_Sans)({
|
|
49
|
-
subsets: ['latin'],
|
|
50
|
-
style: ['normal', 'italic'],
|
|
51
|
-
weight: ['400', '500', '600', '700'],
|
|
52
|
-
variable: '--DMSansFont', //dmsansFontVarCss.variable
|
|
53
|
-
fallback: ['LocalDMSansFont'], // fallbackDMSans
|
|
54
|
-
});
|
|
55
|
-
var FontsInitializeLayout = function (_a) {
|
|
56
|
-
var children = _a.children;
|
|
57
|
-
(0, react_1.useEffect)(function () {
|
|
58
|
-
// update fonts to react portal elements
|
|
59
|
-
document.body.classList.add(poppinsFont.variable);
|
|
60
|
-
document.body.classList.add(dmsansFont.variable);
|
|
61
|
-
document.body.style.fontFamily = vars_1.poppinsFontVarCss.css; // initial font family
|
|
62
|
-
}, []);
|
|
63
|
-
return (react_1.default.createElement("main", { style: { fontFamily: vars_1.poppinsFontVarCss.css }, className: "".concat(dmsansFont.variable, " ").concat(poppinsFont.variable) }, children));
|
|
64
|
-
};
|
|
65
|
-
exports.GlobalFontsFallback = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* poppins-200 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 200;\n src: url('/fonts/poppins-v21-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-300 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 300;\n src: url('/fonts/poppins-v21-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-regular - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n src: url('/fonts/poppins-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-500 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n src: url('/fonts/poppins-v21-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-600 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n src: url('/fonts/poppins-v21-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-700 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 700;\n src: url('/fonts/poppins-v21-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-800 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 800;\n src: url('/fonts/poppins-v21-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-regular - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n src: url('/fonts/dm-sans-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-italic - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: italic;\n font-weight: 400;\n src: url('/fonts/dm-sans-v15-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-500 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n src: url('/fonts/dm-sans-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-500italic - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: italic;\n font-weight: 500;\n src: url('/fonts/dm-sans-v15-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-600 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n src: url('/fonts/dm-sans-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-600italic - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: italic;\n font-weight: 600;\n src: url('/fonts/dm-sans-v15-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-700 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 700;\n src: url('/fonts/dm-sans-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-700italic - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: italic;\n font-weight: 700;\n src: url('/fonts/dm-sans-v15-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n"], ["\n /* poppins-200 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 200;\n src: url('/fonts/poppins-v21-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-300 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 300;\n src: url('/fonts/poppins-v21-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-regular - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n src: url('/fonts/poppins-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-500 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n src: url('/fonts/poppins-v21-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-600 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n src: url('/fonts/poppins-v21-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-700 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 700;\n src: url('/fonts/poppins-v21-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* poppins-800 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 800;\n src: url('/fonts/poppins-v21-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-regular - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n src: url('/fonts/dm-sans-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-italic - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: italic;\n font-weight: 400;\n src: url('/fonts/dm-sans-v15-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-500 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n src: url('/fonts/dm-sans-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-500italic - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: italic;\n font-weight: 500;\n src: url('/fonts/dm-sans-v15-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-600 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n src: url('/fonts/dm-sans-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-600italic - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: italic;\n font-weight: 600;\n src: url('/fonts/dm-sans-v15-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-700 - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: normal;\n font-weight: 700;\n src: url('/fonts/dm-sans-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n /* dm-sans-700italic - latin */\n @font-face {\n font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */\n font-family: ", ";\n font-style: italic;\n font-weight: 700;\n src: url('/fonts/dm-sans-v15-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */\n }\n"])), fallbackPoppins, fallbackPoppins, fallbackPoppins, fallbackPoppins, fallbackPoppins, fallbackPoppins, fallbackPoppins, fallbackDMSans, fallbackDMSans, fallbackDMSans, fallbackDMSans, fallbackDMSans, fallbackDMSans, fallbackDMSans, fallbackDMSans);
|
|
66
|
-
exports.default = FontsInitializeLayout;
|
|
67
|
-
var templateObject_1;
|
package/dist/fonts/index.d.ts
DELETED
package/dist/fonts/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.GlobalFontsFallback = exports.FontsInitializeLayout = void 0;
|
|
21
|
-
var FontsInitializeLayout_1 = require("./FontsInitializeLayout");
|
|
22
|
-
Object.defineProperty(exports, "FontsInitializeLayout", { enumerable: true, get: function () { return __importDefault(FontsInitializeLayout_1).default; } });
|
|
23
|
-
var FontsInitializeLayout_2 = require("./FontsInitializeLayout");
|
|
24
|
-
Object.defineProperty(exports, "GlobalFontsFallback", { enumerable: true, get: function () { return FontsInitializeLayout_2.GlobalFontsFallback; } });
|
|
25
|
-
__exportStar(require("./vars"), exports);
|
package/dist/fonts/vars.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { dmsansFontVarCss, poppinsFontVarCss, } from '@ludo.ninja/ui/build/fonts/vars';
|
package/dist/fonts/vars.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.poppinsFontVarCss = exports.dmsansFontVarCss = void 0;
|
|
4
|
-
var vars_1 = require("@ludo.ninja/ui/build/fonts/vars");
|
|
5
|
-
Object.defineProperty(exports, "dmsansFontVarCss", { enumerable: true, get: function () { return vars_1.dmsansFontVarCss; } });
|
|
6
|
-
Object.defineProperty(exports, "poppinsFontVarCss", { enumerable: true, get: function () { return vars_1.poppinsFontVarCss; } });
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AppProps } from 'next/app';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from "@apollo/client";
|
|
3
|
-
type PagePropsWithApollo = AppProps['pageProps'] & {};
|
|
4
|
-
export declare function useApollo(pageProps: PagePropsWithApollo, ENV: string): ApolloClient<NormalizedCacheObject>;
|
|
5
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useApollo = void 0;
|
|
4
|
-
var react_1 = require("react");
|
|
5
|
-
var api_1 = require("@ludo.ninja/api");
|
|
6
|
-
var graphql_1 = require("@ludo.ninja/components/dist/api/graphql");
|
|
7
|
-
function useApollo(pageProps, ENV) {
|
|
8
|
-
var state = pageProps[graphql_1.APOLLO_STATE_PROP_NAME];
|
|
9
|
-
return (0, react_1.useMemo)(function () { return api_1.graphqlConfig.initializeApollo(state, ENV); }, [state, ENV]);
|
|
10
|
-
}
|
|
11
|
-
exports.useApollo = useApollo;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
var react_1 = require("react");
|
|
13
|
-
var router_1 = require("next/router");
|
|
14
|
-
var components_1 = require("@ludo.ninja/components");
|
|
15
|
-
var useMultiAudio = function () {
|
|
16
|
-
var tracks = (0, components_1.useMediaStore)(function (state) { return state.audioTracks; });
|
|
17
|
-
var setTracks = (0, components_1.useMediaStore)(function (state) { return state.setAudioTracks; });
|
|
18
|
-
var router = (0, router_1.useRouter)();
|
|
19
|
-
(0, react_1.useEffect)(function () {
|
|
20
|
-
var ifExist = tracks.some(function (track) {
|
|
21
|
-
return track.playing;
|
|
22
|
-
});
|
|
23
|
-
if (ifExist) {
|
|
24
|
-
var newTracks = __spreadArray([], tracks, true).map(function (track) {
|
|
25
|
-
track.playing = false;
|
|
26
|
-
track.audio.currentTime = 0;
|
|
27
|
-
return track;
|
|
28
|
-
});
|
|
29
|
-
setTracks(newTracks);
|
|
30
|
-
}
|
|
31
|
-
}, [router]);
|
|
32
|
-
(0, react_1.useEffect)(function () {
|
|
33
|
-
tracks.map(function (track) {
|
|
34
|
-
track.playing ? track.audio.play() : track.audio.pause();
|
|
35
|
-
});
|
|
36
|
-
}, [tracks]);
|
|
37
|
-
(0, react_1.useEffect)(function () {
|
|
38
|
-
tracks.forEach(function (source, i) {
|
|
39
|
-
source.audio.addEventListener('ended', function () {
|
|
40
|
-
var newTracks = __spreadArray([], tracks, true);
|
|
41
|
-
newTracks[i].playing = false;
|
|
42
|
-
setTracks(newTracks);
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
return function () {
|
|
46
|
-
tracks.forEach(function (source, i) {
|
|
47
|
-
source.audio.removeEventListener('ended', function () {
|
|
48
|
-
var newTracks = __spreadArray([], tracks, true);
|
|
49
|
-
newTracks[i].playing = false;
|
|
50
|
-
setTracks(newTracks);
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
}, []);
|
|
55
|
-
};
|
|
56
|
-
exports.default = useMultiAudio;
|