@nextsparkjs/core 0.1.0-beta.7 → 0.1.0-beta.9
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/navigation/DynamicNavigation.d.ts.map +1 -1
- package/dist/components/dashboard/navigation/DynamicNavigation.js +1 -7
- package/dist/styles/classes.json +1 -1
- package/package.json +1 -1
- package/scripts/build/registry/config.mjs +7 -4
- package/scripts/build/registry.mjs +9 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/navigation/DynamicNavigation.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AA0BnF,UAAU,sBAAsB;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,QAAQ,EAAE,wBAAwB,EAAE,CAAA;CACrC;
|
|
1
|
+
{"version":3,"file":"DynamicNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/navigation/DynamicNavigation.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AA0BnF,UAAU,sBAAsB;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,QAAQ,EAAE,wBAAwB,EAAE,CAAA;CACrC;AAyGD,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,QAAgB,EAChB,WAAW,EACX,QAAQ,EACT,EAAE,sBAAsB,2CAqFxB;AAgDD,eAAe,iBAAiB,CAAA"}
|
|
@@ -7,7 +7,7 @@ import { useMemo } from "react";
|
|
|
7
7
|
import { cn } from "../../../lib/utils";
|
|
8
8
|
import { useTranslations } from "next-intl";
|
|
9
9
|
import { createCyId } from "../../../lib/test";
|
|
10
|
-
import { Home
|
|
10
|
+
import { Home } from "lucide-react";
|
|
11
11
|
import * as Icons from "lucide-react";
|
|
12
12
|
import { THEME_REGISTRY } from "@nextsparkjs/registries/theme-registry";
|
|
13
13
|
import { usePermission } from "../../../lib/permissions/hooks";
|
|
@@ -20,12 +20,6 @@ const coreItems = [
|
|
|
20
20
|
href: "/dashboard",
|
|
21
21
|
icon: Home,
|
|
22
22
|
descriptionKey: "dashboard"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
name: "pages",
|
|
26
|
-
href: "/dashboard/pages",
|
|
27
|
-
icon: FileText,
|
|
28
|
-
descriptionKey: "pages"
|
|
29
23
|
}
|
|
30
24
|
];
|
|
31
25
|
const labelMappings = {
|
package/dist/styles/classes.json
CHANGED
package/package.json
CHANGED
|
@@ -18,10 +18,13 @@ import { existsSync } from 'fs'
|
|
|
18
18
|
import dotenv from 'dotenv'
|
|
19
19
|
import { loadNextSparkConfigSync } from '../config-loader.mjs'
|
|
20
20
|
|
|
21
|
-
// Load .env
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
|
|
21
|
+
// Load .env from the correct project root
|
|
22
|
+
// Priority: NEXTSPARK_PROJECT_ROOT env var > cwd
|
|
23
|
+
// This is critical for npm mode where cwd might be node_modules/@nextsparkjs/core
|
|
24
|
+
const envPath = process.env.NEXTSPARK_PROJECT_ROOT
|
|
25
|
+
? join(process.env.NEXTSPARK_PROJECT_ROOT, '.env')
|
|
26
|
+
: undefined
|
|
27
|
+
dotenv.config({ path: envPath, override: true })
|
|
25
28
|
|
|
26
29
|
const __filename = fileURLToPath(import.meta.url)
|
|
27
30
|
const __dirname = dirname(__filename)
|
|
@@ -20,7 +20,14 @@ import { join, dirname, resolve } from 'path'
|
|
|
20
20
|
import { fileURLToPath } from 'url'
|
|
21
21
|
import { existsSync } from 'fs'
|
|
22
22
|
import dotenv from 'dotenv'
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
// Load .env from the correct project root
|
|
25
|
+
// Priority: NEXTSPARK_PROJECT_ROOT env var > cwd
|
|
26
|
+
// This is critical for npm mode where cwd might be node_modules/@nextsparkjs/core
|
|
27
|
+
const envPath = process.env.NEXTSPARK_PROJECT_ROOT
|
|
28
|
+
? join(process.env.NEXTSPARK_PROJECT_ROOT, '.env')
|
|
29
|
+
: undefined
|
|
30
|
+
dotenv.config({ path: envPath, override: true })
|
|
24
31
|
|
|
25
32
|
const __filename = fileURLToPath(import.meta.url)
|
|
26
33
|
const __dirname = dirname(__filename)
|
|
@@ -266,7 +273,7 @@ export async function buildRegistries(projectRoot = null) {
|
|
|
266
273
|
log('Registry System built successfully!', 'success')
|
|
267
274
|
console.log(`📊 Stats:`)
|
|
268
275
|
console.log(` Plugins: ${plugins.length}`)
|
|
269
|
-
console.log(` Entities: ${
|
|
276
|
+
console.log(` Entities: ${allEntities.length}`)
|
|
270
277
|
console.log(` Themes: ${themes.length}`)
|
|
271
278
|
console.log(` Templates: ${templates.length}`)
|
|
272
279
|
console.log(` Blocks: ${blocks.length}`)
|