@digi-frontend/dgate-api-documentation 1.0.6 → 1.0.7

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.
Files changed (39) hide show
  1. package/dist/_virtual/index3.js +1 -1
  2. package/dist/_virtual/index4.js +1 -1
  3. package/dist/_virtual/index5.js +1 -1
  4. package/dist/node_modules/digitinary-ui/dist/index.js +1 -1
  5. package/dist/node_modules/digitinary-ui/dist/index.js.map +1 -1
  6. package/dist/node_modules/toposort/index.js +1 -1
  7. package/dist/node_modules/yup/index.esm.js +1 -1
  8. package/dist/src/components/InfoForm/InfoForm.js +1 -1
  9. package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
  10. package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
  11. package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
  12. package/dist/src/constants/index.js +1 -1
  13. package/dist/src/constants/index.js.map +1 -1
  14. package/dist/src/helpers/layout.helper.js +1 -1
  15. package/dist/src/helpers/layout.helper.js.map +1 -1
  16. package/dist/src/layout/layout.js +1 -1
  17. package/dist/src/layout/layout.js.map +1 -1
  18. package/dist/src/layout/layout.module.css.js +1 -1
  19. package/dist/styles.css +220 -323
  20. package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +2 -1
  21. package/dist/types/constants/index.d.ts +4 -12
  22. package/dist/types/types/index.d.ts +18 -0
  23. package/dist/types/types/layout.type.d.ts +1 -9
  24. package/dist/types/types/openApi.d.ts +1 -1
  25. package/package.json +1 -1
  26. package/src/components/InfoForm/InfoForm.module.scss +114 -0
  27. package/src/components/InfoForm/InfoForm.tsx +271 -51
  28. package/src/components/MethodAccordion/MethodAccordion.tsx +2 -2
  29. package/src/components/table/tags-table.tsx +308 -0
  30. package/src/constants/index.ts +21 -0
  31. package/src/layout/layout.tsx +1 -0
  32. package/src/types/openApi.ts +13 -0
  33. package/dist/node_modules/js-yaml/dist/js-yaml.mjs.js +0 -3
  34. package/dist/node_modules/js-yaml/dist/js-yaml.mjs.js.map +0 -1
  35. package/dist/src/components/JsonInput/JsonInput.js +0 -2
  36. package/dist/src/components/JsonInput/JsonInput.js.map +0 -1
  37. package/dist/src/components/JsonInput/style.module.scss.js +0 -2
  38. package/dist/src/components/JsonInput/style.module.scss.js.map +0 -1
  39. package/dist/types/components/JsonInput/JsonInput.d.ts +0 -13
@@ -1 +1 @@
1
- {"version":3,"file":"layout.js","sources":["../../../src/layout/layout.tsx"],"sourcesContent":["import { JSX } from 'react'\r\nimport { Alert, Button } from 'digitinary-ui'\r\nimport MethodsAccordion from '../components/MethodAccordion/MethodAccordion'\r\nimport styles from './layout.module.css'\r\nimport InfoForm from '../components/InfoForm/InfoForm'\r\nimport SectionHead from '../components/SectionHead/SectionHead'\r\nimport { transformOpenApiObject, transformOpenApiObjectToOrigin } from '../helpers/layout.helper'\r\nimport { OpenAPIFile } from '../types/openApi'\r\nimport LivePreview from '../components/LivePreview/LivePreview'\r\nimport { FormikProvider, useFormik } from 'formik'\r\nimport { schemaValidation } from '../validator/form.scheme'\r\nimport { TransformedOpenApi } from '@entities/transformedOpenApi'\r\nimport { methodColorMapping } from '../constants/index'\r\n\r\ninterface ILayoutProps {\r\n openApiJson?: OpenAPIFile\r\n}\r\n\r\nconst Layout = ({ openApiJson, handleSave }: ILayoutProps): JSX.Element => {\r\n const clonedOpenApiJson = structuredClone(openApiJson)\r\n const transformedOpenApi = transformOpenApiObject(clonedOpenApiJson)\r\n const formik = useFormik<TransformedOpenApi>({\r\n initialValues: structuredClone(transformedOpenApi),\r\n validationSchema: schemaValidation,\r\n validateOnMount: true,\r\n onSubmit: (values, { validateForm }) => {\r\n // Handle save logic\r\n const originalOpenApiForm = transformOpenApiObjectToOrigin(values)\r\n handleSave(originalOpenApiForm)\r\n validateForm(values)\r\n },\r\n })\r\n\r\n return (\r\n <div className={styles.docsLayout}>\r\n <Alert className={styles.apiDocAlert} color=\"info\">\r\n Changes are saved and published for API information and each endpoint individually as you\r\n update.\r\n </Alert>\r\n <div className={styles.layoutContainer}>\r\n <div className={`${styles.editorSide} ${styles.docSide}`}>\r\n <SectionHead\r\n className={styles.editorSectionHead}\r\n text={\r\n <div className={styles.editorSectionHead_content}>\r\n API Information\r\n <Button\r\n className={styles.methodForm_submitBtn}\r\n size=\"medium\"\r\n fullWidth={false}\r\n type=\"submit\"\r\n variant=\"contained\"\r\n color=\"primary\"\r\n onClick={formik.submitForm}\r\n >\r\n Save\r\n </Button>\r\n </div>\r\n }\r\n />\r\n <FormikProvider value={formik}>\r\n <InfoForm />\r\n </FormikProvider>\r\n <SectionHead className={styles.editorSectionHead} text=\"API Methods\" />\r\n <FormikProvider value={formik}>\r\n {formik.values.paths.map((path, pathIndex) => (\r\n <>\r\n {path.methods\r\n .sort(\r\n (method) =>\r\n methodColorMapping[method.type].order + methodColorMapping[method.type].order\r\n )\r\n .map((method, methodIndex) => (\r\n <MethodsAccordion\r\n method={method}\r\n path={path.path}\r\n setFieldValue={(key, value) => {\r\n const h = `paths[${pathIndex}].methods[${methodIndex}].${key}`\r\n formik.setFieldValue(h, value)\r\n }}\r\n />\r\n ))}\r\n </>\r\n ))}\r\n </FormikProvider>\r\n </div>\r\n <div className={`${styles.livePreviewSide} ${styles.docSide}`}>\r\n {transformedOpenApi && (\r\n <FormikProvider value={formik}>\r\n <LivePreview transformedData={transformedOpenApi} />\r\n </FormikProvider>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default Layout\r\n"],"names":["Layout","openApiJson","handleSave","clonedOpenApiJson","structuredClone","transformedOpenApi","transformOpenApiObject","formik","useFormik","initialValues","validationSchema","schemaValidation","validateOnMount","onSubmit","values","validateForm","originalOpenApiForm","transformOpenApiObjectToOrigin","_jsxs","jsxs","className","styles","docsLayout","children","_jsx","jsx","Alert","apiDocAlert","color","layoutContainer","editorSide","docSide","SectionHead","editorSectionHead","text","editorSectionHead_content","Button","methodForm_submitBtn","size","fullWidth","type","variant","onClick","submitForm","FormikProvider","value","InfoForm","paths","map","path","pathIndex","_Fragment","methods","sort","method","methodColorMapping","order","methodIndex","MethodsAccordion","setFieldValue","key","h","livePreviewSide","LivePreview","transformedData"],"mappings":"sqBAkBM,MAAAA,EAAS,EAAGC,cAAaC,iBAC7B,MAAMC,EAAoBC,gBAAgBH,GACpCI,EAAqBC,EAAuBH,GAC5CI,EAASC,EAA8B,CAC3CC,cAAeL,gBAAgBC,GAC/BK,iBAAkBC,EAClBC,iBAAiB,EACjBC,SAAU,CAACC,GAAUC,mBAEnB,MAAMC,EAAsBC,EAA+BH,GAC3DZ,EAAWc,GACXD,EAAaD,EAAO,IAIxB,OACEI,EAAAC,KAAA,MAAA,CAAKC,UAAWC,EAAOC,WACrBC,SAAA,CAAAC,EAAAC,IAACC,EAAKA,MAAC,CAAAN,UAAWC,EAAOM,YAAaC,MAAM,OAAML,SAAA,sGAIlDL,EAAAC,KAAA,MAAA,CAAKC,UAAWC,EAAOQ,0BACrBX,EAAKC,KAAA,MAAA,CAAAC,UAAW,GAAGC,EAAOS,cAAcT,EAAOU,UAASR,SAAA,CACtDC,EAAAA,IAACQ,EAAW,CACVZ,UAAWC,EAAOY,kBAClBC,KACEhB,EAAKC,KAAA,MAAA,CAAAC,UAAWC,EAAOc,0BAAyBZ,SAAA,CAAA,kBAE9CC,MAACY,EAAAA,QACChB,UAAWC,EAAOgB,qBAClBC,KAAK,SACLC,WAAW,EACXC,KAAK,SACLC,QAAQ,YACRb,MAAM,UACNc,QAASnC,EAAOoC,WAGTpB,SAAA,cAIfC,EAAAA,IAACoB,GAAeC,MAAOtC,EAAMgB,SAC3BC,MAACsB,EAAQ,MAEXtB,MAACQ,EAAW,CAACZ,UAAWC,EAAOY,kBAAmBC,KAAK,gBACvDV,MAACoB,EAAc,CAACC,MAAOtC,EACpBgB,SAAAhB,EAAOO,OAAOiC,MAAMC,KAAI,CAACC,EAAMC,IAC9B1B,EAAAA,IACG2B,EAAAA,SAAA,CAAA5B,SAAA0B,EAAKG,QACHC,MACEC,GACCC,EAAmBD,EAAOd,MAAMgB,MAAQD,EAAmBD,EAAOd,MAAMgB,QAE3ER,KAAI,CAACM,EAAQG,IACZjC,EAAAA,IAACkC,EAAgB,CACfJ,OAAQA,EACRL,KAAMA,EAAKA,KACXU,cAAe,CAACC,EAAKf,KACnB,MAAMgB,EAAI,SAASX,cAAsBO,MAAgBG,IACzDrD,EAAOoD,cAAcE,EAAGhB,EAAM,eAQ9CrB,EAAAC,IAAA,MAAA,CAAKL,UAAW,GAAGC,EAAOyC,mBAAmBzC,EAAOU,UAASR,SAC1DlB,GACCmB,MAACoB,EAAc,CAACC,MAAOtC,WACrBiB,EAAAA,IAACuC,GAAYC,gBAAiB3D,aAMzC"}
1
+ {"version":3,"file":"layout.js","sources":["../../../src/layout/layout.tsx"],"sourcesContent":["import { JSX } from 'react'\r\nimport { Alert } from 'digitinary-ui'\r\nimport MethodsAccordion from '../components/MethodAccordion/MethodAccordion'\r\nimport styles from './layout.module.css'\r\nimport InfoForm from '../components/InfoForm/InfoForm'\r\nimport SectionHead from '../components/SectionHead/SectionHead'\r\nimport { transformOpenApiObject, transformOpenApiObjectToOrigin } from '../helpers/layout.helper'\r\nimport { OpenAPIFile } from '../types/openApi'\r\nimport LivePreview from '../components/LivePreview/LivePreview'\r\nimport { FormikProvider, useFormik } from 'formik'\r\nimport * as Yup from 'yup'\r\nimport { schemaValidation } from '../validator/form.scheme'\r\nimport { TransformedOpenApi } from '@entities/transformedOpenApi'\r\n\r\ninterface ILayoutProps {\r\n openApiJson?: OpenAPIFile\r\n}\r\n\r\nconst Layout = ({ openApiJson, handleSave }: ILayoutProps): JSX.Element => {\r\n const transformedOpenApi = transformOpenApiObject(openApiJson)\r\n const formik = useFormik<TransformedOpenApi>({\r\n initialValues: structuredClone(transformedOpenApi),\r\n validationSchema: schemaValidation,\r\n validateOnMount: true,\r\n onSubmit: (values, { validateForm }) => {\r\n // Handle save logic\r\n handleSave(transformOpenApiObjectToOrigin(values))\r\n validateForm(values)\r\n },\r\n })\r\n\r\n return (\r\n <div className={styles.docsLayout}>\r\n <Alert className={styles.apiDocAlert} color=\"info\">\r\n Changes are saved and published for API information and each endpoint individually as you\r\n update.\r\n </Alert>\r\n <div className={styles.layoutContainer}>\r\n <div className={`${styles.editorSide} ${styles.docSide}`}>\r\n <SectionHead className={styles.editorSectionHead} text=\"API Information\" />\r\n <FormikProvider value={formik}>\r\n <InfoForm />\r\n </FormikProvider>\r\n <SectionHead className={styles.editorSectionHead} text=\"API Methods\" />\r\n <FormikProvider value={formik}>\r\n {formik.values.paths.map((path, pathIndex) => (\r\n <>\r\n {path.methods.map((method, methodIndex) => (\r\n <MethodsAccordion\r\n method={method}\r\n path={path.path}\r\n setFieldValue={(key, value) => {\r\n const h = `paths[${pathIndex}].methods[${methodIndex}].${key}`\r\n formik.setFieldValue(h, value)\r\n }}\r\n handleSave={formik.submitForm}\r\n />\r\n ))}\r\n </>\r\n ))}\r\n </FormikProvider>\r\n </div>\r\n <div className={`${styles.livePreviewSide} ${styles.docSide}`}>\r\n {transformedOpenApi && (\r\n <FormikProvider value={formik}>\r\n <LivePreview transformedData={transformedOpenApi} />\r\n </FormikProvider>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default Layout\r\n"],"names":["Layout","openApiJson","handleSave","transformedOpenApi","transformOpenApiObject","formik","useFormik","initialValues","structuredClone","validationSchema","schemaValidation","validateOnMount","onSubmit","values","validateForm","transformOpenApiObjectToOrigin","_jsxs","className","styles","docsLayout","children","_jsx","Alert","apiDocAlert","color","layoutContainer","jsxs","editorSide","docSide","jsx","SectionHead","editorSectionHead","text","FormikProvider","value","InfoForm","paths","map","path","pathIndex","_Fragment","Fragment","methods","method","methodIndex","MethodsAccordion","setFieldValue","key","h","submitForm","livePreviewSide","LivePreview","transformedData"],"mappings":"2mBAkBM,MAAAA,EAAS,EAAGC,cAAaC,iBAC7B,MAAMC,EAAqBC,EAAuBH,GAC5CI,EAASC,EAA8B,CAC3CC,cAAeC,gBAAgBL,GAC/BM,iBAAkBC,EAClBC,iBAAiB,EACjBC,SAAU,CAACC,GAAUC,mBAEnBZ,EAAWa,EAA+BF,IAC1CC,EAAaD,EAAO,IAIxB,OACEG,OAAA,MAAA,CAAKC,UAAWC,EAAOC,WACrBC,SAAA,CAAAC,EAAAA,IAACC,EAAKA,MAAA,CAACL,UAAWC,EAAOK,YAAaC,MAAM,OAGpCJ,SAAA,sGACRJ,EAAAA,YAAKC,UAAWC,EAAOO,gBAAeL,SAAA,CACpCJ,EAAKU,KAAA,MAAA,CAAAT,UAAW,GAAGC,EAAOS,cAAcT,EAAOU,UAC7CR,SAAA,CAAAC,EAAAQ,IAACC,EAAW,CAACb,UAAWC,EAAOa,kBAAmBC,KAAK,oBACvDX,EAACQ,IAAAI,GAAeC,MAAO7B,EAAMe,SAC3BC,EAACQ,IAAAM,EAAW,CAAA,KAEdd,EAACQ,IAAAC,EAAY,CAAAb,UAAWC,EAAOa,kBAAmBC,KAAK,gBACvDX,MAACY,EAAc,CAACC,MAAO7B,EACpBe,SAAAf,EAAOQ,OAAOuB,MAAMC,KAAI,CAACC,EAAMC,IAC9BlB,EAAAA,IAAAmB,EAAAC,SAAA,CAAArB,SACGkB,EAAKI,QAAQL,KAAI,CAACM,EAAQC,IACzBvB,EAAAA,IAACwB,EACC,CAAAF,OAAQA,EACRL,KAAMA,EAAKA,KACXQ,cAAe,CAACC,EAAKb,KACnB,MAAMc,EAAI,SAAST,cAAsBK,MAAgBG,IACzD1C,EAAOyC,cAAcE,EAAGd,EAAM,EAEhChC,WAAYG,EAAO4C,wBAO/B5B,MAAA,MAAA,CAAKJ,UAAW,GAAGC,EAAOgC,mBAAmBhC,EAAOU,UAASR,SAC1DjB,GACCkB,MAACY,EAAe,CAAAC,MAAO7B,EACrBe,SAAAC,EAAAQ,IAACsB,EAAY,CAAAC,gBAAiBjD,aAMzC"}
@@ -1,2 +1,2 @@
1
- import e from"../../node_modules/style-inject/dist/style-inject.es.js";var o={docsLayout:"layout-module_docsLayout__vDeK7",apiDocAlert:"layout-module_apiDocAlert__cSDp2",layoutContainer:"layout-module_layoutContainer__qBWib",editorSide:"layout-module_editorSide__hWc6O",editorSectionHead:"layout-module_editorSectionHead__chDdH",editorSectionHead_content:"layout-module_editorSectionHead_content__DQa6a",livePreviewSide:"layout-module_livePreviewSide__Q5HsZ",docSide:"layout-module_docSide__qLt4E"};e(".layout-module_docsLayout__vDeK7{display:flex;flex-direction:column;height:100vh;max-height:100%;overflow:hidden;.layout-module_apiDocAlert__cSDp2{border-radius:0}.layout-module_layoutContainer__qBWib{display:grid;grid-template-columns:60% 40%;height:100%;max-height:100%;max-width:100%;overflow:hidden;width:100%;.layout-module_editorSide__hWc6O{background-color:#fff;padding-bottom:1.25rem;.layout-module_editorSectionHead__chDdH{span{width:100%}.layout-module_editorSectionHead_content__DQa6a{align-items:center;display:flex;justify-content:space-between;button{width:6.25rem}}}}.layout-module_livePreviewSide__Q5HsZ{background-color:#f8f9fb;padding:1.875rem}.layout-module_docSide__qLt4E{max-height:100%;overflow-x:clip;overflow-y:overlay;scroll-behavior:smooth}}}");export{o as default};
1
+ import o from"../../node_modules/style-inject/dist/style-inject.es.js";var e={docsLayout:"layout-module_docsLayout__vDeK7",apiDocAlert:"layout-module_apiDocAlert__cSDp2",layoutContainer:"layout-module_layoutContainer__qBWib",editorSide:"layout-module_editorSide__hWc6O",livePreviewSide:"layout-module_livePreviewSide__Q5HsZ",docSide:"layout-module_docSide__qLt4E"};o(".layout-module_docsLayout__vDeK7{display:flex;flex-direction:column;height:100vh;max-height:100%;overflow:hidden;.layout-module_apiDocAlert__cSDp2{border-radius:0}.layout-module_layoutContainer__qBWib{display:grid;grid-template-columns:60% 40%;height:100%;max-height:100%;max-width:100%;overflow:hidden;width:100%;.layout-module_editorSide__hWc6O{background-color:#fff;padding-bottom:1.25rem}.layout-module_livePreviewSide__Q5HsZ{background-color:#f8f9fb;padding:1.875rem}.layout-module_docSide__qLt4E{max-height:100%;overflow-x:clip;overflow-y:overlay;scroll-behavior:smooth}}}");export{e as default};
2
2
  //# sourceMappingURL=layout.module.css.js.map
