@redneckz/wildless-cms-uni-blocks 0.14.638 → 0.14.640

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 (33) hide show
  1. package/bundle/api/RetailAPI/sendSignalToProcess.d.ts +1 -1
  2. package/bundle/bundle.umd.js +15 -5
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/api/RetailAPI/sendSignalToProcess.d.ts +1 -1
  5. package/dist/components/CreditForm/CreditFormStatusTracker.js +3 -1
  6. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  7. package/dist/components/CreditForm/getInitialFormState.js +12 -3
  8. package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
  9. package/lib/api/RetailAPI/sendSignalToProcess.d.ts +1 -1
  10. package/lib/components/CreditForm/CreditFormStatusTracker.js +3 -1
  11. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  12. package/lib/components/CreditForm/getInitialFormState.js +12 -3
  13. package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
  14. package/mobile/bundle/api/RetailAPI/sendSignalToProcess.d.ts +1 -1
  15. package/mobile/bundle/bundle.umd.js +15 -5
  16. package/mobile/bundle/bundle.umd.min.js +1 -1
  17. package/mobile/dist/api/RetailAPI/sendSignalToProcess.d.ts +1 -1
  18. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +3 -1
  19. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  20. package/mobile/dist/components/CreditForm/getInitialFormState.js +12 -3
  21. package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
  22. package/mobile/lib/api/RetailAPI/sendSignalToProcess.d.ts +1 -1
  23. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +3 -1
  24. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  25. package/mobile/lib/components/CreditForm/getInitialFormState.js +12 -3
  26. package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
  27. package/mobile/src/api/RetailAPI/sendSignalToProcess.ts +1 -1
  28. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +3 -1
  29. package/mobile/src/components/CreditForm/getInitialFormState.tsx +12 -7
  30. package/package.json +1 -1
  31. package/src/api/RetailAPI/sendSignalToProcess.ts +1 -1
  32. package/src/components/CreditForm/CreditFormStatusTracker.tsx +3 -1
  33. package/src/components/CreditForm/getInitialFormState.tsx +12 -7
@@ -1,7 +1,7 @@
1
1
  export declare type SignalType = 'CREATE_APPLICATION_SHORT_SIGNAL' | 'CREATE_APPLICATION_LOAN_V3_SIGNAL' | 'KILL_DRAFT_PROCESS_SIGNAL';
2
2
  interface SendSignalToProcess {
3
3
  signalType: SignalType;
4
- taskId: number;
4
+ taskId: number | null;
5
5
  }
6
6
  interface SendSignalToProcessResponse {
7
7
  statusCd: string;
@@ -5975,9 +5975,10 @@
5975
5975
  ];
5976
5976
  const CreditFormStatusTracker = JSX(() => {
5977
5977
  const [status, setStatus] = useState(STATUS_TYPE.process);
5978
+ const [taskId] = useLocalStorage('taskId');
5978
5979
  useEffect(() => {
5979
5980
  for (const signalType of SIGNAL_TYPES) {
5980
- sendSignalToProcess({ signalType, taskId: TASK_ID });
5981
+ sendSignalToProcess({ signalType, taskId });
5981
5982
  }
5982
5983
  const trackStatus = () => getTaskStatus({ taskId: TASK_ID }).then((res) => {
5983
5984
  if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
@@ -6082,9 +6083,18 @@
6082
6083
  if (localStorageData) {
6083
6084
  // TODO: Fill in for other fields with type Date
6084
6085
  // TODO: Take it out to the helper
6085
- localStorageData.birthday = localStorageData.dulIssueDateField = new Date(localStorageData?.birthday || Date.now());
6086
- localStorageData.participantDateRegistration = new Date(localStorageData?.participantDateRegistration || Date.now());
6087
- localStorageData.beginDate = new Date(localStorageData?.beginDate || Date.now());
6086
+ localStorageData.birthday = localStorageData.birthday
6087
+ ? new Date(localStorageData.birthday)
6088
+ : undefined;
6089
+ localStorageData.dulIssueDateField = localStorageData.dulIssueDateField
6090
+ ? new Date(localStorageData.dulIssueDateField)
6091
+ : undefined;
6092
+ localStorageData.participantDateRegistration = localStorageData.participantDateRegistration
6093
+ ? new Date(localStorageData.participantDateRegistration)
6094
+ : undefined;
6095
+ localStorageData.beginDate = localStorageData?.beginDate
6096
+ ? new Date(localStorageData.beginDate)
6097
+ : undefined;
6088
6098
  }
6089
6099
  return {
6090
6100
  ...formStateMap[step],
@@ -8809,7 +8819,7 @@
8809
8819
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
8810
8820
  });
8811
8821
 
8812
- const packageVersion = "0.14.637";
8822
+ const packageVersion = "0.14.639";
8813
8823
 
8814
8824
  exports.Blocks = Blocks;
8815
8825
  exports.ContentPage = ContentPage;