@ziila/sdk 0.1.264 → 0.1.281

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.
@@ -62,8 +62,10 @@ export interface ThemeStyles {
62
62
  }
63
63
  export interface ZiilaConfig {
64
64
  apiKey: string;
65
- /** Merchant cart id required; all cart mutations target this cart. */
66
- cartId: string;
65
+ /** Merchant cart id. Optional: pass it when the host page already owns a
66
+ * cart, and omit it for a guest who has none yet — the server then mints
67
+ * the cart on first contact and the widget adopts the id it reports. */
68
+ cartId?: string;
67
69
  container: string | HTMLElement;
68
70
  /** Conversation + UI locale. The widget resolves the merchant's agent for
69
71
  * this locale itself (GET /agent) — there is no agent id in the config.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziila/sdk",
3
- "version": "0.1.264",
3
+ "version": "0.1.281",
4
4
  "description": "Ziila Shopping Assistant SDK — embeddable widget loader and host-page bridge.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {