@contentful/field-editor-shared 2.13.1 → 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.
@@ -38,10 +38,10 @@ const RELEASE_BADGES = {
38
38
  },
39
39
  remainsDraft: {
40
40
  label: 'Remains draft',
41
- variant: 'secondary',
42
- default: _f36tokens.default.gray300,
43
- hover: _f36tokens.default.gray400,
44
- icon: _f36tokens.default.gray400
41
+ variant: 'warning',
42
+ default: _f36tokens.default.orange300,
43
+ hover: _f36tokens.default.orange400,
44
+ icon: _f36tokens.default.orange400
45
45
  },
46
46
  notInRelease: {
47
47
  label: 'Not in release',
@@ -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';
@@ -23,10 +23,10 @@ export const RELEASE_BADGES = {
23
23
  },
24
24
  remainsDraft: {
25
25
  label: 'Remains draft',
26
- variant: 'secondary',
27
- default: tokens.gray300,
28
- hover: tokens.gray400,
29
- icon: tokens.gray400
26
+ variant: 'warning',
27
+ default: tokens.orange300,
28
+ hover: tokens.orange400,
29
+ icon: tokens.orange400
30
30
  },
31
31
  notInRelease: {
32
32
  label: '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';
@@ -22,7 +22,7 @@ export declare const RELEASE_BADGES: {
22
22
  };
23
23
  readonly remainsDraft: {
24
24
  readonly label: "Remains draft";
25
- readonly variant: "secondary";
25
+ readonly variant: "warning";
26
26
  readonly default: string;
27
27
  readonly hover: string;
28
28
  readonly icon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-shared",
3
- "version": "2.13.1",
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": "5a7e41aa7b9bbd285221f164daa777fb48cbdb01"
61
+ "gitHead": "8664fab7fefac3bd33c5fd52b76c72b1eb8451b6"
62
62
  }