@nextsparkjs/core 0.1.0-beta.190 → 0.1.0-beta.191
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/dashboard/block-editor/dynamic-form.d.ts.map +1 -1
- package/dist/components/dashboard/block-editor/dynamic-form.js +2 -2
- package/dist/components/dashboard/layouts/TopNavbar.js +1 -1
- package/dist/components/dashboard/mobile/MobileTopBar.js +3 -2
- package/dist/emails/otp-verification.d.ts.map +1 -1
- package/dist/emails/otp-verification.js +1 -1
- package/dist/emails/reset-password.d.ts.map +1 -1
- package/dist/emails/reset-password.js +1 -1
- package/dist/emails/team-invitation.d.ts.map +1 -1
- package/dist/emails/team-invitation.js +1 -1
- package/dist/emails/verify-email.d.ts.map +1 -1
- package/dist/emails/verify-email.js +1 -1
- package/dist/lib/actions/entity.actions.js +8 -8
- package/dist/lib/actions/team.actions.js +7 -7
- package/dist/lib/api/entity/generic-handler.js +5 -5
- package/dist/lib/api/permission-middleware.js +1 -1
- package/dist/lib/auth/registration-guard-plugin.d.ts.map +1 -1
- package/dist/lib/auth/registration-guard-plugin.js +2 -2
- package/dist/lib/auth-email-callbacks.d.ts +3 -1
- package/dist/lib/auth-email-callbacks.d.ts.map +1 -1
- package/dist/lib/auth-email-callbacks.js +8 -2
- package/dist/lib/auth.d.ts.map +1 -1
- package/dist/lib/auth.js +4 -3
- package/dist/lib/billing/gateways/stripe.js +1 -1
- package/dist/lib/entities/hooks.js +1 -1
- package/dist/templates/app/(auth)/accept-invite/[token]/page.tsx +1 -1
- package/dist/templates/app/(auth)/auth-error/page.tsx +1 -1
- package/dist/templates/app/(auth)/forgot-password/page.tsx +1 -1
- package/dist/templates/app/(auth)/layout.tsx +1 -1
- package/dist/templates/app/(auth)/login/page.tsx +1 -1
- package/dist/templates/app/(auth)/reset-password/page.tsx +1 -1
- package/dist/templates/app/(auth)/signup/page.tsx +1 -1
- package/dist/templates/app/(auth)/verify-email/page.tsx +1 -1
- package/dist/templates/app/(public)/[...slug]/page.tsx +3 -3
- package/dist/templates/app/(public)/layout.tsx +1 -1
- package/dist/templates/app/(public)/page.tsx +1 -1
- package/dist/templates/app/403/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/[entity]/[id]/edit/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +4 -4
- package/dist/templates/app/dashboard/(main)/[entity]/create/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/[entity]/loading.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/[entity]/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/layout.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/loading.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/media/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/patterns/[id]/edit/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/patterns/[id]/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/patterns/[id]/reports/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/patterns/create/page.tsx +1 -1
- package/dist/templates/app/dashboard/(main)/patterns/page.tsx +1 -1
- package/dist/templates/app/dashboard/features/analytics/page.tsx +1 -1
- package/dist/templates/app/dashboard/features/automation/page.tsx +1 -1
- package/dist/templates/app/dashboard/features/layout.tsx +1 -1
- package/dist/templates/app/dashboard/features/loading.tsx +1 -1
- package/dist/templates/app/dashboard/features/webhooks/page.tsx +1 -1
- package/dist/templates/app/dashboard/layout.tsx +1 -1
- package/dist/templates/app/dashboard/permission-denied/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/api-keys/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/api-keys/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/billing/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/billing/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/invoices/[invoiceNumber]/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/invoices/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/invoices/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/layout.tsx +1 -1
- package/dist/templates/app/dashboard/settings/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/notifications/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/notifications/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/password/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/password/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/plans/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/plans/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/profile/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/profile/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/security/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/security/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/teams/loading.tsx +1 -1
- package/dist/templates/app/dashboard/settings/teams/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/teams/permissions/page.tsx +1 -1
- package/dist/templates/app/devtools/api/[[...endpoint]]/page.tsx +1 -1
- package/dist/templates/app/devtools/config/page.tsx +1 -1
- package/dist/templates/app/devtools/layout.tsx +3 -2
- package/dist/templates/app/devtools/tests/[[...path]]/page.tsx +1 -1
- package/dist/templates/app/layout.ppr.tsx +1 -1
- package/dist/templates/app/layout.tsx +1 -1
- package/dist/templates/app/public/page.tsx +1 -1
- package/dist/templates/app/superadmin/layout.tsx +1 -1
- package/dist/templates/app/superadmin/page.tsx +1 -1
- package/dist/templates/app/superadmin/subscriptions/page.tsx +1 -1
- package/dist/templates/app/superadmin/team-roles/page.tsx +1 -1
- package/dist/templates/app/superadmin/teams/[teamId]/page.tsx +1 -1
- package/dist/templates/app/superadmin/teams/page.tsx +1 -1
- package/dist/templates/app/superadmin/users/[userId]/page.tsx +1 -1
- package/dist/templates/app/superadmin/users/page.tsx +1 -1
- package/package.json +11 -3
- package/scripts/build/registry/__tests__/template-registry.test.mjs +336 -2
- package/scripts/build/registry/__tests__/write-places.test.mjs +26 -0
- package/scripts/build/registry/generators/template-registry.mjs +202 -9
- package/scripts/build/registry/write-places.mjs +19 -5
- package/scripts/build/registry.mjs +53 -1
- package/templates/app/(auth)/accept-invite/[token]/page.tsx +1 -1
- package/templates/app/(auth)/auth-error/page.tsx +1 -1
- package/templates/app/(auth)/forgot-password/page.tsx +1 -1
- package/templates/app/(auth)/layout.tsx +1 -1
- package/templates/app/(auth)/login/page.tsx +1 -1
- package/templates/app/(auth)/reset-password/page.tsx +1 -1
- package/templates/app/(auth)/signup/page.tsx +1 -1
- package/templates/app/(auth)/verify-email/page.tsx +1 -1
- package/templates/app/(public)/[...slug]/page.tsx +3 -3
- package/templates/app/(public)/layout.tsx +1 -1
- package/templates/app/(public)/page.tsx +1 -1
- package/templates/app/403/page.tsx +1 -1
- package/templates/app/dashboard/(main)/[entity]/[id]/edit/page.tsx +1 -1
- package/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +4 -4
- package/templates/app/dashboard/(main)/[entity]/create/page.tsx +1 -1
- package/templates/app/dashboard/(main)/[entity]/loading.tsx +1 -1
- package/templates/app/dashboard/(main)/[entity]/page.tsx +1 -1
- package/templates/app/dashboard/(main)/layout.tsx +1 -1
- package/templates/app/dashboard/(main)/loading.tsx +1 -1
- package/templates/app/dashboard/(main)/media/page.tsx +1 -1
- package/templates/app/dashboard/(main)/page.tsx +1 -1
- package/templates/app/dashboard/(main)/patterns/[id]/edit/page.tsx +1 -1
- package/templates/app/dashboard/(main)/patterns/[id]/page.tsx +1 -1
- package/templates/app/dashboard/(main)/patterns/[id]/reports/page.tsx +1 -1
- package/templates/app/dashboard/(main)/patterns/create/page.tsx +1 -1
- package/templates/app/dashboard/(main)/patterns/page.tsx +1 -1
- package/templates/app/dashboard/features/analytics/page.tsx +1 -1
- package/templates/app/dashboard/features/automation/page.tsx +1 -1
- package/templates/app/dashboard/features/layout.tsx +1 -1
- package/templates/app/dashboard/features/loading.tsx +1 -1
- package/templates/app/dashboard/features/webhooks/page.tsx +1 -1
- package/templates/app/dashboard/layout.tsx +1 -1
- package/templates/app/dashboard/permission-denied/page.tsx +1 -1
- package/templates/app/dashboard/settings/api-keys/loading.tsx +1 -1
- package/templates/app/dashboard/settings/api-keys/page.tsx +1 -1
- package/templates/app/dashboard/settings/billing/loading.tsx +1 -1
- package/templates/app/dashboard/settings/billing/page.tsx +1 -1
- package/templates/app/dashboard/settings/invoices/[invoiceNumber]/page.tsx +1 -1
- package/templates/app/dashboard/settings/invoices/loading.tsx +1 -1
- package/templates/app/dashboard/settings/invoices/page.tsx +1 -1
- package/templates/app/dashboard/settings/layout.tsx +1 -1
- package/templates/app/dashboard/settings/loading.tsx +1 -1
- package/templates/app/dashboard/settings/notifications/loading.tsx +1 -1
- package/templates/app/dashboard/settings/notifications/page.tsx +1 -1
- package/templates/app/dashboard/settings/page.tsx +1 -1
- package/templates/app/dashboard/settings/password/loading.tsx +1 -1
- package/templates/app/dashboard/settings/password/page.tsx +1 -1
- package/templates/app/dashboard/settings/plans/loading.tsx +1 -1
- package/templates/app/dashboard/settings/plans/page.tsx +1 -1
- package/templates/app/dashboard/settings/profile/loading.tsx +1 -1
- package/templates/app/dashboard/settings/profile/page.tsx +1 -1
- package/templates/app/dashboard/settings/security/loading.tsx +1 -1
- package/templates/app/dashboard/settings/security/page.tsx +1 -1
- package/templates/app/dashboard/settings/teams/loading.tsx +1 -1
- package/templates/app/dashboard/settings/teams/page.tsx +1 -1
- package/templates/app/dashboard/settings/teams/permissions/page.tsx +1 -1
- package/templates/app/devtools/api/[[...endpoint]]/page.tsx +1 -1
- package/templates/app/devtools/config/page.tsx +1 -1
- package/templates/app/devtools/layout.tsx +3 -2
- package/templates/app/devtools/tests/[[...path]]/page.tsx +1 -1
- package/templates/app/layout.ppr.tsx +1 -1
- package/templates/app/layout.tsx +1 -1
- package/templates/app/public/page.tsx +1 -1
- package/templates/app/superadmin/layout.tsx +1 -1
- package/templates/app/superadmin/page.tsx +1 -1
- package/templates/app/superadmin/subscriptions/page.tsx +1 -1
- package/templates/app/superadmin/team-roles/page.tsx +1 -1
- package/templates/app/superadmin/teams/[teamId]/page.tsx +1 -1
- package/templates/app/superadmin/teams/page.tsx +1 -1
- package/templates/app/superadmin/users/[userId]/page.tsx +1 -1
- package/templates/app/superadmin/users/page.tsx +1 -1
- package/tests/jest/__mocks__/@nextsparkjs/registries/template-scopes/client.ts +21 -0
- package/tests/jest/__mocks__/@nextsparkjs/registries/template-scopes/server.ts +23 -0
- package/tests/jest/__mocks__/next-intl-server.js +3 -3
|
@@ -2,7 +2,7 @@ import { notFound } from 'next/navigation'
|
|
|
2
2
|
import { getEntity, getEntityRegistry, setEntityRegistry } from '@nextsparkjs/core/lib/entities/queries'
|
|
3
3
|
import { EntityListWrapper } from '@nextsparkjs/core/components/entities/wrappers/EntityListWrapper'
|
|
4
4
|
import type { Metadata } from 'next'
|
|
5
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
5
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/(main)/[entity]/page'
|
|
6
6
|
import type { EntityConfig, ChildEntityDefinition } from '@nextsparkjs/core/lib/entities/types'
|
|
7
7
|
// Import registry directly - webpack resolves @nextsparkjs/registries alias at compile time
|
|
8
8
|
import { ENTITY_REGISTRY, ENTITY_METADATA } from '@nextsparkjs/registries/entity-registry'
|
|
@@ -14,7 +14,7 @@ import { redirect } from 'next/navigation'
|
|
|
14
14
|
import { DashboardShell } from '@nextsparkjs/core/components/dashboard/layouts/DashboardShell'
|
|
15
15
|
import { serializeEntityConfig, type SerializableEntityConfig } from '@nextsparkjs/core/lib/entities/serialization'
|
|
16
16
|
import { setEntityRegistry } from '@nextsparkjs/core/lib/entities/queries'
|
|
17
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
17
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/(main)/layout'
|
|
18
18
|
import type { EntityConfig, ChildEntityDefinition } from '@nextsparkjs/core/lib/entities/types'
|
|
19
19
|
import { checkPermission } from '@nextsparkjs/core/lib/permissions/check'
|
|
20
20
|
import { getDashboardTeamId } from '@nextsparkjs/core/lib/teams/dashboard-team'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonDashboardHome } from '@nextsparkjs/core/components/ui/skeleton-dashboard'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/(main)/loading'
|
|
3
3
|
|
|
4
4
|
function DashboardLoading() {
|
|
5
5
|
return <SkeletonDashboardHome />
|
|
@@ -48,7 +48,7 @@ import { useDebounce } from '@nextsparkjs/core/hooks/useDebounce'
|
|
|
48
48
|
import { useToast } from '@nextsparkjs/core/hooks/useToast'
|
|
49
49
|
import { sel } from '@nextsparkjs/core/lib/selectors'
|
|
50
50
|
import { usePermissions } from '@nextsparkjs/core/lib/permissions/hooks'
|
|
51
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
51
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/(main)/media/page'
|
|
52
52
|
import type { Media, MediaListOptions } from '@nextsparkjs/core/lib/media/types'
|
|
53
53
|
import type { Permission } from '@nextsparkjs/core/lib/permissions/types'
|
|
54
54
|
import { withBasePathIfInApp } from '@nextsparkjs/core/lib/base-path'
|
|
@@ -7,7 +7,7 @@ import { Button } from '@nextsparkjs/core/components/ui/button'
|
|
|
7
7
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@nextsparkjs/core/components/ui/card'
|
|
8
8
|
import { Badge } from '@nextsparkjs/core/components/ui/badge'
|
|
9
9
|
import { useTranslations } from 'next-intl'
|
|
10
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
10
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/(main)/page'
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
Loader2,
|
|
@@ -14,7 +14,7 @@ import { EntityFormWrapper } from '@nextsparkjs/core/components/entities/wrapper
|
|
|
14
14
|
import { BuilderEditorView } from '@nextsparkjs/core/components/dashboard/block-editor/builder-editor-view'
|
|
15
15
|
import { Alert, AlertDescription } from '@nextsparkjs/core/components/ui/alert'
|
|
16
16
|
import { getEntityData } from '@nextsparkjs/core/lib/api/entities'
|
|
17
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
17
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/(main)/patterns/[id]/edit/page'
|
|
18
18
|
|
|
19
19
|
function PatternEditPage() {
|
|
20
20
|
const params = useParams()!
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { redirect } from 'next/navigation'
|
|
8
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
8
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/(main)/patterns/[id]/page'
|
|
9
9
|
|
|
10
10
|
interface PageProps {
|
|
11
11
|
params: Promise<{
|
|
@@ -17,7 +17,7 @@ import { Button } from '@nextsparkjs/core/components/ui/button'
|
|
|
17
17
|
import { Alert, AlertDescription, AlertTitle } from '@nextsparkjs/core/components/ui/alert'
|
|
18
18
|
import { Skeleton } from '@nextsparkjs/core/components/ui/skeleton'
|
|
19
19
|
import { getEntityData } from '@nextsparkjs/core/lib/api/entities'
|
|
20
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
20
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/(main)/patterns/[id]/reports/page'
|
|
21
21
|
|
|
22
22
|
interface PatternData {
|
|
23
23
|
id: string
|
|
@@ -12,7 +12,7 @@ import { clientEntityRegistry, ensureClientInitialized, type ClientEntityConfig
|
|
|
12
12
|
import { EntityFormWrapper } from '@nextsparkjs/core/components/entities/wrappers/EntityFormWrapper'
|
|
13
13
|
import { BuilderEditorView } from '@nextsparkjs/core/components/dashboard/block-editor/builder-editor-view'
|
|
14
14
|
import { Alert, AlertDescription } from '@nextsparkjs/core/components/ui/alert'
|
|
15
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
15
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/(main)/patterns/create/page'
|
|
16
16
|
|
|
17
17
|
function PatternsCreatePage() {
|
|
18
18
|
const router = useRouter()
|
|
@@ -28,7 +28,7 @@ import type { Permission } from '@nextsparkjs/core/lib/permissions/types'
|
|
|
28
28
|
import type { QuickAction, DropdownAction } from '@nextsparkjs/core/components/entities/entity-table.types'
|
|
29
29
|
import { sel } from '@nextsparkjs/core/lib/test'
|
|
30
30
|
import { toast } from 'sonner'
|
|
31
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
31
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/(main)/patterns/page'
|
|
32
32
|
|
|
33
33
|
interface PatternItem {
|
|
34
34
|
id: string
|
|
@@ -4,7 +4,7 @@ import { FeatureGate } from '@nextsparkjs/core/components/billing/FeatureGate'
|
|
|
4
4
|
import { FeaturePlaceholder } from '@nextsparkjs/core/components/billing/FeaturePlaceholder'
|
|
5
5
|
import { BarChart3 } from 'lucide-react'
|
|
6
6
|
import { useTranslations } from 'next-intl'
|
|
7
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
7
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/features/analytics/page'
|
|
8
8
|
|
|
9
9
|
function AdvancedAnalyticsPage() {
|
|
10
10
|
const t = useTranslations('features')
|
|
@@ -4,7 +4,7 @@ import { FeatureGate } from '@nextsparkjs/core/components/billing/FeatureGate'
|
|
|
4
4
|
import { FeaturePlaceholder } from '@nextsparkjs/core/components/billing/FeaturePlaceholder'
|
|
5
5
|
import { Zap } from 'lucide-react'
|
|
6
6
|
import { useTranslations } from 'next-intl'
|
|
7
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
7
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/features/automation/page'
|
|
8
8
|
|
|
9
9
|
function TaskAutomationPage() {
|
|
10
10
|
const t = useTranslations('features')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/features/layout'
|
|
3
3
|
|
|
4
4
|
interface FeaturesLayoutProps {
|
|
5
5
|
children: ReactNode
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonFeaturePlaceholder } from '@nextsparkjs/core/components/ui/skeleton-features'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/features/loading'
|
|
3
3
|
|
|
4
4
|
function FeaturesLoading() {
|
|
5
5
|
return <SkeletonFeaturePlaceholder />
|
|
@@ -4,7 +4,7 @@ import { FeatureGate } from '@nextsparkjs/core/components/billing/FeatureGate'
|
|
|
4
4
|
import { FeaturePlaceholder } from '@nextsparkjs/core/components/billing/FeaturePlaceholder'
|
|
5
5
|
import { Webhook } from 'lucide-react'
|
|
6
6
|
import { useTranslations } from 'next-intl'
|
|
7
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
7
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/features/webhooks/page'
|
|
8
8
|
|
|
9
9
|
function WebhooksPage() {
|
|
10
10
|
const t = useTranslations('features')
|
|
@@ -59,7 +59,7 @@ function DashboardLayoutContent({ children }: { children: React.ReactNode }) {
|
|
|
59
59
|
Children run within authenticated boundary -
|
|
60
60
|
nested layouts CAN be themed but security is guaranteed
|
|
61
61
|
*/}
|
|
62
|
-
<div key="dashboard-children" data-cy="dashboard-container">{children}</div>
|
|
62
|
+
<div key="dashboard-children" id="dashboard-container" data-cy="dashboard-container" data-testid="dashboard-container">{children}</div>
|
|
63
63
|
</>
|
|
64
64
|
)
|
|
65
65
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This page is displayed when a user attempts to access a resource they don't have permission for.
|
|
6
6
|
*/
|
|
7
7
|
import { NoPermission } from '@nextsparkjs/core/components/permissions/NoPermission'
|
|
8
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
8
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/permission-denied/page'
|
|
9
9
|
|
|
10
10
|
interface PermissionDeniedPageProps {
|
|
11
11
|
searchParams: Promise<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonApiKeysPage } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/api-keys/loading'
|
|
3
3
|
|
|
4
4
|
function ApiKeysLoading() {
|
|
5
5
|
return <SkeletonApiKeysPage />
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
import { CreateApiKeyDialog } from '@nextsparkjs/core/components/api/keys/CreateApiKeyDialog';
|
|
36
36
|
import { ApiKeyDisplay } from '@nextsparkjs/core/components/api/keys/ApiKeyDisplay';
|
|
37
37
|
import { toast } from 'sonner';
|
|
38
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
38
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/api-keys/page'
|
|
39
39
|
import { sel } from '@nextsparkjs/core/selectors'
|
|
40
40
|
import { withBasePath } from '@nextsparkjs/core/lib/base-path'
|
|
41
41
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonBillingPage } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/billing/loading'
|
|
3
3
|
|
|
4
4
|
function BillingLoading() {
|
|
5
5
|
return <SkeletonBillingPage />
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from 'lucide-react'
|
|
17
17
|
import { sel } from '@nextsparkjs/core/selectors'
|
|
18
18
|
import { useTranslations } from 'next-intl'
|
|
19
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
19
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/billing/page'
|
|
20
20
|
import { useInvoices } from '@nextsparkjs/core/hooks/useInvoices'
|
|
21
21
|
import { useSubscription } from '@nextsparkjs/core/hooks/useSubscription'
|
|
22
22
|
import { InvoicesTable } from '@nextsparkjs/core/components/billing'
|
|
@@ -7,7 +7,7 @@ import { Button } from '@nextsparkjs/core/components/ui/button'
|
|
|
7
7
|
import { Separator } from '@nextsparkjs/core/components/ui/separator'
|
|
8
8
|
import { ArrowLeft, Printer, Loader2 } from 'lucide-react'
|
|
9
9
|
import { useTranslations } from 'next-intl'
|
|
10
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
10
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/invoices/[invoiceNumber]/page'
|
|
11
11
|
import { useInvoice } from '@nextsparkjs/core/hooks/useInvoice'
|
|
12
12
|
import { useTeam } from '@nextsparkjs/core/hooks/useTeam'
|
|
13
13
|
import { InvoiceStatusBadge } from '@nextsparkjs/core/components/billing/InvoiceStatusBadge'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonInvoicesPage } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/invoices/loading'
|
|
3
3
|
|
|
4
4
|
function InvoicesLoading() {
|
|
5
5
|
return <SkeletonInvoicesPage />
|
|
@@ -5,7 +5,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@next
|
|
|
5
5
|
import { Button } from '@nextsparkjs/core/components/ui/button'
|
|
6
6
|
import { Calendar } from 'lucide-react'
|
|
7
7
|
import { useTranslations } from 'next-intl'
|
|
8
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
8
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/invoices/page'
|
|
9
9
|
import { useInvoices } from '@nextsparkjs/core/hooks/useInvoices'
|
|
10
10
|
import { InvoicesTable } from '@nextsparkjs/core/components/billing'
|
|
11
11
|
|
|
@@ -11,7 +11,7 @@ import { ArrowLeft } from 'lucide-react'
|
|
|
11
11
|
import { useState, useCallback, useEffect } from 'react'
|
|
12
12
|
import { sel } from '@nextsparkjs/core/selectors'
|
|
13
13
|
import { useTranslations } from 'next-intl'
|
|
14
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
14
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/layout'
|
|
15
15
|
import { isSettingsPageEnabled } from '@nextsparkjs/core/lib/config/config-sync'
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonSettingsOverview } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/loading'
|
|
3
3
|
|
|
4
4
|
function SettingsLoading() {
|
|
5
5
|
return <SkeletonSettingsOverview />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonNotificationsPage } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/notifications/loading'
|
|
3
3
|
|
|
4
4
|
function NotificationsLoading() {
|
|
5
5
|
return <SkeletonNotificationsPage />
|
|
@@ -20,7 +20,7 @@ import { sel } from '@nextsparkjs/core/selectors'
|
|
|
20
20
|
import { useTranslations } from 'next-intl'
|
|
21
21
|
import { useUserWithMetaSettings } from '@nextsparkjs/core/hooks/useUserSettings'
|
|
22
22
|
import { NotificationsPageSkeleton } from '@nextsparkjs/core/components/settings/SettingsPageSkeleton'
|
|
23
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
23
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/notifications/page'
|
|
24
24
|
|
|
25
25
|
function NotificationsPage() {
|
|
26
26
|
const t = useTranslations('settings')
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
Key,
|
|
15
15
|
type LucideIcon
|
|
16
16
|
} from 'lucide-react'
|
|
17
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
17
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/page'
|
|
18
18
|
|
|
19
19
|
// Icon mapping for settings pages
|
|
20
20
|
const SETTINGS_ICONS: Record<string, LucideIcon> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonPasswordPage } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/password/loading'
|
|
3
3
|
|
|
4
4
|
function PasswordLoading() {
|
|
5
5
|
return <SkeletonPasswordPage />
|
|
@@ -21,7 +21,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@next
|
|
|
21
21
|
import { Checkbox } from "@nextsparkjs/core/components/ui/checkbox";
|
|
22
22
|
import { sel } from '@nextsparkjs/core/selectors';
|
|
23
23
|
import { useTranslations } from 'next-intl';
|
|
24
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
24
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/password/page'
|
|
25
25
|
|
|
26
26
|
function UpdatePasswordPage() {
|
|
27
27
|
const { changePassword, user } = useAuth();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonPlansPage } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/plans/loading'
|
|
3
3
|
|
|
4
4
|
function PlansLoading() {
|
|
5
5
|
return <SkeletonPlansPage />
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useCallback, useState } from 'react'
|
|
4
4
|
import { useTranslations } from 'next-intl'
|
|
5
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
5
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/plans/page'
|
|
6
6
|
import { PricingTable } from '@nextsparkjs/core/components/billing'
|
|
7
7
|
import { fetchWithTeam } from '@nextsparkjs/core/lib/api/entities'
|
|
8
8
|
import { toast } from 'sonner'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonProfileForm } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/profile/loading'
|
|
3
3
|
|
|
4
4
|
function ProfileLoading() {
|
|
5
5
|
return <SkeletonProfileForm />
|
|
@@ -63,7 +63,7 @@ import { profileSchema, ProfileFormData } from '@nextsparkjs/core/lib/validation
|
|
|
63
63
|
import { countries, timezones } from '@nextsparkjs/core/lib/countries-timezones'
|
|
64
64
|
import { sel } from '@nextsparkjs/core/selectors'
|
|
65
65
|
import { useLocale, useTranslations } from 'next-intl'
|
|
66
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
66
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/profile/page'
|
|
67
67
|
import { withBasePath } from '@nextsparkjs/core/lib/base-path'
|
|
68
68
|
|
|
69
69
|
// Language options
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonSecurityPage } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/security/loading'
|
|
3
3
|
|
|
4
4
|
function SecurityLoading() {
|
|
5
5
|
return <SkeletonSecurityPage />
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
import { useTranslations } from 'next-intl'
|
|
36
36
|
import { useUserWithMetaSettings } from '@nextsparkjs/core/hooks/useUserSettings'
|
|
37
37
|
import { SecurityPageSkeleton } from '@nextsparkjs/core/components/settings/SettingsPageSkeleton'
|
|
38
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
38
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/security/page'
|
|
39
39
|
|
|
40
40
|
function SecurityPage() {
|
|
41
41
|
const t = useTranslations('settings')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonTeamsPage } from '@nextsparkjs/core/components/ui/skeleton-settings'
|
|
2
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
2
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/teams/loading'
|
|
3
3
|
|
|
4
4
|
function TeamsLoading() {
|
|
5
5
|
return <SkeletonTeamsPage />
|
|
@@ -16,7 +16,7 @@ import { CreateTeamDialog } from '@nextsparkjs/core/components/teams/CreateTeamD
|
|
|
16
16
|
import { InlineEditableField } from '@nextsparkjs/core/components/teams/InlineEditableField'
|
|
17
17
|
import { sel } from '@nextsparkjs/core/selectors'
|
|
18
18
|
import { TeamRole } from '@nextsparkjs/core/lib/teams/types'
|
|
19
|
-
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-
|
|
19
|
+
import { getTemplateOrDefaultClient } from '@nextsparkjs/registries/template-scopes/client/dashboard/settings/teams/page'
|
|
20
20
|
|
|
21
21
|
// Role icons map - core roles only, custom roles use fallback
|
|
22
22
|
const roleIconsMap: Record<string, typeof Crown | null> = {
|
|
@@ -4,7 +4,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@nextsparkjs/core/comp
|
|
|
4
4
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@nextsparkjs/core/components/ui/card'
|
|
5
5
|
// Use PermissionService which reads from the build-time generated registry
|
|
6
6
|
import { PermissionService } from '@nextsparkjs/core/lib/services/permission.service'
|
|
7
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
7
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/dashboard/settings/teams/permissions/page'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Team Permissions Page
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiRoutesService } from "@nextsparkjs/core/lib/services/api-routes.service"
|
|
2
|
-
import { ApiExplorer } from "@nextsparkjs/core/components/devtools"
|
|
2
|
+
import { ApiExplorer } from "@nextsparkjs/core/components/devtools/api-explorer"
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
params: Promise<{ endpoint?: string[] }>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Suspense } from "react";
|
|
2
|
-
import { ConfigViewer } from "@nextsparkjs/core/components/devtools";
|
|
2
|
+
import { ConfigViewer } from "@nextsparkjs/core/components/devtools/ConfigViewer";
|
|
3
3
|
import { Settings } from "lucide-react";
|
|
4
4
|
import { getTranslations } from "next-intl/server";
|
|
5
5
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DeveloperGuard } from "@nextsparkjs/core/components/app/guards/DeveloperGuard";
|
|
2
2
|
import { DashboardProviders } from "@nextsparkjs/core/providers/DashboardProviders";
|
|
3
|
-
import { DevtoolsSidebar
|
|
3
|
+
import { DevtoolsSidebar } from "@nextsparkjs/core/components/devtools/DevtoolsSidebar";
|
|
4
|
+
import { DevtoolsMobileHeader } from "@nextsparkjs/core/components/devtools/DevtoolsMobileHeader";
|
|
4
5
|
import { Metadata } from "next";
|
|
5
|
-
import { getTemplateOrDefault, getMetadataOrDefault } from '@nextsparkjs/
|
|
6
|
+
import { getTemplateOrDefault, getMetadataOrDefault } from '@nextsparkjs/registries/template-scopes/server/devtools/layout'
|
|
6
7
|
import { getPluginNavItems } from '@nextsparkjs/registries/plugin-registry'
|
|
7
8
|
|
|
8
9
|
const defaultMetadata: Metadata = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Suspense } from "react";
|
|
2
|
-
import { TestCasesViewer } from "@nextsparkjs/core/components/devtools";
|
|
2
|
+
import { TestCasesViewer } from "@nextsparkjs/core/components/devtools/TestCasesViewer";
|
|
3
3
|
import { FileText } from "lucide-react";
|
|
4
4
|
import { getTranslations } from "next-intl/server";
|
|
5
5
|
|
|
@@ -31,7 +31,7 @@ import { SessionCookieRefresher } from "@nextsparkjs/core/components/auth/Sessio
|
|
|
31
31
|
import { ThemeProvider as NextThemeProvider } from "@nextsparkjs/core/providers/theme-provider"
|
|
32
32
|
import { ThemeProvider as CustomThemeProvider } from "@nextsparkjs/core/lib/theme/ThemeProvider"
|
|
33
33
|
import { Toaster } from "@nextsparkjs/core/components/ui/sonner"
|
|
34
|
-
import { getMetadataOrDefault } from '@nextsparkjs/
|
|
34
|
+
import { getMetadataOrDefault } from '@nextsparkjs/registries/template-scopes/server/layout'
|
|
35
35
|
import { DEFAULT_LOCALE, DEFAULT_THEME_MODE, STATIC_MESSAGES } from '@nextsparkjs/registries/translation-registry'
|
|
36
36
|
|
|
37
37
|
const geistSans = Geist({
|
|
@@ -20,7 +20,7 @@ import { getUserLocale } from '@nextsparkjs/core/lib/locale'
|
|
|
20
20
|
import { TranslationContextManager } from "@nextsparkjs/core/providers/TranslationContextManager"
|
|
21
21
|
import { SessionCookieRefresher } from "@nextsparkjs/core/components/auth/SessionCookieRefresher"
|
|
22
22
|
import { PluginService } from '@nextsparkjs/core/lib/services'
|
|
23
|
-
import { getMetadataOrDefault } from '@nextsparkjs/
|
|
23
|
+
import { getMetadataOrDefault } from '@nextsparkjs/registries/template-scopes/server/layout'
|
|
24
24
|
import { getThemeSettings } from '@nextsparkjs/core/lib/theme/get-default-theme-mode'
|
|
25
25
|
|
|
26
26
|
const geistSans = Geist({
|
|
@@ -6,7 +6,7 @@ import { DashboardProviders } from "@nextsparkjs/core/providers/DashboardProvide
|
|
|
6
6
|
import { SuperadminSidebar } from "@nextsparkjs/core/components/superadmin/layouts/SuperadminSidebar";
|
|
7
7
|
import { Loader2 } from 'lucide-react'
|
|
8
8
|
import { Metadata } from "next";
|
|
9
|
-
import { getTemplateOrDefault, getMetadataOrDefault } from '@nextsparkjs/
|
|
9
|
+
import { getTemplateOrDefault, getMetadataOrDefault } from '@nextsparkjs/registries/template-scopes/server/superadmin/layout'
|
|
10
10
|
import { getPluginNavItems } from '@nextsparkjs/registries/plugin-registry'
|
|
11
11
|
|
|
12
12
|
const defaultMetadata: Metadata = {
|
|
@@ -2,7 +2,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@next
|
|
|
2
2
|
import { Button } from "@nextsparkjs/core/components/ui/button";
|
|
3
3
|
import { Users, BarChart3, Settings, Shield } from "lucide-react";
|
|
4
4
|
import Link from "next/link";
|
|
5
|
-
import { getTemplateOrDefault } from '@nextsparkjs/
|
|
5
|
+
import { getTemplateOrDefault } from '@nextsparkjs/registries/template-scopes/server/superadmin/page'
|
|
6
6
|
import { sel } from "@nextsparkjs/core/selectors"
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "lucide-react";
|
|
45
45
|
import Link from "next/link";
|
|
46
46
|
import { withBasePath, withBasePathIfInApp } from "@nextsparkjs/core/lib/base-path";
|
|
47
|
-
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-
|
|
47
|
+
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-scopes/client/superadmin/subscriptions/page";
|
|
48
48
|
import {
|
|
49
49
|
SearchInput,
|
|
50
50
|
PaginationControls,
|
|
@@ -28,7 +28,7 @@ import { PERMISSIONS_METADATA } from "@nextsparkjs/registries/permissions-regist
|
|
|
28
28
|
import { getFullBillingMatrix } from "@nextsparkjs/core/lib/billing/queries";
|
|
29
29
|
import { RolesPermissionsMatrix } from "@nextsparkjs/core/components/superadmin/tables/RolesPermissionsMatrix";
|
|
30
30
|
import { PlanFeaturesMatrix } from "@nextsparkjs/core/components/superadmin/tables/PlanFeaturesMatrix";
|
|
31
|
-
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-
|
|
31
|
+
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-scopes/client/superadmin/team-roles/page";
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Team Roles & Permissions Page
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
TrendingUp,
|
|
43
43
|
} from "lucide-react";
|
|
44
44
|
import Link from "next/link";
|
|
45
|
-
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-
|
|
45
|
+
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-scopes/client/superadmin/teams/[teamId]/page";
|
|
46
46
|
import { withBasePath, withBasePathIfInApp } from "@nextsparkjs/core/lib/base-path"
|
|
47
47
|
|
|
48
48
|
interface TeamOwner {
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "lucide-react";
|
|
22
22
|
import Link from "next/link";
|
|
23
23
|
import { TeamsTable } from "@nextsparkjs/core/components/superadmin/tables/TeamsTable";
|
|
24
|
-
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-
|
|
24
|
+
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-scopes/client/superadmin/teams/page";
|
|
25
25
|
import {
|
|
26
26
|
SearchInput,
|
|
27
27
|
PaginationControls,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
Database,
|
|
39
39
|
} from "lucide-react";
|
|
40
40
|
import Link from "next/link";
|
|
41
|
-
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-
|
|
41
|
+
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-scopes/client/superadmin/users/[userId]/page";
|
|
42
42
|
import { withBasePath } from "@nextsparkjs/core/lib/base-path"
|
|
43
43
|
|
|
44
44
|
interface TeamMembership {
|
|
@@ -31,7 +31,7 @@ import { UsersTable } from "@nextsparkjs/core/components/users/tables/UsersTable
|
|
|
31
31
|
import { SuperAdminsTable } from "@nextsparkjs/core/components/users/tables/SuperAdminsTable";
|
|
32
32
|
import { useSession } from "@nextsparkjs/core/lib/auth-client";
|
|
33
33
|
import type { User } from "@nextsparkjs/core/types/user.types";
|
|
34
|
-
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-
|
|
34
|
+
import { getTemplateOrDefaultClient } from "@nextsparkjs/registries/template-scopes/client/superadmin/users/page";
|
|
35
35
|
import {
|
|
36
36
|
SearchInput,
|
|
37
37
|
PaginationControls,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextsparkjs/core",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.191",
|
|
4
4
|
"description": "NextSpark - The complete SaaS framework for Next.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NextSpark <hello@nextspark.dev>",
|
|
@@ -239,10 +239,18 @@
|
|
|
239
239
|
"types": "./dist/components/devtools/index.d.ts",
|
|
240
240
|
"import": "./dist/components/devtools/index.js"
|
|
241
241
|
},
|
|
242
|
+
"./components/devtools/*": {
|
|
243
|
+
"types": "./dist/components/devtools/*.d.ts",
|
|
244
|
+
"import": "./dist/components/devtools/*.js"
|
|
245
|
+
},
|
|
242
246
|
"./components/devtools/api-tester": {
|
|
243
247
|
"types": "./dist/components/devtools/api-tester/index.d.ts",
|
|
244
248
|
"import": "./dist/components/devtools/api-tester/index.js"
|
|
245
249
|
},
|
|
250
|
+
"./components/devtools/api-explorer": {
|
|
251
|
+
"types": "./dist/components/devtools/api-explorer/index.d.ts",
|
|
252
|
+
"import": "./dist/components/devtools/api-explorer/index.js"
|
|
253
|
+
},
|
|
246
254
|
"./components/devtools/bdd": {
|
|
247
255
|
"types": "./dist/components/devtools/bdd/index.d.ts",
|
|
248
256
|
"import": "./dist/components/devtools/bdd/index.js"
|
|
@@ -490,13 +498,13 @@
|
|
|
490
498
|
"typescript": "^5 || ^6",
|
|
491
499
|
"uuid": "^13.0.0",
|
|
492
500
|
"zod": "^4.3.6",
|
|
493
|
-
"@nextsparkjs/testing": "0.1.0-beta.
|
|
501
|
+
"@nextsparkjs/testing": "0.1.0-beta.191"
|
|
494
502
|
},
|
|
495
503
|
"scripts": {
|
|
496
504
|
"postinstall": "node scripts/postinstall.mjs || true",
|
|
497
505
|
"build": "tsup && pnpm build:dts",
|
|
498
506
|
"build:js": "tsup",
|
|
499
|
-
"build:dts": "tsc -p tsconfig.dts.json
|
|
507
|
+
"build:dts": "tsc -p tsconfig.dts.json",
|
|
500
508
|
"dev": "tsup --watch",
|
|
501
509
|
"test": "jest",
|
|
502
510
|
"test:watch": "jest --watch",
|