-
Transition handling mechanism is changed, now
Transition
component is on top ofwowerlay-background
element, that means you are targeting background element ifnoBackground
prop is not given. For CSS transitions now users must select.wowerlay-background-name-active .wowerlay
if target is background.For JavaScript api you can now choose
popover, background
explicitly. See demo page for examples.
- Fixed minor problem.
-
Added
arrow
slot for supporting custom arrows. -
Added
arrowPadding
prop forfloating-ui
arrow
middleware.
-
Now instead of custom positioning algorithm, Wowerlay uses floating-ui.
-
syncWidth
andsyncHeight
props are changed to singlesyncSize
prop. Depending on the side it will synchronize the bounds. -
verticalGap
andhorizontalGap
props are changed to singlegap
prop. Depending on the side it will put the gap. -
Now Wowerlay doesn't come with an opacity transition, by default Wowerlay has no transition.
-
transition
prop does not acceptfalse
anymore.
-
Now thanks to
floating-ui
, Wowerlay supportsVirtualElement
a.k.a an object withgetBoundingClientRect
as the target. -
New
middlewares[]
prop can inject custom middlewares intoFloating-UI
. -
Now Wowerlay writes it's information to itself as attributes:
data-popover-placement
,data-popover-rect
,data-popover-x
anddata-popover-y
. Purpose of these attributes areplacement-based
transitioning. SeeDemo/JS Transition
for sample code. -
Now
transition
prop accepts a function that handles both enter and leave transitions. SeeDemo/JS Transition
for sample code. -
Some of the
Floating-UI
types are exported from Wowerlay.
- Added
data-wowerlay-scope
anddata-wowerlay-stop
attributes. See demo page for examples.
-
Formerly Wowerlay was using
event.stopPropagation
on click for Popover and Background. Wowerlay would have listened 3 events and those were self click, background click and window click.With new attributes we just have single
window click
listener. Even Wowerlay uses special attributes for nested Wowerlays to work properly and to prevent closing itself(data-wowerlay-stop)
.This update mey be both
Breaking Change
andBehavior Change
current users may be usingstopPropagation
for Wowerlay's listener.
- Added
backgroundAttrs
prop, with this you can pass any attribute to Wowerlay's background element.key
attribute is black listed, wont be injected. If we didn't prevent it, it would create conflicts in Wowerlay state. If you want to pass akey
, pass it to Wowerlay instead. - Updated readme.
- Now Wowerlay do not leave a
div.wowerlay-background
when it isn't visible. - Now if
noBackground
prop is given, instead of adding.no-background
to background element, Wowerlay mounts to body without a background element.
- Removed createWowerlay function
(it's deprecated in 0.6.0)
.
- Added custom expose (template ref).
- Updated readme.
- Updated Now each Wowerlay instance will climb from target element to root element and attach a
scroll
event for better auto replacement. - Updated Now each Wowerlay instance adds a click event to Window, it used to be single click event for all instances.
- Deprecated
createWowerlay
, now each Wowerlay component instance are independent, altough we still provide an empty function not to break projects.
- Added
syncWidth
andsyncHeight
props.
- Added demo for
syncWidth
andsyncHeight
props.
- Updated readme.
- Added
noFlip
prop. - Added
update:el
emit.
- Refactored all demos and directory structure.
- Reordered demos from simple to complicated.
- Added Custom transition support.
- Added
No Transition
sample. - Added
Custom Transition
sample.
- Added ResizeObserver support for supporting browsers.
- Added
Dynamic Bounds
sample.
- Fix clicking container of Wowerlay is causing other Wowerlays to close.
- Added
noBackground
prop. - Fixed scrollbar width/height isn't counting for screen bounds check.
- Updated readme.
- Removed
WowerlayContainer
component.
- Updated README.md
- Fixed
verticalGap
andhorizontalGap
props are not working.
- Added
With Gaps
demo.
- Added new positions.
- Removed
centered
prop.
- Fixed clicking Wowerlay is not hiding child Wowerlay components.
- Added
centered
prop.
- Added
fixed
,verticalGap
,horizontalGap
,position
props. - Added watching
target
prop for changes. - Added online demo page.
- First Ready to use build.