mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
eaf1b86785
* Add focus trap util * Add focus trap to Modals Fixes #2663 * Split tab press into `onTab` handler * Remove deprecated code * Use requestAnimationFrame instead of setTimeout * Reduce code duplication * Implement focus trap in nav drawer Fixes #2665 * Hide drawer when window is resized to be bigger Fixes issue where focus trap would remain on the drawer when it is just the app header, if the drawer was opened then the window was made larger. * Simplify conditional function calls * Fix modal focus trap * Remove debug code * Simplify resize handler conditional statements * Add info about reasoning of resize handler * Prefer native JS methods over jQuery * Update conditional function call to handle `undefined` * Expose screen sizes as CSS custom properties * Use `window.matchMedia` rather than resize handler * Fix spelling error Co-authored-by: David Sevilla Martin <me@datitisev.me> * Remove breaking change Co-authored-by: David Sevilla Martin <me@datitisev.me>
52 lines
1.6 KiB
JSON
52 lines
1.6 KiB
JSON
{
|
|
"private": true,
|
|
"name": "@flarum/core",
|
|
"prettier": "@flarum/prettier-config",
|
|
"dependencies": {
|
|
"@askvortsov/rich-icu-message-formatter": "^0.2.1",
|
|
"@ultraq/icu-message-formatter": "^0.12.0",
|
|
"bootstrap": "^3.4.1",
|
|
"clsx": "^1.1.1",
|
|
"color-thief-browser": "^2.0.2",
|
|
"dayjs": "^1.10.7",
|
|
"focus-trap": "^6.7.1",
|
|
"jquery": "^3.6.0",
|
|
"jquery.hotkeys": "^0.1.0",
|
|
"mithril": "^2.0.4",
|
|
"nanoid": "^3.1.30",
|
|
"punycode": "^2.1.1",
|
|
"textarea-caret": "^3.1.0",
|
|
"throttle-debounce": "^3.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@flarum/prettier-config": "^1.0.0",
|
|
"@types/jquery": "^3.5.8",
|
|
"@types/mithril": "^2.0.8",
|
|
"@types/punycode": "^2.1.0",
|
|
"@types/textarea-caret": "^3.0.1",
|
|
"bundlewatch": "^0.3.2",
|
|
"cross-env": "^7.0.3",
|
|
"expose-loader": "^3.1.0",
|
|
"flarum-tsconfig": "^1.0.2",
|
|
"flarum-webpack-config": "^2.0.0",
|
|
"prettier": "^2.4.1",
|
|
"typescript": "^4.4.4",
|
|
"typescript-coverage-report": "^0.6.1",
|
|
"webpack": "^5.61.0",
|
|
"webpack-cli": "^4.9.1",
|
|
"webpack-merge": "^5.8.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "webpack --mode development --watch",
|
|
"build": "webpack --mode production",
|
|
"analyze": "cross-env ANALYZER=true npm run build",
|
|
"format": "prettier --write src",
|
|
"format-check": "prettier --check src",
|
|
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
|
|
"build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc",
|
|
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
|
|
"check-typings-coverage": "typescript-coverage-report"
|
|
},
|
|
"packageManager": "yarn@3.1.0"
|
|
}
|