@ludo.ninja/components 2.1.60 → 2.1.61
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/components/assetPage/audioVideoPlayer/index.d.ts +2 -2
- package/build/components/assetPage/media/AssetImage/index.js +25 -17
- package/build/components/sidebar/sidebarSpa.d.ts +2 -2
- package/build/fonts/FontsInitializeLayout.d.ts +1 -1
- package/build/layouts/custom/styles.d.ts +2 -2
- package/build/modules/gallery/ui/STopSections.d.ts +1 -1
- package/build/store/creation/index.d.ts +5 -0
- package/build/store/creation/index.js +38 -0
- package/build/styles/animations/index.d.ts +2 -2
- package/build/styles/globalStyles.d.ts +1 -1
- package/build/styles/mixins/boxShadow.d.ts +1 -1
- package/build/styles/mixins/boxTransform.d.ts +1 -1
- package/build/system/Cards/CardContent/CardShowMore/index.d.ts +1 -2
- package/build/system/Cards/Styles/Content.d.ts +1 -1
- package/build/system/Cards/Styles/Head.d.ts +1 -1
- package/build/system/Cards/Styles/Headicons.d.ts +2 -2
- package/build/system/Cards/Styles/Image.d.ts +2 -2
- package/build/system/Cards/Styles/Likes.d.ts +2 -2
- package/build/system/Cards/Styles/MultiHead.d.ts +1 -1
- package/build/system/Cards/Styles/Video.d.ts +1 -1
- package/build/system/Forms/Input/index.d.ts +2 -2
- package/build/system/Modals/ModalSidebar/index.d.ts +1 -2
- package/build/system/Tabs/TabNavLink/index.d.ts +2 -2
- package/build/system/Tabs/TabsNav/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -66,11 +66,11 @@ export interface PlayerStateTypes {
|
|
|
66
66
|
error: boolean;
|
|
67
67
|
isFullscreenMode: boolean;
|
|
68
68
|
}
|
|
69
|
-
export declare const ReactPlayerWrapper: import("styled-components
|
|
69
|
+
export declare const ReactPlayerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
70
70
|
poster: string | null | undefined;
|
|
71
71
|
playerType: string;
|
|
72
72
|
isFullscreenMode: boolean;
|
|
73
|
-
}
|
|
73
|
+
}, never>;
|
|
74
74
|
export declare class AudioVideoPlayer extends Component<ReactPlayerProps, PlayerStateTypes> {
|
|
75
75
|
private player;
|
|
76
76
|
constructor(props: ReactPlayerProps);
|
|
@@ -27,15 +27,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
const
|
|
31
|
-
const
|
|
30
|
+
const vars_1 = require("../../../../fonts/vars");
|
|
31
|
+
const creation_1 = require("../../../../store/creation");
|
|
32
|
+
// import { useCreationStore } from "@/store/creation";
|
|
32
33
|
const ScreenWidth_1 = require("../../../../styles/ScreenWidth");
|
|
33
34
|
const imageProportionsSize_1 = require("../../../../utils/imageProportionsSize");
|
|
34
|
-
const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
35
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
36
35
|
const colors_1 = require("@ludo.ninja/ui/build/styles/colors");
|
|
37
36
|
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
38
|
-
const
|
|
37
|
+
const link_1 = __importDefault(require("next/link"));
|
|
38
|
+
const react_1 = __importStar(require("react"));
|
|
39
|
+
const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
40
|
+
const styled_components_1 = __importStar(require("styled-components"));
|
|
39
41
|
const SScreenshotContainer = styled_components_1.default.div `
|
|
40
42
|
border-radius: 16px;
|
|
41
43
|
overflow: hidden;
|
|
@@ -151,8 +153,16 @@ const ImageContainer = styled_components_1.default.div `
|
|
|
151
153
|
}
|
|
152
154
|
`;
|
|
153
155
|
const AssetImage = ({ imageUrl, errorImg, originalUrl, alt, isScreenshot, }) => {
|
|
156
|
+
// const { urlsActive, addUrlsActive } = useCreationStore((state) => ({
|
|
157
|
+
// urlsActive: state.urlsActive,
|
|
158
|
+
// addUrlsActive: state.addUrlsActive,
|
|
159
|
+
// }));
|
|
160
|
+
const isFirstLoading = !creation_1.urlsActive[imageUrl];
|
|
154
161
|
const [size, setSize] = (0, react_1.useState)({});
|
|
155
|
-
const [loading, setLoading] = (0, react_1.useState)(
|
|
162
|
+
const [loading, setLoading] = (0, react_1.useState)(isFirstLoading);
|
|
163
|
+
if (isFirstLoading) {
|
|
164
|
+
(0, creation_1.addUrlsActive)(imageUrl);
|
|
165
|
+
}
|
|
156
166
|
const ref = (0, react_1.useRef)(null);
|
|
157
167
|
(0, react_1.useLayoutEffect)(() => {
|
|
158
168
|
const { width, height } = (0, imageProportionsSize_1.defineImgProportion)(ref, 80);
|
|
@@ -162,24 +172,22 @@ const AssetImage = ({ imageUrl, errorImg, originalUrl, alt, isScreenshot, }) =>
|
|
|
162
172
|
}
|
|
163
173
|
}, [imageUrl]);
|
|
164
174
|
const LinkComponent = originalUrl ? link_1.default : react_1.default.Fragment;
|
|
165
|
-
const ScreenShotContainer = isScreenshot
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
lineHeight: 'normal',
|
|
170
|
-
position: 'absolute',
|
|
175
|
+
const ScreenShotContainer = isScreenshot ? SScreenshotContainer : react_1.default.Fragment;
|
|
176
|
+
return ((0, jsx_runtime_1.jsx)(LinkComponent, { href: `${originalUrl}`, target: "_blank", children: (0, jsx_runtime_1.jsxs)(ScreenShotContainer, { children: [(0, jsx_runtime_1.jsxs)(ImageContainer, { isScreenshot: isScreenshot, children: [loading && ((0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { height: "100%", width: "100%", style: {
|
|
177
|
+
lineHeight: "normal",
|
|
178
|
+
position: "absolute",
|
|
171
179
|
top: 0,
|
|
172
180
|
left: 0,
|
|
173
|
-
visibility: `${loading ?
|
|
181
|
+
visibility: `${loading ? "hidden" : "visible"}`,
|
|
174
182
|
} })), (0, jsx_runtime_1.jsx)("img", { alt: alt, ref: ref, src: imageUrl, onError: (e) => {
|
|
175
183
|
e.target.src = errorImg;
|
|
176
|
-
setSize({ width:
|
|
184
|
+
setSize({ width: "100%", height: "100%" });
|
|
177
185
|
}, onLoad: () => setLoading(false), style: {
|
|
178
|
-
opacity: loading ?
|
|
186
|
+
opacity: loading ? "0" : "1",
|
|
179
187
|
...(isScreenshot
|
|
180
188
|
? {
|
|
181
|
-
maxHeight:
|
|
182
|
-
maxWidth:
|
|
189
|
+
maxHeight: "100%",
|
|
190
|
+
maxWidth: "100%",
|
|
183
191
|
}
|
|
184
192
|
: size),
|
|
185
193
|
} })] }), isScreenshot && originalUrl && ((0, jsx_runtime_1.jsx)("div", { className: "link", title: originalUrl, children: (0, jsx_runtime_1.jsx)("span", { children: originalUrl }) }))] }) }));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const SLinkStyles: (Link: any) => import("styled-components
|
|
1
|
+
export declare const SLinkStyles: (Link: any) => import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, {
|
|
2
2
|
scale: {
|
|
3
3
|
transform: string;
|
|
4
4
|
} | object;
|
|
5
|
-
}
|
|
5
|
+
}, string | number | symbol>;
|
|
6
6
|
export declare const SidebarSpa: ({ SLink, UserPic, SidebarInviteCodeLabel }: {
|
|
7
7
|
SLink: any;
|
|
8
8
|
UserPic: any;
|
|
@@ -9,4 +9,4 @@ export declare const getFontsLayout: ({ poppinsFont, dmsansFont }: {
|
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
};
|
|
12
|
-
export declare const GlobalFontsFallback: import("styled-components").
|
|
12
|
+
export declare const GlobalFontsFallback: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const StyledMain: import("styled-components
|
|
2
|
-
export declare const StyledMainForms: import("styled-components
|
|
1
|
+
export declare const StyledMain: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const StyledMainForms: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const STopSections: import("styled-components
|
|
1
|
+
export declare const STopSections: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clearAllUrlsActive = exports.addUrlsActive = exports.urlsActive = void 0;
|
|
4
|
+
// interface ICreationStore {
|
|
5
|
+
// urlsActive: { [a: string]: boolean };
|
|
6
|
+
// addUrlsActive: (url: string) => void;
|
|
7
|
+
// clearAllUrlsActive: () => void;
|
|
8
|
+
// }
|
|
9
|
+
//
|
|
10
|
+
// export const useCreationStore = createWithEqualityFn<ICreationStore>()(
|
|
11
|
+
// (setState) => ({
|
|
12
|
+
// urlsActive: {},
|
|
13
|
+
// addUrlsActive: (url) => {
|
|
14
|
+
// setState((prev) => ({
|
|
15
|
+
// urlsActive: {
|
|
16
|
+
// ...prev.urlsActive,
|
|
17
|
+
// [url]: true,
|
|
18
|
+
// },
|
|
19
|
+
// }));
|
|
20
|
+
// },
|
|
21
|
+
// clearAllUrlsActive: () => {
|
|
22
|
+
// setState({
|
|
23
|
+
// urlsActive: {},
|
|
24
|
+
// });
|
|
25
|
+
// },
|
|
26
|
+
// }),
|
|
27
|
+
// shallow,
|
|
28
|
+
// );
|
|
29
|
+
//without rerenders include stack
|
|
30
|
+
exports.urlsActive = {};
|
|
31
|
+
const addUrlsActive = (url) => {
|
|
32
|
+
exports.urlsActive[url] = true;
|
|
33
|
+
};
|
|
34
|
+
exports.addUrlsActive = addUrlsActive;
|
|
35
|
+
const clearAllUrlsActive = () => {
|
|
36
|
+
exports.urlsActive = {};
|
|
37
|
+
};
|
|
38
|
+
exports.clearAllUrlsActive = clearAllUrlsActive;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const rotateReverse: import("styled-components
|
|
2
|
-
export declare const rotate: import("styled-components
|
|
1
|
+
export declare const rotateReverse: import("styled-components").Keyframes;
|
|
2
|
+
export declare const rotate: import("styled-components").Keyframes;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const GlobalStyle: import("
|
|
1
|
+
declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
2
2
|
export default GlobalStyle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const BoxShadow: () => import("styled-components").
|
|
1
|
+
declare const BoxShadow: () => import("styled-components").FlattenSimpleInterpolation;
|
|
2
2
|
export default BoxShadow;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const BoxTransform: () => import("styled-components").
|
|
1
|
+
declare const BoxTransform: () => import("styled-components").FlattenSimpleInterpolation;
|
|
2
2
|
export default BoxTransform;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const StyledCardShowMore: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1
|
+
export declare const StyledCardShowMore: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
2
|
declare const CardShowMore: ({ itemId, href }: {
|
|
4
3
|
itemId: string;
|
|
5
4
|
href: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledContentCard: import("styled-components
|
|
1
|
+
declare const StyledContentCard: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export default StyledContentCard;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledCardHead: import("styled-components
|
|
1
|
+
declare const StyledCardHead: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export default StyledCardHead;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const StyledHeadIcons: import("styled-components
|
|
1
|
+
declare const StyledHeadIcons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
2
|
isMobile: boolean;
|
|
3
|
-
}
|
|
3
|
+
}, never>;
|
|
4
4
|
export default StyledHeadIcons;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const StyledImg: import("styled-components
|
|
1
|
+
declare const StyledImg: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
|
|
2
2
|
isLoading: boolean;
|
|
3
|
-
}
|
|
3
|
+
}, never>;
|
|
4
4
|
export default StyledImg;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const StyledLikes: import("styled-components
|
|
1
|
+
declare const StyledLikes: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
2
|
isLiked: boolean;
|
|
3
|
-
}
|
|
3
|
+
}, never>;
|
|
4
4
|
export default StyledLikes;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledMultiHead: import("styled-components
|
|
1
|
+
declare const StyledMultiHead: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export default StyledMultiHead;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledVideo: import("styled-components
|
|
1
|
+
declare const StyledVideo: import("styled-components").StyledComponent<"video", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export default StyledVideo;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
3
3
|
import { inputType } from './type';
|
|
4
|
-
export declare const StyledInput: import("styled-components
|
|
4
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
5
5
|
status: boolean;
|
|
6
|
-
}
|
|
6
|
+
}, never>;
|
|
7
7
|
interface Props {
|
|
8
8
|
data: inputType;
|
|
9
9
|
register: UseFormRegisterReturn;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const StyledModalSidebar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1
|
+
export declare const StyledModalSidebar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
2
|
declare const ModalSidebar: () => import("react/jsx-runtime").JSX.Element | null;
|
|
4
3
|
export default ModalSidebar;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TabsNavType } from '../TabsNav/type';
|
|
3
|
-
export declare const StyledTabsNavLink: import("styled-components
|
|
3
|
+
export declare const StyledTabsNavLink: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
4
|
isActive: boolean;
|
|
5
|
-
}
|
|
5
|
+
}, never>;
|
|
6
6
|
interface Props {
|
|
7
7
|
tabNavLink: TabsNavType;
|
|
8
8
|
activeNavLink: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TActiveTab, TabsNavType } from './type';
|
|
3
|
-
export declare const StyledTabsNav: import("styled-components
|
|
3
|
+
export declare const StyledTabsNav: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
interface Props {
|
|
5
5
|
tabsData: TabsNavType[];
|
|
6
6
|
activeTab: TActiveTab;
|