hanc-webrtc-widgets 2.0.0 → 2.0.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 CHANGED
@@ -153,6 +153,15 @@ An “inline” widget that you embed directly in page content (often as a hero
153
153
  | `agent-id` (required) | string | Agent ID for Twilio calls |
154
154
  | `button-start-text` | string | Custom start button text (default: `Start Call with ai`) |
155
155
  | `button-connecting-text` | string | Custom connecting button text (default: `Connecting...`) |
156
+ | `button-end-text` | string | End button text (default: `End call`) |
157
+ | `hide-button` | bool | Hide the button (orb click still toggles the call) |
158
+ | `button-position` | string | Button placement: `top` or `bottom` |
159
+ | `orb-color` | string | Base orb color in idle state |
160
+ | `active-orb-color` | string | Orb color applied when the call becomes active |
161
+ | `button-color` | string | Base button color (also used to derive hover/active) |
162
+ | `button-hover-color` | string | Button hover color override |
163
+ | `button-active-color` | string | Button active color override |
164
+ | `button-text-color` | string | Button text color |
156
165
 
157
166
  #### Available Events:
158
167
 
@@ -205,11 +214,11 @@ Below are the new properties and examples you can add to the widgets.
205
214
 
206
215
  ### Theme and visual style
207
216
 
208
- Themes: `liquid-purple` (default), `liquid-cyan`, `liquid-pink`, `neural-green`,
209
- `neural-blue`, `orbit-blue`, `synaptic-purple`, `minimal-dark`, `minimal-light`, `custom`.
217
+ Themes: `liquid-purple` , `liquid-cyan`, `liquid-pink`, `neural-green`,
218
+ `neural-blue`(default), `orbit-blue`, `synaptic-purple`, `minimal-dark`, `minimal-light`, `custom`.
210
219
 
211
- Visual styles: `liquid-glass` (default), `liquid-glass-premium`, `neural-liquid`,
212
- `neural-orbit`, `neural-network`, `synaptic-core`, `organic-sphere`, `morphing-blob`.
220
+ Visual styles: `liquid-glass` , `liquid-glass-premium`, `neural-liquid`,
221
+ `neural-orbit`, `neural-network`(default), `synaptic-core`, `organic-sphere`, `morphing-blob`.
213
222
 
214
223
  ```html
215
224
  <hanc-ai-inline-call
@@ -227,6 +236,14 @@ Visual styles: `liquid-glass` (default), `liquid-glass-premium`, `neural-liquid`
227
236
  - `visual-style`
228
237
  - `orb-size`
229
238
  - `button-end-text`
239
+ - `hide-button`
240
+ - `button-position`
241
+ - `orb-color`
242
+ - `active-orb-color`
243
+ - `button-color`
244
+ - `button-hover-color`
245
+ - `button-active-color`
246
+ - `button-text-color`
230
247
 
231
248
  ```html
232
249
  <hanc-ai-inline-call
@@ -248,6 +265,14 @@ Visual styles: `liquid-glass` (default), `liquid-glass-premium`, `neural-liquid`
248
265
  - `offset-x`
249
266
  - `offset-y`
250
267
  - `orb-size`
268
+ - `hide-button`
269
+ - `button-position`
270
+ - `orb-color`
271
+ - `active-orb-color`
272
+ - `button-color`
273
+ - `button-hover-color`
274
+ - `button-active-color`
275
+ - `button-text-color`
251
276
  - `minimized`
252
277
 
253
278
  ```html
@@ -276,15 +301,90 @@ hanc-ai-inline-call {
276
301
  --hanc-button-shadow: rgba(14, 165, 233, 0.35);
277
302
  --hanc-button-shadow-hover: rgba(14, 165, 233, 0.45);
278
303
  --hanc-button-shadow-active: rgba(239, 68, 68, 0.45);
304
+ --hanc-orb-active-glow: rgba(14, 165, 233, 0.35);
305
+ --hanc-orb-z-index: 10000;
306
+ --hanc-widget-z-index: 9999;
279
307
  }
280
308
 
281
309
  hanc-ai-floating-call {
282
310
  --hanc-background: rgba(10, 10, 20, 0.9);
283
311
  --hanc-glow-shadow: rgba(14, 165, 233, 0.2);
284
312
  --hanc-orb-size: 140px;
313
+ --hanc-orb-active-glow: rgba(14, 165, 233, 0.35);
314
+ --hanc-orb-z-index: 10000;
315
+ --hanc-widget-z-index: 9999;
285
316
  }
286
317
  ```
287
318
 
319
+ #### Custom theme examples
320
+
321
+ Tip: set `theme="custom"` and override only the variables you need. All other values fall back to defaults.
322
+
323
+ ```html
324
+ <hanc-ai-inline-call
325
+ agent-id="YOUR_AGENT_ID"
326
+ theme="custom"
327
+ visual-style="neural-network"
328
+ active-orb-color="#22c55e"
329
+ ></hanc-ai-inline-call>
330
+
331
+ <style>
332
+ hanc-ai-inline-call {
333
+ --hanc-background: rgba(10, 15, 20, 0.8);
334
+ --hanc-orb-size: 220px;
335
+ --hanc-button: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
336
+ --hanc-button-hover: linear-gradient(135deg, #0284c7 0%, #16a34a 100%);
337
+ --hanc-button-active: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
338
+ --hanc-button-text: #ffffff;
339
+ --hanc-orb-active-glow: rgba(34, 197, 94, 0.4);
340
+ }
341
+ </style>
342
+ ```
343
+
344
+ ```html
345
+ <hanc-ai-inline-call
346
+ agent-id="YOUR_AGENT_ID"
347
+ theme="custom"
348
+ visual-style="neural-orbit"
349
+ button-position="top"
350
+ ></hanc-ai-inline-call>
351
+
352
+ <style>
353
+ hanc-ai-inline-call {
354
+ --hanc-orb-size: 260px;
355
+ --hanc-button-radius: 999px;
356
+ --hanc-button: linear-gradient(135deg, #111827 0%, #374151 100%);
357
+ --hanc-button-hover: linear-gradient(135deg, #1f2937 0%, #111827 100%);
358
+ --hanc-button-active: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
359
+ --hanc-button-text: #f9fafb;
360
+ --hanc-orb-active-glow: rgba(59, 130, 246, 0.35);
361
+ }
362
+ </style>
363
+ ```
364
+
365
+ ```html
366
+ <hanc-ai-floating-call
367
+ agent-id="YOUR_AGENT_ID"
368
+ theme="custom"
369
+ position="top-right"
370
+ button-position="top"
371
+ active-orb-color="#f97316"
372
+ ></hanc-ai-floating-call>
373
+
374
+ <style>
375
+ hanc-ai-floating-call {
376
+ --hanc-background: rgba(255, 255, 255, 0.92);
377
+ --hanc-text: rgba(24, 24, 27, 0.8);
378
+ --hanc-glow-shadow: rgba(249, 115, 22, 0.2);
379
+ --hanc-orb-size: 120px;
380
+ --hanc-button: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
381
+ --hanc-button-hover: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
382
+ --hanc-button-active: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
383
+ --hanc-button-text: #ffffff;
384
+ }
385
+ </style>
386
+ ```
387
+
288
388
  ---
289
389
 
290
390
  ### `<hanc-ai-floating-call>`
@@ -301,6 +401,14 @@ A persistent, docked widget that floats in the corner and launches the same voic
301
401
  | `button-start-text` | string | Start button text (default: `Start Call with ai`) |
302
402
  | `button-connecting-text` | string | Custom connecting button text (default: `Connecting...`) |
303
403
  | `button-end-text` | string | End button text (default: `End call`) |
404
+ | `hide-button` | bool | Hide the button (orb click still toggles the call) |
405
+ | `button-position` | string | Button placement: `top` or `bottom` |
406
+ | `orb-color` | string | Base orb color in idle state |
407
+ | `active-orb-color` | string | Orb color applied when the call becomes active |
408
+ | `button-color` | string | Base button color (also used to derive hover/active) |
409
+ | `button-hover-color` | string | Button hover color override |
410
+ | `button-active-color` | string | Button active color override |
411
+ | `button-text-color` | string | Button text color |
304
412
 
305
413
  #### Available Events:
306
414