@donotdev/ui 0.0.31 → 0.1.0

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.
Files changed (247) hide show
  1. package/LICENSE.md +3 -3
  2. package/dist/components/auth/AuthHeader.d.ts +2 -2
  3. package/dist/components/auth/AuthHeader.js +2 -2
  4. package/dist/components/auth/AuthMenu.d.ts +2 -2
  5. package/dist/components/auth/AuthMenu.js +1 -1
  6. package/dist/components/common/FeatureCard.js +1 -1
  7. package/dist/components/common/FeatureDisabled.d.ts +1 -1
  8. package/dist/components/common/FeatureDisabled.js +2 -2
  9. package/dist/components/common/ProgressBar.d.ts +1 -1
  10. package/dist/components/common/ProgressBar.js +2 -2
  11. package/dist/components/common/RedirectOverlay.d.ts +1 -1
  12. package/dist/components/common/RedirectOverlay.js +2 -2
  13. package/dist/components/common/Skeleton.d.ts +7 -7
  14. package/dist/components/common/Skeleton.js +8 -8
  15. package/dist/components/common/icon.d.ts +1 -1
  16. package/dist/components/common/icon.js +2 -2
  17. package/dist/components/common/index.d.ts +1 -1
  18. package/dist/components/common/index.js +1 -1
  19. package/dist/components/cookie-consent/ConsentBanner.d.ts +1 -1
  20. package/dist/components/cookie-consent/ConsentBanner.js +2 -2
  21. package/dist/components/cookie-consent/index.d.ts +1 -1
  22. package/dist/components/cookie-consent/index.js +1 -1
  23. package/dist/components/index.d.ts +1 -1
  24. package/dist/components/index.js +1 -1
  25. package/dist/components/layout/GameContainer.d.ts +1 -1
  26. package/dist/components/layout/GameContainer.js +2 -2
  27. package/dist/components/layout/GameFlow.d.ts +2 -2
  28. package/dist/components/layout/GameFlow.js +2 -2
  29. package/dist/components/layout/PageContainer.d.ts +1 -1
  30. package/dist/components/layout/PageContainer.js +2 -2
  31. package/dist/components/layout/components/Breadcrumbs.d.ts +1 -1
  32. package/dist/components/layout/components/Breadcrumbs.js +2 -2
  33. package/dist/components/layout/components/DropdownNavigation.d.ts +1 -1
  34. package/dist/components/layout/components/DropdownNavigation.js +2 -2
  35. package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts +1 -1
  36. package/dist/components/layout/components/FloatingLanguageSwitcher.js +2 -2
  37. package/dist/components/layout/components/Notifications.d.ts +4 -4
  38. package/dist/components/layout/components/Notifications.js +3 -3
  39. package/dist/components/layout/components/header/AppBranding.d.ts +2 -2
  40. package/dist/components/layout/components/header/AppBranding.js +2 -2
  41. package/dist/components/layout/components/header/AppIcon.d.ts +1 -1
  42. package/dist/components/layout/components/header/AppIcon.js +2 -2
  43. package/dist/components/layout/components/header/AppTitle.d.ts +1 -1
  44. package/dist/components/layout/components/header/AppTitle.js +2 -2
  45. package/dist/components/layout/components/header/CacheSettings.d.ts +1 -1
  46. package/dist/components/layout/components/header/CacheSettings.js +3 -3
  47. package/dist/components/layout/components/header/GameTitle.d.ts +1 -1
  48. package/dist/components/layout/components/header/GameTitle.js +2 -2
  49. package/dist/components/layout/components/header/HeaderMenu.d.ts +1 -1
  50. package/dist/components/layout/components/header/HeaderMenu.js +2 -2
  51. package/dist/components/layout/components/header/HeaderNavigation.d.ts +1 -1
  52. package/dist/components/layout/components/header/HeaderNavigation.js +2 -2
  53. package/dist/components/layout/components/header/SettingsMenu.d.ts +1 -1
  54. package/dist/components/layout/components/header/SettingsMenu.js +2 -2
  55. package/dist/components/layout/components/header/ThemeToggle.d.ts +1 -1
  56. package/dist/components/layout/components/header/ThemeToggle.js +2 -2
  57. package/dist/components/layout/components/index.d.ts +1 -1
  58. package/dist/components/layout/components/index.js +1 -1
  59. package/dist/components/layout/index.d.ts +1 -1
  60. package/dist/components/layout/index.js +1 -1
  61. package/dist/components/license/LicenseWatermark.d.ts +1 -1
  62. package/dist/components/license/LicenseWatermark.js +2 -2
  63. package/dist/components/license/watermarkData.js +1 -1
  64. package/dist/crud/components/CrudCardLink.d.ts +1 -1
  65. package/dist/crud/components/EntityCardList.js +1 -1
  66. package/dist/crud/components/EntityDisplayRenderer.js +1 -1
  67. package/dist/crud/components/EntityFormRenderer.d.ts +1 -1
  68. package/dist/crud/components/EntityFormRenderer.js +2 -2
  69. package/dist/crud/components/EntityList.js +1 -1
  70. package/dist/crud/components/EntityRecommendations.d.ts +1 -1
  71. package/dist/crud/components/EntityRecommendations.js +2 -2
  72. package/dist/crud/components/EntityWorkflow.js +1 -1
  73. package/dist/crud/components/Form.d.ts +10 -10
  74. package/dist/crud/components/Form.js +12 -12
  75. package/dist/crud/components/index.d.ts +1 -1
  76. package/dist/crud/components/index.js +1 -1
  77. package/dist/crud/crudImports.d.ts +1 -1
  78. package/dist/crud/crudImports.d.ts.map +1 -1
  79. package/dist/crud/crudImports.js +1 -1
  80. package/dist/crud/index.d.ts +1 -1
  81. package/dist/crud/index.js +1 -1
  82. package/dist/data/techLogos.d.ts +1 -1
  83. package/dist/data/techLogos.js +1 -1
  84. package/dist/dndev-next.css +176 -6
  85. package/dist/dndev.css +227 -6
  86. package/dist/index.d.ts +1 -1
  87. package/dist/index.js +1 -1
  88. package/dist/internal/common/DnDevErrorBoundary.d.ts +2 -2
  89. package/dist/internal/common/DnDevErrorBoundary.js +2 -2
  90. package/dist/internal/common/ErrorFallback.d.ts +1 -1
  91. package/dist/internal/common/ErrorFallback.js +2 -2
  92. package/dist/internal/common/GlobalErrorFallback.d.ts +1 -1
  93. package/dist/internal/common/GlobalErrorFallback.js +2 -2
  94. package/dist/internal/common/RouteErrorFallback.d.ts +1 -1
  95. package/dist/internal/common/RouteErrorFallback.js +2 -2
  96. package/dist/internal/devtools/DebugTools.js +1 -1
  97. package/dist/internal/devtools/components/AuthDebugButton.js +1 -1
  98. package/dist/internal/devtools/components/ConfigTab.js +1 -1
  99. package/dist/internal/devtools/components/CookieTab.js +1 -1
  100. package/dist/internal/devtools/components/DebugDialog.js +1 -1
  101. package/dist/internal/devtools/components/DesignTab.js +1 -1
  102. package/dist/internal/devtools/components/LayoutReset.js +2 -2
  103. package/dist/internal/devtools/components/MaskedValue.js +1 -1
  104. package/dist/internal/devtools/components/StoresTab.js +1 -1
  105. package/dist/internal/devtools/components/index.d.ts +1 -1
  106. package/dist/internal/devtools/components/index.js +1 -1
  107. package/dist/internal/devtools/index.d.ts +1 -1
  108. package/dist/internal/devtools/index.js +1 -1
  109. package/dist/internal/devtools/types.d.ts +9 -9
  110. package/dist/internal/devtools/utils/envVarDiscovery.js +1 -1
  111. package/dist/internal/devtools/utils/index.d.ts +1 -1
  112. package/dist/internal/devtools/utils/index.js +1 -1
  113. package/dist/internal/devtools/utils/maskSensitive.js +1 -1
  114. package/dist/internal/devtools/utils/virtualModuleInspector.js +1 -1
  115. package/dist/internal/initializers/BaseStoresInitializer.d.ts +3 -3
  116. package/dist/internal/initializers/BaseStoresInitializer.js +2 -2
  117. package/dist/internal/initializers/NextJsStoresInitializer.d.ts +1 -1
  118. package/dist/internal/initializers/NextJsStoresInitializer.js +2 -2
  119. package/dist/internal/initializers/ViteStoresInitializer.d.ts +1 -1
  120. package/dist/internal/initializers/ViteStoresInitializer.js +2 -2
  121. package/dist/internal/initializers/index.d.ts +1 -1
  122. package/dist/internal/initializers/index.js +1 -1
  123. package/dist/internal/layout/DnDevLayout.d.ts +2 -2
  124. package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
  125. package/dist/internal/layout/DnDevLayout.js +7 -3
  126. package/dist/internal/layout/components/AutoMetaTags.d.ts +4 -2
  127. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  128. package/dist/internal/layout/components/AutoMetaTags.js +143 -39
  129. package/dist/internal/layout/components/FaviconHead.d.ts +1 -1
  130. package/dist/internal/layout/components/FaviconHead.js +2 -2
  131. package/dist/internal/layout/components/FontPreloadLinks.d.ts +1 -1
  132. package/dist/internal/layout/components/FontPreloadLinks.js +1 -1
  133. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts +1 -1
  134. package/dist/internal/layout/components/NextJsAutoMetaTags.js +2 -2
  135. package/dist/internal/layout/components/PWAUpdateNotification.d.ts +1 -1
  136. package/dist/internal/layout/components/PWAUpdateNotification.js +2 -2
  137. package/dist/internal/layout/components/PerformanceHints.js +1 -1
  138. package/dist/internal/layout/components/footer/FooterBranding.d.ts +1 -1
  139. package/dist/internal/layout/components/footer/FooterBranding.js +2 -2
  140. package/dist/internal/layout/components/footer/FooterCopyright.d.ts +1 -1
  141. package/dist/internal/layout/components/footer/FooterCopyright.js +2 -2
  142. package/dist/internal/layout/components/footer/FooterLegalLinks.d.ts +1 -1
  143. package/dist/internal/layout/components/footer/FooterLegalLinks.js +2 -2
  144. package/dist/internal/layout/components/index.d.ts +1 -1
  145. package/dist/internal/layout/components/index.js +1 -1
  146. package/dist/internal/layout/config/defaults.js +1 -1
  147. package/dist/internal/layout/config/index.d.ts +1 -1
  148. package/dist/internal/layout/config/index.js +1 -1
  149. package/dist/internal/layout/config/presets/admin.d.ts +1 -1
  150. package/dist/internal/layout/config/presets/blog.d.ts +1 -1
  151. package/dist/internal/layout/config/presets/docs.js +1 -1
  152. package/dist/internal/layout/config/presets/game.js +1 -1
  153. package/dist/internal/layout/config/presets/index.d.ts +1 -1
  154. package/dist/internal/layout/config/presets/landing.js +1 -1
  155. package/dist/internal/layout/config/presets/moolti.js +1 -1
  156. package/dist/internal/layout/config/presets/plain.d.ts +2 -2
  157. package/dist/internal/layout/config/presets/plain.d.ts.map +1 -1
  158. package/dist/internal/layout/config/presets/plain.js +12 -1
  159. package/dist/internal/layout/renderers/index.d.ts +1 -1
  160. package/dist/internal/layout/renderers/index.js +1 -1
  161. package/dist/internal/layout/zones/DnDevFooter.js +1 -1
  162. package/dist/internal/layout/zones/DnDevHeader.js +1 -1
  163. package/dist/internal/layout/zones/DnDevMergedBar.js +1 -1
  164. package/dist/internal/layout/zones/DnDevSidebar.js +1 -1
  165. package/dist/internal/layout/zones/index.d.ts +1 -1
  166. package/dist/internal/layout/zones/index.js +1 -1
  167. package/dist/internal/providers/NavigationProvider.d.ts +1 -1
  168. package/dist/internal/providers/NavigationProvider.js +2 -2
  169. package/dist/internal/providers/SentryInitializer.d.ts +1 -1
  170. package/dist/internal/providers/SentryInitializer.js +2 -2
  171. package/dist/internal/providers/UIProviders.d.ts +1 -1
  172. package/dist/internal/providers/UIProviders.js +3 -3
  173. package/dist/internal/providers/index.d.ts +1 -1
  174. package/dist/internal/providers/index.js +1 -1
  175. package/dist/next.d.ts +1 -1
  176. package/dist/next.js +1 -1
  177. package/dist/providers/NextJsAppProviders.d.ts +1 -1
  178. package/dist/providers/NextJsAppProviders.js +2 -2
  179. package/dist/providers/ViteAppProviders.d.ts +1 -1
  180. package/dist/providers/ViteAppProviders.js +2 -2
  181. package/dist/providers/index.d.ts +1 -1
  182. package/dist/providers/index.js +1 -1
  183. package/dist/routing/404.d.ts +2 -2
  184. package/dist/routing/404.js +3 -3
  185. package/dist/routing/AuthGuard.d.ts +8 -8
  186. package/dist/routing/AuthGuard.js +8 -8
  187. package/dist/routing/AuthGuardFallback.d.ts +1 -1
  188. package/dist/routing/AuthGuardFallback.js +2 -2
  189. package/dist/routing/DnDevNavigationMenu.d.ts +1 -1
  190. package/dist/routing/DnDevNavigationMenu.js +2 -2
  191. package/dist/routing/GoTo.js +1 -1
  192. package/dist/routing/GoToDialog.js +1 -1
  193. package/dist/routing/GoToInput.js +1 -1
  194. package/dist/routing/GoToWrapper.d.ts +1 -1
  195. package/dist/routing/GoToWrapper.js +2 -2
  196. package/dist/routing/Link.d.ts +2 -2
  197. package/dist/routing/Link.js +2 -2
  198. package/dist/routing/NavigationItem.d.ts +1 -1
  199. package/dist/routing/NavigationItem.js +2 -2
  200. package/dist/routing/hooks/hooks.next.d.ts +1 -1
  201. package/dist/routing/hooks/hooks.vite.d.ts +1 -1
  202. package/dist/routing/hooks/index.d.ts +1 -1
  203. package/dist/routing/hooks/index.js +1 -1
  204. package/dist/routing/hooks/types.d.ts +1 -1
  205. package/dist/routing/hooks/useLocation.next.js +1 -1
  206. package/dist/routing/hooks/useLocation.vite.js +1 -1
  207. package/dist/routing/hooks/useNavigate.next.js +1 -1
  208. package/dist/routing/hooks/useNavigate.vite.js +1 -1
  209. package/dist/routing/hooks/useQueryParams.next.js +1 -1
  210. package/dist/routing/hooks/useQueryParams.vite.js +1 -1
  211. package/dist/routing/hooks/useRedirectGuard.next.js +1 -1
  212. package/dist/routing/hooks/useRedirectGuard.vite.js +1 -1
  213. package/dist/routing/hooks/useRouteParam.next.js +1 -1
  214. package/dist/routing/hooks/useRouteParam.vite.js +1 -1
  215. package/dist/routing/index.d.ts +1 -1
  216. package/dist/routing/index.js +1 -1
  217. package/dist/routing/useGoTo.js +1 -1
  218. package/dist/routing/useNavigation.d.ts +2 -2
  219. package/dist/routing/useNavigation.js +3 -3
  220. package/dist/routing/useRouteDiscovery.d.ts +7 -7
  221. package/dist/routing/useRouteDiscovery.js +6 -6
  222. package/dist/styles/index.css +227 -6
  223. package/dist/styles/index.d.ts +1 -1
  224. package/dist/styles/index.js +1 -1
  225. package/dist/styles/layoutConstants.d.ts +6 -6
  226. package/dist/styles/layoutConstants.js +5 -5
  227. package/dist/utils/assetResolver.d.ts +5 -5
  228. package/dist/utils/assetResolver.js +4 -4
  229. package/dist/utils/index.d.ts +1 -1
  230. package/dist/utils/index.js +1 -1
  231. package/dist/utils/sanitizeSvg.js +1 -1
  232. package/dist/utils/tList.js +1 -1
  233. package/dist/utils/useAuthSafe.js +1 -1
  234. package/dist/utils/useAuthVisibility.js +1 -1
  235. package/dist/utils/useBillingVisibility.js +1 -1
  236. package/dist/utils/useCrudSafe.js +1 -1
  237. package/dist/utils/useFormStoreSafe.js +1 -1
  238. package/dist/utils/useOAuthSafe.d.ts +1 -1
  239. package/dist/utils/useStripeBillingSafe.js +1 -1
  240. package/dist/vite-routing/AppRoutes.js +1 -1
  241. package/dist/vite-routing/RootLayout.d.ts +1 -1
  242. package/dist/vite-routing/RootLayout.js +5 -5
  243. package/dist/vite-routing/index.d.ts +1 -1
  244. package/dist/vite-routing/index.js +1 -1
  245. package/dist/vite.d.ts +1 -1
  246. package/dist/vite.js +1 -1
  247. package/package.json +7 -7
@@ -3,48 +3,22 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
3
3
  // packages/ui/src/internal/layout/components/AutoMetaTags.tsx
4
4
  /**
5
5
  * @fileoverview Automatic meta tags system integrated with DnDev framework
6
- * @description Zero-config SEO with route-based meta generation - no defaults, only explicit page definitions
6
+ * @description Zero-config SEO/GEO with route-based meta generation.
7
+ * All features ON by default, opt-out per feature via appConfig.seo.{feature}: false.
7
8
  *
8
- * This component provides comprehensive SEO meta tag management with automatic
9
- * generation based on route metadata and translation files. It ensures optimal
10
- * search engine optimization without requiring manual configuration for each page.
11
- *
12
- * **Key Features:**
9
+ * Features:
13
10
  * - Zero-configuration SEO setup
14
- * - Automatic meta tag generation from route data
15
- * - Open Graph and Twitter Card support
11
+ * - Open Graph and Twitter Card support with image dimensions
12
+ * - hreflang alternate links (auto from i18n config)
13
+ * - Speculation Rules API (prefetch/prerender for Chromium)
14
+ * - BreadcrumbList + WebSite JSON-LD structured data
16
15
  * - Internationalization integration
17
16
  * - Canonical URL management
18
- * - Structured data support
19
- *
20
- * **SEO Capabilities:**
21
- * - Dynamic title and description generation
22
- * - Social media sharing optimization
23
- * - Search engine indexing control
24
- * - Multi-language support
25
- * - Image and video metadata
26
17
  *
27
- * **Framework Integration:**
28
- * - Uses Helmet for meta tag management
29
- * - Integrates with i18n system for translations
30
- * - Leverages platform location for routing
31
- * - Supports both static and dynamic content
32
- *
33
- * @version 0.0.1
18
+ * @version 0.2.0
34
19
  * @since 0.0.1
35
20
  * @author AMBROISE PARK Consulting
36
- *
37
- * **Usage Pattern:**
38
- * ```tsx
39
- * <AutoMetaTags
40
- * config={{
41
- * siteName: "My App",
42
- * defaultImage: "/og-image.jpg"
43
- * }}
44
- * />
45
- * ```
46
21
  */
47
- // packages/core/ui/src/components/layout/components/AutoMetaTags.tsx
48
22
  import { useMemo } from 'react';
49
23
  import { Helmet } from 'react-helmet-async';
50
24
  import { useTranslation, useIsClient } from '@donotdev/core';
@@ -105,6 +79,113 @@ function getRouteMetadata(pathname, isClient) {
105
79
  }
106
80
  return {};
107
81
  }
82
+ /**
83
+ * Build BreadcrumbList JSON-LD from URL path segments
84
+ */
85
+ function buildBreadcrumbSchema(pathname, baseUrl, siteName) {
86
+ const segments = pathname.split('/').filter(Boolean);
87
+ const items = [
88
+ {
89
+ '@type': 'ListItem',
90
+ position: 1,
91
+ name: siteName,
92
+ item: baseUrl || '/',
93
+ },
94
+ ];
95
+ let currentPath = '';
96
+ for (let i = 0; i < segments.length; i++) {
97
+ currentPath += `/${segments[i]}`;
98
+ items.push({
99
+ '@type': 'ListItem',
100
+ position: i + 2,
101
+ name: segments[i]
102
+ .split('-')
103
+ .map((w) => w.charAt(0).toUpperCase() + w.slice(1))
104
+ .join(' '),
105
+ item: `${baseUrl}${currentPath}`,
106
+ });
107
+ }
108
+ return {
109
+ '@context': 'https://schema.org',
110
+ '@type': 'BreadcrumbList',
111
+ itemListElement: items,
112
+ };
113
+ }
114
+ /**
115
+ * Build WebSite JSON-LD with SearchAction (sitelinks search box)
116
+ */
117
+ function buildWebSiteSchema(baseUrl, siteName) {
118
+ return {
119
+ '@context': 'https://schema.org',
120
+ '@type': 'WebSite',
121
+ name: siteName,
122
+ url: baseUrl || '/',
123
+ potentialAction: {
124
+ '@type': 'SearchAction',
125
+ target: {
126
+ '@type': 'EntryPoint',
127
+ urlTemplate: `${baseUrl}/search?q={search_term_string}`,
128
+ },
129
+ 'query-input': 'required name=search_term_string',
130
+ },
131
+ };
132
+ }
133
+ /**
134
+ * Build Organization JSON-LD from app metadata (links, description)
135
+ * Only emitted on homepage when links are configured
136
+ */
137
+ function buildOrganizationSchema(baseUrl, siteName, description, links) {
138
+ const sameAs = links
139
+ ? Object.values(links).filter((url) => !!url)
140
+ : [];
141
+ return {
142
+ '@context': 'https://schema.org',
143
+ '@type': 'Organization',
144
+ name: siteName,
145
+ url: baseUrl || '/',
146
+ ...(description && { description }),
147
+ ...(sameAs.length > 0 && { sameAs }),
148
+ logo: {
149
+ '@type': 'ImageObject',
150
+ url: `${baseUrl}/icon-512x512.png`,
151
+ },
152
+ };
153
+ }
154
+ /**
155
+ * Build speculation rules for prefetch/prerender of public internal links
156
+ * Excludes auth-gated and API routes
157
+ */
158
+ function buildSpeculationRules() {
159
+ return {
160
+ prerender: [
161
+ {
162
+ where: {
163
+ and: [
164
+ { href_matches: '/*' },
165
+ { not: { href_matches: '/api/*' } },
166
+ { not: { href_matches: '/admin/*' } },
167
+ { not: { href_matches: '/login*' } },
168
+ { not: { href_matches: '/signin*' } },
169
+ { not: { href_matches: '/signup*' } },
170
+ { not: { href_matches: '/logout*' } },
171
+ ],
172
+ },
173
+ eagerness: 'moderate',
174
+ },
175
+ ],
176
+ prefetch: [
177
+ {
178
+ where: {
179
+ and: [
180
+ { href_matches: '/*' },
181
+ { not: { href_matches: '/api/*' } },
182
+ ],
183
+ },
184
+ eagerness: 'conservative',
185
+ },
186
+ ],
187
+ };
188
+ }
108
189
  /**
109
190
  * AutoMetaTags component
110
191
  *
@@ -113,8 +194,10 @@ function getRouteMetadata(pathname, isClient) {
113
194
  *
114
195
  * Features:
115
196
  * - Automatic route-based meta tag generation
116
- * - i18n integration
117
- * - Open Graph and Twitter Cards
197
+ * - i18n integration with hreflang
198
+ * - Open Graph and Twitter Cards with image dimensions
199
+ * - Speculation Rules API
200
+ * - BreadcrumbList + WebSite JSON-LD
118
201
  * - 100% Lighthouse SEO compliance
119
202
  */
