@ludo.ninja/components 1.7.6 → 1.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +15 -0
- package/dist/components/profile/index.d.ts +1 -11
- package/dist/components/profile/index.js +3 -23
- package/dist/components/profile/profileSkeleton/index.js +2 -2
- package/dist/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +1 -4
- package/dist/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +0 -2
- package/dist/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +0 -3
- package/dist/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +0 -1
- package/dist/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +7 -9
- package/dist/modules/gallery/ui/itemsPreview/index.d.ts +0 -1
- package/dist/modules/user/auth/useSignIn.d.ts +0 -1
- package/dist/modules/virtuoso/VirtuosoPageBuilder.d.ts +2 -2
- package/dist/modules/virtuoso/VirtuosoPageBuilder.js +15 -21
- package/dist/modules/virtuoso/useVirtuosoData.d.ts +0 -1
- package/dist/store/media/index.d.ts +0 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/extractItemIds/index.d.ts +1 -1
- package/dist/utils/ssrFunctions/index.d.ts +0 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
@@ -6,3 +20,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
20
|
exports.ShareDialog = void 0;
|
|
7
21
|
var shareDialog_1 = require("./shareDialog");
|
|
8
22
|
Object.defineProperty(exports, "ShareDialog", { enumerable: true, get: function () { return __importDefault(shareDialog_1).default; } });
|
|
23
|
+
__exportStar(require("./profile"), exports);
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { ProfileStats } from '@/components/profile/stats';
|
|
3
|
-
export { ProfilePageHead } from '@/components/profile/pageHead';
|
|
4
|
-
export { profileJSONLD } from '@/components/profile/jsonLd';
|
|
5
|
-
export { ProfileWallets } from '@/components//profile/wallets';
|
|
6
|
-
export { ProfileInfo } from '@/components/profile/info';
|
|
7
|
-
export { ProfileWrapper } from '@/components/profile/wrapper';
|
|
8
|
-
export { ProfileInterests } from '@/components/profile/interests';
|
|
9
|
-
export { ProfileUserCards } from '@/components/profile/profileUserCards';
|
|
10
|
-
export { ProfileUserCard } from '@/components/profile/profileUserCards/profileUserCard';
|
|
11
|
-
export { ProfileSkeletonWrapper } from '@/components/profile/profileSkeleton';
|
|
1
|
+
export { ProfileSkeleton } from '@ludo.ninja/components/src/components/profile/profileSkeleton';
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
6
|
-
var stats_1 = require("@/components/profile/stats");
|
|
7
|
-
Object.defineProperty(exports, "ProfileStats", { enumerable: true, get: function () { return stats_1.ProfileStats; } });
|
|
8
|
-
var pageHead_1 = require("@/components/profile/pageHead");
|
|
9
|
-
Object.defineProperty(exports, "ProfilePageHead", { enumerable: true, get: function () { return pageHead_1.ProfilePageHead; } });
|
|
10
|
-
var jsonLd_1 = require("@/components/profile/jsonLd");
|
|
11
|
-
Object.defineProperty(exports, "profileJSONLD", { enumerable: true, get: function () { return jsonLd_1.profileJSONLD; } });
|
|
12
|
-
var wallets_1 = require("@/components//profile/wallets");
|
|
13
|
-
Object.defineProperty(exports, "ProfileWallets", { enumerable: true, get: function () { return wallets_1.ProfileWallets; } });
|
|
14
|
-
var info_1 = require("@/components/profile/info");
|
|
15
|
-
Object.defineProperty(exports, "ProfileInfo", { enumerable: true, get: function () { return info_1.ProfileInfo; } });
|
|
16
|
-
var wrapper_1 = require("@/components/profile/wrapper");
|
|
17
|
-
Object.defineProperty(exports, "ProfileWrapper", { enumerable: true, get: function () { return wrapper_1.ProfileWrapper; } });
|
|
18
|
-
var interests_1 = require("@/components/profile/interests");
|
|
19
|
-
Object.defineProperty(exports, "ProfileInterests", { enumerable: true, get: function () { return interests_1.ProfileInterests; } });
|
|
20
|
-
var profileUserCards_1 = require("@/components/profile/profileUserCards");
|
|
21
|
-
Object.defineProperty(exports, "ProfileUserCards", { enumerable: true, get: function () { return profileUserCards_1.ProfileUserCards; } });
|
|
22
|
-
var profileUserCard_1 = require("@/components/profile/profileUserCards/profileUserCard");
|
|
23
|
-
Object.defineProperty(exports, "ProfileUserCard", { enumerable: true, get: function () { return profileUserCard_1.ProfileUserCard; } });
|
|
24
|
-
var profileSkeleton_1 = require("@/components/profile/profileSkeleton");
|
|
25
|
-
Object.defineProperty(exports, "ProfileSkeletonWrapper", { enumerable: true, get: function () { return profileSkeleton_1.ProfileSkeletonWrapper; } });
|
|
3
|
+
exports.ProfileSkeleton = void 0;
|
|
4
|
+
var profileSkeleton_1 = require("@ludo.ninja/components/src/components/profile/profileSkeleton");
|
|
5
|
+
Object.defineProperty(exports, "ProfileSkeleton", { enumerable: true, get: function () { return profileSkeleton_1.ProfileSkeleton; } });
|
|
@@ -11,9 +11,9 @@ exports.ProfileSkeleton = exports.ProfileSkeletonWrapper = void 0;
|
|
|
11
11
|
var react_1 = __importDefault(require("react"));
|
|
12
12
|
var react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
13
13
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
14
|
-
var
|
|
14
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
15
15
|
// Styles
|
|
16
|
-
var StyledProfileSkeleton = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 6px;\n\n .cardLink {\n padding: 16px;\n display: flex;\n height: 100%;\n\n @media (max-width: 1199px) {\n padding: 12px;\n align-items: center;\n }\n\n .cardLinkIcon {\n margin-right: 12px;\n border-radius: 50%;\n width: 72px;\n height: 72px;\n\n @media (max-width: 1199px) {\n width: 42px;\n height: 42px;\n }\n }\n .cardLinkContent {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n\n .content {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n .caption {\n margin: 0;\n }\n .text {\n margin-top: 7px;\n }\n }\n\n @media (max-width: 1199px) {\n flex-direction: row;\n align-items: center;\n .content {\n justify-content: center;\n }\n }\n }\n }\n"], ["\n background-color: ", ";\n border-radius: 6px;\n\n .cardLink {\n padding: 16px;\n display: flex;\n height: 100%;\n\n @media (max-width: 1199px) {\n padding: 12px;\n align-items: center;\n }\n\n .cardLinkIcon {\n margin-right: 12px;\n border-radius: 50%;\n width: 72px;\n height: 72px;\n\n @media (max-width: 1199px) {\n width: 42px;\n height: 42px;\n }\n }\n .cardLinkContent {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n\n .content {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n .caption {\n margin: 0;\n }\n .text {\n margin-top: 7px;\n }\n }\n\n @media (max-width: 1199px) {\n flex-direction: row;\n align-items: center;\n .content {\n justify-content: center;\n }\n }\n }\n }\n"])),
|
|
16
|
+
var StyledProfileSkeleton = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 6px;\n\n .cardLink {\n padding: 16px;\n display: flex;\n height: 100%;\n\n @media (max-width: 1199px) {\n padding: 12px;\n align-items: center;\n }\n\n .cardLinkIcon {\n margin-right: 12px;\n border-radius: 50%;\n width: 72px;\n height: 72px;\n\n @media (max-width: 1199px) {\n width: 42px;\n height: 42px;\n }\n }\n .cardLinkContent {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n\n .content {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n .caption {\n margin: 0;\n }\n .text {\n margin-top: 7px;\n }\n }\n\n @media (max-width: 1199px) {\n flex-direction: row;\n align-items: center;\n .content {\n justify-content: center;\n }\n }\n }\n }\n"], ["\n background-color: ", ";\n border-radius: 6px;\n\n .cardLink {\n padding: 16px;\n display: flex;\n height: 100%;\n\n @media (max-width: 1199px) {\n padding: 12px;\n align-items: center;\n }\n\n .cardLinkIcon {\n margin-right: 12px;\n border-radius: 50%;\n width: 72px;\n height: 72px;\n\n @media (max-width: 1199px) {\n width: 42px;\n height: 42px;\n }\n }\n .cardLinkContent {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n\n .content {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n .caption {\n margin: 0;\n }\n .text {\n margin-top: 7px;\n }\n }\n\n @media (max-width: 1199px) {\n flex-direction: row;\n align-items: center;\n .content {\n justify-content: center;\n }\n }\n }\n }\n"])), styles_1.WhiteColor);
|
|
17
17
|
var ProfileSkeletonWrapper = function (_a) {
|
|
18
18
|
var profilesCount = _a.profilesCount;
|
|
19
19
|
var arr = Array.from(Array(profilesCount).keys());
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { galleriesSchema } from '@ludo.ninja/api';
|
|
2
|
-
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
|
-
import CreationEntity from '@/dto/CreationEntity';
|
|
4
|
-
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
5
2
|
declare const useGetFavoriteGallaryCreations: ({ galleryId, itemsCount, }: {
|
|
6
3
|
galleryId: string;
|
|
7
4
|
itemsCount: number | null;
|
|
8
5
|
}) => {
|
|
9
6
|
gallery: GalleryEntityV2[];
|
|
10
7
|
loading: boolean;
|
|
11
|
-
creationsList:
|
|
8
|
+
creationsList: any[];
|
|
12
9
|
loadingAssets: boolean;
|
|
13
10
|
loadingGallery: boolean;
|
|
14
11
|
loadingCollections: boolean;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { galleriesSchema } from '@ludo.ninja/api';
|
|
2
|
-
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
|
-
import CreationEntity from '@/dto/CreationEntity';
|
|
4
2
|
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
5
3
|
declare const useGetUserFevoritesCreations: ({ userId, pageSize, pageToken, }: galleriesSchema.IQueryFetchUserFavoritesV2Args) => {
|
|
6
4
|
favorites: GalleryEntityV2[];
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { galleriesSchema } from '@ludo.ninja/api';
|
|
2
|
-
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
|
-
import CreationEntity from '@/dto/CreationEntity';
|
|
4
|
-
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
5
2
|
declare const useGetUserGalleriesCreations: ({ userId, pageSize, pageToken, }: galleriesSchema.IQueryFetchUserGalleriesV2Args) => {
|
|
6
3
|
galleries: GalleryEntityV2[];
|
|
7
4
|
assets: CreationEntity[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IDynamicAssetData, IQueryFetchDynamicCollectionDataArgs } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
2
|
-
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
2
|
declare const useGetCollectionInfoAndLikes: ({ input, }: IQueryFetchDynamicCollectionDataArgs) => {
|
|
4
3
|
collectionAssetsList: CollectionCreationEntity[];
|
|
5
4
|
collectionItemsLikes: [] | IDynamicAssetData[];
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
|
-
import CreationEntity from '@/dto/CreationEntity';
|
|
4
2
|
declare const useGetMixedLikesFavoriteList: ({ galleryId, itemsCount, }: {
|
|
5
3
|
galleryId: string;
|
|
6
4
|
itemsCount: number | null;
|
|
7
5
|
}) => {
|
|
8
|
-
gallery:
|
|
9
|
-
creationsList: [] |
|
|
6
|
+
gallery: any;
|
|
7
|
+
creationsList: any[] | [];
|
|
10
8
|
likes: (schema.IDynamicAssetData | schema.IDynamicCollectionData)[];
|
|
11
|
-
allResults:
|
|
9
|
+
allResults: any;
|
|
12
10
|
loading: boolean;
|
|
13
|
-
errorAssets:
|
|
14
|
-
errorCollections:
|
|
15
|
-
errorGallery:
|
|
11
|
+
errorAssets: any;
|
|
12
|
+
errorCollections: any;
|
|
13
|
+
errorGallery: any;
|
|
16
14
|
allItemsFetched: boolean;
|
|
17
|
-
loadMore:
|
|
15
|
+
loadMore: any;
|
|
18
16
|
};
|
|
19
17
|
export default useGetMixedLikesFavoriteList;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TVirtuosoData } from '@/modules/virtuoso/types';
|
|
3
2
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
4
3
|
import CreationEntity from '@/dto/CreationEntity';
|
|
5
4
|
export declare const useVirtuosoData: <TData>({ creations, isMobile, }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ApolloError } from '@apollo/client';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { TDimensions } from '@ludo.ninja/components/src/utils';
|
|
4
|
+
import { TActiveTab } from '@ludo.ninja/components/src/system';
|
|
5
5
|
export declare const VirtuosoPageBuilder: <TCreation>({ activeTab, isMobile, creations, windowDimensions, isLoading, error, refetchQuery, loadMore, renderCreation, notFoundText, isNextLoading, headerSlot, isProfileCards, }: {
|
|
6
6
|
activeTab: TActiveTab;
|
|
7
7
|
isMobile: boolean;
|
|
@@ -34,24 +34,18 @@ exports.VirtuosoPageBuilder = void 0;
|
|
|
34
34
|
var react_1 = __importStar(require("react"));
|
|
35
35
|
var react_virtuoso_1 = require("react-virtuoso");
|
|
36
36
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
37
|
+
var modules_1 = require("@ludo.ninja/components/src/modules");
|
|
37
38
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var ScreenWidth_1 = require("@/styles/ScreenWidth");
|
|
43
|
-
var profileSkeleton_1 = require("@/components/profile/profileSkeleton");
|
|
44
|
-
var CardsError_1 = __importDefault(require("@/system/CardsHolderWithSkeleton/CardsHolder/CardsError"));
|
|
45
|
-
var CardsNoResults_1 = __importDefault(require("@/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults"));
|
|
46
|
-
var CardsSkeleton_1 = require("@/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton");
|
|
47
|
-
var CardsHolderLoader_1 = __importDefault(require("@/system/CardsHolderWithSkeleton/CardsHolderLoader"));
|
|
48
|
-
var SCardsRow = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n width: 1080px;\n margin: 0 auto;\n\n ", " {\n width: 704px;\n }\n\n ", " {\n width: 320px;\n }\n ", " {\n width: ", ";\n }\n"], ["\n display: flex;\n width: 1080px;\n margin: 0 auto;\n\n ", " {\n width: 704px;\n }\n\n ", " {\n width: 320px;\n }\n ", " {\n width: ", ";\n }\n"])), ScreenWidth_1.mediaQuery.maxWidthTablet, ScreenWidth_1.mediaQuery.mobile, ScreenWidth_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(1080));
|
|
39
|
+
var styles_1 = require("@ludo.ninja/components/src/styles");
|
|
40
|
+
var profile_1 = require("@ludo.ninja/components/src/components/profile");
|
|
41
|
+
var system_1 = require("@ludo.ninja/components/src/system");
|
|
42
|
+
var SCardsRow = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n width: 1080px;\n margin: 0 auto;\n\n ", " {\n width: 704px;\n }\n\n ", " {\n width: 320px;\n }\n ", " {\n width: ", ";\n }\n"], ["\n display: flex;\n width: 1080px;\n margin: 0 auto;\n\n ", " {\n width: 704px;\n }\n\n ", " {\n width: 320px;\n }\n ", " {\n width: ", ";\n }\n"])), styles_1.mediaQuery.maxWidthTablet, styles_1.mediaQuery.mobile, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(1080));
|
|
49
43
|
var VirtuosoPageBuilder = function (_a) {
|
|
50
44
|
var activeTab = _a.activeTab, isMobile = _a.isMobile, creations = _a.creations, windowDimensions = _a.windowDimensions, isLoading = _a.isLoading, error = _a.error, refetchQuery = _a.refetchQuery, loadMore = _a.loadMore, renderCreation = _a.renderCreation, notFoundText = _a.notFoundText, isNextLoading = _a.isNextLoading, headerSlot = _a.headerSlot, isProfileCards = _a.isProfileCards;
|
|
51
|
-
var onScroll = (0,
|
|
45
|
+
var onScroll = (0, modules_1.useSubscribeVirtuosoScrollToHeader)().onScroll;
|
|
52
46
|
var virtuoso = (0, react_1.useRef)(null);
|
|
53
|
-
var virtuosoToTopBtnInitialize = (0,
|
|
54
|
-
var _b = (0,
|
|
47
|
+
var virtuosoToTopBtnInitialize = (0, modules_1.useVirtuosoToTopBtnInitialize)();
|
|
48
|
+
var _b = (0, modules_1.useVirtuosoData)({
|
|
55
49
|
activeTab: activeTab,
|
|
56
50
|
isMobile: isMobile,
|
|
57
51
|
creations: creations,
|
|
@@ -59,7 +53,7 @@ var VirtuosoPageBuilder = function (_a) {
|
|
|
59
53
|
windowDimensions.windowWidth < 1200 &&
|
|
60
54
|
isProfileCards,
|
|
61
55
|
}), virtuosoData = _b.virtuosoData, placeholderData = _b.placeholderData;
|
|
62
|
-
var _c = (0,
|
|
56
|
+
var _c = (0, modules_1.useVirtuosoInitialScroll)({
|
|
63
57
|
virtuoso: virtuoso,
|
|
64
58
|
virtuosoData: virtuosoData,
|
|
65
59
|
activeTab: activeTab,
|
|
@@ -71,7 +65,7 @@ var VirtuosoPageBuilder = function (_a) {
|
|
|
71
65
|
return 12;
|
|
72
66
|
if (width && width < 1200)
|
|
73
67
|
return 16;
|
|
74
|
-
if (width && width >=
|
|
68
|
+
if (width && width >= styles_1.ScreenWidth.FOUR_K_MIN) {
|
|
75
69
|
return (0, _4k_1.getAdaptiveValue)({
|
|
76
70
|
windowWidth: width,
|
|
77
71
|
currentSize: 24,
|
|
@@ -96,7 +90,7 @@ var VirtuosoPageBuilder = function (_a) {
|
|
|
96
90
|
})(),
|
|
97
91
|
gap: getGapCards(),
|
|
98
92
|
} }, placeholderData[index].map(function (_, ind) {
|
|
99
|
-
return isProfileCards ? (react_1.default.createElement(
|
|
93
|
+
return isProfileCards ? (react_1.default.createElement(profile_1.ProfileSkeleton, { key: ind })) : (react_1.default.createElement(system_1.CardSkeleton, { key: ind }));
|
|
100
94
|
})));
|
|
101
95
|
},
|
|
102
96
|
};
|
|
@@ -105,7 +99,7 @@ var VirtuosoPageBuilder = function (_a) {
|
|
|
105
99
|
return {
|
|
106
100
|
totalCount: 1,
|
|
107
101
|
itemContent: function () {
|
|
108
|
-
return react_1.default.createElement(
|
|
102
|
+
return react_1.default.createElement(system_1.CardsError, { refetch: refetchQuery });
|
|
109
103
|
},
|
|
110
104
|
};
|
|
111
105
|
}
|
|
@@ -113,7 +107,7 @@ var VirtuosoPageBuilder = function (_a) {
|
|
|
113
107
|
return {
|
|
114
108
|
totalCount: 1,
|
|
115
109
|
itemContent: function () {
|
|
116
|
-
return react_1.default.createElement(
|
|
110
|
+
return react_1.default.createElement(system_1.CardsNoResults, { noFoundText: notFoundText });
|
|
117
111
|
},
|
|
118
112
|
};
|
|
119
113
|
}
|
|
@@ -144,9 +138,9 @@ var VirtuosoPageBuilder = function (_a) {
|
|
|
144
138
|
virtuosoToTopBtnInitialize.onScroll(e.currentTarget.scrollTop);
|
|
145
139
|
}, totalCount: virtuosoBody.totalCount, endReached: loadMore, overscan: 200, itemContent: virtuosoBody.itemContent, components: {
|
|
146
140
|
Header: function () { return headerSlot; },
|
|
147
|
-
Footer: function () { return (isNextLoading ? react_1.default.createElement(
|
|
141
|
+
Footer: function () { return (isNextLoading ? react_1.default.createElement(system_1.CardsHolderLoader, null) : null); },
|
|
148
142
|
} }),
|
|
149
|
-
virtuosoToTopBtnInitialize.isShowBtn && (react_1.default.createElement(
|
|
143
|
+
virtuosoToTopBtnInitialize.isShowBtn && (react_1.default.createElement(modules_1.VirtuosoToTopBtn, { virtuoso: virtuoso }))));
|
|
150
144
|
};
|
|
151
145
|
exports.VirtuosoPageBuilder = VirtuosoPageBuilder;
|
|
152
146
|
var templateObject_1;
|