@contentful/field-editor-shared 2.2.3 → 2.3.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.
@@ -159,7 +159,7 @@ const ArrowDownIcon = (0, _f36components.generateIcon)({
159
159
  });
160
160
  const determineBadgeStatus = (localesStatusMap, activeLocales)=>{
161
161
  if (!localesStatusMap) return;
162
- if (localesStatusMap.size === 1) return {
162
+ if (localesStatusMap.size === 1 || activeLocales && activeLocales.length === 1) return {
163
163
  primary: [
164
164
  ...localesStatusMap.values()
165
165
  ][0].status
@@ -103,7 +103,7 @@ const ArrowDownIcon = generateIcon({
103
103
  });
104
104
  const determineBadgeStatus = (localesStatusMap, activeLocales)=>{
105
105
  if (!localesStatusMap) return;
106
- if (localesStatusMap.size === 1) return {
106
+ if (localesStatusMap.size === 1 || activeLocales && activeLocales.length === 1) return {
107
107
  primary: [
108
108
  ...localesStatusMap.values()
109
109
  ][0].status
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-shared",
3
- "version": "2.2.3",
3
+ "version": "2.3.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "registry": "https://npm.pkg.github.com/"
57
57
  },
58
- "gitHead": "58badec95e1faa6cc187f72e9da7627002618562"
58
+ "gitHead": "5744bed7b566437cb831312e84af7444b9047b69"
59
59
  }