@freedom-code-compliance/fcc-redesign 0.1.50 → 0.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -55,6 +55,24 @@ function App() {
55
55
 
56
56
  `FCCDesignProvider` wraps `ThemeProvider` and `ToastProvider` so consuming apps can adopt the design system with a single provider. If an app needs custom theme wiring, `ThemeProvider`, `useTheme`, `ToastProvider`, and `useToast` are also exported individually.
57
57
 
58
+ ## Shared Calls Sidepanel
59
+
60
+ `FCCCallsSidePanel` is the reusable calls panel surface for `fccPRO` and `fccOPS`. It is data-driven, so each app can keep its own Twilio/Supabase logic and pass normalized call history, voicemail, callback, and handler props into the shared UI.
61
+
62
+ ```jsx
63
+ import { FCCCallsSidePanel } from '@freedom-code-compliance/fcc-redesign'
64
+
65
+ <FCCCallsSidePanel
66
+ history={recentCalls}
67
+ voicemails={voicemails}
68
+ callbacks={callbacks}
69
+ currentUserId={user.id}
70
+ onDial={(number) => startOutboundCall(number)}
71
+ onOpenTicket={(item) => openTicket(item.ticket)}
72
+ onClose={closeCallsPanel}
73
+ />
74
+ ```
75
+
58
76
  ## Shared App Shell
59
77
 
60
78
  The library also exports a reusable FCC page shell for `fccOPS` and `fccPRO`: