@redneckz/wildless-cms-uni-blocks 0.14.746 → 0.14.747
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/api/apiBaseUrl.d.ts +1 -0
- package/bundle/bundle.umd.js +4 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/api/RetailAPI/doRequest.js +1 -1
- package/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/dist/api/apiBaseUrl.d.ts +1 -0
- package/dist/api/apiBaseUrl.js +2 -1
- package/dist/api/apiBaseUrl.js.map +1 -1
- package/dist/hooks/useLeadFormData.js +1 -1
- package/dist/hooks/useLeadFormData.js.map +1 -1
- package/lib/api/RetailAPI/doRequest.js +2 -2
- package/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/lib/api/apiBaseUrl.d.ts +1 -0
- package/lib/api/apiBaseUrl.js +1 -0
- package/lib/api/apiBaseUrl.js.map +1 -1
- package/lib/hooks/useLeadFormData.js +1 -1
- package/lib/hooks/useLeadFormData.js.map +1 -1
- package/mobile/bundle/api/apiBaseUrl.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +4 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/api/RetailAPI/doRequest.js +1 -1
- package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/dist/api/apiBaseUrl.d.ts +1 -0
- package/mobile/dist/api/apiBaseUrl.js +2 -1
- package/mobile/dist/api/apiBaseUrl.js.map +1 -1
- package/mobile/dist/hooks/useLeadFormData.js +1 -1
- package/mobile/dist/hooks/useLeadFormData.js.map +1 -1
- package/mobile/lib/api/RetailAPI/doRequest.js +2 -2
- package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/lib/api/apiBaseUrl.d.ts +1 -0
- package/mobile/lib/api/apiBaseUrl.js +1 -0
- package/mobile/lib/api/apiBaseUrl.js.map +1 -1
- package/mobile/lib/hooks/useLeadFormData.js +1 -1
- package/mobile/lib/hooks/useLeadFormData.js.map +1 -1
- package/mobile/src/api/RetailAPI/doRequest.ts +2 -2
- package/mobile/src/api/apiBaseUrl.ts +1 -0
- package/mobile/src/hooks/useLeadFormData.ts +1 -1
- package/package.json +1 -1
- package/src/api/RetailAPI/doRequest.ts +2 -2
- package/src/api/apiBaseUrl.ts +1 -0
- package/src/hooks/useLeadFormData.ts +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1010,6 +1010,7 @@
|
|
|
1010
1010
|
const formatPhone = (phone) => phone?.replace(/[^+\d]/g, '');
|
|
1011
1011
|
|
|
1012
1012
|
const API_BASE_URI = '/api/v1';
|
|
1013
|
+
const RETAIL_API_BASE_URI = '/light-api-cash/v1';
|
|
1013
1014
|
|
|
1014
1015
|
function LeadServiceAPI() {
|
|
1015
1016
|
async function send(body, isIndividualType = false) {
|
|
@@ -3280,7 +3281,7 @@
|
|
|
3280
3281
|
}
|
|
3281
3282
|
};
|
|
3282
3283
|
async function doRequest(url, method, body) {
|
|
3283
|
-
return globalThis?.fetch?.(`${
|
|
3284
|
+
return globalThis?.fetch?.(`${RETAIL_API_BASE_URI}${url}`, {
|
|
3284
3285
|
method,
|
|
3285
3286
|
headers: {
|
|
3286
3287
|
'Content-Type': 'application/json',
|
|
@@ -3596,7 +3597,7 @@
|
|
|
3596
3597
|
};
|
|
3597
3598
|
|
|
3598
3599
|
const useLeadFormData = (typeField) => {
|
|
3599
|
-
const { data, error } = useAsyncData(`/api/v1/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
|
|
3600
|
+
const { data, error } = useAsyncData(`/light-api-cash/v1/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
|
|
3600
3601
|
if (data && 'errorMessage' in data) {
|
|
3601
3602
|
return { error };
|
|
3602
3603
|
}
|
|
@@ -10467,7 +10468,7 @@
|
|
|
10467
10468
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10468
10469
|
});
|
|
10469
10470
|
|
|
10470
|
-
const packageVersion = "0.14.
|
|
10471
|
+
const packageVersion = "0.14.746";
|
|
10471
10472
|
|
|
10472
10473
|
exports.Blocks = Blocks;
|
|
10473
10474
|
exports.ContentPage = ContentPage;
|