@redneckz/wildless-cms-uni-blocks 0.14.889 → 0.14.892

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 (30) hide show
  1. package/bin/migration-scripts/0.14.891.js +16 -0
  2. package/bundle/bundle.umd.js +5 -4
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/DebitForm/DebitFormProgress.js +3 -3
  5. package/dist/components/DebitForm/DebitFormProgress.js.map +1 -1
  6. package/dist/components/DebitForm/PendingStatusContent.js +1 -1
  7. package/dist/components/DebitForm/PendingStatusContent.js.map +1 -1
  8. package/lib/components/DebitForm/DebitFormProgress.js +4 -4
  9. package/lib/components/DebitForm/DebitFormProgress.js.map +1 -1
  10. package/lib/components/DebitForm/PendingStatusContent.js +1 -1
  11. package/lib/components/DebitForm/PendingStatusContent.js.map +1 -1
  12. package/mobile/bundle/bundle.umd.js +5 -4
  13. package/mobile/bundle/bundle.umd.min.js +1 -1
  14. package/mobile/dist/components/DebitForm/DebitFormProgress.js +3 -3
  15. package/mobile/dist/components/DebitForm/DebitFormProgress.js.map +1 -1
  16. package/mobile/dist/components/DebitForm/PendingStatusContent.js +1 -1
  17. package/mobile/dist/components/DebitForm/PendingStatusContent.js.map +1 -1
  18. package/mobile/lib/components/DebitForm/DebitFormProgress.js +4 -4
  19. package/mobile/lib/components/DebitForm/DebitFormProgress.js.map +1 -1
  20. package/mobile/lib/components/DebitForm/PendingStatusContent.js +1 -1
  21. package/mobile/lib/components/DebitForm/PendingStatusContent.js.map +1 -1
  22. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +0 -7
  23. package/mobile/src/components/DebitForm/DebitFormProgress.tsx +4 -9
  24. package/mobile/src/components/DebitForm/PendingStatusContent.tsx +1 -1
  25. package/package.json +1 -1
  26. package/src/components/ApplicationForm/ApplicationForm.example.json +0 -7
  27. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +0 -1
  28. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +0 -1
  29. package/src/components/DebitForm/DebitFormProgress.tsx +4 -9
  30. package/src/components/DebitForm/PendingStatusContent.tsx +1 -1
@@ -0,0 +1,16 @@
1
+ import { traversePageBlocks } from '../utils.js';
2
+
3
+ export const description = 'v0.14.891';
4
+
5
+ export default traversePageBlocks(adjustEndpoint);
6
+
7
+ function adjustEndpoint(block) {
8
+ const content = block?.content;
9
+
10
+ if (
11
+ block?.type === 'ApplicationForm' &&
12
+ (content?.typeForm === 'ACQR' || content?.typeForm === 'DPST')
13
+ ) {
14
+ content.endpoint = 'initcorporatelead';
15
+ }
16
+ }
@@ -9530,8 +9530,9 @@
9530
9530
  });
9531
9531
 
9532
9532
  const DebitFormProgress = JSX(({ step = 1, totalSteps = 2, stepsTitles = [] }) => {
9533
- const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
9534
- return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
9533
+ const isFinalStep = step === totalSteps;
9534
+ const progress = isFinalStep ? 100 : 85;
9535
+ return (jsxs("div", { className: "py-lg px-5xl bg-white col-span-12", children: [stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }));
9535
9536
  });
9536
9537
 
9537
9538
  const INTERNET_BANK_LINK = 'https://online.rshb.ru/ib6/wf2/retail/ib/loginretaildefault';
@@ -9578,7 +9579,7 @@
9578
9579
 
9579
9580
  const FailedStatusContent = JSX(() => (jsx(DebitFormStatus, { title: "\u0412\u0440\u0435\u043C\u044F \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F \u043F\u0440\u0435\u0432\u044B\u0448\u0435\u043D\u043E", description: "\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
9580
9581
 
9581
- const PendingStatusContent = JSX(() => (jsx(DebitFormStatus, { title: "\u041F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u043D\u0435\u043C\u043D\u043E\u0433\u043E", description: "\u0411\u0430\u043D\u043A \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u0442 \u0432\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443" })));
9582
+ const PendingStatusContent = JSX(() => (jsx(DebitFormStatus, { title: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443", description: "\u0418\u0434\u0451\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0434\u0430\u043D\u043D\u044B\u0445" })));
9582
9583
 
9583
9584
  const SalaryDboClientStatusContent = JSX(() => (jsx(DebitFormStatus, { description: "\u0412\u044B \u0443\u0436\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0435\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB, \u0434\u043B\u044F \u0412\u0430\u0441 \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432 \u043F\u0435\u0440\u0432\u044B\u0439 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u0434\u0435\u043D\u044C", buttonText: "\u041D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
9584
9585
 
@@ -11639,7 +11640,7 @@
11639
11640
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11640
11641
  });
11641
11642
 
11642
- const packageVersion = "0.14.888";
11643
+ const packageVersion = "0.14.891";
11643
11644
 
11644
11645
  exports.Blocks = Blocks;
11645
11646
  exports.ContentPage = ContentPage;