contentful-management 7.44.2 → 7.45.0

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.
@@ -24,7 +24,7 @@ function createClient(params) {
24
24
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
25
25
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
26
26
  var userAgent = getUserAgentHeader( // @ts-expect-error
27
- "".concat(sdkMain, "/").concat("7.44.2"), params.application, params.integration, params.feature);
27
+ "".concat(sdkMain, "/").concat("7.45.0"), params.application, params.integration, params.feature);
28
28
  var adapter = createAdapter(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
29
29
  // https://github.com/microsoft/TypeScript/issues/26591
30
30
  // @ts-expect-error
@@ -24,19 +24,19 @@ export interface Control extends WidgetConfig {
24
24
  }
25
25
  export interface GroupControl extends WidgetConfig {
26
26
  /**
27
- * ID of the customized group
27
+ * ID of the customized field group
28
28
  */
29
29
  groupId: string;
30
30
  }
31
- export interface EditorLayoutItem {
31
+ export interface FieldGroupItem {
32
32
  groupId: string;
33
33
  name: string;
34
- items: Array<EditorLayoutItem | FieldItem>;
35
- default?: boolean;
34
+ items: EditorLayoutItem[];
36
35
  }
37
36
  export interface FieldItem {
38
37
  fieldId: string;
39
38
  }
39
+ export declare type EditorLayoutItem = FieldItem | FieldGroupItem;
40
40
  export interface Editor {
41
41
  /**
42
42
  * Type of the widget used
@@ -90,7 +90,7 @@ export declare type EditorInterfaceProps = {
90
90
  */
91
91
  controls?: Control[];
92
92
  /**
93
- * Array of groups and their associated widgetId
93
+ * Array of field groups and their associated widgetId
94
94
  */
95
95
  groupControls?: GroupControl[];
96
96
  /**
@@ -102,9 +102,9 @@ export declare type EditorInterfaceProps = {
102
102
  */
103
103
  editor?: Editor;
104
104
  /**
105
- * Array of editor layout groups
105
+ * Array of editor layout field groups
106
106
  */
107
- editorLayout?: EditorLayoutItem[];
107
+ editorLayout?: FieldGroupItem[];
108
108
  /**
109
109
  * Array of sidebar widgets. Defaults will be used if property is missing.
110
110
  */
@@ -13,7 +13,7 @@ export type { BulkAction, BulkActionPublishPayload, BulkActionUnpublishPayload,
13
13
  export type { Comment, CommentProps, CreateCommentProps, UpdateCommentProps, } from './entities/comment';
14
14
  export type { ContentType, ContentTypeProps, CreateContentTypeProps } from './entities/content-type';
15
15
  export type { ContentFields, ContentTypeFieldValidation } from './entities/content-type-fields';
16
- export type { EditorInterface, EditorInterfaceProps, Control, GroupControl, Editor, EditorLayoutItem, FieldItem, SidebarItem, } from './entities/editor-interface';
16
+ export type { EditorInterface, EditorInterfaceProps, Control, GroupControl, Editor, EditorLayoutItem, FieldGroupItem, FieldItem, SidebarItem, } from './entities/editor-interface';
17
17
  export type { FieldType } from './entities/field-type';
18
18
  export type { ParameterDefinition, DefinedParameters, FreeFormParameters, } from './entities/widget-parameters';
19
19
  export type { Entry, EntryProps, CreateEntryProps } from './entities/entry';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-management",
3
- "version": "7.44.2",
3
+ "version": "7.45.0",
4
4
  "description": "Client for Contentful's Content Management API",
5
5
  "homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
6
6
  "main": "./dist/contentful-management.node.js",
@@ -79,7 +79,7 @@
79
79
  "@types/lodash": "^4.14.168",
80
80
  "@types/lodash.isplainobject": "^4.0.6",
81
81
  "@types/node": "^16.7.10",
82
- "@types/sinon": "10.0.4",
82
+ "@types/sinon": "10.0.6",
83
83
  "@typescript-eslint/eslint-plugin": "2.34.0",
84
84
  "@typescript-eslint/parser": "2.34.0",
85
85
  "babel-eslint": "^10.1.0",