@solidxai/core-ui 0.1.9-beta.1 → 0.1.9-beta.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.
Files changed (67) hide show
  1. package/dist/components/auth/AuthLayout.d.ts.map +1 -1
  2. package/dist/components/auth/AuthLayout.js +16 -15
  3. package/dist/components/auth/AuthLayout.js.map +1 -1
  4. package/dist/components/auth/AuthLayout.tsx +3 -1
  5. package/dist/components/auth/ForgotPasswordThankYou.js +1 -1
  6. package/dist/components/auth/ForgotPasswordThankYou.js.map +1 -1
  7. package/dist/components/auth/ForgotPasswordThankYou.tsx +2 -2
  8. package/dist/components/auth/SolidForgotPassword.js +1 -1
  9. package/dist/components/auth/SolidForgotPassword.js.map +1 -1
  10. package/dist/components/auth/SolidForgotPassword.tsx +2 -2
  11. package/dist/components/auth/SolidInitialLoginOtp.js +8 -8
  12. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  13. package/dist/components/auth/SolidInitialLoginOtp.tsx +1 -1
  14. package/dist/components/auth/SolidInitiateRegisterOtp.js +8 -8
  15. package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
  16. package/dist/components/auth/SolidInitiateRegisterOtp.tsx +1 -1
  17. package/dist/components/auth/SolidLogin.js +7 -8
  18. package/dist/components/auth/SolidLogin.js.map +1 -1
  19. package/dist/components/auth/SolidLogin.tsx +1 -1
  20. package/dist/components/auth/SolidRegister.js +9 -9
  21. package/dist/components/auth/SolidRegister.js.map +1 -1
  22. package/dist/components/auth/SolidRegister.tsx +2 -2
  23. package/dist/components/common/SocialMediaLogin.js +1 -1
  24. package/dist/components/common/SocialMediaLogin.js.map +1 -1
  25. package/dist/components/common/SocialMediaLogin.tsx +4 -4
  26. package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
  27. package/dist/components/core/form/SolidFormActionHeader.js +1 -0
  28. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  29. package/dist/components/core/form/SolidFormActionHeader.tsx +2 -1
  30. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  31. package/dist/components/core/form/SolidFormView.js +5 -1
  32. package/dist/components/core/form/SolidFormView.js.map +1 -1
  33. package/dist/components/core/form/SolidFormView.tsx +4 -1
  34. package/dist/components/core/tree/SolidTreeTable.d.ts +1 -1
  35. package/dist/components/core/tree/SolidTreeTable.d.ts.map +1 -1
  36. package/dist/components/core/tree/SolidTreeTable.js +78 -78
  37. package/dist/components/core/tree/SolidTreeTable.js.map +1 -1
  38. package/dist/components/core/tree/SolidTreeTable.tsx +1 -10
  39. package/dist/components/core/users/CreateUser.css +27 -2
  40. package/dist/components/core/users/CreateUser.d.ts.map +1 -1
  41. package/dist/components/core/users/CreateUser.js +14 -12
  42. package/dist/components/core/users/CreateUser.js.map +1 -1
  43. package/dist/components/core/users/CreateUser.tsx +18 -2
  44. package/dist/index.d.ts +2 -0
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +1 -0
  47. package/dist/index.js.map +1 -1
  48. package/dist/index.ts +2 -0
  49. package/dist/resources/shadcn-base.css +17 -9
  50. package/dist/routes/SolidRouteMetadataBoundary.d.ts +5 -0
  51. package/dist/routes/SolidRouteMetadataBoundary.d.ts.map +1 -0
  52. package/dist/routes/SolidRouteMetadataBoundary.js +72 -0
  53. package/dist/routes/SolidRouteMetadataBoundary.js.map +1 -0
  54. package/dist/routes/SolidRouteMetadataBoundary.tsx +77 -0
  55. package/dist/routes/pages/studio/StudioLandingPage.d.ts.map +1 -1
  56. package/dist/routes/pages/studio/StudioLandingPage.js +35 -7
  57. package/dist/routes/pages/studio/StudioLandingPage.js.map +1 -1
  58. package/dist/routes/pages/studio/StudioLandingPage.tsx +42 -6
  59. package/dist/routes/solidRoutes.d.ts.map +1 -1
  60. package/dist/routes/solidRoutes.js +47 -26
  61. package/dist/routes/solidRoutes.js.map +1 -1
  62. package/dist/routes/solidRoutes.tsx +47 -26
  63. package/dist/routes/types.d.ts +7 -0
  64. package/dist/routes/types.d.ts.map +1 -1
  65. package/dist/routes/types.js.map +1 -1
  66. package/dist/routes/types.ts +8 -0
  67. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StudioLandingPage.js","sourceRoot":"","sources":["../../../../src/routes/pages/studio/StudioLandingPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,kFAAkF;AAElF,IAAM,SAAS,GAAG,cAAM,OAAA,CACtB,cAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,iBAAa,MAAM,YAC5E,eAAM,CAAC,EAAC,+BAA+B,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,GAAG,GAC3H,CACP,EAJuB,CAIvB,CAAC;AAEF,IAAM,qBAAqB,GAAG,cAAM,OAAA,CAClC,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,iBAAa,MAAM,aAC5E,eAAM,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,GAAG,EAC5F,eAAM,CAAC,EAAC,SAAS,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,GAAG,EAC5D,eAAM,CAAC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E,EAC/F,OAAO,EAAE,cAAM,OAAA,WAAW,CAAC,IAAI,CAAC,EAAjB,CAAiB,gBACrB,WAAW,EACtB,KAAK,EAAC,WAAW,YAEjB,KAAC,YAAY,KAAG,GACT,IACL,CACP,GACG,EAEL,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CACtB,KAAC,UAAU,KAAG,CACf,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,+BAA+B,YAC3C,OAAO,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,CAAC,IAAK,OAAA,CACzB,KAAC,UAAU,IAAkB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,UAA5C,KAAK,CAAC,IAAI,CAAqC,CACjE,EAF0B,CAE1B,CAAC,GACE,CACP,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,wDAAwD,YACpE,OAAO,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,CAAC,IAAK,OAAA,CACzB,KAAC,UAAU,IAAkB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,IAAnD,KAAK,CAAC,IAAI,CAA6C,CACzE,EAF0B,CAE1B,CAAC,GACE,CACP,IACG,GACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useState } from \"react\";\nimport { useNavigate } from \"react-router-dom\";\nimport { useSolidLayoutRegistry } from \"../../SolidLayoutRegistry\";\nimport type { SolidLayoutEntry } from \"../../SolidLayoutRegistry\";\nimport { ChatIcon } from \"../../../components/layout/SolidAiStudioLayout\";\nimport { env } from \"../../../adapters/env\";\n\n// ── Icons ──────────────────────────────────────────────────────────────────────\n\nconst ArrowIcon = () => (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M2.5 7h9M8 3.5l3.5 3.5L8 10.5\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n);\n\nconst LayoutPlaceholderIcon = () => (\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"1\" width=\"16\" height=\"16\" rx=\"2.5\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <path d=\"M1 6h16\" stroke=\"currentColor\" strokeWidth=\"1.1\" />\n <path d=\"M6 6v11\" stroke=\"currentColor\" strokeWidth=\"1.1\" />\n </svg>\n);\n\nconst NoLayoutIcon = () => (\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"2\" y=\"2\" width=\"28\" height=\"28\" rx=\"4\" stroke=\"currentColor\" strokeWidth=\"1.5\" opacity=\"0.4\" strokeDasharray=\"4 3\" />\n <path d=\"M11 16h10M16 11v10\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" opacity=\"0.5\" />\n </svg>\n);\n\nconst GridViewIcon = () => (\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"1\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"8.5\" y=\"1\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"1\" y=\"8.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"8.5\" y=\"8.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n </svg>\n);\n\nconst ListViewIcon = () => (\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"2.5\" width=\"13\" height=\"2.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"1\" y=\"6.25\" width=\"13\" height=\"2.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"1\" y=\"10\" width=\"13\" height=\"2.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n </svg>\n);\n\n// ── Per-card accent colours (cycles by index) ──────────────────────────────────\n\nconst CARD_ACCENTS = [\n { bg: \"hsl(224 70% 54%)\", cls: \"solid-studio-home-card-icon--backend\" },\n { bg: \"hsl(158 64% 42%)\", cls: \"solid-studio-home-card-icon--list\" },\n { bg: \"hsl(32 95% 48%)\", cls: \"solid-studio-home-card-icon--kanban\" },\n { bg: \"hsl(270 65% 58%)\", cls: \"solid-studio-home-card-icon--form\" },\n { bg: \"hsl(199 89% 48%)\", cls: \"solid-studio-home-card-icon--tree\" },\n { bg: \"hsl(215 25% 52%)\", cls: \"solid-studio-home-card-icon--settings\" },\n];\n\n// ── Generic layout wireframe thumbnail ────────────────────────────────────────\n\nfunction LayoutThumb({ accentColor, title }: { accentColor: string; title: string }) {\n const initials = title\n .split(/\\s+/)\n .slice(0, 2)\n .map((w) => w[0]?.toUpperCase() ?? \"\")\n .join(\"\");\n\n return (\n <svg\n className=\"solid-studio-home-card-thumb\"\n viewBox=\"0 0 280 122\"\n fill=\"none\"\n aria-hidden=\"true\"\n >\n {/* background */}\n <rect width=\"280\" height=\"122\" fill=\"var(--sidebar-background)\" />\n\n {/* sidebar */}\n <rect width=\"40\" height=\"122\" fill=\"var(--border)\" opacity=\"0.7\" />\n <rect x=\"7\" y=\"14\" width=\"26\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.45\" />\n <rect x=\"7\" y=\"26\" width=\"26\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n <rect x=\"7\" y=\"38\" width=\"26\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n <rect x=\"7\" y=\"50\" width=\"26\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n\n {/* top bar */}\n <rect x=\"40\" y=\"0\" width=\"240\" height=\"18\" fill=\"var(--border)\" opacity=\"0.5\" />\n\n {/* accent header band */}\n <rect x=\"48\" y=\"22\" width=\"224\" height=\"28\" rx=\"3\" fill={accentColor} opacity=\"0.12\" />\n <rect x=\"56\" y=\"30\" width=\"80\" height=\"7\" rx=\"2\" fill={accentColor} opacity=\"0.45\" />\n <rect x=\"56\" y=\"40\" width=\"50\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.3\" />\n\n {/* content blocks */}\n <rect x=\"48\" y=\"58\" width=\"70\" height=\"58\" rx=\"3\" fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth=\"0.8\" />\n <rect x=\"126\" y=\"58\" width=\"70\" height=\"58\" rx=\"3\" fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth=\"0.8\" />\n <rect x=\"204\" y=\"58\" width=\"68\" height=\"26\" rx=\"3\" fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth=\"0.8\" />\n <rect x=\"204\" y=\"90\" width=\"68\" height=\"26\" rx=\"3\" fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth=\"0.8\" />\n\n {/* inner muted lines */}\n <rect x=\"54\" y=\"65\" width=\"48\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n <rect x=\"54\" y=\"73\" width=\"36\" height=\"3\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.2\" />\n <rect x=\"132\" y=\"65\" width=\"48\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n <rect x=\"132\" y=\"73\" width=\"36\" height=\"3\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.2\" />\n\n {/* initials badge */}\n <circle cx=\"60\" cy=\"98\" r=\"9\" fill={accentColor} opacity=\"0.18\" />\n <text\n x=\"60\"\n y=\"102\"\n textAnchor=\"middle\"\n fontSize=\"7\"\n fontWeight=\"700\"\n fill={accentColor}\n opacity=\"0.8\"\n fontFamily=\"system-ui, sans-serif\"\n >\n {initials}\n </text>\n </svg>\n );\n}\n\n// ── Card Components (shadcn-inspired) ────────────────────────────────────────\n\nfunction Card({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return (\n <div className={`solid-studio-card ${className}`}>\n {children}\n </div>\n );\n}\n\nfunction CardHeader({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <div className={`solid-studio-card-header ${className}`}>{children}</div>;\n}\n\nfunction CardTitle({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <h3 className={`solid-studio-card-title ${className}`}>{children}</h3>;\n}\n\nfunction CardDescription({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <p className={`solid-studio-card-description ${className}`}>{children}</p>;\n}\n\nfunction CardContent({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <div className={`solid-studio-card-content ${className}`}>{children}</div>;\n}\n\nfunction CardFooter({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <div className={`solid-studio-card-footer ${className}`}>{children}</div>;\n}\n\n// ── Empty state ───────────────────────────────────────────────────────────────\n\nfunction EmptyState() {\n return (\n <div className=\"solid-studio-landing-empty-container\">\n <Card className=\"solid-studio-landing-empty-card\">\n <CardHeader className=\"solid-studio-landing-empty-header\">\n <div className=\"solid-studio-home-badge\" style={{ marginBottom: '12px' }}>Frontend Studio</div>\n <CardTitle>Frontend layout will appear here</CardTitle>\n <CardDescription>\n Register your app layouts to explore and customize them in the Studio.\n </CardDescription>\n </CardHeader>\n\n <CardContent className=\"solid-studio-landing-empty-body\">\n <div className=\"solid-studio-landing-empty-primary-action\">\n <p>To get started, use the <strong>SolidX AI Agent</strong> to add a new custom layout.</p>\n <button\n type=\"button\"\n className=\"solid-studio-empty-cta-button\"\n onClick={() => {\n const aiUrl = env(\"VITE_SOLIDX_AI_URL\");\n if (aiUrl) window.open(aiUrl, \"_blank\");\n }}\n >\n <ChatIcon />\n <span>Open AI Chat</span>\n {/* <ArrowIcon /> */}\n </button>\n </div>\n\n <div className=\"solid-studio-landing-empty-divider\" />\n\n <div className=\"solid-studio-landing-empty-details\">\n <p className=\"solid-studio-landing-empty-instruction\">\n Any route with a <code>path</code> and <code>children</code> passed to{\" \"}\n <code>getSolidRoutes()</code> will automatically appear as a card.\n </p>\n <div className=\"solid-studio-landing-snippet\">\n <pre>\n <code>{`// AppRoutes.tsx\\nconst extraRoutes = [\\n {\\n path: \"/my-layout\",\\n element: <MyLayout />,\\n children: [{ index: true, element: <MyPage /> }],\\n },\\n];\\n\\ngetSolidRoutes({ extraRoutes });`}</code>\n </pre>\n </div>\n <p className=\"solid-studio-landing-hint\">\n <strong>Pro Tip:</strong> Add <code>handle: {`{ title, description }`}</code> to a route to customize its appearance.\n </p>\n </div>\n </CardContent>\n </Card>\n </div>\n );\n}\n\n// ── Card ──────────────────────────────────────────────────────────────────────\n\nfunction LayoutCard({\n entry,\n index,\n listView,\n}: {\n entry: SolidLayoutEntry;\n index: number;\n listView: boolean;\n}) {\n const navigate = useNavigate();\n const accent = CARD_ACCENTS[index % CARD_ACCENTS.length];\n\n return (\n <button\n type=\"button\"\n className={`solid-studio-home-card${listView ? \" solid-studio-home-card--list\" : \"\"}`}\n onClick={() => navigate(entry.to)}\n aria-label={`Open ${entry.title}`}\n >\n {!listView && (\n <div className=\"solid-studio-home-card-image-wrap\">\n <LayoutThumb accentColor={accent.bg} title={entry.title} />\n <div className=\"solid-studio-home-card-image-overlay\" />\n </div>\n )}\n <div className=\"solid-studio-home-card-body\">\n <div className={`solid-studio-home-card-icon ${accent.cls}`}>\n <LayoutPlaceholderIcon />\n </div>\n <div className=\"solid-studio-home-card-content\">\n <span className=\"solid-studio-home-card-title\">{entry.title}</span>\n {entry.description && (\n <span className=\"solid-studio-home-card-desc\">{entry.description}</span>\n )}\n <span className=\"solid-studio-home-card-desc\" style={{ opacity: 0.6, fontSize: 12 }}>\n {entry.to}\n </span>\n </div>\n <div className=\"solid-studio-home-card-cta\">\n <span>Open</span>\n <ArrowIcon />\n </div>\n </div>\n </button>\n );\n}\n\n// ── Page ──────────────────────────────────────────────────────────────────────\n\nexport function StudioLandingPage() {\n const layouts = useSolidLayoutRegistry();\n const [listView, setListView] = useState(false);\n\n return (\n <div className={`solid-studio-home ${layouts.length > 0 ? \"solid-studio-home--top\" : \"\"}`}>\n <div className={`solid-studio-home-inner ${layouts.length > 0 ? \"solid-studio-home-inner--fluid\" : \"\"}`}>\n\n {/* Toolbar: title left, view toggle right */}\n <div className=\"solid-studio-home-toolbar\">\n {/* <div className=\"solid-studio-home-toolbar-left\">\n <div className=\"solid-studio-home-heading\">\n <div className=\"solid-studio-home-badge\">Frontend Studio</div>\n <h1>Frontend Layouts</h1>\n <p>\n {layouts.length > 0\n ? `${layouts.length} layout${layouts.length === 1 ? \"\" : \"s\"} registered in your app.`\n : \"Register your app layouts to explore them here.\"}\n </p>\n </div>\n </div> */}\n {layouts.length > 0 && (\n <div className=\"solid-studio-home-toolbar-right\">\n <button\n type=\"button\"\n className={`solid-studio-home-view-btn${!listView ? \" solid-studio-home-view-btn--active\" : \"\"}`}\n onClick={() => setListView(false)}\n aria-label=\"Grid view\"\n title=\"Grid view\"\n >\n <GridViewIcon />\n </button>\n <button\n type=\"button\"\n className={`solid-studio-home-view-btn${listView ? \" solid-studio-home-view-btn--active\" : \"\"}`}\n onClick={() => setListView(true)}\n aria-label=\"List view\"\n title=\"List view\"\n >\n <ListViewIcon />\n </button>\n </div>\n )}\n </div>\n\n {layouts.length === 0 ? (\n <EmptyState />\n ) : listView ? (\n <div className=\"solid-studio-home-cards--list\">\n {layouts.map((entry, i) => (\n <LayoutCard key={entry.path} entry={entry} index={i} listView />\n ))}\n </div>\n ) : (\n <div className=\"solid-studio-home-cards solid-studio-home-cards--fluid\">\n {layouts.map((entry, i) => (\n <LayoutCard key={entry.path} entry={entry} index={i} listView={false} />\n ))}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"StudioLandingPage.js","sourceRoot":"","sources":["../../../../src/routes/pages/studio/StudioLandingPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAE/D,kFAAkF;AAElF,IAAM,SAAS,GAAG,cAAM,OAAA,CACtB,cAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,iBAAa,MAAM,YAC5E,eAAM,CAAC,EAAC,+BAA+B,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,GAAG,GAC3H,CACP,EAJuB,CAIvB,CAAC;AAEF,IAAM,qBAAqB,GAAG,cAAM,OAAA,CAClC,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,iBAAa,MAAM,aAC5E,eAAM,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,GAAG,EAC5F,eAAM,CAAC,EAAC,SAAS,EAAC,MAAM,E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AF0B,CAE1B,CAAC,GACE,CACP,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,wDAAwD,YACpE,OAAO,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,CAAC,IAAK,OAAA,CACzB,KAAC,UAAU,IAAkB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,IAAnD,KAAK,CAAC,IAAI,CAA6C,CACzE,EAF0B,CAE1B,CAAC,GACE,CACP,IACG,GACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { useSolidLayoutRegistry } from \"../../SolidLayoutRegistry\";\nimport type { SolidLayoutEntry } from \"../../SolidLayoutRegistry\";\nimport { ChatIcon } from \"../../../components/layout/SolidAiStudioLayout\";\nimport { env } from \"../../../adapters/env\";\nimport { showToast } from \"../../../redux/features/toastSlice\";\n\n// ── Icons ──────────────────────────────────────────────────────────────────────\n\nconst ArrowIcon = () => (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M2.5 7h9M8 3.5l3.5 3.5L8 10.5\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n);\n\nconst LayoutPlaceholderIcon = () => (\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"1\" width=\"16\" height=\"16\" rx=\"2.5\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <path d=\"M1 6h16\" stroke=\"currentColor\" strokeWidth=\"1.1\" />\n <path d=\"M6 6v11\" stroke=\"currentColor\" strokeWidth=\"1.1\" />\n </svg>\n);\n\nconst NoLayoutIcon = () => (\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"2\" y=\"2\" width=\"28\" height=\"28\" rx=\"4\" stroke=\"currentColor\" strokeWidth=\"1.5\" opacity=\"0.4\" strokeDasharray=\"4 3\" />\n <path d=\"M11 16h10M16 11v10\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" opacity=\"0.5\" />\n </svg>\n);\n\nconst GridViewIcon = () => (\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"1\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"8.5\" y=\"1\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"1\" y=\"8.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"8.5\" y=\"8.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n </svg>\n);\n\nconst ListViewIcon = () => (\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"2.5\" width=\"13\" height=\"2.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"1\" y=\"6.25\" width=\"13\" height=\"2.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n <rect x=\"1\" y=\"10\" width=\"13\" height=\"2.5\" rx=\"1.2\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n </svg>\n);\n\n// ── Per-card accent colours (cycles by index) ──────────────────────────────────\n\nconst CARD_ACCENTS = [\n { bg: \"hsl(224 70% 54%)\", cls: \"solid-studio-home-card-icon--backend\" },\n { bg: \"hsl(158 64% 42%)\", cls: \"solid-studio-home-card-icon--list\" },\n { bg: \"hsl(32 95% 48%)\", cls: \"solid-studio-home-card-icon--kanban\" },\n { bg: \"hsl(270 65% 58%)\", cls: \"solid-studio-home-card-icon--form\" },\n { bg: \"hsl(199 89% 48%)\", cls: \"solid-studio-home-card-icon--tree\" },\n { bg: \"hsl(215 25% 52%)\", cls: \"solid-studio-home-card-icon--settings\" },\n];\n\n// ── Generic layout wireframe thumbnail ────────────────────────────────────────\n\nfunction LayoutThumb({ accentColor, title }: { accentColor: string; title: string }) {\n const initials = title\n .split(/\\s+/)\n .slice(0, 2)\n .map((w) => w[0]?.toUpperCase() ?? \"\")\n .join(\"\");\n\n return (\n <svg\n className=\"solid-studio-home-card-thumb\"\n viewBox=\"0 0 280 122\"\n fill=\"none\"\n aria-hidden=\"true\"\n >\n {/* background */}\n <rect width=\"280\" height=\"122\" fill=\"var(--sidebar-background)\" />\n\n {/* sidebar */}\n <rect width=\"40\" height=\"122\" fill=\"var(--border)\" opacity=\"0.7\" />\n <rect x=\"7\" y=\"14\" width=\"26\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.45\" />\n <rect x=\"7\" y=\"26\" width=\"26\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n <rect x=\"7\" y=\"38\" width=\"26\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n <rect x=\"7\" y=\"50\" width=\"26\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n\n {/* top bar */}\n <rect x=\"40\" y=\"0\" width=\"240\" height=\"18\" fill=\"var(--border)\" opacity=\"0.5\" />\n\n {/* accent header band */}\n <rect x=\"48\" y=\"22\" width=\"224\" height=\"28\" rx=\"3\" fill={accentColor} opacity=\"0.12\" />\n <rect x=\"56\" y=\"30\" width=\"80\" height=\"7\" rx=\"2\" fill={accentColor} opacity=\"0.45\" />\n <rect x=\"56\" y=\"40\" width=\"50\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.3\" />\n\n {/* content blocks */}\n <rect x=\"48\" y=\"58\" width=\"70\" height=\"58\" rx=\"3\" fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth=\"0.8\" />\n <rect x=\"126\" y=\"58\" width=\"70\" height=\"58\" rx=\"3\" fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth=\"0.8\" />\n <rect x=\"204\" y=\"58\" width=\"68\" height=\"26\" rx=\"3\" fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth=\"0.8\" />\n <rect x=\"204\" y=\"90\" width=\"68\" height=\"26\" rx=\"3\" fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth=\"0.8\" />\n\n {/* inner muted lines */}\n <rect x=\"54\" y=\"65\" width=\"48\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n <rect x=\"54\" y=\"73\" width=\"36\" height=\"3\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.2\" />\n <rect x=\"132\" y=\"65\" width=\"48\" height=\"4\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.28\" />\n <rect x=\"132\" y=\"73\" width=\"36\" height=\"3\" rx=\"2\" fill=\"var(--muted)\" opacity=\"0.2\" />\n\n {/* initials badge */}\n <circle cx=\"60\" cy=\"98\" r=\"9\" fill={accentColor} opacity=\"0.18\" />\n <text\n x=\"60\"\n y=\"102\"\n textAnchor=\"middle\"\n fontSize=\"7\"\n fontWeight=\"700\"\n fill={accentColor}\n opacity=\"0.8\"\n fontFamily=\"system-ui, sans-serif\"\n >\n {initials}\n </text>\n </svg>\n );\n}\n\n// ── Card Components (shadcn-inspired) ────────────────────────────────────────\n\nfunction Card({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return (\n <div className={`solid-studio-card ${className}`}>\n {children}\n </div>\n );\n}\n\nfunction CardHeader({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <div className={`solid-studio-card-header ${className}`}>{children}</div>;\n}\n\nfunction CardTitle({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <h3 className={`solid-studio-card-title ${className}`}>{children}</h3>;\n}\n\nfunction CardDescription({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <p className={`solid-studio-card-description ${className}`}>{children}</p>;\n}\n\nfunction CardContent({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <div className={`solid-studio-card-content ${className}`}>{children}</div>;\n}\n\nfunction CardFooter({ children, className = \"\" }: { children: React.ReactNode; className?: string }) {\n return <div className={`solid-studio-card-footer ${className}`}>{children}</div>;\n}\n\n// ── Empty state ───────────────────────────────────────────────────────────────\n\nfunction EmptyState({ onOpenChat }: { onOpenChat: () => void }) {\n return (\n <div className=\"solid-studio-landing-empty-container\">\n <Card className=\"solid-studio-landing-empty-card\">\n <CardHeader className=\"solid-studio-landing-empty-header\">\n <div className=\"solid-studio-home-badge\" style={{ marginBottom: '12px' }}>Frontend Studio</div>\n <CardTitle>Frontend layout will appear here</CardTitle>\n <CardDescription>\n Register your app layouts to explore and customize them in the Studio.\n </CardDescription>\n </CardHeader>\n\n <CardContent className=\"solid-studio-landing-empty-body\">\n <div className=\"solid-studio-landing-empty-primary-action\">\n <p>To get started, use the <strong>SolidX AI Agent</strong> to add a new custom layout.</p>\n <button\n type=\"button\"\n className=\"solid-studio-empty-cta-button\"\n onClick={onOpenChat}\n >\n <ChatIcon />\n <span>Open AI Chat</span>\n {/* <ArrowIcon /> */}\n </button>\n </div>\n\n <div className=\"solid-studio-landing-empty-divider\" />\n\n <div className=\"solid-studio-landing-empty-details\">\n <p className=\"solid-studio-landing-empty-instruction\">\n Any route with a <code>path</code> and <code>children</code> passed to{\" \"}\n <code>getSolidRoutes()</code> will automatically appear as a card.\n </p>\n <div className=\"solid-studio-landing-snippet\">\n <pre>\n <code>{`// AppRoutes.tsx\\nconst extraRoutes = [\\n {\\n path: \"/my-layout\",\\n element: <MyLayout />,\\n children: [{ index: true, element: <MyPage /> }],\\n },\\n];\\n\\ngetSolidRoutes({ extraRoutes });`}</code>\n </pre>\n </div>\n <p className=\"solid-studio-landing-hint\">\n <strong>Pro Tip:</strong> Add <code>handle: {`{ title, description }`}</code> to a route to customize its appearance.\n </p>\n </div>\n </CardContent>\n </Card>\n </div>\n );\n}\n\n// ── Card ──────────────────────────────────────────────────────────────────────\n\nfunction LayoutCard({\n entry,\n index,\n listView,\n}: {\n entry: SolidLayoutEntry;\n index: number;\n listView: boolean;\n}) {\n const navigate = useNavigate();\n const accent = CARD_ACCENTS[index % CARD_ACCENTS.length];\n\n return (\n <button\n type=\"button\"\n className={`solid-studio-home-card${listView ? \" solid-studio-home-card--list\" : \"\"}`}\n onClick={() => navigate(entry.to)}\n aria-label={`Open ${entry.title}`}\n >\n {!listView && (\n <div className=\"solid-studio-home-card-image-wrap\">\n <LayoutThumb accentColor={accent.bg} title={entry.title} />\n <div className=\"solid-studio-home-card-image-overlay\" />\n </div>\n )}\n <div className=\"solid-studio-home-card-body\">\n <div className={`solid-studio-home-card-icon ${accent.cls}`}>\n <LayoutPlaceholderIcon />\n </div>\n <div className=\"solid-studio-home-card-content\">\n <span className=\"solid-studio-home-card-title\">{entry.title}</span>\n {entry.description && (\n <span className=\"solid-studio-home-card-desc\">{entry.description}</span>\n )}\n <span className=\"solid-studio-home-card-desc\" style={{ opacity: 0.6, fontSize: 12 }}>\n {entry.to}\n </span>\n </div>\n <div className=\"solid-studio-home-card-cta\">\n <span>Open</span>\n <ArrowIcon />\n </div>\n </div>\n </button>\n );\n}\n\n// ── Page ──────────────────────────────────────────────────────────────────────\n\nexport function StudioLandingPage() {\n const dispatch = useDispatch();\n const layouts = useSolidLayoutRegistry();\n const [listView, setListView] = useState(false);\n \n const handleOpenAiChat = () => {\n const aiUrl = env(\"VITE_SOLIDX_AI_URL\");\n\n if (!aiUrl) {\n dispatch(\n showToast({\n severity: \"error\",\n summary: \"AI Chat unavailable\",\n detail: \"VITE_SOLIDX_AI_URL is not configured.\",\n }),\n );\n return;\n }\n\n try {\n const chatWindow = window.open(aiUrl, \"_blank\", \"noopener,noreferrer\");\n if (!chatWindow) {\n dispatch(\n showToast({\n severity: \"error\",\n summary: \"AI Chat unavailable\",\n detail: \"Unable to open chat window. Please allow pop-ups and try again.\",\n }),\n );\n }\n } catch {\n dispatch(\n showToast({\n severity: \"error\",\n summary: \"AI Chat unavailable\",\n detail: \"Failed to open chat. Please check the configured URL.\",\n }),\n );\n }\n };\n\n return (\n <div className={`solid-studio-home ${layouts.length > 0 ? \"solid-studio-home--top\" : \"\"}`}>\n <div className={`solid-studio-home-inner ${layouts.length > 0 ? \"solid-studio-home-inner--fluid\" : \"\"}`}>\n\n {/* Toolbar: title left, view toggle right */}\n <div className=\"solid-studio-home-toolbar\">\n {/* <div className=\"solid-studio-home-toolbar-left\">\n <div className=\"solid-studio-home-heading\">\n <div className=\"solid-studio-home-badge\">Frontend Studio</div>\n <h1>Frontend Layouts</h1>\n <p>\n {layouts.length > 0\n ? `${layouts.length} layout${layouts.length === 1 ? \"\" : \"s\"} registered in your app.`\n : \"Register your app layouts to explore them here.\"}\n </p>\n </div>\n </div> */}\n {layouts.length > 0 && (\n <div className=\"solid-studio-home-toolbar-right\">\n <button\n type=\"button\"\n className={`solid-studio-home-view-btn${!listView ? \" solid-studio-home-view-btn--active\" : \"\"}`}\n onClick={() => setListView(false)}\n aria-label=\"Grid view\"\n title=\"Grid view\"\n >\n <GridViewIcon />\n </button>\n <button\n type=\"button\"\n className={`solid-studio-home-view-btn${listView ? \" solid-studio-home-view-btn--active\" : \"\"}`}\n onClick={() => setListView(true)}\n aria-label=\"List view\"\n title=\"List view\"\n >\n <ListViewIcon />\n </button>\n </div>\n )}\n </div>\n\n {layouts.length === 0 ? (\n <EmptyState onOpenChat={handleOpenAiChat} />\n ) : listView ? (\n <div className=\"solid-studio-home-cards--list\">\n {layouts.map((entry, i) => (\n <LayoutCard key={entry.path} entry={entry} index={i} listView />\n ))}\n </div>\n ) : (\n <div className=\"solid-studio-home-cards solid-studio-home-cards--fluid\">\n {layouts.map((entry, i) => (\n <LayoutCard key={entry.path} entry={entry} index={i} listView={false} />\n ))}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
