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 - 22863c2: Add an `options` prop to `SelectField` as an alternative to `children` Note: the behavior of the `options` prop differs from `FinalFormSelect` and is only intended to work with static options. Use the existing `AsyncSelectField` for dynamic options. - Each option must have the `value` and `label` properties. A custom structure is not supported. - There are no `getOptionLabel` and `getOptionValue` props. The `label` and `value` properties are used directly. - The value stored in the form state is the `value` property, not the whole option object. ```tsx const options: SelectFieldOption[] = [ { value: "chocolate", label: "Chocolate" }, { value: "strawberry", label: "Strawberry" }, { value: "raspberry", label: "Raspberry", disabled: true }, ]; // ... <SelectField name="flavor" label="Select a flavor" options={options} fullWidth />; ``` - cab7c42: Add support for downloading previously uploaded files to `FileUploadField` - 1ca46e8: Add support for `badgeContent` prop in `MenuItemRouterLink` **Example usage in `masterMenuData`:** ```ts const masterMenuData = [ // ... { type: "route", primary: "Some Route", to: "/someRoute", badgeContent: 2, }, // ... ]; ``` **Example usage as element:** ```tsx <MenuItemRouterLink primary="Some Route" to="/someRoute" badgeContent={2} /> ``` - 1ca46e8: Extend `MenuItemAnchorLink` to define a correctly styled `LinkExternal` icon if no `secondaryAction` is passed - bef162a: Add possibility for uncontrolled (promise-based) behavior to `FeedbackButton` Previously the `FeedbackButton` was controlled by the props `loading` and `hasErrors`. To enable more use cases and easier usage, a promise-based way was added. If neither of the mentioned props are passed, the component uses the promise returned by `onClick` to evaluate the idle, loading and error state. - 3e013b0: Add the ability to disable individual `CheckboxListField` and `RadioGroupField` options ```tsx const options = [ { label: "Selectable", value: "selectable", }, { label: "Disabled", value: "disabled", disabled: true, }, ]; const FormFields = () => ( <> <CheckboxListField label="Checkbox List" name="checkboxList" options={options} /> <RadioGroupField label="Radio Group" name="radioGroup" fullWdth options={options} /> </> ); ``` ### Patch Changes - 48d1403: Fix `FieldContainer` layout on first render Previously, `FieldContainer` displayed vertically on desktop instead of horizontally due to the container width not being available during the first render (because `ref.current` was null). The layout corrected itself after interacting with the field, triggering a rerender. Now, the rerender is triggered automatically when `ref.current` is set resulting in the correct layout from the start. - bc1ed88: FinalFormSelect: Fix value `0` and `false` not being clearable - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Minor Changes - aad4eef: Use a `Chip` in combination with a `Menu` for the page visibility selection This replaces a `Button` which was used previously as trigger for the menu. - 44f1c59: Add dialog to confirm manually starting a cron job - cab7c42: Add support for downloading previously uploaded files to `FileUploadField` - 1ca46e8: Add support for `badgeContent` prop in `MenuItemRouterLink` **Example usage in `masterMenuData`:** ```ts const masterMenuData = [ // ... { type: "route", primary: "Some Route", to: "/someRoute", badgeContent: 2, }, // ... ]; ``` **Example usage as element:** ```tsx <MenuItemRouterLink primary="Some Route" to="/someRoute" badgeContent={2} /> ``` - bfb8f04: Add `VimeoVideoBlock` to support Vimeo videos - 5fc1fc3: Add info alert for dependents and duplicates in DAM ### Patch Changes - Updated dependencies [22863c2] - Updated dependencies [cab7c42] - Updated dependencies [48d1403] - Updated dependencies [1ca46e8] - Updated dependencies [1ca46e8] - Updated dependencies [bef162a] - Updated dependencies [bc1ed88] - Updated dependencies [46f9322] - Updated dependencies [3e013b0] - @comet/[email protected] - @comet/[email protected] - @comet/[email protected] - @comet/[email protected] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Minor Changes - f1d9e44: Support filtering for document types in the `paginatedPageTreeNodes` query **Example** ```graphql query PredefinedPages($scope: PageTreeNodeScopeInput!) { paginatedPageTreeNodes(scope: $scope, documentType: "PredefinedPage") { nodes { id } } } ``` - cab7c42: Add support for downloading previously uploaded files to `FileUploadField` - bfb8f04: Add `VimeoVideoBlock` to support Vimeo videos - a970190: File Uploads: Add download endpoint The endpoint can be enabled by providing the `download` option in the module config: ```ts FileUploadsModule.register({ /* ... */, download: { secret: "your secret", }, }) ``` ### Patch Changes - @comet/[email protected] ## @comet/[email protected] ### Minor Changes - bfb8f04: Add `VimeoVideoBlock` to support Vimeo videos - b132010: Add helper functions and components to prevent loading third-party cookies until explicit user consent See the docs for information on usage and configuration: <https://docs.comet-dxp.com/docs/working-with-cookies/> - 53d896b: Add optional `icon` prop to `VideoPreviewImage` to enable setting a custom play icon ## @comet/[email protected] ### Patch Changes - Updated dependencies [22863c2] - Updated dependencies [cab7c42] - Updated dependencies [48d1403] - Updated dependencies [1ca46e8] - Updated dependencies [1ca46e8] - Updated dependencies [bef162a] - Updated dependencies [bc1ed88] - Updated dependencies [3e013b0] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - Updated dependencies [22863c2] - Updated dependencies [cab7c42] - Updated dependencies [48d1403] - Updated dependencies [1ca46e8] - Updated dependencies [1ca46e8] - Updated dependencies [bef162a] - Updated dependencies [bc1ed88] - Updated dependencies [3e013b0] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - Updated dependencies [22863c2] - Updated dependencies [cab7c42] - Updated dependencies [48d1403] - Updated dependencies [1ca46e8] - Updated dependencies [1ca46e8] - Updated dependencies [bef162a] - Updated dependencies [bc1ed88] - Updated dependencies [3e013b0] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - Updated dependencies [22863c2] - Updated dependencies [cab7c42] - Updated dependencies [48d1403] - Updated dependencies [1ca46e8] - Updated dependencies [1ca46e8] - Updated dependencies [bef162a] - Updated dependencies [bc1ed88] - Updated dependencies [3e013b0] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - 46f9322: Fix the top position of the rich text editor toolbar Previously, the rich text editor's toolbar would be moved too far down when used inside `AdminComponentRoot`, but not as a direct child. - Updated dependencies [22863c2] - Updated dependencies [cab7c42] - Updated dependencies [48d1403] - Updated dependencies [1ca46e8] - Updated dependencies [1ca46e8] - Updated dependencies [bef162a] - Updated dependencies [bc1ed88] - Updated dependencies [3e013b0] - @comet/[email protected] - @comet/[email protected] ## @comet/[email protected] ### Patch Changes - a101ed6: inject-site-configs: Add sane defaults for preloginEnabled When `preloginEnabled` is `undefined` or `null` set it to `true` on environments != `prod` or `local`. ## @comet/[email protected] ### Patch Changes - @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