Skip to content
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

Remove withAdaptivity #2601

Merged
merged 22 commits into from
Jun 2, 2022
Merged

Remove withAdaptivity #2601

merged 22 commits into from
Jun 2, 2022

Conversation

stoope
Copy link
Contributor

@stoope stoope commented May 24, 2022

Link #2350

@stoope stoope requested a review from a team as a code owner May 24, 2022 14:26
@codesandbox-ci
Copy link

codesandbox-ci bot commented May 24, 2022

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.

Latest deployment of this branch, based on commit 5a8dd7d:

Sandbox Source
VKUI - default example Configuration

@github-actions
Copy link
Contributor

github-actions bot commented May 24, 2022

size-limit report 📦

Path Size
JS 74.48 KB (-0.56% 🔽)
JS (brotli) 62.74 KB (-0.51% 🔽)
JS, unstable 28.91 KB (-1.49% 🔽)
CSS 39.01 KB (0%)
CSS (brotli) 31.35 KB (0%)
CSS, unstable 1.05 KB (0%)

@github-actions
Copy link
Contributor

👀 Styleguide deployed

See the styleguide for this PR at https://vkcom.github.io/VKUI/pull/2601/

@github-actions
Copy link
Contributor

github-actions bot commented May 24, 2022

Code coverage

lines3588 / 460577.91%
statements3656 / 469177.93%
functions827 / 102880.44%
branches2984 / 424770.26%
branchesTrue0 / 0100.00%

Generated by 🚫 dangerJS against 5a8dd7d

@stoope stoope marked this pull request as draft May 24, 2022 15:02
@stoope stoope marked this pull request as ready for review May 24, 2022 20:02
} from "../../components/AdaptivityProvider/AdaptivityContext";
import { AdaptivityProps, withAdaptivity } from "../../hoc/withAdaptivity";
import { withAdaptivity } from "../../hoc/withAdaptivity";
Copy link
Contributor

Choose a reason for hiding this comment

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

Может, тут тоже выкинем и перейдем на AdaptivityProvider?

@stoope stoope requested a review from a team as a code owner May 27, 2022 17:04
viewHeight: true,
hasMouse: true,
});
ModalRoot.displayName = "ModalRoot";
Copy link
Contributor

Choose a reason for hiding this comment

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

И тут тоже можно выпилить displayName.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines -4223 to -4244
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001297:
version "1.0.30001300"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001300.tgz#11ab6c57d3eb6f964cba950401fd00a146786468"
integrity sha512-cVjiJHWGcNlJi8TZVKNMnvMid3Z3TTdDHmLDzlOdIiZq138Exvo0G+G0wTdVYolxKb4AYwC+38pxodiInVtJSA==

caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001280:
version "1.0.30001284"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001284.tgz#d3653929ded898cd0c1f09a56fd8ca6952df4fca"
integrity sha512-t28SKa7g6kiIQi6NHeOcKrOrGMzCRrXvlasPwWC26TH2QNdglgzQIRUuJ0cR3NeQPH+5jpuveeeSFDLm2zbkEw==

caniuse-lite@^1.0.30001165:
version "1.0.30001177"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001177.tgz"

caniuse-lite@^1.0.30001219:
version "1.0.30001243"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001243.tgz#d9250155c91e872186671c523f3ae50cfc94a3aa"
integrity sha512-vNxw9mkTBtkmLFnJRv/2rhs1yufpDfCkBZexG3Y0xdOH2Z/eE/85E4Dl5j1YUN34nZVsSp6vVRFQRrez9wJMRA==

caniuse-lite@^1.0.30001332:
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001165, caniuse-lite@^1.0.30001219, caniuse-lite@^1.0.30001280, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001297, caniuse-lite@^1.0.30001332:
version "1.0.30001344"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001344.tgz#8a1e7fdc4db9c2ec79a05e9fd68eb93a761888bb"
Copy link
Contributor

Choose a reason for hiding this comment

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

А ты командой yarn дедупликации сделал?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Это я npx browserslist@latest --update-db запускал

export const Epic: React.FC<EpicProps & AdaptivityContextInterface> = (
props
) => {
export const Epic: React.FC<EpicProps> = (props) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Заметил, что сейчас в файлик сразу и именованный экспорт, и экспорт по умолчанию

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Оставил только именованный

This reverts commit bef28dd.
@stoope stoope merged commit 5fa14ec into v5.0.0 Jun 2, 2022
@stoope stoope deleted the remove-with-adaptivity branch June 2, 2022 12:25
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.

3 participants