@contentful/field-editor-reference 5.1.0 → 5.1.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.1.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.1.2...@contentful/field-editor-reference@5.1.3) (2022-08-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **EntityStore:** respect environment alias ([#1223](https://github.com/contentful/field-editors/issues/1223)) ([f66a6b9](https://github.com/contentful/field-editors/commit/f66a6b994f107341251a0ea335457a6b0148439f))
11
+
12
+ ## [5.1.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.1.1...@contentful/field-editor-reference@5.1.2) (2022-08-26)
13
+
14
+ ### Bug Fixes
15
+
16
+ - change the props type definitions ([#1222](https://github.com/contentful/field-editors/issues/1222)) ([f71394b](https://github.com/contentful/field-editors/commit/f71394b3653c4e84bb45ed5745ba81eb0522e680))
17
+
18
+ ## [5.1.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.1.0...@contentful/field-editor-reference@5.1.1) (2022-08-25)
19
+
20
+ ### Bug Fixes
21
+
22
+ - add p-queue as dependency ([#1220](https://github.com/contentful/field-editors/issues/1220)) ([8576389](https://github.com/contentful/field-editors/commit/85763896092414acce8e3e2f81f375dcf983b49f))
23
+
6
24
  # [5.1.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.0.0...@contentful/field-editor-reference@5.1.0) (2022-08-24)
7
25
 
8
26
  ### Features
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ReferenceEditorProps } from '../common/ReferenceEditor';
3
- declare type EditorProps = Omit<ReferenceEditorProps, 'hasCardEditActions'>;
3
+ declare type EditorProps = Pick<ReferenceEditorProps, Exclude<keyof ReferenceEditorProps, 'hasCardEditActions'>>;
4
4
  export declare function MultipleMediaEditor(props: EditorProps): JSX.Element;
5
5
  export declare namespace MultipleMediaEditor {
6
6
  var defaultProps: {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ReferenceEditorProps } from '../common/ReferenceEditor';
3
- declare type EditorProps = Omit<ReferenceEditorProps, 'hasCardEditActions'>;
3
+ declare type EditorProps = Pick<ReferenceEditorProps, Exclude<keyof ReferenceEditorProps, 'hasCardEditActions'>>;
4
4
  export declare function SingleMediaEditor(props: EditorProps): JSX.Element;
5
5
  export declare namespace SingleMediaEditor {
6
6
  var defaultProps: {
@@ -2054,8 +2054,10 @@ function _fetchContentfulEntry() {
2054
2054
  }
2055
2055
 
2056
2056
  var _constate = /*#__PURE__*/constate(function useInitServices(props) {
2057
+ var _props$sdk$ids$enviro;
2058
+
2057
2059
  var currentSpaceId = props.sdk.ids.space;
2058
- var currentEnvironmentId = props.sdk.ids.environment;
2060
+ var currentEnvironmentId = (_props$sdk$ids$enviro = props.sdk.ids.environmentAlias) != null ? _props$sdk$ids$enviro : props.sdk.ids.environment;
2059
2061
  var queryClient = reactQuery.useQueryClient();
2060
2062
  var queryCache = queryClient.getQueryCache();
2061
2063
  var entityChangeUnsubscribers = React.useRef({});