@common-stack/core 8.1.1-alpha.13 → 8.1.1-alpha.14

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.
@@ -37,6 +37,29 @@ export interface IRouteModule extends IMenuDataItem, IGeneratedWrapperOptions {
37
37
  component?: () => Promise<{
38
38
  default: ComponentType<any>;
39
39
  }>;
40
+ /**
41
+ * @name SPA Component
42
+ * @description Dynamic import of an alternative Component for SPA/Tauri mode.
43
+ * When running in SPA mode (settings.runSPAOnly=true), this component will be used
44
+ * instead of the regular `component`. Use this when you need a different component
45
+ * implementation that doesn't rely on server-side loaders or actions.
46
+ *
47
+ * @example
48
+ * {
49
+ * component: () => import('./RemixAuthCallback'), // Uses server loader
50
+ * spaComponent: () => import('./SPAAuthCallback'), // Client-only implementation
51
+ * }
52
+ */
53
+ spaComponent?: () => Promise<{
54
+ default: ComponentType<any>;
55
+ }>;
56
+ /**
57
+ * @name SPA Exclude
58
+ * @description When true, this route will be excluded from SPA builds.
59
+ * Use this for resource routes or routes that only make sense in SSR mode.
60
+ * Routes with isResourceRoute=true are automatically excluded from SPA builds.
61
+ */
62
+ spaExclude?: boolean;
40
63
  /**
41
64
  * @name Fallback Server Component
42
65
  * @description Dynamic import of the fallback server-safe component to use during SSR
@@ -27,6 +27,13 @@ export interface IViteSettings {
27
27
  * project root.
28
28
  */
29
29
  outputDir?: string;
30
+ /**
31
+ * The app directory path (where routes.ts is located). This is used to
32
+ * calculate relative paths for route modules. In Remix, this is typically
33
+ * set via `appDirectory` in the vite.config.ts remix plugin configuration.
34
+ * @default 'src' (relative to project root)
35
+ */
36
+ appDirectory?: string;
30
37
  /**
31
38
  * Disable generation of server loaders for routes. Useful to opt-out of
32
39
  * loader wiring when the project prefers client-side data fetching.
@@ -6,6 +6,7 @@ export interface IWrapperConfigPaths {
6
6
  app?: string;
7
7
  configPermissionWrapper?: string;
8
8
  authMiddlware?: string;
9
+ spaAuthMiddleware?: string;
9
10
  configurationMiddlewareExec?: string;
10
11
  lifecycleMiddleware?: string;
11
12
  middlewareExec?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/core",
3
- "version": "8.1.1-alpha.13",
3
+ "version": "8.1.1-alpha.14",
4
4
  "description": "Common core for higher packages to depend on",
5
5
  "license": "UNLICENSED",
6
6
  "author": "CDMBase LLC",
@@ -26,7 +26,7 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "8cf4283c047e82372cca32e222fa576167a5fa8d",
29
+ "gitHead": "ee6ba33da749c5e3c9d918093fd9e169ba93533f",
30
30
  "typescript": {
31
31
  "definition": "lib/index.d.ts"
32
32
  }