datocms-plugin-sdk 0.3.24-alpha.2 → 0.3.24-alpha.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/dist/esm/types.d.ts +7 -2
- package/dist/types/types.d.ts +7 -2
- package/package.json +2 -2
- package/types.json +988 -922
package/dist/esm/types.d.ts
CHANGED
|
@@ -316,7 +316,12 @@ export declare type AssetSource = {
|
|
|
316
316
|
* Configuration options for the modal that will be opened to select a media
|
|
317
317
|
* file from this source
|
|
318
318
|
*/
|
|
319
|
-
modal?:
|
|
319
|
+
modal?: {
|
|
320
|
+
/** Width of the modal. Can be a number, or one of the predefined sizes */
|
|
321
|
+
width?: 's' | 'm' | 'l' | 'xl' | number;
|
|
322
|
+
/** The initial height to set for the iframe that will render the modal content */
|
|
323
|
+
initialHeight?: number;
|
|
324
|
+
};
|
|
320
325
|
};
|
|
321
326
|
/** A toast notification to present to the user */
|
|
322
327
|
export declare type Toast<CtaValue = unknown> = {
|
|
@@ -1141,7 +1146,7 @@ export declare type RenderAssetSourceAdditionalMethods = {
|
|
|
1141
1146
|
* });
|
|
1142
1147
|
* ```
|
|
1143
1148
|
*/
|
|
1144
|
-
select: (newUpload: NewUpload) =>
|
|
1149
|
+
select: (newUpload: NewUpload) => void;
|
|
1145
1150
|
};
|
|
1146
1151
|
export declare type RenderAssetSourceMethods = RenderMethods & IframeMethods & RenderAssetSourceAdditionalMethods;
|
|
1147
1152
|
export declare type RenderAssetSourcePropertiesAndMethods = RenderAssetSourceMethods & RenderAssetSourceProperties;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -316,7 +316,12 @@ export declare type AssetSource = {
|
|
|
316
316
|
* Configuration options for the modal that will be opened to select a media
|
|
317
317
|
* file from this source
|
|
318
318
|
*/
|
|
319
|
-
modal?:
|
|
319
|
+
modal?: {
|
|
320
|
+
/** Width of the modal. Can be a number, or one of the predefined sizes */
|
|
321
|
+
width?: 's' | 'm' | 'l' | 'xl' | number;
|
|
322
|
+
/** The initial height to set for the iframe that will render the modal content */
|
|
323
|
+
initialHeight?: number;
|
|
324
|
+
};
|
|
320
325
|
};
|
|
321
326
|
/** A toast notification to present to the user */
|
|
322
327
|
export declare type Toast<CtaValue = unknown> = {
|
|
@@ -1141,7 +1146,7 @@ export declare type RenderAssetSourceAdditionalMethods = {
|
|
|
1141
1146
|
* });
|
|
1142
1147
|
* ```
|
|
1143
1148
|
*/
|
|
1144
|
-
select: (newUpload: NewUpload) =>
|
|
1149
|
+
select: (newUpload: NewUpload) => void;
|
|
1145
1150
|
};
|
|
1146
1151
|
export declare type RenderAssetSourceMethods = RenderMethods & IframeMethods & RenderAssetSourceAdditionalMethods;
|
|
1147
1152
|
export declare type RenderAssetSourcePropertiesAndMethods = RenderAssetSourceMethods & RenderAssetSourceProperties;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-plugin-sdk",
|
|
3
|
-
"version": "0.3.24-alpha.
|
|
3
|
+
"version": "0.3.24-alpha.3",
|
|
4
4
|
"description": "DatoCMS Plugin SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"typedoc": "^0.22.8"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e0d3595cc0a4b048f5f10fbd65a5b8aa3be13936"
|
|
45
45
|
}
|