@redneckz/wildless-cms-uni-blocks 0.14.202 → 0.14.204

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 (49) hide show
  1. package/bin/migration-scripts/0.14.203.js +21 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +10 -5
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  6. package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  7. package/dist/components/ApplicationFormCustom/getField.js +5 -4
  8. package/dist/components/ApplicationFormCustom/getField.js.map +1 -1
  9. package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
  10. package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  11. package/dist/hooks/useNavigateHandler.js +5 -0
  12. package/dist/hooks/useNavigateHandler.js.map +1 -1
  13. package/lib/components/ApplicationFormCustom/ApplicationFormCustom.fixture.d.ts +2 -0
  14. package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  15. package/lib/components/ApplicationFormCustom/getField.js +5 -4
  16. package/lib/components/ApplicationFormCustom/getField.js.map +1 -1
  17. package/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
  18. package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  19. package/lib/hooks/useNavigateHandler.js +5 -0
  20. package/lib/hooks/useNavigateHandler.js.map +1 -1
  21. package/mobile/bundle/bundle.umd.js +10 -5
  22. package/mobile/bundle/bundle.umd.min.js +1 -1
  23. package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  24. package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  25. package/mobile/dist/components/ApplicationFormCustom/getField.js +5 -4
  26. package/mobile/dist/components/ApplicationFormCustom/getField.js.map +1 -1
  27. package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
  28. package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  29. package/mobile/dist/hooks/useNavigateHandler.js +5 -0
  30. package/mobile/dist/hooks/useNavigateHandler.js.map +1 -1
  31. package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  32. package/mobile/lib/components/ApplicationFormCustom/getField.js +5 -4
  33. package/mobile/lib/components/ApplicationFormCustom/getField.js.map +1 -1
  34. package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
  35. package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  36. package/mobile/lib/hooks/useNavigateHandler.js +5 -0
  37. package/mobile/lib/hooks/useNavigateHandler.js.map +1 -1
  38. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +87 -1
  39. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +8 -5
  40. package/mobile/src/components/ApplicationFormCustom/getField.tsx +14 -3
  41. package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
  42. package/mobile/src/hooks/useNavigateHandler.ts +6 -0
  43. package/package.json +1 -1
  44. package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +87 -1
  45. package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +60 -6
  46. package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +8 -5
  47. package/src/components/ApplicationFormCustom/getField.tsx +14 -3
  48. package/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
  49. package/src/hooks/useNavigateHandler.ts +6 -0
@@ -0,0 +1,21 @@
1
+ import { traversePageBlocks } from '../utils.js';
2
+
3
+ export const description = 'v0.14.203';
4
+
5
+ export default traversePageBlocks(adjustApplicationCustomForm);
6
+
7
+ function adjustApplicationCustomForm(block) {
8
+ if (block?.type !== 'ApplicationFormCustom' || !block?.content?.sections) {
9
+ return;
10
+ }
11
+ const sections = block.content.sections;
12
+ sections.map((section) =>
13
+ section?.inputs?.map((_) => {
14
+ if (_?.name === 'client') {
15
+ _.name = 'isClient';
16
+ }
17
+
18
+ return _;
19
+ }),
20
+ );
21
+ }