Skip to content

Releases: vivid-planet/comet

5.9.0

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

@comet/cms-api@5.9.0

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/admin@7.3.2

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/admin@6.17.5

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/admin@7.3.1

Patch Changes

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

7.3.0

04 Sep 10:50
0ffec5a
Compare
Choose a tag to compare

@comet/admin-icons@7.3.0

Minor Changes

Patch Changes

  • a1f4c0d: Replace YouTube and Vimeo icon with correctly colored versions

@comet/admin@7.3.0

Patch Changes

  • 6a1310c: Deprecate FinalForm components where a Field component exists as a simpler alternative

    • Use <AutocompleteField /> instead of <Field component={FinalFormAutocomplete} />
    • Use <CheckboxField /> instead of <Field /> with <FormControlLabel /> and <FinalFormCheckbox />
    • Use <AsyncAutocompleteField /> instead of <Field component={FinalFormAsyncAutocomplete} />
    • Use <AsyncSelectField /> instead of <Field component={FinalFormAsyncSelect} />
    • Use <NumberField /> instead of <Field component={FinalFormNumberInput} />
    • Use <SearchField /> instead of <Field component={FinalFormSearchTextField} />
    • Use <SelectField /> instead of <Field /> with <FinalFormSelect />
    • Use <SwitchField /> instead of <Field /> with <FormControlLabel /> and <FinalFormSwitch />
    • Use <DateField /> instead of <Field component={FinalFormDatePicker} />
    • Use <DateRangeField /> instead of <Field component={FinalFormDateRangePicker} />
    • Use <DateTimeField /> instead of <Field component={FinalFormDateTimePicker} />
    • Use <TimeField /> instead of <Field component={FinalFormTimePicker} />
    • Use <TimeRangeField /> instead of <Field component={FinalFormTimeRangePicker} />
    • Use <ColorField /> instead of <Field component={FinalFormColorPicker} />

@comet/admin-color-picker@7.3.0

Patch Changes

  • 6a1310c: Deprecate FinalForm components where a Field component exists as a simpler alternative

    • Use <AutocompleteField /> instead of <Field component={FinalFormAutocomplete} />
    • Use <CheckboxField /> instead of <Field /> with <FormControlLabel /> and <FinalFormCheckbox />
    • Use <AsyncAutocompleteField /> instead of <Field component={FinalFormAsyncAutocomplete} />
    • Use <AsyncSelectField /> instead of <Field component={FinalFormAsyncSelect} />
    • Use <NumberField /> instead of <Field component={FinalFormNumberInput} />
    • Use <SearchField /> instead of <Field component={FinalFormSearchTextField} />
    • Use <SelectField /> instead of <Field /> with <FinalFormSelect />
    • Use <SwitchField /> instead of <Field /> with <FormControlLabel /> and <FinalFormSwitch />
    • Use <DateField /> instead of <Field component={FinalFormDatePicker} />
    • Use <DateRangeField /> instead of <Field component={FinalFormDateRangePicker} />
    • Use <DateTimeField /> instead of <Field component={FinalFormDateTimePicker} />
    • Use <TimeField /> instead of <Field component={FinalFormTimePicker} />
    • Use <TimeRangeField /> instead of <Field component={FinalFormTimeRangePicker} />
    • Use <ColorField /> instead of <Field component={FinalFormColorPicker} />

@comet/admin-date-time@7.3.0

Patch Changes

  • 6a1310c: Deprecate FinalForm components where a Field component exists as a simpler alternative

    • Use <AutocompleteField /> instead of <Field component={FinalFormAutocomplete} />
    • Use <CheckboxField /> instead of <Field /> with <FormControlLabel /> and <FinalFormCheckbox />
    • Use <AsyncAutocompleteField /> instead of <Field component={FinalFormAsyncAutocomplete} />
    • Use <AsyncSelectField /> instead of <Field component={FinalFormAsyncSelect} />
    • Use <NumberField /> instead of <Field component={FinalFormNumberInput} />
    • Use <SearchField /> instead of <Field component={FinalFormSearchTextField} />
    • Use <SelectField /> instead of <Field /> with <FinalFormSelect />
    • Use <SwitchField /> instead of <Field /> with <FormControlLabel /> and <FinalFormSwitch />
    • Use <DateField /> instead of <Field component={FinalFormDatePicker} />
    • Use <DateRangeField /> instead of <Field component={FinalFormDateRangePicker} />
    • Use <DateTimeField /> instead of <Field component={FinalFormDateTimePicker} />
    • Use <TimeField /> instead of <Field component={FinalFormTimePicker} />
    • Use <TimeRangeField /> instead of <Field component={FinalFormTimeRangePicker} />
    • Use <ColorField /> instead of <Field component={FinalFormColorPicker} />

@comet/cms-admin@7.3.0

Patch Changes

  • 3f1b961: Allow emptying targetUrl in ExternalLinkBlock

@comet/cms-api@7.3.0

Patch Changes

  • c130adc: BuildsService: Start all jobs that match the scope exactly

    Previously, the first job that matched the scope exactly would be started, and the rest would be ignored. This has been fixed so that all jobs that match the scope exactly are started.

@comet/cms-site@7.3.0

Patch Changes

  • f2e10ec: Fix a bug where a block's hover-overlay element in the admin preview might persist after the underlying element is moved or resized

6.17.4

31 Aug 11:56
e39dd31
Compare
Choose a tag to compare

@comet/cms-api@6.17.4

Patch Changes

  • 9194d9a: BuildsService: Start all jobs that match the scope exactly

    Previously, the first job that matched the scope exactly would be started, and the rest would be ignored. This has been fixed so that all jobs that match the scope exactly are started.

7.2.1

26 Aug 06:06
af59eef
Compare
Choose a tag to compare

@comet/cms-api@7.2.1

Patch Changes

  • c663369: Fix bug in DamVideoBlock that caused the block to crash if no video file was selected

    The block used to crash if no video was selected because the DamVideoBlockTransformerService returned an empty object.
    This left the previewImage state in the admin undefined causing state2Output to fail.

6.17.3

26 Aug 14:58
3f1b961
Compare
Choose a tag to compare

@comet/cms-admin@6.17.3

Patch Changes

  • 60b06d4: Allow emptying targetUrl in ExternalLinkBlock

5.8.7

27 Aug 06:43
3f1b961
Compare
Choose a tag to compare

@comet/cms-admin@5.8.7

Patch Changes

  • d803276: Allow emptying targetUrl in ExternalLinkBlock

7.2.0

22 Aug 10:58
ac01c5a
Compare
Choose a tag to compare

@comet/admin@7.2.0

Minor Changes

  • 0fb8d9a: Allow pinning DataGrid columns using the column config when using DataGridPro or DataGridPremium with the usePersistentColumnState hook

    const columns: GridColDef[] = [
        {
            field: "title",
            pinned: "left",
        },
        // ... other columns
        {
            field: "actions",
            pinned: "right",
        },
    ];

Patch Changes

  • 4b267f9: Fix broken export/import of commonErrorMessages from the file form field

@comet/admin-theme@7.2.0

Minor Changes

  • 9b800c9: Slightly adjust the styling of pinned columns in DataGrid

@comet/cms-site@7.2.0

Minor Changes

  • 381aa71: Add ErrorHandlerProvider

    Each block in BlocksBlock, OneOfBlock and ListBlock is wrapped with an error boundary to prevent the whole page from crashing when a single block throws an error.
    In production, the broken block is hidden. The application should take care of reporting the error to an error tracking service (e.g., Sentry). In local development, the error is re-thrown.

    Add an ErrorHandler to the root layout:

    // In src/app/layout.tsx
    <html>
        <body className={inter.className}>
            {/* Other Providers */}
            <ErrorHandler>{children}</ErrorHandler>
        </body>
    </html>

    The ErrorHandler receives the errors in the application and can report them to the error tracking service.

    Example ErrorHandler

    "use client";
    
    import { ErrorHandlerProvider } from "@comet/cms-site";
    import { PropsWithChildren } from "react";
    
    export function ErrorHandler({ children }: PropsWithChildren) {
        function onError(error: Error, errorInfo: ErrorInfo) {
            console.error("Error caught by error handler", error, errorInfo.componentStack);
            if (process.env.NODE_ENV === "development") {
                throw error;
            } else {
                // Report the error to the error tracking service
            }
        }
    
        return <ErrorHandlerProvider onError={onError}>{children}</ErrorHandlerProvider>;
    }

@comet/cms-admin@7.2.0

Patch Changes

  • 4b267f9: Fix broken export/import of commonErrorMessages from the file form field