@wix/headless-bookings 0.0.94 → 0.0.96
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/cjs/dist/__mocks__/time-slots.js +0 -1
- package/cjs/dist/react/core/booking-form/BookingForm.js +1 -1
- package/cjs/dist/services/time-slot-list/time-slot-list.def.d.ts +0 -1
- package/cjs/dist/services/time-slot-list/time-slot-list.js +1 -2
- package/dist/__mocks__/time-slots.js +0 -1
- package/dist/react/core/booking-form/BookingForm.js +1 -1
- package/dist/services/time-slot-list/time-slot-list.def.d.ts +0 -1
- package/dist/services/time-slot-list/time-slot-list.js +1 -2
- package/package.json +3 -3
|
@@ -178,7 +178,7 @@ export function Root(props) {
|
|
|
178
178
|
}
|
|
179
179
|
// Use Form.Root to set up FormService, then nest WixServices for BookingFormService
|
|
180
180
|
// This allows BookingFormService to access FormService via getService internally
|
|
181
|
-
return (_jsx(Form.Root, { formServiceConfig: formServiceConfig,
|
|
181
|
+
return (_jsx(Form.Root, { formServiceConfig: formServiceConfig, formRef: formRef, children: _jsx(WixServices, { servicesMap: createServicesMap().addService(BookingFormServiceDefinition, BookingFormService, bookingFormServiceConfig), disposeOnUnmount: true, children: _jsx(BookingFormContent, { fields: fieldMap, formRef: formRef, children: children }) }) }));
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* Internal component that consumes BookingFormService and provides render props.
|
|
@@ -88,7 +88,6 @@ export interface TimeSlotListServiceAPI {
|
|
|
88
88
|
hasMore: Signal<boolean>;
|
|
89
89
|
dateRange: Signal<DateRange>;
|
|
90
90
|
actions: TimeSlotListServiceActions;
|
|
91
|
-
dispose: () => void;
|
|
92
91
|
}
|
|
93
92
|
export declare const TimeSlotListServiceDefinition: string & {
|
|
94
93
|
__api: TimeSlotListServiceAPI;
|
|
@@ -207,7 +207,7 @@ export const TimeSlotListService = implementService.withConfig()(TimeSlotListSer
|
|
|
207
207
|
dateRangeSignal.set({ start: newStartDate, end: newEndDate });
|
|
208
208
|
};
|
|
209
209
|
let isFirstRun = true;
|
|
210
|
-
|
|
210
|
+
signalsService.effect(() => {
|
|
211
211
|
dateRangeSignal.get();
|
|
212
212
|
bookingService.timezone.get();
|
|
213
213
|
bookingService.location.get();
|
|
@@ -233,7 +233,6 @@ export const TimeSlotListService = implementService.withConfig()(TimeSlotListSer
|
|
|
233
233
|
loadMore,
|
|
234
234
|
setDateRange,
|
|
235
235
|
},
|
|
236
|
-
dispose,
|
|
237
236
|
};
|
|
238
237
|
});
|
|
239
238
|
/**
|
|
@@ -178,7 +178,7 @@ export function Root(props) {
|
|
|
178
178
|
}
|
|
179
179
|
// Use Form.Root to set up FormService, then nest WixServices for BookingFormService
|
|
180
180
|
// This allows BookingFormService to access FormService via getService internally
|
|
181
|
-
return (_jsx(Form.Root, { formServiceConfig: formServiceConfig,
|
|
181
|
+
return (_jsx(Form.Root, { formServiceConfig: formServiceConfig, formRef: formRef, children: _jsx(WixServices, { servicesMap: createServicesMap().addService(BookingFormServiceDefinition, BookingFormService, bookingFormServiceConfig), disposeOnUnmount: true, children: _jsx(BookingFormContent, { fields: fieldMap, formRef: formRef, children: children }) }) }));
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* Internal component that consumes BookingFormService and provides render props.
|
|
@@ -88,7 +88,6 @@ export interface TimeSlotListServiceAPI {
|
|
|
88
88
|
hasMore: Signal<boolean>;
|
|
89
89
|
dateRange: Signal<DateRange>;
|
|
90
90
|
actions: TimeSlotListServiceActions;
|
|
91
|
-
dispose: () => void;
|
|
92
91
|
}
|
|
93
92
|
export declare const TimeSlotListServiceDefinition: string & {
|
|
94
93
|
__api: TimeSlotListServiceAPI;
|
|
@@ -207,7 +207,7 @@ export const TimeSlotListService = implementService.withConfig()(TimeSlotListSer
|
|
|
207
207
|
dateRangeSignal.set({ start: newStartDate, end: newEndDate });
|
|
208
208
|
};
|
|
209
209
|
let isFirstRun = true;
|
|
210
|
-
|
|
210
|
+
signalsService.effect(() => {
|
|
211
211
|
dateRangeSignal.get();
|
|
212
212
|
bookingService.timezone.get();
|
|
213
213
|
bookingService.location.get();
|
|
@@ -233,7 +233,6 @@ export const TimeSlotListService = implementService.withConfig()(TimeSlotListSer
|
|
|
233
233
|
loadMore,
|
|
234
234
|
setDateRange,
|
|
235
235
|
},
|
|
236
|
-
dispose,
|
|
237
236
|
};
|
|
238
237
|
});
|
|
239
238
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/headless-bookings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.96",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@wix/auto_sdk_bookings_event-time-slots": "^1.0.64",
|
|
38
38
|
"@wix/auto_sdk_ecom_checkout": "^1.0.104",
|
|
39
39
|
"@wix/form-public": "^0.104.0",
|
|
40
|
-
"@wix/headless-forms": "0.0.
|
|
40
|
+
"@wix/headless-forms": "0.0.28",
|
|
41
41
|
"@wix/headless-media": "0.0.20",
|
|
42
42
|
"@wix/headless-utils": "0.0.8",
|
|
43
43
|
"@wix/services-definitions": "^1.0.1",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"groupId": "com.wixpress.headless-components"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "f9c07dcbd13bfcae1645e58e7c0cb56dbf2cea75260bc86cd19cafeb"
|
|
76
76
|
}
|