DEV: updates popperjs 2.0.6 -> 2.9.3 (#14163)

This commit is contained in:
Joffrey JAFFEUX 2021-08-26 16:37:04 +02:00 committed by GitHub
parent a4684c151b
commit f66217c0b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 699 additions and 494 deletions

View File

@ -20,7 +20,7 @@
"@ember/optional-features": "^1.1.0", "@ember/optional-features": "^1.1.0",
"@ember/test-helpers": "^2.2.0", "@ember/test-helpers": "^2.2.0",
"@glimmer/component": "^1.0.0", "@glimmer/component": "^1.0.0",
"@popperjs/core": "^2.4.4", "@popperjs/core": "2.9.3",
"@uppy/aws-s3": "^1.7.12", "@uppy/aws-s3": "^1.7.12",
"@uppy/aws-s3-multipart": "^1.8.18", "@uppy/aws-s3-multipart": "^1.8.18",
"@uppy/core": "^1.19.2", "@uppy/core": "^1.19.2",

View File

@ -925,7 +925,10 @@ export default Component.extend(
phase: "beforeWrite", phase: "beforeWrite",
requires: ["computeStyles"], requires: ["computeStyles"],
fn: ({ state }) => { fn: ({ state }) => {
state.styles.popper.minWidth = `${state.rects.reference.width}px`; state.styles.popper.minWidth = `${Math.max(
state.rects.reference.width,
220
)}px`;
if (state.rects.reference.width >= 300) { if (state.rects.reference.width >= 300) {
state.styles.popper.maxWidth = `${state.rects.reference.width}px`; state.styles.popper.maxWidth = `${state.rects.reference.width}px`;
@ -934,7 +937,10 @@ export default Component.extend(
} }
}, },
effect: ({ state }) => { effect: ({ state }) => {
state.elements.popper.style.minWidth = `${state.elements.reference.offsetWidth}px`; state.elements.popper.style.minWidth = `${Math.max(
state.elements.reference.offsetWidth,
220
)}px`;
if (state.elements.reference.offsetWidth >= 300) { if (state.elements.reference.offsetWidth >= 300) {
state.elements.popper.style.maxWidth = `${state.elements.reference.offsetWidth}px`; state.elements.popper.style.maxWidth = `${state.elements.reference.offsetWidth}px`;

View File

@ -1215,10 +1215,10 @@
"@nodelib/fs.scandir" "2.1.4" "@nodelib/fs.scandir" "2.1.4"
fastq "^1.6.0" fastq "^1.6.0"
"@popperjs/core@^2.4.4": "@popperjs/core@2.9.3":
version "2.9.2" version "2.9.3"
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.9.2.tgz#adea7b6953cbb34651766b0548468e743c6a2353" resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.9.3.tgz#8b68da1ebd7fc603999cf6ebee34a4899a14b88e"
integrity sha512-VZMYa7+fXHdwIq1TDhSXoVmSPEGM/aa+6Aiq3nVVJ9bXr24zScr+NlKFKC3iPljA7ho/GAZr+d2jOf5GIRC30Q== integrity sha512-xDu17cEfh7Kid/d95kB6tZsLOmSWKCZKtprnhVepjsSaCij+lM3mItSJDuuHDMbCWTh8Ejmebwb+KONcCJ0eXQ==
"@simple-dom/interface@^1.4.0": "@simple-dom/interface@^1.4.0":
version "1.4.0" version "1.4.0"

View File

@ -9,7 +9,7 @@
"@fortawesome/fontawesome-free": "5.11.2", "@fortawesome/fontawesome-free": "5.11.2",
"@highlightjs/cdn-assets": "^10.6.0", "@highlightjs/cdn-assets": "^10.6.0",
"@json-editor/json-editor": "^2.5.2", "@json-editor/json-editor": "^2.5.2",
"@popperjs/core": "v2.0.6", "@popperjs/core": "v2.9.3",
"@uppy/aws-s3": "^1.7.12", "@uppy/aws-s3": "^1.7.12",
"@uppy/aws-s3-multipart": "^1.8.18", "@uppy/aws-s3-multipart": "^1.8.18",
"@uppy/core": "^1.19.2", "@uppy/core": "^1.19.2",

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -332,10 +332,10 @@
"@nodelib/fs.scandir" "2.1.3" "@nodelib/fs.scandir" "2.1.3"
fastq "^1.6.0" fastq "^1.6.0"
"@popperjs/core@v2.0.6": "@popperjs/core@v2.9.3":
version "2.0.6" version "2.9.3"
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.0.6.tgz#5a39ac118811ca844155b0ad5190b8c24f35e533" resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.9.3.tgz#8b68da1ebd7fc603999cf6ebee34a4899a14b88e"
integrity sha512-zj7Gw8QC4jmR92eKUvtrZUEpl2ypRbq+qlE4pwf9n2hnUO9BOAcWUs4/Ht+gNIbFt98xtqhLvccdCfD469MzpQ== integrity sha512-xDu17cEfh7Kid/d95kB6tZsLOmSWKCZKtprnhVepjsSaCij+lM3mItSJDuuHDMbCWTh8Ejmebwb+KONcCJ0eXQ==
"@simple-dom/interface@^1.4.0": "@simple-dom/interface@^1.4.0":
version "1.4.0" version "1.4.0"