Skip to content

fix: remove the useOnClickOutside import breaking change - #2835

Merged
lariciamota merged 1 commit into
feat/delivery-promisefrom
fix/remove-breaking-change
May 9, 2025
Merged

lariciamota merged 1 commit into
feat/delivery-promisefrom
fix/remove-breaking-change

Conversation

@lariciamota

@lariciamota lariciamota commented May 9, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

When this file was moved to the /components folder, it broke this type of import: import useOnClickOutside from "src/sdk/ui/useOnClickOutside";, that some clients use. We do not recommend this import, but since it's used, we shouldn't break without a major release.

How to test it?

It should build without problems if the store uses import useOnClickOutside from "src/sdk/ui/useOnClickOutside";.
It can be tested in the core, in the SearchInput instead of importing from @faststore/ui import from src/sdk/ui/useOnClickOutside.

@lariciamota lariciamota self-assigned this May 9, 2025
@codesandbox-ci

codesandbox-ci Bot commented May 9, 2025

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@lariciamota
lariciamota marked this pull request as ready for review May 9, 2025 16:51
@lariciamota
lariciamota requested a review from a team as a code owner May 9, 2025 16:51
@lariciamota
lariciamota requested review from gabpaladino, hellofanny and lucasfp13 and removed request for a team and gabpaladino May 9, 2025 16:51
@lariciamota
lariciamota merged commit 789c99a into feat/delivery-promise May 9, 2025
@lariciamota
lariciamota deleted the fix/remove-breaking-change branch May 9, 2025 16:59
lariciamota added a commit that referenced this pull request May 12, 2025
## What's the purpose of this pull request?

When [this file
](https://github.com/vtex/faststore/pull/2716/files#diff-2ad0a54eceb2d4f46e9303b3120312373a87f561a8eed452a8886f034e83f7df)
was moved to the /components folder, it broke this type of import:
`import useOnClickOutside from "src/sdk/ui/useOnClickOutside";`, that
some clients use. We do not recommend this import, but since it's used,
we shouldn't break without a major release.

## How to test it?

It should build without problems if the store uses `import
useOnClickOutside from "src/sdk/ui/useOnClickOutside";`.
It can be tested in the core, in the
[SearchInput](https://github.com/vtex/faststore/blob/ed400bc738dd7d51e0a1fffce9c13ed843b90ee0/packages/core/src/components/search/SearchInput/SearchInput.tsx#L22)
instead of importing from `@faststore/ui` import from
`src/sdk/ui/useOnClickOutside`.
lariciamota added a commit that referenced this pull request May 13, 2025
## What's the purpose of this pull request?

Feature branch for the Delivery Promise feature - phase 1 (navigation
based on shopper location).

- #2708 
- #2728
- #2739 
- #2745 
- #2749
- #2750
- #2768
- #2772 
- #2775
- #2809
- #2817 
- #2824 
- #2835

## How it works?


## How to test it?


### Starters Deploy Preview


## References
- [Jira epic](https://vtex-dev.atlassian.net/browse/SFS-1696)


## Checklist

- [ ] For documentation changes, ping `@Mariana-Caetano` to review and
update (Or submit a doc request)
- [ ] TODO: Request Doc for PopOver
- [ ] TODO: Remind to run cms sync in the default account when the
feature branch is merged since new section was added. (And add the new
section in the admin!)

---------

Co-authored-by: Lucas Feijó <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
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.

2 participants