@schandlergarcia/sf-web-components 1.9.36 → 1.9.37
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/package.json
CHANGED
|
@@ -140,8 +140,6 @@ SEARCH="src/pages/Search.tsx"
|
|
|
140
140
|
echo "→ Updating ${SEARCH}..."
|
|
141
141
|
|
|
142
142
|
cat > "$SEARCH" << 'SEARCH_EOF'
|
|
143
|
-
import { GlobalSearchInput } from "../features/global-search/components/search/GlobalSearchInput";
|
|
144
|
-
|
|
145
143
|
export default function Search() {
|
|
146
144
|
return (
|
|
147
145
|
<div className="flex min-h-[80vh] items-center justify-center px-4 sm:px-6 lg:px-8">
|
|
@@ -150,7 +148,13 @@ export default function Search() {
|
|
|
150
148
|
<h1 className="text-4xl font-bold text-slate-900 dark:text-slate-50 mb-4">Search</h1>
|
|
151
149
|
<p className="text-lg text-slate-600 dark:text-slate-300">Find records across your organization.</p>
|
|
152
150
|
</div>
|
|
153
|
-
<
|
|
151
|
+
<div className="relative">
|
|
152
|
+
<input
|
|
153
|
+
type="text"
|
|
154
|
+
placeholder="Search..."
|
|
155
|
+
className="w-full px-4 py-3 text-lg border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-50"
|
|
156
|
+
/>
|
|
157
|
+
</div>
|
|
154
158
|
</div>
|
|
155
159
|
</div>
|
|
156
160
|
);
|
|
@@ -173,9 +177,6 @@ const AppLayout = lazy(() => import('./appLayout'));
|
|
|
173
177
|
const Home = lazy(() => import('./pages/Home'));
|
|
174
178
|
const Search = lazy(() => import('./pages/Search'));
|
|
175
179
|
const NotFound = lazy(() => import('./pages/NotFound'));
|
|
176
|
-
const TestAccPage = lazy(() => import("./pages/TestAccPage"));
|
|
177
|
-
const GlobalSearch = lazy(() => import("./features/global-search/pages/GlobalSearch"));
|
|
178
|
-
const DetailPage = lazy(() => import("./features/global-search/pages/DetailPage"));
|
|
179
180
|
|
|
180
181
|
function SuspenseWrap({ children }: { children: React.ReactNode }) {
|
|
181
182
|
return <Suspense fallback={<div className="flex min-h-screen items-center justify-center text-sm text-muted-foreground">Loading...</div>}>{children}</Suspense>;
|
|
@@ -200,29 +201,6 @@ export const routes: RouteObject[] = [
|
|
|
200
201
|
element: <SuspenseWrap><Search /></SuspenseWrap>,
|
|
201
202
|
handle: { showInNavigation: true, showNavBar: true, label: 'Search' }
|
|
202
203
|
},
|
|
203
|
-
{
|
|
204
|
-
path: "test-acc",
|
|
205
|
-
element: <SuspenseWrap><TestAccPage /></SuspenseWrap>,
|
|
206
|
-
handle: { showInNavigation: true, label: "Test ACC" }
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
path: "global-search/:query",
|
|
210
|
-
element: (
|
|
211
|
-
<SuspenseWrap>
|
|
212
|
-
<GlobalSearch />
|
|
213
|
-
</SuspenseWrap>
|
|
214
|
-
),
|
|
215
|
-
handle: { showInNavigation: false }
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
path: "object/:objectApiName/:recordId",
|
|
219
|
-
element: (
|
|
220
|
-
<SuspenseWrap>
|
|
221
|
-
<DetailPage />
|
|
222
|
-
</SuspenseWrap>
|
|
223
|
-
),
|
|
224
|
-
handle: { showInNavigation: false }
|
|
225
|
-
},
|
|
226
204
|
{
|
|
227
205
|
path: '*',
|
|
228
206
|
element: <SuspenseWrap><NotFound /></SuspenseWrap>
|
|
@@ -329,7 +307,8 @@ export default function AppLayout() {
|
|
|
329
307
|
</nav>
|
|
330
308
|
)}
|
|
331
309
|
<Outlet />
|
|
332
|
-
|
|
310
|
+
{/* Uncomment and configure when you have an Agentforce agent:
|
|
311
|
+
<AgentforceConversationClient agentId="your-agent-id" /> */}
|
|
333
312
|
</>
|
|
334
313
|
);
|
|
335
314
|
}
|