@nextsparkjs/core 0.1.0-beta.186 → 0.1.0-beta.188
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/app/guards/DeveloperGuard.d.ts.map +1 -1
- package/dist/components/app/guards/DeveloperGuard.js +8 -4
- package/dist/components/app/guards/SuperAdminGuard.d.ts.map +1 -1
- package/dist/components/app/guards/SuperAdminGuard.js +8 -4
- package/dist/components/dashboard/mobile/MobileTopBar.d.ts +10 -1
- package/dist/components/dashboard/mobile/MobileTopBar.d.ts.map +1 -1
- package/dist/components/dashboard/mobile/MobileTopBar.js +2 -1
- package/dist/components/devtools/api-explorer/ApiExplorer.js +4 -4
- package/dist/components/patterns/pages/PatternEditPage.d.ts +5 -1
- package/dist/components/patterns/pages/PatternEditPage.d.ts.map +1 -1
- package/dist/components/patterns/pages/PatternEditPage.js +16 -5
- package/dist/components/patterns/pages/PatternsCreatePage.d.ts +2 -1
- package/dist/components/patterns/pages/PatternsCreatePage.d.ts.map +1 -1
- package/dist/components/patterns/pages/PatternsCreatePage.js +17 -5
- package/dist/lib/api/entities.js +2 -1
- package/dist/lib/api/entity/generic-handler.d.ts.map +1 -1
- package/dist/lib/api/entity/generic-handler.js +18 -4
- package/dist/lib/api/entity-handler.js +2 -2
- package/dist/lib/auth-client.d.ts.map +1 -1
- package/dist/lib/auth-client.js +9 -1
- package/dist/lib/auth.d.ts.map +1 -1
- package/dist/lib/auth.js +24 -3
- package/dist/lib/email/templates.d.ts +3 -3
- package/dist/lib/email/templates.d.ts.map +1 -1
- package/dist/lib/entities/api-generator.js +5 -5
- package/dist/lib/entities/types.d.ts +12 -0
- package/dist/lib/entities/types.d.ts.map +1 -1
- package/dist/lib/services/api-docs.service.d.ts +5 -1
- package/dist/lib/services/api-docs.service.d.ts.map +1 -1
- package/dist/lib/services/api-presets.service.d.ts +6 -1
- package/dist/lib/services/api-presets.service.d.ts.map +1 -1
- package/dist/lib/services/feature.service.d.ts +58 -4
- package/dist/lib/services/feature.service.d.ts.map +1 -1
- package/dist/lib/services/permission.service.d.ts +10 -4
- package/dist/lib/services/permission.service.d.ts.map +1 -1
- package/dist/lib/services/plugin.service.d.ts +1 -1
- package/dist/lib/services/plugin.service.d.ts.map +1 -1
- package/dist/lib/template-resolver.d.ts +3 -3
- package/dist/lib/utils/cors.d.ts +13 -0
- package/dist/lib/utils/cors.d.ts.map +1 -1
- package/dist/lib/utils/cors.js +20 -0
- package/dist/messages/de/index.d.ts +2 -0
- package/dist/messages/de/index.d.ts.map +1 -1
- package/dist/messages/de/navigation.json +3 -1
- package/dist/messages/en/index.d.ts +2 -0
- package/dist/messages/en/index.d.ts.map +1 -1
- package/dist/messages/en/navigation.json +3 -1
- package/dist/messages/es/index.d.ts +2 -0
- package/dist/messages/es/index.d.ts.map +1 -1
- package/dist/messages/es/navigation.json +3 -1
- package/dist/messages/fr/index.d.ts +2 -0
- package/dist/messages/fr/index.d.ts.map +1 -1
- package/dist/messages/fr/navigation.json +3 -1
- package/dist/messages/it/index.d.ts +2 -0
- package/dist/messages/it/index.d.ts.map +1 -1
- package/dist/messages/it/navigation.json +3 -1
- package/dist/messages/pt/index.d.ts +2 -0
- package/dist/messages/pt/index.d.ts.map +1 -1
- package/dist/messages/pt/navigation.json +3 -1
- package/dist/nextspark-registries.d.ts +580 -236
- package/dist/templates/app/layout.ppr.tsx +6 -1
- package/dist/templates/app/layout.tsx +11 -2
- package/package.json +2 -2
- package/templates/app/layout.ppr.tsx +6 -1
- package/templates/app/layout.tsx +11 -2
- package/dist/components/app/misc/ThemeToggle.d.js +0 -0
- package/dist/components/teams/TeamSwitchModal.d.js +0 -0
- package/dist/components/ui/accordion.d.js +0 -0
- package/dist/components/ui/avatar.d.js +0 -0
- package/dist/components/ui/badge.d.js +0 -0
- package/dist/components/ui/button.d.js +0 -0
- package/dist/components/ui/card.d.js +0 -0
- package/dist/components/ui/dialog.d.js +0 -0
- package/dist/components/ui/dropdown-menu.d.js +0 -0
- package/dist/components/ui/input.d.js +0 -0
- package/dist/components/ui/progress.d.js +0 -0
- package/dist/components/ui/scroll-area.d.js +0 -0
- package/dist/components/ui/select.d.js +0 -0
- package/dist/components/ui/separator.d.js +0 -0
- package/dist/components/ui/table.d.js +0 -0
- package/dist/components/ui/textarea.d.js +0 -0
- package/dist/contexts/TeamContext.d.js +0 -0
- package/dist/hooks/useAuth.d.js +0 -0
- package/dist/hooks/useLastAuthMethod.d.js +0 -0
- package/dist/hooks/useOrigin.d.js +0 -0
- package/dist/lib/api/auth/dual-auth.d.js +0 -0
- package/dist/lib/api/auth.d.js +0 -0
- package/dist/lib/api/cache.d.js +0 -0
- package/dist/lib/api/keys.d.js +0 -0
- package/dist/lib/auth-client.d.js +0 -0
- package/dist/lib/auth-context.d.js +0 -0
- package/dist/lib/auth.d.js +0 -0
- package/dist/lib/billing/config-types.d.js +0 -0
- package/dist/lib/billing/enforcement.d.js +0 -0
- package/dist/lib/billing/helpers.d.js +0 -0
- package/dist/lib/billing/jobs.d.js +0 -0
- package/dist/lib/billing/types.d.js +0 -0
- package/dist/lib/blocks/loader.d.js +0 -0
- package/dist/lib/config/app.config.d.js +0 -0
- package/dist/lib/config/config-loader.d.js +0 -0
- package/dist/lib/config/config-sync.d.js +0 -0
- package/dist/lib/config/config-types.d.js +0 -0
- package/dist/lib/config/config-utils.d.js +0 -0
- package/dist/lib/config/dashboard-types.d.js +0 -0
- package/dist/lib/config/dashboard.config.d.js +0 -0
- package/dist/lib/config/icon-map.d.js +0 -0
- package/dist/lib/config/index.d.js +0 -7
- package/dist/lib/config/nextspark-types.d.js +0 -0
- package/dist/lib/config/roles-merge.d.js +0 -0
- package/dist/lib/config/types.d.js +0 -0
- package/dist/lib/db.d.js +0 -0
- package/dist/lib/email/factory.d.js +0 -0
- package/dist/lib/email/index.d.js +0 -3
- package/dist/lib/email/providers/console.d.js +0 -0
- package/dist/lib/email/providers/resend.d.js +0 -0
- package/dist/lib/email/templates.d.js +0 -0
- package/dist/lib/email/types.d.js +0 -0
- package/dist/lib/entities/types.d.js +0 -0
- package/dist/lib/permissions/system.d.js +0 -0
- package/dist/lib/permissions/types.d.js +0 -0
- package/dist/lib/plugins/hook-system.d.js +0 -0
- package/dist/lib/scheduled-actions/cleanup.d.js +0 -0
- package/dist/lib/scheduled-actions/index.d.js +0 -19
- package/dist/lib/scheduled-actions/initializer.d.js +0 -1
- package/dist/lib/scheduled-actions/processor.d.js +0 -0
- package/dist/lib/scheduled-actions/registry.d.js +0 -0
- package/dist/lib/scheduled-actions/scheduler.d.js +0 -0
- package/dist/lib/scheduled-actions/types.d.js +0 -0
- package/dist/lib/services/api-routes.service.d.js +0 -0
- package/dist/lib/services/entity-type.service.d.js +0 -0
- package/dist/lib/services/index.d.js +0 -40
- package/dist/lib/services/invoice.service.d.js +0 -0
- package/dist/lib/services/membership.service.d.js +0 -0
- package/dist/lib/services/meta.service.d.js +0 -0
- package/dist/lib/services/middleware.service.d.js +0 -0
- package/dist/lib/services/namespace.service.d.js +0 -0
- package/dist/lib/services/permission.service.d.js +0 -0
- package/dist/lib/services/plan.service.d.js +0 -0
- package/dist/lib/services/plugin.service.d.js +0 -0
- package/dist/lib/services/route-handler.service.d.js +0 -0
- package/dist/lib/services/scope.service.d.js +0 -0
- package/dist/lib/services/subscription.service.d.js +0 -0
- package/dist/lib/services/team-member.service.d.js +0 -0
- package/dist/lib/services/team.service.d.js +0 -0
- package/dist/lib/services/theme.service.d.js +0 -0
- package/dist/lib/services/usage.service.d.js +0 -0
- package/dist/lib/services/user-flags.service.d.js +0 -0
- package/dist/lib/services/user.service.d.js +0 -0
- package/dist/lib/teams/helpers.d.js +0 -0
- package/dist/lib/teams/permissions.d.js +0 -0
- package/dist/lib/teams/types.d.js +0 -0
- package/dist/lib/utils/config-merge.d.js +0 -0
- package/dist/lib/utils/file-logger.d.js +0 -0
- package/dist/lib/utils.d.js +0 -0
- package/dist/types/auth.d.js +0 -0
- package/dist/types/blocks.d.js +0 -0
- package/dist/types/meta.types.d.js +0 -0
- package/dist/types/plugin.d.js +0 -0
- package/dist/types/testing.types.d.js +0 -0
- package/dist/types/theme.d.js +0 -0
- package/dist/types/user.types.d.js +0 -0
- /package/dist/{components/app/layouts/PublicFooter.d.js → nextspark-registries.d.js} +0 -0
- /package/dist/{components/app/layouts/PublicNavbar.d.js → types/use-intl-react-shim.d.js} +0 -0
|
@@ -79,7 +79,12 @@ export default async function RootLayout({
|
|
|
79
79
|
<NextThemeProvider
|
|
80
80
|
attribute="class"
|
|
81
81
|
defaultTheme={DEFAULT_THEME_MODE}
|
|
82
|
-
|
|
82
|
+
// Always true here: this layout never passes forcedTheme, so
|
|
83
|
+
// ThemeToggle is unconditionally visible and offers "System" as one
|
|
84
|
+
// of its 3 choices — gating on DEFAULT_THEME_MODE === 'system' had
|
|
85
|
+
// the same bug as the non-PPR layout (see #175): a build-time
|
|
86
|
+
// default of 'light'/'dark' silently broke the "System" option.
|
|
87
|
+
enableSystem
|
|
83
88
|
disableTransitionOnChange
|
|
84
89
|
>
|
|
85
90
|
<CustomThemeProvider>
|
|
@@ -81,8 +81,17 @@ export default async function RootLayout({
|
|
|
81
81
|
defaultTheme={defaultMode}
|
|
82
82
|
// When allowUserToggle is false, force the theme and ignore localStorage/system
|
|
83
83
|
forcedTheme={!allowUserToggle ? defaultMode : undefined}
|
|
84
|
-
//
|
|
85
|
-
|
|
84
|
+
// Detect OS preference whenever the user can toggle at all. ThemeToggle
|
|
85
|
+
// always offers "System" as one of its 3 choices when toggling is
|
|
86
|
+
// allowed, so the provider must be able to resolve it whenever that's
|
|
87
|
+
// true — gating on `defaultMode === 'system'` looks equivalent at
|
|
88
|
+
// first render, but defaultMode is the user's last SAVED preference
|
|
89
|
+
// for a logged-in user (see getThemeSettings), not a static "is
|
|
90
|
+
// system-matching enabled" flag. That made "System" silently write a
|
|
91
|
+
// literal, unmatched `class="system"` for anyone whose saved
|
|
92
|
+
// preference (or the theme's own config default) wasn't already
|
|
93
|
+
// 'system' — see #175.
|
|
94
|
+
enableSystem={allowUserToggle}
|
|
86
95
|
// Force a theme on the routes declared in theme.config.ts (forcedThemeRoutes)
|
|
87
96
|
forcedThemeRoutes={forcedThemeRoutes}
|
|
88
97
|
disableTransitionOnChange
|
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.188",
|
|
4
4
|
"description": "NextSpark - The complete SaaS framework for Next.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NextSpark <hello@nextspark.dev>",
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
"tailwind-merge": "^3.3.1",
|
|
480
480
|
"uuid": "^13.0.0",
|
|
481
481
|
"zod": "^4.3.6",
|
|
482
|
-
"@nextsparkjs/testing": "0.1.0-beta.
|
|
482
|
+
"@nextsparkjs/testing": "0.1.0-beta.188"
|
|
483
483
|
},
|
|
484
484
|
"scripts": {
|
|
485
485
|
"postinstall": "node scripts/postinstall.mjs || true",
|
|
@@ -79,7 +79,12 @@ export default async function RootLayout({
|
|
|
79
79
|
<NextThemeProvider
|
|
80
80
|
attribute="class"
|
|
81
81
|
defaultTheme={DEFAULT_THEME_MODE}
|
|
82
|
-
|
|
82
|
+
// Always true here: this layout never passes forcedTheme, so
|
|
83
|
+
// ThemeToggle is unconditionally visible and offers "System" as one
|
|
84
|
+
// of its 3 choices — gating on DEFAULT_THEME_MODE === 'system' had
|
|
85
|
+
// the same bug as the non-PPR layout (see #175): a build-time
|
|
86
|
+
// default of 'light'/'dark' silently broke the "System" option.
|
|
87
|
+
enableSystem
|
|
83
88
|
disableTransitionOnChange
|
|
84
89
|
>
|
|
85
90
|
<CustomThemeProvider>
|
package/templates/app/layout.tsx
CHANGED
|
@@ -81,8 +81,17 @@ export default async function RootLayout({
|
|
|
81
81
|
defaultTheme={defaultMode}
|
|
82
82
|
// When allowUserToggle is false, force the theme and ignore localStorage/system
|
|
83
83
|
forcedTheme={!allowUserToggle ? defaultMode : undefined}
|
|
84
|
-
//
|
|
85
|
-
|
|
84
|
+
// Detect OS preference whenever the user can toggle at all. ThemeToggle
|
|
85
|
+
// always offers "System" as one of its 3 choices when toggling is
|
|
86
|
+
// allowed, so the provider must be able to resolve it whenever that's
|
|
87
|
+
// true — gating on `defaultMode === 'system'` looks equivalent at
|
|
88
|
+
// first render, but defaultMode is the user's last SAVED preference
|
|
89
|
+
// for a logged-in user (see getThemeSettings), not a static "is
|
|
90
|
+
// system-matching enabled" flag. That made "System" silently write a
|
|
91
|
+
// literal, unmatched `class="system"` for anyone whose saved
|
|
92
|
+
// preference (or the theme's own config default) wasn't already
|
|
93
|
+
// 'system' — see #175.
|
|
94
|
+
enableSystem={allowUserToggle}
|
|
86
95
|
// Force a theme on the routes declared in theme.config.ts (forcedThemeRoutes)
|
|
87
96
|
forcedThemeRoutes={forcedThemeRoutes}
|
|
88
97
|
disableTransitionOnChange
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/hooks/useAuth.d.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/lib/api/auth.d.js
DELETED
|
File without changes
|
package/dist/lib/api/cache.d.js
DELETED
|
File without changes
|
package/dist/lib/api/keys.d.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/lib/auth.d.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/lib/db.d.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { registerScheduledAction, getActionHandler, getAllRegisteredActions, isActionRegistered, clearActionRegistry } from "./registry.js";
|
|
2
|
-
import { scheduleAction, scheduleRecurringAction, cancelScheduledAction } from "./scheduler.js";
|
|
3
|
-
import { processPendingActions } from "./processor.js";
|
|
4
|
-
import { cleanupOldActions } from "./cleanup.js";
|
|
5
|
-
import { initializeScheduledActions, initializeRecurringActions } from "./initializer.js";
|
|
6
|
-
export {
|
|
7
|
-
cancelScheduledAction,
|
|
8
|
-
cleanupOldActions,
|
|
9
|
-
clearActionRegistry,
|
|
10
|
-
getActionHandler,
|
|
11
|
-
getAllRegisteredActions,
|
|
12
|
-
initializeRecurringActions,
|
|
13
|
-
initializeScheduledActions,
|
|
14
|
-
isActionRegistered,
|
|
15
|
-
processPendingActions,
|
|
16
|
-
registerScheduledAction,
|
|
17
|
-
scheduleAction,
|
|
18
|
-
scheduleRecurringAction
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "server-only";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { UserService } from "./user.service.js";
|
|
2
|
-
import { MetaService } from "./meta.service.js";
|
|
3
|
-
import { PlanService } from "./plan.service.js";
|
|
4
|
-
import { SubscriptionService } from "./subscription.service.js";
|
|
5
|
-
import { UsageService } from "./usage.service.js";
|
|
6
|
-
import { InvoiceService } from "./invoice.service.js";
|
|
7
|
-
import { TeamService } from "./team.service.js";
|
|
8
|
-
import { TeamMemberService } from "./team-member.service.js";
|
|
9
|
-
import { PermissionService } from "./permission.service.js";
|
|
10
|
-
import { MembershipService, TeamMembership } from "./membership.service.js";
|
|
11
|
-
import { ThemeService } from "./theme.service.js";
|
|
12
|
-
import { EntityTypeService } from "./entity-type.service.js";
|
|
13
|
-
import { NamespaceService } from "./namespace.service.js";
|
|
14
|
-
import { MiddlewareService } from "./middleware.service.js";
|
|
15
|
-
import { ScopeService } from "./scope.service.js";
|
|
16
|
-
import { RouteHandlerService } from "./route-handler.service.js";
|
|
17
|
-
import { PluginService, usePlugin } from "./plugin.service.js";
|
|
18
|
-
import { ApiRoutesService } from "./api-routes.service.js";
|
|
19
|
-
export {
|
|
20
|
-
ApiRoutesService,
|
|
21
|
-
EntityTypeService,
|
|
22
|
-
InvoiceService,
|
|
23
|
-
MembershipService,
|
|
24
|
-
MetaService,
|
|
25
|
-
MiddlewareService,
|
|
26
|
-
NamespaceService,
|
|
27
|
-
PermissionService,
|
|
28
|
-
PlanService,
|
|
29
|
-
PluginService,
|
|
30
|
-
RouteHandlerService,
|
|
31
|
-
ScopeService,
|
|
32
|
-
SubscriptionService,
|
|
33
|
-
TeamMemberService,
|
|
34
|
-
TeamMembership,
|
|
35
|
-
TeamService,
|
|
36
|
-
ThemeService,
|
|
37
|
-
UsageService,
|
|
38
|
-
UserService,
|
|
39
|
-
usePlugin
|
|
40
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/lib/utils.d.js
DELETED
|
File without changes
|
package/dist/types/auth.d.js
DELETED
|
File without changes
|
package/dist/types/blocks.d.js
DELETED
|
File without changes
|
|
File without changes
|
package/dist/types/plugin.d.js
DELETED
|
File without changes
|
|
File without changes
|
package/dist/types/theme.d.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|