Skip to content

Commit

Permalink
Fix problem with gradient-parser types (#61679)
Browse files Browse the repository at this point in the history
Fixes an issue where gradient-parser types were used as a "synthetic default import".

Co-authored-by: sirreal <[email protected]>
Co-authored-by: gziolo <[email protected]>
  • Loading branch information
3 people authored May 15, 2024
1 parent eb67023 commit 7a9f1de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
### Bug Fix

- `ToolsPanel`: Fix sticking “Reset” option ([#60621](https://github.com/WordPress/gutenberg/pull/60621)).
- Fix an issue where types used a synthetic default import ([#61679](https://github.com/WordPress/gutenberg/pull/61679)).

## 27.5.0 (2024-05-02)

Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/custom-gradient-picker/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import type gradientParser from 'gradient-parser';
import { type LinearGradientNode } from 'gradient-parser';

/**
* WordPress dependencies
Expand Down Expand Up @@ -79,7 +79,7 @@ const GradientTypePicker = ( {
? undefined
: HORIZONTAL_GRADIENT_ORIENTATION,
type: 'linear-gradient',
} as gradientParser.LinearGradientNode )
} satisfies LinearGradientNode )
);
};

Expand Down

0 comments on commit 7a9f1de

Please sign in to comment.