contentful-ui-extensions-sdk 4.0.1 → 4.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [4.2.1](https://github.com/contentful/ui-extensions-sdk/compare/v4.2.0...v4.2.1) (2021-10-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * LinkContentTypeValidationError contains a list of content types ([#1021](https://github.com/contentful/ui-extensions-sdk/issues/1021)) ([64a8c05](https://github.com/contentful/ui-extensions-sdk/commit/64a8c05a022275f85a5138d9186de98e9079aadb))
7
+
8
+ # [4.2.0](https://github.com/contentful/ui-extensions-sdk/compare/v4.1.1...v4.2.0) (2021-10-06)
9
+
10
+
11
+ ### Features
12
+
13
+ * export Action and ValidationError types ([#1018](https://github.com/contentful/ui-extensions-sdk/issues/1018)) ([dcff361](https://github.com/contentful/ui-extensions-sdk/commit/dcff361863c5ed1d6448d834277db26385cd6f8a))
14
+
15
+ ## [4.1.1](https://github.com/contentful/ui-extensions-sdk/compare/v4.1.0...v4.1.1) (2021-10-06)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * [3161] use correct type for conflicting errors ([#1017](https://github.com/contentful/ui-extensions-sdk/issues/1017)) ([621a1d0](https://github.com/contentful/ui-extensions-sdk/commit/621a1d0d8f4e7b1ab45278377ba58fff76e09a4f))
21
+
22
+ # [4.1.0](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.1...v4.1.0) (2021-10-05)
23
+
24
+
25
+ ### Features
26
+
27
+ * [] export validation error type ([#1011](https://github.com/contentful/ui-extensions-sdk/issues/1011)) ([983407e](https://github.com/contentful/ui-extensions-sdk/commit/983407ebffe0b818c01a80bf4fa6f2a6c301aa5d))
28
+
1
29
  ## [4.0.1](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0...v4.0.1) (2021-10-05)
2
30
 
3
31
 
@@ -104,9 +104,9 @@ export interface SharedEditorSDK {
104
104
  /** Information about the content type of the entry. */
105
105
  contentType: ContentTypeAPI;
106
106
  }
107
- declare type CrudAction = 'create' | 'read' | 'update' | 'delete';
108
- declare type PublishableAction = 'publish' | 'unpublish';
109
- declare type ArchiveableAction = 'archive' | 'unarchive';
107
+ export declare type CrudAction = 'create' | 'read' | 'update' | 'delete';
108
+ export declare type PublishableAction = 'publish' | 'unpublish';
109
+ export declare type ArchiveableAction = 'archive' | 'unarchive';
110
110
  export declare type JSONPatchItem = {
111
111
  op: 'remove' | 'replace' | 'add';
112
112
  path: string;
@@ -1,4 +1,4 @@
1
- export type { AccessAPI, AppExtensionSDK, BaseExtensionSDK, ConnectMessage, ContentTypeAPI, DialogExtensionSDK, EditorExtensionSDK, EditorLocaleSettings, FieldExtensionSDK, IdsAPI, KnownSDK, LocalesAPI, LocationAPI, Locations, NotifierAPI, PageExtensionSDK, ParametersAPI, SharedEditorSDK, SidebarExtensionSDK, UserAPI, JSONPatchItem, } from './api.types';
1
+ export type { AccessAPI, AppExtensionSDK, ArchiveableAction, BaseExtensionSDK, ConnectMessage, ContentTypeAPI, CrudAction, DialogExtensionSDK, EditorExtensionSDK, EditorLocaleSettings, FieldExtensionSDK, IdsAPI, KnownSDK, LocalesAPI, LocationAPI, Locations, NotifierAPI, PageExtensionSDK, ParametersAPI, PublishableAction, SharedEditorSDK, SidebarExtensionSDK, UserAPI, JSONPatchItem, } from './api.types';
2
2
  export type { AppConfigAPI, AppState, OnConfigureHandler, OnConfigureHandlerReturn, } from './app.types';
3
3
  export type { DialogsAPI, EntityDialogOptions, OpenAlertOptions, OpenConfirmOptions, OpenCustomWidgetOptions, } from './dialogs.types';
4
4
  export type { User, Asset, ContentType, CanonicalRequest, EditorInterface, ContentTypeField, ScheduledAction, SpaceMembership, Tag, TagVisibility, Task, Entry, Role, Metadata, } from './entities';
@@ -8,4 +8,5 @@ export type { FieldAPI } from './field-locale.types';
8
8
  export type { NavigatorAPI, AppPageLocationOptions, NavigatorAPIOptions, NavigatorOpenResponse, NavigatorPageResponse, NavigatorSlideInfo, PageExtensionOptions, } from './navigator.types';
9
9
  export type { SpaceAPI } from './space.types';
10
10
  export type { SearchQuery, CollectionResponse, ContentEntitySys, ContentEntityType, Items, Link, WithOptionalId, WithId, SerializedJSONValue, } from './utils';
11
+ export type { DateRangeValidationError, InValidationError, LinkContentTypeValidationError, LinkMimetypeGroupValidationError, NotResolvableValidationError, ProhibitRegexpValidationError, RangeValidationError, RegexpValidationError, RequiredValidationError, SizeValidationError, TypeValidationError, UniqueValidationError, UnknownValidationError, ValidationError, } from './validation-error';
11
12
  export type { WindowAPI } from './window.types';
@@ -1,3 +1,4 @@
1
+ import { Link } from './utils';
1
2
  export interface BaseValidationError {
2
3
  name: string;
3
4
  message?: string;
@@ -25,7 +26,7 @@ export interface RequiredValidationError extends BaseValidationError {
25
26
  }
26
27
  export interface UniqueValidationError extends BaseValidationError {
27
28
  name: 'unique';
28
- conflicting: string[];
29
+ conflicting: Link<'Entry', 'Link'>[];
29
30
  }
30
31
  export interface ProhibitRegexpValidationError extends BaseValidationError {
31
32
  name: 'prohibitRegexp';
@@ -39,7 +40,7 @@ export interface LinkMimetypeGroupValidationError extends BaseValidationError {
39
40
  }
40
41
  export interface LinkContentTypeValidationError extends BaseValidationError {
41
42
  name: 'linkContentType';
42
- contentTypeId: string;
43
+ contentTypeId: string[];
43
44
  }
44
45
  export interface DateRangeValidationError extends BaseValidationError {
45
46
  name: 'dateRange';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "contentful-ui-extensions-sdk",
3
3
  "description": "SDK to develop custom UI Extension for the Contentful Web App",
4
- "version": "4.0.1",
4
+ "version": "4.2.1",
5
5
  "author": "Contentful GmbH",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -51,13 +51,13 @@
51
51
  "@types/nanoid": "3.0.0",
52
52
  "@types/sinon": "^10.0.0",
53
53
  "@types/sinon-chai": "^3.2.5",
54
- "@typescript-eslint/eslint-plugin": "4.32.0",
55
- "@typescript-eslint/parser": "4.32.0",
54
+ "@typescript-eslint/eslint-plugin": "4.33.0",
55
+ "@typescript-eslint/parser": "4.33.0",
56
56
  "async-retry": "1.3.3",
57
57
  "babel-eslint": "10.1.0",
58
58
  "chai": "4.3.4",
59
59
  "chai-as-promised": "7.1.1",
60
- "contentful-management": "7.41.1",
60
+ "contentful-management": "7.42.1",
61
61
  "cross-spawn": "7.0.3",
62
62
  "cypress": "8.5.0",
63
63
  "cypress-multi-reporters": "1.5.0",
@@ -83,7 +83,7 @@
83
83
  "mochawesome": "6.3.0",
84
84
  "mochawesome-merge": "4.2.0",
85
85
  "mochawesome-report-generator": "5.2.0",
86
- "nanoid": "3.1.28",
86
+ "nanoid": "3.1.29",
87
87
  "prettier": "2.4.1",
88
88
  "rollup": "2.58.0",
89
89
  "rollup-plugin-terser": "7.0.2",