@wix/headless-bookings 0.0.90 → 0.0.92

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.
@@ -5,7 +5,6 @@
5
5
  import React from 'react';
6
6
  import * as CoreBooking from '../core/booking/Booking.js';
7
7
  import type { BookingServiceConfig } from '../../services/booking/booking.js';
8
- import * as BookingItemComponents from './BookingItem.js';
9
8
  export type { BookingData, DataProps, BookingItem, } from '../core/booking/Booking.js';
10
9
  /**
11
10
  * Props for Booking.Root component
@@ -57,9 +56,9 @@ export declare const Actions: {
57
56
  };
58
57
  /**
59
58
  * Hook to access the current BookingItem from context.
60
- * Must be used within Booking.ItemRepeater.
59
+ * Must be used within Booking.BookingItemRepeater.
61
60
  *
62
- * @throws Error if used outside of ItemRepeater context
61
+ * @throws Error if used outside of BookingItemRepeater context
63
62
  */
64
63
  export declare const useBookingItem: typeof CoreBooking.useBookingItemContext;
65
64
  /**
@@ -88,10 +87,6 @@ export interface BookingItemsProps {
88
87
  * ```
89
88
  */
90
89
  export declare const BookingItems: React.ForwardRefExoticComponent<BookingItemsProps & React.RefAttributes<HTMLDivElement>>;
91
- /** @deprecated Use Booking.BookingItems instead */
92
- export declare const ItemsRoot: React.ForwardRefExoticComponent<BookingItemsProps & React.RefAttributes<HTMLDivElement>>;
93
- /** @deprecated Use Booking.BookingItems instead */
94
- export declare const Items: React.ForwardRefExoticComponent<BookingItemsProps & React.RefAttributes<HTMLDivElement>>;
95
90
  /**
96
91
  * Props for Booking.BookingItemRepeater component
97
92
  */
@@ -121,12 +116,6 @@ export interface BookingItemRepeaterProps {
121
116
  * ```
122
117
  */
123
118
  export declare const BookingItemRepeater: React.ForwardRefExoticComponent<BookingItemRepeaterProps & React.RefAttributes<HTMLElement>>;
124
- /** @deprecated Use Booking.BookingItemRepeater instead */
125
- export declare const ItemRepeater: React.ForwardRefExoticComponent<BookingItemRepeaterProps & React.RefAttributes<HTMLElement>>;
126
- /** @deprecated Use BookingItem.Service instead */
127
- export declare const Service: typeof BookingItemComponents.Service;
128
- /** @deprecated Use BookingItem.TimeSlot instead */
129
- export declare const TimeSlot: typeof BookingItemComponents.TimeSlot;
130
119
  /**
131
120
  * Props for Booking.Payment component
132
121
  */
@@ -182,5 +171,3 @@ export interface BookingLocationProps {
182
171
  * ```
183
172
  */
184
173
  export declare function Location(props: BookingLocationProps): React.ReactNode;
185
- /** @deprecated Use BookingItem.StaffName instead */
186
- export declare const StaffName: React.ForwardRefExoticComponent<BookingItemComponents.StaffNameProps & React.RefAttributes<HTMLElement>>;
@@ -9,8 +9,6 @@ import { Book } from './Book.js';
9
9
  import * as PaymentComponent from '../payment/Payment.js';
10
10
  import * as CoreLocation from '../core/location/Location.js';
11
11
  import { GenericList } from '@wix/headless-components/react';
12
- // Re-export BookingItem components for backward compatibility
13
- import * as BookingItemComponents from './BookingItem.js';
14
12
  // ============================================================================
15
13
  // TestIds
16
14
  // ============================================================================
@@ -75,9 +73,9 @@ export const Actions = {
75
73
  // ============================================================================
76
74
  /**
77
75
  * Hook to access the current BookingItem from context.
78
- * Must be used within Booking.ItemRepeater.
76
+ * Must be used within Booking.BookingItemRepeater.
79
77
  *
80
- * @throws Error if used outside of ItemRepeater context
78
+ * @throws Error if used outside of BookingItemRepeater context
81
79
  */
82
80
  export const useBookingItem = CoreBooking.useBookingItemContext;
83
81
  /**
@@ -104,10 +102,6 @@ export const BookingItems = React.forwardRef((props, ref) => {
104
102
  })), hasMore: false, isLoading: false, "data-testid": TestIds.bookingItems, ...otherProps, children: _jsx(GenericList.Items, { emptyState: emptyState, children: children }) })) }));
105
103
  });
106
104
  BookingItems.displayName = 'Booking.BookingItems';
107
- /** @deprecated Use Booking.BookingItems instead */
108
- export const ItemsRoot = BookingItems;
109
- /** @deprecated Use Booking.BookingItems instead */
110
- export const Items = BookingItems;
111
105
  /**
112
106
  * Internal component that wraps each booking item with context provider.
113
107
  */
@@ -141,15 +135,6 @@ export const BookingItemRepeater = React.forwardRef((props, ref) => {
141
135
  return (_jsx(GenericList.Repeater, { ref: ref, itemWrapper: ({ item }) => (_jsx(BookingItemWrapper, { item: item, children: children }, item.instanceId)), children: undefined }));
142
136
  });
143
137
  BookingItemRepeater.displayName = 'Booking.BookingItemRepeater';
144
- /** @deprecated Use Booking.BookingItemRepeater instead */
145
- export const ItemRepeater = BookingItemRepeater;
146
- // ============================================================================
147
- // Deprecated: Service, TimeSlot, StaffName (moved to BookingItem namespace)
148
- // ============================================================================
149
- /** @deprecated Use BookingItem.Service instead */
150
- export const Service = BookingItemComponents.Service;
151
- /** @deprecated Use BookingItem.TimeSlot instead */
152
- export const TimeSlot = BookingItemComponents.TimeSlot;
153
138
  /**
154
139
  * Wraps Payment.Root with all services from all booking items.
155
140
  * Should be used outside of ItemRepeater - it calculates payment for all items.
@@ -194,5 +179,3 @@ export function Location(props) {
194
179
  const { children } = props;
195
180
  return (_jsx(CoreBooking.Data, { children: ({ location }) => location ? (_jsx(CoreLocation.Root, { location: location, children: children })) : null }));
196
181
  }
197
- /** @deprecated Use BookingItem.StaffName instead */
198
- export const StaffName = BookingItemComponents.StaffName;
@@ -5,7 +5,6 @@
5
5
  import React from 'react';
6
6
  import * as CoreBooking from '../core/booking/Booking.js';
7
7
  import type { BookingServiceConfig } from '../../services/booking/booking.js';
8
- import * as BookingItemComponents from './BookingItem.js';
9
8
  export type { BookingData, DataProps, BookingItem, } from '../core/booking/Booking.js';
10
9
  /**
11
10
  * Props for Booking.Root component
@@ -57,9 +56,9 @@ export declare const Actions: {
57
56
  };
58
57
  /**
59
58
  * Hook to access the current BookingItem from context.
60
- * Must be used within Booking.ItemRepeater.
59
+ * Must be used within Booking.BookingItemRepeater.
61
60
  *
62
- * @throws Error if used outside of ItemRepeater context
61
+ * @throws Error if used outside of BookingItemRepeater context
63
62
  */
64
63
  export declare const useBookingItem: typeof CoreBooking.useBookingItemContext;
65
64
  /**
@@ -88,10 +87,6 @@ export interface BookingItemsProps {
88
87
  * ```
89
88
  */
90
89
  export declare const BookingItems: React.ForwardRefExoticComponent<BookingItemsProps & React.RefAttributes<HTMLDivElement>>;
91
- /** @deprecated Use Booking.BookingItems instead */
92
- export declare const ItemsRoot: React.ForwardRefExoticComponent<BookingItemsProps & React.RefAttributes<HTMLDivElement>>;
93
- /** @deprecated Use Booking.BookingItems instead */
94
- export declare const Items: React.ForwardRefExoticComponent<BookingItemsProps & React.RefAttributes<HTMLDivElement>>;
95
90
  /**
96
91
  * Props for Booking.BookingItemRepeater component
97
92
  */
@@ -121,12 +116,6 @@ export interface BookingItemRepeaterProps {
121
116
  * ```
122
117
  */
123
118
  export declare const BookingItemRepeater: React.ForwardRefExoticComponent<BookingItemRepeaterProps & React.RefAttributes<HTMLElement>>;
124
- /** @deprecated Use Booking.BookingItemRepeater instead */
125
- export declare const ItemRepeater: React.ForwardRefExoticComponent<BookingItemRepeaterProps & React.RefAttributes<HTMLElement>>;
126
- /** @deprecated Use BookingItem.Service instead */
127
- export declare const Service: typeof BookingItemComponents.Service;
128
- /** @deprecated Use BookingItem.TimeSlot instead */
129
- export declare const TimeSlot: typeof BookingItemComponents.TimeSlot;
130
119
  /**
131
120
  * Props for Booking.Payment component
132
121
  */
@@ -182,5 +171,3 @@ export interface BookingLocationProps {
182
171
  * ```
183
172
  */
184
173
  export declare function Location(props: BookingLocationProps): React.ReactNode;
185
- /** @deprecated Use BookingItem.StaffName instead */
186
- export declare const StaffName: React.ForwardRefExoticComponent<BookingItemComponents.StaffNameProps & React.RefAttributes<HTMLElement>>;
@@ -9,8 +9,6 @@ import { Book } from './Book.js';
9
9
  import * as PaymentComponent from '../payment/Payment.js';
10
10
  import * as CoreLocation from '../core/location/Location.js';
11
11
  import { GenericList } from '@wix/headless-components/react';
12
- // Re-export BookingItem components for backward compatibility
13
- import * as BookingItemComponents from './BookingItem.js';
14
12
  // ============================================================================
15
13
  // TestIds
16
14
  // ============================================================================
@@ -75,9 +73,9 @@ export const Actions = {
75
73
  // ============================================================================
76
74
  /**
77
75
  * Hook to access the current BookingItem from context.
78
- * Must be used within Booking.ItemRepeater.
76
+ * Must be used within Booking.BookingItemRepeater.
79
77
  *
80
- * @throws Error if used outside of ItemRepeater context
78
+ * @throws Error if used outside of BookingItemRepeater context
81
79
  */
82
80
  export const useBookingItem = CoreBooking.useBookingItemContext;
83
81
  /**
@@ -104,10 +102,6 @@ export const BookingItems = React.forwardRef((props, ref) => {
104
102
  })), hasMore: false, isLoading: false, "data-testid": TestIds.bookingItems, ...otherProps, children: _jsx(GenericList.Items, { emptyState: emptyState, children: children }) })) }));
105
103
  });
106
104
  BookingItems.displayName = 'Booking.BookingItems';
107
- /** @deprecated Use Booking.BookingItems instead */
108
- export const ItemsRoot = BookingItems;
109
- /** @deprecated Use Booking.BookingItems instead */
110
- export const Items = BookingItems;
111
105
  /**
112
106
  * Internal component that wraps each booking item with context provider.
113
107
  */
@@ -141,15 +135,6 @@ export const BookingItemRepeater = React.forwardRef((props, ref) => {
141
135
  return (_jsx(GenericList.Repeater, { ref: ref, itemWrapper: ({ item }) => (_jsx(BookingItemWrapper, { item: item, children: children }, item.instanceId)), children: undefined }));
142
136
  });
143
137
  BookingItemRepeater.displayName = 'Booking.BookingItemRepeater';
144
- /** @deprecated Use Booking.BookingItemRepeater instead */
145
- export const ItemRepeater = BookingItemRepeater;
146
- // ============================================================================
147
- // Deprecated: Service, TimeSlot, StaffName (moved to BookingItem namespace)
148
- // ============================================================================
149
- /** @deprecated Use BookingItem.Service instead */
150
- export const Service = BookingItemComponents.Service;
151
- /** @deprecated Use BookingItem.TimeSlot instead */
152
- export const TimeSlot = BookingItemComponents.TimeSlot;
153
138
  /**
154
139
  * Wraps Payment.Root with all services from all booking items.
155
140
  * Should be used outside of ItemRepeater - it calculates payment for all items.
@@ -194,5 +179,3 @@ export function Location(props) {
194
179
  const { children } = props;
195
180
  return (_jsx(CoreBooking.Data, { children: ({ location }) => location ? (_jsx(CoreLocation.Root, { location: location, children: children })) : null }));
196
181
  }
197
- /** @deprecated Use BookingItem.StaffName instead */
198
- export const StaffName = BookingItemComponents.StaffName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-bookings",
3
- "version": "0.0.90",
3
+ "version": "0.0.92",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -37,11 +37,11 @@
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.26",
41
- "@wix/headless-media": "0.0.19",
40
+ "@wix/headless-forms": "0.0.27",
41
+ "@wix/headless-media": "0.0.20",
42
42
  "@wix/headless-utils": "0.0.8",
43
43
  "@wix/services-definitions": "^1.0.1",
44
- "@wix/services-manager-react": "^1.0.2",
44
+ "@wix/services-manager-react": "^1.0.3",
45
45
  "date-fns": "^4.1.0"
46
46
  },
47
47
  "devDependencies": {
@@ -72,5 +72,5 @@
72
72
  "groupId": "com.wixpress.headless-components"
73
73
  }
74
74
  },
75
- "falconPackageHash": "de93b455730e45ed2adcc6ab0f146aa5ae59da054da5ae8c3ffda373"
75
+ "falconPackageHash": "341d5571c2edceebe571138968072317b3891fc724640ac721f6acff"
76
76
  }