Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update comet to ^7.15.0 #235

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open

Update comet to ^7.15.0 #235

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@comet/admin (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/admin-babel-preset (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/admin-date-time (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/admin-icons (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/admin-rte (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/admin-theme (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/blocks-admin (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/blocks-api (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/cli (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/cms-admin (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/cms-api (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/cms-site (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence
@comet/eslint-config (source) ^7.10.0 -> ^7.15.0 age adoption passing confidence

Release Notes

vivid-planet/comet (@​comet/admin)

v7.15.0

Compare Source

Minor Changes
  • a189d4e: Support dynamic values for the label prop of SwitchField depending on its checked state

    <SwitchField name="switch" label={(checked) => (checked ? "On" : "Off")} />
  • 7d8c36e: Add the DataGridPanel component to replace MUIs default Panel used by DataGrid to match the Comet DXP design

    It is recommended to add this component to your theme's defaultProps of MuiDataGrid.

    Example theme configuration for admin/src/theme.ts:

    import { DataGridPanel } from "@&#8203;comet/admin";
    import { createCometTheme } from "@&#8203;comet/admin-theme";
    import type {} from "@&#8203;mui/x-data-grid/themeAugmentation";
    
    export const theme = createCometTheme({
        components: {
            MuiDataGrid: {
                defaultProps: {
                    components: {
                        Panel: DataGridPanel,
                    },
                },
            },
        },
    });
  • a189d4e: Allow passing a ReactNode to fieldLabel of CheckboxField and SwitchField

    This enables using FormattedMessage for the label.

    <CheckboxField name="visible" fieldLabel={<FormattedMessage id="exampleForm.visible" defaultMessage="Visible" />} />
    <SwitchField name="visible" fieldLabel={<FormattedMessage id="exampleForm.visible" defaultMessage="Visible" />} />
Patch Changes

v7.14.0

Compare Source

Minor Changes
  • 6b75f20: Deprecate density prop of DataGridToolbar

    The density setting of the surrounding Data Grid now controls the styling of the toolbar.

Patch Changes

v7.13.0

Compare Source

Minor Changes
  • bd562d3: Add disableForcePromptRoute option to StackSwitch

    This can be useful when a navigation in a switch shouldn't trigger a prompt, e.g., when navigating inside a block.

  • 5c06e4b: Reduce MainContent padding on mobile

  • b918c81: Add support for custom components to CrudMoreActionsMenu

    Example

    const CustomAction = () => (
        <CrudMoreActionsMenuItem
            onClick={() => {
                // Perform action
            }}
        >
            <ListItemIcon>
                <Favorite />
            </ListItemIcon>
            Custom Action
        </CrudMoreActionsMenuItem>
    );
    
    <CrudMoreActionsMenu overallActions={[<CustomAction key="custom-action" />]} />;

    Note: Use the CrudMoreActionsMenuItem component or CrudMoreActionsMenuContext to close the menu after clicking an item.

Patch Changes

v7.12.0

Compare Source

Minor Changes
  • af51bb4: Make the width of GridToolbarQuickFilter responsive when used inside DataGridToolbar

  • 92b3255: Hide group title in CrudMoreActionsMenu when only one group is present

  • e8003f9: Add a new FillSpace component to replace ToolbarFillSpace and AppHeaderFillSpace

    ToolbarFillSpace and AppHeaderFillSpace are now deprecated.

  • 4f6e6b0: Deprecate FinalFormRadio and FinalFormCheckbox

  • 5583c9c: Export renderFinalFormChildren helper

  • 7da81fa: Add a new Button component to replace ToolbarActionButton and MUI's Button

    Compared to MUI's Button component, the color prop has been removed, and the variant prop now defines those variants, defined by the Comet design guidelines, primary is the default variant.

    -import { Button } from "@&#8203;mui/material";
    +import { Button } from "@&#8203;comet/admin";
    
     export const AllButtonVariants = () => (
         <>
    -        <Button variant="contained" color="primary">Primary</Button>
    +        <Button>Primary</Button>
    -        <Button variant="contained" color="secondary">Secondary</Button>
    +        <Button variant="secondary">Secondary</Button>
    -        <Button variant="outlined">Outlined</Button>
    +        <Button variant="outlined">Outlined</Button>
    -        <Button variant="outlined" color="error">Destructive</Button>
    +        <Button variant="destructive">Destructive</Button>
    -        <Button variant="contained" color="success">Success</Button>
    +        <Button variant="success">Success</Button>
    -        <Button variant="text" sx={{ color: "white" }}>Text Light</Button>
    +        <Button variant="textLight">Text Light</Button>
    -        <Button variant="text" sx={{ color: "black" }}>Text Dark</Button>
    +        <Button variant="textDark">Text Dark</Button>
         </>
     );

    Responsive behavior

    ToolbarActionButton is now deprecated.
    Previously, ToolbarActionButton would hide its text content on mobile and add it with a tooltip instead.
    This behavior can now be achieved by setting the responsive prop on the Button component.

    -import { ToolbarActionButton } from "@&#8203;comet/admin/lib/common/toolbar/actions/ToolbarActionButton";
    +import { Button } from "@&#8203;comet/admin";
     import { Favorite } from "@&#8203;comet/admin-icons";
    
     const Example = () => {
    -    return <ToolbarActionButton startIcon={<Favorite />}>Hello</ToolbarActionButton>;
    +    return <Button responsive startIcon={<Favorite />}>Hello</Button>;
     };
Patch Changes

v7.11.0

Compare Source

Minor Changes
  • b8b8e27: Make GridFilterButton and GridColumnsButton responsive by moving their text to a tooltip on mobile

    • This also makes the button's styles consistent with the standard Button component
    • GridFilterButton now supports props to override the default button props
  • e9f547d: Adjust how tooltips are triggered

    This is to achieve a more consistent and user-friendly experience by ensuring tooltips are always shown when the user interacts with the underlying element.

    • When using the default hover trigger, tooltips will now be shown on both hover and focus. Previously, you had to choose between hover and focus.
    • The trigger prop is deprecated and will be removed in a future major version. The combined hover/focus trigger will be the only supported behavior.
    • Tooltips on touch devices will be shown immediately when the user starts interacting with the underlying element.
Patch Changes
  • 1e01cca: Prevent scrolling of DialogTitle and DialogActions in EditDialog

  • a30f0ee: Fix border-color of InputBase on default and hover state

  • 20f6341: Prevent the page content from overflowing the window, causing a horizontal scrollbar

    This happened when using elements like Tabs that are intended to be horizontally scrollable and could, therefore, be wider than the window.

  • 8114a6a: Fix onClick and other props not being passed to the icon version of some button components

  • Updated dependencies [9f2a127]

  • Updated dependencies [a30f0ee]

  • Updated dependencies [a4fcdeb]

  • Updated dependencies [5ba64aa]

vivid-planet/comet (@​comet/admin-babel-preset)

v7.15.0

Compare Source

v7.14.0

Compare Source

v7.13.0

Compare Source

v7.12.0

Compare Source

v7.11.0

Compare Source

vivid-planet/comet (@​comet/admin-date-time)

v7.15.0

Compare Source

Patch Changes

v7.14.0

Compare Source

Patch Changes

v7.13.0

Compare Source

Patch Changes

v7.12.0

Compare Source

Patch Changes

v7.11.0

Compare Source

Patch Changes
vivid-planet/comet (@​comet/admin-icons)

v7.15.0

Compare Source

v7.14.0

Compare Source

v7.13.0

Compare Source

v7.12.0

Compare Source

v7.11.0

Compare Source

vivid-planet/comet (@​comet/admin-rte)

v7.15.0

Compare Source

Patch Changes

v7.14.0

Compare Source

Minor Changes
  • bb041f7: Add content generation capabilities to createSeoBlock

    The SEO block (when created using the createSeoBlock factory) now supports automatic generation of:

    • HTML title
    • Meta description
    • Open Graph title
    • Open Graph description

    See the docs for instructions on enabling this feature.

  • 7f72e82: Add extractTextContents method to blocks

    extractTextContents can be used to extract plain text from blocks. This functionality is particularly useful for operations such as search indexing or using the content for LLM-based tasks. The option includeInvisibleContent can be set to include the content of invisible blocks in the extracted text.

    The method is optional for now, but it is recommended to implement it for all blocks and documents. The default behavior is to return

    • if the state is a string: the string itself
    • otherwise: an empty array
Patch Changes

v7.13.0

Compare Source

Patch Changes

v7.12.0

Compare Source

Patch Changes

v7.11.0

Compare Source

Patch Changes
vivid-planet/comet (@​comet/admin-theme)

v7.15.0

Compare Source

Minor Changes
  • 7d8c36e: Improve the styling of the filter and columns panels of DataGrid
Patch Changes

v7.14.0

Compare Source

Patch Changes

v7.13.0

Compare Source

Patch Changes

v7.12.0

Compare Source

Minor Changes
  • ee59753: Add styling of Card and CardHeader to align with Comet DXP design
Patch Changes
  • 47be4eb: Adapt styling of DialogActions, DialogContent, and DialogTitle to match the Comet DXP design
  • af51bb4: Prevent the input value of GridToolbarQuickFilter from being truncated too early

v7.11.0

Compare Source

Minor Changes
  • a4fcdeb: Enable vertical resizing for TextAreaField and other multiline inputs

  • 5ba64aa: Add support and styling for full screen dialogs using the fullScreen prop

    <Dialog open fullScreen>
        <DialogTitle>Dialog Title</DialogTitle>
        <DialogContent>Dialog content</DialogContent>
    </Dialog>
Patch Changes
  • 9f2a127: Fix an issue where setting defaultProps of MuiDataGrid would override the defaultProps defined by createCometTheme()
  • a30f0ee: Fix border-color of InputBase on default and hover state
vivid-planet/comet (@​comet/blocks-admin)

v7.15.0

Compare Source

Patch Changes

v7.14.0

Compare Source

Minor Changes
  • 948e07b: Add an override argument to all block factories to follow createCompositeBlock's pattern

  • bb041f7: Add content generation capabilities to createSeoBlock

    The SEO block (when created using the createSeoBlock factory) now supports automatic generation of:

    • HTML title
    • Meta description
    • Open Graph title
    • Open Graph description

    See the docs for instructions on enabling this feature.

  • 7f72e82: Add extractTextContents method to blocks

    extractTextContents can be used to extract plain text from blocks. This functionality is particularly useful for operations such as search indexing or using the content for LLM-based tasks. The option includeInvisibleContent can be set to include the content of invisible blocks in the extracted text.

    The method is optional for now, but it is recommended to implement it for all blocks and documents. The default behavior is to return

    • if the state is a string: the string itself
    • otherwise: an empty array
Patch Changes

v7.13.0

Compare Source

Patch Changes

v7.12.0

Compare Source

Minor Changes
  • 86479e7: Simplify setting field props when using createCompositeBlockTextField or createCompositeBlockSelectField

    The props can now be set directly without nesting them inside the fieldProps object.

     block: createCompositeBlockTextField({
    -    fieldProps: {
             label: "Title",
             fullWidth: true,
    -    },
     }),
  • af350d0: Add createCompositeBlockSwitchField helper function

    To simplify the creation of a switch field block by hiding the verbose definition of Form, Field and items.

  • 86479e7: Support disabled in select options when using createCompositeBlockSelectField

Patch Changes

v7.11.0

Compare Source

Patch Changes
vivid-planet/comet (@​comet/blocks-api)

v7.15.0

Compare Source

v7.14.0

Compare Source

Patch Changes
  • 7e7a4aa: Fix title field not added to types in createLinkBlock

v7.13.0

Compare Source

v7.12.0

Compare Source

v7.11.0

Compare Source

Patch Changes
  • 58a99bb: Fix input validation for missing child blocks
vivid-planet/comet (@​comet/cli)

v7.15.0

Compare Source

v7.14.0

Compare Source

v7.13.0

Compare Source

v7.12.0

Compare Source

Minor Changes
  • 753cd6f: Add option for base64 encoding in inject-site-configs command

v7.11.0

Compare Source

vivid-planet/comet (@​comet/cms-admin)

v7.15.0

Compare Source

Patch Changes

v7.14.0

Compare Source

Minor Changes
  • 97cd0a3: User Permissions: Use Data Grid instead of a checkbox list for displaying and selecting content scopes

  • bb041f7: Add content generation capabilities to createSeoBlock

    The SEO block (when created using the createSeoBlock factory) now supports automatic generation of:

    • HTML title
    • Meta description
    • Open Graph title
    • Open Graph description

    See the docs for instructions on enabling this feature.

  • 7f72e82: Add extractTextContents method to blocks

    extractTextContents can be used to extract plain text from blocks. This functionality is particularly useful for operations such as search indexing or using the content for LLM-based tasks. The option includeInvisibleContent can be set to include the content of invisible blocks in the extracted text.

    The method is optional for now, but it is recommended to implement it for all blocks and documents. The default behavior is to return

    • if the state is a string: the string itself
    • otherwise: an empty array
  • c71604e: Add an override argument to all block factories to follow createCompositeBlock's pattern

Patch Changes

v7.13.0

Compare Source

Patch Changes
  • f49370a: Improve SVG validation

    Following tags are banned in SVGs:

    • script
    • [new] foreignOb

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@auto-assign auto-assign bot requested a review from raphaelblum December 1, 2024 12:30
@renovate renovate bot force-pushed the renovate/comet branch 2 times, most recently from 1cf9083 to c05a0f8 Compare December 4, 2024 12:20
@renovate renovate bot changed the title Update comet to ^7.8.0 Update comet to ^7.9.0 Dec 4, 2024
@renovate renovate bot changed the title Update comet to ^7.9.0 Update comet to ^7.9.0 - abandoned Dec 8, 2024
Copy link
Contributor Author

renovate bot commented Dec 8, 2024

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

@renovate renovate bot changed the title Update comet to ^7.9.0 - abandoned Update comet to ^7.9.0 Dec 8, 2024
@renovate renovate bot force-pushed the renovate/comet branch 2 times, most recently from 9d54d96 to 8054650 Compare December 10, 2024 12:41
@renovate renovate bot changed the title Update comet to ^7.9.0 Update comet to ^7.10.0 Dec 10, 2024
@renovate renovate bot force-pushed the renovate/comet branch from 8054650 to 9758030 Compare January 9, 2025 07:44
@renovate renovate bot changed the title Update comet to ^7.10.0 Update comet to ^7.11.0 Jan 9, 2025
@renovate renovate bot changed the title Update comet to ^7.11.0 Update comet to ^7.12.0 Jan 21, 2025
@renovate renovate bot force-pushed the renovate/comet branch 2 times, most recently from 7b214eb to 0a2e931 Compare January 27, 2025 07:02
@renovate renovate bot changed the title Update comet to ^7.12.0 Update comet to ^7.13.0 Jan 29, 2025
@renovate renovate bot changed the title Update comet to ^7.13.0 Update comet to ^7.14.0 Feb 18, 2025
@renovate renovate bot changed the title Update comet to ^7.14.0 Update comet to ^7.15.0 Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants