@wexio/messenger-widget-ember 1.8.3 → 1.9.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/README.md CHANGED
@@ -163,6 +163,7 @@ Service API:
163
163
  | `shutdown()` | Clear identity (log out). |
164
164
  | `open()` / `close()` | Open / close the panel (sets the element's `open` attribute; falls back to `window.Wexio('open' \| 'close')`). |
165
165
  | `navigate({ tab, article? })` | Go to a tab / help article / news post without a remount; opens the panel (sets the element's `previewTab`). |
166
+ | `setBookingServices(ids)` | Host narrowing of the booking services (sets the element's `bookingServices`); `undefined` clears it. |
166
167
 
167
168
  In a template you can also set `default-open="true"` and `open="true"` / `open="false"` (strings; a boolean `false` would remove the attribute and leave the widget uncontrolled) on `<wexio-widget>`.
168
169
 
package/dist/index.cjs CHANGED
@@ -96,6 +96,15 @@ class WexioWidgetService {
96
96
  }
97
97
  }
98
98
 
99
+ /**
100
+ * Host narrowing of the booking services (`booking.services`): only these service ids are offered.
101
+ * Pass `undefined` to clear it. Sets the element's `bookingServices` property.
102
+ */
103
+ setBookingServices(ids) {
104
+ const el = this.element;
105
+ if (el) el.bookingServices = ids;
106
+ }
107
+
99
108
  _setOpen(open) {
100
109
  const el = this.element;
101
110
  if (el) {
package/dist/index.js CHANGED
@@ -106,6 +106,15 @@ export class WexioWidgetService {
106
106
  }
107
107
  }
108
108
 
109
+ /**
110
+ * Host narrowing of the booking services (`booking.services`): only these service ids are offered.
111
+ * Pass `undefined` to clear it. Sets the element's `bookingServices` property.
112
+ */
113
+ setBookingServices(ids) {
114
+ const el = this.element;
115
+ if (el) el.bookingServices = ids;
116
+ }
117
+
109
118
  _setOpen(open) {
110
119
  const el = this.element;
111
120
  if (el) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wexio/messenger-widget-ember",
3
- "version": "1.8.3",
3
+ "version": "1.9.0",
4
4
  "description": "Ember integration for the Wexio web messenger. Service helper around the <wexio-widget> custom element.",
5
5
  "license": "MIT",
6
6
  "private": false,