Skip to content

Commit

Permalink
chore: bump @popperjs/core from 2.2.2 to 2.4.4
Browse files Browse the repository at this point in the history
Bumps [@popperjs/core](https://github.com/popperjs/popper-core) from 2.2.2 to 2.4.4.
- [Release notes](https://github.com/popperjs/popper-core/releases)
- [Commits](floating-ui/floating-ui@v2.2.2...v2.4.4)

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and Westbrook committed Aug 11, 2020
1 parent 4d0b2ef commit 697e19e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 34 deletions.
31 changes: 4 additions & 27 deletions packages/overlay/src/apply-max-size.ts
Expand Up @@ -10,39 +10,16 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { ModifierArguments, Modifier } from '@popperjs/core/lib/types';

const appliedSizeDefaults = new WeakMap();

export const applyMaxSize = {
export const applyMaxSize: Modifier<'applyMaxSize', Record<string, unknown>> = {
name: 'applyMaxSize',
enabled: true,
phase: 'beforeWrite',
requires: ['maxSize'],
fn({
state,
}: {
state: {
modifiersData: {
maxSize: {
height: number;
};
};
elements: {
popper: HTMLElement;
};
rects: {
popper: {
height: number;
};
};
styles: {
popper: {
maxHeight: string;
height: string;
overflow: string;
};
};
};
}): void {
fn({ state }: ModifierArguments<Record<string, unknown>>): void {
const { height: maxHeight } = state.modifiersData.maxSize;
if (!appliedSizeDefaults.has(state.elements.popper)) {
appliedSizeDefaults.set(
Expand Down
5 changes: 4 additions & 1 deletion packages/overlay/src/popper-arrow-rotate.ts
Expand Up @@ -56,7 +56,10 @@ function computeArrowRotateStylesFn(
return;
}

export const computeArrowRotateStyles: Modifier<Record<string, unknown>> = {
export const computeArrowRotateStyles: Modifier<
'computeArrowRotateStyles',
Record<string, unknown>
> = {
name: 'computeArrowRotateStyles',
enabled: true,
phase: 'beforeWrite',
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Expand Up @@ -3203,9 +3203,9 @@
parse5 "^5.1.1"

"@popperjs/core@^2.2.2":
version "2.2.2"
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.2.2.tgz#2e254f5eb31f3abc35470060fb7116937d837739"
integrity sha512-LaSssaO8QHSAnRI4ZZB+jTD/hmndqOzwabDwKuySS1ME0pj+La6pV77i5CIQ61kVtz3pE13DhmkaYFGtrrCMeg==
version "2.4.4"
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.4.4.tgz#11d5db19bd178936ec89cd84519c4de439574398"
integrity sha512-1oO6+dN5kdIA3sKPZhRGJTfGVP4SWV6KqlMOwry4J3HfyD68sl/3KmG7DeYUzvN+RbhXDnv/D8vNNB8168tAMg==

"@rollup/plugin-node-resolve@^7.1.1":
version "7.1.3"
Expand Down Expand Up @@ -7778,9 +7778,9 @@ css-tree@1.0.0-alpha.39:
source-map "^0.6.1"

css-unit-converter@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/css-unit-converter/-/css-unit-converter-1.1.1.tgz#d9b9281adcfd8ced935bdbaba83786897f64e996"
integrity sha1-2bkoGtz9jO2TW9urqDeGiX9k6ZY=
version "1.1.2"
resolved "https://registry.yarnpkg.com/css-unit-converter/-/css-unit-converter-1.1.2.tgz#4c77f5a1954e6dbff60695ecb214e3270436ab21"
integrity sha512-IiJwMC8rdZE0+xiEZHeru6YoONC4rfPMqGm2W85jMIbkFvv5nFTwJVFHam2eFrN6txmoUYFAFXiv8ICVeTO0MA==

css-what@2.1:
version "2.1.3"
Expand Down

0 comments on commit 697e19e

Please sign in to comment.