datocms-plugin-sdk 0.2.0-alpha.66 → 0.3.3
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/README.md +1 -1
- package/dist/cjs/connect.js.map +1 -1
- package/dist/cjs/guards.js.map +1 -1
- package/dist/esm/SiteApiSchema.d.ts +643 -1391
- package/dist/esm/connect.d.ts +22 -26
- package/dist/esm/connect.js.map +1 -1
- package/dist/esm/guards.js.map +1 -1
- package/dist/esm/types.d.ts +284 -264
- package/dist/types/SiteApiSchema.d.ts +643 -1391
- package/dist/types/connect.d.ts +22 -26
- package/dist/types/types.d.ts +284 -264
- package/package.json +2 -2
- package/types.json +598 -535
package/dist/types/connect.d.ts
CHANGED
|
@@ -6,9 +6,8 @@ export declare type SizingUtilities = {
|
|
|
6
6
|
/** Stops resizing the iframe automatically */
|
|
7
7
|
stopAutoResizer: () => void;
|
|
8
8
|
/**
|
|
9
|
-
* Triggers a change in the size of the iframe. If you don't explicitely pass
|
|
10
|
-
*
|
|
11
|
-
* at the moment
|
|
9
|
+
* Triggers a change in the size of the iframe. If you don't explicitely pass a
|
|
10
|
+
* `newHeight` it will be automatically calculated using the iframe content at the moment
|
|
12
11
|
*/
|
|
13
12
|
updateHeight: (newHeight?: number) => void;
|
|
14
13
|
};
|
|
@@ -27,8 +26,8 @@ export declare type RenderConfigScreenCtx = RenderConfigScreenPropertiesAndMetho
|
|
|
27
26
|
/** The full options you can pass to the `connect` function */
|
|
28
27
|
export declare type FullConnectParameters = {
|
|
29
28
|
/**
|
|
30
|
-
* This function will be called once at boot time and can be used to perform
|
|
31
|
-
*
|
|
29
|
+
* This function will be called once at boot time and can be used to perform ie. some
|
|
30
|
+
* initial integrity checks on the configuration.
|
|
32
31
|
*
|
|
33
32
|
* @group boot
|
|
34
33
|
*/
|
|
@@ -52,72 +51,69 @@ export declare type FullConnectParameters = {
|
|
|
52
51
|
*/
|
|
53
52
|
contentAreaSidebarItems: (ctx: IntentCtx) => ContentAreaSidebarItem[];
|
|
54
53
|
/**
|
|
55
|
-
* Use this function to declare new field extensions that users will be able
|
|
56
|
-
*
|
|
54
|
+
* Use this function to declare new field extensions that users will be able to install
|
|
55
|
+
* manually in some field
|
|
57
56
|
*
|
|
58
57
|
* @group manualFieldExtensions
|
|
59
58
|
*/
|
|
60
59
|
manualFieldExtensions: (ctx: IntentCtx) => ManualFieldExtension[];
|
|
61
60
|
/**
|
|
62
|
-
* Use this function to declare new sidebar panels to be shown when the user
|
|
63
|
-
*
|
|
61
|
+
* Use this function to declare new sidebar panels to be shown when the user edits
|
|
62
|
+
* records of a particular model
|
|
64
63
|
*
|
|
65
64
|
* @group sidebarPanels
|
|
66
65
|
*/
|
|
67
66
|
itemFormSidebarPanels: (itemType: ModelBlock, ctx: IntentCtx) => ItemFormSidebarPanel[];
|
|
68
67
|
/**
|
|
69
|
-
* Use this function to automatically force one or more field extensions to a
|
|
70
|
-
* particular field
|
|
68
|
+
* Use this function to automatically force one or more field extensions to a particular field
|
|
71
69
|
*
|
|
72
70
|
* @group forcedFieldExtensions
|
|
73
71
|
*/
|
|
74
72
|
overrideFieldExtensions: (field: Field, ctx: FieldIntentCtx) => FieldExtensionOverride | void;
|
|
75
73
|
/**
|
|
76
|
-
* This function will be called when the plugin needs to render the plugin's
|
|
77
|
-
* configuration form
|
|
74
|
+
* This function will be called when the plugin needs to render the plugin's configuration form
|
|
78
75
|
*
|
|
79
76
|
* @group configScreen
|
|
80
77
|
*/
|
|
81
78
|
renderConfigScreen: (ctx: RenderConfigScreenCtx) => void;
|
|
82
79
|
/**
|
|
83
|
-
* This function will be called when the plugin needs to render a specific
|
|
84
|
-
*
|
|
85
|
-
* `contentAreaSidebarItems` functions)
|
|
80
|
+
* This function will be called when the plugin needs to render a specific page (see the
|
|
81
|
+
* `mainNavigationTabs`, `settingsAreaSidebarItemGroups` and `contentAreaSidebarItems` functions)
|
|
86
82
|
*
|
|
87
83
|
* @group pages
|
|
88
84
|
*/
|
|
89
85
|
renderPage: (pageId: string, ctx: RenderPageCtx) => void;
|
|
90
86
|
/**
|
|
91
|
-
* This function will be called when the plugin requested to open a modal (see
|
|
92
|
-
*
|
|
87
|
+
* This function will be called when the plugin requested to open a modal (see the
|
|
88
|
+
* `openModal` function)
|
|
93
89
|
*
|
|
94
90
|
* @group modals
|
|
95
91
|
*/
|
|
96
92
|
renderModal: (modalId: string, ctx: RenderModalCtx) => void;
|
|
97
93
|
/**
|
|
98
|
-
* This function will be called when the plugin needs to render a sidebar
|
|
99
|
-
*
|
|
94
|
+
* This function will be called when the plugin needs to render a sidebar panel (see the
|
|
95
|
+
* `itemFormSidebarPanels` function)
|
|
100
96
|
*
|
|
101
97
|
* @group sidebarPanels
|
|
102
98
|
*/
|
|
103
99
|
renderItemFormSidebarPanel: (sidebarPaneId: string, ctx: RenderItemFormSidebarPanelCtx) => void;
|
|
104
100
|
/**
|
|
105
|
-
* This function will be called when the plugin needs to render a field
|
|
106
|
-
*
|
|
101
|
+
* This function will be called when the plugin needs to render a field extension (see
|
|
102
|
+
* the `manualFieldExtensions` and `overrideFieldExtensions` functions)
|
|
107
103
|
*
|
|
108
104
|
* @group forcedFieldExtensions
|
|
109
105
|
*/
|
|
110
106
|
renderFieldExtension: (fieldExtensionId: string, ctx: RenderFieldExtensionCtx) => void;
|
|
111
107
|
/**
|
|
112
|
-
* This function will be called when the plugin needs to render the
|
|
113
|
-
*
|
|
108
|
+
* This function will be called when the plugin needs to render the configuration form
|
|
109
|
+
* for installing a field extension inside a particular field
|
|
114
110
|
*
|
|
115
111
|
* @group manualFieldExtensions
|
|
116
112
|
*/
|
|
117
113
|
renderManualFieldExtensionConfigScreen: (fieldExtensionId: string, ctx: RenderManualFieldExtensionConfigScreenCtx) => void;
|
|
118
114
|
/**
|
|
119
|
-
* This function will be called each time the configuration object changes. It
|
|
120
|
-
*
|
|
115
|
+
* This function will be called each time the configuration object changes. It must
|
|
116
|
+
* return an object containing possible validation errors
|
|
121
117
|
*
|
|
122
118
|
* @group manualFieldExtensions
|
|
123
119
|
*/
|