diff --git a/atlp-pulse-fn b/atlp-pulse-fn new file mode 160000 index 000000000..db0c6f39e --- /dev/null +++ b/atlp-pulse-fn @@ -0,0 +1 @@ +Subproject commit db0c6f39edb498e11f668bad31949676dedfa19a diff --git a/package-lock.json b/package-lock.json index 4f616b11f..62d0efeb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.0.0", "license": "ISC", "dependencies": { - "@apollo/client": "^3.7.17", + "@apollo/client": "^3.8.5", "@babel/preset-react": "^7.22.5", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", @@ -47,7 +47,7 @@ "file-saver": "^2.0.5", "flowbite-react": "^0.5.0", "framer-motion": "^6.5.1", - "graphql": "^16.7.1", + "graphql-tag": "^2.12.6", "i18next": "^21.10.0", "i18next-browser-languagedetector": "^7.1.0", "i18next-xhr-backend": "^3.2.2", @@ -66,6 +66,7 @@ "react-hook-form": "^7.45.2", "react-i18next": "^11.18.6", "react-icons": "^4.10.1", + "react-otp-input": "^3.1.0", "react-pdf": "^7.3.3", "react-pdf-js": "^5.1.0", "react-router": "^6.14.1", @@ -120,7 +121,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "faker": "5.5.3", "file-loader": "^6.2.0", - "graphql": "^16.7.1", + "graphql": "^16.8.1", "html-webpack-plugin": "^5.5.0", "husky": "^8.0.1", "install": "^0.13.0", @@ -167,7 +168,6 @@ }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", - "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -178,7 +178,6 @@ }, "node_modules/@ampproject/remapping": { "version": "2.2.1", - "dev": true, "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", @@ -189,16 +188,17 @@ } }, "node_modules/@apollo/client": { - "version": "3.7.17", - "license": "MIT", + "version": "3.8.5", + "resolved": "https://registry.npmjs.org/@apollo/client/-/client-3.8.5.tgz", + "integrity": "sha512-/ueWC3f1pFeH+tWbM1phz6pzUGGijyml6oQ+LKUcQzpXF6tVFPrb6oUIUQCbZpr6Xmv/dtNiFDohc39ra7Solg==", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", - "@wry/context": "^0.7.0", - "@wry/equality": "^0.5.0", - "@wry/trie": "^0.4.0", + "@wry/context": "^0.7.3", + "@wry/equality": "^0.5.6", + "@wry/trie": "^0.4.3", "graphql-tag": "^2.12.6", "hoist-non-react-statics": "^3.3.2", - "optimism": "^0.16.2", + "optimism": "^0.17.5", "prop-types": "^15.7.2", "response-iterator": "^0.2.6", "symbol-observable": "^4.0.0", @@ -240,7 +240,6 @@ }, "node_modules/@babel/compat-data": { "version": "7.22.9", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -248,7 +247,6 @@ }, "node_modules/@babel/core": { "version": "7.22.9", - "dev": true, "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", @@ -277,7 +275,6 @@ }, "node_modules/@babel/generator": { "version": "7.22.9", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5", @@ -312,7 +309,6 @@ }, "node_modules/@babel/helper-compilation-targets": { "version": "7.22.9", - "dev": true, "license": "MIT", "dependencies": { "@babel/compat-data": "^7.22.9", @@ -383,7 +379,6 @@ }, "node_modules/@babel/helper-environment-visitor": { "version": "7.22.5", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -391,7 +386,6 @@ }, "node_modules/@babel/helper-function-name": { "version": "7.22.5", - "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.22.5", @@ -403,7 +397,6 @@ }, "node_modules/@babel/helper-hoist-variables": { "version": "7.22.5", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -435,7 +428,6 @@ }, "node_modules/@babel/helper-module-transforms": { "version": "7.22.9", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-environment-visitor": "^7.22.5", @@ -503,7 +495,6 @@ }, "node_modules/@babel/helper-simple-access": { "version": "7.22.5", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -525,7 +516,6 @@ }, "node_modules/@babel/helper-split-export-declaration": { "version": "7.22.6", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -570,7 +560,6 @@ }, "node_modules/@babel/helpers": { "version": "7.22.6", - "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.22.5", @@ -595,7 +584,6 @@ }, "node_modules/@babel/parser": { "version": "7.22.7", - "dev": true, "license": "MIT", "bin": { "parser": "bin/babel-parser.js" @@ -1839,7 +1827,6 @@ }, "node_modules/@babel/template": { "version": "7.22.5", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.22.5", @@ -1852,7 +1839,6 @@ }, "node_modules/@babel/traverse": { "version": "7.22.8", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.22.5", @@ -3355,7 +3341,6 @@ }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.3", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.0.1", @@ -3368,7 +3353,6 @@ }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.0", - "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -3376,7 +3360,6 @@ }, "node_modules/@jridgewell/set-array": { "version": "1.1.2", - "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -3384,7 +3367,6 @@ }, "node_modules/@jridgewell/source-map": { "version": "0.3.5", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", @@ -3393,12 +3375,10 @@ }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", - "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.18", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "3.1.0", @@ -3407,7 +3387,6 @@ }, "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.14", - "dev": true, "license": "MIT" }, "node_modules/@kurkle/color": { @@ -4227,7 +4206,6 @@ }, "node_modules/@types/eslint": { "version": "8.44.1", - "dev": true, "license": "MIT", "dependencies": { "@types/estree": "*", @@ -4236,7 +4214,6 @@ }, "node_modules/@types/eslint-scope": { "version": "3.7.4", - "dev": true, "license": "MIT", "dependencies": { "@types/eslint": "*", @@ -4245,7 +4222,6 @@ }, "node_modules/@types/estree": { "version": "1.0.1", - "dev": true, "license": "MIT" }, "node_modules/@types/express": { @@ -4898,7 +4874,6 @@ }, "node_modules/@webassemblyjs/ast": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@webassemblyjs/helper-numbers": "1.11.6", @@ -4907,22 +4882,18 @@ }, "node_modules/@webassemblyjs/floating-point-hex-parser": { "version": "1.11.6", - "dev": true, "license": "MIT" }, "node_modules/@webassemblyjs/helper-api-error": { "version": "1.11.6", - "dev": true, "license": "MIT" }, "node_modules/@webassemblyjs/helper-buffer": { "version": "1.11.6", - "dev": true, "license": "MIT" }, "node_modules/@webassemblyjs/helper-numbers": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.11.6", @@ -4932,12 +4903,10 @@ }, "node_modules/@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.6", - "dev": true, "license": "MIT" }, "node_modules/@webassemblyjs/helper-wasm-section": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.6", @@ -4948,7 +4917,6 @@ }, "node_modules/@webassemblyjs/ieee754": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@xtuc/ieee754": "^1.2.0" @@ -4956,7 +4924,6 @@ }, "node_modules/@webassemblyjs/leb128": { "version": "1.11.6", - "dev": true, "license": "Apache-2.0", "dependencies": { "@xtuc/long": "4.2.2" @@ -4964,12 +4931,10 @@ }, "node_modules/@webassemblyjs/utf8": { "version": "1.11.6", - "dev": true, "license": "MIT" }, "node_modules/@webassemblyjs/wasm-edit": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.6", @@ -4984,7 +4949,6 @@ }, "node_modules/@webassemblyjs/wasm-gen": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.6", @@ -4996,7 +4960,6 @@ }, "node_modules/@webassemblyjs/wasm-opt": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.6", @@ -5007,7 +4970,6 @@ }, "node_modules/@webassemblyjs/wasm-parser": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.6", @@ -5020,7 +4982,6 @@ }, "node_modules/@webassemblyjs/wast-printer": { "version": "1.11.6", - "dev": true, "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.6", @@ -5069,7 +5030,8 @@ }, "node_modules/@wry/context": { "version": "0.7.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@wry/context/-/context-0.7.3.tgz", + "integrity": "sha512-Nl8WTesHp89RF803Se9X3IiHjdmLBrIvPMaJkl+rKVJAYyPsz1TEUbu89943HpvujtSJgDUx9W4vZw3K1Mr3sA==", "dependencies": { "tslib": "^2.3.0" }, @@ -5099,12 +5061,10 @@ }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", - "dev": true, "license": "BSD-3-Clause" }, "node_modules/@xtuc/long": { "version": "4.2.2", - "dev": true, "license": "Apache-2.0" }, "node_modules/abab": { @@ -5129,7 +5089,6 @@ }, "node_modules/acorn": { "version": "8.10.0", - "dev": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -5160,7 +5119,6 @@ }, "node_modules/acorn-import-assertions": { "version": "1.9.0", - "dev": true, "license": "MIT", "peerDependencies": { "acorn": "^8" @@ -5310,12 +5268,10 @@ }, "node_modules/any-promise": { "version": "1.3.0", - "dev": true, "license": "MIT" }, "node_modules/anymatch": { "version": "3.1.3", - "dev": true, "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", @@ -5363,7 +5319,6 @@ }, "node_modules/arg": { "version": "5.0.2", - "dev": true, "license": "MIT" }, "node_modules/argparse": { @@ -5898,7 +5853,6 @@ }, "node_modules/binary-extensions": { "version": "2.2.0", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -6045,7 +5999,6 @@ }, "node_modules/browserslist": { "version": "4.21.10", - "dev": true, "funding": [ { "type": "opencollective", @@ -6100,7 +6053,6 @@ }, "node_modules/buffer-from": { "version": "1.1.2", - "dev": true, "license": "MIT" }, "node_modules/buffer-xor": { @@ -6151,7 +6103,6 @@ }, "node_modules/camelcase-css": { "version": "2.0.1", - "dev": true, "license": "MIT", "engines": { "node": ">= 6" @@ -6159,7 +6110,6 @@ }, "node_modules/caniuse-lite": { "version": "1.0.30001518", - "dev": true, "funding": [ { "type": "opencollective", @@ -6284,7 +6234,6 @@ }, "node_modules/chokidar": { "version": "3.5.3", - "dev": true, "funding": [ { "type": "individual", @@ -6310,7 +6259,6 @@ }, "node_modules/chokidar/node_modules/glob-parent": { "version": "5.1.2", - "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.1" @@ -6330,7 +6278,6 @@ }, "node_modules/chrome-trace-event": { "version": "1.0.3", - "dev": true, "license": "MIT", "engines": { "node": ">=6.0" @@ -6984,7 +6931,6 @@ }, "node_modules/cssesc": { "version": "3.0.0", - "dev": true, "license": "MIT", "bin": { "cssesc": "bin/cssesc" @@ -7073,7 +7019,6 @@ }, "node_modules/debug": { "version": "4.3.4", - "devOptional": true, "license": "MIT", "dependencies": { "ms": "2.1.2" @@ -7248,7 +7193,6 @@ }, "node_modules/didyoumean": { "version": "1.2.2", - "dev": true, "license": "Apache-2.0" }, "node_modules/diff": { @@ -7296,7 +7240,6 @@ }, "node_modules/dlv": { "version": "1.1.3", - "dev": true, "license": "MIT" }, "node_modules/dns-equal": { @@ -7451,7 +7394,6 @@ }, "node_modules/electron-to-chromium": { "version": "1.4.480", - "dev": true, "license": "ISC" }, "node_modules/elliptic": { @@ -7512,7 +7454,6 @@ }, "node_modules/enhanced-resolve": { "version": "5.15.0", - "dev": true, "license": "MIT", "dependencies": { "graceful-fs": "^4.2.4", @@ -7672,7 +7613,6 @@ }, "node_modules/es-module-lexer": { "version": "1.3.0", - "dev": true, "license": "MIT" }, "node_modules/es-set-tostringtag": { @@ -7714,7 +7654,6 @@ }, "node_modules/escalade": { "version": "3.1.1", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -8139,7 +8078,6 @@ }, "node_modules/eslint-scope": { "version": "5.1.1", - "dev": true, "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", @@ -8151,7 +8089,6 @@ }, "node_modules/eslint-scope/node_modules/estraverse": { "version": "4.3.0", - "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=4.0" @@ -8391,7 +8328,6 @@ }, "node_modules/esrecurse": { "version": "4.3.0", - "dev": true, "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" @@ -8402,7 +8338,6 @@ }, "node_modules/estraverse": { "version": "5.3.0", - "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=4.0" @@ -8428,7 +8363,6 @@ }, "node_modules/events": { "version": "3.3.0", - "dev": true, "license": "MIT", "engines": { "node": ">=0.8.x" @@ -8707,7 +8641,6 @@ }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", - "dev": true, "license": "MIT" }, "node_modules/fast-levenshtein": { @@ -9096,7 +9029,6 @@ }, "node_modules/fs.realpath": { "version": "1.0.0", - "devOptional": true, "license": "ISC" }, "node_modules/function-bind": { @@ -9178,7 +9110,6 @@ }, "node_modules/gensync": { "version": "1.0.0-beta.2", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -9283,12 +9214,10 @@ }, "node_modules/glob-to-regexp": { "version": "0.4.1", - "dev": true, "license": "BSD-2-Clause" }, "node_modules/globals": { "version": "11.12.0", - "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -9344,7 +9273,6 @@ }, "node_modules/graceful-fs": { "version": "4.2.11", - "dev": true, "license": "ISC" }, "node_modules/graphemer": { @@ -9353,16 +9281,17 @@ "license": "MIT" }, "node_modules/graphql": { - "version": "16.7.1", - "dev": true, - "license": "MIT", + "version": "16.8.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", + "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==", "engines": { "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, "node_modules/graphql-tag": { "version": "2.12.6", - "license": "MIT", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz", + "integrity": "sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==", "dependencies": { "tslib": "^2.1.0" }, @@ -10008,7 +9937,6 @@ }, "node_modules/is-binary-path": { "version": "2.1.0", - "dev": true, "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" @@ -12848,7 +12776,6 @@ }, "node_modules/jiti": { "version": "1.19.1", - "dev": true, "license": "MIT", "bin": { "jiti": "bin/jiti.js" @@ -12973,7 +12900,6 @@ }, "node_modules/jsesc": { "version": "2.5.2", - "dev": true, "license": "MIT", "bin": { "jsesc": "bin/jsesc" @@ -12997,7 +12923,6 @@ }, "node_modules/json5": { "version": "2.2.3", - "dev": true, "license": "MIT", "bin": { "json5": "lib/cli.js" @@ -13152,7 +13077,6 @@ }, "node_modules/lilconfig": { "version": "2.1.0", - "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -13432,7 +13356,6 @@ }, "node_modules/loader-runner": { "version": "4.3.0", - "dev": true, "license": "MIT", "engines": { "node": ">=6.11.5" @@ -13621,7 +13544,6 @@ }, "node_modules/lru-cache": { "version": "5.1.1", - "dev": true, "license": "ISC", "dependencies": { "yallist": "^3.0.2" @@ -13732,7 +13654,6 @@ }, "node_modules/merge-stream": { "version": "2.0.0", - "dev": true, "license": "MIT" }, "node_modules/merge2": { @@ -14002,7 +13923,6 @@ }, "node_modules/mz": { "version": "2.7.0", - "dev": true, "license": "MIT", "dependencies": { "any-promise": "^1.0.0", @@ -14018,7 +13938,6 @@ }, "node_modules/nanoid": { "version": "3.3.6", - "dev": true, "funding": [ { "type": "github", @@ -14189,7 +14108,6 @@ }, "node_modules/node-releases": { "version": "2.0.13", - "dev": true, "license": "MIT" }, "node_modules/nopt": { @@ -16835,7 +16753,6 @@ }, "node_modules/object-hash": { "version": "3.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">= 6" @@ -17014,21 +16931,13 @@ } }, "node_modules/optimism": { - "version": "0.16.2", - "license": "MIT", + "version": "0.17.5", + "resolved": "https://registry.npmjs.org/optimism/-/optimism-0.17.5.tgz", + "integrity": "sha512-TEcp8ZwK1RczmvMnvktxHSF2tKgMWjJ71xEFGX5ApLh67VsMSTy1ZUlipJw8W+KaqgOmQ+4pqwkeivY89j+4Vw==", "dependencies": { "@wry/context": "^0.7.0", - "@wry/trie": "^0.3.0" - } - }, - "node_modules/optimism/node_modules/@wry/trie": { - "version": "0.3.2", - "license": "MIT", - "dependencies": { + "@wry/trie": "^0.4.3", "tslib": "^2.3.0" - }, - "engines": { - "node": ">=8" } }, "node_modules/optionator": { @@ -17265,6 +17174,19 @@ "node": ">=0.12" } }, + "node_modules/pdfjs-dist": { + "version": "3.10.111", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-3.10.111.tgz", + "integrity": "sha512-+SXXGN/3YTNQSK5Ae7EyqQuR+4IAsNunJq/Us5ByOkRJ45qBXXOwkiWi3RIDU+CyF+ak5eSWXl2FQW2PKBrsRA==", + "peer": true, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "canvas": "^2.11.2", + "path2d-polyfill": "^2.0.1" + } + }, "node_modules/performance-now": { "version": "2.1.0", "dev": true, @@ -17272,7 +17194,6 @@ }, "node_modules/picocolors": { "version": "1.0.0", - "dev": true, "license": "ISC" }, "node_modules/picomatch": { @@ -17298,7 +17219,6 @@ }, "node_modules/pify": { "version": "2.3.0", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -17306,7 +17226,6 @@ }, "node_modules/pirates": { "version": "4.0.6", - "dev": true, "license": "MIT", "engines": { "node": ">= 6" @@ -17377,7 +17296,6 @@ }, "node_modules/postcss": { "version": "8.4.27", - "dev": true, "funding": [ { "type": "opencollective", @@ -17404,7 +17322,6 @@ }, "node_modules/postcss-import": { "version": "15.1.0", - "dev": true, "license": "MIT", "dependencies": { "postcss-value-parser": "^4.0.0", @@ -17420,7 +17337,6 @@ }, "node_modules/postcss-js": { "version": "4.0.1", - "dev": true, "license": "MIT", "dependencies": { "camelcase-css": "^2.0.1" @@ -17438,7 +17354,6 @@ }, "node_modules/postcss-load-config": { "version": "4.0.1", - "dev": true, "license": "MIT", "dependencies": { "lilconfig": "^2.0.5", @@ -17466,7 +17381,6 @@ }, "node_modules/postcss-load-config/node_modules/yaml": { "version": "2.3.1", - "dev": true, "license": "ISC", "engines": { "node": ">= 14" @@ -17613,7 +17527,6 @@ }, "node_modules/postcss-nested": { "version": "6.0.1", - "dev": true, "license": "MIT", "dependencies": { "postcss-selector-parser": "^6.0.11" @@ -17631,7 +17544,6 @@ }, "node_modules/postcss-selector-parser": { "version": "6.0.13", - "dev": true, "license": "MIT", "dependencies": { "cssesc": "^3.0.0", @@ -17643,7 +17555,6 @@ }, "node_modules/postcss-value-parser": { "version": "4.2.0", - "dev": true, "license": "MIT" }, "node_modules/preact": { @@ -18059,7 +17970,6 @@ }, "node_modules/react": { "version": "18.2.0", - "dev": true, "license": "MIT", "dependencies": { "loose-envify": "^1.1.0" @@ -18119,7 +18029,6 @@ }, "node_modules/react-dom": { "version": "18.2.0", - "dev": true, "license": "MIT", "dependencies": { "loose-envify": "^1.1.0", @@ -18247,6 +18156,15 @@ "react-dom": "^15.5.x || ^16.x || ^17.x || ^18.x" } }, + "node_modules/react-otp-input": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/react-otp-input/-/react-otp-input-3.1.0.tgz", + "integrity": "sha512-SNDwqPemy5DYLVQJrOEfZXvJePcDIDmjkln0QyHdje8hRcB1TnrqthxHs0M+E9MWQAyxM84R5yPe2wYjqnH4UA==", + "peerDependencies": { + "react": ">=16.8.6 || ^17.0.0 || ^18.0.0", + "react-dom": ">=16.8.6 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/react-pdf": { "version": "7.3.3", "resolved": "https://registry.npmjs.org/react-pdf/-/react-pdf-7.3.3.tgz", @@ -18488,7 +18406,6 @@ }, "node_modules/read-cache": { "version": "1.0.0", - "dev": true, "license": "MIT", "dependencies": { "pify": "^2.3.0" @@ -18508,7 +18425,6 @@ }, "node_modules/readdirp": { "version": "3.6.0", - "dev": true, "license": "MIT", "dependencies": { "picomatch": "^2.2.1" @@ -18976,7 +18892,6 @@ }, "node_modules/scheduler": { "version": "0.23.0", - "dev": true, "license": "MIT", "dependencies": { "loose-envify": "^1.1.0" @@ -19045,7 +18960,6 @@ }, "node_modules/semver": { "version": "6.3.1", - "devOptional": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -19415,7 +19329,6 @@ }, "node_modules/source-map-js": { "version": "1.0.2", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -19755,7 +19668,6 @@ }, "node_modules/sucrase": { "version": "3.34.0", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.2", @@ -19776,7 +19688,6 @@ }, "node_modules/sucrase/node_modules/commander": { "version": "4.1.1", - "dev": true, "license": "MIT", "engines": { "node": ">= 6" @@ -19784,7 +19695,6 @@ }, "node_modules/sucrase/node_modules/glob": { "version": "7.1.6", - "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -19880,7 +19790,6 @@ }, "node_modules/tailwindcss": { "version": "3.3.3", - "dev": true, "license": "MIT", "dependencies": { "@alloc/quick-lru": "^5.2.0", @@ -19916,7 +19825,6 @@ }, "node_modules/tapable": { "version": "2.2.1", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -19974,7 +19882,6 @@ }, "node_modules/terser": { "version": "5.19.2", - "dev": true, "license": "BSD-2-Clause", "dependencies": { "@jridgewell/source-map": "^0.3.3", @@ -19991,7 +19898,6 @@ }, "node_modules/terser-webpack-plugin": { "version": "5.3.9", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.17", @@ -20024,7 +19930,6 @@ }, "node_modules/terser-webpack-plugin/node_modules/ajv": { "version": "6.12.6", - "dev": true, "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", @@ -20039,7 +19944,6 @@ }, "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { "version": "3.5.2", - "dev": true, "license": "MIT", "peerDependencies": { "ajv": "^6.9.1" @@ -20047,7 +19951,6 @@ }, "node_modules/terser-webpack-plugin/node_modules/has-flag": { "version": "4.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -20055,7 +19958,6 @@ }, "node_modules/terser-webpack-plugin/node_modules/jest-worker": { "version": "27.5.1", - "dev": true, "license": "MIT", "dependencies": { "@types/node": "*", @@ -20068,12 +19970,10 @@ }, "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { "version": "0.4.1", - "dev": true, "license": "MIT" }, "node_modules/terser-webpack-plugin/node_modules/schema-utils": { "version": "3.3.0", - "dev": true, "license": "MIT", "dependencies": { "@types/json-schema": "^7.0.8", @@ -20090,7 +19990,6 @@ }, "node_modules/terser-webpack-plugin/node_modules/supports-color": { "version": "8.1.1", - "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -20104,12 +20003,10 @@ }, "node_modules/terser/node_modules/commander": { "version": "2.20.3", - "dev": true, "license": "MIT" }, "node_modules/terser/node_modules/source-map": { "version": "0.6.1", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -20117,7 +20014,6 @@ }, "node_modules/terser/node_modules/source-map-support": { "version": "0.5.21", - "dev": true, "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", @@ -20163,7 +20059,6 @@ }, "node_modules/thenify": { "version": "3.3.1", - "dev": true, "license": "MIT", "dependencies": { "any-promise": "^1.0.0" @@ -20171,7 +20066,6 @@ }, "node_modules/thenify-all": { "version": "1.6.0", - "dev": true, "license": "MIT", "dependencies": { "thenify": ">= 3.1.0 < 4" @@ -20255,7 +20149,6 @@ }, "node_modules/ts-interface-checker": { "version": "0.1.13", - "dev": true, "license": "Apache-2.0" }, "node_modules/ts-invariant": { @@ -20709,7 +20602,6 @@ }, "node_modules/update-browserslist-db": { "version": "1.0.11", - "dev": true, "funding": [ { "type": "opencollective", @@ -20855,7 +20747,6 @@ }, "node_modules/watchpack": { "version": "2.4.0", - "dev": true, "license": "MIT", "dependencies": { "glob-to-regexp": "^0.4.1", @@ -20891,7 +20782,6 @@ }, "node_modules/webpack": { "version": "5.88.2", - "dev": true, "license": "MIT", "dependencies": { "@types/eslint-scope": "^3.7.3", @@ -21127,7 +21017,6 @@ }, "node_modules/webpack-sources": { "version": "3.2.3", - "dev": true, "license": "MIT", "engines": { "node": ">=10.13.0" @@ -21135,7 +21024,6 @@ }, "node_modules/webpack/node_modules/ajv": { "version": "6.12.6", - "dev": true, "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", @@ -21150,7 +21038,6 @@ }, "node_modules/webpack/node_modules/ajv-keywords": { "version": "3.5.2", - "dev": true, "license": "MIT", "peerDependencies": { "ajv": "^6.9.1" @@ -21158,12 +21045,10 @@ }, "node_modules/webpack/node_modules/json-schema-traverse": { "version": "0.4.1", - "dev": true, "license": "MIT" }, "node_modules/webpack/node_modules/schema-utils": { "version": "3.3.0", - "dev": true, "license": "MIT", "dependencies": { "@types/json-schema": "^7.0.8", @@ -21491,7 +21376,6 @@ }, "node_modules/yallist": { "version": "3.1.1", - "dev": true, "license": "ISC" }, "node_modules/yaml": { @@ -21585,27 +21469,27 @@ "dev": true }, "@alloc/quick-lru": { - "version": "5.2.0", - "dev": true + "version": "5.2.0" }, "@ampproject/remapping": { "version": "2.2.1", - "dev": true, "requires": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" } }, "@apollo/client": { - "version": "3.7.17", + "version": "3.8.5", + "resolved": "https://registry.npmjs.org/@apollo/client/-/client-3.8.5.tgz", + "integrity": "sha512-/ueWC3f1pFeH+tWbM1phz6pzUGGijyml6oQ+LKUcQzpXF6tVFPrb6oUIUQCbZpr6Xmv/dtNiFDohc39ra7Solg==", "requires": { "@graphql-typed-document-node/core": "^3.1.1", - "@wry/context": "^0.7.0", - "@wry/equality": "^0.5.0", - "@wry/trie": "^0.4.0", + "@wry/context": "^0.7.3", + "@wry/equality": "^0.5.6", + "@wry/trie": "^0.4.3", "graphql-tag": "^2.12.6", "hoist-non-react-statics": "^3.3.2", - "optimism": "^0.16.2", + "optimism": "^0.17.5", "prop-types": "^15.7.2", "response-iterator": "^0.2.6", "symbol-observable": "^4.0.0", @@ -21621,12 +21505,10 @@ } }, "@babel/compat-data": { - "version": "7.22.9", - "dev": true + "version": "7.22.9" }, "@babel/core": { "version": "7.22.9", - "dev": true, "requires": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.22.5", @@ -21647,7 +21529,6 @@ }, "@babel/generator": { "version": "7.22.9", - "dev": true, "requires": { "@babel/types": "^7.22.5", "@jridgewell/gen-mapping": "^0.3.2", @@ -21670,7 +21551,6 @@ }, "@babel/helper-compilation-targets": { "version": "7.22.9", - "dev": true, "requires": { "@babel/compat-data": "^7.22.9", "@babel/helper-validator-option": "^7.22.5", @@ -21715,12 +21595,10 @@ } }, "@babel/helper-environment-visitor": { - "version": "7.22.5", - "dev": true + "version": "7.22.5" }, "@babel/helper-function-name": { "version": "7.22.5", - "dev": true, "requires": { "@babel/template": "^7.22.5", "@babel/types": "^7.22.5" @@ -21728,7 +21606,6 @@ }, "@babel/helper-hoist-variables": { "version": "7.22.5", - "dev": true, "requires": { "@babel/types": "^7.22.5" } @@ -21748,7 +21625,6 @@ }, "@babel/helper-module-transforms": { "version": "7.22.9", - "dev": true, "requires": { "@babel/helper-environment-visitor": "^7.22.5", "@babel/helper-module-imports": "^7.22.5", @@ -21787,7 +21663,6 @@ }, "@babel/helper-simple-access": { "version": "7.22.5", - "dev": true, "requires": { "@babel/types": "^7.22.5" } @@ -21801,7 +21676,6 @@ }, "@babel/helper-split-export-declaration": { "version": "7.22.6", - "dev": true, "requires": { "@babel/types": "^7.22.5" } @@ -21826,7 +21700,6 @@ }, "@babel/helpers": { "version": "7.22.6", - "dev": true, "requires": { "@babel/template": "^7.22.5", "@babel/traverse": "^7.22.6", @@ -21842,8 +21715,7 @@ } }, "@babel/parser": { - "version": "7.22.7", - "dev": true + "version": "7.22.7" }, "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { "version": "7.22.5", @@ -21863,7 +21735,8 @@ }, "@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0-placeholder-for-preset-env.2", - "dev": true + "dev": true, + "requires": {} }, "@babel/plugin-proposal-unicode-property-regex": { "version": "7.18.6", @@ -22557,7 +22430,6 @@ }, "@babel/template": { "version": "7.22.5", - "dev": true, "requires": { "@babel/code-frame": "^7.22.5", "@babel/parser": "^7.22.5", @@ -22566,7 +22438,6 @@ }, "@babel/traverse": { "version": "7.22.8", - "dev": true, "requires": { "@babel/code-frame": "^7.22.5", "@babel/generator": "^7.22.7", @@ -22680,7 +22551,8 @@ "version": "0.8.1" }, "@emotion/use-insertion-effect-with-fallbacks": { - "version": "1.0.1" + "version": "1.0.1", + "requires": {} }, "@emotion/utils": { "version": "1.2.1" @@ -22841,7 +22713,8 @@ } }, "@graphql-typed-document-node/core": { - "version": "3.2.0" + "version": "3.2.0", + "requires": {} }, "@headlessui/react": { "version": "1.7.16", @@ -22851,7 +22724,8 @@ }, "@heroicons/react": { "version": "1.0.6", - "dev": true + "dev": true, + "requires": {} }, "@humanwhocodes/config-array": { "version": "0.11.10", @@ -22871,7 +22745,8 @@ "dev": true }, "@iconify/react": { - "version": "3.2.2" + "version": "3.2.2", + "requires": {} }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", @@ -23569,7 +23444,6 @@ }, "@jridgewell/gen-mapping": { "version": "0.3.3", - "dev": true, "requires": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -23577,36 +23451,30 @@ } }, "@jridgewell/resolve-uri": { - "version": "3.1.0", - "dev": true + "version": "3.1.0" }, "@jridgewell/set-array": { - "version": "1.1.2", - "dev": true + "version": "1.1.2" }, "@jridgewell/source-map": { "version": "0.3.5", - "dev": true, "requires": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" } }, "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "dev": true + "version": "1.4.15" }, "@jridgewell/trace-mapping": { "version": "0.3.18", - "dev": true, "requires": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" }, "dependencies": { "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "dev": true + "version": "1.4.14" } } }, @@ -23785,7 +23653,8 @@ } }, "@mui/types": { - "version": "7.2.4" + "version": "7.2.4", + "requires": {} }, "@mui/utils": { "version": "5.14.3", @@ -23835,7 +23704,8 @@ "@react-pdf-viewer/core": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/@react-pdf-viewer/core/-/core-3.12.0.tgz", - "integrity": "sha512-8MsdlQJ4jaw3GT+zpCHS33nwnvzpY0ED6DEahZg9WngG++A5RMhk8LSlxdHelwaFFHFiXBjmOaj2Kpxh50VQRg==" + "integrity": "sha512-8MsdlQJ4jaw3GT+zpCHS33nwnvzpY0ED6DEahZg9WngG++A5RMhk8LSlxdHelwaFFHFiXBjmOaj2Kpxh50VQRg==", + "requires": {} }, "@remix-run/router": { "version": "1.7.2" @@ -23991,7 +23861,8 @@ } }, "@testing-library/user-event": { - "version": "14.4.3" + "version": "14.4.3", + "requires": {} }, "@tootallnate/once": { "version": "2.0.0", @@ -24113,7 +23984,6 @@ }, "@types/eslint": { "version": "8.44.1", - "dev": true, "requires": { "@types/estree": "*", "@types/json-schema": "*" @@ -24121,15 +23991,13 @@ }, "@types/eslint-scope": { "version": "3.7.4", - "dev": true, "requires": { "@types/eslint": "*", "@types/estree": "*" } }, "@types/estree": { - "version": "1.0.1", - "dev": true + "version": "1.0.1" }, "@types/express": { "version": "4.17.17", @@ -24591,27 +24459,22 @@ }, "@webassemblyjs/ast": { "version": "1.11.6", - "dev": true, "requires": { "@webassemblyjs/helper-numbers": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6" } }, "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "dev": true + "version": "1.11.6" }, "@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "dev": true + "version": "1.11.6" }, "@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "dev": true + "version": "1.11.6" }, "@webassemblyjs/helper-numbers": { "version": "1.11.6", - "dev": true, "requires": { "@webassemblyjs/floating-point-hex-parser": "1.11.6", "@webassemblyjs/helper-api-error": "1.11.6", @@ -24619,12 +24482,10 @@ } }, "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "dev": true + "version": "1.11.6" }, "@webassemblyjs/helper-wasm-section": { "version": "1.11.6", - "dev": true, "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-buffer": "1.11.6", @@ -24634,25 +24495,21 @@ }, "@webassemblyjs/ieee754": { "version": "1.11.6", - "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" } }, "@webassemblyjs/leb128": { "version": "1.11.6", - "dev": true, "requires": { "@xtuc/long": "4.2.2" } }, "@webassemblyjs/utf8": { - "version": "1.11.6", - "dev": true + "version": "1.11.6" }, "@webassemblyjs/wasm-edit": { "version": "1.11.6", - "dev": true, "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-buffer": "1.11.6", @@ -24666,7 +24523,6 @@ }, "@webassemblyjs/wasm-gen": { "version": "1.11.6", - "dev": true, "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6", @@ -24677,7 +24533,6 @@ }, "@webassemblyjs/wasm-opt": { "version": "1.11.6", - "dev": true, "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-buffer": "1.11.6", @@ -24687,7 +24542,6 @@ }, "@webassemblyjs/wasm-parser": { "version": "1.11.6", - "dev": true, "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-api-error": "1.11.6", @@ -24699,7 +24553,6 @@ }, "@webassemblyjs/wast-printer": { "version": "1.11.6", - "dev": true, "requires": { "@webassemblyjs/ast": "1.11.6", "@xtuc/long": "4.2.2" @@ -24707,7 +24560,8 @@ }, "@webpack-cli/configtest": { "version": "1.2.0", - "dev": true + "dev": true, + "requires": {} }, "@webpack-cli/info": { "version": "1.5.0", @@ -24718,13 +24572,16 @@ }, "@webpack-cli/serve": { "version": "1.7.0", - "dev": true + "dev": true, + "requires": {} }, "@wojtekmaj/date-utils": { "version": "1.5.0" }, "@wry/context": { "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@wry/context/-/context-0.7.3.tgz", + "integrity": "sha512-Nl8WTesHp89RF803Se9X3IiHjdmLBrIvPMaJkl+rKVJAYyPsz1TEUbu89943HpvujtSJgDUx9W4vZw3K1Mr3sA==", "requires": { "tslib": "^2.3.0" } @@ -24742,12 +24599,10 @@ } }, "@xtuc/ieee754": { - "version": "1.2.0", - "dev": true + "version": "1.2.0" }, "@xtuc/long": { - "version": "4.2.2", - "dev": true + "version": "4.2.2" }, "abab": { "version": "2.0.6", @@ -24764,8 +24619,7 @@ } }, "acorn": { - "version": "8.10.0", - "dev": true + "version": "8.10.0" }, "acorn-globals": { "version": "6.0.0", @@ -24783,11 +24637,12 @@ }, "acorn-import-assertions": { "version": "1.9.0", - "dev": true + "requires": {} }, "acorn-jsx": { "version": "5.3.2", - "dev": true + "dev": true, + "requires": {} }, "acorn-walk": { "version": "7.2.0", @@ -24861,12 +24716,10 @@ } }, "any-promise": { - "version": "1.3.0", - "dev": true + "version": "1.3.0" }, "anymatch": { "version": "3.1.3", - "dev": true, "requires": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -24895,8 +24748,7 @@ } }, "arg": { - "version": "5.0.2", - "dev": true + "version": "5.0.2" }, "argparse": { "version": "1.0.10", @@ -25237,8 +25089,7 @@ "dev": true }, "binary-extensions": { - "version": "2.2.0", - "dev": true + "version": "2.2.0" }, "bn.js": { "version": "5.2.1" @@ -25362,7 +25213,6 @@ }, "browserslist": { "version": "4.21.10", - "dev": true, "requires": { "caniuse-lite": "^1.0.30001517", "electron-to-chromium": "^1.4.477", @@ -25390,8 +25240,7 @@ "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" }, "buffer-from": { - "version": "1.1.2", - "dev": true + "version": "1.1.2" }, "buffer-xor": { "version": "1.0.3" @@ -25422,12 +25271,10 @@ "dev": true }, "camelcase-css": { - "version": "2.0.1", - "dev": true + "version": "2.0.1" }, "caniuse-lite": { - "version": "1.0.30001518", - "dev": true + "version": "1.0.30001518" }, "canvas": { "version": "2.11.2", @@ -25502,7 +25349,6 @@ }, "chokidar": { "version": "3.5.3", - "dev": true, "requires": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -25516,7 +25362,6 @@ "dependencies": { "glob-parent": { "version": "5.1.2", - "dev": true, "requires": { "is-glob": "^4.0.1" } @@ -25530,8 +25375,7 @@ "optional": true }, "chrome-trace-event": { - "version": "1.0.3", - "dev": true + "version": "1.0.3" }, "ci-info": { "version": "3.8.0", @@ -25638,7 +25482,8 @@ } }, "cloudinary-core": { - "version": "2.13.0" + "version": "2.13.0", + "requires": {} }, "cloudinary-react": { "version": "1.8.1", @@ -25955,8 +25800,7 @@ "dev": true }, "cssesc": { - "version": "3.0.0", - "dev": true + "version": "3.0.0" }, "cssom": { "version": "0.5.0", @@ -26017,7 +25861,6 @@ }, "debug": { "version": "4.3.4", - "devOptional": true, "requires": { "ms": "2.1.2" } @@ -26127,8 +25970,7 @@ "dev": true }, "didyoumean": { - "version": "1.2.2", - "dev": true + "version": "1.2.2" }, "diff": { "version": "5.1.0" @@ -26161,8 +26003,7 @@ "dev": true }, "dlv": { - "version": "1.1.3", - "dev": true + "version": "1.1.3" }, "dns-equal": { "version": "1.0.0", @@ -26267,8 +26108,7 @@ "version": "1.1.1" }, "electron-to-chromium": { - "version": "1.4.480", - "dev": true + "version": "1.4.480" }, "elliptic": { "version": "6.5.4", @@ -26311,7 +26151,6 @@ }, "enhanced-resolve": { "version": "5.15.0", - "dev": true, "requires": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -26431,8 +26270,7 @@ } }, "es-module-lexer": { - "version": "1.3.0", - "dev": true + "version": "1.3.0" }, "es-set-tostringtag": { "version": "2.0.1", @@ -26460,8 +26298,7 @@ } }, "escalade": { - "version": "3.1.1", - "dev": true + "version": "3.1.1" }, "escape-html": { "version": "1.0.3" @@ -26687,7 +26524,8 @@ }, "eslint-config-prettier": { "version": "8.9.0", - "dev": true + "dev": true, + "requires": {} }, "eslint-import-resolver-node": { "version": "0.3.7", @@ -26842,19 +26680,18 @@ }, "eslint-plugin-react-hooks": { "version": "4.6.0", - "dev": true + "dev": true, + "requires": {} }, "eslint-scope": { "version": "5.1.1", - "dev": true, "requires": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" }, "dependencies": { "estraverse": { - "version": "4.3.0", - "dev": true + "version": "4.3.0" } } }, @@ -26883,14 +26720,12 @@ }, "esrecurse": { "version": "4.3.0", - "dev": true, "requires": { "estraverse": "^5.2.0" } }, "estraverse": { - "version": "5.3.0", - "dev": true + "version": "5.3.0" }, "esutils": { "version": "2.0.3" @@ -26902,8 +26737,7 @@ "version": "3.1.2" }, "events": { - "version": "3.3.0", - "dev": true + "version": "3.3.0" }, "evp_bytestokey": { "version": "1.0.3", @@ -27100,8 +26934,7 @@ } }, "fast-json-stable-stringify": { - "version": "2.1.0", - "dev": true + "version": "2.1.0" }, "fast-levenshtein": { "version": "2.0.6" @@ -27157,7 +26990,8 @@ }, "ajv-keywords": { "version": "3.5.2", - "dev": true + "dev": true, + "requires": {} }, "json-schema-traverse": { "version": "0.4.1", @@ -27358,8 +27192,7 @@ "dev": true }, "fs.realpath": { - "version": "1.0.0", - "devOptional": true + "version": "1.0.0" }, "function-bind": { "version": "1.1.1" @@ -27420,8 +27253,7 @@ } }, "gensync": { - "version": "1.0.0-beta.2", - "dev": true + "version": "1.0.0-beta.2" }, "get-caller-file": { "version": "2.0.5", @@ -27479,12 +27311,10 @@ } }, "glob-to-regexp": { - "version": "0.4.1", - "dev": true + "version": "0.4.1" }, "globals": { - "version": "11.12.0", - "dev": true + "version": "11.12.0" }, "globalthis": { "version": "1.0.3", @@ -27516,19 +27346,21 @@ } }, "graceful-fs": { - "version": "4.2.11", - "dev": true + "version": "4.2.11" }, "graphemer": { "version": "1.4.0", "dev": true }, "graphql": { - "version": "16.7.1", - "dev": true + "version": "16.8.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", + "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==" }, "graphql-tag": { "version": "2.12.6", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz", + "integrity": "sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==", "requires": { "tslib": "^2.1.0" } @@ -27827,7 +27659,8 @@ }, "icss-utils": { "version": "5.1.0", - "dev": true + "dev": true, + "requires": {} }, "ignore": { "version": "5.2.4" @@ -27921,7 +27754,6 @@ }, "is-binary-path": { "version": "2.1.0", - "dev": true, "requires": { "binary-extensions": "^2.0.0" } @@ -29066,7 +28898,8 @@ }, "jest-pnp-resolver": { "version": "1.2.3", - "dev": true + "dev": true, + "requires": {} }, "jest-regex-util": { "version": "28.0.2", @@ -29706,8 +29539,7 @@ } }, "jiti": { - "version": "1.19.1", - "dev": true + "version": "1.19.1" }, "js-tokens": { "version": "4.0.0" @@ -29783,8 +29615,7 @@ } }, "jsesc": { - "version": "2.5.2", - "dev": true + "version": "2.5.2" }, "json-parse-even-better-errors": { "version": "2.3.1" @@ -29797,8 +29628,7 @@ "dev": true }, "json5": { - "version": "2.2.3", - "dev": true + "version": "2.2.3" }, "jsonwebtoken": { "version": "9.0.1", @@ -29909,8 +29739,7 @@ } }, "lilconfig": { - "version": "2.1.0", - "dev": true + "version": "2.1.0" }, "lines-and-columns": { "version": "1.2.4" @@ -30066,8 +29895,7 @@ } }, "loader-runner": { - "version": "4.3.0", - "dev": true + "version": "4.3.0" }, "loader-utils": { "version": "2.0.4", @@ -30194,7 +30022,6 @@ }, "lru-cache": { "version": "5.1.1", - "dev": true, "requires": { "yallist": "^3.0.2" } @@ -30266,8 +30093,7 @@ } }, "merge-stream": { - "version": "2.0.0", - "dev": true + "version": "2.0.0" }, "merge2": { "version": "1.4.1" @@ -30433,7 +30259,6 @@ }, "mz": { "version": "2.7.0", - "dev": true, "requires": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", @@ -30447,8 +30272,7 @@ "optional": true }, "nanoid": { - "version": "3.3.6", - "dev": true + "version": "3.3.6" }, "natural-compare": { "version": "1.4.0", @@ -30571,8 +30395,7 @@ "dev": true }, "node-releases": { - "version": "2.0.13", - "dev": true + "version": "2.0.13" }, "nopt": { "version": "3.0.6", @@ -32408,8 +32231,7 @@ "version": "4.1.1" }, "object-hash": { - "version": "3.0.0", - "dev": true + "version": "3.0.0" }, "object-inspect": { "version": "1.12.3" @@ -32515,18 +32337,13 @@ } }, "optimism": { - "version": "0.16.2", + "version": "0.17.5", + "resolved": "https://registry.npmjs.org/optimism/-/optimism-0.17.5.tgz", + "integrity": "sha512-TEcp8ZwK1RczmvMnvktxHSF2tKgMWjJ71xEFGX5ApLh67VsMSTy1ZUlipJw8W+KaqgOmQ+4pqwkeivY89j+4Vw==", "requires": { "@wry/context": "^0.7.0", - "@wry/trie": "^0.3.0" - }, - "dependencies": { - "@wry/trie": { - "version": "0.3.2", - "requires": { - "tslib": "^2.3.0" - } - } + "@wry/trie": "^0.4.3", + "tslib": "^2.3.0" } }, "optionator": { @@ -32677,13 +32494,22 @@ "sha.js": "^2.4.8" } }, + "pdfjs-dist": { + "version": "3.10.111", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-3.10.111.tgz", + "integrity": "sha512-+SXXGN/3YTNQSK5Ae7EyqQuR+4IAsNunJq/Us5ByOkRJ45qBXXOwkiWi3RIDU+CyF+ak5eSWXl2FQW2PKBrsRA==", + "peer": true, + "requires": { + "canvas": "^2.11.2", + "path2d-polyfill": "^2.0.1" + } + }, "performance-now": { "version": "2.1.0", "dev": true }, "picocolors": { - "version": "1.0.0", - "dev": true + "version": "1.0.0" }, "picomatch": { "version": "2.3.1" @@ -32693,12 +32519,10 @@ "dev": true }, "pify": { - "version": "2.3.0", - "dev": true + "version": "2.3.0" }, "pirates": { - "version": "4.0.6", - "dev": true + "version": "4.0.6" }, "pixelmatch": { "version": "5.3.0", @@ -32740,7 +32564,6 @@ }, "postcss": { "version": "8.4.27", - "dev": true, "requires": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", @@ -32749,7 +32572,6 @@ }, "postcss-import": { "version": "15.1.0", - "dev": true, "requires": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", @@ -32758,22 +32580,19 @@ }, "postcss-js": { "version": "4.0.1", - "dev": true, "requires": { "camelcase-css": "^2.0.1" } }, "postcss-load-config": { "version": "4.0.1", - "dev": true, "requires": { "lilconfig": "^2.0.5", "yaml": "^2.1.1" }, "dependencies": { "yaml": { - "version": "2.3.1", - "dev": true + "version": "2.3.1" } } }, @@ -32829,7 +32648,8 @@ }, "postcss-modules-extract-imports": { "version": "3.0.0", - "dev": true + "dev": true, + "requires": {} }, "postcss-modules-local-by-default": { "version": "4.0.3", @@ -32856,22 +32676,19 @@ }, "postcss-nested": { "version": "6.0.1", - "dev": true, "requires": { "postcss-selector-parser": "^6.0.11" } }, "postcss-selector-parser": { "version": "6.0.13", - "dev": true, "requires": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "postcss-value-parser": { - "version": "4.2.0", - "dev": true + "version": "4.2.0" }, "preact": { "version": "10.12.1" @@ -33134,7 +32951,6 @@ }, "react": { "version": "18.2.0", - "dev": true, "requires": { "loose-envify": "^1.1.0" } @@ -33149,12 +32965,14 @@ } }, "react-chartjs-2": { - "version": "5.2.0" + "version": "5.2.0", + "requires": {} }, "react-circular-progressbar": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/react-circular-progressbar/-/react-circular-progressbar-2.1.0.tgz", - "integrity": "sha512-xp4THTrod4aLpGy68FX/k1Q3nzrfHUjUe5v6FsdwXBl3YVMwgeXYQKDrku7n/D6qsJA9CuunarAboC2xCiKs1g==" + "integrity": "sha512-xp4THTrod4aLpGy68FX/k1Q3nzrfHUjUe5v6FsdwXBl3YVMwgeXYQKDrku7n/D6qsJA9CuunarAboC2xCiKs1g==", + "requires": {} }, "react-datepicker": { "version": "4.16.0", @@ -33169,7 +32987,6 @@ }, "react-dom": { "version": "18.2.0", - "dev": true, "requires": { "loose-envify": "^1.1.0", "scheduler": "^0.23.0" @@ -33200,7 +33017,8 @@ "version": "3.2.2" }, "react-hook-form": { - "version": "7.45.2" + "version": "7.45.2", + "requires": {} }, "react-i18next": { "version": "11.18.6", @@ -33210,7 +33028,8 @@ } }, "react-icons": { - "version": "4.10.1" + "version": "4.10.1", + "requires": {} }, "react-indiana-drag-scroll": { "version": "2.2.0", @@ -33229,7 +33048,14 @@ "version": "3.0.4" }, "react-onclickoutside": { - "version": "6.13.0" + "version": "6.13.0", + "requires": {} + }, + "react-otp-input": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/react-otp-input/-/react-otp-input-3.1.0.tgz", + "integrity": "sha512-SNDwqPemy5DYLVQJrOEfZXvJePcDIDmjkln0QyHdje8hRcB1TnrqthxHs0M+E9MWQAyxM84R5yPe2wYjqnH4UA==", + "requires": {} }, "react-pdf": { "version": "7.3.3", @@ -33312,10 +33138,12 @@ "react-spinners": { "version": "0.13.8", "resolved": "https://registry.npmjs.org/react-spinners/-/react-spinners-0.13.8.tgz", - "integrity": "sha512-3e+k56lUkPj0vb5NDXPVFAOkPC//XyhKPJjvcGjyMNPWsBKpplfeyialP74G7H7+It7KzhtET+MvGqbKgAqpZA==" + "integrity": "sha512-3e+k56lUkPj0vb5NDXPVFAOkPC//XyhKPJjvcGjyMNPWsBKpplfeyialP74G7H7+It7KzhtET+MvGqbKgAqpZA==", + "requires": {} }, "react-table": { - "version": "7.8.0" + "version": "7.8.0", + "requires": {} }, "react-test-renderer": { "version": "18.2.0", @@ -33369,11 +33197,11 @@ } }, "reactjs-popup": { - "version": "2.0.5" + "version": "2.0.5", + "requires": {} }, "read-cache": { "version": "1.0.0", - "dev": true, "requires": { "pify": "^2.3.0" } @@ -33388,7 +33216,6 @@ }, "readdirp": { "version": "3.6.0", - "dev": true, "requires": { "picomatch": "^2.2.1" } @@ -33675,7 +33502,6 @@ }, "scheduler": { "version": "0.23.0", - "dev": true, "requires": { "loose-envify": "^1.1.0" } @@ -33701,7 +33527,8 @@ }, "ajv-keywords": { "version": "3.5.2", - "dev": true + "dev": true, + "requires": {} }, "json-schema-traverse": { "version": "0.4.1", @@ -33721,8 +33548,7 @@ } }, "semver": { - "version": "6.3.1", - "devOptional": true + "version": "6.3.1" }, "send": { "version": "0.18.0", @@ -33979,8 +33805,7 @@ "version": "0.5.7" }, "source-map-js": { - "version": "1.0.2", - "dev": true + "version": "1.0.2" }, "source-map-support": { "version": "0.5.13", @@ -34185,13 +34010,13 @@ "version": "1.2.0" }, "ws": { - "version": "7.5.9" + "version": "7.5.9", + "requires": {} } } }, "sucrase": { "version": "3.34.0", - "dev": true, "requires": { "@jridgewell/gen-mapping": "^0.3.2", "commander": "^4.0.0", @@ -34203,12 +34028,10 @@ }, "dependencies": { "commander": { - "version": "4.1.1", - "dev": true + "version": "4.1.1" }, "glob": { "version": "7.1.6", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -34269,7 +34092,6 @@ }, "tailwindcss": { "version": "3.3.3", - "dev": true, "requires": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", @@ -34296,8 +34118,7 @@ } }, "tapable": { - "version": "2.2.1", - "dev": true + "version": "2.2.1" }, "tar": { "version": "6.1.15", @@ -34337,7 +34158,6 @@ }, "terser": { "version": "5.19.2", - "dev": true, "requires": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.8.2", @@ -34346,16 +34166,13 @@ }, "dependencies": { "commander": { - "version": "2.20.3", - "dev": true + "version": "2.20.3" }, "source-map": { - "version": "0.6.1", - "dev": true + "version": "0.6.1" }, "source-map-support": { "version": "0.5.21", - "dev": true, "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -34365,7 +34182,6 @@ }, "terser-webpack-plugin": { "version": "5.3.9", - "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.17", "jest-worker": "^27.4.5", @@ -34376,7 +34192,6 @@ "dependencies": { "ajv": { "version": "6.12.6", - "dev": true, "requires": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -34386,15 +34201,13 @@ }, "ajv-keywords": { "version": "3.5.2", - "dev": true + "requires": {} }, "has-flag": { - "version": "4.0.0", - "dev": true + "version": "4.0.0" }, "jest-worker": { "version": "27.5.1", - "dev": true, "requires": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -34402,12 +34215,10 @@ } }, "json-schema-traverse": { - "version": "0.4.1", - "dev": true + "version": "0.4.1" }, "schema-utils": { "version": "3.3.0", - "dev": true, "requires": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -34416,7 +34227,6 @@ }, "supports-color": { "version": "8.1.1", - "dev": true, "requires": { "has-flag": "^4.0.0" } @@ -34452,14 +34262,12 @@ }, "thenify": { "version": "3.3.1", - "dev": true, "requires": { "any-promise": "^1.0.0" } }, "thenify-all": { "version": "1.6.0", - "dev": true, "requires": { "thenify": ">= 3.1.0 < 4" } @@ -34514,8 +34322,7 @@ } }, "ts-interface-checker": { - "version": "0.1.13", - "dev": true + "version": "0.1.13" }, "ts-invariant": { "version": "0.10.3", @@ -34779,7 +34586,6 @@ }, "update-browserslist-db": { "version": "1.0.11", - "dev": true, "requires": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -34805,7 +34611,8 @@ "integrity": "sha512-mYFmBHCapZjtcNHW0MDq9967t+z4Dmg5CJ0KqysK3+ZbyoNOWQHksGCTWwDhxGXllkWlOc10Xfko6v4a3ucM6A==" }, "use-isomorphic-layout-effect": { - "version": "1.1.2" + "version": "1.1.2", + "requires": {} }, "util-deprecate": { "version": "1.0.2" @@ -34864,7 +34671,6 @@ }, "watchpack": { "version": "2.4.0", - "dev": true, "requires": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" @@ -34888,7 +34694,6 @@ }, "webpack": { "version": "5.88.2", - "dev": true, "requires": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^1.0.0", @@ -34918,7 +34723,6 @@ "dependencies": { "ajv": { "version": "6.12.6", - "dev": true, "requires": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -34928,15 +34732,13 @@ }, "ajv-keywords": { "version": "3.5.2", - "dev": true + "requires": {} }, "json-schema-traverse": { - "version": "0.4.1", - "dev": true + "version": "0.4.1" }, "schema-utils": { "version": "3.3.0", - "dev": true, "requires": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -35053,8 +34855,7 @@ } }, "webpack-sources": { - "version": "3.2.3", - "dev": true + "version": "3.2.3" }, "websocket-driver": { "version": "0.7.4", @@ -35239,7 +35040,8 @@ }, "ws": { "version": "8.13.0", - "dev": true + "dev": true, + "requires": {} }, "xml-name-validator": { "version": "4.0.0", @@ -35254,8 +35056,7 @@ "dev": true }, "yallist": { - "version": "3.1.1", - "dev": true + "version": "3.1.1" }, "yaml": { "version": "1.10.2" diff --git a/package.json b/package.json index a1bab12e7..e989e62fc 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "homepage": "https://github.com/atlp-rwanda/atlp-pulse-fn#readme", "dependencies": { - "@apollo/client": "^3.7.17", + "@apollo/client": "^3.8.5", "@babel/preset-react": "^7.22.5", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", @@ -72,7 +72,7 @@ "file-saver": "^2.0.5", "flowbite-react": "^0.5.0", "framer-motion": "^6.5.1", - "graphql": "^16.7.1", + "graphql-tag": "^2.12.6", "i18next": "^21.10.0", "i18next-browser-languagedetector": "^7.1.0", "i18next-xhr-backend": "^3.2.2", @@ -91,6 +91,7 @@ "react-hook-form": "^7.45.2", "react-i18next": "^11.18.6", "react-icons": "^4.10.1", + "react-otp-input": "^3.1.0", "react-pdf": "^7.3.3", "react-pdf-js": "^5.1.0", "react-router": "^6.14.1", @@ -145,7 +146,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "faker": "5.5.3", "file-loader": "^6.2.0", - "graphql": "^16.7.1", + "graphql": "^16.8.1", "html-webpack-plugin": "^5.5.0", "husky": "^8.0.1", "install": "^0.13.0", diff --git a/src/Mutations/Twofactor2fa.tsx b/src/Mutations/Twofactor2fa.tsx new file mode 100644 index 000000000..148d45405 --- /dev/null +++ b/src/Mutations/Twofactor2fa.tsx @@ -0,0 +1,21 @@ +/* eslint-disable */ +// mutations.ts +import gql from 'graphql-tag'; + +export const ENABLE_TWO_FACTOR_AUTH = gql` + mutation EnableTwoFactorAuth($email: String!) { + enableTwoFactorAuth(email: $email) + } +`; + +export const DISABLE_TWO_FACTOR_AUTH = gql` + mutation DisableTwoFactorAuth($email: String!) { + disableTwoFactorAuth(email: $email) + } +`; + +export const VERIFY_ONE_TIME_CODE = gql` + mutation VerifyOneTimeCode($email: String!, $code: String!) { + verifyOneTimeCode(email: $email, code: $code) + } +`; diff --git a/src/components/twofactor/ Enable2fa.tsx b/src/components/twofactor/ Enable2fa.tsx new file mode 100644 index 000000000..a57c89362 --- /dev/null +++ b/src/components/twofactor/ Enable2fa.tsx @@ -0,0 +1,68 @@ + /* eslint-disable */ + import React, { useState } from 'react'; +import { useMutation, useQuery } from '@apollo/client'; +import { ENABLE_TWO_FACTOR_AUTH } from '../../Mutations/Twofactor2fa'; +import { toast } from 'react-toastify'; +import 'react-toastify/dist/ReactToastify.css'; +import VerifyOneTimeCodeComponent from "../../components/twofactor/Verify2fa"; +import { GET_PROFILE } from '../../Mutations/User'; // Import your GET_PROFILE query +import Loader1 from '../../components/loaders/loader2/index'; // Import your loader component + +const EnableTwoFactorAuthComponent: React.FC = () => { + const [isTwoFactorEnabled, setIsTwoFactorEnabled] = useState(false); + const [isLoading, setIsLoading] = useState(false); + + // Fetch user's profile to get the email + const { loading, error, data } = useQuery(GET_PROFILE); + + const [enableTwoFactorAuth] = useMutation(ENABLE_TWO_FACTOR_AUTH); + + const handleEnableTwoFactorAuth = async () => { + try { + setIsLoading(true); + + // Check if the GET_PROFILE query has loaded + if (loading) { + toast.error('Profile data is loading. Please wait.'); + setIsLoading(false); + return; + } + if (error) { + toast.error('Error fetching profile data. Please try again.'); + setIsLoading(false); + return; + } + + // Extract the email from the profile data + const userProfile = data.getProfile; + const userProfileEmail = userProfile.user.email; + + // Send the OTP to the user's email + const response = await enableTwoFactorAuth({ + variables: { email: userProfileEmail }, + }); + + console.log(response.data.enableTwoFactorAuth); + toast.success('OTP check email sent! Check your inbox.'); + setIsTwoFactorEnabled(true); + } catch (error) { + console.error(error); + toast.error('Error sending OTP check email. Please try again.'); + } finally { + setIsLoading(false); + } + }; + + return ( +