-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: locally overlay-kit #102
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: d5f348b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 9 changed files in this pull request and generated no comments.
Files not reviewed (4)
- packages/src/context/provider.tsx: Evaluated as low risk
- packages/src/context/use-sync-overlay-store.ts: Evaluated as low risk
- packages/src/utils/index.ts: Evaluated as low risk
- packages/src/event.ts: Evaluated as low risk
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #102 +/- ##
==========================================
- Coverage 81.48% 81.31% -0.17%
==========================================
Files 11 13 +2
Lines 243 273 +30
Branches 49 54 +5
==========================================
+ Hits 198 222 +24
- Misses 43 47 +4
- Partials 2 4 +2
|
This reverts commit a3a804c.
Description
Related Issue: Fixes # (issue_number)
This PR modifies the overlay-kit, which was previously available only globally, to be usable in local environments.
To achieve this, components like
OverlayProvider
have been adapted into acreateOverlayProvider
format, making them reusable locally.Users can now utilize the new function
experimental_createOverlayContext
, which enables this local usage. However, since this function is experimental, caution is advised when using it.Changes
OverlayProvider
and similar components intocreateOverlayProvider
for local use.experimental_createOverlayContext
, allowing local context creation for overlays.Motivation and Context
Previously, the overlay-kit could only be used globally, limiting flexibility in development.
This change enables developers to utilize overlay functionality in localized contexts, enhancing modularity and reusability.
How Has This Been Tested?
experimental_createOverlayContext
function in local environments to verify its functionality.Screenshots (if appropriate):
example code
Types of changes
Checklist
Further Comments
Since
experimental_createOverlayContext
is experimental, users should proceed with caution and monitor its behavior in various use cases.