@timum/booking 1.5.4 → 1.5.5
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/README.md +34 -4
- package/build/booking.js +1 -1
- package/build/booking.umd.cjs +100 -100
- package/build/{index-0a54e5d0.js → index-3db739f8.js} +1 -1
- package/build/{index-a048e61b.js → index-46458c42.js} +1 -1
- package/build/{index-941c1c76.js → index-5ed67010.js} +1 -1
- package/build/{index-5bf48a9a.js → index-82df44ff.js} +1 -1
- package/build/{index-54b87ca3.js → index-830a0cac.js} +1 -1
- package/build/{index-ce417da2.js → index-912d18de.js} +1 -1
- package/build/{index-e0de72c2.js → index-a0499d63.js} +1 -1
- package/build/{index-876ec840.js → index-bb34a702.js} +15335 -15237
- package/build/{index-6107d39c.js → index-cbedfbd6.js} +1 -1
- package/build/{index-db4f9df8.js → index-d52d5243.js} +1 -1
- package/build/{index-db2fd252.js → index-f232dd3a.js} +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -289,6 +289,17 @@ This object's options directly affect timum's behaviour or allow you to react to
|
|
|
289
289
|
</ul>
|
|
290
290
|
</blockquote>
|
|
291
291
|
</td>
|
|
292
|
+
</tr>
|
|
293
|
+
<tr>
|
|
294
|
+
<td>prdRefs</td>
|
|
295
|
+
<td>string/array, Reference(s) of specific products. For when you only want your customer to choose from a subset of your otherwise fully available list of active products.
|
|
296
|
+
<blockquote>
|
|
297
|
+
Note: If this and <code>tslRefs</code> are defined in conjunction:
|
|
298
|
+
To facilitate a seamless booking process, all products linked to appointments or availabilities are made selectable for customers. This ensures that customers can always choose a product that grants access to the corresponding bookable timeslots referenced in <code>tslRefs</code>.
|
|
299
|
+
Without this step, customers might be restricted by <code>prdRefs</code> from selecting certain products, rendering related appointments or availabilities unselectable. In this way, <code>tslRefs</code> has priority over this field.
|
|
300
|
+
</blockquote>
|
|
301
|
+
</td>
|
|
302
|
+
|
|
292
303
|
</tr>
|
|
293
304
|
<tr>
|
|
294
305
|
<td>platform</td>
|
|
@@ -383,6 +394,8 @@ The callbacks object may contain any of the following functions.
|
|
|
383
394
|
|
|
384
395
|
##### Booking related
|
|
385
396
|
|
|
397
|
+
- `openedBookingPage`
|
|
398
|
+
- `closedBookingPage`,
|
|
386
399
|
- `createBookingStarted`
|
|
387
400
|
- `createBookingSuccessfull`
|
|
388
401
|
- `createBookingFailed`
|
|
@@ -426,6 +439,8 @@ Additionally, `createBookingFailed` and `createBookingSuccessfull` also have a R
|
|
|
426
439
|
|
|
427
440
|
##### Cancelation Related
|
|
428
441
|
|
|
442
|
+
- `openedCancelPage`
|
|
443
|
+
- `closedCancelPage`
|
|
429
444
|
- `cancelationStarted`
|
|
430
445
|
- `cancelationSuccessful`
|
|
431
446
|
- `cancelationFailed`
|
|
@@ -434,6 +449,21 @@ All cancelation related callbacks receive a single obejct as argument containing
|
|
|
434
449
|
|
|
435
450
|
Additionally, `cancelationSuccessful` and `cancelationFailed` also have a RTKQ response object in their respecive argument. See here for a reference.
|
|
436
451
|
|
|
452
|
+
<a name=”dialog_related”></a>
|
|
453
|
+
|
|
454
|
+
##### Dialog related
|
|
455
|
+
|
|
456
|
+
In addition to the dialog related callbacks already mentioned in [Cancelation Related](#cancelation_related) and [Booking related](#booking_related), there a callbacks for all other dialogs as well.
|
|
457
|
+
|
|
458
|
+
- `openedProductSelection`
|
|
459
|
+
- `openedResourceSelection`
|
|
460
|
+
- `openedConfirmationPage`
|
|
461
|
+
- `closedProductSelection`
|
|
462
|
+
- `closedResourceSelection`
|
|
463
|
+
- `closedConfirmationPage`
|
|
464
|
+
|
|
465
|
+
These do not receive any parameters.
|
|
466
|
+
|
|
437
467
|
<a name=”data_fetching_related”></a>
|
|
438
468
|
|
|
439
469
|
##### Data Fetching Related
|
|
@@ -713,10 +743,10 @@ Anatomy of a custom booking form field:
|
|
|
713
743
|
|
|
714
744
|
```
|
|
715
745
|
<fieldName> : {
|
|
716
|
-
index: number, index defines the order in which the fields get displayed.
|
|
717
|
-
(If you want to reorder the default fields or
|
|
718
|
-
want to inject a custom field between them,
|
|
719
|
-
you must redefine them as custom fields and manually change their indexes.)
|
|
746
|
+
index: number, index defines the order in which the fields get displayed.
|
|
747
|
+
(If you want to reorder the default fields or
|
|
748
|
+
want to inject a custom field between them,
|
|
749
|
+
you must redefine them as custom fields and manually change their indexes.)
|
|
720
750
|
title: string or JSXElement;
|
|
721
751
|
validation: yup based validation. See https://github.com/jquense/yup. Re-exported and accessible via timum.yup
|
|
722
752
|
type: string; either 'text' (default), 'phoneNumber', 'textarea', 'checkbox' or 'select',
|
package/build/booking.js
CHANGED