@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.
- package/bin/migration-scripts/0.14.203.js +21 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +10 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/dist/components/ApplicationFormCustom/getField.js +5 -4
- package/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/dist/hooks/useNavigateHandler.js +5 -0
- package/dist/hooks/useNavigateHandler.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.fixture.d.ts +2 -0
- package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/lib/components/ApplicationFormCustom/getField.js +5 -4
- package/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/lib/hooks/useNavigateHandler.js +5 -0
- package/lib/hooks/useNavigateHandler.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/dist/components/ApplicationFormCustom/getField.js +5 -4
- package/mobile/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/dist/hooks/useNavigateHandler.js +5 -0
- package/mobile/dist/hooks/useNavigateHandler.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/lib/components/ApplicationFormCustom/getField.js +5 -4
- package/mobile/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/lib/hooks/useNavigateHandler.js +5 -0
- package/mobile/lib/hooks/useNavigateHandler.js.map +1 -1
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +87 -1
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +8 -5
- package/mobile/src/components/ApplicationFormCustom/getField.tsx +14 -3
- package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
- package/mobile/src/hooks/useNavigateHandler.ts +6 -0
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +87 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +60 -6
- package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +8 -5
- package/src/components/ApplicationFormCustom/getField.tsx +14 -3
- package/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
- 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
|
+
}
|