@nextsparkjs/core 0.1.0-beta.16 → 0.1.0-beta.18

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2026-01-07T03:08:55.725Z",
2
+ "generated": "2026-01-07T13:52:59.655Z",
3
3
  "totalClasses": 999,
4
4
  "classes": [
5
5
  "''",
@@ -1,9 +1,14 @@
1
1
  import { notFound, redirect } from 'next/navigation'
2
- import { getEntity, getEntityRegistry, getChildEntities } from '@nextsparkjs/core/lib/entities/queries'
2
+ import { getEntity, getEntityRegistry, getChildEntities, setEntityRegistry } from '@nextsparkjs/core/lib/entities/queries'
3
3
  import { EntityDetailWrapper } from '@nextsparkjs/core/components/entities/wrappers/EntityDetailWrapper'
4
4
  import type { Metadata } from 'next'
5
5
  import { TemplateService } from '@nextsparkjs/core/lib/services/template.service'
6
6
  import type { EntityConfig, ChildEntityDefinition } from '@nextsparkjs/core/lib/entities/types'
7
+ // Import registry directly - webpack resolves @nextsparkjs/registries alias at compile time
8
+ import { ENTITY_REGISTRY, ENTITY_METADATA } from '@nextsparkjs/registries/entity-registry'
9
+
10
+ // Initialize registry at module load time (before any component renders)
11
+ setEntityRegistry(ENTITY_REGISTRY, ENTITY_METADATA)
7
12
 
8
13
  // Type guard to check if entity is a full EntityConfig
9
14
  function isEntityConfig(entity: EntityConfig | ChildEntityDefinition): entity is EntityConfig {
@@ -1,9 +1,15 @@
1
1
  import { notFound } from 'next/navigation'
2
- import { getEntity, getEntityRegistry } from '@nextsparkjs/core/lib/entities/queries'
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
5
  import { getTemplateOrDefault } from '@nextsparkjs/core/lib/template-resolver'
6
6
  import type { EntityConfig, ChildEntityDefinition } from '@nextsparkjs/core/lib/entities/types'
7
+ // Import registry directly - webpack resolves @nextsparkjs/registries alias at compile time
8
+ import { ENTITY_REGISTRY, ENTITY_METADATA } from '@nextsparkjs/registries/entity-registry'
9
+
10
+ // Initialize registry at module load time (before any component renders)
11
+ // This ensures the registry is available even if this page loads before the layout
12
+ setEntityRegistry(ENTITY_REGISTRY, ENTITY_METADATA)
7
13
 
8
14
  // Type guard to check if entity is a full EntityConfig
9
15
  function isEntityConfig(entity: EntityConfig | ChildEntityDefinition): entity is EntityConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/core",
3
- "version": "0.1.0-beta.16",
3
+ "version": "0.1.0-beta.18",
4
4
  "description": "NextSpark - The complete SaaS framework for Next.js",
5
5
  "license": "MIT",
6
6
  "author": "NextSpark <hello@nextspark.dev>",
@@ -223,16 +223,6 @@
223
223
  "README.md",
224
224
  "scripts"
225
225
  ],
226
- "scripts": {
227
- "build": "tsup && pnpm build:dts && pnpm build:ui-css",
228
- "build:js": "tsup",
229
- "build:dts": "tsc -p tsconfig.dts.json || echo '⚠️ DTS generation completed with some type errors (partial coverage)'",
230
- "build:ui-css": "node scripts/build/build-ui-css.mjs",
231
- "dev": "tsup --watch",
232
- "test": "jest",
233
- "test:watch": "jest --watch",
234
- "test:coverage": "jest --coverage"
235
- },
236
226
  "peerDependencies": {
237
227
  "next": ">=14.0.0",
238
228
  "react": ">=18.0.0",
@@ -317,5 +307,15 @@
317
307
  "tailwind-merge": "^3.3.1",
318
308
  "uuid": "^13.0.0",
319
309
  "zod": "^4.1.5"
310
+ },
311
+ "scripts": {
312
+ "build": "tsup && pnpm build:dts && pnpm build:ui-css",
313
+ "build:js": "tsup",
314
+ "build:dts": "tsc -p tsconfig.dts.json || echo '⚠️ DTS generation completed with some type errors (partial coverage)'",
315
+ "build:ui-css": "node scripts/build/build-ui-css.mjs",
316
+ "dev": "tsup --watch",
317
+ "test": "jest",
318
+ "test:watch": "jest --watch",
319
+ "test:coverage": "jest --coverage"
320
320
  }
321
- }
321
+ }
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,9 +1,14 @@
1
1
  import { notFound, redirect } from 'next/navigation'
2
- import { getEntity, getEntityRegistry, getChildEntities } from '@nextsparkjs/core/lib/entities/queries'
2
+ import { getEntity, getEntityRegistry, getChildEntities, setEntityRegistry } from '@nextsparkjs/core/lib/entities/queries'
3
3
  import { EntityDetailWrapper } from '@nextsparkjs/core/components/entities/wrappers/EntityDetailWrapper'
4
4
  import type { Metadata } from 'next'
5
5
  import { TemplateService } from '@nextsparkjs/core/lib/services/template.service'
6
6
  import type { EntityConfig, ChildEntityDefinition } from '@nextsparkjs/core/lib/entities/types'
7
+ // Import registry directly - webpack resolves @nextsparkjs/registries alias at compile time
8
+ import { ENTITY_REGISTRY, ENTITY_METADATA } from '@nextsparkjs/registries/entity-registry'
9
+
10
+ // Initialize registry at module load time (before any component renders)
11
+ setEntityRegistry(ENTITY_REGISTRY, ENTITY_METADATA)
7
12
 
8
13
  // Type guard to check if entity is a full EntityConfig
9
14
  function isEntityConfig(entity: EntityConfig | ChildEntityDefinition): entity is EntityConfig {
@@ -1,9 +1,15 @@
1
1
  import { notFound } from 'next/navigation'
2
- import { getEntity, getEntityRegistry } from '@nextsparkjs/core/lib/entities/queries'
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
5
  import { getTemplateOrDefault } from '@nextsparkjs/core/lib/template-resolver'
6
6
  import type { EntityConfig, ChildEntityDefinition } from '@nextsparkjs/core/lib/entities/types'
7
+ // Import registry directly - webpack resolves @nextsparkjs/registries alias at compile time
8
+ import { ENTITY_REGISTRY, ENTITY_METADATA } from '@nextsparkjs/registries/entity-registry'
9
+
10
+ // Initialize registry at module load time (before any component renders)
11
+ // This ensures the registry is available even if this page loads before the layout
12
+ setEntityRegistry(ENTITY_REGISTRY, ENTITY_METADATA)
7
13
 
8
14
  // Type guard to check if entity is a full EntityConfig
9
15
  function isEntityConfig(entity: EntityConfig | ChildEntityDefinition): entity is EntityConfig {