Skip to content

7.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Sep 10:31
· 440 commits to main since this release
d363918

@comet/admin@7.4.0

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.
    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:

    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 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

    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/cms-admin@7.4.0

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:

    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/cms-api@7.4.0

Minor Changes

  • f1d9e44: Support filtering for document types in the paginatedPageTreeNodes query

    Example

    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/cms-site@7.4.0

Minor Changes

@comet/blocks-admin@7.4.0

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/cli@7.4.0

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.