@digi-frontend/dgate-api-documentation 1.0.1 → 1.0.4
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/{2e10bbdb265df50e.svg → 43595976d1fdccbf.svg} +4 -4
- package/dist/{8789eb84283ea95b.svg → 56dc416b683db280.svg} +5 -5
- package/dist/{bb8b87cace25e052.svg → 64efc2716808c4a4.svg} +3 -3
- package/dist/{d32ce84bbd78babd.svg → 72db3b05a96dd600.svg} +3 -3
- package/dist/{d501922060662842.svg → 844eba3f2e42a9eb.svg} +3 -3
- package/dist/_virtual/index10.js +1 -1
- package/dist/_virtual/index21.js +2 -0
- package/dist/_virtual/index21.js.map +1 -0
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/_virtual/index9.js +1 -1
- package/dist/_virtual/node2.js +2 -0
- package/dist/_virtual/node2.js.map +1 -0
- package/dist/_virtual/node3.js +2 -0
- package/dist/_virtual/node3.js.map +1 -0
- package/dist/{070dc6ecd197bc80.svg → a7568b270e175038.svg} +8 -8
- package/dist/{9bdff13f8d8fa48a.svg → af16a554be8c4d69.svg} +3 -3
- package/dist/{7f54eeb0bb2d1150.svg → b82c7612e73342f3.svg} +3 -3
- package/dist/node_modules/digitinary-ui/dist/index.js +1 -1
- package/dist/node_modules/digitinary-ui/dist/index.js.map +1 -1
- package/dist/node_modules/domelementtype/lib/index.js +1 -1
- package/dist/node_modules/formik/dist/formik.esm.js +1 -1
- package/dist/node_modules/html-dom-parser/lib/index.js +1 -1
- 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-dom-parser/node_modules/domhandler/lib/index.js +2 -0
- package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js.map +1 -0
- package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js +2 -0
- package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js.map +1 -0
- package/dist/node_modules/html-react-parser/esm/index.mjs.js +1 -1
- package/dist/node_modules/html-react-parser/esm/index.mjs.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/html-react-parser/node_modules/domhandler/lib/index.js +2 -0
- package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js.map +1 -0
- package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js +2 -0
- package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js.map +1 -0
- 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/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +2 -0
- package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
- package/dist/node_modules/react-fast-compare/index.js +1 -1
- package/dist/node_modules/react-fast-compare/index.js.map +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-property/lib/index.js +1 -1
- package/dist/node_modules/react-property/lib/index.js.map +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +1 -1
- package/dist/node_modules/yup/index.esm.js.map +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/CheckMarkSquare.svg.js +2 -0
- package/dist/src/assets/icons/CheckMarkSquare.svg.js.map +1 -0
- package/dist/src/assets/icons/CloseIcon.svg.js +1 -1
- package/dist/src/assets/icons/CloseIcon.svg.js.map +1 -1
- 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/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/UpArrow.svg.js +1 -1
- package/dist/src/assets/icons/UpArrow.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/components/Chips/Chips.js +2 -0
- package/dist/src/components/Chips/Chips.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/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/constants/index.js +1 -1
- package/dist/src/constants/index.js.map +1 -1
- package/dist/src/constants/regex.js +1 -1
- package/dist/src/constants/regex.js.map +1 -1
- 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/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/validator/form.scheme.js +1 -1
- package/dist/src/validator/form.scheme.js.map +1 -1
- package/dist/styles.css +500 -2036
- package/dist/types/assets/icons/index.d.ts +1 -17
- package/dist/types/components/InfoForm/InfoForm.d.ts +1 -3
- package/dist/types/components/LivePreview/LivePreview.d.ts +0 -1
- package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +3 -7
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/types/components/dialog/dialog.d.ts +0 -6
- package/dist/types/components/dialog/index.d.ts +1 -1
- package/dist/types/components/table/table.d.ts +1 -2
- package/dist/types/constants/index.d.ts +4 -23
- package/dist/types/constants/regex.d.ts +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/layout/layout.d.ts +1 -4
- package/dist/types/types/index.d.ts +16 -25
- package/dist/types/types/layout.type.d.ts +1 -11
- package/dist/types/types/openApi.d.ts +5 -18
- package/dist/types/validator/form.scheme.d.ts +3 -12
- package/package.json +42 -47
- package/rollup.config.js +35 -37
- package/src/assets/icons/AddRow.svg +3 -3
- package/src/assets/icons/CheckMarkSquare.svg +5 -5
- package/src/assets/icons/CloseIcon.svg +4 -4
- package/src/assets/icons/DeleteIcon.svg +3 -3
- package/src/assets/icons/DownArrow.svg +3 -3
- package/src/assets/icons/EditIcon.svg +3 -3
- package/src/assets/icons/UpArrow.svg +3 -3
- package/src/assets/icons/deleteOutlinedIcon.svg +8 -8
- package/src/assets/icons/index.ts +8 -24
- package/src/components/Chips/Chips.tsx +87 -87
- package/src/components/Chips/style.scss +147 -147
- package/src/components/InfoForm/InfoForm.module.scss +20 -165
- package/src/components/InfoForm/InfoForm.tsx +138 -424
- package/src/components/LivePreview/LivePreview.module.scss +5 -181
- package/src/components/LivePreview/LivePreview.tsx +80 -224
- package/src/components/MethodAccordion/MethodAccordion.module.scss +289 -399
- package/src/components/MethodAccordion/MethodAccordion.tsx +431 -1063
- package/src/components/SVGLoader/SVGLoader.tsx +94 -96
- 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 +130 -133
- package/src/components/Tooltip/Tooltip.tsx +86 -85
- package/src/components/_global.scss +337 -337
- package/src/components/dialog/dialog.ts +54 -61
- package/src/components/dialog/index.tsx +85 -88
- package/src/components/dialog/style.scss +104 -188
- package/src/components/table/style.scss +179 -223
- package/src/components/table/table.tsx +307 -490
- package/src/constants/index.ts +66 -95
- package/src/constants/regex.ts +5 -7
- package/src/global.d.ts +13 -13
- package/src/helpers/layout.helper.ts +118 -187
- package/src/helpers/methodAccordion.helper.ts +19 -19
- package/src/index.ts +1 -2
- package/src/layout/layout.module.css +38 -65
- package/src/layout/layout.tsx +75 -181
- package/src/types/index.ts +0 -28
- package/src/types/layout.type.ts +22 -32
- package/src/types/openApi.ts +95 -109
- package/src/types/transformedOpenApi.ts +52 -52
- package/src/validator/form.scheme.ts +70 -96
- package/tsconfig.json +33 -33
- package/dist/16702d92fd6d1730.svg +0 -6
- package/dist/2b546d6e9fdf604a.svg +0 -3
- package/dist/2c3c6c2c3b835504.svg +0 -5
- package/dist/55b5994c5781482b.svg +0 -5
- package/dist/60bef8083c55f46b.svg +0 -6
- package/dist/68c710e0583e19e6.svg +0 -5
- package/dist/731221b3f242672d.svg +0 -4
- package/dist/8520b6792278d9df.svg +0 -6
- package/dist/9506ef7a26a74147.svg +0 -12
- package/dist/9b7aee27757b5036.svg +0 -3
- package/dist/_virtual/core.js +0 -2
- package/dist/_virtual/core.js.map +0 -1
- package/dist/_virtual/core2.js +0 -2
- package/dist/_virtual/core2.js.map +0 -1
- package/dist/_virtual/format.js +0 -2
- package/dist/_virtual/format.js.map +0 -1
- package/dist/_virtual/json.js +0 -2
- package/dist/_virtual/json.js.map +0 -1
- package/dist/cceb1e5dc06b0b85.svg +0 -4
- package/dist/d140a601c85bac25.svg +0 -3
- package/dist/d6d0a98ec38e6b77.svg +0 -3
- package/dist/e04479ad425e7d58.svg +0 -4
- package/dist/f4452c3ebcf0d5da.svg +0 -4
- package/dist/f4a32992f02af522.svg +0 -5
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +0 -1
- package/dist/node_modules/dom-serializer/lib/foreignNames.js +0 -2
- package/dist/node_modules/dom-serializer/lib/foreignNames.js.map +0 -1
- package/dist/node_modules/dom-serializer/lib/index.js +0 -2
- package/dist/node_modules/dom-serializer/lib/index.js.map +0 -1
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js +0 -2
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +0 -1
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +0 -2
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +0 -1
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js +0 -2
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +0 -1
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js +0 -2
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +0 -1
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +0 -2
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +0 -2
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +0 -2
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +0 -1
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js +0 -2
- package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +0 -1
- package/dist/node_modules/domhandler/lib/index.js +0 -2
- package/dist/node_modules/domhandler/lib/index.js.map +0 -1
- package/dist/node_modules/domhandler/lib/node.js +0 -2
- package/dist/node_modules/domhandler/lib/node.js.map +0 -1
- package/dist/node_modules/domutils/lib/feeds.js +0 -2
- package/dist/node_modules/domutils/lib/feeds.js.map +0 -1
- package/dist/node_modules/domutils/lib/helpers.js +0 -2
- package/dist/node_modules/domutils/lib/helpers.js.map +0 -1
- package/dist/node_modules/domutils/lib/index.js +0 -2
- package/dist/node_modules/domutils/lib/index.js.map +0 -1
- package/dist/node_modules/domutils/lib/legacy.js +0 -2
- package/dist/node_modules/domutils/lib/legacy.js.map +0 -1
- package/dist/node_modules/domutils/lib/manipulation.js +0 -2
- package/dist/node_modules/domutils/lib/manipulation.js.map +0 -1
- package/dist/node_modules/domutils/lib/querying.js +0 -2
- package/dist/node_modules/domutils/lib/querying.js.map +0 -1
- package/dist/node_modules/domutils/lib/stringify.js +0 -2
- package/dist/node_modules/domutils/lib/stringify.js.map +0 -1
- package/dist/node_modules/domutils/lib/traversal.js +0 -2
- package/dist/node_modules/domutils/lib/traversal.js.map +0 -1
- package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -2
- package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
- package/dist/node_modules/entities/dist/commonjs/decode.js +0 -2
- package/dist/node_modules/entities/dist/commonjs/decode.js.map +0 -1
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -2
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -2
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
- package/dist/node_modules/fast-json-stable-stringify/index.js +0 -2
- package/dist/node_modules/fast-json-stable-stringify/index.js.map +0 -1
- package/dist/node_modules/fault/index.js +0 -2
- package/dist/node_modules/fault/index.js.map +0 -1
- package/dist/node_modules/format/format.js +0 -2
- package/dist/node_modules/format/format.js.map +0 -1
- package/dist/node_modules/highlight.js/lib/core.js +0 -2
- package/dist/node_modules/highlight.js/lib/core.js.map +0 -1
- package/dist/node_modules/highlight.js/lib/languages/json.js +0 -2
- package/dist/node_modules/highlight.js/lib/languages/json.js.map +0 -1
- package/dist/node_modules/js-yaml/dist/js-yaml.mjs.js +0 -3
- package/dist/node_modules/js-yaml/dist/js-yaml.mjs.js.map +0 -1
- package/dist/node_modules/lowlight/lib/core.js +0 -2
- package/dist/node_modules/lowlight/lib/core.js.map +0 -1
- package/dist/node_modules/nanoid/index.js +0 -2
- package/dist/node_modules/nanoid/index.js.map +0 -1
- package/dist/node_modules/nanoid/url-alphabet/index.js +0 -2
- package/dist/node_modules/nanoid/url-alphabet/index.js.map +0 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +0 -2
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js.map +0 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +0 -2
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js.map +0 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +0 -2
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js.map +0 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/hljs/json.js +0 -2
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/hljs/json.js.map +0 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js +0 -2
- package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js.map +0 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-dark.js +0 -2
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-dark.js.map +0 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-light.js +0 -2
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/stackoverflow-light.js.map +0 -1
- package/dist/src/assets/icons/ApiIcon.svg.js +0 -2
- package/dist/src/assets/icons/ApiIcon.svg.js.map +0 -1
- package/dist/src/assets/icons/ArrowBack.svg.js +0 -2
- package/dist/src/assets/icons/ArrowBack.svg.js.map +0 -1
- package/dist/src/assets/icons/BookIcon.svg.js +0 -2
- package/dist/src/assets/icons/BookIcon.svg.js.map +0 -1
- package/dist/src/assets/icons/CopySticker.svg.js +0 -2
- package/dist/src/assets/icons/CopySticker.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/assets/icons/FilterIcon.svg.js +0 -2
- package/dist/src/assets/icons/FilterIcon.svg.js.map +0 -1
- package/dist/src/assets/icons/Plus.svg.js +0 -2
- package/dist/src/assets/icons/Plus.svg.js.map +0 -1
- package/dist/src/assets/icons/PlusSquare.svg.js +0 -2
- package/dist/src/assets/icons/PlusSquare.svg.js.map +0 -1
- package/dist/src/assets/icons/RequestOption.svg.js +0 -2
- package/dist/src/assets/icons/RequestOption.svg.js.map +0 -1
- package/dist/src/assets/icons/arrowDownGray.svg.js +0 -2
- package/dist/src/assets/icons/arrowDownGray.svg.js.map +0 -1
- package/dist/src/assets/icons/arrowRightGray.svg.js +0 -2
- package/dist/src/assets/icons/arrowRightGray.svg.js.map +0 -1
- package/dist/src/assets/icons/close-circle.svg.js +0 -2
- package/dist/src/assets/icons/close-circle.svg.js.map +0 -1
- package/dist/src/assets/icons/copy.svg.js +0 -2
- package/dist/src/assets/icons/copy.svg.js.map +0 -1
- package/dist/src/assets/icons/document.svg.js +0 -2
- package/dist/src/assets/icons/document.svg.js.map +0 -1
- package/dist/src/assets/icons/eye.svg.js +0 -2
- package/dist/src/assets/icons/eye.svg.js.map +0 -1
- package/dist/src/assets/icons/infoIcon.svg.js +0 -2
- package/dist/src/assets/icons/infoIcon.svg.js.map +0 -1
- package/dist/src/assets/icons/searchIcon.svg.js +0 -2
- package/dist/src/assets/icons/searchIcon.svg.js.map +0 -1
- package/dist/src/components/JsonInput/JsonInput.js +0 -2
- package/dist/src/components/JsonInput/JsonInput.js.map +0 -1
- package/dist/src/components/JsonInput/style.module.scss.js +0 -2
- package/dist/src/components/JsonInput/style.module.scss.js.map +0 -1
- package/dist/src/components/table/tags-table.js +0 -2
- package/dist/src/components/table/tags-table.js.map +0 -1
- package/dist/src/constants/methods.constant.js +0 -2
- package/dist/src/constants/methods.constant.js.map +0 -1
- package/dist/src/context/SectionToggleContext.js +0 -2
- package/dist/src/context/SectionToggleContext.js.map +0 -1
- package/dist/src/helpers/docs.helper.js +0 -2
- package/dist/src/helpers/docs.helper.js.map +0 -1
- package/dist/src/layout/docsComponents/Codebox/Codebox.js +0 -2
- package/dist/src/layout/docsComponents/Codebox/Codebox.js.map +0 -1
- package/dist/src/layout/docsComponents/Codebox/style.module.scss.js +0 -2
- package/dist/src/layout/docsComponents/Codebox/style.module.scss.js.map +0 -1
- package/dist/src/layout/docsComponents/DocsAside/DocsAside.js +0 -2
- package/dist/src/layout/docsComponents/DocsAside/DocsAside.js.map +0 -1
- package/dist/src/layout/docsComponents/DocsAside/style.module.scss.js +0 -2
- package/dist/src/layout/docsComponents/DocsAside/style.module.scss.js.map +0 -1
- package/dist/src/layout/docsComponents/DocsContent/DocsContent.js +0 -2
- package/dist/src/layout/docsComponents/DocsContent/DocsContent.js.map +0 -1
- package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js +0 -2
- package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js.map +0 -1
- package/dist/src/layout/docsComponents/DocsContent/OverviewPage/index.js +0 -2
- package/dist/src/layout/docsComponents/DocsContent/OverviewPage/index.js.map +0 -1
- package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js +0 -2
- package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js.map +0 -1
- package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js +0 -2
- package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js.map +0 -1
- package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js +0 -2
- package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js.map +0 -1
- package/dist/src/layout/docsComponents/index.js +0 -2
- package/dist/src/layout/docsComponents/index.js.map +0 -1
- package/dist/src/layout/docsLayout.js +0 -2
- package/dist/src/layout/docsLayout.js.map +0 -1
- package/dist/src/utils/index.js +0 -2
- package/dist/src/utils/index.js.map +0 -1
- package/dist/types/components/JsonInput/JsonInput.d.ts +0 -14
- package/dist/types/components/table/tags-table.d.ts +0 -11
- package/dist/types/constants/methods.constant.d.ts +0 -16
- package/dist/types/context/SectionToggleContext.d.ts +0 -37
- package/dist/types/helpers/docs.helper.d.ts +0 -3
- package/dist/types/layout/docsComponents/Codebox/Codebox.d.ts +0 -4
- package/dist/types/layout/docsComponents/DocsAside/DocsAside.d.ts +0 -5
- package/dist/types/layout/docsComponents/DocsContent/DocsContent.d.ts +0 -12
- package/dist/types/layout/docsComponents/DocsContent/EndpointPage/index.d.ts +0 -7
- package/dist/types/layout/docsComponents/DocsContent/OverviewPage/index.d.ts +0 -9
- package/dist/types/layout/docsComponents/DocsHeader/DocsHeader.d.ts +0 -6
- package/dist/types/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.d.ts +0 -18
- package/dist/types/layout/docsComponents/index.d.ts +0 -17
- package/dist/types/layout/docsLayout.d.ts +0 -31
- package/dist/types/types/docsLayout.type.d.ts +0 -7
- package/dist/types/utils/index.d.ts +0 -2
- package/src/assets/icons/ApiIcon.svg +0 -12
- package/src/assets/icons/ArrowBack.svg +0 -3
- package/src/assets/icons/BookIcon.svg +0 -6
- package/src/assets/icons/CopySticker.svg +0 -6
- package/src/assets/icons/DeleteOutlinedIcon.svg +0 -8
- package/src/assets/icons/FilterIcon.svg +0 -4
- package/src/assets/icons/Plus.svg +0 -5
- package/src/assets/icons/PlusSquare.svg +0 -3
- package/src/assets/icons/RequestOption.svg +0 -5
- package/src/assets/icons/arrowDownGray.svg +0 -3
- package/src/assets/icons/arrowRightGray.svg +0 -3
- package/src/assets/icons/close-circle.svg +0 -5
- package/src/assets/icons/copy.svg +0 -4
- package/src/assets/icons/document.svg +0 -6
- package/src/assets/icons/eye.svg +0 -4
- package/src/assets/icons/infoIcon.svg +0 -5
- package/src/assets/icons/searchIcon.svg +0 -4
- package/src/components/JsonInput/JsonInput.tsx +0 -149
- package/src/components/JsonInput/style.module.scss +0 -133
- package/src/components/table/tags-table.tsx +0 -348
- package/src/constants/methods.constant.ts +0 -26
- package/src/context/SectionToggleContext.tsx +0 -121
- package/src/helpers/docs.helper.ts +0 -42
- package/src/layout/docsComponents/Codebox/Codebox.tsx +0 -61
- package/src/layout/docsComponents/Codebox/style.module.scss +0 -43
- package/src/layout/docsComponents/DocsAside/DocsAside.tsx +0 -93
- package/src/layout/docsComponents/DocsAside/style.module.scss +0 -113
- package/src/layout/docsComponents/DocsContent/DocsContent.tsx +0 -51
- package/src/layout/docsComponents/DocsContent/EndpointPage/index.tsx +0 -236
- package/src/layout/docsComponents/DocsContent/EndpointPage/style.scss +0 -309
- package/src/layout/docsComponents/DocsContent/OverviewPage/index.tsx +0 -192
- package/src/layout/docsComponents/DocsContent/OverviewPage/style.scss +0 -284
- package/src/layout/docsComponents/DocsContent/style.scss +0 -0
- package/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss +0 -270
- package/src/layout/docsComponents/DocsHeader/DocsHeader.tsx +0 -187
- package/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.tsx +0 -229
- package/src/layout/docsComponents/DocsSideMenuTree/style.scss +0 -195
- package/src/layout/docsComponents/index.scss +0 -49
- package/src/layout/docsComponents/index.tsx +0 -28
- package/src/layout/docsLayout.tsx +0 -120
- package/src/types/docsLayout.type.ts +0 -7
- package/src/utils/index.ts +0 -12
- package/the_npm_commands.sh +0 -12
- package/variables.txt +0 -4
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import SVGLoader from '../../../../components/SVGLoader/SVGLoader'
|
|
2
|
-
import {
|
|
3
|
-
ArrowBack,
|
|
4
|
-
CopySticker,
|
|
5
|
-
DownArrowIcon,
|
|
6
|
-
RequestOption,
|
|
7
|
-
} from '../../../../assets/icons/index'
|
|
8
|
-
import { SelectGroup } from 'digitinary-ui'
|
|
9
|
-
import { useEffect, useState } from 'react'
|
|
10
|
-
import { EndpointData, OverviewData } from 'src/layout/docsLayout'
|
|
11
|
-
import { handleStatusColor } from '../../../../helpers/methodAccordion.helper'
|
|
12
|
-
import { httpStatusCodes } from '../../../../constants/index'
|
|
13
|
-
import styles from '../../Codebox/style.module.scss'
|
|
14
|
-
import Tooltip from '../../../../components/Tooltip/Tooltip'
|
|
15
|
-
import './style.scss'
|
|
16
|
-
import { SectionEnum, useSectionToggle } from '../../../../../src/context/SectionToggleContext'
|
|
17
|
-
import { capitalizeFirstLetter } from '../../../../../src/utils'
|
|
18
|
-
|
|
19
|
-
export const EndpointPage = ({
|
|
20
|
-
data,
|
|
21
|
-
setActiveType,
|
|
22
|
-
setActiveItemData,
|
|
23
|
-
}: {
|
|
24
|
-
data: EndpointData
|
|
25
|
-
setActiveType: React.Dispatch<React.SetStateAction<'OVERVIEW' | 'ENDPOINT'>>
|
|
26
|
-
setActiveItemData: React.Dispatch<React.SetStateAction<OverviewData | EndpointData>>
|
|
27
|
-
}) => {
|
|
28
|
-
const [activeTab, setActiveTab] = useState('header')
|
|
29
|
-
const { toggleSection } = useSectionToggle()
|
|
30
|
-
|
|
31
|
-
const httpStatusCodeOptions = httpStatusCodes.map((code) => ({
|
|
32
|
-
label: (
|
|
33
|
-
<div className={'statusCodeOptionContainer'}>
|
|
34
|
-
<div
|
|
35
|
-
className={'statusCodeOptionCircle'}
|
|
36
|
-
style={{ backgroundColor: handleStatusColor(code) }}
|
|
37
|
-
></div>
|
|
38
|
-
<span>{code}</span>
|
|
39
|
-
</div>
|
|
40
|
-
),
|
|
41
|
-
value: code,
|
|
42
|
-
}))
|
|
43
|
-
|
|
44
|
-
const [expanded, setExpanded] = useState(null)
|
|
45
|
-
const [selectedResStatusCode, setSelectedResStatusCode] = useState(httpStatusCodeOptions[4])
|
|
46
|
-
const [headersList, setHeadersList] = useState({})
|
|
47
|
-
const requestTableData = (data?.parameters || []).filter(
|
|
48
|
-
(param) => param.in?.toLowerCase() === activeTab.toLowerCase()
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
if (selectedResStatusCode && selectedResStatusCode.value) {
|
|
53
|
-
const headerObj = data?.responses[selectedResStatusCode.value]
|
|
54
|
-
setHeadersList(headerObj?.headers)
|
|
55
|
-
}
|
|
56
|
-
}, [selectedResStatusCode])
|
|
57
|
-
|
|
58
|
-
// ? TODO: 'body' should be returned after discussing with PO
|
|
59
|
-
|
|
60
|
-
return (
|
|
61
|
-
<div className="api-details-expanded">
|
|
62
|
-
<div className="test-button">
|
|
63
|
-
<button
|
|
64
|
-
className="back-button"
|
|
65
|
-
onClick={() => {
|
|
66
|
-
toggleSection(data.api.apiSpecId, [{ type: SectionEnum.OVERVIEW, setTo: true }], {
|
|
67
|
-
resetOthers: true,
|
|
68
|
-
filterKeys: [SectionEnum.RESOURCE],
|
|
69
|
-
})
|
|
70
|
-
setActiveType('OVERVIEW')
|
|
71
|
-
setActiveItemData(data.api)
|
|
72
|
-
}}
|
|
73
|
-
>
|
|
74
|
-
<SVGLoader src={ArrowBack} />
|
|
75
|
-
</button>
|
|
76
|
-
|
|
77
|
-
<Tooltip content="Comming soon">
|
|
78
|
-
<button className="disabled">Test</button>
|
|
79
|
-
</Tooltip>
|
|
80
|
-
</div>
|
|
81
|
-
<h3>{data.api.title}</h3>
|
|
82
|
-
<h1 className="api-title">{data?.summary}</h1>
|
|
83
|
-
<div className="url-box">
|
|
84
|
-
<div style={{ textAlign: 'center' }}>
|
|
85
|
-
<span className={`method-label ${data?.method?.toLowerCase()}`}>{data.method}</span>
|
|
86
|
-
<span className="url-text">{data?.path}</span>
|
|
87
|
-
</div>
|
|
88
|
-
<span className="icon" onClick={() => navigator.clipboard.writeText(data?.path)}>
|
|
89
|
-
<SVGLoader src={CopySticker} />
|
|
90
|
-
</span>
|
|
91
|
-
</div>
|
|
92
|
-
|
|
93
|
-
<p className="api-desc">{data?.description || 'No Description'}</p>
|
|
94
|
-
|
|
95
|
-
<h3>Request</h3>
|
|
96
|
-
|
|
97
|
-
<div className="request-section">
|
|
98
|
-
<div className="request-tabs">
|
|
99
|
-
{['header', 'path', 'query'].map((tab) => (
|
|
100
|
-
<button
|
|
101
|
-
key={tab}
|
|
102
|
-
className={`tab ${activeTab === tab ? 'active' : ''}`}
|
|
103
|
-
onClick={() => setActiveTab(tab)}
|
|
104
|
-
>
|
|
105
|
-
<SVGLoader src={RequestOption} className="icon-left" />
|
|
106
|
-
<span className="tab-label">
|
|
107
|
-
{tab === 'requestBody'
|
|
108
|
-
? 'Request Body'
|
|
109
|
-
: tab.charAt(0).toUpperCase() + tab.slice(1)}
|
|
110
|
-
</span>
|
|
111
|
-
</button>
|
|
112
|
-
))}
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
|
-
{
|
|
116
|
-
<div className="table-wrapper">
|
|
117
|
-
<table className="param-table">
|
|
118
|
-
<thead>
|
|
119
|
-
<tr>
|
|
120
|
-
<th className="head-table-label">Parameter Name</th>
|
|
121
|
-
<th className="head-table-label">Required</th>
|
|
122
|
-
<th className="head-table-label">Type</th>
|
|
123
|
-
<th className="head-table-label">Enum</th>
|
|
124
|
-
<th className="head-table-label">Description</th>
|
|
125
|
-
</tr>
|
|
126
|
-
</thead>
|
|
127
|
-
<tbody>
|
|
128
|
-
{data.parameters
|
|
129
|
-
?.filter((p) => p.in?.toLowerCase() === activeTab.toLowerCase())
|
|
130
|
-
.map((row, index) => (
|
|
131
|
-
<tr key={index}>
|
|
132
|
-
<td>{row.name}</td>
|
|
133
|
-
<td>{row.required ? 'True' : 'False'}</td>
|
|
134
|
-
<td style={{ textTransform: 'capitalize' }}>
|
|
135
|
-
<span>{row?.schema?.type || '-'}</span>
|
|
136
|
-
{row?.schema?.type === 'array' && row?.schema?.items?.type && (
|
|
137
|
-
<span style={{ color: '#616874', fontSize: '0.75rem' }}>
|
|
138
|
-
_{capitalizeFirstLetter(row.schema?.items?.type)}
|
|
139
|
-
</span>
|
|
140
|
-
)}
|
|
141
|
-
</td>
|
|
142
|
-
<td>{Array.isArray(row.schema?.enum) ? row.schema.enum.join(' / ') : '-'}</td>
|
|
143
|
-
<td className="desc-cell">
|
|
144
|
-
<div className={`desc-text ${expanded === index ? 'expanded' : ''}`}>
|
|
145
|
-
{row.description || 'No description'}
|
|
146
|
-
</div>
|
|
147
|
-
<button
|
|
148
|
-
className="desc-toggle"
|
|
149
|
-
onClick={() => setExpanded(expanded === index ? null : index)}
|
|
150
|
-
>
|
|
151
|
-
<SVGLoader
|
|
152
|
-
src={DownArrowIcon}
|
|
153
|
-
className={expanded === index ? 'rotated' : ''}
|
|
154
|
-
/>
|
|
155
|
-
</button>
|
|
156
|
-
</td>
|
|
157
|
-
</tr>
|
|
158
|
-
))}
|
|
159
|
-
</tbody>
|
|
160
|
-
</table>
|
|
161
|
-
</div>
|
|
162
|
-
}
|
|
163
|
-
</div>
|
|
164
|
-
|
|
165
|
-
<div className="response-section">
|
|
166
|
-
<h3>Response</h3>
|
|
167
|
-
|
|
168
|
-
<div>
|
|
169
|
-
<div style={{ height: '0.5rem', width: '7.5rem', marginLeft: 'auto' }}>
|
|
170
|
-
{Object.keys(data?.responses || {})?.length > 0 && (
|
|
171
|
-
<div className={'codeboxSection'}>
|
|
172
|
-
<div className={`${'codeboxHeader'}`}>
|
|
173
|
-
<SelectGroup
|
|
174
|
-
size="small"
|
|
175
|
-
withSearch={false}
|
|
176
|
-
isMultiple={false}
|
|
177
|
-
clearable={false}
|
|
178
|
-
placeholder="200"
|
|
179
|
-
options={[
|
|
180
|
-
{
|
|
181
|
-
list: httpStatusCodeOptions,
|
|
182
|
-
},
|
|
183
|
-
]}
|
|
184
|
-
value={selectedResStatusCode}
|
|
185
|
-
onChange={(value) => {
|
|
186
|
-
setSelectedResStatusCode(value)
|
|
187
|
-
}}
|
|
188
|
-
/>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
)}
|
|
192
|
-
</div>
|
|
193
|
-
<button className="tab active ">
|
|
194
|
-
<SVGLoader src={RequestOption} className="icon-left" />
|
|
195
|
-
Header
|
|
196
|
-
</button>
|
|
197
|
-
</div>
|
|
198
|
-
|
|
199
|
-
<div className="table-wrapper">
|
|
200
|
-
<table className="param-table">
|
|
201
|
-
<thead>
|
|
202
|
-
<tr>
|
|
203
|
-
<th className="head-table-label">Header Name</th>
|
|
204
|
-
<th className="head-table-label">Required</th>
|
|
205
|
-
<th className="head-table-label">Type</th>
|
|
206
|
-
<th className="head-table-label">Enum</th>
|
|
207
|
-
<th className="head-table-label">Description</th>
|
|
208
|
-
</tr>
|
|
209
|
-
</thead>
|
|
210
|
-
<tbody>
|
|
211
|
-
{!!headersList &&
|
|
212
|
-
Object.keys(headersList) &&
|
|
213
|
-
Object.keys(headersList).map((key) => (
|
|
214
|
-
<tr>
|
|
215
|
-
<td>{key}</td>
|
|
216
|
-
<td>{headersList[key]?.required.toString()}</td>
|
|
217
|
-
<td style={{ textTransform: 'capitalize' }}>
|
|
218
|
-
<span>{headersList[key]?.schema?.type || '-'}</span>
|
|
219
|
-
{headersList[key]?.schema?.type === 'array' &&
|
|
220
|
-
headersList[key]?.schema?.items?.type && (
|
|
221
|
-
<span style={{ color: '#616874', fontSize: '0.75rem' }}>
|
|
222
|
-
_{capitalizeFirstLetter(headersList[key]?.schema?.items?.type)}
|
|
223
|
-
</span>
|
|
224
|
-
)}
|
|
225
|
-
</td>
|
|
226
|
-
<td>{headersList[key]?.schema?.enum?.join('/')}</td>
|
|
227
|
-
<td>{headersList[key]?.description}</td>
|
|
228
|
-
</tr>
|
|
229
|
-
))}
|
|
230
|
-
</tbody>
|
|
231
|
-
</table>
|
|
232
|
-
</div>
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
)
|
|
236
|
-
}
|
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
main {
|
|
2
|
-
padding: 2rem;
|
|
3
|
-
|
|
4
|
-
.api-details-expanded {
|
|
5
|
-
.response-section .codeboxSection .codeboxHeader {
|
|
6
|
-
.multiSelectGroup {
|
|
7
|
-
.selectDisplay {
|
|
8
|
-
padding: 0;
|
|
9
|
-
width: 7.5rem !important;
|
|
10
|
-
height: 2rem !important;
|
|
11
|
-
|
|
12
|
-
.select-label-container {
|
|
13
|
-
min-width: 100%;
|
|
14
|
-
padding: 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.optionsList .option {
|
|
19
|
-
height: 1.5rem;
|
|
20
|
-
padding: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.statusCodeOptionContainer {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
gap: 0.625rem;
|
|
27
|
-
padding-left: 0.75rem;
|
|
28
|
-
|
|
29
|
-
.statusCodeOptionCircle {
|
|
30
|
-
width: 0.625rem;
|
|
31
|
-
min-width: 0.625rem;
|
|
32
|
-
aspect-ratio: 1 / 1;
|
|
33
|
-
border-radius: 100%;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.api-title {
|
|
40
|
-
font-size: 3rem;
|
|
41
|
-
font-weight: 600;
|
|
42
|
-
letter-spacing: -1px;
|
|
43
|
-
line-height: 3.5rem;
|
|
44
|
-
margin-bottom: 0.752rem;
|
|
45
|
-
color: #4d75d9;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.test-button {
|
|
49
|
-
margin-top: 1.25rem;
|
|
50
|
-
margin-bottom: 3.125rem;
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
|
|
55
|
-
gap: 0.5rem;
|
|
56
|
-
|
|
57
|
-
.back-button {
|
|
58
|
-
display: inline-flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
width: 2.75rem;
|
|
62
|
-
height: 2.75rem;
|
|
63
|
-
border: 1px solid #3b82f6;
|
|
64
|
-
border-radius: 0.5rem;
|
|
65
|
-
background-color: white;
|
|
66
|
-
color: #3b82f6;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
transition: background-color 0.2s ease;
|
|
69
|
-
|
|
70
|
-
svg {
|
|
71
|
-
stroke-width: 2;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&:hover {
|
|
75
|
-
background-color: #eff6ff;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.test-button .disabled {
|
|
81
|
-
background: #f0f1f2;
|
|
82
|
-
color: #9ca1aa;
|
|
83
|
-
cursor: not-allowed;
|
|
84
|
-
padding: 0.375rem 1rem;
|
|
85
|
-
border-radius: 6px;
|
|
86
|
-
font-size: 14px;
|
|
87
|
-
border: 1px #b8bfca solid;
|
|
88
|
-
width: 7.56rem;
|
|
89
|
-
height: 2.75rem;
|
|
90
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
h3 {
|
|
94
|
-
color: #616874;
|
|
95
|
-
font-size: 1.125rem;
|
|
96
|
-
font-weight: 400;
|
|
97
|
-
letter-spacing: 0px;
|
|
98
|
-
line-height: 1.5rem;
|
|
99
|
-
margin-top: 1.5rem;
|
|
100
|
-
margin-bottom: 0.5rem;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.url-box {
|
|
104
|
-
height: 1.75rem;
|
|
105
|
-
justify-content: space-between;
|
|
106
|
-
background-color: #edf1fb !important;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.url-text {
|
|
110
|
-
color: #3b3f46;
|
|
111
|
-
font-size: 1.25rem;
|
|
112
|
-
letter-spacing: 0px;
|
|
113
|
-
line-height: 1.75rem;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.method-label {
|
|
117
|
-
font-size: 0.924rem;
|
|
118
|
-
font-weight: 600;
|
|
119
|
-
padding: 0.125rem 0.5rem;
|
|
120
|
-
border-radius: 0.375rem;
|
|
121
|
-
text-transform: uppercase;
|
|
122
|
-
color: #3aaa35;
|
|
123
|
-
text-decoration: underline;
|
|
124
|
-
|
|
125
|
-
&.get {
|
|
126
|
-
color: #3a6cd1;
|
|
127
|
-
}
|
|
128
|
-
&.post {
|
|
129
|
-
color: #3aaa35;
|
|
130
|
-
}
|
|
131
|
-
&.put {
|
|
132
|
-
color: #faad14;
|
|
133
|
-
}
|
|
134
|
-
&.patch {
|
|
135
|
-
color: #58e2c2;
|
|
136
|
-
}
|
|
137
|
-
&.delete {
|
|
138
|
-
color: #da3f3f;
|
|
139
|
-
}
|
|
140
|
-
&.head {
|
|
141
|
-
color: #9461c9;
|
|
142
|
-
}
|
|
143
|
-
&.trace {
|
|
144
|
-
color: #ffa28f;
|
|
145
|
-
}
|
|
146
|
-
&.options {
|
|
147
|
-
color: #495d97;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.url-box {
|
|
152
|
-
background-color: #f3f4f6;
|
|
153
|
-
padding: 0.375rem 0.75rem;
|
|
154
|
-
border-radius: 0.5rem;
|
|
155
|
-
display: flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
gap: 0.5rem;
|
|
158
|
-
font-size: 14px;
|
|
159
|
-
flex: 1;
|
|
160
|
-
height: 2.8rem;
|
|
161
|
-
margin-bottom: 1.5rem;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.api-desc {
|
|
165
|
-
color: #6b7280;
|
|
166
|
-
margin: 1.5rem 0;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.head-table-label {
|
|
170
|
-
color: #3b3f46 !important;
|
|
171
|
-
letter-spacing: 0px;
|
|
172
|
-
font-weight: 400 !important;
|
|
173
|
-
line-height: 1rem;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.request-tabs {
|
|
177
|
-
display: flex;
|
|
178
|
-
gap: 0.5rem;
|
|
179
|
-
margin-bottom: 0.75rem;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.tab {
|
|
183
|
-
background: white;
|
|
184
|
-
border: 1px solid #d1d3d8;
|
|
185
|
-
padding: 0.375rem 0.75rem;
|
|
186
|
-
border-radius: 6px;
|
|
187
|
-
cursor: pointer;
|
|
188
|
-
font-size: 0.875rem;
|
|
189
|
-
color: #000000;
|
|
190
|
-
display: flex;
|
|
191
|
-
align-items: center;
|
|
192
|
-
gap: 0.375rem;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.tab {
|
|
196
|
-
background: white;
|
|
197
|
-
border: 1px solid #d1d3d8;
|
|
198
|
-
padding: 0.375rem 0.75rem;
|
|
199
|
-
border-radius: 6px;
|
|
200
|
-
cursor: pointer;
|
|
201
|
-
font-size: 0.875rem;
|
|
202
|
-
color: #000000;
|
|
203
|
-
display: flex;
|
|
204
|
-
align-items: center;
|
|
205
|
-
gap: 0.375rem;
|
|
206
|
-
|
|
207
|
-
&.active {
|
|
208
|
-
background-color: #e5edff;
|
|
209
|
-
border-color: #4d75d9;
|
|
210
|
-
color: #000000;
|
|
211
|
-
font-weight: 400;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.icon-left {
|
|
216
|
-
width: 0.875rem;
|
|
217
|
-
height: 0.875rem;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.table-wrapper {
|
|
221
|
-
overflow-x: auto;
|
|
222
|
-
border: 1px solid #e5e7eb;
|
|
223
|
-
border-radius: 0.8rem;
|
|
224
|
-
background: white;
|
|
225
|
-
border: 1px #bbbec5 solid;
|
|
226
|
-
margin-bottom: 2rem;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.param-table {
|
|
230
|
-
width: 100%;
|
|
231
|
-
border-collapse: collapse;
|
|
232
|
-
font-size: 0.875rem;
|
|
233
|
-
|
|
234
|
-
.desc-cell {
|
|
235
|
-
position: relative;
|
|
236
|
-
max-width: 20rem;
|
|
237
|
-
padding-right: 1.5rem;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.desc-text {
|
|
241
|
-
white-space: nowrap;
|
|
242
|
-
overflow: hidden;
|
|
243
|
-
text-overflow: ellipsis;
|
|
244
|
-
max-width: 90%;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.desc-text.expanded {
|
|
248
|
-
white-space: normal;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.desc-toggle {
|
|
252
|
-
position: absolute;
|
|
253
|
-
right: 0.5rem;
|
|
254
|
-
top: 50%;
|
|
255
|
-
transform: translateY(-50%);
|
|
256
|
-
background: none;
|
|
257
|
-
border: none;
|
|
258
|
-
cursor: pointer;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.desc-toggle svg {
|
|
262
|
-
transition: transform 0.2s ease;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.desc-toggle .rotated {
|
|
266
|
-
transform: rotate(180deg);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.param-table th,
|
|
271
|
-
.param-table td {
|
|
272
|
-
padding: 10px;
|
|
273
|
-
border-bottom: 1px solid #bbbec5;
|
|
274
|
-
text-align: left;
|
|
275
|
-
color: #3b3f46;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.param-table th {
|
|
279
|
-
background: #edf1fb;
|
|
280
|
-
font-weight: 600;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.response-status {
|
|
284
|
-
display: flex;
|
|
285
|
-
align-items: center;
|
|
286
|
-
justify-content: end;
|
|
287
|
-
gap: 0.375rem;
|
|
288
|
-
font-size: 0.875rem;
|
|
289
|
-
color: green;
|
|
290
|
-
margin-bottom: 0.75rem;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.response-drop {
|
|
294
|
-
width: 10rem;
|
|
295
|
-
justify-content: end;
|
|
296
|
-
}
|
|
297
|
-
.response-drop-test {
|
|
298
|
-
justify-content: end !important;
|
|
299
|
-
align-items: end !important;
|
|
300
|
-
align-content: end !important;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.copy-icon {
|
|
304
|
-
cursor: pointer;
|
|
305
|
-
width: 1.5rem;
|
|
306
|
-
height: 1.5rem;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|