@contentful/field-editor-shared 2.2.3 → 2.3.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.
|
@@ -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.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@contentful/f36-components": "^4.70.0",
|
|
44
44
|
"@contentful/f36-note": "^4.70.0",
|
|
45
45
|
"@contentful/f36-tokens": "^4.0.5",
|
|
46
|
-
"contentful-management": "^11.
|
|
46
|
+
"contentful-management": "^11.41.0",
|
|
47
47
|
"emotion": "^10.0.17",
|
|
48
48
|
"fast-deep-equal": "^3.1.3",
|
|
49
49
|
"lodash": "^4.17.15"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"registry": "https://npm.pkg.github.com/"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "21b8e36ce7ed50abfe2a3a477103d5de1043674b"
|
|
59
59
|
}
|