1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
renovate[bot] d07276df15
chore(deps): update material-ui monorepo (#2577)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mui/icons-material](https://mui.com/material-ui/material-icons/)
([source](https://togithub.com/mui/material-ui)) | [`5.10.15` ->
`5.11.0`](https://renovatebot.com/diffs/npm/@mui%2ficons-material/5.10.15/5.11.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@mui%2ficons-material/5.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@mui%2ficons-material/5.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@mui%2ficons-material/5.11.0/compatibility-slim/5.10.15)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@mui%2ficons-material/5.11.0/confidence-slim/5.10.15)](https://docs.renovatebot.com/merge-confidence/)
|
| [@mui/lab](https://mui.com/material-ui/about-the-lab/)
([source](https://togithub.com/mui/material-ui)) | [`5.0.0-alpha.109` ->
`5.0.0-alpha.119`](https://renovatebot.com/diffs/npm/@mui%2flab/5.0.0-alpha.109/5.0.0-alpha.119)
|
[![age](https://badges.renovateapi.com/packages/npm/@mui%2flab/5.0.0-alpha.119/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@mui%2flab/5.0.0-alpha.119/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@mui%2flab/5.0.0-alpha.119/compatibility-slim/5.0.0-alpha.109)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@mui%2flab/5.0.0-alpha.119/confidence-slim/5.0.0-alpha.109)](https://docs.renovatebot.com/merge-confidence/)
|
| [@mui/material](https://mui.com/material-ui/getting-started/overview/)
([source](https://togithub.com/mui/material-ui)) | [`5.10.15` ->
`5.11.8`](https://renovatebot.com/diffs/npm/@mui%2fmaterial/5.10.15/5.11.8)
|
[![age](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.8/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.8/compatibility-slim/5.10.15)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.8/confidence-slim/5.10.15)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mui/material-ui (@&#8203;mui/icons-material)</summary>

###
[`v5.11.0`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#&#8203;5110)

[Compare
Source](https://togithub.com/mui/material-ui/compare/v5.10.16...v5.11.0)

<!-- generated comparing v5.10.17..master -->

*Dec 13, 2022*

A big thanks to the 19 contributors who made this release possible. Here
are some highlights :

- 🔥 [@&#8203;mnajdova](https://togithub.com/mnajdova) enabled
configuration of the `sx` prop in the `theme`
([#&#8203;35150](https://togithub.com/mui/material-ui/issues/35150))
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure
improvements.

##### `@mui/material@5.11.0`

- \[Alert] Update icon color in all variants
([#&#8203;35414](https://togithub.com/mui/material-ui/issues/35414))
[@&#8203;danilo-leal](https://togithub.com/danilo-leal)
- \[Select] Fix `MenuProps.PopoverClasses` being overriden
([#&#8203;35394](https://togithub.com/mui/material-ui/issues/35394))
[@&#8203;vitorfrs-dev](https://togithub.com/vitorfrs-dev)
- \[SwipeableDrawer] Fixed typescript warning "prop open undefined"
([#&#8203;34710](https://togithub.com/mui/material-ui/issues/34710))
[@&#8203;kraftware](https://togithub.com/kraftware)

##### `@mui/icons-material@5.11.0`

- \[icons] Restore the PhoneInTalk icons
([#&#8203;35409](https://togithub.com/mui/material-ui/issues/35409))
[@&#8203;michaldudak](https://togithub.com/michaldudak)

##### `@mui/system@5.11.0`

##### BREAKING CHANGES

- \[system] Enable configuring the `sx` prop in the `theme`
([#&#8203;35150](https://togithub.com/mui/material-ui/issues/35150))
[@&#8203;mnajdova](https://togithub.com/mnajdova)

    The breaking change is regarding an experimental API:

    ```diff
-import { styled, experimental_sx } from '@&#8203;mui/material/styles';
    +import { styled } from '@&#8203;mui/material/styles';

    -const Component = styled('div)(experimental_sx({ p: 1 }});
+const Component = styled('div)(({ theme }) => theme.unstable_sx({ p: 1
}});
    ```

##### `@mui/joy@5.0.0-alpha.58`

- \[Joy] Miscellaneous fixes
([#&#8203;35447](https://togithub.com/mui/material-ui/issues/35447))
[@&#8203;siriwatknp](https://togithub.com/siriwatknp)

##### `@mui/base@5.0.0-alpha.110`

- \[PopperUnstyled] Update PopperTooltip to have correct width when
closing with transition
([#&#8203;34714](https://togithub.com/mui/material-ui/issues/34714))
[@&#8203;EduardoSCosta](https://togithub.com/EduardoSCosta)

##### `@mui/material-next@6.0.0-alpha.66`

- \[Material You] Add ripple on the button
([#&#8203;35299](https://togithub.com/mui/material-ui/issues/35299))
[@&#8203;mnajdova](https://togithub.com/mnajdova)

##### Docs

- \[docs] Simplify state management in Text Field demo page
([#&#8203;35051](https://togithub.com/mui/material-ui/issues/35051))
[@&#8203;PratikDev](https://togithub.com/PratikDev)
- \[docs] Improve `Responsive App bar with Drawer` demo
([#&#8203;35418](https://togithub.com/mui/material-ui/issues/35418))
[@&#8203;ZeeshanTamboli](https://togithub.com/ZeeshanTamboli)
- \[docs] Improve line-height readability
([#&#8203;35387](https://togithub.com/mui/material-ui/issues/35387))
[@&#8203;oliviertassinari](https://togithub.com/oliviertassinari)
- \[docs] Improve a bit the Composition docs
([#&#8203;35329](https://togithub.com/mui/material-ui/issues/35329))
[@&#8203;oliviertassinari](https://togithub.com/oliviertassinari)
- \[docs] Refactor `ToggleButtonSizes` demo
([#&#8203;35375](https://togithub.com/mui/material-ui/issues/35375))
[@&#8203;Armanio](https://togithub.com/Armanio)
- \[docs] Standardize the usage of callouts in the MUI Core docs
([#&#8203;35361](https://togithub.com/mui/material-ui/issues/35361))
[@&#8203;samuelsycamore](https://togithub.com/samuelsycamore)
- \[docs] Format feedback to add a link to the commented section
([#&#8203;35381](https://togithub.com/mui/material-ui/issues/35381))
[@&#8203;alexfauquette](https://togithub.com/alexfauquette)
- \[docs] Direct users from Material UI to MUI Base for duplicated
components
([#&#8203;35293](https://togithub.com/mui/material-ui/issues/35293))
[@&#8203;samuelsycamore](https://togithub.com/samuelsycamore)
- \[docs] Fix typo in FormControl API docs
([#&#8203;35449](https://togithub.com/mui/material-ui/issues/35449))
[@&#8203;Spanishiwa](https://togithub.com/Spanishiwa)
- \[docs] Update callouts design
([#&#8203;35390](https://togithub.com/mui/material-ui/issues/35390))
[@&#8203;danilo-leal](https://togithub.com/danilo-leal)
- \[website] New wave of open roles
([#&#8203;35240](https://togithub.com/mui/material-ui/issues/35240))
[@&#8203;mnajdova](https://togithub.com/mnajdova)
- \[website] Developer survey 2022
([#&#8203;35407](https://togithub.com/mui/material-ui/issues/35407))
[@&#8203;joserodolfofreitas](https://togithub.com/joserodolfofreitas)

##### Core

- \[core] Fix [@&#8203;mui/material](https://togithub.com/mui/material)
package building
([#&#8203;35324](https://togithub.com/mui/material-ui/issues/35324))
[@&#8203;timbset](https://togithub.com/timbset)
- \[core] Fix leaking theme color override
([#&#8203;35444](https://togithub.com/mui/material-ui/issues/35444))
[@&#8203;oliviertassinari](https://togithub.com/oliviertassinari)
- \[typescript] Add null to return type of OverridableComponent
([#&#8203;35311](https://togithub.com/mui/material-ui/issues/35311))
[@&#8203;tsollbach](https://togithub.com/tsollbach)
- \[website] Migrate X page to use CSS theme variables
([#&#8203;34922](https://togithub.com/mui/material-ui/issues/34922))
[@&#8203;jesrodri](https://togithub.com/jesrodri)
- \[website] Migrate `/core` page to use CSS variables
([#&#8203;35366](https://togithub.com/mui/material-ui/issues/35366))
[@&#8203;siriwatknp](https://togithub.com/siriwatknp)

All contributors of this release in alphabetical order:
[@&#8203;alexfauquette](https://togithub.com/alexfauquette),
[@&#8203;Armanio](https://togithub.com/Armanio),
[@&#8203;danilo-leal](https://togithub.com/danilo-leal),
[@&#8203;EduardoSCosta](https://togithub.com/EduardoSCosta),
[@&#8203;flaviendelangle](https://togithub.com/flaviendelangle),
[@&#8203;jesrodri](https://togithub.com/jesrodri),
[@&#8203;joserodolfofreitas](https://togithub.com/joserodolfofreitas),
[@&#8203;kraftware](https://togithub.com/kraftware),
[@&#8203;michaldudak](https://togithub.com/michaldudak),
[@&#8203;mnajdova](https://togithub.com/mnajdova),
[@&#8203;oliviertassinari](https://togithub.com/oliviertassinari),
[@&#8203;PratikDev](https://togithub.com/PratikDev),
[@&#8203;samuelsycamore](https://togithub.com/samuelsycamore),
[@&#8203;siriwatknp](https://togithub.com/siriwatknp),
[@&#8203;Spanishiwa](https://togithub.com/Spanishiwa),
[@&#8203;timbset](https://togithub.com/timbset),
[@&#8203;tsollbach](https://togithub.com/tsollbach),
[@&#8203;vitorfrs-dev](https://togithub.com/vitorfrs-dev),
[@&#8203;ZeeshanTamboli](https://togithub.com/ZeeshanTamboli)

###
[`v5.10.16`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#&#8203;51016)

[Compare
Source](https://togithub.com/mui/material-ui/compare/v5.10.15...v5.10.16)

<!-- generated comparing v5.10.15..master -->

*Nov 28, 2022*

A big thanks to the 13 contributors who made this release possible. This
release contains various 🐛 bug fixes, 📚 documentation, and ⚙️
infrastructure improvements.

##### `@mui/material@5.10.16`

- ​<!-- 21 -->\[Autocomplete] Fix inferred value type when `multiple`
prop is `true`
([#&#8203;35275](https://togithub.com/mui/material-ui/issues/35275))
[@&#8203;fenghan34](https://togithub.com/fenghan34)
- ​<!-- 19 -->\[Chip] Add `skipFocusWhenDisabled` prop to not allow
focussing deletable chip if disabled
([#&#8203;35065](https://togithub.com/mui/material-ui/issues/35065))
[@&#8203;sai6855](https://togithub.com/sai6855)
- ​<!-- 18 -->\[Chip] Remove unnecessary handleKeyDown event handler
([#&#8203;35231](https://togithub.com/mui/material-ui/issues/35231))
[@&#8203;ZeeshanTamboli](https://togithub.com/ZeeshanTamboli)
- ​<!-- 05 -->\[FormControl] Add missing types in `useFormControl`
([#&#8203;35168](https://togithub.com/mui/material-ui/issues/35168))
[@&#8203;ZeeshanTamboli](https://togithub.com/ZeeshanTamboli)
- ​<!-- 04 -->\[IconButton] Add missing color classes
([#&#8203;33820](https://togithub.com/mui/material-ui/issues/33820))
[@&#8203;Zetta56](https://togithub.com/Zetta56)
- ​<!-- 03 -->\[SwipeableDrawer] Make paper ref accessible
([#&#8203;35082](https://togithub.com/mui/material-ui/issues/35082))
[@&#8203;sai6855](https://togithub.com/sai6855)

##### `@mui/system@5.10.16`

- ​<!-- 02 -->\[system] Remove unnecessary parsed theme
([#&#8203;35239](https://togithub.com/mui/material-ui/issues/35239))
[@&#8203;siriwatknp](https://togithub.com/siriwatknp)
- ​<!-- 01 -->\[theme] Fix TypeScript type for custom variants in
responsive font sizes
([#&#8203;35057](https://togithub.com/mui/material-ui/issues/35057))
[@&#8203;ZeeshanTamboli](https://togithub.com/ZeeshanTamboli)

##### `@mui/base@5.0.0-alpha.108`

- ​<!-- 20 -->\[Base] Allow useSlotProps to receive undefined
elementType
([#&#8203;35192](https://togithub.com/mui/material-ui/issues/35192))
[@&#8203;leventdeniz](https://togithub.com/leventdeniz)

##### Docs

- ​<!-- 13 -->\[docs] Improve feedback precision
([#&#8203;34641](https://togithub.com/mui/material-ui/issues/34641))
[@&#8203;alexfauquette](https://togithub.com/alexfauquette)
- ​<!-- 12 -->\[docs] Add Black Friday notification
[@&#8203;oliviertassinari](https://togithub.com/oliviertassinari)
- ​<!-- 11 -->\[docs] Fix migration feedback
([#&#8203;35232](https://togithub.com/mui/material-ui/issues/35232))
[@&#8203;alexfauquette](https://togithub.com/alexfauquette)
- ​<!-- 10 -->\[docs] Improve the useSelect demo styling
([#&#8203;33883](https://togithub.com/mui/material-ui/issues/33883))
[@&#8203;michaldudak](https://togithub.com/michaldudak)
- ​<!-- 09 -->\[docs] Fix layout jump on first mistake
([#&#8203;35215](https://togithub.com/mui/material-ui/issues/35215))
[@&#8203;oliviertassinari](https://togithub.com/oliviertassinari)
- ​<!-- 08 -->\[docs] Support demos with side effect imports
([#&#8203;35177](https://togithub.com/mui/material-ui/issues/35177))
[@&#8203;m4theushw](https://togithub.com/m4theushw)
- ​<!-- 07 -->\[examples] Fix Next.js errors
([#&#8203;35246](https://togithub.com/mui/material-ui/issues/35246))
[@&#8203;oliviertassinari](https://togithub.com/oliviertassinari)
- ​<!-- 06 -->\[examples] Updated Remix examples with the lates changes
using React 18
([#&#8203;35092](https://togithub.com/mui/material-ui/issues/35092))
[@&#8203;58bits](https://togithub.com/58bits)

##### Core

- ​<!-- 17 -->\[core] Remove unused pattern
([#&#8203;35165](https://togithub.com/mui/material-ui/issues/35165))
[@&#8203;iamxukai](https://togithub.com/iamxukai)
- ​<!-- 16 -->\[core] Fix Base version in changelog
([#&#8203;35224](https://togithub.com/mui/material-ui/issues/35224))
[@&#8203;siriwatknp](https://togithub.com/siriwatknp)
- ​<!-- 15 -->\[core] Migrate `describeConformance` to TypeScript
([#&#8203;35193](https://togithub.com/mui/material-ui/issues/35193))
[@&#8203;flaviendelangle](https://togithub.com/flaviendelangle)
- ​<!-- 14 -->\[core] Skip CI for docs and examples paths
([#&#8203;35225](https://togithub.com/mui/material-ui/issues/35225))
[@&#8203;siriwatknp](https://togithub.com/siriwatknp)

All contributors of this release in alphabetical order:
[@&#8203;58bits](https://togithub.com/58bits),
[@&#8203;alexfauquette](https://togithub.com/alexfauquette),
[@&#8203;fenghan34](https://togithub.com/fenghan34),
[@&#8203;flaviendelangle](https://togithub.com/flaviendelangle),
[@&#8203;iamxukai](https://togithub.com/iamxukai),
[@&#8203;leventdeniz](https://togithub.com/leventdeniz),
[@&#8203;m4theushw](https://togithub.com/m4theushw),
[@&#8203;michaldudak](https://togithub.com/michaldudak),
[@&#8203;oliviertassinari](https://togithub.com/oliviertassinari),
[@&#8203;sai6855](https://togithub.com/sai6855),
[@&#8203;siriwatknp](https://togithub.com/siriwatknp),
[@&#8203;ZeeshanTamboli](https://togithub.com/ZeeshanTamboli),
[@&#8203;Zetta56](https://togithub.com/Zetta56)

</details>

<details>
<summary>mui/material-ui (@&#8203;mui/lab)</summary>

###
[`v5.0.0-alpha.119`](33cac17284...d4d8512ce3)

[Compare
Source](33cac17284...d4d8512ce3)

###
[`v5.0.0-alpha.118`](a2e5523148...33cac17284)

[Compare
Source](a2e5523148...33cac17284)

###
[`v5.0.0-alpha.117`](685c72dfaf...a2e5523148)

[Compare
Source](685c72dfaf...a2e5523148)

###
[`v5.0.0-alpha.116`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#muibase500-alpha116)

[Compare
Source](bc859d95e4...685c72dfaf)

- ​<!-- 29 -->\[ListboxUnstyled] Fix option state highlighted to prevent
unnecessary focus
([#&#8203;35838](https://togithub.com/mui/material-ui/issues/35838))
[@&#8203;SaidMarar](https://togithub.com/SaidMarar)

###
[`v5.0.0-alpha.115`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#muibase500-alpha115)

[Compare
Source](e9d8fa07e1...bc859d95e4)

##### Breaking changes

- ​<!-- 04 -->\[SliderUnstyled] Improved logic for displaying the value
label
([#&#8203;35805](https://togithub.com/mui/material-ui/issues/35805))
[@&#8203;ZeeshanTamboli](https://togithub.com/ZeeshanTamboli)

- The `valueLabelDisplay` prop is removed from `SliderUnstyled`. The
prop was not working as intended in `SliderUnstyled` (See
[#&#8203;35398](https://togithub.com/mui/material-ui/issues/35398)). You
can instead provide a `valueLabel` slot with the `slots` prop API to
show the value label:

    ```diff
    - <SliderUnstyled valueLabelDisplay="on" />
    + <SliderUnstyled slots={{ valueLabel: SliderValueLabel }} />
    ```

The following demo shows how to show a value label when it is hovered
over with the thumb: https://mui.com/base/react-slider/#value-label

- The following classes are removed from `sliderUnstyledClasses` since
they are not needed for the value label:

    ```diff
    - valueLabel
    - valueLabelOpen
    - valueLabelCircle
    - valueLabelLabel
    ```

In the custom value label component, you can define your own classNames
and target them with CSS.

- The `SliderValueLabelUnstyled` component is removed from
SliderUnstyled. You should provide your own custom component for the
value label.

- To avoid using `React.cloneElement` API in value label, the component
hierarchy structure of the value label is changed. The value label is
now inside the Thumb slot - `Thumb` -> `Input`, `ValueLabel`.

##### Changes

- ​<!-- 05 -->\[InputUnstyled] Fix externally provided `inputRef` is
ignored
([#&#8203;35807](https://togithub.com/mui/material-ui/issues/35807))
[@&#8203;sai6855](https://togithub.com/sai6855)

###
[`v5.0.0-alpha.114`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#muibase500-alpha114)

[Compare
Source](a1e30390da...e9d8fa07e1)

- \[base] Fix typos
([#&#8203;35802](https://togithub.com/mui/material-ui/issues/35802))
[@&#8203;nnmax](https://togithub.com/nnmax)
- \[Slider] Convert code to TypeScript
([#&#8203;35445](https://togithub.com/mui/material-ui/issues/35445))
[@&#8203;sai6855](https://togithub.com/sai6855)

###
[`v5.0.0-alpha.113`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#muibase500-alpha113)

- \[Portal]\[base] Convert code to TypeScript
([#&#8203;35657](https://togithub.com/mui/material-ui/issues/35657))
[@&#8203;sai6855](https://togithub.com/sai6855)

###
[`v5.0.0-alpha.112`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#muibase500-alpha112)

- ​<!-- 16 -->\[FocusTrap]\[base] Convert code to TypeScript
([#&#8203;35005](https://togithub.com/mui/material-ui/issues/35005))
[@&#8203;trizotti](https://togithub.com/trizotti)
- ​<!-- 08 -->\[Modal]\[base] Convert code to TypeScript
([#&#8203;34793](https://togithub.com/mui/material-ui/issues/34793))
[@&#8203;leventdeniz](https://togithub.com/leventdeniz)
- ​<!-- 07 -->\[Popper]\[base] Convert code to TypeScript
([#&#8203;34771](https://togithub.com/mui/material-ui/issues/34771))
[@&#8203;danhuynhdev](https://togithub.com/danhuynhdev)
- ​<!-- 04 -->\[Slider] Exclude `isRtl` from Material UI's Slider props
([#&#8203;35564](https://togithub.com/mui/material-ui/issues/35564))
[@&#8203;michaldudak](https://togithub.com/michaldudak)

###
[`v5.0.0-alpha.111`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#muibase500-alpha111)

[Compare
Source](b8aa3974d8...4265f343b4)

- \[Button]\[base] Set active class when a subcomponent is clicked
([#&#8203;35410](https://togithub.com/mui/material-ui/issues/35410))
[@&#8203;michaldudak](https://togithub.com/michaldudak)
- \[Popper]\[base] Fix Tooltip Anchor Element Setter
([#&#8203;35469](https://togithub.com/mui/material-ui/issues/35469))
[@&#8203;sydneyjodon-wk](https://togithub.com/sydneyjodon-wk)

###
[`v5.0.0-alpha.110`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#muibase500-alpha110)

[Compare
Source](14a6e1c61e...b8aa3974d8)

- \[PopperUnstyled] Update PopperTooltip to have correct width when
closing with transition
([#&#8203;34714](https://togithub.com/mui/material-ui/issues/34714))
[@&#8203;EduardoSCosta](https://togithub.com/EduardoSCosta)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [x] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC40Mi4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTMzLjAifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-14 17:52:21 +01:00
..
cypress refactor: remove variants per environment feature flag (#3102) 2023-02-14 14:02:02 +00:00
public
src refactor: remove old components after variants per env (#3110) 2023-02-14 16:03:53 +00:00
.editorconfig
.gitignore
.nvmrc
.prettierignore Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
.prettierrc
cypress.json
index.html
index.js
orval.config.js Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
package.json chore(deps): update material-ui monorepo (#2577) 2023-02-14 17:52:21 +01:00
README.md Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
tsconfig.json Add multiple tags (#3032) 2023-02-03 12:28:06 +02:00
tsconfig.node.json Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
vercel.json
vite.config.ts fix: preload error (#2980) 2023-01-24 20:40:03 +01:00
yarn.lock chore(deps): update material-ui monorepo (#2577) 2023-02-14 17:52:21 +01:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

First, start the unleash-api backend on port 4242. Then, start the frontend dev server:

cd ~/frontend
yarn install
yarn run start

Run with a sandbox instance of the Unleash API

Alternatively, instead of running unleash-api on localhost, you can use a remote instance:

cd ~/frontend
yarn install
yarn run start:sandbox

Running end-to-end tests

We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:

yarn run start:sandbox

In a different shell, you can run the tests themselves:

yarn run e2e:heroku

If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:

yarn run e2e

You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:

yarn run start:enterprise
yarn run e2e

Generating the OpenAPI client

The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:

./scripts/generate-openapi.sh

This script assumes that you have a running instance of the enterprise backend at http://localhost:4242. The new OpenAPI client will be generated from the runtime schema of this instance. The target URL can be changed by setting the UNLEASH_OPENAPI_URL env var.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory