@hmcts/ccd-case-ui-toolkit 7.4.3-hmcts-label-fix → 7.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -3961,6 +3961,11 @@ declare class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponen
3961
3961
  onEditorKeyDown(event: KeyboardEvent): void;
3962
3962
  normalisePastedHtml(html: string): string;
3963
3963
  normaliseRichTextValue(value: string): string;
3964
+ /**
3965
+ * Gives intentionally blank paragraphs content so Docmosis preserves them as blank lines.
3966
+ * This runs only when the document has meaningful content, so a completely empty field remains empty.
3967
+ */
3968
+ private preserveDocmosisBlankParagraphs;
3964
3969
  private hasMeaningfulRichTextContent;
3965
3970
  syncAccessibilityLater(): void;
3966
3971
  protected addValidators(caseField: CaseField, control: AbstractControl): void;
@@ -3971,6 +3976,13 @@ declare class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponen
3971
3976
  private setToolbarTabStop;
3972
3977
  private getEditableElement;
3973
3978
  private normaliseRichTextControlValue;
3979
+ private differsOnlyByDocmosisBlankParagraphs;
3980
+ /**
3981
+ * Canonicalises visually blank paragraphs to <p></p> before comparing two HTML values.
3982
+ * This lets the editor avoid reloading when only the Docmosis blank-line representation changed.
3983
+ */
3984
+ private clearBlankParagraphs;
3985
+ private replaceBlankParagraphContent;
3974
3986
  private editorHasMeaningfulRichTextContent;
3975
3987
  private richTextRequiredValidator;
3976
3988
  private unsafeHtmlTextValidator;
@@ -5335,8 +5347,6 @@ declare class QueryListItem implements CaseMessage {
5335
5347
  messageIndexInParent?: number | null;
5336
5348
  get lastSubmittedMessage(): QueryListItem;
5337
5349
  get lastSubmittedBy(): string;
5338
- get isLastSubmittedByHmctsStaff(): boolean;
5339
- static isHmctsStaffUser(message: QueryListItem): boolean;
5340
5350
  get lastSubmittedDate(): Date;
5341
5351
  get lastResponseBy(): string;
5342
5352
  get lastResponseDate(): Date | null;
@@ -5406,8 +5416,6 @@ declare class QueryDetailsComponent implements OnChanges, OnInit, OnDestroy {
5406
5416
  constructor(sessionStorageService: SessionStorageService, route: ActivatedRoute, router: Router, abstractConfig: AbstractAppConfig, caseNotifier: CaseNotifier);
5407
5417
  onBack(): void;
5408
5418
  isInternalUser(): boolean;
5409
- isJudiciaryUser(): boolean;
5410
- isHmctsStaffUser(message: QueryListItem): boolean;
5411
5419
  ngOnInit(): void;
5412
5420
  ngOnChanges(): void;
5413
5421
  ngOnDestroy(): void;
@@ -5427,7 +5435,6 @@ declare class QueryListComponent implements OnChanges {
5427
5435
  sortTable(col: QueryListColumn): void;
5428
5436
  getAriaSortHeaderValue(col: QueryListColumn): 'ascending' | 'descending' | 'none';
5429
5437
  showDetails(query: any): void;
5430
- isHmctsStaffUser(message: QueryListItem): boolean;
5431
5438
  private sort;
5432
5439
  private sortDate;
5433
5440
  static ɵfac: i0.ɵɵFactoryDeclaration<QueryListComponent, never>;