@wix/headless-bookings 0.0.65 → 0.0.66

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.
@@ -34,14 +34,14 @@ export interface BookProps {
34
34
  *
35
35
  * // With callbacks
36
36
  * <Booking.Actions.Book
37
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
37
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
38
38
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
39
39
  * onError={(error) => console.error(error.message)}
40
40
  * />
41
41
  *
42
42
  * // With render function
43
43
  * <Booking.Actions.Book
44
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
44
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
45
45
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
46
46
  * >
47
47
  * {({ isLoading, error, canBook, onClick, disabled }) => (
@@ -54,7 +54,7 @@ export interface BookProps {
54
54
  * // With asChild
55
55
  * <Booking.Actions.Book
56
56
  * asChild
57
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
57
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
58
58
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
59
59
  * >
60
60
  * <CustomBookButton />
@@ -21,14 +21,14 @@ var TestIds;
21
21
  *
22
22
  * // With callbacks
23
23
  * <Booking.Actions.Book
24
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
24
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
25
25
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
26
26
  * onError={(error) => console.error(error.message)}
27
27
  * />
28
28
  *
29
29
  * // With render function
30
30
  * <Booking.Actions.Book
31
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
31
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
32
32
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
33
33
  * >
34
34
  * {({ isLoading, error, canBook, onClick, disabled }) => (
@@ -41,7 +41,7 @@ var TestIds;
41
41
  * // With asChild
42
42
  * <Booking.Actions.Book
43
43
  * asChild
44
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
44
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
45
45
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
46
46
  * >
47
47
  * <CustomBookButton />
@@ -34,14 +34,14 @@ export interface BookProps {
34
34
  *
35
35
  * // With callbacks
36
36
  * <Booking.Actions.Book
37
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
37
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
38
38
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
39
39
  * onError={(error) => console.error(error.message)}
40
40
  * />
41
41
  *
42
42
  * // With render function
43
43
  * <Booking.Actions.Book
44
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
44
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
45
45
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
46
46
  * >
47
47
  * {({ isLoading, error, canBook, onClick, disabled }) => (
@@ -54,7 +54,7 @@ export interface BookProps {
54
54
  * // With asChild
55
55
  * <Booking.Actions.Book
56
56
  * asChild
57
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
57
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
58
58
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
59
59
  * >
60
60
  * <CustomBookButton />
@@ -21,14 +21,14 @@ var TestIds;
21
21
  *
22
22
  * // With callbacks
23
23
  * <Booking.Actions.Book
24
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
24
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
25
25
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
26
26
  * onError={(error) => console.error(error.message)}
27
27
  * />
28
28
  *
29
29
  * // With render function
30
30
  * <Booking.Actions.Book
31
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
31
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
32
32
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
33
33
  * >
34
34
  * {({ isLoading, error, canBook, onClick, disabled }) => (
@@ -41,7 +41,7 @@ var TestIds;
41
41
  * // With asChild
42
42
  * <Booking.Actions.Book
43
43
  * asChild
44
- * onCheckout={({ checkoutId }) => router.push(`/checkout?id=${checkoutId}`)}
44
+ * onCheckout={({ checkoutId, navigateToCheckout }) => navigateToCheckout(checkoutId)}
45
45
  * onComplete={({ orderId }) => router.push(`/thank-you?orderId=${orderId}`)}
46
46
  * >
47
47
  * <CustomBookButton />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-bookings",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -72,5 +72,5 @@
72
72
  "groupId": "com.wixpress.headless-components"
73
73
  }
74
74
  },
75
- "falconPackageHash": "a7381beae4b122c7bdbd9d7b7f4079f31688f2a11cd3c6d246e683c5"
75
+ "falconPackageHash": "cdf272bf09b943d1c3a3edba1a82225f2117165605b07f82878cc26c"
76
76
  }