Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump @popperjs/core from 2.2.2 to 2.4.4 #821

Merged
merged 1 commit into from Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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