@happeouikit/content-renderer 3.2.16 → 3.2.18

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.
@@ -4,5 +4,5 @@ declare global {
4
4
  hljs: any;
5
5
  }
6
6
  }
7
- declare const ContentRenderer: ({ content, type, widgetType, createAnchors, useHashAutoscroll, hashAutoscrollTopMargin, forceDefaultLinkTarget, inheritBrandingStyles, addColorBlocks, }: ContentRendererProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const ContentRenderer: ({ content, type, widgetType, createAnchors, useHashAutoscroll, hashAutoscrollTopMargin, forceDefaultLinkTarget, inheritBrandingStyles, addColorBlocks, replaceLinkDomains, }: ContentRendererProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export default ContentRenderer;
@@ -8,4 +8,12 @@ export interface ContentRendererProps {
8
8
  forceDefaultLinkTarget?: boolean;
9
9
  inheritBrandingStyles?: boolean;
10
10
  addColorBlocks?: boolean;
11
+ /**
12
+ * If given, the renderer will replace all links that contain the given domain with the given domain.
13
+ * The domainToReplaceWith can also be an empty string, which will then make the links relative.
14
+ */
15
+ replaceLinkDomains?: {
16
+ domainToReplace: string;
17
+ domainToReplaceWith: string;
18
+ }[];
11
19
  }