brease-client 0.7.0 → 0.8.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.
- package/README.md +88 -25
- package/dist/astro.cjs +8 -6
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +3 -2
- package/dist/chunk-N3QOL5EU.js +10 -0
- package/dist/{chunk-SSDAREDA.js → chunk-QZXUMDB7.js} +4 -6
- package/dist/{chunk-7BBL2LET.js → chunk-SO4BD4ME.js} +129 -3
- package/dist/html.cjs +8 -6
- package/dist/html.d.cts +1 -1
- package/dist/html.d.ts +1 -1
- package/dist/html.js +2 -1
- package/dist/image.cjs +8 -2
- package/dist/image.d.cts +6 -1
- package/dist/image.d.ts +6 -1
- package/dist/image.js +8 -2
- package/dist/index.cjs +146 -2
- package/dist/index.d.cts +50 -3
- package/dist/index.d.ts +50 -3
- package/dist/index.js +2 -1
- package/dist/next.cjs +67 -49
- package/dist/next.d.cts +3 -4
- package/dist/next.d.ts +3 -4
- package/dist/next.js +10 -49
- package/dist/{types-ecfDXrLa.d.cts → types-DeS_3KtO.d.cts} +29 -3
- package/dist/{types-ecfDXrLa.d.ts → types-DeS_3KtO.d.ts} +29 -3
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ type Twitter = {
|
|
|
25
25
|
};
|
|
26
26
|
type PageSeo = {
|
|
27
27
|
title?: string;
|
|
28
|
+
useTitleTemplate?: boolean;
|
|
28
29
|
description?: string;
|
|
29
30
|
canonical?: string;
|
|
30
31
|
robots?: Robots;
|
|
@@ -33,12 +34,18 @@ type PageSeo = {
|
|
|
33
34
|
structuredData?: Record<string, unknown>[];
|
|
34
35
|
customCode?: string;
|
|
35
36
|
};
|
|
36
|
-
type SiteSeo =
|
|
37
|
+
type SiteSeo = {
|
|
37
38
|
titleTemplate?: string;
|
|
38
39
|
siteName?: string;
|
|
40
|
+
description?: string;
|
|
39
41
|
defaultImage?: string;
|
|
40
42
|
favicon?: string;
|
|
43
|
+
robots?: Robots;
|
|
44
|
+
openGraph?: Pick<OpenGraph, 'type' | 'image'>;
|
|
45
|
+
twitter?: Pick<Twitter, 'card' | 'site' | 'creator'>;
|
|
46
|
+
structuredData?: Record<string, unknown>[];
|
|
41
47
|
customHead?: string;
|
|
48
|
+
customCode?: string;
|
|
42
49
|
};
|
|
43
50
|
type ResolvedSeo = {
|
|
44
51
|
title: string;
|
|
@@ -69,6 +76,20 @@ type Site = {
|
|
|
69
76
|
analytics?: {
|
|
70
77
|
ga4: string;
|
|
71
78
|
} | null;
|
|
79
|
+
url?: string | null;
|
|
80
|
+
};
|
|
81
|
+
type BreaseImage = {
|
|
82
|
+
assetId: string;
|
|
83
|
+
url: string;
|
|
84
|
+
alt?: string;
|
|
85
|
+
width?: number;
|
|
86
|
+
height?: number;
|
|
87
|
+
};
|
|
88
|
+
type BreaseLink = {
|
|
89
|
+
label?: string;
|
|
90
|
+
href: string;
|
|
91
|
+
pageId?: string;
|
|
92
|
+
target?: '_self' | '_blank';
|
|
72
93
|
};
|
|
73
94
|
type Page<T = Record<string, unknown>> = {
|
|
74
95
|
pageId: string;
|
|
@@ -82,7 +103,12 @@ type Page<T = Record<string, unknown>> = {
|
|
|
82
103
|
resolvedSeo: ResolvedSeo;
|
|
83
104
|
alternates: Record<string, string>;
|
|
84
105
|
};
|
|
85
|
-
type PageRef = Pick<Page, 'pageId' | 'locale' | 'slug' | 'url' | 'hidden'
|
|
106
|
+
type PageRef = Pick<Page, 'pageId' | 'locale' | 'slug' | 'url' | 'hidden'> & {
|
|
107
|
+
name?: string;
|
|
108
|
+
index?: boolean;
|
|
109
|
+
parentId?: string | null;
|
|
110
|
+
order?: number;
|
|
111
|
+
};
|
|
86
112
|
type NavigationItem = {
|
|
87
113
|
id: string;
|
|
88
114
|
label: string;
|
|
@@ -113,4 +139,4 @@ type SitemapEntry = {
|
|
|
113
139
|
alternates: Record<string, string>;
|
|
114
140
|
};
|
|
115
141
|
|
|
116
|
-
export type { LocaleStrategy as L, Navigation as N, OpenGraph as O, Page as P, ResolvedSeo as R, Site as S, Twitter as T, UrlSettings as U,
|
|
142
|
+
export type { BreaseImage as B, LocaleStrategy as L, Navigation as N, OpenGraph as O, Page as P, ResolvedSeo as R, Site as S, Twitter as T, UrlSettings as U, Redirect as a, PageRef as b, Release as c, SitemapEntry as d, BreaseLink as e, NavigationItem as f, PageSeo as g, Robots as h, SiteSeo as i };
|
|
@@ -25,6 +25,7 @@ type Twitter = {
|
|
|
25
25
|
};
|
|
26
26
|
type PageSeo = {
|
|
27
27
|
title?: string;
|
|
28
|
+
useTitleTemplate?: boolean;
|
|
28
29
|
description?: string;
|
|
29
30
|
canonical?: string;
|
|
30
31
|
robots?: Robots;
|
|
@@ -33,12 +34,18 @@ type PageSeo = {
|
|
|
33
34
|
structuredData?: Record<string, unknown>[];
|
|
34
35
|
customCode?: string;
|
|
35
36
|
};
|
|
36
|
-
type SiteSeo =
|
|
37
|
+
type SiteSeo = {
|
|
37
38
|
titleTemplate?: string;
|
|
38
39
|
siteName?: string;
|
|
40
|
+
description?: string;
|
|
39
41
|
defaultImage?: string;
|
|
40
42
|
favicon?: string;
|
|
43
|
+
robots?: Robots;
|
|
44
|
+
openGraph?: Pick<OpenGraph, 'type' | 'image'>;
|
|
45
|
+
twitter?: Pick<Twitter, 'card' | 'site' | 'creator'>;
|
|
46
|
+
structuredData?: Record<string, unknown>[];
|
|
41
47
|
customHead?: string;
|
|
48
|
+
customCode?: string;
|
|
42
49
|
};
|
|
43
50
|
type ResolvedSeo = {
|
|
44
51
|
title: string;
|
|
@@ -69,6 +76,20 @@ type Site = {
|
|
|
69
76
|
analytics?: {
|
|
70
77
|
ga4: string;
|
|
71
78
|
} | null;
|
|
79
|
+
url?: string | null;
|
|
80
|
+
};
|
|
81
|
+
type BreaseImage = {
|
|
82
|
+
assetId: string;
|
|
83
|
+
url: string;
|
|
84
|
+
alt?: string;
|
|
85
|
+
width?: number;
|
|
86
|
+
height?: number;
|
|
87
|
+
};
|
|
88
|
+
type BreaseLink = {
|
|
89
|
+
label?: string;
|
|
90
|
+
href: string;
|
|
91
|
+
pageId?: string;
|
|
92
|
+
target?: '_self' | '_blank';
|
|
72
93
|
};
|
|
73
94
|
type Page<T = Record<string, unknown>> = {
|
|
74
95
|
pageId: string;
|
|
@@ -82,7 +103,12 @@ type Page<T = Record<string, unknown>> = {
|
|
|
82
103
|
resolvedSeo: ResolvedSeo;
|
|
83
104
|
alternates: Record<string, string>;
|
|
84
105
|
};
|
|
85
|
-
type PageRef = Pick<Page, 'pageId' | 'locale' | 'slug' | 'url' | 'hidden'
|
|
106
|
+
type PageRef = Pick<Page, 'pageId' | 'locale' | 'slug' | 'url' | 'hidden'> & {
|
|
107
|
+
name?: string;
|
|
108
|
+
index?: boolean;
|
|
109
|
+
parentId?: string | null;
|
|
110
|
+
order?: number;
|
|
111
|
+
};
|
|
86
112
|
type NavigationItem = {
|
|
87
113
|
id: string;
|
|
88
114
|
label: string;
|
|
@@ -113,4 +139,4 @@ type SitemapEntry = {
|
|
|
113
139
|
alternates: Record<string, string>;
|
|
114
140
|
};
|
|
115
141
|
|
|
116
|
-
export type { LocaleStrategy as L, Navigation as N, OpenGraph as O, Page as P, ResolvedSeo as R, Site as S, Twitter as T, UrlSettings as U,
|
|
142
|
+
export type { BreaseImage as B, LocaleStrategy as L, Navigation as N, OpenGraph as O, Page as P, ResolvedSeo as R, Site as S, Twitter as T, UrlSettings as U, Redirect as a, PageRef as b, Release as c, SitemapEntry as d, BreaseLink as e, NavigationItem as f, PageSeo as g, Robots as h, SiteSeo as i };
|