@sitecore/sc-contenthub-blok 1.0.32 → 2.0.1

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 (568) hide show
  1. package/node_modules/@babel/code-frame/package.json +2 -2
  2. package/node_modules/@babel/generator/lib/buffer.js +11 -8
  3. package/node_modules/@babel/generator/lib/buffer.js.map +1 -1
  4. package/node_modules/@babel/generator/lib/node/index.js +22 -8
  5. package/node_modules/@babel/generator/lib/node/index.js.map +1 -1
  6. package/node_modules/@babel/generator/lib/printer.js +2 -1
  7. package/node_modules/@babel/generator/lib/printer.js.map +1 -1
  8. package/node_modules/@babel/generator/lib/source-map.js +3 -1
  9. package/node_modules/@babel/generator/lib/source-map.js.map +1 -1
  10. package/node_modules/@babel/generator/package.json +6 -6
  11. package/node_modules/@babel/helper-globals/package.json +1 -1
  12. package/node_modules/@babel/helper-module-imports/package.json +4 -4
  13. package/node_modules/@babel/helper-string-parser/package.json +1 -1
  14. package/node_modules/@babel/helper-validator-identifier/package.json +1 -1
  15. package/node_modules/@babel/parser/lib/index.js +19 -7
  16. package/node_modules/@babel/parser/lib/index.js.map +1 -1
  17. package/node_modules/@babel/parser/package.json +7 -7
  18. package/node_modules/@babel/parser/typings/babel-parser.d.ts +1 -1
  19. package/node_modules/@babel/runtime/package.json +1 -1
  20. package/node_modules/@babel/template/package.json +4 -4
  21. package/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
  22. package/node_modules/@babel/traverse/lib/visitors.js +1 -1
  23. package/node_modules/@babel/traverse/package.json +9 -9
  24. package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
  25. package/node_modules/@babel/types/lib/builders/generated/lowercase.js +2 -1
  26. package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -1
  27. package/node_modules/@babel/types/lib/definitions/core.js +11 -1
  28. package/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
  29. package/node_modules/@babel/types/lib/index-legacy.d.ts +4 -5
  30. package/node_modules/@babel/types/lib/index.d.ts +5 -6
  31. package/node_modules/@babel/types/lib/index.js.flow +4 -5
  32. package/node_modules/@babel/types/package.json +6 -6
  33. package/node_modules/@mui/core-downloads-tracker/LICENSE +1 -1
  34. package/node_modules/@mui/core-downloads-tracker/package.json +1 -1
  35. package/node_modules/@mui/material/Accordion/Accordion.d.mts +2 -2
  36. package/node_modules/@mui/material/Accordion/Accordion.d.ts +2 -2
  37. package/node_modules/@mui/material/Accordion/Accordion.js +3 -2
  38. package/node_modules/@mui/material/Accordion/Accordion.mjs +3 -2
  39. package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +27 -29
  40. package/node_modules/@mui/material/AccordionSummary/AccordionSummary.mjs +27 -29
  41. package/node_modules/@mui/material/Autocomplete/Autocomplete.d.mts +12 -1
  42. package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +12 -1
  43. package/node_modules/@mui/material/Autocomplete/Autocomplete.js +48 -22
  44. package/node_modules/@mui/material/Autocomplete/Autocomplete.mjs +48 -22
  45. package/node_modules/@mui/material/Autocomplete/autocompleteClasses.d.mts +2 -0
  46. package/node_modules/@mui/material/Autocomplete/autocompleteClasses.d.ts +2 -0
  47. package/node_modules/@mui/material/Autocomplete/autocompleteClasses.js +1 -1
  48. package/node_modules/@mui/material/Autocomplete/autocompleteClasses.mjs +1 -1
  49. package/node_modules/@mui/material/Avatar/Avatar.js +2 -0
  50. package/node_modules/@mui/material/Avatar/Avatar.mjs +2 -0
  51. package/node_modules/@mui/material/Backdrop/Backdrop.d.mts +2 -2
  52. package/node_modules/@mui/material/Backdrop/Backdrop.d.ts +2 -2
  53. package/node_modules/@mui/material/Badge/Badge.js +28 -24
  54. package/node_modules/@mui/material/Badge/Badge.mjs +28 -24
  55. package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +6 -2
  56. package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.mjs +6 -2
  57. package/node_modules/@mui/material/Button/Button.js +11 -15
  58. package/node_modules/@mui/material/Button/Button.mjs +11 -15
  59. package/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
  60. package/node_modules/@mui/material/ButtonBase/ButtonBase.mjs +1 -1
  61. package/node_modules/@mui/material/ButtonBase/Ripple.js +21 -11
  62. package/node_modules/@mui/material/ButtonBase/Ripple.mjs +21 -11
  63. package/node_modules/@mui/material/ButtonBase/TouchRipple.js +252 -108
  64. package/node_modules/@mui/material/ButtonBase/TouchRipple.mjs +253 -109
  65. package/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +3 -3
  66. package/node_modules/@mui/material/ButtonGroup/ButtonGroup.mjs +3 -3
  67. package/node_modules/@mui/material/CHANGELOG.md +286 -0
  68. package/node_modules/@mui/material/CardActionArea/CardActionArea.js +2 -1
  69. package/node_modules/@mui/material/CardActionArea/CardActionArea.mjs +2 -1
  70. package/node_modules/@mui/material/Checkbox/Checkbox.js +3 -1
  71. package/node_modules/@mui/material/Checkbox/Checkbox.mjs +3 -1
  72. package/node_modules/@mui/material/Chip/Chip.js +2 -1
  73. package/node_modules/@mui/material/Chip/Chip.mjs +2 -1
  74. package/node_modules/@mui/material/CircularProgress/CircularProgress.js +85 -55
  75. package/node_modules/@mui/material/CircularProgress/CircularProgress.mjs +84 -55
  76. package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
  77. package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.mjs +1 -1
  78. package/node_modules/@mui/material/Collapse/Collapse.d.mts +15 -3
  79. package/node_modules/@mui/material/Collapse/Collapse.d.ts +15 -3
  80. package/node_modules/@mui/material/Collapse/Collapse.js +44 -31
  81. package/node_modules/@mui/material/Collapse/Collapse.mjs +43 -30
  82. package/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.d.mts +1 -1
  83. package/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
  84. package/node_modules/@mui/material/Dialog/Dialog.d.mts +2 -2
  85. package/node_modules/@mui/material/Dialog/Dialog.d.ts +2 -2
  86. package/node_modules/@mui/material/Dialog/Dialog.js +2 -0
  87. package/node_modules/@mui/material/Dialog/Dialog.mjs +2 -0
  88. package/node_modules/@mui/material/Drawer/Drawer.d.mts +2 -2
  89. package/node_modules/@mui/material/Drawer/Drawer.d.ts +2 -2
  90. package/node_modules/@mui/material/Fab/Fab.js +2 -1
  91. package/node_modules/@mui/material/Fab/Fab.mjs +2 -1
  92. package/node_modules/@mui/material/Fade/Fade.d.mts +15 -2
  93. package/node_modules/@mui/material/Fade/Fade.d.ts +15 -2
  94. package/node_modules/@mui/material/Fade/Fade.js +46 -19
  95. package/node_modules/@mui/material/Fade/Fade.mjs +45 -18
  96. package/node_modules/@mui/material/FilledInput/FilledInput.js +11 -4
  97. package/node_modules/@mui/material/FilledInput/FilledInput.mjs +11 -4
  98. package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.d.mts +2 -0
  99. package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.d.ts +2 -0
  100. package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js +1 -1
  101. package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.mjs +1 -1
  102. package/node_modules/@mui/material/Grow/Grow.d.mts +15 -2
  103. package/node_modules/@mui/material/Grow/Grow.d.ts +15 -2
  104. package/node_modules/@mui/material/Grow/Grow.js +45 -28
  105. package/node_modules/@mui/material/Grow/Grow.mjs +44 -27
  106. package/node_modules/@mui/material/IconButton/IconButton.js +2 -1
  107. package/node_modules/@mui/material/IconButton/IconButton.mjs +2 -1
  108. package/node_modules/@mui/material/InitColorSchemeScript/InitColorSchemeScript.d.mts +6 -6
  109. package/node_modules/@mui/material/InitColorSchemeScript/InitColorSchemeScript.d.ts +6 -6
  110. package/node_modules/@mui/material/Input/Input.js +3 -2
  111. package/node_modules/@mui/material/Input/Input.mjs +3 -2
  112. package/node_modules/@mui/material/InputBase/InputBase.js +3 -1
  113. package/node_modules/@mui/material/InputBase/InputBase.mjs +3 -1
  114. package/node_modules/@mui/material/InputLabel/InputLabel.js +2 -1
  115. package/node_modules/@mui/material/InputLabel/InputLabel.mjs +2 -1
  116. package/node_modules/@mui/material/LICENSE +1 -1
  117. package/node_modules/@mui/material/LinearProgress/LinearProgress.js +187 -120
  118. package/node_modules/@mui/material/LinearProgress/LinearProgress.mjs +186 -120
  119. package/node_modules/@mui/material/ListItem/ListItem.d.mts +2 -1
  120. package/node_modules/@mui/material/ListItem/ListItem.d.ts +2 -1
  121. package/node_modules/@mui/material/ListItem/ListItem.js +3 -2
  122. package/node_modules/@mui/material/ListItem/ListItem.mjs +3 -2
  123. package/node_modules/@mui/material/ListItemButton/ListItemButton.d.mts +1 -1
  124. package/node_modules/@mui/material/ListItemButton/ListItemButton.d.ts +1 -1
  125. package/node_modules/@mui/material/ListItemButton/ListItemButton.js +2 -1
  126. package/node_modules/@mui/material/ListItemButton/ListItemButton.mjs +2 -1
  127. package/node_modules/@mui/material/Menu/Menu.d.mts +1 -1
  128. package/node_modules/@mui/material/Menu/Menu.d.ts +1 -1
  129. package/node_modules/@mui/material/MenuItem/MenuItem.d.mts +1 -0
  130. package/node_modules/@mui/material/MenuItem/MenuItem.d.ts +1 -0
  131. package/node_modules/@mui/material/MenuItem/MenuItem.js +7 -0
  132. package/node_modules/@mui/material/MenuItem/MenuItem.mjs +7 -0
  133. package/node_modules/@mui/material/MenuList/MenuList.js +6 -2
  134. package/node_modules/@mui/material/MenuList/MenuList.mjs +6 -2
  135. package/node_modules/@mui/material/MobileStepper/MobileStepper.js +2 -1
  136. package/node_modules/@mui/material/MobileStepper/MobileStepper.mjs +2 -1
  137. package/node_modules/@mui/material/Modal/Modal.js +2 -1
  138. package/node_modules/@mui/material/Modal/Modal.mjs +2 -1
  139. package/node_modules/@mui/material/Modal/ModalManager.js +19 -30
  140. package/node_modules/@mui/material/Modal/ModalManager.mjs +19 -30
  141. package/node_modules/@mui/material/Modal/useModal.js +7 -0
  142. package/node_modules/@mui/material/Modal/useModal.mjs +7 -0
  143. package/node_modules/@mui/material/Modal/useModal.types.d.mts +5 -0
  144. package/node_modules/@mui/material/Modal/useModal.types.d.ts +5 -0
  145. package/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +32 -3
  146. package/node_modules/@mui/material/NativeSelect/NativeSelectInput.mjs +32 -3
  147. package/node_modules/@mui/material/NoSsr/NoSsr.js +1 -0
  148. package/node_modules/@mui/material/NoSsr/NoSsr.mjs +1 -0
  149. package/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +4 -3
  150. package/node_modules/@mui/material/OutlinedInput/NotchedOutline.mjs +4 -3
  151. package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +7 -1
  152. package/node_modules/@mui/material/OutlinedInput/OutlinedInput.mjs +7 -1
  153. package/node_modules/@mui/material/PaginationItem/PaginationItem.js +2 -1
  154. package/node_modules/@mui/material/PaginationItem/PaginationItem.mjs +2 -1
  155. package/node_modules/@mui/material/Paper/Paper.js +2 -1
  156. package/node_modules/@mui/material/Paper/Paper.mjs +2 -1
  157. package/node_modules/@mui/material/Popover/Popover.d.mts +1 -1
  158. package/node_modules/@mui/material/Popover/Popover.d.ts +1 -1
  159. package/node_modules/@mui/material/Popper/BasePopper.js +1 -6
  160. package/node_modules/@mui/material/Popper/BasePopper.mjs +1 -6
  161. package/node_modules/@mui/material/README.md +3 -2
  162. package/node_modules/@mui/material/Radio/Radio.js +3 -0
  163. package/node_modules/@mui/material/Radio/Radio.mjs +3 -0
  164. package/node_modules/@mui/material/Radio/RadioButtonIcon.js +3 -2
  165. package/node_modules/@mui/material/Radio/RadioButtonIcon.mjs +3 -2
  166. package/node_modules/@mui/material/Rating/Rating.js +4 -3
  167. package/node_modules/@mui/material/Rating/Rating.mjs +4 -3
  168. package/node_modules/@mui/material/Select/SelectInput.js +118 -25
  169. package/node_modules/@mui/material/Select/SelectInput.mjs +118 -25
  170. package/node_modules/@mui/material/Select/utils/SelectFocusSourceContext.d.mts +2 -2
  171. package/node_modules/@mui/material/Select/utils/SelectFocusSourceContext.d.ts +2 -2
  172. package/node_modules/@mui/material/Select/utils/closedTypeahead.js +73 -0
  173. package/node_modules/@mui/material/Select/utils/closedTypeahead.mjs +63 -0
  174. package/node_modules/@mui/material/Skeleton/Skeleton.js +22 -2
  175. package/node_modules/@mui/material/Skeleton/Skeleton.mjs +22 -2
  176. package/node_modules/@mui/material/Slide/Slide.d.mts +15 -2
  177. package/node_modules/@mui/material/Slide/Slide.d.ts +15 -2
  178. package/node_modules/@mui/material/Slide/Slide.js +53 -25
  179. package/node_modules/@mui/material/Slide/Slide.mjs +52 -24
  180. package/node_modules/@mui/material/Slider/Slider.js +4 -3
  181. package/node_modules/@mui/material/Slider/Slider.mjs +4 -3
  182. package/node_modules/@mui/material/Slider/SliderValueLabel.d.mts +2 -2
  183. package/node_modules/@mui/material/Slider/SliderValueLabel.d.ts +2 -2
  184. package/node_modules/@mui/material/Slider/useSlider.js +1 -1
  185. package/node_modules/@mui/material/Slider/useSlider.mjs +1 -1
  186. package/node_modules/@mui/material/Snackbar/Snackbar.d.mts +2 -2
  187. package/node_modules/@mui/material/Snackbar/Snackbar.d.ts +2 -2
  188. package/node_modules/@mui/material/SpeedDial/SpeedDial.d.mts +1 -1
  189. package/node_modules/@mui/material/SpeedDial/SpeedDial.d.ts +1 -1
  190. package/node_modules/@mui/material/SpeedDial/SpeedDial.js +6 -2
  191. package/node_modules/@mui/material/SpeedDial/SpeedDial.mjs +6 -2
  192. package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +11 -2
  193. package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.mjs +12 -3
  194. package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +40 -37
  195. package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.mjs +40 -37
  196. package/node_modules/@mui/material/Stack/Stack.d.mts +1 -1
  197. package/node_modules/@mui/material/Stack/Stack.d.ts +1 -1
  198. package/node_modules/@mui/material/Stack/Stack.js +1 -1
  199. package/node_modules/@mui/material/Stack/Stack.mjs +1 -1
  200. package/node_modules/@mui/material/Step/Step.js +47 -15
  201. package/node_modules/@mui/material/Step/Step.mjs +47 -15
  202. package/node_modules/@mui/material/Step/StepContext.d.mts +1 -1
  203. package/node_modules/@mui/material/Step/StepContext.d.ts +1 -1
  204. package/node_modules/@mui/material/StepButton/StepButton.js +9 -3
  205. package/node_modules/@mui/material/StepButton/StepButton.mjs +9 -3
  206. package/node_modules/@mui/material/StepConnector/StepConnector.js +10 -0
  207. package/node_modules/@mui/material/StepConnector/StepConnector.mjs +10 -0
  208. package/node_modules/@mui/material/StepContent/StepContent.d.mts +2 -2
  209. package/node_modules/@mui/material/StepContent/StepContent.d.ts +2 -2
  210. package/node_modules/@mui/material/StepContent/StepContent.js +26 -2
  211. package/node_modules/@mui/material/StepContent/StepContent.mjs +26 -2
  212. package/node_modules/@mui/material/StepIcon/StepIcon.js +2 -1
  213. package/node_modules/@mui/material/StepIcon/StepIcon.mjs +2 -1
  214. package/node_modules/@mui/material/StepLabel/StepLabel.js +52 -7
  215. package/node_modules/@mui/material/StepLabel/StepLabel.mjs +52 -7
  216. package/node_modules/@mui/material/Stepper/Stepper.d.mts +2 -0
  217. package/node_modules/@mui/material/Stepper/Stepper.d.ts +2 -0
  218. package/node_modules/@mui/material/Stepper/Stepper.js +20 -2
  219. package/node_modules/@mui/material/Stepper/Stepper.mjs +20 -2
  220. package/node_modules/@mui/material/Stepper/StepperContext.d.mts +1 -1
  221. package/node_modules/@mui/material/Stepper/StepperContext.d.ts +1 -1
  222. package/node_modules/@mui/material/SvgIcon/SvgIcon.js +2 -1
  223. package/node_modules/@mui/material/SvgIcon/SvgIcon.mjs +2 -1
  224. package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +14 -3
  225. package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.mjs +14 -3
  226. package/node_modules/@mui/material/Switch/Switch.js +3 -2
  227. package/node_modules/@mui/material/Switch/Switch.mjs +3 -2
  228. package/node_modules/@mui/material/TablePagination/TablePagination.js +10 -3
  229. package/node_modules/@mui/material/TablePagination/TablePagination.mjs +9 -2
  230. package/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +2 -1
  231. package/node_modules/@mui/material/TableSortLabel/TableSortLabel.mjs +2 -1
  232. package/node_modules/@mui/material/Tabs/Tabs.js +15 -3
  233. package/node_modules/@mui/material/Tabs/Tabs.mjs +15 -3
  234. package/node_modules/@mui/material/ToggleButton/RovingToggleButton.d.mts +13 -0
  235. package/node_modules/@mui/material/ToggleButton/RovingToggleButton.d.ts +13 -0
  236. package/node_modules/@mui/material/ToggleButton/RovingToggleButton.js +37 -0
  237. package/node_modules/@mui/material/ToggleButton/RovingToggleButton.mjs +31 -0
  238. package/node_modules/@mui/material/ToggleButton/ToggleButton.js +14 -2
  239. package/node_modules/@mui/material/ToggleButton/ToggleButton.mjs +14 -2
  240. package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +33 -13
  241. package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.mjs +33 -13
  242. package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.d.mts +1 -0
  243. package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +1 -0
  244. package/node_modules/@mui/material/Tooltip/Tooltip.d.mts +2 -2
  245. package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +2 -2
  246. package/node_modules/@mui/material/Tooltip/Tooltip.js +5 -2
  247. package/node_modules/@mui/material/Tooltip/Tooltip.mjs +5 -2
  248. package/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +42 -8
  249. package/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.mjs +42 -8
  250. package/node_modules/@mui/material/Zoom/Zoom.d.mts +15 -2
  251. package/node_modules/@mui/material/Zoom/Zoom.d.ts +15 -2
  252. package/node_modules/@mui/material/Zoom/Zoom.js +43 -16
  253. package/node_modules/@mui/material/Zoom/Zoom.mjs +42 -15
  254. package/node_modules/@mui/material/index.js +1 -1
  255. package/node_modules/@mui/material/index.mjs +1 -1
  256. package/node_modules/@mui/material/internal/SwitchBase.js +1 -1
  257. package/node_modules/@mui/material/internal/SwitchBase.mjs +1 -1
  258. package/node_modules/@mui/material/internal/Transition.d.mts +34 -0
  259. package/node_modules/@mui/material/internal/Transition.d.ts +34 -0
  260. package/node_modules/@mui/material/internal/Transition.js +463 -0
  261. package/node_modules/@mui/material/internal/Transition.mjs +455 -0
  262. package/node_modules/@mui/material/internal/react-transition-group.d.mts +16 -0
  263. package/node_modules/@mui/material/internal/react-transition-group.d.ts +16 -0
  264. package/node_modules/@mui/material/locale/zhCN.js +21 -0
  265. package/node_modules/@mui/material/locale/zhCN.mjs +21 -0
  266. package/node_modules/@mui/material/package.json +11 -8
  267. package/node_modules/@mui/material/styles/ThemeProvider.d.mts +1 -1
  268. package/node_modules/@mui/material/styles/ThemeProvider.d.ts +1 -1
  269. package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.mts +8 -8
  270. package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.ts +8 -8
  271. package/node_modules/@mui/material/styles/createGetSelector.d.mts +5 -5
  272. package/node_modules/@mui/material/styles/createGetSelector.d.ts +5 -5
  273. package/node_modules/@mui/material/styles/createMotion.d.mts +8 -0
  274. package/node_modules/@mui/material/styles/createMotion.d.ts +8 -0
  275. package/node_modules/@mui/material/styles/createMotion.js +13 -0
  276. package/node_modules/@mui/material/styles/createMotion.mjs +7 -0
  277. package/node_modules/@mui/material/styles/createThemeFoundation.d.mts +2 -0
  278. package/node_modules/@mui/material/styles/createThemeFoundation.d.ts +2 -0
  279. package/node_modules/@mui/material/styles/createThemeNoVars.d.mts +3 -0
  280. package/node_modules/@mui/material/styles/createThemeNoVars.d.ts +3 -0
  281. package/node_modules/@mui/material/styles/createThemeNoVars.js +5 -0
  282. package/node_modules/@mui/material/styles/createThemeNoVars.mjs +5 -0
  283. package/node_modules/@mui/material/styles/createTransitions.d.mts +6 -2
  284. package/node_modules/@mui/material/styles/createTransitions.d.ts +6 -2
  285. package/node_modules/@mui/material/styles/createTransitions.js +12 -4
  286. package/node_modules/@mui/material/styles/createTransitions.mjs +12 -4
  287. package/node_modules/@mui/material/styles/enhanceHighContrast.d.mts +70 -0
  288. package/node_modules/@mui/material/styles/enhanceHighContrast.d.ts +70 -0
  289. package/node_modules/@mui/material/styles/enhanceHighContrast.js +502 -0
  290. package/node_modules/@mui/material/styles/enhanceHighContrast.mjs +495 -0
  291. package/node_modules/@mui/material/styles/identifier.d.mts +1 -1
  292. package/node_modules/@mui/material/styles/identifier.d.ts +1 -1
  293. package/node_modules/@mui/material/styles/index.d.mts +2 -0
  294. package/node_modules/@mui/material/styles/index.d.ts +2 -0
  295. package/node_modules/@mui/material/styles/index.js +8 -0
  296. package/node_modules/@mui/material/styles/index.mjs +1 -0
  297. package/node_modules/@mui/material/styles/reducedMotion.d.mts +7 -0
  298. package/node_modules/@mui/material/styles/reducedMotion.d.ts +7 -0
  299. package/node_modules/@mui/material/styles/reducedMotion.js +21 -0
  300. package/node_modules/@mui/material/styles/reducedMotion.mjs +14 -0
  301. package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js +1 -1
  302. package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.mjs +1 -1
  303. package/node_modules/@mui/material/styles/stringifyTheme.js +1 -0
  304. package/node_modules/@mui/material/styles/stringifyTheme.mjs +1 -0
  305. package/node_modules/@mui/material/transitions/index.d.mts +1 -1
  306. package/node_modules/@mui/material/transitions/index.d.ts +1 -1
  307. package/node_modules/@mui/material/transitions/index.js +0 -11
  308. package/node_modules/@mui/material/transitions/index.mjs +1 -1
  309. package/node_modules/@mui/material/transitions/transition.d.mts +1 -12
  310. package/node_modules/@mui/material/transitions/transition.d.ts +1 -12
  311. package/node_modules/@mui/material/transitions/types.d.mts +73 -0
  312. package/node_modules/@mui/material/transitions/types.d.ts +73 -0
  313. package/node_modules/@mui/material/transitions/useReducedMotion.d.mts +14 -0
  314. package/node_modules/@mui/material/transitions/useReducedMotion.d.ts +14 -0
  315. package/node_modules/@mui/material/transitions/useReducedMotion.js +117 -0
  316. package/node_modules/@mui/material/transitions/useReducedMotion.mjs +110 -0
  317. package/node_modules/@mui/material/transitions/utils.d.mts +34 -2
  318. package/node_modules/@mui/material/transitions/utils.d.ts +34 -2
  319. package/node_modules/@mui/material/transitions/utils.js +33 -4
  320. package/node_modules/@mui/material/transitions/utils.mjs +31 -4
  321. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.mts +8 -1
  322. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +8 -1
  323. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +76 -13
  324. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.mjs +76 -13
  325. package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.js +2 -1
  326. package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.mjs +2 -1
  327. package/node_modules/@mui/material/utils/memoTheme.d.mts +1 -1
  328. package/node_modules/@mui/material/utils/memoTheme.d.ts +1 -1
  329. package/node_modules/@mui/material/utils/types.d.mts +1 -1
  330. package/node_modules/@mui/material/utils/types.d.ts +1 -1
  331. package/node_modules/@mui/material/utils/useSlot.d.mts +1 -1
  332. package/node_modules/@mui/material/utils/useSlot.d.ts +1 -1
  333. package/node_modules/@mui/material/version/index.js +2 -2
  334. package/node_modules/@mui/material/version/index.mjs +2 -2
  335. package/node_modules/@mui/material/zero-styled/index.d.mts +1 -1
  336. package/node_modules/@mui/material/zero-styled/index.d.ts +1 -1
  337. package/node_modules/@mui/private-theming/CHANGELOG.md +263 -0
  338. package/node_modules/@mui/private-theming/LICENSE +1 -1
  339. package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.d.mts +9 -2
  340. package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.d.ts +9 -2
  341. package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +2 -2
  342. package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.mjs +3 -4
  343. package/node_modules/@mui/private-theming/ThemeProvider/index.d.mts +1 -1
  344. package/node_modules/@mui/private-theming/ThemeProvider/index.d.ts +1 -1
  345. package/node_modules/@mui/private-theming/ThemeProvider/index.mjs +1 -0
  346. package/node_modules/@mui/private-theming/ThemeProvider/nested.d.mts +2 -0
  347. package/node_modules/@mui/private-theming/ThemeProvider/nested.d.ts +2 -0
  348. package/node_modules/@mui/private-theming/index.d.mts +1 -2
  349. package/node_modules/@mui/private-theming/index.d.ts +1 -2
  350. package/node_modules/@mui/private-theming/index.js +1 -1
  351. package/node_modules/@mui/private-theming/index.mjs +1 -1
  352. package/node_modules/@mui/private-theming/package.json +3 -3
  353. package/node_modules/@mui/private-theming/useTheme/ThemeContext.d.mts +3 -0
  354. package/node_modules/@mui/private-theming/useTheme/ThemeContext.d.ts +3 -0
  355. package/node_modules/@mui/private-theming/useTheme/index.d.mts +1 -2
  356. package/node_modules/@mui/private-theming/useTheme/index.d.ts +1 -2
  357. package/node_modules/@mui/private-theming/useTheme/useTheme.d.mts +1 -1
  358. package/node_modules/@mui/private-theming/useTheme/useTheme.d.ts +1 -1
  359. package/node_modules/@mui/styled-engine/CHANGELOG.md +395 -1245
  360. package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.d.mts +2 -2
  361. package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.d.ts +2 -2
  362. package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
  363. package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.mjs +1 -1
  364. package/node_modules/@mui/styled-engine/GlobalStyles/index.d.mts +1 -1
  365. package/node_modules/@mui/styled-engine/GlobalStyles/index.d.ts +1 -1
  366. package/node_modules/@mui/styled-engine/LICENSE +1 -1
  367. package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +10 -2
  368. package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.mjs +11 -4
  369. package/node_modules/@mui/styled-engine/StyledEngineProvider/index.d.mts +1 -1
  370. package/node_modules/@mui/styled-engine/StyledEngineProvider/index.d.ts +1 -1
  371. package/node_modules/@mui/styled-engine/index.d.mts +13 -28
  372. package/node_modules/@mui/styled-engine/index.d.ts +13 -28
  373. package/node_modules/@mui/styled-engine/index.js +28 -4
  374. package/node_modules/@mui/styled-engine/index.mjs +30 -3
  375. package/node_modules/@mui/styled-engine/package.json +2 -2
  376. package/node_modules/@mui/system/Box/Box.d.mts +15 -19
  377. package/node_modules/@mui/system/Box/Box.d.ts +15 -19
  378. package/node_modules/@mui/system/Box/Box.js +16 -1
  379. package/node_modules/@mui/system/Box/Box.mjs +17 -1
  380. package/node_modules/@mui/system/Box/index.js +12 -2
  381. package/node_modules/@mui/system/Box/index.mjs +1 -0
  382. package/node_modules/@mui/system/CHANGELOG.md +263 -0
  383. package/node_modules/@mui/system/Container/index.d.mts +1 -1
  384. package/node_modules/@mui/system/Container/index.d.ts +1 -1
  385. package/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.d.mts +1 -1
  386. package/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
  387. package/node_modules/@mui/system/GlobalStyles/GlobalStyles.d.mts +1 -1
  388. package/node_modules/@mui/system/GlobalStyles/GlobalStyles.d.ts +1 -1
  389. package/node_modules/@mui/system/Grid/Grid.js +0 -1
  390. package/node_modules/@mui/system/Grid/Grid.mjs +0 -1
  391. package/node_modules/@mui/system/Grid/GridProps.d.mts +0 -1
  392. package/node_modules/@mui/system/Grid/GridProps.d.ts +0 -1
  393. package/node_modules/@mui/system/Grid/gridGenerator.d.mts +2 -2
  394. package/node_modules/@mui/system/Grid/gridGenerator.d.ts +2 -2
  395. package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.d.mts +3 -1
  396. package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.d.ts +3 -1
  397. package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js +34 -1
  398. package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.mjs +33 -1
  399. package/node_modules/@mui/system/LICENSE +1 -1
  400. package/node_modules/@mui/system/Stack/Stack.js +1 -1
  401. package/node_modules/@mui/system/Stack/Stack.mjs +1 -1
  402. package/node_modules/@mui/system/Stack/StackProps.d.mts +1 -1
  403. package/node_modules/@mui/system/Stack/StackProps.d.ts +1 -1
  404. package/node_modules/@mui/system/ThemeProvider/ThemeProvider.d.mts +9 -6
  405. package/node_modules/@mui/system/ThemeProvider/ThemeProvider.d.ts +9 -6
  406. package/node_modules/@mui/system/ThemeProvider/ThemeProvider.js +3 -2
  407. package/node_modules/@mui/system/ThemeProvider/ThemeProvider.mjs +3 -2
  408. package/node_modules/@mui/system/ThemeProvider/index.d.mts +1 -1
  409. package/node_modules/@mui/system/ThemeProvider/index.d.ts +1 -1
  410. package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.mts +1 -1
  411. package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.ts +1 -1
  412. package/node_modules/@mui/system/borders/borders.d.mts +14 -12
  413. package/node_modules/@mui/system/borders/borders.d.ts +14 -12
  414. package/node_modules/@mui/system/borders/borders.js +2 -4
  415. package/node_modules/@mui/system/borders/borders.mjs +3 -4
  416. package/node_modules/@mui/system/breakpoints/breakpoints.d.mts +13 -16
  417. package/node_modules/@mui/system/breakpoints/breakpoints.d.ts +13 -16
  418. package/node_modules/@mui/system/breakpoints/breakpoints.js +17 -16
  419. package/node_modules/@mui/system/breakpoints/breakpoints.mjs +17 -16
  420. package/node_modules/@mui/system/compose/compose.d.mts +3 -10
  421. package/node_modules/@mui/system/compose/compose.d.ts +3 -10
  422. package/node_modules/@mui/system/compose/compose.js +0 -2
  423. package/node_modules/@mui/system/compose/compose.mjs +0 -2
  424. package/node_modules/@mui/system/createBox/createBox.d.mts +4 -4
  425. package/node_modules/@mui/system/createBox/createBox.d.ts +4 -4
  426. package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.mts +3 -54
  427. package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.ts +3 -54
  428. package/node_modules/@mui/system/createBreakpoints/createBreakpoints.js +6 -8
  429. package/node_modules/@mui/system/createBreakpoints/createBreakpoints.mjs +6 -8
  430. package/node_modules/@mui/system/createBreakpoints/index.d.mts +0 -1
  431. package/node_modules/@mui/system/createBreakpoints/index.d.ts +0 -1
  432. package/node_modules/@mui/system/createTheme/createSpacing.d.mts +1 -1
  433. package/node_modules/@mui/system/createTheme/createSpacing.d.ts +1 -1
  434. package/node_modules/@mui/system/createTheme/shape.d.mts +2 -2
  435. package/node_modules/@mui/system/createTheme/shape.d.ts +2 -2
  436. package/node_modules/@mui/system/cssGrid/cssGrid.d.mts +13 -13
  437. package/node_modules/@mui/system/cssGrid/cssGrid.d.ts +13 -13
  438. package/node_modules/@mui/system/cssGrid/cssGrid.js +0 -8
  439. package/node_modules/@mui/system/cssGrid/cssGrid.mjs +0 -9
  440. package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +2 -2
  441. package/node_modules/@mui/system/cssVars/createCssVarsProvider.mjs +2 -2
  442. package/node_modules/@mui/system/cssVars/cssVarsParser.js +10 -2
  443. package/node_modules/@mui/system/cssVars/cssVarsParser.mjs +10 -2
  444. package/node_modules/@mui/system/cssVars/useCurrentColorScheme.js +1 -0
  445. package/node_modules/@mui/system/cssVars/useCurrentColorScheme.mjs +1 -0
  446. package/node_modules/@mui/system/display/display.d.mts +49 -1
  447. package/node_modules/@mui/system/display/display.d.ts +49 -1
  448. package/node_modules/@mui/system/display/display.js +2 -1
  449. package/node_modules/@mui/system/display/display.mjs +2 -1
  450. package/node_modules/@mui/system/flexbox/flexbox.d.mts +14 -14
  451. package/node_modules/@mui/system/flexbox/flexbox.d.ts +14 -14
  452. package/node_modules/@mui/system/getThemeValue/getThemeValue.d.mts +2 -1
  453. package/node_modules/@mui/system/getThemeValue/getThemeValue.d.ts +2 -1
  454. package/node_modules/@mui/system/getThemeValue/getThemeValue.js +6 -2
  455. package/node_modules/@mui/system/getThemeValue/getThemeValue.mjs +7 -3
  456. package/node_modules/@mui/system/index.js +1 -1
  457. package/node_modules/@mui/system/index.mjs +1 -1
  458. package/node_modules/@mui/system/memoTheme.d.mts +1 -1
  459. package/node_modules/@mui/system/memoTheme.d.ts +1 -1
  460. package/node_modules/@mui/system/memoize/memoize.d.mts +1 -1
  461. package/node_modules/@mui/system/memoize/memoize.d.ts +1 -1
  462. package/node_modules/@mui/system/package.json +62 -62
  463. package/node_modules/@mui/system/palette/palette.d.mts +4 -3
  464. package/node_modules/@mui/system/palette/palette.d.ts +4 -3
  465. package/node_modules/@mui/system/palette/palette.js +1 -0
  466. package/node_modules/@mui/system/palette/palette.mjs +2 -0
  467. package/node_modules/@mui/system/positions/positions.d.mts +49 -1
  468. package/node_modules/@mui/system/positions/positions.d.ts +49 -1
  469. package/node_modules/@mui/system/positions/positions.js +2 -1
  470. package/node_modules/@mui/system/positions/positions.mjs +2 -1
  471. package/node_modules/@mui/system/propsToClassKey/propsToClassKey.d.mts +5 -0
  472. package/node_modules/@mui/system/propsToClassKey/propsToClassKey.d.ts +5 -0
  473. package/node_modules/@mui/system/propsToClassKey/propsToClassKey.js +1 -1
  474. package/node_modules/@mui/system/propsToClassKey/propsToClassKey.mjs +1 -1
  475. package/node_modules/@mui/system/shadows/shadows.d.mts +4 -4
  476. package/node_modules/@mui/system/shadows/shadows.d.ts +4 -4
  477. package/node_modules/@mui/system/sizing/sizing.d.mts +10 -10
  478. package/node_modules/@mui/system/sizing/sizing.d.ts +10 -10
  479. package/node_modules/@mui/system/sizing/sizing.js +7 -2
  480. package/node_modules/@mui/system/sizing/sizing.mjs +5 -1
  481. package/node_modules/@mui/system/spacing/spacing.d.mts +10 -14
  482. package/node_modules/@mui/system/spacing/spacing.d.ts +10 -14
  483. package/node_modules/@mui/system/spacing/spacing.js +17 -13
  484. package/node_modules/@mui/system/spacing/spacing.mjs +16 -9
  485. package/node_modules/@mui/system/styleFunctionSx/defaultSxConfig.d.mts +1 -1
  486. package/node_modules/@mui/system/styleFunctionSx/defaultSxConfig.d.ts +1 -1
  487. package/node_modules/@mui/system/styleFunctionSx/extendSxProp.d.mts +4 -2
  488. package/node_modules/@mui/system/styleFunctionSx/extendSxProp.d.ts +4 -2
  489. package/node_modules/@mui/system/styled/styled.d.mts +1 -1
  490. package/node_modules/@mui/system/styled/styled.d.ts +1 -1
  491. package/node_modules/@mui/system/typography/typography.d.mts +10 -10
  492. package/node_modules/@mui/system/typography/typography.d.ts +10 -10
  493. package/node_modules/@mui/system/useTheme/useTheme.d.mts +4 -2
  494. package/node_modules/@mui/system/useTheme/useTheme.d.ts +4 -2
  495. package/node_modules/@mui/system/useThemeProps/getThemeProps.d.mts +2 -2
  496. package/node_modules/@mui/system/useThemeProps/getThemeProps.d.ts +2 -2
  497. package/node_modules/@mui/system/useThemeProps/index.d.mts +1 -1
  498. package/node_modules/@mui/system/useThemeProps/index.d.ts +1 -1
  499. package/node_modules/@mui/system/useThemeProps/useThemeProps.js +7 -6
  500. package/node_modules/@mui/system/useThemeProps/useThemeProps.mjs +7 -6
  501. package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.d.mts +2 -1
  502. package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +2 -1
  503. package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.js +2 -2
  504. package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.mjs +2 -2
  505. package/node_modules/@mui/system/version/index.js +3 -3
  506. package/node_modules/@mui/system/version/index.mjs +3 -3
  507. package/node_modules/@mui/types/CHANGELOG.md +395 -1245
  508. package/node_modules/@mui/types/LICENSE +1 -1
  509. package/node_modules/@mui/types/index.d.mts +1 -1
  510. package/node_modules/@mui/types/index.d.ts +1 -1
  511. package/node_modules/@mui/types/index.js +1 -1
  512. package/node_modules/@mui/types/index.mjs +1 -1
  513. package/node_modules/@mui/types/package.json +2 -2
  514. package/node_modules/@mui/utils/CHANGELOG.md +263 -0
  515. package/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.d.mts +2 -1
  516. package/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.d.ts +2 -1
  517. package/node_modules/@mui/utils/LICENSE +1 -1
  518. package/node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js +1 -1
  519. package/node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.mjs +1 -1
  520. package/node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
  521. package/node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.mjs +1 -1
  522. package/node_modules/@mui/utils/fastDeepAssign/fastDeepAssign.js +6 -1
  523. package/node_modules/@mui/utils/fastDeepAssign/fastDeepAssign.mjs +6 -1
  524. package/node_modules/@mui/utils/getDisplayName/getDisplayName.d.mts +1 -1
  525. package/node_modules/@mui/utils/getDisplayName/getDisplayName.d.ts +1 -1
  526. package/node_modules/@mui/utils/getDisplayName/getDisplayName.js +1 -1
  527. package/node_modules/@mui/utils/getDisplayName/getDisplayName.mjs +1 -1
  528. package/node_modules/@mui/utils/index.d.mts +1 -0
  529. package/node_modules/@mui/utils/index.d.ts +1 -0
  530. package/node_modules/@mui/utils/index.js +9 -1
  531. package/node_modules/@mui/utils/index.mjs +2 -1
  532. package/node_modules/@mui/utils/isHostComponent/isHostComponent.d.mts +1 -1
  533. package/node_modules/@mui/utils/isHostComponent/isHostComponent.d.ts +1 -1
  534. package/node_modules/@mui/utils/isMuiElement/isMuiElement.js +1 -1
  535. package/node_modules/@mui/utils/isMuiElement/isMuiElement.mjs +1 -1
  536. package/node_modules/@mui/utils/package.json +18 -4
  537. package/node_modules/@mui/utils/types/DataAttributes.d.mts +45 -0
  538. package/node_modules/@mui/utils/types/DataAttributes.d.ts +45 -0
  539. package/node_modules/@mui/utils/types/DataAttributes.js +5 -0
  540. package/node_modules/@mui/utils/types/DataAttributes.mjs +1 -0
  541. package/node_modules/@mui/utils/types/index.d.mts +4 -2
  542. package/node_modules/@mui/utils/types/index.d.ts +4 -2
  543. package/node_modules/@mui/utils/useEventCallback/useEventCallback.d.mts +1 -1
  544. package/node_modules/@mui/utils/useEventCallback/useEventCallback.d.ts +1 -1
  545. package/node_modules/@mui/utils/useEventCallback/useEventCallback.js +1 -1
  546. package/node_modules/@mui/utils/useEventCallback/useEventCallback.mjs +1 -1
  547. package/node_modules/@mui/utils/useForkRef/useForkRef.js +2 -2
  548. package/node_modules/@mui/utils/useForkRef/useForkRef.mjs +2 -2
  549. package/node_modules/@mui/utils/useId/useId.js +1 -0
  550. package/node_modules/@mui/utils/useId/useId.mjs +1 -0
  551. package/node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js +2 -2
  552. package/node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.mjs +2 -2
  553. package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.d.mts +1 -1
  554. package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.d.ts +1 -1
  555. package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.js +7 -5
  556. package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.mjs +7 -5
  557. package/node_modules/@mui/utils/useValueAsRef/index.d.mts +1 -0
  558. package/node_modules/@mui/utils/useValueAsRef/index.d.ts +1 -0
  559. package/node_modules/@mui/utils/useValueAsRef/index.js +13 -0
  560. package/node_modules/@mui/utils/useValueAsRef/index.mjs +1 -0
  561. package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.d.mts +14 -0
  562. package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.d.ts +14 -0
  563. package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.js +35 -0
  564. package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.mjs +29 -0
  565. package/node_modules/react-is/package.json +3 -3
  566. package/package.json +3 -3
  567. /package/node_modules/@mui/material/transitions/{transition.js → types.js} +0 -0
  568. /package/node_modules/@mui/material/transitions/{transition.mjs → types.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/code-frame",
3
- "version": "7.29.0",
3
+ "version": "7.29.7",
4
4
  "description": "Generate errors that contain a code frame that point to source locations.",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-code-frame",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "main": "./lib/index.js",
18
18
  "dependencies": {
19
- "@babel/helper-validator-identifier": "^7.28.5",
19
+ "@babel/helper-validator-identifier": "^7.29.7",
20
20
  "js-tokens": "^4.0.0",
21
21
  "picocolors": "^1.1.1"
22
22
  },
@@ -80,9 +80,9 @@ class Buffer {
80
80
  };
81
81
  return result;
82
82
  }