120
203
  export const AutoMetaTags = () => {
@@ -122,10 +205,16 @@ export const AutoMetaTags = () => {
122
205
  const location = useLocation();
123
206
  const seoConfig = useSeoConfig();
124
207
  const isClient = useIsClient();
125
- const siteName = useAppConfig('name');
208
+ const appMeta = useAppConfig('app');
209
+ const siteName = appMeta?.name || '';
126
210
  const baseUrl = getPlatformEnvVar('APP_URL') || '';
127
211
  // Get route metadata — computed from current pathname and client flag
128
212
  const routeMeta = getRouteMetadata(location.pathname, isClient);
213
+ // Read i18n languages from build-time config (for hreflang)
214
+ const i18nConfig = useMemo(() => {
215
+ const config = getDndevConfig();
216
+ return config?.i18n;
217
+ }, []);
129
218
  // Memoize computed values for performance — must be called before any early return
130
219
  const metaData = useMemo(() => {
131
220
  if (!seoConfig)
@@ -174,9 +263,20 @@ export const AutoMetaTags = () => {
174
263
  if (!seoConfig || !metaData)
175
264
  return null;
176
265
  const { twitterHandle, staticTags = {} } = seoConfig;
266
+ // Feature flags — all default to true (ON by default)
267
+ const speculationRulesEnabled = seoConfig.speculationRules !== false;
268
+ const hreflangEnabled = seoConfig.hreflang !== false;
269
+ const breadcrumbSchemaEnabled = seoConfig.breadcrumbSchema !== false;
270
+ const websiteSchemaEnabled = seoConfig.websiteSchema !== false;
271
+ const organizationSchemaEnabled = seoConfig.organizationSchema !== false;
272
+ // hreflang: only emit when 2+ languages configured
273
+ const languages = i18nConfig?.languages || [];
274
+ const defaultLanguage = i18nConfig?.defaultLanguage || 'en';
275
+ const shouldEmitHreflang = hreflangEnabled && languages.length >= 2;
177
276
  return (_jsxs(Helmet, { children: [_jsx("title", { children: metaData.title }), metaData.description && (_jsx("meta", { name: "description", content: metaData.description })), _jsx("link", { rel: "canonical", href: metaData.url }), metaData.keywords && (_jsx("meta", { name: "keywords", content: Array.isArray(metaData.keywords)
178
277
  ? metaData.keywords.join(', ')
179
- : metaData.keywords })), metaData.author && _jsx("meta", { name: "author", content: metaData.author }), metaData.noindex && _jsx("meta", { name: "robots", content: "noindex, nofollow" }), _jsx("meta", { property: "og:title", content: metaData.title }), metaData.description && (_jsx("meta", { property: "og:description", content: metaData.description })), _jsx("meta", { property: "og:url", content: metaData.url }), _jsx("meta", { property: "og:type", content: metaData.type }), metaData.image && _jsx("meta", { property: "og:image", content: metaData.image }), _jsx("meta", { property: "og:site_name", content: siteName }), metaData.type === 'article' && (_jsxs(_Fragment, { children: [metaData.author && (_jsx("meta", { property: "article:author", content: metaData.author })), metaData.publishDate && (_jsx("meta", { property: "article:published_time", content: metaData.publishDate })), metaData.modifiedDate && (_jsx("meta", { property: "article:modified_time", content: metaData.modifiedDate }))] })), _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), _jsx("meta", { name: "twitter:title", content: metaData.title }), metaData.description && (_jsx("meta", { name: "twitter:description", content: metaData.description })), metaData.image && _jsx("meta", { name: "twitter:image", content: metaData.image }), twitterHandle && (_jsx("meta", { name: "twitter:site", content: `@${twitterHandle}` })), metaData.author && (_jsx("meta", { name: "twitter:creator", content: metaData.author })), _jsx("meta", { name: "format-detection", content: "telephone=no" }), _jsx("meta", { name: "mobile-web-app-capable", content: "yes" }), _jsx("meta", { name: "apple-mobile-web-app-status-bar-style", content: "default" }), Object.entries(staticTags).map(([name, content]) => (_jsx("meta", { name: name, content: content }, name))), baseUrl && (_jsx("link", { rel: "alternate", type: "application/rss+xml", title: `${siteName} Blog`, href: `${baseUrl}/rss.xml` })), metaData.image && metaData.image.startsWith('http') && (_jsx("link", { rel: "dns-prefetch", href: new URL(metaData.image).origin })), _jsx("script", { type: "application/ld+json", children: JSON.stringify({
278
+ : metaData.keywords })), metaData.author && _jsx("meta", { name: "author", content: metaData.author }), metaData.noindex && _jsx("meta", { name: "robots", content: "noindex, nofollow" }), _jsx("meta", { property: "og:title", content: metaData.title }), metaData.description && (_jsx("meta", { property: "og:description", content: metaData.description })), _jsx("meta", { property: "og:url", content: metaData.url }), _jsx("meta", { property: "og:type", content: metaData.type }), metaData.image && _jsx("meta", { property: "og:image", content: metaData.image }), metaData.image && (_jsx("meta", { property: "og:image:width", content: "1200" })), metaData.image && (_jsx("meta", { property: "og:image:height", content: "630" })), _jsx("meta", { property: "og:site_name", content: siteName }), metaData.type === 'article' && (_jsxs(_Fragment, { children: [metaData.author && (_jsx("meta", { property: "article:author", content: metaData.author })), metaData.publishDate && (_jsx("meta", { property: "article:published_time", content: metaData.publishDate })), metaData.modifiedDate && (_jsx("meta", { property: "article:modified_time", content: metaData.modifiedDate }))] })), _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), _jsx("meta", { name: "twitter:title", content: metaData.title }), metaData.description && (_jsx("meta", { name: "twitter:description", content: metaData.description })), metaData.image && _jsx("meta", { name: "twitter:image", content: metaData.image }), twitterHandle && (_jsx("meta", { name: "twitter:site", content: `@${twitterHandle}` })), metaData.author && (_jsx("meta", { name: "twitter:creator", content: metaData.author })), _jsx("meta", { name: "format-detection", content: "telephone=no" }), _jsx("meta", { name: "mobile-web-app-capable", content: "yes" }), _jsx("meta", { name: "apple-mobile-web-app-status-bar-style", content: "default" }), Object.entries(staticTags).map(([name, content]) => (_jsx("meta", { name: name, content: content }, name))), shouldEmitHreflang &&
279
+ languages.map((lang) => (_jsx("link", { rel: "alternate", hrefLang: lang, href: `${baseUrl}${lang === defaultLanguage ? '' : `/${lang}`}${location.pathname}` }, `hreflang-${lang}`))), shouldEmitHreflang && (_jsx("link", { rel: "alternate", hrefLang: "x-default", href: `${baseUrl}${location.pathname}` })), baseUrl && (_jsx("link", { rel: "alternate", type: "application/rss+xml", title: `${siteName} Blog`, href: `${baseUrl}/rss.xml` })), metaData.image && metaData.image.startsWith('http') && (_jsx("link", { rel: "dns-prefetch", href: new URL(metaData.image).origin })), _jsx("script", { type: "application/ld+json", children: JSON.stringify({
180
280
  '@context': 'https://schema.org',
181
281
  '@type': metaData.type === 'article' ? 'Article' : 'WebPage',
182
282
  name: metaData.title,
@@ -209,7 +309,11 @@ export const AutoMetaTags = () => {
209
309
  : '/logo.svg',
210
310
  },
211
311
  },
212
- }) })] }));
312
+ }) }), breadcrumbSchemaEnabled && location.pathname !== '/' && (_jsx("script", { type: "application/ld+json", children: JSON.stringify(buildBreadcrumbSchema(location.pathname, baseUrl, siteName)) })), websiteSchemaEnabled && baseUrl && (_jsx("script", { type: "application/ld+json", children: JSON.stringify(buildWebSiteSchema(baseUrl, siteName)) })), organizationSchemaEnabled &&
313
+ baseUrl &&
314
+ location.pathname === '/' &&
315
+ appMeta?.links &&
316
+ Object.values(appMeta.links).some(Boolean) && (_jsx("script", { type: "application/ld+json", children: JSON.stringify(buildOrganizationSchema(baseUrl, siteName, appMeta.description, appMeta.links)) })), speculationRulesEnabled && (_jsx("script", { type: "speculationrules", children: JSON.stringify(buildSpeculationRules()) }))] }));
213
317
  };
