@nextsparkjs/core 0.1.0-beta.81 → 0.1.0-beta.83
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/dist/components/entities/wrappers/EntityDetailWrapper.d.ts.map +1 -1
- package/dist/components/entities/wrappers/EntityDetailWrapper.js +11 -39
- package/dist/hooks/useEntityQuery.d.ts.map +1 -1
- package/dist/hooks/useEntityQuery.js +21 -3
- package/dist/lib/theme/get-default-theme-mode.d.ts +11 -0
- package/dist/lib/theme/get-default-theme-mode.d.ts.map +1 -1
- package/dist/lib/theme/get-default-theme-mode.js +42 -25
- package/dist/styles/classes.json +1 -1
- package/dist/templates/next.config.mjs +5 -2
- package/dist/types/theme.d.ts +2 -0
- package/dist/types/theme.d.ts.map +1 -1
- package/package.json +16 -16
- package/scripts/build/docs-registry.mjs +0 -0
- package/scripts/create-theme.mjs +0 -0
- package/scripts/deploy/release-version.mjs +0 -0
- package/scripts/deploy/vercel-deploy.mjs +0 -0
- package/scripts/dev/watch-plugins.mjs +0 -0
- package/scripts/maintenance/update-core.mjs +0 -0
- package/scripts/setup/npm-postinstall.mjs +0 -0
- package/scripts/setup/setup-claude.mjs +0 -0
- package/scripts/validation/check-imports.sh +0 -0
- package/templates/next.config.mjs +5 -2
- package/dist/templates/app/(auth)/forgot-password/page.tsx +0 -216
- package/dist/templates/app/(auth)/layout.tsx +0 -51
- package/dist/templates/app/(auth)/login/page.tsx +0 -21
- package/dist/templates/app/(auth)/reset-password/page.tsx +0 -212
- package/dist/templates/app/(auth)/signup/page.tsx +0 -21
- package/dist/templates/app/(auth)/verify-email/page.tsx +0 -190
- package/dist/templates/app/(public)/[...slug]/page.tsx +0 -378
- package/dist/templates/app/(public)/docs/[section]/[page]/page.tsx +0 -90
- package/dist/templates/app/(public)/docs/layout.tsx +0 -25
- package/dist/templates/app/(public)/docs/page.tsx +0 -81
- package/dist/templates/app/(public)/layout.tsx +0 -41
- package/dist/templates/app/(public)/page.tsx +0 -19
- package/dist/templates/app/403/page.tsx +0 -89
- package/dist/templates/app/api/auth/[...all]/route.ts +0 -78
- package/dist/templates/app/api/cron/billing/lifecycle/route.ts +0 -98
- package/dist/templates/app/api/csp-report/route.ts +0 -175
- package/dist/templates/app/api/devtools/config/entities/route.ts +0 -108
- package/dist/templates/app/api/devtools/config/theme/route.ts +0 -66
- package/dist/templates/app/api/devtools/tests/[...path]/route.ts +0 -130
- package/dist/templates/app/api/devtools/tests/route.ts +0 -134
- package/dist/templates/app/api/health/route.ts +0 -29
- package/dist/templates/app/api/internal/user-metadata/route.ts +0 -36
- package/dist/templates/app/api/superadmin/subscriptions/route.ts +0 -310
- package/dist/templates/app/api/superadmin/teams/[teamId]/route.ts +0 -286
- package/dist/templates/app/api/superadmin/teams/route.ts +0 -188
- package/dist/templates/app/api/superadmin/users/[userId]/route.ts +0 -540
- package/dist/templates/app/api/superadmin/users/route.ts +0 -323
- package/dist/templates/app/api/user/delete-account/route.ts +0 -55
- package/dist/templates/app/api/user/plan-flags/route.ts +0 -283
- package/dist/templates/app/api/user/profile/route.ts +0 -133
- package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +0 -210
- package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/route.ts +0 -331
- package/dist/templates/app/api/v1/[entity]/[id]/route.ts +0 -35
- package/dist/templates/app/api/v1/[entity]/docs.md +0 -369
- package/dist/templates/app/api/v1/[entity]/presets.ts +0 -194
- package/dist/templates/app/api/v1/[entity]/route.ts +0 -31
- package/dist/templates/app/api/v1/api-keys/[id]/route.ts +0 -303
- package/dist/templates/app/api/v1/api-keys/docs.md +0 -101
- package/dist/templates/app/api/v1/api-keys/presets.ts +0 -31
- package/dist/templates/app/api/v1/api-keys/route.ts +0 -250
- package/dist/templates/app/api/v1/auth/docs.md +0 -184
- package/dist/templates/app/api/v1/auth/presets.ts +0 -44
- package/dist/templates/app/api/v1/auth/signup-with-invite/route.ts +0 -227
- package/dist/templates/app/api/v1/billing/cancel/route.ts +0 -206
- package/dist/templates/app/api/v1/billing/change-plan/route.ts +0 -97
- package/dist/templates/app/api/v1/billing/check-action/route.ts +0 -81
- package/dist/templates/app/api/v1/billing/checkout/route.ts +0 -124
- package/dist/templates/app/api/v1/billing/docs.md +0 -209
- package/dist/templates/app/api/v1/billing/plans/route.ts +0 -85
- package/dist/templates/app/api/v1/billing/portal/route.ts +0 -90
- package/dist/templates/app/api/v1/billing/presets.ts +0 -121
- package/dist/templates/app/api/v1/billing/webhooks/stripe/route.ts +0 -428
- package/dist/templates/app/api/v1/blocks/[slug]/route.ts +0 -29
- package/dist/templates/app/api/v1/blocks/docs.md +0 -173
- package/dist/templates/app/api/v1/blocks/presets.ts +0 -121
- package/dist/templates/app/api/v1/blocks/route.ts +0 -45
- package/dist/templates/app/api/v1/blocks/validate/route.ts +0 -45
- package/dist/templates/app/api/v1/cron/docs.md +0 -116
- package/dist/templates/app/api/v1/cron/presets.ts +0 -26
- package/dist/templates/app/api/v1/cron/process/route.ts +0 -108
- package/dist/templates/app/api/v1/devtools/blocks/route.ts +0 -82
- package/dist/templates/app/api/v1/devtools/docs/route.ts +0 -150
- package/dist/templates/app/api/v1/devtools/docs.md +0 -204
- package/dist/templates/app/api/v1/devtools/features/route.ts +0 -61
- package/dist/templates/app/api/v1/devtools/flows/route.ts +0 -61
- package/dist/templates/app/api/v1/devtools/presets.ts +0 -113
- package/dist/templates/app/api/v1/devtools/scheduled-actions/route.ts +0 -120
- package/dist/templates/app/api/v1/devtools/testing/route.ts +0 -82
- package/dist/templates/app/api/v1/media/docs.md +0 -117
- package/dist/templates/app/api/v1/media/presets.ts +0 -24
- package/dist/templates/app/api/v1/media/upload/route.ts +0 -150
- package/dist/templates/app/api/v1/patterns/[id]/usages/route.ts +0 -116
- package/dist/templates/app/api/v1/plugin/[...path]/route.ts +0 -373
- package/dist/templates/app/api/v1/plugin/docs.md +0 -79
- package/dist/templates/app/api/v1/plugin/presets.ts +0 -21
- package/dist/templates/app/api/v1/plugin/route.ts +0 -96
- package/dist/templates/app/api/v1/post-categories/[id]/route.ts +0 -255
- package/dist/templates/app/api/v1/post-categories/docs.md +0 -134
- package/dist/templates/app/api/v1/post-categories/presets.ts +0 -78
- package/dist/templates/app/api/v1/post-categories/route.ts +0 -119
- package/dist/templates/app/api/v1/team-invitations/[token]/accept/route.ts +0 -179
- package/dist/templates/app/api/v1/team-invitations/[token]/decline/route.ts +0 -120
- package/dist/templates/app/api/v1/team-invitations/[token]/route.ts +0 -89
- package/dist/templates/app/api/v1/team-invitations/docs.md +0 -88
- package/dist/templates/app/api/v1/team-invitations/presets.ts +0 -43
- package/dist/templates/app/api/v1/team-invitations/route.ts +0 -114
- package/dist/templates/app/api/v1/teams/[teamId]/invitations/route.ts +0 -171
- package/dist/templates/app/api/v1/teams/[teamId]/invoices/[invoiceNumber]/route.ts +0 -105
- package/dist/templates/app/api/v1/teams/[teamId]/invoices/route.ts +0 -125
- package/dist/templates/app/api/v1/teams/[teamId]/members/[memberId]/route.ts +0 -263
- package/dist/templates/app/api/v1/teams/[teamId]/members/route.ts +0 -358
- package/dist/templates/app/api/v1/teams/[teamId]/route.ts +0 -322
- package/dist/templates/app/api/v1/teams/[teamId]/subscription/route.ts +0 -50
- package/dist/templates/app/api/v1/teams/[teamId]/usage/[limitSlug]/route.ts +0 -91
- package/dist/templates/app/api/v1/teams/docs.md +0 -320
- package/dist/templates/app/api/v1/teams/presets.ts +0 -178
- package/dist/templates/app/api/v1/teams/route.ts +0 -293
- package/dist/templates/app/api/v1/teams/switch/route.ts +0 -88
- package/dist/templates/app/api/v1/theme/[...path]/route.ts +0 -361
- package/dist/templates/app/api/v1/theme/docs.md +0 -74
- package/dist/templates/app/api/v1/theme/presets.ts +0 -21
- package/dist/templates/app/api/v1/theme/route.ts +0 -96
- package/dist/templates/app/api/v1/users/[id]/meta/[key]/route.ts +0 -363
- package/dist/templates/app/api/v1/users/[id]/route.ts +0 -302
- package/dist/templates/app/api/v1/users/docs.md +0 -93
- package/dist/templates/app/api/v1/users/presets.ts +0 -59
- package/dist/templates/app/api/v1/users/route.ts +0 -197
- package/dist/templates/app/dashboard/(main)/[entity]/[id]/edit/page.tsx +0 -117
- package/dist/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +0 -103
- package/dist/templates/app/dashboard/(main)/[entity]/create/page.tsx +0 -95
- package/dist/templates/app/dashboard/(main)/[entity]/error.tsx +0 -51
- package/dist/templates/app/dashboard/(main)/[entity]/layout.tsx +0 -113
- package/dist/templates/app/dashboard/(main)/[entity]/loading.tsx +0 -61
- package/dist/templates/app/dashboard/(main)/[entity]/page.tsx +0 -90
- package/dist/templates/app/dashboard/(main)/layout.tsx +0 -98
- package/dist/templates/app/dashboard/(main)/loading.tsx +0 -5
- package/dist/templates/app/dashboard/(main)/page.tsx +0 -201
- package/dist/templates/app/dashboard/(main)/patterns/[id]/edit/page.tsx +0 -114
- package/dist/templates/app/dashboard/(main)/patterns/[id]/page.tsx +0 -20
- package/dist/templates/app/dashboard/(main)/patterns/[id]/reports/page.tsx +0 -171
- package/dist/templates/app/dashboard/(main)/patterns/create/page.tsx +0 -86
- package/dist/templates/app/dashboard/(main)/patterns/page.tsx +0 -444
- package/dist/templates/app/dashboard/features/analytics/page.tsx +0 -35
- package/dist/templates/app/dashboard/features/automation/page.tsx +0 -35
- package/dist/templates/app/dashboard/features/layout.tsx +0 -13
- package/dist/templates/app/dashboard/features/loading.tsx +0 -5
- package/dist/templates/app/dashboard/features/webhooks/page.tsx +0 -35
- package/dist/templates/app/dashboard/layout.tsx +0 -86
- package/dist/templates/app/dashboard/permission-denied/page.tsx +0 -29
- package/dist/templates/app/dashboard/settings/api-keys/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/api-keys/page.tsx +0 -513
- package/dist/templates/app/dashboard/settings/billing/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/billing/page.tsx +0 -284
- package/dist/templates/app/dashboard/settings/invoices/[invoiceNumber]/page.tsx +0 -222
- package/dist/templates/app/dashboard/settings/invoices/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/invoices/page.tsx +0 -82
- package/dist/templates/app/dashboard/settings/layout.tsx +0 -151
- package/dist/templates/app/dashboard/settings/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/notifications/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/notifications/page.tsx +0 -462
- package/dist/templates/app/dashboard/settings/page.tsx +0 -92
- package/dist/templates/app/dashboard/settings/password/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/password/page.tsx +0 -306
- package/dist/templates/app/dashboard/settings/plans/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/plans/page.tsx +0 -40
- package/dist/templates/app/dashboard/settings/profile/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/profile/page.tsx +0 -686
- package/dist/templates/app/dashboard/settings/security/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/security/page.tsx +0 -505
- package/dist/templates/app/dashboard/settings/teams/loading.tsx +0 -5
- package/dist/templates/app/dashboard/settings/teams/page.tsx +0 -272
- package/dist/templates/app/dashboard/settings/teams/permissions/page.tsx +0 -92
- package/dist/templates/app/devtools/blocks/[slug]/page.tsx +0 -39
- package/dist/templates/app/devtools/blocks/page.tsx +0 -31
- package/dist/templates/app/devtools/config/page.tsx +0 -31
- package/dist/templates/app/devtools/features/page.tsx +0 -31
- package/dist/templates/app/devtools/flows/page.tsx +0 -31
- package/dist/templates/app/devtools/layout.tsx +0 -58
- package/dist/templates/app/devtools/page.tsx +0 -121
- package/dist/templates/app/devtools/scheduled-actions/page.tsx +0 -157
- package/dist/templates/app/devtools/style/page.tsx +0 -330
- package/dist/templates/app/devtools/tags/page.tsx +0 -31
- package/dist/templates/app/devtools/tests/[[...path]]/page.tsx +0 -47
- package/dist/templates/app/favicon.ico +0 -0
- package/dist/templates/app/globals.css +0 -12
- package/dist/templates/app/layout.tsx +0 -96
- package/dist/templates/app/public/page.tsx +0 -30
- package/dist/templates/app/superadmin/docs/[section]/[page]/page.tsx +0 -92
- package/dist/templates/app/superadmin/docs/page.tsx +0 -75
- package/dist/templates/app/superadmin/layout.tsx +0 -67
- package/dist/templates/app/superadmin/page.tsx +0 -149
- package/dist/templates/app/superadmin/subscriptions/page.tsx +0 -655
- package/dist/templates/app/superadmin/team-roles/page.tsx +0 -493
- package/dist/templates/app/superadmin/teams/[teamId]/page.tsx +0 -687
- package/dist/templates/app/superadmin/teams/page.tsx +0 -302
- package/dist/templates/app/superadmin/users/[userId]/page.tsx +0 -548
- package/dist/templates/app/superadmin/users/page.tsx +0 -528
- package/templates/app/(auth)/forgot-password/page.tsx +0 -216
- package/templates/app/(auth)/layout.tsx +0 -51
- package/templates/app/(auth)/login/page.tsx +0 -21
- package/templates/app/(auth)/reset-password/page.tsx +0 -212
- package/templates/app/(auth)/signup/page.tsx +0 -21
- package/templates/app/(auth)/verify-email/page.tsx +0 -190
- package/templates/app/(public)/[...slug]/page.tsx +0 -378
- package/templates/app/(public)/docs/[section]/[page]/page.tsx +0 -90
- package/templates/app/(public)/docs/layout.tsx +0 -25
- package/templates/app/(public)/docs/page.tsx +0 -81
- package/templates/app/(public)/layout.tsx +0 -41
- package/templates/app/(public)/page.tsx +0 -19
- package/templates/app/403/page.tsx +0 -89
- package/templates/app/api/auth/[...all]/route.ts +0 -78
- package/templates/app/api/cron/billing/lifecycle/route.ts +0 -98
- package/templates/app/api/csp-report/route.ts +0 -175
- package/templates/app/api/devtools/config/entities/route.ts +0 -108
- package/templates/app/api/devtools/config/theme/route.ts +0 -66
- package/templates/app/api/devtools/tests/[...path]/route.ts +0 -130
- package/templates/app/api/devtools/tests/route.ts +0 -134
- package/templates/app/api/health/route.ts +0 -29
- package/templates/app/api/internal/user-metadata/route.ts +0 -36
- package/templates/app/api/superadmin/subscriptions/route.ts +0 -310
- package/templates/app/api/superadmin/teams/[teamId]/route.ts +0 -286
- package/templates/app/api/superadmin/teams/route.ts +0 -188
- package/templates/app/api/superadmin/users/[userId]/route.ts +0 -540
- package/templates/app/api/superadmin/users/route.ts +0 -323
- package/templates/app/api/user/delete-account/route.ts +0 -55
- package/templates/app/api/user/plan-flags/route.ts +0 -283
- package/templates/app/api/user/profile/route.ts +0 -133
- package/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +0 -210
- package/templates/app/api/v1/[entity]/[id]/child/[childType]/route.ts +0 -331
- package/templates/app/api/v1/[entity]/[id]/route.ts +0 -35
- package/templates/app/api/v1/[entity]/docs.md +0 -369
- package/templates/app/api/v1/[entity]/presets.ts +0 -194
- package/templates/app/api/v1/[entity]/route.ts +0 -31
- package/templates/app/api/v1/api-keys/[id]/route.ts +0 -303
- package/templates/app/api/v1/api-keys/docs.md +0 -101
- package/templates/app/api/v1/api-keys/presets.ts +0 -31
- package/templates/app/api/v1/api-keys/route.ts +0 -250
- package/templates/app/api/v1/auth/docs.md +0 -184
- package/templates/app/api/v1/auth/presets.ts +0 -44
- package/templates/app/api/v1/auth/signup-with-invite/route.ts +0 -227
- package/templates/app/api/v1/billing/cancel/route.ts +0 -206
- package/templates/app/api/v1/billing/change-plan/route.ts +0 -97
- package/templates/app/api/v1/billing/check-action/route.ts +0 -81
- package/templates/app/api/v1/billing/checkout/route.ts +0 -124
- package/templates/app/api/v1/billing/docs.md +0 -209
- package/templates/app/api/v1/billing/plans/route.ts +0 -85
- package/templates/app/api/v1/billing/portal/route.ts +0 -90
- package/templates/app/api/v1/billing/presets.ts +0 -121
- package/templates/app/api/v1/billing/webhooks/stripe/route.ts +0 -428
- package/templates/app/api/v1/blocks/[slug]/route.ts +0 -29
- package/templates/app/api/v1/blocks/docs.md +0 -173
- package/templates/app/api/v1/blocks/presets.ts +0 -121
- package/templates/app/api/v1/blocks/route.ts +0 -45
- package/templates/app/api/v1/blocks/validate/route.ts +0 -45
- package/templates/app/api/v1/cron/docs.md +0 -116
- package/templates/app/api/v1/cron/presets.ts +0 -26
- package/templates/app/api/v1/cron/process/route.ts +0 -108
- package/templates/app/api/v1/devtools/blocks/route.ts +0 -82
- package/templates/app/api/v1/devtools/docs/route.ts +0 -150
- package/templates/app/api/v1/devtools/docs.md +0 -204
- package/templates/app/api/v1/devtools/features/route.ts +0 -61
- package/templates/app/api/v1/devtools/flows/route.ts +0 -61
- package/templates/app/api/v1/devtools/presets.ts +0 -113
- package/templates/app/api/v1/devtools/scheduled-actions/route.ts +0 -120
- package/templates/app/api/v1/devtools/testing/route.ts +0 -82
- package/templates/app/api/v1/media/docs.md +0 -117
- package/templates/app/api/v1/media/presets.ts +0 -24
- package/templates/app/api/v1/media/upload/route.ts +0 -150
- package/templates/app/api/v1/patterns/[id]/usages/route.ts +0 -116
- package/templates/app/api/v1/plugin/[...path]/route.ts +0 -373
- package/templates/app/api/v1/plugin/docs.md +0 -79
- package/templates/app/api/v1/plugin/presets.ts +0 -21
- package/templates/app/api/v1/plugin/route.ts +0 -96
- package/templates/app/api/v1/post-categories/[id]/route.ts +0 -255
- package/templates/app/api/v1/post-categories/docs.md +0 -134
- package/templates/app/api/v1/post-categories/presets.ts +0 -78
- package/templates/app/api/v1/post-categories/route.ts +0 -119
- package/templates/app/api/v1/team-invitations/[token]/accept/route.ts +0 -179
- package/templates/app/api/v1/team-invitations/[token]/decline/route.ts +0 -120
- package/templates/app/api/v1/team-invitations/[token]/route.ts +0 -89
- package/templates/app/api/v1/team-invitations/docs.md +0 -88
- package/templates/app/api/v1/team-invitations/presets.ts +0 -43
- package/templates/app/api/v1/team-invitations/route.ts +0 -114
- package/templates/app/api/v1/teams/[teamId]/invitations/route.ts +0 -171
- package/templates/app/api/v1/teams/[teamId]/invoices/[invoiceNumber]/route.ts +0 -105
- package/templates/app/api/v1/teams/[teamId]/invoices/route.ts +0 -125
- package/templates/app/api/v1/teams/[teamId]/members/[memberId]/route.ts +0 -263
- package/templates/app/api/v1/teams/[teamId]/members/route.ts +0 -358
- package/templates/app/api/v1/teams/[teamId]/route.ts +0 -322
- package/templates/app/api/v1/teams/[teamId]/subscription/route.ts +0 -50
- package/templates/app/api/v1/teams/[teamId]/usage/[limitSlug]/route.ts +0 -91
- package/templates/app/api/v1/teams/docs.md +0 -320
- package/templates/app/api/v1/teams/presets.ts +0 -178
- package/templates/app/api/v1/teams/route.ts +0 -293
- package/templates/app/api/v1/teams/switch/route.ts +0 -88
- package/templates/app/api/v1/theme/[...path]/route.ts +0 -361
- package/templates/app/api/v1/theme/docs.md +0 -74
- package/templates/app/api/v1/theme/presets.ts +0 -21
- package/templates/app/api/v1/theme/route.ts +0 -96
- package/templates/app/api/v1/users/[id]/meta/[key]/route.ts +0 -363
- package/templates/app/api/v1/users/[id]/route.ts +0 -302
- package/templates/app/api/v1/users/docs.md +0 -93
- package/templates/app/api/v1/users/presets.ts +0 -59
- package/templates/app/api/v1/users/route.ts +0 -197
- package/templates/app/dashboard/(main)/[entity]/[id]/edit/page.tsx +0 -117
- package/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +0 -103
- package/templates/app/dashboard/(main)/[entity]/create/page.tsx +0 -95
- package/templates/app/dashboard/(main)/[entity]/error.tsx +0 -51
- package/templates/app/dashboard/(main)/[entity]/layout.tsx +0 -113
- package/templates/app/dashboard/(main)/[entity]/loading.tsx +0 -61
- package/templates/app/dashboard/(main)/[entity]/page.tsx +0 -90
- package/templates/app/dashboard/(main)/layout.tsx +0 -98
- package/templates/app/dashboard/(main)/loading.tsx +0 -5
- package/templates/app/dashboard/(main)/page.tsx +0 -201
- package/templates/app/dashboard/(main)/patterns/[id]/edit/page.tsx +0 -114
- package/templates/app/dashboard/(main)/patterns/[id]/page.tsx +0 -20
- package/templates/app/dashboard/(main)/patterns/[id]/reports/page.tsx +0 -171
- package/templates/app/dashboard/(main)/patterns/create/page.tsx +0 -86
- package/templates/app/dashboard/(main)/patterns/page.tsx +0 -444
- package/templates/app/dashboard/features/analytics/page.tsx +0 -35
- package/templates/app/dashboard/features/automation/page.tsx +0 -35
- package/templates/app/dashboard/features/layout.tsx +0 -13
- package/templates/app/dashboard/features/loading.tsx +0 -5
- package/templates/app/dashboard/features/webhooks/page.tsx +0 -35
- package/templates/app/dashboard/layout.tsx +0 -86
- package/templates/app/dashboard/permission-denied/page.tsx +0 -29
- package/templates/app/dashboard/settings/api-keys/loading.tsx +0 -5
- package/templates/app/dashboard/settings/api-keys/page.tsx +0 -513
- package/templates/app/dashboard/settings/billing/loading.tsx +0 -5
- package/templates/app/dashboard/settings/billing/page.tsx +0 -284
- package/templates/app/dashboard/settings/invoices/[invoiceNumber]/page.tsx +0 -222
- package/templates/app/dashboard/settings/invoices/loading.tsx +0 -5
- package/templates/app/dashboard/settings/invoices/page.tsx +0 -82
- package/templates/app/dashboard/settings/layout.tsx +0 -151
- package/templates/app/dashboard/settings/loading.tsx +0 -5
- package/templates/app/dashboard/settings/notifications/loading.tsx +0 -5
- package/templates/app/dashboard/settings/notifications/page.tsx +0 -462
- package/templates/app/dashboard/settings/page.tsx +0 -92
- package/templates/app/dashboard/settings/password/loading.tsx +0 -5
- package/templates/app/dashboard/settings/password/page.tsx +0 -306
- package/templates/app/dashboard/settings/plans/loading.tsx +0 -5
- package/templates/app/dashboard/settings/plans/page.tsx +0 -40
- package/templates/app/dashboard/settings/profile/loading.tsx +0 -5
- package/templates/app/dashboard/settings/profile/page.tsx +0 -686
- package/templates/app/dashboard/settings/security/loading.tsx +0 -5
- package/templates/app/dashboard/settings/security/page.tsx +0 -505
- package/templates/app/dashboard/settings/teams/loading.tsx +0 -5
- package/templates/app/dashboard/settings/teams/page.tsx +0 -272
- package/templates/app/dashboard/settings/teams/permissions/page.tsx +0 -92
- package/templates/app/devtools/blocks/[slug]/page.tsx +0 -39
- package/templates/app/devtools/blocks/page.tsx +0 -31
- package/templates/app/devtools/config/page.tsx +0 -31
- package/templates/app/devtools/features/page.tsx +0 -31
- package/templates/app/devtools/flows/page.tsx +0 -31
- package/templates/app/devtools/layout.tsx +0 -58
- package/templates/app/devtools/page.tsx +0 -121
- package/templates/app/devtools/scheduled-actions/page.tsx +0 -157
- package/templates/app/devtools/style/page.tsx +0 -330
- package/templates/app/devtools/tags/page.tsx +0 -31
- package/templates/app/devtools/tests/[[...path]]/page.tsx +0 -47
- package/templates/app/favicon.ico +0 -0
- package/templates/app/globals.css +0 -12
- package/templates/app/layout.tsx +0 -96
- package/templates/app/public/page.tsx +0 -30
- package/templates/app/superadmin/docs/[section]/[page]/page.tsx +0 -92
- package/templates/app/superadmin/docs/page.tsx +0 -75
- package/templates/app/superadmin/layout.tsx +0 -67
- package/templates/app/superadmin/page.tsx +0 -149
- package/templates/app/superadmin/subscriptions/page.tsx +0 -655
- package/templates/app/superadmin/team-roles/page.tsx +0 -493
- package/templates/app/superadmin/teams/[teamId]/page.tsx +0 -687
- package/templates/app/superadmin/teams/page.tsx +0 -302
- package/templates/app/superadmin/users/[userId]/page.tsx +0 -548
- package/templates/app/superadmin/users/page.tsx +0 -528
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Patterns Edit Page
|
|
3
|
-
*
|
|
4
|
-
* Wrapper that delegates to the BuilderEditorView for pattern editing.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
'use client'
|
|
8
|
-
|
|
9
|
-
import { notFound, useRouter } from 'next/navigation'
|
|
10
|
-
import { useParams } from 'next/navigation'
|
|
11
|
-
import { useEffect, useState } from 'react'
|
|
12
|
-
import { clientEntityRegistry, ensureClientInitialized, type ClientEntityConfig } from '@nextsparkjs/registries/entity-registry.client'
|
|
13
|
-
import { EntityFormWrapper } from '@nextsparkjs/core/components/entities/wrappers/EntityFormWrapper'
|
|
14
|
-
import { BuilderEditorView } from '@nextsparkjs/core/components/dashboard/block-editor/builder-editor-view'
|
|
15
|
-
import { Alert, AlertDescription } from '@nextsparkjs/core/components/ui/alert'
|
|
16
|
-
import { getEntityData } from '@nextsparkjs/core/lib/api/entities'
|
|
17
|
-
|
|
18
|
-
export default function PatternEditPage() {
|
|
19
|
-
const params = useParams()
|
|
20
|
-
const router = useRouter()
|
|
21
|
-
const [entityConfig, setEntityConfig] = useState<ClientEntityConfig | null>(null)
|
|
22
|
-
const [initialData, setInitialData] = useState<Record<string, unknown> | null>(null)
|
|
23
|
-
const [loading, setLoading] = useState(true)
|
|
24
|
-
|
|
25
|
-
const entitySlug = 'patterns'
|
|
26
|
-
const entityId = params.id as string
|
|
27
|
-
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
async function loadEntityData() {
|
|
30
|
-
if (!entityId) {
|
|
31
|
-
setLoading(false)
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
await ensureClientInitialized()
|
|
37
|
-
const config = clientEntityRegistry.getBySlug(entitySlug)
|
|
38
|
-
|
|
39
|
-
if (!config) {
|
|
40
|
-
setEntityConfig(null)
|
|
41
|
-
setLoading(false)
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
setEntityConfig(config)
|
|
46
|
-
|
|
47
|
-
// For builder-enabled entities, BuilderEditorView handles its own data fetching
|
|
48
|
-
// For regular entities, fetch data here
|
|
49
|
-
if (!config.builder?.enabled) {
|
|
50
|
-
const data = await getEntityData(entitySlug, entityId, true)
|
|
51
|
-
setInitialData(data as Record<string, unknown>)
|
|
52
|
-
}
|
|
53
|
-
} catch (error) {
|
|
54
|
-
console.error('Error loading pattern:', error)
|
|
55
|
-
setEntityConfig(null)
|
|
56
|
-
setInitialData(null)
|
|
57
|
-
} finally {
|
|
58
|
-
setLoading(false)
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
loadEntityData()
|
|
63
|
-
}, [entityId])
|
|
64
|
-
|
|
65
|
-
if (loading) {
|
|
66
|
-
return (
|
|
67
|
-
<div className="flex items-center justify-center min-h-[400px]">
|
|
68
|
-
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-primary" />
|
|
69
|
-
</div>
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (!entityConfig || !entityConfig.features?.enabled) {
|
|
74
|
-
return (
|
|
75
|
-
<Alert>
|
|
76
|
-
<AlertDescription>
|
|
77
|
-
Patterns entity is not configured or not enabled.
|
|
78
|
-
</AlertDescription>
|
|
79
|
-
</Alert>
|
|
80
|
-
)
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Use BuilderEditorView for builder-enabled entities
|
|
84
|
-
if (entityConfig.builder?.enabled) {
|
|
85
|
-
return (
|
|
86
|
-
<BuilderEditorView
|
|
87
|
-
entitySlug={entitySlug}
|
|
88
|
-
entityConfig={entityConfig}
|
|
89
|
-
id={entityId}
|
|
90
|
-
mode="edit"
|
|
91
|
-
/>
|
|
92
|
-
)
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// For non-builder entities, we need the initial data
|
|
96
|
-
if (!initialData) {
|
|
97
|
-
notFound()
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Use EntityFormWrapper for regular entities
|
|
101
|
-
return (
|
|
102
|
-
<EntityFormWrapper
|
|
103
|
-
entityType={entitySlug}
|
|
104
|
-
id={entityId}
|
|
105
|
-
mode="edit"
|
|
106
|
-
onSuccess={() => {
|
|
107
|
-
router.push(`/dashboard/${entitySlug}/${entityId}`)
|
|
108
|
-
}}
|
|
109
|
-
onError={(error) => {
|
|
110
|
-
console.error('Error updating pattern:', error)
|
|
111
|
-
}}
|
|
112
|
-
/>
|
|
113
|
-
)
|
|
114
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Patterns Detail Page
|
|
3
|
-
*
|
|
4
|
-
* For builder-enabled entities like patterns, this redirects to edit mode.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { redirect } from 'next/navigation'
|
|
8
|
-
|
|
9
|
-
interface PageProps {
|
|
10
|
-
params: Promise<{
|
|
11
|
-
id: string
|
|
12
|
-
}>
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default async function PatternDetailPage({ params }: PageProps) {
|
|
16
|
-
const resolvedParams = await params
|
|
17
|
-
|
|
18
|
-
// Patterns are builder-enabled, so redirect to edit view
|
|
19
|
-
redirect(`/dashboard/patterns/${resolvedParams.id}/edit`)
|
|
20
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pattern Usage Reports Page
|
|
3
|
-
*
|
|
4
|
-
* Shows detailed usage reports for a specific pattern.
|
|
5
|
-
* Displays stats cards and a table of entities using the pattern.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use client'
|
|
9
|
-
|
|
10
|
-
import { useParams, useRouter } from 'next/navigation'
|
|
11
|
-
import { useEffect, useState } from 'react'
|
|
12
|
-
import Link from 'next/link'
|
|
13
|
-
import { ArrowLeft, Edit, LayoutGrid } from 'lucide-react'
|
|
14
|
-
import { clientEntityRegistry, ensureClientInitialized } from '@nextsparkjs/registries/entity-registry.client'
|
|
15
|
-
import { PatternUsageReport } from '@nextsparkjs/core/components/patterns/PatternUsageReport'
|
|
16
|
-
import { Button } from '@nextsparkjs/core/components/ui/button'
|
|
17
|
-
import { Alert, AlertDescription, AlertTitle } from '@nextsparkjs/core/components/ui/alert'
|
|
18
|
-
import { Skeleton } from '@nextsparkjs/core/components/ui/skeleton'
|
|
19
|
-
import { getEntityData } from '@nextsparkjs/core/lib/api/entities'
|
|
20
|
-
|
|
21
|
-
interface PatternData {
|
|
22
|
-
id: string
|
|
23
|
-
name?: string
|
|
24
|
-
title?: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default function PatternReportsPage() {
|
|
28
|
-
const params = useParams()
|
|
29
|
-
const router = useRouter()
|
|
30
|
-
const patternId = params.id as string
|
|
31
|
-
|
|
32
|
-
const [pattern, setPattern] = useState<PatternData | null>(null)
|
|
33
|
-
const [loading, setLoading] = useState(true)
|
|
34
|
-
const [error, setError] = useState<string | null>(null)
|
|
35
|
-
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
async function loadPattern() {
|
|
38
|
-
if (!patternId) {
|
|
39
|
-
setError('Pattern ID is required')
|
|
40
|
-
setLoading(false)
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
try {
|
|
45
|
-
// Ensure entity registry is initialized
|
|
46
|
-
await ensureClientInitialized()
|
|
47
|
-
const config = clientEntityRegistry.getBySlug('patterns')
|
|
48
|
-
|
|
49
|
-
if (!config || !config.features?.enabled) {
|
|
50
|
-
setError('Patterns entity is not configured or not enabled')
|
|
51
|
-
setLoading(false)
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Load pattern data
|
|
56
|
-
const data = await getEntityData('patterns', patternId, false) as PatternData
|
|
57
|
-
setPattern(data)
|
|
58
|
-
} catch (err) {
|
|
59
|
-
console.error('Error loading pattern:', err)
|
|
60
|
-
setError(err instanceof Error ? err.message : 'Failed to load pattern')
|
|
61
|
-
} finally {
|
|
62
|
-
setLoading(false)
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
loadPattern()
|
|
67
|
-
}, [patternId])
|
|
68
|
-
|
|
69
|
-
if (loading) {
|
|
70
|
-
return (
|
|
71
|
-
<div className="p-6 space-y-6" data-cy="pattern-reports-loading">
|
|
72
|
-
<div className="flex items-center gap-4">
|
|
73
|
-
<Skeleton className="h-8 w-8" />
|
|
74
|
-
<Skeleton className="h-8 w-64" />
|
|
75
|
-
</div>
|
|
76
|
-
<Skeleton className="h-4 w-96" />
|
|
77
|
-
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
|
|
78
|
-
{[...Array(4)].map((_, i) => (
|
|
79
|
-
<Skeleton key={i} className="h-24" />
|
|
80
|
-
))}
|
|
81
|
-
</div>
|
|
82
|
-
<Skeleton className="h-64" />
|
|
83
|
-
</div>
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (error) {
|
|
88
|
-
return (
|
|
89
|
-
<div className="p-6" data-cy="pattern-reports-error">
|
|
90
|
-
<Alert variant="destructive">
|
|
91
|
-
<AlertTitle>Error</AlertTitle>
|
|
92
|
-
<AlertDescription>{error}</AlertDescription>
|
|
93
|
-
</Alert>
|
|
94
|
-
<Button
|
|
95
|
-
variant="outline"
|
|
96
|
-
className="mt-4"
|
|
97
|
-
onClick={() => router.push('/dashboard/patterns')}
|
|
98
|
-
>
|
|
99
|
-
<ArrowLeft className="mr-2 h-4 w-4" />
|
|
100
|
-
Back to Patterns
|
|
101
|
-
</Button>
|
|
102
|
-
</div>
|
|
103
|
-
)
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (!pattern) {
|
|
107
|
-
return (
|
|
108
|
-
<div className="p-6" data-cy="pattern-reports-not-found">
|
|
109
|
-
<Alert>
|
|
110
|
-
<AlertTitle>Pattern Not Found</AlertTitle>
|
|
111
|
-
<AlertDescription>
|
|
112
|
-
The pattern you are looking for does not exist or has been deleted.
|
|
113
|
-
</AlertDescription>
|
|
114
|
-
</Alert>
|
|
115
|
-
<Button
|
|
116
|
-
variant="outline"
|
|
117
|
-
className="mt-4"
|
|
118
|
-
onClick={() => router.push('/dashboard/patterns')}
|
|
119
|
-
>
|
|
120
|
-
<ArrowLeft className="mr-2 h-4 w-4" />
|
|
121
|
-
Back to Patterns
|
|
122
|
-
</Button>
|
|
123
|
-
</div>
|
|
124
|
-
)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const patternName = pattern.name || pattern.title || pattern.id
|
|
128
|
-
|
|
129
|
-
return (
|
|
130
|
-
<div className="p-6 space-y-6" data-cy="pattern-reports-page">
|
|
131
|
-
{/* Header */}
|
|
132
|
-
<div className="flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
|
|
133
|
-
<div className="flex items-center gap-4">
|
|
134
|
-
<Button
|
|
135
|
-
variant="ghost"
|
|
136
|
-
size="icon"
|
|
137
|
-
asChild
|
|
138
|
-
data-cy="pattern-reports-back"
|
|
139
|
-
>
|
|
140
|
-
<Link href="/dashboard/patterns">
|
|
141
|
-
<ArrowLeft className="h-4 w-4" />
|
|
142
|
-
</Link>
|
|
143
|
-
</Button>
|
|
144
|
-
<div>
|
|
145
|
-
<div className="flex items-center gap-2">
|
|
146
|
-
<LayoutGrid className="h-5 w-5 text-muted-foreground" />
|
|
147
|
-
<h1 className="text-2xl font-bold tracking-tight" data-cy="pattern-reports-title">
|
|
148
|
-
{patternName}
|
|
149
|
-
</h1>
|
|
150
|
-
</div>
|
|
151
|
-
<p className="text-sm text-muted-foreground mt-1">
|
|
152
|
-
Usage reports and analytics
|
|
153
|
-
</p>
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
|
|
157
|
-
<div className="flex items-center gap-2">
|
|
158
|
-
<Button variant="outline" asChild data-cy="pattern-reports-edit">
|
|
159
|
-
<Link href={`/dashboard/patterns/${patternId}/edit`}>
|
|
160
|
-
<Edit className="mr-2 h-4 w-4" />
|
|
161
|
-
Edit Pattern
|
|
162
|
-
</Link>
|
|
163
|
-
</Button>
|
|
164
|
-
</div>
|
|
165
|
-
</div>
|
|
166
|
-
|
|
167
|
-
{/* Usage Report */}
|
|
168
|
-
<PatternUsageReport patternId={patternId} pageSize={20} />
|
|
169
|
-
</div>
|
|
170
|
-
)
|
|
171
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Patterns Create Page
|
|
3
|
-
*
|
|
4
|
-
* Wrapper that delegates to the generic entity create page.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
'use client'
|
|
8
|
-
|
|
9
|
-
import { useRouter } from 'next/navigation'
|
|
10
|
-
import { useEffect, useState } from 'react'
|
|
11
|
-
import { clientEntityRegistry, ensureClientInitialized, type ClientEntityConfig } from '@nextsparkjs/registries/entity-registry.client'
|
|
12
|
-
import { EntityFormWrapper } from '@nextsparkjs/core/components/entities/wrappers/EntityFormWrapper'
|
|
13
|
-
import { BuilderEditorView } from '@nextsparkjs/core/components/dashboard/block-editor/builder-editor-view'
|
|
14
|
-
import { Alert, AlertDescription } from '@nextsparkjs/core/components/ui/alert'
|
|
15
|
-
|
|
16
|
-
export default function PatternsCreatePage() {
|
|
17
|
-
const router = useRouter()
|
|
18
|
-
const [entityConfig, setEntityConfig] = useState<ClientEntityConfig | null>(null)
|
|
19
|
-
const [loading, setLoading] = useState(true)
|
|
20
|
-
|
|
21
|
-
const entitySlug = 'patterns'
|
|
22
|
-
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
async function loadEntityConfig() {
|
|
25
|
-
try {
|
|
26
|
-
await ensureClientInitialized()
|
|
27
|
-
const config = clientEntityRegistry.getBySlug(entitySlug)
|
|
28
|
-
setEntityConfig(config || null)
|
|
29
|
-
} catch (error) {
|
|
30
|
-
console.error('Error loading entity config:', error)
|
|
31
|
-
setEntityConfig(null)
|
|
32
|
-
} finally {
|
|
33
|
-
setLoading(false)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
loadEntityConfig()
|
|
38
|
-
}, [])
|
|
39
|
-
|
|
40
|
-
if (loading) {
|
|
41
|
-
return (
|
|
42
|
-
<div className="flex items-center justify-center min-h-[400px]">
|
|
43
|
-
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-primary" />
|
|
44
|
-
</div>
|
|
45
|
-
)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (!entityConfig || !entityConfig.features?.enabled) {
|
|
49
|
-
return (
|
|
50
|
-
<Alert>
|
|
51
|
-
<AlertDescription>
|
|
52
|
-
Patterns entity is not configured or not enabled.
|
|
53
|
-
</AlertDescription>
|
|
54
|
-
</Alert>
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Use BuilderEditorView for builder-enabled entities
|
|
59
|
-
if (entityConfig.builder?.enabled) {
|
|
60
|
-
return (
|
|
61
|
-
<BuilderEditorView
|
|
62
|
-
entitySlug={entitySlug}
|
|
63
|
-
entityConfig={entityConfig}
|
|
64
|
-
mode="create"
|
|
65
|
-
/>
|
|
66
|
-
)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Use EntityFormWrapper for regular entities
|
|
70
|
-
return (
|
|
71
|
-
<EntityFormWrapper
|
|
72
|
-
entityType={entitySlug}
|
|
73
|
-
mode="create"
|
|
74
|
-
onSuccess={(createdId) => {
|
|
75
|
-
if (createdId) {
|
|
76
|
-
router.push(`/dashboard/${entitySlug}/${createdId}`)
|
|
77
|
-
} else {
|
|
78
|
-
router.push(`/dashboard/${entitySlug}`)
|
|
79
|
-
}
|
|
80
|
-
}}
|
|
81
|
-
onError={(error) => {
|
|
82
|
-
console.error(`Error creating pattern:`, error)
|
|
83
|
-
}}
|
|
84
|
-
/>
|
|
85
|
-
)
|
|
86
|
-
}
|