@wix/vibe-bookings-plugin 0.41.0 → 0.43.0

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/dist/index.cjs CHANGED
@@ -2993,7 +2993,6 @@ var getRouterFileContent = () => {
2993
2993
  import {
2994
2994
  BookingProvider,
2995
2995
  createBookingLoader,
2996
- BOOKINGS_ROUTES,
2997
2996
  } from './bookings/components/common/BookingProvider';
2998
2997
  import { rootRouteLoader, WixServicesProvider } from '@/wix-verticals/react-pages/react-router/routes/root';
2999
2998
 
@@ -3001,10 +3000,10 @@ var getRouterFileContent = () => {
3001
3000
  [
3002
3001
  {
3003
3002
  path: '/',
3004
- element: <Navigate to={\`\${BOOKINGS_ROUTES.BASE}/\${BOOKINGS_ROUTES.LOCATIONS}\`} />,
3003
+ element: <Navigate to="/booking/locations" />,
3005
3004
  },
3006
3005
  {
3007
- path: BOOKINGS_ROUTES.BASE,
3006
+ path: '/booking',
3008
3007
  element: (
3009
3008
  <WixServicesProvider>
3010
3009
  <BookingProvider>
@@ -3015,20 +3014,20 @@ var getRouterFileContent = () => {
3015
3014
  loader: createBookingLoader(rootRouteLoader),
3016
3015
  children: [
3017
3016
  {
3018
- path: BOOKINGS_ROUTES.LOCATIONS,
3019
- element: <LocationSelectorPageRoute servicesPagePath={\`\${BOOKINGS_ROUTES.BASE}/\${BOOKINGS_ROUTES.SERVICES}\`} />,
3017
+ path: 'locations',
3018
+ element: <LocationSelectorPageRoute servicesPagePath="/booking/services" />,
3020
3019
  loader: LocationSelectorPageRouteLoader,
3021
3020
  },
3022
3021
  {
3023
- path: BOOKINGS_ROUTES.SERVICES,
3024
- element: <ServiceListPageRoute slotsPagePath={\`\${BOOKINGS_ROUTES.BASE}/\${BOOKINGS_ROUTES.SLOTS}\`} formPagePath={\`\${BOOKINGS_ROUTES.BASE}/\${BOOKINGS_ROUTES.FORM}\`} />,
3022
+ path: 'services',
3023
+ element: <ServiceListPageRoute slotsPagePath="/booking/slots" formPagePath="/booking/form" />,
3025
3024
  },
3026
3025
  {
3027
- path: \`\${BOOKINGS_ROUTES.SLOTS}/:serviceSlug\`,
3028
- element: <TimeSlotListPageRoute formPagePath={\`\${BOOKINGS_ROUTES.BASE}/\${BOOKINGS_ROUTES.FORM}\`} />,
3026
+ path: 'slots/:serviceSlug',
3027
+ element: <TimeSlotListPageRoute formPagePath="/booking/form" />,
3029
3028
  },
3030
3029
  {
3031
- path: \`\${BOOKINGS_ROUTES.FORM}/:serviceSlug\`,
3030
+ path: 'form/:serviceSlug',
3032
3031
  element: <BookingFormPageRoute bookingCompletedPagePath="/booking/booking-completed" />,
3033
3032
  },
3034
3033
  {
@@ -3097,6 +3096,21 @@ For example, instead of using the service list route as is, wrap it with a prope
3097
3096
  </div>
3098
3097
  \`\`\`
3099
3098
 
3099
+ The \`BookingProvider\` also renders **global breadcrumbs** above all booking flow pages (locations → services → slots → form). The breadcrumbs are 100% width with no padding by default.
3100
+ If you want to style or position the breadcrumbs (e.g., add padding, center them, match your page layout), wrap the \`<BookingProvider>\` with your layout wrapper:
3101
+ \`\`\`tsx
3102
+ <WixServicesProvider>
3103
+ <div className="bg-background py-8 px-8">
3104
+ <div className="max-w-[100rem] mx-auto">
3105
+ <BookingProvider>
3106
+ <Outlet />
3107
+ </BookingProvider>
3108
+ </div>
3109
+ </div>
3110
+ </WixServicesProvider>
3111
+ \`\`\`
3112
+ This will apply consistent padding and max-width to both the breadcrumbs and the page content below them.
3113
+
3100
3114
  # Layout changes
3101
3115
  The bookings system provides a provider that must be integrated into the site layout.
3102
3116