@digi-frontend/dgate-api-documentation 1.0.39 → 1.0.47
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/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.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/f4a32992f02af522.svg +5 -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/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/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/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/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/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/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/DocsAside/DocsAside.js +2 -0
- package/dist/src/layout/docsComponents/DocsAside/DocsAside.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/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/validator/form.scheme.js +1 -1
- package/dist/src/validator/form.scheme.js.map +1 -1
- package/dist/styles.css +1436 -368
- package/dist/types/assets/icons/index.d.ts +16 -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 +3 -0
- 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/DocsAside/DocsAside.d.ts +3 -0
- package/dist/types/layout/docsComponents/DocsContent/DocsContent.d.ts +3 -0
- package/dist/types/layout/docsComponents/DocsContent/EndpointPage/index.d.ts +2 -0
- package/dist/types/layout/docsComponents/DocsContent/TagPage/index.d.ts +2 -0
- package/dist/types/layout/docsComponents/DocsHeader/DocsHeader.d.ts +3 -0
- package/dist/types/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.d.ts +8 -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/validator/form.scheme.d.ts +10 -2
- package/package.json +45 -43
- package/rollup.config.js +35 -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/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 +23 -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 +386 -338
- package/src/components/MethodAccordion/MethodAccordion.tsx +670 -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 +57 -54
- package/src/components/dialog/index.tsx +86 -85
- package/src/components/dialog/style.scss +188 -104
- package/src/components/table/style.scss +217 -190
- package/src/components/table/table.tsx +489 -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/DocsAside/DocsAside.tsx +8 -0
- package/src/layout/docsComponents/DocsAside/style.scss +3 -0
- package/src/layout/docsComponents/DocsContent/DocsContent.tsx +13 -0
- package/src/layout/docsComponents/DocsContent/EndpointPage/index.tsx +183 -0
- package/src/layout/docsComponents/DocsContent/EndpointPage/style.scss +230 -0
- package/src/layout/docsComponents/DocsContent/TagPage/index.tsx +111 -0
- package/src/layout/docsComponents/DocsContent/TagPage/style.scss +246 -0
- package/src/layout/docsComponents/DocsContent/style.scss +0 -0
- package/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss +198 -0
- package/src/layout/docsComponents/DocsHeader/DocsHeader.tsx +119 -0
- package/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.tsx +183 -0
- package/src/layout/docsComponents/DocsSideMenuTree/style.scss +195 -0
- package/src/layout/docsComponents/index.scss +47 -0
- package/src/layout/docsComponents/index.tsx +28 -0
- package/src/layout/docsLayout.tsx +69 -0
- package/src/layout/layout.module.css +61 -61
- 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/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/UpArrow.svg.js +0 -2
- package/dist/src/assets/icons/UpArrow.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,149 +1,149 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react'
|
|
2
|
-
import yaml from 'js-yaml'
|
|
3
|
-
import styles from './style.module.scss'
|
|
4
|
-
import regex from '../../constants/regex'
|
|
5
|
-
|
|
6
|
-
const errorMapping = {
|
|
7
|
-
BOTH: 'Invalid JSON or YAML format',
|
|
8
|
-
JSON: 'Invalid JSON format',
|
|
9
|
-
YML: 'Invalid YAML format',
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const JsonInput = ({
|
|
13
|
-
placeholder,
|
|
14
|
-
label,
|
|
15
|
-
value,
|
|
16
|
-
onValidation,
|
|
17
|
-
onChange,
|
|
18
|
-
dataId,
|
|
19
|
-
className = '',
|
|
20
|
-
errorMessage,
|
|
21
|
-
acceptType = 'BOTH',
|
|
22
|
-
fieldIsDisabled,
|
|
23
|
-
withFooter = true,
|
|
24
|
-
}) => {
|
|
25
|
-
const [isValid, setIsValid] = useState()
|
|
26
|
-
const [disabledBeautify, setDisabledBeautify] = useState(true)
|
|
27
|
-
|
|
28
|
-
const handlePrettify = (e) => {
|
|
29
|
-
if (value === '') return
|
|
30
|
-
e.preventDefault()
|
|
31
|
-
try {
|
|
32
|
-
let prettifiedData
|
|
33
|
-
if ((acceptType === 'BOTH' || acceptType === 'JSON') && isValidJson(value)) {
|
|
34
|
-
// If it's valid JSON, prettify JSON
|
|
35
|
-
prettifiedData = JSON.stringify(JSON.parse(value), null, 2)
|
|
36
|
-
} else if (acceptType === 'BOTH' || acceptType === 'YML') {
|
|
37
|
-
// If it's not valid JSON, prettify YAML
|
|
38
|
-
prettifiedData = yaml.dump(yaml.load(value), { indent: 0 })
|
|
39
|
-
}
|
|
40
|
-
onChange(prettifiedData)
|
|
41
|
-
setIsValid(true) // Reset validity status
|
|
42
|
-
} catch (error) {
|
|
43
|
-
console.error(error)
|
|
44
|
-
setIsValid(false)
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Function to check if input is valid JSON
|
|
49
|
-
const isValidJson = (str) => {
|
|
50
|
-
try {
|
|
51
|
-
JSON.parse(str)
|
|
52
|
-
return true
|
|
53
|
-
} catch (error) {
|
|
54
|
-
return false
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const checkIsValid = () => {
|
|
59
|
-
if (acceptType === 'BOTH' || acceptType === 'JSON') {
|
|
60
|
-
return isValidJson(value)
|
|
61
|
-
} else if (acceptType === 'BOTH' || acceptType === 'YML') {
|
|
62
|
-
try {
|
|
63
|
-
// Try parsing as YAML
|
|
64
|
-
yaml.load(value)
|
|
65
|
-
return true
|
|
66
|
-
} catch (error) {
|
|
67
|
-
console.error(error)
|
|
68
|
-
return false
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
useEffect(() => {
|
|
74
|
-
try {
|
|
75
|
-
handlePrettify(value)
|
|
76
|
-
} catch {}
|
|
77
|
-
}, [])
|
|
78
|
-
|
|
79
|
-
return (
|
|
80
|
-
<div
|
|
81
|
-
className={`${styles['json-editor-container']} ${className} ${
|
|
82
|
-
fieldIsDisabled ? styles.disabled : ''
|
|
83
|
-
}`}
|
|
84
|
-
>
|
|
85
|
-
{label && <p className={`${styles['json-editor-label']}`}>{label}</p>}
|
|
86
|
-
<div
|
|
87
|
-
className={`${styles['json-editor']} ${
|
|
88
|
-
value !== '' && isValid === false ? styles.invalid : ''
|
|
89
|
-
}`}
|
|
90
|
-
>
|
|
91
|
-
<textarea
|
|
92
|
-
disabled={fieldIsDisabled}
|
|
93
|
-
data-id={dataId}
|
|
94
|
-
value={value}
|
|
95
|
-
onChange={(e) => {
|
|
96
|
-
if (fieldIsDisabled) return
|
|
97
|
-
if (regex.ASCII.test(e.target.value)) {
|
|
98
|
-
setIsValid(undefined)
|
|
99
|
-
setDisabledBeautify(true)
|
|
100
|
-
onChange(e.target.value)
|
|
101
|
-
}
|
|
102
|
-
}}
|
|
103
|
-
onPaste={(e) => {
|
|
104
|
-
if (fieldIsDisabled) return
|
|
105
|
-
if (regex.ASCII.test(e.target.value)) {
|
|
106
|
-
setIsValid(undefined)
|
|
107
|
-
setDisabledBeautify(true)
|
|
108
|
-
onChange(e.target.value)
|
|
109
|
-
}
|
|
110
|
-
}}
|
|
111
|
-
min="1"
|
|
112
|
-
placeholder={placeholder}
|
|
113
|
-
/>
|
|
114
|
-
{withFooter && (
|
|
115
|
-
<div className={`${styles['actions-container']}`}>
|
|
116
|
-
<button
|
|
117
|
-
type="button"
|
|
118
|
-
className={styles.validate}
|
|
119
|
-
onClick={() => {
|
|
120
|
-
const valid = checkIsValid()
|
|
121
|
-
setIsValid(valid)
|
|
122
|
-
onValidation(valid)
|
|
123
|
-
setDisabledBeautify(!checkIsValid())
|
|
124
|
-
}}
|
|
125
|
-
data-id={`${dataId}-VALIDATE-BUTTON`}
|
|
126
|
-
disabled={value === ''}
|
|
127
|
-
>
|
|
128
|
-
Validate
|
|
129
|
-
</button>
|
|
130
|
-
<button
|
|
131
|
-
type="button"
|
|
132
|
-
disabled={value === '' || disabledBeautify}
|
|
133
|
-
data-id={`${dataId}-BEAUTIFY-BUTTON`}
|
|
134
|
-
className={styles.beautify}
|
|
135
|
-
onClick={handlePrettify}
|
|
136
|
-
>
|
|
137
|
-
Beautify
|
|
138
|
-
</button>
|
|
139
|
-
</div>
|
|
140
|
-
)}
|
|
141
|
-
</div>
|
|
142
|
-
{(errorMessage || (value !== '' && isValid === false)) && (
|
|
143
|
-
<p className={styles['error-message']}>{errorMessage || errorMapping[acceptType]}</p>
|
|
144
|
-
)}
|
|
145
|
-
</div>
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export default JsonInput
|
|
1
|
+
import React, { useEffect, useState } from 'react'
|
|
2
|
+
import yaml from 'js-yaml'
|
|
3
|
+
import styles from './style.module.scss'
|
|
4
|
+
import regex from '../../constants/regex'
|
|
5
|
+
|
|
6
|
+
const errorMapping = {
|
|
7
|
+
BOTH: 'Invalid JSON or YAML format',
|
|
8
|
+
JSON: 'Invalid JSON format',
|
|
9
|
+
YML: 'Invalid YAML format',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const JsonInput = ({
|
|
13
|
+
placeholder,
|
|
14
|
+
label,
|
|
15
|
+
value,
|
|
16
|
+
onValidation,
|
|
17
|
+
onChange,
|
|
18
|
+
dataId,
|
|
19
|
+
className = '',
|
|
20
|
+
errorMessage,
|
|
21
|
+
acceptType = 'BOTH',
|
|
22
|
+
fieldIsDisabled,
|
|
23
|
+
withFooter = true,
|
|
24
|
+
}) => {
|
|
25
|
+
const [isValid, setIsValid] = useState()
|
|
26
|
+
const [disabledBeautify, setDisabledBeautify] = useState(true)
|
|
27
|
+
|
|
28
|
+
const handlePrettify = (e) => {
|
|
29
|
+
if (value === '') return
|
|
30
|
+
e.preventDefault()
|
|
31
|
+
try {
|
|
32
|
+
let prettifiedData
|
|
33
|
+
if ((acceptType === 'BOTH' || acceptType === 'JSON') && isValidJson(value)) {
|
|
34
|
+
// If it's valid JSON, prettify JSON
|
|
35
|
+
prettifiedData = JSON.stringify(JSON.parse(value), null, 2)
|
|
36
|
+
} else if (acceptType === 'BOTH' || acceptType === 'YML') {
|
|
37
|
+
// If it's not valid JSON, prettify YAML
|
|
38
|
+
prettifiedData = yaml.dump(yaml.load(value), { indent: 0 })
|
|
39
|
+
}
|
|
40
|
+
onChange(prettifiedData)
|
|
41
|
+
setIsValid(true) // Reset validity status
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error(error)
|
|
44
|
+
setIsValid(false)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Function to check if input is valid JSON
|
|
49
|
+
const isValidJson = (str) => {
|
|
50
|
+
try {
|
|
51
|
+
JSON.parse(str)
|
|
52
|
+
return true
|
|
53
|
+
} catch (error) {
|
|
54
|
+
return false
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const checkIsValid = () => {
|
|
59
|
+
if (acceptType === 'BOTH' || acceptType === 'JSON') {
|
|
60
|
+
return isValidJson(value)
|
|
61
|
+
} else if (acceptType === 'BOTH' || acceptType === 'YML') {
|
|
62
|
+
try {
|
|
63
|
+
// Try parsing as YAML
|
|
64
|
+
yaml.load(value)
|
|
65
|
+
return true
|
|
66
|
+
} catch (error) {
|
|
67
|
+
console.error(error)
|
|
68
|
+
return false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
try {
|
|
75
|
+
handlePrettify(value)
|
|
76
|
+
} catch {}
|
|
77
|
+
}, [])
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<div
|
|
81
|
+
className={`${styles['json-editor-container']} ${className} ${
|
|
82
|
+
fieldIsDisabled ? styles.disabled : ''
|
|
83
|
+
}`}
|
|
84
|
+
>
|
|
85
|
+
{label && <p className={`${styles['json-editor-label']}`}>{label}</p>}
|
|
86
|
+
<div
|
|
87
|
+
className={`${styles['json-editor']} ${
|
|
88
|
+
value !== '' && isValid === false ? styles.invalid : ''
|
|
89
|
+
}`}
|
|
90
|
+
>
|
|
91
|
+
<textarea
|
|
92
|
+
disabled={fieldIsDisabled}
|
|
93
|
+
data-id={dataId}
|
|
94
|
+
value={value}
|
|
95
|
+
onChange={(e) => {
|
|
96
|
+
if (fieldIsDisabled) return
|
|
97
|
+
if (regex.ASCII.test(e.target.value)) {
|
|
98
|
+
setIsValid(undefined)
|
|
99
|
+
setDisabledBeautify(true)
|
|
100
|
+
onChange(e.target.value)
|
|
101
|
+
}
|
|
102
|
+
}}
|
|
103
|
+
onPaste={(e) => {
|
|
104
|
+
if (fieldIsDisabled) return
|
|
105
|
+
if (regex.ASCII.test(e.target.value)) {
|
|
106
|
+
setIsValid(undefined)
|
|
107
|
+
setDisabledBeautify(true)
|
|
108
|
+
onChange(e.target.value)
|
|
109
|
+
}
|
|
110
|
+
}}
|
|
111
|
+
min="1"
|
|
112
|
+
placeholder={placeholder}
|
|
113
|
+
/>
|
|
114
|
+
{withFooter && (
|
|
115
|
+
<div className={`${styles['actions-container']}`}>
|
|
116
|
+
<button
|
|
117
|
+
type="button"
|
|
118
|
+
className={styles.validate}
|
|
119
|
+
onClick={() => {
|
|
120
|
+
const valid = checkIsValid()
|
|
121
|
+
setIsValid(valid)
|
|
122
|
+
onValidation(valid)
|
|
123
|
+
setDisabledBeautify(!checkIsValid())
|
|
124
|
+
}}
|
|
125
|
+
data-id={`${dataId}-VALIDATE-BUTTON`}
|
|
126
|
+
disabled={value === ''}
|
|
127
|
+
>
|
|
128
|
+
Validate
|
|
129
|
+
</button>
|
|
130
|
+
<button
|
|
131
|
+
type="button"
|
|
132
|
+
disabled={value === '' || disabledBeautify}
|
|
133
|
+
data-id={`${dataId}-BEAUTIFY-BUTTON`}
|
|
134
|
+
className={styles.beautify}
|
|
135
|
+
onClick={handlePrettify}
|
|
136
|
+
>
|
|
137
|
+
Beautify
|
|
138
|
+
</button>
|
|
139
|
+
</div>
|
|
140
|
+
)}
|
|
141
|
+
</div>
|
|
142
|
+
{(errorMessage || (value !== '' && isValid === false)) && (
|
|
143
|
+
<p className={styles['error-message']}>{errorMessage || errorMapping[acceptType]}</p>
|
|
144
|
+
)}
|
|
145
|
+
</div>
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export default JsonInput
|
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
.json-editor-container {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
border-bottom-right-radius: 0.3125rem;
|
|
4
|
-
border-bottom-left-radius: 0.3125rem;
|
|
5
|
-
|
|
6
|
-
.json-editor-label {
|
|
7
|
-
font-size: 0.875rem;
|
|
8
|
-
font-weight: 600;
|
|
9
|
-
line-height: 1.25rem;
|
|
10
|
-
margin-bottom: 0.3125rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.json-editor {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
background-color: #142452;
|
|
17
|
-
width: 100%;
|
|
18
|
-
outline: 1px solid transparent;
|
|
19
|
-
position: relative;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
|
|
22
|
-
.actions-container {
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 5rem;
|
|
25
|
-
padding: 1.25rem;
|
|
26
|
-
border-radius: 0 0 0.3125rem 0.3125rem;
|
|
27
|
-
background: #101e47;
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: row;
|
|
30
|
-
gap: 1.25rem;
|
|
31
|
-
align-items: center;
|
|
32
|
-
|
|
33
|
-
.validate {
|
|
34
|
-
color: #fff;
|
|
35
|
-
text-align: center;
|
|
36
|
-
font-size: 1rem;
|
|
37
|
-
font-style: normal;
|
|
38
|
-
font-weight: 600;
|
|
39
|
-
line-height: 1.25rem;
|
|
40
|
-
width: 8.75rem;
|
|
41
|
-
padding: 0.625rem 2.25rem;
|
|
42
|
-
background-color: rgba(240, 248, 255, 0);
|
|
43
|
-
border-radius: 0.3125rem;
|
|
44
|
-
border: 0.0625rem solid #4d75d8;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
|
|
47
|
-
&:disabled {
|
|
48
|
-
color: #babdcc;
|
|
49
|
-
border-color: #a2a5b6;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.beautify {
|
|
54
|
-
color: #fff;
|
|
55
|
-
text-align: center;
|
|
56
|
-
font-size: 1rem;
|
|
57
|
-
font-style: normal;
|
|
58
|
-
font-weight: 600;
|
|
59
|
-
line-height: 1.25rem;
|
|
60
|
-
width: 8.75rem;
|
|
61
|
-
padding: 0.625rem 2.25rem;
|
|
62
|
-
background-color: rgba(240, 248, 255, 0);
|
|
63
|
-
border-radius: 0.3125rem;
|
|
64
|
-
border: 1px solid #babdcc;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
|
|
67
|
-
&:disabled {
|
|
68
|
-
color: #a2a5b6;
|
|
69
|
-
border-color: #a2a5b6;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
textarea {
|
|
75
|
-
width: 100%;
|
|
76
|
-
padding: 1.25rem;
|
|
77
|
-
font-size: 0.875rem;
|
|
78
|
-
font-style: normal;
|
|
79
|
-
font-weight: 400;
|
|
80
|
-
line-height: 1.25rem;
|
|
81
|
-
color: white;
|
|
82
|
-
height: 25rem;
|
|
83
|
-
background-color: #142452;
|
|
84
|
-
border: none;
|
|
85
|
-
resize: none;
|
|
86
|
-
|
|
87
|
-
&:focus,
|
|
88
|
-
&:focus-within,
|
|
89
|
-
&:focus-visible &:active {
|
|
90
|
-
outline: none;
|
|
91
|
-
border: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&::-webkit-scrollbar {
|
|
95
|
-
width: 0.5rem;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&::-webkit-scrollbar-track {
|
|
99
|
-
background-color: #828699;
|
|
100
|
-
border: none;
|
|
101
|
-
border-color: transparent;
|
|
102
|
-
border-top-left-radius: 0;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&::-webkit-scrollbar-thumb {
|
|
106
|
-
background-color: #d8dae5;
|
|
107
|
-
border: none;
|
|
108
|
-
border-color: transparent;
|
|
109
|
-
border-radius: 0;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.invalid {
|
|
114
|
-
outline: 1px solid #ce2828 !important;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.error-message {
|
|
119
|
-
color: #ce2828;
|
|
120
|
-
font-size: 0.75rem;
|
|
121
|
-
line-height: 1.25rem;
|
|
122
|
-
margin-top: 0.625rem;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&.disabled {
|
|
126
|
-
.json-editor {
|
|
127
|
-
textarea {
|
|
128
|
-
background-color: white;
|
|
129
|
-
color: #12131a;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
1
|
+
.json-editor-container {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
border-bottom-right-radius: 0.3125rem;
|
|
4
|
+
border-bottom-left-radius: 0.3125rem;
|
|
5
|
+
|
|
6
|
+
.json-editor-label {
|
|
7
|
+
font-size: 0.875rem;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
line-height: 1.25rem;
|
|
10
|
+
margin-bottom: 0.3125rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.json-editor {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
background-color: #142452;
|
|
17
|
+
width: 100%;
|
|
18
|
+
outline: 1px solid transparent;
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
|
|
22
|
+
.actions-container {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 5rem;
|
|
25
|
+
padding: 1.25rem;
|
|
26
|
+
border-radius: 0 0 0.3125rem 0.3125rem;
|
|
27
|
+
background: #101e47;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
gap: 1.25rem;
|
|
31
|
+
align-items: center;
|
|
32
|
+
|
|
33
|
+
.validate {
|
|
34
|
+
color: #fff;
|
|
35
|
+
text-align: center;
|
|
36
|
+
font-size: 1rem;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
line-height: 1.25rem;
|
|
40
|
+
width: 8.75rem;
|
|
41
|
+
padding: 0.625rem 2.25rem;
|
|
42
|
+
background-color: rgba(240, 248, 255, 0);
|
|
43
|
+
border-radius: 0.3125rem;
|
|
44
|
+
border: 0.0625rem solid #4d75d8;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
|
|
47
|
+
&:disabled {
|
|
48
|
+
color: #babdcc;
|
|
49
|
+
border-color: #a2a5b6;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.beautify {
|
|
54
|
+
color: #fff;
|
|
55
|
+
text-align: center;
|
|
56
|
+
font-size: 1rem;
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
line-height: 1.25rem;
|
|
60
|
+
width: 8.75rem;
|
|
61
|
+
padding: 0.625rem 2.25rem;
|
|
62
|
+
background-color: rgba(240, 248, 255, 0);
|
|
63
|
+
border-radius: 0.3125rem;
|
|
64
|
+
border: 1px solid #babdcc;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
|
|
67
|
+
&:disabled {
|
|
68
|
+
color: #a2a5b6;
|
|
69
|
+
border-color: #a2a5b6;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
textarea {
|
|
75
|
+
width: 100%;
|
|
76
|
+
padding: 1.25rem;
|
|
77
|
+
font-size: 0.875rem;
|
|
78
|
+
font-style: normal;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
line-height: 1.25rem;
|
|
81
|
+
color: white;
|
|
82
|
+
height: 25rem;
|
|
83
|
+
background-color: #142452;
|
|
84
|
+
border: none;
|
|
85
|
+
resize: none;
|
|
86
|
+
|
|
87
|
+
&:focus,
|
|
88
|
+
&:focus-within,
|
|
89
|
+
&:focus-visible &:active {
|
|
90
|
+
outline: none;
|
|
91
|
+
border: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&::-webkit-scrollbar {
|
|
95
|
+
width: 0.5rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&::-webkit-scrollbar-track {
|
|
99
|
+
background-color: #828699;
|
|
100
|
+
border: none;
|
|
101
|
+
border-color: transparent;
|
|
102
|
+
border-top-left-radius: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&::-webkit-scrollbar-thumb {
|
|
106
|
+
background-color: #d8dae5;
|
|
107
|
+
border: none;
|
|
108
|
+
border-color: transparent;
|
|
109
|
+
border-radius: 0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.invalid {
|
|
114
|
+
outline: 1px solid #ce2828 !important;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.error-message {
|
|
119
|
+
color: #ce2828;
|
|
120
|
+
font-size: 0.75rem;
|
|
121
|
+
line-height: 1.25rem;
|
|
122
|
+
margin-top: 0.625rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.disabled {
|
|
126
|
+
.json-editor {
|
|
127
|
+
textarea {
|
|
128
|
+
background-color: white;
|
|
129
|
+
color: #12131a;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|