@tulipnpm/timekit_project_selector 3.0.0-rc.5 → 3.0.0-rc.6
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 +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The TimeKit Project Selector is a library that extends the functionality of [Tim
|
|
|
7
7
|
```html
|
|
8
8
|
<link rel="stylesheet" href="https://cdn.timekit.io/booking-js/v3/booking.min.css" />
|
|
9
9
|
<script type="text/javascript" src="//cdn.timekit.io/booking-js/v3/booking.min.js" defer></script>
|
|
10
|
-
<script src="https://cdn.jsdelivr.net/npm/@tulipnpm/timekit_project_selector@3.0.0-rc.
|
|
10
|
+
<script src="https://cdn.jsdelivr.net/npm/@tulipnpm/timekit_project_selector@3.0.0-rc.6/dist/timekit_project_selector.min.js"></script>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Initialization
|
|
@@ -17,6 +17,7 @@ To initialize the TimeKit Project Selector on your site, you first need to impor
|
|
|
17
17
|
```js
|
|
18
18
|
timekit_project_selector.init({
|
|
19
19
|
app_key: <timekit_app_key>,
|
|
20
|
+
api_base_url: <timekit_api_url>
|
|
20
21
|
}).then(() => {
|
|
21
22
|
// Your code here...
|
|
22
23
|
});
|
|
@@ -33,6 +34,7 @@ TimeKit Project Selector has many configuration options:
|
|
|
33
34
|
| Option | Optional? | Default value | Description |
|
|
34
35
|
|--------|-----------|---------------|-------------|
|
|
35
36
|
| app_key | No | | Token required to connect to TimeKit API. Can be found at **https://admin.timekit.io/a/apps/<app_slug>/apisettings/keys** |
|
|
37
|
+
| api_base_url | Yes | https://api.timekit.io | Timekit API url pointing to production environment. For staging env change it to staging url.
|
|
36
38
|
| defaultUI | Yes | true | When true, will create the default user interface for the project selector. More details below |
|
|
37
39
|
| embed | Yes | false | When true, the user interface will not be shown in the widget, it will be placed inside of a specified div. More details below |
|
|
38
40
|
| includePrivateAppointments | Yes | false | When true, private appointment types will be fetched from the TimeKit API |
|