@happeouikit/content-renderer 3.5.2 → 3.5.4
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/dist/ContentRenderer.types.d.ts +8 -0
- package/dist/constants.d.ts +2 -0
- package/dist/index.cjs.js +87 -87
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1496 -1449
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
|
@@ -16,6 +16,14 @@ export interface ContentRendererProps {
|
|
|
16
16
|
domainToReplace: string;
|
|
17
17
|
domainToReplaceWith: string;
|
|
18
18
|
}[];
|
|
19
|
+
/**
|
|
20
|
+
* If given, the renderer will mark links that do not belong to the given domains OR a set of trusted domains as unsafe.
|
|
21
|
+
* Unsafe link will get styled with a warning icon and a tooltip indicating that the link may be unsafe.
|
|
22
|
+
* Here's the list of trusted domains that are always considered safe:
|
|
23
|
+
* happeo.com, youtube.com, youtu.be, vimeo.com, google.com, googleusercontent.com, microsoft.com, live.com, office.com, box.com, dropbox.com, linkedin.com, facebook.com, twitter.com, instagram.com,
|
|
24
|
+
*/
|
|
25
|
+
enabledLinkSafetyWarning?: boolean;
|
|
26
|
+
safeLinkDomains?: string[];
|
|
19
27
|
clipboardCopyLabel?: string;
|
|
20
28
|
onSaveToClipboard?: (value: string) => void;
|
|
21
29
|
/**
|
package/dist/constants.d.ts
CHANGED
|
@@ -70,3 +70,5 @@ export const HIGHLIGHJS_CSS: string[];
|
|
|
70
70
|
export const ELEMENT_TYPE_PRE: "PRE";
|
|
71
71
|
export const ELEMENT_TYPE_CODE: "CODE";
|
|
72
72
|
export const CODE_BLOCK_AVAILABLE_LANGUAGES: string[];
|
|
73
|
+
export const TRUSTED_LINK_DOMAINS: string[];
|
|
74
|
+
export const UNTRUSTED_LINK_DOMAINS: string[];
|