pytech-ui 1.0.13 → 1.0.14

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,3 +1,3 @@
1
1
  import Props from './types';
2
- declare const _default: ({ title, description, ogDescription, siteUrl, ogImage }: Props) => import("react").JSX.Element;
2
+ declare const _default: import("react").MemoExoticComponent<({ title, description, ogDescription, siteUrl, ogImage }: Props) => import("react").JSX.Element>;
3
3
  export default _default;
@@ -3,11 +3,11 @@ 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
- const head_1 = __importDefault(require("expo-router/head"));
7
- const expo_router_1 = require("expo-router");
8
6
  const react_1 = require("react");
7
+ const expo_router_1 = require("expo-router");
9
8
  const react_native_1 = require("react-native");
10
- exports.default = ({ title = 'Application', description, ogDescription, siteUrl, ogImage }) => {
9
+ const head_1 = __importDefault(require("expo-router/head"));
10
+ exports.default = (0, react_1.memo)(({ title = 'Pytech UI', description, ogDescription, siteUrl, ogImage }) => {
11
11
  const pathname = (0, expo_router_1.usePathname)();
12
12
  (0, react_1.useLayoutEffect)(() => {
13
13
  if (react_native_1.Platform.OS === 'web')
@@ -18,12 +18,12 @@ exports.default = ({ title = 'Application', description, ogDescription, siteUrl,
18
18
  <meta name="description" content={description}/>
19
19
  <meta property="og:type" content="website"/>
20
20
  <meta property="og:title" content={title}/>
21
- <meta property="og:description" content={ogDescription}/>
21
+ <meta property="og:description" content={ogDescription ?? description}/>
22
22
  <meta property="og:url" content={siteUrl}/>
23
23
  <meta property="og:image" content={ogImage}/>
24
24
  <meta name="twitter:card" content="summary_large_image"/>
25
25
  <meta name="twitter:title" content={title}/>
26
- <meta name="twitter:description" content={ogDescription}/>
26
+ <meta name="twitter:description" content={ogDescription ?? description}/>
27
27
  <meta name="twitter:image" content={ogImage}/>
28
28
  </head_1.default>);
29
- };
29
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pytech-ui",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Librería de componentes de UI para Pytech",
5
5
  "keywords": [
6
6
  "react-native",