Merge pull request #16693 from Snuffleupagus/update-packages

Update packages and translations
This commit is contained in:
Jonas Jenwald 2023-07-16 08:21:13 +02:00 committed by GitHub
commit 22c0bf4ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1022 additions and 828 deletions

View File

@ -191,6 +191,8 @@ editor_free_text2.title = Testo
editor_free_text2_label = Testo editor_free_text2_label = Testo
editor_ink2.title = Disegno editor_ink2.title = Disegno
editor_ink2_label = Disegno editor_ink2_label = Disegno
editor_stamp.title = Aggiungi unimmagine
editor_stamp_label = Aggiungi unimmagine
free_text2_default_content = Inizia a digitare… free_text2_default_content = Inizia a digitare…

1763
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,20 +1,20 @@
{ {
"name": "pdf.js", "name": "pdf.js",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.22.5", "@babel/core": "^7.22.9",
"@babel/plugin-transform-modules-commonjs": "^7.22.5", "@babel/plugin-transform-modules-commonjs": "^7.22.5",
"@babel/preset-env": "^7.22.5", "@babel/preset-env": "^7.22.9",
"@babel/runtime": "^7.22.5", "@babel/runtime": "^7.22.6",
"@javascript-obfuscator/escodegen": "2.3.0", "@javascript-obfuscator/escodegen": "2.3.0",
"acorn": "^8.9.0", "acorn": "^8.10.0",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"babel-loader": "^9.1.2", "babel-loader": "^9.1.3",
"caniuse-lite": "^1.0.30001507", "caniuse-lite": "^1.0.30001516",
"canvas": "^2.11.2", "canvas": "^2.11.2",
"core-js": "^3.31.0", "core-js": "^3.31.1",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"es-module-shims": "1.4.7", "es-module-shims": "1.4.7",
"eslint": "^8.43.0", "eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^8.8.0",
"eslint-plugin-fetch-options": "^0.0.5", "eslint-plugin-fetch-options": "^0.0.5",
"eslint-plugin-html": "^7.1.0", "eslint-plugin-html": "^7.1.0",
@ -22,7 +22,7 @@
"eslint-plugin-json": "^3.1.0", "eslint-plugin-json": "^3.1.0",
"eslint-plugin-mozilla": "^3.1.0", "eslint-plugin-mozilla": "^3.1.0",
"eslint-plugin-no-unsanitized": "^4.0.2", "eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-sort-exports": "^0.8.0", "eslint-plugin-sort-exports": "^0.8.0",
"eslint-plugin-unicorn": "^47.0.0", "eslint-plugin-unicorn": "^47.0.0",
"globals": "^13.20.0", "globals": "^13.20.0",
@ -39,22 +39,22 @@
"needle": "^3.2.0", "needle": "^3.2.0",
"path2d-polyfill": "^2.0.1", "path2d-polyfill": "^2.0.1",
"pngjs": "^7.0.0", "pngjs": "^7.0.0",
"postcss": "^8.4.24", "postcss": "^8.4.26",
"postcss-dir-pseudo-class": "^7.0.2", "postcss-dir-pseudo-class": "^8.0.0",
"prettier": "^2.8.8", "prettier": "^3.0.0",
"puppeteer": "^20.7.3", "puppeteer": "^20.8.2",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"streamqueue": "^1.1.2", "streamqueue": "^1.1.2",
"stylelint": "^15.9.0", "stylelint": "15.10.0",
"stylelint-prettier": "^3.0.0", "stylelint-prettier": "^4.0.0",
"terser": "^5.18.1", "terser": "^5.19.0",
"through2": "^4.0.2", "through2": "^4.0.2",
"ttest": "^4.0.0", "ttest": "^4.0.0",
"typescript": "^5.1.3", "typescript": "^5.1.6",
"typogr": "^0.6.8", "typogr": "^0.6.8",
"vinyl": "^3.0.0", "vinyl": "^3.0.0",
"vinyl-fs": "^3.0.3", "vinyl-fs": "^3.0.3",
"webpack": "^5.88.0", "webpack": "^5.88.1",
"webpack-stream": "^7.0.0", "webpack-stream": "^7.0.0",
"wintersmith": "^2.5.0", "wintersmith": "^2.5.0",
"yargs": "^17.7.2" "yargs": "^17.7.2"

View File

@ -755,13 +755,13 @@ const getGlyphMapForStandardFonts = getLookupTableFactory(function (t) {
// The glyph map for ArialBlack differs slightly from the glyph map used for // The glyph map for ArialBlack differs slightly from the glyph map used for
// other well-known standard fonts. Hence we use this (incomplete) CID to GID // other well-known standard fonts. Hence we use this (incomplete) CID to GID
// mapping to adjust the glyph map for non-embedded ArialBlack fonts. // mapping to adjust the glyph map for non-embedded ArialBlack fonts.
const getSupplementalGlyphMapForArialBlack = getLookupTableFactory(function ( const getSupplementalGlyphMapForArialBlack = getLookupTableFactory(
t function (t) {
) { t[227] = 322;
t[227] = 322; t[264] = 261;
t[264] = 261; t[291] = 346;
t[291] = 346; }
}); );
// The glyph map for Calibri (a Windows font) differs from the glyph map used // The glyph map for Calibri (a Windows font) differs from the glyph map used
// in the standard fonts. Hence we use this (incomplete) CID to GID mapping to // in the standard fonts. Hence we use this (incomplete) CID to GID mapping to

View File

@ -217,9 +217,12 @@ describe("FreeText Editor", () => {
await page.waitForTimeout(10); await page.waitForTimeout(10);
} }
let length = await page.evaluate(sel => { let length = await page.evaluate(
return document.querySelectorAll(sel).length; sel => {
}, `${getEditorSelector(5)}, ${getEditorSelector(6)}`); return document.querySelectorAll(sel).length;
},
`${getEditorSelector(5)}, ${getEditorSelector(6)}`
);
expect(length).withContext(`In ${browserName}`).toEqual(2); expect(length).withContext(`In ${browserName}`).toEqual(2);
for (let i = 0; i < 2; i++) { for (let i = 0; i < 2; i++) {
@ -229,9 +232,12 @@ describe("FreeText Editor", () => {
await page.waitForTimeout(10); await page.waitForTimeout(10);
} }
length = await page.evaluate(sel => { length = await page.evaluate(
return document.querySelectorAll(sel).length; sel => {
}, `${getEditorSelector(5)}, ${getEditorSelector(6)}`); return document.querySelectorAll(sel).length;
},
`${getEditorSelector(5)}, ${getEditorSelector(6)}`
);
expect(length).withContext(`In ${browserName}`).toEqual(0); expect(length).withContext(`In ${browserName}`).toEqual(0);
} }
}); });

View File

@ -2427,13 +2427,13 @@ describe("api", function () {
docBaseUrl: "http://www.example.com/test/pdfs/qwerty.pdf", docBaseUrl: "http://www.example.com/test/pdfs/qwerty.pdf",
}) })
); );
const docBaseUrlPromise = docBaseUrlLoadingTask.promise.then(function ( const docBaseUrlPromise = docBaseUrlLoadingTask.promise.then(
pdfDoc function (pdfDoc) {
) { return pdfDoc.getPage(1).then(function (pdfPage) {
return pdfDoc.getPage(1).then(function (pdfPage) { return pdfPage.getAnnotations();
return pdfPage.getAnnotations(); });
}); }
}); );
const invalidDocBaseUrlLoadingTask = getDocument( const invalidDocBaseUrlLoadingTask = getDocument(
buildGetDocumentParams(filename, { buildGetDocumentParams(filename, {

View File

@ -586,7 +586,8 @@ body {
.doorHanger, .doorHanger,
.doorHangerRight { .doorHangerRight {
border-radius: 2px; border-radius: 2px;
box-shadow: 0 1px 5px var(--doorhanger-border-color), box-shadow:
0 1px 5px var(--doorhanger-border-color),
0 0 0 1px var(--doorhanger-border-color); 0 0 0 1px var(--doorhanger-border-color);
border: var(--doorhanger-border-color-whcm); border: var(--doorhanger-border-color-whcm);
} }