Releases: vivid-planet/comet
7.4.1
6.17.8
7.4.0
@comet/[email protected]
Minor Changes
-
22863c2: Add an
options
prop toSelectField
as an alternative tochildren
Note: the behavior of the
options
prop differs fromFinalFormSelect
and is only intended to work with static options.
Use the existingAsyncSelectField
for dynamic options.- Each option must have the
value
andlabel
properties. A custom structure is not supported. - There are no
getOptionLabel
andgetOptionValue
props. Thelabel
andvalue
properties are used directly. - The value stored in the form state is the
value
property, not the whole option object.
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 />;
- Each option must have the
-
cab7c42: Add support for downloading previously uploaded files to
FileUploadField
-
1ca46e8: Add support for
badgeContent
prop inMenuItemRouterLink
Example usage in
masterMenuData
:const masterMenuData = [ // ... { type: "route", primary: "Some Route", to: "/someRoute", badgeContent: 2, }, // ... ];
Example usage as element:
<MenuItemRouterLink primary="Some Route" to="/someRoute" badgeContent={2} />
-
1ca46e8: Extend
MenuItemAnchorLink
to define a correctly styledLinkExternal
icon if nosecondaryAction
is passed -
bef162a: Add possibility for uncontrolled (promise-based) behavior to
FeedbackButton
Previously the
FeedbackButton
was controlled by the propsloading
andhasErrors
. 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 byonClick
to evaluate the idle, loading and error state. -
3e013b0: Add the ability to disable individual
CheckboxListField
andRadioGroupField
optionsconst 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 renderPreviously,
FieldContainer
displayed vertically on desktop instead of horizontally due to the container width not being available during the first render (becauseref.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
andfalse
not being clearable
@comet/[email protected]
Minor Changes
-
aad4eef: Use a
Chip
in combination with aMenu
for the page visibility selectionThis 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 inMenuItemRouterLink
Example usage in
masterMenuData
:const masterMenuData = [ // ... { type: "route", primary: "Some Route", to: "/someRoute", badgeContent: 2, }, // ... ];
Example usage as element:
<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
@comet/[email protected]
Minor Changes
-
f1d9e44: Support filtering for document types in the
paginatedPageTreeNodes
queryExample
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:FileUploadsModule.register({ /* ... */, download: { secret: "your secret", }, })
@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 toVideoPreviewImage
to enable setting a custom play icon
@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.
@comet/[email protected]
Patch Changes
-
a101ed6: inject-site-configs: Add sane defaults for preloginEnabled
When
preloginEnabled
isundefined
ornull
set it totrue
on environments !=prod
orlocal
.
6.17.7
@comet/[email protected]
Patch Changes
- 2208b26: Fix optional
PageTreeReadApi
inBlocksTransformerMiddlewareFactory
5.9.1
@comet/[email protected]
Patch Changes
- bfd083f: Fix optional
PageTreeReadApi
inBlocksTransformerMiddlewareFactory
6.17.6
@comet/[email protected]
Patch Changes
- f4adb95: Fix validation for
NumberField
andFinalFormNumberInput
by calling theonBlur
event, passed in by theField
5.9.0
@comet/[email protected]
Minor Changes
- a9d867a: Allow overriding the block context in
BlocksTransformerService#transformToPlain
7.3.2
@comet/[email protected]
Patch Changes
-
2286234: Update required validator in
Field
to correctly handle falsey valuesPreviously, the validator incorrectly returned errors for all falsey values, e.g. the number
0
.
Now, it only returns an error forundefined
,null
,false
and empty strings.
6.17.5
@comet/[email protected]
Patch Changes
-
9f649e0: Update required validator in
Field
to correctly handle falsey valuesPreviously, the validator incorrectly returned errors for all falsey values, e.g. the number
0
.
Now, it only returns an error forundefined
,null
,false
and empty strings.
7.3.1
@comet/[email protected]
Patch Changes
- 91bfda9: Fix validation for
NumberField
andFinalFormNumberInput
by calling theonBlur
event, passed in by theField