@griddo/core 1.75.258 → 10.1.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.
@@ -14,5 +14,5 @@ declare const createModuleCategoriesSchema: (schema: ModuleCategories) => Module
14
14
  declare const createModuleSchema: (schema: Module) => Module<unknown>;
15
15
  declare const createTemplateSchema: (schema: Template) => Template<any>;
16
16
  declare const createThemesSchema: (schema: Themes) => Themes;
17
- declare const createTranslationsSchema: (schema: Translations) => Partial<Record<"br" | "hr" | "li" | "th" | "tr" | "Cy_az_AZ" | "Cy_sr_SP" | "Cy_uz_UZ" | "Lt_az_AZ" | "Lt_sr_SP" | "Lt_uz_UZ" | "aa" | "ab" | "ae" | "af" | "af_ZA" | "ak" | "am" | "an" | "ar" | "ar_AE" | "ar_BH" | "ar_DZ" | "ar_EG" | "ar_IQ" | "ar_JO" | "ar_KW" | "ar_LB" | "ar_LY" | "ar_MA" | "ar_OM" | "ar_QA" | "ar_SA" | "ar_SY" | "ar_TN" | "ar_YE" | "as" | "av" | "ay" | "az" | "ba" | "be" | "be_BY" | "bg" | "bg_BG" | "bh" | "bi" | "bm" | "bn" | "bo" | "bs" | "ca" | "ca_ES" | "ce" | "ch" | "co" | "cr" | "cs" | "cs_CZ" | "cu" | "cv" | "cy" | "da" | "da_DK" | "de" | "de_AT" | "de_CH" | "de_DE" | "de_LI" | "de_LU" | "div_MV" | "dv" | "dz" | "ee" | "el" | "el_GR" | "en" | "en_AU" | "en_BZ" | "en_CA" | "en_CB" | "en_GB" | "en_IE" | "en_JM" | "en_NZ" | "en_PH" | "en_TT" | "en_US" | "en_ZA" | "en_ZW" | "eo" | "es" | "es_AR" | "es_BO" | "es_CL" | "es_CO" | "es_CR" | "es_DO" | "es_EC" | "es_ES" | "es_GT" | "es_HN" | "es_MX" | "es_NI" | "es_PA" | "es_PE" | "es_PR" | "es_PY" | "es_SV" | "es_UY" | "es_VE" | "et" | "et_EE" | "eu" | "eu_ES" | "fa" | "fa_IR" | "ff" | "fi" | "fi_FI" | "fj" | "fo" | "fo_FO" | "fr" | "fr_BE" | "fr_CA" | "fr_CH" | "fr_FR" | "fr_LU" | "fr_MC" | "fy" | "ga" | "gd" | "gl" | "gl_ES" | "gn" | "gu" | "gu_IN" | "gv" | "ha" | "he" | "he_IL" | "hi" | "hi_IN" | "ho" | "hr_HR" | "ht" | "hu" | "hu_HU" | "hy" | "hy_AM" | "hz" | "ia" | "id" | "id_ID" | "ie" | "ig" | "ii" | "ik" | "io" | "is" | "is_IS" | "it" | "it_CH" | "it_IT" | "iu" | "ja" | "ja_JP" | "jv" | "ka" | "ka_GE" | "kg" | "ki" | "kj" | "kk" | "kk_KZ" | "kl" | "km" | "kn" | "kn_IN" | "ko" | "ko_KR" | "kr" | "ks" | "ku" | "kv" | "kw" | "ky" | "ky_KZ" | "la" | "lb" | "lg" | "ln" | "lo" | "lt" | "lt_LT" | "lu" | "lv" | "lv_LV" | "mg" | "mh" | "mi" | "mk" | "mk_MK" | "ml" | "mn" | "mn_MN" | "mr" | "mr_IN" | "ms" | "ms_BN" | "ms_MY" | "mt" | "my" | "na" | "nb" | "nb_NO" | "nd" | "ne" | "ng" | "nl" | "nl_BE" | "nl_NL" | "nn" | "nn_NO" | "no" | "nr" | "nv" | "ny" | "oc" | "oj" | "om" | "or" | "os" | "pa" | "pa_IN" | "pi" | "pl" | "pl_PL" | "ps" | "pt" | "pt_BR" | "pt_PT" | "qu" | "rm" | "rn" | "ro" | "ro_RO" | "ru" | "ru_RU" | "rw" | "sa" | "sa_IN" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sk_SK" | "sl" | "sl_SI" | "sm" | "sn" | "so" | "sq" | "sq_AL" | "sr" | "ss" | "st" | "su" | "sv" | "sv_FI" | "sv_SE" | "sw" | "sw_KE" | "ta" | "ta_IN" | "te" | "te_IN" | "tg" | "th_TH" | "ti" | "tk" | "tl" | "tn" | "to" | "tr_TR" | "ts" | "tt" | "tt_RU" | "tw" | "ty" | "ug" | "uk" | "uk_UA" | "ur" | "ur_PK" | "uz" | "ve" | "vi" | "vi_VN" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "za" | "zh" | "zh_CHS" | "zh_CHT" | "zh_CN" | "zh_HK" | "zh_MO" | "zh_SG" | "zh_TW" | "zu", Record<string, unknown>>>;
17
+ declare const createTranslationsSchema: (schema: Translations) => Partial<Record<"br" | "hr" | "li" | "th" | "tr" | "id" | "Cy_az_AZ" | "Cy_sr_SP" | "Cy_uz_UZ" | "Lt_az_AZ" | "Lt_sr_SP" | "Lt_uz_UZ" | "aa" | "ab" | "ae" | "af" | "af_ZA" | "ak" | "am" | "an" | "ar" | "ar_AE" | "ar_BH" | "ar_DZ" | "ar_EG" | "ar_IQ" | "ar_JO" | "ar_KW" | "ar_LB" | "ar_LY" | "ar_MA" | "ar_OM" | "ar_QA" | "ar_SA" | "ar_SY" | "ar_TN" | "ar_YE" | "as" | "av" | "ay" | "az" | "ba" | "be" | "be_BY" | "bg" | "bg_BG" | "bh" | "bi" | "bm" | "bn" | "bo" | "bs" | "ca" | "ca_ES" | "ce" | "ch" | "co" | "cr" | "cs" | "cs_CZ" | "cu" | "cv" | "cy" | "da" | "da_DK" | "de" | "de_AT" | "de_CH" | "de_DE" | "de_LI" | "de_LU" | "div_MV" | "dv" | "dz" | "ee" | "el" | "el_GR" | "en" | "en_AU" | "en_BZ" | "en_CA" | "en_CB" | "en_GB" | "en_IE" | "en_JM" | "en_NZ" | "en_PH" | "en_TT" | "en_US" | "en_ZA" | "en_ZW" | "eo" | "es" | "es_AR" | "es_BO" | "es_CL" | "es_CO" | "es_CR" | "es_DO" | "es_EC" | "es_ES" | "es_GT" | "es_HN" | "es_MX" | "es_NI" | "es_PA" | "es_PE" | "es_PR" | "es_PY" | "es_SV" | "es_UY" | "es_VE" | "et" | "et_EE" | "eu" | "eu_ES" | "fa" | "fa_IR" | "ff" | "fi" | "fi_FI" | "fj" | "fo" | "fo_FO" | "fr" | "fr_BE" | "fr_CA" | "fr_CH" | "fr_FR" | "fr_LU" | "fr_MC" | "fy" | "ga" | "gd" | "gl" | "gl_ES" | "gn" | "gu" | "gu_IN" | "gv" | "ha" | "he" | "he_IL" | "hi" | "hi_IN" | "ho" | "hr_HR" | "ht" | "hu" | "hu_HU" | "hy" | "hy_AM" | "hz" | "ia" | "id_ID" | "ie" | "ig" | "ii" | "ik" | "io" | "is" | "is_IS" | "it" | "it_CH" | "it_IT" | "iu" | "ja" | "ja_JP" | "jv" | "ka" | "ka_GE" | "kg" | "ki" | "kj" | "kk" | "kk_KZ" | "kl" | "km" | "kn" | "kn_IN" | "ko" | "ko_KR" | "kr" | "ks" | "ku" | "kv" | "kw" | "ky" | "ky_KZ" | "la" | "lb" | "lg" | "ln" | "lo" | "lt" | "lt_LT" | "lu" | "lv" | "lv_LV" | "mg" | "mh" | "mi" | "mk" | "mk_MK" | "ml" | "mn" | "mn_MN" | "mr" | "mr_IN" | "ms" | "ms_BN" | "ms_MY" | "mt" | "my" | "na" | "nb" | "nb_NO" | "nd" | "ne" | "ng" | "nl" | "nl_BE" | "nl_NL" | "nn" | "nn_NO" | "no" | "nr" | "nv" | "ny" | "oc" | "oj" | "om" | "or" | "os" | "pa" | "pa_IN" | "pi" | "pl" | "pl_PL" | "ps" | "pt" | "pt_BR" | "pt_PT" | "qu" | "rm" | "rn" | "ro" | "ro_RO" | "ru" | "ru_RU" | "rw" | "sa" | "sa_IN" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sk_SK" | "sl" | "sl_SI" | "sm" | "sn" | "so" | "sq" | "sq_AL" | "sr" | "ss" | "st" | "su" | "sv" | "sv_FI" | "sv_SE" | "sw" | "sw_KE" | "ta" | "ta_IN" | "te" | "te_IN" | "tg" | "th_TH" | "ti" | "tk" | "tl" | "tn" | "to" | "tr_TR" | "ts" | "tt" | "tt_RU" | "tw" | "ty" | "ug" | "uk" | "uk_UA" | "ur" | "ur_PK" | "uz" | "ve" | "vi" | "vi_VN" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "za" | "zh" | "zh_CHS" | "zh_CHT" | "zh_CN" | "zh_HK" | "zh_MO" | "zh_SG" | "zh_TW" | "zu", Record<string, unknown>>>;
18
18
  export { createCategoryContentTypeSchema, createComponentSchema, createDamDefaultsSchema, createDataPackCategorySchema, createDataPackSchema, createFooterSchema, createHeaderSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createModuleSchema, createPageContentTypeSchema, createSimpleContentTypeSchema, createTemplateSchema, createThemesSchema, createTranslationsSchema, };
