react-easy-wall 1.1.17 → 1.1.19

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.
@@ -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 = 'Admin Account', SubscriptionImageComponent = null, }) => {
11
+ const PanelAvatar = ({ avatarProps = {}, textProps = {}, textLink = 'Administrar Cuenta', SubscriptionImageComponent = null, }) => {
11
12
  const { user, config } = session_hooks.useSession();
12
- 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, children: jsxRuntime.jsx(Box.default, { fontSize: 12, children: textLink }) })] })] }));
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, BoxProps } from '@mui/material';\nimport { useSession } from '../session/session.hooks';\n\nexport interface PanelAvatarProps {\n avatarProps?: AvatarProps;\n textLink?: string;\n SubscriptionImageComponent?: React.ReactNode | null;\n}\n\nexport const PanelAvatar: React.FC<PanelAvatarProps> = ({\n avatarProps,\n textLink = 'Admin Account',\n SubscriptionImageComponent = null,\n}) => {\n const { user, config } = useSession();\n\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}>\n <Box fontSize={12}>{textLink}</Box>\n </Link>\n </Box>\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAWO;;;AAyBP;;"}
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;;"}
@@ -3,13 +3,12 @@
3
3
 
4
4
  var session_hooks = require('../session/session.hooks.js');
5
5
 
6
- const Paywall = ({ children, post, postTypeField, postType, PaywallSubscriptionComponent, PaywallRegisterComponent, }) => {
6
+ const Paywall = ({ children, PaywallSubscriptionComponent, PaywallRegisterComponent, postPremium = false, postRegister = false, }) => {
7
7
  const { user, subscription } = session_hooks.useSession();
8
- const postTypeValue = post[postTypeField];
9
- if (!subscription && post && postTypeValue && postTypeValue === postType) {
8
+ if (!subscription && postPremium) {
10
9
  return PaywallSubscriptionComponent;
11
10
  }
12
- if (!user && post && postTypeValue && postTypeValue === postType) {
11
+ if (!(user && postRegister)) {
13
12
  return PaywallRegisterComponent;
14
13
  }
15
14
  return children;
@@ -1 +1 @@
1
- {"version":3,"file":"Paywall.js","sources":["../../../../src/components/paywall/Paywall.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { useSession } from '../session/session.hooks';\nimport { PaywallSubscription } from './PaywallSubscription';\n\nexport interface PaywallProps {\n children?: React.ReactNode;\n PaywallSubscriptionComponent?: React.ReactNode;\n PaywallRegisterComponent?: React.ReactNode;\n post?: any;\n postTypeField?: string;\n postType?: string;\n}\n\nexport const Paywall: React.FC<PaywallProps> = ({\n children,\n post,\n postTypeField,\n postType,\n PaywallSubscriptionComponent,\n PaywallRegisterComponent,\n}) => {\n const { user, subscription } = useSession();\n const postTypeValue = post[postTypeField as string];\n if (!subscription && post && postTypeValue && postTypeValue === postType) {\n return PaywallSubscriptionComponent;\n }\n\n if (!user && post && postTypeValue && postTypeValue === postType) {\n return PaywallRegisterComponent;\n }\n\n return children;\n};\n"],"names":[],"mappings":";;;;;AAcO;;AASL;;AAEE;;;AAIA;;AAGF;AACF;;"}
1
+ {"version":3,"file":"Paywall.js","sources":["../../../../src/components/paywall/Paywall.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { useSession } from '../session/session.hooks';\n\nexport interface PaywallProps {\n children?: React.ReactNode;\n PaywallSubscriptionComponent?: React.ReactNode;\n PaywallRegisterComponent?: React.ReactNode;\n postPremium?: boolean;\n postRegister?: boolean;\n}\n\nexport const Paywall: React.FC<PaywallProps> = ({\n children,\n PaywallSubscriptionComponent,\n PaywallRegisterComponent,\n postPremium = false,\n postRegister = false,\n}) => {\n const { user, subscription } = useSession();\n\n if (!subscription && postPremium) {\n return PaywallSubscriptionComponent;\n }\n\n if (!(user && postRegister)) {\n return PaywallRegisterComponent;\n }\n\n return children;\n};\n"],"names":[],"mappings":";;;;;;;AAqBE;AACE;;AAGF;AACE;;AAGF;AACF;;"}
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
@@ -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 = 'Admin Account', SubscriptionImageComponent = null, }) => {
9
+ const PanelAvatar = ({ avatarProps = {}, textProps = {}, textLink = 'Administrar Cuenta', SubscriptionImageComponent = null, }) => {
9
10
  const { user, config } = useSession();
10
- 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, children: jsx(Box, { fontSize: 12, children: textLink }) })] })] }));
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, BoxProps } from '@mui/material';\nimport { useSession } from '../session/session.hooks';\n\nexport interface PanelAvatarProps {\n avatarProps?: AvatarProps;\n textLink?: string;\n SubscriptionImageComponent?: React.ReactNode | null;\n}\n\nexport const PanelAvatar: React.FC<PanelAvatarProps> = ({\n avatarProps,\n textLink = 'Admin Account',\n SubscriptionImageComponent = null,\n}) => {\n const { user, config } = useSession();\n\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}>\n <Box fontSize={12}>{textLink}</Box>\n </Link>\n </Box>\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAWO;;;AAyBP;;"}
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;;"}
@@ -1,13 +1,12 @@
1
1
  "use client";
2
2
  import { useSession } from '../session/session.hooks.js';
3
3
 
4
- const Paywall = ({ children, post, postTypeField, postType, PaywallSubscriptionComponent, PaywallRegisterComponent, }) => {
4
+ const Paywall = ({ children, PaywallSubscriptionComponent, PaywallRegisterComponent, postPremium = false, postRegister = false, }) => {
5
5
  const { user, subscription } = useSession();
6
- const postTypeValue = post[postTypeField];
7
- if (!subscription && post && postTypeValue && postTypeValue === postType) {
6
+ if (!subscription && postPremium) {
8
7
  return PaywallSubscriptionComponent;
9
8
  }
10
- if (!user && post && postTypeValue && postTypeValue === postType) {
9
+ if (!(user && postRegister)) {
11
10
  return PaywallRegisterComponent;
12
11
  }
13
12
  return children;
@@ -1 +1 @@
1
- {"version":3,"file":"Paywall.js","sources":["../../../../src/components/paywall/Paywall.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { useSession } from '../session/session.hooks';\nimport { PaywallSubscription } from './PaywallSubscription';\n\nexport interface PaywallProps {\n children?: React.ReactNode;\n PaywallSubscriptionComponent?: React.ReactNode;\n PaywallRegisterComponent?: React.ReactNode;\n post?: any;\n postTypeField?: string;\n postType?: string;\n}\n\nexport const Paywall: React.FC<PaywallProps> = ({\n children,\n post,\n postTypeField,\n postType,\n PaywallSubscriptionComponent,\n PaywallRegisterComponent,\n}) => {\n const { user, subscription } = useSession();\n const postTypeValue = post[postTypeField as string];\n if (!subscription && post && postTypeValue && postTypeValue === postType) {\n return PaywallSubscriptionComponent;\n }\n\n if (!user && post && postTypeValue && postTypeValue === postType) {\n return PaywallRegisterComponent;\n }\n\n return children;\n};\n"],"names":[],"mappings":";;;AAcO;;AASL;;AAEE;;;AAIA;;AAGF;AACF;;"}
1
+ {"version":3,"file":"Paywall.js","sources":["../../../../src/components/paywall/Paywall.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { useSession } from '../session/session.hooks';\n\nexport interface PaywallProps {\n children?: React.ReactNode;\n PaywallSubscriptionComponent?: React.ReactNode;\n PaywallRegisterComponent?: React.ReactNode;\n postPremium?: boolean;\n postRegister?: boolean;\n}\n\nexport const Paywall: React.FC<PaywallProps> = ({\n children,\n PaywallSubscriptionComponent,\n PaywallRegisterComponent,\n postPremium = false,\n postRegister = false,\n}) => {\n const { user, subscription } = useSession();\n\n if (!subscription && postPremium) {\n return PaywallSubscriptionComponent;\n }\n\n if (!(user && postRegister)) {\n return PaywallRegisterComponent;\n }\n\n return children;\n};\n"],"names":[],"mappings":";;;;;AAqBE;AACE;;AAGF;AACE;;AAGF;AACF;;"}
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
@@ -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
  }
@@ -3,8 +3,7 @@ export interface PaywallProps {
3
3
  children?: React.ReactNode;
4
4
  PaywallSubscriptionComponent?: React.ReactNode;
5
5
  PaywallRegisterComponent?: React.ReactNode;
6
- post?: any;
7
- postTypeField?: string;
8
- postType?: string;
6
+ postPremium?: boolean;
7
+ postRegister?: boolean;
9
8
  }
10
9
  export declare const Paywall: React.FC<PaywallProps>;
@@ -1,3 +1,4 @@
1
1
  export * from './components/panel';
2
2
  export * from './components/session';
3
3
  export * from './components/paywall';
4
+ export * from './shared/constants';
@@ -0,0 +1,4 @@
1
+ export declare const URI: string;
2
+ export declare const URL_PORTAL: string;
3
+ export declare const COOKIE_TOKEN_NAME: string;
4
+ export declare const COOKIE_DOMAIN: string;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DrawerProps, AvatarProps, BoxProps, DividerProps, ButtonProps, ListProps, ListItemProps, ListItemTextProps, TypographyProps } from '@mui/material';
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
  }
@@ -114,11 +115,15 @@ interface PaywallProps {
114
115
  children?: React.ReactNode;
115
116
  PaywallSubscriptionComponent?: React.ReactNode;
116
117
  PaywallRegisterComponent?: React.ReactNode;
117
- post?: any;
118
- postTypeField?: string;
119
- postType?: string;
118
+ postPremium?: boolean;
119
+ postRegister?: boolean;
120
120
  }
121
121
  declare const Paywall: React.FC<PaywallProps>;
122
122
 
123
- export { Panel, PanelAvatar, PanelButton, PanelDivider, PanelFooter, PanelHeader, PanelItem, PanelListItems, PanelSubscriptionIcon, Paywall, PaywallSubscription, SessionProvider, handleLogout, handlePanelClick, panelStore, panelStoreAction };
123
+ declare const URI: string;
124
+ declare const URL_PORTAL: string;
125
+ declare const COOKIE_TOKEN_NAME: string;
126
+ declare const COOKIE_DOMAIN: string;
127
+
128
+ 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
129
  export type { PanelAvatarProps, PanelButtonProps, PanelDividerProps, PanelFooterProps, PanelHeaderProps, PanelItemProps, PanelListRoute, PanelProps, PanelStoreAction, PanelSubscriptionIconProps, PaywallProps, PaywallSubscriptionProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-easy-wall",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "main": "./dist/cjs/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/index.d.ts",