@wix/bookings 1.0.1780 → 1.0.1782
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/build/cjs/context-service-addons.d.ts +54 -3
- package/build/cjs/context-service-addons.js +1065 -578
- package/build/cjs/context-service-addons.js.map +1 -1
- package/build/cjs/context-service.d.ts +17 -0
- package/build/cjs/context-service.js +975 -963
- package/build/cjs/context-service.js.map +1 -1
- package/build/cjs/context-time-slots.d.ts +20 -91
- package/build/cjs/context-time-slots.js +456 -475
- package/build/cjs/context-time-slots.js.map +1 -1
- package/build/es/context-service-addons.d.mts +54 -3
- package/build/es/context-service-addons.mjs +1061 -574
- package/build/es/context-service-addons.mjs.map +1 -1
- package/build/es/context-service.d.mts +17 -0
- package/build/es/context-service.mjs +975 -963
- package/build/es/context-service.mjs.map +1 -1
- package/build/es/context-time-slots.d.mts +20 -91
- package/build/es/context-time-slots.mjs +456 -475
- package/build/es/context-time-slots.mjs.map +1 -1
- package/build/internal/cjs/context-service-addons.d.ts +54 -3
- package/build/internal/cjs/context-service.d.ts +17 -0
- package/build/internal/cjs/context-time-slots.d.ts +20 -91
- package/build/internal/es/context-service-addons.d.mts +54 -3
- package/build/internal/es/context-service.d.mts +17 -0
- package/build/internal/es/context-time-slots.d.mts +20 -91
- package/context-runtime/context-service/runtime.d.ts +17 -0
- package/context-runtime/context-service/runtime.js +3 -3
- package/context-runtime/context-service-addons/runtime.d.ts +54 -3
- package/context-runtime/context-service-addons/runtime.js +2 -2
- package/context-runtime/context-time-slots/runtime.d.ts +20 -91
- package/context-runtime/context-time-slots/runtime.js +3 -3
- package/package.json +3 -3
|
@@ -4411,6 +4411,21 @@ interface ServiceContextValue {
|
|
|
4411
4411
|
* `navigateToNextPage()` carries it to the next page.
|
|
4412
4412
|
*/
|
|
4413
4413
|
selection: ServicePreference;
|
|
4414
|
+
/**
|
|
4415
|
+
* Whether the time slot in `selection` is a full class session whose waitlist is open. Such a
|
|
4416
|
+
* slot can't be booked on the site yet: `navigateToNextPage()` doesn't take it to the booking
|
|
4417
|
+
* form, and a button that books it should offer the waitlist instead.
|
|
4418
|
+
*
|
|
4419
|
+
* `false` when no time slot is selected, or the selected one can be booked.
|
|
4420
|
+
*/
|
|
4421
|
+
isWaitlistSlotSelected: boolean;
|
|
4422
|
+
/**
|
|
4423
|
+
* ID of the site (its meta site ID), as the host reports it. Builders use it for links that
|
|
4424
|
+
* name the site, such as the waitlist dialog's link to the site in the Wix app.
|
|
4425
|
+
*
|
|
4426
|
+
* `''` while the host hasn't provided it, such as an unsaved site in the editor.
|
|
4427
|
+
*/
|
|
4428
|
+
siteId: string;
|
|
4414
4429
|
/**
|
|
4415
4430
|
* [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time
|
|
4416
4431
|
* slot in `selection`. It's the time zone sent with the time slot when it was selected.
|
|
@@ -4800,6 +4815,8 @@ interface ServiceContextValue {
|
|
|
4800
4815
|
* - The context is in reschedule mode. To move the booking, call `rescheduleBooking()`.
|
|
4801
4816
|
* - The next page is the booking form, and no time slot is selected for a class or an
|
|
4802
4817
|
* appointment.
|
|
4818
|
+
* - The next page is the booking form, and the selected time slot is a full class session with
|
|
4819
|
+
* an open waitlist. See `isWaitlistSlotSelected`.
|
|
4803
4820
|
* - The site has no page for the next step.
|
|
4804
4821
|
*
|
|
4805
4822
|
* The booking form gets only this service's selection. Other pages get the selection merged into
|