Skip to content

chore: revert export provider context #7416

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

Merged
merged 5 commits into from
Nov 21, 2024
Merged

Conversation

snowystinger
Copy link
Member

Closes

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@snowystinger snowystinger changed the title Dont export provider context chore: revert export provider context Nov 21, 2024
@@ -341,7 +341,7 @@ describe('ColorWheel', () => {
let defaultColor = parseColor('hsl(0, 100%, 50%)');
let {container: _container, getByRole} = render(<ControlledHSL defaultValue={defaultColor} onChange={onChangeSpy} onChangeEnd={onChangeEndSpy} />);
let slider = getByRole('slider');
let container = _container?.firstChild?.firstChild?.firstChild as HTMLElement;
let container = _container?.firstChild?.firstChild?.firstChild?.firstChild as HTMLElement;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah... we have far too many of these, they are very silly

@rspbot
Copy link

rspbot commented Nov 21, 2024

@rspbot
Copy link

rspbot commented Nov 21, 2024

@@ -34,3 +37,7 @@ function customRender(ui, options) {

// override render method with
export {customRender as render};

export function renderv3(ui, options, providerProps) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just confirming: this isn't the public test utils package right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, this is private

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devongovett
devongovett previously approved these changes Nov 21, 2024
@rspbot
Copy link

rspbot commented Nov 21, 2024

@rspbot
Copy link

rspbot commented Nov 21, 2024

## API Changes

@react-spectrum/provider

/@react-spectrum/provider:Context

-Context {
-  UNTYPED
-}

@snowystinger snowystinger added this pull request to the merge queue Nov 21, 2024
Merged via the queue into main with commit a530335 Nov 21, 2024
30 checks passed
@snowystinger snowystinger deleted the dont-export-provider-context branch November 21, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants