@griddo/core 1.75.43 → 1.75.45
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.
|
@@ -4,8 +4,8 @@ import * as SimpleContentType_Fields from "../../types/schema-fields/simple-cont
|
|
|
4
4
|
import * as UI_Fields from "../../types/schema-fields/ui-fields";
|
|
5
5
|
export declare type SchemaFieldTypes = "ArrayFieldGroup" | "AsyncCheckGroup" | "AsyncSelect" | "AsyncSelect" | "CheckGroup" | "ColorPicker" | "ComponentArray" | "ComponentContainer" | "ConditionalField" | "DateField" | "FieldGroup" | "FieldsDivider" | "FileField" | "HeadingField" | "ImageField" | "LinkField" | "MultiCheckSelect" | "MultiCheckSelectGroup" | "NoteField" | "NumberField" | "RadioGroup" | "ReferenceField" | "RichText" | "Select" | "SliderField" | "TextArea" | "TextField" | "ToggleField" | "UniqueCheck" | "UrlField" | "VisualUniqueSelection" | "Wysiwyg";
|
|
6
6
|
export declare type FieldReturnTypes = "Fields.ArrayFieldGroup" | "Fields.AsyncCheckGroup" | "Fields.AsyncSelect" | "Fields.CheckGroup" | "Fields.ColorPicker" | "Fields.ColorPickerFixed" | "Fields.ComponentArray" | "Fields.ComponentContainer" | "Fields.Conditional" | "Fields.Date" | "Fields.FieldGroup" | "Fields.FieldsDivider" | "Fields.File" | "Fields.Heading" | "Fields.Image" | "Fields.Link" | "Fields.MultiCheckSelect<Relations>" | "Fields.MultiCheckSelectGroup" | "Fields.Note" | "Fields.Number" | "Fields.RadioGroup" | "Fields.Reference" | "Fields.RichText" | "Fields.Select" | "Fields.Slider" | "Fields.TextArea" | "Fields.Text" | "Fields.Toggle" | "Fields.UniqueCheck" | "Fields.Url" | "Fields.VisualUniqueSelection" | "Fields.Wysiwyg";
|
|
7
|
-
export declare type SchemaType = Schema.Component | Schema.Module | Schema.Template | Schema.SimpleContentType | Schema.PageContentType;
|
|
8
|
-
export declare type SchemaTypeWithComponentProp = Schema.Component | Schema.Module | Schema.Template | (Schema.SimpleContentType & {
|
|
7
|
+
export declare type SchemaType = Schema.Component | Schema.ContentTypeModule | Schema.MultiPageModule | Schema.Module | Schema.Template | Schema.ListTemplate | Schema.SimpleContentType | Schema.PageContentType;
|
|
8
|
+
export declare type SchemaTypeWithComponentProp = Schema.Component | Schema.ContentTypeModule | Schema.MultiPageModule | Schema.Module | Schema.Template | Schema.ListTemplate | (Schema.SimpleContentType & {
|
|
9
9
|
component: string;
|
|
10
10
|
}) | (Schema.PageContentType & {
|
|
11
11
|
component: string;
|
|
@@ -89,11 +89,8 @@ declare function schemasToArray(objectSchemas: Record<string, SchemaType>): ({
|
|
|
89
89
|
} | {
|
|
90
90
|
component: string;
|
|
91
91
|
schemaType: "component";
|
|
92
|
+
default: import("../../types/schemas/UI").BaseDefault;
|
|
92
93
|
configTabs: import("../../types/schemas/props").ConfigTabs<unknown>[];
|
|
93
|
-
default: {
|
|
94
|
-
[key: string]: unknown;
|
|
95
|
-
component: string;
|
|
96
|
-
};
|
|
97
94
|
singleInstance?: boolean | undefined;
|
|
98
95
|
category?: string | undefined;
|
|
99
96
|
displayName: string;
|
|
@@ -103,7 +100,6 @@ declare function schemasToArray(objectSchemas: Record<string, SchemaType>): ({
|
|
|
103
100
|
thumbnails?: import("../../types/schemas/props").Thumbnails | {
|
|
104
101
|
[key: string]: import("../../types/schemas/props").Thumbnails;
|
|
105
102
|
} | undefined;
|
|
106
|
-
hasDistributorData?: boolean | undefined;
|
|
107
103
|
dataPacks?: string[] | null | undefined;
|
|
108
104
|
_autoType?: {
|
|
109
105
|
relations?: boolean | undefined;
|
|
@@ -111,11 +107,44 @@ declare function schemasToArray(objectSchemas: Record<string, SchemaType>): ({
|
|
|
111
107
|
} | {
|
|
112
108
|
component: string;
|
|
113
109
|
schemaType: "module";
|
|
110
|
+
default: import("../../types/schemas/UI").ContentTypeModuleDefault;
|
|
111
|
+
configTabs: import("../../types/schemas/props").ConfigTabs<unknown>[];
|
|
112
|
+
singleInstance?: boolean | undefined;
|
|
113
|
+
category?: string | undefined;
|
|
114
|
+
displayName: string;
|
|
115
|
+
sectionList?: {
|
|
116
|
+
[key: string]: string[];
|
|
117
|
+
} | undefined;
|
|
118
|
+
thumbnails?: import("../../types/schemas/props").Thumbnails | {
|
|
119
|
+
[key: string]: import("../../types/schemas/props").Thumbnails;
|
|
120
|
+
} | undefined;
|
|
121
|
+
dataPacks?: string[] | null | undefined;
|
|
122
|
+
_autoType?: {
|
|
123
|
+
relations?: boolean | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
} | {
|
|
126
|
+
component: string;
|
|
127
|
+
schemaType: "module";
|
|
128
|
+
default: import("../../types/schemas/UI").MultiPageModuleDefault;
|
|
129
|
+
configTabs: import("../../types/schemas/props").ConfigTabs<unknown>[];
|
|
130
|
+
singleInstance?: boolean | undefined;
|
|
131
|
+
category?: string | undefined;
|
|
132
|
+
displayName: string;
|
|
133
|
+
sectionList?: {
|
|
134
|
+
[key: string]: string[];
|
|
135
|
+
} | undefined;
|
|
136
|
+
thumbnails?: import("../../types/schemas/props").Thumbnails | {
|
|
137
|
+
[key: string]: import("../../types/schemas/props").Thumbnails;
|
|
138
|
+
} | undefined;
|
|
139
|
+
dataPacks?: string[] | null | undefined;
|
|
140
|
+
_autoType?: {
|
|
141
|
+
relations?: boolean | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
} | {
|
|
144
|
+
component: string;
|
|
145
|
+
schemaType: "module";
|
|
146
|
+
default: import("../../types/schemas/UI").BaseDefault;
|
|
114
147
|
configTabs: import("../../types/schemas/props").ConfigTabs<unknown>[];
|
|
115
|
-
default: {
|
|
116
|
-
[key: string]: unknown;
|
|
117
|
-
component: string;
|
|
118
|
-
};
|
|
119
148
|
singleInstance?: boolean | undefined;
|
|
120
149
|
category?: string | undefined;
|
|
121
150
|
displayName: string;
|
|
@@ -125,13 +154,13 @@ declare function schemasToArray(objectSchemas: Record<string, SchemaType>): ({
|
|
|
125
154
|
thumbnails?: import("../../types/schemas/props").Thumbnails | {
|
|
126
155
|
[key: string]: import("../../types/schemas/props").Thumbnails;
|
|
127
156
|
} | undefined;
|
|
128
|
-
hasDistributorData?: boolean | undefined;
|
|
129
157
|
dataPacks?: string[] | null | undefined;
|
|
130
158
|
_autoType?: {
|
|
131
159
|
relations?: boolean | undefined;
|
|
132
160
|
} | undefined;
|
|
133
161
|
} | {
|
|
134
162
|
component: string;
|
|
163
|
+
default: import("../../types/schemas/UI").TemplateDefaultBase;
|
|
135
164
|
schemaType: "template";
|
|
136
165
|
type: {
|
|
137
166
|
label: string;
|
|
@@ -142,10 +171,32 @@ declare function schemasToArray(objectSchemas: Record<string, SchemaType>): ({
|
|
|
142
171
|
dimensions?: import("../../types/schemas/props").Dimension[] | undefined;
|
|
143
172
|
content?: import("../../types/schema-fields/ui-fields").UIFields<unknown>[] | undefined;
|
|
144
173
|
config?: import("../../types/schema-fields/ui-fields").UIFields<unknown>[] | undefined;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
174
|
+
singleInstance?: boolean | undefined;
|
|
175
|
+
category?: string | undefined;
|
|
176
|
+
displayName: string;
|
|
177
|
+
sectionList?: {
|
|
178
|
+
[key: string]: string[];
|
|
179
|
+
} | undefined;
|
|
180
|
+
thumbnails?: import("../../types/schemas/props").Thumbnails | {
|
|
181
|
+
[key: string]: import("../../types/schemas/props").Thumbnails;
|
|
182
|
+
} | undefined;
|
|
183
|
+
dataPacks?: string[] | null | undefined;
|
|
184
|
+
_autoType?: {
|
|
185
|
+
relations?: boolean | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
} | {
|
|
188
|
+
component: string;
|
|
189
|
+
default: import("../../types/schemas/UI").ListTemplateDefault;
|
|
190
|
+
schemaType: "template";
|
|
191
|
+
type: {
|
|
192
|
+
label: string;
|
|
193
|
+
value: string;
|
|
194
|
+
mode?: "list" | "detail" | undefined;
|
|
195
|
+
special?: "404" | "sitemap" | undefined;
|
|
148
196
|
};
|
|
197
|
+
dimensions?: import("../../types/schemas/props").Dimension[] | undefined;
|
|
198
|
+
content?: import("../../types/schema-fields/ui-fields").UIFields<unknown>[] | undefined;
|
|
199
|
+
config?: import("../../types/schema-fields/ui-fields").UIFields<unknown>[] | undefined;
|
|
149
200
|
singleInstance?: boolean | undefined;
|
|
150
201
|
category?: string | undefined;
|
|
151
202
|
displayName: string;
|
|
@@ -155,7 +206,6 @@ declare function schemasToArray(objectSchemas: Record<string, SchemaType>): ({
|
|
|
155
206
|
thumbnails?: import("../../types/schemas/props").Thumbnails | {
|
|
156
207
|
[key: string]: import("../../types/schemas/props").Thumbnails;
|
|
157
208
|
} | undefined;
|
|
158
|
-
hasDistributorData?: boolean | undefined;
|
|
159
209
|
dataPacks?: string[] | null | undefined;
|
|
160
210
|
_autoType?: {
|
|
161
211
|
relations?: boolean | undefined;
|
|
@@ -1,25 +1,55 @@
|
|
|
1
1
|
import { UIFields } from "../schema-fields/ui-fields";
|
|
2
2
|
import { BaseUI } from "./base";
|
|
3
3
|
import { ConfigTabs, Dimension } from "./props";
|
|
4
|
-
interface
|
|
4
|
+
export interface BaseDefault {
|
|
5
|
+
/** Component or module name of this schema. */
|
|
6
|
+
component: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface MultiPageModuleDefault extends BaseDefault {
|
|
10
|
+
/** Required prop as `true` for MultiPage Modules */
|
|
11
|
+
hasGriddoMultiPage: true;
|
|
12
|
+
/** ComponentArray required prop for Multipage Modules */
|
|
13
|
+
elements: Array<unknown>;
|
|
14
|
+
}
|
|
15
|
+
export interface ContentTypeModuleDefault extends BaseDefault {
|
|
16
|
+
/** Required prop as `true` for ContentType Modules */
|
|
17
|
+
hasDistributorData: true;
|
|
18
|
+
/** `data` prop requierd for ContentType modules */
|
|
19
|
+
data: {
|
|
20
|
+
/** Array with the structured data types that the field has to load. */
|
|
21
|
+
source: Array<string>;
|
|
22
|
+
/** Default selection type for the reference field */
|
|
23
|
+
mode: "auto" | "manual";
|
|
24
|
+
/** Default Order criteria */
|
|
25
|
+
order: string;
|
|
26
|
+
/** Default Item quantity */
|
|
27
|
+
quantity: number;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface ComponentAndModuleBase<WhiteListElements> extends BaseUI {
|
|
5
31
|
/** Type of schema. */
|
|
6
32
|
schemaType: "component" | "module" | "template";
|
|
7
33
|
/** Array of objects that represent each of the tabs of the component, module or template in the Griddo editor where the form fields for data entry will be displayed. */
|
|
8
34
|
configTabs: Array<ConfigTabs<WhiteListElements>>;
|
|
9
|
-
/** Object to set default values of schema keys. */
|
|
10
|
-
default: {
|
|
11
|
-
/** Component or module name of this schema. */
|
|
12
|
-
component: string;
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
};
|
|
15
35
|
}
|
|
16
36
|
export interface Component<WhiteListElements = unknown> extends ComponentAndModuleBase<WhiteListElements> {
|
|
17
37
|
schemaType: "component";
|
|
38
|
+
default: BaseDefault;
|
|
18
39
|
}
|
|
19
40
|
export interface Module<WhiteListElements = unknown> extends ComponentAndModuleBase<WhiteListElements> {
|
|
20
41
|
schemaType: "module";
|
|
42
|
+
default: BaseDefault;
|
|
43
|
+
}
|
|
44
|
+
export interface MultiPageModule<WhiteListElements = unknown> extends ComponentAndModuleBase<WhiteListElements> {
|
|
45
|
+
schemaType: "module";
|
|
46
|
+
default: MultiPageModuleDefault;
|
|
21
47
|
}
|
|
22
|
-
export interface
|
|
48
|
+
export interface ContentTypeModule<WhiteListElements = unknown> extends ComponentAndModuleBase<WhiteListElements> {
|
|
49
|
+
schemaType: "module";
|
|
50
|
+
default: ContentTypeModuleDefault;
|
|
51
|
+
}
|
|
52
|
+
export interface TemplateBase<WhiteListElements = unknown> extends BaseUI {
|
|
23
53
|
/** Template Schema. */
|
|
24
54
|
schemaType: "template";
|
|
25
55
|
/** Indicates the type of Schema for the template: List, Detail, 404, etc. */
|
|
@@ -39,11 +69,20 @@ export interface Template<WhiteListElements = unknown> extends BaseUI {
|
|
|
39
69
|
content?: Array<UIFields<WhiteListElements>>;
|
|
40
70
|
/** Array of fields for the config tab. */
|
|
41
71
|
config?: Array<UIFields<WhiteListElements>>;
|
|
42
|
-
/** Object to set default values of schema keys. */
|
|
43
|
-
default: {
|
|
44
|
-
/** Name of the template of this schema. */
|
|
45
|
-
templateType: string;
|
|
46
|
-
[key: string]: unknown;
|
|
47
|
-
};
|
|
48
72
|
}
|
|
49
|
-
export {
|
|
73
|
+
export interface TemplateDefaultBase {
|
|
74
|
+
type: "template";
|
|
75
|
+
templateType: string;
|
|
76
|
+
[key: string]: unknown;
|
|
77
|
+
}
|
|
78
|
+
export interface ListTemplateDefault extends TemplateDefaultBase {
|
|
79
|
+
hasDistributorData: true;
|
|
80
|
+
itemsPerPage: number;
|
|
81
|
+
activePage: number;
|
|
82
|
+
}
|
|
83
|
+
export interface Template<WhiteListElements = unknown> extends TemplateBase<WhiteListElements> {
|
|
84
|
+
default: TemplateDefaultBase;
|
|
85
|
+
}
|
|
86
|
+
export interface ListTemplate<WhiteListElements = unknown> extends TemplateBase<WhiteListElements> {
|
|
87
|
+
default: ListTemplateDefault;
|
|
88
|
+
}
|
|
@@ -8,5 +8,5 @@ import { Menu } from "./Menu";
|
|
|
8
8
|
import { ModuleCategories } from "./ModuleCategories";
|
|
9
9
|
import { Themes } from "./Themes";
|
|
10
10
|
import { Translations } from "./Translations";
|
|
11
|
-
import { Component, Module, Template } from "./UI";
|
|
12
|
-
export { CategoryContentType, Component, DamDefaults, DataPack, DataPackCategory, Footer, Header, Languages, Menu, Module, ModuleCategories, PageContentType, SimpleContentType, Template, Themes, Translations, };
|
|
11
|
+
import { Component, ContentTypeModule, Module, MultiPageModule, Template, ListTemplate } from "./UI";
|
|
12
|
+
export { CategoryContentType, Component, ContentTypeModule, DamDefaults, DataPack, DataPackCategory, Footer, Header, Languages, ListTemplate, Menu, Module, ModuleCategories, MultiPageModule, PageContentType, SimpleContentType, Template, Themes, Translations, };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@griddo/core",
|
|
3
3
|
"description": "Reload version of Griddo Core",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.75.
|
|
5
|
+
"version": "1.75.45",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"resolutions": {
|
|
79
79
|
"colors": "1.4.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "c590b2826e56a19c82324e215fbac98e3f7aebe4"
|
|
82
82
|
}
|