83
- append(str, maybeNewline) {
83
+ append(str, maybeNewline, ignoreMapping = false) {
84
84
  this._flush();
85
- this._append(str, maybeNewline);
85
+ this._append(str, maybeNewline, ignoreMapping);
86
86
  }
87
87
  appendChar(char) {
88
88
  this._flush();
@@ -128,7 +128,7 @@ class Buffer {
128
128
  position.column = 0;
129
129
  }
130
130
  }
131
- _append(str, maybeNewline) {
131
+ _append(str, maybeNewline, ignoreMapping) {
132
132
  const len = str.length;
133
133
  const position = this._position;
134
134
  const sourcePos = this._sourcePosition;
@@ -141,7 +141,7 @@ class Buffer {
141
141
  } else {
142
142
  this._str += str;
143
143
  }
144
- const hasMap = this._map !== null;
144
+ const hasMap = !ignoreMapping && this._map !== null;
145
145
  if (!maybeNewline && !hasMap) {
146
146
  position.column += len;
147
147
  return;
@@ -225,13 +225,16 @@ class Buffer {
225
225
  _normalizePosition(prop, loc, columnOffset) {
226
226
  this._flush();
227
227
  const pos = loc[prop];
228
- const target = this._sourcePosition;
229
228
  if (pos) {
230
- target.line = pos.line;
231
- target.column = Math.max(pos.column + columnOffset, 0);
232
- target.filename = loc.filename;
229
+ this.setSourcePosition(pos.line, Math.max(pos.column + columnOffset, 0));
230
+ this._sourcePosition.filename = loc.filename;
233
231
  }
234
232
  }
233
+ setSourcePosition(line, column) {
234
+ const target = this._sourcePosition;
235
+ target.line = line;
236
+ target.column = column;
237
+ }
235
238
  getCurrentColumn() {
236
239
  return this._position.column + (this._queuedChar ? 1 : 0);
237
240
  }
@@ -1 +1 @@
1
- {"version":3,"names":["spaceIndents","i","push","repeat","Buffer","constructor","map","indentChar","_map","_buf","_str","_appendCount","_last","_canMarkIdName","_indentChar","_queuedChar","_position","line","column","_sourcePosition","identifierName","undefined","identifierNamePos","filename","get","_flush","code","trimRight","decodedMap","rawMappings","result","getDecoded","__mergedMap","resultMap","value","Object","defineProperty","writable","mappings","getRawMappings","append","str","maybeNewline","_append","appendChar","char","_appendChar","queue","queuedChar","useSourcePos","indent","String","fromCharCode","isSpace","position","sourcePos","mark","len","length","hasMap","indexOf","last","removeLastSemicolon","getLastChar","checkQueue","getNewlineCount","hasContent","exactSource","loc","cb","source","prop","_normalizePosition","sourceWithOffset","columnOffset","pos","target","Math","max","getCurrentColumn","getCurrentLine","exports","default"],"sources":["../src/buffer.ts"],"sourcesContent":["import type SourceMap from \"./source-map.ts\";\nimport type { SourceLocation } from \"@babel/types\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charcodes from \"charcodes\";\n\nexport type Loc = SourceLocation;\nexport type Pos = SourceLocation[\"start\"];\n\ntype SourcePosition = {\n line: number | undefined;\n column: number | undefined;\n identifierName: string | undefined;\n identifierNamePos: Pos | undefined;\n filename: string | undefined;\n};\n\nconst spaceIndents: string[] = [];\nfor (let i = 0; i < 32; i++) {\n spaceIndents.push(\" \".repeat(i * 2));\n}\n\nexport default class Buffer {\n constructor(map: SourceMap | null, indentChar: string) {\n this._map = map;\n this._indentChar = indentChar;\n }\n\n _map: SourceMap | null = null;\n _buf = \"\";\n _str = \"\";\n _appendCount = 0;\n _last = 0;\n _canMarkIdName = true;\n _indentChar = \"\";\n _queuedChar: typeof charcodes.space | typeof charcodes.semicolon | 0 = 0;\n\n _position = {\n line: 1,\n column: 0,\n };\n _sourcePosition: SourcePosition = {\n identifierName: undefined,\n identifierNamePos: undefined,\n line: undefined,\n column: undefined,\n filename: undefined,\n };\n\n /**\n * Get the final string output from the buffer, along with the sourcemap if one exists.\n */\n\n get() {\n const { _map, _last } = this;\n if (this._queuedChar !== charcodes.space) {\n this._flush();\n }\n\n // Whatever trim is used here should not execute a regex against the\n // source string since it may be arbitrarily large after all transformations\n const code =\n _last === charcodes.lineFeed\n ? (this._buf + this._str).trimRight()\n : this._buf + this._str;\n\n // Creating objects with getters is expensive.\n if (_map === null) {\n return {\n code: code,\n decodedMap: undefined,\n map: null,\n rawMappings: undefined,\n };\n }\n\n const result = {\n code: code,\n // Decoded sourcemap is free to generate.\n decodedMap: _map.getDecoded(),\n // Used as a marker for backwards compatibility. We moved input map merging\n // into the generator. We cannot merge the input map a second time, so the\n // presence of this field tells us we've already done the work.\n get __mergedMap() {\n return this.map;\n },\n // Encoding the sourcemap is moderately CPU expensive.\n get map() {\n const resultMap = _map.get();\n result.map = resultMap;\n return resultMap;\n },\n set map(value) {\n Object.defineProperty(result, \"map\", { value, writable: true });\n },\n // Retrieving the raw mappings is very memory intensive.\n get rawMappings() {\n const mappings = _map.getRawMappings();\n result.rawMappings = mappings;\n return mappings;\n },\n set rawMappings(value) {\n Object.defineProperty(result, \"rawMappings\", { value, writable: true });\n },\n };\n\n return result;\n }\n\n /**\n * Add a string to the buffer that cannot be reverted.\n */\n\n append(str: string, maybeNewline: boolean): void {\n this._flush();\n this._append(str, maybeNewline);\n }\n\n appendChar(char: number): void {\n this._flush();\n this._appendChar(char, 1, true);\n }\n\n /**\n * Add a string to the buffer than can be reverted.\n */\n queue(char: typeof charcodes.space | typeof charcodes.semicolon): void {\n this._flush();\n this._queuedChar = char;\n }\n\n _flush(): void {\n const queuedChar = this._queuedChar;\n if (queuedChar !== 0) {\n this._appendChar(queuedChar, 1, true);\n this._queuedChar = 0;\n }\n }\n\n _appendChar(char: number, repeat: number, useSourcePos: boolean): void {\n this._last = char;\n\n if (char === -1) {\n const indent =\n repeat >= 64\n ? this._indentChar.repeat(repeat)\n : spaceIndents[repeat / 2];\n this._str += indent;\n } else {\n this._str +=\n repeat > 1\n ? String.fromCharCode(char).repeat(repeat)\n : String.fromCharCode(char);\n }\n\n const isSpace = char === charcodes.space;\n const position = this._position;\n if (char !== charcodes.lineFeed) {\n if (this._map) {\n const sourcePos = this._sourcePosition;\n if (useSourcePos && sourcePos) {\n this._map.mark(\n position,\n sourcePos.line,\n sourcePos.column,\n isSpace ? undefined : sourcePos.identifierName,\n isSpace ? undefined : sourcePos.identifierNamePos,\n sourcePos.filename,\n );\n\n if (!isSpace && this._canMarkIdName) {\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n } else {\n this._map.mark(position);\n }\n }\n\n position.column += repeat;\n } else {\n position.line++;\n position.column = 0;\n }\n }\n\n _append(str: string, maybeNewline: boolean): void {\n const len = str.length;\n const position = this._position;\n const sourcePos = this._sourcePosition;\n\n this._last = -1; /* LAST_CHAR_KINDS.NORMAL */\n\n if (++this._appendCount > 4096) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n +this._str; // Unexplainable huge performance boost. Ref: https://github.com/davidmarkclements/flatstr License: MIT\n this._buf += this._str;\n this._str = str;\n this._appendCount = 0;\n } else {\n this._str += str;\n }\n\n const hasMap = this._map !== null;\n\n if (!maybeNewline && !hasMap) {\n position.column += len;\n return;\n }\n\n const { column, identifierName, identifierNamePos, filename } = sourcePos;\n let line = sourcePos.line;\n\n if (\n (identifierName != null || identifierNamePos != null) &&\n this._canMarkIdName\n ) {\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n\n // Search for newline chars. We search only for `\\n`, since both `\\r` and\n // `\\r\\n` are normalized to `\\n` during parse. We exclude `\\u2028` and\n // `\\u2029` for performance reasons, they're so uncommon that it's probably\n // ok. It's also unclear how other sourcemap utilities handle them...\n let i = str.indexOf(\"\\n\");\n let last = 0;\n\n // If the string starts with a newline char, then adding a mark is redundant.\n // This catches both \"no newlines\" and \"newline after several chars\".\n if (hasMap && i !== 0) {\n this._map!.mark(\n position,\n line,\n column,\n identifierName,\n identifierNamePos,\n filename,\n );\n }\n\n // Now, find each remaining newline char in the string.\n while (i !== -1) {\n position.line++;\n position.column = 0;\n last = i + 1;\n\n // We mark the start of each line, which happens directly after this newline char\n // unless this is the last char.\n // When manually adding multi-line content (such as a comment), `line` will be `undefined`.\n if (last < len && line !== undefined) {\n line++;\n if (hasMap) {\n this._map!.mark(position, line, 0, undefined, undefined, filename);\n }\n }\n i = str.indexOf(\"\\n\", last);\n }\n position.column += len - last;\n }\n\n removeLastSemicolon(): void {\n if (this._queuedChar === charcodes.semicolon) {\n this._queuedChar = 0;\n }\n }\n\n getLastChar(checkQueue?: boolean): number {\n if (!checkQueue) {\n return this._last;\n }\n const queuedChar = this._queuedChar;\n return queuedChar !== 0 ? queuedChar : this._last;\n }\n\n /**\n * This will only detect at most 1 newline after a call to `flush()`,\n * but this has not been found so far, and an accurate count can be achieved if needed later.\n */\n getNewlineCount(): number {\n return this._queuedChar === 0 && this._last === charcodes.lineFeed ? 1 : 0;\n }\n\n hasContent(): boolean {\n return this._last !== 0 /*|| this._queuedChar !== 0*/;\n }\n\n /**\n * Certain sourcemap usecases expect mappings to be more accurate than\n * Babel's generic sourcemap handling allows. For now, we special-case\n * identifiers to allow for the primary cases to work.\n * The goal of this line is to ensure that the map output from Babel will\n * have an exact range on identifiers in the output code. Without this\n * line, Babel would potentially include some number of trailing tokens\n * that are printed after the identifier, but before another location has\n * been assigned.\n * This allows tooling like Rollup and Webpack to more accurately perform\n * their own transformations. Most importantly, this allows the import/export\n * transformations performed by those tools to loose less information when\n * applying their own transformations on top of the code and map results\n * generated by Babel itself.\n *\n * The primary example of this is the snippet:\n *\n * import mod from \"mod\";\n * mod();\n *\n * With this line, there will be one mapping range over \"mod\" and another\n * over \"();\", where previously it would have been a single mapping.\n */\n exactSource(loc: Loc, cb: () => void) {\n if (!this._map) {\n cb();\n return;\n }\n\n this.source(\"start\", loc);\n const identifierName = loc.identifierName;\n const sourcePos = this._sourcePosition;\n if (identifierName != null) {\n this._canMarkIdName = false;\n sourcePos.identifierName = identifierName;\n }\n cb();\n\n if (identifierName != null) {\n this._canMarkIdName = true;\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n this.source(\"end\", loc);\n }\n\n /**\n * Sets a given position as the current source location so generated code after this call\n * will be given this position in the sourcemap.\n */\n\n source(prop: \"start\" | \"end\", loc: Loc): void {\n if (!this._map) return;\n\n // Since this is called extremely often, we reuse the same _sourcePosition\n // object for the whole lifetime of the buffer.\n this._normalizePosition(prop, loc, 0);\n }\n\n sourceWithOffset(\n prop: \"start\" | \"end\",\n loc: Loc,\n columnOffset: number,\n ): void {\n if (!this._map) return;\n\n this._normalizePosition(prop, loc, columnOffset);\n }\n\n _normalizePosition(prop: \"start\" | \"end\", loc: Loc, columnOffset: number) {\n this._flush();\n\n const pos = loc[prop];\n const target = this._sourcePosition;\n\n if (pos) {\n target.line = pos.line;\n // TODO: Fix https://github.com/babel/babel/issues/15712 in downstream\n target.column = Math.max(pos.column + columnOffset, 0);\n target.filename = loc.filename;\n }\n }\n\n getCurrentColumn(): number {\n return this._position.column + (this._queuedChar ? 1 : 0);\n }\n\n getCurrentLine(): number {\n return this._position.line;\n }\n}\n"],"mappings":";;;;;;AAkBA,MAAMA,YAAsB,GAAG,EAAE;AACjC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,EAAE,EAAEA,CAAC,EAAE,EAAE;EAC3BD,YAAY,CAACE,IAAI,CAAC,GAAG,CAACC,MAAM,CAACF,CAAC,GAAG,CAAC,CAAC,CAAC;AACtC;AAEe,MAAMG,MAAM,CAAC;EAC1BC,WAAWA,CAACC,GAAqB,EAAEC,UAAkB,EAAE;IAAA,KAKvDC,IAAI,GAAqB,IAAI;IAAA,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ACjD,MAAM,CAAC,CAAC;IAEb,MAAMkD,GAAG,GAAGP,GAAG,CAACG,IAAI,CAAC;IACrB,MAAMK,MAAM,GAAG,IAAI,CAACzD,eAAe;IAEnC,IAAIwD,GAAG,EAAE;MACPC,MAAM,CAAC3D,IAAI,GAAG0D,GAAG,CAAC1D,IAAI;MAEtB2D,MAAM,CAAC1D,MAAM,GAAG2D,IAAI,CAACC,GAAG,CAACH,GAAG,CAACzD,MAAM,GAAGwD,YAAY,EAAE,CAAC,CAAC;MACtDE,MAAM,CAACrD,QAAQ,GAAG6C,GAAG,CAAC7C,QAAQ;IAChC;EACF;EAEAwD,gBAAgBA,CAAA,EAAW;IACzB,OAAO,IAAI,CAAC/D,SAAS,CAACE,MAAM,IAAI,IAAI,CAACH,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;EAC3D;EAEAiE,cAAcA,CAAA,EAAW;IACvB,OAAO,IAAI,CAAChE,SAAS,CAACC,IAAI;EAC5B;AACF;AAACgE,OAAA,CAAAC,OAAA,GAAA9E,MAAA","ignoreList":[]}
1
+ {"version":3,"names":["spaceIndents","i","push","repeat","Buffer","constructor","map","indentChar","_map","_buf","_str","_appendCount","_last","_canMarkIdName","_indentChar","_queuedChar","_position","line","column","_sourcePosition","identifierName","undefined","identifierNamePos","filename","get","_flush","code","trimRight","decodedMap","rawMappings","result","getDecoded","__mergedMap","resultMap","value","Object","defineProperty","writable","mappings","getRawMappings","append","str","maybeNewline","ignoreMapping","_append","appendChar","char","_appendChar","queue","queuedChar","useSourcePos","indent","String","fromCharCode","isSpace","position","sourcePos","mark","len","length","hasMap","indexOf","last","removeLastSemicolon","getLastChar","checkQueue","getNewlineCount","hasContent","exactSource","loc","cb","source","prop","_normalizePosition","sourceWithOffset","columnOffset","pos","setSourcePosition","Math","max","target","getCurrentColumn","getCurrentLine","exports","default"],"sources":["../src/buffer.ts"],"sourcesContent":["import type SourceMap from \"./source-map.ts\";\nimport type { SourceLocation } from \"@babel/types\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charcodes from \"charcodes\";\n\nexport type Loc = SourceLocation;\nexport type Pos = SourceLocation[\"start\"];\n\ntype SourcePosition = {\n line: number | undefined;\n column: number | undefined;\n identifierName: string | undefined;\n identifierNamePos: Pos | undefined;\n filename: string | undefined;\n};\n\nconst spaceIndents: string[] = [];\nfor (let i = 0; i < 32; i++) {\n spaceIndents.push(\" \".repeat(i * 2));\n}\n\nexport default class Buffer {\n constructor(map: SourceMap | null, indentChar: string) {\n this._map = map;\n this._indentChar = indentChar;\n }\n\n _map: SourceMap | null = null;\n _buf = \"\";\n _str = \"\";\n _appendCount = 0;\n _last = 0;\n _canMarkIdName = true;\n _indentChar = \"\";\n _queuedChar: typeof charcodes.space | typeof charcodes.semicolon | 0 = 0;\n\n _position = {\n line: 1,\n column: 0,\n };\n _sourcePosition: SourcePosition = {\n identifierName: undefined,\n identifierNamePos: undefined,\n line: undefined,\n column: undefined,\n filename: undefined,\n };\n\n /**\n * Get the final string output from the buffer, along with the sourcemap if one exists.\n */\n\n get() {\n const { _map, _last } = this;\n if (this._queuedChar !== charcodes.space) {\n this._flush();\n }\n\n // Whatever trim is used here should not execute a regex against the\n // source string since it may be arbitrarily large after all transformations\n const code =\n _last === charcodes.lineFeed\n ? (this._buf + this._str).trimRight()\n : this._buf + this._str;\n\n // Creating objects with getters is expensive.\n if (_map === null) {\n return {\n code: code,\n decodedMap: undefined,\n map: null,\n rawMappings: undefined,\n };\n }\n\n const result = {\n code: code,\n // Decoded sourcemap is free to generate.\n decodedMap: _map.getDecoded(),\n // Used as a marker for backwards compatibility. We moved input map merging\n // into the generator. We cannot merge the input map a second time, so the\n // presence of this field tells us we've already done the work.\n get __mergedMap() {\n return this.map;\n },\n // Encoding the sourcemap is moderately CPU expensive.\n get map() {\n const resultMap = _map.get();\n result.map = resultMap;\n return resultMap;\n },\n set map(value) {\n Object.defineProperty(result, \"map\", { value, writable: true });\n },\n // Retrieving the raw mappings is very memory intensive.\n get rawMappings() {\n const mappings = _map.getRawMappings();\n result.rawMappings = mappings;\n return mappings;\n },\n set rawMappings(value) {\n Object.defineProperty(result, \"rawMappings\", { value, writable: true });\n },\n };\n\n return result;\n }\n\n /**\n * Add a string to the buffer that cannot be reverted.\n */\n\n append(\n str: string,\n maybeNewline: boolean,\n ignoreMapping: boolean = false,\n ): void {\n this._flush();\n this._append(str, maybeNewline, ignoreMapping);\n }\n\n appendChar(char: number): void {\n this._flush();\n this._appendChar(char, 1, true);\n }\n\n /**\n * Add a string to the buffer than can be reverted.\n */\n queue(char: typeof charcodes.space | typeof charcodes.semicolon): void {\n this._flush();\n this._queuedChar = char;\n }\n\n _flush(): void {\n const queuedChar = this._queuedChar;\n if (queuedChar !== 0) {\n this._appendChar(queuedChar, 1, true);\n this._queuedChar = 0;\n }\n }\n\n _appendChar(char: number, repeat: number, useSourcePos: boolean): void {\n this._last = char;\n\n if (char === -1) {\n const indent =\n repeat >= 64\n ? this._indentChar.repeat(repeat)\n : spaceIndents[repeat / 2];\n this._str += indent;\n } else {\n this._str +=\n repeat > 1\n ? String.fromCharCode(char).repeat(repeat)\n : String.fromCharCode(char);\n }\n\n const isSpace = char === charcodes.space;\n const position = this._position;\n if (char !== charcodes.lineFeed) {\n if (this._map) {\n const sourcePos = this._sourcePosition;\n if (useSourcePos && sourcePos) {\n this._map.mark(\n position,\n sourcePos.line,\n sourcePos.column,\n isSpace ? undefined : sourcePos.identifierName,\n isSpace ? undefined : sourcePos.identifierNamePos,\n sourcePos.filename,\n );\n\n if (!isSpace && this._canMarkIdName) {\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n } else {\n this._map.mark(position);\n }\n }\n\n position.column += repeat;\n } else {\n position.line++;\n position.column = 0;\n }\n }\n\n _append(str: string, maybeNewline: boolean, ignoreMapping: boolean): void {\n const len = str.length;\n const position = this._position;\n const sourcePos = this._sourcePosition;\n\n this._last = -1; /* LAST_CHAR_KINDS.NORMAL */\n\n if (++this._appendCount > 4096) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n +this._str; // Unexplainable huge performance boost. Ref: https://github.com/davidmarkclements/flatstr License: MIT\n this._buf += this._str;\n this._str = str;\n this._appendCount = 0;\n } else {\n this._str += str;\n }\n\n const hasMap = !ignoreMapping && this._map !== null;\n\n if (!maybeNewline && !hasMap) {\n position.column += len;\n return;\n }\n\n const { column, identifierName, identifierNamePos, filename } = sourcePos;\n let line = sourcePos.line;\n\n if (\n (identifierName != null || identifierNamePos != null) &&\n this._canMarkIdName\n ) {\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n\n // Search for newline chars. We search only for `\\n`, since both `\\r` and\n // `\\r\\n` are normalized to `\\n` during parse. We exclude `\\u2028` and\n // `\\u2029` for performance reasons, they're so uncommon that it's probably\n // ok. It's also unclear how other sourcemap utilities handle them...\n let i = str.indexOf(\"\\n\");\n let last = 0;\n\n // If the string starts with a newline char, then adding a mark is redundant.\n // This catches both \"no newlines\" and \"newline after several chars\".\n if (hasMap && i !== 0) {\n this._map!.mark(\n position,\n line,\n column,\n identifierName,\n identifierNamePos,\n filename,\n );\n }\n\n // Now, find each remaining newline char in the string.\n while (i !== -1) {\n position.line++;\n position.column = 0;\n last = i + 1;\n\n // We mark the start of each line, which happens directly after this newline char\n // unless this is the last char.\n // When manually adding multi-line content (such as a comment), `line` will be `undefined`.\n if (last < len && line !== undefined) {\n line++;\n if (hasMap) {\n this._map!.mark(position, line, 0, undefined, undefined, filename);\n }\n }\n i = str.indexOf(\"\\n\", last);\n }\n position.column += len - last;\n }\n\n removeLastSemicolon(): void {\n if (this._queuedChar === charcodes.semicolon) {\n this._queuedChar = 0;\n }\n }\n\n getLastChar(checkQueue?: boolean): number {\n if (!checkQueue) {\n return this._last;\n }\n const queuedChar = this._queuedChar;\n return queuedChar !== 0 ? queuedChar : this._last;\n }\n\n /**\n * This will only detect at most 1 newline after a call to `flush()`,\n * but this has not been found so far, and an accurate count can be achieved if needed later.\n */\n getNewlineCount(): number {\n return this._queuedChar === 0 && this._last === charcodes.lineFeed ? 1 : 0;\n }\n\n hasContent(): boolean {\n return this._last !== 0 /*|| this._queuedChar !== 0*/;\n }\n\n /**\n * Certain sourcemap usecases expect mappings to be more accurate than\n * Babel's generic sourcemap handling allows. For now, we special-case\n * identifiers to allow for the primary cases to work.\n * The goal of this line is to ensure that the map output from Babel will\n * have an exact range on identifiers in the output code. Without this\n * line, Babel would potentially include some number of trailing tokens\n * that are printed after the identifier, but before another location has\n * been assigned.\n * This allows tooling like Rollup and Webpack to more accurately perform\n * their own transformations. Most importantly, this allows the import/export\n * transformations performed by those tools to loose less information when\n * applying their own transformations on top of the code and map results\n * generated by Babel itself.\n *\n * The primary example of this is the snippet:\n *\n * import mod from \"mod\";\n * mod();\n *\n * With this line, there will be one mapping range over \"mod\" and another\n * over \"();\", where previously it would have been a single mapping.\n */\n exactSource(loc: Loc, cb: () => void) {\n if (!this._map) {\n cb();\n return;\n }\n\n this.source(\"start\", loc);\n const identifierName = loc.identifierName;\n const sourcePos = this._sourcePosition;\n if (identifierName != null) {\n this._canMarkIdName = false;\n sourcePos.identifierName = identifierName;\n }\n cb();\n\n if (identifierName != null) {\n this._canMarkIdName = true;\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n this.source(\"end\", loc);\n }\n\n /**\n * Sets a given position as the current source location so generated code after this call\n * will be given this position in the sourcemap.\n */\n\n source(prop: \"start\" | \"end\", loc: Loc): void {\n if (!this._map) return;\n\n // Since this is called extremely often, we reuse the same _sourcePosition\n // object for the whole lifetime of the buffer.\n this._normalizePosition(prop, loc, 0);\n }\n\n sourceWithOffset(\n prop: \"start\" | \"end\",\n loc: Loc,\n columnOffset: number,\n ): void {\n if (!this._map) return;\n\n this._normalizePosition(prop, loc, columnOffset);\n }\n\n _normalizePosition(prop: \"start\" | \"end\", loc: Loc, columnOffset: number) {\n this._flush();\n\n const pos = loc[prop];\n if (pos) {\n this.setSourcePosition(\n pos.line,\n // TODO: Fix https://github.com/babel/babel/issues/15712 in downstream\n Math.max(pos.column + columnOffset, 0),\n );\n this._sourcePosition.filename = loc.filename;\n }\n }\n\n setSourcePosition(line: number, column: number): void {\n const target = this._sourcePosition;\n target.line = line;\n target.column = column;\n }\n\n getCurrentColumn(): number {\n return this._position.column + (this._queuedChar ? 1 : 0);\n }\n\n getCurrentLine(): number {\n return this._position.line;\n }\n}\n"],"mappings":";;;;;;AAkBA,MAAMA,YAAsB,GAAG,EAAE;AACjC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,EAAE,EAAEA,CAAC,EAAE,EAAE;EAC3BD,YAAY,CAACE,IAAI,CAAC,GAAG,CAACC,MAAM,CAACF,CAAC,GAAG,CAAC,CAAC,CAAC;AACtC;AAEe,MAAMG,MAAM,CAAC;EAC1BC,WAAWA,CAACC,GAAqB,EAAEC,UAAkB,EAAE;IAAA,KAKvDC,IAAI,GAAqB,IAAI;IAAA,KAC7BC,IAAI,GAAG,EAAE;IAAA,KACTC,IAAI,GAAG,EAAE;IAAA,KACTC,YAAY,GAAG,CAAC;IAAA,KAChBC,KAAK,GAAG,CAAC;IAAA,KACTC,cAAc,GAAG,IAAI;IAAA,KACrBC,WAAW,GAAG,EAAE;IAAA,KAChBC,WAAW,GAA4D,CAAC;IAAA,KAExEC,SAAS,GAAG;MACVC,IAAI,EAAE,CAAC;MACPC,MAAM,EAAE;IACV,CAAC;IAAA,KACDC,eAAe,GAAmB;MAChCC,cAAc,EAAEC,SAAS;MACzBC,iBAAiB,EAAED,SAAS;MAC5BJ,IAAI,EAAEI,SAAS;MACfH,MAAM,EAAEG,SAAS;MACjBE,QAAQ,EAAEF;IACZ,CAAC;IAvBC,IAAI,CAACb,IAAI,GAAGF,GAAG;IACf,IAAI,CAACQ,WAAW,GAAGP,UAAU;EAC/B;EA2BAiB,GAAGA,CAAA,EAAG;IACJ,MAAM;MAAEhB,IAAI;MAAEI;IAAM,CAAC,GAAG,IA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I,CAACjE,SAAS,CAACE,MAAM,IAAI,IAAI,CAACH,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;EAC3D;EAEAmE,cAAcA,CAAA,EAAW;IACvB,OAAO,IAAI,CAAClE,SAAS,CAACC,IAAI;EAC5B;AACF;AAACkE,OAAA,CAAAC,OAAA,GAAAhF,MAAA","ignoreList":[]}
@@ -30,20 +30,34 @@ for (const type of Object.keys(parens)) {
30
30
  _nodes.generatorInfosMap.get(type)[2] = func;
31
31
  }
32
32
  }
33
- function isOrHasCallExpression(node) {
34
- switch (node.type) {
35
- case "CallExpression":
36
- return true;
37
- case "MemberExpression":
38
- return isOrHasCallExpression(node.object);
33
+ function newCalleeNeedsParens(node) {
34
+ let current = node;
35
+ while (true) {
36
+ switch (current.type) {
37
+ case "CallExpression":
38
+ case "ImportExpression":
39
+ case "OptionalCallExpression":
40
+ case "OptionalMemberExpression":
41
+ return true;
42
+ case "MemberExpression":
43
+ current = current.object;
44
+ break;
45
+ case "TaggedTemplateExpression":
46
+ current = current.tag;
47
+ break;
48
+ case "TSNonNullExpression":
49
+ current = current.expression;
50
+ break;
51
+ default:
52
+ return false;
53
+ }
39
54
  }
40
- return false;
41
55
  }
42
56
  function parentNeedsParens(node, parent, parentId) {
43
57
  switch (parentId) {
44
58
  case 112:
45
59
  if (parent.callee === node) {
46
- if (isOrHasCallExpression(node)) return true;
60
+ return newCalleeNeedsParens(node);
47
61
  }
48
62
  break;
49
63
  case 42:
@@ -1 +1 @@
1
- {"version":3,"names":["parens","require","_t","_nodes","VISITOR_KEYS","TokenContext","exports","normal","expressionStatement","arrowBody","exportDefault","arrowFlowReturnType","forInitHead","forInHead","forOfHead","forInOrInitHeadAccumulate","forInOrInitHeadAccumulatePassThroughMask","type","Object","keys","func","generatorInfosMap","has","get","isOrHasCallExpression","node","object","parentNeedsParens","parent","parentId","callee","isDecoratorMemberExpression","computed","property","isLastChild","child","visitorKeys","i","length","val","Array","isArray","j"],"sources":["../../src/node/index.ts"],"sourcesContent":["import * as parens from \"./parentheses.ts\";\nimport { VISITOR_KEYS } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport { generatorInfosMap } from \"../nodes.ts\";\n\nexport const enum TokenContext {\n normal = 0,\n expressionStatement = 1 << 0,\n arrowBody = 1 << 1,\n exportDefault = 1 << 2,\n arrowFlowReturnType = 1 << 3,\n forInitHead = 1 << 4,\n forInHead = 1 << 5,\n forOfHead = 1 << 6,\n // This flag lives across the token boundary, and will\n // be reset after forIn or forInit head is printed\n forInOrInitHeadAccumulate = 1 << 7,\n forInOrInitHeadAccumulatePassThroughMask = 0b10000000,\n}\n\nexport type NodeHandler<R> = (\n node: t.Node,\n // todo:\n // node: K extends keyof typeof t\n // ? Extract<typeof t[K], { type: \"string\" }>\n // : t.Node,\n parent: t.Node,\n parentId: number,\n tokenContext?: number,\n getRawIdentifier?: (node: t.Identifier) => string,\n) => R | undefined;\n\nfor (const type of Object.keys(parens) as (keyof typeof parens)[]) {\n const func = parens[type];\n if (generatorInfosMap.has(type)) {\n generatorInfosMap.get(type)![2] = func;\n }\n}\n\nfunction isOrHasCallExpression(node: t.Node): boolean {\n switch (node.type) {\n case \"CallExpression\":\n return true;\n case \"MemberExpression\":\n return isOrHasCallExpression(node.object);\n }\n return false;\n}\n\nexport function parentNeedsParens(\n node: t.Node,\n parent: any,\n parentId: number,\n): boolean {\n switch (parentId) {\n case __node(\"NewExpression\"):\n if (parent.callee === node) {\n if (isOrHasCallExpression(node)) return true;\n }\n break;\n case __node(\"Decorator\"):\n return (\n !isDecoratorMemberExpression(node) &&\n !(\n node.type === \"CallExpression\" &&\n isDecoratorMemberExpression(node.callee)\n ) &&\n node.type !== \"ParenthesizedExpression\"\n );\n }\n return false;\n}\n\nfunction isDecoratorMemberExpression(node: t.Node): boolean {\n switch (node.type) {\n case \"Identifier\":\n return true;\n case \"MemberExpression\":\n return (\n !node.computed &&\n node.property.type === \"Identifier\" &&\n isDecoratorMemberExpression(node.object)\n );\n default:\n return false;\n }\n}\n\nexport function isLastChild(parent: t.Node, child: t.Node) {\n const visitorKeys = VISITOR_KEYS[parent.type];\n for (let i = visitorKeys.length - 1; i >= 0; i--) {\n const val = (parent as any)[visitorKeys[i]] as t.Node | t.Node[] | null;\n if (val === child) {\n return true;\n } else if (Array.isArray(val)) {\n let j = val.length - 1;\n while (j >= 0 && val[j] === null) j--;\n return j >= 0 && val[j] === child;\n } else if (val) {\n return false;\n }\n }\n return false;\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAAgD;EAHvCG;AAAY,IAAAF,EAAA;AAAA,MAKHG,YAAY,GAAAC,OAAA,CAAAD,YAAA;EAAAE,MAAA;EAAAC,mBAAA;EAAAC,SAAA;EAAAC,aAAA;EAAAC,mBAAA;EAAAC,WAAA;EAAAC,SAAA;EAAAC,SAAA;EAAAC,yBAAA;EAAAC,wCAAA;AAAA;AA2B9B,KAAK,MAAMC,IAAI,IAAIC,MAAM,CAACC,IAAI,CAACnB,MAAM,CAAC,EAA6B;EACjE,MAAMoB,IAAI,GAAGpB,MAAM,CAACiB,IAAI,CAAC;EACzB,IAAII,wBAAiB,CAACC,GAAG,CAACL,IAAI,CAAC,EAAE;IAC/BI,wBAAiB,CAACE,GAAG,CAACN,IAAI,CAAC,CAAE,CAAC,CAAC,GAAGG,IAAI;EACxC;AACF;AAEA,SAASI,qBAAqBA,CAACC,IAAY,EAAW;EACpD,QAAQA,IAAI,CAACR,IAAI;IACf,KAAK,gBAAgB;MACnB,OAAO,IAAI;IACb,KAAK,kBAAkB;MACrB,OAAOO,qBAAqB,CAACC,IAAI,CAACC,MAAM,CAAC;EAC7C;EACA,OAAO,KAAK;AACd;AAEO,SAASC,iBAAiBA,CAC/BF,IAAY,EACZG,MAAW,EACXC,QAAgB,EACP;EACT,QAAQA,QAAQ;IACd;MACE,IAAID,MAAM,CAACE,MAAM,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AC,KAAKP,KAAK;IACnC,CAAC,MAAM,IAAII,GAAG,EAAE;MACd,OAAO,KAAK;IACd;EACF;EACA,OAAO,KAAK;AACd","ignoreList":[]}
1
+ {"version":3,"names":["parens","require","_t","_nodes","VISITOR_KEYS","TokenContext","exports","normal","expressionStatement","arrowBody","exportDefault","arrowFlowReturnType","forInitHead","forInHead","forOfHead","forInOrInitHeadAccumulate","forInOrInitHeadAccumulatePassThroughMask","type","Object","keys","func","generatorInfosMap","has","get","newCalleeNeedsParens","node","current","object","tag","expression","parentNeedsParens","parent","parentId","callee","isDecoratorMemberExpression","computed","property","isLastChild","child","visitorKeys","i","length","val","Array","isArray","j"],"sources":["../../src/node/index.ts"],"sourcesContent":["import * as parens from \"./parentheses.ts\";\nimport { VISITOR_KEYS } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport { generatorInfosMap } from \"../nodes.ts\";\n\nexport const enum TokenContext {\n normal = 0,\n expressionStatement = 1 << 0,\n arrowBody = 1 << 1,\n exportDefault = 1 << 2,\n arrowFlowReturnType = 1 << 3,\n forInitHead = 1 << 4,\n forInHead = 1 << 5,\n forOfHead = 1 << 6,\n // This flag lives across the token boundary, and will\n // be reset after forIn or forInit head is printed\n forInOrInitHeadAccumulate = 1 << 7,\n forInOrInitHeadAccumulatePassThroughMask = 0b10000000,\n}\n\nexport type NodeHandler<R> = (\n node: t.Node,\n // todo:\n // node: K extends keyof typeof t\n // ? Extract<typeof t[K], { type: \"string\" }>\n // : t.Node,\n parent: t.Node,\n parentId: number,\n tokenContext?: number,\n getRawIdentifier?: (node: t.Identifier) => string,\n) => R | undefined;\n\nfor (const type of Object.keys(parens) as (keyof typeof parens)[]) {\n const func = parens[type];\n if (generatorInfosMap.has(type)) {\n generatorInfosMap.get(type)![2] = func;\n }\n}\n\nfunction newCalleeNeedsParens(node: t.Node): boolean {\n let current: t.Node = node;\n while (true) {\n switch (current.type) {\n case \"CallExpression\":\n case \"ImportExpression\":\n case \"OptionalCallExpression\":\n case \"OptionalMemberExpression\":\n return true;\n case \"MemberExpression\":\n current = current.object;\n break;\n case \"TaggedTemplateExpression\":\n current = current.tag;\n break;\n case \"TSNonNullExpression\":\n current = current.expression;\n break;\n default:\n return false;\n }\n }\n}\n\nexport function parentNeedsParens(\n node: t.Node,\n parent: any,\n parentId: number,\n): boolean {\n switch (parentId) {\n case __node(\"NewExpression\"):\n if (parent.callee === node) {\n return newCalleeNeedsParens(node);\n }\n break;\n case __node(\"Decorator\"):\n return (\n !isDecoratorMemberExpression(node) &&\n !(\n node.type === \"CallExpression\" &&\n isDecoratorMemberExpression(node.callee)\n ) &&\n node.type !== \"ParenthesizedExpression\"\n );\n }\n return false;\n}\n\nfunction isDecoratorMemberExpression(node: t.Node): boolean {\n switch (node.type) {\n case \"Identifier\":\n return true;\n case \"MemberExpression\":\n return (\n !node.computed &&\n node.property.type === \"Identifier\" &&\n isDecoratorMemberExpression(node.object)\n );\n default:\n return false;\n }\n}\n\nexport function isLastChild(parent: t.Node, child: t.Node) {\n const visitorKeys = VISITOR_KEYS[parent.type];\n for (let i = visitorKeys.length - 1; i >= 0; i--) {\n const val = (parent as any)[visitorKeys[i]] as t.Node | t.Node[] | null;\n if (val === child) {\n return true;\n } else if (Array.isArray(val)) {\n let j = val.length - 1;\n while (j >= 0 && val[j] === null) j--;\n return j >= 0 && val[j] === child;\n } else if (val) {\n return false;\n }\n }\n return false;\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAAgD;EAHvCG;AAAY,IAAAF,EAAA;AAAA,MAKHG,YAAY,GAAAC,OAAA,CAAAD,YAAA;EAAAE,MAAA;EAAAC,mBAAA;EAAAC,SAAA;EAAAC,aAAA;EAAAC,mBAAA;EAAAC,WAAA;EAAAC,SAAA;EAAAC,SAAA;EAAAC,yBAAA;EAAAC,wCAAA;AAAA;AA2B9B,KAAK,MAAMC,I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,KAAK,kBAAkB;MACrB,OACE,CAACQ,IAAI,CAACU,QAAQ,IACdV,IAAI,CAACW,QAAQ,CAACnB,IAAI,KAAK,YAAY,IACnCiB,2BAA2B,CAACT,IAAI,CAACE,MAAM,CAAC;IAE5C;MACE,OAAO,KAAK;EAChB;AACF;AAEO,SAASU,WAAWA,CAACN,MAAc,EAAEO,KAAa,EAAE;EACzD,MAAMC,WAAW,GAAGnC,YAAY,CAAC2B,MAAM,CAACd,IAAI,CAAC;EAC7C,KAAK,IAAIuB,CAAC,GAAGD,WAAW,CAACE,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAChD,MAAME,GAAG,GAAIX,MAAM,CAASQ,WAAW,CAACC,CAAC,CAAC,CAA6B;IACvE,IAAIE,GAAG,KAAKJ,KAAK,EAAE;MACjB,OAAO,IAAI;IACb,CAAC,MAAM,IAAIK,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,EAAE;MAC7B,IAAIG,CAAC,GAAGH,GAAG,CAACD,MAAM,GAAG,CAAC;MACtB,OAAOI,CAAC,IAAI,CAAC,IAAIH,GAAG,CAACG,CAAC,CAAC,KAAK,IAAI,EAAEA,CAAC,EAAE;MACrC,OAAOA,CAAC,IAAI,CAAC,IAAIH,GAAG,CAACG,CAAC,CAAC,KAAKP,KAAK;IACnC,CAAC,MAAM,IAAII,GAAG,EAAE;MACd,OAAO,KAAK;IACd;EACF;EACA,OAAO,KAAK;AACd","ignoreList":[]}
@@ -337,7 +337,8 @@ class Printer {
337
337
  const spacesCount = count > 0 ? column : column - this._buf.getCurrentColumn();
338
338
  if (spacesCount > 0) {
339
339
  const spaces = this._originalCode ? this._originalCode.slice(index - spacesCount, index).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu, " ") : " ".repeat(spacesCount);
340
- this._append(spaces, false);
340
+ this._buf.append(spaces, false, true);
341
+ this._buf.setSourcePosition(line, column);
341
342
  this.setLastChar(32);
342
343
  }
343
344
  }