@codesinger0/shared-components 1.1.73 → 1.1.74

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.
@@ -0,0 +1,66 @@
1
+ import React from 'react';
2
+ import { Helmet } from 'react-helmet-async';
3
+
4
+ const SEO = ({
5
+ title,
6
+ description,
7
+ image,
8
+ url,
9
+ type = 'website',
10
+ article = false,
11
+ publishedTime,
12
+ modifiedTime,
13
+ }) => {
14
+ // Default values
15
+ const defaultTitle = 'בת קיימא | סיורי ליקוט ותזונה אקולוגית - כל מה שרצית לדעת על צמחי בר אכילים';
16
+ const defaultDescription = 'בת קיימא - סיורי ליקוט, צמחי בר למאכל, קורס ליקוט, ארוחות בטבע, בישול שטח, סדנאות, אוכל מהטבע, צמחי מרפא, ללמוד ללקט, תזונה אקולוגית.';
17
+ const siteName = 'בת קיימא - ביה״ס לליקוט ובישול בטבע';
18
+ const defaultImage = 'https://batkayma.com/android-chrome-512x512.png';
19
+ const siteUrl = 'https://batkayma.com';
20
+
21
+ // Use provided values or defaults
22
+ const pageTitle = title || defaultTitle;
23
+ const pageDescription = description || defaultDescription;
24
+ const pageImage = image || defaultImage;
25
+ const pageUrl = url ? `${siteUrl}${url}` : siteUrl;
26
+
27
+ return (
28
+ <Helmet>
29
+ {/* Standard Meta Tags */}
30
+ <title>{pageTitle}</title>
31
+ <meta name="description" content={pageDescription} />
32
+
33
+ {/* Open Graph Meta Tags */}
34
+ <meta property="og:locale" content="he_IL" />
35
+ <meta property="og:type" content={article ? 'article' : type} />
36
+ <meta property="og:title" content={pageTitle} />
37
+ <meta property="og:description" content={pageDescription} />
38
+ <meta property="og:url" content={pageUrl} />
39
+ <meta property="og:site_name" content={siteName} />
40
+ <meta property="og:image" content={pageImage} />
41
+ <meta property="og:image:width" content="512" />
42
+ <meta property="og:image:height" content="512" />
43
+ <meta property="og:image:alt" content={pageTitle} />
44
+
45
+ {/* Article specific meta tags */}
46
+ {article && publishedTime && (
47
+ <meta property="article:published_time" content={publishedTime} />
48
+ )}
49
+ {article && modifiedTime && (
50
+ <meta property="article:modified_time" content={modifiedTime} />
51
+ )}
52
+
53
+ {/* Twitter Card Meta Tags */}
54
+ <meta name="twitter:card" content="summary_large_image" />
55
+ <meta name="twitter:title" content={pageTitle} />
56
+ <meta name="twitter:description" content={pageDescription} />
57
+ <meta name="twitter:image" content={pageImage} />
58
+ <meta name="twitter:image:alt" content={pageTitle} />
59
+
60
+ {/* Canonical URL */}
61
+ <link rel="canonical" href={pageUrl} />
62
+ </Helmet>
63
+ );
64
+ };
65
+
66
+ export default SEO;
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ export { default as AccessibilityMenu } from './components/AccessibilityMenu'
24
24
  export { default as FloatingWhatsAppButton } from './components/FloatingWhatsAppButton'
25
25
  export { default as FullscreenCarousel } from './components/FullscreenCarousel'
26
26
  export { default as UnderConstruction } from './components/UnderConstruction'
27
+ export { default as SEO } from './components/SEO'
27
28
 
28
29
  // Modals
29
30
  export { default as ItemDetailsModal } from './components/modals/ItemDetailsModal'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.73",
3
+ "version": "1.1.74",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [