@contentful/field-editor-reference 4.2.2 → 4.2.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 +6 -0
- package/dist/field-editor-reference.cjs.development.js +6 -2
- package/dist/field-editor-reference.cjs.development.js.map +1 -1
- package/dist/field-editor-reference.cjs.production.min.js +1 -1
- package/dist/field-editor-reference.cjs.production.min.js.map +1 -1
- package/dist/field-editor-reference.esm.js +6 -2
- package/dist/field-editor-reference.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.2.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.2.2...@contentful/field-editor-reference@4.2.3) (2022-04-19)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- always show link existing button to account for tag based permissions [ZEND-1864] ([#1107](https://github.com/contentful/field-editors/issues/1107)) ([3b4ca1f](https://github.com/contentful/field-editors/commit/3b4ca1f2acca530cceab659346fe7769757d90f4))
|
|
11
|
+
|
|
6
12
|
## [4.2.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.2.1...@contentful/field-editor-reference@4.2.2) (2022-03-31)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -2308,7 +2308,8 @@ function useEditorPermissions(props) {
|
|
|
2308
2308
|
|
|
2309
2309
|
function _checkLinkAccess() {
|
|
2310
2310
|
_checkLinkAccess = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
|
|
2311
|
-
var canRead;
|
|
2311
|
+
var canRead, _canRead;
|
|
2312
|
+
|
|
2312
2313
|
return runtime_1.wrap(function _callee2$(_context2) {
|
|
2313
2314
|
while (1) {
|
|
2314
2315
|
switch (_context2.prev = _context2.next) {
|
|
@@ -2337,7 +2338,10 @@ function useEditorPermissions(props) {
|
|
|
2337
2338
|
|
|
2338
2339
|
case 8:
|
|
2339
2340
|
if (entityType === 'Entry') {
|
|
2340
|
-
|
|
2341
|
+
// Hardcoded `true` value following https://contentful.atlassian.net/browse/DANTE-486
|
|
2342
|
+
// TODO: refine permissions check in order to account for tags in rules
|
|
2343
|
+
_canRead = readableContentTypes.length > 0 || true;
|
|
2344
|
+
setCanLinkEntity(_canRead);
|
|
2341
2345
|
}
|
|
2342
2346
|
|
|
2343
2347
|
case 9:
|