[Snyk] Upgrade semantic-ui from 2.2.6 to 2.5.0 #2
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.
This PR was automatically created by Snyk using the credentials of a real user.
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade semantic-ui from 2.2.6 to 2.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.
The recommended version is 16 versions ahead of your current version.
The recommended version was released on 2 years ago.
Issues fixed by the recommended upgrade:
SNYK-JS-LODASH-450202
SNYK-JS-LODASH-608086
SNYK-JS-LODASH-6139239
SNYK-JS-LODASH-73638
SNYK-JS-AJV-584908
SNYK-JS-LODASH-1040724
SNYK-JS-LODASH-450202
SNYK-JS-LODASH-608086
SNYK-JS-MINIMATCH-1019388
SNYK-JS-LODASH-6139239
npm:minimatch:20160620
SNYK-JS-LODASH-73638
SNYK-JS-HAWK-2808852
SNYK-JS-MINIMATCH-1019388
npm:minimatch:20160620
SNYK-JS-LODASH-1040724
SNYK-JS-SEMVER-3247795
SNYK-JS-TRIMNEWLINES-1298042
SNYK-JS-LODASH-73639
npm:lodash:20180130
SNYK-JS-LODASH-1018905
SNYK-JS-BROWSERSLIST-1090194
SNYK-JS-MINIMATCH-3050818
SNYK-JS-LODASH-73639
npm:lodash:20180130
SNYK-JS-LODASH-1018905
SNYK-JS-MARKED-2342073
SNYK-JS-NODENOTIFIER-1035794
SNYK-JS-MARKED-2342082
SNYK-JS-MARKED-584281
SNYK-JS-POSTCSS-1255640
SNYK-JS-POSTCSS-1255640
SNYK-JS-POSTCSS-5926692
SNYK-JS-REQUEST-3361831
npm:semantic-ui:20170130
SNYK-JS-TOUGHCOOKIE-5672873
SNYK-JS-UGLIFYJS-1727251
npm:hoek:20180212
npm:braces:20180219
SNYK-JS-HAWK-6969142
SNYK-JS-MINIMATCH-3050818
SNYK-JS-POSTCSS-5926692
SNYK-JS-UGLIFYJS-1727251
Release notes
Package name: semantic-ui
Version 2.5.0 - Oct 6, 2022
Note
Critical Fix
Breaking Changes
Build
api.addAssets
#6790 Thanks @ gimcoExamples
Bug Fixes
right menu
inside aui menu
(See examples/sticky.html) for use-casebound bottom
(fixed to bottom of context) if the sticky element is larger than the contextmin-height
not to be set correctly.Note
Build
3.5.0
Thanks @ sciyoshi #6512gulp-util
toreplace-ext
Thanks @ stevelacy #6322Bug Fixes
clearable
dropdown now works with dropdown that arenton:click
, likehover
ormanual
triggers. #6594fullscreen modal
having incorrect left offset with flex modals #6587destroy
very relaxed vertically divided grid
having wrong margins on dividersNew Components
ui placeholder
that can be used to show where content will soon appear.New UI Type
ui placeholder segment
used to reserve space for UI when content is missing or empty.Major Enhancements
clearable
dropdowns. Whenclearable: true
is specified an (X) will appear to clear dropdown selection #2072useFlex
which defaults toauto
. Modals and dimmers will automatically revert to using non-flex layouts when there may be layout issues with using flexbox. Modals will fall back to JS position whendetachable: false
is used or with IE11/Edge (Absolutely positioned elements inside flex containers in IE behave differently).Critical Bugs
scrolling modal
would not allow for scrolling with touch devices. #6449basic label
were appearing incorrectly Thanks @ lasley / @ ColinFrick #6582 #6440left menu
insideui menu
would display horizontally asflex
#6359Bugs
variation
at runtime, to support run-time swapping betweentop aligned
andmiddle aligned
using.dimmer('setting', 'variation', 'top aligned')
onChange
when used withaction: hide
would be missing the third param$item
#6555uk
alias forunited kingdom
Thanks @ PhilipGarnero #6531disk outline icon
alias #6556content
would not take up 100% width when used alongsideimg
oricon
labeled icon menu
#6557@ mobileTopAlignedMargin
theming variable was not implementedblurring
after undimming, to prevent issues withposition: fixed
#6520Minor Changes
inline dropdown
close icon
default right margin default spacing slightly modified.Bug Fixes
cache: false
will now affect default settings forapiSettings
when using a remote endpoint. Previously you would also have to pass inapiSettings: { cache: false}
as welltransition in
andtransition out
used in animations. Previous names can still be used, however it is recommended to migrate to new names for compatibility with transition.linkedin in
is nowlinkedin alternate
zoom in
is nowzoom-in
zoom out
is nowzoom-out
sign in
is nowsign-in
sign out
is nowsign-out
log out
is nowlogout
in cart
is nowin-cart
Enhancements
inverted
andinverted basic
variations forprimary
andsecondary
buttons Thanks @ hammy2899 #6242Theming
hover
down
active
andfocus
variables for@ invertedPrimaryColor
and@ invertedSecondaryColor
Bugs
apiSettings
with a url that returns valid response but with no results when clicking directly on thedropdown icon
. Thanks @ vpeti #5231 #5809:last-child
basic label
does not use@ basicBackground
variables Thanks @ levithomsonwechat icon
not displaying due to typo Thanks @ alex-karo #6429Critical Bugs
2.3.0
that could cause multiselect dropdowns initialized by converting<select>
to not add initial selected options. #6123fullTextSearch: 'exact'
returning duplicate results @ thanks @ prudho #6223 #6221centered
andbordered
icons appearing incorrectly with FA5 Thanks @ w96k #61922.3.0
Thanks hammy2899 #6181 #6175 #6176 #6174 #6175link icon
were appearing incorrectly due to changes in icons #6180Enhancements
Bugs
onChange
missingtext
from callback when dropdown is set toaction: 'select'
Thanks @ martinduparc #4183 #4510@ importSolidIcons
,importRegularIcons
and@ importBrandIcons
variables Thanks hammy2899fitted icon
to fix compatibility with other components #6125onScreen
callback to not occur properly for elements that are taller than screen.disabled item
showing hover style forsecondary menu
Thanks @ tcmal #6268@ normal
for normal font weight for all non-default themes included in repo. #6227ui images
#6224whitespace: nowrap;
applying to content insideslide reveal
andmove reveal
Major Enhancements
Icons - Font Awesome 5 is now included in Semantic UI Thanks @ hammy2899 #6085
Search - Category search can now work with local search by adding a
category
property to any result and specifyingtype: 'category'
Popup - Popup can now position elements correctly even when they have a different offset context than their activating element. Like in this example.
Popup - Popup will now align the center of the arrow (not the edge of the popup) when it would be reasonable (up to 2x arrow's offset from edge). See this explanation
To preserve functionality
movePopup
default has remained astrue
(moving the popup to the same offset context), however now settingmovePopup: false
should now always position correctly. Be sure to usemovePopup: true
to avoid issues withui popup
insidemenu
,input
or other places where it may inherit rules from its activating element or its context.Transition - Adds new
glow
transition for highlighting an element on the page, andzoom
animation for scaling elements without opacity tween.Modal - Modal has been rewritten to use
flexbox
. No need to callrefresh()
to recalculate vertical centering.Modal - Modals now have a setting
centered
which can be used to disable vertical centering. This can be useful for modals with content that changes dynamically to prevent content from jumping in position.Minor Enhancements
normal
andbold
font weights for custom font stacks. Thanks @ jaridmargolin #6167exact
setting matching dropdown forfullTextSearch
preventing fuzzy searchtitle
row if titles are long instead of forcing a title widthcontent
element.closable
setting after init Thanks @ mdehoog #3396onChanging
callback for accordion that occurs before animation in both directions Thanks @ GammeGames #5892Tiny Enhancements
arrowBackground
now inherits frombackground
#6059 Thanks @ devsliheaderFontWeight
Bugs
autofocus
setting now checks to see if currently focused element is in modal, avoiding issues where focus could be set inonVisible
oronShow
big
andhuge
sizes being swapped in menu Thanks @ Jeremy091 #5902 #5899tbody
Thanks @ MLukman #4458content
specified in settings beforetitle
attribute #4614 Thanks @ aaronbhansenon: 'change'
would still show validation prompts onblur
when usinginline: true
#4423 Thanks @ avalanche1inverted dimmer
withcontent
having wrong text color Thanks @ rijk #4631ui images
would show nested images withtransition hidden
as block (Fixes sequential img animation demo in docs)Doc Updates
Doc Bugs
Critical Bugs
get values
Thanks @ tincdev #5713 #6043allowMultiple: true
and a second modal that is larger than the screen height. #2423Enhancements
ribbon label
can now work withreveal
#5681ignoreCase
(defaults to false) that will prevent values from being added that match existing values (case insensitive). This is particularly useful when using allowAdditions for tagging to not allow case insensitive matches.@ customScrollbarHeight
and specifies a default horizontal scrollbar height Thanks @ jayphelps #5749Bugs
toggle checkbox
box shadow was missing Thanks @ Banandrew #5096context
setting due to an incorrect offset calculation. Thanks @ dannyBies #5974 #5366contain
anddoesntContain
rules were swapped. Thanks @ xiongyu-git #5530bottomPassed
andtopPassed
would not fire under some conditionsui input
in a dropdown menu could cause the input to be too wide in some cases Thanks @ Banandrew #5085inverted menu
rules would cause popup inside a menu to have incorrect link styling inlink list
Thanks @ Banandrew #5585 #5603Build Tools
gulp-clone
was only set to use >1.0
causing issues with gulp builds due to upstream error #6067Hotfix (2)
gulp-prompt
plugin to allow for updatedinquirer
versionMajor Enhancements (1)
values
specified in javascript when initializing.This should simplify cases where dropdown contents are contingent on other fields, for example listing sub categories. You can see some examples here and in the usage section of dropdown docsCritical Bugs (3)
dropdown
insideui menu
to always appear on left edge of dropdown introduced2.2.11
#5542popup
in2.2.11
that caused popups to appear out of place in some cases due to incorrect calculation ofoffsetParent
#5549 #5597 #5590GulpUglifyError: unable to minify JavaScript Caused by: DefaultsError: `preserveComments` is not a supported option
Enhancements (2)
<select>
DOM node is replaced with a different select, and not just if new<option>
are added