datocms-plugin-sdk 0.7.10 → 0.7.12
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/esm/connect.d.ts +5 -5
- package/dist/types/connect.d.ts +5 -5
- package/package.json +2 -2
- package/src/connect.ts +5 -5
- package/types.json +661 -665
package/dist/esm/connect.d.ts
CHANGED
|
@@ -71,17 +71,17 @@ export declare type FullConnectParameters = {
|
|
|
71
71
|
*/
|
|
72
72
|
onBeforeItemUpsert: (createOrUpdateItemPayload: ItemUpdateSchema | ItemCreateSchema, ctx: OnBootCtx) => MaybePromise<boolean>;
|
|
73
73
|
/**
|
|
74
|
-
* Use this function to customize the presentation of a record
|
|
75
|
-
*
|
|
74
|
+
* Use this function to customize the presentation of a record in records
|
|
75
|
+
* collections and "Single link" or "Multiple links" field
|
|
76
76
|
*
|
|
77
|
-
* @tag
|
|
77
|
+
* @tag presentation
|
|
78
78
|
*/
|
|
79
79
|
buildItemPresentationInfo: (item: Item, ctx: OnBootCtx) => MaybePromise<ItemPresentationInfo | undefined>;
|
|
80
80
|
/**
|
|
81
81
|
* Use this function to customize the initial filters when opening an record
|
|
82
82
|
* selector via a "Single link" or "Multiple links" field
|
|
83
83
|
*
|
|
84
|
-
* @tag
|
|
84
|
+
* @tag locationQuery
|
|
85
85
|
*/
|
|
86
86
|
initialLocationQueryForItemSelector: (openerfield: Item, itemType: ItemType, ctx: OnBootCtx) => MaybePromise<InitialLocationQueryForItemSelector | undefined>;
|
|
87
87
|
/**
|
|
@@ -194,7 +194,7 @@ export declare type FullConnectParameters = {
|
|
|
194
194
|
* This function will be called when the plugin needs to render a sidebar (see
|
|
195
195
|
* the `itemFormSidebars` function)
|
|
196
196
|
*
|
|
197
|
-
* @tag
|
|
197
|
+
* @tag sidebarPanels
|
|
198
198
|
*/
|
|
199
199
|
renderItemFormSidebar: (sidebarId: string, ctx: RenderItemFormSidebarCtx) => void;
|
|
200
200
|
/**
|
package/dist/types/connect.d.ts
CHANGED
|
@@ -71,17 +71,17 @@ export declare type FullConnectParameters = {
|
|
|
71
71
|
*/
|
|
72
72
|
onBeforeItemUpsert: (createOrUpdateItemPayload: ItemUpdateSchema | ItemCreateSchema, ctx: OnBootCtx) => MaybePromise<boolean>;
|
|
73
73
|
/**
|
|
74
|
-
* Use this function to customize the presentation of a record
|
|
75
|
-
*
|
|
74
|
+
* Use this function to customize the presentation of a record in records
|
|
75
|
+
* collections and "Single link" or "Multiple links" field
|
|
76
76
|
*
|
|
77
|
-
* @tag
|
|
77
|
+
* @tag presentation
|
|
78
78
|
*/
|
|
79
79
|
buildItemPresentationInfo: (item: Item, ctx: OnBootCtx) => MaybePromise<ItemPresentationInfo | undefined>;
|
|
80
80
|
/**
|
|
81
81
|
* Use this function to customize the initial filters when opening an record
|
|
82
82
|
* selector via a "Single link" or "Multiple links" field
|
|
83
83
|
*
|
|
84
|
-
* @tag
|
|
84
|
+
* @tag locationQuery
|
|
85
85
|
*/
|
|
86
86
|
initialLocationQueryForItemSelector: (openerfield: Item, itemType: ItemType, ctx: OnBootCtx) => MaybePromise<InitialLocationQueryForItemSelector | undefined>;
|
|
87
87
|
/**
|
|
@@ -194,7 +194,7 @@ export declare type FullConnectParameters = {
|
|
|
194
194
|
* This function will be called when the plugin needs to render a sidebar (see
|
|
195
195
|
* the `itemFormSidebars` function)
|
|
196
196
|
*
|
|
197
|
-
* @tag
|
|
197
|
+
* @tag sidebarPanels
|
|
198
198
|
*/
|
|
199
199
|
renderItemFormSidebar: (sidebarId: string, ctx: RenderItemFormSidebarCtx) => void;
|
|
200
200
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-plugin-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12",
|
|
4
4
|
"description": "DatoCMS Plugin SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typedoc": "^0.23.20"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "d84956eea3e5557ba2b097e1f8753af6c93df6c3"
|
|
47
47
|
}
|
package/src/connect.ts
CHANGED
|
@@ -156,10 +156,10 @@ export type FullConnectParameters = {
|
|
|
156
156
|
) => MaybePromise<boolean>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Use this function to customize the presentation of a record
|
|
160
|
-
*
|
|
159
|
+
* Use this function to customize the presentation of a record in records
|
|
160
|
+
* collections and "Single link" or "Multiple links" field
|
|
161
161
|
*
|
|
162
|
-
* @tag
|
|
162
|
+
* @tag presentation
|
|
163
163
|
*/
|
|
164
164
|
buildItemPresentationInfo: (
|
|
165
165
|
item: Item,
|
|
@@ -170,7 +170,7 @@ export type FullConnectParameters = {
|
|
|
170
170
|
* Use this function to customize the initial filters when opening an record
|
|
171
171
|
* selector via a "Single link" or "Multiple links" field
|
|
172
172
|
*
|
|
173
|
-
* @tag
|
|
173
|
+
* @tag locationQuery
|
|
174
174
|
*/
|
|
175
175
|
initialLocationQueryForItemSelector: (
|
|
176
176
|
openerfield: Item,
|
|
@@ -311,7 +311,7 @@ export type FullConnectParameters = {
|
|
|
311
311
|
* This function will be called when the plugin needs to render a sidebar (see
|
|
312
312
|
* the `itemFormSidebars` function)
|
|
313
313
|
*
|
|
314
|
-
* @tag
|
|
314
|
+
* @tag sidebarPanels
|
|
315
315
|
*/
|
|
316
316
|
renderItemFormSidebar: (
|
|
317
317
|
sidebarId: string,
|