Skip to content

Commit

Permalink
Fix dataviews commonjs export (#67962)
Browse files Browse the repository at this point in the history
Co-authored-by: manzoorwanijk <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: anomiex <[email protected]>
  • Loading branch information
4 people authored Dec 13, 2024
1 parent 662455d commit 673f80d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
18 changes: 11 additions & 7 deletions packages/dataviews/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@

## Unreleased

### Bug Fixes

- Fixed commonjs export ([#67962](https://github.com/WordPress/gutenberg/pull/67962))

## 4.10.0 (2024-12-11)

## Breaking Changes

- Support showing or hiding title, media and description fields ([#67477](https://github.com/WordPress/gutenberg/pull/67477)).
- Unify the `title`, `media` and `description` fields for the different layouts. So instead of the previous `view.layout.mediaField`, `view.layout.primaryField` and `view.layout.columnFields`, all the layouts now support these three fields with the following config ([#67477](https://github.com/WordPress/gutenberg/pull/67477)):
- Unify the `title`, `media` and `description` fields for the different layouts. So instead of the previous `view.layout.mediaField`, `view.layout.primaryField` and `view.layout.columnFields`, all the layouts now support these three fields with the following config ([#67477](https://github.com/WordPress/gutenberg/pull/67477)):

```js
const view = {
type: 'table',
titleField: 'title',
mediaField: 'media',
descriptionField: 'description',
fields: [ 'author', 'date' ],
}
type: 'table',
titleField: 'title',
mediaField: 'media',
descriptionField: 'description',
fields: [ 'author', 'date' ],
};
```

## Internal
Expand Down
3 changes: 2 additions & 1 deletion packages/dataviews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"exports": {
".": {
"types": "./build-types/index.d.ts",
"import": "./build-module/index.js"
"import": "./build-module/index.js",
"default": "./build/index.js"
},
"./wp": {
"types": "./build-types/index.d.ts",
Expand Down

0 comments on commit 673f80d

Please sign in to comment.