@wix/vibe-bookings-plugin 0.37.0 → 0.38.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 +9 -2
- package/dist/index.cjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3017,7 +3017,7 @@ var getRouterFileContent = () => {
|
|
|
3017
3017
|
},
|
|
3018
3018
|
{
|
|
3019
3019
|
path: 'services',
|
|
3020
|
-
element: <ServiceListPageRoute slotsPagePath="/booking/slots" />,
|
|
3020
|
+
element: <ServiceListPageRoute slotsPagePath="/booking/slots" formPagePath="/booking/form" />,
|
|
3021
3021
|
},
|
|
3022
3022
|
{
|
|
3023
3023
|
path: 'slots/:serviceSlug',
|
|
@@ -3079,7 +3079,14 @@ The \`BookingProvider\` uses \`createBookingLoader(rootRouteLoader)\` to combine
|
|
|
3079
3079
|
<strong>ALWAYS IMPLEMENT THE LAYOUT COMPONENTS OF THE SITE, AS A LAYOUT FOR THE SITE, AND WRAP ALL THE ROUTES WITH THAT LAYOUT (INCLUDING THE BOOKINGS ROUTES).</strong>
|
|
3080
3080
|
</important_router_notes>
|
|
3081
3081
|
|
|
3082
|
-
|
|
3082
|
+
All the routes from the bookings router are 100% width, no titles, no background, no padding nor margin outside of their content area. Wrap them with an html element with the right positioning, background, padding or margin, and titles for each route.
|
|
3083
|
+
For example, instead of using the service list route as is, wrap it with a proper element:
|
|
3084
|
+
\`\`\`tsx
|
|
3085
|
+
<div className="...">
|
|
3086
|
+
<h1 className="... px-4 py-2">Our Services</h1>
|
|
3087
|
+
<ServiceListPageRoute slotsPagePath="/booking/slots" />
|
|
3088
|
+
</div>
|
|
3089
|
+
\`\`\`
|
|
3083
3090
|
|
|
3084
3091
|
# Layout changes
|
|
3085
3092
|
The bookings system provides a provider that must be integrated into the site layout.
|