@portnet/ui 5.0.28 → 5.0.29-0

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.
@@ -3523,6 +3523,15 @@ const PuiHelpWidget = _ref7 => {
3523
3523
  const [guideData, setGuideData] = (0, _react.useState)(null);
3524
3524
  const [faqData, setFaqData] = (0, _react.useState)(null);
3525
3525
  const [loadingGuide, setLoadingGuide] = (0, _react.useState)(false);
3526
+ (0, _react.useEffect)(() => {
3527
+ const openNouvelleReclamation = () => {
3528
+ setReclamationModalOpen(true);
3529
+ };
3530
+ window.addEventListener("open-nouvelle-reclamation", openNouvelleReclamation);
3531
+ return () => {
3532
+ window.removeEventListener("open-nouvelle-reclamation", openNouvelleReclamation);
3533
+ };
3534
+ }, []);
3526
3535
  (0, _react.useEffect)(() => {
3527
3536
  async function fetchGuideData() {
3528
3537
  if (!showGuides || !currentProjectCode || !guidesPanelOpen) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portnet/ui",
3
- "version": "5.0.28",
3
+ "version": "5.0.29-0",
4
4
  "description": "Portnet UI",
5
5
  "keywords": [
6
6
  "react",
@@ -103,6 +103,7 @@
103
103
  "@storybook/testing-library": "^0.2.2",
104
104
  "ajv": "^8.17.1",
105
105
  "ajv-keywords": "^5.1.0",
106
+ "axios": "^0.27.2",
106
107
  "cross-env": "^7.0.3",
107
108
  "husky": "^4.3.8",
108
109
  "prop-types": "^15.8.1",
@@ -110,4 +111,4 @@
110
111
  "storybook": "^7.6.4",
111
112
  "webpack": "^5.75.0"
112
113
  }
113
- }
114
+ }