From 1d21d658013411a0a08db331e38a9a97546a77cd Mon Sep 17 00:00:00 2001 From: null Date: Fri, 30 Aug 2024 07:26:34 +0000 Subject: [PATCH] chore(deps): update taiga-ui cdk to v4 --- apps/demo/src/app/app.component.ts | 6 +- apps/demo/src/app/app.config.ts | 26 +- apps/demo/src/app/home/home.component.html | 32 +- apps/demo/src/app/home/home.component.less | 18 +- apps/demo/src/app/home/home.component.ts | 55 +- apps/demo/src/styles.less | 2 +- package-lock.json | 2291 +++++++++++--------- package.json | 20 +- 8 files changed, 1341 insertions(+), 1109 deletions(-) diff --git a/apps/demo/src/app/app.component.ts b/apps/demo/src/app/app.component.ts index fa704ee6..c0ddbd84 100644 --- a/apps/demo/src/app/app.component.ts +++ b/apps/demo/src/app/app.component.ts @@ -1,12 +1,12 @@ +import { TuiEditor, TuiEditorSocket } from "@taiga-ui/editor"; +import { TuiRoot } from "@taiga-ui/core"; import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core'; import {RouterOutlet} from '@angular/router'; -import {TuiRootModule} from '@taiga-ui/core'; -import {TuiEditorModule} from '@tinkoff/tui-editor'; @Component({ standalone: true, selector: 'app', - imports: [RouterOutlet, TuiEditorModule, TuiRootModule], + imports: [RouterOutlet, TuiEditor, TuiEditorSocket, TuiRoot], templateUrl: './app.component.html', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/apps/demo/src/app/app.config.ts b/apps/demo/src/app/app.config.ts index 697b3f7d..a0a87079 100644 --- a/apps/demo/src/app/app.config.ts +++ b/apps/demo/src/app/app.config.ts @@ -1,17 +1,15 @@ +import { TUI_EDITOR_DEFAULT_EXTENSIONS } from "@taiga-ui/editor"; +import { TUI_SANITIZER } from "@taiga-ui/legacy"; +import { TuiPush } from "@taiga-ui/kit"; +import { NG_EVENT_PLUGINS } from "@taiga-ui/event-plugins"; import type {ApplicationConfig, Injector} from '@angular/core'; import {importProvidersFrom, INJECTOR} from '@angular/core'; import {provideClientHydration} from '@angular/platform-browser'; import {provideAnimations} from '@angular/platform-browser/animations'; import {provideRouter} from '@angular/router'; -import { - TUI_SANITIZER, - TuiAlertModule, - TuiDialogModule, - TuiRootModule, -} from '@taiga-ui/core'; -import {TuiPushModule} from '@taiga-ui/kit'; -import {NgDompurifySanitizer} from '@tinkoff/ng-dompurify'; -import {TUI_EDITOR_DEFAULT_EXTENSIONS, TUI_EDITOR_EXTENSIONS} from '@tinkoff/tui-editor'; +import { TuiRoot, TuiAlert, TuiDialog } from '@taiga-ui/core'; +import {NgDompurifySanitizer} from '@taiga-ui/dompurify'; +import {TUI_EDITOR_EXTENSIONS} from '@taiga-ui/editor'; export const appConfig: ApplicationConfig = { providers: [ @@ -25,17 +23,16 @@ export const appConfig: ApplicationConfig = { }, ]), importProvidersFrom( - TuiRootModule, - TuiAlertModule, - TuiDialogModule, - TuiPushModule, + TuiAlert, + TuiDialog, + TuiPush, ), { provide: TUI_EDITOR_EXTENSIONS, deps: [INJECTOR], useFactory: (injector: Injector) => [ ...TUI_EDITOR_DEFAULT_EXTENSIONS, - import('@tinkoff/tui-editor/extensions/image-editor').then( + import('@taiga-ui/editor/extensions/image-editor').then( ({tuiCreateImageEditorExtension}) => tuiCreateImageEditorExtension({injector}), ), @@ -45,5 +42,6 @@ export const appConfig: ApplicationConfig = { provide: TUI_SANITIZER, useClass: NgDompurifySanitizer, }, + NG_EVENT_PLUGINS ], }; diff --git a/apps/demo/src/app/home/home.component.html b/apps/demo/src/app/home/home.component.html index 33b902ca..33c94c73 100644 --- a/apps/demo/src/app/home/home.component.html +++ b/apps/demo/src/app/home/home.component.html @@ -34,19 +34,21 @@

/>
- {{ label }} - +