@redneckz/wildless-cms-uni-blocks 0.14.280 → 0.14.282
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.280.js +21 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +7 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/bundle/model/ContentPageDef.d.ts +1 -0
- package/bundle/model/LinkProps.d.ts +3 -3
- package/dist/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/dist/components/ApplicationFormCustom/VedField.js +1 -1
- package/dist/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/dist/model/ContentPageDef.d.ts +1 -0
- package/dist/model/LinkProps.d.ts +3 -3
- package/lib/common.css +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/lib/components/ApplicationFormCustom/VedField.js +1 -1
- package/lib/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/lib/model/ContentPageDef.d.ts +1 -0
- package/lib/model/LinkProps.d.ts +3 -3
- package/mobile/bundle/bundle.umd.js +7 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/bundle/model/ContentPageDef.d.ts +1 -0
- package/mobile/bundle/model/LinkProps.d.ts +3 -3
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/dist/components/ApplicationFormCustom/VedField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/mobile/dist/model/ContentPageDef.d.ts +1 -0
- package/mobile/dist/model/LinkProps.d.ts +3 -3
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/lib/components/ApplicationFormCustom/VedField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/mobile/lib/model/ContentPageDef.d.ts +1 -0
- package/mobile/lib/model/LinkProps.d.ts +3 -3
- package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +142 -64
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +31 -1
- package/mobile/src/components/ApplicationFormCustom/VedField.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/getInitialFormState.tsx +5 -2
- package/mobile/src/model/ContentPageDef.ts +1 -0
- package/mobile/src/model/LinkProps.ts +3 -3
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +142 -64
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +159 -101
- package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +31 -1
- package/src/components/ApplicationFormCustom/VedField.tsx +1 -1
- package/src/components/ApplicationFormCustom/getInitialFormState.tsx +5 -2
- package/src/model/ContentPageDef.ts +1 -0
- package/src/model/LinkProps.ts +3 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { traversePageBlocks } from '../utils.js';
|
|
2
|
+
|
|
3
|
+
export const description = 'v0.14.280';
|
|
4
|
+
|
|
5
|
+
export default traversePageBlocks(adjustApplicationFormUltraPremiumBlock);
|
|
6
|
+
|
|
7
|
+
function adjustApplicationFormUltraPremiumBlock(block) {
|
|
8
|
+
const content = block?.content;
|
|
9
|
+
|
|
10
|
+
if (!content?.sections || block.type !== 'ApplicationFormCustom') {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
block.content.sections.map((section) => addFieldType(section?.inputs));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const addFieldType = (inputs) =>
|
|
17
|
+
inputs?.map((_) => {
|
|
18
|
+
_.fieldType = _?.name === 'vedTypes' ? 'ved' : 'common';
|
|
19
|
+
|
|
20
|
+
return _;
|
|
21
|
+
});
|