@digi-frontend/dgate-api-documentation 1.0.39 → 1.0.50
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/.editorconfig +12 -12
- package/.prettierignore +7 -7
- package/.prettierrc +15 -15
- package/dist/{a7568b270e175038.svg → 070dc6ecd197bc80.svg} +8 -8
- package/dist/16702d92fd6d1730.svg +6 -0
- package/dist/2b546d6e9fdf604a.svg +3 -0
- package/dist/2c3c6c2c3b835504.svg +5 -0
- package/dist/{43595976d1fdccbf.svg → 2e10bbdb265df50e.svg} +4 -4
- package/dist/55b5994c5781482b.svg +5 -0
- package/dist/60bef8083c55f46b.svg +6 -0
- package/dist/68c710e0583e19e6.svg +5 -0
- package/dist/731221b3f242672d.svg +4 -0
- package/dist/{b82c7612e73342f3.svg → 7f54eeb0bb2d1150.svg} +3 -3
- package/dist/8520b6792278d9df.svg +6 -0
- package/dist/{56dc416b683db280.svg → 8789eb84283ea95b.svg} +5 -5
- package/dist/9506ef7a26a74147.svg +12 -0
- package/dist/9b7aee27757b5036.svg +3 -0
- package/dist/{af16a554be8c4d69.svg → 9bdff13f8d8fa48a.svg} +3 -3
- package/dist/_virtual/core.js +2 -0
- package/dist/_virtual/core.js.map +1 -0
- package/dist/_virtual/core2.js +2 -0
- package/dist/_virtual/core2.js.map +1 -0
- package/dist/_virtual/format.js +2 -0
- package/dist/_virtual/format.js.map +1 -0
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/{64efc2716808c4a4.svg → bb8b87cace25e052.svg} +3 -3
- package/dist/cceb1e5dc06b0b85.svg +4 -0
- package/dist/d140a601c85bac25.svg +3 -0
- package/dist/{72db3b05a96dd600.svg → d32ce84bbd78babd.svg} +3 -3
- package/dist/{844eba3f2e42a9eb.svg → d501922060662842.svg} +3 -3
- package/dist/d6d0a98ec38e6b77.svg +3 -0
- package/dist/e04479ad425e7d58.svg +4 -0
- package/dist/f4452c3ebcf0d5da.svg +4 -0
- package/dist/f4a32992f02af522.svg +5 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -0
- package/dist/node_modules/dom-serializer/lib/foreignNames.js +2 -0
- package/dist/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
- package/dist/node_modules/dom-serializer/lib/index.js +2 -0
- package/dist/node_modules/dom-serializer/lib/index.js.map +1 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js +2 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +1 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +2 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js +2 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +1 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js +2 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +1 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +2 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +2 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +2 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js +2 -0
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +1 -0
- package/dist/node_modules/domhandler/lib/index.js +2 -0
- package/dist/node_modules/domhandler/lib/index.js.map +1 -0
- package/dist/node_modules/domhandler/lib/node.js +2 -0
- package/dist/node_modules/domhandler/lib/node.js.map +1 -0
- package/dist/node_modules/domutils/lib/feeds.js +2 -0
- package/dist/node_modules/domutils/lib/feeds.js.map +1 -0
- package/dist/node_modules/domutils/lib/helpers.js +2 -0
- package/dist/node_modules/domutils/lib/helpers.js.map +1 -0
- package/dist/node_modules/domutils/lib/index.js +2 -0
- package/dist/node_modules/domutils/lib/index.js.map +1 -0
- package/dist/node_modules/domutils/lib/legacy.js +2 -0
- package/dist/node_modules/domutils/lib/legacy.js.map +1 -0
- package/dist/node_modules/domutils/lib/manipulation.js +2 -0
- package/dist/node_modules/domutils/lib/manipulation.js.map +1 -0
- package/dist/node_modules/domutils/lib/querying.js +2 -0
- package/dist/node_modules/domutils/lib/querying.js.map +1 -0
- package/dist/node_modules/domutils/lib/stringify.js +2 -0
- package/dist/node_modules/domutils/lib/stringify.js.map +1 -0
- package/dist/node_modules/domutils/lib/traversal.js +2 -0
- package/dist/node_modules/domutils/lib/traversal.js.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js +2 -0
- package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/decode.js +2 -0
- package/dist/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js +2 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +2 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/dist/node_modules/fault/index.js +2 -0
- package/dist/node_modules/fault/index.js.map +1 -0
- package/dist/node_modules/format/format.js +2 -0
- package/dist/node_modules/format/format.js.map +1 -0
- package/dist/node_modules/highlight.js/lib/core.js +2 -0
- package/dist/node_modules/highlight.js/lib/core.js.map +1 -0
- package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js +1 -1
- package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -1
- package/dist/node_modules/html-react-parser/lib/index.js +1 -1
- package/dist/node_modules/html-react-parser/lib/index.js.map +1 -1
- package/dist/node_modules/htmlparser2/dist/commonjs/Parser.js +1 -1
- package/dist/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -1
- package/dist/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +1 -1
- package/dist/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -1
- package/dist/node_modules/htmlparser2/dist/commonjs/index.js +1 -1
- package/dist/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -1
- package/dist/node_modules/lowlight/lib/core.js +2 -0
- package/dist/node_modules/lowlight/lib/core.js.map +1 -0
- package/dist/node_modules/nanoid/index.js +2 -0
- package/dist/node_modules/nanoid/index.js.map +1 -0
- package/dist/node_modules/nanoid/url-alphabet/index.js +2 -0
- package/dist/node_modules/nanoid/url-alphabet/index.js.map +1 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +2 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js.map +1 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +2 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js.map +1 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +2 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js.map +1 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js +2 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js.map +1 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-dark.js +2 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-dark.js.map +1 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-light.js +2 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-light.js.map +1 -0
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +1 -1
- package/dist/src/assets/icons/AddRow.svg.js +1 -1
- package/dist/src/assets/icons/AddRow.svg.js.map +1 -1
- package/dist/src/assets/icons/ApiIcon.svg.js +2 -0
- package/dist/src/assets/icons/ApiIcon.svg.js.map +1 -0
- package/dist/src/assets/icons/ArrowBack.svg.js +2 -0
- package/dist/src/assets/icons/ArrowBack.svg.js.map +1 -0
- package/dist/src/assets/icons/BookIcon.svg.js +2 -0
- package/dist/src/assets/icons/BookIcon.svg.js.map +1 -0
- package/dist/src/assets/icons/CopySticker.svg.js +2 -0
- package/dist/src/assets/icons/CopySticker.svg.js.map +1 -0
- package/dist/src/assets/icons/DeleteIcon.svg.js +1 -1
- package/dist/src/assets/icons/DeleteIcon.svg.js.map +1 -1
- package/dist/src/assets/icons/DeleteOutlinedIcon.svg.js +2 -0
- package/dist/src/assets/icons/DeleteOutlinedIcon.svg.js.map +1 -0
- package/dist/src/assets/icons/DownArrow.svg.js +1 -1
- package/dist/src/assets/icons/DownArrow.svg.js.map +1 -1
- package/dist/src/assets/icons/EditIcon.svg.js +1 -1
- package/dist/src/assets/icons/EditIcon.svg.js.map +1 -1
- package/dist/src/assets/icons/FilterIcon.svg.js +2 -0
- package/dist/src/assets/icons/FilterIcon.svg.js.map +1 -0
- package/dist/src/assets/icons/Plus.svg.js +2 -0
- package/dist/src/assets/icons/Plus.svg.js.map +1 -0
- package/dist/src/assets/icons/PlusSquare.svg.js +2 -0
- package/dist/src/assets/icons/PlusSquare.svg.js.map +1 -0
- package/dist/src/assets/icons/RequestOption.svg.js +2 -0
- package/dist/src/assets/icons/RequestOption.svg.js.map +1 -0
- package/dist/src/assets/icons/UpArrow.svg.js +1 -1
- package/dist/src/assets/icons/UpArrow.svg.js.map +1 -1
- package/dist/src/assets/icons/arrowDownGray.svg.js +2 -0
- package/dist/src/assets/icons/arrowDownGray.svg.js.map +1 -0
- package/dist/src/assets/icons/arrowRightGray.svg.js +2 -0
- package/dist/src/assets/icons/arrowRightGray.svg.js.map +1 -0
- package/dist/src/assets/icons/close-circle.svg.js +2 -0
- package/dist/src/assets/icons/close-circle.svg.js.map +1 -0
- package/dist/src/assets/icons/copy.svg.js +2 -0
- package/dist/src/assets/icons/copy.svg.js.map +1 -0
- package/dist/src/assets/icons/document.svg.js +2 -0
- package/dist/src/assets/icons/document.svg.js.map +1 -0
- package/dist/src/assets/icons/eye.svg.js +2 -0
- package/dist/src/assets/icons/eye.svg.js.map +1 -0
- package/dist/src/assets/icons/infoIcon.svg.js +2 -0
- package/dist/src/assets/icons/infoIcon.svg.js.map +1 -0
- package/dist/src/assets/icons/searchIcon.svg.js +2 -0
- package/dist/src/assets/icons/searchIcon.svg.js.map +1 -0
- package/dist/src/components/InfoForm/InfoForm.js +1 -1
- package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
- package/dist/src/components/JsonInput/JsonInput.js.map +1 -1
- package/dist/src/components/LivePreview/LivePreview.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/components/SVGLoader/SVGLoader.js.map +1 -1
- package/dist/src/components/SectionHead/SectionHead.js.map +1 -1
- package/dist/src/components/SimpleLabelValue/SimpleLabelValue.js.map +1 -1
- package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/src/components/dialog/index.js +1 -1
- package/dist/src/components/dialog/index.js.map +1 -1
- package/dist/src/components/table/table.js +1 -1
- package/dist/src/components/table/table.js.map +1 -1
- package/dist/src/components/table/tags-table.js.map +1 -1
- package/dist/src/constants/index.js +1 -1
- package/dist/src/constants/index.js.map +1 -1
- package/dist/src/constants/methods.constant.js +2 -0
- package/dist/src/constants/methods.constant.js.map +1 -0
- package/dist/src/constants/regex.js.map +1 -1
- package/dist/src/helpers/docs.helper.js +2 -0
- package/dist/src/helpers/docs.helper.js.map +1 -0
- package/dist/src/helpers/layout.helper.js +1 -1
- package/dist/src/helpers/layout.helper.js.map +1 -1
- package/dist/src/helpers/methodAccordion.helper.js.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/layout/docsComponents/Codebox/Codebox.js +2 -0
- package/dist/src/layout/docsComponents/Codebox/Codebox.js.map +1 -0
- package/dist/src/layout/docsComponents/Codebox/style.module.scss.js +2 -0
- package/dist/src/layout/docsComponents/Codebox/style.module.scss.js.map +1 -0
- package/dist/src/layout/docsComponents/DocsAside/DocsAside.js +2 -0
- package/dist/src/layout/docsComponents/DocsAside/DocsAside.js.map +1 -0
- package/dist/src/layout/docsComponents/DocsAside/style.module.scss.js +2 -0
- package/dist/src/layout/docsComponents/DocsAside/style.module.scss.js.map +1 -0
- package/dist/src/layout/docsComponents/DocsContent/DocsContent.js +2 -0
- package/dist/src/layout/docsComponents/DocsContent/DocsContent.js.map +1 -0
- package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js +2 -0
- package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js.map +1 -0
- package/dist/src/layout/docsComponents/DocsContent/TagPage/index.js +2 -0
- package/dist/src/layout/docsComponents/DocsContent/TagPage/index.js.map +1 -0
- package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js +2 -0
- package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js.map +1 -0
- package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js +2 -0
- package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js.map +1 -0
- package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js +2 -0
- package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js.map +1 -0
- package/dist/src/layout/docsComponents/index.js +2 -0
- package/dist/src/layout/docsComponents/index.js.map +1 -0
- package/dist/src/layout/docsLayout.js +2 -0
- package/dist/src/layout/docsLayout.js.map +1 -0
- package/dist/src/layout/layout.js +1 -1
- package/dist/src/layout/layout.js.map +1 -1
- package/dist/src/layout/layout.module.css.js +1 -1
- package/dist/src/utils/index.js +2 -0
- package/dist/src/utils/index.js.map +1 -0
- package/dist/src/validator/form.scheme.js +1 -1
- package/dist/src/validator/form.scheme.js.map +1 -1
- package/dist/styles.css +1646 -348
- package/dist/types/assets/icons/index.d.ts +17 -1
- package/dist/types/components/LivePreview/LivePreview.d.ts +1 -0
- package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +2 -1
- package/dist/types/components/dialog/dialog.d.ts +4 -0
- package/dist/types/components/dialog/index.d.ts +1 -1
- package/dist/types/components/table/table.d.ts +2 -1
- package/dist/types/constants/methods.constant.d.ts +16 -0
- package/dist/types/helpers/docs.helper.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/layout/docsComponents/Codebox/Codebox.d.ts +4 -0
- package/dist/types/layout/docsComponents/DocsAside/DocsAside.d.ts +5 -0
- package/dist/types/layout/docsComponents/DocsContent/DocsContent.d.ts +6 -0
- package/dist/types/layout/docsComponents/DocsContent/EndpointPage/index.d.ts +4 -0
- package/dist/types/layout/docsComponents/DocsContent/TagPage/index.d.ts +4 -0
- package/dist/types/layout/docsComponents/DocsHeader/DocsHeader.d.ts +3 -0
- package/dist/types/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.d.ts +9 -0
- package/dist/types/layout/docsComponents/index.d.ts +17 -0
- package/dist/types/layout/docsLayout.d.ts +33 -0
- package/dist/types/layout/layout.d.ts +2 -1
- package/dist/types/types/layout.type.d.ts +1 -0
- package/dist/types/types/openApi.d.ts +4 -4
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/validator/form.scheme.d.ts +10 -2
- package/package.json +46 -43
- package/rollup.config.js +37 -35
- package/src/assets/icons/AddRow.svg +3 -3
- package/src/assets/icons/ApiIcon.svg +12 -0
- package/src/assets/icons/ArrowBack.svg +3 -0
- package/src/assets/icons/BookIcon.svg +6 -0
- package/src/assets/icons/CheckMarkSquare.svg +5 -5
- package/src/assets/icons/CloseIcon.svg +4 -4
- package/src/assets/icons/CopySticker.svg +6 -0
- package/src/assets/icons/DeleteIcon.svg +3 -3
- package/src/assets/icons/DeleteOutlinedIcon.svg +8 -0
- package/src/assets/icons/DownArrow.svg +3 -3
- package/src/assets/icons/EditIcon.svg +3 -3
- package/src/assets/icons/FilterIcon.svg +4 -0
- package/src/assets/icons/Plus.svg +5 -0
- package/src/assets/icons/PlusSquare.svg +3 -0
- package/src/assets/icons/RequestOption.svg +5 -0
- package/src/assets/icons/UpArrow.svg +3 -3
- package/src/assets/icons/arrowDownGray.svg +3 -0
- package/src/assets/icons/arrowRightGray.svg +3 -0
- package/src/assets/icons/close-circle.svg +5 -0
- package/src/assets/icons/copy.svg +4 -0
- package/src/assets/icons/deleteOutlinedIcon.svg +8 -8
- package/src/assets/icons/document.svg +6 -0
- package/src/assets/icons/eye.svg +4 -0
- package/src/assets/icons/index.ts +24 -8
- package/src/assets/icons/infoIcon.svg +5 -0
- package/src/assets/icons/searchIcon.svg +4 -0
- package/src/components/Chips/Chips.tsx +87 -87
- package/src/components/Chips/style.scss +147 -147
- package/src/components/InfoForm/InfoForm.module.scss +165 -165
- package/src/components/InfoForm/InfoForm.tsx +423 -428
- package/src/components/JsonInput/JsonInput.tsx +149 -149
- package/src/components/JsonInput/style.module.scss +133 -133
- package/src/components/LivePreview/LivePreview.module.scss +180 -24
- package/src/components/LivePreview/LivePreview.tsx +226 -191
- package/src/components/MethodAccordion/MethodAccordion.module.scss +395 -338
- package/src/components/MethodAccordion/MethodAccordion.tsx +678 -514
- package/src/components/SVGLoader/SVGLoader.tsx +96 -94
- package/src/components/SectionHead/SectionHead.scss +29 -29
- package/src/components/SectionHead/SectionHead.tsx +22 -22
- package/src/components/SimpleLabelValue/SimpleLabelValue.tsx +31 -31
- package/src/components/SimpleLabelValue/index.ts +1 -1
- package/src/components/SimpleLabelValue/style.scss +30 -30
- package/src/components/Tooltip/Tooltip.scss +133 -133
- package/src/components/Tooltip/Tooltip.tsx +85 -85
- package/src/components/_global.scss +337 -337
- package/src/components/dialog/dialog.ts +58 -54
- package/src/components/dialog/index.tsx +89 -85
- package/src/components/dialog/style.scss +188 -104
- package/src/components/table/style.scss +217 -190
- package/src/components/table/table.tsx +493 -327
- package/src/components/table/tags-table.tsx +348 -348
- package/src/constants/index.ts +95 -93
- package/src/constants/methods.constant.ts +26 -0
- package/src/constants/regex.ts +7 -7
- package/src/global.d.ts +13 -13
- package/src/helpers/docs.helper.ts +28 -0
- package/src/helpers/layout.helper.ts +176 -174
- package/src/helpers/methodAccordion.helper.ts +19 -19
- package/src/index.ts +2 -1
- package/src/layout/docsComponents/Codebox/Codebox.tsx +61 -0
- package/src/layout/docsComponents/Codebox/style.module.scss +43 -0
- package/src/layout/docsComponents/DocsAside/DocsAside.tsx +94 -0
- package/src/layout/docsComponents/DocsAside/style.module.scss +113 -0
- package/src/layout/docsComponents/DocsContent/DocsContent.tsx +14 -0
- package/src/layout/docsComponents/DocsContent/EndpointPage/index.tsx +184 -0
- package/src/layout/docsComponents/DocsContent/EndpointPage/style.scss +230 -0
- package/src/layout/docsComponents/DocsContent/TagPage/index.tsx +82 -0
- package/src/layout/docsComponents/DocsContent/TagPage/style.scss +283 -0
- package/src/layout/docsComponents/DocsContent/style.scss +0 -0
- package/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss +271 -0
- package/src/layout/docsComponents/DocsHeader/DocsHeader.tsx +156 -0
- package/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.tsx +188 -0
- package/src/layout/docsComponents/DocsSideMenuTree/style.scss +195 -0
- package/src/layout/docsComponents/index.scss +49 -0
- package/src/layout/docsComponents/index.tsx +28 -0
- package/src/layout/docsLayout.tsx +72 -0
- package/src/layout/layout.module.css +65 -62
- package/src/layout/layout.tsx +162 -150
- package/src/types/layout.type.ts +31 -30
- package/src/types/openApi.ts +108 -108
- package/src/types/transformedOpenApi.ts +52 -52
- package/src/utils/index.ts +7 -0
- package/src/validator/form.scheme.ts +88 -70
- package/tsconfig.json +33 -33
- package/dist/_virtual/index20.js +0 -2
- package/dist/_virtual/index20.js.map +0 -1
- package/dist/_virtual/index21.js +0 -2
- package/dist/_virtual/index21.js.map +0 -1
- package/dist/_virtual/node2.js +0 -2
- package/dist/_virtual/node2.js.map +0 -1
- package/dist/_virtual/node3.js +0 -2
- package/dist/_virtual/node3.js.map +0 -1
- package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js +0 -2
- package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js.map +0 -1
- package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js +0 -2
- package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js.map +0 -1
- package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js +0 -2
- package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js.map +0 -1
- package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js +0 -2
- package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -2
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
- package/dist/src/assets/icons/CheckMarkSquare.svg.js +0 -2
- package/dist/src/assets/icons/CheckMarkSquare.svg.js.map +0 -1
- package/dist/src/assets/icons/CloseIcon.svg.js +0 -2
- package/dist/src/assets/icons/CloseIcon.svg.js.map +0 -1
- package/dist/src/assets/icons/deleteOutlinedIcon.svg.js +0 -2
- package/dist/src/assets/icons/deleteOutlinedIcon.svg.js.map +0 -1
- package/dist/src/components/Chips/Chips.js +0 -2
- package/dist/src/components/Chips/Chips.js.map +0 -1
- package/dist/types/types/index.d.ts +0 -18
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export const handleStatusColor = (code: number): string => {
|
|
2
|
-
if (code >= 200 && code < 300) {
|
|
3
|
-
return 'green' // 2xx codes
|
|
4
|
-
} else if (code >= 400 && code < 500) {
|
|
5
|
-
return 'red' // 4xx codes
|
|
6
|
-
} else if (code >= 500 && code < 600) {
|
|
7
|
-
return 'red' // 5xx codes
|
|
8
|
-
} else if (code >= 100 && code < 200) {
|
|
9
|
-
return 'blue' // 1xx codes (Informational)
|
|
10
|
-
} else if (code >= 300 && code < 400) {
|
|
11
|
-
return 'orange' // 3xx codes (Redirection)
|
|
12
|
-
} else {
|
|
13
|
-
return 'gray' // Default or invalid status codes
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const capitalize = (str)=> {
|
|
18
|
-
if (!str) return "";
|
|
19
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
1
|
+
export const handleStatusColor = (code: number): string => {
|
|
2
|
+
if (code >= 200 && code < 300) {
|
|
3
|
+
return 'green' // 2xx codes
|
|
4
|
+
} else if (code >= 400 && code < 500) {
|
|
5
|
+
return 'red' // 4xx codes
|
|
6
|
+
} else if (code >= 500 && code < 600) {
|
|
7
|
+
return 'red' // 5xx codes
|
|
8
|
+
} else if (code >= 100 && code < 200) {
|
|
9
|
+
return 'blue' // 1xx codes (Informational)
|
|
10
|
+
} else if (code >= 300 && code < 400) {
|
|
11
|
+
return 'orange' // 3xx codes (Redirection)
|
|
12
|
+
} else {
|
|
13
|
+
return 'gray' // Default or invalid status codes
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const capitalize = (str)=> {
|
|
18
|
+
if (!str) return "";
|
|
19
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
20
20
|
}
|
package/src/index.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default as Layout } from './layout/layout'
|
|
1
|
+
export { default as Layout } from './layout/layout'
|
|
2
|
+
export { default as DocsLayout } from './layout/docsLayout'
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
|
+
import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'
|
|
3
|
+
import {
|
|
4
|
+
stackoverflowDark,
|
|
5
|
+
stackoverflowLight,
|
|
6
|
+
} from 'react-syntax-highlighter/dist/esm/styles/hljs'
|
|
7
|
+
import styles from './style.module.scss'
|
|
8
|
+
import SVGLoader from '../../../components/SVGLoader/SVGLoader'
|
|
9
|
+
import { Copy } from '../../../assets/icons'
|
|
10
|
+
import { copyToClipboard } from '../../../utils'
|
|
11
|
+
|
|
12
|
+
const Codebox = ({ code }: { code: string }) => {
|
|
13
|
+
const [theme, setTheme] = useState<'LIGHT' | 'DARK'>('DARK')
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div className={styles.codebox}>
|
|
17
|
+
<div className={styles.codebox_header}>
|
|
18
|
+
<div
|
|
19
|
+
role="button"
|
|
20
|
+
tabIndex={-1}
|
|
21
|
+
onClick={() => theme !== 'LIGHT' && setTheme('LIGHT')}
|
|
22
|
+
className={`${styles.codebox_header_themeToggle} ${styles.codebox_header_themeToggle_light}`}
|
|
23
|
+
title="Light theme"
|
|
24
|
+
></div>
|
|
25
|
+
<div
|
|
26
|
+
role="button"
|
|
27
|
+
tabIndex={-1}
|
|
28
|
+
onClick={() => theme !== 'DARK' && setTheme('DARK')}
|
|
29
|
+
className={`${styles.codebox_header_themeToggle} ${styles.codebox_header_themeToggle_dark}`}
|
|
30
|
+
title="Dark theme"
|
|
31
|
+
></div>
|
|
32
|
+
<SVGLoader
|
|
33
|
+
src={Copy}
|
|
34
|
+
width="0.75rem"
|
|
35
|
+
height="0.75rem"
|
|
36
|
+
className={styles.codebox_header_copyIcon}
|
|
37
|
+
onClick={() => copyToClipboard(code)}
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
<SyntaxHighlighter
|
|
41
|
+
language="json"
|
|
42
|
+
style={theme === 'LIGHT' ? stackoverflowLight : stackoverflowDark}
|
|
43
|
+
showLineNumbers
|
|
44
|
+
wrapLines
|
|
45
|
+
customStyle={{
|
|
46
|
+
margin: 0,
|
|
47
|
+
height: '13.75rem',
|
|
48
|
+
overflowY: 'auto',
|
|
49
|
+
padding: '0.75rem 1rem 0 1.5rem',
|
|
50
|
+
backgroundColor: theme === 'DARK' ? '#455162' : '#F7F7F7',
|
|
51
|
+
fontSize: '0.75rem',
|
|
52
|
+
}}
|
|
53
|
+
lineProps={{ className: 'custom-code-line' }}
|
|
54
|
+
>
|
|
55
|
+
{code}
|
|
56
|
+
</SyntaxHighlighter>
|
|
57
|
+
</div>
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default Codebox
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.codebox {
|
|
2
|
+
border-radius: 0.25rem;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
|
|
5
|
+
&_header {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 0.25rem;
|
|
9
|
+
padding-left: 0.5rem;
|
|
10
|
+
height: 1.75rem;
|
|
11
|
+
border: 1px solid #bbbec5;
|
|
12
|
+
border-top-right-radius: 0.25rem;
|
|
13
|
+
border-top-left-radius: 0.25rem;
|
|
14
|
+
|
|
15
|
+
&_themeToggle {
|
|
16
|
+
width: 0.75rem;
|
|
17
|
+
min-width: 0.75rem;
|
|
18
|
+
aspect-ratio: 1 / 1;
|
|
19
|
+
border: 1px solid transparent;
|
|
20
|
+
border-radius: 100%;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
|
|
23
|
+
&_dark {
|
|
24
|
+
background-color: #455162;
|
|
25
|
+
border-color: #6b7280;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&_light {
|
|
29
|
+
background-color: #edf1fb;
|
|
30
|
+
border-color: #6b7280;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&_copyIcon {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:global(.custom-code-line),
|
|
40
|
+
:global(.custom-code-line span) {
|
|
41
|
+
font-family: 'Cascadia Code', sans-serif;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
|
+
import { EndpointData } from 'src/layout/docsLayout'
|
|
3
|
+
import Codebox from '../Codebox/Codebox'
|
|
4
|
+
import { SelectGroup } from 'digitinary-ui'
|
|
5
|
+
import { httpStatusCodes } from '../../../constants/index'
|
|
6
|
+
import { handleStatusColor } from '../../../helpers/methodAccordion.helper'
|
|
7
|
+
import styles from './style.module.scss'
|
|
8
|
+
|
|
9
|
+
const httpStatusCodeOptions = httpStatusCodes.map((code) => ({
|
|
10
|
+
label: (
|
|
11
|
+
<div className={styles.statusCodeOptionContainer}>
|
|
12
|
+
<div
|
|
13
|
+
className={styles.statusCodeOptionCircle}
|
|
14
|
+
style={{ backgroundColor: handleStatusColor(code) }}
|
|
15
|
+
></div>
|
|
16
|
+
<span>{code}</span>
|
|
17
|
+
</div>
|
|
18
|
+
),
|
|
19
|
+
value: code,
|
|
20
|
+
}))
|
|
21
|
+
|
|
22
|
+
const DocsAside = ({ data }: { data: EndpointData }) => {
|
|
23
|
+
const [selectedResStatusCode, setSelectedResStatusCode] = useState(httpStatusCodeOptions[4])
|
|
24
|
+
const currentResponse =
|
|
25
|
+
Object.entries(data.responses)
|
|
26
|
+
.map(([code, data]) => ({ code, data }))
|
|
27
|
+
.find((res) => Number(res.code) === selectedResStatusCode.value) || '{}'
|
|
28
|
+
|
|
29
|
+
const stringifyRequestBody = () => {
|
|
30
|
+
if (data?.requestBody?.content) {
|
|
31
|
+
const contentKey = Object.keys(data?.requestBody?.content)[0]
|
|
32
|
+
return JSON.stringify(data?.requestBody?.content[contentKey], null, 2)
|
|
33
|
+
} else {
|
|
34
|
+
return '{}'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const stringifyResponseBody = () => {
|
|
39
|
+
if (currentResponse?.data) {
|
|
40
|
+
const contentKey = Object.keys(currentResponse.data?.content)[0]
|
|
41
|
+
return JSON.stringify(currentResponse.data?.content[contentKey], null, 2)
|
|
42
|
+
} else {
|
|
43
|
+
return '{}'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<aside className={styles.apiDocsAside}>
|
|
49
|
+
<h2 className={styles.apiDocsAside_title}>{data.summary}</h2>
|
|
50
|
+
<h4 className={styles.apiDocsAside_subtitle}>
|
|
51
|
+
<span className={styles.apiDocsAside_subtitle_method} data-method={data.method}>
|
|
52
|
+
{data.method}
|
|
53
|
+
</span>{' '}
|
|
54
|
+
<span>{data.path}</span>
|
|
55
|
+
</h4>
|
|
56
|
+
{data?.requestBody?.content && (
|
|
57
|
+
<div className={styles.codeboxSection}>
|
|
58
|
+
<div className={styles.codeboxHeader}>
|
|
59
|
+
<h6 className={styles.codeboxTitle}>Request</h6>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<Codebox code={stringifyRequestBody()} />
|
|
63
|
+
</div>
|
|
64
|
+
)}
|
|
65
|
+
{Object.keys(data?.responses || {})?.length > 0 && (
|
|
66
|
+
<div className={styles.codeboxSection}>
|
|
67
|
+
<div className={`${styles.codeboxHeader}`}>
|
|
68
|
+
<h6 className={styles.codeboxTitle}>Response</h6>
|
|
69
|
+
<SelectGroup
|
|
70
|
+
size="small"
|
|
71
|
+
withSearch={false}
|
|
72
|
+
isMultiple={false}
|
|
73
|
+
clearable={false}
|
|
74
|
+
placeholder="200"
|
|
75
|
+
options={[
|
|
76
|
+
{
|
|
77
|
+
list: httpStatusCodeOptions,
|
|
78
|
+
},
|
|
79
|
+
]}
|
|
80
|
+
value={selectedResStatusCode}
|
|
81
|
+
onChange={(value) => {
|
|
82
|
+
setSelectedResStatusCode(value)
|
|
83
|
+
}}
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<Codebox code={stringifyResponseBody()} />
|
|
88
|
+
</div>
|
|
89
|
+
)}
|
|
90
|
+
</aside>
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export default DocsAside
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
.apiDocsAside {
|
|
2
|
+
width: 22.5rem;
|
|
3
|
+
padding: 3rem 1.5rem;
|
|
4
|
+
background-color: #f0f1f2;
|
|
5
|
+
|
|
6
|
+
&_title {
|
|
7
|
+
font-size: 1.5rem;
|
|
8
|
+
line-height: 2rem;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
color: #12131a;
|
|
11
|
+
margin-bottom: 0.5rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&_subtitle {
|
|
15
|
+
margin-bottom: 2rem;
|
|
16
|
+
|
|
17
|
+
> span {
|
|
18
|
+
font-size: 1.25rem;
|
|
19
|
+
line-height: 1.75rem;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&_method {
|
|
24
|
+
&[data-method='get'] {
|
|
25
|
+
color: #3a6cd1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&[data-method='post'] {
|
|
29
|
+
color: #3aaa35;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[data-method='put'] {
|
|
33
|
+
color: #faad14;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-method='delete'] {
|
|
37
|
+
color: #da3f3f;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-method='option'] {
|
|
41
|
+
color: #495d97;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[data-method='head'] {
|
|
45
|
+
color: #9461c9;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-method='patch'] {
|
|
49
|
+
color: #58e2c2;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.codeboxSection {
|
|
55
|
+
.codeboxHeader {
|
|
56
|
+
height: 2rem;
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
margin-bottom: 0.25rem;
|
|
60
|
+
|
|
61
|
+
h6 {
|
|
62
|
+
font-size: 1rem;
|
|
63
|
+
line-height: 1.25rem;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
color: #616874;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:nth-of-type(2) {
|
|
70
|
+
margin-top: 3rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:global(.multiSelectGroup) {
|
|
74
|
+
:global(.selectDisplay) {
|
|
75
|
+
padding: 0;
|
|
76
|
+
|
|
77
|
+
:global(.select-label-container) {
|
|
78
|
+
min-width: 100%;
|
|
79
|
+
padding: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:global(.optionsList .option) {
|
|
84
|
+
height: 1.5rem;
|
|
85
|
+
padding: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.statusCodeOptionContainer {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 0.625rem;
|
|
92
|
+
padding-left: 0.75rem;
|
|
93
|
+
|
|
94
|
+
.statusCodeOptionCircle {
|
|
95
|
+
width: 0.625rem;
|
|
96
|
+
min-width: 0.625rem;
|
|
97
|
+
aspect-ratio: 1 / 1;
|
|
98
|
+
border-radius: 100%;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:global(.multiSelectGroup .selectDisplay),
|
|
105
|
+
:global(.multiSelectGroup) {
|
|
106
|
+
width: 6.25rem;
|
|
107
|
+
height: 1.5rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:global(.multiSelectGroup .selectDisplay .displayValueContainer .iconsContainer) {
|
|
111
|
+
padding-right: 0.75rem;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import './style.scss'
|
|
3
|
+
import SVGLoader from '../../../components/SVGLoader/SVGLoader'
|
|
4
|
+
import { CopySticker } from '../../../assets/icons/index'
|
|
5
|
+
import { TagPage } from './TagPage'
|
|
6
|
+
import { EndpointPage } from './EndpointPage'
|
|
7
|
+
import { EndpointData, OverviewData } from 'src/layout/docsLayout'
|
|
8
|
+
|
|
9
|
+
const DocsContent = ({ data }: { data: OverviewData | EndpointData }) => {
|
|
10
|
+
const isTagPage = false
|
|
11
|
+
return <main>{!isTagPage ? <TagPage data={data} /> : <EndpointPage data={data} />}</main>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default DocsContent
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import './style.scss'
|
|
2
|
+
import SVGLoader from '../../../../components/SVGLoader/SVGLoader'
|
|
3
|
+
import {
|
|
4
|
+
ArrowBack,
|
|
5
|
+
CopySticker,
|
|
6
|
+
DownArrowIcon,
|
|
7
|
+
RequestOption,
|
|
8
|
+
} from '../../../../assets/icons/index'
|
|
9
|
+
import { ArrowIcon, SelectGroup } from 'digitinary-ui'
|
|
10
|
+
import { useState } from 'react'
|
|
11
|
+
import { EndpointData } from 'src/layout/docsLayout'
|
|
12
|
+
|
|
13
|
+
export const EndpointPage = ({ data }) => {
|
|
14
|
+
const [expanded, setExpanded] = useState(null)
|
|
15
|
+
|
|
16
|
+
const requestTableData = [
|
|
17
|
+
{
|
|
18
|
+
name: 'Parameter Name',
|
|
19
|
+
required: 'True',
|
|
20
|
+
type: 'String',
|
|
21
|
+
enum: 'Active/Expired/Cancelled',
|
|
22
|
+
description:
|
|
23
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Parameter Name',
|
|
27
|
+
required: 'False',
|
|
28
|
+
type: 'Boolean',
|
|
29
|
+
enum: 'Active/Expired/Cancelled',
|
|
30
|
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.sssssss',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Parameter Name',
|
|
34
|
+
required: 'True',
|
|
35
|
+
type: 'Object',
|
|
36
|
+
enum: '-',
|
|
37
|
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.sssssss',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Parameter Name',
|
|
41
|
+
required: 'True',
|
|
42
|
+
type: 'Array_String',
|
|
43
|
+
enum: '-',
|
|
44
|
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.sssssss',
|
|
45
|
+
},
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<div className="api-details-expanded">
|
|
50
|
+
<div className="test-button">
|
|
51
|
+
<button className="back-button" onClick={() => window.history.back()}>
|
|
52
|
+
<SVGLoader src={ArrowBack} />
|
|
53
|
+
</button>
|
|
54
|
+
|
|
55
|
+
<button className="disabled">Test</button>
|
|
56
|
+
</div>
|
|
57
|
+
<h3> Api Name</h3>
|
|
58
|
+
<h1 className="api-title">Endpoint Name</h1>
|
|
59
|
+
<div className="url-box">
|
|
60
|
+
<div style={{ textAlign: 'center' }}>
|
|
61
|
+
<span className="method-label post">Post</span>
|
|
62
|
+
<span className="url-text">https://apigw sdb-1.test.dgate.digitinary.net/test</span>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<SVGLoader src={CopySticker} className="copy-icon" />
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<p className="api-desc">Endpoint Description</p>
|
|
69
|
+
|
|
70
|
+
<h3>Request</h3>
|
|
71
|
+
|
|
72
|
+
<div className="request-section">
|
|
73
|
+
<div className="request-tabs">
|
|
74
|
+
<button className="tab">
|
|
75
|
+
<SVGLoader src={RequestOption} className="icon-left" />
|
|
76
|
+
Header
|
|
77
|
+
</button>
|
|
78
|
+
<button className="tab">
|
|
79
|
+
<SVGLoader src={RequestOption} className="icon-left" />
|
|
80
|
+
Path
|
|
81
|
+
</button>
|
|
82
|
+
<button className="tab">
|
|
83
|
+
<SVGLoader src={RequestOption} className="icon-left" />
|
|
84
|
+
Query
|
|
85
|
+
</button>
|
|
86
|
+
<button className="tab">
|
|
87
|
+
<SVGLoader src={RequestOption} className="icon-left" />
|
|
88
|
+
Request Body
|
|
89
|
+
</button>
|
|
90
|
+
</div>
|
|
91
|
+
<div className="table-wrapper">
|
|
92
|
+
<table className="param-table">
|
|
93
|
+
<thead>
|
|
94
|
+
<tr>
|
|
95
|
+
<th className="head-table-label">Parameter Name</th>
|
|
96
|
+
<th className="head-table-label">Required</th>
|
|
97
|
+
<th className="head-table-label">Type</th>
|
|
98
|
+
<th className="head-table-label">Enum</th>
|
|
99
|
+
<th className="head-table-label">Description</th>
|
|
100
|
+
</tr>
|
|
101
|
+
</thead>
|
|
102
|
+
<tbody>
|
|
103
|
+
{requestTableData.map((row, index) => (
|
|
104
|
+
<tr key={index}>
|
|
105
|
+
<td>{row.name}</td>
|
|
106
|
+
<td>{row.required}</td>
|
|
107
|
+
<td>{row.type}</td>
|
|
108
|
+
<td>{row.enum}</td>
|
|
109
|
+
<td className="desc-cell">
|
|
110
|
+
<div className={`desc-text ${expanded === index ? 'expanded' : ''}`}>
|
|
111
|
+
{row.description}
|
|
112
|
+
</div>
|
|
113
|
+
<button
|
|
114
|
+
className="desc-toggle"
|
|
115
|
+
onClick={() => setExpanded(expanded === index ? null : index)}
|
|
116
|
+
>
|
|
117
|
+
<SVGLoader
|
|
118
|
+
src={DownArrowIcon}
|
|
119
|
+
className={expanded === index ? 'rotated' : ''}
|
|
120
|
+
/>
|
|
121
|
+
</button>
|
|
122
|
+
</td>
|
|
123
|
+
</tr>
|
|
124
|
+
))}
|
|
125
|
+
</tbody>
|
|
126
|
+
</table>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<div className="response-section">
|
|
131
|
+
<div className="response-drop-test">
|
|
132
|
+
<SelectGroup
|
|
133
|
+
className="response-drop"
|
|
134
|
+
withSearch={false}
|
|
135
|
+
isMultiple={false}
|
|
136
|
+
clearable={false}
|
|
137
|
+
placeholder="200"
|
|
138
|
+
options={[]}
|
|
139
|
+
//value={selectedStatusCode}
|
|
140
|
+
onChange={(value) => {
|
|
141
|
+
// setSelectedStatusCode(value)
|
|
142
|
+
}}
|
|
143
|
+
/>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<h3>Response</h3>
|
|
147
|
+
<button className="tab">
|
|
148
|
+
<SVGLoader src={RequestOption} className="icon-left" />
|
|
149
|
+
Header
|
|
150
|
+
</button>
|
|
151
|
+
|
|
152
|
+
<div className="table-wrapper">
|
|
153
|
+
<table className="param-table">
|
|
154
|
+
<thead>
|
|
155
|
+
<tr>
|
|
156
|
+
<th className="head-table-label">Parameter Name</th>
|
|
157
|
+
<th className="head-table-label">Required</th>
|
|
158
|
+
<th className="head-table-label">Type</th>
|
|
159
|
+
<th className="head-table-label">Enum</th>
|
|
160
|
+
<th className="head-table-label">Description</th>
|
|
161
|
+
</tr>
|
|
162
|
+
</thead>
|
|
163
|
+
<tbody>
|
|
164
|
+
<tr>
|
|
165
|
+
<td>Parameter Name</td>
|
|
166
|
+
<td>True</td>
|
|
167
|
+
<td>String</td>
|
|
168
|
+
<td>Active/Expired/Cancelled</td>
|
|
169
|
+
<td>Borem taciti dolor ...</td>
|
|
170
|
+
</tr>
|
|
171
|
+
<tr>
|
|
172
|
+
<td>Parameter Name</td>
|
|
173
|
+
<td>True</td>
|
|
174
|
+
<td>Array_Object</td>
|
|
175
|
+
<td>-</td>
|
|
176
|
+
<td>Borem taciti dolor ...</td>
|
|
177
|
+
</tr>
|
|
178
|
+
</tbody>
|
|
179
|
+
</table>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
)
|
|
184
|
+
}
|