@mui/material-nextjs 5.15.0 → 5.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/{CHANGELOG.md → build/CHANGELOG.md} +263 -4
  3. package/build/README.md +3 -0
  4. package/build/legacy/v13-pagesRouter/createCache.js +17 -0
  5. package/build/legacy/v13-pagesRouter/index.js +2 -0
  6. package/build/legacy/v13-pagesRouter/pagesRouterV13App.js +14 -0
  7. package/{legacy/v13-pagesRouter/pagesRouterV13.js → build/legacy/v13-pagesRouter/pagesRouterV13Document.js} +12 -38
  8. package/build/modern/v13-pagesRouter/createCache.js +17 -0
  9. package/build/modern/v13-pagesRouter/index.js +2 -0
  10. package/build/modern/v13-pagesRouter/pagesRouterV13App.js +14 -0
  11. package/{modern/v13-pagesRouter/pagesRouterV13.js → build/modern/v13-pagesRouter/pagesRouterV13Document.js} +6 -31
  12. package/build/node/v13-pagesRouter/createCache.js +24 -0
  13. package/build/node/v13-pagesRouter/index.js +27 -0
  14. package/build/node/v13-pagesRouter/pagesRouterV13App.js +23 -0
  15. package/{node/v13-pagesRouter/pagesRouterV13.js → build/node/v13-pagesRouter/pagesRouterV13Document.js} +7 -33
  16. package/build/package.json +52 -0
  17. package/build/v13-pagesRouter/createCache.d.ts +1 -0
  18. package/build/v13-pagesRouter/createCache.js +17 -0
  19. package/build/v13-pagesRouter/index.d.ts +2 -0
  20. package/build/v13-pagesRouter/index.js +2 -0
  21. package/build/v13-pagesRouter/pagesRouterV13App.d.ts +6 -0
  22. package/build/v13-pagesRouter/pagesRouterV13App.js +14 -0
  23. package/{v13-pagesRouter/pagesRouterV13.d.ts → build/v13-pagesRouter/pagesRouterV13Document.d.ts} +0 -4
  24. package/{v13-pagesRouter/pagesRouterV13.js → build/v13-pagesRouter/pagesRouterV13Document.js} +6 -31
  25. package/package.json +25 -5
  26. package/src/v13-appRouter/appRouterV13.tsx +102 -0
  27. package/src/v13-appRouter/index.ts +3 -0
  28. package/src/v13-pagesRouter/createCache.ts +19 -0
  29. package/src/v13-pagesRouter/index.ts +2 -0
  30. package/src/v13-pagesRouter/pagesRouterV13App.tsx +16 -0
  31. package/src/v13-pagesRouter/pagesRouterV13Document.tsx +115 -0
  32. package/src/v14-appRouter/index.ts +2 -0
  33. package/src/v14-pagesRouter/index.ts +1 -0
  34. package/tsconfig.build.json +15 -0
  35. package/tsconfig.build.tsbuildinfo +1 -0
  36. package/tsconfig.json +7 -0
  37. package/legacy/v13-pagesRouter/index.js +0 -1
  38. package/modern/v13-pagesRouter/index.js +0 -1
  39. package/node/v13-pagesRouter/index.js +0 -16
  40. package/v13-pagesRouter/index.d.ts +0 -1
  41. package/v13-pagesRouter/index.js +0 -1
  42. /package/{LICENSE → build/LICENSE} +0 -0
  43. /package/{legacy → build/legacy}/v13-appRouter/appRouterV13.js +0 -0
  44. /package/{legacy → build/legacy}/v13-appRouter/index.js +0 -0
  45. /package/{legacy → build/legacy}/v14-appRouter/index.js +0 -0
  46. /package/{legacy → build/legacy}/v14-pagesRouter/index.js +0 -0
  47. /package/{modern → build/modern}/v13-appRouter/appRouterV13.js +0 -0
  48. /package/{modern → build/modern}/v13-appRouter/index.js +0 -0
  49. /package/{modern → build/modern}/v14-appRouter/index.js +0 -0
  50. /package/{modern → build/modern}/v14-pagesRouter/index.js +0 -0
  51. /package/{node → build/node}/v13-appRouter/appRouterV13.js +0 -0
  52. /package/{node → build/node}/v13-appRouter/index.js +0 -0
  53. /package/{node → build/node}/v14-appRouter/index.js +0 -0
  54. /package/{node → build/node}/v14-pagesRouter/index.js +0 -0
  55. /package/{v13-appRouter → build/v13-appRouter}/appRouterV13.d.ts +0 -0
  56. /package/{v13-appRouter → build/v13-appRouter}/appRouterV13.js +0 -0
  57. /package/{v13-appRouter → build/v13-appRouter}/index.d.ts +0 -0
  58. /package/{v13-appRouter → build/v13-appRouter}/index.js +0 -0
  59. /package/{v13-appRouter → build/v13-appRouter}/package.json +0 -0
  60. /package/{v13-pagesRouter → build/v13-pagesRouter}/package.json +0 -0
  61. /package/{v14-appRouter → build/v14-appRouter}/index.d.ts +0 -0
  62. /package/{v14-appRouter → build/v14-appRouter}/index.js +0 -0
  63. /package/{v14-appRouter → build/v14-appRouter}/package.json +0 -0
  64. /package/{v14-pagesRouter → build/v14-pagesRouter}/index.d.ts +0 -0
  65. /package/{v14-pagesRouter → build/v14-pagesRouter}/index.js +0 -0
  66. /package/{v14-pagesRouter → build/v14-pagesRouter}/package.json +0 -0
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @mui/material-nextjs
2
2
 
