datocms-plugin-sdk 1.0.0-alpha.1 → 1.0.1

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,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
3
2
  import { SchemaTypes } from '@datocms/cma-client';
3
+ import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
4
4
  declare type Account = SchemaTypes.Account;
5
5
  declare type Organization = SchemaTypes.Organization;
6
6
  declare type Field = SchemaTypes.Field;
@@ -1153,7 +1153,10 @@ export declare type ItemFormProperties = RenderProperties & ItemFormAdditionalPr
1153
1153
  */
1154
1154
  export declare type ItemFormAdditionalMethods = {
1155
1155
  /**
1156
- * Hides/shows a specific field in the form
1156
+ * Hides/shows a specific field in the form. Please be aware that when a field
1157
+ * is hidden, the field editor for that field will be removed from the DOM
1158
+ * itself, including any associated plugins. When it is shown again, its
1159
+ * plugins will be reinitialized.
1157
1160
  *
1158
1161
  * @example
1159
1162
  *
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
3
2
  import { SchemaTypes } from '@datocms/cma-client';
3
+ import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
4
4
  declare type Account = SchemaTypes.Account;
5
5
  declare type Organization = SchemaTypes.Organization;
6
6
  declare type Field = SchemaTypes.Field;
@@ -1153,7 +1153,10 @@ export declare type ItemFormProperties = RenderProperties & ItemFormAdditionalPr
1153
1153
  */
1154
1154
  export declare type ItemFormAdditionalMethods = {
1155
1155
  /**
1156
- * Hides/shows a specific field in the form
1156
+ * Hides/shows a specific field in the form. Please be aware that when a field
1157
+ * is hidden, the field editor for that field will be removed from the DOM
1158
+ * itself, including any associated plugins. When it is shown again, its
1159
+ * plugins will be reinitialized.
1157
1160
  *
1158
1161
  * @example
1159
1162
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datocms-plugin-sdk",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.1",
4
4
  "description": "DatoCMS Plugin SDK",
5
5
  "keywords": [
6
6
  "datocms",
@@ -44,5 +44,5 @@
44
44
  "devDependencies": {
45
45
  "typedoc": "^0.23.20"
46
46
  },
47
- "gitHead": "a523642c7188862c8431027e51ab479945dde5dd"
47
+ "gitHead": "c9263fd5eaa3e84244ff55314521d24ebf5813a1"
48
48
  }
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
2
1
  import { SchemaTypes } from '@datocms/cma-client';
2
+ import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
3
3
 
4
4
  type Account = SchemaTypes.Account;
5
5
  type Organization = SchemaTypes.Organization;
@@ -1236,7 +1236,10 @@ export type ItemFormProperties = RenderProperties &
1236
1236
  */
1237
1237
  export type ItemFormAdditionalMethods = {
1238
1238
  /**
1239
- * Hides/shows a specific field in the form
1239
+ * Hides/shows a specific field in the form. Please be aware that when a field
1240
+ * is hidden, the field editor for that field will be removed from the DOM
1241
+ * itself, including any associated plugins. When it is shown again, its
1242
+ * plugins will be reinitialized.
1240
1243
  *
1241
1244
  * @example
1242
1245
  *