214
318
  /**
215
319
  * AutoMetaTags retrieves all configuration from AppConfigProvider.
@@ -13,7 +13,7 @@ import type { ComponentType } from 'react';
13
13
  * - Apple touch icons
14
14
  * - Prevents default favicon requests
15
15
  *
16
- * @version 0.0.1
16
+ * @version 0.1.0
17
17
  * @since 0.0.1
18
18
  * @author AMBROISE PARK Consulting
19
19
  * @note This component must be rendered inside <head> via React head management
@@ -15,7 +15,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
15
15
  * - apple-touch-icons: These ARE placed in <head> via React head management
16
16
  * - theme-color: Progressive enhancement - intentionally used for modern browsers
17
17
  *
18
- * @version 0.0.1
18
+ * @version 0.1.0
19
19
  * @since 0.0.1
20
20
  * @author AMBROISE PARK Consulting
21
21
  */
@@ -36,7 +36,7 @@ import { AssetResolver } from '../../../utils/assetResolver';
36
36
  * - Apple touch icons
37
37
  * - Prevents default favicon requests
38
38
  *
39
- * @version 0.0.1
39
+ * @version 0.1.0
40
40
  * @since 0.0.1
41
41
  * @author AMBROISE PARK Consulting
42
42
  * @note This component must be rendered inside <head> via React head management
