pdf.js/package.json
Jonas Jenwald c99d558646 Replace dir-dependent margin/margin-left/margin-right with logical properties
*Please note:* This is another step in what will, time permitting, become a series of patches to simplify/modernize the viewer CSS.

Rather than having to manually specify ltr/rtl-specific margin-values in the CSS, we can use logical margin instead (and similar for some related left/right occurrences).
These logical properties depend on, among other things, the direction of the HTML document which we *always* specify in the viewer.

Given that most of these logical CSS properties are fairly new, and that cross-browser support is thus somewhat limited (see below), we need to use a couple of PostCSS plugins (see below) in order to support this in the GENERIC viewer.

 - https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline#browser_compatibility
 - https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-start#browser_compatibility
 - https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-end#browser_compatibility
 - https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-start#browser_compatibility
 - https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-end#browser_compatibility

---

 - https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical
 - https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-dir-pseudo-class
2022-03-19 13:35:24 +01:00

77 lines
2.2 KiB
JSON

{
"name": "pdf.js",
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/runtime": "^7.17.2",
"@javascript-obfuscator/escodegen": "2.3.0",
"acorn": "^8.7.0",
"autoprefixer": "^10.4.2",
"babel-loader": "^8.2.3",
"caniuse-lite": "^1.0.30001313",
"canvas": "^2.9.0",
"core-js": "^3.21.1",
"cross-env": "^7.0.3",
"dommatrix": "^0.0.24",
"es-module-shims": "^1.4.7",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-fetch-options": "^0.0.5",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-mozilla": "^2.11.1",
"eslint-plugin-no-unsanitized": "^4.0.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-sort-exports": "^0.6.0",
"eslint-plugin-unicorn": "^41.0.0",
"globals": "^13.12.1",
"gulp": "^4.0.2",
"gulp-postcss": "^9.0.1",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.1.3",
"gulp-zip": "^5.1.0",
"jasmine": "^4.0.2",
"jsdoc": "^3.6.10",
"jstransformer-markdown-it": "^2.1.0",
"merge-stream": "^2.0.0",
"mkdirp": "^1.0.4",
"needle": "^3.0.0",
"postcss": "^8.4.7",
"postcss-calc": "^8.2.4",
"postcss-dir-pseudo-class": "^6.0.4",
"postcss-logical": "^5.0.4",
"prettier": "^2.5.1",
"puppeteer": "^13.4.1",
"rimraf": "^3.0.2",
"streamqueue": "^1.1.2",
"stylelint": "^14.5.3",
"stylelint-config-prettier": "^9.0.3",
"stylelint-prettier": "^2.0.0",
"systemjs": "^0.21.6",
"systemjs-plugin-babel": "^0.0.25",
"terser": "^5.12.0",
"through2": "^4.0.2",
"ttest": "^3.0.0",
"typescript": "^4.6.2",
"typogr": "^0.6.8",
"vinyl": "^2.2.1",
"vinyl-fs": "^3.0.3",
"web-streams-polyfill": "^3.2.0",
"webpack": "^5.70.0",
"webpack-stream": "^7.0.0",
"wintersmith": "^2.5.0",
"yargs": "^17.3.1"
},
"scripts": {
"postinstall": "cross-env PUPPETEER_PRODUCT=firefox node node_modules/puppeteer/install.js"
},
"repository": {
"type": "git",
"url": "git://github.com/mozilla/pdf.js.git"
},
"license": "Apache-2.0"
}