From f02200651afc70aacbb4eb16e55b816e4930a466 Mon Sep 17 00:00:00 2001 From: cipchk Date: Thu, 9 Nov 2023 12:14:31 +0800 Subject: [PATCH] release: 17.0.0 --- lib/index.ts | 1 + lib/ng-package.json | 2 +- lib/package.json | 4 +-- lib/public-api.ts | 4 +++ lib/src/index.ts | 1 - lib/src/public_api.ts | 4 --- lib/tsconfig.lib.json | 5 ++-- package.json | 48 +++++++++++++++--------------- src/app/home/home.component.ts | 2 +- src/app/inline/inline.component.ts | 2 +- src/app/other/other.component.ts | 2 +- src/main.ts | 2 +- tsconfig.json | 2 +- 13 files changed, 39 insertions(+), 40 deletions(-) create mode 100644 lib/index.ts create mode 100644 lib/public-api.ts delete mode 100644 lib/src/index.ts delete mode 100644 lib/src/public_api.ts diff --git a/lib/index.ts b/lib/index.ts new file mode 100644 index 0000000..7e1a213 --- /dev/null +++ b/lib/index.ts @@ -0,0 +1 @@ +export * from './public-api'; diff --git a/lib/ng-package.json b/lib/ng-package.json index 8d00aad..55661a1 100644 --- a/lib/ng-package.json +++ b/lib/ng-package.json @@ -3,7 +3,7 @@ "dest": "../publish", "deleteDestPath": true, "lib": { - "entryFile": "src/public_api.ts" + "entryFile": "public-api.ts" }, "allowedNonPeerDependencies": ["@ng-util/lazy"] } diff --git a/lib/package.json b/lib/package.json index 84380bc..9705c9c 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "ngx-tinymce", - "version": "17.0.0-rc.0", + "version": "17.0.0", "description": "Angular for tinymce", "keywords": [ "angular-tinymce", @@ -20,6 +20,6 @@ }, "homepage": "https://cipchk.github.io/ngx-tinymce/", "dependencies": { - "@ng-util/lazy": "^17.0.0-rc.0" + "@ng-util/lazy": "^17.0.0" } } diff --git a/lib/public-api.ts b/lib/public-api.ts new file mode 100644 index 0000000..3549f54 --- /dev/null +++ b/lib/public-api.ts @@ -0,0 +1,4 @@ +export * from './src/tinymce.options'; +export { TinymceComponent } from './src/tinymce.component'; +export * from './src/tinymce.module'; +export * from './src/provide'; diff --git a/lib/src/index.ts b/lib/src/index.ts deleted file mode 100644 index 4aaf8f9..0000000 --- a/lib/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './public_api'; diff --git a/lib/src/public_api.ts b/lib/src/public_api.ts deleted file mode 100644 index b9dfd2f..0000000 --- a/lib/src/public_api.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './tinymce.options'; -export { TinymceComponent } from './tinymce.component'; -export * from './tinymce.module'; -export * from './provide'; diff --git a/lib/tsconfig.lib.json b/lib/tsconfig.lib.json index 7f0d763..bc4fe47 100644 --- a/lib/tsconfig.lib.json +++ b/lib/tsconfig.lib.json @@ -6,14 +6,13 @@ "inlineSources": true, "declaration": true, "strictFunctionTypes": true, - "stripInternal": true + "stripInternal": true, + "declarationMap": false }, - "files": ["./src/tinymce.module.ts"], "include": [ "**/*.ts" ], "angularCompilerOptions": { - "enableIvy": true, "compilationMode": "partial" } } diff --git a/package.json b/package.json index cb6b86d..14aee0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-tinymce", - "version": "17.0.0-rc.0", + "version": "17.0.0", "description": "Angular for tinymce", "keywords": [ "angular-tinymce", @@ -27,26 +27,26 @@ "release:next": "npm run build && cd publish && npm publish --access public --tag next" }, "dependencies": { - "@angular/animations": "^17.0.0-next.0", - "@angular/common": "^17.0.0-next.0", - "@angular/compiler": "^17.0.0-next.0", - "@angular/core": "^17.0.0-next.0", - "@angular/forms": "^17.0.0-next.0", - "@angular/platform-browser": "^17.0.0-next.0", - "@angular/platform-browser-dynamic": "^17.0.0-next.0", - "@angular/router": "^17.0.0-next.0", + "@angular/animations": "^17.0.0", + "@angular/common": "^17.0.0", + "@angular/compiler": "^17.0.0", + "@angular/core": "^17.0.0", + "@angular/forms": "^17.0.0", + "@angular/platform-browser": "^17.0.0", + "@angular/platform-browser-dynamic": "^17.0.0", + "@angular/router": "^17.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", - "zone.js": "~0.14.0", + "zone.js": "~0.14.2", "bootstrap": "^5.3.2", - "@ng-util/lazy": "^17.0.0-rc.0", - "ngx-highlight-js": "^17.0.0-rc.0", + "@ng-util/lazy": "^17.0.0", + "ngx-highlight-js": "^17.0.0", "tinymce": "^6.7.2" }, "devDependencies": { - "@angular-devkit/build-angular": "^17.0.0-rc.2", - "@angular/cli": "^17.0.0-rc.2", - "@angular/compiler-cli": "^17.0.0-next.0", + "@angular-devkit/build-angular": "^17.0.0", + "@angular/cli": "^17.0.0", + "@angular/compiler-cli": "^17.0.0", "@types/jasmine": "~5.1.0", "jasmine-core": "~5.1.0", "karma": "~6.4.0", @@ -55,14 +55,14 @@ "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", "typescript": "~5.2.2", - "@angular-eslint/builder": "^16.2.0", - "@angular-eslint/eslint-plugin": "^16.2.0", - "@angular-eslint/eslint-plugin-template": "^16.2.0", - "@angular-eslint/schematics": "^16.2.0", - "@angular-eslint/template-parser": "^16.2.0", - "@typescript-eslint/eslint-plugin": "^5.62.0", - "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.52.0", - "ng-packagr": "^17.0.0-rc.1" + "@angular-eslint/builder": "^17.0.0", + "@angular-eslint/eslint-plugin": "^17.0.0", + "@angular-eslint/eslint-plugin-template": "^17.0.0", + "@angular-eslint/schematics": "^17.0.0", + "@angular-eslint/template-parser": "^17.0.0", + "@typescript-eslint/eslint-plugin": "^6.10.0", + "@typescript-eslint/parser": "^6.10.0", + "eslint": "^8.53.0", + "ng-packagr": "^17.0.0" } } diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 3ad432d..e06e08d 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -2,7 +2,7 @@ import { Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { DomSanitizer } from '@angular/platform-browser'; import { HighlightJsDirective } from 'ngx-highlight-js'; -import { TinymceComponent } from 'ngx-tinymce'; +import { TinymceComponent } from 'lib'; @Component({ selector: 'app-home', diff --git a/src/app/inline/inline.component.ts b/src/app/inline/inline.component.ts index 4aa1a04..0ff2ce0 100644 --- a/src/app/inline/inline.component.ts +++ b/src/app/inline/inline.component.ts @@ -2,7 +2,7 @@ import { Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { DomSanitizer } from '@angular/platform-browser'; import { HighlightJsDirective } from 'ngx-highlight-js'; -import { TinymceComponent } from 'ngx-tinymce'; +import { TinymceComponent } from 'lib'; @Component({ selector: 'app-inline', diff --git a/src/app/other/other.component.ts b/src/app/other/other.component.ts index 2bf82b7..0c53ca7 100644 --- a/src/app/other/other.component.ts +++ b/src/app/other/other.component.ts @@ -1,7 +1,7 @@ import { Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HighlightJsDirective } from 'ngx-highlight-js'; -import { TinymceComponent } from 'ngx-tinymce'; +import { TinymceComponent } from 'lib'; @Component({ selector: 'app-other', diff --git a/src/main.ts b/src/main.ts index dc409c8..a90c501 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,7 +3,7 @@ import { AppComponent } from './app/app.component'; import { provideHttpClient } from '@angular/common/http'; import { provideRouter, withHashLocation } from '@angular/router'; import { ROUTERS } from './app/router'; -import { provideTinymce } from 'ngx-tinymce'; +import { provideTinymce } from 'lib'; bootstrapApplication(AppComponent, { providers: [ diff --git a/tsconfig.json b/tsconfig.json index 1a8f97e..74f7ff8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, - "allowSyntheticDefaultImports": true, + "esModuleInterop": true, "sourceMap": true, "declaration": false, "downlevelIteration": true,