@@ -1,9 +1,11 @@
1
1
  import { useState } from "react";
2
+ import { useDispatch } from "react-redux";
2
3
  import { useNavigate } from "react-router-dom";
3
4
  import { useSolidLayoutRegistry } from "../../SolidLayoutRegistry";
4
5
  import type { SolidLayoutEntry } from "../../SolidLayoutRegistry";
5
6
  import { ChatIcon } from "../../../components/layout/SolidAiStudioLayout";
6
7
  import { env } from "../../../adapters/env";
8
+ import { showToast } from "../../../redux/features/toastSlice";
7
9
 
8
10
  // ── Icons ──────────────────────────────────────────────────────────────────────
9
11
 
@@ -152,7 +154,7 @@ function CardFooter({ children, className = "" }: { children: React.ReactNode; c
152
154
 
153
155
  // ── Empty state ───────────────────────────────────────────────────────────────
154
156
 
155
- function EmptyState() {
157
+ function EmptyState({ onOpenChat }: { onOpenChat: () => void }) {
156
158
  return (
157
159
  <div className="solid-studio-landing-empty-container">
158
160
  <Card className="solid-studio-landing-empty-card">
@@ -170,10 +172,7 @@ function EmptyState() {
170
172
  <button
171
173
  type="button"
172
174
  className="solid-studio-empty-cta-button"
173
- onClick={() => {
174
- const aiUrl = env("VITE_SOLIDX_AI_URL");
175
- if (aiUrl) window.open(aiUrl, "_blank");
176
- }}
175
+ onClick={onOpenChat}
177
176
  >
178
177
  <ChatIcon />
179
178
  <span>Open AI Chat</span>
@@ -255,8 +254,45 @@ function LayoutCard({
255
254
  // ── Page ──────────────────────────────────────────────────────────────────────
256
255
 
257
256
  export function StudioLandingPage() {
257
+ const dispatch = useDispatch();
258
258
  const layouts = useSolidLayoutRegistry();
259
259
  const [listView, setListView] = useState(false);
260
+
261
+ const handleOpenAiChat = () => {
262
+ const aiUrl = env("VITE_SOLIDX_AI_URL");
263
+
264
+ if (!aiUrl) {
265
+ dispatch(
266
+ showToast({
267
+ severity: "error",
268
+ summary: "AI Chat unavailable",
269
+ detail: "VITE_SOLIDX_AI_URL is not configured.",
270
+ }),
271
+ );
272
+ return;
273
+ }
274
+
275
+ try {
276
+ const chatWindow = window.open(aiUrl, "_blank", "noopener,noreferrer");
277
+ if (!chatWindow) {
278
+ dispatch(
279
+ showToast({
280
+ severity: "error",
281
+ summary: "AI Chat unavailable",
282
+ detail: "Unable to open chat window. Please allow pop-ups and try again.",
283
+ }),
284
+ );
285
+ }
286
+ } catch {
287
+ dispatch(
288
+ showToast({
289
+ severity: "error",
290
+ summary: "AI Chat unavailable",
291
+ detail: "Failed to open chat. Please check the configured URL.",
292
+ }),
293
+ );
294
+ }
295
+ };
260
296
 
261
297
  return (
262
298
  <div className={`solid-studio-home ${layouts.length > 0 ? "solid-studio-home--top" : ""}`}>
@@ -300,7 +336,7 @@ export function StudioLandingPage() {
300
336
  </div>
301
337
 
302
338
  {layouts.length === 0 ? (
303
- <EmptyState />
339
+ <EmptyState onOpenChat={handleOpenAiChat} />
304
340
  ) : listView ? (
305
341
  <div className="solid-studio-home-cards--list">
306
342
  {layouts.map((entry, i) => (
@@ -1 +1 @@
1
- {"version":3,"file":"solidRoutes.d.ts","sourceRoot":"","sources":["../../src/routes/solidRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA6BpD,OAAO,KAAK,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAC;AAOjE,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,WAAW,EAAE,CA8E9E"}
1
+ {"version":3,"file":"solidRoutes.d.ts","sourceRoot":"","sources":["../../src/routes/solidRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA6BpD,OAAO,KAAK,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAC;AAQjE,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,WAAW,EAAE,CAkG9E"}
@@ -41,6 +41,7 @@ import { DashboardPage } from "./pages/admin/core/DashboardPage";
41
41
  import { StudioHomePage } from "./pages/studio/StudioHomePage";
42
42
  import { StudioLandingPage } from "./pages/studio/StudioLandingPage";
43
43
  import { _solidRegisterExtraRoutes } from "./SolidLayoutRegistry";
44
+ import { SolidRouteMetadataBoundary } from "./SolidRouteMetadataBoundary";
44
45
  export function getSolidRoutes(options) {
45
46
  if (options === void 0) { options = {}; }
46
47
  var _a = options.extraAuthRoutes, extraAuthRoutes = _a === void 0 ? [] : _a, _b = options.extraAdminRoutes, extraAdminRoutes = _b === void 0 ? [] : _b, _c = options.extraRoutes, extraRoutes = _c === void 0 ? [] : _c, _d = options.elementOverrides, elementOverrides = _d === void 0 ? {} : _d;
@@ -52,52 +53,72 @@ export function getSolidRoutes(options) {
52
53
  };
53
54
  var authChildren = __spreadArray([
54
55
  // Password based login, Passwordless login initiate otp
55
- { path: "/auth/login", element: pick("login", _jsx(LoginPage, {})) },
56
+ { path: "/auth/login", element: pick("login", _jsx(LoginPage, {})), handle: { title: "Login", manageDocumentMeta: true } },
56
57
  // Password based registration, Passwordless registration initiate otp
57
- { path: "/auth/register", element: pick("register", _jsx(RegisterPage, {})) },
58
+ { path: "/auth/register", element: pick("register", _jsx(RegisterPage, {})), handle: { title: "Register", manageDocumentMeta: true } },
58
59
  // Passwordless login confirm otp
59
- { path: "/auth/initiate-login", element: pick("initiateLogin", _jsx(InitiateLoginPage, {})) },
60
+ { path: "/auth/initiate-login", element: pick("initiateLogin", _jsx(InitiateLoginPage, {})), handle: { title: "Verify Login", manageDocumentMeta: true } },
60
61
  // Passwordless registration confirm otp
61
- { path: "/auth/initiate-register", element: pick("initiateRegister", _jsx(InitiateRegisterPage, {})) },
62
+ { path: "/auth/initiate-register", element: pick("initiateRegister", _jsx(InitiateRegisterPage, {})), handle: { title: "Verify Registration", manageDocumentMeta: true } },
62
63
  // Forgot password flow
63
- { path: "/auth/forgot-password", element: pick("forgotPassword", _jsx(ForgotPasswordPage, {})) },
64
- { path: "/auth/initiate-forgot-password", element: pick("initiateForgotPassword", _jsx(InitiateForgotPasswordPage, {})) },
65
- { path: "/auth/initiate-forgot-password-thank-you", element: pick("initiateForgotPasswordThankYou", _jsx(InitiateForgotPasswordThankYouPage, {})) },
66
- { path: "/auth/confirm-forgot-password", element: pick("confirmForgotPassword", _jsx(ConfirmForgotPasswordPage, {})) },
64
+ { path: "/auth/forgot-password", element: pick("forgotPassword", _jsx(ForgotPasswordPage, {})), handle: { title: "Forgot Password", manageDocumentMeta: true } },
65
+ { path: "/auth/initiate-forgot-password", element: pick("initiateForgotPassword", _jsx(InitiateForgotPasswordPage, {})), handle: { title: "Send Reset Code", manageDocumentMeta: true } },
66
+ { path: "/auth/initiate-forgot-password-thank-you", element: pick("initiateForgotPasswordThankYou", _jsx(InitiateForgotPasswordThankYouPage, {})), handle: { title: "Check Your Email", manageDocumentMeta: true } },
67
+ { path: "/auth/confirm-forgot-password", element: pick("confirmForgotPassword", _jsx(ConfirmForgotPasswordPage, {})), handle: { title: "Confirm Reset Code", manageDocumentMeta: true } },
67
68
  // ??? not used ???
68
- { path: "/auth/reset-password", element: pick("resetPassword", _jsx(ResetPasswordPage, {})) },
69
- { path: "/auth/initiate-google-oauth", element: pick("initiateGoogleOauth", _jsx(InitiateGoogleOauthPage, {})) },
70
- { path: "/auth/initiate-facebook-oauth", element: pick("initiateFacebookOauth", _jsx(InitiateFacebookOauthPage, {})) },
71
- { path: "/auth/initiate-microsoft-oauth", element: pick("initiateMicrosoftOauth", _jsx(InitiateMicrosoftOauthPage, {})) },
72
- { path: "/auth/sso", element: pick("sso", _jsx(SsoPage, {})) }
69
+ { path: "/auth/reset-password", element: pick("resetPassword", _jsx(ResetPasswordPage, {})), handle: { title: "Reset Password", manageDocumentMeta: true } },
70
+ { path: "/auth/initiate-google-oauth", element: pick("initiateGoogleOauth", _jsx(InitiateGoogleOauthPage, {})), handle: { title: "Google Sign In", manageDocumentMeta: true } },
71
+ { path: "/auth/initiate-facebook-oauth", element: pick("initiateFacebookOauth", _jsx(InitiateFacebookOauthPage, {})), handle: { title: "Facebook Sign In", manageDocumentMeta: true } },
72
+ { path: "/auth/initiate-microsoft-oauth", element: pick("initiateMicrosoftOauth", _jsx(InitiateMicrosoftOauthPage, {})), handle: { title: "Microsoft Sign In", manageDocumentMeta: true } },
73
+ { path: "/auth/sso", element: pick("sso", _jsx(SsoPage, {})), handle: { title: "Single Sign-On", manageDocumentMeta: true } }
73
74
  ], extraAuthRoutes, true);
74
75
  var adminChildren = __spreadArray([
75
- { path: "/admin", element: pick("admin", _jsx(AdminPage, {})) },
76
- { path: "/admin/core/:moduleName/home", element: pick("moduleHome", _jsx(ModuleHomePage, {})) },
77
- { path: "/admin/core/:moduleName/dashboards/:dashboardName", element: pick("dashboard", _jsx(DashboardPage, {})) },
78
- { path: "/admin/core/:moduleName/:modelName/list", element: pick("list", _jsx(ListPage, {})) },
79
- { path: "/admin/core/:moduleName/:modelName/tree", element: pick("tree", _jsx(TreePage, {})) },
80
- { path: "/admin/core/:moduleName/:modelName/kanban", element: pick("kanban", _jsx(KanbanPage, {})) },
81
- { path: "/admin/core/:moduleName/:modelName/card", element: pick("card", _jsx(CardPage, {})) },
82
- { path: "/admin/core/:moduleName/:modelName/form/:id", element: pick("form", _jsx(FormPage, {})) },
83
- { path: "/admin/core/settings", element: pick("settings", _jsx(SettingsPage, {})) }
76
+ { path: "/admin", element: pick("admin", _jsx(AdminPage, {})), handle: { title: "Admin", manageDocumentMeta: true } },
77
+ { path: "/admin/core/:moduleName/home", element: pick("moduleHome", _jsx(ModuleHomePage, {})), handle: { title: "Module Home", manageDocumentMeta: true } },
78
+ { path: "/admin/core/:moduleName/dashboards/:dashboardName", element: pick("dashboard", _jsx(DashboardPage, {})), handle: { title: "Dashboard", manageDocumentMeta: true } },
79
+ { path: "/admin/core/:moduleName/:modelName/list", element: pick("list", _jsx(ListPage, {})), handle: { title: "List", manageDocumentMeta: true } },
80
+ { path: "/admin/core/:moduleName/:modelName/tree", element: pick("tree", _jsx(TreePage, {})), handle: { title: "Tree", manageDocumentMeta: true } },
81
+ { path: "/admin/core/:moduleName/:modelName/kanban", element: pick("kanban", _jsx(KanbanPage, {})), handle: { title: "Kanban", manageDocumentMeta: true } },
82
+ { path: "/admin/core/:moduleName/:modelName/card", element: pick("card", _jsx(CardPage, {})), handle: { title: "Card", manageDocumentMeta: true } },
83
+ { path: "/admin/core/:moduleName/:modelName/form/:id", element: pick("form", _jsx(FormPage, {})), handle: { title: "Form", manageDocumentMeta: true } },
84
+ { path: "/admin/core/settings", element: pick("settings", _jsx(SettingsPage, {})), handle: { title: "Settings", manageDocumentMeta: true } }
84
85
  ], extraAdminRoutes, true);
85
86
  return __spreadArray(__spreadArray([
86
87
  { path: "/error", element: pick("error", _jsx(ErrorPage, {})) },
87
88
  { path: "/not-found", element: pick("notFound", _jsx(NotFoundPage, {})) },
88
- { element: _jsx(GuestGuard, {}), children: [{ element: pick("authLayout", _jsx(AuthLayoutWrapper, {})), children: authChildren }] },
89
+ {
90
+ element: _jsx(GuestGuard, {}),
91
+ children: [
92
+ {
93
+ element: pick("authLayout", _jsx(AuthLayoutWrapper, {})),
94
+ children: [
95
+ {
96
+ element: _jsx(SolidRouteMetadataBoundary, { routes: authChildren }),
97
+ handle: { title: "Auth", description: "Authentication pages", manageDocumentMeta: true },
98
+ children: authChildren,
99
+ },
100
+ ],
101
+ },
102
+ ],
103
+ },
89
104
  {
90
105
  element: pick("authGuard", _jsx(AuthGuard, {})),
91
106
  children: [
92
107
  {
93
108
  element: pick("adminLayout", _jsx(AdminLayoutWrapper, {})),
94
- children: adminChildren,
109
+ children: [
110
+ {
111
+ element: _jsx(SolidRouteMetadataBoundary, { routes: adminChildren }),
112
+ handle: { title: "Admin", description: "Administration pages", manageDocumentMeta: true },
113
+ children: adminChildren,
114
+ },
115
+ ],
95
116
  },
96
117
  {
97
118
  element: pick("adminGuard", _jsx(AdminGuard, {})),
98
119
  children: [
99
- { path: "/studio", element: pick("studioHome", _jsx(StudioHomePage, {})) },
100
- { path: "/landing", element: pick("landing", _jsx(StudioLandingPage, {})) },
120
+ { path: "/studio", element: pick("studioHome", _jsx(StudioHomePage, {})), handle: { title: "Studio", manageDocumentMeta: true } },
121
+ { path: "/landing", element: pick("landing", _jsx(StudioLandingPage, {})), handle: { title: "Landing", manageDocumentMeta: true } },
101
122
  ],
102
123
  },
103
124
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"solidRoutes.js","sourceRoot":"","sources":["../../src/routes/solidRoutes.tsx"],"names":[],"mappings":";;;;;;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,C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AAE,EAAC,YAAY,EAAC,OAAO,SAAG,EAAE;cAC5D;AACJ,CAAC","sourcesContent":["import type { RouteObject } from \"react-router-dom\";\nimport { Navigate } from \"react-router-dom\";\nimport { AuthGuard } from \"./guards/AuthGuard\";\nimport { AdminGuard } from \"./guards/AdminGuard\";\nimport { GuestGuard } from \"./guards/GuestGuard\";\nimport { AdminLayoutWrapper } from \"../layouts/AdminLayoutWrapper\";\nimport { AuthLayoutWrapper } from \"../layouts/AuthLayoutWrapper\";\nimport { ErrorPage } from \"./pages/ErrorPage\";\nimport { NotFoundPage } from \"./pages/NotFoundPage\";\nimport { AdminPage } from \"./pages/admin/AdminPage\";\nimport { ModuleHomePage } from \"./pages/admin/core/ModuleHomePage\";\nimport { ListPage } from \"./pages/admin/core/ListPage\";\nimport { KanbanPage } from \"./pages/admin/core/KanbanPage\";\nimport { CardPage } from \"./pages/admin/core/CardPage\";\nimport { FormPage } from \"./pages/admin/core/FormPage\";\nimport { SettingsPage } from \"./pages/admin/core/SettingsPage\";\nimport { LoginPage } from \"./pages/auth/LoginPage\";\nimport { RegisterPage } from \"./pages/auth/RegisterPage\";\nimport { ForgotPasswordPage } from \"./pages/auth/ForgotPasswordPage\";\nimport { InitiateForgotPasswordPage } from \"./pages/auth/InitiateForgotPasswordPage\";\nimport { InitiateForgotPasswordThankYouPage } from \"./pages/auth/InitiateForgotPasswordThankYouPage\";\nimport { ConfirmForgotPasswordPage } from \"./pages/auth/ConfirmForgotPasswordPage\";\nimport { ResetPasswordPage } from \"./pages/auth/ResetPasswordPage\";\nimport { InitiateLoginPage } from \"./pages/auth/InitiateLoginPage\";\nimport { InitiateRegisterPage } from \"./pages/auth/InitiateRegisterPage\";\nimport { InitiateGoogleOauthPage } from \"./pages/auth/InitiateGoogleOauthPage\";\nimport { InitiateFacebookOauthPage } from \"./pages/auth/InitiateFacebookOauthPage\";\nimport { InitiateMicrosoftOauthPage } from \"./pages/auth/InitiateMicrosoftOauthPage\";\nimport { SsoPage } from \"./pages/auth/SsoPage\";\nimport type { SolidRoutesOptions, SolidRouteKey } from \"./types\";\nimport { TreePage } from \"./pages/admin/core/TreePage\";\nimport { DashboardPage } from \"./pages/admin/core/DashboardPage\";\nimport { StudioHomePage } from \"./pages/studio/StudioHomePage\";\nimport { StudioLandingPage } from \"./pages/studio/StudioLandingPage\";\nimport { _solidRegisterExtraRoutes } from \"./SolidLayoutRegistry\";\n\nexport function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[] {\n const {\n extraAuthRoutes = [],\n extraAdminRoutes = [],\n extraRoutes = [],\n elementOverrides = {},\n } = options;\n\n // Auto-register layout routes so StudioLandingPage can discover them\n // without any changes in the consuming project.\n _solidRegisterExtraRoutes(extraRoutes);\n\n const pick = (key: SolidRouteKey, fallback: JSX.Element) =>\n (elementOverrides[key] as JSX.Element) || fallback;\n\n const authChildren: RouteObject[] = [\n // Password based login, Passwordless login initiate otp\n { path: \"/auth/login\", element: pick(\"login\", <LoginPage />) },\n // Password based registration, Passwordless registration initiate otp\n { path: \"/auth/register\", element: pick(\"register\", <RegisterPage />) },\n // Passwordless login confirm otp\n { path: \"/auth/initiate-login\", element: pick(\"initiateLogin\", <InitiateLoginPage />) },\n // Passwordless registration confirm otp\n { path: \"/auth/initiate-register\", element: pick(\"initiateRegister\", <InitiateRegisterPage />) },\n\n // Forgot password flow\n { path: \"/auth/forgot-password\", element: pick(\"forgotPassword\", <ForgotPasswordPage />) },\n { path: \"/auth/initiate-forgot-password\", element: pick(\"initiateForgotPassword\", <InitiateForgotPasswordPage />) },\n { path: \"/auth/initiate-forgot-password-thank-you\", element: pick(\"initiateForgotPasswordThankYou\", <InitiateForgotPasswordThankYouPage />) },\n { path: \"/auth/confirm-forgot-password\", element: pick(\"confirmForgotPassword\", <ConfirmForgotPasswordPage />) },\n\n // ??? not used ???\n { path: \"/auth/reset-password\", element: pick(\"resetPassword\", <ResetPasswordPage />) },\n\n { path: \"/auth/initiate-google-oauth\", element: pick(\"initiateGoogleOauth\", <InitiateGoogleOauthPage />) },\n { path: \"/auth/initiate-facebook-oauth\", element: pick(\"initiateFacebookOauth\", <InitiateFacebookOauthPage />) },\n { path: \"/auth/initiate-microsoft-oauth\", element: pick(\"initiateMicrosoftOauth\", <InitiateMicrosoftOauthPage />) },\n { path: \"/auth/sso\", element: pick(\"sso\", <SsoPage />) },\n ...extraAuthRoutes,\n ];\n\n const adminChildren: RouteObject[] = [\n { path: \"/admin\", element: pick(\"admin\", <AdminPage />) },\n { path: \"/admin/core/:moduleName/home\", element: pick(\"moduleHome\", <ModuleHomePage />) },\n { path: \"/admin/core/:moduleName/dashboards/:dashboardName\", element: pick(\"dashboard\", <DashboardPage />) },\n { path: \"/admin/core/:moduleName/:modelName/list\", element: pick(\"list\", <ListPage />) },\n { path: \"/admin/core/:moduleName/:modelName/tree\", element: pick(\"tree\", <TreePage />) },\n { path: \"/admin/core/:moduleName/:modelName/kanban\", element: pick(\"kanban\", <KanbanPage />) },\n { path: \"/admin/core/:moduleName/:modelName/card\", element: pick(\"card\", <CardPage />) },\n { path: \"/admin/core/:moduleName/:modelName/form/:id\", element: pick(\"form\", <FormPage />) },\n { path: \"/admin/core/settings\", element: pick(\"settings\", <SettingsPage />) },\n ...extraAdminRoutes,\n ];\n\n return [\n { path: \"/error\", element: pick(\"error\", <ErrorPage />) },\n { path: \"/not-found\", element: pick(\"notFound\", <NotFoundPage />) },\n { element: <GuestGuard />, children: [{ element: pick(\"authLayout\", <AuthLayoutWrapper />), children: authChildren }] },\n {\n element: pick(\"authGuard\", <AuthGuard />),\n children: [\n {\n element: pick(\"adminLayout\", <AdminLayoutWrapper />),\n children: adminChildren,\n },\n {\n element: pick(\"adminGuard\", <AdminGuard />),\n children: [\n { path: \"/studio\", element: pick(\"studioHome\", <StudioHomePage />) },\n { path: \"/landing\", element: pick(\"landing\", <StudioLandingPage />) },\n ],\n },\n ],\n },\n ...extraRoutes,\n { path: \"/\", element: <Navigate to=\"/auth/login\" replace /> },\n { path: \"*\", element: <Nav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,EAAE,KAAC,0BAA0B,IAAC,MAAM,EAAE,aAAa,GAAI;4BAC9D,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,IAAI,EAAE;4BACzF,QAAQ,EAAE,aAAa;yBACxB;qBACF;iBACF;gBACD;oBACE,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,KAAC,UAAU,KAAG,CAAC;oBAC3C,QAAQ,EAAE;wBACR,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,KAAC,cAAc,KAAG,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,EAAE;wBAC3H,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,KAAC,iBAAiB,KAAG,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAE,EAAE;qBAC9H;iBACF;aACF;SACF;OACE,WAAW;QACd,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,KAAC,QAAQ,IAAC,EAAE,EAAC,aAAa,EAAC,OAAO,SAAG,EAAE;QAC7D,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,KAAC,QAAQ,IAAC,EAAE,EAAC,YAAY,EAAC,OAAO,SAAG,EAAE;cAC5D;AACJ,CAAC","sourcesContent":["import type { RouteObject } from \"react-router-dom\";\nimport { Navigate } from \"react-router-dom\";\nimport { AuthGuard } from \"./guards/AuthGuard\";\nimport { AdminGuard } from \"./guards/AdminGuard\";\nimport { GuestGuard } from \"./guards/GuestGuard\";\nimport { AdminLayoutWrapper } from \"../layouts/AdminLayoutWrapper\";\nimport { AuthLayoutWrapper } from \"../layouts/AuthLayoutWrapper\";\nimport { ErrorPage } from \"./pages/ErrorPage\";\nimport { NotFoundPage } from \"./pages/NotFoundPage\";\nimport { AdminPage } from \"./pages/admin/AdminPage\";\nimport { ModuleHomePage } from \"./pages/admin/core/ModuleHomePage\";\nimport { ListPage } from \"./pages/admin/core/ListPage\";\nimport { KanbanPage } from \"./pages/admin/core/KanbanPage\";\nimport { CardPage } from \"./pages/admin/core/CardPage\";\nimport { FormPage } from \"./pages/admin/core/FormPage\";\nimport { SettingsPage } from \"./pages/admin/core/SettingsPage\";\nimport { LoginPage } from \"./pages/auth/LoginPage\";\nimport { RegisterPage } from \"./pages/auth/RegisterPage\";\nimport { ForgotPasswordPage } from \"./pages/auth/ForgotPasswordPage\";\nimport { InitiateForgotPasswordPage } from \"./pages/auth/InitiateForgotPasswordPage\";\nimport { InitiateForgotPasswordThankYouPage } from \"./pages/auth/InitiateForgotPasswordThankYouPage\";\nimport { ConfirmForgotPasswordPage } from \"./pages/auth/ConfirmForgotPasswordPage\";\nimport { ResetPasswordPage } from \"./pages/auth/ResetPasswordPage\";\nimport { InitiateLoginPage } from \"./pages/auth/InitiateLoginPage\";\nimport { InitiateRegisterPage } from \"./pages/auth/InitiateRegisterPage\";\nimport { InitiateGoogleOauthPage } from \"./pages/auth/InitiateGoogleOauthPage\";\nimport { InitiateFacebookOauthPage } from \"./pages/auth/InitiateFacebookOauthPage\";\nimport { InitiateMicrosoftOauthPage } from \"./pages/auth/InitiateMicrosoftOauthPage\";\nimport { SsoPage } from \"./pages/auth/SsoPage\";\nimport type { SolidRoutesOptions, SolidRouteKey } from \"./types\";\nimport { TreePage } from \"./pages/admin/core/TreePage\";\nimport { DashboardPage } from \"./pages/admin/core/DashboardPage\";\nimport { StudioHomePage } from \"./pages/studio/StudioHomePage\";\nimport { StudioLandingPage } from \"./pages/studio/StudioLandingPage\";\nimport { _solidRegisterExtraRoutes } from \"./SolidLayoutRegistry\";\nimport { SolidRouteMetadataBoundary } from \"./SolidRouteMetadataBoundary\";\n\nexport function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[] {\n const {\n extraAuthRoutes = [],\n extraAdminRoutes = [],\n extraRoutes = [],\n elementOverrides = {},\n } = options;\n\n // Auto-register layout routes so StudioLandingPage can discover them\n // without any changes in the consuming project.\n _solidRegisterExtraRoutes(extraRoutes);\n\n const pick = (key: SolidRouteKey, fallback: JSX.Element) =>\n (elementOverrides[key] as JSX.Element) || fallback;\n\n const authChildren: RouteObject[] = [\n // Password based login, Passwordless login initiate otp\n { path: \"/auth/login\", element: pick(\"login\", <LoginPage />), handle: { title: \"Login\", manageDocumentMeta: true } },\n // Password based registration, Passwordless registration initiate otp\n { path: \"/auth/register\", element: pick(\"register\", <RegisterPage />), handle: { title: \"Register\", manageDocumentMeta: true } },\n // Passwordless login confirm otp\n { path: \"/auth/initiate-login\", element: pick(\"initiateLogin\", <InitiateLoginPage />), handle: { title: \"Verify Login\", manageDocumentMeta: true } },\n // Passwordless registration confirm otp\n { path: \"/auth/initiate-register\", element: pick(\"initiateRegister\", <InitiateRegisterPage />), handle: { title: \"Verify Registration\", manageDocumentMeta: true } },\n\n // Forgot password flow\n { path: \"/auth/forgot-password\", element: pick(\"forgotPassword\", <ForgotPasswordPage />), handle: { title: \"Forgot Password\", manageDocumentMeta: true } },\n { path: \"/auth/initiate-forgot-password\", element: pick(\"initiateForgotPassword\", <InitiateForgotPasswordPage />), handle: { title: \"Send Reset Code\", manageDocumentMeta: true } },\n { path: \"/auth/initiate-forgot-password-thank-you\", element: pick(\"initiateForgotPasswordThankYou\", <InitiateForgotPasswordThankYouPage />), handle: { title: \"Check Your Email\", manageDocumentMeta: true } },\n { path: \"/auth/confirm-forgot-password\", element: pick(\"confirmForgotPassword\", <ConfirmForgotPasswordPage />), handle: { title: \"Confirm Reset Code\", manageDocumentMeta: true } },\n\n // ??? not used ???\n { path: \"/auth/reset-password\", element: pick(\"resetPassword\", <ResetPasswordPage />), handle: { title: \"Reset Password\", manageDocumentMeta: true } },\n\n { path: \"/auth/initiate-google-oauth\", element: pick(\"initiateGoogleOauth\", <InitiateGoogleOauthPage />), handle: { title: \"Google Sign In\", manageDocumentMeta: true } },\n { path: \"/auth/initiate-facebook-oauth\", element: pick(\"initiateFacebookOauth\", <InitiateFacebookOauthPage />), handle: { title: \"Facebook Sign In\", manageDocumentMeta: true } },\n { path: \"/auth/initiate-microsoft-oauth\", element: pick(\"initiateMicrosoftOauth\", <InitiateMicrosoftOauthPage />), handle: { title: \"Microsoft Sign In\", manageDocumentMeta: true } },\n { path: \"/auth/sso\", element: pick(\"sso\", <SsoPage />), handle: { title: \"Single Sign-On\", manageDocumentMeta: true } },\n ...extraAuthRoutes,\n ];\n\n const adminChildren: RouteObject[] = [\n { path: \"/admin\", element: pick(\"admin\", <AdminPage />), handle: { title: \"Admin\", manageDocumentMeta: true } },\n { path: \"/admin/core/:moduleName/home\", element: pick(\"moduleHome\", <ModuleHomePage />), handle: { title: \"Module Home\", manageDocumentMeta: true } },\n { path: \"/admin/core/:moduleName/dashboards/:dashboardName\", element: pick(\"dashboard\", <DashboardPage />), handle: { title: \"Dashboard\", manageDocumentMeta: true } },\n { path: \"/admin/core/:moduleName/:modelName/list\", element: pick(\"list\", <ListPage />), handle: { title: \"List\", manageDocumentMeta: true } },\n { path: \"/admin/core/:moduleName/:modelName/tree\", element: pick(\"tree\", <TreePage />), handle: { title: \"Tree\", manageDocumentMeta: true } },\n { path: \"/admin/core/:moduleName/:modelName/kanban\", element: pick(\"kanban\", <KanbanPage />), handle: { title: \"Kanban\", manageDocumentMeta: true } },\n { path: \"/admin/core/:moduleName/:modelName/card\", element: pick(\"card\", <CardPage />), handle: { title: \"Card\", manageDocumentMeta: true } },\n { path: \"/admin/core/:moduleName/:modelName/form/:id\", element: pick(\"form\", <FormPage />), handle: { title: \"Form\", manageDocumentMeta: true } },\n { path: \"/admin/core/settings\", element: pick(\"settings\", <SettingsPage />), handle: { title: \"Settings\", manageDocumentMeta: true } },\n ...extraAdminRoutes,\n ];\n\n return [\n { path: \"/error\", element: pick(\"error\", <ErrorPage />) },\n { path: \"/not-found\", element: pick(\"notFound\", <NotFoundPage />) },\n {\n element: <GuestGuard />,\n children: [\n {\n element: pick(\"authLayout\", <AuthLayoutWrapper />),\n children: [\n {\n element: <SolidRouteMetadataBoundary routes={authChildren} />,\n handle: { title: \"Auth\", description: \"Authentication pages\", manageDocumentMeta: true },\n children: authChildren,\n },\n ],\n },\n ],\n },\n {\n element: pick(\"authGuard\", <AuthGuard />),\n children: [\n {\n element: pick(\"adminLayout\", <AdminLayoutWrapper />),\n children: [\n {\n element: <SolidRouteMetadataBoundary routes={adminChildren} />,\n handle: { title: \"Admin\", description: \"Administration pages\", manageDocumentMeta: true },\n children: adminChildren,\n },\n ],\n },\n {\n element: pick(\"adminGuard\", <AdminGuard />),\n children: [\n { path: \"/studio\", element: pick(\"studioHome\", <StudioHomePage />), handle: { title: \"Studio\", manageDocumentMeta: true } },\n { path: \"/landing\", element: pick(\"landing\", <StudioLandingPage />), handle: { title: \"Landing\", manageDocumentMeta: true } },\n ],\n },\n ],\n },\n ...extraRoutes,\n { path: \"/\", element: <Navigate to=\"/auth/login\" replace /> },\n { path: \"*\", element: <Navigate to=\"/not-found\" replace /> },\n ];\n}\n"]}
@@ -33,6 +33,7 @@ import { DashboardPage } from "./pages/admin/core/DashboardPage";
33
33
  import { StudioHomePage } from "./pages/studio/StudioHomePage";
34
34
  import { StudioLandingPage } from "./pages/studio/StudioLandingPage";
35
35
  import { _solidRegisterExtraRoutes } from "./SolidLayoutRegistry";
36
+ import { SolidRouteMetadataBoundary } from "./SolidRouteMetadataBoundary";
36
37
 
37
38
  export function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[] {
38
39
  const {
@@ -51,59 +52,79 @@ export function getSolidRoutes(options: SolidRoutesOptions = {}): RouteObject[]
51
52
 
52
53
  const authChildren: RouteObject[] = [
53
54
  // Password based login, Passwordless login initiate otp
54
- { path: "/auth/login", element: pick("login", <LoginPage />) },
55
+ { path: "/auth/login", element: pick("login", <LoginPage />), handle: { title: "Login", manageDocumentMeta: true } },
55
56
  // Password based registration, Passwordless registration initiate otp
56
- { path: "/auth/register", element: pick("register", <RegisterPage />) },
57
+ { path: "/auth/register", element: pick("register", <RegisterPage />), handle: { title: "Register", manageDocumentMeta: true } },
57
58
  // Passwordless login confirm otp
58
- { path: "/auth/initiate-login", element: pick("initiateLogin", <InitiateLoginPage />) },
59
+ { path: "/auth/initiate-login", element: pick("initiateLogin", <InitiateLoginPage />), handle: { title: "Verify Login", manageDocumentMeta: true } },
59
60
  // Passwordless registration confirm otp
60
- { path: "/auth/initiate-register", element: pick("initiateRegister", <InitiateRegisterPage />) },
61
+ { path: "/auth/initiate-register", element: pick("initiateRegister", <InitiateRegisterPage />), handle: { title: "Verify Registration", manageDocumentMeta: true } },
61
62
 
62
63
  // Forgot password flow
63
- { path: "/auth/forgot-password", element: pick("forgotPassword", <ForgotPasswordPage />) },
64
- { path: "/auth/initiate-forgot-password", element: pick("initiateForgotPassword", <InitiateForgotPasswordPage />) },
65
- { path: "/auth/initiate-forgot-password-thank-you", element: pick("initiateForgotPasswordThankYou", <InitiateForgotPasswordThankYouPage />) },
66
- { path: "/auth/confirm-forgot-password", element: pick("confirmForgotPassword", <ConfirmForgotPasswordPage />) },
64
+ { path: "/auth/forgot-password", element: pick("forgotPassword", <ForgotPasswordPage />), handle: { title: "Forgot Password", manageDocumentMeta: true } },
65
+ { path: "/auth/initiate-forgot-password", element: pick("initiateForgotPassword", <InitiateForgotPasswordPage />), handle: { title: "Send Reset Code", manageDocumentMeta: true } },
66
+ { path: "/auth/initiate-forgot-password-thank-you", element: pick("initiateForgotPasswordThankYou", <InitiateForgotPasswordThankYouPage />), handle: { title: "Check Your Email", manageDocumentMeta: true } },
67
+ { path: "/auth/confirm-forgot-password", element: pick("confirmForgotPassword", <ConfirmForgotPasswordPage />), handle: { title: "Confirm Reset Code", manageDocumentMeta: true } },
67
68
 
68
69
  // ??? not used ???
69
- { path: "/auth/reset-password", element: pick("resetPassword", <ResetPasswordPage />) },
70
+ { path: "/auth/reset-password", element: pick("resetPassword", <ResetPasswordPage />), handle: { title: "Reset Password", manageDocumentMeta: true } },
70
71
 
71
- { path: "/auth/initiate-google-oauth", element: pick("initiateGoogleOauth", <InitiateGoogleOauthPage />) },
72
- { path: "/auth/initiate-facebook-oauth", element: pick("initiateFacebookOauth", <InitiateFacebookOauthPage />) },
73
- { path: "/auth/initiate-microsoft-oauth", element: pick("initiateMicrosoftOauth", <InitiateMicrosoftOauthPage />) },
74
- { path: "/auth/sso", element: pick("sso", <SsoPage />) },
72
+ { path: "/auth/initiate-google-oauth", element: pick("initiateGoogleOauth", <InitiateGoogleOauthPage />), handle: { title: "Google Sign In", manageDocumentMeta: true } },
73
+ { path: "/auth/initiate-facebook-oauth", element: pick("initiateFacebookOauth", <InitiateFacebookOauthPage />), handle: { title: "Facebook Sign In", manageDocumentMeta: true } },
74
+ { path: "/auth/initiate-microsoft-oauth", element: pick("initiateMicrosoftOauth", <InitiateMicrosoftOauthPage />), handle: { title: "Microsoft Sign In", manageDocumentMeta: true } },
75
+ { path: "/auth/sso", element: pick("sso", <SsoPage />), handle: { title: "Single Sign-On", manageDocumentMeta: true } },
75
76
  ...extraAuthRoutes,
76
77
  ];
77
78
 
78
79
  const adminChildren: RouteObject[] = [
79
- { path: "/admin", element: pick("admin", <AdminPage />) },
80
- { path: "/admin/core/:moduleName/home", element: pick("moduleHome", <ModuleHomePage />) },
81
- { path: "/admin/core/:moduleName/dashboards/:dashboardName", element: pick("dashboard", <DashboardPage />) },
82
- { path: "/admin/core/:moduleName/:modelName/list", element: pick("list", <ListPage />) },
83
- { path: "/admin/core/:moduleName/:modelName/tree", element: pick("tree", <TreePage />) },
84
- { path: "/admin/core/:moduleName/:modelName/kanban", element: pick("kanban", <KanbanPage />) },
85
- { path: "/admin/core/:moduleName/:modelName/card", element: pick("card", <CardPage />) },
86
- { path: "/admin/core/:moduleName/:modelName/form/:id", element: pick("form", <FormPage />) },
87
- { path: "/admin/core/settings", element: pick("settings", <SettingsPage />) },
80
+ { path: "/admin", element: pick("admin", <AdminPage />), handle: { title: "Admin", manageDocumentMeta: true } },
81
+ { path: "/admin/core/:moduleName/home", element: pick("moduleHome", <ModuleHomePage />), handle: { title: "Module Home", manageDocumentMeta: true } },
82
+ { path: "/admin/core/:moduleName/dashboards/:dashboardName", element: pick("dashboard", <DashboardPage />), handle: { title: "Dashboard", manageDocumentMeta: true } },
83
+ { path: "/admin/core/:moduleName/:modelName/list", element: pick("list", <ListPage />), handle: { title: "List", manageDocumentMeta: true } },
84
+ { path: "/admin/core/:moduleName/:modelName/tree", element: pick("tree", <TreePage />), handle: { title: "Tree", manageDocumentMeta: true } },
85
+ { path: "/admin/core/:moduleName/:modelName/kanban", element: pick("kanban", <KanbanPage />), handle: { title: "Kanban", manageDocumentMeta: true } },
86
+ { path: "/admin/core/:moduleName/:modelName/card", element: pick("card", <CardPage />), handle: { title: "Card", manageDocumentMeta: true } },
87
+ { path: "/admin/core/:moduleName/:modelName/form/:id", element: pick("form", <FormPage />), handle: { title: "Form", manageDocumentMeta: true } },
88
+ { path: "/admin/core/settings", element: pick("settings", <SettingsPage />), handle: { title: "Settings", manageDocumentMeta: true } },
88
89
  ...extraAdminRoutes,
89
90
  ];
90
91
 
91
92
  return [
92
93
  { path: "/error", element: pick("error", <ErrorPage />) },
93
94
  { path: "/not-found", element: pick("notFound", <NotFoundPage />) },
94
- { element: <GuestGuard />, children: [{ element: pick("authLayout", <AuthLayoutWrapper />), children: authChildren }] },
95
+ {
96
+ element: <GuestGuard />,
97
+ children: [
98
+ {
99
+ element: pick("authLayout", <AuthLayoutWrapper />),
100
+ children: [
101
+ {
102
+ element: <SolidRouteMetadataBoundary routes={authChildren} />,
103
+ handle: { title: "Auth", description: "Authentication pages", manageDocumentMeta: true },
104
+ children: authChildren,
105
+ },
106
+ ],
107
+ },
108
+ ],
109
+ },
95
110
  {
96
111
  element: pick("authGuard", <AuthGuard />),
97
112
  children: [
98
113
  {
99
114
  element: pick("adminLayout", <AdminLayoutWrapper />),
100
- children: adminChildren,
115
+ children: [
116
+ {
117
+ element: <SolidRouteMetadataBoundary routes={adminChildren} />,
118
+ handle: { title: "Admin", description: "Administration pages", manageDocumentMeta: true },
119
+ children: adminChildren,
120
+ },
121
+ ],
101
122
  },
102
123
  {
103
124
  element: pick("adminGuard", <AdminGuard />),
104
125
  children: [
105
- { path: "/studio", element: pick("studioHome", <StudioHomePage />) },
106
- { path: "/landing", element: pick("landing", <StudioLandingPage />) },
126
+ { path: "/studio", element: pick("studioHome", <StudioHomePage />), handle: { title: "Studio", manageDocumentMeta: true } },
127
+ { path: "/landing", element: pick("landing", <StudioLandingPage />), handle: { title: "Landing", manageDocumentMeta: true } },
107
128
  ],
108
129
  },
109
130
  ],
@@ -1,5 +1,12 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { RouteObject } from "react-router-dom";
3
+ export type SolidPageMeta = {
4
+ title?: string;
5
+ description?: string;
6
+ titlePrefix?: string;
7
+ titleSuffix?: string;
8
+ manageDocumentMeta?: boolean;
9
+ };
3
10
  export type SolidRouteKey = "error" | "notFound" | "login" | "register" | "forgotPassword" | "initiateForgotPassword" | "initiateForgotPasswordThankYou" | "confirmForgotPassword" | "resetPassword" | "otpVerify" | "initiateLogin" | "initiateRegister" | "initiateGoogleOauth" | "initiateFacebookOauth" | "initiateMicrosoftOauth" | "sso" | "admin" | "moduleHome" | "dashboard" | "list" | "tree" | "kanban" | "card" | "form" | "settings" | "authLayout" | "adminLayout" | "authGuard" | "adminGuard" | "studioHome" | "landing";
4
11
  export type SolidRoutesOptions = {
5
12
  extraAuthRoutes?: RouteObject[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/routes/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,gBAAgB,GAChB,wBAAwB,GACxB,gCAAgC,GAChC,uBAAuB,GACvB,eAAe,GACf,WAAW,GACX,eAAe,GACf,kBAAkB,GAClB,qBAAqB,GACrB,uBAAuB,GACvB,wBAAwB,GACxB,KAAK,GACL,OAAO,GACP,YAAY,GACZ,WAAW,GACX,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,YAAY,GACZ,aAAa,GACb,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,SAAS,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;CAC9D,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/routes/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,gBAAgB,GAChB,wBAAwB,GACxB,gCAAgC,GAChC,uBAAuB,GACvB,eAAe,GACf,WAAW,GACX,eAAe,GACf,kBAAkB,GAClB,qBAAqB,GACrB,uBAAuB,GACvB,wBAAwB,GACxB,KAAK,GACL,OAAO,GACP,YAAY,GACZ,WAAW,GACX,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,YAAY,GACZ,aAAa,GACb,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,SAAS,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;CAC9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/routes/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from \"react\";\nimport type { RouteObject } from \"react-router-dom\";\n\nexport type SolidRouteKey =\n | \"error\"\n | \"notFound\"\n | \"login\"\n | \"register\"\n | \"forgotPassword\"\n | \"initiateForgotPassword\"\n | \"initiateForgotPasswordThankYou\"\n | \"confirmForgotPassword\"\n | \"resetPassword\"\n | \"otpVerify\"\n | \"initiateLogin\"\n | \"initiateRegister\"\n | \"initiateGoogleOauth\"\n | \"initiateFacebookOauth\"\n | \"initiateMicrosoftOauth\"\n | \"sso\"\n | \"admin\"\n | \"moduleHome\"\n | \"dashboard\"\n | \"list\"\n | \"tree\"\n | \"kanban\"\n | \"card\"\n | \"form\"\n | \"settings\"\n | \"authLayout\"\n | \"adminLayout\"\n | \"authGuard\"\n | \"adminGuard\"\n | \"studioHome\"\n | \"landing\";\n\nexport type SolidRoutesOptions = {\n extraAuthRoutes?: RouteObject[];\n extraAdminRoutes?: RouteObject[];\n extraRoutes?: RouteObject[];\n elementOverrides?: Partial<Record<SolidRouteKey, ReactNode>>;\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/routes/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from \"react\";\nimport type { RouteObject } from \"react-router-dom\";\n\nexport type SolidPageMeta = {\n title?: string;\n description?: string;\n titlePrefix?: string;\n titleSuffix?: string;\n manageDocumentMeta?: boolean;\n};\n\nexport type SolidRouteKey =\n | \"error\"\n | \"notFound\"\n | \"login\"\n | \"register\"\n | \"forgotPassword\"\n | \"initiateForgotPassword\"\n | \"initiateForgotPasswordThankYou\"\n | \"confirmForgotPassword\"\n | \"resetPassword\"\n | \"otpVerify\"\n | \"initiateLogin\"\n | \"initiateRegister\"\n | \"initiateGoogleOauth\"\n | \"initiateFacebookOauth\"\n | \"initiateMicrosoftOauth\"\n | \"sso\"\n | \"admin\"\n | \"moduleHome\"\n | \"dashboard\"\n | \"list\"\n | \"tree\"\n | \"kanban\"\n | \"card\"\n | \"form\"\n | \"settings\"\n | \"authLayout\"\n | \"adminLayout\"\n | \"authGuard\"\n | \"adminGuard\"\n | \"studioHome\"\n | \"landing\";\n\nexport type SolidRoutesOptions = {\n extraAuthRoutes?: RouteObject[];\n extraAdminRoutes?: RouteObject[];\n extraRoutes?: RouteObject[];\n elementOverrides?: Partial<Record<SolidRouteKey, ReactNode>>;\n};\n"]}
@@ -1,6 +1,14 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { RouteObject } from "react-router-dom";
3
3
 
4
+ export type SolidPageMeta = {
5
+ title?: string;
6
+ description?: string;
7
+ titlePrefix?: string;
8
+ titleSuffix?: string;
9
+ manageDocumentMeta?: boolean;
10
+ };
11
+
4
12
  export type SolidRouteKey =
5
13
  | "error"
6
14
  | "notFound"