@contentful/field-editor-shared 2.13.0 → 2.13.2

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',
@@ -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',
@@ -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;
@@ -1,6 +1,6 @@
1
1
  import type { LocalesAPI } from '@contentful/app-sdk';
2
2
  import type { AssetProps, EntryProps, LocaleProps, ReleaseProps } from 'contentful-management/types';
3
- import type { ReleaseAction, ReleaseV2Props } from '../types';
3
+ import type { ReleaseAction, ReleaseV2Props, ReleaseStatusMap } from '../types';
4
4
  type UseActiveReleaseLocalesStatuses = {
5
5
  entity?: EntryProps | AssetProps;
6
6
  locales: LocaleProps[] | LocalesAPI;
@@ -8,7 +8,7 @@ type UseActiveReleaseLocalesStatuses = {
8
8
  previousEntityOnTimeline?: EntryProps | AssetProps;
9
9
  };
10
10
  export declare function useReleaseStatus({ entity, release, locales, previousEntityOnTimeline, }: UseActiveReleaseLocalesStatuses): {
11
- releaseStatusMap: Map<any, any>;
11
+ releaseStatusMap: ReleaseStatusMap;
12
12
  releaseAction: ReleaseAction | undefined;
13
13
  };
14
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-shared",
3
- "version": "2.13.0",
3
+ "version": "2.13.2",
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": "6bae62839ecfbd1945a60050b51eba95a2594388"
61
+ "gitHead": "5268c1cf0458b21d33e68126d27f8c14a2c5785d"
62
62
  }