0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00

refactor(rename-layers-plugin): adapt to type refactor

This commit is contained in:
alonso.torres 2024-09-04 09:14:58 +02:00 committed by Alonso Torres
parent 0d4a159908
commit 23f7dd8c6d
2 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@ import type {
} from '../app/model'; } from '../app/model';
import { filter, fromEvent, map, merge, take } from 'rxjs'; import { filter, fromEvent, map, merge, take } from 'rxjs';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { PenpotShape } from '@penpot/plugin-types'; import { Shape } from '@penpot/plugin-types';
@Component({ @Component({
standalone: true, standalone: true,
@ -138,7 +138,7 @@ export class AppComponent {
}, 750); }, 750);
} }
public resultAddText(shape: PenpotShape) { public resultAddText(shape: Shape) {
return this.addText.replace('[Original layer name]', shape.name); return this.addText.replace('[Original layer name]', shape.name);
} }

View file

@ -1,4 +1,4 @@
import { PenpotShape } from '@penpot/plugin-types'; import { Shape } from '@penpot/plugin-types';
export interface ReadyPluginEvent { export interface ReadyPluginEvent {
type: 'ready'; type: 'ready';
@ -7,14 +7,14 @@ export interface InitPluginEvent {
type: 'init'; type: 'init';
content: { content: {
theme: string; theme: string;
selection: PenpotShape[]; selection: Shape[];
}; };
} }
export interface SelectionPluginEvent { export interface SelectionPluginEvent {
type: 'selection'; type: 'selection';
content: { content: {
selection: PenpotShape[]; selection: Shape[];
}; };
} }
export interface ThemePluginEvent { export interface ThemePluginEvent {