diff --git a/apps/rename-layers-plugin/src/app/app.component.ts b/apps/rename-layers-plugin/src/app/app.component.ts index 5a2589f..27a8eef 100644 --- a/apps/rename-layers-plugin/src/app/app.component.ts +++ b/apps/rename-layers-plugin/src/app/app.component.ts @@ -9,7 +9,7 @@ import type { } from '../app/model'; import { filter, fromEvent, map, merge, take } from 'rxjs'; import { FormsModule } from '@angular/forms'; -import { PenpotShape } from '@penpot/plugin-types'; +import { Shape } from '@penpot/plugin-types'; @Component({ standalone: true, @@ -138,7 +138,7 @@ export class AppComponent { }, 750); } - public resultAddText(shape: PenpotShape) { + public resultAddText(shape: Shape) { return this.addText.replace('[Original layer name]', shape.name); } diff --git a/apps/rename-layers-plugin/src/app/model.ts b/apps/rename-layers-plugin/src/app/model.ts index 6a34930..ea22b0f 100644 --- a/apps/rename-layers-plugin/src/app/model.ts +++ b/apps/rename-layers-plugin/src/app/model.ts @@ -1,4 +1,4 @@ -import { PenpotShape } from '@penpot/plugin-types'; +import { Shape } from '@penpot/plugin-types'; export interface ReadyPluginEvent { type: 'ready'; @@ -7,14 +7,14 @@ export interface InitPluginEvent { type: 'init'; content: { theme: string; - selection: PenpotShape[]; + selection: Shape[]; }; } export interface SelectionPluginEvent { type: 'selection'; content: { - selection: PenpotShape[]; + selection: Shape[]; }; } export interface ThemePluginEvent {