@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,5 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z" stroke="#6B7280" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M9.17188 14.8319L14.8319 9.17188" stroke="#6B7280" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
<path d="M14.8319 14.8319L9.17188 9.17188" stroke="#6B7280" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8 6.45V8.55C8 10.3 7.3 11 5.55 11H3.45C1.7 11 1 10.3 1 8.55V6.45C1 4.7 1.7 4 3.45 4H5.55C7.3 4 8 4.7 8 6.45Z" stroke="#6B7280" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M11 3.45V5.55C11 7.3 10.3 8 8.55 8H8V6.45C8 4.7 7.3 4 5.55 4H4V3.45C4 1.7 4.7 1 6.45 1H8.55C10.3 1 11 1.7 11 3.45Z" stroke="#6B7280" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M14 4.66536V11.332C14 13.332 13 14.6654 10.6667 14.6654H5.33333C3 14.6654 2 13.332 2 11.332V4.66536C2 2.66536 3 1.33203 5.33333 1.33203H10.6667C13 1.33203 14 2.66536 14 4.66536Z" stroke="#898E99" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M9.66797 3V4.33333C9.66797 5.06667 10.268 5.66667 11.0013 5.66667H12.3346" stroke="#898E99" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
<path d="M5.33203 8.66797H7.9987" stroke="#898E99" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
-
<path d="M5.33203 11.332H10.6654" stroke="#898E99" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
-
</svg>
|
package/src/assets/icons/eye.svg
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z" stroke="#292D32" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M7.9999 13.5138C10.3532 13.5138 12.5466 12.1271 14.0732 9.72714C14.6732 8.78714 14.6732 7.20714 14.0732 6.26714C12.5466 3.86714 10.3532 2.48047 7.9999 2.48047C5.64656 2.48047 3.45323 3.86714 1.92656 6.26714C1.32656 7.20714 1.32656 8.78714 1.92656 9.72714C3.45323 12.1271 5.64656 13.5138 7.9999 13.5138Z" stroke="#292D32" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg width="67" height="67" viewBox="0 0 67 67" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M33.5 66C51.4493 66 66 51.4493 66 33.5C66 15.5507 51.4493 1 33.5 1C15.5507 1 1 15.5507 1 33.5C1 51.4493 15.5507 66 33.5 66Z" stroke="#FAAD14" stroke-width="1.5"/>
|
|
3
|
-
<line x1="33.5" y1="30" x2="33.5" y2="42" stroke="#FAAD14" stroke-width="2" stroke-linecap="round"/>
|
|
4
|
-
<path d="M35 25.5C35 26.3284 34.3284 27 33.5 27C32.6716 27 32 26.3284 32 25.5C32 24.6716 32.6716 24 33.5 24C34.3284 24 35 24.6716 35 25.5Z" fill="#FAAD14"/>
|
|
5
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M7.66536 14.4987C3.8987 14.4987 0.832031 11.432 0.832031 7.66536C0.832031 3.8987 3.8987 0.832031 7.66536 0.832031C11.432 0.832031 14.4987 3.8987 14.4987 7.66536C14.4987 11.432 11.432 14.4987 7.66536 14.4987ZM7.66536 1.83203C4.44536 1.83203 1.83203 4.45203 1.83203 7.66536C1.83203 10.8787 4.44536 13.4987 7.66536 13.4987C10.8854 13.4987 13.4987 10.8787 13.4987 7.66536C13.4987 4.45203 10.8854 1.83203 7.66536 1.83203Z" fill="#8390A2"/>
|
|
3
|
-
<path d="M14.6676 15.1676C14.5409 15.1676 14.4143 15.1209 14.3143 15.0209L12.9809 13.6876C12.7876 13.4943 12.7876 13.1743 12.9809 12.9809C13.1743 12.7876 13.4943 12.7876 13.6876 12.9809L15.0209 14.3143C15.2143 14.5076 15.2143 14.8276 15.0209 15.0209C14.9209 15.1209 14.7943 15.1676 14.6676 15.1676Z" fill="#8390A2"/>
|
|
4
|
-
</svg>
|
|
@@ -1,149 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,348 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react'
|
|
2
|
-
import './style.scss'
|
|
3
|
-
import _styles from '../InfoForm/InfoForm.module.scss'
|
|
4
|
-
import { Button, Input, TextArea } from 'digitinary-ui'
|
|
5
|
-
import Tooltip from '../Tooltip/Tooltip'
|
|
6
|
-
import SVGLoader from '../SVGLoader/SVGLoader'
|
|
7
|
-
import { AddRow, EditIcon, DeleteIcon } from '../../assets/icons'
|
|
8
|
-
import styles from '../MethodAccordion/MethodAccordion.module.scss'
|
|
9
|
-
import { useFormik } from 'formik'
|
|
10
|
-
import * as yup from 'yup'
|
|
11
|
-
import regex from '../../constants/regex'
|
|
12
|
-
|
|
13
|
-
const TagsTable = ({ id, headCells, data, isFormOpen, setIsFormOpen, saveNewRow, readOnly }) => {
|
|
14
|
-
const [text, setText] = useState('')
|
|
15
|
-
const [externalDesc, setExternalDesc] = useState('')
|
|
16
|
-
const [externalUrl, setExternalUrl] = useState('')
|
|
17
|
-
const [tooltipRef, setTooltipRef] = useState(null)
|
|
18
|
-
const [externalTooltipRefs, setExternalTooltipRefs] = useState(null)
|
|
19
|
-
const { values, errors, setFieldValue, isValid, submitForm, resetForm,dirty } = useFormik({
|
|
20
|
-
validateOnMount: true,
|
|
21
|
-
initialValues: {
|
|
22
|
-
name: '',
|
|
23
|
-
description: '',
|
|
24
|
-
externalDocs: {
|
|
25
|
-
url: '',
|
|
26
|
-
description: '',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
validationSchema: yup.object().shape({
|
|
30
|
-
name: yup.string().trim().required('Tag name is required'),
|
|
31
|
-
description: yup.string().optional(),
|
|
32
|
-
externalDocs: yup
|
|
33
|
-
.object()
|
|
34
|
-
.shape({
|
|
35
|
-
url: yup
|
|
36
|
-
.string()
|
|
37
|
-
.trim()
|
|
38
|
-
.matches(regex.urlRegex, 'Invalid URL')
|
|
39
|
-
.when('description', (description, schema) => {
|
|
40
|
-
return description?.at(0)
|
|
41
|
-
? schema.required('URL is required when description is provided')
|
|
42
|
-
: schema.optional()
|
|
43
|
-
}),
|
|
44
|
-
description: yup.string().trim().optional(),
|
|
45
|
-
})
|
|
46
|
-
.optional(),
|
|
47
|
-
}),
|
|
48
|
-
onSubmit: (values) => {
|
|
49
|
-
saveNewRow(values)
|
|
50
|
-
setText('')
|
|
51
|
-
resetForm()
|
|
52
|
-
setIsFormOpen(false)
|
|
53
|
-
},
|
|
54
|
-
validateOnChange: true,
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
return (
|
|
58
|
-
<div className="tableSectionContainer">
|
|
59
|
-
<div className="tableContainer">
|
|
60
|
-
<table id={id || ''} className={`table borderRadiusTop borderRadiusBottom`}>
|
|
61
|
-
<thead className="tableHead">
|
|
62
|
-
<tr>
|
|
63
|
-
{headCells?.map((headCell) => (
|
|
64
|
-
<th
|
|
65
|
-
key={headCell.id}
|
|
66
|
-
className={`tableHeadCell ${headCell.classes || ''}`}
|
|
67
|
-
style={{ width: headCell.width, minWidth: headCell.minWidth }}
|
|
68
|
-
>
|
|
69
|
-
<div
|
|
70
|
-
className="headContainer"
|
|
71
|
-
data-id={`${
|
|
72
|
-
typeof headCell.label === 'string'
|
|
73
|
-
? headCell.label.toUpperCase().replace(/[^a-zA-Z0-9]+/g, '_')
|
|
74
|
-
: 'UNKNOWN_LABEL'
|
|
75
|
-
}_COLUMN`}
|
|
76
|
-
>
|
|
77
|
-
{headCell.label}
|
|
78
|
-
</div>
|
|
79
|
-
</th>
|
|
80
|
-
))}
|
|
81
|
-
</tr>
|
|
82
|
-
</thead>
|
|
83
|
-
<tbody className="tableBody" data-id="TABLE_BODY">
|
|
84
|
-
{data?.map((row, rowIndex) => {
|
|
85
|
-
return (
|
|
86
|
-
<tr key={rowIndex} data-i={rowIndex} className={`row`}>
|
|
87
|
-
{headCells?.map((headCell) => {
|
|
88
|
-
const cellContent = row[headCell.id] !== '_' && (
|
|
89
|
-
<div
|
|
90
|
-
data-id="TEXT_DESCRIPTION"
|
|
91
|
-
className="tableData"
|
|
92
|
-
style={{
|
|
93
|
-
width: headCell.width,
|
|
94
|
-
minWidth: headCell.minWidth,
|
|
95
|
-
}}
|
|
96
|
-
>
|
|
97
|
-
{row[headCell.id]}
|
|
98
|
-
</div>
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
return (
|
|
102
|
-
<td
|
|
103
|
-
key={headCell.id}
|
|
104
|
-
style={{
|
|
105
|
-
width: headCell.width,
|
|
106
|
-
minWidth: headCell.minWidth,
|
|
107
|
-
}}
|
|
108
|
-
>
|
|
109
|
-
{cellContent}
|
|
110
|
-
</td>
|
|
111
|
-
)
|
|
112
|
-
})}
|
|
113
|
-
</tr>
|
|
114
|
-
)
|
|
115
|
-
})}
|
|
116
|
-
{isFormOpen ? (
|
|
117
|
-
<tr key={''} data-i={''} className={`row`}>
|
|
118
|
-
<td key={'tag name'}>
|
|
119
|
-
<div data-id="TEXT_DESCRIPTION" className="tableData">
|
|
120
|
-
<Input
|
|
121
|
-
placeholder="Tag name"
|
|
122
|
-
size="large"
|
|
123
|
-
type="text"
|
|
124
|
-
maxLength={25}
|
|
125
|
-
onChange={(value) => {
|
|
126
|
-
!regex.basic.test(value) && setFieldValue('name', value)
|
|
127
|
-
}} // Pass the value directly
|
|
128
|
-
value={values.name} // Bind value to the state
|
|
129
|
-
disabled={readOnly}
|
|
130
|
-
/>
|
|
131
|
-
</div>
|
|
132
|
-
</td>
|
|
133
|
-
|
|
134
|
-
<td key={'tagDescRequired'}>
|
|
135
|
-
<div data-id="TEXT_DESCRIPTION" className="tableData">
|
|
136
|
-
<div className={styles.paramDescContainer}>
|
|
137
|
-
<Tooltip
|
|
138
|
-
arrowWithBorder
|
|
139
|
-
placement="bottom-end"
|
|
140
|
-
type="function"
|
|
141
|
-
trigger="click"
|
|
142
|
-
delay={[0, 0]}
|
|
143
|
-
onCreate={(instance) => setTooltipRef(instance)}
|
|
144
|
-
onShow={() => {
|
|
145
|
-
setText(values.description || '') // Reset to current value when shown
|
|
146
|
-
}}
|
|
147
|
-
onHidden={() => {
|
|
148
|
-
setText(values.description || '') // Reset on close
|
|
149
|
-
}}
|
|
150
|
-
content={
|
|
151
|
-
<div className={_styles.editDescTooltipContent}>
|
|
152
|
-
<p className={_styles.editDescTooltipContent_header}>Description</p>
|
|
153
|
-
<TextArea
|
|
154
|
-
value={text || values.description}
|
|
155
|
-
disabled={readOnly}
|
|
156
|
-
maxLength={25}
|
|
157
|
-
placeholder="Describe Tag..."
|
|
158
|
-
onChange={(value) => {
|
|
159
|
-
if (value === '' || regex.ASCII.test(value)) setText(value)
|
|
160
|
-
}}
|
|
161
|
-
/>
|
|
162
|
-
{!readOnly && (
|
|
163
|
-
<Button
|
|
164
|
-
className={_styles.editDescTooltipContent_btn}
|
|
165
|
-
variant="outlined"
|
|
166
|
-
size="small"
|
|
167
|
-
onClick={() => {
|
|
168
|
-
setFieldValue('description', text?.trim())
|
|
169
|
-
tooltipRef?.hide()
|
|
170
|
-
}}
|
|
171
|
-
disabled={!(text || values.description)?.trim()}
|
|
172
|
-
>
|
|
173
|
-
Apply
|
|
174
|
-
</Button>
|
|
175
|
-
)}
|
|
176
|
-
</div>
|
|
177
|
-
}
|
|
178
|
-
>
|
|
179
|
-
<Button
|
|
180
|
-
className={_styles.editDescBtn}
|
|
181
|
-
style={{ paddingLeft: 0 }}
|
|
182
|
-
variant="link"
|
|
183
|
-
color="action"
|
|
184
|
-
endIcon={<SVGLoader src={EditIcon} width="1.5rem" height="1.5rem" />}
|
|
185
|
-
>
|
|
186
|
-
{readOnly ? 'View ' : 'Add '} Description
|
|
187
|
-
</Button>
|
|
188
|
-
</Tooltip>
|
|
189
|
-
</div>{' '}
|
|
190
|
-
</div>
|
|
191
|
-
</td>
|
|
192
|
-
<td key={'tagExternal'}>
|
|
193
|
-
<div className="tableData">
|
|
194
|
-
<div className={_styles.paramDescContainer}>
|
|
195
|
-
<Tooltip
|
|
196
|
-
arrowWithBorder
|
|
197
|
-
placement="bottom-end"
|
|
198
|
-
type="function"
|
|
199
|
-
trigger="click"
|
|
200
|
-
delay={[0, 0]}
|
|
201
|
-
onCreate={(instance) => setExternalTooltipRefs(instance)}
|
|
202
|
-
onShow={() => {
|
|
203
|
-
setExternalDesc(values.externalDocs.description || '')
|
|
204
|
-
setExternalUrl(values.externalDocs.url || '')
|
|
205
|
-
}}
|
|
206
|
-
onHidden={() => {
|
|
207
|
-
setExternalDesc(values.externalDocs.description || '')
|
|
208
|
-
setExternalUrl(values.externalDocs.url || '')
|
|
209
|
-
}}
|
|
210
|
-
content={
|
|
211
|
-
<div className={_styles.editDescTooltipContent}>
|
|
212
|
-
<p className={_styles.editDescTooltipContent_header}>
|
|
213
|
-
External Docs Description
|
|
214
|
-
</p>
|
|
215
|
-
<TextArea
|
|
216
|
-
placeholder="Describe External Doc..."
|
|
217
|
-
value={externalDesc || values.externalDocs.description}
|
|
218
|
-
disabled={readOnly}
|
|
219
|
-
maxLength={25}
|
|
220
|
-
onChange={(value) => {
|
|
221
|
-
if (value === '' || regex.ASCII.test(value)) setExternalDesc(value)
|
|
222
|
-
}}
|
|
223
|
-
/>
|
|
224
|
-
<p className={_styles.editDescTooltipContent_header}>
|
|
225
|
-
External Docs Link
|
|
226
|
-
</p>
|
|
227
|
-
<TextArea
|
|
228
|
-
placeholder="External Docs Link..."
|
|
229
|
-
restrictedCharsRegex={regex.urlRegex}
|
|
230
|
-
value={externalUrl || values.externalDocs.url}
|
|
231
|
-
disabled={readOnly}
|
|
232
|
-
maxLength={200}
|
|
233
|
-
onChange={(value) => {
|
|
234
|
-
if (value === '' || regex.ASCII.test(value)) setExternalUrl(value)
|
|
235
|
-
}}
|
|
236
|
-
/>
|
|
237
|
-
{!readOnly && (
|
|
238
|
-
<Button
|
|
239
|
-
className={_styles.editDescTooltipContent_btn}
|
|
240
|
-
variant="outlined"
|
|
241
|
-
size="small"
|
|
242
|
-
onClick={() => {
|
|
243
|
-
setFieldValue(`externalDocs`, {
|
|
244
|
-
description: externalDesc,
|
|
245
|
-
url: externalUrl,
|
|
246
|
-
})
|
|
247
|
-
|
|
248
|
-
externalTooltipRefs?.hide()
|
|
249
|
-
}}
|
|
250
|
-
disabled={
|
|
251
|
-
!(externalUrl || values.externalDocs.url)?.trim() ||
|
|
252
|
-
!regex.urlRegex.test(externalUrl || values.externalDocs.url)
|
|
253
|
-
}
|
|
254
|
-
>
|
|
255
|
-
Apply
|
|
256
|
-
</Button>
|
|
257
|
-
)}
|
|
258
|
-
</div>
|
|
259
|
-
}
|
|
260
|
-
>
|
|
261
|
-
{readOnly ? (
|
|
262
|
-
<a
|
|
263
|
-
className={_styles.editDescBtn}
|
|
264
|
-
variant="link"
|
|
265
|
-
color="action"
|
|
266
|
-
href={values.externalDocs?.url}
|
|
267
|
-
target="_blank"
|
|
268
|
-
>
|
|
269
|
-
{values?.externalDocs?.description
|
|
270
|
-
? values?.externalDocs?.description?.substring(0, 12)
|
|
271
|
-
: '-'}
|
|
272
|
-
{values?.externalDocs?.description &&
|
|
273
|
-
values?.externalDocs?.description?.length > 12
|
|
274
|
-
? '...'
|
|
275
|
-
: ''}
|
|
276
|
-
</a>
|
|
277
|
-
) : (
|
|
278
|
-
<Button
|
|
279
|
-
className={_styles.editDescBtn}
|
|
280
|
-
variant="link"
|
|
281
|
-
color="action"
|
|
282
|
-
endIcon={<SVGLoader src={EditIcon} width="1.5rem" height="1.5rem" />}
|
|
283
|
-
>
|
|
284
|
-
{readOnly ? 'View ' : 'Add '} External Docs Link
|
|
285
|
-
</Button>
|
|
286
|
-
)}
|
|
287
|
-
</Tooltip>
|
|
288
|
-
<div className={_styles.paramDescContainer_separator}></div>
|
|
289
|
-
{!readOnly && (
|
|
290
|
-
<Button
|
|
291
|
-
className={_styles.deleteParamBtn}
|
|
292
|
-
variant="link"
|
|
293
|
-
color="error"
|
|
294
|
-
endIcon={
|
|
295
|
-
<SVGLoader src={DeleteIcon} width="1.125rem" height="1.125rem" />
|
|
296
|
-
}
|
|
297
|
-
onClick={() => {
|
|
298
|
-
resetForm()
|
|
299
|
-
setText('')
|
|
300
|
-
setIsFormOpen(false)
|
|
301
|
-
}} // Correctly delete the new row
|
|
302
|
-
/>
|
|
303
|
-
)}
|
|
304
|
-
|
|
305
|
-
{!readOnly && (
|
|
306
|
-
<Button
|
|
307
|
-
className={_styles.deleteParamBtn}
|
|
308
|
-
variant="link"
|
|
309
|
-
color="success"
|
|
310
|
-
disabled={!isValid || !dirty}
|
|
311
|
-
endIcon={<SVGLoader src={AddRow} width="0.125rem" height="0.125rem" />}
|
|
312
|
-
onClick={() => {
|
|
313
|
-
setText('')
|
|
314
|
-
submitForm()
|
|
315
|
-
}} // Save the new row when clicked
|
|
316
|
-
/>
|
|
317
|
-
)}
|
|
318
|
-
</div>
|
|
319
|
-
</div>
|
|
320
|
-
</td>
|
|
321
|
-
</tr>
|
|
322
|
-
) : (
|
|
323
|
-
<>
|
|
324
|
-
{!readOnly && (
|
|
325
|
-
<tr key={'addNew'} data-i={'addNew'} className={`row`}>
|
|
326
|
-
<td colSpan={5}>
|
|
327
|
-
<Button
|
|
328
|
-
variant="link"
|
|
329
|
-
color="primary"
|
|
330
|
-
onClick={() => {
|
|
331
|
-
setIsFormOpen((prev) => !prev)
|
|
332
|
-
}}
|
|
333
|
-
>
|
|
334
|
-
+ Add Tag
|
|
335
|
-
</Button>
|
|
336
|
-
</td>
|
|
337
|
-
</tr>
|
|
338
|
-
)}
|
|
339
|
-
</>
|
|
340
|
-
)}
|
|
341
|
-
</tbody>
|
|
342
|
-
</table>
|
|
343
|
-
</div>
|
|
344
|
-
</div>
|
|
345
|
-
)
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
export default TagsTable
|