@griddo/core 1.75.72 → 1.75.74

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.
@@ -168,10 +168,23 @@ export declare type Menu = {
168
168
  export declare type TemplateSection<GriddoModule> = {
169
169
  modules: Array<GriddoModule>;
170
170
  };
171
- export declare type QueriedDataOf<ContentType> = Array<{
171
+ export declare type QueriedData<ContentType> = Array<{
172
+ /** ContentType content */
172
173
  content?: Partial<ContentType>;
174
+ /** ContentType name */
175
+ structuredData?: ContentType extends {
176
+ contentTypeName: unknown;
177
+ } ? ContentType["contentTypeName"] : never;
178
+ relatedPage?: {
179
+ pageId: number;
180
+ url?: string;
181
+ origin?: string;
182
+ availableSites?: Array<{
183
+ id?: number;
184
+ name?: string;
185
+ }>;
186
+ };
173
187
  }>;
174
- export declare type QueriedData<ContentType> = QueriedDataOf<ContentType>;
175
188
  export declare type ExtraListTemplateProps = {
176
189
  /** Full URL for the page */
177
190
  baseLink?: string;
@@ -254,9 +254,9 @@ export interface ResponsiveImageProps {
254
254
  export interface FullPath {
255
255
  /** Slug for the site with the format `/site-name` */
256
256
  site?: string;
257
- /** Slug for the domain with the format `/domain-name` */
257
+ /** Slug for the domain with the format `/domain-name` */
258
258
  domain?: string;
259
- /** Slug for the domain url the format `//domain.com/domain-name` */
259
+ /** Slug for the domain url the format `//domain.com/domain-name` */
260
260
  domainUrl?: string;
261
261
  /** Slug gor the language with the format `/language-name` */
262
262
  language?: string;
@@ -83,15 +83,15 @@ interface GenericColorPicker extends GenericField {
83
83
  /** Texfield that allows to display a modal to choose a color. */
84
84
  type: "ColorPicker";
85
85
  /** If `true` (only fixed colors are used) the text field is disabled and the name value is stored, which will be common to all theme options. In this case, the scheme colors must be declared as an array of objects. */
86
- onlyFixedColors?: boolean;
86
+ isThemePalette?: boolean;
87
87
  }
88
88
  interface DynamicColorPicker extends GenericColorPicker {
89
- onlyFixedColors?: false;
89
+ isThemePalette?: false;
90
90
  /** Array of hexadecimal codes of the colors that will appear by default. It is also possible to specify a theme to customize the colors. */
91
91
  colors: Array<string> | Array<ThemeColors>;
92
92
  }
93
93
  interface FixedColorPicker extends GenericColorPicker {
94
- onlyFixedColors?: true;
94
+ isThemePalette?: true;
95
95
  /** Array of objects with { name: 'primitiveName', hex: '#xxxxxx' }. */
96
96
  colors: Array<ThemeFixedColors>;
97
97
  }
@@ -40,8 +40,7 @@ interface BaseUI extends DataPacks, _AutoTypes {
40
40
  singleInstance?: boolean;
41
41
  /** React component name for the schema. */
42
42
  component: string;
43
- /** Category name previously exported as `moduleCategories` for Griddo.
44
- * Categories are used to distribute and sort modules in the Griddo editor interface. */
43
+ /** Category name previously exported as `moduleCategories` for Griddo. Categories are used to distribute and sort modules in the Griddo editor interface. */
45
44
  category?: string;
46
45
  /** Name to represent the component, module or template in the Griddo editor interface. */
47
46
  displayName: string;
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.72",
5
+ "version": "1.75.74",
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": "5546a54eb3e80dc498ef24e88e552e0c23c09e2a"
81
+ "gitHead": "4c2989da49d8b494544ca2457532353c154b0d03"
82
82
  }