datocms-plugin-sdk 0.6.4 → 0.6.7

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.
@@ -1165,6 +1165,15 @@ export declare type RenderFieldExtensionAdditionalProperties = {
1165
1165
  * level Modular Content/Structured Text field containing the block itself
1166
1166
  */
1167
1167
  parentField: Field | undefined;
1168
+ /**
1169
+ * If the field extension is installed in a field of a block, returns the ID
1170
+ * of the block — or `undefined` if the block is still not persisted — and the
1171
+ * block model.
1172
+ */
1173
+ block: undefined | {
1174
+ id: string | undefined;
1175
+ blockModel: ItemType;
1176
+ };
1168
1177
  };
1169
1178
  export declare type RenderFieldExtensionProperties = ItemFormProperties & RenderFieldExtensionAdditionalProperties;
1170
1179
  export declare type RenderFieldExtensionAdditionalMethods = {
@@ -1165,6 +1165,15 @@ export declare type RenderFieldExtensionAdditionalProperties = {
1165
1165
  * level Modular Content/Structured Text field containing the block itself
1166
1166
  */
1167
1167
  parentField: Field | undefined;
1168
+ /**
1169
+ * If the field extension is installed in a field of a block, returns the ID
1170
+ * of the block — or `undefined` if the block is still not persisted — and the
1171
+ * block model.
1172
+ */
1173
+ block: undefined | {
1174
+ id: string | undefined;
1175
+ blockModel: ItemType;
1176
+ };
1168
1177
  };
1169
1178
  export declare type RenderFieldExtensionProperties = ItemFormProperties & RenderFieldExtensionAdditionalProperties;
1170
1179
  export declare type RenderFieldExtensionAdditionalMethods = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datocms-plugin-sdk",
3
- "version": "0.6.4",
3
+ "version": "0.6.7",
4
4
  "description": "DatoCMS Plugin SDK",
5
5
  "keywords": [
6
6
  "datocms",
@@ -43,5 +43,5 @@
43
43
  "devDependencies": {
44
44
  "typedoc": "^0.22.8"
45
45
  },
46
- "gitHead": "6bd76c2624d48ebac230c04aafab457b1e629425"
46
+ "gitHead": "7f0954ee55baae51573b12bddaa8d6ddde6d94c6"
47
47
  }
package/src/types.ts CHANGED
@@ -1276,6 +1276,12 @@ export type RenderFieldExtensionAdditionalProperties = {
1276
1276
  * level Modular Content/Structured Text field containing the block itself
1277
1277
  */
1278
1278
  parentField: Field | undefined;
1279
+ /**
1280
+ * If the field extension is installed in a field of a block, returns the ID
1281
+ * of the block — or `undefined` if the block is still not persisted — and the
1282
+ * block model.
1283
+ */
1284
+ block: undefined | { id: string | undefined; blockModel: ItemType };
1279
1285
  };
1280
1286
 
1281
1287
  export type RenderFieldExtensionProperties = ItemFormProperties &