Skip to content

Releases: vivid-planet/comet

5.9.2

21 Oct 10:47
72cf8fd
Compare
Choose a tag to compare

@comet/cms-api@5.9.2

Patch Changes

  • b6048d7: API CrudSingleGenerator: Run transformToBlockData() for block fields on create

7.5.0

02 Oct 10:53
64049c1
Compare
Choose a tag to compare

@comet/admin@7.5.0

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

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

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

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

    query Product($id: ID!) {
        product(id: $id) {
            id
            updatedAt
            priceList {
                id
                imageUrl(resizeWidth: 640)
            }
        }
    }

@comet/cms-api@7.5.0

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

    query Product($id: ID!) {
        product(id: $id) {
            id
            updatedAt
            priceList {
                id
                imageUrl(resizeWidth: 640)
            }
        }
    }

@comet/cli@7.5.0

Patch Changes

  • bc0570f: Fix setting prelogin domain for deployment with site-configs

6.17.9

24 Sep 09:15
bc124d2
Compare
Choose a tag to compare

@comet/cms-admin@6.17.9

Patch Changes

  • bb4aa32: Support numbers as content scope values in User Permissions administration panel

7.4.2

20 Sep 08:25
83c9059
Compare
Choose a tag to compare

@comet/cms-site@7.4.2

Patch Changes

  • d95b0cb: Fix Next peer dependency

    The peer dependency was incorrectly set to 14.
    We require 14.2.0 or later due to relying on optimizePackageImports.

7.4.1

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

@comet/cms-admin@7.4.1

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

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

6.17.7

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

@comet/cms-api@6.17.7

Patch Changes

  • 2208b26: Fix optional PageTreeReadApi in BlocksTransformerMiddlewareFactory

5.9.1

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

@comet/cms-api@5.9.1

Patch Changes

  • bfd083f: Fix optional PageTreeReadApi in BlocksTransformerMiddlewareFactory

6.17.6

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

@comet/admin@6.17.6

Patch Changes

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