@ludo.ninja/components 2.1.43 → 2.1.44

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.
@@ -1,36 +1,2 @@
1
- import React from "react";
2
- export declare const SLink: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, keyof {
3
- href: string | import("url").UrlObject;
4
- as?: string | import("url").UrlObject;
5
- replace?: boolean;
6
- scroll?: boolean;
7
- shallow?: boolean;
8
- passHref?: boolean;
9
- prefetch?: boolean;
10
- locale?: string | false;
11
- legacyBehavior?: boolean;
12
- onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
13
- onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
14
- onClick?: React.MouseEventHandler<HTMLAnchorElement>;
15
- }> & {
16
- href: string | import("url").UrlObject;
17
- as?: string | import("url").UrlObject;
18
- replace?: boolean;
19
- scroll?: boolean;
20
- shallow?: boolean;
21
- passHref?: boolean;
22
- prefetch?: boolean;
23
- locale?: string | false;
24
- legacyBehavior?: boolean;
25
- onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
26
- onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
27
- onClick?: React.MouseEventHandler<HTMLAnchorElement>;
28
- } & {
29
- children?: React.ReactNode;
30
- } & React.RefAttributes<HTMLAnchorElement>>, import("styled-components").DefaultTheme, {
31
- scale: {
32
- transform: string;
33
- } | object;
34
- }, never>;
35
1
  declare const Sidebar: () => import("react/jsx-runtime").JSX.Element;
36
2
  export default Sidebar;
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SLink = void 0;
7
6
  const jsx_runtime_1 = require("react/jsx-runtime");
8
7
  const link_1 = __importDefault(require("next/link"));
9
8
  const Userpic_1 = __importDefault(require("../../system/Img/Userpic"));
@@ -71,7 +70,7 @@ const BeforeMenuContainer = styled_components_1.default.div `
71
70
  border-bottom: ${(0, _4k_1.adaptiveValueCalc)(1)} solid ${({ theme }) => theme.colors.divider};
72
71
  }
73
72
  `;
74
- exports.SLink = (0, styled_components_1.default)(link_1.default) `
73
+ const SLink = (0, styled_components_1.default)(link_1.default) `
75
74
  &:not(:last-child) svg path {
76
75
  fill: ${({ theme }) => theme.colors.sidebarSvgPathFill};
77
76
  }
@@ -114,7 +113,7 @@ const Sidebar = () => {
114
113
  },
115
114
  logout: signOut,
116
115
  }, isAuthorized: isAuthorized, userWallets: wallets, slots: {
117
- menu: sideBarData.map(({ title, href, icon, isExternalUrl }) => ((0, jsx_runtime_1.jsxs)(exports.SLink, { href: href, target: isExternalUrl ? "_blank" : "_self", onClick: closeSidebar, passHref: isExternalUrl, scale: (0, scale_1.getAdaptiveScale)({ windowDimensions, currentSize: 1 }), children: [(0, jsx_runtime_1.jsx)("span", { className: "icon-wrapper", children: icon }), title] }, title))),
116
+ menu: sideBarData.map(({ title, href, icon, isExternalUrl }) => ((0, jsx_runtime_1.jsxs)(SLink, { href: href, target: isExternalUrl ? "_blank" : "_self", onClick: closeSidebar, passHref: isExternalUrl, scale: (0, scale_1.getAdaptiveScale)({ windowDimensions, currentSize: 1 }), children: [(0, jsx_runtime_1.jsx)("span", { className: "icon-wrapper", children: icon }), title] }, title))),
118
117
  userPicture: ({ children, height, width, isNeedBoxTransform }) => ((0, jsx_runtime_1.jsx)(Userpic_1.default, { width: width, height: height, userId: userId, isNeedBoxTransform: isNeedBoxTransform, children: children })),
119
118
  inviteCode: (0, jsx_runtime_1.jsx)(sidebarInviteCodeLabel_1.default, {}),
120
119
  ...(deviceType == "isDesktop" && isAuthorized
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.GlobalLayout = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const envLine_1 = __importDefault(require("@ludo.ninja/ui/build/components/envLine"));
9
- const initializer_1 = require("../components/sidebar/initializer");
9
+ // import { SidebarInitializer } from '@/components/sidebar/initializer';
10
10
  const useAuthVerification_1 = require("../modules/user/auth/useAuthVerification");
11
11
  const profileDataInitialization_1 = require("../modules/user/profileData/profileDataInitialization");
12
12
  const env_1 = require("../store/env");
@@ -28,6 +28,6 @@ const GlobalLayout = ({ children }) => {
28
28
  (0, useAuthVerification_1.useAuthVerification)();
29
29
  const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_ENV_VALUE);
30
30
  const envValue = NEXT_PUBLIC_ENV_VALUE !== 'prod' ? NEXT_PUBLIC_ENV_VALUE : '';
31
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(profileDataInitialization_1.ProfileDataInitialization, {}), (0, jsx_runtime_1.jsx)(envLine_1.default, { isNeedToShow: envValue }), (0, jsx_runtime_1.jsx)(globalStyles_1.default, {}), children, (0, jsx_runtime_1.jsx)(CreatorNotifications_1.CreatorNotifications, {}), (0, jsx_runtime_1.jsx)(screen_1.InitializeAppHeight, {}), (0, jsx_runtime_1.jsx)(SubscriberNotifications_1.SubscriberNotification, {}), (0, jsx_runtime_1.jsx)(Overlay_1.default, {}), (0, jsx_runtime_1.jsx)(initializer_1.SidebarInitializer, {}), (0, jsx_runtime_1.jsx)(Alert_1.default, {}), (0, jsx_runtime_1.jsx)(Modal_1.default, {}), (0, jsx_runtime_1.jsx)(ModalSidebar_1.default, {}), (0, jsx_runtime_1.jsx)(CreatorModalSidebarPortal_1.CreatorModalSidebarPortal, {}), (0, jsx_runtime_1.jsx)(sessionScroll_1.DeleteScrollStateInterceptor, {})] }));
31
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(profileDataInitialization_1.ProfileDataInitialization, {}), (0, jsx_runtime_1.jsx)(envLine_1.default, { isNeedToShow: envValue }), (0, jsx_runtime_1.jsx)(globalStyles_1.default, {}), children, (0, jsx_runtime_1.jsx)(CreatorNotifications_1.CreatorNotifications, {}), (0, jsx_runtime_1.jsx)(screen_1.InitializeAppHeight, {}), (0, jsx_runtime_1.jsx)(SubscriberNotifications_1.SubscriberNotification, {}), (0, jsx_runtime_1.jsx)(Overlay_1.default, {}), (0, jsx_runtime_1.jsx)(Alert_1.default, {}), (0, jsx_runtime_1.jsx)(Modal_1.default, {}), (0, jsx_runtime_1.jsx)(ModalSidebar_1.default, {}), (0, jsx_runtime_1.jsx)(CreatorModalSidebarPortal_1.CreatorModalSidebarPortal, {}), (0, jsx_runtime_1.jsx)(sessionScroll_1.DeleteScrollStateInterceptor, {})] }));
32
32
  };
33
33
  exports.GlobalLayout = GlobalLayout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.1.43",
3
+ "version": "2.1.44",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",