@thisispamela/react 1.0.1 → 1.0.3

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.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import React, { createContext, useMemo, useContext, useState, useEffect } from 'react';
1
+ import React, { createContext, useMemo, useContext, useState, useRef, useEffect } from 'react';
2
2
  import { PamelaClient } from '@thisispamela/sdk';
3
3
 
4
4
  function styleInject(css, ref) {
@@ -28,7 +28,7 @@ function styleInject(css, ref) {
28
28
  }
29
29
  }
30
30
 
31
- var css_248z = "/**\n * Pamela Enterprise React Component Library - Default Styles\n *\n * These styles align with the Pamela app design schema.\n * If the host app already defines these CSS variables, its values will win.\n */\n\n:root {\n --accent: #F27A1A;\n --accent-2: #F06C4F;\n --accent-3: #F3A84C;\n --accent-gradient: linear-gradient(90deg, var(--accent), var(--accent-2));\n --bg-gradient: linear-gradient(135deg, #F5F0E8 0%, #F3EEE8 45%, #EFE8DF 100%);\n --bg-glow: radial-gradient(1200px circle at 10% 20%, rgba(250, 147, 28, 0.1), transparent 58%),\n radial-gradient(900px circle at 80% 10%, rgba(253, 139, 116, 0.1), transparent 62%),\n radial-gradient(800px circle at 70% 80%, rgba(251, 193, 107, 0.08), transparent 60%);\n --surface: rgba(255, 255, 255, 0.5);\n --surface-strong: rgba(255, 255, 255, 0.78);\n --surface-border: rgba(231, 171, 132, 0.24);\n --surface-border-strong: rgba(255, 255, 255, 0.75);\n --surface-highlight: rgba(255, 255, 255, 0.68);\n --surface-liquid: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.38));\n --surface-liquid-strong: linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.5));\n --liquid-shadow: 0 18px 42px rgba(28, 25, 17, 0.14);\n --liquid-glow: 0 0 32px rgba(250, 147, 28, 0.2);\n --shadow-soft: 0 12px 26px rgba(28, 25, 17, 0.1);\n --shadow-hover: 0 24px 44px rgba(28, 25, 17, 0.18);\n --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);\n --cta-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(250, 147, 28, 0.32));\n --cta-border: 1px solid rgba(250, 147, 28, 0.4);\n --cta-glow: 0 0 18px rgba(250, 147, 28, 0.28);\n --cta-glow-hover: 0 0 22px rgba(250, 147, 28, 0.36);\n --danger-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(239, 68, 68, 0.3));\n --danger-border: 1px solid rgba(239, 68, 68, 0.45);\n --danger-glow: 0 0 16px rgba(239, 68, 68, 0.3);\n --danger-glow-hover: 0 0 20px rgba(239, 68, 68, 0.4);\n --radius-sm: 0.5rem;\n --radius-md: 0.75rem;\n --radius-lg: 1rem;\n --radius-xl: 1.5rem;\n --text-primary: #1C1917;\n --text-secondary: rgba(28, 25, 17, 0.78);\n --text-muted: rgba(28, 25, 17, 0.55);\n --status-success: #10b981;\n --status-warning: #eab308;\n --status-muted: #d1d5db;\n --status-error: #ef4444;\n --bubble-user: #FA931C;\n --bubble-pamela: #ffffff;\n --bubble-recipient: #4b4bea;\n --bubble-border: rgba(231, 171, 132, 0.3);\n}\n\n.dark {\n --bg-gradient: linear-gradient(135deg, #171513 0%, #14110f 45%, #0f0d0b 100%);\n --bg-glow: radial-gradient(1100px circle at 20% 10%, rgba(250, 147, 28, 0.18), transparent 60%),\n radial-gradient(900px circle at 80% 20%, rgba(253, 139, 116, 0.16), transparent 60%),\n radial-gradient(700px circle at 60% 80%, rgba(251, 193, 107, 0.12), transparent 55%);\n --surface: rgba(255, 255, 255, 0.08);\n --surface-strong: rgba(255, 255, 255, 0.16);\n --surface-border: rgba(255, 255, 255, 0.18);\n --surface-border-strong: rgba(255, 255, 255, 0.36);\n --surface-highlight: rgba(255, 255, 255, 0.2);\n --surface-liquid: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));\n --surface-liquid-strong: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));\n --liquid-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);\n --liquid-glow: 0 0 30px rgba(250, 147, 28, 0.24);\n --shadow-soft: 0 16px 32px rgba(0, 0, 0, 0.5);\n --shadow-hover: 0 26px 44px rgba(0, 0, 0, 0.7);\n --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.12);\n --cta-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(250, 147, 28, 0.34));\n --cta-border: 1px solid rgba(250, 147, 28, 0.5);\n --cta-glow: 0 0 16px rgba(250, 147, 28, 0.26);\n --cta-glow-hover: 0 0 20px rgba(250, 147, 28, 0.32);\n --danger-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(239, 68, 68, 0.32));\n --danger-border: 1px solid rgba(248, 113, 113, 0.55);\n --danger-glow: 0 0 18px rgba(239, 68, 68, 0.32);\n --danger-glow-hover: 0 0 22px rgba(239, 68, 68, 0.4);\n --text-primary: rgba(255, 255, 255, 0.95);\n --text-secondary: rgba(255, 255, 255, 0.72);\n --text-muted: rgba(255, 255, 255, 0.5);\n --bubble-pamela: rgba(255, 255, 255, 0.12);\n --bubble-border: rgba(255, 255, 255, 0.2);\n}\n\n/* Pulse animation for status indicators */\n@keyframes pamela-pulse {\n 0%, 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n}\n\n/* Call Button - matches your gradient style */\n.pamela-call-button {\n font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;\n background: var(--accent-gradient);\n color: var(--text-primary);\n border: var(--cta-border);\n border-radius: var(--radius-md);\n font-weight: 600;\n transition: opacity 0.2s;\n box-shadow: var(--shadow-soft), var(--cta-glow);\n padding: 10px 20px;\n font-size: 16px;\n cursor: pointer;\n}\n\n.pamela-call-button:hover:not(:disabled) {\n opacity: 0.9;\n}\n\n.pamela-call-button:disabled {\n opacity: 0.7;\n cursor: not-allowed;\n background: linear-gradient(to right, #cfcfcf, #b6b6b6);\n border: 1px solid rgba(0, 0, 0, 0.08);\n box-shadow: none;\n}\n\n/* Call Status - matches your card style */\n.pamela-call-status {\n font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;\n}\n\n/* Transcript Viewer - matches your message bubble style */\n.pamela-transcript-viewer {\n font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;\n}\n\n.pamela-card {\n background: var(--surface-liquid-strong);\n border: 1px solid var(--surface-border-strong);\n border-radius: var(--radius-lg);\n box-shadow: var(--shadow-soft), var(--liquid-glow);\n}\n\n.pamela-panel {\n background: var(--surface-liquid);\n border: 1px solid var(--surface-border-strong);\n border-radius: var(--radius-xl);\n box-shadow: var(--liquid-shadow), var(--liquid-glow);\n}\n\n.pamela-chip {\n background: var(--surface-liquid);\n border: 1px solid var(--surface-border-strong);\n border-radius: 999px;\n padding: 0.25rem 0.6rem;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--text-secondary);\n box-shadow: var(--shadow-inset);\n}\n\n.pamela-transcript-container {\n background: var(--surface);\n border-radius: var(--radius-md);\n padding: 16px;\n}\n\n.pamela-transcript-bubble {\n border-radius: var(--radius-md);\n padding: 12px 16px;\n}\n\n.pamela-transcript-bubble--pamela {\n background: var(--bubble-pamela);\n border: 1px solid var(--bubble-border);\n color: var(--text-primary);\n}\n\n.pamela-transcript-bubble--user {\n background: var(--bubble-user);\n color: #ffffff;\n}\n\n.pamela-transcript-bubble--recipient {\n background: var(--bubble-recipient);\n color: #ffffff;\n}\n\n/* Dark mode support */\n@media (prefers-color-scheme: dark) {\n .pamela-call-status {\n color: #ffffff;\n }\n \n .pamela-transcript-viewer {\n color: #ffffff;\n }\n}\n\n";
31
+ var css_248z = "/**\n * Pamela Enterprise React Component Library - Default Styles\n *\n * These styles align with the Pamela app design schema.\n * If the host app already defines these CSS variables, its values will win.\n */\n\n:root {\n --accent: #F27A1A;\n --accent-2: #F06C4F;\n --accent-3: #F3A84C;\n --accent-gradient: linear-gradient(90deg, var(--accent), var(--accent-2));\n --bg-gradient: linear-gradient(135deg, #F5F0E8 0%, #F3EEE8 45%, #EFE8DF 100%);\n --bg-glow: radial-gradient(1200px circle at 10% 20%, rgba(250, 147, 28, 0.1), transparent 58%),\n radial-gradient(900px circle at 80% 10%, rgba(253, 139, 116, 0.1), transparent 62%),\n radial-gradient(800px circle at 70% 80%, rgba(251, 193, 107, 0.08), transparent 60%);\n --surface: rgba(255, 255, 255, 0.5);\n --surface-strong: rgba(255, 255, 255, 0.78);\n --surface-border: rgba(231, 171, 132, 0.24);\n --surface-border-strong: rgba(255, 255, 255, 0.75);\n --surface-highlight: rgba(255, 255, 255, 0.68);\n --surface-liquid: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.38));\n --surface-liquid-strong: linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.5));\n --liquid-highlight: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 45%);\n --liquid-shadow: 0 18px 42px rgba(28, 25, 17, 0.14);\n --liquid-glow: 0 0 32px rgba(250, 147, 28, 0.2);\n --shadow-soft: 0 12px 26px rgba(28, 25, 17, 0.1);\n --shadow-hover: 0 24px 44px rgba(28, 25, 17, 0.18);\n --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);\n --cta-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(250, 147, 28, 0.32));\n --cta-border: 1px solid rgba(250, 147, 28, 0.4);\n --cta-glow: 0 0 18px rgba(250, 147, 28, 0.28);\n --cta-glow-hover: 0 0 22px rgba(250, 147, 28, 0.36);\n --danger-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(239, 68, 68, 0.3));\n --danger-border: 1px solid rgba(239, 68, 68, 0.45);\n --danger-glow: 0 0 16px rgba(239, 68, 68, 0.3);\n --danger-glow-hover: 0 0 20px rgba(239, 68, 68, 0.4);\n --badge-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(250, 147, 28, 0.28));\n --badge-border: 1px solid rgba(250, 147, 28, 0.4);\n --badge-glow: 0 0 14px rgba(250, 147, 28, 0.24);\n --avatar-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(250, 147, 28, 0.38), rgba(253, 139, 116, 0.32));\n --avatar-border: 1px solid rgba(250, 147, 28, 0.35);\n --avatar-glow: 0 0 20px rgba(250, 147, 28, 0.28);\n --glass-blur: 24px;\n --glass-blur-strong: 32px;\n --noise-opacity: 0.05;\n --focus-ring: 0 0 0 3px rgba(250, 147, 28, 0.28);\n --radius-sm: 0.5rem;\n --radius-md: 0.75rem;\n --radius-lg: 1rem;\n --radius-xl: 1.5rem;\n --text-primary: #1C1917;\n --text-secondary: rgba(28, 25, 17, 0.78);\n --text-muted: rgba(28, 25, 17, 0.55);\n --status-success: #10b981;\n --status-warning: #eab308;\n --status-muted: #d1d5db;\n --status-error: #ef4444;\n --bubble-user: #FA931C;\n --bubble-pamela: #ffffff;\n --bubble-recipient: #4b4bea;\n --bubble-border: rgba(231, 171, 132, 0.3);\n}\n\n.dark {\n --bg-gradient: linear-gradient(135deg, #171513 0%, #14110f 45%, #0f0d0b 100%);\n --bg-glow: radial-gradient(1100px circle at 20% 10%, rgba(250, 147, 28, 0.18), transparent 60%),\n radial-gradient(900px circle at 80% 20%, rgba(253, 139, 116, 0.16), transparent 60%),\n radial-gradient(700px circle at 60% 80%, rgba(251, 193, 107, 0.12), transparent 55%);\n --surface: rgba(255, 255, 255, 0.08);\n --surface-strong: rgba(255, 255, 255, 0.16);\n --surface-border: rgba(255, 255, 255, 0.18);\n --surface-border-strong: rgba(255, 255, 255, 0.36);\n --surface-highlight: rgba(255, 255, 255, 0.2);\n --surface-liquid: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));\n --surface-liquid-strong: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));\n --liquid-highlight: linear-gradient(120deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 45%);\n --liquid-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);\n --liquid-glow: 0 0 30px rgba(250, 147, 28, 0.24);\n --shadow-soft: 0 16px 32px rgba(0, 0, 0, 0.5);\n --shadow-hover: 0 26px 44px rgba(0, 0, 0, 0.7);\n --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.12);\n --cta-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(250, 147, 28, 0.34));\n --cta-border: 1px solid rgba(250, 147, 28, 0.5);\n --cta-glow: 0 0 16px rgba(250, 147, 28, 0.26);\n --cta-glow-hover: 0 0 20px rgba(250, 147, 28, 0.32);\n --danger-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(239, 68, 68, 0.32));\n --danger-border: 1px solid rgba(248, 113, 113, 0.55);\n --danger-glow: 0 0 18px rgba(239, 68, 68, 0.32);\n --danger-glow-hover: 0 0 22px rgba(239, 68, 68, 0.4);\n --badge-bg: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(250, 147, 28, 0.32));\n --badge-border: 1px solid rgba(250, 147, 28, 0.5);\n --badge-glow: 0 0 14px rgba(250, 147, 28, 0.22);\n --avatar-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(250, 147, 28, 0.26), rgba(253, 139, 116, 0.24));\n --avatar-border: 1px solid rgba(255, 255, 255, 0.18);\n --avatar-glow: 0 0 18px rgba(250, 147, 28, 0.22);\n --glass-blur: 24px;\n --glass-blur-strong: 32px;\n --noise-opacity: 0.08;\n --focus-ring: 0 0 0 3px rgba(250, 147, 28, 0.35);\n --text-primary: rgba(255, 255, 255, 0.95);\n --text-secondary: rgba(255, 255, 255, 0.72);\n --text-muted: rgba(255, 255, 255, 0.5);\n --bubble-pamela: rgba(255, 255, 255, 0.12);\n --bubble-border: rgba(255, 255, 255, 0.2);\n}\n\n/* Pulse animation for status indicators */\n@keyframes pamela-pulse {\n 0%, 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n}\n\n/* VoiceOrb animations */\n@keyframes shimmer {\n 0% {\n transform: translateX(-100%) translateY(-100%) rotate(45deg);\n }\n 100% {\n transform: translateX(100%) translateY(100%) rotate(45deg);\n }\n}\n\n@keyframes ripple {\n 0% {\n transform: scale(1);\n opacity: 0.6;\n }\n 50% {\n transform: scale(2);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 0.6;\n }\n}\n\n@keyframes float {\n 0%, 100% {\n transform: translateY(0px);\n }\n 50% {\n transform: translateY(-10px);\n }\n}\n\n/* Call Button - matches your gradient style */\n.pamela-call-button {\n font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;\n background: var(--accent-gradient);\n color: var(--text-primary);\n border: var(--cta-border);\n border-radius: var(--radius-md);\n font-weight: 600;\n transition: opacity 0.2s;\n box-shadow: var(--shadow-soft), var(--cta-glow);\n padding: 10px 20px;\n font-size: 16px;\n cursor: pointer;\n}\n\n.pamela-call-button--primary {\n background: var(--accent-gradient);\n}\n\n.pamela-call-button--secondary {\n background: var(--surface-liquid);\n border: 1px solid var(--surface-border-strong);\n box-shadow: var(--shadow-soft), var(--liquid-glow);\n}\n\n.pamela-call-button--danger {\n background: var(--danger-bg);\n border: var(--danger-border);\n color: #b91c1c;\n box-shadow: var(--shadow-soft), var(--danger-glow);\n}\n\n.pamela-call-button--sm {\n padding: 6px 12px;\n font-size: 14px;\n}\n\n.pamela-call-button--md {\n padding: 10px 20px;\n font-size: 16px;\n}\n\n.pamela-call-button--lg {\n padding: 12px 24px;\n font-size: 18px;\n}\n\n.pamela-call-button:hover:not(:disabled) {\n opacity: 0.9;\n}\n\n.pamela-call-button:disabled {\n opacity: 0.7;\n cursor: not-allowed;\n background: linear-gradient(to right, #cfcfcf, #b6b6b6);\n border: 1px solid rgba(0, 0, 0, 0.08);\n box-shadow: none;\n}\n\n/* Call Status - matches your card style */\n.pamela-call-status {\n font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;\n}\n\n/* Transcript Viewer - matches your message bubble style */\n.pamela-transcript-viewer {\n font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;\n}\n\n.pamela-card {\n background: var(--surface-liquid-strong);\n border: 1px solid var(--surface-border-strong);\n border-radius: var(--radius-lg);\n box-shadow: var(--shadow-soft), var(--liquid-glow);\n}\n\n.pamela-panel {\n background: var(--surface-liquid);\n border: 1px solid var(--surface-border-strong);\n border-radius: var(--radius-xl);\n box-shadow: var(--liquid-shadow), var(--liquid-glow);\n}\n\n.pamela-chip {\n background: var(--surface-liquid);\n border: 1px solid var(--surface-border-strong);\n border-radius: 999px;\n padding: 0.25rem 0.6rem;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--text-secondary);\n box-shadow: var(--shadow-inset);\n}\n\n.pamela-transcript-container {\n background: var(--surface);\n border-radius: var(--radius-md);\n padding: 16px;\n}\n\n.pamela-transcript-bubble {\n border-radius: var(--radius-md);\n padding: 12px 16px;\n}\n\n.pamela-transcript-bubble--pamela {\n background: var(--bubble-pamela);\n border: 1px solid var(--bubble-border);\n color: var(--text-primary);\n}\n\n.pamela-transcript-bubble--user {\n background: var(--bubble-user);\n color: #ffffff;\n}\n\n.pamela-transcript-bubble--recipient {\n background: var(--bubble-recipient);\n color: #ffffff;\n}\n\n/* Utility classes aligned with Pamela app design */\n.app-gradient {\n background: var(--bg-glow), var(--bg-gradient);\n}\n\n.surface-card {\n background: var(--surface-strong);\n border: 1px solid var(--surface-border);\n box-shadow: var(--shadow-soft);\n backdrop-filter: blur(12px);\n -webkit-backdrop-filter: blur(12px);\n}\n\n.surface-card-hover {\n transition: box-shadow 180ms ease, transform 180ms ease;\n}\n\n.surface-card-hover:hover {\n box-shadow: var(--shadow-hover);\n}\n\n.accent-card {\n background: linear-gradient(90deg, rgba(250, 147, 28, 0.12), rgba(253, 139, 116, 0.12));\n border: 1px solid rgba(250, 147, 28, 0.3);\n box-shadow: var(--shadow-soft);\n}\n\n.dark .accent-card {\n background: linear-gradient(90deg, rgba(250, 147, 28, 0.22), rgba(253, 139, 116, 0.22));\n border-color: rgba(250, 147, 28, 0.35);\n}\n\n.send-button-idle {\n background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));\n border: 1px solid rgba(231, 171, 132, 0.45);\n color: rgba(28, 25, 17, 0.5);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 14px rgba(250, 147, 28, 0.18);\n}\n\n.dark .send-button-idle {\n background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));\n border-color: rgba(255, 255, 255, 0.22);\n color: rgba(255, 255, 255, 0.6);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 16px rgba(250, 147, 28, 0.22);\n}\n\n.send-button-gradient {\n background: linear-gradient(120deg, rgba(250, 147, 28, 0.9), rgba(253, 139, 116, 0.9));\n border: 1px solid rgba(255, 255, 255, 0.45);\n box-shadow: 0 0 16px rgba(250, 147, 28, 0.32);\n}\n\n.send-button-gradient:hover,\n.send-button-gradient:focus-visible {\n box-shadow: 0 0 18px rgba(250, 147, 28, 0.36);\n}\n\n.transcript-bubble {\n box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12), 0 0 10px rgba(250, 147, 28, 0.14);\n transition: box-shadow 180ms ease;\n}\n\n.transcript-bubble:hover,\n.transcript-bubble:focus-visible {\n box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12), 0 0 10px rgba(250, 147, 28, 0.14);\n}\n\n.btn-primary {\n background: var(--cta-bg);\n border: var(--cta-border);\n color: var(--text-primary);\n font-weight: 600;\n border-radius: var(--radius-md);\n box-shadow: var(--shadow-soft), var(--cta-glow);\n backdrop-filter: blur(10px);\n -webkit-backdrop-filter: blur(10px);\n transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;\n}\n\n.btn-primary:hover {\n box-shadow: var(--shadow-hover), var(--cta-glow-hover);\n opacity: 0.96;\n}\n\n.btn-primary:active {\n transform: scale(0.98);\n}\n\n.btn-danger {\n background: var(--danger-bg);\n border: var(--danger-border);\n color: #b91c1c;\n box-shadow: var(--shadow-soft), var(--danger-glow);\n backdrop-filter: blur(10px);\n -webkit-backdrop-filter: blur(10px);\n transition: box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;\n}\n\n.dark .btn-danger {\n color: #fca5a5;\n}\n\n.btn-danger:hover {\n box-shadow: var(--danger-glow-hover);\n}\n\n.badge-pill {\n background: var(--badge-bg);\n border: var(--badge-border);\n border-radius: 999px;\n padding: 0.25rem 0.6rem;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--text-secondary);\n box-shadow: var(--shadow-inset), var(--badge-glow);\n}\n\n.badge-accent {\n background: rgba(250, 147, 28, 0.15);\n color: rgba(250, 147, 28, 0.95);\n}\n\n.dark .badge-accent {\n background: rgba(250, 147, 28, 0.25);\n color: rgba(253, 139, 116, 0.95);\n}\n\n.h1 {\n font-size: 1.875rem;\n line-height: 2.25rem;\n font-weight: 700;\n}\n\n.h2 {\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 600;\n}\n\n.h3 {\n font-size: 1.125rem;\n line-height: 1.75rem;\n font-weight: 600;\n}\n\n.body {\n font-size: 0.95rem;\n line-height: 1.5rem;\n}\n\n.meta {\n font-size: 0.75rem;\n line-height: 1.125rem;\n color: rgba(28, 25, 17, 0.6);\n}\n\n.dark .meta {\n color: rgba(255, 255, 255, 0.6);\n}\n\n.input-base {\n background: rgba(255, 255, 255, 0.86);\n border: 1px solid rgba(231, 171, 132, 0.28);\n border-radius: var(--radius-lg);\n padding: 0.75rem 1rem;\n color: #1C1917;\n transition: box-shadow 150ms ease, border-color 150ms ease;\n}\n\n.dark .input-base {\n background: rgba(255, 255, 255, 0.1);\n color: #ffffff;\n}\n\n.input-base:focus {\n outline: none;\n border-color: rgba(250, 147, 28, 0.6);\n box-shadow: var(--focus-ring);\n}\n\n.panel {\n position: relative;\n background: var(--surface-liquid);\n border: 1px solid var(--surface-border-strong);\n border-radius: var(--radius-xl);\n box-shadow: var(--liquid-shadow), var(--liquid-glow);\n backdrop-filter: blur(var(--glass-blur-strong));\n -webkit-backdrop-filter: blur(var(--glass-blur-strong));\n overflow: hidden;\n}\n\n.card {\n position: relative;\n background: var(--surface-liquid-strong);\n border: 1px solid var(--surface-border-strong);\n border-radius: var(--radius-lg);\n box-shadow: var(--shadow-soft), var(--liquid-glow);\n backdrop-filter: blur(var(--glass-blur));\n -webkit-backdrop-filter: blur(var(--glass-blur));\n overflow: hidden;\n}\n\n.card-hover {\n transition: box-shadow 180ms ease, transform 180ms ease;\n}\n\n.card-hover:hover {\n box-shadow: var(--shadow-hover), var(--liquid-glow);\n transform: translateY(-2px);\n}\n\n.chip {\n background: var(--surface-liquid);\n border: 1px solid var(--surface-border-strong);\n border-radius: 999px;\n padding: 0.25rem 0.6rem;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--text-secondary);\n box-shadow: var(--shadow-inset);\n}\n\n.input-field {\n position: relative;\n background: var(--surface-liquid-strong);\n border: 1px solid var(--surface-border-strong);\n border-radius: var(--radius-lg);\n padding: 0.75rem 1rem;\n color: var(--text-primary);\n box-shadow: var(--shadow-inset), var(--liquid-glow);\n transition: box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;\n}\n\n.input-field:focus {\n outline: none;\n border-color: rgba(250, 147, 28, 0.6);\n box-shadow: var(--focus-ring), var(--liquid-glow);\n transform: translateY(-1px);\n}\n\n.btn-secondary {\n border-radius: var(--radius-md);\n border: 1px solid var(--surface-border-strong);\n background: var(--surface-liquid);\n color: var(--text-primary);\n box-shadow: var(--shadow-soft), var(--liquid-glow);\n transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;\n}\n\n.btn-secondary:hover {\n box-shadow: var(--shadow-hover), var(--liquid-glow);\n}\n\n.btn-secondary:active {\n transform: scale(0.98);\n}\n\n.tooltip-panel {\n background: var(--surface-liquid-strong);\n border: 1px solid var(--surface-border-strong);\n color: var(--text-primary);\n box-shadow: var(--shadow-soft), 0 12px 24px rgba(28, 25, 17, 0.16);\n backdrop-filter: blur(calc(var(--glass-blur) * 0.9));\n -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.9));\n}\n\n.tooltip-arrow {\n background: var(--surface-liquid-strong);\n border: 1px solid var(--surface-border-strong);\n}\n\n::where(.panel, .card) {\n isolation: isolate;\n}\n\n::where(.panel, .card) > * {\n position: relative;\n z-index: 1;\n}\n\n::where(.panel, .card)::before {\n content: \"\";\n position: absolute;\n inset: 0;\n background: var(--liquid-highlight);\n opacity: 0.6;\n pointer-events: none;\n z-index: 0;\n}\n\n::where(.panel, .card)::after {\n content: \"\";\n position: absolute;\n inset: 0;\n background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.5px, transparent 0.5px);\n background-size: 4px 4px;\n opacity: var(--noise-opacity);\n pointer-events: none;\n z-index: 0;\n}\n\n.avatar {\n background: var(--avatar-bg);\n border: var(--avatar-border);\n box-shadow: var(--shadow-soft), var(--avatar-glow);\n backdrop-filter: blur(12px);\n -webkit-backdrop-filter: blur(12px);\n}\n\n.conversations-scroll::-webkit-scrollbar,\n.chat-scroll::-webkit-scrollbar {\n width: 6px;\n}\n\n.conversations-scroll::-webkit-scrollbar-track,\n.chat-scroll::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.conversations-scroll::-webkit-scrollbar-thumb,\n.chat-scroll::-webkit-scrollbar-thumb {\n background: rgba(230, 171, 132, 0.3);\n border-radius: 3px;\n}\n\n.conversations-scroll::-webkit-scrollbar-thumb:hover,\n.chat-scroll::-webkit-scrollbar-thumb:hover {\n background: rgba(230, 171, 132, 0.5);\n}\n\n.conversations-scroll,\n.chat-scroll {\n scrollbar-width: thin;\n scrollbar-color: rgba(230, 171, 132, 0.3) transparent;\n}\n\n.touch-manipulation {\n touch-action: manipulation;\n}\n\n/* Dark mode support */\n@media (prefers-color-scheme: dark) {\n .pamela-call-status {\n color: #ffffff;\n }\n \n .pamela-transcript-viewer {\n color: #ffffff;\n }\n}\n\n";
32
32
  styleInject(css_248z);
