@redneckz/wildless-cms-uni-blocks 0.14.423 → 0.14.425

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/bin/migration-scripts/0.14.419.js +8 -1
  2. package/bundle/bundle.umd.js +3 -3
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/CalculatorCredit/isDefaultParams.d.ts +1 -1
  5. package/dist/components/CalculatorCredit/isDefaultParams.d.ts +1 -1
  6. package/dist/components/CalculatorCredit/isDefaultParams.js +1 -1
  7. package/dist/components/CalculatorCredit/isDefaultParams.js.map +1 -1
  8. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  9. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  10. package/lib/components/CalculatorCredit/isDefaultParams.d.ts +1 -1
  11. package/lib/components/CalculatorCredit/isDefaultParams.js +1 -1
  12. package/lib/components/CalculatorCredit/isDefaultParams.js.map +1 -1
  13. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  14. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  15. package/mobile/bundle/bundle.umd.js +3 -3
  16. package/mobile/bundle/bundle.umd.min.js +1 -1
  17. package/mobile/bundle/components/CalculatorCredit/isDefaultParams.d.ts +1 -1
  18. package/mobile/dist/components/CalculatorCredit/isDefaultParams.d.ts +1 -1
  19. package/mobile/dist/components/CalculatorCredit/isDefaultParams.js +1 -1
  20. package/mobile/dist/components/CalculatorCredit/isDefaultParams.js.map +1 -1
  21. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  22. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  23. package/mobile/lib/components/CalculatorCredit/isDefaultParams.d.ts +1 -1
  24. package/mobile/lib/components/CalculatorCredit/isDefaultParams.js +1 -1
  25. package/mobile/lib/components/CalculatorCredit/isDefaultParams.js.map +1 -1
  26. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  27. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  28. package/mobile/src/components/CalculatorCredit/isDefaultParams.tsx +2 -2
  29. package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
  30. package/package.json +2 -2
  31. package/src/components/CalculatorCredit/isDefaultParams.tsx +2 -2
  32. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  33. package/src/icons/IconName.ts +5 -377
@@ -6,7 +6,7 @@ export default traversePageBlocks(adjustLinkDocs);
6
6
 
7
7
  function adjustLinkDocs(block) {
8
8
  const content = block?.content;
9
- if (!content || block.type !== 'LinkDocs' || content?.documents) {
9
+ if (!content || block.type !== 'LinkDocs' || !content?.documents) {
10
10
  return;
11
11
  }
12
12
 
@@ -16,7 +16,14 @@ function adjustLinkDocs(block) {
16
16
  content.documents = content.documents.map((_) => {
17
17
  if (_?.docType === 'Modal') {
18
18
  _.docType = 'Link';
19
+
20
+ if (_?.attachment?.src) {
21
+ _.href = _?.attachment?.src;
22
+ deleteProp(_, 'attachment');
23
+ }
19
24
  }
25
+
26
+ return _;
20
27
  });
21
28
  }
22
29
  }
@@ -2889,7 +2889,7 @@
2889
2889
  };
2890
2890
  };
2891
2891
 
2892
- const isDefaultParams = (defaultParams) => Object.values(defaultParams ?? {}).filter((_) => _).length;
2892
+ const isDefaultParams = (defaultParams = {}) => Boolean(Object.values(defaultParams).filter((_) => _).length);
2893
2893
 
2894
2894
  const CREDIT_DEFAULT_SUM = 200000;
2895
2895
  const MAP$1 = {
@@ -4805,7 +4805,7 @@
4805
4805
  if (docType === '') {
4806
4806
  return null;
4807
4807
  }
4808
- else if ('reportSource' in docBlockDef) {
4808
+ else if ('reportSource' in docBlockDef && docBlockDef?.reportSource?.__html) {
4809
4809
  return renderModalItem(docBlockDef, i);
4810
4810
  }
4811
4811
  else {
@@ -6417,7 +6417,7 @@
6417
6417
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6418
6418
  });
6419
6419
 
6420
- const packageVersion = "0.14.422";
6420
+ const packageVersion = "0.14.424";
6421
6421
 
6422
6422
  exports.Blocks = Blocks;
6423
6423
  exports.ContentPage = ContentPage;