@contentful/field-editor-reference 5.1.6 → 5.1.7

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,10 @@
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.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.1.6...@contentful/field-editor-reference@5.1.7) (2022-09-09)
7
+
8
+ **Note:** Version bump only for package @contentful/field-editor-reference
9
+
6
10
  ## [5.1.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.1.5...@contentful/field-editor-reference@5.1.6) (2022-09-07)
7
11
 
8
12
  ### Bug Fixes
@@ -1,5 +1,5 @@
1
+ import { FieldExtensionSDK } from '@contentful/app-sdk';
1
2
  import { Emitter } from 'mitt';
2
- import { FieldExtensionSDK } from '../types';
3
3
  export declare type ReferenceEditorSdkProps = {
4
4
  initialValue?: any;
5
5
  validations?: any;
@@ -0,0 +1,6 @@
1
+ import changed from './changed_asset.json';
2
+ import created from './created_asset.json';
3
+ import empty from './empty_asset.json';
4
+ import invalid from './invalid_asset.json';
5
+ import published from './published_asset.json';
6
+ export { changed, empty, published, invalid, created };
@@ -0,0 +1,2 @@
1
+ import published from './published_content_type.json';
2
+ export { published };
@@ -0,0 +1,5 @@
1
+ import changed from './changed_entry.json';
2
+ import empty from './empty_entry.json';
3
+ import invalid from './invalid_entry.json';
4
+ import published from './published_entry.json';
5
+ export { changed, empty, published, invalid };
@@ -0,0 +1,6 @@
1
+ import * as assets from './asset';
2
+ import * as contentTypes from './content-type';
3
+ import * as entries from './entry';
4
+ import * as locales from './locale';
5
+ import * as spaces from './space';
6
+ export { assets, contentTypes, entries, locales, spaces };
@@ -0,0 +1,42 @@
1
+ import englishDefault from './english_default_locale.json';
2
+ import german from './german_locale.json';
3
+ declare const list: {
4
+ sys: {
5
+ type: string;
6
+ };
7
+ total: number;
8
+ skip: number;
9
+ limit: number;
10
+ items: {
11
+ sys: {
12
+ id: string;
13
+ type: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ version: number;
17
+ space: {
18
+ sys: {
19
+ type: string;
20
+ linkType: string;
21
+ id: string;
22
+ };
23
+ };
24
+ environment: {
25
+ sys: {
26
+ id: string;
27
+ type: string;
28
+ linkType: string;
29
+ };
30
+ };
31
+ };
32
+ name: string;
33
+ code: string;
34
+ internal_code: string;
35
+ fallbackCode: null;
36
+ contentDeliveryApi: boolean;
37
+ contentManagementApi: boolean;
38
+ default: boolean;
39
+ optional: boolean;
40
+ }[];
41
+ };
42
+ export { englishDefault, german, list };
@@ -0,0 +1,2 @@
1
+ import indifferent from './indifferent_space.json';
2
+ export { indifferent };
@@ -2278,11 +2278,11 @@ var _constate = /*#__PURE__*/constate(function useInitServices(props) {
2278
2278
  };
2279
2279
  }, [onEntityChanged, queryCache, isSameSpaceEntityQueryKey, queryClient]);
2280
2280
  return {
2281
+ ids: props.sdk.ids,
2281
2282
  cmaClient: cmaClient,
2282
2283
  fetch: fetch,
2283
2284
  getResource: getResource,
2284
2285
  getEntity: getEntity,
2285
- ids: props.sdk.ids,
2286
2286
  getEntityScheduledActions: getEntityScheduledActions
2287
2287
  };
2288
2288
  }, function (_ref5) {
@@ -2298,8 +2298,13 @@ var _constate = /*#__PURE__*/constate(function useInitServices(props) {
2298
2298
  getEntityScheduledActions: getEntityScheduledActions
2299
2299
  };
2300
2300
  }, function (_ref7) {
2301
+ var _ids$environmentAlias;
2302
+
2301
2303
  var ids = _ref7.ids;
2302
- return ids;
2304
+ return {
2305
+ environment: (_ids$environmentAlias = ids.environmentAlias) != null ? _ids$environmentAlias : ids.environment,
2306
+ space: ids.space
2307
+ };
2303
2308
  }),
2304
2309
  InternalServiceProvider = _constate[0],
2305
2310
  useEntityLoader = _constate[2],