@common-stack/core 8.1.1-alpha.1 → 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;
|
|
@@ -77,6 +78,18 @@ export interface IGeneratedWrapperOptions {
|
|
|
77
78
|
* @description Array of middleware functions for the route.
|
|
78
79
|
*/
|
|
79
80
|
middlewares?: any[];
|
|
81
|
+
/**
|
|
82
|
+
* @name Has Middleware
|
|
83
|
+
* @description Indicates if the route has middleware conditions that require execution.
|
|
84
|
+
* Calculated from requireAuth, middlewares, authority, configurations, and extraPermissions.
|
|
85
|
+
*/
|
|
86
|
+
hasMiddleware?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* @name Has Queries
|
|
89
|
+
* @description Indicates if the route has GraphQL queries defined.
|
|
90
|
+
* Calculated from the queries object.
|
|
91
|
+
*/
|
|
92
|
+
hasQueries?: boolean;
|
|
80
93
|
/**
|
|
81
94
|
* @name Client Middlewares
|
|
82
95
|
* @description Array of client-side middleware paths applied to the route.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/core",
|
|
3
|
-
"version": "8.1.1-alpha.
|
|
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",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"watch": "yarn build:lib:watch"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"common": "8.1.1-alpha.
|
|
24
|
+
"common": "8.1.1-alpha.13"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
+
"gitHead": "ee6ba33da749c5e3c9d918093fd9e169ba93533f",
|
|
29
30
|
"typescript": {
|
|
30
31
|
"definition": "lib/index.d.ts"
|
|
31
|
-
}
|
|
32
|
-
"gitHead": "4968f621c6a6f32d538ef5195f5c106e4f0811b8"
|
|
32
|
+
}
|
|
33
33
|
}
|