@griddo/core 1.74.0 → 1.74.1
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/index.d.ts
CHANGED
|
@@ -1,86 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import type { Theme } from "./src/types/theme";
|
|
8
|
-
import type { UIFields, PureDataFields, PageDataFields, SimpleContentTypeFields, PageContentTypeFields, SimpleCTFields, PageCTFields } from "./src/types/fields";
|
|
9
|
-
/**
|
|
10
|
-
* Crea un schema para una categoría
|
|
11
|
-
* @param {object} schema - Un schema con el formato Schema categories
|
|
12
|
-
*/
|
|
13
|
-
declare function createCategoriesSchema(schema: CategoriesSchema): CategoriesSchema;
|
|
14
|
-
/**
|
|
15
|
-
* Crea un schema para los valores por defecto del DAM
|
|
16
|
-
* @param {object} schema - Un schema con el formato Schema DAM
|
|
17
|
-
*/
|
|
18
|
-
declare function createDamDefaultsSchema(schema: DamDefaultsSchema): DamDefaultsSchema;
|
|
19
|
-
/**
|
|
20
|
-
* Crea un schema para una categoría de data pack
|
|
21
|
-
* @param {object} schema - Un schema con el formato Schema data pack categories
|
|
22
|
-
*/
|
|
23
|
-
declare function createDataPackCategoriesSchema(schema: DataPackCategoriesSchema): DataPackCategoriesSchema;
|
|
24
|
-
/**
|
|
25
|
-
* Crea un schema para un data pack
|
|
26
|
-
* @param {object} schema - Un schema con el formato Schema data pack
|
|
27
|
-
*/
|
|
28
|
-
declare function createDataPackSchema(schema: DataPackSchema): DataPackSchema;
|
|
29
|
-
/**
|
|
30
|
-
* Crea un schema para una categoría
|
|
31
|
-
* @param {object} schema - Un schema con el formato Schema categories
|
|
32
|
-
*/
|
|
33
|
-
declare function createLanguagesSchema(schema: LanguagesSchema): LanguagesSchema;
|
|
34
|
-
/**
|
|
35
|
-
* Crea un schema para un menú
|
|
36
|
-
* @param {object} schema - Un schema con el formato Schema menú
|
|
37
|
-
*/
|
|
38
|
-
declare function createMenuSchema(schema: MenuSchema): MenuSchema;
|
|
39
|
-
/**
|
|
40
|
-
* Crea un schema para las categorías de módulos
|
|
41
|
-
* @param {object} schema - Un schema con el formato Schema categoría de módulo
|
|
42
|
-
*/
|
|
43
|
-
declare function createModuleCategoriesSchema(schema: ModuleCategoriesSchema): ModuleCategoriesSchema;
|
|
44
|
-
/**
|
|
45
|
-
* Crea un schema para un dato structurado de página
|
|
46
|
-
* @param {object} schema - Un schema con el formato Schema Page Data
|
|
47
|
-
*/
|
|
48
|
-
declare function createPageDataSchema(schema: PageDataSchema): PageDataSchema;
|
|
49
|
-
/**
|
|
50
|
-
* Crea un schema para un dato structurado de página
|
|
51
|
-
* @param {object} schema - Un schema con el formato Schema Page Data
|
|
52
|
-
*/
|
|
53
|
-
declare function createPageContentTypeSchema(schema: PageContentTypeSchema): PageContentTypeSchema;
|
|
54
|
-
/**
|
|
55
|
-
* Crea un schema para un dato structurado puro
|
|
56
|
-
* @param {object} schema - Un schema con el formato Schema Data
|
|
57
|
-
*/
|
|
58
|
-
declare function createPureDataSchema(schema: PureDataSchema): PureDataSchema;
|
|
59
|
-
/**
|
|
60
|
-
* Crea un schema para un dato structurado puro
|
|
61
|
-
* @param {object} schema - Un schema con el formato Schema Data
|
|
62
|
-
*/
|
|
63
|
-
declare function createSimpleContentTypeSchema(schema: SimpleContentTypeSchema): SimpleContentTypeSchema;
|
|
64
|
-
/**
|
|
65
|
-
* Crea un schema para un theme
|
|
66
|
-
* @param {object} schema - Un schema con el formato Schema theme
|
|
67
|
-
*/
|
|
68
|
-
declare function createThemesSchema(schema: ThemesSchema): ThemesSchema;
|
|
69
|
-
/**
|
|
70
|
-
* Crea un schema para las traducciones estáticas
|
|
71
|
-
* @param {object} schema - Un schema con el formato Schema de traducciones
|
|
72
|
-
*/
|
|
73
|
-
declare function createTranslationsSchema(schema: TranslationsSchema): TranslationsSchema;
|
|
74
|
-
/**
|
|
75
|
-
* Crea un schema para un componente, módulo o template
|
|
76
|
-
* @param {object} schema - Un schema con el formato Schema UI
|
|
77
|
-
*/
|
|
78
|
-
declare function createUISchema(schema: UISchema): UISchema;
|
|
79
|
-
declare function createHeaderFooterSchema(schema: HeaderFooterSchema): HeaderFooterSchema;
|
|
80
|
-
declare function createUIField(field: UIFieldsSchema): UIFieldsSchema;
|
|
81
|
-
declare function createPureDataField(field: PureDataFieldsSchema): PureDataFieldsSchema;
|
|
82
|
-
declare function createPageDataField(field: PageDataFieldsSchema): PageDataFieldsSchema;
|
|
83
|
-
declare function createSimpleContentTypeField(field: SimpleContentTypeFieldsSchema): PureDataFieldsSchema;
|
|
84
|
-
declare function createPageContentTypeField(field: PageContentTypeFieldsSchema): PageDataFieldsSchema;
|
|
85
|
-
export { createCategoriesSchema, createDamDefaultsSchema, createDataPackCategoriesSchema, createDataPackSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createHeaderFooterSchema, createPageDataSchema, createPageContentTypeSchema, createPureDataSchema, createSimpleContentTypeSchema, createThemesSchema, createTranslationsSchema, createUISchema, createPageDataField, createPureDataField, createPageContentTypeField, createSimpleContentTypeField, createUIField, };
|
|
86
|
-
export { Theme, Schema, Core, UIFields, PureDataFields, PageDataFields, SimpleContentTypeFields, PageContentTypeFields, SimpleCTFields, PageCTFields, };
|
|
1
|
+
import { Core } from "./src/types/core";
|
|
2
|
+
import { PageContentTypeFields, PageCTFields, PageDataFields, PureDataFields, SimpleContentTypeFields, SimpleCTFields, UIFields } from "./src/types/fields";
|
|
3
|
+
import { Schema } from "./src/types/schema";
|
|
4
|
+
import { Theme } from "./src/types/theme";
|
|
5
|
+
import { createCategoriesSchema, createDamDefaultsSchema, createDataPackCategoriesSchema, createDataPackSchema, createHeaderFooterSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createPageDataField as createPageContentTypeField, createPageDataField, createPageDataSchema as createPageContentTypeSchema, createPageDataSchema, createPureDataField, createPureDataField as createSimpleContentTypeField, createPureDataSchema, createPureDataSchema as createSimpleContentTypeSchema, createThemesSchema, createTranslationsSchema, createUIField, createUISchema } from "./src/functions/create-schemas";
|
|
6
|
+
export { Theme, Schema, Core, UIFields, PureDataFields, PageDataFields, SimpleContentTypeFields, PageContentTypeFields, SimpleCTFields, PageCTFields, createCategoriesSchema, createDamDefaultsSchema, createDataPackCategoriesSchema, createDataPackSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createHeaderFooterSchema, createPageDataSchema, createPageContentTypeSchema, createPureDataSchema, createSimpleContentTypeSchema, createThemesSchema, createTranslationsSchema, createUISchema, createPageDataField, createPureDataField, createPageContentTypeField, createSimpleContentTypeField, createUIField, };
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { UIFieldsSchema } from "../../types/schema-functions/fields/ui-fields";
|
|
3
|
-
import type { PureDataFieldsSchema } from "../../types/schema-functions/fields/pure-data-fields";
|
|
4
|
-
import type { PageDataFieldsSchema } from "../../types/schema-functions/fields/page-data-fields";
|
|
1
|
+
import type { Categories, DamDefaults, DataPackCategories, DataPack, Languages, Menu, ModuleCategories, PageData, PureData, Themes, Translations, UI, HeaderFooter } from "../../types/schema-functions/schemas";
|
|
2
|
+
import type { UIFieldsSchema as UIFields } from "../../types/schema-functions/fields/ui-fields";
|
|
3
|
+
import type { PureDataFieldsSchema as PureDataFields } from "../../types/schema-functions/fields/pure-data-fields";
|
|
4
|
+
import type { PageDataFieldsSchema as PageDataFields } from "../../types/schema-functions/fields/page-data-fields";
|
|
5
5
|
/**
|
|
6
6
|
* Crea un schema para una categoría
|
|
7
7
|
* @param {object} schema - Un schema con el formato Schema categories
|
|
8
8
|
*/
|
|
9
|
-
declare function createCategoriesSchema(schema:
|
|
9
|
+
declare function createCategoriesSchema(schema: Categories): Categories;
|
|
10
10
|
/**
|
|
11
11
|
* Crea un schema para los valores por defecto del DAM
|
|
12
12
|
* @param {object} schema - Un schema con el formato Schema DAM
|
|
13
13
|
*/
|
|
14
|
-
declare function createDamDefaultsSchema(schema:
|
|
14
|
+
declare function createDamDefaultsSchema(schema: DamDefaults): DamDefaults;
|
|
15
15
|
/**
|
|
16
16
|
* Crea un schema para una categoría de data pack
|
|
17
17
|
* @param {object} schema - Un schema con el formato Schema data pack categories
|
|
18
18
|
*/
|
|
19
|
-
declare function createDataPackCategoriesSchema(schema:
|
|
19
|
+
declare function createDataPackCategoriesSchema(schema: DataPackCategories): DataPackCategories;
|
|
20
20
|
/**
|
|
21
21
|
* Crea un schema para un data pack
|
|
22
22
|
* @param {object} schema - Un schema con el formato Schema data pack
|
|
23
23
|
*/
|
|
24
|
-
declare function createDataPackSchema(schema:
|
|
24
|
+
declare function createDataPackSchema(schema: DataPack): DataPack;
|
|
25
25
|
/**
|
|
26
26
|
* Crea un schema para una categoría
|
|
27
27
|
* @param {object} schema - Un schema con el formato Schema categories
|
|
28
28
|
*/
|
|
29
|
-
declare function createLanguagesSchema(schema:
|
|
29
|
+
declare function createLanguagesSchema(schema: Languages): Languages;
|
|
30
30
|
/**
|
|
31
31
|
* Crea un schema para un menú
|
|
32
32
|
* @param {object} schema - Un schema con el formato Schema menú
|
|
33
33
|
*/
|
|
34
|
-
declare function createMenuSchema(schema:
|
|
34
|
+
declare function createMenuSchema(schema: Menu): Menu;
|
|
35
35
|
/**
|
|
36
36
|
* Crea un schema para las categorías de módulos
|
|
37
37
|
* @param {object} schema - Un schema con el formato Schema categoría de módulo
|
|
38
38
|
*/
|
|
39
|
-
declare function createModuleCategoriesSchema(schema:
|
|
39
|
+
declare function createModuleCategoriesSchema(schema: ModuleCategories): ModuleCategories;
|
|
40
40
|
/**
|
|
41
41
|
* Crea un schema para un dato structurado de página
|
|
42
42
|
* @param {object} schema - Un schema con el formato Schema Page Data
|
|
43
43
|
*/
|
|
44
|
-
declare function createPageDataSchema(schema:
|
|
44
|
+
declare function createPageDataSchema(schema: PageData): PageData;
|
|
45
45
|
/**
|
|
46
46
|
* Crea un schema para un dato structurado puro
|
|
47
47
|
* @param {object} schema - Un schema con el formato Schema Data
|
|
48
48
|
*/
|
|
49
|
-
declare function createPureDataSchema(schema:
|
|
49
|
+
declare function createPureDataSchema(schema: PureData): PureData;
|
|
50
50
|
/**
|
|
51
51
|
* Crea un schema para un theme
|
|
52
52
|
* @param {object} schema - Un schema con el formato Schema theme
|
|
53
53
|
*/
|
|
54
|
-
declare function createThemesSchema(schema:
|
|
54
|
+
declare function createThemesSchema(schema: Themes): Themes;
|
|
55
55
|
/**
|
|
56
56
|
* Crea un schema para las traducciones estáticas
|
|
57
57
|
* @param {object} schema - Un schema con el formato Schema de traducciones
|
|
58
58
|
*/
|
|
59
|
-
declare function createTranslationsSchema(schema:
|
|
59
|
+
declare function createTranslationsSchema(schema: Translations): Translations;
|
|
60
60
|
/**
|
|
61
61
|
* Crea un schema para un componente, módulo o template
|
|
62
62
|
* @param {object} schema - Un schema con el formato Schema UI
|
|
63
63
|
*/
|
|
64
|
-
declare function createUISchema(schema:
|
|
65
|
-
declare function createHeaderFooterSchema(schema:
|
|
66
|
-
declare function createUIField(field:
|
|
67
|
-
declare function createPureDataField(field:
|
|
68
|
-
declare function createPageDataField(field:
|
|
64
|
+
declare function createUISchema(schema: UI): UI;
|
|
65
|
+
declare function createHeaderFooterSchema(schema: HeaderFooter): HeaderFooter;
|
|
66
|
+
declare function createUIField(field: UIFields): UIFields;
|
|
67
|
+
declare function createPureDataField(field: PureDataFields): PureDataFields;
|
|
68
|
+
declare function createPageDataField(field: PageDataFields): PageDataFields;
|
|
69
69
|
export { createCategoriesSchema, createDamDefaultsSchema, createDataPackCategoriesSchema, createDataPackSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createHeaderFooterSchema, createPageDataSchema, createPureDataSchema, createThemesSchema, createTranslationsSchema, createUISchema, createPageDataField, createPureDataField, createUIField, };
|
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.74.
|
|
5
|
+
"version": "1.74.1",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"resolutions": {
|
|
74
74
|
"colors": "1.4.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "245ee6160f1fe588594018e933e186e436eefb5a"
|
|
77
77
|
}
|