@atlaskit/top-layer 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/testing/polyfill.js +817 -0
- package/dist/cjs/testing/to-be-visible.js +92 -0
- package/dist/es2019/testing/polyfill.js +831 -0
- package/dist/es2019/testing/to-be-visible.js +85 -0
- package/dist/esm/testing/polyfill.js +815 -0
- package/dist/esm/testing/to-be-visible.js +89 -0
- package/dist/types/testing/polyfill.d.ts +25 -0
- package/dist/types/testing/to-be-visible.d.ts +23 -0
- package/dist/types-ts4.5/testing/polyfill.d.ts +25 -0
- package/dist/types-ts4.5/testing/to-be-visible.d.ts +23 -0
- package/package.json +3 -2
- package/testing/polyfill/package.json +17 -0
- package/testing/to-be-visible/package.json +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @atlaskit/top-layer
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`58c9d421e96b1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/58c9d421e96b1) -
|
|
8
|
+
Improves the jsdom test polyfill (`testing/polyfill`) to better match WHATWG popover spec
|
|
9
|
+
semantics:
|
|
10
|
+
- Adds the `el.popover` IDL getter/setter so feature-detection (`supportsPopoverHint()` etc) works
|
|
11
|
+
in jsdom and `popover="hint"` is exercised in tests rather than silently falling back to
|
|
12
|
+
`popover="auto"`.
|
|
13
|
+
- Implements a separate hint stack so opening a `hint` does not close open `auto` popovers;
|
|
14
|
+
opening an `auto` closes all hints; light-dismiss and Escape walk both stacks per spec.
|
|
15
|
+
- Implements proper "topmost popover ancestor" lookup that walks both DOM ancestry and the invoker
|
|
16
|
+
chain (via `popovertarget`), so opening a popover from a button inside another popover does not
|
|
17
|
+
close the parent.
|
|
18
|
+
- Light-dismiss now uses pointerdown + pointerup (with `mousedown` + `mouseup` fallback) and a
|
|
19
|
+
same-target check so drag-out and drag-in gestures do not dismiss popovers.
|
|
20
|
+
- `togglePopover()` now returns the actual resulting open state.
|
|
21
|
+
- Per-method patching (`showPopover` / `hidePopover` / `togglePopover`) so partial native support
|
|
22
|
+
in future jsdom versions still patches the missing methods.
|
|
23
|
+
- Disconnected popovers are pruned from the open stacks (defends against test-pollution).
|
|
24
|
+
- Clears any inline `opacity: 0` set by callers (such as `use-anchor-positioning`'s
|
|
25
|
+
"hide-until-measured" guard) once the open toggle fires, since jsdom does not deliver
|
|
26
|
+
`ResizeObserver` callbacks.
|
|
27
|
+
- Treats `popover=""` (empty value) as `auto` per spec.
|
|
28
|
+
|
|
29
|
+
## 0.3.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- [`60e2bb08cd411`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/60e2bb08cd411) -
|
|
34
|
+
Expose Popover API and HTMLDialogElement jsdom polyfill (and toBeVisible patch) via new
|
|
35
|
+
testing/polyfill and testing/to-be-visible subpath exports. Adopters can now opt in to the
|
|
36
|
+
polyfill in their jest setup with a single import.
|
|
37
|
+
|
|
3
38
|
## 0.2.0
|
|
4
39
|
|
|
5
40
|
### Minor Changes
|