arengibook 2.6.4 → 2.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -42700,8 +42700,9 @@ var Toast = function Toast(_ref) {
42700
42700
  if (hasShownRef.current && !reShowOnPropsChange) return;
42701
42701
  var handleContentClick = closeOnLinkClick ? function (e) {
42702
42702
  if (e.target.tagName === 'A') {
42703
- var _toastRef$current;
42704
- (_toastRef$current = toastRef.current) === null || _toastRef$current === void 0 || _toastRef$current.clear();
42703
+ var _toastMessage$querySe;
42704
+ var toastMessage = e.target.closest('.p-toast-message');
42705
+ toastMessage === null || toastMessage === void 0 || (_toastMessage$querySe = toastMessage.querySelector('.p-toast-icon-close')) === null || _toastMessage$querySe === void 0 || _toastMessage$querySe.click();
42705
42706
  }
42706
42707
  } : undefined;
42707
42708
  var _content = /*#__PURE__*/React__default.createElement("div", {
@@ -42779,8 +42780,9 @@ var showToast = function showToast(props) {
42779
42780
  };
42780
42781
  var handleContentClick = props.closeOnLinkClick ? function (e) {
42781
42782
  if (e.target.tagName === 'A') {
42782
- var _toastRef;
42783
- (_toastRef = toastRef) === null || _toastRef === void 0 || _toastRef.clear();
42783
+ var _toastMessage$querySe2;
42784
+ var toastMessage = e.target.closest('.p-toast-message');
42785
+ toastMessage === null || toastMessage === void 0 || (_toastMessage$querySe2 = toastMessage.querySelector('.p-toast-icon-close')) === null || _toastMessage$querySe2 === void 0 || _toastMessage$querySe2.click();
42784
42786
  }
42785
42787
  } : undefined;
42786
42788
  var _content2 = /*#__PURE__*/React__default.createElement("div", {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.6.4",
4
+ "version": "2.6.5",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {