@contentful/field-editor-reference 4.6.6 → 4.6.9

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,20 @@
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
+ ## [4.6.9](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.6.8...@contentful/field-editor-reference@4.6.9) (2022-08-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - version compare [TOL-339] ([#1209](https://github.com/contentful/field-editors/issues/1209)) ([3723fd6](https://github.com/contentful/field-editors/commit/3723fd6d47c30acc6b3f8c892836d54a1303791c))
11
+
12
+ ## [4.6.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.6.7...@contentful/field-editor-reference@4.6.8) (2022-07-29)
13
+
14
+ **Note:** Version bump only for package @contentful/field-editor-reference
15
+
16
+ ## [4.6.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.6.6...@contentful/field-editor-reference@4.6.7) (2022-07-29)
17
+
18
+ **Note:** Version bump only for package @contentful/field-editor-reference
19
+
6
20
  ## [4.6.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.6.5...@contentful/field-editor-reference@4.6.6) (2022-07-22)
7
21
 
8
22
  ### Bug Fixes
@@ -1,6 +1,8 @@
1
1
  import { Emitter } from 'mitt';
2
2
  import { FieldExtensionSDK } from '../types';
3
3
  export declare type ReferenceEditorSdkProps = {
4
+ initialValue?: any;
4
5
  validations?: any;
6
+ fetchDelay?: number;
5
7
  };
6
8
  export declare function newReferenceEditorFakeSdk(props?: ReferenceEditorSdkProps): [FieldExtensionSDK, Emitter];
@@ -400,6 +400,10 @@ var CreateEntryLinkButton = function CreateEntryLinkButton(_ref) {
400
400
  });
401
401
  };
402
402
 
403
+ function NoLinkPermissionsInfo() {
404
+ return React__default.createElement(f36Components.Paragraph, null, "You don't have permission to view this content or this field is not correctly configured. Contact your administrator for help.");
405
+ }
406
+
403
407
  var container$1 = /*#__PURE__*/emotion.css({
404
408
  display: 'flex',
405
409
  width: '100%',
@@ -409,10 +413,6 @@ var separator = /*#__PURE__*/emotion.css({
409
413
  marginRight: tokens.spacingXl
410
414
  });
411
415
 
412
- function NoLinkPermissionsInfo() {
413
- return React__default.createElement(f36Components.Paragraph, null, "You don't have permission to view this content or this field is not correctly configured. Contact your administrator for help.");
414
- }
415
-
416
416
  var defaultEntryLabels = {
417
417
  createNew: function createNew(props) {
418
418
  return props != null && props.contentType ? "Create new " + props.contentType + " and link" : 'Create new entry and link';
@@ -3622,6 +3622,10 @@ function FetchingWrappedAssetCard(props) {
3622
3622
  assets = _useEntities.assets;
3623
3623
 
3624
3624
  React.useEffect(function () {
3625
+ if (!props.assetId) {
3626
+ return;
3627
+ }
3628
+
3625
3629
  getAsset(props.assetId); // eslint-disable-next-line react-hooks/exhaustive-deps -- TODO: Evaluate the dependencies
3626
3630
  }, [props.assetId]);
3627
3631
  var asset = assets[props.assetId];