@portnet/ui 5.0.23 → 5.0.24
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.
|
@@ -31,11 +31,11 @@ const PuiHelpWidgetProvider = _ref => {
|
|
|
31
31
|
apiAuthUrl,
|
|
32
32
|
guideBaseUrl,
|
|
33
33
|
token,
|
|
34
|
+
portailId = null,
|
|
34
35
|
showReclamation = true,
|
|
35
36
|
showGuides = true,
|
|
36
37
|
showTijaria = true,
|
|
37
38
|
currentProjectCode = null,
|
|
38
|
-
portailId = null,
|
|
39
39
|
children
|
|
40
40
|
} = _ref;
|
|
41
41
|
const axiosInstance = (0, _react.useMemo)(() => {
|
|
@@ -67,7 +67,8 @@ const PuiHelpWidgetProvider = _ref => {
|
|
|
67
67
|
guideImageService: (0, _guideImageService.default)(publicAxiosInstance),
|
|
68
68
|
tijariaUrl,
|
|
69
69
|
apiAuthUrl,
|
|
70
|
-
token: token || sessionStorage.getItem("access_token")
|
|
70
|
+
token: token || sessionStorage.getItem("access_token"),
|
|
71
|
+
portailId
|
|
71
72
|
};
|
|
72
73
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRedux.Provider, {
|
|
73
74
|
store: widgetStore,
|
|
@@ -1254,8 +1254,7 @@ const CustomChatInterface = _ref3 => {
|
|
|
1254
1254
|
const ReclamationFormModal = _ref4 => {
|
|
1255
1255
|
let {
|
|
1256
1256
|
open,
|
|
1257
|
-
onClose
|
|
1258
|
-
portailId = null
|
|
1257
|
+
onClose
|
|
1259
1258
|
} = _ref4;
|
|
1260
1259
|
const [activeStep, setActiveStep] = (0, _react.useState)(0);
|
|
1261
1260
|
const [formData, setFormData] = (0, _react.useState)({
|
|
@@ -1270,11 +1269,11 @@ const ReclamationFormModal = _ref4 => {
|
|
|
1270
1269
|
const {
|
|
1271
1270
|
mutate: createReclamation,
|
|
1272
1271
|
isLoading
|
|
1273
|
-
} = (0, _useReclamation.useCreateReclamation)(
|
|
1272
|
+
} = (0, _useReclamation.useCreateReclamation)();
|
|
1274
1273
|
const {
|
|
1275
1274
|
data: listServiceReclamation,
|
|
1276
1275
|
isFetching: isFetchingListServiceReclamation
|
|
1277
|
-
} = (0, _useReclamation.useListServiceReclamation)(
|
|
1276
|
+
} = (0, _useReclamation.useListServiceReclamation)();
|
|
1278
1277
|
const [error, setError] = (0, _react.useState)(null);
|
|
1279
1278
|
const errorRef = (0, _react.useRef)(null);
|
|
1280
1279
|
const CustomPopper = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Popper, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -3432,8 +3431,7 @@ const PuiHelpWidget = _ref7 => {
|
|
|
3432
3431
|
showGuides = false,
|
|
3433
3432
|
showTijaria = true,
|
|
3434
3433
|
currentProjectCode = null,
|
|
3435
|
-
guideBaseUrl
|
|
3436
|
-
portailId = null
|
|
3434
|
+
guideBaseUrl
|
|
3437
3435
|
} = _ref7;
|
|
3438
3436
|
const [dropdownOpen, setDropdownOpen] = (0, _react.useState)(false);
|
|
3439
3437
|
const [isTourActive, setIsTourActive] = (0, _react.useState)(false);
|
|
@@ -4129,8 +4127,7 @@ const PuiHelpWidget = _ref7 => {
|
|
|
4129
4127
|
})]
|
|
4130
4128
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ReclamationFormModal, {
|
|
4131
4129
|
open: reclamationModalOpen,
|
|
4132
|
-
onClose: () => setReclamationModalOpen(false)
|
|
4133
|
-
portailId: portailId
|
|
4130
|
+
onClose: () => setReclamationModalOpen(false)
|
|
4134
4131
|
})]
|
|
4135
4132
|
});
|
|
4136
4133
|
};
|
|
@@ -24,9 +24,10 @@ const useListReclamation = (page, search) => {
|
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
exports.useListReclamation = useListReclamation;
|
|
27
|
-
const useCreateReclamation =
|
|
27
|
+
const useCreateReclamation = () => {
|
|
28
28
|
const {
|
|
29
|
-
reclamationApi
|
|
29
|
+
reclamationApi,
|
|
30
|
+
portailId
|
|
30
31
|
} = (0, _PuiHelpWidgetContext.useHelpWidget)();
|
|
31
32
|
const queryClient = (0, _reactQuery.useQueryClient)();
|
|
32
33
|
return (0, _reactQuery.useMutation)({
|
|
@@ -52,22 +53,21 @@ const useDownloadDocument = () => {
|
|
|
52
53
|
});
|
|
53
54
|
};
|
|
54
55
|
exports.useDownloadDocument = useDownloadDocument;
|
|
55
|
-
const useListServiceReclamation =
|
|
56
|
-
let portailId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
56
|
+
const useListServiceReclamation = () => {
|
|
57
57
|
const {
|
|
58
|
-
reclamationApi
|
|
58
|
+
reclamationApi,
|
|
59
|
+
portailId
|
|
59
60
|
} = (0, _PuiHelpWidgetContext.useHelpWidget)();
|
|
60
61
|
return (0, _reactQuery.useQuery)({
|
|
61
62
|
queryKey: ["get_list_service_reclamation", portailId],
|
|
62
|
-
queryFn: () =>
|
|
63
|
-
// portailId === ID_PMPCE
|
|
64
|
-
portailId !== null ? reclamationApi.getListServiceReclamationByPortailApi(portailId) : reclamationApi.getListServiceReclamationApi(),
|
|
63
|
+
queryFn: () => portailId !== null ? reclamationApi.getListServiceReclamationByPortailApi(portailId) : reclamationApi.getListServiceReclamationApi(),
|
|
65
64
|
initialData: {},
|
|
66
65
|
retry: 1,
|
|
67
66
|
refetchOnWindowFocus: false,
|
|
68
67
|
refetchOnReconnect: false
|
|
69
68
|
});
|
|
70
69
|
};
|
|
70
|
+
exports.useListServiceReclamation = useListServiceReclamation;
|
|
71
71
|
const useClotureReclamation = () => {
|
|
72
72
|
const {
|
|
73
73
|
reclamationApi
|