@ziila/sdk 0.1.329 → 0.1.332

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.
@@ -67,8 +67,15 @@ export interface ZiilaConfig {
67
67
  * the cart on first contact and the widget adopts the id it reports. */
68
68
  cartId?: string;
69
69
  container: string | HTMLElement;
70
+ /** Pins the conversation to one of the merchant's agents by id. Optional:
71
+ * omit it and the widget picks the agent itself from `locale`. When set it
72
+ * wins over `locale` — naming an id is the host saying *this* agent — and
73
+ * since an agent's language is fixed, the UI locale follows the pinned
74
+ * agent. An id the merchant's agent list doesn't hold is ignored (warned
75
+ * about) and selection falls back to `locale`. */
76
+ agentId?: string;
70
77
  /** Conversation + UI locale. The widget resolves the merchant's agent for
71
- * this locale itself (GET /agent) there is no agent id in the config.
78
+ * this locale itself (GET /agent), unless `agentId` names one outright.
72
79
  * Defaults to 'en'. */
73
80
  locale?: 'en' | 'ar';
74
81
  /** Merchant-issued token identifying the signed-in shopper. Optional;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziila/sdk",
3
- "version": "0.1.329",
3
+ "version": "0.1.332",
4
4
  "description": "Ziila Shopping Assistant SDK — embeddable widget loader and host-page bridge.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {