@inboxsdk/core 2.1.29 → 2.1.30

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.
@@ -1,2 +1,26 @@
1
+ interface Policy {
2
+ /**
3
+ * This method returns a {@link TrustedTypePolicy},
4
+ * but typescript@5.3.3's lib.dom doesn't support assigning non-strings
5
+ * to {@link HTMLElement.innerHTML}.
6
+ */
7
+ createHTML(string: string): string;
8
+ }
9
+ declare global {
10
+ /**
11
+ * typescript@5.3.3 doesn't ship types for trustedTypes yet.
12
+ * Safari 17.2 doesn't support it either, so a fallback is needed if
13
+ * it's not defined.
14
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/TrustedHTML
15
+ */
16
+ var trustedTypes: {
17
+ createPolicy(name: string, policy: Policy): Policy;
18
+ } | undefined;
19
+ }
20
+ /**
21
+ * Quick function for converting HTML with entities into text without
22
+ * introducing an XSS vulnerability.
23
+ */
1
24
  export default function htmlToText(html: string): string;
25
+ export {};
2
26
  //# sourceMappingURL=html-to-text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"html-to-text.d.ts","sourceRoot":"","sources":["../../../../src/common/html-to-text.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIvD"}
1
+ {"version":3,"file":"html-to-text.d.ts","sourceRoot":"","sources":["../../../../src/common/html-to-text.ts"],"names":[],"mappings":"AAEA,UAAU,MAAM;IACd;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,YAAY,EACZ;QACE,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;KACpD,GACD,SAAS,CAAC;CACf;AAaD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"setup-gmail-interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/injected-js/gmail/setup-gmail-interceptor.ts"],"names":[],"mappings":"AAuCA,MAAM,CAAC,OAAO,UAAU,qBAAqB,SAW5C;AAGD,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,QAinCxC"}
1
+ {"version":3,"file":"setup-gmail-interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/injected-js/gmail/setup-gmail-interceptor.ts"],"names":[],"mappings":"AAuCA,MAAM,CAAC,OAAO,UAAU,qBAAqB,SAW5C;AAGD,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,QAynCxC"}