genesys-react-components 0.3.1 → 0.3.2-devengage-1574-implementing-code-fences.223

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Genesys Cloud Services, Inc.
3
+ Copyright (c) 2023 Genesys Cloud Services, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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
  }
@@ -55,7 +56,7 @@ export interface DxToggleProps {
55
56
  onChange?: BooleanChangedCallback;
56
57
  className?: string;
57
58
  }
58
- export declare type DxTextboxType = 'text' | 'textarea' | 'password' | 'email' | 'date' | 'datetime-local' | 'time' | 'integer' | 'decimal';
59
+ export type DxTextboxType = 'text' | 'textarea' | 'password' | 'email' | 'date' | 'datetime-local' | 'time' | 'integer' | 'decimal';
59
60
  export interface DxTextboxProps {
60
61
  initialValue?: string;
61
62
  value?: string;
@@ -96,7 +97,7 @@ export interface DxItemGroupProps {
96
97
  onItemChanged?: ItemChangedCallback;
97
98
  onItemsChanged?: ItemGroupChangedCallback;
98
99
  }
99
- export declare type DxItemGroupFormat = 'checkbox' | 'radio' | 'dropdown' | 'multiselect';
100
+ export type DxItemGroupFormat = 'checkbox' | 'radio' | 'dropdown' | 'multiselect';
100
101
  export interface DxTabbedContentProps {
101
102
  children: React.ReactNode;
102
103
  initialTabId?: number;