@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_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
69
65
|
/**
|
|
70
66
|
* Money.
|
|
71
67
|
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
@@ -199,15 +195,11 @@ interface AddOnGroupDetail$1 {
|
|
|
199
195
|
*/
|
|
200
196
|
promptTranslated?: string | null;
|
|
201
197
|
}
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region ../bookings-flow-data/dist/types.d.ts
|
|
204
198
|
/** An add-on the visitor chose, with its quantity. */
|
|
205
199
|
type AddOn$1 = {
|
|
206
200
|
/** ID of the add-on. */id: NonNullable<BookedAddOn['_id']>; /** Number of the add-on to book. */
|
|
207
201
|
quantity: NonNullable<BookedAddOn['quantity']>;
|
|
208
202
|
};
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region ../../node_modules/@wix/editor-react-types/dist/image.d.ts
|
|
211
203
|
type Point = {
|
|
212
204
|
x: number;
|
|
213
205
|
y: number;
|
|
@@ -243,8 +235,6 @@ type Image = {
|
|
|
243
235
|
quality?: number; /** The image alt text for accessibility. */
|
|
244
236
|
alt?: string;
|
|
245
237
|
};
|
|
246
|
-
//#endregion
|
|
247
|
-
//#region src/api/adapters/service-addons/service-addons.d.ts
|
|
248
238
|
type AddOn = AddOn$2 & {
|
|
249
239
|
mainMedia?: {
|
|
250
240
|
image?: string | null;
|
|
@@ -353,8 +343,6 @@ interface AddOnGroupItem {
|
|
|
353
343
|
*/
|
|
354
344
|
canSelectMore: boolean;
|
|
355
345
|
}
|
|
356
|
-
//#endregion
|
|
357
|
-
//#region src/extensions/contexts/service-addons-context/service-addons-context.types.d.ts
|
|
358
346
|
/** The add-ons offered for the current service, the visitor's picks, and the actions to change them. */
|
|
359
347
|
interface ServiceAddOnsContextValue {
|
|
360
348
|
/**
|
|
@@ -498,8 +486,6 @@ interface ServiceAddOnsContextValue {
|
|
|
498
486
|
interface ServiceAddOnsContextProviderProps {
|
|
499
487
|
children: ReactNode;
|
|
500
488
|
}
|
|
501
|
-
//#endregion
|
|
502
|
-
//#region src/extensions/contexts/service-addons-context/service-addons-context.d.ts
|
|
503
489
|
declare const serviceAddOnsContext: React.Context<ServiceAddOnsContextValue | null>;
|
|
504
490
|
/**
|
|
505
491
|
* The `useServiceAddOnsContext()` hook provides access to the add-ons a Wix Bookings service offers
|
|
@@ -513,5 +499,4 @@ declare function useServiceAddOnsContext(): ServiceAddOnsContextValue;
|
|
|
513
499
|
declare function ServiceAddOnsContextProvider({
|
|
514
500
|
children
|
|
515
501
|
}: ServiceAddOnsContextProviderProps): React.JSX.Element;
|
|
516
|
-
//#endregion
|
|
517
502
|
export { type AddOnGroupItem, type AddOnItem, type ServiceAddOnsContextProviderProps, type ServiceAddOnsContextValue, ServiceAddOnsContextProvider as default, serviceAddOnsContext, useServiceAddOnsContext };
|