@digi-frontend/dgate-api-documentation 1.0.16 → 1.0.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.
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +1 -1
- package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
- package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
- package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
- package/dist/src/constants/index.js +1 -1
- package/dist/src/constants/index.js.map +1 -1
- package/dist/styles.css +482 -476
- package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +1 -0
- package/dist/types/constants/index.d.ts +7 -2
- package/package.json +1 -1
- package/src/components/LivePreview/LivePreview.tsx +7 -5
- package/src/components/MethodAccordion/MethodAccordion.tsx +1 -1
- package/src/components/table/style.scss +11 -0
- package/src/constants/index.ts +0 -2
|
@@ -4,5 +4,6 @@ declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly, }: {
|
|
|
4
4
|
path: string;
|
|
5
5
|
setFieldValue?: (key: string, value: string) => void;
|
|
6
6
|
readOnly?: boolean;
|
|
7
|
+
handleSave: () => void;
|
|
7
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default MethodsAccordion;
|
|
@@ -40,12 +40,17 @@ export declare const methodColorMapping: {
|
|
|
40
40
|
order: number;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
export declare const tagsTableHeaders: {
|
|
43
|
+
export declare const tagsTableHeaders: ({
|
|
44
44
|
id: string;
|
|
45
45
|
label: string;
|
|
46
46
|
sortable: boolean;
|
|
47
47
|
classes: string;
|
|
48
|
-
}
|
|
48
|
+
} | {
|
|
49
|
+
id: string;
|
|
50
|
+
label: string;
|
|
51
|
+
sortable: boolean;
|
|
52
|
+
classes?: undefined;
|
|
53
|
+
})[];
|
|
49
54
|
export declare const paramsTableHeaders: ({
|
|
50
55
|
id: string;
|
|
51
56
|
label: string;
|
package/package.json
CHANGED
|
@@ -7,9 +7,7 @@ import { TransformedOpenApi } from '../../types/transformedOpenApi'
|
|
|
7
7
|
import { useFormikContext } from 'formik'
|
|
8
8
|
import { methodColorMapping, tagsTableHeaders } from '../../constants/index'
|
|
9
9
|
import TagsTable from '../table/tags-table'
|
|
10
|
-
import { Button
|
|
11
|
-
import Tooltip from '../../components/Tooltip/Tooltip'
|
|
12
|
-
import { DeleteIcon, deleteOutlinedIcon, EditIcon } from '../../assets/icons'
|
|
10
|
+
import { Button } from 'digitinary-ui'
|
|
13
11
|
|
|
14
12
|
interface LivePreviewProps {
|
|
15
13
|
transformedData?: TransformedOpenApi
|
|
@@ -69,8 +67,12 @@ const LivePreview: React.FC<LivePreviewProps> = ({ transformedData }) => {
|
|
|
69
67
|
</a>
|
|
70
68
|
) : (
|
|
71
69
|
<Button className={styles.editDescBtn} variant="link" color="action">
|
|
72
|
-
{item.externalDocs?.description
|
|
73
|
-
|
|
70
|
+
{item.externalDocs?.description
|
|
71
|
+
? item.externalDocs?.description.substring(0, 12)
|
|
72
|
+
: '-'}
|
|
73
|
+
{item.externalDocs?.description && item.externalDocs?.description.length > 12
|
|
74
|
+
? '...'
|
|
75
|
+
: ''}
|
|
74
76
|
</Button>
|
|
75
77
|
)}
|
|
76
78
|
|
|
@@ -41,6 +41,7 @@ const MethodsAccordion = ({
|
|
|
41
41
|
path: string
|
|
42
42
|
setFieldValue?: (key: string, value: string) => void
|
|
43
43
|
readOnly?: boolean
|
|
44
|
+
handleSave: () => void
|
|
44
45
|
}) => {
|
|
45
46
|
const [isExpanded, setIsExpanded] = useState({
|
|
46
47
|
request: false,
|
|
@@ -341,7 +342,6 @@ const MethodsAccordion = ({
|
|
|
341
342
|
withSearch={false}
|
|
342
343
|
isMultiple={false}
|
|
343
344
|
clearable={false}
|
|
344
|
-
disabled={readOnly}
|
|
345
345
|
placeholder="200"
|
|
346
346
|
options={[
|
|
347
347
|
{
|
|
@@ -101,6 +101,17 @@
|
|
|
101
101
|
text-overflow: ellipsis;
|
|
102
102
|
overflow: visible !important;
|
|
103
103
|
}
|
|
104
|
+
|
|
105
|
+
&:nth-child(2) {
|
|
106
|
+
.tableData {
|
|
107
|
+
.customBtn .btnContentWrapper .endBtnIcon svg path,
|
|
108
|
+
.customBtn :link .btnContentWrapper .endBtnIcon svg path,
|
|
109
|
+
.customBtn :visited .btnContentWrapper .endBtnIcon svg path {
|
|
110
|
+
stroke-width: 0.1 !important;
|
|
111
|
+
fill: #12131a !important;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
104
115
|
}
|
|
105
116
|
|
|
106
117
|
&:hover {
|
package/src/constants/index.ts
CHANGED
|
@@ -52,13 +52,11 @@ export const tagsTableHeaders = [
|
|
|
52
52
|
id: 'description',
|
|
53
53
|
label: 'Description',
|
|
54
54
|
sortable: false,
|
|
55
|
-
classes: 'requiredParam',
|
|
56
55
|
},
|
|
57
56
|
{
|
|
58
57
|
id: 'externalDocs',
|
|
59
58
|
label: 'External Docs',
|
|
60
59
|
sortable: false,
|
|
61
|
-
classes: 'requiredParam',
|
|
62
60
|
},
|
|
63
61
|
]
|
|
64
62
|
|