@@ -2,7 +2,7 @@
2
2
  * @fileoverview FontPreloadLinks - Server-only component for Next.js
3
3
  * @description Reads public/dndev-font-preloads.json (written at build by FontPreloadWebpackPlugin) and renders preload link tags for Lighthouse-friendly LCP. Include in root layout so initial HTML contains the links.
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -4,7 +4,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
4
4
  * @fileoverview FontPreloadLinks - Server-only component for Next.js
5
5
  * @description Reads public/dndev-font-preloads.json (written at build by FontPreloadWebpackPlugin) and renders preload link tags for Lighthouse-friendly LCP. Include in root layout so initial HTML contains the links.
6
6
  *
7
- * @version 0.0.1
7
+ * @version 0.1.0
8
8
  * @since 0.0.1
9
9
  * @author AMBROISE PARK Consulting
10
10
  */
@@ -46,7 +46,7 @@ interface NextJsAutoMetaTagsProps {
46
46
  *
47
47
  * Uses Next.js hooks directly instead of platform-aware hooks
48
48
  *
49
- * @version 0.0.1
49
+ * @version 0.1.0
50
50
  * @since 0.0.1
51
51
  * @author AMBROISE PARK Consulting
52
52
  */
@@ -9,7 +9,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
9
9
  * via generateMetadata() functions in page files for optimal SEO. This component
10
10
  * only works client-side and meta tags won't be in initial HTML for search engines.
11
11
  *
12
- * @version 0.0.1
12
+ * @version 0.1.0
13
13
  * @since 0.0.1
14
14
  * @author AMBROISE PARK Consulting
15
15
  */
@@ -77,7 +77,7 @@ function getRouteMetadata(pathname, isClient) {
77
77
  *
78
78
  * Uses Next.js hooks directly instead of platform-aware hooks
79
79
  *
80
- * @version 0.0.1
80
+ * @version 0.1.0
81
81
  * @since 0.0.1
82
82
  * @author AMBROISE PARK Consulting
83
83
  */
@@ -10,7 +10,7 @@ export interface PWAUpdateNotificationProps {
10
10
  * - Component returns null (toast handles UI)
11
11
  * - CSR/SSR safe with proper guards
12
12
  *
13
- * @version 0.0.1
13
+ * @version 0.1.0
14
14
  * @since 0.0.1
15
15
  * @author AMBROISE PARK Consulting
16
16
  */
@@ -11,7 +11,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  * - Handles service worker rejection gracefully
12
12
  * - Uses toast system instead of Card component
13
13
  *
14
- * @version 0.0.1
14
+ * @version 0.1.0
15
15
  * @since 0.0.1
16
16
  * @author AMBROISE PARK Consulting
17
17
  */
@@ -28,7 +28,7 @@ import { isClient, useTranslation } from '@donotdev/core';
28
28
  * - Component returns null (toast handles UI)
29
29
  * - CSR/SSR safe with proper guards
30
30
  *
31
- * @version 0.0.1
31
+ * @version 0.1.0
32
32
  * @since 0.0.1
33
33
  * @author AMBROISE PARK Consulting
34
34
  */
@@ -9,7 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  * the page will need, saving 100-300ms per origin on slow networks.
10
10
  * - Font preload initiates font downloads early, reducing LCP by ~500-1000ms
11
11
  *
12
- * @version 0.0.2
12
+ * @version 0.1.0
13
13
  * @since 0.0.1
14
14
  * @author AMBROISE PARK Consulting
15
15
  */
@@ -8,7 +8,7 @@ export interface FooterBrandingProps {
8
8
  * Shows AMBROISE-PARK for framework's own site (donotdev.com),
9
9
  * otherwise shows DoNotDev for consumer apps.
10
10
  *
11
- * @version 0.0.2
11
+ * @version 0.1.0
12
12
  * @since 0.0.1
13
13
  * @author AMBROISE PARK Consulting
14
14
  */
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * @fileoverview FooterBranding Component
5
5
  * @description "Links to DoNotDev.com in the footers of generated apps.
6
6
  *
7
- * @version 0.0.2
7
+ * @version 0.1.0
8
8
  * @since 0.0.1
9
9
  * @author AMBROISE PARK Consulting
10
10
  */
@@ -16,7 +16,7 @@ import { useAppConfig, getPlatformEnvVar } from '@donotdev/core';
16
16
  * Shows AMBROISE-PARK for framework's own site (donotdev.com),
17
17
  * otherwise shows DoNotDev for consumer apps.
18
18
  *
19
- * @version 0.0.2
19
+ * @version 0.1.0
20
20
  * @since 0.0.1
21
21
  * @author AMBROISE PARK Consulting
22
22
  */
@@ -12,7 +12,7 @@ export interface FooterCopyrightProps {
12
12
  * Uses useTranslation internally, so it re-renders when language changes.
13
13
  * If appName not provided, reads from app config automatically.
14
14
  *
15
- * @version 0.0.1
15
+ * @version 0.1.0
16
16
  * @since 0.0.1
17
17
  * @author AMBROISE PARK Consulting
18
18
  */
@@ -4,7 +4,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * @fileoverview FooterCopyright Component
5
5
  * @description Copyright notice with year and app name, uses translations
6
6
  *
7
- * @version 0.0.1
7
+ * @version 0.1.0
8
8
  * @since 0.0.1
9
9
  * @author AMBROISE PARK Consulting
10
10
  */
@@ -16,7 +16,7 @@ import { useTranslation, useAppConfig } from '@donotdev/core';
16
16
  * Uses useTranslation internally, so it re-renders when language changes.
17
17
  * If appName not provided, reads from app config automatically.
18
18
  *
19
- * @version 0.0.1
19
+ * @version 0.1.0
20
20
  * @since 0.0.1
21
21
  * @author AMBROISE PARK Consulting
22
22
  */
@@ -16,7 +16,7 @@ export interface FooterLegalLinksProps {
16
16
  * If app not provided, reads from app config automatically.
17
17
  * Used in footer and sidebar when footer zone is hidden.
18
18
  *
19
- * @version 0.0.1
19
+ * @version 0.1.0
20
20
  * @since 0.0.1
21
21
  * @author AMBROISE PARK Consulting
22
22
  */
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * @fileoverview FooterLegalLinks Component
5
5
  * @description Legal links component for use in sidebars when footer is hidden
6
6
  *
7
- * @version 0.0.1
7
+ * @version 0.1.0
8
8
  * @since 0.0.1
9
9
  * @author AMBROISE PARK Consulting
10
10
  */
@@ -20,7 +20,7 @@ import { Link } from '../../../../routing/Link';
20
20
  * If app not provided, reads from app config automatically.
21
21
  * Used in footer and sidebar when footer zone is hidden.
22
22
  *
23
- * @version 0.0.1
23
+ * @version 0.1.0
24
24
  * @since 0.0.1
25
25
  * @author AMBROISE PARK Consulting
26
26
  */
@@ -2,7 +2,7 @@
2
2
  * @fileoverview Internal Layout Components Barrel Exports
3
3
  * @description Barrel exports for internal layout component modules
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -3,7 +3,7 @@
3
3
  * @fileoverview Internal Layout Components Barrel Exports
4
4
  * @description Barrel exports for internal layout component modules
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -6,7 +6,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
6
6
  * All slots are functions that return ReactNode (never null in defaults).
7
7
  * Zones use these unless preset overrides.
8
8
  *
9
- * @version 0.0.1
9
+ * @version 0.1.0
10
10
  * @since 0.0.1
11
11
  * @author AMBROISE PARK Consulting
12
12
  */
@@ -2,7 +2,7 @@
2
2
  * @fileoverview Layout Config Barrel Export
3
3
  * @description Exports for config-based layout system.
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -3,7 +3,7 @@
3
3
  * @fileoverview Layout Config Barrel Export
4
4
  * @description Exports for config-based layout system.
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -3,7 +3,7 @@
3
3
  * @description Admin panel layout with header, sidebar, and footer.
4
4
  * Optimized for dashboards and management interfaces.
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -3,7 +3,7 @@
3
3
  * @description Blog layout with header, sidebar, and footer.
4
4
  * Optimized for content-focused sites.
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * @description Documentation layout with sidebar and footer (no header).
6
6
  * Maximizes vertical reading space.
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * @description Mobile gaming layout with centered title.
6
6
  * Optimized for full-screen gaming experiences.
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -2,7 +2,7 @@
2
2
  * @fileoverview Preset Configurations Barrel Export
3
3
  * @description Exports all preset configurations and the preset registry.
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * @description Marketing site layout with header and footer.
6
6
  * Optimized for landing pages and public content.
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * @description SaaS app layout with sidebar only (no header/footer zones).
6
6
  * All UI in sidebar for focused productivity.
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -3,13 +3,13 @@
3
3
  * @description No UI chrome - full viewport for content.
4
4
  * Perfect for embedded widgets, full-screen apps, modal overlays.
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
10
10
  import type { PresetConfig } from '@donotdev/core';
11
11
  /**
12
- * Plain preset - minimal layout with no zones
12
+ * Plain preset - no UI chrome, full viewport for content.
13
13
  *
14
14
  * Use cases:
15
15
  * - Embedded widgets and iframes
@@ -1 +1 @@
1
- {"version":3,"file":"plain.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/config/presets/plain.tsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,YAEzB,CAAC"}
1
+ {"version":3,"file":"plain.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/config/presets/plain.tsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,YAazB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  // packages/ui/src/internal/layout/config/presets/plain.tsx
2
2
  /**
3
- * Plain preset - minimal layout with no zones
3
+ * Plain preset - no UI chrome, full viewport for content.
4
4
  *
5
5
  * Use cases:
6
6
  * - Embedded widgets and iframes
@@ -11,4 +11,15 @@
11
11
  */
12
12
  export const plainPreset = {
13
13
  name: 'plain',
14
+ header: {
15
+ start: () => null,
16
+ center: () => null,
17
+ end: () => null,
18
+ },
19
+ sidebar: {
20
+ top: () => null,
21
+ content: () => null,
22
+ bottom: () => null,
23
+ },
24
+ footer: null,
14
25
  };
@@ -2,7 +2,7 @@
2
2
  * @fileoverview Layout Renderers Barrel Exports
3
3
  * @description Exports for layout rendering system.
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -4,7 +4,7 @@
4
4
  * @fileoverview Layout Renderers Barrel Exports
5
5
  * @description Exports for layout rendering system.
6
6
  *
7
- * @version 0.0.1
7
+ * @version 0.1.0
8
8
  * @since 0.0.1
9
9
  * @author AMBROISE PARK Consulting
10
10
  */
@@ -8,7 +8,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  * - Desktop: 2-zone [Copyright] | [Links + Branding]
9
9
  * - Mobile: 2-line stacked, centered
10
10
  *
11
- * @version 0.0.1
11
+ * @version 0.1.0
12
12
  * @since 0.0.1
13
13
  * @author AMBROISE PARK Consulting
14
14
  */