@contentful/field-editor-shared 2.9.1 → 2.11.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.
package/dist/cjs/index.js CHANGED
@@ -103,6 +103,9 @@ _export(exports, {
103
103
  return _shortenStorageUnit.toLocaleString;
104
104
  }
105
105
  });
106
+ const _ModalDialogLauncher = /*#__PURE__*/ _interop_require_wildcard(require("./ModalDialogLauncher"));
107
+ const _constraints = /*#__PURE__*/ _interop_require_wildcard(require("./utils/constraints"));
108
+ const _entityHelpers = /*#__PURE__*/ _interop_require_wildcard(require("./utils/entityHelpers"));
106
109
  const _appsdk = require("@contentful/app-sdk");
107
110
  const _CharCounter = require("./CharCounter");
108
111
  const _CharValidation = require("./CharValidation");
@@ -120,9 +123,6 @@ _export_star(require("./ReleaseEntityStatusBadge"), exports);
120
123
  _export_star(require("./utils/determineReleaseAction"), exports);
121
124
  _export_star(require("./utils/getEntryReleaseStatus"), exports);
122
125
  _export_star(require("./utils/parseReleaseParameters"), exports);
123
- const _ModalDialogLauncher = /*#__PURE__*/ _interop_require_wildcard(require("./ModalDialogLauncher"));
124
- const _constraints = /*#__PURE__*/ _interop_require_wildcard(require("./utils/constraints"));
125
- const _entityHelpers = /*#__PURE__*/ _interop_require_wildcard(require("./utils/entityHelpers"));
126
126
  function _export_star(from, to) {
127
127
  Object.keys(from).forEach(function(k) {
128
128
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
package/dist/esm/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import * as ModalDialogLauncher from './ModalDialogLauncher';
2
+ import * as ConstraintsUtils from './utils/constraints';
3
+ import * as entityHelpers from './utils/entityHelpers';
1
4
  export { AccessAPI, AppConfigAPI, BaseAppSDK, ContentType, DialogsAPI, EntryAPI, EntryFieldAPI, FieldAPI, FieldAppSDK, IdsAPI, LocalesAPI, LocationAPI, NavigatorAPI, NotifierAPI, OpenCustomWidgetOptions, ParametersAPI, SpaceAPI, WindowAPI } from '@contentful/app-sdk';
2
5
  export { CharCounter } from './CharCounter';
3
6
  export { CharValidation } from './CharValidation';
@@ -18,6 +21,3 @@ export * from './ReleaseEntityStatusBadge';
18
21
  export * from './utils/determineReleaseAction';
19
22
  export * from './utils/getEntryReleaseStatus';
20
23
  export * from './utils/parseReleaseParameters';
21
- import * as ModalDialogLauncher from './ModalDialogLauncher';
22
- import * as ConstraintsUtils from './utils/constraints';
23
- import * as entityHelpers from './utils/entityHelpers';
@@ -1,3 +1,6 @@
1
+ import * as ModalDialogLauncher from './ModalDialogLauncher';
2
+ import * as ConstraintsUtils from './utils/constraints';
3
+ import * as entityHelpers from './utils/entityHelpers';
1
4
  export { AccessAPI, AppConfigAPI, BaseAppSDK, ContentType, DialogsAPI, EntryAPI, EntryFieldAPI, FieldAPI, FieldAppSDK, IdsAPI, LocalesAPI, LocationAPI, NavigatorAPI, NotifierAPI, OpenCustomWidgetOptions, ParametersAPI, SpaceAPI, WindowAPI, } from '@contentful/app-sdk';
2
5
  export { CharCounter } from './CharCounter';
3
6
  export { CharValidation } from './CharValidation';
@@ -19,6 +22,3 @@ export * from './ReleaseEntityStatusBadge';
19
22
  export * from './utils/determineReleaseAction';
20
23
  export * from './utils/getEntryReleaseStatus';
21
24
  export * from './utils/parseReleaseParameters';
22
- import * as ModalDialogLauncher from './ModalDialogLauncher';
23
- import * as ConstraintsUtils from './utils/constraints';
24
- import * as entityHelpers from './utils/entityHelpers';
@@ -41,12 +41,22 @@ export type ReleaseV2EntityWithLocales = {
41
41
  };
42
42
  };
43
43
  };
44
+ export type ReleaseV2AnnotationType = 'Hidden' | 'Ideation';
45
+ export type ReleaseV2Annotations = {
46
+ 'Contentful:Timeline'?: {
47
+ type?: ReleaseV2AnnotationType;
48
+ };
49
+ };
50
+ export type ReleaseMetadataV2 = {
51
+ annotations?: ReleaseV2Annotations;
52
+ };
44
53
  export type ReleaseV2Props = Omit<ReleaseProps, 'entities' | 'sys'> & {
45
54
  sys: ReleaseProps['sys'] & {
46
55
  schemaVersion: 'Release.v2';
47
56
  };
48
57
  entities: CollectionProp<ReleaseV2Entity | ReleaseV2EntityWithLocales>;
49
58
  startDate?: string;
59
+ metadata?: ReleaseMetadataV2;
50
60
  };
51
61
  export type ReleaseAction = 'publish' | 'unpublish' | 'not-in-release';
52
62
  export type ReleaseEntityStatus = 'willPublish' | 'becomesDraft' | 'remainsDraft' | 'notInRelease';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-shared",
3
- "version": "2.9.1",
3
+ "version": "2.11.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -8,6 +8,7 @@
8
8
  ".": {
9
9
  "types": "./dist/types/index.d.ts",
10
10
  "require": "./dist/cjs/index.js",
11
+ "import": "./dist/esm/index.js",
11
12
  "default": "./dist/cjs/index.js"
12
13
  },
13
14
  "./package.json": "./package.json"
@@ -36,7 +37,7 @@
36
37
  },
37
38
  "devDependencies": {
38
39
  "@contentful/app-sdk": "^4.29.0",
39
- "@contentful/field-editor-test-utils": "^1.5.2",
40
+ "@contentful/field-editor-test-utils": "^1.6.0",
40
41
  "@lingui/core": "5.3.0",
41
42
  "@testing-library/react": "16.0.1"
42
43
  },
@@ -57,5 +58,5 @@
57
58
  "publishConfig": {
58
59
  "registry": "https://npm.pkg.github.com/"
59
60
  },
60
- "gitHead": "4fa62eaa25b40c592cc3671df8626dd18013a206"
61
+ "gitHead": "d95494a3bbef108479d0a7b31ebd291d98e36100"
61
62
  }