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 +1 -1
- package/build/codefence/CodeFence.d.ts +22 -0
- package/build/index.d.ts +4 -3
- package/build/index.js/index-c5583a01.js +29479 -0
- package/build/index.js/index-c5583a01.js.map +1 -0
- package/build/index.js/index.js +2232 -0
- package/build/index.js/index.js.map +1 -0
- package/package.json +55 -53
- package/src/codefence/CodeFence.scss +103 -0
- package/src/codefence/CodeFence.tsx +68 -0
- package/src/index.ts +2 -0
- package/build/index.js +0 -631
- package/build/index.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
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
|
-
|
|
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
|
|
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
|
|
100
|
+
export type DxItemGroupFormat = 'checkbox' | 'radio' | 'dropdown' | 'multiselect';
|
|
100
101
|
export interface DxTabbedContentProps {
|
|
101
102
|
children: React.ReactNode;
|
|
102
103
|
initialTabId?: number;
|