3
- The official integration of Material-UI with Next.js. For full documentation, visit [Next.js Integration](material-ui/guides/nextjs/) page.
3
+ The official Material UI integration with Next.js. For the full documentation, visit [Next.js integration](https://mui.com/material-ui/guides/nextjs/) page.
@@ -1,5 +1,264 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.15.4
4
+
5
+ <!-- generated comparing v5.15.3..master -->
6
+
7
+ _Jan 10, 2024_
8
+
9
+ A big thanks to the 22 contributors who made this release possible. Here are some highlights:
10
+
11
+ - ✨ Material UI's [ToggleButtonGroup](https://mui.com/material-ui/react-toggle-button/) now supports non-button element as a child (e.g., showing a Tooltip on a disabled ToggleButton) (#40220) @Methuselah96
12
+
13
+ ### `@mui/material@5.15.4`
14
+
15
+ - [TextField][FormLabel][InputLabel][FormControl] Use exact children type to allow React children type augmentation (#38872) @nicegamer7
16
+ - [Select] Add form submission regression test (#40176) @mj12albert
17
+ - [ToggleButtonGroup] Support different elements under it (#40220) @Methuselah96
18
+ - [ClickAwayListener] Fix export of types (#40485) @illume
19
+
20
+ ### `@mui/material-nextjs@5.15.4`
21
+
22
+ - Improve build size issue (#40436) @siriwatknp
23
+
24
+ ### `@mui/icons-material@5.15.4`
25
+
26
+ - Update the icons (#40365) @michaldudak
27
+
28
+ ### `@mui/system@5.15.4`
29
+
30
+ - [zero] Move zero runtime related packages (#40426) @brijeshb42
31
+ - Fix all use of styled(Box) (#40449) @oliviertassinari
32
+
33
+ ### `@mui/utils@5.15.4`
34
+
35
+ - Fix `isPlainObject` to work across realm (#39981) @brijeshb42
36
+
37
+ ### `@mui/base@5.0.0-beta.31`
38
+
39
+ - [base-ui][NumberInput] Remove inputId and inputRef types from NumberInput component (#40425) @sai6855
40
+
41
+ ### `@mui/joy@5.0.0-beta.22`
42
+
43
+ - [Badge] Shouldn't crash when using custom size (#39986) @iamsaumya
44
+ - [ToggleButtonGroup] Add `JoyToggleButtonGroup` to extendTheme's components type export (#40407) @RiceCrisp
45
+
46
+ ### Docs
47
+
48
+ - [base-ui] Visual tweaks to the plain CSS theme stylesheet (#40487) @zanivan
49
+ - [base-ui] Add tokens to plain CSS theme stylesheet (#40113) @zanivan
50
+ - [base-ui] Update the overview page (#40412) @danilo-leal
51
+ - [material-ui][Drawer] Resolve flickering when double-clicking on the backdrop to close it (#40343) @aacevski
52
+ - [material-ui] Refactor form submission in FormDialog component (#40470) @sai6855
53
+ - [material-ui] Replace recharts with MUI X charts on the Dashboard template (#40107) @alexfauquette
54
+ - [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
55
+ - [material-ui] Revise the Accordion page (#40284) @anle9650
56
+ - [material-ui] Add docs for complementary Card components (#40346) @anle9650
57
+ - [material-ui] Add Material 3 components page (#40350) @DiegoAndai
58
+ - Fix strange italic style @oliviertassinari
59
+ - Fix references to ESLint @oliviertassinari
60
+ - Fix 301 redirections @oliviertassinari
61
+ - Right-to-left revision and addition to Joy UI (#39158) @danilo-leal
62
+
63
+ ### Core
64
+
65
+ - [examples] Use material-nextjs integration package (#40199) @siriwatknp
66
+ - [code-infra] Configure build dependencies in nx (#40482) @michaldudak
67
+ - [code-infra] Don't require noreferrer on target link (#40447) @oliviertassinari
68
+ - [code-infra] Use tsx instead of ts-node (#40428) @michaldudak
69
+ - [code-infra] Add options to docs-api generation to support X code structure (#40111) @alexfauquette
70
+ - [docs-infra] Add types for withDocsInfra (#40301) @oliviertassinari
71
+ - [docs-infra] Fix anchor links in API pages (#40450) @oliviertassinari
72
+ - [docs-infra] Fix API table full-width (#40476) @oliviertassinari
73
+ - [docs-infra] Fix the copy button overlapping with the scrollbar (#40405) @danilo-leal
74
+ - [docs-infra] Remove explicit `mui-x` dependency resolving (#40257) @LukasTy
75
+ - [docs-infra] Update the outlined Demo container dark mode color (#40488) @danilo-leal
76
+ - [core] Lock file maintenance (#34538) @renovate[bot]
77
+ - [core] Remove duplicate devDependencies (#40438) @michaldudak
78
+ - [core] Remove issue emoji @oliviertassinari
79
+ - [core] Move prefetch at the core, will propagate to MUI X @oliviertassinari
80
+ - [core] Change package manager to pnpm (#36287) @Janpot
81
+ - [core][docs] Remove the "Understand MUI packages" page (#39835) @savalaram-redkar
82
+ - [website] Evolve the Developer Advocate role (#40337) @oliviertassinari
83
+ - [website] Fix default social card @oliviertassinari
84
+ - [test] Restore the `t` command (#40430) @michaldudak
85
+
86
+ All contributors of this release in alphabetical order: @aacevski, @alexfauquette, @anle9650, @brijeshb42, @danilo-leal, @DiegoAndai, @iamsaumya, @illume, @Janpot, @LukasTy, @Methuselah96, @michaldudak, @mj12albert, @nicegamer7, @oliviertassinari, @renovate[bot], @RiceCrisp, @sai6855, @samuelsycamore, @savalaram-redkar, @siriwatknp, @zanivan
87
+
88
+ ## 5.15.3
89
+
90
+ <!-- generated comparing v5.15.2..master -->
91
+
92
+ _Jan 3, 2024_
93
+
94
+ A big thanks to the 11 contributors who made this release possible.
95
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
96
+
97
+ ### `@mui/material-nextjs@5.15.3`
98
+
99
+ - &#8203;<!-- 06 -->[material-nextjs] Fix order of emotion server (#40409) @siriwatknp
100
+
101
+ ### `@mui/base@5.0.0-beta.30`
102
+
103
+ - &#8203;<!-- 40 -->[useSlider] Rearrange passive option in eventlisteners (#40235) @Kamino0
104
+
105
+ ### `@mui/lab@5.0.0-alpha.159`
106
+
107
+ - &#8203;<!-- 14 -->Add use client directive (#40358) @DiegoAndai
108
+
109
+ ### `@mui/material-next@6.0.0-alpha.116`
110
+
111
+ - &#8203;<!-- 13 -->[List] Copy all List\* components to material-next package (#40367) @sai6855
112
+ - &#8203;<!-- 12 -->Update CONTRIBUTING guide given v6/v7 rescheduling (#40363) @DiegoAndai
113
+ - &#8203;<!-- 11 -->[MenuItem] Fix spec import (#40271) @DiegoAndai
114
+ - &#8203;<!-- 10 -->[Option] Add Option component (#40270) @DiegoAndai
115
+ - &#8203;<!-- 09 -->[Slider] Replace lodash with internal utils (#40261) @DiegoAndai
116
+ - &#8203;<!-- 08 -->[Switch] Change files to TypeScript (#39894) @lhilgert9
117
+ - &#8203;<!-- 07 -->[theme] Move ref palette out of color schemes (#40341) @DiegoAndai
118
+
119
+ ### Docs
120
+
121
+ - &#8203;<!-- 41 -->[base-ui] Polish the Table Pagination demos (#40281) @danilo-leal
122
+ - &#8203;<!-- 22 -->[joy-ui] Fix dashboard template console errors (#40316) @oliviertassinari
123
+ - &#8203;<!-- 21 -->[joy-ui] Fix image size on the Files template (#40315) @oliviertassinari
124
+ - &#8203;<!-- 20 -->[material-ui] Revise the Divider page (#40356) @danilo-leal
125
+ - &#8203;<!-- 19 -->[material-ui] Polish the Next.js integration page (#40317) @oliviertassinari
126
+ - &#8203;<!-- 18 -->[material-ui] Adding autoFocus on Virtual Popover (#40239) @aacevski
127
+ - &#8203;<!-- 17 -->[material-ui] Revise the Roadmap page (#40054) @danilo-leal
128
+ - &#8203;<!-- 16 -->[material-ui] Update the "showing and hiding" section on the Tooltip page (#40283) @anle9650
129
+ - &#8203;<!-- 05 -->[material-ui] Fix Slider's customized iOS demo to use updated official colors (#39813) @Super-Kenil
130
+ - &#8203;<!-- 15 -->[examples] Simplify Next.js example (#40318) @oliviertassinari
131
+
132
+ ### Core
133
+
134
+ - &#8203;<!-- 39 -->[blog] Update open-graph cards for all posts (#40328) @danilo-leal
135
+ - &#8203;<!-- 38 -->[blog] Correct git diff @oliviertassinari
136
+ - &#8203;<!-- 37 -->[code-infra] Update lerna and unpin its version (#40399) @michaldudak
137
+ - &#8203;<!-- 36 -->[code-infra] Break package dependency cycle between @mui/material and @mui/icons-material (#40400) @michaldudak
138
+ - &#8203;<!-- 35 -->[code-infra] Break package dependency cycles (#40398) @michaldudak
139
+ - &#8203;<!-- 34 -->[code-infra] Sync bug issue template (#40305) @oliviertassinari
140
+ - &#8203;<!-- 33 -->[docs] Fix 301 link to Base UI (#40396) @oliviertassinari
141
+ - &#8203;<!-- 32 -->[docs] Link new MUI X components in sidnav (#40345) @oliviertassinari
142
+ - &#8203;<!-- 31 -->[docs] Fix 301 links to Toolpad @oliviertassinari
143
+ - &#8203;<!-- 30 -->[docs] Remove old notifications @oliviertassinari
144
+ - &#8203;<!-- 29 -->[docs] Always mention the npm tag with npx (#40335) @oliviertassinari
145
+ - &#8203;<!-- 28 -->[docs] Reduce network use on the All Components pages (#40313) @oliviertassinari
146
+ - &#8203;<!-- 27 -->[docs-infra] Fix missing button aria-label (#40394) @oliviertassinari
147
+ - &#8203;<!-- 26 -->[docs-infra] Fix a11y violation rule (#40393) @oliviertassinari
148
+ - &#8203;<!-- 25 -->[docs-infra] Prefetch pages on hover (#40314) @oliviertassinari
149
+ - &#8203;<!-- 24 -->[docs-infra] Fix footer links to link to the main domain (#40373) @oliviertassinari
150
+ - &#8203;<!-- 23 -->[docs-infra] Add stray design adjustments (#40347) @danilo-leal
151
+ - &#8203;<!-- 04 -->[website] Fix Base UI page's component section imports & styles (#40231) @danilo-leal
152
+ - &#8203;<!-- 03 -->[website] Fix outdated Nhost image link @oliviertassinari
153
+ - &#8203;<!-- 02 -->[website] Shorten Joy UI description, 7 chars too long @oliviertassinari
154
+ - &#8203;<!-- 01 -->[website] Update some social preview images (#40282) @danilo-leal
155
+
156
+ All contributors of this release in alphabetical order: @aacevski, @anle9650, @danilo-leal, @DiegoAndai, @Kamino0, @lhilgert9, @michaldudak, @oliviertassinari, @sai6855, @siriwatknp, @Super-Kenil
157
+
158
+ ## 5.15.2
159
+
160
+ <!-- generated comparing v5.15.1..master -->
161
+
162
+ _Dec 25, 2023_
163
+
164
+ A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
165
+
166
+ - 🚀 Added support for callbacks in the [variant's props definition](https://mui.com/material-ui/customization/theme-components/#creating-new-component-variants) (#40094) @mnajdova
167
+ - 💫 Published a [blogpost](https://mui.com/blog/2023-material-ui-v6-and-beyond/) for the 2024's plan about Material UI
168
+
169
+ ### `@mui/material@5.15.2`
170
+
171
+ - &#8203;<!-- 31 -->[Badge] Use the variants API in the styled call (#40213) @mnajdova
172
+ - &#8203;<!-- 04 -->[Paper] Add missing Paper classes descriptions (#40300) @sai6855
173
+
174
+ ### `@mui/system@5.15.2`
175
+
176
+ - &#8203;<!-- 03 -->Support props callback in the variant's definition (#40094) @mnajdova
177
+
178
+ ### `@mui/base@5.0.0-beta.29`
179
+
180
+ - &#8203;<!-- 29 -->[Popup] Use context-based transition API (#39326) @michaldudak
181
+ - &#8203;<!-- 28 -->[Popup] Popup no longer opens outside viewport (#39827) @adamhylander
182
+ - &#8203;<!-- 27 -->[useSelect] Refactor to use DOM focus management instead of active descendant (#39675) @DiegoAndai
183
+
184
+ ### `@mui/material-next@6.0.0-alpha.115`
185
+
186
+ - &#8203;<!-- 15 -->[material-next][Divider]Divider ts support (#40307) @sai6855
187
+
188
+ ### Docs
189
+
190
+ - &#8203;<!-- 30 -->[base-ui] Fix form submission Select demo (#40014) @ZeeshanTamboli
191
+ - &#8203;<!-- 24 -->[blog] Add Material UI v6 and beyond blog post (#40242) @mnajdova
192
+ - &#8203;<!-- 10 -->[material-ui] Fix broken links in the All components page (#40303) @muazaqdas
193
+ - &#8203;<!-- 09 -->[material-ui] Fix broken links on the All components page (#40279) @danilo-leal
194
+ - &#8203;<!-- 08 -->[material-ui] Add aria-current for nav tabs demo (#39594) @Kimzify
195
+ - &#8203;<!-- 07 -->[material-ui] Add an "All components" page (#40256) @danilo-leal
196
+ - &#8203;<!-- 06 -->[material-ui][Tooltip] Add demo to show how to change distance between tooltip and its anchor (#40087) @anle9650
197
+
198
+ ### Core
199
+
200
+ - &#8203;<!-- 26 -->[blog] Fix 301 redirection @oliviertassinari
201
+ - &#8203;<!-- 25 -->[blog] Reduce max image size @oliviertassinari
202
+ - &#8203;<!-- 23 -->[code-infra] Extract Babel macro from mui-utils (#40262) @michaldudak
203
+ - &#8203;<!-- 22 -->[core] Simplify a bit the release instructions @oliviertassinari
204
+ - &#8203;<!-- 21 -->[core] Push force to deploy is not unexpected @oliviertassinari
205
+ - &#8203;<!-- 20 -->[core] Fix CSS2 vs. CSS3 ::after syntax @oliviertassinari
206
+ - &#8203;<!-- 19 -->[core] Fix CSS2 vs. CSS3 ::before syntax @oliviertassinari
207
+ - &#8203;<!-- 05 -->[core] Use direct import from utils package (#40254) @siriwatknp
208
+ - &#8203;<!-- 18 -->[core] Yaml format match most common convention @oliviertassinari
209
+ - &#8203;<!-- 17 -->[core] Polish docs-feedback issue template @oliviertassinari
210
+ - &#8203;<!-- 16 -->[core] Pin Node version on GitHub Actions to 18.18 (#40187) @michaldudak
211
+ - &#8203;<!-- 14 -->[docs] Fix SEO regression (#40306) @oliviertassinari
212
+ - &#8203;<!-- 13 -->[docs] Fix docs redirections @oliviertassinari
213
+ - &#8203;<!-- 12 -->[docs] Update the Contributing guide to give more guidance on documentation (#40274) @samuelsycamore
214
+ - &#8203;<!-- 11 -->[docs-infra] Add polish to the inline code block (#40260) @danilo-leal
215
+ - &#8203;<!-- 02 -->[website] Update Gold sponsors: add RxDB, standardize formatting (#40273) @samuelsycamore
216
+ - &#8203;<!-- 01 -->[website] Revert change to homepage SEO attributes @oliviertassinari
217
+
218
+ All contributors of this release in alphabetical order: @adamhylander, @anle9650, @danilo-leal, @DiegoAndai, @Kimzify, @michaldudak, @mnajdova, @muazaqdas, @oliviertassinari, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
219
+
220
+ ## 5.15.1
221
+
222
+ <!-- generated comparing v5.15.0..master -->
223
+
224
+ _Dec 19, 2023_
225
+
226
+ A big thanks to the 15 contributors who made this release possible.
227
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
228
+
229
+ ### `@mui/material@5.15.1`
230
+
231
+ - &#8203;<!-- 13 -->[CardActions][DialogActions] Apply margin for all children except for 1st child (#40168) @sai6855
232
+ - &#8203;<!-- 03 -->[TablePagination] Add ability to change icons in TablePaginationActions using `slots` and `slotProps` (#33797) @pratikkarad
233
+ - &#8203;<!-- 13 -->[CssVarsProvider] Fix HSL breaking button styles (#39869) @gitstart
234
+
235
+ ### `@mui/joy@5.0.0-beta.19`
236
+
237
+ - &#8203;<!-- 05 -->[FormControl] Fix issue with the conditional setting of `htmlFor` and `id` attributes not functioning properly for form labels (#40180) @ReaZzy
238
+ - &#8203;<!-- 04 -->[typescript] Address TypeScript issue with custom zIndex not functioning (#40133) @qiweiii
239
+
240
+ ### `@mui/styled-engine-sc@6.0.0-alpha.9`
241
+
242
+ - &#8203;<!-- 02 -->[typescript] Fix `theme` being of type any (#40200) @mnajdova
243
+
244
+ ### Docs
245
+
246
+ - &#8203;<!-- 09 -->[joy-ui] Fix typo in the CSS baseline page (#40222) @possibilities
247
+ - &#8203;<!-- 08 -->[joy-ui] Document missing Autocomplete props (#39979) @ZeeshanTamboli
248
+ - &#8203;<!-- 10 -->[joy-ui] Fix typo about Typography levels (#40230) @zanivan
249
+ - &#8203;<!-- 07 -->[material-ui] Update the related projects page to list `mui-tiptap` for rich text (#40216) @sjdemartini
250
+ - &#8203;<!-- 06 -->[material-ui] Fix typo in the Next.js integration page (#40209) @s8990
251
+
252
+ ### Core
253
+
254
+ - &#8203;<!-- 14 -->[blog] Fix access to Notion without an account @oliviertassinari
255
+ - &#8203;<!-- 12 -->[core] Update workflows and issue templates to reflect the updated label (#40197) @MBilalShafi
256
+ - &#8203;<!-- 11 -->[docs] Replace Twitter with X (#40193) @mbrookes
257
+ - &#8203;<!-- 10 -->[docs-infra] Uplift the Algolia search modal design (#40186) @danilo-leal
258
+ - &#8203;<!-- 01 -->[website] Update product descriptions and social preview images (#32181) @danilo-leal
259
+
260
+ All contributors of this release in alphabetical order: @danilo-leal, @gitstart, @MBilalShafi, @mbrookes, @mnajdova, @oliviertassinari, @possibilities, @pratikkarad, @qiweiii, @ReaZzy, @s8990, @sai6855, @sjdemartini, @zanivan, @ZeeshanTamboli
261
+
3
262
  ## 5.15.0
4
263
 
5
264
  <!-- generated comparing v5.14.20..master -->
@@ -1265,7 +1524,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
1265
1524
  A codemod is provided to help with the migration:
1266
1525
 
1267
1526
  ```bash
1268
- npx @mui/codemod v5.0.0/base-use-named-exports <path>
1527
+ npx @mui/codemod@latest v5.0.0/base-use-named-exports <path>
1269
1528
  ```
1270
1529
 
1271
1530
  #### Changes
@@ -2147,7 +2406,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
2147
2406
  There is codemod that you can run in your project to do the transformation:
2148
2407
 
2149
2408
  ```bash
2150
- npx @mui/codemod v5.0.0/base-remove-component-prop <path>
2409
+ npx @mui/codemod@latest v5.0.0/base-remove-component-prop <path>
2151
2410
  ```
2152
2411
 
2153
2412
  The full documentation about the codemod can be found [here](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#base-remove-component-prop).
@@ -2246,7 +2505,7 @@ A big thanks to the 12 contributors who made this release possible. Here are som
2246
2505
  You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/src/v5.0.0/base-remove-unstyled-suffix.js) to help with the migration:
2247
2506
 
2248
2507
  ```bash
2249
- npx @mui/codemod v5.0.0/base-remove-unstyled-suffix <path>
2508
+ npx @mui/codemod@latest v5.0.0/base-remove-unstyled-suffix <path>
2250
2509
  ```
2251
2510
 
2252
2511
  #### Changes
@@ -12306,7 +12565,7 @@ Here are some highlights ✨:
12306
12565
 
12307
12566
  - 👩‍🎨 A first iteration on the new styling solution.
12308
12567
 
12309
- You can find a [new version](https://mui.com/components/slider-styled/) of the slider in the lab powered by [emotion](https://emotion.sh/).
12568
+ You can find a [new version](https://mui.com/components/slider-styled/) of the slider in the lab powered by [Emotion](https://emotion.sh/).
12310
12569
 
12311
12570
  In the event that you are already using styled-components in your application, you can swap emotion for styled-components 💅. Check [this CodeSandbox](https://codesandbox.io/p/sandbox/sliderstyled-with-styled-components-forked-olc27?file=/package.json) for a demo. It relies on aliases to prevent any bundle size overhead.
12312
12571
 
@@ -0,0 +1,3 @@
1
+ # @mui/material-nextjs
2
+
3
+ The official Material UI integration with Next.js. For the full documentation, visit [Next.js integration](https://mui.com/material-ui/guides/nextjs/) page.
@@ -0,0 +1,17 @@
1
+ import createCache from '@emotion/cache';
2
+ var isBrowser = typeof document !== 'undefined';
3
+
4
+ // On the client side, Create a meta tag at the top of the <head> and set it as insertionPoint.
5
+ // This assures that MUI styles are loaded first.
6
+ // It allows developers to easily override MUI styles with other styling solutions, like CSS modules.
7
+ export default function createEmotionCache() {
8
+ var insertionPoint;
9
+ if (isBrowser) {
10
+ var emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
11
+ insertionPoint = emotionInsertionPoint != null ? emotionInsertionPoint : undefined;
12
+ }
13
+ return createCache({
14
+ key: 'mui',
15
+ insertionPoint: insertionPoint
16
+ });
17
+ }
@@ -0,0 +1,2 @@
1
+ export * from './pagesRouterV13Document';
2
+ export * from './pagesRouterV13App';
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { CacheProvider } from '@emotion/react';
3
+ import createEmotionCache from './createCache';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ var defaultEmotionCache = createEmotionCache();
6
+ export function AppCacheProvider(_ref) {
7
+ var _ref$emotionCache = _ref.emotionCache,
8
+ emotionCache = _ref$emotionCache === void 0 ? defaultEmotionCache : _ref$emotionCache,
9
+ children = _ref.children;
10
+ return /*#__PURE__*/_jsx(CacheProvider, {
11
+ value: emotionCache,
12
+ children: children
13
+ });
14
+ }
@@ -4,38 +4,11 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
4
  var _meta;
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  import * as React from 'react';
7
- import { CacheProvider } from '@emotion/react';
8
- import createCache from '@emotion/cache';
9
7
  import createEmotionServer from '@emotion/server/create-instance';
10
8
  import Document from 'next/document';
9
+ import createEmotionCache from './createCache';
11
10
  import { jsx as _jsx } from "react/jsx-runtime";
12
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
- var isBrowser = typeof document !== 'undefined';
14
-
15
- // On the client side, Create a meta tag at the top of the <head> and set it as insertionPoint.
16
- // This assures that MUI styles are loaded first.
17
- // It allows developers to easily override MUI styles with other styling solutions, like CSS modules.
18
- function createEmotionCache() {
19
- var insertionPoint;
20
- if (isBrowser) {
21
- var emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
22
- insertionPoint = emotionInsertionPoint != null ? emotionInsertionPoint : undefined;
23
- }
24
- return createCache({
25
- key: 'mui',
26
- insertionPoint: insertionPoint
27
- });
28
- }
29
- var defaultEmotionCache = createEmotionCache();
30
- export function AppCacheProvider(_ref) {
31
- var _ref$emotionCache = _ref.emotionCache,
32
- emotionCache = _ref$emotionCache === void 0 ? defaultEmotionCache : _ref$emotionCache,
33
- children = _ref.children;
34
- return /*#__PURE__*/_jsx(CacheProvider, {
35
- value: emotionCache,
36
- children: children
37
- });
38
- }
39
12
  /**
40
13
  * A utility to compose multiple `getInitialProps` functions.
41
14
  */
@@ -62,7 +35,7 @@ export function createGetInitialProps(plugins) {
62
35
  initialProps = _context2.sent;
63
36
  _context2.next = 7;
64
37
  return plugins.reduce( /*#__PURE__*/function () {
65
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(result, plugin) {
38
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(result, plugin) {
66
39
  return _regeneratorRuntime.wrap(function _callee$(_context) {
67
40
  while (1) switch (_context.prev = _context.next) {
68
41
  case 0:
@@ -79,7 +52,7 @@ export function createGetInitialProps(plugins) {
79
52
  }, _callee);
80
53
  }));
81
54
  return function (_x2, _x3) {
82
- return _ref2.apply(this, arguments);
55
+ return _ref.apply(this, arguments);
83
56
  };
84
57
  }(), Promise.resolve(initialProps));
85
58
  case 7:
@@ -97,8 +70,8 @@ export function createGetInitialProps(plugins) {
97
70
  return getInitialProps;
98
71
  }();
99
72
  }
100
- export function DocumentHeadTags(_ref3) {
101
- var emotionStyleTags = _ref3.emotionStyleTags;
73
+ export function DocumentHeadTags(_ref2) {
74
+ var emotionStyleTags = _ref2.emotionStyleTags;
102
75
  return /*#__PURE__*/_jsxs(React.Fragment, {
103
76
  children: [_meta || (_meta = /*#__PURE__*/_jsx("meta", {
104
77
  name: "emotion-insertion-point",
@@ -115,7 +88,7 @@ export function documentGetInitialProps(_x4, _x5) {
115
88
  function _documentGetInitialProps() {
116
89
  _documentGetInitialProps = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(ctx, options) {
117
90
  var _options$emotionCache, _options$plugins;
118
- var cache;
91
+ var cache, _createEmotionServer, extractCriticalToChunks;
119
92
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
120
93
  while (1) switch (_context4.prev = _context4.next) {
121
94
  case 0:
@@ -142,7 +115,9 @@ function _documentGetInitialProps() {
142
115
  // 4. page.render
143
116
  // You can consider sharing the same Emotion cache between all the SSR requests to speed up performance.
144
117
  // However, be aware that it can have global side effects.
145
- cache = (_options$emotionCache = options == null ? void 0 : options.emotionCache) != null ? _options$emotionCache : createEmotionCache();
118
+ cache = (_options$emotionCache = options == null ? void 0 : options.emotionCache) != null ? _options$emotionCache : createEmotionCache(); // The createEmotionServer has to be called directly after the cache creation due to the side effect of cache.compat = true,
119
+ // otherwise the <style> tag will not come with the HTML string from the server.
120
+ _createEmotionServer = createEmotionServer(cache), extractCriticalToChunks = _createEmotionServer.extractCriticalToChunks;
146
121
  return _context4.abrupt("return", createGetInitialProps([{
147
122
  enhanceApp: function enhanceApp(App) {
148
123
  return function EnhanceApp(props) {
@@ -153,11 +128,10 @@ function _documentGetInitialProps() {
153
128
  },
154
129
  resolveProps: function () {
155
130
  var _resolveProps = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(initialProps) {
156
- var _createEmotionServer, extractCriticalToChunks, _extractCriticalToChu, styles;
131
+ var _extractCriticalToChu, styles;
157
132
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
158
133
  while (1) switch (_context3.prev = _context3.next) {
159
134
  case 0:
160
- _createEmotionServer = createEmotionServer(cache), extractCriticalToChunks = _createEmotionServer.extractCriticalToChunks;
161
135
  _extractCriticalToChu = extractCriticalToChunks(initialProps.html), styles = _extractCriticalToChu.styles;
162
136
  return _context3.abrupt("return", _extends({}, initialProps, {
163
137
  emotionStyleTags: styles.map(function (style) {
@@ -170,7 +144,7 @@ function _documentGetInitialProps() {
170
144
  }, style.key);
171
145
  })
172
146
  }));
173
- case 3:
147
+ case 2:
174
148
  case "end":
175
149
  return _context3.stop();
176
150
  }
@@ -182,7 +156,7 @@ function _documentGetInitialProps() {
182
156
  return resolveProps;
183
157
  }()
184
158
  }].concat(_toConsumableArray((_options$plugins = options == null ? void 0 : options.plugins) != null ? _options$plugins : [])))(ctx));
185
- case 2:
159
+ case 3:
186
160
  case "end":
187
161
  return _context4.stop();
188
162
  }
@@ -0,0 +1,17 @@
1
+ import createCache from '@emotion/cache';
2
+ const isBrowser = typeof document !== 'undefined';
3
+
4
+ // On the client side, Create a meta tag at the top of the <head> and set it as insertionPoint.
5
+ // This assures that MUI styles are loaded first.
6
+ // It allows developers to easily override MUI styles with other styling solutions, like CSS modules.
7
+ export default function createEmotionCache() {
8
+ let insertionPoint;
9
+ if (isBrowser) {
10
+ const emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
11
+ insertionPoint = emotionInsertionPoint ?? undefined;
12
+ }
13
+ return createCache({
14
+ key: 'mui',
15
+ insertionPoint
16
+ });
17
+ }
@@ -0,0 +1,2 @@
1
+ export * from './pagesRouterV13Document';
2
+ export * from './pagesRouterV13App';
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { CacheProvider } from '@emotion/react';
3
+ import createEmotionCache from './createCache';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const defaultEmotionCache = createEmotionCache();
6
+ export function AppCacheProvider({
7
+ emotionCache = defaultEmotionCache,
8
+ children
9
+ }) {
10
+ return /*#__PURE__*/_jsx(CacheProvider, {
11
+ value: emotionCache,
12
+ children: children
13
+ });
14
+ }
@@ -1,38 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  var _meta;
3
3
  import * as React from 'react';
4
- import { CacheProvider } from '@emotion/react';
5
- import createCache from '@emotion/cache';
6
4
  import createEmotionServer from '@emotion/server/create-instance';
7
5
  import Document from 'next/document';
6
+ import createEmotionCache from './createCache';
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
- const isBrowser = typeof document !== 'undefined';
11
-
12
- // On the client side, Create a meta tag at the top of the <head> and set it as insertionPoint.
13
- // This assures that MUI styles are loaded first.
14
- // It allows developers to easily override MUI styles with other styling solutions, like CSS modules.
15
- function createEmotionCache() {
16
- let insertionPoint;
17
- if (isBrowser) {
18
- const emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
19
- insertionPoint = emotionInsertionPoint ?? undefined;
20
- }
21
- return createCache({
22
- key: 'mui',
23
- insertionPoint
24
- });
25
- }
26
- const defaultEmotionCache = createEmotionCache();
27
- export function AppCacheProvider({
28
- emotionCache = defaultEmotionCache,
29
- children
30
- }) {
31
- return /*#__PURE__*/_jsx(CacheProvider, {
32
- value: emotionCache,
33
- children: children
34
- });
35
- }
36
9
  /**
37
10
  * A utility to compose multiple `getInitialProps` functions.
38
11
  */
@@ -86,6 +59,11 @@ export async function documentGetInitialProps(ctx, options) {
86
59
  // You can consider sharing the same Emotion cache between all the SSR requests to speed up performance.
87
60
  // However, be aware that it can have global side effects.
88
61
  const cache = options?.emotionCache ?? createEmotionCache();
62
+ // The createEmotionServer has to be called directly after the cache creation due to the side effect of cache.compat = true,
63
+ // otherwise the <style> tag will not come with the HTML string from the server.
64
+ const {
65
+ extractCriticalToChunks
66
+ } = createEmotionServer(cache);
89
67
  return createGetInitialProps([{
90
68
  enhanceApp: App => function EnhanceApp(props) {
91
69
  return /*#__PURE__*/_jsx(App, _extends({
@@ -93,9 +71,6 @@ export async function documentGetInitialProps(ctx, options) {
93
71
  }, props));
94
72
  },
95
73
  resolveProps: async initialProps => {
96
- const {
97
- extractCriticalToChunks
98
- } = createEmotionServer(cache);
99
74
  const {
100
75
  styles
101
76
  } = extractCriticalToChunks(initialProps.html);
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = createEmotionCache;
8
+ var _cache = _interopRequireDefault(require("@emotion/cache"));
9
+ const isBrowser = typeof document !== 'undefined';
10
+
11
+ // On the client side, Create a meta tag at the top of the <head> and set it as insertionPoint.
12
+ // This assures that MUI styles are loaded first.
13
+ // It allows developers to easily override MUI styles with other styling solutions, like CSS modules.
14
+ function createEmotionCache() {
15
+ let insertionPoint;
16
+ if (isBrowser) {
17
+ const emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
18
+ insertionPoint = emotionInsertionPoint != null ? emotionInsertionPoint : undefined;
19
+ }
20
+ return (0, _cache.default)({
21
+ key: 'mui',
22
+ insertionPoint
23
+ });
24
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _pagesRouterV13Document = require("./pagesRouterV13Document");
7
+ Object.keys(_pagesRouterV13Document).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _pagesRouterV13Document[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _pagesRouterV13Document[key];
14
+ }
15
+ });
16
+ });
17
+ var _pagesRouterV13App = require("./pagesRouterV13App");
18
+ Object.keys(_pagesRouterV13App).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _pagesRouterV13App[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _pagesRouterV13App[key];
25
+ }
26
+ });
27
+ });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.AppCacheProvider = AppCacheProvider;
8
+ var React = _interopRequireWildcard(require("react"));
9
+ var _react2 = require("@emotion/react");
10
+ var _createCache = _interopRequireDefault(require("./createCache"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ const defaultEmotionCache = (0, _createCache.default)();
15
+ function AppCacheProvider({
16
+ emotionCache = defaultEmotionCache,
17
+ children
18
+ }) {
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.CacheProvider, {
20
+ value: emotionCache,
21
+ children: children
22
+ });
23
+ }