Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade editor #9215

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import {replaceIdentifiers} from '../../steps/replace-identifier';
import {replacePackageName} from '../../steps/replace-package-name';

export const TUI_EDITOR_VERSION = '^4.10.0';
export const TUI_EDITOR_VERSION = '^4.11.0';

export function migrateEditor(fileSystem: DevkitFileSystem, options: TuiSchema): void {
const moduleSpecifier = ['@tinkoff/tui-editor', '@taiga-ui/addon-editor'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import {
setActiveProject,
} from 'ng-morph';

import {TUI_EDITOR_VERSION} from '../steps/migrate-editor';
import {
TUI_EVENT_PLUGINS_VERSION,
TUI_POLYMORPHEUS_VERSION,
} from '../steps/update-packages';

const collectionPath = join(__dirname, '../../../migration.json');

const COMPONENT_BEFORE = `
Expand Down Expand Up @@ -104,10 +110,10 @@ const PACKAGE_JSON_AFTER = `{
"@angular/core": "~13.0.0",
"@taiga-ui/core": "~3.35.0",
"@taiga-ui/cdk": "~3.35.0",
"@taiga-ui/editor": "^4.10.0",
"@taiga-ui/event-plugins": "^4.2.3",
"@taiga-ui/editor": "${TUI_EDITOR_VERSION}",
"@taiga-ui/event-plugins": "${TUI_EVENT_PLUGINS_VERSION}",
"@taiga-ui/legacy": "${TUI_VERSION}",
"@taiga-ui/polymorpheus": "^4.7.3"
"@taiga-ui/polymorpheus": "${TUI_POLYMORPHEUS_VERSION}"
}
}`.trim();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from 'ng-morph';

import {makeAngularJsonWithAssets} from '../../../utils/make-angular-json-with-assets';
import {TUI_EVENT_PLUGINS_VERSION} from '../steps/update-packages';

const collectionPath = join(__dirname, '../../../migration.json');

Expand Down Expand Up @@ -125,7 +126,7 @@ const PACKAGE_JSON_AFTER = `
{
"dependencies": {
"@angular/core": "~13.0.0",
"@taiga-ui/event-plugins": "^4.2.3",
"@taiga-ui/event-plugins": "${TUI_EVENT_PLUGINS_VERSION}",
"@taiga-ui/legacy": "${TUI_VERSION}",
"@taiga-ui/proprietary": "${TUI_VERSION}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import {
setActiveProject,
} from 'ng-morph';

import {TUI_EDITOR_VERSION} from '../steps/migrate-editor';
import {
TUI_EVENT_PLUGINS_VERSION,
TUI_POLYMORPHEUS_VERSION,
} from '../steps/update-packages';

const collectionPath = join(__dirname, '../../../migration.json');

const COMPONENT_BEFORE = `
Expand Down Expand Up @@ -102,10 +108,10 @@ const PACKAGE_JSON_AFTER = `{
"@angular/core": "~13.0.0",
"@taiga-ui/core": "~3.42.0",
"@taiga-ui/cdk": "~3.42.0",
"@taiga-ui/editor": "^4.10.0",
"@taiga-ui/event-plugins": "^4.2.3",
"@taiga-ui/editor": "${TUI_EDITOR_VERSION}",
"@taiga-ui/event-plugins": "${TUI_EVENT_PLUGINS_VERSION}",
"@taiga-ui/legacy": "${TUI_VERSION}",
"@taiga-ui/polymorpheus": "^4.7.3"
"@taiga-ui/polymorpheus": "${TUI_POLYMORPHEUS_VERSION}"
}
}`.trim();

Expand Down
Loading