package/dist/styles.css CHANGED
@@ -1,4 +1,104 @@
1
- .methodAccordion {
1
+ #common-dialog.dialog-content-wrapper {
2
+ overflow: visible !important;
3
+ max-height: 100%;
4
+ width: 22.1875rem;
5
+ }
6
+ #common-dialog.dialog-content-wrapper .dialog-content-root {
7
+ overflow: visible !important;
8
+ border-radius: 0.625rem;
9
+ max-height: 100%;
10
+ }
11
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content {
12
+ padding: 0 1.875rem !important;
13
+ overflow: visible !important;
14
+ max-height: 100%;
15
+ }
16
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog {
17
+ position: relative;
18
+ }
19
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .close-icon {
20
+ position: absolute;
21
+ z-index: 1;
22
+ top: 1.5rem;
23
+ right: 0;
24
+ transform: translate(0.625rem, -0.625rem);
25
+ cursor: pointer;
26
+ }
27
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header {
28
+ display: flex;
29
+ padding-top: 0.5rem;
30
+ position: relative;
31
+ }
32
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon {
33
+ margin-top: 1rem;
34
+ margin-bottom: 1.5rem;
35
+ margin-inline: auto;
36
+ }
37
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info path {
38
+ stroke: #12131a;
39
+ }
40
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line {
41
+ stroke: #12131a;
42
+ }
43
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line + path {
44
+ fill: #12131a;
45
+ }
46
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning path {
47
+ stroke: #faad14;
48
+ }
49
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning line {
50
+ stroke: #faad14;
51
+ }
52
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error path {
53
+ stroke: #da3f3f;
54
+ }
55
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line {
56
+ stroke: #da3f3f;
57
+ }
58
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line + path {
59
+ fill: #da3f3f;
60
+ }
61
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title {
62
+ font-size: 1.5rem;
63
+ font-weight: 500;
64
+ line-height: 1.875rem;
65
+ text-align: center;
66
+ margin-bottom: 0.625rem;
67
+ }
68
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.error-title {
69
+ color: #da3f3f;
70
+ }
71
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.warning-title {
72
+ color: #faad14;
73
+ }
74
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-footer {
75
+ display: flex;
76
+ gap: 1.25rem;
77
+ margin-top: 1.875rem;
78
+ }.containerTitleDrawer {
79
+ height: 64px;
80
+ min-height: 64px;
81
+ display: flex;
82
+ flex-direction: row;
83
+ justify-content: space-between;
84
+ align-items: center;
85
+ background-color: #f1f2f6;
86
+ padding: 0 30px 0 30px;
87
+ width: 100%;
88
+ }
89
+ .containerTitleDrawer span {
90
+ color: #12131a;
91
+ font-weight: 600;
92
+ font-size: 18px;
93
+ line-height: 25px;
94
+ letter-spacing: 0em;
95
+ }
96
+ .containerTitleDrawer svg path {
97
+ stroke: #000 !important;
98
+ }
99
+ .containerTitleDrawer .closeIcon {
100
+ cursor: pointer;
101
+ }.methodAccordion {
2
102
  border: none !important;
3
103
  box-shadow: none !important;
4
104
  margin-bottom: 0 !important;
@@ -147,12 +247,6 @@
147
247
  padding: 1.25rem !important;
148
248
  padding: 0 !important;
149
249
  }
