Skip to content

Commit 2a50b88

Browse files
chore: angular 19
1 parent e6856db commit 2a50b88

9 files changed

+3050
-2137
lines changed

package-lock.json

Lines changed: 2974 additions & 2080 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,36 @@
4040
"text editor"
4141
],
4242
"dependencies": {
43-
"@angular/animations": "^18.2.10",
44-
"@angular/common": "^18.2.10",
45-
"@angular/compiler": "^18.2.10",
46-
"@angular/core": "^18.2.10",
47-
"@angular/forms": "^18.2.10",
48-
"@angular/platform-browser": "^18.2.10",
49-
"@angular/platform-browser-dynamic": "^18.2.10",
50-
"@angular/router": "^18.2.10",
43+
"@angular/animations": "^19.0.0",
44+
"@angular/common": "^19.0.0",
45+
"@angular/compiler": "^19.0.0",
46+
"@angular/core": "^19.0.0",
47+
"@angular/forms": "^19.0.0",
48+
"@angular/platform-browser": "^19.0.0",
49+
"@angular/platform-browser-dynamic": "^19.0.0",
50+
"@angular/router": "^19.0.0",
5151
"quill": "^2.0.2",
5252
"rxjs": "^7.8.1",
5353
"tslib": "^2.8.0",
54-
"zone.js": "^0.14.10"
54+
"zone.js": "^0.15.0"
5555
},
5656
"devDependencies": {
57-
"@angular-devkit/build-angular": "^18.2.11",
58-
"@angular/cli": "^18.2.11",
59-
"@angular/compiler-cli": "^18.2.10",
60-
"@angular/language-service": "^18.2.10",
61-
"@angular/localize": "^18.2.10",
62-
"@eslint/compat": "^1.2.2",
57+
"@angular-devkit/build-angular": "^19.0.0",
58+
"@angular/cli": "^19.0.0",
59+
"@angular/compiler-cli": "^19.0.0",
60+
"@angular/language-service": "^19.0.0",
61+
"@angular/localize": "^19.0.0",
62+
"@eslint/compat": "^1.2.3",
6363
"@eslint/js": "^9.10.0",
6464
"@eslint/json": "^0.4.1",
65-
"@stylistic/eslint-plugin": "^2.10.0",
65+
"@stylistic/eslint-plugin": "^2.11.0",
6666
"@types/jasmine": "^5.1.4",
6767
"@types/jasminewd2": "^2.0.13",
6868
"@types/node": "~20.12.14",
69-
"angular-eslint": "^18.4.0",
69+
"angular-eslint": "^18.4.1",
7070
"bufferutil": "^4.0.8",
71-
"eslint": "^9.13.0",
72-
"globals": "^15.11.0",
71+
"eslint": "^9.15.0",
72+
"globals": "^15.12.0",
7373
"html-webpack-plugin": "^5.6.3",
7474
"jasmine-core": "^5.4.0",
7575
"jasmine-spec-reporter": "^7.0.0",
@@ -80,9 +80,9 @@
8080
"karma-jasmine-html-reporter": "^2.1.0",
8181
"karma-mocha-reporter": "^2.2.5",
8282
"karma-spec-reporter": "0.0.36",
83-
"ng-packagr": "^18.2.1",
83+
"ng-packagr": "^19.0.0",
8484
"puppeteer": "^22.15.0",
85-
"typescript": "~5.5.4"
85+
"typescript": "~5.6.3"
8686
},
8787
"overrides": {
8888
"@angular-eslint/schematics": {

projects/ngx-quill/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-quill",
3-
"version": "26.0.10",
3+
"version": "27.0.0",
44
"license": "MIT",
55
"author": {
66
"name": "Bengt Weiße"
@@ -31,7 +31,7 @@
3131
],
3232
"sideEffects": false,
3333
"peerDependencies": {
34-
"@angular/core": "^18.0.0",
34+
"@angular/core": "^19.0.0",
3535
"quill": "^2.0.0",
3636
"rxjs": "^7.0.0"
3737
},

projects/ngx-quill/src/lib/quill-editor.component.spec.ts

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class CustomModule {
2727
}
2828

2929
@Component({
30+
imports: [QuillModule, FormsModule],
3031
selector: 'quill-test',
3132
template: `
3233
<quill-editor
@@ -92,6 +93,7 @@ class TestComponent {
9293
}
9394

9495
@Component({
96+
imports: [FormsModule, QuillModule],
9597
selector: 'quill-toolbar-test',
9698
template: `
9799
<quill-editor
@@ -143,6 +145,7 @@ class TestToolbarComponent {
143145
}
144146

145147
@Component({
148+
imports: [QuillModule, ReactiveFormsModule],
146149
selector: 'quill-reactive-test',
147150
template: `
148151
<quill-editor [formControl]='formControl' [minLength]='minLength'></quill-editor>
@@ -155,6 +158,7 @@ class ReactiveFormTestComponent {
155158
}
156159

157160
@Component({
161+
imports: [QuillModule],
158162
selector: 'quill-module-test',
159163
template: `
160164
<quill-editor [modules]="{custom: true}" [customModules]="[{path: 'modules/custom', implementation: impl}]"></quill-editor>
@@ -166,6 +170,7 @@ class CustomModuleTestComponent {
166170
}
167171

168172
@Component({
173+
imports: [QuillModule],
169174
selector: 'quill-async-module-test',
170175
template: `
171176
<quill-editor [modules]="{custom: true}" [customModules]="customModules"></quill-editor>
@@ -182,6 +187,7 @@ class CustomAsynchronousModuleTestComponent {
182187
}
183188

184189
@Component({
190+
imports: [QuillModule, FormsModule],
185191
selector: 'quill-link-placeholder-test',
186192
template: `
187193
<quill-editor [ngModel]="content" [linkPlaceholder]="'https://test.de'"></quill-editor>
@@ -198,7 +204,7 @@ describe('Basic QuillEditorComponent', () => {
198204
beforeEach(() => {
199205
TestBed.configureTestingModule({
200206
imports: [
201-
QuillModule
207+
202208
],
203209
providers: QuillModule.forRoot().providers
204210
})
@@ -243,6 +249,7 @@ describe('Basic QuillEditorComponent', () => {
243249
describe('Formats', () => {
244250
describe('object', () => {
245251
@Component({
252+
imports: [QuillModule, FormsModule],
246253
template: `
247254
<quill-editor [(ngModel)]="title" format="object" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
248255
`
@@ -262,8 +269,8 @@ describe('Formats', () => {
262269

263270
beforeEach(async () => {
264271
TestBed.configureTestingModule({
265-
declarations: [ObjectComponent],
266-
imports: [FormsModule, QuillModule],
272+
declarations: [],
273+
imports: [],
267274
providers: QuillModule.forRoot().providers
268275
})
269276

@@ -303,6 +310,7 @@ describe('Formats', () => {
303310

304311
describe('html', () => {
305312
@Component({
313+
imports: [QuillModule, FormsModule],
306314
template: `
307315
<quill-editor [(ngModel)]="title" format="html" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
308316
`
@@ -317,6 +325,7 @@ describe('Formats', () => {
317325
}
318326

319327
@Component({
328+
imports: [QuillModule, FormsModule],
320329
template: `
321330
<quill-editor [(ngModel)]="title" [sanitize]="true" format="html" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
322331
`
@@ -335,8 +344,8 @@ describe('Formats', () => {
335344

336345
beforeEach(async () => {
337346
TestBed.configureTestingModule({
338-
declarations: [HTMLComponent, HTMLSanitizeComponent],
339-
imports: [FormsModule, QuillModule.forRoot()]
347+
declarations: [],
348+
imports: [QuillModule.forRoot()]
340349
})
341350

342351
fixture = TestBed.createComponent(HTMLComponent) as ComponentFixture<HTMLComponent>
@@ -385,6 +394,7 @@ unordered`)
385394

386395
describe('text', () => {
387396
@Component({
397+
imports: [QuillModule, FormsModule],
388398
template: `
389399
<quill-editor [(ngModel)]="title" format="text" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
390400
`
@@ -402,8 +412,8 @@ unordered`)
402412

403413
beforeEach(() => {
404414
TestBed.configureTestingModule({
405-
declarations: [TextComponent],
406-
imports: [FormsModule, QuillModule],
415+
declarations: [],
416+
imports: [],
407417
providers: QuillModule.forRoot().providers
408418
})
409419

@@ -446,6 +456,7 @@ unordered`)
446456

447457
describe('json', () => {
448458
@Component({
459+
imports: [QuillModule, FormsModule],
449460
selector: 'json-valid',
450461
template: `
451462
<quill-editor [(ngModel)]="title" format="json" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
@@ -463,6 +474,7 @@ unordered`)
463474
}
464475

465476
@Component({
477+
imports: [QuillModule, FormsModule],
466478
selector: 'quill-json-invalid',
467479
template: `
468480
<quill-editor [(ngModel)]="title" format="json" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
@@ -484,8 +496,8 @@ unordered`)
484496

485497
beforeEach(async () => {
486498
TestBed.configureTestingModule({
487-
declarations: [JSONComponent, JSONInvalidComponent],
488-
imports: [FormsModule, QuillModule.forRoot()]
499+
declarations: [],
500+
imports: [QuillModule.forRoot()]
489501
})
490502

491503
fixture = TestBed.createComponent(JSONComponent) as ComponentFixture<JSONComponent>
@@ -540,6 +552,7 @@ unordered`)
540552

541553
describe('Dynamic styles', () => {
542554
@Component({
555+
imports: [QuillModule, FormsModule],
543556
template: `
544557
<quill-editor
545558
[bounds]="'self'"
@@ -565,7 +578,6 @@ describe('Dynamic styles', () => {
565578

566579
beforeEach(() => {
567580
TestBed.configureTestingModule({
568-
declarations: [StylingComponent],
569581
imports: [FormsModule, QuillModule],
570582
providers: QuillModule.forRoot().providers
571583
})
@@ -594,6 +606,7 @@ describe('Dynamic styles', () => {
594606

595607
describe('Dynamic classes', () => {
596608
@Component({
609+
imports: [QuillModule, FormsModule],
597610
template: `
598611
<quill-editor
599612
[bounds]="'self'"
@@ -618,7 +631,7 @@ describe('Dynamic classes', () => {
618631

619632
beforeEach(async () => {
620633
TestBed.configureTestingModule({
621-
declarations: [ClassesComponent],
634+
declarations: [],
622635
imports: [FormsModule, QuillModule.forRoot()]
623636
})
624637

@@ -665,7 +678,7 @@ describe('Reactive forms integration', () => {
665678

666679
beforeEach(async () => {
667680
TestBed.configureTestingModule({
668-
declarations: [ReactiveFormTestComponent],
681+
declarations: [],
669682
imports: [FormsModule, ReactiveFormsModule, QuillModule],
670683
providers: QuillModule.forRoot().providers
671684
})
@@ -754,7 +767,7 @@ describe('Advanced QuillEditorComponent', () => {
754767

755768
beforeEach(async () => {
756769
TestBed.configureTestingModule({
757-
declarations: [TestComponent, TestToolbarComponent, CustomLinkPlaceholderTestComponent],
770+
declarations: [],
758771
imports: [FormsModule, QuillModule],
759772
providers: QuillModule.forRoot().providers
760773
}).compileComponents()
@@ -1290,7 +1303,7 @@ describe('QuillEditor - base config', () => {
12901303
beforeEach(async () => {
12911304

12921305
TestBed.configureTestingModule({
1293-
declarations: [TestComponent, TestToolbarComponent],
1306+
declarations: [],
12941307
imports: [FormsModule, QuillModule],
12951308
providers: QuillModule.forRoot({
12961309
customModules: [{
@@ -1367,7 +1380,7 @@ describe('QuillEditor - customModules', () => {
13671380

13681381
beforeEach(() => {
13691382
TestBed.configureTestingModule({
1370-
declarations: [CustomModuleTestComponent],
1383+
declarations: [],
13711384
imports: [FormsModule, QuillModule],
13721385
providers: QuillModule.forRoot().providers
13731386
}).compileComponents()
@@ -1389,7 +1402,7 @@ describe('QuillEditor - customModules (asynchronous)', () => {
13891402

13901403
beforeEach(() => {
13911404
TestBed.configureTestingModule({
1392-
declarations: [CustomAsynchronousModuleTestComponent],
1405+
declarations: [],
13931406
imports: [FormsModule, QuillModule],
13941407
providers: QuillModule.forRoot().providers
13951408
}).compileComponents()
@@ -1408,6 +1421,7 @@ describe('QuillEditor - customModules (asynchronous)', () => {
14081421

14091422
describe('QuillEditor - defaultEmptyValue', () => {
14101423
@Component({
1424+
imports: [QuillModule],
14111425
template: `
14121426
<quill-editor defaultEmptyValue=""></quill-editor>
14131427
`
@@ -1420,7 +1434,7 @@ describe('QuillEditor - defaultEmptyValue', () => {
14201434

14211435
beforeEach(() => {
14221436
TestBed.configureTestingModule({
1423-
declarations: [DefaultEmptyValueTestComponent],
1437+
declarations: [],
14241438
imports: [QuillModule],
14251439
providers: QuillModule.forRoot().providers
14261440
}).compileComponents()
@@ -1437,6 +1451,7 @@ describe('QuillEditor - defaultEmptyValue', () => {
14371451

14381452
describe('QuillEditor - beforeRender', () => {
14391453
@Component({
1454+
imports: [QuillModule],
14401455
template: `
14411456
<quill-editor [beforeRender]="beforeRender"></quill-editor>
14421457
`
@@ -1453,7 +1468,7 @@ describe('QuillEditor - beforeRender', () => {
14531468
const config = { beforeRender: () => Promise.resolve() }
14541469

14551470
TestBed.configureTestingModule({
1456-
declarations: [BeforeRenderTestComponent],
1471+
declarations: [],
14571472
imports: [QuillModule.forRoot(config)],
14581473
})
14591474

@@ -1470,7 +1485,7 @@ describe('QuillEditor - beforeRender', () => {
14701485
const config = { beforeRender: () => Promise.resolve() }
14711486

14721487
TestBed.configureTestingModule({
1473-
declarations: [BeforeRenderTestComponent],
1488+
declarations: [],
14741489
imports: [QuillModule.forRoot(config)],
14751490
})
14761491

projects/ngx-quill/src/lib/quill-editor.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,6 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce
761761
display: inline-block;
762762
}
763763
`
764-
],
765-
standalone: true
764+
]
766765
})
767766
export class QuillEditorComponent extends QuillEditorBase { }

projects/ngx-quill/src/lib/quill-view-html.component.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ describe('Basic QuillViewHTMLComponent', () => {
3131

3232
describe('QuillViewHTMLComponent - content', () => {
3333
@Component({
34+
imports: [QuillModule],
3435
template: `
3536
<quill-view-html [content]="content" [theme]="theme"></quill-view-html>
3637
`
@@ -48,7 +49,7 @@ describe('QuillViewHTMLComponent - content', () => {
4849

4950
beforeEach(() => {
5051
TestBed.configureTestingModule({
51-
declarations: [HTMLComponent],
52+
declarations: [],
5253
imports: [QuillModule],
5354
providers: QuillModule.forRoot().providers
5455
})
@@ -103,6 +104,7 @@ describe('QuillViewHTMLComponent - content', () => {
103104

104105
describe('QuillViewHTMLComponent - sanitize', () => {
105106
@Component({
107+
imports: [QuillModule],
106108
template: `
107109
<quill-view-html [content]="content" [sanitize]="sanitize"></quill-view-html>
108110
`
@@ -116,7 +118,7 @@ describe('QuillViewHTMLComponent - sanitize', () => {
116118

117119
beforeEach(() => {
118120
TestBed.configureTestingModule({
119-
declarations: [HTMLComponent],
121+
declarations: [],
120122
imports: [QuillModule],
121123
providers: QuillModule.forRoot().providers
122124
})

0 commit comments

Comments
 (0)