@tavus/embed 0.19.1 → 0.19.2

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/dist/index.mjs CHANGED
@@ -3101,7 +3101,7 @@ var jn = class extends Error {
3101
3101
  }
3102
3102
  }, Mn = {
3103
3103
  name: "@tavus/embed",
3104
- version: "0.19.1",
3104
+ version: "0.19.2",
3105
3105
  variant: "embed"
3106
3106
  }, Nn = /* @__PURE__ */ new Set([
3107
3107
  "Error",
@@ -16376,7 +16376,7 @@ function tg({ children: e }) {
16376
16376
  ...r,
16377
16377
  tavus: d,
16378
16378
  open: s.expand,
16379
- close: s.collapse
16379
+ close: s.close
16380
16380
  } : {
16381
16381
  ...r,
16382
16382
  tavus: d
@@ -82,7 +82,13 @@ interface TavusElementTavusApi {
82
82
  sendMessage?: (interaction: TavusInteraction) => void;
83
83
  }
84
84
  export interface TavusElement extends HTMLElement {
85
+ /** Expands the popup to the preview screen. `<tavus-widget>` only. */
85
86
  open?: () => void;
87
+ /**
88
+ * The popup's own close path. Ends a call in progress and cancels a pending
89
+ * start before it collapses; `tavus:conversation-ended` follows for a call
90
+ * that was live. `<tavus-widget>` only.
91
+ */
86
92
  close?: () => void;
87
93
  /** Creates the room without joining it; the next start joins it. Rejects on failure. */
88
94
  createConversation?: () => Promise<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tavus/embed",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "description": "Drop a face-to-face Tavus PAL into any page with the <tavus-embed> custom element. Fully managed conversational video, no backend or API key in the browser.",
5
5
  "keywords": [
6
6
  "ai-agent",