Skip to content

Releases: vivid-planet/comet

7.4.1

19 Sep 09:03
9c5a4d2
Compare
Choose a tag to compare

@comet/[email protected]

Patch Changes

  • fa31e08: Display validation errors of file name field in DAM

6.17.8

19 Sep 14:46
9c5a4d2
Compare
Choose a tag to compare

@comet/[email protected]

Patch Changes

  • 1132fc6: Display validation errors of file name field in DAM

7.4.0

18 Sep 10:31
d363918
Compare
Choose a tag to compare

@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.
    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/[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:

    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 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/[email protected]

Minor Changes

@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 is undefined or null set it to true
    on environments != prod or local.

6.17.7

18 Sep 07:08
f1d9e44
Compare
Choose a tag to compare

@comet/[email protected]

Patch Changes

  • 2208b26: Fix optional PageTreeReadApi in BlocksTransformerMiddlewareFactory

5.9.1

18 Sep 07:07
f1d9e44
Compare
Choose a tag to compare

@comet/[email protected]

Patch Changes

  • bfd083f: Fix optional PageTreeReadApi in BlocksTransformerMiddlewareFactory

6.17.6

09 Sep 11:28
a101ed6
Compare
Choose a tag to compare

@comet/[email protected]

Patch Changes

  • f4adb95: Fix validation for NumberField and FinalFormNumberInput by calling the onBlur event, passed in by the Field

5.9.0

09 Sep 11:27
a101ed6
Compare
Choose a tag to compare

@comet/[email protected]

Minor Changes

  • a9d867a: Allow overriding the block context in BlocksTransformerService#transformToPlain

7.3.2

06 Sep 07:15
bc2d0be
Compare
Choose a tag to compare

@comet/[email protected]

Patch Changes

  • 2286234: Update required validator in Field to correctly handle falsey values

    Previously, the validator incorrectly returned errors for all falsey values, e.g. the number 0.
    Now, it only returns an error for undefined, null, false and empty strings.

6.17.5

06 Sep 09:02
3e013b0
Compare
Choose a tag to compare

@comet/[email protected]

Patch Changes

  • 9f649e0: Update required validator in Field to correctly handle falsey values

    Previously, the validator incorrectly returned errors for all falsey values, e.g. the number 0.
    Now, it only returns an error for undefined, null, false and empty strings.

7.3.1

05 Sep 14:42
3129c0b
Compare
Choose a tag to compare

@comet/[email protected]

Patch Changes

  • 91bfda9: Fix validation for NumberField and FinalFormNumberInput by calling the onBlur event, passed in by the Field