diff --git a/package-lock.json b/package-lock.json index d2e6bd279..7fce3c935 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5878,6 +5878,17 @@ "@maskito/core": "^2.4.0" } }, + "node_modules/@maskito/phone": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@maskito/phone/-/phone-2.4.0.tgz", + "integrity": "sha512-2NKSLs9i/Kp8ie+yiaHWgGZ0M1uO2z3E6wToPN15QXqR7wZpu9BFoZoFjOpzWR9n/7XqIO3lN8f6GCByqKPC6w==", + "peer": true, + "peerDependencies": { + "@maskito/core": "^2.4.0", + "@maskito/kit": "^2.4.0", + "libphonenumber-js": ">=1.0.0" + } + }, "node_modules/@miller-svt/stylelint-no-px": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@miller-svt/stylelint-no-px/-/stylelint-no-px-1.0.1.tgz", @@ -10003,15 +10014,6 @@ "resolved": "taiga-ui/projects/demo-playwright", "link": true }, - "node_modules/@taiga-ui/design-tokens": { - "version": "0.76.0", - "resolved": "https://registry.npmjs.org/@taiga-ui/design-tokens/-/design-tokens-0.76.0.tgz", - "integrity": "sha512-+2y5Sp4yPPK2/pcBapwPza5wCvga43PgkgWASlyvL3L1BrNjRzCz6hR1ICxy0qQGz/DI7tHIPyDGumW/tWODoA==", - "peer": true, - "dependencies": { - "tslib": "^2.3.0" - } - }, "node_modules/@taiga-ui/editor": { "resolved": "projects/editor", "link": true @@ -25532,6 +25534,12 @@ "node": ">= 0.8.0" } }, + "node_modules/libphonenumber-js": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.11.3.tgz", + "integrity": "sha512-RU0CTsLCu2v6VEzdP+W6UU2n5+jEpMDRkGxUeBgsAJgre3vKgm17eApISH9OQY4G0jZYJVIc8qXmz6CJFueAFg==", + "peer": true + }, "node_modules/license-webpack-plugin": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", @@ -38574,13 +38582,13 @@ "@maskito/angular": "^2.4.0", "@maskito/core": "^2.4.0", "@maskito/kit": "^2.4.0", + "@maskito/phone": "^2.4.0", "@ng-web-apis/common": "^3.0.6", "@ng-web-apis/intersection-observer": "^3.2.0", "@ng-web-apis/mutation-observer": "^3.1.0", "@ng-web-apis/resize-observer": "^3.0.6", "@taiga-ui/cdk": "^3.59.0", "@taiga-ui/core": "^3.59.0", - "@taiga-ui/design-tokens": "^0.76.0", "@taiga-ui/i18n": "^3.59.0", "@tinkoff/ng-polymorpheus": "^4.3.0", "rxjs": ">=7.0.0", diff --git a/projects/demo/src/app/pages/color-picker/examples/1/index.ts b/projects/demo/src/app/pages/color-picker/examples/1/index.ts index d7d255e59..be491514e 100644 --- a/projects/demo/src/app/pages/color-picker/examples/1/index.ts +++ b/projects/demo/src/app/pages/color-picker/examples/1/index.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; -import {TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TUI_EDITOR_DEFAULT_EDITOR_COLORS, TuiInputColorComponent} from '@taiga-ui/editor'; +import {TuiTextfieldControllerModule} from '@taiga-ui/legacy'; @Component({ standalone: true, diff --git a/projects/demo/src/app/pages/color-picker/examples/2/index.ts b/projects/demo/src/app/pages/color-picker/examples/2/index.ts index 19dcfade1..fc2a2db65 100644 --- a/projects/demo/src/app/pages/color-picker/examples/2/index.ts +++ b/projects/demo/src/app/pages/color-picker/examples/2/index.ts @@ -2,8 +2,9 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import type {SafeStyle} from '@angular/platform-browser'; import {DomSanitizer} from '@angular/platform-browser'; import {TuiActiveZoneDirective} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective} from '@taiga-ui/core'; import {TuiColorSelector} from '@taiga-ui/editor'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; @Component({ standalone: true, diff --git a/projects/demo/src/app/pages/color-picker/examples/3/index.ts b/projects/demo/src/app/pages/color-picker/examples/3/index.ts index 5c2814056..af0cc078b 100644 --- a/projects/demo/src/app/pages/color-picker/examples/3/index.ts +++ b/projects/demo/src/app/pages/color-picker/examples/3/index.ts @@ -1,7 +1,8 @@ import {AsyncPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective} from '@taiga-ui/core'; import {TuiPalette} from '@taiga-ui/editor'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {BehaviorSubject} from 'rxjs'; @Component({ diff --git a/projects/demo/src/app/pages/color-picker/examples/4/index.ts b/projects/demo/src/app/pages/color-picker/examples/4/index.ts index 98326965c..ce7a4e559 100644 --- a/projects/demo/src/app/pages/color-picker/examples/4/index.ts +++ b/projects/demo/src/app/pages/color-picker/examples/4/index.ts @@ -1,12 +1,12 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MaskitoModule} from '@maskito/angular'; +import {TuiSvgComponent} from '@taiga-ui/core'; import { - TuiSvgComponent, + TuiInputModule, TuiTextfieldControllerModule, TuiWrapperModule, -} from '@taiga-ui/core'; -import {TuiInputModule} from '@taiga-ui/legacy'; +} from '@taiga-ui/legacy'; @Component({ standalone: true, diff --git a/projects/demo/src/app/pages/custom-tool/color-picker/examples/1/custom-color-picker/custom-color-picker.component.ts b/projects/demo/src/app/pages/custom-tool/color-picker/examples/1/custom-color-picker/custom-color-picker.component.ts index a813b7ca0..ac0385350 100644 --- a/projects/demo/src/app/pages/custom-tool/color-picker/examples/1/custom-color-picker/custom-color-picker.component.ts +++ b/projects/demo/src/app/pages/custom-tool/color-picker/examples/1/custom-color-picker/custom-color-picker.component.ts @@ -1,13 +1,14 @@ import {AsyncPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; import {TuiActiveZoneDirective} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective} from '@taiga-ui/core'; import type {AbstractTuiEditor} from '@taiga-ui/editor'; import { TUI_EDITOR_OPTIONS, TuiColorSelector, TuiTiptapEditorService, } from '@taiga-ui/editor'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {distinctUntilChanged, map, share} from 'rxjs'; @Component({ diff --git a/projects/demo/src/app/pages/custom-tool/paste-emoji/examples/1/smiles-tool/smiles-tool.component.ts b/projects/demo/src/app/pages/custom-tool/paste-emoji/examples/1/smiles-tool/smiles-tool.component.ts index d07847cd0..124df40a3 100644 --- a/projects/demo/src/app/pages/custom-tool/paste-emoji/examples/1/smiles-tool/smiles-tool.component.ts +++ b/projects/demo/src/app/pages/custom-tool/paste-emoji/examples/1/smiles-tool/smiles-tool.component.ts @@ -1,8 +1,9 @@ import {NgForOf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {TuiActiveZoneDirective} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective} from '@taiga-ui/core'; import {TuiTiptapEditorService} from '@taiga-ui/editor'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; @Component({ standalone: true, diff --git a/projects/demo/src/app/pages/custom-tool/paste-image/examples/1/image-tool/image-tool.component.ts b/projects/demo/src/app/pages/custom-tool/paste-image/examples/1/image-tool/image-tool.component.ts index 7520b6ecf..08e9a08fc 100644 --- a/projects/demo/src/app/pages/custom-tool/paste-image/examples/1/image-tool/image-tool.component.ts +++ b/projects/demo/src/app/pages/custom-tool/paste-image/examples/1/image-tool/image-tool.component.ts @@ -1,10 +1,11 @@ import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {TuiActiveZoneDirective, TuiAutoFocusDirective} from '@taiga-ui/cdk'; -import type {TuiHostedDropdownComponent} from '@taiga-ui/core'; -import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective} from '@taiga-ui/core'; import {TuiTiptapEditorService} from '@taiga-ui/editor'; import {TuiInputInlineComponent} from '@taiga-ui/kit'; +import type {TuiHostedDropdownComponent} from '@taiga-ui/legacy'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; @Component({ standalone: true, diff --git a/projects/demo/src/app/pages/embed/iframe/examples/1/embed-tool/embed-tool.component.ts b/projects/demo/src/app/pages/embed/iframe/examples/1/embed-tool/embed-tool.component.ts index d5a634db4..d355e293c 100644 --- a/projects/demo/src/app/pages/embed/iframe/examples/1/embed-tool/embed-tool.component.ts +++ b/projects/demo/src/app/pages/embed/iframe/examples/1/embed-tool/embed-tool.component.ts @@ -1,10 +1,10 @@ import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {TuiActiveZoneDirective, TuiAutoFocusDirective} from '@taiga-ui/cdk'; -import type {TuiHostedDropdownComponent} from '@taiga-ui/core'; -import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective} from '@taiga-ui/core'; import {TuiTiptapEditorService} from '@taiga-ui/editor'; import {TuiInputInlineComponent} from '@taiga-ui/kit'; +import {TuiHostedDropdownComponent, TuiHostedDropdownModule} from '@taiga-ui/legacy'; @Component({ standalone: true, diff --git a/projects/demo/src/app/pages/embed/youtube/examples/1/youtube-tool/youtube-tool.component.ts b/projects/demo/src/app/pages/embed/youtube/examples/1/youtube-tool/youtube-tool.component.ts index 17c1724ab..2d5970902 100644 --- a/projects/demo/src/app/pages/embed/youtube/examples/1/youtube-tool/youtube-tool.component.ts +++ b/projects/demo/src/app/pages/embed/youtube/examples/1/youtube-tool/youtube-tool.component.ts @@ -1,10 +1,11 @@ import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {TuiActiveZoneDirective, TuiAutoFocusDirective} from '@taiga-ui/cdk'; -import type {TuiHostedDropdownComponent} from '@taiga-ui/core'; -import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective} from '@taiga-ui/core'; import {TuiTiptapEditorService} from '@taiga-ui/editor'; import {TuiInputInlineComponent} from '@taiga-ui/kit'; +import type {TuiHostedDropdownComponent} from '@taiga-ui/legacy'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; @Component({ standalone: true, diff --git a/projects/demo/src/app/pages/font/examples/3/font-size-tool/font-size-tool.component.ts b/projects/demo/src/app/pages/font/examples/3/font-size-tool/font-size-tool.component.ts index 04f922cdd..bc633e075 100644 --- a/projects/demo/src/app/pages/font/examples/3/font-size-tool/font-size-tool.component.ts +++ b/projects/demo/src/app/pages/font/examples/3/font-size-tool/font-size-tool.component.ts @@ -2,8 +2,9 @@ import {AsyncPipe, NgForOf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {tuiPure} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiDataList, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiDataList} from '@taiga-ui/core'; import {TuiTiptapEditorService} from '@taiga-ui/editor'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {distinctUntilChanged, map} from 'rxjs'; @Component({ diff --git a/projects/editor/src/components/color-selector/color-edit/color-edit.component.ts b/projects/editor/src/components/color-selector/color-edit/color-edit.component.ts index 8bb662a46..78957f333 100644 --- a/projects/editor/src/components/color-selector/color-edit/color-edit.component.ts +++ b/projects/editor/src/components/color-selector/color-edit/color-edit.component.ts @@ -10,15 +10,12 @@ import {FormsModule} from '@angular/forms'; import {MaskitoModule} from '@maskito/angular'; import type {MaskitoOptions} from '@maskito/core'; import {tuiHexToRgb, tuiRgbToHex} from '@taiga-ui/cdk'; -import { - TuiDataList, - TuiDropdownOptionsDirective, - TuiPrimitiveTextfieldModule, - TuiTextfieldControllerModule, -} from '@taiga-ui/core'; +import {TuiDataList, TuiDropdownOptionsDirective} from '@taiga-ui/core'; import { TuiInputNumberModule, + TuiPrimitiveTextfieldModule, TuiSelectModule, + TuiTextfieldControllerModule, TuiValueAccessorModule, } from '@taiga-ui/legacy'; diff --git a/projects/editor/src/components/color-selector/color-selector.component.ts b/projects/editor/src/components/color-selector/color-selector.component.ts index a70553780..c21483a4b 100644 --- a/projects/editor/src/components/color-selector/color-selector.component.ts +++ b/projects/editor/src/components/color-selector/color-selector.component.ts @@ -10,15 +10,15 @@ import { import type {SafeStyle} from '@angular/platform-browser'; import {DomSanitizer} from '@angular/platform-browser'; import {tuiDefaultSort, tuiParseColor, tuiPure} from '@taiga-ui/cdk'; -import type {TuiHostedDropdownComponent} from '@taiga-ui/core'; import { TuiButtonDirective, TuiDataList, TuiGroupDirective, TuiHint, - TuiHostedDropdownModule, TuiSvgComponent, } from '@taiga-ui/core'; +import type {TuiHostedDropdownComponent} from '@taiga-ui/legacy'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {TUI_EDITOR_OPTIONS} from '../../tokens/editor-options'; import {TUI_EDITOR_COLOR_SELECTOR_MODE_NAMES} from '../../tokens/i18n'; diff --git a/projects/editor/src/components/editor/editor.component.ts b/projects/editor/src/components/editor/editor.component.ts index 05f76943b..f23ceb2c2 100644 --- a/projects/editor/src/components/editor/editor.component.ts +++ b/projects/editor/src/components/editor/editor.component.ts @@ -28,8 +28,8 @@ import { TuiDropdownDirective, TuiDropdownOptionsDirective, TuiScrollbarComponent, - TuiWrapperModule, } from '@taiga-ui/core'; +import {TuiWrapperModule} from '@taiga-ui/legacy'; import {delay, fromEvent, throttleTime} from 'rxjs'; import type {AbstractTuiEditor} from '../../abstract/editor-adapter.abstract'; diff --git a/projects/editor/src/components/input-color/input-color.component.ts b/projects/editor/src/components/input-color/input-color.component.ts index 3fce657ea..8892895ac 100644 --- a/projects/editor/src/components/input-color/input-color.component.ts +++ b/projects/editor/src/components/input-color/input-color.component.ts @@ -12,14 +12,14 @@ import {MaskitoDirective} from '@maskito/angular'; import type {MaskitoOptions} from '@maskito/core'; import type {TuiFocusableElementAccessor, TuiNativeFocusableElement} from '@taiga-ui/cdk'; import {AbstractTuiControl, TuiActiveZoneDirective, tuiPure} from '@taiga-ui/cdk'; +import {tuiDropdownOptionsProvider} from '@taiga-ui/core'; import { - tuiDropdownOptionsProvider, TuiHostedDropdownComponent, TuiHostedDropdownModule, TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, -} from '@taiga-ui/core'; +} from '@taiga-ui/legacy'; import {tuiGetGradientData} from '../../utils/get-gradient-data'; import {tuiParseGradient} from '../../utils/parse-gradient'; diff --git a/projects/editor/src/components/toolbar-tools/align-content/align-content.component.ts b/projects/editor/src/components/toolbar-tools/align-content/align-content.component.ts index 9f24d5389..a6b369e8b 100644 --- a/projects/editor/src/components/toolbar-tools/align-content/align-content.component.ts +++ b/projects/editor/src/components/toolbar-tools/align-content/align-content.component.ts @@ -1,7 +1,8 @@ import {AsyncPipe, NgIf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {TuiLetDirective} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {combineLatest, map} from 'rxjs'; import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service'; diff --git a/projects/editor/src/components/toolbar-tools/code/code.component.ts b/projects/editor/src/components/toolbar-tools/code/code.component.ts index 48be2dfab..1ab73b90d 100644 --- a/projects/editor/src/components/toolbar-tools/code/code.component.ts +++ b/projects/editor/src/components/toolbar-tools/code/code.component.ts @@ -1,11 +1,7 @@ import {AsyncPipe, NgForOf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import { - TuiButtonDirective, - TuiDataList, - TuiHint, - TuiHostedDropdownModule, -} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiDataList, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {distinctUntilChanged, map} from 'rxjs'; import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service'; diff --git a/projects/editor/src/components/toolbar-tools/font-size/font-size.component.ts b/projects/editor/src/components/toolbar-tools/font-size/font-size.component.ts index ed1e27b06..6d8f8ac0c 100644 --- a/projects/editor/src/components/toolbar-tools/font-size/font-size.component.ts +++ b/projects/editor/src/components/toolbar-tools/font-size/font-size.component.ts @@ -1,12 +1,8 @@ import {AsyncPipe, LowerCasePipe, NgClass, NgForOf, NgStyle} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {tuiPx} from '@taiga-ui/cdk'; -import { - TuiButtonDirective, - TuiDataList, - TuiHint, - TuiHostedDropdownModule, -} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiDataList, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import type {Observable} from 'rxjs'; import {map} from 'rxjs'; diff --git a/projects/editor/src/components/toolbar-tools/font-style/font-style.component.ts b/projects/editor/src/components/toolbar-tools/font-style/font-style.component.ts index d4855f35d..065d02807 100644 --- a/projects/editor/src/components/toolbar-tools/font-style/font-style.component.ts +++ b/projects/editor/src/components/toolbar-tools/font-style/font-style.component.ts @@ -1,6 +1,7 @@ import {AsyncPipe, NgIf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; -import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {combineLatest, map} from 'rxjs'; import {TUI_EDITOR_DEFAULT_TOOLS} from '../../../constants/default-editor-tools'; diff --git a/projects/editor/src/components/toolbar-tools/highlight-color/highlight-color.component.ts b/projects/editor/src/components/toolbar-tools/highlight-color/highlight-color.component.ts index e8f6d7b48..e61b04a1e 100644 --- a/projects/editor/src/components/toolbar-tools/highlight-color/highlight-color.component.ts +++ b/projects/editor/src/components/toolbar-tools/highlight-color/highlight-color.component.ts @@ -1,7 +1,8 @@ import {AsyncPipe, NgIf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; import {TuiActiveZoneDirective, TuiLetDirective} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {distinctUntilChanged, map} from 'rxjs'; import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service'; diff --git a/projects/editor/src/components/toolbar-tools/list-configs/list-configs.component.ts b/projects/editor/src/components/toolbar-tools/list-configs/list-configs.component.ts index edd6bcf34..619be288b 100644 --- a/projects/editor/src/components/toolbar-tools/list-configs/list-configs.component.ts +++ b/projects/editor/src/components/toolbar-tools/list-configs/list-configs.component.ts @@ -1,7 +1,8 @@ import {AsyncPipe, NgIf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {TuiLetDirective} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {combineLatest, map} from 'rxjs'; import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service'; diff --git a/projects/editor/src/components/toolbar-tools/table-cell-color/table-cell-color.component.ts b/projects/editor/src/components/toolbar-tools/table-cell-color/table-cell-color.component.ts index 238ec391c..ee8205048 100644 --- a/projects/editor/src/components/toolbar-tools/table-cell-color/table-cell-color.component.ts +++ b/projects/editor/src/components/toolbar-tools/table-cell-color/table-cell-color.component.ts @@ -1,7 +1,8 @@ import {AsyncPipe, NgIf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; import {TuiActiveZoneDirective, TuiLetDirective} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {combineLatest, distinctUntilChanged, map} from 'rxjs'; import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service'; diff --git a/projects/editor/src/components/toolbar-tools/table-create/table-create.component.ts b/projects/editor/src/components/toolbar-tools/table-create/table-create.component.ts index db0b1216e..ea7bb2329 100644 --- a/projects/editor/src/components/toolbar-tools/table-create/table-create.component.ts +++ b/projects/editor/src/components/toolbar-tools/table-create/table-create.component.ts @@ -1,6 +1,7 @@ import {AsyncPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {map} from 'rxjs'; import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service'; diff --git a/projects/editor/src/components/toolbar-tools/table-row-column-manager/table-row-column-manager.component.ts b/projects/editor/src/components/toolbar-tools/table-row-column-manager/table-row-column-manager.component.ts index 2cb507076..b514ac30a 100644 --- a/projects/editor/src/components/toolbar-tools/table-row-column-manager/table-row-column-manager.component.ts +++ b/projects/editor/src/components/toolbar-tools/table-row-column-manager/table-row-column-manager.component.ts @@ -1,12 +1,8 @@ import {AsyncPipe, NgForOf} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {TuiLetDirective} from '@taiga-ui/cdk'; -import { - TuiButtonDirective, - TuiDataList, - TuiHint, - TuiHostedDropdownModule, -} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiDataList, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {map} from 'rxjs'; import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service'; diff --git a/projects/editor/src/components/toolbar-tools/text-color/text-color.component.ts b/projects/editor/src/components/toolbar-tools/text-color/text-color.component.ts index 9f25c3704..1b9b7edd3 100644 --- a/projects/editor/src/components/toolbar-tools/text-color/text-color.component.ts +++ b/projects/editor/src/components/toolbar-tools/text-color/text-color.component.ts @@ -1,7 +1,8 @@ import {AsyncPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; import {TuiActiveZoneDirective, TuiLetDirective} from '@taiga-ui/cdk'; -import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiHint} from '@taiga-ui/core'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {distinctUntilChanged, map} from 'rxjs'; import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service'; diff --git a/projects/editor/src/components/toolbar/toolbar.component.ts b/projects/editor/src/components/toolbar/toolbar.component.ts index 4c7e5b96e..d5830d075 100644 --- a/projects/editor/src/components/toolbar/toolbar.component.ts +++ b/projects/editor/src/components/toolbar/toolbar.component.ts @@ -17,8 +17,9 @@ import { } from '@angular/core'; import {takeUntilDestroyed} from '@angular/core/rxjs-interop'; import {EMPTY_QUERY, tuiIsNativeFocusedIn, TuiItemDirective} from '@taiga-ui/cdk'; -import type {TuiHostedDropdownComponent} from '@taiga-ui/core'; -import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core'; +import {TuiButtonDirective, TuiHint} from '@taiga-ui/core'; +import type {TuiHostedDropdownComponent} from '@taiga-ui/legacy'; +import {TuiHostedDropdownModule} from '@taiga-ui/legacy'; import {take} from 'rxjs'; import {TUI_EDITOR_DEFAULT_TOOLS} from '../../constants/default-editor-tools'; diff --git a/projects/editor/src/tokens/editor-options.ts b/projects/editor/src/tokens/editor-options.ts index 8b4a0a2c9..b4a1544a8 100644 --- a/projects/editor/src/tokens/editor-options.ts +++ b/projects/editor/src/tokens/editor-options.ts @@ -1,5 +1,5 @@ import type {Provider} from '@angular/core'; -import {tuiCreateOptions, tuiProvideOptions} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; import { EDITOR_BLANK_COLOR, @@ -125,7 +125,7 @@ export const TUI_EDITOR_DEFAULT_OPTIONS: TuiEditorOptions = { }, }; -export const TUI_EDITOR_OPTIONS = tuiCreateOptions(TUI_EDITOR_DEFAULT_OPTIONS); +export const TUI_EDITOR_OPTIONS = tuiCreateToken(TUI_EDITOR_DEFAULT_OPTIONS); export function tuiEditorOptionsProvider(options: Partial): Provider { return tuiProvideOptions(TUI_EDITOR_OPTIONS, options, TUI_EDITOR_DEFAULT_OPTIONS); diff --git a/taiga-ui b/taiga-ui index 7c7b6fc49..752d252f3 160000 --- a/taiga-ui +++ b/taiga-ui @@ -1 +1 @@ -Subproject commit 7c7b6fc49cf7d2af9746b78816a8350cd680735b +Subproject commit 752d252f36998970341f6ae883a080c83f15da89