Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @comet/[email protected] ### Minor Changes - bb7c2de: Adapt the `DeleteDialog` in `CrudContextMenu` to match the updated Comet CI - c59a600: Add a `CrudMoreActionsMenu` component The component can be used to create a "More actions" menu for a list of items. It is typically used in a toolbar above a Data Grid. **Example** ```tsx <CrudMoreActionsMenu selectionSize={selectionSize} overallActions={[ { label: "Export to excel", onClick: handleExportToExcelClick, }, ]} selectiveActions={[ { label: "move", onClick: handleMoveClick, icon: <Move />, divider: true, }, { label: "download", onClick: handleDownloadClick, icon: <Download />, }, ]} /> ``` - 4cea3e3: Make it easier to render DataGrid cell content based on the cell's `valueOptions` Objects inside a cell's `valueOptions` now support an optional `cellContent` property to allow defining a React node in addition to the `label`, which can only be a string. When using the new `renderStaticSelectCell` helper as the `renderCell` function in the column definition, the helper will render the `cellContent` node of the selected option if defined. The `label` or the string value of the option will be used as the cell's content if no `cellContent` node is provided. The following example would behave as follows: - If the cell's value is "Shirt", it will render the `cellContent` node (the H2 Typography) - If the cell's value is "Cap", it will render the `label` (the string "This Cap") - If the cell's value is anything else, it will render the value as a string, e.g. "Tie" ```tsx { headerName: "Category", field: "category", valueOptions: [ { value: "Shirt", label: "Shirt" cellContent: ( <Typography variant="h2"> A Shirt </Typography> ), }, { value: "Cap", label: "This Cap", }, "Tie", ], renderCell: renderStaticSelectCell, } ``` - 216d93a: File Uploads: Add image endpoint Add support for viewing images in the browser. This can be useful for file upload previews, profile pictures etc. The image URL can be obtained by querying the `imageUrl` field of the `FileUpload` type. A `resizeWidth` argument needs to be provided. **Example** ```graphql query Product($id: ID!) { product(id: $id) { id updatedAt priceList { id imageUrl(resizeWidth: 640) } } } ``` ### Patch Changes - 9a6a64e: Fix a bug where the initial values of `RadioGroupField` and `CheckboxListField` would not be shown in the input - b583820: Fix an issue where the clear button of `SelectField` would be shown, even if the value is `undefined` - c8f37fb: Allow setting all props of `FinalFormSelect` via `componentsProps` in `SelectField` - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Minor Changes - 5a48ae4: Add file size to `DamFileDownloadLinkBlock` - 2639fe5: Add "License" column to DAM Data Grid It is only shown if the license feature is enabled by setting `enableLicenseFeature` in `DamConfigProvider` to `true`. - 216d93a: File Uploads: Add image endpoint Add support for viewing images in the browser. This can be useful for file upload previews, profile pictures etc. The image URL can be obtained by querying the `imageUrl` field of the `FileUpload` type. A `resizeWidth` argument needs to be provided. **Example** ```graphql query Product($id: ID!) { product(id: $id) { id updatedAt priceList { id imageUrl(resizeWidth: 640) } } } ``` ### Patch Changes - bc124d2: Support numbers as content scope values in User Permissions administration panel - Updated dependencies [bb7c2de] - Updated dependencies [9a6a64e] - Updated dependencies [c59a600] - Updated dependencies [b583820] - Updated dependencies [c8f37fb] - Updated dependencies [4cea3e3] - Updated dependencies [216d93a] - @comet/[email protected] - @comet/[email protected] - @comet/[email protected] - @comet/[email protected] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Minor Changes - f2da11d: API Generator: Add support for position field Add a field named `position` to enable this feature. This field will hold and update the position. This should be an integer number field >= 1. It's also possible to define fields (in CrudGenerator-Decorator) to group position by. - 5a48ae4: Add file size to `DamFileDownloadLinkBlock` - 216d93a: File Uploads: Add image endpoint Add support for viewing images in the browser. This can be useful for file upload previews, profile pictures etc. The image URL can be obtained by querying the `imageUrl` field of the `FileUpload` type. A `resizeWidth` argument needs to be provided. **Example** ```graphql query Product($id: ID!) { product(id: $id) { id updatedAt priceList { id imageUrl(resizeWidth: 640) } } } ``` ### Patch Changes - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - Updated dependencies [bb7c2de] - Updated dependencies [9a6a64e] - Updated dependencies [c59a600] - Updated dependencies [b583820] - Updated dependencies [c8f37fb] - Updated dependencies [4cea3e3] - Updated dependencies [216d93a] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - Updated dependencies [bb7c2de] - Updated dependencies [9a6a64e] - Updated dependencies [c59a600] - Updated dependencies [b583820] - Updated dependencies [c8f37fb] - Updated dependencies [4cea3e3] - Updated dependencies [216d93a] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - Updated dependencies [bb7c2de] - Updated dependencies [9a6a64e] - Updated dependencies [c59a600] - Updated dependencies [b583820] - Updated dependencies [c8f37fb] - Updated dependencies [4cea3e3] - Updated dependencies [216d93a] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - Updated dependencies [bb7c2de] - Updated dependencies [9a6a64e] - Updated dependencies [c59a600] - Updated dependencies [b583820] - Updated dependencies [c8f37fb] - Updated dependencies [4cea3e3] - Updated dependencies [216d93a] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - Updated dependencies [bb7c2de] - Updated dependencies [9a6a64e] - Updated dependencies [c59a600] - Updated dependencies [b583820] - Updated dependencies [c8f37fb] - Updated dependencies [4cea3e3] - Updated dependencies [216d93a] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - bc0570f: Fix setting prelogin domain for deployment with site-configs ## @comet/[email protected] ### Patch Changes - @comet/[email protected] ## @comet/[email protected] ## @comet/[email protected] ## @comet/[email protected] ## @comet/[email protected] ## @comet/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information