genesys-react-components 0.3.0 → 0.3.1-devengage-1574-implementing-code-fences-devengage-1574-implementing-code-fences.219

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.
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import './CodeFence.scss';
3
+ declare global {
4
+ interface Window {
5
+ Prism: any;
6
+ }
7
+ }
8
+ interface IProps {
9
+ value: string | JSX.Element;
10
+ noCollapse?: boolean;
11
+ noHeader?: boolean;
12
+ autoCollapse?: boolean;
13
+ title?: string;
14
+ language?: string;
15
+ showLineNumbers?: boolean;
16
+ indentation?: string;
17
+ className?: string;
18
+ jsonEditor?: boolean;
19
+ innerRef?: any;
20
+ }
21
+ export default function CodeFence(props: IProps): JSX.Element;
22
+ export {};
package/build/index.d.ts CHANGED
@@ -14,7 +14,8 @@ import AlertBlock from './alertblock/AlertBlock';
14
14
  import LoadingPlaceholder from './loadingplaceholder/LoadingPlaceholder';
15
15
  import Tooltip from './tooltip/Tooltip';
16
16
  import CopyButton from './copybutton/CopyButton';
17
- export { DxAccordion, DxAccordionGroup, DxButton, DxItemGroup, DxCheckbox, DxLabel, DxTabbedContent, DxTabPanel, DxTextbox, DxToggle, Tooltip, CopyButton, LoadingPlaceholder, AlertBlock, };
17
+ import CodeFence from './codefence/CodeFence';
18
+ export { DxAccordion, DxAccordionGroup, DxButton, DxItemGroup, DxCheckbox, DxLabel, DxTabbedContent, DxTabPanel, DxTextbox, DxToggle, Tooltip, CopyButton, LoadingPlaceholder, AlertBlock, CodeFence, };
18
19
  export interface StringChangedCallback {
19
20
  (value: string): void;
20
21
  }