@deneb-ui/create-template 2.0.30 → 2.0.32
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/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"next": "15.5.23",
|
|
19
19
|
"react": "19.2.8",
|
|
20
20
|
"react-dom": "19.2.8",
|
|
21
|
-
"@deneb-ui/ui": "^2.0.
|
|
21
|
+
"@deneb-ui/ui": "^2.0.32"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@eslint/eslintrc": "3.3.6",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint": "9.39.5",
|
|
29
29
|
"eslint-config-next": "15.5.23",
|
|
30
30
|
"typescript": "5.8.3",
|
|
31
|
-
"@deneb-ui/cli": "^2.0.
|
|
31
|
+
"@deneb-ui/cli": "^2.0.32",
|
|
32
32
|
"tailwindcss": "^3.4.17",
|
|
33
33
|
"postcss": "8.5.26",
|
|
34
34
|
"autoprefixer": "^10.4.20"
|
|
@@ -18,7 +18,7 @@ export default function RootLayout({ children }: { children: ReactNode }) {
|
|
|
18
18
|
return (
|
|
19
19
|
<html lang="en" suppressHydrationWarning>
|
|
20
20
|
<body suppressHydrationWarning>
|
|
21
|
-
<SiteDataProvider>
|
|
21
|
+
<SiteDataProvider initialSiteData={siteData}>
|
|
22
22
|
<SiteChrome>{children}</SiteChrome>
|
|
23
23
|
</SiteDataProvider>
|
|
24
24
|
</body>
|
|
@@ -1,44 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
SiteDataProvider as BaseSiteDataProvider,
|
|
6
|
-
useSiteData,
|
|
7
|
-
contentText,
|
|
8
|
-
contentObject,
|
|
9
|
-
contentList,
|
|
10
|
-
type SiteData,
|
|
11
|
-
type SiteDataProviderProps,
|
|
12
|
-
PREVIEW_DATA_MESSAGE,
|
|
13
|
-
LEGACY_PREVIEW_DATA_MESSAGE,
|
|
14
|
-
PREVIEW_READY_MESSAGE,
|
|
15
|
-
LEGACY_PREVIEW_READY_MESSAGE,
|
|
16
|
-
PREVIEW_FOCUS_MESSAGE,
|
|
17
|
-
LEGACY_PREVIEW_FOCUS_MESSAGE,
|
|
18
|
-
PREVIEW_FIELD_ATTRIBUTE,
|
|
19
|
-
} from '@deneb-ui/ui';
|
|
20
|
-
|
|
21
|
-
import initialSiteData from '@/data/site-data.json';
|
|
22
|
-
|
|
23
|
-
export function SiteDataProvider({
|
|
24
|
-
children,
|
|
25
|
-
initialSiteData: providedInitialData,
|
|
26
|
-
...props
|
|
27
|
-
}: {
|
|
28
|
-
children: React.ReactNode;
|
|
29
|
-
initialSiteData?: SiteData;
|
|
30
|
-
}) {
|
|
31
|
-
return (
|
|
32
|
-
<BaseSiteDataProvider
|
|
33
|
-
initialSiteData={providedInitialData ?? (initialSiteData as SiteData)}
|
|
34
|
-
{...props}
|
|
35
|
-
>
|
|
36
|
-
{children}
|
|
37
|
-
</BaseSiteDataProvider>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
3
|
export {
|
|
4
|
+
SiteDataProvider,
|
|
42
5
|
useSiteData,
|
|
43
6
|
contentText,
|
|
44
7
|
contentObject,
|
|
@@ -50,6 +13,6 @@ export {
|
|
|
50
13
|
PREVIEW_FOCUS_MESSAGE,
|
|
51
14
|
LEGACY_PREVIEW_FOCUS_MESSAGE,
|
|
52
15
|
PREVIEW_FIELD_ATTRIBUTE,
|
|
53
|
-
};
|
|
16
|
+
} from '@deneb-ui/ui';
|
|
54
17
|
|
|
55
|
-
export type { SiteData, SiteDataProviderProps };
|
|
18
|
+
export type { SiteData, SiteDataProviderProps } from '@deneb-ui/ui';
|