@contentful/field-editor-shared 2.13.2 → 2.13.3

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.
@@ -123,7 +123,7 @@ function useReleaseStatus({ entity, release, locales, previousEntityOnTimeline }
123
123
  if (releaseArray.find(({ status })=>status === 'willPublish')) {
124
124
  return 'publish';
125
125
  }
126
- if (releaseArray.find(({ status })=>status === 'becomesDraft')) {
126
+ if (releaseArray.find(({ status })=>status === 'becomesDraft' || status === 'remainsDraft')) {
127
127
  return 'unpublish';
128
128
  }
129
129
  return 'not-in-release';
@@ -113,7 +113,7 @@ export function useReleaseStatus({ entity, release, locales, previousEntityOnTim
113
113
  if (releaseArray.find(({ status })=>status === 'willPublish')) {
114
114
  return 'publish';
115
115
  }
116
- if (releaseArray.find(({ status })=>status === 'becomesDraft')) {
116
+ if (releaseArray.find(({ status })=>status === 'becomesDraft' || status === 'remainsDraft')) {
117
117
  return 'unpublish';
118
118
  }
119
119
  return 'not-in-release';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-shared",
3
- "version": "2.13.2",
3
+ "version": "2.13.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://npm.pkg.github.com/"
60
60
  },
61
- "gitHead": "5268c1cf0458b21d33e68126d27f8c14a2c5785d"
61
+ "gitHead": "8664fab7fefac3bd33c5fd52b76c72b1eb8451b6"
62
62
  }