PromucFlow_constructor/app/client/src/utils/hooks
Arsalan Yaldram 119f0be18b
chore: update Styled components to latest version and related cleanup (#19284)
## Description
We need to upgrade `styled-components`, so that it will become easy to
upgrade to version 6.0 when it is out. This is because, v6.0 has an
important functionality which isn't available in today's version.

### Tasks completed
- Update Styled components to latest version.
- Prepare codebase by cleaning up the styled components functions that
will be deprecated in version 6
- We are still using the `withTheme` HOC, we should instead use the
`useTheme` hook (best practices)
- Remove the `AnyStyledComponent` type it is un-necessary and will be
deprecated

Fixes #19463


## Type of change
- Non breaking change. The application should work as before and should
not effect any visual elements or UI.

## How Has This Been Tested?
- Manual @appsmithorg/qa please refer to the test plan for areas of
interest.
- Cypress: All existing test cases must pass.

### Test Plan
- We need to do a sanity check on the Product Updates Modal, Release
section.
- We also need to do a sanity check on the Login, Signup, ResetPassword
pages.
- I think we can merge this Pull Request and continue with our weekly
regression, because there are no style changes in this Pull Request,
everything should work as expected.


## Checklist:
### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-01-13 16:35:59 +05:30
..
useWidgetFocus fix: Improving form widget keyboard accessibility (#18991) 2022-12-30 15:52:11 +01:00
autoHeightUIHooks.ts fix: Updating page permissions in view mode to solve error message for updating the page (#18946) 2022-12-14 20:32:13 +05:30
dragResizeHooks.tsx refactor: deprecate commenting and notifications (#15484) 2022-08-03 12:32:49 +05:30
localstorage.tsx
useAllowEditorDragToSelect.ts feat: Add type inference for redux's useSelector hook (#18257) 2022-11-28 08:13:17 +00:00
useAutoGrow.tsx fix: added missed analytic events for git sync (#10953) 2022-02-08 21:46:16 +05:30
useBrandingTheme.ts feat: Branding (#18717) 2022-12-09 20:13:47 +05:30
useCanvasMinHeightUpdateHook.ts feat: Add type inference for redux's useSelector hook (#18257) 2022-11-28 08:13:17 +00:00
useClick.tsx chore: update Styled components to latest version and related cleanup (#19284) 2023-01-13 16:35:59 +05:30
useClickToSelectWidget.tsx feat: Add type inference for redux's useSelector hook (#18257) 2022-11-28 08:13:17 +00:00
useClipboard.tsx
useDeepEffect.test.ts feat: upgrade to create react app 5 (#14000) 2022-06-21 19:27:34 +05:30
useDeepEffect.ts feat: JSON Form widget (#8472) 2022-03-24 12:43:25 +05:30
useDeviceDetect.ts feat: Homepage mobile UI (#10255) 2022-02-17 22:08:36 +05:30
useDSEvent.ts chore: Adds analytics for Property Pane keyboard navigation (#13703) 2022-07-14 10:30:30 +05:30
useDynamicAppLayout.tsx feat: Multi Pane IDE: Phase 1 (#19261) 2023-01-09 10:54:41 +05:30
useGoogleFont.tsx feat: App Theming (#9714) 2022-05-04 15:15:57 +05:30
useHorizontalResize.tsx use clientWidth instead of getBoundingClientRect 2022-02-21 22:11:50 +05:30
useInteractionAnalyticsEvent.ts chore: Adds analytics for Property Pane keyboard navigation (#13703) 2022-07-14 10:30:30 +05:30
useIsScrolledToBottom.tsx
useOnClickOutside.tsx feat: App Theming (#9714) 2022-05-04 15:15:57 +05:30
useOnUpgrade.ts feat: Refactor invite modal for handling RBAC updates (#16405) 2022-09-02 22:45:08 +05:30
usePositionedContainerZIndex.ts feat: Add type inference for redux's useSelector hook (#18257) 2022-11-28 08:13:17 +00:00
usePrevious.tsx fix: AppViewer init and page fetch logic (#14294) 2022-06-10 18:22:59 +00:00
useProceedToNextTourStep.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
useReflow.ts feat: drag n drop and Container jump enhancements (#19047) 2023-01-06 22:27:40 +05:30
useResize.tsx feat: Entity explorer pages section resize (#13576) 2022-05-16 12:09:32 +05:30
useResizeObserver.tsx feat: js object v1 run and settings redesign (#11456) 2022-04-28 17:51:02 +01:00
useScript.tsx
useThrottledRAF.ts
useWidgetConfig.ts feat: Automatic height updates for widgets based on contents (Auto Height) (#18341) 2022-11-23 15:18:23 +05:30
useWidgetSelection.ts
useWindowDimensions.tsx
useWorkspace.tsx chore: Splitting files to support groups on members page in EE (#18085) 2022-11-03 22:09:51 +05:30