Skip to content

Commit

Permalink
Version Packages (#2369)
Browse files Browse the repository at this point in the history
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @comet/[email protected]

### Minor Changes

- 04844d3: Adjust the alignment and spacing of the label, the input,
and child fields inside `FieldContainer` and `Field`

- c0488eb: Use `FeedbackButton` in `DeleteDialog` of `CrudContextMenu`

This provides the user with feedback about the current status of the
delete action.

- c1ab2b3: Add `CheckboxListField` component to make it easier to
create checkbox lists in forms

    You can now do:

    ```tsx
    <CheckboxListField
        label="Checkbox List"
        name="checkboxList"
        fullWidth
        options={[
            {
                label: "Option One",
                value: "option-one",
            },
            {
                label: "Option Two",
                value: "option-two",
            },
        ]}
    />
    ```

    instead of:

    ```tsx
    <FieldContainer label="Checkbox List" fullWidth>
<CheckboxField name="checkboxList" label="Checkbox one"
value="checkbox-one" />
<CheckboxField name="checkboxList" label="Checkbox two"
value="checkbox-two" />
    </FieldContainer>
    ```

- 99a1f0a: Add `RadioGroupField` component to make it easier to create
radio group fields in forms

    You can now do:

    ```tsx
    <RadioGroupField
        label="Radio"
        name="radio"
        fullWidth
        options={[
            {
                label: "Option One",
                value: "option-one",
            },
            {
                label: "Option Two",
                value: "option-two",
            },
        ]}
    />
    ```

    instead of:

    ```tsx
    <FieldContainer label="Radio" fullWidth>
        <Field name="radio" type="radio" value="option-one">
{(props) => <FormControlLabel label="Option One"
control={<FinalFormRadio {...props} />} />}
        </Field>
        <Field name="radio" type="radio" value="option-two">
{(props) => <FormControlLabel label="Option Two"
control={<FinalFormRadio {...props} />} />}
        </Field>
    </FieldContainer>
    ```

- edf14d0: Add the `disableSlider` prop to `FinalFormRangeInput` to
disable the slider and only show the input fields

    ```tsx
<Field name="numberRange" label="Range Input"
component={FinalFormRangeInput} min={0} max={100} disableSlider />
    ```

- c050f22: Make the separator of `FinalFormRangeInput` overridable
using the `separator` prop and change the default to the string "to"

    Example to restore the previous separator:

    ```tsx
<Field name="numberRange" label="Range Input"
component={FinalFormRangeInput} min={0} max={100} separator="-" />
    ```

### Patch Changes

- dfc4a7f: Adjust the spacing of `FinalFormRangeInput` to align with
other inputs

- 39ab156: Fix the behavior of `FinalFormRangeInput` when the `min`
and `max` values are inverted

Previously, e.g., when the `min` value was changed to something greater
than the `max` value, the `min` value would be set to the same as the
max value.
    Now, the `min` and `max` values are swapped.

- 2b68513: Fix the alignment of the input inside `FieldContainer` and
`Field` when there is no label with `variant="horizontal"`

- 374f383: Increase `Toolbar` padding left and right from 10px to 20px

-   Updated dependencies [3adf5fe]

-   Updated dependencies [04844d3]

-   Updated dependencies [c90ae39]

-   Updated dependencies [b1bbd6a]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Minor Changes

-   b1bbd6a: Export a type for all icon names: `IconName`

## @comet/[email protected]

### Minor Changes

- 04844d3: Adjust the alignment and spacing of the label, the input,
and child fields inside `FieldContainer` and `Field`

### Patch Changes

-   3adf5fe: Remove unnecessary padding of DataGrid rows
- c90ae39: Fix spacing between page number and chevron icon in the
pagination select of `DataGrid`
-   Updated dependencies [b1bbd6a]
    -   @comet/[email protected]

## @comet/[email protected]

### Minor Changes

-   1fe10e8: Add `maxVisibleBlocks` option to `createBlocksBlock`
-   e53f4ce: OneOfBlock: Remove label for the type field

The label was unnecessary and occasionally caused UI problems when
having two labels next each other.

### Patch Changes

- 2253a1d: createListBlock: Don't show the minimum visible blocks
tooltip when the option isn't used
- 6be41b6: Fix color for visible icon button in `ListBlock` and
`ColumnsBlock`
-   Updated dependencies [04844d3]
-   Updated dependencies [dfc4a7f]
-   Updated dependencies [b1bbd6a]
-   Updated dependencies [c0488eb]
-   Updated dependencies [39ab156]
-   Updated dependencies [c1ab2b3]
-   Updated dependencies [99a1f0a]
-   Updated dependencies [edf14d0]
-   Updated dependencies [2b68513]
-   Updated dependencies [374f383]
-   Updated dependencies [c050f22]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Minor Changes

- 7410aae: Add new `FileUploadField` component for uploading files in
forms using the `FileUploadsModule`

-   945ba87: Add `icon` prop to `DashboardWidgetRoot`

-   9a80984: Rework `EditImageDialog`

    Changes

    -   Increase image size
    -   Add hover effects for focal points
    -   Add "Open in DAM" button

Note: This feature only works if the `DependenciesConfig` is configured
for `DamFile`:

        ```diff
        // App.tsx

        <DependenciesConfigProvider
            entityDependencyMap={{
        +       DamFile: createDamFileDependency(),
                // ...
            }}
        >
        ```

- 91b154b: Make the details and creator/author fields optional when
using the DAM license feature

### Patch Changes

- 7dabe8d: Fix the content scope indicator on the `EditFile` page if
DAM scoping is disabled

- 452a12a: Change text color of `FilePreview` action buttons to white

Previously, the text was invisible because it was black on a black
background.

-   bbb7536: Fix false positives in `resolveHasSaveConflict` check

    The check occasionally failed due to rounding errors.
    This is fixed by rounding to full seconds before checking.

-   Updated dependencies [3adf5fe]

-   Updated dependencies [04844d3]

-   Updated dependencies [2253a1d]

-   Updated dependencies [dfc4a7f]

-   Updated dependencies [1fe10e8]

-   Updated dependencies [c90ae39]

-   Updated dependencies [b1bbd6a]

-   Updated dependencies [c0488eb]

-   Updated dependencies [e53f4ce]

-   Updated dependencies [39ab156]

-   Updated dependencies [c1ab2b3]

-   Updated dependencies [99a1f0a]

-   Updated dependencies [edf14d0]

-   Updated dependencies [2b68513]

-   Updated dependencies [6be41b6]

-   Updated dependencies [374f383]

-   Updated dependencies [c050f22]
    -   @comet/[email protected]
    -   @comet/[email protected]
    -   @comet/[email protected]
    -   @comet/[email protected]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Minor Changes

-   19d53c4: Add Sentry module to simplify integration with Sentry.

    ### Usage:

    ```ts
    // main.ts

    app.use(Sentry.Handlers.requestHandler());
    app.use(Sentry.Handlers.tracingHandler());
    app.use(Sentry.Handlers.errorHandler());
    ```

    ```ts
    // app.module.ts

    SentryModule.forRootAsync({
        dsn: "sentry_dsn_url",
        environment: "dev",
        shouldReportException: (exception) => {
// Custom logic to determine if the exception should be reported
            return true;
        },
    }),
    ```

### Patch Changes

- 87f74d3: Sort the keys in content scopes returned by
`UserPermissionsService` alphabetically

This fixes issues when comparing content scopes after converting them to
strings via `JSON.stringify()`.

    This specifically fixes a bug on the UserPermissionsPage:
When the `availableContentScopes` passed to the `UserPermissionsModule`
weren't sorted alphabetically, the allowed scopes wouldn't be displayed
correctly in the UI.

    -   @comet/[email protected]

## @comet/[email protected]

### Minor Changes

-   7ad7a50: PixelImageBlock: Set `object-fit` to `cover` per default

When setting `object-fit` to `cover`, the image will fill the container
and maintain its aspect ratio.
    This is the most common use case for images in our applications.
The default behavior for `object-fit` (which is `fill`) resulted in
distorted images.

This behavior can be overridden by setting the `style` prop on the
`PixelImageBlock` component, which is forwarded to the `next/image`
component:

    ```diff
    <PixelImageBlock
      ...
      fill
    + style={{ objectFit: "contain" }}
    />
    ```

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [04844d3]
-   Updated dependencies [dfc4a7f]
-   Updated dependencies [b1bbd6a]
-   Updated dependencies [c0488eb]
-   Updated dependencies [39ab156]
-   Updated dependencies [c1ab2b3]
-   Updated dependencies [99a1f0a]
-   Updated dependencies [edf14d0]
-   Updated dependencies [2b68513]
-   Updated dependencies [374f383]
-   Updated dependencies [c050f22]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [04844d3]
-   Updated dependencies [dfc4a7f]
-   Updated dependencies [b1bbd6a]
-   Updated dependencies [c0488eb]
-   Updated dependencies [39ab156]
-   Updated dependencies [c1ab2b3]
-   Updated dependencies [99a1f0a]
-   Updated dependencies [edf14d0]
-   Updated dependencies [2b68513]
-   Updated dependencies [374f383]
-   Updated dependencies [c050f22]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [04844d3]
-   Updated dependencies [dfc4a7f]
-   Updated dependencies [b1bbd6a]
-   Updated dependencies [c0488eb]
-   Updated dependencies [39ab156]
-   Updated dependencies [c1ab2b3]
-   Updated dependencies [99a1f0a]
-   Updated dependencies [edf14d0]
-   Updated dependencies [2b68513]
-   Updated dependencies [374f383]
-   Updated dependencies [c050f22]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   Updated dependencies [04844d3]
-   Updated dependencies [dfc4a7f]
-   Updated dependencies [b1bbd6a]
-   Updated dependencies [c0488eb]
-   Updated dependencies [39ab156]
-   Updated dependencies [c1ab2b3]
-   Updated dependencies [99a1f0a]
-   Updated dependencies [edf14d0]
-   Updated dependencies [2b68513]
-   Updated dependencies [374f383]
-   Updated dependencies [c050f22]
    -   @comet/[email protected]
    -   @comet/[email protected]

## @comet/[email protected]

### Patch Changes

-   @comet/[email protected]

## @comet/[email protected]



## @comet/[email protected]



## @comet/[email protected]



## @comet/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Aug 20, 2024
1 parent 0850aac commit f3d9cec
Show file tree
Hide file tree
Showing 60 changed files with 471 additions and 389 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-eels-kneel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chatty-sloths-laugh.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/clean-doors-shave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cold-bags-walk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cold-mangos-begin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-years-happen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/good-brooms-walk.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/good-cameras-bathe.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/happy-shrimps-sniff.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-bulldogs-collect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/long-dolls-shake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mean-insects-join.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/metal-donuts-suffer.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/modern-waves-leave.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/nervous-seahorses-tell.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/nine-baboons-watch.md

This file was deleted.

34 changes: 0 additions & 34 deletions .changeset/odd-trees-carry.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/pink-glasses-build.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pink-panther-purr.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/quick-oranges-punch.md

This file was deleted.

38 changes: 0 additions & 38 deletions .changeset/sharp-mails-film.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/smooth-numbers-design.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-vans-wave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thirty-melons-speak.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tricky-eels-rhyme.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/twenty-hounds-sleep.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/witty-moons-sit.md

This file was deleted.

2 changes: 2 additions & 0 deletions packages/admin/admin-babel-preset/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @comet/admin-babel-preset

## 7.1.0

## 7.0.0

## 7.0.0-beta.6
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/admin-babel-preset/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-babel-preset",
"version": "7.0.0",
"version": "7.1.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand Down
18 changes: 18 additions & 0 deletions packages/admin/admin-color-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @comet/admin-color-picker

## 7.1.0

### Patch Changes

- Updated dependencies [04844d39e]
- Updated dependencies [dfc4a7fff]
- Updated dependencies [b1bbd6a0c]
- Updated dependencies [c0488eb84]
- Updated dependencies [39ab15616]
- Updated dependencies [c1ab2b340]
- Updated dependencies [99a1f0ae6]
- Updated dependencies [edf14d066]
- Updated dependencies [2b68513be]
- Updated dependencies [374f383ba]
- Updated dependencies [c050f2242]
- @comet/admin@7.1.0
- @comet/admin-icons@7.1.0

## 7.0.0

### Major Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/admin/admin-color-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@comet/admin-color-picker",
"version": "7.0.0",
"version": "7.1.0",
"repository": {
"type": "git",
"url": "https://github.com/vivid-planet/comet",
Expand All @@ -26,8 +26,8 @@
"start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput"
},
"dependencies": {
"@comet/admin": "workspace:^7.0.0",
"@comet/admin-icons": "workspace:^7.0.0",
"@comet/admin": "workspace:^7.1.0",
"@comet/admin-icons": "workspace:^7.1.0",
"clsx": "^1.1.1",
"react-colorful": "^5.5.1",
"tinycolor2": "^1.4.1",
Expand All @@ -36,8 +36,8 @@
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.20.12",
"@comet/admin-babel-preset": "workspace:^7.0.0",
"@comet/eslint-config": "workspace:^7.0.0",
"@comet/admin-babel-preset": "workspace:^7.1.0",
"@comet/eslint-config": "workspace:^7.1.0",
"@mui/material": "^5.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
Expand Down
Loading

0 comments on commit f3d9cec

Please sign in to comment.