react-easy-wall 1.1.16 → 1.1.18
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/cjs/components/panel/PanelAvatar.js +8 -2
- package/dist/cjs/components/panel/PanelAvatar.js.map +1 -1
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/esm/Typography/typographyClasses.js +1 -1
- package/dist/cjs/shared/constants/index.js +12 -0
- package/dist/cjs/shared/constants/index.js.map +1 -0
- package/dist/esm/components/panel/PanelAvatar.js +8 -2
- package/dist/esm/components/panel/PanelAvatar.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Typography/typographyClasses.js +1 -1
- package/dist/esm/shared/constants/index.js +7 -0
- package/dist/esm/shared/constants/index.js.map +1 -0
- package/dist/esm/types/components/panel/PanelAvatar.d.ts +2 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/shared/constants/index.d.ts +4 -0
- package/dist/index.d.ts +8 -2
- package/package.json +1 -1
|
@@ -6,10 +6,16 @@ var session_hooks = require('../session/session.hooks.js');
|
|
|
6
6
|
var Box = require('../../node_modules/@mui/material/esm/Box/Box.js');
|
|
7
7
|
var Avatar = require('../../node_modules/@mui/material/esm/Avatar/Avatar.js');
|
|
8
8
|
var Link = require('../../node_modules/@mui/material/esm/Link/Link.js');
|
|
9
|
+
var Typography = require('../../node_modules/@mui/material/esm/Typography/Typography.js');
|
|
9
10
|
|
|
10
|
-
const PanelAvatar = ({ avatarProps, textLink = '
|
|
11
|
+
const PanelAvatar = ({ avatarProps = {}, textProps = {}, textLink = 'Administrar Cuenta', SubscriptionImageComponent = null, }) => {
|
|
11
12
|
const { user, config } = session_hooks.useSession();
|
|
12
|
-
|
|
13
|
+
const { sx: sxTextProps, ...textRestProps } = textProps;
|
|
14
|
+
return (jsxRuntime.jsxs(Box.default, { px: 1.5, py: 1, display: "flex", alignItems: "center", children: [jsxRuntime.jsxs(Box.default, { mr: 1, position: "relative", children: [jsxRuntime.jsx(Avatar.default, { sx: { width: 40, height: 40, ...avatarProps?.sx }, src: user?.avatar, ...avatarProps }), SubscriptionImageComponent] }), jsxRuntime.jsxs(Box.default, { children: [jsxRuntime.jsx(Box.default, { mb: 0, children: decodeURIComponent(user?.name) }), jsxRuntime.jsx(Link.default, { href: config?.urlPortal, sx: { textDecoration: 'none' }, children: jsxRuntime.jsx(Typography.default, { sx: {
|
|
15
|
+
color: 'black',
|
|
16
|
+
fontSize: '12px',
|
|
17
|
+
...sxTextProps,
|
|
18
|
+
}, ...textRestProps, children: textLink }) })] })] }));
|
|
13
19
|
};
|
|
14
20
|
|
|
15
21
|
exports.PanelAvatar = PanelAvatar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelAvatar.js","sources":["../../../../src/components/panel/PanelAvatar.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { Box, Avatar, Link, AvatarProps,
|
|
1
|
+
{"version":3,"file":"PanelAvatar.js","sources":["../../../../src/components/panel/PanelAvatar.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { Box, Avatar, Link, AvatarProps, Typography, TypographyProps } from '@mui/material';\nimport { useSession } from '../session/session.hooks';\n\nexport interface PanelAvatarProps {\n avatarProps?: AvatarProps;\n textProps?: TypographyProps;\n textLink?: string;\n SubscriptionImageComponent?: React.ReactNode | null;\n}\n\nexport const PanelAvatar: React.FC<PanelAvatarProps> = ({\n avatarProps = {},\n textProps = {},\n textLink = 'Administrar Cuenta',\n SubscriptionImageComponent = null,\n}) => {\n const { user, config } = useSession();\n const { sx: sxTextProps, ...textRestProps } = textProps;\n return (\n <Box px={1.5} py={1} display=\"flex\" alignItems=\"center\">\n <Box mr={1} position=\"relative\">\n <Avatar\n sx={{ width: 40, height: 40, ...avatarProps?.sx }}\n src={user?.avatar as string}\n {...avatarProps}\n />\n {SubscriptionImageComponent}\n </Box>\n <Box>\n <Box mb={0}>{decodeURIComponent(user?.name as string)}</Box>\n <Link href={config?.urlPortal} sx={{ textDecoration: 'none' }}>\n <Typography\n sx={{\n color: 'black',\n fontSize: '12px',\n ...sxTextProps,\n }}\n {...textRestProps}>\n {textLink}\n </Typography>\n </Link>\n </Box>\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAmCc;AACA;AACA;;AASd;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var panel_actions = require('./components/panel/panel.actions.js');
|
|
|
14
14
|
var SessionProvider = require('./components/session/SessionProvider.js');
|
|
15
15
|
var PaywallSubscription = require('./components/paywall/PaywallSubscription.js');
|
|
16
16
|
var Paywall = require('./components/paywall/Paywall.js');
|
|
17
|
+
var index = require('./shared/constants/index.js');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -33,4 +34,8 @@ exports.panelStoreAction = panel_actions.panelStoreAction;
|
|
|
33
34
|
exports.SessionProvider = SessionProvider.SessionProvider;
|
|
34
35
|
exports.PaywallSubscription = PaywallSubscription.PaywallSubscription;
|
|
35
36
|
exports.Paywall = Paywall.Paywall;
|
|
37
|
+
exports.COOKIE_DOMAIN = index.COOKIE_DOMAIN;
|
|
38
|
+
exports.COOKIE_TOKEN_NAME = index.COOKIE_TOKEN_NAME;
|
|
39
|
+
exports.URI = index.URI;
|
|
40
|
+
exports.URL_PORTAL = index.URL_PORTAL;
|
|
36
41
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var generateUtilityClasses = require('../../../utils/esm/generateUtilityClasses/generateUtilityClasses.js');
|
|
6
5
|
var generateUtilityClass = require('../../../utils/esm/generateUtilityClass/generateUtilityClass.js');
|
|
6
|
+
var generateUtilityClasses = require('../../../utils/esm/generateUtilityClasses/generateUtilityClasses.js');
|
|
7
7
|
|
|
8
8
|
function getTypographyUtilityClass(slot) {
|
|
9
9
|
return generateUtilityClass.default('MuiTypography', slot);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const URI = process.env.NEXT_PUBLIC_URI || '';
|
|
4
|
+
const URL_PORTAL = process.env.NEXT_PUBLIC_URL_PORTAL || '';
|
|
5
|
+
const COOKIE_TOKEN_NAME = process.env.NEXT_PUBLIC_COOKIE_TOKEN_NAME || '';
|
|
6
|
+
const COOKIE_DOMAIN = process.env.NEXT_PUBLIC_COOKIE_DOMAIN || '';
|
|
7
|
+
|
|
8
|
+
exports.COOKIE_DOMAIN = COOKIE_DOMAIN;
|
|
9
|
+
exports.COOKIE_TOKEN_NAME = COOKIE_TOKEN_NAME;
|
|
10
|
+
exports.URI = URI;
|
|
11
|
+
exports.URL_PORTAL = URL_PORTAL;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/shared/constants/index.ts"],"sourcesContent":["export const URI = process.env.NEXT_PUBLIC_URI || '';\nexport const URL_PORTAL = process.env.NEXT_PUBLIC_URL_PORTAL || '';\nexport const COOKIE_TOKEN_NAME = process.env.NEXT_PUBLIC_COOKIE_TOKEN_NAME || '';\nexport const COOKIE_DOMAIN = process.env.NEXT_PUBLIC_COOKIE_DOMAIN || '';\n"],"names":[],"mappings":";;AAAO,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI;AAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI;AACzD,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI;AACvE,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,IAAI;;;;;;;"}
|
|
@@ -4,10 +4,16 @@ import { useSession } from '../session/session.hooks.js';
|
|
|
4
4
|
import Box from '../../node_modules/@mui/material/esm/Box/Box.js';
|
|
5
5
|
import Avatar from '../../node_modules/@mui/material/esm/Avatar/Avatar.js';
|
|
6
6
|
import Link from '../../node_modules/@mui/material/esm/Link/Link.js';
|
|
7
|
+
import Typography from '../../node_modules/@mui/material/esm/Typography/Typography.js';
|
|
7
8
|
|
|
8
|
-
const PanelAvatar = ({ avatarProps, textLink = '
|
|
9
|
+
const PanelAvatar = ({ avatarProps = {}, textProps = {}, textLink = 'Administrar Cuenta', SubscriptionImageComponent = null, }) => {
|
|
9
10
|
const { user, config } = useSession();
|
|
10
|
-
|
|
11
|
+
const { sx: sxTextProps, ...textRestProps } = textProps;
|
|
12
|
+
return (jsxs(Box, { px: 1.5, py: 1, display: "flex", alignItems: "center", children: [jsxs(Box, { mr: 1, position: "relative", children: [jsx(Avatar, { sx: { width: 40, height: 40, ...avatarProps?.sx }, src: user?.avatar, ...avatarProps }), SubscriptionImageComponent] }), jsxs(Box, { children: [jsx(Box, { mb: 0, children: decodeURIComponent(user?.name) }), jsx(Link, { href: config?.urlPortal, sx: { textDecoration: 'none' }, children: jsx(Typography, { sx: {
|
|
13
|
+
color: 'black',
|
|
14
|
+
fontSize: '12px',
|
|
15
|
+
...sxTextProps,
|
|
16
|
+
}, ...textRestProps, children: textLink }) })] })] }));
|
|
11
17
|
};
|
|
12
18
|
|
|
13
19
|
export { PanelAvatar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelAvatar.js","sources":["../../../../src/components/panel/PanelAvatar.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { Box, Avatar, Link, AvatarProps,
|
|
1
|
+
{"version":3,"file":"PanelAvatar.js","sources":["../../../../src/components/panel/PanelAvatar.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { Box, Avatar, Link, AvatarProps, Typography, TypographyProps } from '@mui/material';\nimport { useSession } from '../session/session.hooks';\n\nexport interface PanelAvatarProps {\n avatarProps?: AvatarProps;\n textProps?: TypographyProps;\n textLink?: string;\n SubscriptionImageComponent?: React.ReactNode | null;\n}\n\nexport const PanelAvatar: React.FC<PanelAvatarProps> = ({\n avatarProps = {},\n textProps = {},\n textLink = 'Administrar Cuenta',\n SubscriptionImageComponent = null,\n}) => {\n const { user, config } = useSession();\n const { sx: sxTextProps, ...textRestProps } = textProps;\n return (\n <Box px={1.5} py={1} display=\"flex\" alignItems=\"center\">\n <Box mr={1} position=\"relative\">\n <Avatar\n sx={{ width: 40, height: 40, ...avatarProps?.sx }}\n src={user?.avatar as string}\n {...avatarProps}\n />\n {SubscriptionImageComponent}\n </Box>\n <Box>\n <Box mb={0}>{decodeURIComponent(user?.name as string)}</Box>\n <Link href={config?.urlPortal} sx={{ textDecoration: 'none' }}>\n <Typography\n sx={{\n color: 'black',\n fontSize: '12px',\n ...sxTextProps,\n }}\n {...textRestProps}>\n {textLink}\n </Typography>\n </Link>\n </Box>\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;AAmCc;AACA;AACA;;AASd;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -12,4 +12,5 @@ export { handleLogout, handlePanelClick, panelStoreAction } from './components/p
|
|
|
12
12
|
export { SessionProvider } from './components/session/SessionProvider.js';
|
|
13
13
|
export { PaywallSubscription } from './components/paywall/PaywallSubscription.js';
|
|
14
14
|
export { Paywall } from './components/paywall/Paywall.js';
|
|
15
|
+
export { COOKIE_DOMAIN, COOKIE_TOKEN_NAME, URI, URL_PORTAL } from './shared/constants/index.js';
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import generateUtilityClasses from '../../../utils/esm/generateUtilityClasses/generateUtilityClasses.js';
|
|
2
1
|
import generateUtilityClass from '../../../utils/esm/generateUtilityClass/generateUtilityClass.js';
|
|
2
|
+
import generateUtilityClasses from '../../../utils/esm/generateUtilityClasses/generateUtilityClasses.js';
|
|
3
3
|
|
|
4
4
|
function getTypographyUtilityClass(slot) {
|
|
5
5
|
return generateUtilityClass('MuiTypography', slot);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const URI = process.env.NEXT_PUBLIC_URI || '';
|
|
2
|
+
const URL_PORTAL = process.env.NEXT_PUBLIC_URL_PORTAL || '';
|
|
3
|
+
const COOKIE_TOKEN_NAME = process.env.NEXT_PUBLIC_COOKIE_TOKEN_NAME || '';
|
|
4
|
+
const COOKIE_DOMAIN = process.env.NEXT_PUBLIC_COOKIE_DOMAIN || '';
|
|
5
|
+
|
|
6
|
+
export { COOKIE_DOMAIN, COOKIE_TOKEN_NAME, URI, URL_PORTAL };
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/shared/constants/index.ts"],"sourcesContent":["export const URI = process.env.NEXT_PUBLIC_URI || '';\nexport const URL_PORTAL = process.env.NEXT_PUBLIC_URL_PORTAL || '';\nexport const COOKIE_TOKEN_NAME = process.env.NEXT_PUBLIC_COOKIE_TOKEN_NAME || '';\nexport const COOKIE_DOMAIN = process.env.NEXT_PUBLIC_COOKIE_DOMAIN || '';\n"],"names":[],"mappings":"AAAO,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI;AAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI;AACzD,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI;AACvE,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,IAAI;;;;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AvatarProps } from '@mui/material';
|
|
2
|
+
import { AvatarProps, TypographyProps } from '@mui/material';
|
|
3
3
|
export interface PanelAvatarProps {
|
|
4
4
|
avatarProps?: AvatarProps;
|
|
5
|
+
textProps?: TypographyProps;
|
|
5
6
|
textLink?: string;
|
|
6
7
|
SubscriptionImageComponent?: React.ReactNode | null;
|
|
7
8
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrawerProps, AvatarProps, BoxProps, DividerProps, ButtonProps, ListProps, ListItemProps, ListItemTextProps
|
|
1
|
+
import { DrawerProps, AvatarProps, TypographyProps, BoxProps, DividerProps, ButtonProps, ListProps, ListItemProps, ListItemTextProps } from '@mui/material';
|
|
2
2
|
import React, { FC } from 'react';
|
|
3
3
|
import * as _cobuildlab_react_simple_state from '@cobuildlab/react-simple-state';
|
|
4
4
|
|
|
@@ -11,6 +11,7 @@ declare const Panel: React.FC<PanelProps>;
|
|
|
11
11
|
|
|
12
12
|
interface PanelAvatarProps {
|
|
13
13
|
avatarProps?: AvatarProps;
|
|
14
|
+
textProps?: TypographyProps;
|
|
14
15
|
textLink?: string;
|
|
15
16
|
SubscriptionImageComponent?: React.ReactNode | null;
|
|
16
17
|
}
|
|
@@ -120,5 +121,10 @@ interface PaywallProps {
|
|
|
120
121
|
}
|
|
121
122
|
declare const Paywall: React.FC<PaywallProps>;
|
|
122
123
|
|
|
123
|
-
|
|
124
|
+
declare const URI: string;
|
|
125
|
+
declare const URL_PORTAL: string;
|
|
126
|
+
declare const COOKIE_TOKEN_NAME: string;
|
|
127
|
+
declare const COOKIE_DOMAIN: string;
|
|
128
|
+
|
|
129
|
+
export { COOKIE_DOMAIN, COOKIE_TOKEN_NAME, Panel, PanelAvatar, PanelButton, PanelDivider, PanelFooter, PanelHeader, PanelItem, PanelListItems, PanelSubscriptionIcon, Paywall, PaywallSubscription, SessionProvider, URI, URL_PORTAL, handleLogout, handlePanelClick, panelStore, panelStoreAction };
|
|
124
130
|
export type { PanelAvatarProps, PanelButtonProps, PanelDividerProps, PanelFooterProps, PanelHeaderProps, PanelItemProps, PanelListRoute, PanelProps, PanelStoreAction, PanelSubscriptionIconProps, PaywallProps, PaywallSubscriptionProps };
|