Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
5ad6ab7
feat: add trim transformation support
piyushryn Jan 20, 2026
6293e83
fix: update trim transformation schema and default values for improve…
piyushryn Jan 21, 2026
d7fdd83
feat: add color replace transformation with validation and integratio…
piyushryn Jan 22, 2026
bc2da35
feat: add border and sharpen transformations to image processing sche…
piyushryn Jan 27, 2026
0cac58c
refactor: improve transformation schema for border, trim, and sharpen…
piyushryn Jan 27, 2026
a5e7fef
Update packages/imagekit-editor-dev/src/schema/index.ts
piyushryn Jan 27, 2026
cc2aeb3
Initial plan
Copilot Jan 27, 2026
87a681a
Update packages/imagekit-editor-dev/src/components/common/ColorPicker…
piyushryn Jan 27, 2026
d04269d
fix: correct formatting for items array opening bracket at line 1855
Copilot Jan 27, 2026
6996dd3
Merge pull request #7 from imagekit-developer/copilot/sub-pr-6
piyushryn Jan 27, 2026
16ec40a
refactor: update borderWidth validation in transformation schema to u…
piyushryn Jan 28, 2026
825b3c4
feat: add unsharpen mask transformation to image processing schema wi…
piyushryn Jan 28, 2026
c0fa40b
feat: integrate unsharpen mask transformation into overlay processing…
piyushryn Jan 29, 2026
a132fb9
feat: enhance transformation schema with new lineHeight and dpr optio…
piyushryn Jan 30, 2026
8839de5
fix: update trimEnabled transformation property to disable trimming a…
piyushryn Jan 30, 2026
4f3c7ed
Merge branch 'IK-2461/enhancements' of github.com:imagekit-developer/…
piyushryn Feb 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ import {
PopoverTrigger,
} from "@chakra-ui/react"
import { memo, useEffect, useState } from "react"
import ColorPicker from "react-best-gradient-color-picker"
import ColorPicker, { ColorPickerProps } from "react-best-gradient-color-picker"
import { useDebounce } from "../../hooks/useDebounce"

const ColorPickerField = ({
fieldName,
value,
setValue,
fieldProps,
}: {
fieldName: string
value: string
setValue: (name: string, value: string) => void
fieldProps?: ColorPickerProps
}) => {
const [localValue, setLocalValue] = useState<string>(value)

Expand All @@ -35,7 +37,7 @@ const ColorPickerField = ({
.map((v) => v.toString(16).padStart(2, "0"))
.join("")

if (a === undefined) {
if (fieldProps?.hideOpacity === true || a === undefined) {
setLocalValue(`#${rgbHex}`)
} else {
const alphaDec = a > 1 ? a / 100 : a
Expand Down Expand Up @@ -107,6 +109,8 @@ const ColorPickerField = ({
hideInputs
hideAdvancedSliders
hideColorGuide
// @ts-expect-error - fieldProps may include props not declared in ColorPickerProps, but they are intentionally forwarded
{...fieldProps}
/>
</PopoverBody>
</PopoverContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import { SidebarBody } from "./sidebar-body"
import { SidebarFooter } from "./sidebar-footer"
import { SidebarHeader } from "./sidebar-header"
import { SidebarRoot } from "./sidebar-root"
import { ColorPickerProps } from "react-best-gradient-color-picker"
import PaddingInputField, { PaddingState } from "../common/PaddingInput"
import ZoomInput from "../common/ZoomInput"
import DistortPerspectiveInput, { PerspectiveObject } from "../common/DistortPerspectiveInput"
Expand Down Expand Up @@ -542,6 +543,7 @@ export const TransformationConfigSidebar: React.FC = () => {
fieldName={field.name}
value={watch(field.name) as string}
setValue={setValue}
fieldProps={field.fieldProps as ColorPickerProps}
/>
) : null}
{field.fieldType === "gradient-picker" ? (
Expand Down
Loading