@callembed/elements 0.1.0 → 0.1.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/README.md CHANGED
@@ -28,7 +28,7 @@ npm install @callembed/elements @callembed/sdk livekit-client
28
28
  Single file — no bundler. Registers `<callembed-button>` and exposes `window.CallEmbedElements`.
29
29
 
30
30
  ```html
31
- <script src="https://unpkg.com/@callembed/elements/dist/callembed-elements.iife.js"></script>
31
+ <script src="https://unpkg.com/@callembed/elements@0.1.2/dist/callembed-elements.iife.js"></script>
32
32
 
33
33
  <callembed-button
34
34
  publishable-key="pk_…"
@@ -44,7 +44,7 @@ Single file — no bundler. Registers `<callembed-button>` and exposes `window.C
44
44
  </script>
45
45
  ```
46
46
 
47
- > Before the first npm publish, load the built file from `packages/elements/dist/callembed-elements.iife.js` after `npm run build -w @callembed/elements`.
47
+ > Pin a version in the URL. jsDelivr also serves the IIFE via the package `jsdelivr` field (`https://cdn.jsdelivr.net/npm/@callembed/elements`).
48
48
 
49
49
  ## Attributes
50
50
 
@@ -72,6 +72,10 @@ Programmatic API on the element: `start()`, `end()`, `setMuted(boolean)`.
72
72
 
73
73
  Disconnect or changing `publishable-key` / `api-base-url` hangs up any active/ringing call.
74
74
 
75
+ ## Hosted iframe
76
+
77
+ Prefer mounting `<callembed-button>` on your own origin. If you use the hosted iframe instead, the default URL is `https://callembed-embed.onrender.com/embed.html` (`DEFAULT_HOSTED_EMBED_URL` re-exported from `@callembed/sdk`). Legacy `app.*` / `callembed-web` iframe URLs are blocked by DENY — see [docs/iframe.md](../../docs/iframe.md).
78
+
75
79
  ## SSR
76
80
 
77
81
  Importing the package is safe under Node / Nuxt: `customElements.define` is guarded when `customElements` is undefined.