@redneckz/wildless-cms-uni-blocks 0.14.222 → 0.14.223
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/bundle/bundle.umd.js +4 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ApplicationFormCustom/AddressBranchField.js +3 -2
- package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js +3 -2
- package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +4 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +3 -2
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +3 -2
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +3 -2
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/AddressBranchField.tsx +3 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -1551,9 +1551,10 @@
|
|
|
1551
1551
|
const getValidation = (field, validator, required = false) => required ? withValidator(field, validator) : field;
|
|
1552
1552
|
|
|
1553
1553
|
const AddressBranchField = JSX(({ field, input, isPremium = false }) => {
|
|
1554
|
-
const regionKey = field('region')?.value?.
|
|
1554
|
+
const regionKey = field('region')?.value?.key;
|
|
1555
|
+
const regionText = field('region')?.value?.text;
|
|
1555
1556
|
const addressBranch = isPremium
|
|
1556
|
-
? usePremiumBranchesByRegions()?.find((_) => _?.region ===
|
|
1557
|
+
? usePremiumBranchesByRegions()?.find((_) => _?.region === regionText)?.branches
|
|
1557
1558
|
: useBranches(regionKey)?.filter((branch) => branch?.address);
|
|
1558
1559
|
useEffect(() => {
|
|
1559
1560
|
if (field('region')?.value?.key !== '') {
|
|
@@ -6016,7 +6017,7 @@
|
|
|
6016
6017
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6017
6018
|
});
|
|
6018
6019
|
|
|
6019
|
-
const packageVersion = "0.14.
|
|
6020
|
+
const packageVersion = "0.14.222";
|
|
6020
6021
|
|
|
6021
6022
|
exports.Blocks = Blocks;
|
|
6022
6023
|
exports.ContentPage = ContentPage;
|