@griddo/core 1.75.180 → 1.75.182
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/dist/components/Page/index.d.ts +1 -1
- package/dist/contexts/Page/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/useContentTypeNavigation.d.ts +3 -0
- package/dist/hooks/useList.d.ts +10 -11
- package/dist/hooks/useReferenceFieldData.d.ts +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/api-response-fields/index.d.ts +15 -1
- package/dist/types/core/index.d.ts +8 -5
- package/dist/types/global.d.ts +2 -0
- package/package.json +2 -2
|
@@ -107,7 +107,7 @@ export type Note = string;
|
|
|
107
107
|
export type Number = number | null | "";
|
|
108
108
|
export type RadioGroup<Values> = Values;
|
|
109
109
|
export interface Reference<ContentType> {
|
|
110
|
-
mode: "auto" | "manual";
|
|
110
|
+
mode: "auto" | "manual" | "navigation";
|
|
111
111
|
order?: string;
|
|
112
112
|
fixed?: Array<number>;
|
|
113
113
|
source?: ContentType extends {
|
|
@@ -122,6 +122,14 @@ export interface Reference<ContentType> {
|
|
|
122
122
|
}>;
|
|
123
123
|
fullRelations?: boolean;
|
|
124
124
|
allLanguages?: boolean;
|
|
125
|
+
referenceId?: number;
|
|
126
|
+
}
|
|
127
|
+
export interface ReferenceNavigation {
|
|
128
|
+
order?: string;
|
|
129
|
+
quantity?: number;
|
|
130
|
+
fullRelations?: boolean;
|
|
131
|
+
/** The id of the ContentType */
|
|
132
|
+
referenceId?: number;
|
|
125
133
|
}
|
|
126
134
|
export type RichText = string;
|
|
127
135
|
export type ScrollableUniqueSelection = string;
|
|
@@ -196,7 +204,13 @@ export type QueriedDataItem<ContentType = unknown> = {
|
|
|
196
204
|
}>;
|
|
197
205
|
};
|
|
198
206
|
};
|
|
207
|
+
export type QueriedNavigationDataItem<ContentType = unknown> = {
|
|
208
|
+
previous: Array<QueriedDataItem<ContentType>>;
|
|
209
|
+
next: Array<QueriedDataItem<ContentType>>;
|
|
210
|
+
error?: string;
|
|
211
|
+
};
|
|
199
212
|
export type QueriedData<ContentType> = Array<QueriedDataItem<ContentType>>;
|
|
213
|
+
export type QueriedNavigationData<ContentType> = QueriedNavigationDataItem<ContentType>;
|
|
200
214
|
export type ExtraListTemplateProps = {
|
|
201
215
|
/** Full URL for the page */
|
|
202
216
|
baseLink?: string;
|
|
@@ -30,7 +30,7 @@ export interface SiteLanguage {
|
|
|
30
30
|
locale: Locale;
|
|
31
31
|
path: string;
|
|
32
32
|
}
|
|
33
|
-
export interface Page {
|
|
33
|
+
export interface Page<ContentType = unknown> {
|
|
34
34
|
/** Private API url */
|
|
35
35
|
apiUrl?: string;
|
|
36
36
|
activeSectionBase?: string;
|
|
@@ -42,6 +42,7 @@ export interface Page {
|
|
|
42
42
|
}>;
|
|
43
43
|
breadcrumb?: Breadcrumb;
|
|
44
44
|
canBeUnpublished?: boolean;
|
|
45
|
+
canonicalSite?: number;
|
|
45
46
|
canonicalURL?: string;
|
|
46
47
|
component?: "Page";
|
|
47
48
|
componentList?: Array<string>;
|
|
@@ -154,7 +155,9 @@ export interface Page {
|
|
|
154
155
|
socialImage?: Image;
|
|
155
156
|
socialTitle?: string;
|
|
156
157
|
structuredData?: unknown;
|
|
157
|
-
structuredDataContent?:
|
|
158
|
+
structuredDataContent?: {
|
|
159
|
+
id: number;
|
|
160
|
+
} & Partial<ContentType>;
|
|
158
161
|
template: {
|
|
159
162
|
type: "template";
|
|
160
163
|
templateType: string;
|
|
@@ -265,11 +268,11 @@ export interface LibraryComponentProps {
|
|
|
265
268
|
[key: string]: unknown;
|
|
266
269
|
}
|
|
267
270
|
/** Custom object with value/keys containing static translations */
|
|
268
|
-
export type LocaleTranslations = Partial<Record<typeof locales[number], Record<string, unknown>>>;
|
|
271
|
+
export type LocaleTranslations = Partial<Record<(typeof locales)[number], Record<string, unknown>>>;
|
|
269
272
|
/** Locale zone codes */
|
|
270
|
-
export type Locale = typeof locales[number];
|
|
273
|
+
export type Locale = (typeof locales)[number];
|
|
271
274
|
/** Time zone codes */
|
|
272
|
-
export type TimeZone = typeof timezone[number];
|
|
275
|
+
export type TimeZone = (typeof timezone)[number];
|
|
273
276
|
export interface ResponsiveImageProps {
|
|
274
277
|
/** Breakpoint in px or null if its the first one (mobile) */
|
|
275
278
|
breakpoint?: null | string;
|
package/dist/types/global.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export interface SetQueryProps<ContentType> {
|
|
|
36
36
|
includePending?: boolean;
|
|
37
37
|
/** Indicates if we should limit results to one language */
|
|
38
38
|
allLanguages?: boolean;
|
|
39
|
+
/** The id of a ContentType */
|
|
40
|
+
referenceId?: number;
|
|
39
41
|
}
|
|
40
42
|
export interface ListApiQueryResponseProps<ContentTypeFields> {
|
|
41
43
|
page?: number;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@griddo/core",
|
|
3
3
|
"description": "Reload version of Griddo Core",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"version": "1.75.
|
|
5
|
+
"version": "1.75.182",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"resolutions": {
|
|
78
78
|
"colors": "1.4.0"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "888dd2eeef46c60b7f0e9139198eb57bb7253b5f"
|
|
81
81
|
}
|