@smvtech/x-flux 1.1.10 → 1.1.11
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/index.js +2 -9
- package/dist/index.mjs +2 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1019,19 +1019,12 @@ var EDCFlowProvider = ({ children, orderId }) => {
|
|
|
1019
1019
|
const currentApplicant = prev[application_id];
|
|
1020
1020
|
if (!currentApplicant) return prev;
|
|
1021
1021
|
const applicantWithUpdatedAnswer = updateApplicantWithAnswer(
|
|
1022
|
-
currentApplicant,
|
|
1022
|
+
{ ...currentApplicant, application: updatedAnswerData.application, traveller: updatedAnswerData.traveller },
|
|
1023
1023
|
updatedAnswerData.answers.visa_questions_id,
|
|
1024
1024
|
updatedAnswerData.answers,
|
|
1025
1025
|
questionnaire
|
|
1026
1026
|
);
|
|
1027
|
-
const updatedApplicants = {
|
|
1028
|
-
...prev,
|
|
1029
|
-
[application_id]: {
|
|
1030
|
-
...applicantWithUpdatedAnswer,
|
|
1031
|
-
application: updatedAnswerData.application,
|
|
1032
|
-
traveller: updatedAnswerData.traveller
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1027
|
+
const updatedApplicants = { ...prev, [application_id]: applicantWithUpdatedAnswer };
|
|
1035
1028
|
if (shouldRecalculateSideEffects) {
|
|
1036
1029
|
const { updatedQuestionnaire, updatedApplicants: applicantsWithSideEffects } = runApplicantSideEffects(updatedApplicants, questionnaire, dynamicQuestionMap);
|
|
1037
1030
|
setQuestionnaire(updatedQuestionnaire);
|
package/dist/index.mjs
CHANGED
|
@@ -993,19 +993,12 @@ var EDCFlowProvider = ({ children, orderId }) => {
|
|
|
993
993
|
const currentApplicant = prev[application_id];
|
|
994
994
|
if (!currentApplicant) return prev;
|
|
995
995
|
const applicantWithUpdatedAnswer = updateApplicantWithAnswer(
|
|
996
|
-
currentApplicant,
|
|
996
|
+
{ ...currentApplicant, application: updatedAnswerData.application, traveller: updatedAnswerData.traveller },
|
|
997
997
|
updatedAnswerData.answers.visa_questions_id,
|
|
998
998
|
updatedAnswerData.answers,
|
|
999
999
|
questionnaire
|
|
1000
1000
|
);
|
|
1001
|
-
const updatedApplicants = {
|
|
1002
|
-
...prev,
|
|
1003
|
-
[application_id]: {
|
|
1004
|
-
...applicantWithUpdatedAnswer,
|
|
1005
|
-
application: updatedAnswerData.application,
|
|
1006
|
-
traveller: updatedAnswerData.traveller
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1001
|
+
const updatedApplicants = { ...prev, [application_id]: applicantWithUpdatedAnswer };
|
|
1009
1002
|
if (shouldRecalculateSideEffects) {
|
|
1010
1003
|
const { updatedQuestionnaire, updatedApplicants: applicantsWithSideEffects } = runApplicantSideEffects(updatedApplicants, questionnaire, dynamicQuestionMap);
|
|
1011
1004
|
setQuestionnaire(updatedQuestionnaire);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smvtech/x-flux",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "x-flux - A powerful React package for managing effective document collection flows, visa questionnaires, travellers, and applications",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|