plataforma-fundacao-componentes 2.23.17 → 2.23.18

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.
@@ -10653,7 +10653,6 @@ function PreviaVideo(props) {
10653
10653
  }, props.label), React.createElement(CSSTransition, {
10654
10654
  "in": clicou,
10655
10655
  timeout: 300,
10656
- mountOnEnter: true,
10657
10656
  unmountOnExit: true,
10658
10657
  classNames: 'video',
10659
10658
  onExiting: function onExiting() {
@@ -40493,8 +40492,7 @@ function useModalManager() {
40493
40492
  document.removeEventListener('keydown', escapeCall);
40494
40493
  };
40495
40494
  }, []);
40496
-
40497
- var openModal = function openModal(component, modalProps) {
40495
+ var openModal = useCallback(function (component, modalProps) {
40498
40496
  var modalKey = modalProps.modalKey ? modalProps.modalKey : getUniqueKey();
40499
40497
  var arr = refModals.current.slice();
40500
40498
 
@@ -40516,9 +40514,8 @@ function useModalManager() {
40516
40514
  setArrayOfModal(arr);
40517
40515
  hackFocus$1();
40518
40516
  return modalKey;
40519
- };
40520
-
40521
- var closeModal = function closeModal(modalKey) {
40517
+ }, []);
40518
+ var closeModal = useCallback(function (modalKey) {
40522
40519
  if (modalKey) {
40523
40520
  closeModalByKey(modalKey);
40524
40521
  } else if (refModals.current.length) {
@@ -40526,8 +40523,7 @@ function useModalManager() {
40526
40523
 
40527
40524
  closeModalByKey((_refModals$current = refModals.current[refModals.current.length - 1]) === null || _refModals$current === void 0 ? void 0 : (_refModals$current$pr = _refModals$current.props) === null || _refModals$current$pr === void 0 ? void 0 : _refModals$current$pr.modalKey);
40528
40525
  }
40529
- };
40530
-
40526
+ }, []);
40531
40527
  return [React.createElement(React.Fragment, {
40532
40528
  key: 1
40533
40529
  }, React.createElement(TransitionGroup, {
@@ -40600,7 +40596,7 @@ function useToastManager(props) {
40600
40596
  setArrayOfToast(arr);
40601
40597
  };
40602
40598
 
40603
- var showToast = function showToast(toast) {
40599
+ var showToast = useCallback(function (toast) {
40604
40600
  var id = "toaster-" + count$1;
40605
40601
  var arr = toastsRef.current.slice();
40606
40602
  var obj = {};
@@ -40620,8 +40616,7 @@ function useToastManager(props) {
40620
40616
  setArrayOfToast(arr);
40621
40617
  count$1++;
40622
40618
  }
40623
- };
40624
-
40619
+ }, [max]);
40625
40620
  var clearToast = useCallback(function () {
40626
40621
  setArrayOfToast([]);
40627
40622
  }, []);