-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest development snapshot of core packages
- Loading branch information
Showing
19 changed files
with
449 additions
and
1,571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
"@open-pioneer/experimental-layout-sidebar": minor | ||
"@open-pioneer/basemap-switcher": minor | ||
"@open-pioneer/result-list": minor | ||
"@open-pioneer/selection": minor | ||
"@open-pioneer/search": minor | ||
"@open-pioneer/toc": minor | ||
"@open-pioneer/coordinate-viewer": minor | ||
"@open-pioneer/editing": minor | ||
"@open-pioneer/geolocation": minor | ||
"@open-pioneer/legend": minor | ||
"@open-pioneer/map": minor | ||
"@open-pioneer/map-navigation": minor | ||
"@open-pioneer/map-test-utils": minor | ||
"@open-pioneer/map-ui-components": minor | ||
"@open-pioneer/measurement": minor | ||
"@open-pioneer/ogc-features": minor | ||
"@open-pioneer/overview-map": minor | ||
"@open-pioneer/printing": minor | ||
"@open-pioneer/scale-bar": minor | ||
"@open-pioneer/scale-setter": minor | ||
"@open-pioneer/scale-viewer": minor | ||
"@open-pioneer/spatial-bookmarks": minor | ||
"@open-pioneer/theme": minor | ||
--- | ||
|
||
Update trails core package dependencies. | ||
|
||
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5. | ||
- Removes any obsolete references to `@chakra-ui/system`. | ||
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/dist/esm/use-outside-click.mjs b/dist/esm/use-outside-click.mjs | ||
index 005979a0b8919793aecb901ef269004716395c34..ecc3eaf8b6b7c558c5d204aa9de3b2f2b8afeca6 100644 | ||
--- a/dist/esm/use-outside-click.mjs | ||
+++ b/dist/esm/use-outside-click.mjs | ||
@@ -49,13 +49,15 @@ function useOutsideClick(props) { | ||
}, [handler, ref, savedHandler, state, enabled]); | ||
} | ||
function isValidEvent(event, ref) { | ||
- const target = event.composedPath?.()[0] ?? event.target; | ||
+ // Perform document check on the top level target because a child in a shadow dom is not "contained" in its root document. | ||
+ const target = event.target; | ||
if (target) { | ||
const doc = getOwnerDocument(target); | ||
if (!doc.contains(target)) | ||
return false; | ||
} | ||
- return !ref.current?.contains(target); | ||
+ | ||
+ return !ref.current?.contains(event.composedPath?.()[0] ?? target); | ||
} | ||
function getOwnerDocument(node) { | ||
return node?.ownerDocument ?? document; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.