33
33
 
34
34
  const PamelaContext = createContext(null);
@@ -47,13 +47,37 @@ function usePamela() {
47
47
  return context;
48
48
  }
49
49
 
50
- function CallButton({ to, task, country, locale, instructions, end_user_id, metadata, tools, webhooks, onCallStart, onCallComplete, onError, disabled = false, className = '', children, }) {
50
+ function CallButton({ to, task, country, locale, instructions, voice, agent_name, caller_name, end_user_id, metadata, tools, webhooks, onCallStart, onCallComplete, onError, variant = 'primary', size = 'md', pollInterval = 2000, pollTimeout = 5 * 60 * 1000, disabled = false, className = '', children, }) {
51
51
  const { client } = usePamela();
52
52
  const [loading, setLoading] = useState(false);
53
53
  const [callId, setCallId] = useState(null);
54
+ const pollIntervalRef = useRef(null);
55
+ const timeoutRef = useRef(null);
56
+ // Cleanup on unmount
57
+ useEffect(() => {
58
+ return () => {
59
+ if (pollIntervalRef.current) {
60
+ clearInterval(pollIntervalRef.current);
61
+ pollIntervalRef.current = null;
62
+ }
63
+ if (timeoutRef.current) {
64
+ clearTimeout(timeoutRef.current);
65
+ timeoutRef.current = null;
66
+ }
67
+ };
68
+ }, []);
54
69
  const handleClick = async () => {
55
70
  if (loading || disabled)
56
71
  return;
72
+ // Clear any existing intervals/timeouts
73
+ if (pollIntervalRef.current) {
74
+ clearInterval(pollIntervalRef.current);
75
+ pollIntervalRef.current = null;
76
+ }
77
+ if (timeoutRef.current) {
78
+ clearTimeout(timeoutRef.current);
79
+ timeoutRef.current = null;
80
+ }
57
81
  setLoading(true);
58
82
  try {
59
83
  const call = await client.createCall({
@@ -62,6 +86,9 @@ function CallButton({ to, task, country, locale, instructions, end_user_id, meta
62
86
  country,
63
87
  locale,
64
88
  instructions,
89
+ voice,
90
+ agent_name,
91
+ caller_name,
65
92
  end_user_id,
66
93
  metadata,
67
94
  tools,
@@ -70,36 +97,69 @@ function CallButton({ to, task, country, locale, instructions, end_user_id, meta
70
97
  setCallId(call.id);
71
98
  onCallStart?.(call.id);
72
99
  // Poll for call completion
73
- const pollInterval = setInterval(async () => {
100
+ pollIntervalRef.current = setInterval(async () => {
74
101
  try {
75
102
  const status = await client.getCall(call.id);
76
103
  if (status.status === 'completed' || status.status === 'failed' || status.status === 'cancelled') {
77
- clearInterval(pollInterval);
104
+ if (pollIntervalRef.current) {
105
+ clearInterval(pollIntervalRef.current);
106
+ pollIntervalRef.current = null;
107
+ }
108
+ if (timeoutRef.current) {
109
+ clearTimeout(timeoutRef.current);
110
+ timeoutRef.current = null;
111
+ }
78
112
  setLoading(false);
79
113
  onCallComplete?.(status);
80
114
  }
81
115
  }
82
116
  catch (error) {
83
- clearInterval(pollInterval);
117
+ if (pollIntervalRef.current) {
118
+ clearInterval(pollIntervalRef.current);
119
+ pollIntervalRef.current = null;
120
+ }
121
+ if (timeoutRef.current) {
122
+ clearTimeout(timeoutRef.current);
123
+ timeoutRef.current = null;
124
+ }
84
125
  setLoading(false);
85
126
  onError?.(error);
86
127
  }
87
- }, 2000);
128
+ }, pollInterval);
88
129
  // Timeout after 5 minutes
89
- setTimeout(() => {
90
- clearInterval(pollInterval);
130
+ timeoutRef.current = setTimeout(() => {
131
+ if (pollIntervalRef.current) {
132
+ clearInterval(pollIntervalRef.current);
133
+ pollIntervalRef.current = null;
134
+ }
91
135
  setLoading(false);
92
- }, 5 * 60 * 1000);
136
+ }, pollTimeout);
93
137
  }
94
138
  catch (error) {
95
139
  setLoading(false);
96
140
  onError?.(error);
97
141
  }
98
142
  };
99
- return (React.createElement("button", { onClick: handleClick, disabled: loading || disabled, className: `pamela-call-button ${className}` }, loading ? 'Calling...' : children || 'Call Now'));
143
+ const variantClass = variant === 'secondary'
144
+ ? 'pamela-call-button--secondary'
145
+ : variant === 'danger'
146
+ ? 'pamela-call-button--danger'
147
+ : 'pamela-call-button--primary';
148
+ const sizeClass = size === 'sm'
149
+ ? 'pamela-call-button--sm'
150
+ : size === 'lg'
151
+ ? 'pamela-call-button--lg'
152
+ : 'pamela-call-button--md';
153
+ return (React.createElement("button", { onClick: handleClick, disabled: loading || disabled, className: `pamela-call-button ${variantClass} ${sizeClass} ${className}` }, loading ? 'Calling...' : children || 'Call Now'));
100
154
  }
101
155
 
102
- function TranscriptViewer({ transcript, className = '' }) {
156
+ function TranscriptViewer({ transcript, maxHeight = 400, autoScroll = true, className = '', }) {
157
+ const containerRef = useRef(null);
158
+ useEffect(() => {
159
+ if (!autoScroll || !containerRef.current)
160
+ return;
161
+ containerRef.current.scrollTop = containerRef.current.scrollHeight;
162
+ }, [autoScroll, transcript]);
103
163
  const getMessageStyle = (speaker) => {
104
164
  if (speaker === 'pamela' || speaker === 'agent') {
105
165
  // Pamela messages: white background with beige border
@@ -139,12 +199,12 @@ function TranscriptViewer({ transcript, className = '' }) {
139
199
  color: 'var(--text-primary, #1f2937)',
140
200
  } }, "Transcript"),
141
201
  React.createElement("div", { className: "pamela-transcript-container", style: {
142
- maxHeight: '400px',
202
+ maxHeight: typeof maxHeight === 'number' ? `${maxHeight}px` : maxHeight,
143
203
  overflowY: 'auto',
144
204
  borderRadius: 'var(--radius-sm, 0.5rem)',
145
205
  padding: '16px',
146
206
  background: 'var(--surface, #F7F4ED)',
147
- } }, transcript.map((entry, index) => {
207
+ }, ref: containerRef }, transcript.map((entry, index) => {
148
208
  const style = getMessageStyle(entry.speaker);
149
209
  const { className: bubbleClassName, ...bubbleStyle } = style;
150
210
  return (React.createElement("div", { key: index, className: bubbleClassName, style: {
@@ -265,10 +325,11 @@ function StatusIndicator({ status }) {
265
325
  fontSize: '12px',
266
326
  fontWeight: '500',
267
327
  color: config.textColor,
328
+ fontStyle: 'italic',
268
329
  fontFamily: 'Poppins, Inter, sans-serif',
269
330
  } }, config.text)));
270
331
  }
271
- function CallStatus({ callId, pollInterval = 5000, onStatusChange, showTranscript = true, className = '', }) {
332
+ function CallStatus({ callId, pollInterval = 5000, onStatusChange, showTranscript = true, showSummary = true, compact = false, className = '', }) {
272
333
  const { client } = usePamela();
273
334
  const [status, setStatus] = useState(null);
274
335
  const [loading, setLoading] = useState(true);
@@ -310,8 +371,8 @@ function CallStatus({ callId, pollInterval = 5000, onStatusChange, showTranscrip
310
371
  fontFamily: 'Poppins, Inter, -apple-system, BlinkMacSystemFont, sans-serif',
311
372
  } },
312
373
  React.createElement("div", { style: {
313
- marginBottom: '16px',
314
- padding: '16px',
374
+ marginBottom: compact ? '8px' : '16px',
375
+ padding: compact ? '12px' : '16px',
315
376
  background: 'var(--surface-liquid-strong, #ffffff)',
316
377
  borderRadius: 'var(--radius-md, 0.75rem)',
317
378
  border: '1px solid var(--surface-border-strong, rgba(231, 171, 132, 0.3))',
@@ -319,24 +380,24 @@ function CallStatus({ callId, pollInterval = 5000, onStatusChange, showTranscrip
319
380
  } },
320
381
  React.createElement("div", { style: { marginBottom: '12px' } },
321
382
  React.createElement(StatusIndicator, { status: status.status })),
322
- React.createElement("div", { style: { fontSize: '14px', color: 'var(--text-primary, #1f2937)', lineHeight: '1.6' } },
323
- React.createElement("div", { style: { marginBottom: '8px' } },
383
+ React.createElement("div", { style: { fontSize: compact ? '12px' : '14px', color: 'var(--text-primary, #1f2937)', lineHeight: '1.6' } },
384
+ React.createElement("div", { style: { marginBottom: compact ? '6px' : '8px' } },
324
385
  React.createElement("span", { style: { fontWeight: '600', color: 'var(--text-secondary, #6b7280)' } }, "To:"),
325
386
  ' ',
326
387
  React.createElement("span", { style: { color: 'var(--text-primary, #1f2937)' } }, status.to)),
327
- React.createElement("div", { style: { marginBottom: '8px' } },
388
+ React.createElement("div", { style: { marginBottom: compact ? '6px' : '8px' } },
328
389
  React.createElement("span", { style: { fontWeight: '600', color: 'var(--text-secondary, #6b7280)' } }, "From:"),
329
390
  ' ',
330
391
  React.createElement("span", { style: { color: 'var(--text-primary, #1f2937)' } }, status.from_)),
331
- status.duration_seconds && (React.createElement("div", { style: { marginBottom: '8px' } },
392
+ status.duration_seconds && !compact && (React.createElement("div", { style: { marginBottom: '8px' } },
332
393
  React.createElement("span", { style: { fontWeight: '600', color: 'var(--text-secondary, #6b7280)' } }, "Duration:"),
333
394
  ' ',
334
395
  React.createElement("span", { style: { color: 'var(--text-primary, #1f2937)' } },
335
396
  status.duration_seconds,
336
397
  "s")))),
337
- status.summary && (React.createElement("div", { style: {
338
- marginTop: '16px',
339
- padding: '16px',
398
+ showSummary && status.summary && (React.createElement("div", { style: {
399
+ marginTop: compact ? '12px' : '16px',
400
+ padding: compact ? '12px' : '16px',
340
401
  background: 'var(--cta-bg, linear-gradient(to right, rgba(250, 147, 28, 0.1), rgba(253, 139, 116, 0.1)))',
341
402
  border: 'var(--cta-border, 1px solid rgba(250, 147, 28, 0.3))',
342
403
  borderRadius: 'var(--radius-md, 0.75rem)',
@@ -345,12 +406,12 @@ function CallStatus({ callId, pollInterval = 5000, onStatusChange, showTranscrip
345
406
  display: 'flex',
346
407
  alignItems: 'center',
347
408
  gap: '8px',
348
- marginBottom: '8px',
409
+ marginBottom: compact ? '6px' : '8px',
349
410
  } },
350
411
  React.createElement("svg", { style: { width: '20px', height: '20px', color: 'var(--accent, #FA931C)' }, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" },
351
412
  React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" })),
352
- React.createElement("h4", { style: { fontWeight: '600', color: 'var(--text-primary, #1f2937)', fontSize: '14px' } }, "Call Summary")),
353
- React.createElement("p", { style: { fontSize: '14px', color: 'var(--text-primary, #1f2937)', lineHeight: '1.6' } }, status.summary)))),
413
+ React.createElement("h4", { style: { fontWeight: '600', color: 'var(--text-primary, #1f2937)', fontSize: compact ? '12px' : '14px' } }, "Call Summary")),
414
+ React.createElement("p", { style: { fontSize: compact ? '12px' : '14px', color: 'var(--text-primary, #1f2937)', lineHeight: '1.6' } }, status.summary)))),
354
415
  showTranscript && status.transcript && status.transcript.length > 0 && (React.createElement(TranscriptViewer, { transcript: status.transcript }))));
355
416
  }
356
417
 
@@ -429,5 +490,209 @@ function CallHistory({ limit = 10, onCallSelect, className = '', }) {
429
490
  new Date(call.created_at).toLocaleString()))))))));
430
491
  }
431
492
 
432
- export { CallButton, CallHistory, CallStatus, PamelaProvider, TranscriptViewer, usePamela };
493
+ const sizeMap = {
494
+ small: 'var(--pamela-orb-size-small, 96px)',
495
+ medium: 'var(--pamela-orb-size-medium, 128px)',
496
+ large: 'var(--pamela-orb-size-large, 192px)',
497
+ };
498
+ function VoiceOrb({ isActive = false, size = 'large', className = '' }) {
499
+ const [pulsePhase, setPulsePhase] = useState(0);
500
+ const [idlePhase, setIdlePhase] = useState(Math.floor(Math.random() * 720)); // Random initial phase to avoid sync
501
+ // Continuous animation for idle mode - runs once on mount
502
+ // Remove modulo to allow continuous rotation (can go beyond 360 degrees for seamless loop)
503
+ useEffect(() => {
504
+ const interval = setInterval(() => {
505
+ setIdlePhase(prev => prev + 1); // Continuous growth - no reset for fluid animation
506
+ }, 16); // ~60fps
507
+ return () => clearInterval(interval);
508
+ }, []); // Empty deps - only run once
509
+ // Fast animation for active mode
510
+ useEffect(() => {
511
+ if (!isActive)
512
+ return;
513
+ const interval = setInterval(() => {
514
+ setPulsePhase(prev => (prev + 1) % 360);
515
+ }, 16); // ~60fps
516
+ return () => clearInterval(interval);
517
+ }, [isActive]);
518
+ const orbSize = sizeMap[size];
519
+ // Multiple breathing layers for idle mode (more organic) - reduced by 10%
520
+ const baseTime = idlePhase * 0.05;
521
+ const idleBreath1 = Math.sin(baseTime) * 0.072; // 7.2% primary breath (was 8%)
522
+ const idleBreath2 = Math.sin(baseTime * 1.3) * 0.045; // 4.5% secondary breath (was 5%)
523
+ const idleBreath3 = Math.sin(baseTime * 0.7) * 0.027; // 2.7% tertiary breath (was 3%)
524
+ // Calculate pulse scale - multi-layer breathing when idle, faster pulse when active - reduced by 10%
525
+ const pulseScale = isActive
526
+ ? 1 + Math.sin((pulsePhase * Math.PI) / 180) * 0.135 // 13.5% pulse variation (was 15%)
527
+ : 1 + idleBreath1 + idleBreath2 + idleBreath3; // Layered breathing when idle
528
+ // Floating/levitation effect (idle only) - reduced by 10%
529
+ const floatY = isActive ? 0 : Math.sin(baseTime * 0.4) * 7.2; // 7.2px float movement (was 8px)
530
+ // Continuous gradient rotation - slower when idle, faster when active
531
+ const gradientRotation = isActive
532
+ ? pulsePhase * 0.5
533
+ : idlePhase * 0.15; // Slow, continuous rotation when idle
534
+ // Subtle color shift for idle mode - reduced by 10%
535
+ const colorShift = isActive ? 0 : Math.sin(baseTime * 0.3) * 9; // 9deg color shift (was 10deg)
536
+ const orbSizeStyle = {
537
+ width: orbSize,
538
+ height: orbSize,
539
+ };
540
+ return (React.createElement("div", { className: className, style: {
541
+ position: 'relative',
542
+ display: 'flex',
543
+ alignItems: 'center',
544
+ justifyContent: 'center',
545
+ transform: `translateY(${floatY}px)`,
546
+ transition: isActive ? 'transform 0.3s ease-out' : 'none',
547
+ } },
548
+ React.createElement("div", { style: {
549
+ ...orbSizeStyle,
550
+ position: 'absolute',
551
+ borderRadius: '50%',
552
+ filter: 'blur(24px)', // blur-xl
553
+ background: `radial-gradient(circle,
554
+ hsla(${25 + colorShift}, 75%, 55%, 0.54),
555
+ hsla(${11 + colorShift}, 97%, 72%, 0.54))`,
556
+ transform: `scale(${pulseScale * 1.125})`,
557
+ opacity: isActive ? 0.315 : 0.225,
558
+ transition: 'opacity 0.3s ease-out',
559
+ } }),
560
+ React.createElement("div", { style: {
561
+ ...orbSizeStyle,
562
+ position: 'absolute',
563
+ borderRadius: '50%',
564
+ filter: 'blur(16px)', // blur-lg
565
+ background: `radial-gradient(circle,
566
+ hsla(${25 + colorShift * 0.7}, 75%, 55%, 0.45),
567
+ hsla(${11 + colorShift * 0.7}, 97%, 72%, 0.45))`,
568
+ transform: `scale(${pulseScale * 1.035}) rotate(${gradientRotation * 0.3}deg)`,
569
+ opacity: isActive ? 0.405 : 0.315,
570
+ transition: 'opacity 0.3s ease-out',
571
+ } }),
572
+ !isActive && (React.createElement("div", { style: {
573
+ ...orbSizeStyle,
574
+ position: 'absolute',
575
+ borderRadius: '50%',
576
+ filter: 'blur(40px)', // blur-2xl
577
+ background: `radial-gradient(circle,
578
+ hsla(${25 + colorShift * 0.5}, 70%, 50%, 0.27),
579
+ hsla(${11 + colorShift * 0.5}, 97%, 72%, 0.27))`,
580
+ transform: `scale(${(1 + idleBreath1) * 1.26})`,
581
+ opacity: 0.18,
582
+ } })),
583
+ React.createElement("div", { style: {
584
+ ...orbSizeStyle,
585
+ position: 'relative',
586
+ borderRadius: '50%',
587
+ background: `linear-gradient(${gradientRotation + colorShift}deg,
588
+ hsl(${25 + colorShift}, 75%, 55%),
589
+ hsl(${11 + colorShift}, 97%, 72%),
590
+ hsl(${25 + colorShift}, 75%, 55%))`,
591
+ backgroundSize: '200% 200%',
592
+ transform: `scale(${pulseScale}) rotate(${gradientRotation * 0.1}deg)`,
593
+ boxShadow: isActive
594
+ ? '0 0 54px rgba(250,147,28,0.45), 0 0 90px rgba(253,139,116,0.27), inset 0 0 36px rgba(255,255,255,0.09)'
595
+ : `0 0 72px hsla(${25 + colorShift}, 60%, 50%, 0.36),
596
+ 0 0 108px hsla(${11 + colorShift}, 97%, 72%, 0.225),
597
+ inset 0 0 45px rgba(255,255,255,0.135)`,
598
+ transition: 'box-shadow 0.3s ease-out',
599
+ } },
600
+ React.createElement("div", { style: {
601
+ position: 'absolute',
602
+ inset: 0,
603
+ borderRadius: '50%',
604
+ background: `radial-gradient(circle at ${30 + Math.sin(baseTime * 0.2) * 5}% ${30 + Math.cos(baseTime * 0.2) * 5}%,
605
+ rgba(255,255,255,${isActive ? 0.36 : 0.315}), transparent 60%)`,
606
+ opacity: isActive ? 0.54 : 0.63,
607
+ transition: 'opacity 0.3s ease-out',
608
+ } }),
609
+ React.createElement("div", { style: {
610
+ position: 'absolute',
611
+ inset: 0,
612
+ borderRadius: '50%',
613
+ background: `linear-gradient(${45 + gradientRotation * 0.2}deg,
614
+ transparent 30%,
615
+ rgba(255,255,255,${isActive ? 0.45 : 0.225}) 50%,
616
+ transparent 70%)`,
617
+ animation: isActive ? 'shimmer 3s infinite' : 'shimmer 6s infinite',
618
+ opacity: isActive ? 0.27 : 0.18,
619
+ transition: 'opacity 0.3s ease-out',
620
+ } }),
621
+ !isActive && (React.createElement(React.Fragment, null,
622
+ React.createElement("div", { style: {
623
+ position: 'absolute',
624
+ borderRadius: '50%',
625
+ backgroundColor: 'white',
626
+ width: '8px',
627
+ height: '8px',
628
+ top: `${25 + Math.sin(baseTime * 0.5) * 15}%`,
629
+ left: `${35 + Math.cos(baseTime * 0.5) * 15}%`,
630
+ opacity: 0.36 + Math.sin(baseTime * 0.8) * 0.18,
631
+ filter: 'blur(2px)',
632
+ transform: `scale(${0.8 + Math.sin(baseTime * 1.2) * 0.36})`,
633
+ } }),
634
+ React.createElement("div", { style: {
635
+ position: 'absolute',
636
+ borderRadius: '50%',
637
+ backgroundColor: 'white',
638
+ width: '6px',
639
+ height: '6px',
640
+ top: `${60 + Math.sin(baseTime * 0.7 + 2) * 12}%`,
641
+ left: `${65 + Math.cos(baseTime * 0.7 + 2) * 12}%`,
642
+ opacity: 0.27 + Math.sin(baseTime * 0.9) * 0.135,
643
+ filter: 'blur(1.5px)',
644
+ transform: `scale(${0.7 + Math.sin(baseTime * 1.4) * 0.27})`,
645
+ } })))),
646
+ isActive && (React.createElement(React.Fragment, null,
647
+ React.createElement("div", { style: {
648
+ ...orbSizeStyle,
649
+ position: 'absolute',
650
+ borderRadius: '50%',
651
+ border: '2px solid #FA931C',
652
+ opacity: 0,
653
+ animation: 'ripple 2s infinite ease-in-out',
654
+ animationDelay: '0s',
655
+ } }),
656
+ React.createElement("div", { style: {
657
+ ...orbSizeStyle,
658
+ position: 'absolute',
659
+ borderRadius: '50%',
660
+ border: '2px solid #fd8b74',
661
+ opacity: 0,
662
+ animation: 'ripple 2s infinite ease-in-out',
663
+ animationDelay: '0.7s',
664
+ } }),
665
+ React.createElement("div", { style: {
666
+ ...orbSizeStyle,
667
+ position: 'absolute',
668
+ borderRadius: '50%',
669
+ border: '2px solid #FA931C',
670
+ opacity: 0,
671
+ animation: 'ripple 2s infinite ease-in-out',
672
+ animationDelay: '1.4s',
673
+ } }))),
674
+ !isActive && (React.createElement(React.Fragment, null,
675
+ React.createElement("div", { style: {
676
+ ...orbSizeStyle,
677
+ position: 'absolute',
678
+ borderRadius: '50%',
679
+ border: '1px solid #FA931C',
680
+ opacity: 0.135 + Math.sin(baseTime * 0.25) * 0.045,
681
+ transform: `scale(${1 + Math.sin(baseTime * 0.25) * 0.27})`,
682
+ animation: 'ripple 8s infinite ease-in-out',
683
+ animationDelay: '0s',
684
+ } }),
685
+ React.createElement("div", { style: {
686
+ ...orbSizeStyle,
687
+ position: 'absolute',
688
+ borderRadius: '50%',
689
+ border: '1px solid #fd8b74',
690
+ opacity: 0.09 + Math.sin(baseTime * 0.25 + 3) * 0.027,
691
+ transform: `scale(${1 + Math.sin(baseTime * 0.25 + 3) * 0.225})`,
692
+ animation: 'ripple 8s infinite ease-in-out',
693
+ animationDelay: '2.5s',
694
+ } })))));
695
+ }
696
+
697
+ export { CallButton, CallHistory, CallStatus, PamelaProvider, TranscriptViewer, VoiceOrb, usePamela };
433
698
  //# sourceMappingURL=index.esm.js.map