@e-llm-studio/instant-learning 0.0.102 → 0.0.103
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.
- package/dist/_virtual/index.js +1 -1
- package/dist/_virtual/index10.js +1 -1
- package/dist/_virtual/index11.js +1 -1
- package/dist/_virtual/index12.js +1 -1
- package/dist/_virtual/index13.js +1 -1
- package/dist/_virtual/index14.js +1 -1
- package/dist/_virtual/index15.js +1 -1
- package/dist/_virtual/index16.js +1 -1
- package/dist/_virtual/index17.js +1 -1
- package/dist/_virtual/index18.js +1 -1
- package/dist/_virtual/index19.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/index20.js +1 -1
- package/dist/_virtual/index21.js +1 -1
- package/dist/_virtual/index22.js +1 -1
- package/dist/_virtual/index23.js +1 -1
- package/dist/_virtual/index24.js +1 -1
- package/dist/_virtual/index25.js +1 -1
- package/dist/_virtual/index27.js +1 -1
- package/dist/_virtual/index28.js +1 -1
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/_virtual/index9.js +1 -1
- package/dist/cjs/_virtual/index.js +1 -1
- package/dist/cjs/_virtual/index10.js +1 -1
- package/dist/cjs/_virtual/index11.js +1 -1
- package/dist/cjs/_virtual/index12.js +1 -1
- package/dist/cjs/_virtual/index13.js +1 -1
- package/dist/cjs/_virtual/index14.js +1 -1
- package/dist/cjs/_virtual/index15.js +1 -1
- package/dist/cjs/_virtual/index16.js +1 -1
- package/dist/cjs/_virtual/index17.js +1 -1
- package/dist/cjs/_virtual/index18.js +1 -1
- package/dist/cjs/_virtual/index19.js +1 -1
- package/dist/cjs/_virtual/index2.js +1 -1
- package/dist/cjs/_virtual/index20.js +1 -1
- package/dist/cjs/_virtual/index21.js +1 -1
- package/dist/cjs/_virtual/index22.js +1 -1
- package/dist/cjs/_virtual/index23.js +1 -1
- package/dist/cjs/_virtual/index24.js +1 -1
- package/dist/cjs/_virtual/index25.js +1 -1
- package/dist/cjs/_virtual/index27.js +1 -1
- package/dist/cjs/_virtual/index28.js +1 -1
- package/dist/cjs/_virtual/index3.js +1 -1
- package/dist/cjs/_virtual/index4.js +1 -1
- package/dist/cjs/_virtual/index5.js +1 -1
- package/dist/cjs/_virtual/index6.js +1 -1
- package/dist/cjs/_virtual/index7.js +1 -1
- package/dist/cjs/_virtual/index8.js +1 -1
- package/dist/cjs/_virtual/index9.js +1 -1
- package/dist/cjs/features/DocumentLearning/DocumentLearning.js +1 -1
- package/dist/cjs/features/DocumentLearning/_components/BookLearningForm.js +1 -1
- package/dist/cjs/features/DocumentLearning/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/DocumentLearning/_components/ConflictingLearningWarnCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/cjs/features/InstantLearning/InstantLearning.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ConflictingLearningWarnCard.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ConflictingLearningWarnCardDB.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ContextualChatComponent.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ContextualConflictDBCard.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/GeneralizationAccordion.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
- package/dist/cjs/features/WtaWnta/WtaWnta.js +1 -1
- package/dist/cjs/features/WtaWnta/_components/AgentDetailsForm.js +1 -1
- package/dist/cjs/features/WtaWnta/_components/SimilarConflictingCard.js +1 -1
- package/dist/cjs/features/WtaWnta/_components/ValidationCard.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/dist/index.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/dist/index.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createPalette.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createSpacing.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createSpacing.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createTheme.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createTypography.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/utils/capitalize.js +1 -1
- package/dist/cjs/node_modules/@material-ui/icons/utils/createSvgIcon.js +1 -1
- package/dist/cjs/node_modules/@material-ui/icons/utils/createSvgIcon.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/index.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withTheme/withTheme.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withTheme/withTheme.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/breakpoints.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/breakpoints.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/merge.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/responsivePropType.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/responsivePropType.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementAcceptingRef.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/getDisplayName.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Accordion/Accordion.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Accordion/Accordion.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionActions/AccordionActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionActions/AccordionActions.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionDetails/AccordionDetails.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionSummary/AccordionSummary.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Alert/Alert.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Alert/Alert.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AlertTitle/AlertTitle.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AppBar/AppBar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AppBar/AppBar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Avatar/Avatar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Avatar/Avatar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Backdrop/Backdrop.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Badge/Badge.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Badge/Badge.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Badge/useBadge.js +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigation/BottomNavigation.js +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigation/BottomNavigation.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Box/Box.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Box/Box.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Button/Button.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Button/Button.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/ButtonBase.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/Ripple.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Card/Card.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Card/Card.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActionArea/CardActionArea.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActionArea/CardActionArea.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActions/CardActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActions/CardActions.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardContent/CardContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardContent/CardContent.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardHeader/CardHeader.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardHeader/CardHeader.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardMedia/CardMedia.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Checkbox/Checkbox.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Chip/Chip.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Chip/Chip.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Collapse/Collapse.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Collapse/Collapse.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Container/Container.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Container/Container.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CssBaseline/CssBaseline.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Dialog/Dialog.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Dialog/Dialog.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogActions/DialogActions.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContent/DialogContent.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContentText/DialogContentText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContentText/DialogContentText.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogTitle/DialogTitle.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogTitle/DialogTitle.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Divider/Divider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Divider/Divider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Drawer/Drawer.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Fab/Fab.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Fab/Fab.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Fade/Fade.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Fade/Fade.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FilledInput/FilledInput.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControl/FormControl.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControl/FormControl.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControlLabel/FormControlLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormGroup/FormGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormHelperText/FormHelperText.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormLabel/FormLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Grid/Grid.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Grid/Grid.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Grow/Grow.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Grow/Grow.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/Hidden.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/Hidden.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenJs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenJs.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/withWidth.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/withWidth.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Icon/Icon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Icon/Icon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/IconButton/IconButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/IconButton/IconButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageList/ImageList.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageList/ImageList.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItem/ImageListItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItem/ImageListItem.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Input/Input.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Input/Input.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputAdornment/InputAdornment.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/InputBase/InputBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputBase/InputBase.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputLabel/InputLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js +1 -1
- package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/Link.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/Link.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/List/List.js +1 -1
- package/dist/cjs/node_modules/@mui/material/List/List.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItem/ListItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItem/ListItem.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemButton/ListItemButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemIcon/ListItemIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemText/ListItemText.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListSubheader/ListSubheader.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListSubheader/ListSubheader.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Menu/Menu.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Menu/Menu.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuItem/MenuItem.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuList/MenuList.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuList/MenuList.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/MobileStepper/MobileStepper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MobileStepper/MobileStepper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/Modal.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/Modal.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/ModalManager.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/useModal.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelect.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelect.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelectInput.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/NoSsr/NoSsr.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NoSsr/NoSsr.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/NotchedOutline.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/OutlinedInput.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Pagination/Pagination.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/PaginationItem/PaginationItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/PaginationItem/PaginationItem.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Paper/Paper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Paper/Paper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Popover/Popover.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popover/Popover.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/BasePopper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/BasePopper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/Popper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/Popper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Portal/Portal.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Portal/Portal.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/Radio.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/Radio.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/RadioButtonIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Rating/Rating.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Rating/Rating.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/Select.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/Select.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/SelectInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/SelectInput.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Slide/Slide.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slide/Slide.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Snackbar/useSnackbar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SnackbarContent/SnackbarContent.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDial/SpeedDial.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Stack/Stack.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Step/Step.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Step/Step.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepButton/StepButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepButton/StepButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepConnector/StepConnector.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepContent/StepContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepContent/StepContent.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepIcon/StepIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepLabel/StepLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Stepper/Stepper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Stepper/Stepper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Switch/Switch.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Switch/Switch.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Tab/Tab.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tab/Tab.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TabScrollButton/TabScrollButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Table/Table.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Table/Table.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableBody/TableBody.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableBody/TableBody.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableCell/TableCell.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableCell/TableCell.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableContainer/TableContainer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableContainer/TableContainer.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableFooter/TableFooter.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableFooter/TableFooter.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableHead/TableHead.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableHead/TableHead.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePagination.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePagination.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePaginationActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePaginationActions.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableRow/TableRow.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableRow/TableRow.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableSortLabel/TableSortLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/ScrollbarSize.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/Tabs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TextField/TextField.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TextField/TextField.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Toolbar/Toolbar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Toolbar/Toolbar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Typography/Typography.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Typography/Typography.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Zoom/Zoom.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Zoom/Zoom.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/internal/SwitchBase.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/internal/svg-icons/Add.js +1 -1
- package/dist/cjs/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +1 -1
- package/dist/cjs/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/colorManipulator.js +1 -1
- package/dist/cjs/node_modules/@mui/system/createStyled.js +1 -1
- package/dist/cjs/node_modules/@mui/system/createStyled.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Box/Box.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Box/Box.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/Container.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/Container.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/Stack.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/Grid.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/Grid.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/cjs/node_modules/@mui/system/useThemeWithoutDefault.js.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/refType/refType.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/refType/refType.js.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/graphql-ws/lib/index.js +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/json5/dist/index.js +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/brain.js +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/brain.js.map +1 -1
- package/dist/cjs/node_modules/prop-types/index.js +1 -1
- package/dist/cjs/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/cjs/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/cjs/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/ast-to-react.js +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/ast-to-react.js.map +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/react-markdown.js +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/react-markdown.js.map +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unified/lib/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unified/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/ReplaceTransition.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/SwitchTransition.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/Transition.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroup.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -1
- package/dist/cjs/node_modules/uuid/dist/cjs-browser/index.js +1 -1
- package/dist/features/DocumentLearning/DocumentLearning.js +1 -1
- package/dist/features/DocumentLearning/_components/BookLearningForm.js +1 -1
- package/dist/features/DocumentLearning/_components/ChatComponent.js +1 -1
- package/dist/features/DocumentLearning/_components/ConflictingLearningWarnCard.js +1 -1
- package/dist/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js +2 -0
- package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js.map +1 -0
- package/dist/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering.js +1 -1
- package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/features/InstantLearning/InstantLearning.js +1 -1
- package/dist/features/InstantLearning/_components/ChatComponent.js +1 -1
- package/dist/features/InstantLearning/_components/ConflictingLearningWarnCard.js +1 -1
- package/dist/features/InstantLearning/_components/ConflictingLearningWarnCardDB.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualChatComponent.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualConflictDBCard.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
- package/dist/features/InstantLearning/_components/GeneralizationAccordion.js +1 -1
- package/dist/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
- package/dist/features/WtaWnta/WtaWnta.js +1 -1
- package/dist/features/WtaWnta/_components/AgentDetailsForm.js +1 -1
- package/dist/features/WtaWnta/_components/SimilarConflictingCard.js +1 -1
- package/dist/features/WtaWnta/_components/ValidationCard.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/@e-llm-studio/streaming-response/dist/index.js +1 -1
- package/dist/node_modules/@e-llm-studio/streaming-response/dist/index.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createPalette.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createSpacing.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createSpacing.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createTheme.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createTypography.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/utils/capitalize.js +1 -1
- package/dist/node_modules/@material-ui/icons/utils/createSvgIcon.js +1 -1
- package/dist/node_modules/@material-ui/icons/utils/createSvgIcon.js.map +1 -1
- package/dist/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js.map +1 -1
- package/dist/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/index.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withStyles/withStyles.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withStyles/withStyles.js.map +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withTheme/withTheme.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withTheme/withTheme.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/breakpoints.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/breakpoints.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/merge.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/responsivePropType.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/responsivePropType.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/spacing.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/spacing.js.map +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementAcceptingRef.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementAcceptingRef.js.map +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js.map +1 -1
- package/dist/node_modules/@material-ui/utils/esm/getDisplayName.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/refType.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/refType.js.map +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions.js +1 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js.map +1 -1
- package/dist/node_modules/@mui/material/Alert/Alert.js +1 -1
- package/dist/node_modules/@mui/material/Alert/Alert.js.map +1 -1
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js.map +1 -1
- package/dist/node_modules/@mui/material/AppBar/AppBar.js +1 -1
- package/dist/node_modules/@mui/material/AppBar/AppBar.js.map +1 -1
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/node_modules/@mui/material/Avatar/Avatar.js +1 -1
- package/dist/node_modules/@mui/material/Avatar/Avatar.js.map +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js.map +1 -1
- package/dist/node_modules/@mui/material/Badge/Badge.js +1 -1
- package/dist/node_modules/@mui/material/Badge/Badge.js.map +1 -1
- package/dist/node_modules/@mui/material/Badge/useBadge.js +1 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation.js +1 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation.js.map +1 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js.map +1 -1
- package/dist/node_modules/@mui/material/Box/Box.js +1 -1
- package/dist/node_modules/@mui/material/Box/Box.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/node_modules/@mui/material/Button/Button.js +1 -1
- package/dist/node_modules/@mui/material/Button/Button.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/Ripple.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/Card/Card.js +1 -1
- package/dist/node_modules/@mui/material/Card/Card.js.map +1 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea.js +1 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea.js.map +1 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions.js +1 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions.js.map +1 -1
- package/dist/node_modules/@mui/material/CardContent/CardContent.js +1 -1
- package/dist/node_modules/@mui/material/CardContent/CardContent.js.map +1 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader.js +1 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader.js.map +1 -1
- package/dist/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
- package/dist/node_modules/@mui/material/CardMedia/CardMedia.js.map +1 -1
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js.map +1 -1
- package/dist/node_modules/@mui/material/Chip/Chip.js +1 -1
- package/dist/node_modules/@mui/material/Chip/Chip.js.map +1 -1
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +1 -1
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js.map +1 -1
- package/dist/node_modules/@mui/material/Collapse/Collapse.js +1 -1
- package/dist/node_modules/@mui/material/Collapse/Collapse.js.map +1 -1
- package/dist/node_modules/@mui/material/Container/Container.js +1 -1
- package/dist/node_modules/@mui/material/Container/Container.js.map +1 -1
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline.js.map +1 -1
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/node_modules/@mui/material/Dialog/Dialog.js +1 -1
- package/dist/node_modules/@mui/material/Dialog/Dialog.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js +1 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js +1 -1
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js.map +1 -1
- package/dist/node_modules/@mui/material/Divider/Divider.js +1 -1
- package/dist/node_modules/@mui/material/Divider/Divider.js.map +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer.js.map +1 -1
- package/dist/node_modules/@mui/material/Fab/Fab.js +1 -1
- package/dist/node_modules/@mui/material/Fab/Fab.js.map +1 -1
- package/dist/node_modules/@mui/material/Fade/Fade.js +1 -1
- package/dist/node_modules/@mui/material/Fade/Fade.js.map +1 -1
- package/dist/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
- package/dist/node_modules/@mui/material/FilledInput/FilledInput.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl.js +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js.map +1 -1
- package/dist/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
- package/dist/node_modules/@mui/material/FormLabel/FormLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/node_modules/@mui/material/Grid/Grid.js +1 -1
- package/dist/node_modules/@mui/material/Grid/Grid.js.map +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow.js +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth.js.map +1 -1
- package/dist/node_modules/@mui/material/Icon/Icon.js +1 -1
- package/dist/node_modules/@mui/material/Icon/Icon.js.map +1 -1
- package/dist/node_modules/@mui/material/IconButton/IconButton.js +1 -1
- package/dist/node_modules/@mui/material/IconButton/IconButton.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList.js +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem.js +1 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js +1 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js.map +1 -1
- package/dist/node_modules/@mui/material/Input/Input.js +1 -1
- package/dist/node_modules/@mui/material/Input/Input.js.map +1 -1
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment.js.map +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase.js +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase.js.map +1 -1
- package/dist/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
- package/dist/node_modules/@mui/material/InputLabel/InputLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +1 -1
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js.map +1 -1
- package/dist/node_modules/@mui/material/Link/Link.js +1 -1
- package/dist/node_modules/@mui/material/Link/Link.js.map +1 -1
- package/dist/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
- package/dist/node_modules/@mui/material/Link/getTextDecoration.js.map +1 -1
- package/dist/node_modules/@mui/material/List/List.js +1 -1
- package/dist/node_modules/@mui/material/List/List.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItem/ListItem.js +1 -1
- package/dist/node_modules/@mui/material/ListItem/ListItem.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js +1 -1
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +1 -1
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
- package/dist/node_modules/@mui/material/ListItemText/ListItemText.js.map +1 -1
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader.js +1 -1
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader.js.map +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu.js +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu.js.map +1 -1
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js.map +1 -1
- package/dist/node_modules/@mui/material/MenuList/MenuList.js +1 -1
- package/dist/node_modules/@mui/material/MenuList/MenuList.js.map +1 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper.js +1 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper.js.map +1 -1
- package/dist/node_modules/@mui/material/Modal/Modal.js +1 -1
- package/dist/node_modules/@mui/material/Modal/Modal.js.map +1 -1
- package/dist/node_modules/@mui/material/Modal/ModalManager.js +1 -1
- package/dist/node_modules/@mui/material/Modal/useModal.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect.js.map +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput.js.map +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr.js +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js.map +1 -1
- package/dist/node_modules/@mui/material/Pagination/Pagination.js +1 -1
- package/dist/node_modules/@mui/material/Pagination/Pagination.js.map +1 -1
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem.js +1 -1
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem.js.map +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper.js +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper.js.map +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover.js.map +1 -1
- package/dist/node_modules/@mui/material/Popper/BasePopper.js +1 -1
- package/dist/node_modules/@mui/material/Popper/BasePopper.js.map +1 -1
- package/dist/node_modules/@mui/material/Popper/Popper.js +1 -1
- package/dist/node_modules/@mui/material/Popper/Popper.js.map +1 -1
- package/dist/node_modules/@mui/material/Portal/Portal.js +1 -1
- package/dist/node_modules/@mui/material/Portal/Portal.js.map +1 -1
- package/dist/node_modules/@mui/material/Radio/Radio.js +1 -1
- package/dist/node_modules/@mui/material/Radio/Radio.js.map +1 -1
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating.js +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating.js.map +1 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js.map +1 -1
- package/dist/node_modules/@mui/material/Select/Select.js +1 -1
- package/dist/node_modules/@mui/material/Select/Select.js.map +1 -1
- package/dist/node_modules/@mui/material/Select/SelectInput.js +1 -1
- package/dist/node_modules/@mui/material/Select/SelectInput.js.map +1 -1
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +1 -1
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js.map +1 -1
- package/dist/node_modules/@mui/material/Slide/Slide.js +1 -1
- package/dist/node_modules/@mui/material/Slide/Slide.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/Slider.js +1 -1
- package/dist/node_modules/@mui/material/Slider/Slider.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js.map +1 -1
- package/dist/node_modules/@mui/material/Snackbar/useSnackbar.js +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/dist/node_modules/@mui/material/Stack/Stack.js.map +1 -1
- package/dist/node_modules/@mui/material/Step/Step.js +1 -1
- package/dist/node_modules/@mui/material/Step/Step.js.map +1 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton.js +1 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton.js.map +1 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js.map +1 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent.js +1 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent.js.map +1 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper.js +1 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper.js.map +1 -1
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js.map +1 -1
- package/dist/node_modules/@mui/material/Switch/Switch.js +1 -1
- package/dist/node_modules/@mui/material/Switch/Switch.js.map +1 -1
- package/dist/node_modules/@mui/material/Tab/Tab.js +1 -1
- package/dist/node_modules/@mui/material/Tab/Tab.js.map +1 -1
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js.map +1 -1
- package/dist/node_modules/@mui/material/Table/Table.js +1 -1
- package/dist/node_modules/@mui/material/Table/Table.js.map +1 -1
- package/dist/node_modules/@mui/material/TableBody/TableBody.js +1 -1
- package/dist/node_modules/@mui/material/TableBody/TableBody.js.map +1 -1
- package/dist/node_modules/@mui/material/TableCell/TableCell.js +1 -1
- package/dist/node_modules/@mui/material/TableCell/TableCell.js.map +1 -1
- package/dist/node_modules/@mui/material/TableContainer/TableContainer.js +1 -1
- package/dist/node_modules/@mui/material/TableContainer/TableContainer.js.map +1 -1
- package/dist/node_modules/@mui/material/TableFooter/TableFooter.js +1 -1
- package/dist/node_modules/@mui/material/TableFooter/TableFooter.js.map +1 -1
- package/dist/node_modules/@mui/material/TableHead/TableHead.js +1 -1
- package/dist/node_modules/@mui/material/TableHead/TableHead.js.map +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination.js +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination.js.map +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions.js +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions.js.map +1 -1
- package/dist/node_modules/@mui/material/TableRow/TableRow.js +1 -1
- package/dist/node_modules/@mui/material/TableRow/TableRow.js.map +1 -1
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +1 -1
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js.map +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs.js.map +1 -1
- package/dist/node_modules/@mui/material/TextField/TextField.js +1 -1
- package/dist/node_modules/@mui/material/TextField/TextField.js.map +1 -1
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/Toolbar/Toolbar.js +1 -1
- package/dist/node_modules/@mui/material/Toolbar/Toolbar.js.map +1 -1
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
- package/dist/node_modules/@mui/material/Typography/Typography.js +1 -1
- package/dist/node_modules/@mui/material/Typography/Typography.js.map +1 -1
- package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
- package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js.map +1 -1
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js.map +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom.js +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom.js.map +1 -1
- package/dist/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/dist/node_modules/@mui/material/internal/SwitchBase.js.map +1 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Add.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
- package/dist/node_modules/@mui/material/styles/CssVarsProvider.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
- package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/useTheme.js +1 -1
- package/dist/node_modules/@mui/material/styles/useTheme.js.map +1 -1
- package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +1 -1
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js.map +1 -1
- package/dist/node_modules/@mui/system/colorManipulator.js +1 -1
- package/dist/node_modules/@mui/system/createStyled.js +1 -1
- package/dist/node_modules/@mui/system/createStyled.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Box/Box.js +1 -1
- package/dist/node_modules/@mui/system/esm/Box/Box.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Container/Container.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/Container.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/Stack.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/Grid.js +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/Grid.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/breakpoints.js +1 -1
- package/dist/node_modules/@mui/system/esm/breakpoints.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType.js +1 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType.js.map +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
- package/dist/node_modules/@mui/utils/esm/refType/refType.js +1 -1
- package/dist/node_modules/@mui/utils/esm/refType/refType.js.map +1 -1
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/graphql-ws/lib/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/json5/dist/index.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/brain.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/brain.js.map +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/ast-to-react.js +1 -1
- package/dist/node_modules/react-markdown/lib/ast-to-react.js.map +1 -1
- package/dist/node_modules/react-markdown/lib/react-markdown.js +1 -1
- package/dist/node_modules/react-markdown/lib/react-markdown.js.map +1 -1
- package/dist/node_modules/react-markdown/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/unified/lib/index.js.map +1 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/index.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/index.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/ReplaceTransition.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/SwitchTransition.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -1
- package/dist/node_modules/uuid/dist/cjs-browser/index.js +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponent.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts +7 -0
- package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +0 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/react-markdown/node_modules/unified/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('vfile').VFileCompatible} VFileCompatible\n * @typedef {import('vfile').VFileValue} VFileValue\n * @typedef {import('..').Processor} Processor\n * @typedef {import('..').Plugin} Plugin\n * @typedef {import('..').Preset} Preset\n * @typedef {import('..').Pluggable} Pluggable\n * @typedef {import('..').PluggableList} PluggableList\n * @typedef {import('..').Transformer} Transformer\n * @typedef {import('..').Parser} Parser\n * @typedef {import('..').Compiler} Compiler\n * @typedef {import('..').RunCallback} RunCallback\n * @typedef {import('..').ProcessCallback} ProcessCallback\n *\n * @typedef Context\n * @property {Node} tree\n * @property {VFile} file\n */\n\nimport {bail} from 'bail'\nimport isBuffer from 'is-buffer'\nimport extend from 'extend'\nimport isPlainObj from 'is-plain-obj'\nimport {trough} from 'trough'\nimport {VFile} from 'vfile'\n\n// Expose a frozen processor.\nexport const unified = base().freeze()\n\nconst own = {}.hasOwnProperty\n\n// Function to create the first processor.\n/**\n * @returns {Processor}\n */\nfunction base() {\n const transformers = trough()\n /** @type {Processor['attachers']} */\n const attachers = []\n /** @type {Record<string, unknown>} */\n let namespace = {}\n /** @type {boolean|undefined} */\n let frozen\n let freezeIndex = -1\n\n // Data management.\n // @ts-expect-error: overloads are handled.\n processor.data = data\n processor.Parser = undefined\n processor.Compiler = undefined\n\n // Lock.\n processor.freeze = freeze\n\n // Plugins.\n processor.attachers = attachers\n // @ts-expect-error: overloads are handled.\n processor.use = use\n\n // API.\n processor.parse = parse\n processor.stringify = stringify\n // @ts-expect-error: overloads are handled.\n processor.run = run\n processor.runSync = runSync\n // @ts-expect-error: overloads are handled.\n processor.process = process\n processor.processSync = processSync\n\n // Expose.\n return processor\n\n // Create a new processor based on the processor in the current scope.\n /** @type {Processor} */\n function processor() {\n const destination = base()\n let index = -1\n\n while (++index < attachers.length) {\n destination.use(...attachers[index])\n }\n\n destination.data(extend(true, {}, namespace))\n\n return destination\n }\n\n /**\n * @param {string|Record<string, unknown>} [key]\n * @param {unknown} [value]\n * @returns {unknown}\n */\n function data(key, value) {\n if (typeof key === 'string') {\n // Set `key`.\n if (arguments.length === 2) {\n assertUnfrozen('data', frozen)\n namespace[key] = value\n return processor\n }\n\n // Get `key`.\n return (own.call(namespace, key) && namespace[key]) || null\n }\n\n // Set space.\n if (key) {\n assertUnfrozen('data', frozen)\n namespace = key\n return processor\n }\n\n // Get space.\n return namespace\n }\n\n /** @type {Processor['freeze']} */\n function freeze() {\n if (frozen) {\n return processor\n }\n\n while (++freezeIndex < attachers.length) {\n const [attacher, ...options] = attachers[freezeIndex]\n\n if (options[0] === false) {\n continue\n }\n\n if (options[0] === true) {\n options[0] = undefined\n }\n\n /** @type {Transformer|void} */\n const transformer = attacher.call(processor, ...options)\n\n if (typeof transformer === 'function') {\n transformers.use(transformer)\n }\n }\n\n frozen = true\n freezeIndex = Number.POSITIVE_INFINITY\n\n return processor\n }\n\n /**\n * @param {Pluggable|null|undefined} [value]\n * @param {...unknown} options\n * @returns {Processor}\n */\n function use(value, ...options) {\n /** @type {Record<string, unknown>|undefined} */\n let settings\n\n assertUnfrozen('use', frozen)\n\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'function') {\n addPlugin(value, ...options)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n addList(value)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n\n if (settings) {\n namespace.settings = Object.assign(namespace.settings || {}, settings)\n }\n\n return processor\n\n /**\n * @param {import('..').Pluggable<unknown[]>} value\n * @returns {void}\n */\n function add(value) {\n if (typeof value === 'function') {\n addPlugin(value)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n const [plugin, ...options] = value\n addPlugin(plugin, ...options)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n }\n\n /**\n * @param {Preset} result\n * @returns {void}\n */\n function addPreset(result) {\n addList(result.plugins)\n\n if (result.settings) {\n settings = Object.assign(settings || {}, result.settings)\n }\n }\n\n /**\n * @param {PluggableList|null|undefined} [plugins]\n * @returns {void}\n */\n function addList(plugins) {\n let index = -1\n\n if (plugins === null || plugins === undefined) {\n // Empty.\n } else if (Array.isArray(plugins)) {\n while (++index < plugins.length) {\n const thing = plugins[index]\n add(thing)\n }\n } else {\n throw new TypeError('Expected a list of plugins, not `' + plugins + '`')\n }\n }\n\n /**\n * @param {Plugin} plugin\n * @param {...unknown} [value]\n * @returns {void}\n */\n function addPlugin(plugin, value) {\n let index = -1\n /** @type {Processor['attachers'][number]|undefined} */\n let entry\n\n while (++index < attachers.length) {\n if (attachers[index][0] === plugin) {\n entry = attachers[index]\n break\n }\n }\n\n if (entry) {\n if (isPlainObj(entry[1]) && isPlainObj(value)) {\n value = extend(true, entry[1], value)\n }\n\n entry[1] = value\n } else {\n // @ts-expect-error: fine.\n attachers.push([...arguments])\n }\n }\n }\n\n /** @type {Processor['parse']} */\n function parse(doc) {\n processor.freeze()\n const file = vfile(doc)\n const Parser = processor.Parser\n assertParser('parse', Parser)\n\n if (newable(Parser, 'parse')) {\n // @ts-expect-error: `newable` checks this.\n return new Parser(String(file), file).parse()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Parser(String(file), file) // eslint-disable-line new-cap\n }\n\n /** @type {Processor['stringify']} */\n function stringify(node, doc) {\n processor.freeze()\n const file = vfile(doc)\n const Compiler = processor.Compiler\n assertCompiler('stringify', Compiler)\n assertNode(node)\n\n if (newable(Compiler, 'compile')) {\n // @ts-expect-error: `newable` checks this.\n return new Compiler(node, file).compile()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Compiler(node, file) // eslint-disable-line new-cap\n }\n\n /**\n * @param {Node} node\n * @param {VFileCompatible|RunCallback} [doc]\n * @param {RunCallback} [callback]\n * @returns {Promise<Node>|void}\n */\n function run(node, doc, callback) {\n assertNode(node)\n processor.freeze()\n\n if (!callback && typeof doc === 'function') {\n callback = doc\n doc = undefined\n }\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((node: Node) => void)} resolve\n * @param {(error: Error) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n // @ts-expect-error: `doc` can’t be a callback anymore, we checked.\n transformers.run(node, vfile(doc), done)\n\n /**\n * @param {Error|null} error\n * @param {Node} tree\n * @param {VFile} file\n * @returns {void}\n */\n function done(error, tree, file) {\n tree = tree || node\n if (error) {\n reject(error)\n } else if (resolve) {\n resolve(tree)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, tree, file)\n }\n }\n }\n }\n\n /** @type {Processor['runSync']} */\n function runSync(node, file) {\n /** @type {Node|undefined} */\n let result\n /** @type {boolean|undefined} */\n let complete\n\n processor.run(node, file, done)\n\n assertDone('runSync', 'run', complete)\n\n // @ts-expect-error: we either bailed on an error or have a tree.\n return result\n\n /**\n * @param {Error|null} [error]\n * @param {Node} [tree]\n * @returns {void}\n */\n function done(error, tree) {\n bail(error)\n result = tree\n complete = true\n }\n }\n\n /**\n * @param {VFileCompatible} doc\n * @param {ProcessCallback} [callback]\n * @returns {Promise<VFile>|undefined}\n */\n function process(doc, callback) {\n processor.freeze()\n assertParser('process', processor.Parser)\n assertCompiler('process', processor.Compiler)\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((file: VFile) => void)} resolve\n * @param {(error?: Error|null|undefined) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n const file = vfile(doc)\n\n processor.run(processor.parse(file), file, (error, tree, file) => {\n if (error || !tree || !file) {\n done(error)\n } else {\n /** @type {unknown} */\n const result = processor.stringify(tree, file)\n\n if (result === undefined || result === null) {\n // Empty.\n } else if (looksLikeAVFileValue(result)) {\n file.value = result\n } else {\n file.result = result\n }\n\n done(error, file)\n }\n })\n\n /**\n * @param {Error|null|undefined} [error]\n * @param {VFile|undefined} [file]\n * @returns {void}\n */\n function done(error, file) {\n if (error || !file) {\n reject(error)\n } else if (resolve) {\n resolve(file)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, file)\n }\n }\n }\n }\n\n /** @type {Processor['processSync']} */\n function processSync(doc) {\n /** @type {boolean|undefined} */\n let complete\n\n processor.freeze()\n assertParser('processSync', processor.Parser)\n assertCompiler('processSync', processor.Compiler)\n\n const file = vfile(doc)\n\n processor.process(file, done)\n\n assertDone('processSync', 'process', complete)\n\n return file\n\n /**\n * @param {Error|null|undefined} [error]\n * @returns {void}\n */\n function done(error) {\n complete = true\n bail(error)\n }\n }\n}\n\n/**\n * Check if `value` is a constructor.\n *\n * @param {unknown} value\n * @param {string} name\n * @returns {boolean}\n */\nfunction newable(value, name) {\n return (\n typeof value === 'function' &&\n // Prototypes do exist.\n // type-coverage:ignore-next-line\n value.prototype &&\n // A function with keys in its prototype is probably a constructor.\n // Classes’ prototype methods are not enumerable, so we check if some value\n // exists in the prototype.\n // type-coverage:ignore-next-line\n (keys(value.prototype) || name in value.prototype)\n )\n}\n\n/**\n * Check if `value` is an object with keys.\n *\n * @param {Record<string, unknown>} value\n * @returns {boolean}\n */\nfunction keys(value) {\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n return true\n }\n }\n\n return false\n}\n\n/**\n * Assert a parser is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Parser}\n */\nfunction assertParser(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Parser`')\n }\n}\n\n/**\n * Assert a compiler is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Compiler}\n */\nfunction assertCompiler(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Compiler`')\n }\n}\n\n/**\n * Assert the processor is not frozen.\n *\n * @param {string} name\n * @param {unknown} frozen\n * @returns {asserts frozen is false}\n */\nfunction assertUnfrozen(name, frozen) {\n if (frozen) {\n throw new Error(\n 'Cannot call `' +\n name +\n '` on a frozen processor.\\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.'\n )\n }\n}\n\n/**\n * Assert `node` is a unist node.\n *\n * @param {unknown} node\n * @returns {asserts node is Node}\n */\nfunction assertNode(node) {\n // `isPlainObj` unfortunately uses `any` instead of `unknown`.\n // type-coverage:ignore-next-line\n if (!isPlainObj(node) || typeof node.type !== 'string') {\n throw new TypeError('Expected node, got `' + node + '`')\n // Fine.\n }\n}\n\n/**\n * Assert that `complete` is `true`.\n *\n * @param {string} name\n * @param {string} asyncName\n * @param {unknown} complete\n * @returns {asserts complete is true}\n */\nfunction assertDone(name, asyncName, complete) {\n if (!complete) {\n throw new Error(\n '`' + name + '` finished async. Use `' + asyncName + '` instead'\n )\n }\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {VFile}\n */\nfunction vfile(value) {\n return looksLikeAVFile(value) ? value : new VFile(value)\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {value is VFile}\n */\nfunction looksLikeAVFile(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'message' in value &&\n 'messages' in value\n )\n}\n\n/**\n * @param {unknown} [value]\n * @returns {value is VFileValue}\n */\nfunction looksLikeAVFileValue(value) {\n return typeof value === 'string' || isBuffer(value)\n}\n"],"names":["unified","base","transformers","trough","attachers","frozen","namespace","freezeIndex","processor","data","key","value","arguments","length","assertUnfrozen","own","call","Parser","undefined","Compiler","freeze","attacher","options","transformer","use","Number","POSITIVE_INFINITY","settings","addPlugin","TypeError","Array","isArray","addList","addPreset","Object","assign","add","plugin","result","plugins","index","entry","isPlainObj","extend","push","parse","doc","file","vfile","assertParser","newable","String","stringify","node","assertCompiler","assertNode","compile","run","callback","Promise","executor","resolve","reject","done","error","tree","runSync","complete","assertDone","bail","process","isBuffer","processSync","destination","hasOwnProperty","name","prototype","keys","Error","type","asyncName","Boolean","looksLikeAVFile","VFile"],"mappings":"yUA4BY,MAACA,EAQb,SAASC,IACP,MAAMC,EAAeC,EAAAA,SAEfC,EAAY,GAElB,IAEIC,EAFAC,EAAY,CAAE,EAGdC,GAAe,EA2BnB,OAvBAC,EAAUC,KA6CV,SAAcC,EAAKC,GACjB,GAAmB,iBAARD,EAET,OAAyB,IAArBE,UAAUC,QACZC,EAAe,OAAQT,GACvBC,EAAUI,GAAOC,EACVH,GAIDO,EAAIC,KAAKV,EAAWI,IAAQJ,EAAUI,IAAS,KAIzD,GAAIA,EAGF,OAFAI,EAAe,OAAQT,GACvBC,EAAYI,EACLF,EAIT,OAAOF,CACR,EAlEDE,EAAUS,YAASC,EACnBV,EAAUW,cAAWD,EAGrBV,EAAUY,OAiEV,WACE,GAAIf,EACF,OAAOG,EAGT,OAASD,EAAcH,EAAUS,QAAQ,CACvC,MAAOQ,KAAaC,GAAWlB,EAAUG,GAEzC,IAAmB,IAAfe,EAAQ,GACV,UAGiB,IAAfA,EAAQ,KACVA,EAAQ,QAAKJ,GAIf,MAAMK,EAAcF,EAASL,KAAKR,KAAcc,GAErB,mBAAhBC,GACTrB,EAAasB,IAAID,EAEpB,CAKD,OAHAlB,GAAS,EACTE,EAAckB,OAAOC,kBAEdlB,CACR,EA1FDA,EAAUJ,UAAYA,EAEtBI,EAAUgB,IA+FV,SAAab,KAAUW,GAErB,IAAIK,EAIJ,GAFAb,EAAe,MAAOT,GAElBM,cAEG,GAAqB,mBAAVA,EAChBiB,EAAUjB,KAAUW,OACf,IAAqB,iBAAVX,EAOhB,MAAM,IAAIkB,UAAU,+BAAiClB,EAAQ,KANzDmB,MAAMC,QAAQpB,GAChBqB,EAAQrB,GAERsB,EAAUtB,EAIb,CAEGgB,IACFrB,EAAUqB,SAAWO,OAAOC,OAAO7B,EAAUqB,UAAY,CAAE,EAAEA,IAG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M,IAAIkB,UAAU,WAAa8C,EAAO,uBAE5C,CASA,SAAS7D,EAAe6D,EAAMtE,GAC5B,GAAIA,EACF,MAAM,IAAIyE,MACR,gBACEH,EACA,mHAGR,CAQA,SAASpB,EAAWF,GAGlB,IAAKX,EAAU,QAACW,IAA8B,iBAAdA,EAAK0B,KACnC,MAAM,IAAIlD,UAAU,uBAAyBwB,EAAO,IAGxD,CAUA,SAASe,EAAWO,EAAMK,EAAWb,GACnC,IAAKA,EACH,MAAM,IAAIW,MACR,IAAMH,EAAO,0BAA4BK,EAAY,YAG3D,CAMA,SAAShC,EAAMrC,GACb,OAOF,SAAyBA,GACvB,OAAOsE,QACLtE,GACmB,iBAAVA,GACP,YAAaA,GACb,aAAcA,EAEpB,CAdSuE,CAAgBvE,GAASA,EAAQ,IAAIwE,EAAAA,MAAMxE,EACpD"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/react-markdown/node_modules/unified/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('vfile').VFileCompatible} VFileCompatible\n * @typedef {import('vfile').VFileValue} VFileValue\n * @typedef {import('..').Processor} Processor\n * @typedef {import('..').Plugin} Plugin\n * @typedef {import('..').Preset} Preset\n * @typedef {import('..').Pluggable} Pluggable\n * @typedef {import('..').PluggableList} PluggableList\n * @typedef {import('..').Transformer} Transformer\n * @typedef {import('..').Parser} Parser\n * @typedef {import('..').Compiler} Compiler\n * @typedef {import('..').RunCallback} RunCallback\n * @typedef {import('..').ProcessCallback} ProcessCallback\n *\n * @typedef Context\n * @property {Node} tree\n * @property {VFile} file\n */\n\nimport {bail} from 'bail'\nimport isBuffer from 'is-buffer'\nimport extend from 'extend'\nimport isPlainObj from 'is-plain-obj'\nimport {trough} from 'trough'\nimport {VFile} from 'vfile'\n\n// Expose a frozen processor.\nexport const unified = base().freeze()\n\nconst own = {}.hasOwnProperty\n\n// Function to create the first processor.\n/**\n * @returns {Processor}\n */\nfunction base() {\n const transformers = trough()\n /** @type {Processor['attachers']} */\n const attachers = []\n /** @type {Record<string, unknown>} */\n let namespace = {}\n /** @type {boolean|undefined} */\n let frozen\n let freezeIndex = -1\n\n // Data management.\n // @ts-expect-error: overloads are handled.\n processor.data = data\n processor.Parser = undefined\n processor.Compiler = undefined\n\n // Lock.\n processor.freeze = freeze\n\n // Plugins.\n processor.attachers = attachers\n // @ts-expect-error: overloads are handled.\n processor.use = use\n\n // API.\n processor.parse = parse\n processor.stringify = stringify\n // @ts-expect-error: overloads are handled.\n processor.run = run\n processor.runSync = runSync\n // @ts-expect-error: overloads are handled.\n processor.process = process\n processor.processSync = processSync\n\n // Expose.\n return processor\n\n // Create a new processor based on the processor in the current scope.\n /** @type {Processor} */\n function processor() {\n const destination = base()\n let index = -1\n\n while (++index < attachers.length) {\n destination.use(...attachers[index])\n }\n\n destination.data(extend(true, {}, namespace))\n\n return destination\n }\n\n /**\n * @param {string|Record<string, unknown>} [key]\n * @param {unknown} [value]\n * @returns {unknown}\n */\n function data(key, value) {\n if (typeof key === 'string') {\n // Set `key`.\n if (arguments.length === 2) {\n assertUnfrozen('data', frozen)\n namespace[key] = value\n return processor\n }\n\n // Get `key`.\n return (own.call(namespace, key) && namespace[key]) || null\n }\n\n // Set space.\n if (key) {\n assertUnfrozen('data', frozen)\n namespace = key\n return processor\n }\n\n // Get space.\n return namespace\n }\n\n /** @type {Processor['freeze']} */\n function freeze() {\n if (frozen) {\n return processor\n }\n\n while (++freezeIndex < attachers.length) {\n const [attacher, ...options] = attachers[freezeIndex]\n\n if (options[0] === false) {\n continue\n }\n\n if (options[0] === true) {\n options[0] = undefined\n }\n\n /** @type {Transformer|void} */\n const transformer = attacher.call(processor, ...options)\n\n if (typeof transformer === 'function') {\n transformers.use(transformer)\n }\n }\n\n frozen = true\n freezeIndex = Number.POSITIVE_INFINITY\n\n return processor\n }\n\n /**\n * @param {Pluggable|null|undefined} [value]\n * @param {...unknown} options\n * @returns {Processor}\n */\n function use(value, ...options) {\n /** @type {Record<string, unknown>|undefined} */\n let settings\n\n assertUnfrozen('use', frozen)\n\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'function') {\n addPlugin(value, ...options)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n addList(value)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n\n if (settings) {\n namespace.settings = Object.assign(namespace.settings || {}, settings)\n }\n\n return processor\n\n /**\n * @param {import('..').Pluggable<unknown[]>} value\n * @returns {void}\n */\n function add(value) {\n if (typeof value === 'function') {\n addPlugin(value)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n const [plugin, ...options] = value\n addPlugin(plugin, ...options)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n }\n\n /**\n * @param {Preset} result\n * @returns {void}\n */\n function addPreset(result) {\n addList(result.plugins)\n\n if (result.settings) {\n settings = Object.assign(settings || {}, result.settings)\n }\n }\n\n /**\n * @param {PluggableList|null|undefined} [plugins]\n * @returns {void}\n */\n function addList(plugins) {\n let index = -1\n\n if (plugins === null || plugins === undefined) {\n // Empty.\n } else if (Array.isArray(plugins)) {\n while (++index < plugins.length) {\n const thing = plugins[index]\n add(thing)\n }\n } else {\n throw new TypeError('Expected a list of plugins, not `' + plugins + '`')\n }\n }\n\n /**\n * @param {Plugin} plugin\n * @param {...unknown} [value]\n * @returns {void}\n */\n function addPlugin(plugin, value) {\n let index = -1\n /** @type {Processor['attachers'][number]|undefined} */\n let entry\n\n while (++index < attachers.length) {\n if (attachers[index][0] === plugin) {\n entry = attachers[index]\n break\n }\n }\n\n if (entry) {\n if (isPlainObj(entry[1]) && isPlainObj(value)) {\n value = extend(true, entry[1], value)\n }\n\n entry[1] = value\n } else {\n // @ts-expect-error: fine.\n attachers.push([...arguments])\n }\n }\n }\n\n /** @type {Processor['parse']} */\n function parse(doc) {\n processor.freeze()\n const file = vfile(doc)\n const Parser = processor.Parser\n assertParser('parse', Parser)\n\n if (newable(Parser, 'parse')) {\n // @ts-expect-error: `newable` checks this.\n return new Parser(String(file), file).parse()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Parser(String(file), file) // eslint-disable-line new-cap\n }\n\n /** @type {Processor['stringify']} */\n function stringify(node, doc) {\n processor.freeze()\n const file = vfile(doc)\n const Compiler = processor.Compiler\n assertCompiler('stringify', Compiler)\n assertNode(node)\n\n if (newable(Compiler, 'compile')) {\n // @ts-expect-error: `newable` checks this.\n return new Compiler(node, file).compile()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Compiler(node, file) // eslint-disable-line new-cap\n }\n\n /**\n * @param {Node} node\n * @param {VFileCompatible|RunCallback} [doc]\n * @param {RunCallback} [callback]\n * @returns {Promise<Node>|void}\n */\n function run(node, doc, callback) {\n assertNode(node)\n processor.freeze()\n\n if (!callback && typeof doc === 'function') {\n callback = doc\n doc = undefined\n }\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((node: Node) => void)} resolve\n * @param {(error: Error) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n // @ts-expect-error: `doc` can’t be a callback anymore, we checked.\n transformers.run(node, vfile(doc), done)\n\n /**\n * @param {Error|null} error\n * @param {Node} tree\n * @param {VFile} file\n * @returns {void}\n */\n function done(error, tree, file) {\n tree = tree || node\n if (error) {\n reject(error)\n } else if (resolve) {\n resolve(tree)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, tree, file)\n }\n }\n }\n }\n\n /** @type {Processor['runSync']} */\n function runSync(node, file) {\n /** @type {Node|undefined} */\n let result\n /** @type {boolean|undefined} */\n let complete\n\n processor.run(node, file, done)\n\n assertDone('runSync', 'run', complete)\n\n // @ts-expect-error: we either bailed on an error or have a tree.\n return result\n\n /**\n * @param {Error|null} [error]\n * @param {Node} [tree]\n * @returns {void}\n */\n function done(error, tree) {\n bail(error)\n result = tree\n complete = true\n }\n }\n\n /**\n * @param {VFileCompatible} doc\n * @param {ProcessCallback} [callback]\n * @returns {Promise<VFile>|undefined}\n */\n function process(doc, callback) {\n processor.freeze()\n assertParser('process', processor.Parser)\n assertCompiler('process', processor.Compiler)\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((file: VFile) => void)} resolve\n * @param {(error?: Error|null|undefined) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n const file = vfile(doc)\n\n processor.run(processor.parse(file), file, (error, tree, file) => {\n if (error || !tree || !file) {\n done(error)\n } else {\n /** @type {unknown} */\n const result = processor.stringify(tree, file)\n\n if (result === undefined || result === null) {\n // Empty.\n } else if (looksLikeAVFileValue(result)) {\n file.value = result\n } else {\n file.result = result\n }\n\n done(error, file)\n }\n })\n\n /**\n * @param {Error|null|undefined} [error]\n * @param {VFile|undefined} [file]\n * @returns {void}\n */\n function done(error, file) {\n if (error || !file) {\n reject(error)\n } else if (resolve) {\n resolve(file)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, file)\n }\n }\n }\n }\n\n /** @type {Processor['processSync']} */\n function processSync(doc) {\n /** @type {boolean|undefined} */\n let complete\n\n processor.freeze()\n assertParser('processSync', processor.Parser)\n assertCompiler('processSync', processor.Compiler)\n\n const file = vfile(doc)\n\n processor.process(file, done)\n\n assertDone('processSync', 'process', complete)\n\n return file\n\n /**\n * @param {Error|null|undefined} [error]\n * @returns {void}\n */\n function done(error) {\n complete = true\n bail(error)\n }\n }\n}\n\n/**\n * Check if `value` is a constructor.\n *\n * @param {unknown} value\n * @param {string} name\n * @returns {boolean}\n */\nfunction newable(value, name) {\n return (\n typeof value === 'function' &&\n // Prototypes do exist.\n // type-coverage:ignore-next-line\n value.prototype &&\n // A function with keys in its prototype is probably a constructor.\n // Classes’ prototype methods are not enumerable, so we check if some value\n // exists in the prototype.\n // type-coverage:ignore-next-line\n (keys(value.prototype) || name in value.prototype)\n )\n}\n\n/**\n * Check if `value` is an object with keys.\n *\n * @param {Record<string, unknown>} value\n * @returns {boolean}\n */\nfunction keys(value) {\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n return true\n }\n }\n\n return false\n}\n\n/**\n * Assert a parser is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Parser}\n */\nfunction assertParser(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Parser`')\n }\n}\n\n/**\n * Assert a compiler is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Compiler}\n */\nfunction assertCompiler(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Compiler`')\n }\n}\n\n/**\n * Assert the processor is not frozen.\n *\n * @param {string} name\n * @param {unknown} frozen\n * @returns {asserts frozen is false}\n */\nfunction assertUnfrozen(name, frozen) {\n if (frozen) {\n throw new Error(\n 'Cannot call `' +\n name +\n '` on a frozen processor.\\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.'\n )\n }\n}\n\n/**\n * Assert `node` is a unist node.\n *\n * @param {unknown} node\n * @returns {asserts node is Node}\n */\nfunction assertNode(node) {\n // `isPlainObj` unfortunately uses `any` instead of `unknown`.\n // type-coverage:ignore-next-line\n if (!isPlainObj(node) || typeof node.type !== 'string') {\n throw new TypeError('Expected node, got `' + node + '`')\n // Fine.\n }\n}\n\n/**\n * Assert that `complete` is `true`.\n *\n * @param {string} name\n * @param {string} asyncName\n * @param {unknown} complete\n * @returns {asserts complete is true}\n */\nfunction assertDone(name, asyncName, complete) {\n if (!complete) {\n throw new Error(\n '`' + name + '` finished async. Use `' + asyncName + '` instead'\n )\n }\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {VFile}\n */\nfunction vfile(value) {\n return looksLikeAVFile(value) ? value : new VFile(value)\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {value is VFile}\n */\nfunction looksLikeAVFile(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'message' in value &&\n 'messages' in value\n )\n}\n\n/**\n * @param {unknown} [value]\n * @returns {value is VFileValue}\n */\nfunction looksLikeAVFileValue(value) {\n return typeof value === 'string' || isBuffer(value)\n}\n"],"names":["unified","base","transformers","trough","attachers","frozen","namespace","freezeIndex","processor","data","key","value","arguments","length","assertUnfrozen","own","call","Parser","undefined","Compiler","freeze","attacher","options","transformer","use","Number","POSITIVE_INFINITY","settings","addPlugin","TypeError","Array","isArray","addList","addPreset","Object","assign","add","plugin","result","plugins","index","entry","isPlainObj","extend","push","parse","doc","file","vfile","assertParser","newable","String","stringify","node","assertCompiler","assertNode","compile","run","callback","Promise","executor","resolve","reject","done","error","tree","runSync","complete","assertDone","bail","process","isBuffer","processSync","destination","hasOwnProperty","name","prototype","keys","Error","type","asyncName","Boolean","looksLikeAVFile","VFile"],"mappings":"2UA4BY,MAACA,EAQb,SAASC,IACP,MAAMC,EAAeC,EAAAA,SAEfC,EAAY,GAElB,IAEIC,EAFAC,EAAY,CAAE,EAGdC,GAAe,EA2BnB,OAvBAC,EAAUC,KA6CV,SAAcC,EAAKC,GACjB,GAAmB,iBAARD,EAET,OAAyB,IAArBE,UAAUC,QACZC,EAAe,OAAQT,GACvBC,EAAUI,GAAOC,EACVH,GAIDO,EAAIC,KAAKV,EAAWI,IAAQJ,EAAUI,IAAS,KAIzD,GAAIA,EAGF,OAFAI,EAAe,OAAQT,GACvBC,EAAYI,EACLF,EAIT,OAAOF,CACR,EAlEDE,EAAUS,YAASC,EACnBV,EAAUW,cAAWD,EAGrBV,EAAUY,OAiEV,WACE,GAAIf,EACF,OAAOG,EAGT,OAASD,EAAcH,EAAUS,QAAQ,CACvC,MAAOQ,KAAaC,GAAWlB,EAAUG,GAEzC,IAAmB,IAAfe,EAAQ,GACV,UAGiB,IAAfA,EAAQ,KACVA,EAAQ,QAAKJ,GAIf,MAAMK,EAAcF,EAASL,KAAKR,KAAcc,GAErB,mBAAhBC,GACTrB,EAAasB,IAAID,EAEpB,CAKD,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E,EAAC2D,eAkbf,SAASxB,EAAQvC,EAAOgE,GACtB,MACmB,mBAAVhE,GAGPA,EAAMiE,YAeV,SAAcjE,GAEZ,IAAID,EAEJ,IAAKA,KAAOC,EACV,GAAII,EAAIC,KAAKL,EAAOD,GAClB,OAAO,EAIX,OAAO,CACT,CArBKmE,CAAKlE,EAAMiE,YAAcD,KAAQhE,EAAMiE,UAE5C,CA4BA,SAAS3B,EAAa0B,EAAMhE,GAC1B,GAAqB,mBAAVA,EACT,MAAM,IAAIkB,UAAU,WAAa8C,EAAO,qBAE5C,CASA,SAASrB,EAAeqB,EAAMhE,GAC5B,GAAqB,mBAAVA,EACT,MAAM,IAAIkB,UAAU,WAAa8C,EAAO,uBAE5C,CASA,SAAS7D,EAAe6D,EAAMtE,GAC5B,GAAIA,EACF,MAAM,IAAIyE,MACR,gBACEH,EACA,mHAGR,CAQA,SAASpB,EAAWF,GAGlB,IAAKX,EAAU,QAACW,IAA8B,iBAAdA,EAAK0B,KACnC,MAAM,IAAIlD,UAAU,uBAAyBwB,EAAO,IAGxD,CAUA,SAASe,EAAWO,EAAMK,EAAWb,GACnC,IAAKA,EACH,MAAM,IAAIW,MACR,IAAMH,EAAO,0BAA4BK,EAAY,YAG3D,CAMA,SAAShC,EAAMrC,GACb,OAOF,SAAyBA,GACvB,OAAOsE,QACLtE,GACmB,iBAAVA,GACP,YAAaA,GACb,aAAcA,EAEpB,CAdSuE,CAAgBvE,GAASA,EAAQ,IAAIwE,EAAAA,MAAMxE,EACpD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../../_virtual/index23.js"),e=require("../../vfile-message/lib/index.js"),s=require("./minpath.browser.js"),i=require("./minproc.browser.js"),a=require("./minurl.browser.js"),r=require("./minurl.shared.js");const n=["history","path","basename","stem","extname","dirname"];function h(t,e){if(t&&t.includes(s.path.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+s.path.sep+"`")}function o(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function p(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}exports.VFile=class{constructor(e){let s;s=e?"string"==typeof e||function(e){return t.default(e)}(e)?{value:e}:r.isUrl(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=i.proc.cwd(),this.value,this.stored,this.result,this.map;let a,h=-1;for(;++h<n.length;){const t=n[h];t in s&&void 0!==s[t]&&null!==s[t]&&(this[t]="history"===t?[...s[t]]:s[t])}for(a in s)n.includes(a)||(this[a]=s[a])}get path(){return this.history[this.history.length-1]}set path(t){r.isUrl(t)&&(t=a.urlToPath(t)),o(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return"string"==typeof this.path?s.path.dirname(this.path):void 0}set dirname(t){p(this.basename,"dirname"),this.path=s.path.join(t||"",this.basename)}get basename(){return"string"==typeof this.path?s.path.basename(this.path):void 0}set basename(t){o(t,"basename"),h(t,"basename"),this.path=s.path.join(this.dirname||"",t)}get extname(){return"string"==typeof this.path?s.path.extname(this.path):void 0}set extname(t){if(h(t,"extname"),p(this.dirname,"extname"),t){if(46!==t.charCodeAt(0))throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=s.path.join(this.dirname,this.stem+(t||""))}get stem(){return"string"==typeof this.path?s.path.basename(this.path,this.extname):void 0}set stem(t){o(t,"stem"),h(t,"stem"),this.path=s.path.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,s,i){const a=new e.VFileMessage(t,s,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}info(t,e,s){const i=this.message(t,e,s);return i.fatal=null,i}fail(t,e,s){const i=this.message(t,e,s);throw i.fatal=!0,i}};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/react-markdown/node_modules/vfile/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Point} Point\n * @typedef {import('./minurl.shared.js').URL} URL\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Value} Value\n */\n\n/**\n * @typedef {Record<string, unknown> & {type: string, position?: Position | undefined}} NodeLike\n *\n * @typedef {'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'} BufferEncoding\n * Encodings supported by the buffer class.\n *\n * This is a copy of the types from Node, copied to prevent Node globals from\n * being needed.\n * Copied from: <https://github.com/DefinitelyTyped/DefinitelyTyped/blob/90a4ec8/types/node/buffer.d.ts#L170>\n *\n * @typedef {Options | URL | Value | VFile} Compatible\n * Things that can be passed to the constructor.\n *\n * @typedef VFileCoreOptions\n * Set multiple values.\n * @property {Value | null | undefined} [value]\n * Set `value`.\n * @property {string | null | undefined} [cwd]\n * Set `cwd`.\n * @property {Array<string> | null | undefined} [history]\n * Set `history`.\n * @property {URL | string | null | undefined} [path]\n * Set `path`.\n * @property {string | null | undefined} [basename]\n * Set `basename`.\n * @property {string | null | undefined} [stem]\n * Set `stem`.\n * @property {string | null | undefined} [extname]\n * Set `extname`.\n * @property {string | null | undefined} [dirname]\n * Set `dirname`.\n * @property {Data | null | undefined} [data]\n * Set `data`.\n *\n * @typedef Map\n * Raw source map.\n *\n * See:\n * <https://github.com/mozilla/source-map/blob/58819f0/source-map.d.ts#L15-L23>.\n * @property {number} version\n * Which version of the source map spec this map is following.\n * @property {Array<string>} sources\n * An array of URLs to the original source files.\n * @property {Array<string>} names\n * An array of identifiers which can be referenced by individual mappings.\n * @property {string | undefined} [sourceRoot]\n * The URL root from which all sources are relative.\n * @property {Array<string> | undefined} [sourcesContent]\n * An array of contents of the original source files.\n * @property {string} mappings\n * A string of base64 VLQs which contain the actual mappings.\n * @property {string} file\n * The generated file this source map is associated with.\n *\n * @typedef {{[key: string]: unknown} & VFileCoreOptions} Options\n * Configuration.\n *\n * A bunch of keys that will be shallow copied over to the new file.\n *\n * @typedef {Record<string, unknown>} ReporterSettings\n * Configuration for reporters.\n */\n\n/**\n * @template {ReporterSettings} Settings\n * Options type.\n * @callback Reporter\n * Type for a reporter.\n * @param {Array<VFile>} files\n * Files to report.\n * @param {Settings} options\n * Configuration.\n * @returns {string}\n * Report.\n */\n\nimport bufferLike from 'is-buffer'\nimport {VFileMessage} from 'vfile-message'\nimport {path} from './minpath.js'\nimport {proc} from './minproc.js'\nimport {urlToPath, isUrl} from './minurl.js'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n *\n * @type {Array<'basename' | 'dirname' | 'extname' | 'history' | 'path' | 'stem'>}\n */\nconst order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Buffer` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (typeof value === 'string' || buffer(value)) {\n options = {value}\n } else if (isUrl(value)) {\n options = {path: value}\n } else {\n options = value\n }\n\n /**\n * Place to store custom information (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array<VFileMessage>}\n */\n this.messages = []\n\n /**\n * List of filepaths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array<string>}\n */\n this.history = []\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n this.cwd = proc.cwd()\n\n /* eslint-disable no-unused-expressions */\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const prop = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n prop in options &&\n options[prop] !== undefined &&\n options[prop] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[prop] = prop === 'history' ? [...options[prop]] : options[prop]\n }\n }\n\n /** @type {string} */\n let prop\n\n // Set non-path related properties.\n for (prop in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(prop)) {\n // @ts-expect-error: fine to set other things.\n this[prop] = options[prop]\n }\n }\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {string | URL} path\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the parent path (example: `'~'`).\n */\n get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = path.join(dirname || '', this.basename)\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n */\n get basename() {\n return typeof this.path === 'string' ? path.basename(this.path) : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = path.join(this.dirname || '', basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n */\n get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.charCodeAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = path.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n */\n get stem() {\n return typeof this.path === 'string'\n ? path.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = path.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n /**\n * Serialize the file.\n *\n * @param {BufferEncoding | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Buffer`\n * (default: `'utf8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n return (this.value || '').toString(encoding || undefined)\n }\n\n /**\n * Create a warning message associated with the file.\n *\n * Its `fatal` is set to `false` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(reason, place, origin) {\n const message = new VFileMessage(reason, place, origin)\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Create an info message associated with the file.\n *\n * Its `fatal` is set to `null` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = null\n\n return message\n }\n\n /**\n * Create a fatal error associated with the file.\n *\n * Its `fatal` is set to `true` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * > 👉 **Note**: a fatal error means that a file is no longer processable.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Message.\n * @throws {VFileMessage}\n * Message.\n */\n fail(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = true\n\n throw message\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {void}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(path.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is a buffer.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Buffer}\n * Whether `value` is a Node.js buffer.\n */\nfunction buffer(value) {\n return bufferLike(value)\n}\n"],"names":["order","assertPart","part","name","includes","path","sep","Error","assertNonEmpty","assertPath","constructor","value","options","bufferLike","buffer","isUrl","this","data","messages","history","cwd","proc","stored","result","map","prop","index","length","undefined","urlToPath","push","dirname","basename","join","extname","charCodeAt","stem","toString","encoding","message","reason","place","origin","VFileMessage","file","fatal","info","fail"],"mappings":"0SAkGA,MAAMA,EAAQ,CAAC,UAAW,OAAQ,WAAY,OAAQ,UAAW,WAmXjE,SAASC,EAAWC,EAAMC,GACxB,GAAID,GAAQA,EAAKE,SAASC,EAAIA,KAACC,KAC7B,MAAM,IAAI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CoC,EAAQK,KAAO5B,KAAKX,MAGtBkC,EAAQM,OAAQ,EAEhB7B,KAAKE,SAASY,KAAKS,GAEZA,CACR,CAkBD,IAAAO,CAAKN,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,OAFAH,EAAQM,MAAQ,KAETN,CACR,CAsBD,IAAAQ,CAAKP,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,MAFAH,EAAQM,OAAQ,EAEVN,CACP"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/react-markdown/node_modules/vfile/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Point} Point\n * @typedef {import('./minurl.shared.js').URL} URL\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Value} Value\n */\n\n/**\n * @typedef {Record<string, unknown> & {type: string, position?: Position | undefined}} NodeLike\n *\n * @typedef {'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'} BufferEncoding\n * Encodings supported by the buffer class.\n *\n * This is a copy of the types from Node, copied to prevent Node globals from\n * being needed.\n * Copied from: <https://github.com/DefinitelyTyped/DefinitelyTyped/blob/90a4ec8/types/node/buffer.d.ts#L170>\n *\n * @typedef {Options | URL | Value | VFile} Compatible\n * Things that can be passed to the constructor.\n *\n * @typedef VFileCoreOptions\n * Set multiple values.\n * @property {Value | null | undefined} [value]\n * Set `value`.\n * @property {string | null | undefined} [cwd]\n * Set `cwd`.\n * @property {Array<string> | null | undefined} [history]\n * Set `history`.\n * @property {URL | string | null | undefined} [path]\n * Set `path`.\n * @property {string | null | undefined} [basename]\n * Set `basename`.\n * @property {string | null | undefined} [stem]\n * Set `stem`.\n * @property {string | null | undefined} [extname]\n * Set `extname`.\n * @property {string | null | undefined} [dirname]\n * Set `dirname`.\n * @property {Data | null | undefined} [data]\n * Set `data`.\n *\n * @typedef Map\n * Raw source map.\n *\n * See:\n * <https://github.com/mozilla/source-map/blob/58819f0/source-map.d.ts#L15-L23>.\n * @property {number} version\n * Which version of the source map spec this map is following.\n * @property {Array<string>} sources\n * An array of URLs to the original source files.\n * @property {Array<string>} names\n * An array of identifiers which can be referenced by individual mappings.\n * @property {string | undefined} [sourceRoot]\n * The URL root from which all sources are relative.\n * @property {Array<string> | undefined} [sourcesContent]\n * An array of contents of the original source files.\n * @property {string} mappings\n * A string of base64 VLQs which contain the actual mappings.\n * @property {string} file\n * The generated file this source map is associated with.\n *\n * @typedef {{[key: string]: unknown} & VFileCoreOptions} Options\n * Configuration.\n *\n * A bunch of keys that will be shallow copied over to the new file.\n *\n * @typedef {Record<string, unknown>} ReporterSettings\n * Configuration for reporters.\n */\n\n/**\n * @template {ReporterSettings} Settings\n * Options type.\n * @callback Reporter\n * Type for a reporter.\n * @param {Array<VFile>} files\n * Files to report.\n * @param {Settings} options\n * Configuration.\n * @returns {string}\n * Report.\n */\n\nimport bufferLike from 'is-buffer'\nimport {VFileMessage} from 'vfile-message'\nimport {path} from './minpath.js'\nimport {proc} from './minproc.js'\nimport {urlToPath, isUrl} from './minurl.js'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n *\n * @type {Array<'basename' | 'dirname' | 'extname' | 'history' | 'path' | 'stem'>}\n */\nconst order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Buffer` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (typeof value === 'string' || buffer(value)) {\n options = {value}\n } else if (isUrl(value)) {\n options = {path: value}\n } else {\n options = value\n }\n\n /**\n * Place to store custom information (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array<VFileMessage>}\n */\n this.messages = []\n\n /**\n * List of filepaths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array<string>}\n */\n this.history = []\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n this.cwd = proc.cwd()\n\n /* eslint-disable no-unused-expressions */\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const prop = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n prop in options &&\n options[prop] !== undefined &&\n options[prop] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[prop] = prop === 'history' ? [...options[prop]] : options[prop]\n }\n }\n\n /** @type {string} */\n let prop\n\n // Set non-path related properties.\n for (prop in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(prop)) {\n // @ts-expect-error: fine to set other things.\n this[prop] = options[prop]\n }\n }\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {string | URL} path\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the parent path (example: `'~'`).\n */\n get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = path.join(dirname || '', this.basename)\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n */\n get basename() {\n return typeof this.path === 'string' ? path.basename(this.path) : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = path.join(this.dirname || '', basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n */\n get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.charCodeAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = path.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n */\n get stem() {\n return typeof this.path === 'string'\n ? path.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = path.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n /**\n * Serialize the file.\n *\n * @param {BufferEncoding | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Buffer`\n * (default: `'utf8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n return (this.value || '').toString(encoding || undefined)\n }\n\n /**\n * Create a warning message associated with the file.\n *\n * Its `fatal` is set to `false` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(reason, place, origin) {\n const message = new VFileMessage(reason, place, origin)\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Create an info message associated with the file.\n *\n * Its `fatal` is set to `null` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = null\n\n return message\n }\n\n /**\n * Create a fatal error associated with the file.\n *\n * Its `fatal` is set to `true` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * > 👉 **Note**: a fatal error means that a file is no longer processable.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Message.\n * @throws {VFileMessage}\n * Message.\n */\n fail(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = true\n\n throw message\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {void}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(path.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is a buffer.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Buffer}\n * Whether `value` is a Node.js buffer.\n */\nfunction buffer(value) {\n return bufferLike(value)\n}\n"],"names":["order","assertPart","part","name","includes","path","sep","Error","assertNonEmpty","assertPath","constructor","value","options","bufferLike","buffer","isUrl","this","data","messages","history","cwd","proc","stored","result","map","prop","index","length","undefined","urlToPath","push","dirname","basename","join","extname","charCodeAt","stem","toString","encoding","message","reason","place","origin","VFileMessage","file","fatal","info","fail"],"mappings":"2SAkGA,MAAMA,EAAQ,CAAC,UAAW,OAAQ,WAAY,OAAQ,UAAW,WAmXjE,SAASC,EAAWC,EAAMC,GACxB,GAAID,GAAQA,EAAKE,SAASC,EAAIA,KAACC,KAC7B,MAAM,IAAIC,MACR,IAAMJ,EAAO,uCAAyCE,EAAIA,KAACC,IAAM,IAGvE,CAYA,SAASE,EAAeN,EAAMC,GAC5B,IAAKD,EACH,MAAM,IAAIK,MAAM,IAAMJ,EAAO,oBAEjC,CAYA,SAASM,EAAWJ,EAAMF,GACxB,IAAKE,EACH,MAAM,IAAIE,MAAM,YAAcJ,EAAO,kCAEzC,eAvZO,MAuBL,WAAAO,CAAYC,GAEV,IAAIC,EAKFA,EAHGD,EAEuB,iBAAVA,GAoYtB,SAAgBA,GACd,OAAOE,EAAAA,QAAWF,EACpB,CAtY4CG,CAAOH,GACnC,CAACA,SACFI,EAAAA,MAAMJ,GACL,CAACN,KAAMM,GAEPA,EANA,CAAE,EAiBdK,KAAKC,KAAO,CAAE,EAOdD,KAAKE,SAAW,GAShBF,KAAKG,QAAU,GAOfH,KAAKI,IAAMC,EAAIA,KAACD,MAQhBJ,KAAKL,MAYLK,KAAKM,OAULN,KAAKO,OAULP,KAAKQ,IAIL,IAkBIC,EAlBAC,GAAS,EAEb,OAASA,EAAQ1B,EAAM2B,QAAQ,CAC7B,MAAMF,EAAOzB,EAAM0B,GAKjBD,KAAQb,QACUgB,IAAlBhB,EAAQa,IACU,OAAlBb,EAAQa,KAGRT,KAAKS,GAAiB,YAATA,EAAqB,IAAIb,EAAQa,IAASb,EAAQa,GAElE,CAMD,IAAKA,KAAQb,EAENZ,EAAMI,SAASqB,KAElBT,KAAKS,GAAQb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C,EAAM,QACjBpB,KAAKX,KAAOA,OAAK4B,KAAKjB,KAAKe,SAAW,GAAIK,GAAQpB,KAAKkB,SAAW,IACnE,CAWD,QAAAG,CAASC,GACP,OAAQtB,KAAKL,OAAS,IAAI0B,SAASC,QAAYV,EAChD,CAkBD,OAAAW,CAAQC,EAAQC,EAAOC,GACrB,MAAMH,EAAU,IAAII,EAAAA,aAAaH,EAAQC,EAAOC,GAWhD,OATI1B,KAAKX,OACPkC,EAAQpC,KAAOa,KAAKX,KAAO,IAAMkC,EAAQpC,KACzCoC,EAAQK,KAAO5B,KAAKX,MAGtBkC,EAAQM,OAAQ,EAEhB7B,KAAKE,SAASY,KAAKS,GAEZA,CACR,CAkBD,IAAAO,CAAKN,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,OAFAH,EAAQM,MAAQ,KAETN,CACR,CAsBD,IAAAQ,CAAKP,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,MAFAH,EAAQM,OAAQ,EAEVN,CACP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/extends.js"),s=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),n=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),t=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/extends.js"),s=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),n=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),t=require("../../../_virtual/index.js"),r=require("../../dom-helpers/esm/addClass.js"),a=require("../../dom-helpers/esm/removeClass.js"),o=require("react"),i=require("./Transition.js"),l=require("./utils/PropTypes.js"),u=require("./utils/reflow.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=p(o),f=function(e,s){return e&&s&&s.split(" ").forEach((function(s){return r.default(e,s)}))},c=function(e,s){return e&&s&&s.split(" ").forEach((function(s){return a.default(e,s)}))},E=function(t){function r(){for(var e,s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];return(e=t.call.apply(t,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(s,n){var t=e.resolveArguments(s,n),r=t[0],a=t[1];e.removeClasses(r,"exit"),e.addClass(r,a?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(s,n)},e.onEntering=function(s,n){var t=e.resolveArguments(s,n),r=t[0],a=t[1]?"appear":"enter";e.addClass(r,a,"active"),e.props.onEntering&&e.props.onEntering(s,n)},e.onEntered=function(s,n){var t=e.resolveArguments(s,n),r=t[0],a=t[1]?"appear":"enter";e.removeClasses(r,a),e.addClass(r,a,"done"),e.props.onEntered&&e.props.onEntered(s,n)},e.onExit=function(s){var n=e.resolveArguments(s)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(s)},e.onExiting=function(s){var n=e.resolveArguments(s)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(s)},e.onExited=function(s){var n=e.resolveArguments(s)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(s)},e.resolveArguments=function(s,n){return e.props.nodeRef?[e.props.nodeRef.current,s]:[s,n]},e.getClassNames=function(s){var n=e.props.classNames,t="string"==typeof n,r=t?""+(t&&n?n+"-":"")+s:n[s];return{baseClassName:r,activeClassName:t?r+"-active":n[s+"Active"],doneClassName:t?r+"-done":n[s+"Done"]}},e}n.default(r,t);var a=r.prototype;return a.addClass=function(e,s,n){var t=this.getClassNames(s)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===s&&"done"===n&&r&&(t+=" "+r),"active"===n&&e&&u.forceReflow(e),t&&(this.appliedClasses[s][n]=t,f(e,t))},a.removeClasses=function(e,s){var n=this.appliedClasses[s],t=n.base,r=n.active,a=n.done;this.appliedClasses[s]={},t&&c(e,t),r&&c(e,r),a&&c(e,a)},a.render=function(){var n=this.props;n.classNames;var t=s.default(n,["classNames"]);return d.default.createElement(i.default,e.default({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(d.default.Component);E.defaultProps={classNames:""},E.propTypes="production"!==process.env.NODE_ENV?e.default({},i.default.propTypes,{classNames:l.classNamesShape,onEnter:t.default.func,onEntering:t.default.func,onEntered:t.default.func,onExit:t.default.func,onExiting:t.default.func,onExited:t.default.func}):{},exports.default=E;
|
|
2
2
|
//# sourceMappingURL=CSSTransition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSSTransition.js","sources":["../../../../../node_modules/react-transition-group/esm/CSSTransition.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport addOneClass from 'dom-helpers/addClass';\nimport removeOneClass from 'dom-helpers/removeClass';\nimport React from 'react';\nimport Transition from './Transition';\nimport { classNamesShape } from './utils/PropTypes';\nimport { forceReflow } from './utils/reflow';\n\nvar _addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return addOneClass(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return removeOneClass(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should\n * use it if you're using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <CSSTransition in={inProp} timeout={200} classNames=\"my-node\">\n * <div>\n * {\"I'll receive my-node-* classes\"}\n * </div>\n * </CSSTransition>\n * <button type=\"button\" onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**, so it's\n * important to add `transition` declaration only to them, otherwise transitions\n * might not behave as intended! This might not be obvious when the transitions\n * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in\n * the example above (minus `transition`), but it becomes apparent in more\n * complex transitions.\n *\n * **Note**: If you're using the\n * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)\n * prop, make sure to define styles for `.appear-*` classes as well.\n */\n\n\nvar CSSTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.appliedClasses = {\n appear: {},\n enter: {},\n exit: {}\n };\n\n _this.onEnter = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument[0],\n appearing = _this$resolveArgument[1];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, appearing ? 'appear' : 'enter', 'base');\n\n if (_this.props.onEnter) {\n _this.props.onEnter(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntering = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument2[0],\n appearing = _this$resolveArgument2[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.addClass(node, type, 'active');\n\n if (_this.props.onEntering) {\n _this.props.onEntering(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntered = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument3[0],\n appearing = _this$resolveArgument3[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.removeClasses(node, type);\n\n _this.addClass(node, type, 'done');\n\n if (_this.props.onEntered) {\n _this.props.onEntered(maybeNode, maybeAppearing);\n }\n };\n\n _this.onExit = function (maybeNode) {\n var _this$resolveArgument4 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument4[0];\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n _this.addClass(node, 'exit', 'base');\n\n if (_this.props.onExit) {\n _this.props.onExit(maybeNode);\n }\n };\n\n _this.onExiting = function (maybeNode) {\n var _this$resolveArgument5 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument5[0];\n\n _this.addClass(node, 'exit', 'active');\n\n if (_this.props.onExiting) {\n _this.props.onExiting(maybeNode);\n }\n };\n\n _this.onExited = function (maybeNode) {\n var _this$resolveArgument6 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument6[0];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, 'exit', 'done');\n\n if (_this.props.onExited) {\n _this.props.onExited(maybeNode);\n }\n };\n\n _this.resolveArguments = function (maybeNode, maybeAppearing) {\n return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`\n : [maybeNode, maybeAppearing];\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + \"-\" : '';\n var baseClassName = isStringClassNames ? \"\" + prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? baseClassName + \"-active\" : classNames[type + \"Active\"];\n var doneClassName = isStringClassNames ? baseClassName + \"-done\" : classNames[type + \"Done\"];\n return {\n baseClassName: baseClassName,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.addClass = function addClass(node, type, phase) {\n var className = this.getClassNames(type)[phase + \"ClassName\"];\n\n var _this$getClassNames = this.getClassNames('enter'),\n doneClassName = _this$getClassNames.doneClassName;\n\n if (type === 'appear' && phase === 'done' && doneClassName) {\n className += \" \" + doneClassName;\n } // This is to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n\n\n if (phase === 'active') {\n if (node) forceReflow(node);\n }\n\n if (className) {\n this.appliedClasses[type][phase] = className;\n\n _addClass(node, className);\n }\n };\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$appliedClasses$ = this.appliedClasses[type],\n baseClassName = _this$appliedClasses$.base,\n activeClassName = _this$appliedClasses$.active,\n doneClassName = _this$appliedClasses$.done;\n this.appliedClasses[type] = {};\n\n if (baseClassName) {\n removeClass(node, baseClassName);\n }\n\n if (activeClassName) {\n removeClass(node, activeClassName);\n }\n\n if (doneClassName) {\n removeClass(node, doneClassName);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n _ = _this$props.classNames,\n props = _objectWithoutPropertiesLoose(_this$props, [\"classNames\"]);\n\n return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(React.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, Transition.propTypes, {\n /**\n * The animation classNames applied to the component as it appears, enters,\n * exits or has finished the transition. A single name can be provided, which\n * will be suffixed for each stage, e.g. `classNames=\"fade\"` applies:\n *\n * - `fade-appear`, `fade-appear-active`, `fade-appear-done`\n * - `fade-enter`, `fade-enter-active`, `fade-enter-done`\n * - `fade-exit`, `fade-exit-active`, `fade-exit-done`\n *\n * A few details to note about how these classes are applied:\n *\n * 1. They are _joined_ with the ones that are already defined on the child\n * component, so if you want to add some base styles, you can use\n * `className` without worrying that it will be overridden.\n *\n * 2. If the transition component mounts with `in={false}`, no classes are\n * applied yet. You might be expecting `*-exit-done`, but if you think\n * about it, a component cannot finish exiting if it hasn't entered yet.\n *\n * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This\n * allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply\n * an epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: classNamesShape,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit-active' is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nexport default CSSTransition;"],"names":["_addClass","node","classes","split","forEach","c","addOneClass","removeClass","removeOneClass","CSSTransition","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","this","concat","appliedClasses","appear","enter","exit","onEnter","maybeNode","maybeAppearing","_this$resolveArgument","resolveArguments","appearing","removeClasses","addClass","props","onEntering","_this$resolveArgument2","type","onEntered","_this$resolveArgument3","onExit","onExiting","onExited","nodeRef","current","getClassNames","classNames","isStringClassNames","baseClassName","activeClassName","doneClassName","_inheritsLoose","_proto","prototype","phase","className","forceReflow","_this$appliedClasses$","base","active","done","render","_this$props","_objectWithoutPropertiesLoose","React","createElement","Transition","_extends","Component","defaultProps","propTypes","process","env","NODE_ENV","classNamesShape","PropTypes","func"],"mappings":"4lBAWIA,EAAY,SAAkBC,EAAMC,GACtC,OAAOD,GAAQC,GAAWA,EAAQC,MAAM,KAAKC,SAAQ,SAAUC,GAC7D,OAAOC,EAAW,QAACL,EAAMI,EAC7B,GACA,EAEIE,EAAc,SAAqBN,EAAMC,GAC3C,OAAOD,GAAQC,GAAWA,EAAQC,MAAM,KAAKC,SAAQ,SAAUC,GAC7D,OAAOG,EAAc,QAACP,EAAMI,EAChC,GACA,EAwEII,EAA6B,SAAUC,GAGzC,SAASD,IAGP,IAFA,IAAIE,EAEKC,EAAOC,UAAUC,OAAQC,EAAO,IAAIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAC/EF,EAAKE,GAAQJ,UAAUI,GAgHzB,OA7GAN,EAAQD,EAAiBQ,KAAKC,MAAMT,EAAkB,CAACU,MAAMC,OAAON,KAAUK,MACxEE,eAAiB,CACrBC,OAAQ,CAAE,EACVC,MAAO,CAAE,EACTC,KAAM,CAAE,GAGVd,EAAMe,QAAU,SAAUC,EAAWC,GACnC,IAAIC,EAAwBlB,EAAMmB,iBAAiBH,EAAWC,GAC1D3B,EAAO4B,EAAsB,GAC7BE,EAAYF,EAAsB,GAEtClB,EAAMqB,cAAc/B,EAAM,QAE1BU,EAAMsB,SAAShC,EAAM8B,EAAY,SAAW,QAAS,QAEjDpB,EAAMuB,MAAMR,SACdf,E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cC,EAAAA,QAAYC,EAAAA,QAAS,CAAA,EAAIjC,EAAO,CACtER,QAASN,KAAKM,QACdY,UAAWlB,KAAKkB,UAChBH,WAAYf,KAAKe,WACjBK,OAAQpB,KAAKoB,OACbC,UAAWrB,KAAKqB,UAChBC,SAAUtB,KAAKsB,WAErB,EAESjC,CACT,CAvLiC,CAuL/BuD,EAAAA,QAAMI,WAER3D,EAAc4D,aAAe,CAC3BvB,WAAY,IAEdrC,EAAc6D,UAAqC,eAAzBC,QAAQC,IAAIC,SAA4BN,UAAS,CAAA,EAAID,EAAU,QAACI,UAAW,CAqEnGxB,WAAY4B,EAAeA,gBAU3BhD,QAASiD,EAAS,QAACC,KAUnBzC,WAAYwC,EAAS,QAACC,KAUtBtC,UAAWqC,EAAS,QAACC,KAUrBpC,OAAQmC,EAAS,QAACC,KASlBnC,UAAWkC,EAAS,QAACC,KAUrBlC,SAAUiC,EAAS,QAACC,OACjB,CAAE"}
|
|
1
|
+
{"version":3,"file":"CSSTransition.js","sources":["../../../../../node_modules/react-transition-group/esm/CSSTransition.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport addOneClass from 'dom-helpers/addClass';\nimport removeOneClass from 'dom-helpers/removeClass';\nimport React from 'react';\nimport Transition from './Transition';\nimport { classNamesShape } from './utils/PropTypes';\nimport { forceReflow } from './utils/reflow';\n\nvar _addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return addOneClass(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return removeOneClass(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should\n * use it if you're using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <CSSTransition in={inProp} timeout={200} classNames=\"my-node\">\n * <div>\n * {\"I'll receive my-node-* classes\"}\n * </div>\n * </CSSTransition>\n * <button type=\"button\" onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**, so it's\n * important to add `transition` declaration only to them, otherwise transitions\n * might not behave as intended! This might not be obvious when the transitions\n * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in\n * the example above (minus `transition`), but it becomes apparent in more\n * complex transitions.\n *\n * **Note**: If you're using the\n * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)\n * prop, make sure to define styles for `.appear-*` classes as well.\n */\n\n\nvar CSSTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.appliedClasses = {\n appear: {},\n enter: {},\n exit: {}\n };\n\n _this.onEnter = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument[0],\n appearing = _this$resolveArgument[1];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, appearing ? 'appear' : 'enter', 'base');\n\n if (_this.props.onEnter) {\n _this.props.onEnter(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntering = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument2[0],\n appearing = _this$resolveArgument2[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.addClass(node, type, 'active');\n\n if (_this.props.onEntering) {\n _this.props.onEntering(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntered = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument3[0],\n appearing = _this$resolveArgument3[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.removeClasses(node, type);\n\n _this.addClass(node, type, 'done');\n\n if (_this.props.onEntered) {\n _this.props.onEntered(maybeNode, maybeAppearing);\n }\n };\n\n _this.onExit = function (maybeNode) {\n var _this$resolveArgument4 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument4[0];\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n _this.addClass(node, 'exit', 'base');\n\n if (_this.props.onExit) {\n _this.props.onExit(maybeNode);\n }\n };\n\n _this.onExiting = function (maybeNode) {\n var _this$resolveArgument5 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument5[0];\n\n _this.addClass(node, 'exit', 'active');\n\n if (_this.props.onExiting) {\n _this.props.onExiting(maybeNode);\n }\n };\n\n _this.onExited = function (maybeNode) {\n var _this$resolveArgument6 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument6[0];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, 'exit', 'done');\n\n if (_this.props.onExited) {\n _this.props.onExited(maybeNode);\n }\n };\n\n _this.resolveArguments = function (maybeNode, maybeAppearing) {\n return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`\n : [maybeNode, maybeAppearing];\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + \"-\" : '';\n var baseClassName = isStringClassNames ? \"\" + prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? baseClassName + \"-active\" : classNames[type + \"Active\"];\n var doneClassName = isStringClassNames ? baseClassName + \"-done\" : classNames[type + \"Done\"];\n return {\n baseClassName: baseClassName,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.addClass = function addClass(node, type, phase) {\n var className = this.getClassNames(type)[phase + \"ClassName\"];\n\n var _this$getClassNames = this.getClassNames('enter'),\n doneClassName = _this$getClassNames.doneClassName;\n\n if (type === 'appear' && phase === 'done' && doneClassName) {\n className += \" \" + doneClassName;\n } // This is to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n\n\n if (phase === 'active') {\n if (node) forceReflow(node);\n }\n\n if (className) {\n this.appliedClasses[type][phase] = className;\n\n _addClass(node, className);\n }\n };\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$appliedClasses$ = this.appliedClasses[type],\n baseClassName = _this$appliedClasses$.base,\n activeClassName = _this$appliedClasses$.active,\n doneClassName = _this$appliedClasses$.done;\n this.appliedClasses[type] = {};\n\n if (baseClassName) {\n removeClass(node, baseClassName);\n }\n\n if (activeClassName) {\n removeClass(node, activeClassName);\n }\n\n if (doneClassName) {\n removeClass(node, doneClassName);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n _ = _this$props.classNames,\n props = _objectWithoutPropertiesLoose(_this$props, [\"classNames\"]);\n\n return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(React.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, Transition.propTypes, {\n /**\n * The animation classNames applied to the component as it appears, enters,\n * exits or has finished the transition. A single name can be provided, which\n * will be suffixed for each stage, e.g. `classNames=\"fade\"` applies:\n *\n * - `fade-appear`, `fade-appear-active`, `fade-appear-done`\n * - `fade-enter`, `fade-enter-active`, `fade-enter-done`\n * - `fade-exit`, `fade-exit-active`, `fade-exit-done`\n *\n * A few details to note about how these classes are applied:\n *\n * 1. They are _joined_ with the ones that are already defined on the child\n * component, so if you want to add some base styles, you can use\n * `className` without worrying that it will be overridden.\n *\n * 2. If the transition component mounts with `in={false}`, no classes are\n * applied yet. You might be expecting `*-exit-done`, but if you think\n * about it, a component cannot finish exiting if it hasn't entered yet.\n *\n * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This\n * allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply\n * an epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: classNamesShape,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit-active' is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nexport default CSSTransition;"],"names":["_addClass","node","classes","split","forEach","c","addOneClass","removeClass","removeOneClass","CSSTransition","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","this","concat","appliedClasses","appear","enter","exit","onEnter","maybeNode","maybeAppearing","_this$resolveArgument","resolveArguments","appearing","removeClasses","addClass","props","onEntering","_this$resolveArgument2","type","onEntered","_this$resolveArgument3","onExit","onExiting","onExited","nodeRef","current","getClassNames","classNames","isStringClassNames","baseClassName","activeClassName","doneClassName","_inheritsLoose","_proto","prototype","phase","className","forceReflow","_this$appliedClasses$","base","active","done","render","_this$props","_objectWithoutPropertiesLoose","React","createElement","Transition","_extends","Component","defaultProps","propTypes","process","env","NODE_ENV","classNamesShape","PropTypes","func"],"mappings":"2lBAWIA,EAAY,SAAkBC,EAAMC,GACtC,OAAOD,GAAQC,GAAWA,EAAQC,MAAM,KAAKC,SAAQ,SAAUC,GAC7D,OAAOC,EAAW,QAACL,EAAMI,EAC7B,GACA,EAEIE,EAAc,SAAqBN,EAAMC,GAC3C,OAAOD,GAAQC,GAAWA,EAAQC,MAAM,KAAKC,SAAQ,SAAUC,GAC7D,OAAOG,EAAc,QAACP,EAAMI,EAChC,GACA,EAwEII,EAA6B,SAAUC,GAGzC,SAASD,IAGP,IAFA,IAAIE,EAEKC,EAAOC,UAAUC,OAAQC,EAAO,IAAIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAC/EF,EAAKE,GAAQJ,UAAUI,GAgHzB,OA7GAN,EAAQD,EAAiBQ,KAAKC,MAAMT,EAAkB,CAACU,MAAMC,OAAON,KAAUK,MACxEE,eAAiB,CACrBC,OAAQ,CAAE,EACVC,MAAO,CAAE,EACTC,KAAM,CAAE,GAGVd,EAAMe,QAAU,SAAUC,EAAWC,GACnC,IAAIC,EAAwBlB,EAAMmB,iBAAiBH,EAAWC,GAC1D3B,EAAO4B,EAAsB,GAC7BE,EAAYF,EAAsB,GAEtClB,EAAMqB,cAAc/B,EAAM,QAE1BU,EAA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Z,EAAQ6B,EAA6B,QAACD,EAAa,CAAC,eAExD,OAAoBE,EAAAA,QAAMC,cAAcC,EAAAA,QAAYC,EAAAA,QAAS,CAAA,EAAIjC,EAAO,CACtER,QAASN,KAAKM,QACdY,UAAWlB,KAAKkB,UAChBH,WAAYf,KAAKe,WACjBK,OAAQpB,KAAKoB,OACbC,UAAWrB,KAAKqB,UAChBC,SAAUtB,KAAKsB,WAErB,EAESjC,CACT,CAvLiC,CAuL/BuD,EAAAA,QAAMI,WAER3D,EAAc4D,aAAe,CAC3BvB,WAAY,IAEdrC,EAAc6D,UAAqC,eAAzBC,QAAQC,IAAIC,SAA4BN,UAAS,CAAA,EAAID,EAAU,QAACI,UAAW,CAqEnGxB,WAAY4B,EAAeA,gBAU3BhD,QAASiD,EAAS,QAACC,KAUnBzC,WAAYwC,EAAS,QAACC,KAUtBtC,UAAWqC,EAAS,QAACC,KAUrBpC,OAAQmC,EAAS,QAACC,KASlBnC,UAAWkC,EAAS,QAACC,KAUrBlC,SAAUiC,EAAS,QAACC,OACjB,CAAE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),n=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),r=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),n=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),r=require("../../../_virtual/index.js"),t=require("react"),i=require("react-dom"),o=require("./TransitionGroup.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(t),d=l(i),u=function(r){function t(){for(var e,n=arguments.length,t=new Array(n),i=0;i<n;i++)t[i]=arguments[i];return(e=r.call.apply(r,[this].concat(t))||this).handleEnter=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.handleLifecycle("onEnter",0,r)},e.handleEntering=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.handleLifecycle("onEntering",0,r)},e.handleEntered=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.handleLifecycle("onEntered",0,r)},e.handleExit=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.handleLifecycle("onExit",1,r)},e.handleExiting=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.handleLifecycle("onExiting",1,r)},e.handleExited=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.handleLifecycle("onExited",1,r)},e}n.default(t,r);var i=t.prototype;return i.handleLifecycle=function(e,n,r){var t,i=this.props.children,o=a.default.Children.toArray(i)[n];if(o.props[e]&&(t=o.props)[e].apply(t,r),this.props[e]){var l=o.props.nodeRef?void 0:d.default.findDOMNode(this);this.props[e](l)}},i.render=function(){var n=this.props,r=n.children,t=n.in,i=e.default(n,["children","in"]),l=a.default.Children.toArray(r),d=l[0],u=l[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,a.default.createElement(o.default,i,t?a.default.cloneElement(d,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):a.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(a.default.Component);u.propTypes="production"!==process.env.NODE_ENV?{in:r.default.bool.isRequired,children:function(e,n){return 2!==a.default.Children.count(e[n])?new Error('"'+n+'" must be exactly two transition components.'):null}}:{},exports.default=u;
|
|
2
2
|
//# sourceMappingURL=ReplaceTransition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReplaceTransition.js","sources":["../../../../../node_modules/react-transition-group/esm/ReplaceTransition.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport TransitionGroup from './TransitionGroup';\n/**\n * The `<ReplaceTransition>` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * <ReplaceTransition in>\n * <Fade><div>I appear first</div></Fade>\n * <Fade><div>I replace the above</div></Fade>\n * </ReplaceTransition>\n * ```\n */\n\nvar ReplaceTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n var child = React.Children.toArray(children)[idx];\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n\n if (this.props[handler]) {\n var maybeNode = child.props.nodeRef ? undefined : ReactDOM.findDOMNode(this);\n this.props[handler](maybeNode);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = React.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return /*#__PURE__*/React.createElement(TransitionGroup, props, inProp ? React.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : React.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(React.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: PropTypes.bool.isRequired,\n children: function children(props, propName) {\n if (React.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nexport default ReplaceTransition;"],"names":["ReplaceTransition","_React$Component","_this","_len","arguments","length","_args","Array","_key","call","apply","this","concat","handleEnter","_len2","args","_key2","handleLifecycle","handleEntering","_len3","_key3","handleEntered","_len4","_key4","handleExit","_len5","_key5","handleExiting","_len6","_key6","handleExited","_len7","_key7","_inheritsLoose","_proto","prototype","handler","idx","originalArgs","_child$props","children","props","child","React","Children","toArray","maybeNode","nodeRef","undefined","ReactDOM","findDOMNode","render","_this$props","inProp","in","_objectWithoutPropertiesLoose","_React$Children$toArr","first","second","onEnter","onEntering","onEntered","onExit","onExiting","onExited","createElement","TransitionGroup","cloneElement","key","Component","propTypes","process","env","NODE_ENV","PropTypes","bool","isRequired","propName","count","Error"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReplaceTransition.js","sources":["../../../../../node_modules/react-transition-group/esm/ReplaceTransition.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport TransitionGroup from './TransitionGroup';\n/**\n * The `<ReplaceTransition>` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * <ReplaceTransition in>\n * <Fade><div>I appear first</div></Fade>\n * <Fade><div>I replace the above</div></Fade>\n * </ReplaceTransition>\n * ```\n */\n\nvar ReplaceTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n var child = React.Children.toArray(children)[idx];\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n\n if (this.props[handler]) {\n var maybeNode = child.props.nodeRef ? undefined : ReactDOM.findDOMNode(this);\n this.props[handler](maybeNode);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = React.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return /*#__PURE__*/React.createElement(TransitionGroup, props, inProp ? React.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : React.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(React.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: PropTypes.bool.isRequired,\n children: function children(props, propName) {\n if (React.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nexport default ReplaceTransition;"],"names":["ReplaceTransition","_React$Component","_this","_len","arguments","length","_args","Array","_key","call","apply","this","concat","handleEnter","_len2","args","_key2","handleLifecycle","handleEntering","_len3","_key3","handleEntered","_len4","_key4","handleExit","_len5","_key5","handleExiting","_len6","_key6","handleExited","_len7","_key7","_inheritsLoose","_proto","prototype","handler","idx","originalArgs","_child$props","children","props","child","React","Children","toArray","maybeNode","nodeRef","undefined","ReactDOM","findDOMNode","render","_this$props","inProp","in","_objectWithoutPropertiesLoose","_React$Children$toArr","first","second","onEnter","onEntering","onEntered","onExit","onExiting","onExited","createElement","TransitionGroup","cloneElement","key","Component","propTypes","process","env","NODE_ENV","PropTypes","bool","isRequired","propName","count","Error"],"mappings":"maAkBIA,EAAiC,SAAUC,GAG7C,SAASD,IAGP,IAFA,IAAIE,EAEKC,EAAOC,UAAUC,OAAQC,EAAQ,IAAIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAChFF,EAAME,GAAQJ,UAAUI,GAqD1B,OAlDAN,EAAQD,EAAiBQ,KAAKC,MAAMT,EAAkB,CAACU,MAAMC,OAAON,KAAWK,MAEzEE,YAAc,WAClB,IAAK,IAAIC,EAAQV,UAAUC,OAAQU,EAAO,IAAIR,MAAMO,GAAQE,EAAQ,EAAGA,EAAQF,EAAOE,IACpFD,EAAKC,GAASZ,UAAUY,GAG1B,OAAOd,EAAMe,gBAAgB,UAAW,EAAGF,EACjD,EAEIb,EAAMgB,eAAiB,WACrB,IAAK,IAAIC,EAAQf,UAAUC,OAAQU,EAAO,IAAIR,MAAMY,GAAQC,EAAQ,EAAGA,EA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AML,GAAU,CACvB,IAAIU,EAAYJ,EAAMD,MAAMM,aAAUC,EAAYC,EAAQ,QAACC,YAAYvC,MACvEA,KAAK8B,MAAML,GAASU,EACrB,CACL,EAEEZ,EAAOiB,OAAS,WACd,IAAIC,EAAczC,KAAK8B,MACnBD,EAAWY,EAAYZ,SACvBa,EAASD,EAAYE,GACrBb,EAAQc,EAA6B,QAACH,EAAa,CAAC,WAAY,OAEhEI,EAAwBb,EAAK,QAACC,SAASC,QAAQL,GAC/CiB,EAAQD,EAAsB,GAC9BE,EAASF,EAAsB,GAQnC,cANOf,EAAMkB,eACNlB,EAAMmB,kBACNnB,EAAMoB,iBACNpB,EAAMqB,cACNrB,EAAMsB,iBACNtB,EAAMuB,SACOrB,EAAK,QAACsB,cAAcC,UAAiBzB,EAAOY,EAASV,EAAK,QAACwB,aAAaV,EAAO,CACjGW,IAAK,QACLT,QAAShD,KAAKE,YACd+C,WAAYjD,KAAKO,eACjB2C,UAAWlD,KAAKU,gBACbsB,EAAAA,QAAMwB,aAAaT,EAAQ,CAC9BU,IAAK,SACLT,QAAShD,KAAKa,WACdoC,WAAYjD,KAAKgB,cACjBkC,UAAWlD,KAAKmB,eAEtB,EAES9B,CACT,CA5GqC,CA4GnC2C,EAAAA,QAAM0B,WAERrE,EAAkBsE,UAAqC,eAAzBC,QAAQC,IAAIC,SAA4B,CACpEnB,GAAIoB,EAAAA,QAAUC,KAAKC,WACnBpC,SAAU,SAAkBC,EAAOoC,GACjC,OAA8C,IAA1ClC,EAAK,QAACC,SAASkC,MAAMrC,EAAMoC,IAAyB,IAAIE,MAAM,IAAOF,EAAW,gDAC7E,IACR,GACC,CAAE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),t=require("react"),n=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),t=require("react"),n=require("../../../_virtual/index.js"),r=require("./Transition.js"),u=require("./TransitionGroupContext.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i,o,l=a(t);var c={out:"out-in",in:"in-out"},d=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},s=((i={})[c.out]=function(e){var t=e.current,n=e.changeState;return l.default.cloneElement(t,{in:!1,onExited:d(t,"onExited",(function(){n(r.ENTERING,null)}))})},i[c.in]=function(e){var t=e.current,n=e.changeState,u=e.children;return[t,l.default.cloneElement(u,{in:!0,onEntered:d(u,"onEntered",(function(){n(r.ENTERING)}))})]},i),E=((o={})[c.out]=function(e){var t=e.children,n=e.changeState;return l.default.cloneElement(t,{in:!0,onEntered:d(t,"onEntered",(function(){n(r.ENTERED,l.default.cloneElement(t,{in:!0}))}))})},o[c.in]=function(e){var t=e.current,n=e.children,u=e.changeState;return[l.default.cloneElement(t,{in:!1,onExited:d(t,"onExited",(function(){u(r.ENTERED,l.default.cloneElement(n,{in:!0}))}))}),l.default.cloneElement(n,{in:!0})]},o),f=function(t){function n(){for(var e,n=arguments.length,u=new Array(n),a=0;a<n;a++)u[a]=arguments[a];return(e=t.call.apply(t,[this].concat(u))||this).state={status:r.ENTERED,current:null},e.appeared=!1,e.changeState=function(t,n){void 0===n&&(n=e.state.current),e.setState({status:t,current:n})},e}e.default(n,t);var a=n.prototype;return a.componentDidMount=function(){this.appeared=!0},n.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===r.ENTERING&&e.mode===c.in?{status:r.ENTERING}:!t.current||(n=t.current,u=e.children,n===u||l.default.isValidElement(n)&&l.default.isValidElement(u)&&null!=n.key&&n.key===u.key)?{current:l.default.cloneElement(e.children,{in:!0})}:{status:r.EXITING};var n,u},a.render=function(){var e,t=this.props,n=t.children,a=t.mode,i=this.state,o=i.status,c=i.current,d={children:n,current:c,changeState:this.changeState,status:o};switch(o){case r.ENTERING:e=E[a](d);break;case r.EXITING:e=s[a](d);break;case r.ENTERED:e=c}return l.default.createElement(u.default.Provider,{value:{isMounting:!this.appeared}},e)},n}(l.default.Component);f.propTypes="production"!==process.env.NODE_ENV?{mode:n.default.oneOf([c.in,c.out]),children:n.default.oneOfType([n.default.element.isRequired])}:{},f.defaultProps={mode:c.out},exports.default=f,exports.modes=c;
|
|
2
2
|
//# sourceMappingURL=SwitchTransition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchTransition.js","sources":["../../../../../node_modules/react-transition-group/esm/SwitchTransition.js"],"sourcesContent":["import _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\n\nvar _leaveRenders, _enterRenders;\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { ENTERED, ENTERING, EXITING } from './Transition';\nimport TransitionGroupContext from './TransitionGroupContext';\n\nfunction areChildrenDifferent(oldChildren, newChildren) {\n if (oldChildren === newChildren) return false;\n\n if (React.isValidElement(oldChildren) && React.isValidElement(newChildren) && oldChildren.key != null && oldChildren.key === newChildren.key) {\n return false;\n }\n\n return true;\n}\n/**\n * Enum of modes for SwitchTransition component\n * @enum { string }\n */\n\n\nexport var modes = {\n out: 'out-in',\n in: 'in-out'\n};\n\nvar callHook = function callHook(element, name, cb) {\n return function () {\n var _element$props;\n\n element.props[name] && (_element$props = element.props)[name].apply(_element$props, arguments);\n cb();\n };\n};\n\nvar leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_ref) {\n var current = _ref.current,\n changeState = _ref.changeState;\n return React.cloneElement(current, {\n in: false,\n onExited: callHook(current, 'onExited', function () {\n changeState(ENTERING, null);\n })\n });\n}, _leaveRenders[modes.in] = function (_ref2) {\n var current = _ref2.current,\n changeState = _ref2.changeState,\n children = _ref2.children;\n return [current, React.cloneElement(children, {\n in: true,\n onEntered: callHook(children, 'onEntered', function () {\n changeState(ENTERING);\n })\n })];\n}, _leaveRenders);\nvar enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_ref3) {\n var children = _ref3.children,\n changeState = _ref3.changeState;\n return React.cloneElement(children, {\n in: true,\n onEntered: callHook(children, 'onEntered', function () {\n changeState(ENTERED, React.cloneElement(children, {\n in: true\n }));\n })\n });\n}, _enterRenders[modes.in] = function (_ref4) {\n var current = _ref4.current,\n children = _ref4.children,\n changeState = _ref4.changeState;\n return [React.cloneElement(current, {\n in: false,\n onExited: callHook(current, 'onExited', function () {\n changeState(ENTERED, React.cloneElement(children, {\n in: true\n }));\n })\n }), React.cloneElement(children, {\n in: true\n })];\n}, _enterRenders);\n/**\n * A transition component inspired by the [vue transition modes](https://vuejs.org/v2/guide/transitions.html#Transition-Modes).\n * You can use it when you want to control the render between state transitions.\n * Based on the selected mode and the child's key which is the `Transition` or `CSSTransition` component, the `SwitchTransition` makes a consistent transition between them.\n *\n * If the `out-in` mode is selected, the `SwitchTransition` waits until the old child leaves and then inserts a new child.\n * If the `in-out` mode is selected, the `SwitchTransition` inserts a new child first, waits for the new child to enter and then removes the old child.\n *\n * **Note**: If you want the animation to happen simultaneously\n * (that is, to have the old child removed and a new child inserted **at the same time**),\n * you should use\n * [`TransitionGroup`](https://reactcommunity.org/react-transition-group/transition-group)\n * instead.\n *\n * ```jsx\n * function App() {\n * const [state, setState] = useState(false);\n * return (\n * <SwitchTransition>\n * <CSSTransition\n * key={state ? \"Goodbye, world!\" : \"Hello, world!\"}\n * addEndListener={(node, done) => node.addEventListener(\"transitionend\", done, false)}\n * classNames='fade'\n * >\n * <button onClick={() => setState(state => !state)}>\n * {state ? \"Goodbye, world!\" : \"Hello, world!\"}\n * </button>\n * </CSSTransition>\n * </SwitchTransition>\n * );\n * }\n * ```\n *\n * ```css\n * .fade-enter{\n * opacity: 0;\n * }\n * .fade-exit{\n * opacity: 1;\n * }\n * .fade-enter-active{\n * opacity: 1;\n * }\n * .fade-exit-active{\n * opacity: 0;\n * }\n * .fade-enter-active,\n * .fade-exit-active{\n * transition: opacity 500ms;\n * }\n * ```\n */\n\nvar SwitchTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(SwitchTransition, _React$Component);\n\n function SwitchTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.state = {\n status: ENTERED,\n current: null\n };\n _this.appeared = false;\n\n _this.changeState = function (status, current) {\n if (current === void 0) {\n current = _this.state.current;\n }\n\n _this.setState({\n status: status,\n current: current\n });\n };\n\n return _this;\n }\n\n var _proto = SwitchTransition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.appeared = true;\n };\n\n SwitchTransition.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n if (props.children == null) {\n return {\n current: null\n };\n }\n\n if (state.status === ENTERING && props.mode === modes.in) {\n return {\n status: ENTERING\n };\n }\n\n if (state.current && areChildrenDifferent(state.current, props.children)) {\n return {\n status: EXITING\n };\n }\n\n return {\n current: React.cloneElement(props.children, {\n in: true\n })\n };\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n mode = _this$props.mode,\n _this$state = this.state,\n status = _this$state.status,\n current = _this$state.current;\n var data = {\n children: children,\n current: current,\n changeState: this.changeState,\n status: status\n };\n var component;\n\n switch (status) {\n case ENTERING:\n component = enterRenders[mode](data);\n break;\n\n case EXITING:\n component = leaveRenders[mode](data);\n break;\n\n case ENTERED:\n component = current;\n }\n\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: {\n isMounting: !this.appeared\n }\n }, component);\n };\n\n return SwitchTransition;\n}(React.Component);\n\nSwitchTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * Transition modes.\n * `out-in`: Current element transitions out first, then when complete, the new element transitions in.\n * `in-out`: New element transitions in first, then when complete, the current element transitions out.\n *\n * @type {'out-in'|'in-out'}\n */\n mode: PropTypes.oneOf([modes.in, modes.out]),\n\n /**\n * Any `Transition` or `CSSTransition` component.\n */\n children: PropTypes.oneOfType([PropTypes.element.isRequired])\n} : {};\nSwitchTransition.defaultProps = {\n mode: modes.out\n};\nexport default SwitchTransition;"],"names":["_leaveRenders","_enterRenders","modes","out","in","callHook","element","name","cb","_element$props","props","apply","arguments","leaveRenders","_ref","current","changeState","React","cloneElement","onExited","ENTERING","_ref2","children","onEntered","enterRenders","_ref3","ENTERED","_ref4","SwitchTransition","_React$Component","_this","_len","length","args","Array","_key","call","this","concat","state","status","appeared","setState","_inheritsLoose","_proto","prototype","componentDidMount","getDerivedStateFromProps","mode","oldChildren","newChildren","isValidElement","key","EXITING","render","component","_this$props","_this$state","data","createElement","TransitionGroupContext","Provider","value","isMounting","Component","propTypes","process","env","NODE_ENV","PropTypes","oneOf","oneOfType","isRequired","defaultProps"],"mappings":"qVAEIA,EAAeC,SAsBT,IAACC,EAAQ,CACjBC,IAAK,SACLC,GAAI,UAGFC,EAAW,SAAkBC,EAASC,EAAMC,GAC9C,OAAO,WACL,IAAIC,EAEJH,EAAQI,MAAMH,KAAUE,EAAiBH,EAAQI,OAAOH,GAAMI,MAAMF,EAAgBG,WACpFJ,GACJ,CACA,EAEIK,IAAgBb,EAAgB,IAAkBE,EAAMC,KAAO,SAAUW,GAC3E,IAAIC,EAAUD,EAAKC,QACfC,EAAcF,EAAKE,YACvB,OAAOC,EAAK,QAACC,aAAaH,EAAS,CACjCX,IAAI,EACJe,SAAUd,EAASU,EAAS,YAAY,WACtCC,EAAYI,EAAAA,SAAU,KAC5B,KAEA,EAAGpB,EAAcE,EAAME,IAAM,SAAUiB,GACrC,IAAIN,EAAUM,EAAMN,QAChBC,EAAcK,EAAML,YACpBM,EAAWD,EAAMC,SACrB,MAAO,CAACP,EAASE,UAAMC,aAAaI,EAAU,CAC5ClB,IAAI,EACJmB,UAAWlB,EAASiB,EAAU,aAAa,WACzCN,EAAYI,EAAQA,SAC1B,MAEA,EAAGpB,GACCwB,IAAgBvB,EAAgB,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C9BzB,KAAM9C,EAAMC"}
|
|
1
|
+
{"version":3,"file":"SwitchTransition.js","sources":["../../../../../node_modules/react-transition-group/esm/SwitchTransition.js"],"sourcesContent":["import _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\n\nvar _leaveRenders, _enterRenders;\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { ENTERED, ENTERING, EXITING } from './Transition';\nimport TransitionGroupContext from './TransitionGroupContext';\n\nfunction areChildrenDifferent(oldChildren, newChildren) {\n if (oldChildren === newChildren) return false;\n\n if (React.isValidElement(oldChildren) && React.isValidElement(newChildren) && oldChildren.key != null && oldChildren.key === newChildren.key) {\n return false;\n }\n\n return true;\n}\n/**\n * Enum of modes for SwitchTransition component\n * @enum { string }\n */\n\n\nexport var modes = {\n out: 'out-in',\n in: 'in-out'\n};\n\nvar callHook = function callHook(element, name, cb) {\n return function () {\n var _element$props;\n\n element.props[name] && (_element$props = element.props)[name].apply(_element$props, arguments);\n cb();\n };\n};\n\nvar leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_ref) {\n var current = _ref.current,\n changeState = _ref.changeState;\n return React.cloneElement(current, {\n in: false,\n onExited: callHook(current, 'onExited', function () {\n changeState(ENTERING, null);\n })\n });\n}, _leaveRenders[modes.in] = function (_ref2) {\n var current = _ref2.current,\n changeState = _ref2.changeState,\n children = _ref2.children;\n return [current, React.cloneElement(children, {\n in: true,\n onEntered: callHook(children, 'onEntered', function () {\n changeState(ENTERING);\n })\n })];\n}, _leaveRenders);\nvar enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_ref3) {\n var children = _ref3.children,\n changeState = _ref3.changeState;\n return React.cloneElement(children, {\n in: true,\n onEntered: callHook(children, 'onEntered', function () {\n changeState(ENTERED, React.cloneElement(children, {\n in: true\n }));\n })\n });\n}, _enterRenders[modes.in] = function (_ref4) {\n var current = _ref4.current,\n children = _ref4.children,\n changeState = _ref4.changeState;\n return [React.cloneElement(current, {\n in: false,\n onExited: callHook(current, 'onExited', function () {\n changeState(ENTERED, React.cloneElement(children, {\n in: true\n }));\n })\n }), React.cloneElement(children, {\n in: true\n })];\n}, _enterRenders);\n/**\n * A transition component inspired by the [vue transition modes](https://vuejs.org/v2/guide/transitions.html#Transition-Modes).\n * You can use it when you want to control the render between state transitions.\n * Based on the selected mode and the child's key which is the `Transition` or `CSSTransition` component, the `SwitchTransition` makes a consistent transition between them.\n *\n * If the `out-in` mode is selected, the `SwitchTransition` waits until the old child leaves and then inserts a new child.\n * If the `in-out` mode is selected, the `SwitchTransition` inserts a new child first, waits for the new child to enter and then removes the old child.\n *\n * **Note**: If you want the animation to happen simultaneously\n * (that is, to have the old child removed and a new child inserted **at the same time**),\n * you should use\n * [`TransitionGroup`](https://reactcommunity.org/react-transition-group/transition-group)\n * instead.\n *\n * ```jsx\n * function App() {\n * const [state, setState] = useState(false);\n * return (\n * <SwitchTransition>\n * <CSSTransition\n * key={state ? \"Goodbye, world!\" : \"Hello, world!\"}\n * addEndListener={(node, done) => node.addEventListener(\"transitionend\", done, false)}\n * classNames='fade'\n * >\n * <button onClick={() => setState(state => !state)}>\n * {state ? \"Goodbye, world!\" : \"Hello, world!\"}\n * </button>\n * </CSSTransition>\n * </SwitchTransition>\n * );\n * }\n * ```\n *\n * ```css\n * .fade-enter{\n * opacity: 0;\n * }\n * .fade-exit{\n * opacity: 1;\n * }\n * .fade-enter-active{\n * opacity: 1;\n * }\n * .fade-exit-active{\n * opacity: 0;\n * }\n * .fade-enter-active,\n * .fade-exit-active{\n * transition: opacity 500ms;\n * }\n * ```\n */\n\nvar SwitchTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(SwitchTransition, _React$Component);\n\n function SwitchTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.state = {\n status: ENTERED,\n current: null\n };\n _this.appeared = false;\n\n _this.changeState = function (status, current) {\n if (current === void 0) {\n current = _this.state.current;\n }\n\n _this.setState({\n status: status,\n current: current\n });\n };\n\n return _this;\n }\n\n var _proto = SwitchTransition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.appeared = true;\n };\n\n SwitchTransition.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n if (props.children == null) {\n return {\n current: null\n };\n }\n\n if (state.status === ENTERING && props.mode === modes.in) {\n return {\n status: ENTERING\n };\n }\n\n if (state.current && areChildrenDifferent(state.current, props.children)) {\n return {\n status: EXITING\n };\n }\n\n return {\n current: React.cloneElement(props.children, {\n in: true\n })\n };\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n mode = _this$props.mode,\n _this$state = this.state,\n status = _this$state.status,\n current = _this$state.current;\n var data = {\n children: children,\n current: current,\n changeState: this.changeState,\n status: status\n };\n var component;\n\n switch (status) {\n case ENTERING:\n component = enterRenders[mode](data);\n break;\n\n case EXITING:\n component = leaveRenders[mode](data);\n break;\n\n case ENTERED:\n component = current;\n }\n\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: {\n isMounting: !this.appeared\n }\n }, component);\n };\n\n return SwitchTransition;\n}(React.Component);\n\nSwitchTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * Transition modes.\n * `out-in`: Current element transitions out first, then when complete, the new element transitions in.\n * `in-out`: New element transitions in first, then when complete, the current element transitions out.\n *\n * @type {'out-in'|'in-out'}\n */\n mode: PropTypes.oneOf([modes.in, modes.out]),\n\n /**\n * Any `Transition` or `CSSTransition` component.\n */\n children: PropTypes.oneOfType([PropTypes.element.isRequired])\n} : {};\nSwitchTransition.defaultProps = {\n mode: modes.out\n};\nexport default SwitchTransition;"],"names":["_leaveRenders","_enterRenders","modes","out","in","callHook","element","name","cb","_element$props","props","apply","arguments","leaveRenders","_ref","current","changeState","React","cloneElement","onExited","ENTERING","_ref2","children","onEntered","enterRenders","_ref3","ENTERED","_ref4","SwitchTransition","_React$Component","_this","_len","length","args","Array","_key","call","this","concat","state","status","appeared","setState","_inheritsLoose","_proto","prototype","componentDidMount","getDerivedStateFromProps","mode","oldChildren","newChildren","isValidElement","key","EXITING","render","component","_this$props","_this$state","data","createElement","TransitionGroupContext","Provider","value","isMounting","Component","propTypes","process","env","NODE_ENV","PropTypes","oneOf","oneOfType","isRequired","defaultProps"],"mappings":"oVAEIA,EAAeC,SAsBT,IAACC,EAAQ,CACjBC,IAAK,SACLC,GAAI,UAGFC,EAAW,SAAkBC,EAASC,EAAMC,GAC9C,OAAO,WACL,IAAIC,EAEJH,EAAQI,MAAMH,KAAUE,EAAiBH,EAAQI,OAAOH,GAAMI,MAAMF,EAAgBG,WACpFJ,GACJ,CACA,EAEIK,IAAgBb,EAAgB,IAAkBE,EAAMC,KAAO,SAAUW,GAC3E,IAAIC,EAAUD,EAAKC,QACfC,EAAcF,EAAKE,YACvB,OAAOC,EAAK,QAACC,aAAaH,EAAS,CACjCX,IAAI,EACJe,SAAUd,EAASU,EAAS,YAAY,WACtCC,EAAYI,EAAAA,SAAU,KAC5B,KAEA,EAAGpB,EAAcE,EAAME,IAAM,SAAUiB,GACrC,IAAIN,EAAUM,EAAMN,QAChBC,EAAcK,EAAML,YACpBM,EAAWD,EAAMC,SACrB,MAAO,CAACP,EAASE,UAAMC,aAAaI,EAAU,CAC5ClB,IAAI,EACJmB,UAAWlB,EAASiB,EAAU,aAAa,WACzCN,EAAYI,EAAQA,SAC1B,MAEA,EAAGpB,GACCwB,IAAgBvB,EAAgB,IAAkBC,EAAMC,KAAO,SAAUsB,GAC3E,IAAIH,EAAWG,EAAMH,SACjBN,EAAcS,EAAMT,YACxB,OAAOC,EAAK,QAACC,aAAaI,EAAU,CAClClB,IAAI,EACJmB,UAAWlB,EAASiB,EAAU,aAAa,WACzCN,EAAYU,EAAOA,QAAET,UAAMC,aAAaI,EAAU,CAChDlB,IAAI,IAEZ,KAEA,EAAGH,EAAcC,EAAME,I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eD,IAAmC,MAAnBD,EAAYG,KAAeH,EAAYG,MAAQF,EAAYE,KAqLhI,CACLrC,QAASE,EAAK,QAACC,aAAaR,EAAMY,SAAU,CAC1ClB,IAAI,KAPC,CACLoC,OAAQa,EAAOA,SApLvB,IAA8BJ,EAAaC,CA6L3C,EAEEN,EAAOU,OAAS,WACd,IAYIC,EAZAC,EAAcnB,KAAK3B,MACnBY,EAAWkC,EAAYlC,SACvB0B,EAAOQ,EAAYR,KACnBS,EAAcpB,KAAKE,MACnBC,EAASiB,EAAYjB,OACrBzB,EAAU0C,EAAY1C,QACtB2C,EAAO,CACTpC,SAAUA,EACVP,QAASA,EACTC,YAAaqB,KAAKrB,YAClBwB,OAAQA,GAIV,OAAQA,GACN,KAAKpB,EAAQA,SACXmC,EAAY/B,EAAawB,GAAMU,GAC/B,MAEF,KAAKL,EAAOA,QACVE,EAAY1C,EAAamC,GAAMU,GAC/B,MAEF,KAAKhC,EAAOA,QACV6B,EAAYxC,EAGhB,OAAoBE,UAAM0C,cAAcC,EAAsB,QAACC,SAAU,CACvEC,MAAO,CACLC,YAAa1B,KAAKI,WAEnBc,EACP,EAES3B,CACT,CAnGoC,CAmGlCX,EAAAA,QAAM+C,WAERpC,EAAiBqC,UAAqC,eAAzBC,QAAQC,IAAIC,SAA4B,CAQnEpB,KAAMqB,EAAS,QAACC,MAAM,CAACpE,EAAME,GAAIF,EAAMC,MAKvCmB,SAAU+C,EAAS,QAACE,UAAU,CAACF,EAAAA,QAAU/D,QAAQkE,cAC/C,GACJ5C,EAAiB6C,aAAe,CAC9BzB,KAAM9C,EAAMC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),e=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),n=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),e=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),n=require("../../../_virtual/index.js"),i=require("react"),o=require("react-dom"),r=require("./config.js"),s=require("./utils/PropTypes.js"),a=require("./TransitionGroupContext.js"),u=require("./utils/reflow.js");function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var d=l(i),p=l(o),f="unmounted",c="exited",E="entering",h="entered",x="exiting",m=function(n){function i(t,e){var i;i=n.call(this,t,e)||this;var o,r=e&&!e.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(o=c,i.appearStatus=E):o=h:o=t.unmountOnExit||t.mountOnEnter?f:c,i.state={status:o},i.nextCallback=null,i}e.default(i,n),i.getDerivedStateFromProps=function(t,e){return t.in&&e.status===f?{status:c}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==E&&n!==h&&(e=E):n!==E&&n!==h||(e=x)}this.updateStatus(!1,e)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!=typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},o.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===E){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:p.default.findDOMNode(this);n&&u.forceReflow(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:f})},o.performEnter=function(t){var e=this,n=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[p.default.findDOMNode(this),i],s=o[0],a=o[1],u=this.getTimeouts(),l=i?u.appear:u.enter;!t&&!n||r.default.disabled?this.safeSetState({status:h},(function(){e.props.onEntered(s)})):(this.props.onEnter(s,a),this.safeSetState({status:E},(function(){e.props.onEntering(s,a),e.onTransitionEnd(l,(function(){e.safeSetState({status:h},(function(){e.props.onEntered(s,a)}))}))})))},o.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:p.default.findDOMNode(this);e&&!r.default.disabled?(this.props.onExit(i),this.safeSetState({status:x},(function(){t.props.onExiting(i),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(i)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},o.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:p.default.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=o[0],s=o[1];this.props.addEndListener(r,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===f)return null;var n=this.props,i=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=t.default(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return d.default.createElement(a.default.Provider,{value:null},"function"==typeof i?i(e,o):d.default.cloneElement(d.default.Children.only(i),o))},i}(d.default.Component);function b(){}m.contextType=a.default,m.propTypes="production"!==process.env.NODE_ENV?{nodeRef:n.default.shape({current:"undefined"==typeof Element?n.default.any:function(t,e,i,o,r,s){var a=t[e];return n.default.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(t,e,i,o,r,s)}}),children:n.default.oneOfType([n.default.func.isRequired,n.default.element.isRequired]).isRequired,in:n.default.bool,mountOnEnter:n.default.bool,unmountOnExit:n.default.bool,appear:n.default.bool,enter:n.default.bool,exit:n.default.bool,timeout:function(t){var e=s.timeoutsShape;t.addEndListener||(e=e.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return e.apply(void 0,[t].concat(i))},addEndListener:n.default.func,onEnter:n.default.func,onEntering:n.default.func,onEntered:n.default.func,onExit:n.default.func,onExiting:n.default.func,onExited:n.default.func}:{},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},m.UNMOUNTED=f,m.EXITED=c,m.ENTERING=E,m.ENTERED=h,m.EXITING=x,exports.ENTERED=h,exports.ENTERING=E,exports.EXITED=c,exports.EXITING=x,exports.UNMOUNTED=f,exports.default=m;
|
|
2
2
|
//# sourceMappingURL=Transition.js.map
|