[CORL-498, CORL-495, CORL-539, CORL-496, CORL-494] Email Notifications Support & Framework (#2498)

* chore: renamed old templates

* feat: initial notifications support

* feat: email enhancements

* fix: linting

* feat: initial digesting beheviour

* feat: added notification configuration

* feat: added unsubscribe routes

* fix: fixed failing snapshots/tests bc random ids

* feat: adjusted the save beheviour, added tests

* feat: added tests

* feat: added staff replies

* feat: renamed E-Mail to Email

* feat: enhanced cron processing

* fix: linting + updating tests

* feat: enhanced cron context

* fix: added staff replies back in
This commit is contained in:
Wyatt Johnson
2019-09-05 07:02:26 +00:00
committed by GitHub
parent 0fad1070a6
commit efea0e8e1c
111 changed files with 3439 additions and 382 deletions
+11 -1
View File
@@ -1,14 +1,24 @@
declare module "dompurify" {
interface Config<T extends boolean> {
ADD_TAGS?: string[];
ALLOWED_ATTR?: string[];
ALLOWED_TAGS?: string[];
FORBID_TAGS?: string[];
FORBID_ATTR?: string[];
RETURN_DOM?: boolean;
RETURN_DOM_FRAGMENT?: T;
ALLOW_DATA_ATTR?: boolean;
WHOLE_DOCUMENT?: boolean;
SANITIZE_DOM?: boolean;
IN_PLACE?: boolean;
}
class DOMPurify<T extends boolean = true> {
public setConfig(config: Config<T>): void;
public sanitize(source: string): T extends true ? HTMLBodyElement : string;
public sanitize(
source: HTMLElement | string,
config?: Config<T>
): T extends true ? HTMLBodyElement : string;
public addHook(name: string, callback: (node: Element) => void): void;
}