Skip to content

Commit c55d625

Browse files
committed
Merge branch 'master' of https://github.com/contentful/field-editors into dependabot/npm_and_yarn/master/testing-library/jest-dom-6.4.8
2 parents adcb39a + 8013feb commit c55d625

File tree

16 files changed

+377
-141
lines changed

16 files changed

+377
-141
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"eslint-plugin-react": "7.34.1",
9292
"eslint-plugin-react-hooks": "4.6.0",
9393
"eslint-plugin-storybook": "0.6.15",
94-
"eslint-plugin-you-dont-need-lodash-underscore": "6.13.0",
94+
"eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
9595
"git-cz": "4.9.0",
9696
"html-webpack-plugin": "5.6.0",
9797
"husky": "7.0.0",

packages/default-field-editors/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.7.8](https://github.com/contentful/field-editors/compare/@contentful/default-field-editors@1.7.7...@contentful/default-field-editors@1.7.8) (2024-08-19)
7+
8+
**Note:** Version bump only for package @contentful/default-field-editors
9+
10+
## [1.7.7](https://github.com/contentful/field-editors/compare/@contentful/default-field-editors@1.7.6...@contentful/default-field-editors@1.7.7) (2024-08-19)
11+
12+
**Note:** Version bump only for package @contentful/default-field-editors
13+
14+
## [1.7.6](https://github.com/contentful/field-editors/compare/@contentful/default-field-editors@1.7.5...@contentful/default-field-editors@1.7.6) (2024-08-13)
15+
16+
**Note:** Version bump only for package @contentful/default-field-editors
17+
18+
## [1.7.5](https://github.com/contentful/field-editors/compare/@contentful/default-field-editors@1.7.4...@contentful/default-field-editors@1.7.5) (2024-08-12)
19+
20+
**Note:** Version bump only for package @contentful/default-field-editors
21+
22+
## [1.7.4](https://github.com/contentful/field-editors/compare/@contentful/default-field-editors@1.7.3...@contentful/default-field-editors@1.7.4) (2024-08-08)
23+
24+
**Note:** Version bump only for package @contentful/default-field-editors
25+
26+
## [1.7.3](https://github.com/contentful/field-editors/compare/@contentful/default-field-editors@1.7.2...@contentful/default-field-editors@1.7.3) (2024-08-06)
27+
28+
**Note:** Version bump only for package @contentful/default-field-editors
29+
630
## [1.7.2](https://github.com/contentful/field-editors/compare/@contentful/default-field-editors@1.7.1...@contentful/default-field-editors@1.7.2) (2024-07-25)
731

832
**Note:** Version bump only for package @contentful/default-field-editors

packages/default-field-editors/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentful/default-field-editors",
3-
"version": "1.7.2",
3+
"version": "1.7.8",
44
"main": "dist/cjs/index.js",
55
"module": "dist/esm/index.js",
66
"types": "dist/types/index.d.ts",
@@ -48,12 +48,12 @@
4848
"@contentful/field-editor-number": "^1.3.19",
4949
"@contentful/field-editor-radio": "^1.5.0",
5050
"@contentful/field-editor-rating": "^1.4.16",
51-
"@contentful/field-editor-reference": "^5.30.1",
52-
"@contentful/field-editor-rich-text": "^3.25.2",
51+
"@contentful/field-editor-reference": "^5.30.5",
52+
"@contentful/field-editor-rich-text": "^3.26.4",
5353
"@contentful/field-editor-shared": "^1.6.0",
5454
"@contentful/field-editor-single-line": "^1.4.3",
5555
"@contentful/field-editor-slug": "^1.5.0",
56-
"@contentful/field-editor-tags": "^1.4.16",
56+
"@contentful/field-editor-tags": "^1.4.18",
5757
"@contentful/field-editor-url": "^1.3.18",
5858
"@contentful/field-editor-validation-errors": "^1.3.18",
5959
"contentful-management": "^11.0.0",

packages/reference/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [5.30.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.30.4...@contentful/field-editor-reference@5.30.5) (2024-08-19)
7+
8+
**Note:** Version bump only for package @contentful/field-editor-reference
9+
10+
## [5.30.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.30.3...@contentful/field-editor-reference@5.30.4) (2024-08-19)
11+
12+
**Note:** Version bump only for package @contentful/field-editor-reference
13+
14+
## [5.30.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.30.2...@contentful/field-editor-reference@5.30.3) (2024-08-13)
15+
16+
### Bug Fixes
17+
18+
- add an ERL component to handle URLs in the editor [DANTE-1757] ([#1721](https://github.com/contentful/field-editors/issues/1721)) ([59156d8](https://github.com/contentful/field-editors/commit/59156d8a5e26d1bdc4d1240e8bfe5373a8d2d7de))
19+
20+
## [5.30.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.30.1...@contentful/field-editor-reference@5.30.2) (2024-08-06)
21+
22+
### Bug Fixes
23+
24+
- add a missing handler for ERL click [DANTE-1735] ([#1717](https://github.com/contentful/field-editors/issues/1717)) ([5da146c](https://github.com/contentful/field-editors/commit/5da146c3035bc2212eafed167b75e94281623a7f))
25+
626
## [5.30.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.30.0...@contentful/field-editor-reference@5.30.1) (2024-07-25)
727

828
**Note:** Version bump only for package @contentful/field-editor-reference

packages/reference/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentful/field-editor-reference",
3-
"version": "5.30.1",
3+
"version": "5.30.5",
44
"main": "dist/cjs/index.js",
55
"module": "dist/esm/index.js",
66
"types": "dist/types/index.d.ts",
@@ -41,8 +41,8 @@
4141
"@contentful/field-editor-shared": "^1.6.0",
4242
"@contentful/mimetype": "^2.2.29",
4343
"@dnd-kit/core": "^6.0.8",
44-
"@dnd-kit/modifiers": "^6.0.1",
45-
"@dnd-kit/sortable": "^7.0.2",
44+
"@dnd-kit/modifiers": "^7.0.0",
45+
"@dnd-kit/sortable": "^8.0.0",
4646
"@tanstack/react-query": "^4.3.9",
4747
"constate": "^3.3.2",
4848
"contentful-management": "^11.30.0",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import * as React from 'react';
2+
3+
import {
4+
ExternalResourceCard,
5+
type ExternalResourceCardProps,
6+
} from '../ExternalResourceCard/ExternalResourceCard';
7+
8+
type ExternalEntryCardProps = ExternalResourceCardProps;
9+
10+
export function ExternalEntryCard(props: ExternalEntryCardProps) {
11+
const openEntryDetail = () => {
12+
window.open(props.info.resource.fields.externalUrl, '_blank', 'noopener,noreferrer');
13+
};
14+
15+
return <ExternalResourceCard {...props} onEdit={openEntryDetail} />;
16+
}

packages/reference/src/resources/Cards/ResourceCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { SetRequired } from 'type-fest';
77
import { isContentfulResourceInfo, useResource } from '../../common/EntityStore';
88
import { ResourceEntityErrorCard } from '../../components';
99
import { RenderDragFn, ResourceLink } from '../../types';
10-
import { ExternalResourceCard } from '../ExternalResourceCard/ExternalResourceCard';
1110
import { CardActionsHandlers, ContentfulEntryCard, EntryRoute } from './ContentfulEntryCard';
11+
import { ExternalEntryCard } from './ExternalEntryCard';
1212

1313
type ResourceCardProps = {
1414
index?: number;
@@ -57,7 +57,7 @@ function ExistingResourceCard(
5757
return <ContentfulEntryCard info={info} {...props} />;
5858
}
5959

60-
return <ExternalResourceCard info={info} {...props} />;
60+
return <ExternalEntryCard info={info} {...props} />;
6161
}
6262

6363
function ResourceCardWrapper(props: ResourceCardProps & { inView: boolean }) {

packages/reference/src/resources/ExternalResourceCard/ExternalResourceCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export function ExternalResourceCard({
9999
}: ExternalResourceCardProps) {
100100
const { resource: entity, resourceType } = info;
101101
const badge = ExternalEntityBadge(entity.fields.badge);
102+
102103
return (
103104
<EntryCard
104105
as={entity.fields.externalUrl ? 'a' : 'article'}

packages/rich-text/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.26.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.26.3...@contentful/field-editor-rich-text@3.26.4) (2024-08-19)
7+
8+
**Note:** Version bump only for package @contentful/field-editor-rich-text
9+
10+
## [3.26.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.26.2...@contentful/field-editor-rich-text@3.26.3) (2024-08-19)
11+
12+
**Note:** Version bump only for package @contentful/field-editor-rich-text
13+
14+
## [3.26.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.26.1...@contentful/field-editor-rich-text@3.26.2) (2024-08-13)
15+
16+
**Note:** Version bump only for package @contentful/field-editor-rich-text
17+
18+
## [3.26.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.26.0...@contentful/field-editor-rich-text@3.26.1) (2024-08-12)
19+
20+
### Bug Fixes
21+
22+
- **rich-text:** changing scroll position with \r [TOL-2365] ([#1719](https://github.com/contentful/field-editors/issues/1719)) ([4dc22e4](https://github.com/contentful/field-editors/commit/4dc22e4423f908fcc3242eed13fac59ba1f47fc9))
23+
24+
# [3.26.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.25.3...@contentful/field-editor-rich-text@3.26.0) (2024-08-08)
25+
26+
### Features
27+
28+
- wrapping connected rte instead of root one with entity provider [] ([#1718](https://github.com/contentful/field-editors/issues/1718)) ([8172ebc](https://github.com/contentful/field-editors/commit/8172ebcfe30a491f32ffc47bb8e500496f90f485))
29+
30+
## [3.25.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.25.2...@contentful/field-editor-rich-text@3.25.3) (2024-08-06)
31+
32+
**Note:** Version bump only for package @contentful/field-editor-rich-text
33+
634
## [3.25.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.25.1...@contentful/field-editor-rich-text@3.25.2) (2024-07-25)
735

836
**Note:** Version bump only for package @contentful/field-editor-rich-text

packages/rich-text/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentful/field-editor-rich-text",
3-
"version": "3.25.2",
3+
"version": "3.26.4",
44
"source": "./src/index.tsx",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
@@ -44,7 +44,7 @@
4444
"@contentful/f36-icons": "^4.28.2",
4545
"@contentful/f36-tokens": "^4.0.5",
4646
"@contentful/f36-utils": "^4.24.3",
47-
"@contentful/field-editor-reference": "^5.30.1",
47+
"@contentful/field-editor-reference": "^5.30.5",
4848
"@contentful/field-editor-shared": "^1.6.0",
4949
"@contentful/rich-text-plain-text-renderer": "^16.0.4",
5050
"@contentful/rich-text-types": "16.7.0",

0 commit comments

Comments
 (0)