@@ -1,29 +1,94 @@
1
1
  import { Theme } from "../..";
2
2
  export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalTheme | Theme.Theme>, primitives: string | Array<string>, subtheme?: string) => ({
3
3
  primitives: Theme.Primitives;
4
- subthemes: {
4
+ subthemes: ({
5
5
  primitives: Theme.Primitives;
6
+ preferColorScheme: true;
6
7
  id: string;
7
8
  name: string;
8
9
  selector: string;
9
10
  description?: string | undefined;
10
- }[];
11
+ } | {
12
+ primitives: Theme.Primitives;
13
+ preferColorScheme?: false | undefined;
14
+ id: string;
15
+ name: string;
16
+ selector: string;
17
+ description?: string | undefined;
18
+ })[];
19
+ preferColorScheme: true;
20
+ id: string;
21
+ name: string;
22
+ selector: string;
23
+ description?: string | undefined;
11
24
  customMedia?: {
12
25
  [key: string]: string;
13
26
  } | undefined;
27
+ } | {
28
+ primitives: Theme.Primitives;
29
+ subthemes: ({
30
+ primitives: Theme.Primitives;
31
+ preferColorScheme: true;
32
+ id: string;
33
+ name: string;
34
+ selector: string;
35
+ description?: string | undefined;
36
+ } | {
37
+ primitives: Theme.Primitives;
38
+ preferColorScheme?: false | undefined;
39
+ id: string;
40
+ name: string;
41
+ selector: string;
42
+ description?: string | undefined;
43
+ })[];
44
+ preferColorScheme?: false | undefined;
45
+ id: string;
46
+ name: string;
47
+ selector: string;
48
+ description?: string | undefined;
49
+ customMedia?: {
50
+ [key: string]: string;
51
+ } | undefined;
52
+ } | {
53
+ primitives: Theme.Primitives;
54
+ subthemes: ({
55
+ primitives: Theme.Primitives;
56
+ preferColorScheme: true;
57
+ id: string;
58
+ name: string;
59
+ selector: string;
60
+ description?: string | undefined;
61
+ } | {
62
+ primitives: Theme.Primitives;
63
+ preferColorScheme?: false | undefined;
64
+ id: string;
65
+ name: string;
66
+ selector: string;
67
+ description?: string | undefined;
68
+ })[];
69
+ preferColorScheme: true;
14
70
  id: string;
15
71
  name: string;
16
72
  selector: string;
17
73
  description?: string | undefined;
18
74
  } | {
19
75
  primitives: Theme.Primitives;
20
- subthemes: {
76
+ subthemes: ({
77
+ primitives: Theme.Primitives;
78
+ preferColorScheme: true;
79
+ id: string;
80
+ name: string;
81
+ selector: string;
82
+ description?: string | undefined;
83
+ } | {
21
84
  primitives: Theme.Primitives;
85
+ preferColorScheme?: false | undefined;
22
86
  id: string;
23
87
  name: string;
24
88
  selector: string;
25
89
  description?: string | undefined;
26
- }[];
90
+ })[];
91
+ preferColorScheme?: false | undefined;
27
92
  id: string;
28
93
  name: string;
29
94
  selector: string;
@@ -31,29 +96,94 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
31
96
  })[];
