@wix/bookings 1.0.1796 → 1.0.1798
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-booking-checkout.d.ts +3 -37
- package/build/cjs/context-booking-checkout.js +1350 -1340
- package/build/cjs/context-booking-checkout.js.map +1 -1
- package/build/cjs/context-categories.d.ts +1 -3
- package/build/cjs/context-categories.js +20 -43
- package/build/cjs/context-categories.js.map +1 -1
- package/build/cjs/context-locations.d.ts +1 -1
- package/build/cjs/context-locations.js +20 -43
- package/build/cjs/context-locations.js.map +1 -1
- package/build/cjs/context-service-addons.d.ts +1 -15
- package/build/cjs/context-service-addons.js +20 -43
- package/build/cjs/context-service-addons.js.map +1 -1
- package/build/cjs/context-service.d.ts +1 -65
- package/build/cjs/context-service.js +363 -386
- package/build/cjs/context-service.js.map +1 -1
- package/build/cjs/context-services.d.ts +1 -23
- package/build/cjs/context-services.js +542 -566
- package/build/cjs/context-services.js.map +1 -1
- package/build/cjs/context-time-slots.d.ts +1 -21
- package/build/cjs/context-time-slots.js +588 -615
- package/build/cjs/context-time-slots.js.map +1 -1
- package/build/es/context-booking-checkout.d.mts +3 -37
- package/build/es/context-booking-checkout.mjs +1350 -1340
- package/build/es/context-booking-checkout.mjs.map +1 -1
- package/build/es/context-categories.d.mts +1 -3
- package/build/es/context-categories.mjs +20 -43
- package/build/es/context-categories.mjs.map +1 -1
- package/build/es/context-locations.d.mts +1 -1
- package/build/es/context-locations.mjs +20 -43
- package/build/es/context-locations.mjs.map +1 -1
- package/build/es/context-service-addons.d.mts +1 -15
- package/build/es/context-service-addons.mjs +20 -43
- package/build/es/context-service-addons.mjs.map +1 -1
- package/build/es/context-service.d.mts +1 -65
- package/build/es/context-service.mjs +363 -386
- package/build/es/context-service.mjs.map +1 -1
- package/build/es/context-services.d.mts +1 -23
- package/build/es/context-services.mjs +542 -566
- package/build/es/context-services.mjs.map +1 -1
- package/build/es/context-time-slots.d.mts +1 -21
- package/build/es/context-time-slots.mjs +588 -615
- package/build/es/context-time-slots.mjs.map +1 -1
- package/build/internal/cjs/context-booking-checkout.d.ts +3 -37
- package/build/internal/cjs/context-categories.d.ts +1 -3
- package/build/internal/cjs/context-locations.d.ts +1 -1
- package/build/internal/cjs/context-service-addons.d.ts +1 -15
- package/build/internal/cjs/context-service.d.ts +1 -65
- package/build/internal/cjs/context-services.d.ts +1 -23
- package/build/internal/cjs/context-time-slots.d.ts +1 -21
- package/build/internal/es/context-booking-checkout.d.mts +3 -37
- package/build/internal/es/context-categories.d.mts +1 -3
- package/build/internal/es/context-locations.d.mts +1 -1
- package/build/internal/es/context-service-addons.d.mts +1 -15
- package/build/internal/es/context-service.d.mts +1 -65
- package/build/internal/es/context-services.d.mts +1 -23
- package/build/internal/es/context-time-slots.d.mts +1 -21
- package/context-runtime/context-booking-checkout/runtime.d.ts +3 -38
- package/context-runtime/context-booking-checkout/runtime.js +3 -3
- package/context-runtime/context-categories/runtime.d.ts +1 -4
- package/context-runtime/context-categories/runtime.js +2 -2
- package/context-runtime/context-locations/runtime.d.ts +1 -2
- package/context-runtime/context-locations/runtime.js +2 -2
- package/context-runtime/context-service/runtime.d.ts +1 -66
- package/context-runtime/context-service/runtime.js +3 -3
- package/context-runtime/context-service-addons/runtime.d.ts +1 -16
- package/context-runtime/context-service-addons/runtime.js +2 -2
- package/context-runtime/context-services/runtime.d.ts +1 -24
- package/context-runtime/context-services/runtime.js +3 -3
- package/context-runtime/context-time-slots/runtime.d.ts +1 -22
- package/context-runtime/context-time-slots/runtime.js +3 -3
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/type-fest/source/observable-like.d.ts
|
|
4
4
|
declare global {
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
6
6
|
interface SymbolConstructor {
|
|
@@ -17,8 +17,6 @@ As well, some guidance on making an `Observable` to not include `closed` propert
|
|
|
17
17
|
|
|
18
18
|
@category Observable
|
|
19
19
|
*/
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region ../../node_modules/@wix/sdk-types/internal/build/index.d.ts
|
|
22
20
|
declare global {
|
|
23
21
|
interface ContextualClient {}
|
|
24
22
|
}
|
|
@@ -64,8 +62,6 @@ declare global {
|
|
|
64
62
|
*/
|
|
65
63
|
interface SDKTypeMode {}
|
|
66
64
|
}
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_availability-time-slots/build/es/index.typings.d.mts
|
|
69
65
|
/**
|
|
70
66
|
* A time slot represents a specific time period when a service is available for booking.
|
|
71
67
|
* It provides all the information needed to display availability to customers, including whether customers can actually book it, the remaining capacity, and which staff members or resources are available.
|
|
@@ -353,14 +349,10 @@ interface NonBookableReasons {
|
|
|
353
349
|
/** Whether the related event is cancelled. */
|
|
354
350
|
eventCancelled?: boolean | null;
|
|
355
351
|
}
|
|
356
|
-
//#endregion
|
|
357
|
-
//#region ../bookings-flow-data/dist/types.d.ts
|
|
358
352
|
/** Genders a visitor can narrow "any staff member" to, in display order. Same literals as the
|
|
359
353
|
* availability API's `requestedGender.gender`, single- and multi-service alike. */
|
|
360
354
|
declare const REQUESTED_GENDERS: readonly ["ANY_FEMALE", "ANY_MALE"];
|
|
361
355
|
type RequestedGender = (typeof REQUESTED_GENDERS)[number];
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region ../../node_modules/@wix/editor-react-types/dist/image.d.ts
|
|
364
356
|
type Point = {
|
|
365
357
|
x: number;
|
|
366
358
|
y: number;
|
|
@@ -396,8 +388,6 @@ type Image = {
|
|
|
396
388
|
quality?: number; /** The image alt text for accessibility. */
|
|
397
389
|
alt?: string;
|
|
398
390
|
};
|
|
399
|
-
//#endregion
|
|
400
|
-
//#region src/api/adapters/staff-member/staff-member.d.ts
|
|
401
391
|
/**
|
|
402
392
|
* Where a staff member has working hours, derived server-side from their WORKING_HOURS
|
|
403
393
|
* calendar events. Returned only when `STAFF_WORKING_HOURS_LOCATIONS` is requested (see
|
|
@@ -415,8 +405,6 @@ interface StaffMemberItem {
|
|
|
415
405
|
/** Absent when the coverage wasn't returned — callers treat that as "works everywhere". */
|
|
416
406
|
locationCoverage?: StaffLocationCoverage;
|
|
417
407
|
}
|
|
418
|
-
//#endregion
|
|
419
|
-
//#region src/mappers/date-time.d.ts
|
|
420
408
|
/** Inclusive. */
|
|
421
409
|
interface LocalDateRange {
|
|
422
410
|
/** First date of the range, as a local date in `YYYY-MM-DD` format. The range includes it. */
|
|
@@ -424,16 +412,12 @@ interface LocalDateRange {
|
|
|
424
412
|
/** Last date of the range, as a local date in `YYYY-MM-DD` format. The range includes it. */
|
|
425
413
|
readonly endDate: string;
|
|
426
414
|
}
|
|
427
|
-
//#endregion
|
|
428
|
-
//#region src/api/adapters/time-slots/days-availability.d.ts
|
|
429
415
|
/** `unavailable`: has slots, none bookable. */
|
|
430
416
|
type DayAvailability = 'none' | 'unavailable' | 'available';
|
|
431
417
|
interface DayAvailabilityItem {
|
|
432
418
|
readonly date: string;
|
|
433
419
|
readonly availability: DayAvailability;
|
|
434
420
|
}
|
|
435
|
-
//#endregion
|
|
436
|
-
//#region src/extensions/contexts/time-slots-context/time-slots-context.types.d.ts
|
|
437
421
|
/** A local date in `YYYY-MM-DD` format. */
|
|
438
422
|
type LocalDate = string;
|
|
439
423
|
/** How a `goToNextAvailableDate()` search ended. */
|
|
@@ -602,8 +586,6 @@ interface NextAvailability {
|
|
|
602
586
|
/**
|
|
603
587
|
* The availability of the current service or multi-service appointment: its time slots, day
|
|
604
588
|
* availability, upcoming slots, filters, and the actions to browse and pick them.
|
|
605
|
-
*
|
|
606
|
-
* @beta
|
|
607
589
|
*/
|
|
608
590
|
interface TimeSlotsContextValue extends TimeSlotsContextFields {
|
|
609
591
|
/**
|
|
@@ -1402,8 +1384,6 @@ interface TimeSlotsContextProviderProps {
|
|
|
1402
1384
|
interface TimeSlotsContextAuthoringProps {
|
|
1403
1385
|
readonly loadNextAvailabilityInitially?: boolean;
|
|
1404
1386
|
}
|
|
1405
|
-
//#endregion
|
|
1406
|
-
//#region src/extensions/contexts/time-slots-context/time-slots-context.d.ts
|
|
1407
1387
|
declare const timeSlotsContext: React.Context<TimeSlotsContextValue | null>;
|
|
1408
1388
|
/**
|
|
1409
1389
|
* The `useTimeSlotsContext()` hook provides access to the available dates and time slots of a
|
|
@@ -1416,5 +1396,4 @@ declare const timeSlotsContext: React.Context<TimeSlotsContextValue | null>;
|
|
|
1416
1396
|
declare function useTimeSlotsContext(): TimeSlotsContextValue;
|
|
1417
1397
|
/** Loads the availability of the service in the surrounding ServiceContextProvider, or of the multi-service appointment in the page URL, and holds the visitor's date, time zone, staff, location and slot choices. */
|
|
1418
1398
|
declare function TimeSlotsContextProvider(props: TimeSlotsContextProviderProps): React.JSX.Element;
|
|
1419
|
-
//#endregion
|
|
1420
1399
|
export { type DayAvailability, type DayAvailabilityItem, type LocalDate, type LocalDateRange, type NextAvailability, type NextAvailableDateOutcome, type RequestedGender, type SelectionOption, type StaffFilterOption, type StaffGenderFilterOption, type StaffMemberFilterOption, type TimeSlot, type TimeSlotItem, type TimeSlotsContextAuthoringProps, type TimeSlotsContextFields, type TimeSlotsContextProviderProps, type TimeSlotsContextValue, type TimeSlotsErrorCode, TimeSlotsContextProvider as default, timeSlotsContext, useTimeSlotsContext };
|