150
- .methodAccordion .methodAccordionContent .requestAccordion :global(.details.show) :global(.jsonField) div textarea,
151
- .methodAccordion .methodAccordionContent .responseAccordion :global(.details.show) :global(.jsonField) div textarea {
152
- border-top-right-radius: 0;
153
- border-top-left-radius: 0;
154
- height: 10rem;
155
- }
156
250
  .methodAccordion .methodAccordionContent .requestAccordion :global(.details.show .textArea .containerTextArea),
157
251
  .methodAccordion .methodAccordionContent .responseAccordion :global(.details.show .textArea .containerTextArea) {
158
252
  display: flex;
@@ -238,22 +332,10 @@
238
332
  width: 0.625rem;
239
333
  aspect-ratio: 1/1;
240
334
  border-radius: 100%;
241
- }.apiInfoForm {
242
- display: grid;
243
- padding: 1.25rem 1.875rem;
244
- gap: 1.25rem;
245
- }
246
- .apiInfoForm .apiDocRow {
247
- display: grid;
248
- grid-template-columns: 1fr 1fr;
249
- gap: 1.25rem;
250
335
  }
251
- .apiInfoForm .apiInfoForm_tagsChips {
252
- margin-top: -1.25rem;
253
- }p.apiName {
254
- font-size: 40px;
255
- line-height: 30px;
256
- font-weight: 500;
336
+ .methodAccordion .methodAccordionContent .methodForm_submitBtn {
337
+ height: 1.25rem !important;
338
+ width: 4.25rem;
257
339
  }.tooltip-custom-wrapper {
258
340
  display: flex;
259
341
  }
@@ -344,6 +426,22 @@
344
426
  z-index: 20000000000;
345
427
  top: -0.6rem;
346
428
  transform-origin: center !important;
429
+ }.apiInfoForm {
430
+ display: grid;
431
+ padding: 1.25rem 1.875rem;
432
+ gap: 1.25rem;
433
+ }
434
+ .apiInfoForm .apiDocRow {
435
+ display: grid;
436
+ grid-template-columns: 1fr 1fr;
437
+ gap: 1.25rem;
438
+ }
439
+ .apiInfoForm .apiInfoForm_tagsChips {
440
+ margin-top: -1.25rem;
441
+ }
442
+ .apiInfoForm .apiInfoForm_submitBtn {
443
+ height: 1.25rem !important;
444
+ width: 4.25rem;
347
445
  }:root {
348
446
  --white: #fff;
349
447
  --Gray-5: #f1f2f6;
@@ -573,211 +671,111 @@
573
671
  .tableSectionContainer .descArrow path,
574
672
  .tableSectionContainer .defaultSortArrow path {
575
673
  fill: var(--Gray-50);
576
- }.containerTitleDrawer {
577
- height: 64px;
578
- min-height: 64px;
579
- display: flex;
580
- flex-direction: row;
581
- justify-content: space-between;
582
- align-items: center;
583
- background-color: #f1f2f6;
584
- padding: 0 30px 0 30px;
585
- width: 100%;
586
- }
587
- .containerTitleDrawer span {
588
- color: #12131a;
589
- font-weight: 600;
590
- font-size: 18px;
591
- line-height: 25px;
592
- letter-spacing: 0em;
593
- }
594
- .containerTitleDrawer svg path {
595
- stroke: #000 !important;
596
- }
597
- .containerTitleDrawer .closeIcon {
598
- cursor: pointer;
599
- }#common-dialog.dialog-content-wrapper {
600
- overflow: visible !important;
601
- max-height: 100%;
602
- width: 22.1875rem;
603
- }
604
- #common-dialog.dialog-content-wrapper .dialog-content-root {
605
- overflow: visible !important;
606
- border-radius: 0.625rem;
607
- max-height: 100%;
608
- }
609
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content {
610
- padding: 0 1.875rem !important;
611
- overflow: visible !important;
612
- max-height: 100%;
613
- }
614
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog {
615
- position: relative;
616
- }
617
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .close-icon {
618
- position: absolute;
619
- z-index: 1;
620
- top: 1.5rem;
621
- right: 0;
622
- transform: translate(0.625rem, -0.625rem);
623
- cursor: pointer;
624
- }
625
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header {
626
- display: flex;
627
- padding-top: 0.5rem;
628
- position: relative;
629
- }
630
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon {
631
- margin-top: 1rem;
632
- margin-bottom: 1.5rem;
633
- margin-inline: auto;
634
- }
635
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info path {
636
- stroke: #12131a;
637
- }
638
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line {
639
- stroke: #12131a;
640
- }
641
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line + path {
642
- fill: #12131a;
643
- }
644
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning path {
645
- stroke: #faad14;
646
- }
647
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning line {
648
- stroke: #faad14;
649
- }
650
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error path {
651
- stroke: #da3f3f;
652
- }
653
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line {
654
- stroke: #da3f3f;
655
- }
656
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line + path {
657
- fill: #da3f3f;
658
- }
659
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title {
660
- font-size: 1.5rem;
661
- font-weight: 500;
662
- line-height: 1.875rem;
663
- text-align: center;
664
- margin-bottom: 0.625rem;
665
- }
666
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.error-title {
667
- color: #da3f3f;
668
- }
669
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.warning-title {
670
- color: #faad14;
671
- }
672
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-footer {
673
- display: flex;
674
- gap: 1.25rem;
675
- margin-top: 1.875rem;
676
- }.json-editor-container .json-editor-label {
677
- font-size: 0.875rem;
678
- font-weight: 600;
679
- line-height: 1.25rem;
680
- margin-bottom: 0.3125rem;
674
+ }:root {
675
+ --white: #fff;
676
+ --Gray-5: #f1f2f6;
677
+ --Gray-10: #ebecf2;
678
+ --Gray-20: #d8dae5;
679
+ --Gray-30: #babdcc;
680
+ --Gray-40: #9a9eb2;
681
+ --Gray-50: #828699;
682
+ --Gray-60: #696c80;
683
+ --Gray-100: #12131a;
684
+ --black: #000;
685
+ --primary-static: #4d75d8;
686
+ --primary-hover: #7c9bea;
687
+ --primary-active: #2c4fa4;
688
+ --primary-disabled: #9a9eb2;
689
+ --secondary-static: #40e0d0;
690
+ --secondary-hover: #9efcf2;
691
+ --secondary-active: #2fa599;
692
+ --error-static: #da3f3f;
693
+ --error-hover: #e75d5d;
694
+ --error-active: #bb3232;
695
+ --success-static: #3aaa35;
696
+ --success-hover: #5cda56;
697
+ --success-active: #2a8a25;
698
+ --info-static: #c6c6c6;
699
+ --info-hover: #e4e4e4;
700
+ --info-active: #979797;
701
+ --warning-static: #faad14;
702
+ --warning-hover: #f9be4a;
703
+ --warning-active: #db9711;
704
+ --action-static: #142452;
705
+ --action-hover: #21387d;
706
+ --action-active: #000000;
707
+ --color-info-primary: #3a6cd1;
708
+ --primary-font-color: #142452;
709
+ --placeholder-font-color: #babdcc;
710
+ --warning-font-color: #ce2828;
711
+ --alert-error: #da3f3f;
712
+ --alert-light-error: #f4c5c5;
713
+ --alert-success: #3aaa35;
714
+ --alert-light-success: #c4e5c2;
715
+ --alert-info: #8eaaf1;
716
+ --alert-light-info: #c4d3f1;
717
+ --alert-warning: #faad14;
718
+ --alert-light-warning: #fde6b8;
719
+ --border-focus: #3a6cd1;
720
+ --tooltip-background-color: #202f5b;
721
+ --text-color-primary: #142452;
722
+ --text-color-secondary: #ffff;
723
+ --text-color-neutral: #828699;
724
+ --text-color-tertiary: #808080;
725
+ --text-color-note: #242424;
726
+ --text-color-quaternary: #142452;
727
+ --text-color-disabled: #ffff;
728
+ --background-color-white-primary: #fff;
729
+ --background-color-light-primary: #8eaaf1;
730
+ --background-color-white-secondary: #fff;
731
+ --background-color-primary-dark: #142452;
732
+ --background-color-gray-5: #f1f2f6;
733
+ --background-color-gray-30: #ebecf2;
734
+ --background-color-tertiary-light: #2c4fa4;
735
+ --background-color-gray-10: #f1f2f6;
736
+ --background-color-gray-40: #ebecf2;
737
+ --background-color-light-blue: #dfe7f8;
738
+ --border-color-primary: #babdcc;
739
+ --border-color-secondary: #d8dae5;
740
+ --border-color-neutral: #ebecf2;
741
+ --border-color-tertiary: #ebecf2;
742
+ --border-color-gray: #ebecf2;
743
+ --border-color-hover: #142452;
744
+ --border-color-active: #3a6cd1;
745
+ --icon-color-main: #142452;
746
+ --icon-color-secondary: #000;
747
+ --icon-color-quaternary: #babdcc;
748
+ --icon-color-disabled: #9a9eb2;
749
+ --link-btn-primary-color: #3a6cd1;
750
+ --button-color-static: #4d75d8;
751
+ --button-color-hover: #7c9bea;
752
+ --button-color-active: #2c4fa4;
753
+ --alert-natural: #c4d3f1;
681
754
  }
682
- .json-editor-container .json-editor {
755
+
756
+ .drawerItemContainer {
683
757
  display: flex;
684
758
  flex-direction: column;
685
- background-color: #142452;
686
- width: 100%;
687
- border-radius: 0.3125rem;
688
- margin-bottom: -0.5rem;
689
- outline: 1px solid transparent;
690
- position: relative;
691
- }
692
- .json-editor-container .json-editor .actions-container {
693
- width: 100%;
694
- height: 5rem;
695
- padding: 1.25rem;
696
- border-radius: 0 0 0.3125rem 0.3125rem;
697
- background: #101e47;
698
- display: flex;
699
- flex-direction: row;
700
- gap: 1.25rem;
701
- align-items: center;
702
- }
703
- .json-editor-container .json-editor .actions-container .validate {
704
- color: #fff;
705
- text-align: center;
706
- font-size: 1rem;
707
- font-style: normal;
708
- font-weight: 600;
709
- line-height: 1.25rem;
710
- width: 8.75rem;
711
- padding: 0.625rem 2.25rem;
712
- background-color: rgba(240, 248, 255, 0);
713
- border-radius: 0.3125rem;
714
- border: 0.0625rem solid #4d75d8;
715
- cursor: pointer;
716
759
  }
717
- .json-editor-container .json-editor .actions-container .validate:disabled {
718
- color: #babdcc;
719
- border-color: #a2a5b6;
720
- }
721
- .json-editor-container .json-editor .actions-container .beautify {
722
- color: #fff;
723
- text-align: center;
724
- font-size: 1rem;
725
- font-style: normal;
760
+ .drawerItemContainer .title {
761
+ color: #000;
726
762
  font-weight: 600;
727
- line-height: 1.25rem;
728
- width: 8.75rem;
729
- padding: 0.625rem 2.25rem;
730
- background-color: rgba(240, 248, 255, 0);
731
- border-radius: 0.3125rem;
732
- border: 1px solid #babdcc;
733
- cursor: pointer;
734
- }
735
- .json-editor-container .json-editor .actions-container .beautify:disabled {
736
- color: #a2a5b6;
737
- border-color: #a2a5b6;
763
+ font-size: 24px;
764
+ line-height: 35px;
765
+ margin-bottom: 3px;
766
+ margin-top: 1.5rem;
738
767
  }
739
- .json-editor-container .json-editor textarea {
740
- width: 100%;
741
- padding: 1.25rem;
742
- font-size: 0.875rem;
743
- font-style: normal;
768
+ .drawerItemContainer .text {
769
+ color: #000;
744
770
  font-weight: 400;
745
- line-height: 1.25rem;
746
- color: white;
747
- height: 25rem;
748
- background-color: #142452;
749
- border: none;
750
- resize: none;
751
- border-radius: 0.3125rem;
752
- }
753
- .json-editor-container .json-editor textarea:focus, .json-editor-container .json-editor textarea:focus-within, .json-editor-container .json-editor textarea:focus-visible .json-editor-container .json-editor textarea:active {
754
- outline: none;
755
- border: none;
756
- }
757
- .json-editor-container .json-editor textarea::-webkit-scrollbar {
758
- width: 0.5rem;
759
- }
760
- .json-editor-container .json-editor textarea::-webkit-scrollbar-track {
761
- background-color: #828699;
762
- border: none;
763
- border-color: transparent;
764
- border-top-right-radius: 0.25rem;
765
- border-top-left-radius: 0;
766
- }
767
- .json-editor-container .json-editor textarea::-webkit-scrollbar-thumb {
768
- background-color: #d8dae5;
769
- border: none;
770
- border-color: transparent;
771
- border-radius: 0;
771
+ font-size: 24px;
772
+ line-height: 25px;
772
773
  }
773
- .json-editor-container .json-editor.invalid {
774
- outline: 1px solid #ce2828 !important;
774
+ .drawerItemContainer .color-green {
775
+ color: var(--color-success);
775
776
  }
776
- .json-editor-container .error-message {
777
- color: #ce2828;
778
- font-size: 0.75rem;
779
- line-height: 1.25rem;
780
- margin-top: 0.625rem;
777
+ .drawerItemContainer .color-red {
778
+ color: var(--color-error);
781
779
  }.chips-container {
782
780
  width: 100%;
783
781
  }
@@ -893,109 +891,8 @@
893
891
  }
894
892
  .chips-container .show-btn:active .show-btn-icon-container .show-btn-icon path {
895
893
  fill: #2c4fa4;
896
- }:root {
897
- --white: #fff;
898
- --Gray-5: #f1f2f6;
899
- --Gray-10: #ebecf2;
900
- --Gray-20: #d8dae5;
901
- --Gray-30: #babdcc;
902
- --Gray-40: #9a9eb2;
903
- --Gray-50: #828699;
904
- --Gray-60: #696c80;
905
- --Gray-100: #12131a;
906
- --black: #000;
907
- --primary-static: #4d75d8;
908
- --primary-hover: #7c9bea;
909
- --primary-active: #2c4fa4;
910
- --primary-disabled: #9a9eb2;
911
- --secondary-static: #40e0d0;
912
- --secondary-hover: #9efcf2;
913
- --secondary-active: #2fa599;
914
- --error-static: #da3f3f;
915
- --error-hover: #e75d5d;
916
- --error-active: #bb3232;
917
- --success-static: #3aaa35;
918
- --success-hover: #5cda56;
919
- --success-active: #2a8a25;
920
- --info-static: #c6c6c6;
921
- --info-hover: #e4e4e4;
922
- --info-active: #979797;
923
- --warning-static: #faad14;
924
- --warning-hover: #f9be4a;
925
- --warning-active: #db9711;
926
- --action-static: #142452;
927
- --action-hover: #21387d;
928
- --action-active: #000000;
929
- --color-info-primary: #3a6cd1;
930
- --primary-font-color: #142452;
931
- --placeholder-font-color: #babdcc;
932
- --warning-font-color: #ce2828;
933
- --alert-error: #da3f3f;
934
- --alert-light-error: #f4c5c5;
935
- --alert-success: #3aaa35;
936
- --alert-light-success: #c4e5c2;
937
- --alert-info: #8eaaf1;
938
- --alert-light-info: #c4d3f1;
939
- --alert-warning: #faad14;
940
- --alert-light-warning: #fde6b8;
941
- --border-focus: #3a6cd1;
942
- --tooltip-background-color: #202f5b;
943
- --text-color-primary: #142452;
944
- --text-color-secondary: #ffff;
945
- --text-color-neutral: #828699;
946
- --text-color-tertiary: #808080;
947
- --text-color-note: #242424;
948
- --text-color-quaternary: #142452;
949
- --text-color-disabled: #ffff;
950
- --background-color-white-primary: #fff;
951
- --background-color-light-primary: #8eaaf1;
952
- --background-color-white-secondary: #fff;
953
- --background-color-primary-dark: #142452;
954
- --background-color-gray-5: #f1f2f6;
955
- --background-color-gray-30: #ebecf2;
956
- --background-color-tertiary-light: #2c4fa4;
957
- --background-color-gray-10: #f1f2f6;
958
- --background-color-gray-40: #ebecf2;
959
- --background-color-light-blue: #dfe7f8;
960
- --border-color-primary: #babdcc;
961
- --border-color-secondary: #d8dae5;
962
- --border-color-neutral: #ebecf2;
963
- --border-color-tertiary: #ebecf2;
964
- --border-color-gray: #ebecf2;
965
- --border-color-hover: #142452;
966
- --border-color-active: #3a6cd1;
967
- --icon-color-main: #142452;
968
- --icon-color-secondary: #000;
969
- --icon-color-quaternary: #babdcc;
970
- --icon-color-disabled: #9a9eb2;
971
- --link-btn-primary-color: #3a6cd1;
972
- --button-color-static: #4d75d8;
973
- --button-color-hover: #7c9bea;
974
- --button-color-active: #2c4fa4;
975
- --alert-natural: #c4d3f1;
976
- }
977
-
978
- .drawerItemContainer {
979
- display: flex;
980
- flex-direction: column;
981
- }
982
- .drawerItemContainer .title {
983
- color: #000;
984
- font-weight: 600;
985
- font-size: 24px;
986
- line-height: 35px;
987
- margin-bottom: 3px;
988
- margin-top: 1.5rem;
989
- }
990
- .drawerItemContainer .text {
991
- color: #000;
992
- font-weight: 400;
993
- font-size: 24px;
994
- line-height: 25px;
995
- }
996
- .drawerItemContainer .color-green {
997
- color: var(--color-success);
998
- }
999
- .drawerItemContainer .color-red {
1000
- color: var(--color-error);
894
+ }p.apiName {
895
+ font-size: 40px;
896
+ line-height: 30px;
897
+ font-weight: 500;
1001
898
  }
@@ -1,8 +1,9 @@
1
1
  import { TransformedMethod } from '../../types/layout.type';
2
- declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly, }: {
2
+ declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly, handleSave, }: {
3
3
  method: TransformedMethod;
4
4
  path: string;
5
5
  setFieldValue: (key: string, value: string) => void;
6
6
  readOnly?: boolean;
7
+ handleSave: (data: any) => unknown;
7
8
  }) => import("react/jsx-runtime").JSX.Element;
8
9
  export default MethodsAccordion;