datocms-plugin-sdk 0.3.24-alpha.5 → 0.3.24

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.
@@ -1,4 +1,4 @@
1
- import { Account, Field, Item, ModelBlock, Plugin, PluginAttributes, Role, Site, SsoUser, Upload, UploadCreateSchema, User } from './SiteApiSchema';
1
+ import { Account, Field, Item, ModelBlock, Plugin, PluginAttributes, Role, Site, SsoUser, Upload, User } from './SiteApiSchema';
2
2
  export declare type Icon = string | {
3
3
  type: 'svg';
4
4
  viewBox: string;
@@ -1121,7 +1121,25 @@ export declare type NewUpload = {
1121
1121
  * An hash containing, for each locale of the project, the default metadata to
1122
1122
  * apply to the asset
1123
1123
  */
1124
- default_field_metadata?: UploadCreateSchema['data']['attributes']['default_field_metadata'];
1124
+ default_field_metadata?: {
1125
+ [k: string]: {
1126
+ /** Alternate text for the asset */
1127
+ alt: string | null;
1128
+ /** Title for the asset */
1129
+ title: string | null;
1130
+ /** Object with arbitrary metadata */
1131
+ custom_data: {
1132
+ [k: string]: unknown;
1133
+ };
1134
+ /** Focal point (only for image assets) */
1135
+ focal_point?: {
1136
+ /** Horizontal position expressed as float between 0 and 1 */
1137
+ x: number;
1138
+ /** Vertical position expressed as float between 0 and 1 */
1139
+ y: number;
1140
+ } | null;
1141
+ };
1142
+ };
1125
1143
  };
1126
1144
  /** Use these methods to confirm */
1127
1145
  export declare type RenderAssetSourceAdditionalMethods = {
@@ -1,4 +1,4 @@
1
- import { Account, Field, Item, ModelBlock, Plugin, PluginAttributes, Role, Site, SsoUser, Upload, UploadCreateSchema, User } from './SiteApiSchema';
1
+ import { Account, Field, Item, ModelBlock, Plugin, PluginAttributes, Role, Site, SsoUser, Upload, User } from './SiteApiSchema';
2
2
  export declare type Icon = string | {
3
3
  type: 'svg';
4
4
  viewBox: string;
@@ -1121,7 +1121,25 @@ export declare type NewUpload = {
1121
1121
  * An hash containing, for each locale of the project, the default metadata to
1122
1122
  * apply to the asset
1123
1123
  */
1124
- default_field_metadata?: UploadCreateSchema['data']['attributes']['default_field_metadata'];
1124
+ default_field_metadata?: {
1125
+ [k: string]: {
1126
+ /** Alternate text for the asset */
1127
+ alt: string | null;
1128
+ /** Title for the asset */
1129
+ title: string | null;
1130
+ /** Object with arbitrary metadata */
1131
+ custom_data: {
1132
+ [k: string]: unknown;
1133
+ };
1134
+ /** Focal point (only for image assets) */
1135
+ focal_point?: {
1136
+ /** Horizontal position expressed as float between 0 and 1 */
1137
+ x: number;
1138
+ /** Vertical position expressed as float between 0 and 1 */
1139
+ y: number;
1140
+ } | null;
1141
+ };
1142
+ };
1125
1143
  };
1126
1144
  /** Use these methods to confirm */
1127
1145
  export declare type RenderAssetSourceAdditionalMethods = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datocms-plugin-sdk",
3
- "version": "0.3.24-alpha.5",
3
+ "version": "0.3.24",
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": "bc1c12ca4041b11199aee75b2a821872c9d39d3f"
44
+ "gitHead": "8de7e2cbfcb4514cd07ca0978be12c9e8c4996aa"
45
45
  }