@griddo/core 1.75.178 → 1.75.180
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/autotypes.cjs.js +1 -1
- package/dist/autotypes.cjs.js.map +1 -1
- package/dist/autotypes.js.map +1 -1
- package/dist/components/GriddoImage/index.d.ts +5 -5
- package/dist/components/Page/index.d.ts +1 -1
- package/dist/functions/create-schemas/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/api-response-fields/index.d.ts +3 -2
- package/dist/types/core/index.d.ts +84 -44
- package/package.json +5 -6
|
@@ -177,7 +177,7 @@ export type Menu = {
|
|
|
177
177
|
export type TemplateSection<GriddoModule> = {
|
|
178
178
|
modules: Array<GriddoModule>;
|
|
179
179
|
};
|
|
180
|
-
export type
|
|
180
|
+
export type QueriedDataItem<ContentType = unknown> = {
|
|
181
181
|
/** Item Id */
|
|
182
182
|
id?: number;
|
|
183
183
|
/** ContentType content */
|
|
@@ -195,7 +195,8 @@ export type QueriedData<ContentType> = Array<{
|
|
|
195
195
|
name?: string;
|
|
196
196
|
}>;
|
|
197
197
|
};
|
|
198
|
-
}
|
|
198
|
+
};
|
|
199
|
+
export type QueriedData<ContentType> = Array<QueriedDataItem<ContentType>>;
|
|
199
200
|
export type ExtraListTemplateProps = {
|
|
200
201
|
/** Full URL for the page */
|
|
201
202
|
baseLink?: string;
|
|
@@ -15,12 +15,20 @@ export interface PageLanguage {
|
|
|
15
15
|
id: number;
|
|
16
16
|
locale: string;
|
|
17
17
|
}
|
|
18
|
+
/** Descripbes a Griddo Language item */
|
|
18
19
|
export interface SiteLanguage {
|
|
20
|
+
domain: {
|
|
21
|
+
id: number;
|
|
22
|
+
url: string;
|
|
23
|
+
slug: string;
|
|
24
|
+
};
|
|
25
|
+
home: string;
|
|
19
26
|
id: number;
|
|
20
|
-
locale: string;
|
|
21
|
-
language: string;
|
|
22
|
-
label: string;
|
|
23
27
|
isDefault: boolean;
|
|
28
|
+
label: string;
|
|
29
|
+
language: string;
|
|
30
|
+
locale: Locale;
|
|
31
|
+
path: string;
|
|
24
32
|
}
|
|
25
33
|
export interface Page {
|
|
26
34
|
/** Private API url */
|
|
@@ -37,10 +45,9 @@ export interface Page {
|
|
|
37
45
|
canonicalURL?: string;
|
|
38
46
|
component?: "Page";
|
|
39
47
|
componentList?: Array<string>;
|
|
48
|
+
customizeThemes?: boolean;
|
|
40
49
|
deleted?: boolean;
|
|
41
|
-
dimensions?:
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
};
|
|
50
|
+
dimensions?: Record<string, any>;
|
|
44
51
|
draftFromPage?: unknown;
|
|
45
52
|
editable?: boolean;
|
|
46
53
|
editing?: {
|
|
@@ -54,11 +61,9 @@ export interface Page {
|
|
|
54
61
|
* @deprecated To deprecated due to coupling with the section name */
|
|
55
62
|
firstModule?: string;
|
|
56
63
|
follow?: boolean;
|
|
57
|
-
footer:
|
|
58
|
-
menu: Menu;
|
|
59
|
-
};
|
|
64
|
+
footer: FooterModule;
|
|
60
65
|
footerTheme?: string;
|
|
61
|
-
fullPath
|
|
66
|
+
fullPath: {
|
|
62
67
|
site: string;
|
|
63
68
|
domain: string;
|
|
64
69
|
domainUrl: string;
|
|
@@ -66,17 +71,16 @@ export interface Page {
|
|
|
66
71
|
page: string;
|
|
67
72
|
compose: string;
|
|
68
73
|
};
|
|
69
|
-
fullUrl
|
|
70
|
-
hash
|
|
74
|
+
fullUrl: string;
|
|
75
|
+
hash: string;
|
|
71
76
|
haveDraftPage?: unknown;
|
|
72
|
-
header:
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
headerTheme?: string;
|
|
77
|
+
header: HeaderModule;
|
|
78
|
+
headerTheme?: string | null;
|
|
76
79
|
id?: number;
|
|
80
|
+
instance?: string;
|
|
77
81
|
isHome?: boolean;
|
|
78
82
|
isIndexed?: boolean;
|
|
79
|
-
language
|
|
83
|
+
language: number;
|
|
80
84
|
/** Id of the page language */
|
|
81
85
|
languageId?: number;
|
|
82
86
|
liveChanged?: boolean;
|
|
@@ -85,20 +89,28 @@ export interface Page {
|
|
|
85
89
|
title: string;
|
|
86
90
|
status: "offline" | "upload-pending" | "active" | "offline-pending" | "modified" | "scheduled";
|
|
87
91
|
};
|
|
88
|
-
locale?:
|
|
92
|
+
locale?: Locale;
|
|
89
93
|
manuallyImported?: boolean;
|
|
90
94
|
metaDescription?: string;
|
|
91
95
|
metasAdvanced?: string;
|
|
92
96
|
metaTitle?: string;
|
|
97
|
+
mode: "list" | null;
|
|
93
98
|
modified?: string;
|
|
94
99
|
noTranslate?: boolean;
|
|
95
100
|
origin?: string;
|
|
101
|
+
openGraph: {
|
|
102
|
+
type: "website";
|
|
103
|
+
title?: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
image?: string | null;
|
|
106
|
+
twitterImage?: string | null;
|
|
107
|
+
};
|
|
96
108
|
pageLanguages?: Array<{
|
|
97
109
|
siteId: number;
|
|
98
110
|
languageId: number;
|
|
99
111
|
pageId: number;
|
|
100
112
|
title: string;
|
|
101
|
-
locale:
|
|
113
|
+
locale: Locale;
|
|
102
114
|
isLive: boolean;
|
|
103
115
|
draftFromPage: unknown;
|
|
104
116
|
url: string;
|
|
@@ -111,9 +123,22 @@ export interface Page {
|
|
|
111
123
|
compose: string;
|
|
112
124
|
};
|
|
113
125
|
}>;
|
|
114
|
-
|
|
126
|
+
pageMetaData: {
|
|
127
|
+
index: "index" | "noindex";
|
|
128
|
+
follow: "follow" | "nofollow";
|
|
129
|
+
translate?: "" | "notranslate";
|
|
130
|
+
title: string;
|
|
131
|
+
description?: string;
|
|
132
|
+
canonical?: string;
|
|
133
|
+
locale?: Locale;
|
|
134
|
+
url?: string;
|
|
135
|
+
metasAdvanced: string;
|
|
136
|
+
pageLanguages: Page["pageLanguages"];
|
|
137
|
+
};
|
|
138
|
+
parent?: number;
|
|
115
139
|
path?: string;
|
|
116
140
|
published?: string;
|
|
141
|
+
publicApiUrl: string;
|
|
117
142
|
sectionModules?: Record<string, Array<string>>;
|
|
118
143
|
setAsHome?: boolean;
|
|
119
144
|
site: number;
|
|
@@ -131,13 +156,20 @@ export interface Page {
|
|
|
131
156
|
structuredData?: unknown;
|
|
132
157
|
structuredDataContent?: Record<string, unknown>;
|
|
133
158
|
template: {
|
|
134
|
-
type:
|
|
159
|
+
type: "template";
|
|
135
160
|
templateType: string;
|
|
136
161
|
activeSectionSlug: string;
|
|
137
162
|
activeSectionBase: string;
|
|
138
163
|
[key: string]: any;
|
|
139
164
|
};
|
|
140
|
-
templateConfig
|
|
165
|
+
templateConfig: {
|
|
166
|
+
defaultHeader: string;
|
|
167
|
+
defaultFooter: string;
|
|
168
|
+
templates: Record<string, {
|
|
169
|
+
defaultHeader: number;
|
|
170
|
+
defaultFooter: number;
|
|
171
|
+
}>;
|
|
172
|
+
};
|
|
141
173
|
templateId?: string;
|
|
142
174
|
theme?: string;
|
|
143
175
|
title: string;
|
|
@@ -159,47 +191,43 @@ export type GriddoDamDefaults = {
|
|
|
159
191
|
decoding?: ImageDecoding;
|
|
160
192
|
formats?: Array<ImageFormats>;
|
|
161
193
|
};
|
|
194
|
+
/** Describe a Griddo site object for final Gatsby template */
|
|
162
195
|
export interface Site {
|
|
163
|
-
linkComponent: (props: GriddoLinkProps & {
|
|
164
|
-
to?: string;
|
|
165
|
-
}) => JSX.Element;
|
|
166
|
-
location?: {
|
|
167
|
-
state: Record<string, unknown>;
|
|
168
|
-
};
|
|
169
196
|
apiUrl?: string;
|
|
170
197
|
bigAvatar?: string | null;
|
|
171
198
|
cloudinaryCloudName?: string;
|
|
172
199
|
cloudinaryDefaults?: CloudinaryDefaults;
|
|
173
200
|
defaultLanguage?: SiteLanguage;
|
|
174
201
|
domain?: number;
|
|
202
|
+
/** The URL for the site favicon */
|
|
175
203
|
favicon?: string | null;
|
|
176
204
|
griddoDamDefaults?: GriddoDamDefaults;
|
|
205
|
+
home?: string;
|
|
206
|
+
/** The id of the Site */
|
|
207
|
+
id?: number;
|
|
208
|
+
isPublished?: boolean;
|
|
209
|
+
/** languages */
|
|
210
|
+
languages?: Array<number>;
|
|
211
|
+
linkComponent: (props: GriddoLinkProps & {
|
|
212
|
+
to?: string;
|
|
213
|
+
}) => JSX.Element;
|
|
214
|
+
location?: {
|
|
215
|
+
state: Record<string, unknown>;
|
|
216
|
+
};
|
|
177
217
|
modified?: string;
|
|
178
218
|
name?: string;
|
|
179
219
|
path?: string;
|
|
180
220
|
publicApiUrl?: string;
|
|
181
|
-
home?: string;
|
|
182
|
-
isPublished?: boolean;
|
|
183
221
|
renderer?: Renderers;
|
|
184
222
|
siteId?: number;
|
|
185
|
-
siteLangs?: Array<
|
|
186
|
-
id: number;
|
|
187
|
-
locale: Locale;
|
|
188
|
-
language: number;
|
|
189
|
-
path: string;
|
|
190
|
-
label: string;
|
|
191
|
-
isDefault: boolean;
|
|
192
|
-
home: string;
|
|
193
|
-
domain: {
|
|
194
|
-
id: number;
|
|
195
|
-
url: string;
|
|
196
|
-
slug: string;
|
|
197
|
-
};
|
|
198
|
-
}>;
|
|
223
|
+
siteLangs?: Array<SiteLanguage>;
|
|
199
224
|
siteMetadata?: {
|
|
200
225
|
title: string;
|
|
226
|
+
siteUrl: string;
|
|
227
|
+
favicon: string;
|
|
201
228
|
};
|
|
202
229
|
smallAvatar?: string | null;
|
|
230
|
+
/** The slug for the site */
|
|
203
231
|
slug?: string;
|
|
204
232
|
socials?: Record<SocialName, string>;
|
|
205
233
|
theme?: string;
|
|
@@ -276,3 +304,15 @@ export type ListContentType<Item> = Omit<Item, "contentTypeName" | "relatedConte
|
|
|
276
304
|
id: number;
|
|
277
305
|
url: string;
|
|
278
306
|
};
|
|
307
|
+
interface NavigationModule {
|
|
308
|
+
component: "Header" | "Footer";
|
|
309
|
+
[key: string]: unknown;
|
|
310
|
+
menu: Menu;
|
|
311
|
+
}
|
|
312
|
+
export interface FooterModule extends Omit<NavigationModule, "component"> {
|
|
313
|
+
component: "Footer";
|
|
314
|
+
}
|
|
315
|
+
export interface HeaderModule extends Omit<NavigationModule, "component"> {
|
|
316
|
+
component: "Header";
|
|
317
|
+
}
|
|
318
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/core",
|
|
3
3
|
"description": "Reload version of Griddo Core",
|
|
4
|
-
"license": "
|
|
5
|
-
"version": "1.75.
|
|
4
|
+
"license": "UNLICENSED",
|
|
5
|
+
"version": "1.75.180",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
|
-
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
9
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
10
9
|
"Francis Vega <francis.vega@secuoyas.com>",
|
|
11
10
|
"Gonzalo Hernández <gonzalo.hernandez@secuoyas.com>",
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
"griddo-autotypes": "./dist/autotype.cjs.js"
|
|
24
23
|
},
|
|
25
24
|
"scripts": {
|
|
26
|
-
"build": "
|
|
25
|
+
"build": "rollup -c --sourcemap --bundleConfigAsCjs",
|
|
27
26
|
"build-storybook": "build-storybook",
|
|
28
27
|
"clean": "rm -rf ./dist",
|
|
29
28
|
"publish:stable": "yarn build && npm version patch && npm publish",
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
"eslint-plugin-react-hooks": "^4.0.5",
|
|
55
54
|
"postcss": "^8.2.6",
|
|
56
55
|
"prettier": "^2.7.1",
|
|
57
|
-
"rollup": "^
|
|
56
|
+
"rollup": "^3.18.0",
|
|
58
57
|
"rollup-plugin-babel": "^4.4.0",
|
|
59
58
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
60
59
|
"rollup-plugin-json": "^4.0.0",
|
|
@@ -78,5 +77,5 @@
|
|
|
78
77
|
"resolutions": {
|
|
79
78
|
"colors": "1.4.0"
|
|
80
79
|
},
|
|
81
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "840c30d9ae22d8749015b110a203a4103367a8f6"
|
|
82
81
|
}
|