[Snyk] Upgrade @primer/components from 28.0.4 to 28.5.0 #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @primer/components from 28.0.4 to 28.5.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @primer/components
Minor Changes
#1398
e4dac575
Thanks @ jfuchs! - Default portal containers created by primer are absolutely positioned at 0,0#1385
5470b61b
Thanks @ jfuchs! - Make top and left position explicit props of Overlay handled separately from other styles#1388
83b888f0
Thanks @ jfuchs! - Overlay takes a portalContainerName prop. This allows overlays with an anchor inside a scrolling container to track with their anchor, so long as the specified portal is also inside that scrolling container.Minor Changes
b31f0853
Thanks @ jfuchs! - AnchoredOverlay positions are set directly on style propertyPatch Changes
#1372
23be0ed7
Thanks @ jfuchs! - Extends DropdownMenu to allow anchorRef, open, and onOpenChange props.#1386
2ea30b43
Thanks @ colebemis! - Bump @ primer/primitives dependency to 4.6.4#1387
6b4d52da
Thanks @ jfuchs! - Guard against MediaQueryList.addEventListener calls where unavailable and possibly fall back to .addListenerPatch Changes
36f156a0
Thanks @ dgreif! - AllowanchorRef
to be passed intoSelectPanel
if you want to use an external anchorPatch Changes
3cc7be77
Thanks @ colebemis! - Replace octoface icon with spinner in SelectMenu componentMinor Changes
#1315
85d0202b
Thanks @ VanAnderson! -Box
now accepts all styled system props.#1316
4c063317
Thanks @ VanAnderson! - The following components have been deprecated in favor of theBox
component:Flex
<Box display="flex">
Grid
<Box display="grid">
Position
<Box>
Absolute
<Box position="absolute">
Fixed
<Box position="fixed">
Relative
<Box position="relative">
Sticky
<Box position="sticky">
BorderBox
<Box borderWidth="1px" borderStyle="solid" borderColor="border.primary" borderRadius={2}>
There is a codemod available to upgrade these components:
TypeScript example:
npx jscodeshift -t node_modules/@ primer/components/codemods/deprecateUtilityComponents.js --parser=tsx path/to/workspace/src/*.tsx
Babel example:
npx jscodeshift -t node_modules/@ primer/components/codemods/deprecateUtilityComponents.js --parser=babel path/to/workspace/src/*.tsx
#1336
489a718b
Thanks @ VanAnderson! - System props are deprecated in all components exceptBox
. Move all system props into thesx
prop instead. Example:There is a codemod available to migrate from system props to the
sx
prop:TypeScript example:
npx jscodeshift -t node_modules/@ primer/components/codemods/removeSystemProps.js --parser=tsx path/to/workspace/src/*.tsx
Babel example:
npx jscodeshift -t node_modules/@ primer/components/codemods/removeSystemProps.js --parser=babel path/to/workspace/src/*.tsx
Patch Changes
#1332
ec11d7b8
Thanks @ mattcosta7! - Side effects are properly declared in package.json#1308
a8f3ca6d
Thanks @ dgreif! - Focus zones will now update active-descendant onmousemove
over focusable elements. ActionList has been updated to handle direct (key press) vs indirect (mousemove
, DOM change, etc.) changes to active-descendant, and will use a distinct background color for the directly activated items.Patch Changes
#1311
6f0535df
Thanks @ lukewar! - Expose 'textInputProps' from the 'SelectPanel'#1309
dc17a49e
Thanks @ colebemis! - Include all shadow variables in theme object#1251
528e9a41
Thanks @ VanAnderson! - CalluseOnOutsideClick
handlers in reverse order that they are registered, and allow propagation to stop if default is prevented or an non-outside click is detected.#1312
76a38432
Thanks @ smockle! - Ensure clicking anAnchoredOverlay
’s trigger allows it to close without immediately reopening.Patch Changes
#1293
1148a718
Thanks @ smockle! - Restore "fix: Don’t focus first 'Item' of 'DropdownMenu' and 'SelectMenu' on open" by deferring the removal of a temporarytabIndex
until focus moves within the container.#1279
bb38754f
Thanks @ VanAnderson! - Update overlay shadows#1297
5fb3683d
Thanks @ VanAnderson! - Bump @ primer/primitives to 4.4.0#1288
15207119
Thanks @ dgreif! - Focus zones with anactiveDescendantControl
will now activate the first descendant as soon as the control element is focused, rather than waiting for an up/down arrow press. Descendants stay active until the control element is blurred. This is a breaking change touseFocusZone
, but this behavior is still considered to be inalpha
.#1292
4b643818
Thanks @ dgreif! - Bump dependencies#1279
bb38754f
Thanks @ VanAnderson! - Update TextInput border colorCommit messages
Package name: @primer/components
pull_request_target
event github/docs#1354)Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs