@yinshan-tech/webrtc-react 0.8.4 → 0.8.6

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.
Files changed (80) hide show
  1. package/README.md +43 -7
  2. package/dist/CallWidget.js +16 -18
  3. package/dist/CallWidget.js.map +1 -1
  4. package/dist/OutboundModeShell.d.ts +32 -1
  5. package/dist/OutboundModeShell.js +162 -50
  6. package/dist/OutboundModeShell.js.map +1 -1
  7. package/dist/SoftphoneProvider.d.ts +1 -1
  8. package/dist/formatTalkDuration.d.ts +2 -0
  9. package/dist/formatTalkDuration.js +9 -0
  10. package/dist/formatTalkDuration.js.map +1 -0
  11. package/dist/host/SoftphoneConnectToast.js +4 -2
  12. package/dist/host/SoftphoneConnectToast.js.map +1 -1
  13. package/dist/host/SoftphoneHost.js +10 -6
  14. package/dist/host/SoftphoneHost.js.map +1 -1
  15. package/dist/host/connectToast.d.ts +4 -1
  16. package/dist/host/connectToast.js +7 -1
  17. package/dist/host/connectToast.js.map +1 -1
  18. package/dist/index.d.ts +14 -3
  19. package/dist/index.js +8 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/kit/callCenterTaskEndpoints.d.ts +8 -0
  22. package/dist/kit/callCenterTaskEndpoints.js +10 -0
  23. package/dist/kit/callCenterTaskEndpoints.js.map +1 -1
  24. package/dist/kit/clickCallMutex.d.ts +7 -0
  25. package/dist/kit/clickCallMutex.js +6 -2
  26. package/dist/kit/clickCallMutex.js.map +1 -1
  27. package/dist/kit/createCallCenterSoftphone.d.ts +5 -0
  28. package/dist/kit/createCallCenterSoftphone.js +55 -3
  29. package/dist/kit/createCallCenterSoftphone.js.map +1 -1
  30. package/dist/kit/hooks.d.ts +4 -1
  31. package/dist/kit/hooks.js +3 -1
  32. package/dist/kit/hooks.js.map +1 -1
  33. package/dist/kit/useProgressiveSession.d.ts +2 -0
  34. package/dist/kit/useProgressiveSession.js +4 -4
  35. package/dist/kit/useProgressiveSession.js.map +1 -1
  36. package/dist/kit/waitingHostKind.d.ts +1 -0
  37. package/dist/kit/waitingHostKind.js +2 -1
  38. package/dist/kit/waitingHostKind.js.map +1 -1
  39. package/dist/locales/resolveNotifyMessage.js +6 -0
  40. package/dist/locales/resolveNotifyMessage.js.map +1 -1
  41. package/dist/locales/resolveSoftphoneTexts.js +63 -0
  42. package/dist/locales/resolveSoftphoneTexts.js.map +1 -1
  43. package/dist/locales/types.d.ts +21 -0
  44. package/dist/locales/types.js +21 -0
  45. package/dist/locales/types.js.map +1 -1
  46. package/dist/outboundShell/PredictiveTaskBody.d.ts +19 -4
  47. package/dist/outboundShell/PredictiveTaskBody.js +27 -19
  48. package/dist/outboundShell/PredictiveTaskBody.js.map +1 -1
  49. package/dist/outboundTaskUi.d.ts +14 -1
  50. package/dist/outboundTaskUi.js +29 -3
  51. package/dist/outboundTaskUi.js.map +1 -1
  52. package/dist/predictive/PredictiveAligningMask.d.ts +6 -0
  53. package/dist/predictive/PredictiveAligningMask.js +14 -0
  54. package/dist/predictive/PredictiveAligningMask.js.map +1 -0
  55. package/dist/predictive/PredictiveHostLoop.d.ts +1 -0
  56. package/dist/predictive/PredictiveHostLoop.js +269 -0
  57. package/dist/predictive/PredictiveHostLoop.js.map +1 -0
  58. package/dist/predictive/createPredictiveSipSession.d.ts +63 -0
  59. package/dist/predictive/createPredictiveSipSession.js +312 -0
  60. package/dist/predictive/createPredictiveSipSession.js.map +1 -0
  61. package/dist/predictive/decidePredictiveEnter.d.ts +64 -0
  62. package/dist/predictive/decidePredictiveEnter.js +73 -0
  63. package/dist/predictive/decidePredictiveEnter.js.map +1 -0
  64. package/dist/predictive/predictiveAgentViewPoll.d.ts +62 -0
  65. package/dist/predictive/predictiveAgentViewPoll.js +116 -0
  66. package/dist/predictive/predictiveAgentViewPoll.js.map +1 -0
  67. package/dist/predictive/predictiveBinding.d.ts +53 -0
  68. package/dist/predictive/predictiveBinding.js +182 -0
  69. package/dist/predictive/predictiveBinding.js.map +1 -0
  70. package/dist/predictive/predictiveStatusLine.d.ts +31 -0
  71. package/dist/predictive/predictiveStatusLine.js +113 -0
  72. package/dist/predictive/predictiveStatusLine.js.map +1 -0
  73. package/dist/predictive/usePredictiveSnapshot.d.ts +11 -0
  74. package/dist/predictive/usePredictiveSnapshot.js +36 -0
  75. package/dist/predictive/usePredictiveSnapshot.js.map +1 -0
  76. package/dist/styles.css +22 -0
  77. package/dist/stylesInject.d.ts +1 -1
  78. package/dist/stylesInject.js +1 -1
  79. package/dist/stylesInject.js.map +1 -1
  80. package/package.json +2 -2
@@ -0,0 +1,113 @@
1
+ function fillTemplate(template, token) {
2
+ var _a;
3
+ const parts = template.split(token);
4
+ return { prefix: (_a = parts[0]) !== null && _a !== void 0 ? _a : '', suffix: parts.slice(1).join(token) };
5
+ }
6
+ function taskStatus(task) {
7
+ return String(task.status || '').toUpperCase();
8
+ }
9
+ export function resolvePredictiveIdleCopy(tasks, texts) {
10
+ const t = (key, fallback) => texts[key] || fallback;
11
+ const list = tasks !== null && tasks !== void 0 ? tasks : [];
12
+ if (list.length === 0) {
13
+ return t('predictiveReadyIdleNone', 'Ready · no active tasks');
14
+ }
15
+ const statuses = list.map(taskStatus);
16
+ const hasRunning = statuses.includes('RUNNING');
17
+ const hasPending = statuses.includes('PENDING');
18
+ const hasPaused = statuses.includes('PAUSED');
19
+ if (hasRunning) {
20
+ return t('predictiveReadyIdleWaiting', 'Ready · waiting for assignment');
21
+ }
22
+ if (hasPending) {
23
+ return t('predictiveReadyIdlePending', 'Ready · task not started');
24
+ }
25
+ if (hasPaused) {
26
+ return t('predictiveReadyIdlePaused', 'Ready · task paused');
27
+ }
28
+ return t('predictiveReadyIdleNone', 'Ready · no active tasks');
29
+ }
30
+ /** 15s only when the session saw tasks, today's unfinished set is empty, and there is no live SIP. */
31
+ export function shouldStartPredictiveTerminalCountdown(input) {
32
+ var _a;
33
+ if (input.hasActiveCall || !input.sessionSawAssignedTasks) {
34
+ return false;
35
+ }
36
+ return ((_a = input.assignedTasks) !== null && _a !== void 0 ? _a : []).length === 0;
37
+ }
38
+ export function resolvePredictiveStatusLine(input) {
39
+ var _a, _b, _c;
40
+ const t = (key, fallback) => input.texts[key] || fallback;
41
+ if (input.completing && input.completeExitSeconds != null) {
42
+ const template = t('predictiveCompletedCountdown', 'Assigned tasks finished · auto check-out in {n}s');
43
+ const parts = fillTemplate(template, '{n}');
44
+ return {
45
+ className: 'wro-shell__state is-calling',
46
+ text: null,
47
+ prefix: parts.prefix,
48
+ highlight: String(input.completeExitSeconds),
49
+ suffix: parts.suffix,
50
+ };
51
+ }
52
+ const phase = (_a = input.call) === null || _a === void 0 ? void 0 : _a.phase;
53
+ if (phase === 'active') {
54
+ const talking = input.availability === 'paused'
55
+ ? t('predictivePausedTalking', 'Paused · in call')
56
+ : t('predictiveReadyTalking', 'Ready · in call');
57
+ return { className: 'wro-shell__state is-connected', text: talking };
58
+ }
59
+ if (phase === 'dialing' || phase === 'ringing' || phase === 'ending') {
60
+ return {
61
+ className: 'wro-shell__state is-calling',
62
+ text: t('predictiveConnecting', 'Connecting'),
63
+ };
64
+ }
65
+ if (phase === 'ended') {
66
+ return {
67
+ className: 'wro-shell__state',
68
+ text: ((_b = input.sipText) === null || _b === void 0 ? void 0 : _b.call(input, phase)) || t('ended', 'Call ended'),
69
+ };
70
+ }
71
+ if (phase === 'failed') {
72
+ return {
73
+ className: 'wro-shell__state is-failed',
74
+ text: ((_c = input.sipText) === null || _c === void 0 ? void 0 : _c.call(input, phase)) || t('failed', 'Call failed'),
75
+ };
76
+ }
77
+ const wrapSeconds = input.wrapUpRemainingSeconds;
78
+ const inWrapup = input.occupancy === 'wrapup' || (typeof wrapSeconds === 'number' && wrapSeconds > 0);
79
+ if (inWrapup) {
80
+ if (typeof wrapSeconds === 'number' && wrapSeconds > 0) {
81
+ const template = t('predictiveWrapUpCountdown', 'After-call work · {n}s');
82
+ const parts = fillTemplate(template, '{n}');
83
+ return {
84
+ className: 'wro-shell__state is-calling',
85
+ text: null,
86
+ prefix: parts.prefix,
87
+ highlight: String(wrapSeconds),
88
+ suffix: parts.suffix,
89
+ };
90
+ }
91
+ return {
92
+ className: 'wro-shell__state',
93
+ text: t('predictiveWrapUp', 'After-call work'),
94
+ };
95
+ }
96
+ if (input.availability === 'paused') {
97
+ return {
98
+ className: 'wro-shell__state',
99
+ text: t('pausedStatus', 'Paused'),
100
+ };
101
+ }
102
+ if (input.aligning) {
103
+ return {
104
+ className: 'wro-shell__state is-calling',
105
+ text: t('predictiveAligning', 'Aligning'),
106
+ };
107
+ }
108
+ return {
109
+ className: 'wro-shell__state',
110
+ text: resolvePredictiveIdleCopy(input.assignedTasks, input.texts),
111
+ };
112
+ }
113
+ //# sourceMappingURL=predictiveStatusLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"predictiveStatusLine.js","sourceRoot":"","sources":["../../src/predictive/predictiveStatusLine.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ import { predictiveModeSession, type PredictiveHostState } from './predictiveBinding';
2
+ import type { PredictiveSipSessionResult } from './createPredictiveSipSession';
3
+ export type PredictiveSnapshot = PredictiveHostState & {
4
+ bound: boolean;
5
+ modeSession: ReturnType<typeof predictiveModeSession>;
6
+ enter(): Promise<PredictiveSipSessionResult>;
7
+ leave(): Promise<PredictiveSipSessionResult>;
8
+ pause(): Promise<PredictiveSipSessionResult>;
9
+ ready(): Promise<PredictiveSipSessionResult>;
10
+ };
11
+ export declare function usePredictiveSnapshot(): PredictiveSnapshot;
@@ -0,0 +1,36 @@
1
+ import { useEffect, useMemo, useState } from 'react';
2
+ import { softphoneError } from '@yinshan-tech/webrtc-sdk';
3
+ import { tryUseSoftphoneContext } from '../SoftphoneProvider';
4
+ import { enterPredictive, getPredictiveBinding, getPredictiveHostState, leavePredictive, pausePredictive, predictiveModeSession, readyPredictive, subscribePredictiveHost, } from './predictiveBinding';
5
+ export function usePredictiveSnapshot() {
6
+ const phone = tryUseSoftphoneContext();
7
+ const [state, setState] = useState(() => getPredictiveHostState(phone));
8
+ useEffect(() => {
9
+ setState(getPredictiveHostState(phone));
10
+ return subscribePredictiveHost(phone, () => {
11
+ setState(getPredictiveHostState(phone));
12
+ });
13
+ }, [phone]);
14
+ return useMemo(() => (Object.assign(Object.assign({}, state), { bound: !!getPredictiveBinding(phone), modeSession: predictiveModeSession(state), enter: () => phone
15
+ ? enterPredictive(phone)
16
+ : Promise.resolve({
17
+ ok: false,
18
+ error: softphoneError('not_connected', 'Softphone missing'),
19
+ }), leave: () => phone
20
+ ? leavePredictive(phone)
21
+ : Promise.resolve({
22
+ ok: false,
23
+ error: softphoneError('not_connected', 'Softphone missing'),
24
+ }), pause: () => phone
25
+ ? pausePredictive(phone)
26
+ : Promise.resolve({
27
+ ok: false,
28
+ error: softphoneError('not_connected', 'Softphone missing'),
29
+ }), ready: () => phone
30
+ ? readyPredictive(phone)
31
+ : Promise.resolve({
32
+ ok: false,
33
+ error: softphoneError('not_connected', 'Softphone missing'),
34
+ }) })), [phone, state]);
35
+ }
36
+ //# sourceMappingURL=usePredictiveSnapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePredictiveSnapshot.js","sourceRoot":"","sources":["../../src/predictive/usePredictiveSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAY7B,MAAM,UAAU,qBAAqB;IACnC,MAAM,KAAK,GAAG,sBAAsB,EAAE,CAAC;IACvC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;IAExE,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;QACxC,OAAO,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE;YACzC,QAAQ,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,iCACD,KAAK,KACR,KAAK,EAAE,CAAC,CAAC,oBAAoB,CAAC,KAAK,CAAC,EACpC,WAAW,EAAE,qBAAqB,CAAC,KAAK,CAAC,EACzC,KAAK,EAAE,GAAG,EAAE,CACV,KAAK;YACH,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC;YACxB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;gBACd,EAAE,EAAE,KAAc;gBAClB,KAAK,EAAE,cAAc,CAAC,eAAe,EAAE,mBAAmB,CAAC;aAC5D,CAAC,EACR,KAAK,EAAE,GAAG,EAAE,CACV,KAAK;YACH,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC;YACxB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;gBACd,EAAE,EAAE,KAAc;gBAClB,KAAK,EAAE,cAAc,CAAC,eAAe,EAAE,mBAAmB,CAAC;aAC5D,CAAC,EACR,KAAK,EAAE,GAAG,EAAE,CACV,KAAK;YACH,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC;YACxB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;gBACd,EAAE,EAAE,KAAc;gBAClB,KAAK,EAAE,cAAc,CAAC,eAAe,EAAE,mBAAmB,CAAC;aAC5D,CAAC,EACR,KAAK,EAAE,GAAG,EAAE,CACV,KAAK;YACH,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC;YACxB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;gBACd,EAAE,EAAE,KAAc;gBAClB,KAAK,EAAE,cAAc,CAAC,eAAe,EAAE,mBAAmB,CAAC;aAC5D,CAAC,IACR,EACF,CAAC,KAAK,EAAE,KAAK,CAAC,CACf,CAAC;AACJ,CAAC"}
package/dist/styles.css CHANGED
@@ -733,3 +733,25 @@
733
733
  color: #2dd4bf;
734
734
  font-size: 12px;
735
735
  }
736
+
737
+ .wro-aligning-mask {
738
+ position: fixed;
739
+ inset: 0;
740
+ z-index: 1400;
741
+ display: flex;
742
+ align-items: center;
743
+ justify-content: center;
744
+ background: rgba(15, 23, 42, 0.45);
745
+ pointer-events: auto;
746
+ }
747
+
748
+ .wro-aligning-box {
749
+ min-width: 220px;
750
+ padding: 20px 28px;
751
+ border-radius: 12px;
752
+ background: #fff;
753
+ color: #0f172a;
754
+ font-size: 15px;
755
+ font-weight: 600;
756
+ box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
757
+ }
@@ -1,2 +1,2 @@
1
1
  /** Auto-generated from styles.css — do not edit. */
2
- export declare const STYLES_CSS = "/* @yinshan-tech/webrtc-react \u2014 override via CSS variables / className */\n\n.wro-root {\n --wro-btn-bg: #ef4444;\n --wro-btn-color: #fff;\n --wro-btn-radius: 8px;\n --wro-btn-padding: 6px 14px;\n --wro-btn-font-size: 14px;\n --wro-modal-z: 1100;\n font-family:\n system-ui,\n -apple-system,\n \"Segoe UI\",\n Roboto,\n sans-serif;\n}\n\n.wro-btn {\n background: var(--wro-btn-bg);\n color: var(--wro-btn-color);\n border: none;\n border-radius: var(--wro-btn-radius);\n padding: var(--wro-btn-padding);\n font-size: var(--wro-btn-font-size);\n cursor: pointer;\n}\n\n.wro-btn:disabled {\n opacity: 0.55;\n cursor: not-allowed;\n}\n\n/* Floating call card (no full-screen mask) */\n.wro-call {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n width: 320px;\n padding: 20px 24px 28px;\n background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%);\n color: #0f172a;\n border-radius: 20px;\n box-shadow:\n 0 12px 40px rgba(15, 23, 42, 0.16),\n 0 2px 8px rgba(15, 23, 42, 0.06);\n text-align: center;\n cursor: grab;\n user-select: none;\n}\n\n.wro-call.is-dragging {\n cursor: grabbing;\n}\n\n.wro-call button {\n cursor: pointer;\n}\n\n.wro-call__minimize {\n position: absolute;\n top: 10px;\n right: 10px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n background: transparent;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n}\n\n.wro-call__minimize:hover {\n color: rgba(0, 0, 0, 0.85);\n background: rgba(0, 0, 0, 0.06);\n}\n\n.wro-call__avatar {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 72px;\n height: 72px;\n margin: 8px auto 16px;\n color: #fff;\n font-weight: 600;\n font-size: 28px;\n background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);\n border-radius: 50%;\n box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);\n}\n\n.wro-call__avatar.is-calling::after {\n position: absolute;\n inset: -6px;\n border: 2px solid rgba(59, 130, 246, 0.45);\n border-radius: 50%;\n animation: wro-ring 1.6s ease-out infinite;\n content: \"\";\n}\n\n.wro-call__avatar.is-connected {\n background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);\n box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);\n}\n\n.wro-call__avatar.is-failed {\n background: linear-gradient(145deg, #f87171 0%, #dc2626 100%);\n box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);\n}\n\n.wro-call__avatar.is-ended {\n background: linear-gradient(145deg, #94a3b8 0%, #64748b 100%);\n box-shadow: none;\n}\n\n.wro-call__name {\n max-width: 100%;\n margin-bottom: 8px;\n overflow: hidden;\n font-weight: 600;\n font-size: 20px;\n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call__number {\n max-width: 100%;\n margin-bottom: 4px;\n overflow: hidden;\n color: #0f172a;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: 0.02em;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call__status {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n margin-bottom: 8px;\n}\n\n.wro-call__state {\n font-size: 14px;\n color: #64748b;\n}\n\n.wro-call__state.is-calling {\n color: #2563eb;\n animation: wro-blink 1.5s ease-in-out infinite;\n}\n\n.wro-call__state.is-failed {\n color: #dc2626;\n}\n\n.wro-call__state.is-timeout {\n color: #d97706;\n}\n\n.wro-call__state.is-ended {\n color: #64748b;\n}\n\n.wro-call__duration {\n color: #16a34a;\n font-weight: 700;\n font-size: 28px;\n font-variant-numeric: tabular-nums;\n letter-spacing: 1px;\n}\n\n.wro-call__actions {\n display: flex;\n gap: 28px;\n justify-content: center;\n margin-top: 16px;\n cursor: grab;\n}\n\n.wro-call__action {\n display: flex;\n flex-direction: column;\n gap: 8px;\n align-items: center;\n}\n\n.wro-call__circle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 56px;\n height: 56px;\n padding: 0;\n color: #fff;\n border: none;\n border-radius: 50%;\n box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);\n cursor: pointer;\n transition:\n transform 0.15s ease,\n box-shadow 0.15s ease;\n}\n\n.wro-call__circle:hover:not(:disabled) {\n transform: translateY(-1px);\n box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);\n}\n\n.wro-call__circle:disabled {\n background: #fecaca !important;\n box-shadow: none;\n cursor: not-allowed;\n}\n\n.wro-call__circle.is-unmuted {\n background: #16a34a;\n}\n\n.wro-call__circle.is-muted {\n background: #dc2626;\n}\n\n.wro-call__circle.is-hangup {\n background: #ef4444;\n}\n\n.wro-call__circle.is-hangup:hover:not(:disabled) {\n background: #dc2626;\n}\n\n.wro-call__hangup-icon {\n display: inline-flex;\n transform: rotate(135deg);\n}\n\n.wro-call__label {\n color: #475569;\n font-size: 13px;\n line-height: 1;\n}\n\n.wro-call-mini {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 220px;\n min-height: 64px;\n padding: 12px 14px;\n background: #fff;\n border: 1px solid #e2e8f0;\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);\n cursor: grab;\n user-select: none;\n transition:\n box-shadow 0.2s ease,\n transform 0.2s ease;\n}\n\n.wro-call-mini.is-dragging {\n cursor: grabbing;\n transition: none;\n}\n\n.wro-call-mini:hover {\n box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);\n transform: translateY(-1px);\n}\n\n.wro-call-mini__name {\n overflow: hidden;\n color: #0f172a;\n font-weight: 600;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call-mini__duration {\n color: #16a34a;\n font-weight: 700;\n font-size: 16px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-call-mini__status {\n color: #2563eb;\n font-size: 12px;\n}\n\n@keyframes wro-blink {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.45;\n }\n}\n\n@keyframes wro-ring {\n 0% {\n transform: scale(0.92);\n opacity: 0.7;\n }\n 100% {\n transform: scale(1.18);\n opacity: 0;\n }\n}\n\n/* OutboundModeShell \u2014 dark workbench chrome */\n.wro-shell {\n --wro-shell-bg: #1a2332;\n --wro-shell-panel: #243044;\n --wro-shell-text: #e8eef7;\n --wro-shell-muted: #8b9bb4;\n --wro-shell-accent: #2dd4bf;\n --wro-shell-green: #22c55e;\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n width: 360px;\n padding: 0 0 16px;\n color: var(--wro-shell-text);\n background: var(--wro-shell-bg);\n border-radius: 12px;\n box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);\n cursor: grab;\n user-select: none;\n}\n\n.wro-shell.is-dragging {\n cursor: grabbing;\n}\n\n.wro-shell__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 14px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.06);\n}\n\n.wro-shell__title {\n display: inline-flex;\n gap: 8px;\n align-items: center;\n color: var(--wro-shell-accent);\n font-weight: 600;\n font-size: 14px;\n}\n\n.wro-shell__title-icon {\n display: inline-flex;\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__title-icon svg {\n width: 16px;\n height: 16px;\n}\n\n.wro-shell__header-actions {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.wro-shell__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n color: var(--wro-shell-muted);\n background: transparent;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n}\n\n.wro-shell__icon-btn:hover {\n color: var(--wro-shell-text);\n background: rgba(255, 255, 255, 0.06);\n}\n\n.wro-shell__icon-btn.is-close {\n color: #d54941;\n background: rgba(213, 73, 65, 0.25);\n}\n\n.wro-shell__icon-btn.is-close:hover {\n color: #fff;\n background: rgba(213, 73, 65, 0.6);\n}\n\n.wro-shell__mode-bar {\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding: 12px 14px 0;\n}\n\n.wro-shell__agent-status {\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: var(--wro-shell-muted);\n font-size: 13px;\n}\n\n.wro-shell__agent-status-value {\n color: var(--wro-shell-green);\n font-weight: 600;\n}\n\n.wro-shell__mode-actions {\n display: flex;\n gap: 8px;\n}\n\n.wro-shell__mode-actions > * {\n flex: 1;\n}\n\n.wro-shell__task-btn {\n border: 0;\n border-radius: 6px;\n padding: 6px 8px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n\n.wro-shell__task-btn.is-pause {\n background: #e8730c;\n color: #fff;\n}\n\n.wro-shell__task-btn.is-resume {\n background: var(--wro-shell-accent, #42a5f5);\n color: #fff;\n}\n\n.wro-shell__task-btn.is-cancel {\n background: rgba(213, 73, 65, 0.16);\n color: #d54941;\n}\n\n.wro-shell__task-btn.is-disabled,\n.wro-shell__icon-btn.is-disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.wro-shell__call-status {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n align-items: center;\n justify-content: center;\n margin-top: 16px;\n padding: 0 16px;\n text-align: center;\n}\n\n.wro-shell__state {\n color: var(--wro-shell-muted);\n font-size: 14px;\n}\n\n.wro-shell__state.is-calling {\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__state.is-next-missed {\n color: var(--wro-shell-muted);\n}\n\n.wro-shell__countdown-sec {\n color: var(--wro-shell-green);\n font-weight: 700;\n}\n\n.wro-shell__state.is-connected {\n color: var(--wro-shell-green);\n}\n\n.wro-shell__state.is-failed {\n color: #f87171;\n}\n\n.wro-shell__number {\n margin-top: 8px;\n padding: 0 16px;\n color: #fff;\n font-weight: 700;\n font-size: 26px;\n line-height: 1.2;\n text-align: center;\n letter-spacing: 0.5px;\n}\n\n.wro-shell__name {\n margin-top: 6px;\n padding: 0 16px;\n overflow: hidden;\n color: var(--wro-shell-muted);\n font-size: 13px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-shell__idle-hint {\n min-height: 36px;\n margin-top: 16px;\n padding: 0 16px;\n color: var(--wro-shell-accent);\n font-size: 14px;\n line-height: 36px;\n text-align: center;\n}\n\n.wro-shell__info {\n display: grid;\n grid-template-columns: repeat(5, 1fr);\n gap: 2px;\n width: calc(100% - 28px);\n margin: 10px 14px 4px;\n padding: 6px 4px;\n background: var(--wro-shell-panel);\n border-radius: 5px;\n}\n\n.wro-shell__info-item {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n padding: 2px 1px;\n text-align: center;\n border-right: 1px solid rgba(255, 255, 255, 0.08);\n}\n\n.wro-shell__info-item:last-child {\n border-right: none;\n}\n\n.wro-shell__info-label {\n display: flex;\n align-items: flex-end;\n justify-content: center;\n min-height: 2.4em;\n margin-bottom: 2px;\n color: var(--wro-shell-muted);\n font-size: 9px;\n line-height: 1.2;\n text-align: center;\n}\n\n.wro-shell__info-value {\n color: var(--wro-shell-text);\n font-weight: 600;\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-shell__info-meta {\n margin: 0 14px 4px;\n color: var(--wro-shell-muted);\n font-size: 11px;\n text-align: center;\n}\n\n.wro-shell__info-meta-val {\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__duration {\n margin-top: 14px;\n color: var(--wro-shell-green);\n font-weight: 700;\n font-size: 28px;\n font-variant-numeric: tabular-nums;\n text-align: center;\n letter-spacing: 1px;\n}\n\n.wro-shell__actions {\n display: flex;\n gap: 20px;\n justify-content: center;\n margin-top: 14px;\n}\n\n.wro-shell__circle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 52px;\n height: 52px;\n padding: 0;\n color: #fff;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n}\n\n.wro-shell__circle.is-unmuted {\n background: #16a34a;\n}\n\n.wro-shell__circle.is-muted {\n background: #dc2626;\n}\n\n.wro-shell__circle.is-hangup {\n background: #ef4444;\n}\n\n.wro-shell__circle:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.wro-shell__hangup-icon {\n display: inline-flex;\n transform: rotate(135deg);\n}\n\n.wro-shell__batch {\n margin: 16px 14px 0;\n padding: 12px;\n background: var(--wro-shell-panel);\n border-radius: 8px;\n}\n\n.wro-shell__batch-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n color: var(--wro-shell-accent);\n font-size: 13px;\n}\n\n.wro-shell__batch-bar {\n height: 6px;\n overflow: hidden;\n background: rgba(255, 255, 255, 0.08);\n border-radius: 999px;\n}\n\n.wro-shell__batch-bar-fill {\n height: 100%;\n background: var(--wro-shell-accent);\n border-radius: 999px;\n transition: width 0.2s ease;\n}\n\n.wro-shell__batch-stats {\n display: flex;\n justify-content: flex-start;\n gap: 16px;\n margin-top: 8px;\n color: var(--wro-shell-muted);\n font-size: 12px;\n}\n\n.wro-shell__batch-stats-val {\n color: var(--wro-shell-accent);\n font-weight: 600;\n}\n\n.wro-shell-mini {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 220px;\n min-height: 64px;\n padding: 12px 14px;\n color: var(--wro-shell-text, #e8eef7);\n background: #1a2332;\n border: 1px solid rgba(255, 255, 255, 0.08);\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);\n cursor: grab;\n user-select: none;\n}\n\n.wro-shell-mini.is-dragging {\n cursor: grabbing;\n}\n\n.wro-shell-mini__name {\n overflow: hidden;\n font-weight: 600;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-shell-mini__duration {\n color: #22c55e;\n font-weight: 700;\n font-size: 16px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-shell-mini__status {\n color: #2dd4bf;\n font-size: 12px;\n}\n";
2
+ export declare const STYLES_CSS = "/* @yinshan-tech/webrtc-react \u2014 override via CSS variables / className */\n\n.wro-root {\n --wro-btn-bg: #ef4444;\n --wro-btn-color: #fff;\n --wro-btn-radius: 8px;\n --wro-btn-padding: 6px 14px;\n --wro-btn-font-size: 14px;\n --wro-modal-z: 1100;\n font-family:\n system-ui,\n -apple-system,\n \"Segoe UI\",\n Roboto,\n sans-serif;\n}\n\n.wro-btn {\n background: var(--wro-btn-bg);\n color: var(--wro-btn-color);\n border: none;\n border-radius: var(--wro-btn-radius);\n padding: var(--wro-btn-padding);\n font-size: var(--wro-btn-font-size);\n cursor: pointer;\n}\n\n.wro-btn:disabled {\n opacity: 0.55;\n cursor: not-allowed;\n}\n\n/* Floating call card (no full-screen mask) */\n.wro-call {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n width: 320px;\n padding: 20px 24px 28px;\n background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%);\n color: #0f172a;\n border-radius: 20px;\n box-shadow:\n 0 12px 40px rgba(15, 23, 42, 0.16),\n 0 2px 8px rgba(15, 23, 42, 0.06);\n text-align: center;\n cursor: grab;\n user-select: none;\n}\n\n.wro-call.is-dragging {\n cursor: grabbing;\n}\n\n.wro-call button {\n cursor: pointer;\n}\n\n.wro-call__minimize {\n position: absolute;\n top: 10px;\n right: 10px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n background: transparent;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n}\n\n.wro-call__minimize:hover {\n color: rgba(0, 0, 0, 0.85);\n background: rgba(0, 0, 0, 0.06);\n}\n\n.wro-call__avatar {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 72px;\n height: 72px;\n margin: 8px auto 16px;\n color: #fff;\n font-weight: 600;\n font-size: 28px;\n background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);\n border-radius: 50%;\n box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);\n}\n\n.wro-call__avatar.is-calling::after {\n position: absolute;\n inset: -6px;\n border: 2px solid rgba(59, 130, 246, 0.45);\n border-radius: 50%;\n animation: wro-ring 1.6s ease-out infinite;\n content: \"\";\n}\n\n.wro-call__avatar.is-connected {\n background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);\n box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);\n}\n\n.wro-call__avatar.is-failed {\n background: linear-gradient(145deg, #f87171 0%, #dc2626 100%);\n box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);\n}\n\n.wro-call__avatar.is-ended {\n background: linear-gradient(145deg, #94a3b8 0%, #64748b 100%);\n box-shadow: none;\n}\n\n.wro-call__name {\n max-width: 100%;\n margin-bottom: 8px;\n overflow: hidden;\n font-weight: 600;\n font-size: 20px;\n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call__number {\n max-width: 100%;\n margin-bottom: 4px;\n overflow: hidden;\n color: #0f172a;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: 0.02em;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call__status {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n margin-bottom: 8px;\n}\n\n.wro-call__state {\n font-size: 14px;\n color: #64748b;\n}\n\n.wro-call__state.is-calling {\n color: #2563eb;\n animation: wro-blink 1.5s ease-in-out infinite;\n}\n\n.wro-call__state.is-failed {\n color: #dc2626;\n}\n\n.wro-call__state.is-timeout {\n color: #d97706;\n}\n\n.wro-call__state.is-ended {\n color: #64748b;\n}\n\n.wro-call__duration {\n color: #16a34a;\n font-weight: 700;\n font-size: 28px;\n font-variant-numeric: tabular-nums;\n letter-spacing: 1px;\n}\n\n.wro-call__actions {\n display: flex;\n gap: 28px;\n justify-content: center;\n margin-top: 16px;\n cursor: grab;\n}\n\n.wro-call__action {\n display: flex;\n flex-direction: column;\n gap: 8px;\n align-items: center;\n}\n\n.wro-call__circle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 56px;\n height: 56px;\n padding: 0;\n color: #fff;\n border: none;\n border-radius: 50%;\n box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);\n cursor: pointer;\n transition:\n transform 0.15s ease,\n box-shadow 0.15s ease;\n}\n\n.wro-call__circle:hover:not(:disabled) {\n transform: translateY(-1px);\n box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);\n}\n\n.wro-call__circle:disabled {\n background: #fecaca !important;\n box-shadow: none;\n cursor: not-allowed;\n}\n\n.wro-call__circle.is-unmuted {\n background: #16a34a;\n}\n\n.wro-call__circle.is-muted {\n background: #dc2626;\n}\n\n.wro-call__circle.is-hangup {\n background: #ef4444;\n}\n\n.wro-call__circle.is-hangup:hover:not(:disabled) {\n background: #dc2626;\n}\n\n.wro-call__hangup-icon {\n display: inline-flex;\n transform: rotate(135deg);\n}\n\n.wro-call__label {\n color: #475569;\n font-size: 13px;\n line-height: 1;\n}\n\n.wro-call-mini {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 220px;\n min-height: 64px;\n padding: 12px 14px;\n background: #fff;\n border: 1px solid #e2e8f0;\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);\n cursor: grab;\n user-select: none;\n transition:\n box-shadow 0.2s ease,\n transform 0.2s ease;\n}\n\n.wro-call-mini.is-dragging {\n cursor: grabbing;\n transition: none;\n}\n\n.wro-call-mini:hover {\n box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);\n transform: translateY(-1px);\n}\n\n.wro-call-mini__name {\n overflow: hidden;\n color: #0f172a;\n font-weight: 600;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call-mini__duration {\n color: #16a34a;\n font-weight: 700;\n font-size: 16px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-call-mini__status {\n color: #2563eb;\n font-size: 12px;\n}\n\n@keyframes wro-blink {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.45;\n }\n}\n\n@keyframes wro-ring {\n 0% {\n transform: scale(0.92);\n opacity: 0.7;\n }\n 100% {\n transform: scale(1.18);\n opacity: 0;\n }\n}\n\n/* OutboundModeShell \u2014 dark workbench chrome */\n.wro-shell {\n --wro-shell-bg: #1a2332;\n --wro-shell-panel: #243044;\n --wro-shell-text: #e8eef7;\n --wro-shell-muted: #8b9bb4;\n --wro-shell-accent: #2dd4bf;\n --wro-shell-green: #22c55e;\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n width: 360px;\n padding: 0 0 16px;\n color: var(--wro-shell-text);\n background: var(--wro-shell-bg);\n border-radius: 12px;\n box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);\n cursor: grab;\n user-select: none;\n}\n\n.wro-shell.is-dragging {\n cursor: grabbing;\n}\n\n.wro-shell__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 14px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.06);\n}\n\n.wro-shell__title {\n display: inline-flex;\n gap: 8px;\n align-items: center;\n color: var(--wro-shell-accent);\n font-weight: 600;\n font-size: 14px;\n}\n\n.wro-shell__title-icon {\n display: inline-flex;\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__title-icon svg {\n width: 16px;\n height: 16px;\n}\n\n.wro-shell__header-actions {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.wro-shell__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n color: var(--wro-shell-muted);\n background: transparent;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n}\n\n.wro-shell__icon-btn:hover {\n color: var(--wro-shell-text);\n background: rgba(255, 255, 255, 0.06);\n}\n\n.wro-shell__icon-btn.is-close {\n color: #d54941;\n background: rgba(213, 73, 65, 0.25);\n}\n\n.wro-shell__icon-btn.is-close:hover {\n color: #fff;\n background: rgba(213, 73, 65, 0.6);\n}\n\n.wro-shell__mode-bar {\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding: 12px 14px 0;\n}\n\n.wro-shell__agent-status {\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: var(--wro-shell-muted);\n font-size: 13px;\n}\n\n.wro-shell__agent-status-value {\n color: var(--wro-shell-green);\n font-weight: 600;\n}\n\n.wro-shell__mode-actions {\n display: flex;\n gap: 8px;\n}\n\n.wro-shell__mode-actions > * {\n flex: 1;\n}\n\n.wro-shell__task-btn {\n border: 0;\n border-radius: 6px;\n padding: 6px 8px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n\n.wro-shell__task-btn.is-pause {\n background: #e8730c;\n color: #fff;\n}\n\n.wro-shell__task-btn.is-resume {\n background: var(--wro-shell-accent, #42a5f5);\n color: #fff;\n}\n\n.wro-shell__task-btn.is-cancel {\n background: rgba(213, 73, 65, 0.16);\n color: #d54941;\n}\n\n.wro-shell__task-btn.is-disabled,\n.wro-shell__icon-btn.is-disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.wro-shell__call-status {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n align-items: center;\n justify-content: center;\n margin-top: 16px;\n padding: 0 16px;\n text-align: center;\n}\n\n.wro-shell__state {\n color: var(--wro-shell-muted);\n font-size: 14px;\n}\n\n.wro-shell__state.is-calling {\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__state.is-next-missed {\n color: var(--wro-shell-muted);\n}\n\n.wro-shell__countdown-sec {\n color: var(--wro-shell-green);\n font-weight: 700;\n}\n\n.wro-shell__state.is-connected {\n color: var(--wro-shell-green);\n}\n\n.wro-shell__state.is-failed {\n color: #f87171;\n}\n\n.wro-shell__number {\n margin-top: 8px;\n padding: 0 16px;\n color: #fff;\n font-weight: 700;\n font-size: 26px;\n line-height: 1.2;\n text-align: center;\n letter-spacing: 0.5px;\n}\n\n.wro-shell__name {\n margin-top: 6px;\n padding: 0 16px;\n overflow: hidden;\n color: var(--wro-shell-muted);\n font-size: 13px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-shell__idle-hint {\n min-height: 36px;\n margin-top: 16px;\n padding: 0 16px;\n color: var(--wro-shell-accent);\n font-size: 14px;\n line-height: 36px;\n text-align: center;\n}\n\n.wro-shell__info {\n display: grid;\n grid-template-columns: repeat(5, 1fr);\n gap: 2px;\n width: calc(100% - 28px);\n margin: 10px 14px 4px;\n padding: 6px 4px;\n background: var(--wro-shell-panel);\n border-radius: 5px;\n}\n\n.wro-shell__info-item {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n padding: 2px 1px;\n text-align: center;\n border-right: 1px solid rgba(255, 255, 255, 0.08);\n}\n\n.wro-shell__info-item:last-child {\n border-right: none;\n}\n\n.wro-shell__info-label {\n display: flex;\n align-items: flex-end;\n justify-content: center;\n min-height: 2.4em;\n margin-bottom: 2px;\n color: var(--wro-shell-muted);\n font-size: 9px;\n line-height: 1.2;\n text-align: center;\n}\n\n.wro-shell__info-value {\n color: var(--wro-shell-text);\n font-weight: 600;\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-shell__info-meta {\n margin: 0 14px 4px;\n color: var(--wro-shell-muted);\n font-size: 11px;\n text-align: center;\n}\n\n.wro-shell__info-meta-val {\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__duration {\n margin-top: 14px;\n color: var(--wro-shell-green);\n font-weight: 700;\n font-size: 28px;\n font-variant-numeric: tabular-nums;\n text-align: center;\n letter-spacing: 1px;\n}\n\n.wro-shell__actions {\n display: flex;\n gap: 20px;\n justify-content: center;\n margin-top: 14px;\n}\n\n.wro-shell__circle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 52px;\n height: 52px;\n padding: 0;\n color: #fff;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n}\n\n.wro-shell__circle.is-unmuted {\n background: #16a34a;\n}\n\n.wro-shell__circle.is-muted {\n background: #dc2626;\n}\n\n.wro-shell__circle.is-hangup {\n background: #ef4444;\n}\n\n.wro-shell__circle:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.wro-shell__hangup-icon {\n display: inline-flex;\n transform: rotate(135deg);\n}\n\n.wro-shell__batch {\n margin: 16px 14px 0;\n padding: 12px;\n background: var(--wro-shell-panel);\n border-radius: 8px;\n}\n\n.wro-shell__batch-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n color: var(--wro-shell-accent);\n font-size: 13px;\n}\n\n.wro-shell__batch-bar {\n height: 6px;\n overflow: hidden;\n background: rgba(255, 255, 255, 0.08);\n border-radius: 999px;\n}\n\n.wro-shell__batch-bar-fill {\n height: 100%;\n background: var(--wro-shell-accent);\n border-radius: 999px;\n transition: width 0.2s ease;\n}\n\n.wro-shell__batch-stats {\n display: flex;\n justify-content: flex-start;\n gap: 16px;\n margin-top: 8px;\n color: var(--wro-shell-muted);\n font-size: 12px;\n}\n\n.wro-shell__batch-stats-val {\n color: var(--wro-shell-accent);\n font-weight: 600;\n}\n\n.wro-shell-mini {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 220px;\n min-height: 64px;\n padding: 12px 14px;\n color: var(--wro-shell-text, #e8eef7);\n background: #1a2332;\n border: 1px solid rgba(255, 255, 255, 0.08);\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);\n cursor: grab;\n user-select: none;\n}\n\n.wro-shell-mini.is-dragging {\n cursor: grabbing;\n}\n\n.wro-shell-mini__name {\n overflow: hidden;\n font-weight: 600;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-shell-mini__duration {\n color: #22c55e;\n font-weight: 700;\n font-size: 16px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-shell-mini__status {\n color: #2dd4bf;\n font-size: 12px;\n}\n\n.wro-aligning-mask {\n position: fixed;\n inset: 0;\n z-index: 1400;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(15, 23, 42, 0.45);\n pointer-events: auto;\n}\n\n.wro-aligning-box {\n min-width: 220px;\n padding: 20px 28px;\n border-radius: 12px;\n background: #fff;\n color: #0f172a;\n font-size: 15px;\n font-weight: 600;\n box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);\n}\n";
@@ -1,3 +1,3 @@
1
1
  /** Auto-generated from styles.css — do not edit. */
2
- export const STYLES_CSS = "/* @yinshan-tech/webrtc-react — override via CSS variables / className */\n\n.wro-root {\n --wro-btn-bg: #ef4444;\n --wro-btn-color: #fff;\n --wro-btn-radius: 8px;\n --wro-btn-padding: 6px 14px;\n --wro-btn-font-size: 14px;\n --wro-modal-z: 1100;\n font-family:\n system-ui,\n -apple-system,\n \"Segoe UI\",\n Roboto,\n sans-serif;\n}\n\n.wro-btn {\n background: var(--wro-btn-bg);\n color: var(--wro-btn-color);\n border: none;\n border-radius: var(--wro-btn-radius);\n padding: var(--wro-btn-padding);\n font-size: var(--wro-btn-font-size);\n cursor: pointer;\n}\n\n.wro-btn:disabled {\n opacity: 0.55;\n cursor: not-allowed;\n}\n\n/* Floating call card (no full-screen mask) */\n.wro-call {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n width: 320px;\n padding: 20px 24px 28px;\n background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%);\n color: #0f172a;\n border-radius: 20px;\n box-shadow:\n 0 12px 40px rgba(15, 23, 42, 0.16),\n 0 2px 8px rgba(15, 23, 42, 0.06);\n text-align: center;\n cursor: grab;\n user-select: none;\n}\n\n.wro-call.is-dragging {\n cursor: grabbing;\n}\n\n.wro-call button {\n cursor: pointer;\n}\n\n.wro-call__minimize {\n position: absolute;\n top: 10px;\n right: 10px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n background: transparent;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n}\n\n.wro-call__minimize:hover {\n color: rgba(0, 0, 0, 0.85);\n background: rgba(0, 0, 0, 0.06);\n}\n\n.wro-call__avatar {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 72px;\n height: 72px;\n margin: 8px auto 16px;\n color: #fff;\n font-weight: 600;\n font-size: 28px;\n background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);\n border-radius: 50%;\n box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);\n}\n\n.wro-call__avatar.is-calling::after {\n position: absolute;\n inset: -6px;\n border: 2px solid rgba(59, 130, 246, 0.45);\n border-radius: 50%;\n animation: wro-ring 1.6s ease-out infinite;\n content: \"\";\n}\n\n.wro-call__avatar.is-connected {\n background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);\n box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);\n}\n\n.wro-call__avatar.is-failed {\n background: linear-gradient(145deg, #f87171 0%, #dc2626 100%);\n box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);\n}\n\n.wro-call__avatar.is-ended {\n background: linear-gradient(145deg, #94a3b8 0%, #64748b 100%);\n box-shadow: none;\n}\n\n.wro-call__name {\n max-width: 100%;\n margin-bottom: 8px;\n overflow: hidden;\n font-weight: 600;\n font-size: 20px;\n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call__number {\n max-width: 100%;\n margin-bottom: 4px;\n overflow: hidden;\n color: #0f172a;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: 0.02em;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call__status {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n margin-bottom: 8px;\n}\n\n.wro-call__state {\n font-size: 14px;\n color: #64748b;\n}\n\n.wro-call__state.is-calling {\n color: #2563eb;\n animation: wro-blink 1.5s ease-in-out infinite;\n}\n\n.wro-call__state.is-failed {\n color: #dc2626;\n}\n\n.wro-call__state.is-timeout {\n color: #d97706;\n}\n\n.wro-call__state.is-ended {\n color: #64748b;\n}\n\n.wro-call__duration {\n color: #16a34a;\n font-weight: 700;\n font-size: 28px;\n font-variant-numeric: tabular-nums;\n letter-spacing: 1px;\n}\n\n.wro-call__actions {\n display: flex;\n gap: 28px;\n justify-content: center;\n margin-top: 16px;\n cursor: grab;\n}\n\n.wro-call__action {\n display: flex;\n flex-direction: column;\n gap: 8px;\n align-items: center;\n}\n\n.wro-call__circle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 56px;\n height: 56px;\n padding: 0;\n color: #fff;\n border: none;\n border-radius: 50%;\n box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);\n cursor: pointer;\n transition:\n transform 0.15s ease,\n box-shadow 0.15s ease;\n}\n\n.wro-call__circle:hover:not(:disabled) {\n transform: translateY(-1px);\n box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);\n}\n\n.wro-call__circle:disabled {\n background: #fecaca !important;\n box-shadow: none;\n cursor: not-allowed;\n}\n\n.wro-call__circle.is-unmuted {\n background: #16a34a;\n}\n\n.wro-call__circle.is-muted {\n background: #dc2626;\n}\n\n.wro-call__circle.is-hangup {\n background: #ef4444;\n}\n\n.wro-call__circle.is-hangup:hover:not(:disabled) {\n background: #dc2626;\n}\n\n.wro-call__hangup-icon {\n display: inline-flex;\n transform: rotate(135deg);\n}\n\n.wro-call__label {\n color: #475569;\n font-size: 13px;\n line-height: 1;\n}\n\n.wro-call-mini {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 220px;\n min-height: 64px;\n padding: 12px 14px;\n background: #fff;\n border: 1px solid #e2e8f0;\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);\n cursor: grab;\n user-select: none;\n transition:\n box-shadow 0.2s ease,\n transform 0.2s ease;\n}\n\n.wro-call-mini.is-dragging {\n cursor: grabbing;\n transition: none;\n}\n\n.wro-call-mini:hover {\n box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);\n transform: translateY(-1px);\n}\n\n.wro-call-mini__name {\n overflow: hidden;\n color: #0f172a;\n font-weight: 600;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call-mini__duration {\n color: #16a34a;\n font-weight: 700;\n font-size: 16px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-call-mini__status {\n color: #2563eb;\n font-size: 12px;\n}\n\n@keyframes wro-blink {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.45;\n }\n}\n\n@keyframes wro-ring {\n 0% {\n transform: scale(0.92);\n opacity: 0.7;\n }\n 100% {\n transform: scale(1.18);\n opacity: 0;\n }\n}\n\n/* OutboundModeShell — dark workbench chrome */\n.wro-shell {\n --wro-shell-bg: #1a2332;\n --wro-shell-panel: #243044;\n --wro-shell-text: #e8eef7;\n --wro-shell-muted: #8b9bb4;\n --wro-shell-accent: #2dd4bf;\n --wro-shell-green: #22c55e;\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n width: 360px;\n padding: 0 0 16px;\n color: var(--wro-shell-text);\n background: var(--wro-shell-bg);\n border-radius: 12px;\n box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);\n cursor: grab;\n user-select: none;\n}\n\n.wro-shell.is-dragging {\n cursor: grabbing;\n}\n\n.wro-shell__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 14px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.06);\n}\n\n.wro-shell__title {\n display: inline-flex;\n gap: 8px;\n align-items: center;\n color: var(--wro-shell-accent);\n font-weight: 600;\n font-size: 14px;\n}\n\n.wro-shell__title-icon {\n display: inline-flex;\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__title-icon svg {\n width: 16px;\n height: 16px;\n}\n\n.wro-shell__header-actions {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.wro-shell__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n color: var(--wro-shell-muted);\n background: transparent;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n}\n\n.wro-shell__icon-btn:hover {\n color: var(--wro-shell-text);\n background: rgba(255, 255, 255, 0.06);\n}\n\n.wro-shell__icon-btn.is-close {\n color: #d54941;\n background: rgba(213, 73, 65, 0.25);\n}\n\n.wro-shell__icon-btn.is-close:hover {\n color: #fff;\n background: rgba(213, 73, 65, 0.6);\n}\n\n.wro-shell__mode-bar {\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding: 12px 14px 0;\n}\n\n.wro-shell__agent-status {\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: var(--wro-shell-muted);\n font-size: 13px;\n}\n\n.wro-shell__agent-status-value {\n color: var(--wro-shell-green);\n font-weight: 600;\n}\n\n.wro-shell__mode-actions {\n display: flex;\n gap: 8px;\n}\n\n.wro-shell__mode-actions > * {\n flex: 1;\n}\n\n.wro-shell__task-btn {\n border: 0;\n border-radius: 6px;\n padding: 6px 8px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n\n.wro-shell__task-btn.is-pause {\n background: #e8730c;\n color: #fff;\n}\n\n.wro-shell__task-btn.is-resume {\n background: var(--wro-shell-accent, #42a5f5);\n color: #fff;\n}\n\n.wro-shell__task-btn.is-cancel {\n background: rgba(213, 73, 65, 0.16);\n color: #d54941;\n}\n\n.wro-shell__task-btn.is-disabled,\n.wro-shell__icon-btn.is-disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.wro-shell__call-status {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n align-items: center;\n justify-content: center;\n margin-top: 16px;\n padding: 0 16px;\n text-align: center;\n}\n\n.wro-shell__state {\n color: var(--wro-shell-muted);\n font-size: 14px;\n}\n\n.wro-shell__state.is-calling {\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__state.is-next-missed {\n color: var(--wro-shell-muted);\n}\n\n.wro-shell__countdown-sec {\n color: var(--wro-shell-green);\n font-weight: 700;\n}\n\n.wro-shell__state.is-connected {\n color: var(--wro-shell-green);\n}\n\n.wro-shell__state.is-failed {\n color: #f87171;\n}\n\n.wro-shell__number {\n margin-top: 8px;\n padding: 0 16px;\n color: #fff;\n font-weight: 700;\n font-size: 26px;\n line-height: 1.2;\n text-align: center;\n letter-spacing: 0.5px;\n}\n\n.wro-shell__name {\n margin-top: 6px;\n padding: 0 16px;\n overflow: hidden;\n color: var(--wro-shell-muted);\n font-size: 13px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-shell__idle-hint {\n min-height: 36px;\n margin-top: 16px;\n padding: 0 16px;\n color: var(--wro-shell-accent);\n font-size: 14px;\n line-height: 36px;\n text-align: center;\n}\n\n.wro-shell__info {\n display: grid;\n grid-template-columns: repeat(5, 1fr);\n gap: 2px;\n width: calc(100% - 28px);\n margin: 10px 14px 4px;\n padding: 6px 4px;\n background: var(--wro-shell-panel);\n border-radius: 5px;\n}\n\n.wro-shell__info-item {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n padding: 2px 1px;\n text-align: center;\n border-right: 1px solid rgba(255, 255, 255, 0.08);\n}\n\n.wro-shell__info-item:last-child {\n border-right: none;\n}\n\n.wro-shell__info-label {\n display: flex;\n align-items: flex-end;\n justify-content: center;\n min-height: 2.4em;\n margin-bottom: 2px;\n color: var(--wro-shell-muted);\n font-size: 9px;\n line-height: 1.2;\n text-align: center;\n}\n\n.wro-shell__info-value {\n color: var(--wro-shell-text);\n font-weight: 600;\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-shell__info-meta {\n margin: 0 14px 4px;\n color: var(--wro-shell-muted);\n font-size: 11px;\n text-align: center;\n}\n\n.wro-shell__info-meta-val {\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__duration {\n margin-top: 14px;\n color: var(--wro-shell-green);\n font-weight: 700;\n font-size: 28px;\n font-variant-numeric: tabular-nums;\n text-align: center;\n letter-spacing: 1px;\n}\n\n.wro-shell__actions {\n display: flex;\n gap: 20px;\n justify-content: center;\n margin-top: 14px;\n}\n\n.wro-shell__circle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 52px;\n height: 52px;\n padding: 0;\n color: #fff;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n}\n\n.wro-shell__circle.is-unmuted {\n background: #16a34a;\n}\n\n.wro-shell__circle.is-muted {\n background: #dc2626;\n}\n\n.wro-shell__circle.is-hangup {\n background: #ef4444;\n}\n\n.wro-shell__circle:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.wro-shell__hangup-icon {\n display: inline-flex;\n transform: rotate(135deg);\n}\n\n.wro-shell__batch {\n margin: 16px 14px 0;\n padding: 12px;\n background: var(--wro-shell-panel);\n border-radius: 8px;\n}\n\n.wro-shell__batch-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n color: var(--wro-shell-accent);\n font-size: 13px;\n}\n\n.wro-shell__batch-bar {\n height: 6px;\n overflow: hidden;\n background: rgba(255, 255, 255, 0.08);\n border-radius: 999px;\n}\n\n.wro-shell__batch-bar-fill {\n height: 100%;\n background: var(--wro-shell-accent);\n border-radius: 999px;\n transition: width 0.2s ease;\n}\n\n.wro-shell__batch-stats {\n display: flex;\n justify-content: flex-start;\n gap: 16px;\n margin-top: 8px;\n color: var(--wro-shell-muted);\n font-size: 12px;\n}\n\n.wro-shell__batch-stats-val {\n color: var(--wro-shell-accent);\n font-weight: 600;\n}\n\n.wro-shell-mini {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 220px;\n min-height: 64px;\n padding: 12px 14px;\n color: var(--wro-shell-text, #e8eef7);\n background: #1a2332;\n border: 1px solid rgba(255, 255, 255, 0.08);\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);\n cursor: grab;\n user-select: none;\n}\n\n.wro-shell-mini.is-dragging {\n cursor: grabbing;\n}\n\n.wro-shell-mini__name {\n overflow: hidden;\n font-weight: 600;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-shell-mini__duration {\n color: #22c55e;\n font-weight: 700;\n font-size: 16px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-shell-mini__status {\n color: #2dd4bf;\n font-size: 12px;\n}\n";
2
+ export const STYLES_CSS = "/* @yinshan-tech/webrtc-react — override via CSS variables / className */\n\n.wro-root {\n --wro-btn-bg: #ef4444;\n --wro-btn-color: #fff;\n --wro-btn-radius: 8px;\n --wro-btn-padding: 6px 14px;\n --wro-btn-font-size: 14px;\n --wro-modal-z: 1100;\n font-family:\n system-ui,\n -apple-system,\n \"Segoe UI\",\n Roboto,\n sans-serif;\n}\n\n.wro-btn {\n background: var(--wro-btn-bg);\n color: var(--wro-btn-color);\n border: none;\n border-radius: var(--wro-btn-radius);\n padding: var(--wro-btn-padding);\n font-size: var(--wro-btn-font-size);\n cursor: pointer;\n}\n\n.wro-btn:disabled {\n opacity: 0.55;\n cursor: not-allowed;\n}\n\n/* Floating call card (no full-screen mask) */\n.wro-call {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n width: 320px;\n padding: 20px 24px 28px;\n background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%);\n color: #0f172a;\n border-radius: 20px;\n box-shadow:\n 0 12px 40px rgba(15, 23, 42, 0.16),\n 0 2px 8px rgba(15, 23, 42, 0.06);\n text-align: center;\n cursor: grab;\n user-select: none;\n}\n\n.wro-call.is-dragging {\n cursor: grabbing;\n}\n\n.wro-call button {\n cursor: pointer;\n}\n\n.wro-call__minimize {\n position: absolute;\n top: 10px;\n right: 10px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n background: transparent;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n}\n\n.wro-call__minimize:hover {\n color: rgba(0, 0, 0, 0.85);\n background: rgba(0, 0, 0, 0.06);\n}\n\n.wro-call__avatar {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 72px;\n height: 72px;\n margin: 8px auto 16px;\n color: #fff;\n font-weight: 600;\n font-size: 28px;\n background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);\n border-radius: 50%;\n box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);\n}\n\n.wro-call__avatar.is-calling::after {\n position: absolute;\n inset: -6px;\n border: 2px solid rgba(59, 130, 246, 0.45);\n border-radius: 50%;\n animation: wro-ring 1.6s ease-out infinite;\n content: \"\";\n}\n\n.wro-call__avatar.is-connected {\n background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);\n box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);\n}\n\n.wro-call__avatar.is-failed {\n background: linear-gradient(145deg, #f87171 0%, #dc2626 100%);\n box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);\n}\n\n.wro-call__avatar.is-ended {\n background: linear-gradient(145deg, #94a3b8 0%, #64748b 100%);\n box-shadow: none;\n}\n\n.wro-call__name {\n max-width: 100%;\n margin-bottom: 8px;\n overflow: hidden;\n font-weight: 600;\n font-size: 20px;\n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call__number {\n max-width: 100%;\n margin-bottom: 4px;\n overflow: hidden;\n color: #0f172a;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: 0.02em;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call__status {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n margin-bottom: 8px;\n}\n\n.wro-call__state {\n font-size: 14px;\n color: #64748b;\n}\n\n.wro-call__state.is-calling {\n color: #2563eb;\n animation: wro-blink 1.5s ease-in-out infinite;\n}\n\n.wro-call__state.is-failed {\n color: #dc2626;\n}\n\n.wro-call__state.is-timeout {\n color: #d97706;\n}\n\n.wro-call__state.is-ended {\n color: #64748b;\n}\n\n.wro-call__duration {\n color: #16a34a;\n font-weight: 700;\n font-size: 28px;\n font-variant-numeric: tabular-nums;\n letter-spacing: 1px;\n}\n\n.wro-call__actions {\n display: flex;\n gap: 28px;\n justify-content: center;\n margin-top: 16px;\n cursor: grab;\n}\n\n.wro-call__action {\n display: flex;\n flex-direction: column;\n gap: 8px;\n align-items: center;\n}\n\n.wro-call__circle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 56px;\n height: 56px;\n padding: 0;\n color: #fff;\n border: none;\n border-radius: 50%;\n box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);\n cursor: pointer;\n transition:\n transform 0.15s ease,\n box-shadow 0.15s ease;\n}\n\n.wro-call__circle:hover:not(:disabled) {\n transform: translateY(-1px);\n box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);\n}\n\n.wro-call__circle:disabled {\n background: #fecaca !important;\n box-shadow: none;\n cursor: not-allowed;\n}\n\n.wro-call__circle.is-unmuted {\n background: #16a34a;\n}\n\n.wro-call__circle.is-muted {\n background: #dc2626;\n}\n\n.wro-call__circle.is-hangup {\n background: #ef4444;\n}\n\n.wro-call__circle.is-hangup:hover:not(:disabled) {\n background: #dc2626;\n}\n\n.wro-call__hangup-icon {\n display: inline-flex;\n transform: rotate(135deg);\n}\n\n.wro-call__label {\n color: #475569;\n font-size: 13px;\n line-height: 1;\n}\n\n.wro-call-mini {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 220px;\n min-height: 64px;\n padding: 12px 14px;\n background: #fff;\n border: 1px solid #e2e8f0;\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);\n cursor: grab;\n user-select: none;\n transition:\n box-shadow 0.2s ease,\n transform 0.2s ease;\n}\n\n.wro-call-mini.is-dragging {\n cursor: grabbing;\n transition: none;\n}\n\n.wro-call-mini:hover {\n box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);\n transform: translateY(-1px);\n}\n\n.wro-call-mini__name {\n overflow: hidden;\n color: #0f172a;\n font-weight: 600;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-call-mini__duration {\n color: #16a34a;\n font-weight: 700;\n font-size: 16px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-call-mini__status {\n color: #2563eb;\n font-size: 12px;\n}\n\n@keyframes wro-blink {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.45;\n }\n}\n\n@keyframes wro-ring {\n 0% {\n transform: scale(0.92);\n opacity: 0.7;\n }\n 100% {\n transform: scale(1.18);\n opacity: 0;\n }\n}\n\n/* OutboundModeShell — dark workbench chrome */\n.wro-shell {\n --wro-shell-bg: #1a2332;\n --wro-shell-panel: #243044;\n --wro-shell-text: #e8eef7;\n --wro-shell-muted: #8b9bb4;\n --wro-shell-accent: #2dd4bf;\n --wro-shell-green: #22c55e;\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n width: 360px;\n padding: 0 0 16px;\n color: var(--wro-shell-text);\n background: var(--wro-shell-bg);\n border-radius: 12px;\n box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);\n cursor: grab;\n user-select: none;\n}\n\n.wro-shell.is-dragging {\n cursor: grabbing;\n}\n\n.wro-shell__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 14px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.06);\n}\n\n.wro-shell__title {\n display: inline-flex;\n gap: 8px;\n align-items: center;\n color: var(--wro-shell-accent);\n font-weight: 600;\n font-size: 14px;\n}\n\n.wro-shell__title-icon {\n display: inline-flex;\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__title-icon svg {\n width: 16px;\n height: 16px;\n}\n\n.wro-shell__header-actions {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.wro-shell__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n color: var(--wro-shell-muted);\n background: transparent;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n}\n\n.wro-shell__icon-btn:hover {\n color: var(--wro-shell-text);\n background: rgba(255, 255, 255, 0.06);\n}\n\n.wro-shell__icon-btn.is-close {\n color: #d54941;\n background: rgba(213, 73, 65, 0.25);\n}\n\n.wro-shell__icon-btn.is-close:hover {\n color: #fff;\n background: rgba(213, 73, 65, 0.6);\n}\n\n.wro-shell__mode-bar {\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding: 12px 14px 0;\n}\n\n.wro-shell__agent-status {\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: var(--wro-shell-muted);\n font-size: 13px;\n}\n\n.wro-shell__agent-status-value {\n color: var(--wro-shell-green);\n font-weight: 600;\n}\n\n.wro-shell__mode-actions {\n display: flex;\n gap: 8px;\n}\n\n.wro-shell__mode-actions > * {\n flex: 1;\n}\n\n.wro-shell__task-btn {\n border: 0;\n border-radius: 6px;\n padding: 6px 8px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n\n.wro-shell__task-btn.is-pause {\n background: #e8730c;\n color: #fff;\n}\n\n.wro-shell__task-btn.is-resume {\n background: var(--wro-shell-accent, #42a5f5);\n color: #fff;\n}\n\n.wro-shell__task-btn.is-cancel {\n background: rgba(213, 73, 65, 0.16);\n color: #d54941;\n}\n\n.wro-shell__task-btn.is-disabled,\n.wro-shell__icon-btn.is-disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.wro-shell__call-status {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n align-items: center;\n justify-content: center;\n margin-top: 16px;\n padding: 0 16px;\n text-align: center;\n}\n\n.wro-shell__state {\n color: var(--wro-shell-muted);\n font-size: 14px;\n}\n\n.wro-shell__state.is-calling {\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__state.is-next-missed {\n color: var(--wro-shell-muted);\n}\n\n.wro-shell__countdown-sec {\n color: var(--wro-shell-green);\n font-weight: 700;\n}\n\n.wro-shell__state.is-connected {\n color: var(--wro-shell-green);\n}\n\n.wro-shell__state.is-failed {\n color: #f87171;\n}\n\n.wro-shell__number {\n margin-top: 8px;\n padding: 0 16px;\n color: #fff;\n font-weight: 700;\n font-size: 26px;\n line-height: 1.2;\n text-align: center;\n letter-spacing: 0.5px;\n}\n\n.wro-shell__name {\n margin-top: 6px;\n padding: 0 16px;\n overflow: hidden;\n color: var(--wro-shell-muted);\n font-size: 13px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-shell__idle-hint {\n min-height: 36px;\n margin-top: 16px;\n padding: 0 16px;\n color: var(--wro-shell-accent);\n font-size: 14px;\n line-height: 36px;\n text-align: center;\n}\n\n.wro-shell__info {\n display: grid;\n grid-template-columns: repeat(5, 1fr);\n gap: 2px;\n width: calc(100% - 28px);\n margin: 10px 14px 4px;\n padding: 6px 4px;\n background: var(--wro-shell-panel);\n border-radius: 5px;\n}\n\n.wro-shell__info-item {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n padding: 2px 1px;\n text-align: center;\n border-right: 1px solid rgba(255, 255, 255, 0.08);\n}\n\n.wro-shell__info-item:last-child {\n border-right: none;\n}\n\n.wro-shell__info-label {\n display: flex;\n align-items: flex-end;\n justify-content: center;\n min-height: 2.4em;\n margin-bottom: 2px;\n color: var(--wro-shell-muted);\n font-size: 9px;\n line-height: 1.2;\n text-align: center;\n}\n\n.wro-shell__info-value {\n color: var(--wro-shell-text);\n font-weight: 600;\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-shell__info-meta {\n margin: 0 14px 4px;\n color: var(--wro-shell-muted);\n font-size: 11px;\n text-align: center;\n}\n\n.wro-shell__info-meta-val {\n color: var(--wro-shell-accent);\n}\n\n.wro-shell__duration {\n margin-top: 14px;\n color: var(--wro-shell-green);\n font-weight: 700;\n font-size: 28px;\n font-variant-numeric: tabular-nums;\n text-align: center;\n letter-spacing: 1px;\n}\n\n.wro-shell__actions {\n display: flex;\n gap: 20px;\n justify-content: center;\n margin-top: 14px;\n}\n\n.wro-shell__circle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 52px;\n height: 52px;\n padding: 0;\n color: #fff;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n}\n\n.wro-shell__circle.is-unmuted {\n background: #16a34a;\n}\n\n.wro-shell__circle.is-muted {\n background: #dc2626;\n}\n\n.wro-shell__circle.is-hangup {\n background: #ef4444;\n}\n\n.wro-shell__circle:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.wro-shell__hangup-icon {\n display: inline-flex;\n transform: rotate(135deg);\n}\n\n.wro-shell__batch {\n margin: 16px 14px 0;\n padding: 12px;\n background: var(--wro-shell-panel);\n border-radius: 8px;\n}\n\n.wro-shell__batch-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n color: var(--wro-shell-accent);\n font-size: 13px;\n}\n\n.wro-shell__batch-bar {\n height: 6px;\n overflow: hidden;\n background: rgba(255, 255, 255, 0.08);\n border-radius: 999px;\n}\n\n.wro-shell__batch-bar-fill {\n height: 100%;\n background: var(--wro-shell-accent);\n border-radius: 999px;\n transition: width 0.2s ease;\n}\n\n.wro-shell__batch-stats {\n display: flex;\n justify-content: flex-start;\n gap: 16px;\n margin-top: 8px;\n color: var(--wro-shell-muted);\n font-size: 12px;\n}\n\n.wro-shell__batch-stats-val {\n color: var(--wro-shell-accent);\n font-weight: 600;\n}\n\n.wro-shell-mini {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: var(--wro-modal-z);\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 220px;\n min-height: 64px;\n padding: 12px 14px;\n color: var(--wro-shell-text, #e8eef7);\n background: #1a2332;\n border: 1px solid rgba(255, 255, 255, 0.08);\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);\n cursor: grab;\n user-select: none;\n}\n\n.wro-shell-mini.is-dragging {\n cursor: grabbing;\n}\n\n.wro-shell-mini__name {\n overflow: hidden;\n font-weight: 600;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.wro-shell-mini__duration {\n color: #22c55e;\n font-weight: 700;\n font-size: 16px;\n font-variant-numeric: tabular-nums;\n}\n\n.wro-shell-mini__status {\n color: #2dd4bf;\n font-size: 12px;\n}\n\n.wro-aligning-mask {\n position: fixed;\n inset: 0;\n z-index: 1400;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(15, 23, 42, 0.45);\n pointer-events: auto;\n}\n\n.wro-aligning-box {\n min-width: 220px;\n padding: 20px 28px;\n border-radius: 12px;\n background: #fff;\n color: #0f172a;\n font-size: 15px;\n font-weight: 600;\n box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);\n}\n";
3
3
  //# sourceMappingURL=stylesInject.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stylesInject.js","sourceRoot":"","sources":["../src/stylesInject.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,MAAM,CAAC,MAAM,UAAU,GAAG,2qbAA2qb,CAAC"}
1
+ {"version":3,"file":"stylesInject.js","sourceRoot":"","sources":["../src/stylesInject.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,MAAM,CAAC,MAAM,UAAU,GAAG,gmcAAgmc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yinshan-tech/webrtc-react",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "React UI for @yinshan-tech/webrtc-sdk Softphone: button, call widget, hooks (no antd)",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "prepublishOnly": "npm run build"
28
28
  },
29
29
  "peerDependencies": {
30
- "@yinshan-tech/webrtc-sdk": "^0.8.7",
30
+ "@yinshan-tech/webrtc-sdk": "^0.8.9",
31
31
  "react": ">=17.0.0",
32
32
  "react-dom": ">=17.0.0"
33
33
  },