diff --git a/libs/plugins-runtime/src/lib/api/index.ts b/libs/plugins-runtime/src/lib/api/index.ts index 99e76fe..eae7ac9 100644 --- a/libs/plugins-runtime/src/lib/api/index.ts +++ b/libs/plugins-runtime/src/lib/api/index.ts @@ -258,18 +258,20 @@ export function createApi(context: PenpotContext, manifest: Manifest): Penpot { return context.getSelectedShapes(); }, - getColors(shapes: PenpotShape[]): (PenpotColor & PenpotColorShapeInfo)[] { + shapesColors( + shapes: PenpotShape[] + ): (PenpotColor & PenpotColorShapeInfo)[] { // checkPermission('selection:read'); - return context.getColors(shapes); + return context.shapesColors(shapes); }, - changeColor( + replaceColor( shapes: PenpotShape[], oldColor: PenpotColor, newColor: PenpotColor ) { // checkPermission('selection:read'); - return context.changeColor(shapes, oldColor, newColor); + return context.replaceColor(shapes, oldColor, newColor); }, getTheme(): PenpotTheme {