@griddo/core 10.2.4 → 10.2.6

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.
@@ -24,12 +24,12 @@ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeCo
24
24
  description?: string | undefined;
25
25
  })[];
26
26
  preferColorScheme: true;
27
- id: string;
27
+ id: "global";
28
28
  name: string;
29
- selector: string;
29
+ selector: ":root";
30
30
  description?: string | undefined;
31
31
  customMedia?: {
32
- [key: string]: string;
32
+ [key: `--${string}`]: string;
33
33
  } | undefined;
34
34
  } | {
35
35
  primitives: Theme.Primitives;
@@ -49,12 +49,12 @@ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeCo
49
49
  description?: string | undefined;
50
50
  })[];
51
51
  preferColorScheme?: false | undefined;
52
- id: string;
52
+ id: "global";
53
53
  name: string;
54
- selector: string;
54
+ selector: ":root";
55
55
  description?: string | undefined;
56
56
  customMedia?: {
57
- [key: string]: string;
57
+ [key: `--${string}`]: string;
58
58
  } | undefined;
59
59
  } | {
60
60
  primitives: Theme.Primitives;
@@ -24,12 +24,12 @@ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFont
24
24
  description?: string | undefined;
25
25
  })[];
26
26
  preferColorScheme: true;
27
- id: string;
27
+ id: "global";
28
28
  name: string;
29
- selector: string;
29
+ selector: ":root";
30
30
  description?: string | undefined;
31
31
  customMedia?: {
32
- [key: string]: string;
32
+ [key: `--${string}`]: string;
33
33
  } | undefined;
34
34
  } | {
35
35
  primitives: Theme.Primitives;
@@ -49,12 +49,12 @@ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFont
49
49
  description?: string | undefined;
50
50
  })[];
51
51
  preferColorScheme?: false | undefined;
52
- id: string;
52
+ id: "global";
53
53
  name: string;
54
- selector: string;
54
+ selector: ":root";
55
55
  description?: string | undefined;
56
56
  customMedia?: {
57
- [key: string]: string;
57
+ [key: `--${string}`]: string;
58
58
  } | undefined;
59
59
  } | {
60
60
  primitives: Theme.Primitives;
@@ -24,12 +24,12 @@ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThem
24
24
  description?: string | undefined;
25
25
  })[];
26
26
  preferColorScheme: true;
27
- id: string;
27
+ id: "global";
28
28
  name: string;
29
- selector: string;
29
+ selector: ":root";
30
30
  description?: string | undefined;
31
31
  customMedia?: {
32
- [key: string]: string;
32
+ [key: `--${string}`]: string;
33
33
  } | undefined;
34
34
  } | {
35
35
  primitives: Theme.Primitives;
@@ -49,12 +49,12 @@ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThem
49
49
  description?: string | undefined;
50
50
  })[];
51
51
  preferColorScheme?: false | undefined;
52
- id: string;
52
+ id: "global";
53
53
  name: string;
54
- selector: string;
54
+ selector: ":root";
55
55
  description?: string | undefined;
56
56
  customMedia?: {
57
- [key: string]: string;
57
+ [key: `--${string}`]: string;
58
58
  } | undefined;
59
59
  } | {
60
60
  primitives: Theme.Primitives;
@@ -17,12 +17,12 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
17
17
  description?: string | undefined;
18
18
  })[];
19
19
  preferColorScheme: true;
20
- id: string;
20
+ id: "global";
21
21
  name: string;
22
- selector: string;
22
+ selector: ":root";
23
23
  description?: string | undefined;
24
24
  customMedia?: {
25
- [key: string]: string;
25
+ [key: `--${string}`]: string;
26
26
  } | undefined;
27
27
  } | {
28
28
  primitives: Theme.Primitives;
@@ -42,12 +42,12 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
42
42
  description?: string | undefined;
43
43
  })[];
44
44
  preferColorScheme?: false | undefined;
45
- id: string;
45
+ id: "global";
46
46
  name: string;
47
- selector: string;
47
+ selector: ":root";
48
48
  description?: string | undefined;
49
49
  customMedia?: {
50
- [key: string]: string;
50
+ [key: `--${string}`]: string;
51
51
  } | undefined;
52
52
  } | {
53
53
  primitives: Theme.Primitives;
@@ -112,12 +112,12 @@ export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTh
112
112
  description?: string | undefined;
113
113
  })[];
114
114
  preferColorScheme: true;
115
- id: string;
115
+ id: "global";
116
116
  name: string;
117
- selector: string;
117
+ selector: ":root";
118
118
  description?: string | undefined;
119
119
  customMedia?: {
120
- [key: string]: string;
120
+ [key: `--${string}`]: string;
121
121
  } | undefined;
122
122
  } | {
123
123
  primitives: Theme.Primitives;
@@ -137,12 +137,12 @@ export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTh
137
137
  description?: string | undefined;
138
138
  })[];
139
139
  preferColorScheme?: false | undefined;
140
- id: string;
140
+ id: "global";
141
141
  name: string;
142
- selector: string;
142
+ selector: ":root";
143
143
  description?: string | undefined;
144
144
  customMedia?: {
145
- [key: string]: string;
145
+ [key: `--${string}`]: string;
146
146
  } | undefined;
147
147
  } | {
148
148
  primitives: Theme.Primitives;
@@ -181,6 +181,7 @@ export type Url = {
181
181
  href?: string;
182
182
  title?: string;
183
183
  linkToURL?: string;
184
+ linkTo?: number;
184
185
  newTab?: boolean;
185
186
  noFollow?: boolean;
186
187
  subSlug?: string;
@@ -79,7 +79,7 @@ export interface Page<ContentType = unknown> {
79
79
  header: HeaderModule;
80
80
  headerTheme?: string | null;
81
81
  id?: number;
82
- integrations?: PageIntegration[];
82
+ integrations?: Array<PageIntegration>;
83
83
  instance?: string;
84
84
  isHome?: boolean;
85
85
  isIndexed?: boolean;
@@ -327,6 +327,7 @@ export interface PageIntegration {
327
327
  id: number;
328
328
  name: string;
329
329
  description: string;
330
+ site: number;
330
331
  contentHead: string | null;
331
332
  contentBody: string | null;
332
333
  contentBodyPosition: "start" | "end";
@@ -335,6 +336,6 @@ export interface PageIntegration {
335
336
  }
336
337
  export interface ContentPresence {
337
338
  presenceType: "page-specific" | "page-custom" | "page-manual" | "all";
338
- relatedPages: number[] | null;
339
+ relatedPages: Array<number> | null;
339
340
  }
340
341
  export {};
@@ -1,6 +1,6 @@
1
1
  export interface AutoTypesConfig {
2
- typeFileName?: string;
3
- interfaceSuffix?: string;
4
- contentTypeSuffix?: string;
5
- publicApiSuffix?: string;
2
+ typeFileName?: `${string}.d.ts`;
3
+ interfaceSuffix?: `${Capitalize<string>}`;
4
+ contentTypeSuffix?: `${Capitalize<string>}`;
5
+ publicApiSuffix?: `${Capitalize<string>}`;
6
6
  }
@@ -10,7 +10,7 @@ export interface Primitive {
10
10
  /** Name for the primitive */
11
11
  name?: string;
12
12
  /** Name for the css variable for the primitive */
13
- cssVar: string;
13
+ cssVar: `--${string}`;
14
14
  /** CSS value for the primitive */
15
15
  value: string;
16
16
  }>;
@@ -43,9 +43,10 @@ export interface BaseThemeNormal extends BaseThemeBase {
43
43
  }
44
44
  export type BaseTheme = BaseThemeWithColorScheme | BaseThemeNormal;
45
45
  export type GlobalTheme = BaseTheme & {
46
- /** Custom media queries using css vars (custom properties) */
46
+ id: "global";
47
+ selector: ":root";
47
48
  customMedia?: {
48
- [key: string]: string;
49
+ [key: `--${string}`]: string;
49
50
  };
50
51
  };
51
52
  export type Theme = BaseTheme & {
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": "10.2.4",
5
+ "version": "10.2.6",
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": "010bbf61710f544adfbbc36af9d603e22021ad39"
81
+ "gitHead": "454e1f00fed4c22359d9a5a36c3bf2c0caac95cd"
82
82
  }