32
97
  export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTheme | Theme.Theme>, subtheme?: string) => ({
33
98
  primitives: Theme.Primitives;
34
- subthemes: {
99
+ subthemes: ({
35
100
  primitives: Theme.Primitives;
101
+ preferColorScheme: true;
36
102
  id: string;
37
103
  name: string;
38
104
  selector: string;
39
105
  description?: string | undefined;
40
- }[];
106
+ } | {
107
+ primitives: Theme.Primitives;
108
+ preferColorScheme?: false | undefined;
109
+ id: string;
110
+ name: string;
111
+ selector: string;
112
+ description?: string | undefined;
113
+ })[];
114
+ preferColorScheme: true;
115
+ id: string;
116
+ name: string;
117
+ selector: string;
118
+ description?: string | undefined;
41
119
  customMedia?: {
42
120
  [key: string]: string;
43
121
  } | undefined;
122
+ } | {
123
+ primitives: Theme.Primitives;
124
+ subthemes: ({
125
+ primitives: Theme.Primitives;
126
+ preferColorScheme: true;
127
+ id: string;
128
+ name: string;
129
+ selector: string;
130
+ description?: string | undefined;
131
+ } | {
132
+ primitives: Theme.Primitives;
133
+ preferColorScheme?: false | undefined;
134
+ id: string;
135
+ name: string;
136
+ selector: string;
137
+ description?: string | undefined;
138
+ })[];
139
+ preferColorScheme?: false | undefined;
140
+ id: string;
141
+ name: string;
142
+ selector: string;
143
+ description?: string | undefined;
144
+ customMedia?: {
145
+ [key: string]: string;
146
+ } | undefined;
147
+ } | {
148
+ primitives: Theme.Primitives;
149
+ subthemes: ({
150
+ primitives: Theme.Primitives;
151
+ preferColorScheme: true;
152
+ id: string;
153
+ name: string;
154
+ selector: string;
155
+ description?: string | undefined;
156
+ } | {
157
+ primitives: Theme.Primitives;
158
+ preferColorScheme?: false | undefined;
159
+ id: string;
160
+ name: string;
161
+ selector: string;
162
+ description?: string | undefined;
163
+ })[];
164
+ preferColorScheme: true;
44
165
  id: string;
45
166
  name: string;
46
167
  selector: string;
47
168
  description?: string | undefined;
48
169
  } | {
49
170
  primitives: Theme.Primitives;
50
- subthemes: {
171
+ subthemes: ({
172
+ primitives: Theme.Primitives;
173
+ preferColorScheme: true;
174
+ id: string;
175
+ name: string;
176
+ selector: string;
177
+ description?: string | undefined;
178
+ } | {
51
179
  primitives: Theme.Primitives;
180
+ preferColorScheme?: false | undefined;
52
181
  id: string;
53
182
  name: string;
54
183
  selector: string;
55
184
  description?: string | undefined;
56
- }[];
185
+ })[];
186
+ preferColorScheme?: false | undefined;
57
187
  id: string;
58
188
  name: string;
59
189
  selector: string;
@@ -78,6 +78,7 @@ export interface Page<ContentType = unknown> {
78
78
  header: HeaderModule;
79
79
  headerTheme?: string | null;
80
80
  id?: number;
81
+ integrations?: PageIntegration[];
81
82
  instance?: string;
82
83
  isHome?: boolean;
83
84
  isIndexed?: boolean;
@@ -321,4 +322,18 @@ export interface FooterModule extends Omit<NavigationModule, "component"> {
321
322
  export interface HeaderModule extends Omit<NavigationModule, "component"> {
322
323
  component: "Header";
323
324
  }
325
+ export interface PageIntegration {
326
+ id: number;
327
+ name: string;
328
+ description: string;
329
+ contentHead: string | null;
330
+ contentBody: string | null;
331
+ contentBodyPosition: "start" | "end";
332
+ contentPresence: ContentPresence;
333
+ active: boolean;
334
+ }
335
+ export interface ContentPresence {
336
+ presenceType: "page-specific" | "page-custom" | "page-manual" | "all";
337
+ relatedPages: number[] | null;
338
+ }
324
339
  export {};
@@ -21,7 +21,7 @@ export type PrimitivesObj = {
21
21
  dark: Array<Primitive>;
22
22
  };
23
23
  export type Primitives = Array<Primitive> | PrimitivesObj;
24
- export interface BaseTheme {
24
+ interface BaseThemeBase {
25
25
  /** Unique theme id */
26
26
  id: string;
27
27
  /** Theme name */
@@ -30,22 +30,32 @@ export interface BaseTheme {
30
30
  selector: string;
31
31
  /** Theme description */
32
32
  description?: string;
33
- /** Theme primitives */
34
- primitives: Primitives;
33
+ /** Prefer colorScheme media query */
34
+ preferColorScheme?: boolean;
35
35
  }
36
- export interface GlobalTheme extends BaseTheme {
36
+ export interface BaseThemeWithColorScheme extends BaseThemeBase {
37
+ primitives: PrimitivesObj;
38
+ preferColorScheme: true;
39
+ }
40
+ export interface BaseThemeNormal extends BaseThemeBase {
41
+ primitives: Array<Primitive>;
42
+ preferColorScheme?: false;
43
+ }
44
+ export type BaseTheme = BaseThemeWithColorScheme | BaseThemeNormal;
45
+ export type GlobalTheme = BaseTheme & {
37
46
  /** Custom media queries using css vars (custom properties) */
38
47
  customMedia?: {
39
48
  [key: string]: string;
40
49
  };
41
- }
42
- export interface Theme extends BaseTheme {
50
+ };
51
+ export type Theme = BaseTheme & {
43
52
  /** Subthemes */
44
53
  subthemes?: Array<BaseTheme>;
45
- }
54
+ };
46
55
  export interface GriddoTheme {
47
56
  /** Global theme entry */
48
57
  global: GlobalTheme;
49
58
  /** Instance themes array */
50
59
  themes: Array<Theme>;
51
60
  }
61
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@griddo/core",
3
3
  "description": "Reload version of Griddo Core",
4
4
  "license": "UNLICENSED",
5
- "version": "1.75.258",
5
+ "version": "10.1.1",
6
6
  "authors": [
7
7
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
8
8
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -78,5 +78,5 @@
78
78
  "resolutions": {
79
79
  "colors": "1.4.0"
80
80
  },
81
- "gitHead": "e9fae470aa191231028673382f67dee530baa6a8"
81
+ "gitHead": "464606e7f3c54e2c8aeb68d98412bb49988743c6"
82
82
  }