@schandlergarcia/sf-web-components 2.3.11 → 2.3.12

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/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.3.12] - 2026-04-13
9
+
10
+ ### Changed
11
+ - **Replaced ChatBar with floating Agentforce panel** — Removed the command-palette ChatBar and useEvaAgent hook. Added a new `AgentPanel` component: a floating chat bubble (bottom-right, sparkle icon) that opens a 380px side panel with dark header ("Engine Virtual Agent / Eva · Online"), message bubbles, animated typing indicator (bouncing dots), and text input. Conversation is hardcoded with placeholder messages that play sequentially with realistic typing delays when the panel first opens. User can also type free-form messages that get a canned reply. Styled with dashboard CSS variables for full theme compatibility.
12
+
8
13
  ## [2.3.11] - 2026-04-13
9
14
 
10
15
  ### Added
@@ -1,10 +1,10 @@
1
- import { ListCard, ActivityCard, D3Chart, Dropdown, Button, Modal, CardSkeleton, ChatBar } from "@/components/library";
1
+ import { ListCard, ActivityCard, D3Chart, Dropdown, Button, Modal, CardSkeleton } from "@/components/library";
2
2
  import useDataSource from "@/components/library/data/useDataSource";
3
3
  import { useThemeMode } from "@/components/library/theme/AppThemeProvider";
4
4
  import { toast } from "sonner";
5
5
  import React from "react";
6
6
  import { usePartnerDashboardData } from "@/hooks/usePartnerDashboardData";
7
- import useEvaAgent from "@/hooks/useEvaAgent";
7
+ import AgentPanel from "@/components/AgentPanel";
8
8
  import { ENABLE_SAMPLE_DATA_CACHE } from "@/lib/dataStrategy";
9
9
  import {
10
10
  PENALTY_TABLE_ITEMS,
@@ -56,9 +56,6 @@ export default function PartnerHubDashboard() {
56
56
  const [isDisputesModalOpen, setIsDisputesModalOpen] = React.useState(false);
57
57
  const [isInvoicesModalOpen, setIsInvoicesModalOpen] = React.useState(false);
58
58
 
59
- const eva = useEvaAgent();
60
- React.useEffect(() => { eva.connect(); }, []);
61
-
62
59
  // Simulated logged-in partner (in real app, this comes from auth context)
63
60
  const currentPartner = {
64
61
  name: "Summit Hotels & Resorts",
@@ -839,31 +836,6 @@ export default function PartnerHubDashboard() {
839
836
 
840
837
  {/* Main Content */}
841
838
  <div className="max-w-[1600px] mx-auto px-8 -mt-12 space-y-10">
842
- {/* Eva Agent ChatBar */}
843
- <div className="relative z-10">
844
- <ChatBar
845
- title="Eva — Partner Assistant"
846
- placeholder="Ask Eva anything about your properties, invoices, or penalties…"
847
- suggestions={[
848
- "Summarize my penalties",
849
- "Which property is growing fastest?",
850
- "Show overdue invoices",
851
- ]}
852
- onSend={async (text) => {
853
- if (eva.isReady) {
854
- await eva.sendMessage(text);
855
- } else {
856
- return "Eva is still connecting — please try again in a moment.";
857
- }
858
- }}
859
- initialMessages={eva.messages.map((m) => ({
860
- id: m.id,
861
- role: m.role === "agent" ? "assistant" : "user",
862
- content: m.text,
863
- }))}
864
- />
865
- </div>
866
-
867
839
  {/* Quick Stats - Uniform metrics grid */}
868
840
  <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-5 animate-slide-up relative z-10">
869
841
  {/* Revenue */}
@@ -2102,6 +2074,8 @@ export default function PartnerHubDashboard() {
2102
2074
  </Modal.Container>
2103
2075
  </Modal.Backdrop>
2104
2076
  </Modal>
2077
+
2078
+ <AgentPanel />
2105
2079
  </div>
2106
2080
  );
2107
2081
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "Reusable Salesforce web components library with Tailwind CSS v4 and shadcn/ui",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",