{
  "name": "@overleaf/web",
  "description": "The HTTP front end for Overleaf",
  "private": true,
  "main": "app.mjs",
  "directories": {
    "public": "./public"
  },
  "scripts": {
    "test:acceptance:run_dir": "mocha --recursive --timeout 25000 --grep=$MOCHA_GREP --require test/acceptance/bootstrap.js",
    "test:acceptance:app": "npm run test:acceptance:run_dir -- test/acceptance/src",
    "test:unit:run_dir": "bin/test_unit_run_dir",
    "test:unit:all": "npm run test:unit:run_dir -- test/unit/src modules/*/test/unit/src",
    "test:unit:all:silent": "npm run test:unit:all -- --reporter dot",
    "test:unit:app": "npm run test:unit:run_dir -- test/unit/src",
    "test:unit:mocha": "npm run test:unit:mocha:run_dir -- test/unit/src modules/*/test/unit/src",
    "test:unit:mocha:run_dir": "mocha --recursive --timeout 25000 --exit --grep=$MOCHA_GREP --require test/unit/bootstrap.js --extension=js",
    "test:unit:esm": "vitest run",
    "test:unit:esm:watch": "vitest",
    "test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --timeout 5000 --exit --extension js,jsx,mjs,ts,tsx --grep=$MOCHA_GREP --require test/frontend/bootstrap.js --ignore '**/*.spec.{js,jsx,ts,tsx}' --ignore '**/helpers/**/*.{js,jsx,ts,tsx}' test/frontend modules/*/test/frontend",
    "test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend",
    "start": "node app.mjs",
    "nodemon": "node --watch app.mjs --watch-locales",
    "webpack": "webpack serve --config webpack.config.dev.js",
    "webpack:production": "webpack --config webpack.config.prod.js",
    "webpack:profile": "webpack --config webpack.config.prod.js --profile --json > stats.json",
    "format": "prettier --list-different $PWD/'**/*.{js,jsx,mjs,ts,tsx,json}'",
    "format:fix": "prettier --write $PWD/'**/*.{js,jsx,mjs,ts,tsx,json}'",
    "format:styles": "prettier --list-different $PWD/'**/*.{css,less,scss}'",
    "format:styles:fix": "prettier --write $PWD/'**/*.{css,less,scss}'",
    "format:pug": "prettier --list-different $PWD/'**/*.pug'",
    "format:pug:fix": "prettier --write $PWD/'**/*.pug'",
    "lint": "eslint --max-warnings 0 --format unix --ext .js,.jsx,.mjs,.ts,.tsx .",
    "lint:fix": "eslint --fix --ext .js,.jsx,.mjs,.ts,.tsx .",
    "lint:styles": "stylelint '**/*.scss'",
    "lint:styles:fix": "stylelint '**/*.scss' --fix",
    "type-check": "tsc --noEmit",
    "type-check:backend": "tsc -p tsconfig.backend.json --noEmit",
    "extract-translations": "i18next-scanner",
    "migrations": "MONGO_SOCKET_TIMEOUT=0 east --es-modules",
    "convert-themes": "node frontend/js/features/source-editor/themes/scripts/convert.js",
    "cypress:open-ct": "OVERLEAF_CONFIG=$PWD/config/settings.webpack.js cypress open --component",
    "cypress:run-ct": "OVERLEAF_CONFIG=$PWD/config/settings.webpack.js cypress run --component --browser chrome",
    "cypress:docker:open-ct": "DOCKER_USER=\"$(id -u):$(id -g)\" docker compose -f docker-compose.cypress.yml run --rm cypress run cypress:open-ct",
    "cypress:docker:run-ct": "DOCKER_USER=\"$(id -u):$(id -g)\" docker compose -f docker-compose.cypress.yml run --rm cypress run cypress:run-ct --browser chrome",
    "lezer-latex:generate": "node scripts/lezer-latex/generate.js",
    "lezer-latex:run": "node scripts/lezer-latex/run.mjs",
    "lezer-latex:benchmark": "node scripts/lezer-latex/benchmark.mjs",
    "lezer-latex:benchmark-incremental": "node scripts/lezer-latex/test-incremental-parser.mjs",
    "routes": "bin/routes",
    "storybook": "storybook dev -p 6006 --no-open",
    "build-storybook": "storybook build",
    "precompile-pug": "node app/src/infrastructure/Views",
    "local:nodemon": "set -a;. ../../config/dev-environment.env;. ./docker-compose.common.env;. ../../config/local-dev.env;. ./local-dev.env;. ../../config/local.env; set +a; echo $OVERLEAF_CONFIG; WEB_PORT=13000 LISTEN_ADDRESS=0.0.0.0 npm run nodemon",
    "local:webpack": "set -a;. ../../config/dev-environment.env;. ./docker-compose.common.env;. ../../config/local-dev.env;. ./local-dev.env;. ../../config/local.env; set +a; PORT=13808 OVERLEAF_CONFIG=$(pwd)/config/settings.webpack.js npm run webpack",
    "local:test:acceptance:run_dir": "set -a;. $(pwd)/docker-compose.common.env;. $(pwd)/local-test.env; set +a; npm run test:acceptance:run_dir",
    "local:test:acceptance:run_app": "OVERLEAF_CONFIG=$(pwd)/test/acceptance/config/settings.test.${OVERLEAF_APP}.js npm run local:test:acceptance:run_dir -- $(pwd)/test/acceptance/src",
    "local:test:acceptance:run_module": "if [ ! -d $(pwd)/modules/${MODULE}/test/acceptance ]; then echo \"Module '${MODULE}' does not have acceptance tests\"; exit 0; fi; OVERLEAF_CONFIG=$(pwd)/modules/${MODULE}/test/acceptance/config/settings.test.js BASE_CONFIG=$(pwd)/test/acceptance/config/settings.test.${OVERLEAF_APP}.js npm run local:test:acceptance:run_dir -- $(pwd)/modules/${MODULE}/test/acceptance",
    "local:test:acceptance:run_modules": "OVERLEAF_CONFIG=$(pwd)/test/acceptance/config/settings.test.${OVERLEAF_APP}.js node $(pwd)/test/acceptance/getModuleTargets --name-only | xargs -n1 sh -c 'MODULE=$0 npm run local:test:acceptance:run_module || exit 255' $1",
    "local:test:acceptance:app:saas": "OVERLEAF_APP=saas npm run local:test:acceptance:run_app",
    "local:test:acceptance:app:server-pro": "OVERLEAF_APP=server-pro npm run local:test:acceptance:run_app",
    "local:test:acceptance:app:server-ce": "OVERLEAF_APP=server-ce npm run local:test:acceptance:run_app",
    "local:test:acceptance:app": "echo saas server-pro server-ce | xargs -n1 sh -c 'npm run local:test:acceptance:app:${0} || exit 255'",
    "local:test:acceptance:modules:saas": "OVERLEAF_APP=saas npm run local:test:acceptance:run_modules",
    "local:test:acceptance:modules:server-pro": "OVERLEAF_APP=server-pro npm run local:test:acceptance:run_modules",
    "local:test:acceptance:modules:server-ce": "OVERLEAF_APP=server-ce npm run local:test:acceptance:run_modules",
    "local:test:acceptance:modules": "echo saas server-ce server-pro | xargs -n1 sh -c 'npm run local:test:acceptance:modules:${0} || exit 255'",
    "local:test:acceptance": "npm run local:test:acceptance:app && npm run local:test:acceptance:modules",
    "local:test:unit": "npm run test:unit:all",
    "local:test:frontend": "npm run test:frontend",
    "local:test": "npm run local:test:unit && npm run local:test:frontend && npm run local:test:acceptance"
  },
  "browserslist": [
    "defaults and supports woff2",
    "last 1 year",
    "safari > 14"
  ],
  "dependencies": {
    "@contentful/rich-text-html-renderer": "^16.0.2",
    "@contentful/rich-text-types": "^16.0.2",
    "@google-cloud/bigquery": "^6.0.1",
    "@node-oauth/oauth2-server": "^5.1.0",
    "@node-saml/passport-saml": "^4.0.4",
    "@overleaf/access-token-encryptor": "*",
    "@overleaf/fetch-utils": "*",
    "@overleaf/logger": "*",
    "@overleaf/metrics": "*",
    "@overleaf/mongo-utils": "*",
    "@overleaf/o-error": "*",
    "@overleaf/object-persistor": "*",
    "@overleaf/promise-utils": "*",
    "@overleaf/redis-wrapper": "*",
    "@overleaf/settings": "*",
    "@phosphor-icons/react": "^2.1.7",
    "@slack/webhook": "^7.0.2",
    "@stripe/stripe-js": "^7.3.0",
    "@xmldom/xmldom": "^0.7.13",
    "accepts": "^1.3.7",
    "ajv": "^8.12.0",
    "archiver": "^5.3.0",
    "async": "^3.2.5",
    "base-x": "^4.0.1",
    "basic-auth": "^2.0.1",
    "bcrypt": "^5.0.0",
    "body-parser": "^1.20.3",
    "bowser": "^2.11.0",
    "bull": "^3.18.0",
    "bunyan": "^1.8.15",
    "cache-flow": "^1.9.0",
    "celebrate": "^15.0.3",
    "connect-redis": "^6.1.3",
    "content-disposition": "^0.5.0",
    "contentful": "^10.8.5",
    "cookie": "^0.2.3",
    "cookie-parser": "1.4.6",
    "crc-32": "^1.2.2",
    "csurf": "^1.11.0",
    "csv": "^6.2.5",
    "dateformat": "1.0.4-1.2.3",
    "east": "^2.0.2",
    "ejs": "^3.1.10",
    "email-addresses": "^5.0.0",
    "eventsource-parser": "^1.1.2",
    "express": "^4.21.2",
    "express-bearer-token": "^2.4.0",
    "express-http-proxy": "^1.6.0",
    "express-session": "^1.17.1",
    "globby": "^5.0.0",
    "helmet": "^6.0.1",
    "https-proxy-agent": "^7.0.6",
    "i18next": "^23.10.0",
    "i18next-fs-backend": "^2.3.1",
    "i18next-http-middleware": "^3.5.0",
    "joi": "^17.12.0",
    "jose": "^4.3.8",
    "json2csv": "^4.3.3",
    "jsonwebtoken": "^9.0.0",
    "lodash": "^4.17.19",
    "lru-cache": "^7.10.1",
    "marked": "^4.1.0",
    "method-override": "^2.3.3",
    "minimatch": "^7.4.2",
    "minimist": "^1.2.7",
    "mmmagic": "^0.5.3",
    "moment": "^2.29.4",
    "mongodb-legacy": "6.1.3",
    "mongoose": "8.9.5",
    "multer": "overleaf/multer#4dbceda355efc3fc8ac3cf5c66c3778c8a6fdb23",
    "nocache": "^2.1.0",
    "node-fetch": "^2.7.0",
    "nodemailer": "^6.7.0",
    "nodemailer-ses-transport": "^1.5.1",
    "on-headers": "^1.0.2",
    "otplib": "^12.0.1",
    "p-limit": "^2.3.0",
    "p-props": "4.0.0",
    "p-queue": "^8.1.0",
    "parse-data-url": "^2.0.0",
    "passport": "^0.6.0",
    "passport-google-oauth20": "^2.0.0",
    "passport-ldapauth": "^2.1.4",
    "passport-local": "^1.0.0",
    "passport-oauth2": "^1.5.0",
    "passport-orcid": "0.0.4",
    "pug": "^3.0.3",
    "pug-runtime": "^3.0.1",
    "rate-limiter-flexible": "^2.4.1",
    "recurly": "^4.0.0",
    "referer-parser": "github:overleaf/nodejs-referer-parser#8b8b103762d05b7be4cfa2f810e1d408be67d7bb",
    "request": "^2.88.2",
    "requestretry": "^7.1.0",
    "sanitize-html": "^2.8.1",
    "stripe": "^18.1.0",
    "tough-cookie": "^4.0.0",
    "tsscmp": "^1.0.6",
    "uid-safe": "^2.1.5",
    "utf-8-validate": "^5.0.2",
    "valid-data-url": "^2.0.0",
    "valid-url": "^1.0.9",
    "xml-crypto": "^2.1.6",
    "xml2js": "^0.6.2",
    "xregexp": "^4.3.0",
    "yauzl": "^2.10.0"
  },
  "devDependencies": {
    "@babel/cli": "^7.27.0",
    "@babel/core": "^7.26.10",
    "@babel/preset-env": "^7.26.9",
    "@babel/preset-react": "^7.26.3",
    "@babel/preset-typescript": "^7.27.0",
    "@babel/register": "^7.25.9",
    "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#6445cd056671c98d12d1c597ba705e11327ec4c5",
    "@codemirror/commands": "^6.8.1",
    "@codemirror/lang-markdown": "^6.3.2",
    "@codemirror/language": "^6.11.0",
    "@codemirror/lint": "^6.8.5",
    "@codemirror/search": "github:overleaf/codemirror-search#04380a528c339cd4b78fb10b3ef017f657ec17bd",
    "@codemirror/state": "^6.5.2",
    "@codemirror/view": "^6.36.8",
    "@juggle/resize-observer": "^3.3.1",
    "@lezer/common": "^1.2.3",
    "@lezer/generator": "^1.7.3",
    "@lezer/highlight": "^1.2.1",
    "@lezer/lr": "^1.4.2",
    "@lezer/markdown": "^1.4.3",
    "@overleaf/codemirror-tree-view": "^0.1.3",
    "@overleaf/dictionaries": "https://github.com/overleaf/dictionaries/archive/refs/tags/v0.0.3.tar.gz",
    "@overleaf/ranges-tracker": "*",
    "@overleaf/stream-utils": "*",
    "@pmmmwh/react-refresh-webpack-plugin": "^0.5.16",
    "@pollyjs/adapter-node-http": "^6.0.6",
    "@pollyjs/core": "^6.0.6",
    "@pollyjs/persister-fs": "^6.0.6",
    "@prettier/plugin-pug": "^3.4.0",
    "@replit/codemirror-emacs": "overleaf/codemirror-emacs#4394c03858f27053f8768258e9493866e06e938e",
    "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#78264032eb286bc47871569ae87bff5ca1c6c161",
    "@replit/codemirror-vim": "overleaf/codemirror-vim#1bef138382d948018f3f9b8a4d7a70ab61774e4b",
    "@sentry/browser": "7.46.0",
    "@storybook/addon-a11y": "^8.6.12",
    "@storybook/addon-essentials": "^8.6.12",
    "@storybook/addon-interactions": "^8.6.12",
    "@storybook/addon-links": "^8.6.12",
    "@storybook/addon-styling-webpack": "^1.0.1",
    "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
    "@storybook/cli": "^8.6.12",
    "@storybook/react": "^8.6.12",
    "@storybook/react-webpack5": "^8.6.12",
    "@storybook/theming": "^8.6.12",
    "@testing-library/cypress": "^10.0.1",
    "@testing-library/dom": "^10.4.0",
    "@testing-library/react": "^16.3.0",
    "@testing-library/user-event": "^14.4.3",
    "@types/bootstrap": "^5.2.10",
    "@types/bootstrap-5": "npm:@types/bootstrap@^5.2.10",
    "@types/chai": "^4.3.0",
    "@types/dateformat": "^5.0.2",
    "@types/diff": "^5.0.9",
    "@types/events": "^3.0.0",
    "@types/express": "^4.17.13",
    "@types/mocha": "^9.1.0",
    "@types/mocha-each": "^2.0.0",
    "@types/react": "^18.3.20",
    "@types/react-color": "^3.0.13",
    "@types/react-dom": "^18.3.6",
    "@types/react-google-recaptcha": "^2.1.9",
    "@types/react-linkify": "^1.0.4",
    "@types/recurly__recurly-js": "^4.22.0",
    "@types/sinon-chai": "^3.2.8",
    "@types/uuid": "^9.0.8",
    "@uppy/core": "^3.8.0",
    "@uppy/dashboard": "^3.7.1",
    "@uppy/drag-drop": "^3.0.3",
    "@uppy/file-input": "^3.0.4",
    "@uppy/progress-bar": "^3.0.4",
    "@uppy/react": "^3.2.1",
    "@uppy/utils": "^5.7.0",
    "@uppy/xhr-upload": "^3.6.0",
    "@vitest/eslint-plugin": "1.1.44",
    "5to6-codemod": "^1.8.0",
    "abort-controller": "^3.0.0",
    "acorn": "^7.1.1",
    "acorn-walk": "^7.1.1",
    "algoliasearch": "^3.35.1",
    "autoprefixer": "^10.4.16",
    "babel-loader": "^9.1.3",
    "babel-plugin-macros": "^3.1.0",
    "babel-plugin-module-resolver": "^5.0.2",
    "backbone": "^1.6.0",
    "bootstrap": "^3.4.1",
    "bootstrap-5": "npm:bootstrap@^5.3.6",
    "c8": "^7.2.0",
    "chai": "^4.3.6",
    "chai-as-promised": "^7.1.1",
    "chai-exclude": "^2.0.3",
    "chart.js": "^4.0.1",
    "chartjs-adapter-moment": "^1.0.1",
    "chartjs-plugin-datalabels": "^2.2.0",
    "cheerio": "^1.0.0-rc.3",
    "classnames": "^2.2.6",
    "confusing-browser-globals": "^1.0.11",
    "cookie-signature": "^1.2.1",
    "copy-webpack-plugin": "^11.0.0",
    "core-js": "^3.41.0",
    "css-loader": "^6.8.1",
    "css-minimizer-webpack-plugin": "^5.0.1",
    "cypress": "13.13.2",
    "cypress-plugin-tab": "^1.0.5",
    "d3": "^3.5.16",
    "daterangepicker": "2.1.27",
    "diff": "^5.1.0",
    "dompurify": "^3.2.4",
    "downshift": "^9.0.9",
    "es6-promise": "^4.2.8",
    "escodegen": "^2.0.0",
    "eslint-config-standard-jsx": "^11.0.0",
    "eslint-plugin-jsx-a11y": "^6.7.1",
    "eslint-plugin-react": "^7.32.2",
    "eslint-plugin-react-hooks": "^4.6.0",
    "eslint-plugin-testing-library": "^7.1.1",
    "eslint-plugin-unicorn": "^56.0.0",
    "events": "^3.3.0",
    "fake-indexeddb": "^6.0.0",
    "fetch-mock": "^12.5.2",
    "formik": "^2.2.9",
    "fuse.js": "^3.0.0",
    "glob": "^7.1.6",
    "globals": "^16.2.0",
    "handlebars": "^4.7.8",
    "handlebars-loader": "^1.7.3",
    "html-webpack-plugin": "^5.5.3",
    "i18next-scanner": "^4.4.0",
    "jquery": "^3.7.1",
    "jscodeshift": "^17.0.0",
    "jsdom": "^19.0.0",
    "jsdom-global": "^3.0.2",
    "less": "^3.13.1",
    "less-loader": "^11.1.3",
    "match-sorter": "^6.2.0",
    "mathjax": "^3.2.2",
    "mensch": "^0.3.4",
    "micromark": "^4.0.0",
    "mini-css-extract-plugin": "^2.7.6",
    "mocha": "^11.1.0",
    "mocha-each": "^2.0.1",
    "mock-fs": "^5.1.2",
    "nock": "^13.5.6",
    "nvd3": "^1.8.6",
    "overleaf-editor-core": "*",
    "pdfjs-dist": "5.1.91",
    "pirates": "^4.0.1",
    "postcss": "^8.4.31",
    "postcss-loader": "^7.3.3",
    "prop-types": "^15.7.2",
    "qrcode": "^1.4.4",
    "react": "^18.3.1",
    "react-bootstrap": "^2.10.10",
    "react-chartjs-2": "^5.0.1",
    "react-color": "^2.19.3",
    "react-dnd": "^16.0.1",
    "react-dnd-html5-backend": "^16.0.1",
    "react-dom": "^18.3.1",
    "react-error-boundary": "^5.0.0",
    "react-google-recaptcha": "^3.1.0",
    "react-i18next": "^13.3.1",
    "react-linkify": "^1.0.0-alpha",
    "react-refresh": "^0.14.0",
    "react-resizable-panels": "^2.1.1",
    "resolve-url-loader": "^5.0.0",
    "samlp": "^7.0.2",
    "sandboxed-module": "overleaf/node-sandboxed-module#cafa2d60f17ce75cc023e6f296eb8de79d92d35d",
    "sass": "^1.77.1",
    "sass-loader": "^14.2.1",
    "scroll-into-view-if-needed": "^2.2.25",
    "sinon": "^7.5.0",
    "sinon-chai": "^3.7.0",
    "sinon-mongoose": "^2.3.0",
    "storybook": "^8.6.12",
    "stylelint-config-standard-scss": "^13.1.0",
    "terser-webpack-plugin": "^5.3.9",
    "thread-loader": "^4.0.2",
    "timekeeper": "^2.2.0",
    "to-string-loader": "^1.2.0",
    "tty-browserify": "^0.0.1",
    "typescript": "^5.8.3",
    "uuid": "^9.0.1",
    "vitest": "^3.1.2",
    "w3c-keyname": "^2.2.8",
    "webpack": "^5.98.0",
    "webpack-assets-manifest": "^5.2.1",
    "webpack-cli": "^5.1.4",
    "webpack-dev-server": "^5.2.1",
    "webpack-merge": "^5.10.0",
    "yup": "^0.32.11"
  },
  "overrides": {
    "ejs": "$ejs"
  }
}
