@bravophone/webphone 0.2.0 → 0.2.1
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 +15 -2
- package/dist/bravophone.mjs +320 -274
- package/dist/bravophone.umd.js +33 -10
- package/host/popup.js +1 -1
- package/host/styles/theme-fixes.css +10 -4
- package/package.json +1 -1
- package/types/index.d.ts +9 -1
package/README.md
CHANGED
|
@@ -330,6 +330,15 @@ um major não quebre a página deles.
|
|
|
330
330
|
|
|
331
331
|
---
|
|
332
332
|
|
|
333
|
+
## Documentação
|
|
334
|
+
|
|
335
|
+
| Documento | Para quem |
|
|
336
|
+
|---|---|
|
|
337
|
+
| [`docs/api.html`](docs/api.html) | Referência completa da API — abra no navegador |
|
|
338
|
+
| [`docs/PARA-IA.md`](docs/PARA-IA.md) | Contexto para um agente de IA implementar a integração |
|
|
339
|
+
| [`examples/integracao.html`](examples/integracao.html) | Exemplo pronto para colar numa página |
|
|
340
|
+
| [`examples/loader.js`](examples/loader.js) | Carregar o SDK por JavaScript (SPA, Tag Manager) |
|
|
341
|
+
|
|
333
342
|
## API
|
|
334
343
|
|
|
335
344
|
### `Bravophone.init(options)`
|
|
@@ -502,8 +511,12 @@ const off = Bravophone.on('call:incoming', (call) => { /* … */ })
|
|
|
502
511
|
off() // remove o listener
|
|
503
512
|
```
|
|
504
513
|
|
|
505
|
-
`ready` · `state` · `call:
|
|
506
|
-
`
|
|
514
|
+
`ready` · `state` · `call:dialing` · `call:incoming` · `call:answered` ·
|
|
515
|
+
`call:ended` · `resize` · `reveal` · `open` · `close` · `error`.
|
|
516
|
+
Use `'*'` para receber todos como `{ event, payload }`.
|
|
517
|
+
|
|
518
|
+
Uma chamada que não completa chega como `call:ended`: o estado do bundle não
|
|
519
|
+
distingue desligar de falhar.
|
|
507
520
|
|
|
508
521
|
---
|
|
509
522
|
|