@griddo/core 1.75.134 → 1.75.136
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/autotypes.cjs.js +1 -1
- package/dist/autotypes.cjs.js.map +1 -1
- package/dist/autotypes.js +1 -1
- package/dist/autotypes.js.map +1 -1
- package/dist/components/GriddoImage/index.d.ts +1 -1
- package/dist/functions/autotypes/getTypeFromField.d.ts +4 -1
- package/dist/hooks/useList.d.ts +3 -2
- package/dist/index.js.map +1 -1
- package/dist/types/api-response-fields/index.d.ts +1 -1
- package/dist/types/core/index.d.ts +4 -0
- package/dist/types/global.d.ts +2 -4
- package/package.json +2 -2
|
@@ -7,7 +7,7 @@ export declare type AsyncCheckGroup = Array<{
|
|
|
7
7
|
title: string;
|
|
8
8
|
}>;
|
|
9
9
|
export declare type AsyncSelect = number;
|
|
10
|
-
export declare type CheckGroup<NameValues> = NameValues
|
|
10
|
+
export declare type CheckGroup<NameValues> = Array<NameValues>;
|
|
11
11
|
export declare type ColorPicker = string;
|
|
12
12
|
export declare type ColorPickerFixed = {
|
|
13
13
|
name: string;
|
|
@@ -269,3 +269,7 @@ export interface FullPath {
|
|
|
269
269
|
/** Slug for the compose url with the format `/language-name/` */
|
|
270
270
|
compose?: string;
|
|
271
271
|
}
|
|
272
|
+
export declare type ListContentType<Item> = Omit<Item, "contentTypeName" | "relatedContentTypeNames"> & {
|
|
273
|
+
id: number;
|
|
274
|
+
url: string;
|
|
275
|
+
};
|
package/dist/types/global.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Fields } from "../index";
|
|
2
|
+
import { ListContentType } from "./core";
|
|
2
3
|
export declare type HTMLHeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
3
4
|
export interface SetQueryProps<ContentType> {
|
|
4
5
|
/** The ReferenceField prop */
|
|
@@ -14,7 +15,7 @@ export interface SetQueryProps<ContentType> {
|
|
|
14
15
|
/** Site id, if not provided, will be obtained from the context */
|
|
15
16
|
site?: number;
|
|
16
17
|
/** String array of the keys/properties in order to restrict the query. */
|
|
17
|
-
fields?: Array<keyof
|
|
18
|
+
fields?: Array<keyof ListContentType<ContentType>>;
|
|
18
19
|
/** Array of content type ids to filter the query */
|
|
19
20
|
filterIds?: Array<number>;
|
|
20
21
|
/** String as HASH to cache the query (Mostly interal use) */
|
|
@@ -54,9 +55,6 @@ export declare type FiltersDataApiQueryResponseProps<ContentType> = ContentType
|
|
|
54
55
|
items: Array<FilterDataItem>;
|
|
55
56
|
};
|
|
56
57
|
} : never;
|
|
57
|
-
export declare type ContentTypeItemWithId<Item> = Omit<Item, "contentTypeName" | "relatedContentTypeNames"> & {
|
|
58
|
-
id: number;
|
|
59
|
-
};
|
|
60
58
|
export declare type PickRename<T, K extends keyof T, R extends PropertyKey> = Omit<T, K> & {
|
|
61
59
|
[P in R]: T[K];
|
|
62
60
|
};
|
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.
|
|
5
|
+
"version": "1.75.136",
|
|
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": "
|
|
81
|
+
"gitHead": "3d96c83dea726f644e04000afa3fd93b451748ca"
|
|
82
82
|
}
|