From 23f7dd8c6da100fb6b3af2d7d9118f201b085c99 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 4 Sep 2024 09:14:58 +0200 Subject: [PATCH] refactor(rename-layers-plugin): adapt to type refactor --- apps/rename-layers-plugin/src/app/app.component.ts | 4 ++-- apps/rename-layers-plugin/src/app/model.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 {