-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Spotlight integration with hydration-overlay (#41)
Feature Addition: Spotlight Integration in Hydration-Overlay This pull request introduces an integration of Spotlight into the hydration-overlay module. Key Highlights: - Addressed all necessary conditions outlined in the discussion [here](#40 (comment)). - Note: Current integration and tests may not function as expected due to pending integration support in Spotlight. The implementation is primed for action once the necessary changes are merged. Next Steps: - Track the progress of Hydration-overlay integration in Spotlight [here](getsentry/spotlight#343). - Upon completion of Spotlight integration, a simple version update for the Spotlight package in this repository is all that's needed.
- Loading branch information
1 parent
1077eb4
commit 1075a84
Showing
24 changed files
with
1,255 additions
and
89 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,5 @@ | ||
--- | ||
"@builder.io/react-hydration-overlay": minor | ||
--- | ||
|
||
Added a Spotlight integration in hydration-overlay |
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
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import React, { type PropsWithChildren } from "react"; | ||
import React from "react"; | ||
import { Overlay } from "./Overlay.js"; | ||
import { HydrationOverlayProps } from "./types.js"; | ||
|
||
export function HydrationOverlay(props: PropsWithChildren) { | ||
export function HydrationOverlay( | ||
{children, ...rest}: HydrationOverlayProps | ||
) { | ||
return ( | ||
<> | ||
{props.children} | ||
<Overlay /> | ||
{children} | ||
<Overlay {...rest} /> | ||
</> | ||
); | ||
} | ||
|
||
export * from "./Overlay"; |
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,14 @@ | ||
import { type PropsWithChildren } from "react"; | ||
|
||
export type OverlayIntegrationsProps = { | ||
spotlight?: boolean | ||
} | ||
|
||
export type HydrationOverlayProps = PropsWithChildren & { | ||
integrations?: OverlayIntegrationsProps | ||
}; | ||
|
||
export type OverlayProps = { | ||
integrations?: OverlayIntegrationsProps | ||
} | ||
|
Oops, something went wrong.