@griddo/core 1.68.7 → 1.69.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchFrom } from "../fields/props";
|
|
2
2
|
import { PageDataFields } from "../fields/page-data-fields";
|
|
3
|
-
import { DataPacks } from "./props";
|
|
3
|
+
import { DataPacks, ExpirationData } from "./props";
|
|
4
4
|
import { BaseDataSchema } from "./base";
|
|
5
5
|
declare type PageDataSchemaProp = SearchFrom & {
|
|
6
6
|
/** El nombre de lostemplates React para utilizar con el Schema de tipo página. */
|
|
@@ -8,7 +8,7 @@ declare type PageDataSchemaProp = SearchFrom & {
|
|
|
8
8
|
/** Un array de campos de Griddo. */
|
|
9
9
|
fields: PageDataFields[];
|
|
10
10
|
};
|
|
11
|
-
export interface PageDataSchema extends BaseDataSchema, DataPacks {
|
|
11
|
+
export interface PageDataSchema extends BaseDataSchema, DataPacks, ExpirationData {
|
|
12
12
|
taxonomy?: false;
|
|
13
13
|
/** No es necesario indicar la prop `fromPage` en un schema: **Dato estructurado de página**. Siempre va a ser `true`.
|
|
14
14
|
* @deprecated */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SearchFrom } from "../fields/props";
|
|
2
2
|
import { PureDataFields } from "../fields/pure-data-fields";
|
|
3
|
-
import { DataPacks } from "./props";
|
|
3
|
+
import { DataPacks, ExpirationData } from "./props";
|
|
4
4
|
import { BaseDataSchema } from "./base";
|
|
5
5
|
declare type PureDataSchemaProp = SearchFrom & {
|
|
6
6
|
/** Un array de campos de Griddo. */
|
|
7
7
|
fields: PureDataFields[];
|
|
8
8
|
};
|
|
9
|
-
export interface PureDataSchema extends BaseDataSchema, DataPacks {
|
|
9
|
+
export interface PureDataSchema extends BaseDataSchema, DataPacks, ExpirationData {
|
|
10
10
|
/** No es necesario indicar la prop `fromPage` en un schema: **Dato estructurado puro**. Siempre va a ser `false`.
|
|
11
11
|
* @deprecated */
|
|
12
12
|
fromPage?: false;
|
|
@@ -56,6 +56,8 @@ interface BaseUISchema extends DataPacks {
|
|
|
56
56
|
};
|
|
57
57
|
/** Objeto para establecer valores por defecto de las keys del schema. */
|
|
58
58
|
default?: {
|
|
59
|
+
/** Nombre del componente, módulo o template de este schema */
|
|
60
|
+
component: string;
|
|
59
61
|
[key: string]: unknown;
|
|
60
62
|
};
|
|
61
63
|
/** Imágenes que representan el componente, módulo o template en el editor de Griddo. */
|
|
@@ -10,4 +10,10 @@ interface Dimension {
|
|
|
10
10
|
/** Clave del template de la que sacamos el valor para enviar al dataLayer, que lo coge de template y si no del root. */
|
|
11
11
|
from: string;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface ExpirationData {
|
|
14
|
+
/** Key de un campo de fecha del dato estructurado */
|
|
15
|
+
expirationDateField: string;
|
|
16
|
+
/** Indica el offset en días que debe aplicarse al valor de expirationDateField. */
|
|
17
|
+
expirationDateOffset: number;
|
|
18
|
+
}
|
|
19
|
+
export { DataPacks, Dimension, ExpirationData };
|
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.
|
|
5
|
+
"version": "1.69.2",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"resolutions": {
|
|
80
80
|
"colors": "1.4.0"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "a075e961c42e59fd6d4da4997d18736ddb9eef4b"
|
|
83
83
|
}
|