@common-stack/rollup-vite-utils 6.0.6-alpha.5 → 6.0.6-alpha.52
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/lib/config-schema.cjs +111 -0
- package/lib/config-schema.cjs.map +1 -0
- package/lib/config-schema.js +111 -0
- package/lib/config-schema.js.map +1 -0
- package/lib/default-config.json.cjs +2 -2
- package/lib/default-config.json.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.js +1 -1
- package/lib/interfaces/types.cjs +6 -0
- package/lib/interfaces/types.cjs.map +1 -0
- package/lib/interfaces/types.d.ts +41 -24
- package/lib/interfaces/types.js +6 -0
- package/lib/interfaces/types.js.map +1 -0
- package/lib/preStartup/configLoader/index.cjs +1 -1
- package/lib/preStartup/configLoader/index.cjs.map +1 -1
- package/lib/preStartup/configLoader/index.js +1 -1
- package/lib/preStartup/configLoader/index.js.map +1 -1
- package/lib/preStartup/copyIfVersionChanged.cjs +1 -1
- package/lib/preStartup/copyIfVersionChanged.cjs.map +1 -1
- package/lib/preStartup/copyIfVersionChanged.js +1 -1
- package/lib/preStartup/copyIfVersionChanged.js.map +1 -1
- package/lib/rollup/index.d.ts +1 -0
- package/lib/rollup/modifyLibFiles/extractGraphQLQueries.cjs +1 -1
- package/lib/rollup/modifyLibFiles/extractGraphQLQueries.cjs.map +1 -1
- package/lib/rollup/modifyLibFiles/extractGraphQLQueries.js +1 -1
- package/lib/rollup/modifyLibFiles/extractGraphQLQueries.js.map +1 -1
- package/lib/rollup/modifyLibFiles/handleComponentOrDialog.cjs +212 -110
- package/lib/rollup/modifyLibFiles/handleComponentOrDialog.cjs.map +1 -1
- package/lib/rollup/modifyLibFiles/handleComponentOrDialog.d.ts +41 -0
- package/lib/rollup/modifyLibFiles/handleComponentOrDialog.js +212 -110
- package/lib/rollup/modifyLibFiles/handleComponentOrDialog.js.map +1 -1
- package/lib/rollup/modifyLibFiles/handleImportPaths.cjs +4 -3
- package/lib/rollup/modifyLibFiles/handleImportPaths.cjs.map +1 -1
- package/lib/rollup/modifyLibFiles/handleImportPaths.js +4 -3
- package/lib/rollup/modifyLibFiles/handleImportPaths.js.map +1 -1
- package/lib/rollup/modifyLibFiles/utils.cjs +7 -7
- package/lib/rollup/modifyLibFiles/utils.cjs.map +1 -1
- package/lib/rollup/modifyLibFiles/utils.d.ts +1 -1
- package/lib/rollup/modifyLibFiles/utils.js +7 -7
- package/lib/rollup/modifyLibFiles/utils.js.map +1 -1
- package/lib/rollup/rollupPluginGenerateJson.cjs +2 -3
- package/lib/rollup/rollupPluginGenerateJson.cjs.map +1 -1
- package/lib/rollup/rollupPluginGenerateJson.js +2 -3
- package/lib/rollup/rollupPluginGenerateJson.js.map +1 -1
- package/lib/rollup/rollupPluginModifyLibFiles.cjs +25 -14
- package/lib/rollup/rollupPluginModifyLibFiles.cjs.map +1 -1
- package/lib/rollup/rollupPluginModifyLibFiles.js +25 -14
- package/lib/rollup/rollupPluginModifyLibFiles.js.map +1 -1
- package/lib/rollup/rollupPluginUpdateFromConfig.cjs +122 -0
- package/lib/rollup/rollupPluginUpdateFromConfig.cjs.map +1 -0
- package/lib/rollup/rollupPluginUpdateFromConfig.d.ts +1 -0
- package/lib/rollup/rollupPluginUpdateFromConfig.js +122 -0
- package/lib/rollup/rollupPluginUpdateFromConfig.js.map +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/parseUtility.d.ts +3 -0
- package/lib/utils/verifyConfig.cjs +13 -0
- package/lib/utils/verifyConfig.cjs.map +1 -0
- package/lib/utils/verifyConfig.d.ts +2 -0
- package/lib/utils/verifyConfig.js +13 -0
- package/lib/utils/verifyConfig.js.map +1 -0
- package/lib/utils/withErrorHandleUtil.cjs +3 -7
- package/lib/utils/withErrorHandleUtil.cjs.map +1 -1
- package/lib/utils/withErrorHandleUtil.js +3 -7
- package/lib/utils/withErrorHandleUtil.js.map +1 -1
- package/lib/vite-wrappers/custom-routes.cjs +43 -0
- package/lib/vite-wrappers/custom-routes.cjs.map +1 -0
- package/lib/vite-wrappers/custom-routes.d.ts +2 -0
- package/lib/vite-wrappers/custom-routes.js +43 -0
- package/lib/vite-wrappers/custom-routes.js.map +1 -0
- package/lib/vite-wrappers/generators/clientLoaderGenerator.cjs +149 -0
- package/lib/vite-wrappers/generators/clientLoaderGenerator.cjs.map +1 -0
- package/lib/vite-wrappers/generators/clientLoaderGenerator.d.ts +17 -0
- package/lib/vite-wrappers/generators/clientLoaderGenerator.js +149 -0
- package/lib/vite-wrappers/generators/clientLoaderGenerator.js.map +1 -0
- package/lib/vite-wrappers/generators/clientLoaderGenerator.test.d.ts +1 -0
- package/lib/vite-wrappers/generators/generateHasConfiguration.cjs +20 -0
- package/lib/vite-wrappers/generators/generateHasConfiguration.cjs.map +1 -0
- package/lib/vite-wrappers/generators/generateHasConfiguration.d.ts +10 -0
- package/lib/vite-wrappers/generators/generateHasConfiguration.js +20 -0
- package/lib/vite-wrappers/generators/generateHasConfiguration.js.map +1 -0
- package/lib/vite-wrappers/generators/generateHasPermission.cjs +29 -0
- package/lib/vite-wrappers/generators/generateHasPermission.cjs.map +1 -0
- package/lib/vite-wrappers/generators/generateHasPermission.d.ts +9 -0
- package/lib/vite-wrappers/generators/generateHasPermission.js +29 -0
- package/lib/vite-wrappers/generators/generateHasPermission.js.map +1 -0
- package/lib/vite-wrappers/generators/generateHasPermission.test.d.ts +1 -0
- package/lib/vite-wrappers/generators/loaderGenerator.cjs +197 -0
- package/lib/vite-wrappers/generators/loaderGenerator.cjs.map +1 -0
- package/lib/vite-wrappers/generators/loaderGenerator.d.ts +44 -0
- package/lib/vite-wrappers/{loaderGenerator.js → generators/loaderGenerator.js} +74 -122
- package/lib/vite-wrappers/generators/loaderGenerator.js.map +1 -0
- package/lib/vite-wrappers/generators/loaderGenerator.test.d.ts +1 -0
- package/lib/vite-wrappers/generators/utils/pickConfig.cjs +16 -0
- package/lib/vite-wrappers/generators/utils/pickConfig.cjs.map +1 -0
- package/lib/vite-wrappers/generators/utils/pickConfig.d.ts +10 -0
- package/lib/vite-wrappers/generators/utils/pickConfig.js +16 -0
- package/lib/vite-wrappers/generators/utils/pickConfig.js.map +1 -0
- package/lib/vite-wrappers/generators/utils/resourceParams.cjs +36 -0
- package/lib/vite-wrappers/generators/utils/resourceParams.cjs.map +1 -0
- package/lib/vite-wrappers/generators/utils/resourceParams.d.ts +11 -0
- package/lib/vite-wrappers/generators/utils/resourceParams.js +36 -0
- package/lib/vite-wrappers/generators/utils/resourceParams.js.map +1 -0
- package/lib/vite-wrappers/icon-switch.cjs +4 -4
- package/lib/vite-wrappers/icon-switch.cjs.map +1 -1
- package/lib/vite-wrappers/icon-switch.d.ts +1 -1
- package/lib/vite-wrappers/icon-switch.js +4 -4
- package/lib/vite-wrappers/icon-switch.js.map +1 -1
- package/lib/vite-wrappers/index.d.ts +3 -0
- package/lib/vite-wrappers/json-wrappers.cjs +103 -14
- package/lib/vite-wrappers/json-wrappers.cjs.map +1 -1
- package/lib/vite-wrappers/json-wrappers.d.ts +33 -0
- package/lib/vite-wrappers/json-wrappers.js +103 -14
- package/lib/vite-wrappers/json-wrappers.js.map +1 -1
- package/lib/vite-wrappers/wrapperComponent.cjs +190 -125
- package/lib/vite-wrappers/wrapperComponent.cjs.map +1 -1
- package/lib/vite-wrappers/wrapperComponent.d.ts +9 -0
- package/lib/vite-wrappers/wrapperComponent.js +190 -125
- package/lib/vite-wrappers/wrapperComponent.js.map +1 -1
- package/package.json +7 -5
- package/lib/vite-wrappers/loaderGenerator.cjs +0 -245
- package/lib/vite-wrappers/loaderGenerator.cjs.map +0 -1
- package/lib/vite-wrappers/loaderGenerator.d.ts +0 -18
- package/lib/vite-wrappers/loaderGenerator.js.map +0 -1
- /package/lib/{vite-wrappers/loaderGenerator.test.d.ts → rollup/modifyLibFiles/handleComponentOrDialog.test.d.ts} +0 -0
|
@@ -1,53 +1,48 @@
|
|
|
1
|
-
import*as fs from'fs';import*as path from'path';import {createRequire}from'module';import {generateLoaderExports
|
|
1
|
+
import*as fs from'fs';import*as path from'path';import {createRequire}from'module';import {generateLoaderExports}from'./generators/loaderGenerator.js';import {generateClientLoaderExports}from'./generators/clientLoaderGenerator.js';// Utility function to get the project's root directory.
|
|
2
2
|
function getRootPath() {
|
|
3
3
|
return process.cwd();
|
|
4
4
|
}
|
|
5
5
|
// New function to handle file writing
|
|
6
|
+
/**
|
|
7
|
+
* @api writeComponentToFile
|
|
8
|
+
* @description Writes the given content to the specified file path.
|
|
9
|
+
* @param {string} filePath - The path where the file should be written.
|
|
10
|
+
* @param {string} content - The content to be written to the file.
|
|
11
|
+
*/
|
|
6
12
|
function writeComponentToFile(filePath, content) {
|
|
7
13
|
fs.writeFileSync(filePath, content, 'utf8');
|
|
8
14
|
}
|
|
15
|
+
// Function to generate export statements based on component options.
|
|
16
|
+
/**
|
|
17
|
+
* @api generateExports
|
|
18
|
+
* @description Generates export statements such as loader, clientLoader, actions, etc. based on the component options.
|
|
19
|
+
* @param {IOptions} options - The options for generating the exports, including loader, action, authority, etc.
|
|
20
|
+
* @returns {string} - The generated export statements.
|
|
21
|
+
*/
|
|
9
22
|
function generateExports(options) {
|
|
10
23
|
let exports = '';
|
|
11
24
|
let generatedLoader = false;
|
|
12
|
-
const hasQueries = Object.keys(options.queries).length > 0;
|
|
25
|
+
const hasQueries = Object.keys(options.queries ?? {}).length > 0;
|
|
13
26
|
const hasMiddleware = options.requireAuth || options.middlewares.length > 0 || options.authority.length > 0 || !!options.resourceUri;
|
|
27
|
+
// Generate loader-related exports if needed
|
|
14
28
|
if (hasMiddleware || options.hasLoader || hasQueries) {
|
|
15
|
-
exports += generateLoaderExports(
|
|
29
|
+
exports += generateLoaderExports(options, hasMiddleware, hasQueries);
|
|
16
30
|
generatedLoader = true;
|
|
17
31
|
}
|
|
32
|
+
// Generate server-side action handler export
|
|
18
33
|
if (options.hasAction) {
|
|
19
34
|
exports += `
|
|
20
|
-
export async function action(params) {
|
|
21
|
-
|
|
22
|
-
}
|
|
35
|
+
export async function action(params) {
|
|
36
|
+
return await withErrorHandler(actionFunc, params);
|
|
37
|
+
}
|
|
23
38
|
`;
|
|
24
39
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
exports +=
|
|
28
|
-
export async function clientLoader(params) {
|
|
29
|
-
${hasMiddleware ? 'const middlewareStack = [];' : ''}
|
|
30
|
-
${options.authority?.length > 0 ? 'middlewareStack.push({ name: "permissions", func: permissionMiddleware });\n' : ''}
|
|
31
|
-
${(options.clientMiddlewares ?? [])
|
|
32
|
-
?.map((_, index) => `middlewareStack.push({ name: "middleware${index + 1}" , func: clientMiddleware${index + 1} });\n`)
|
|
33
|
-
.join('')}
|
|
34
|
-
${hasMiddleware
|
|
35
|
-
? 'const apolloClient = window.__CLIENT_SERVICE__?.apolloClient;\n' +
|
|
36
|
-
' let { permissions = null, configurations = null, ...rest } = middlewareStack.length ? await clientLoaderWithMiddleware({...params, context:{ apolloClient }}, {}, middlewareStack) : {}\n'
|
|
37
|
-
: ''}
|
|
38
|
-
let hasPermissions = true
|
|
39
|
-
${generateHasPermission(options, true)}
|
|
40
|
-
let defaultLoaderData = ${hasQueries ? `hasPermissions ? await defaultClientLoader(params) : {}` : '{}'};
|
|
41
|
-
let loaderData = ${options.hasClientLoader ? ` hasPermissions ? await clientLoaderFunc(params) : {}` : '{}'};
|
|
42
|
-
console.log(
|
|
43
|
-
{ ...defaultLoaderData, ...loaderData , ...${hasMiddleware ? `{ permissions, dataContext: rest }` : `{}`}}
|
|
44
|
-
)
|
|
45
|
-
return { ...${hasMiddleware ? `{ permissions, configurations, dataContext: rest }` : `{}`}, ...defaultLoaderData, ...loaderData };
|
|
46
|
-
}
|
|
47
|
-
clientLoader.hydrate = true;
|
|
48
|
-
`;
|
|
40
|
+
// Generate client-side loader export using imported clientLoader function
|
|
41
|
+
if (options.hasClientLoader || hasQueries) {
|
|
42
|
+
exports += generateClientLoaderExports(options, hasMiddleware, hasQueries);
|
|
49
43
|
generatedLoader = true;
|
|
50
44
|
}
|
|
45
|
+
// Generate client-side action handler export
|
|
51
46
|
if (options.hasClientAction || options.hasAction) {
|
|
52
47
|
exports += `
|
|
53
48
|
export async function clientAction({
|
|
@@ -69,26 +64,31 @@ export async function clientAction({
|
|
|
69
64
|
}
|
|
70
65
|
`;
|
|
71
66
|
}
|
|
67
|
+
// Generate other export options such as handle, links, meta, etc.
|
|
72
68
|
if (options.hasHandle) {
|
|
73
|
-
exports += `
|
|
74
|
-
export const handle = handleObj
|
|
75
|
-
`;
|
|
69
|
+
exports += `export const handle = handleObj;\n`;
|
|
76
70
|
}
|
|
77
71
|
if (options.hasLinks) {
|
|
78
72
|
exports += `
|
|
79
73
|
export function links(params) {
|
|
80
|
-
|
|
74
|
+
const linksArray = [
|
|
75
|
+
${options.extraLink
|
|
76
|
+
.filter((link) => link.rel === 'stylesheet')
|
|
77
|
+
.map((link, index) => `{
|
|
78
|
+
rel: "${link.rel}",
|
|
79
|
+
href: linkFile${index + 1} as unknown as string
|
|
80
|
+
}`)
|
|
81
|
+
.join(',\n')}
|
|
82
|
+
];
|
|
83
|
+
return linksFunc({...params, ...linksArray});
|
|
81
84
|
}
|
|
82
85
|
`;
|
|
83
86
|
}
|
|
84
87
|
if (options.hasMeta) {
|
|
85
|
-
exports += `
|
|
86
|
-
export function meta(params) {
|
|
87
|
-
return metaFunc(params);
|
|
88
|
-
}
|
|
89
|
-
`;
|
|
88
|
+
exports += `export function meta(params) { return metaFunc(params); }\n`;
|
|
90
89
|
}
|
|
91
|
-
|
|
90
|
+
// shouldRevalidate function to handle route revalidation
|
|
91
|
+
if (!options.settings?.disableShouldRevalidate && generatedLoader) {
|
|
92
92
|
exports += `
|
|
93
93
|
export function shouldRevalidate(params) {
|
|
94
94
|
if (params.formMethod === "GET" && isEqual(params.currentParams, params.nextParams)) return false;
|
|
@@ -98,110 +98,165 @@ export function shouldRevalidate(params) {
|
|
|
98
98
|
`;
|
|
99
99
|
}
|
|
100
100
|
if (options.hasHeaders) {
|
|
101
|
-
exports += `
|
|
102
|
-
export function headers(params) {
|
|
103
|
-
return headersFunc(params);
|
|
104
|
-
}
|
|
105
|
-
`;
|
|
101
|
+
exports += `export function headers(params) { return headersFunc(params); }\n`;
|
|
106
102
|
}
|
|
107
103
|
if (options.hasHydrateFallback) {
|
|
108
|
-
exports += `
|
|
109
|
-
export function HydrateFallback(params) {
|
|
110
|
-
return HydrateFallbackFunc(params);
|
|
111
|
-
}
|
|
112
|
-
`;
|
|
104
|
+
exports += `export function HydrateFallback(params) { return HydrateFallbackFunc(params); }\n`;
|
|
113
105
|
}
|
|
114
106
|
if (options.hasErrorBoundary) {
|
|
115
|
-
exports += `
|
|
116
|
-
export function ErrorBoundary(params) {
|
|
117
|
-
return ErrorBoundaryFunc(params);
|
|
118
|
-
}
|
|
119
|
-
`;
|
|
107
|
+
exports += `export function ErrorBoundary(params) { return ErrorBoundaryFunc(params); }\n`;
|
|
120
108
|
}
|
|
121
109
|
return exports;
|
|
122
110
|
}
|
|
111
|
+
// Generate the `useLoaderData` hook based on component options
|
|
112
|
+
/**
|
|
113
|
+
* @api generateLoaderDataHook
|
|
114
|
+
* @description Generates the `useLoaderData` hook if clientLoader or serverLoader is available.
|
|
115
|
+
* @param {IOptions} options - The component options to decide whether to include `useLoaderData` or not.
|
|
116
|
+
* @returns {string} - The generated hook code or an empty loader.
|
|
117
|
+
*/
|
|
123
118
|
function generateLoaderDataHook(options) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
return 'const loaderData = {}';
|
|
119
|
+
return options.hasClientLoader || options.hasLoader || options.authority.length > 0
|
|
120
|
+
? `const loaderData = useLoaderData();\n`
|
|
121
|
+
: 'const loaderData = {}';
|
|
128
122
|
}
|
|
123
|
+
// Generate the loader data prop if needed
|
|
124
|
+
/**
|
|
125
|
+
* @api generateLoaderDataProp
|
|
126
|
+
* @description Generates the loader data prop if clientLoader or serverLoader exists.
|
|
127
|
+
* @param {IOptions} options - The options to determine whether the loaderData prop should be included.
|
|
128
|
+
* @returns {string} - The prop string for loaderData.
|
|
129
|
+
*/
|
|
129
130
|
function generateLoaderDataProp(options) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
return '';
|
|
131
|
+
return options.hasClientLoader || options.hasLoader || options.authority.length > 0
|
|
132
|
+
? 'loaderData={loaderData}'
|
|
133
|
+
: '';
|
|
134
134
|
}
|
|
135
|
+
// Utility to get the correct configuration path
|
|
136
|
+
/**
|
|
137
|
+
* @api getConfigPath
|
|
138
|
+
* @description Fetches the configuration path for a specific key.
|
|
139
|
+
* @param {IPaths} paths - The paths object containing various configuration paths.
|
|
140
|
+
* @param {string} key - The key to fetch the correct configuration path.
|
|
141
|
+
* @returns {string} - The resolved path or a default error message if not found.
|
|
142
|
+
*/
|
|
135
143
|
function getConfigPath(paths, key) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
144
|
+
return paths[key] ? paths[key] : `Undefined path ${key}`;
|
|
145
|
+
}
|
|
146
|
+
// Helper function to generate the import statement
|
|
147
|
+
/**
|
|
148
|
+
* @api generateComponentImport
|
|
149
|
+
* @description Generates the import statement for the component and other imports based on options.
|
|
150
|
+
* @param {boolean} hasComponent - Whether the component is included in the import.
|
|
151
|
+
* @param {string[]} imports - The array of named imports to include.
|
|
152
|
+
* @param {string} filePath - The file path for the import.
|
|
153
|
+
* @returns {string} - The constructed import statement.
|
|
154
|
+
*/
|
|
155
|
+
function generateComponentImport(hasComponent, imports, filePath) {
|
|
156
|
+
const namedImports = imports.join(', ');
|
|
157
|
+
return `import ${hasComponent ? `OriginalComponent${namedImports ? ', ' : ''}` : ''}${namedImports ? `{ ${namedImports} }` : ''} from '${filePath}';\n`;
|
|
140
158
|
}
|
|
159
|
+
// Core logic for wrapping the route component
|
|
160
|
+
/**
|
|
161
|
+
* @api wrapComponent
|
|
162
|
+
* @description Wraps the component with necessary imports, middlewares, and configurations based on the options provided.
|
|
163
|
+
* @param {string} currentFilePath - The current file path of the component.
|
|
164
|
+
* @param {string[]} wrapperPaths - The paths to wrapper components, if any.
|
|
165
|
+
* @param {IOptions} options - The options dictating how the component should be wrapped.
|
|
166
|
+
* @returns {string} - The complete code with all the necessary imports and component logic.
|
|
167
|
+
*/
|
|
141
168
|
function wrapComponent(currentFilePath, wrapperPaths, options) {
|
|
142
|
-
let imports = `import * as React from 'react';\n`;
|
|
143
|
-
imports += `import { get, pick, isEqual } from 'lodash-es';\n`;
|
|
169
|
+
let imports = `import * as React from 'react';\nimport { get, pick, isEqual } from 'lodash-es';\n`;
|
|
144
170
|
let componentImports = ``;
|
|
145
|
-
const
|
|
171
|
+
const clientSideImports = [];
|
|
172
|
+
const serverSideImports = [];
|
|
173
|
+
// Server-side imports for loaders, actions, and headers
|
|
146
174
|
if (options.hasLoader)
|
|
147
|
-
|
|
175
|
+
serverSideImports.push('loader as loaderFunc');
|
|
148
176
|
if (options.hasAction)
|
|
149
|
-
|
|
177
|
+
serverSideImports.push('action as actionFunc');
|
|
178
|
+
if (options.hasHeaders)
|
|
179
|
+
serverSideImports.push('headers as headersFunc');
|
|
180
|
+
// Client-side imports for loaders, actions, and other exports
|
|
150
181
|
if (options.hasClientLoader)
|
|
151
|
-
|
|
182
|
+
clientSideImports.push('clientLoader as clientLoaderFunc');
|
|
152
183
|
if (options.hasClientAction)
|
|
153
|
-
|
|
184
|
+
clientSideImports.push('clientAction as clientActionFunc');
|
|
154
185
|
if (options.hasHandle)
|
|
155
|
-
|
|
186
|
+
clientSideImports.push('handle as handleObj');
|
|
156
187
|
if (options.hasLinks)
|
|
157
|
-
|
|
188
|
+
clientSideImports.push('links as linksFunc');
|
|
158
189
|
if (options.hasMeta)
|
|
159
|
-
|
|
190
|
+
clientSideImports.push('meta as metaFunc');
|
|
160
191
|
if (options.queryParamsGenerator)
|
|
161
|
-
|
|
192
|
+
clientSideImports.push('queryParamsGenerator as queryGeneratorFunc');
|
|
162
193
|
if (options.hasShouldRevalidate)
|
|
163
|
-
|
|
164
|
-
if (options.hasHeaders)
|
|
165
|
-
additionalImports.push('headers as headersFunc');
|
|
194
|
+
clientSideImports.push('shouldRevalidate as shouldRevalidateFunc');
|
|
166
195
|
if (options.hasHydrateFallback)
|
|
167
|
-
|
|
196
|
+
clientSideImports.push('HydrateFallback as HydrateFallbackFunc');
|
|
168
197
|
if (options.hasErrorBoundary)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
//
|
|
173
|
-
|
|
198
|
+
clientSideImports.push('ErrorBoundary as ErrorBoundaryFunc');
|
|
199
|
+
// Handle imports from either .server.js or .js based on hasServerCode
|
|
200
|
+
if (options.hasServerCode) {
|
|
201
|
+
// Import from .server.js for server-side code
|
|
202
|
+
if (serverSideImports.length > 0) {
|
|
203
|
+
const serverFilePath = currentFilePath.replace('.js', '.server.js');
|
|
204
|
+
componentImports += generateComponentImport(false, serverSideImports, serverFilePath);
|
|
205
|
+
}
|
|
206
|
+
// Import from .js for client-side code and component
|
|
207
|
+
if (clientSideImports.length > 0 || options.hasComponent) {
|
|
208
|
+
componentImports += generateComponentImport(options.hasComponent, clientSideImports, currentFilePath);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
// Import from .js for both client and server code, or component if no server-side code
|
|
213
|
+
const additionalImports = [...serverSideImports, ...clientSideImports];
|
|
214
|
+
if (additionalImports.length > 0 || options.hasComponent) {
|
|
215
|
+
componentImports += generateComponentImport(options.hasComponent, additionalImports, currentFilePath);
|
|
216
|
+
}
|
|
174
217
|
}
|
|
175
218
|
imports += componentImports;
|
|
219
|
+
const hasQueries = Object.keys(options.queries ?? {}).length > 0;
|
|
220
|
+
// Conditionally import `useLoaderData` based on the presence of loaders
|
|
176
221
|
if (options.hasComponent &&
|
|
177
|
-
(options.hasClientLoader ||
|
|
178
|
-
options.hasLoader ||
|
|
179
|
-
options.authority.length > 0 ||
|
|
180
|
-
Object.keys(options.queries).length > 0)) {
|
|
222
|
+
(options.hasClientLoader || options.hasLoader || options.authority.length > 0 || hasQueries)) {
|
|
181
223
|
imports += `import { useLoaderData } from '@remix-run/react';\n`;
|
|
182
224
|
}
|
|
183
225
|
if (options.isResourceRoute) {
|
|
184
226
|
imports += `import { json } from '@remix-run/react';\n`;
|
|
185
227
|
}
|
|
186
|
-
else if (options?.loaderReturnInfo?.returnType === 'defer' ||
|
|
228
|
+
else if (options?.loaderReturnInfo?.returnType === 'defer' || hasQueries) {
|
|
187
229
|
imports += `import { defer } from '@remix-run/react';\n`;
|
|
188
230
|
}
|
|
189
231
|
else if (options.loaderReturnInfo?.returnType === 'json') {
|
|
190
232
|
imports += `import { json, defer } from '@remix-run/react';\n`;
|
|
191
233
|
}
|
|
192
|
-
if (options.hasClientLoader ||
|
|
234
|
+
if (options.hasClientLoader || hasQueries || options.hasClientAction || options.hasAction) {
|
|
193
235
|
imports += `import { ClientTypes } from '@common-stack/client-core';\n`;
|
|
194
236
|
}
|
|
195
237
|
if (options.requireAuth) {
|
|
196
238
|
imports += `import { middleware as authMiddleware } from '${getConfigPath(options.paths, 'authMiddlware')}';\n`;
|
|
197
239
|
}
|
|
198
|
-
if (options.hasLoader || options.hasAction ||
|
|
240
|
+
if (options.hasLoader || options.hasAction || hasQueries) {
|
|
199
241
|
imports += `import { withErrorHandler } from '${getConfigPath(options.paths, 'withErrorHandlerUtil')}';\n`;
|
|
200
242
|
}
|
|
201
243
|
if (options.authority.length > 0 || options.extraPermissions.length > 0) {
|
|
202
244
|
imports += `import { middleware as lifecycleMiddleware } from '${getConfigPath(options.paths, 'lifecycleMiddleware')}';\n`;
|
|
203
245
|
}
|
|
204
|
-
if (
|
|
246
|
+
if (options.configurations.length > 0) {
|
|
247
|
+
imports += `import { resolveResourceParamsPlaceholders } from '@common-stack/rollup-vite-utils/lib/vite-wrappers/generators/utils/resourceParams.js';\n`;
|
|
248
|
+
}
|
|
249
|
+
if (options.authority.length > 0 || options.extraPermissions.length > 0 || options.configurations.length > 0) {
|
|
250
|
+
imports += `import { pickValues } from '@common-stack/rollup-vite-utils/lib/vite-wrappers/generators/utils/pickConfig.js';\n`;
|
|
251
|
+
}
|
|
252
|
+
if (options.extraLink.length > 0) {
|
|
253
|
+
options.extraLink.forEach((link, index) => {
|
|
254
|
+
if (link.rel === 'stylesheet') {
|
|
255
|
+
imports += `import linkFile${index + 1} from '${link.hrefImportPath}';\n`;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
if (hasQueries) {
|
|
205
260
|
imports += `import { camelCase } from 'lodash-es';\n`;
|
|
206
261
|
const [nameSpace, packageName] = currentFilePath.split('/');
|
|
207
262
|
const require = createRequire(import.meta.url);
|
|
@@ -216,7 +271,10 @@ function wrapComponent(currentFilePath, wrapperPaths, options) {
|
|
|
216
271
|
}
|
|
217
272
|
}
|
|
218
273
|
}
|
|
219
|
-
if (options.requireAuth ||
|
|
274
|
+
if (options.requireAuth ||
|
|
275
|
+
options.authority.length > 0 ||
|
|
276
|
+
options.extraPermissions.length > 0 ||
|
|
277
|
+
options.middlewares.length > 0) {
|
|
220
278
|
imports += `import { loaderWithMiddleware } from '${getConfigPath(options.paths, 'middlewareExec')}';\n`;
|
|
221
279
|
}
|
|
222
280
|
// Construct imports for additional custom middleware
|
|
@@ -231,9 +289,12 @@ function wrapComponent(currentFilePath, wrapperPaths, options) {
|
|
|
231
289
|
imports += `import { middleware as clientMiddleware${index + 1} } from '${middlewarePath}';\n`;
|
|
232
290
|
});
|
|
233
291
|
}
|
|
234
|
-
if (options.hasClientLoader ||
|
|
292
|
+
if (options.hasClientLoader || hasQueries || options.clientMiddlewares?.length) {
|
|
235
293
|
imports += `import { clientLoaderWithMiddleware } from '${getConfigPath(options.paths, 'clientMiddlewareExec')}';\n`;
|
|
236
294
|
}
|
|
295
|
+
if (options.configurations.length > 0) {
|
|
296
|
+
imports += `import { middleware as configurationMiddleware } from '${getConfigPath(options.paths, 'configurationMiddleware')}';\n`;
|
|
297
|
+
}
|
|
237
298
|
let componentLogic = ``;
|
|
238
299
|
if (options.hasComponent) {
|
|
239
300
|
let wrappersStart = '';
|
|
@@ -241,36 +302,22 @@ function wrapComponent(currentFilePath, wrapperPaths, options) {
|
|
|
241
302
|
let configurationsHook = '';
|
|
242
303
|
wrapperPaths.forEach((wrapperPath, index) => {
|
|
243
304
|
const wrapperComponentName = `Wrapper${index + 1}`;
|
|
244
|
-
if (wrapperPath === '$
|
|
245
|
-
imports += `import {
|
|
246
|
-
|
|
247
|
-
|
|
305
|
+
if (wrapperPath === '$configPermissionWrapper') {
|
|
306
|
+
imports += `import { WithConfigPermissionContainer, middleware as permissionMiddleware } from '${getConfigPath(options.paths, 'configPermissionWrapper')}';\n`;
|
|
307
|
+
configurationsHook = `
|
|
308
|
+
`;
|
|
309
|
+
wrappersStart = `<WithConfigPermissionContainer
|
|
310
|
+
permissionKeys={${JSON.stringify(options.authority)}}
|
|
311
|
+
authorityConfig={${JSON.stringify(options.authorityConfig ?? {})}}
|
|
312
|
+
resourceName={'${options.resourceUri}'}
|
|
313
|
+
>${wrappersStart}`;
|
|
314
|
+
wrappersEnd += `</WithConfigPermissionContainer>`;
|
|
248
315
|
}
|
|
249
316
|
else if (wrapperPath === '$clientOnlyWrapper') {
|
|
250
317
|
imports += `import { ClientOnly } from 'remix-utils/client-only';\n`;
|
|
251
318
|
wrappersStart = `<ClientOnly>{() => ${wrappersStart}`;
|
|
252
319
|
wrappersEnd += `}</ClientOnly>`;
|
|
253
320
|
}
|
|
254
|
-
else if (wrapperPath === `$configurationWrapper`) {
|
|
255
|
-
configurationsHook = `
|
|
256
|
-
const params = useParams();
|
|
257
|
-
const settingsUri = generateResourceUri(
|
|
258
|
-
'${options.resourceUri}',
|
|
259
|
-
params,
|
|
260
|
-
'settings',
|
|
261
|
-
);
|
|
262
|
-
`;
|
|
263
|
-
imports += `import { WithConfigurationContainer, middleware as configurationMiddleware } from '${getConfigPath(options.paths, 'configurationWrapper')}';\n`;
|
|
264
|
-
imports += `import { useParams } from '@remix-run/react';\n`;
|
|
265
|
-
imports += `import { generateResourceUri } from '@adminide-stack/core/lib/utils/generate-uri';\n`;
|
|
266
|
-
wrappersStart = `<WithConfigurationContainer
|
|
267
|
-
settingsUri={settingsUri}
|
|
268
|
-
configKey={${JSON.stringify(options.configurations)}}
|
|
269
|
-
resourceName={'${options.resourceUri}'}
|
|
270
|
-
permissionKeys={${JSON.stringify(options.authority)}}
|
|
271
|
-
>${wrappersStart}`;
|
|
272
|
-
wrappersEnd += `</WithConfigurationContainer>`;
|
|
273
|
-
}
|
|
274
321
|
else {
|
|
275
322
|
imports += `import ${wrapperComponentName} from '${wrapperPath}';\n`;
|
|
276
323
|
wrappersStart += `<${wrapperComponentName} {...props}>`;
|
|
@@ -282,17 +329,25 @@ function wrapComponent(currentFilePath, wrapperPaths, options) {
|
|
|
282
329
|
${configurationsHook}
|
|
283
330
|
return ${wrappersStart}<OriginalComponent {...props} />${wrappersEnd};
|
|
284
331
|
};
|
|
332
|
+
|
|
285
333
|
export default function Component(ownProps) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
334
|
+
${generateLoaderDataHook(options)}
|
|
335
|
+
const props = {...ownProps, ...${JSON.stringify(options.extraProps)},...${JSON.stringify({ extraIcons: options.extraIcons })}};
|
|
336
|
+
return <EnhancedComponent {...props} ${generateLoaderDataProp(options)} />;
|
|
289
337
|
}
|
|
290
|
-
|
|
291
338
|
`;
|
|
292
339
|
}
|
|
293
340
|
componentLogic += `${generateExports(options)}`;
|
|
294
341
|
return imports + componentLogic;
|
|
295
342
|
}
|
|
343
|
+
// Function to get the current file path, adjusting for metadata if applicable.
|
|
344
|
+
/**
|
|
345
|
+
* @api getCurrentFilePath
|
|
346
|
+
* @description Adjusts the current file path based on provided metadata.
|
|
347
|
+
* @param {string} filePath - The original file path.
|
|
348
|
+
* @param {Record<string, string>} metaJson - Metadata used to adjust the file path.
|
|
349
|
+
* @returns {string} - The adjusted file path or the original if no adjustments are necessary.
|
|
350
|
+
*/
|
|
296
351
|
function getCurrentFilePath(filePath, metaJson) {
|
|
297
352
|
try {
|
|
298
353
|
if (metaJson) {
|
|
@@ -311,6 +366,16 @@ function getCurrentFilePath(filePath, metaJson) {
|
|
|
311
366
|
return filePath;
|
|
312
367
|
}
|
|
313
368
|
}
|
|
369
|
+
// Main function to wrap the route component with the correct imports and options.
|
|
370
|
+
/**
|
|
371
|
+
* @api wrapRouteComponent
|
|
372
|
+
* @description Wraps the route component, injecting imports, logic, and necessary hooks based on options.
|
|
373
|
+
* @param {string} file - The file path of the component to wrap.
|
|
374
|
+
* @param {string[]} wrapperPaths - Paths to wrapper components.
|
|
375
|
+
* @param {any} metaJson - Metadata used to adjust file paths.
|
|
376
|
+
* @param {IOptions} options - Options controlling how the component is wrapped.
|
|
377
|
+
* @returns {string} - The relative path to the newly wrapped component.
|
|
378
|
+
*/
|
|
314
379
|
function wrapRouteComponent(file, wrapperPaths = [], metaJson, options) {
|
|
315
380
|
const defaultOptions = {
|
|
316
381
|
requireAuth: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapperComponent.js","sources":["../../src/vite-wrappers/wrapperComponent.ts"],"sourcesContent":[null],"names":[],"mappings":"uLAMA;SACgB,WAAW,GAAA;AACvB,IAAA,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC;AAED;AACA,SAAS,oBAAoB,CAAC,QAAgB,EAAE,OAAe,EAAA;IAC3D,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,eAAe,CAAC,OAAiB,EAAA;IACtC,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,eAAe,GAAG,KAAK,CAAC;AAC5B,IAAA,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3D,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,IAAI,OAAO,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AW,EAAE,cAAc,CAAC,CAAC;IAClD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;AAChD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/rollup-vite-utils",
|
|
3
|
-
"version": "6.0.6-alpha.
|
|
3
|
+
"version": "6.0.6-alpha.52",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -30,12 +30,14 @@
|
|
|
30
30
|
"watch": "npm run build:lib:watch"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@common-stack/client-react": "6.0.6-alpha.
|
|
34
|
-
"@common-stack/core": "6.0.6-alpha.
|
|
33
|
+
"@common-stack/client-react": "6.0.6-alpha.50",
|
|
34
|
+
"@common-stack/core": "6.0.6-alpha.50",
|
|
35
|
+
"ajv": "^8.17.1",
|
|
35
36
|
"dot-prop": "^9.0.0",
|
|
37
|
+
"glob": "^11.0.0",
|
|
36
38
|
"glob-all": "^3.3.1",
|
|
37
39
|
"js-sha256": "^0.11.0",
|
|
38
|
-
"minimatch": "^
|
|
40
|
+
"minimatch": "^10.0.1",
|
|
39
41
|
"ts-deepmerge": "^7.0.0"
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
@@ -57,5 +59,5 @@
|
|
|
57
59
|
"typescript": {
|
|
58
60
|
"definition": "lib/index.d.ts"
|
|
59
61
|
},
|
|
60
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "1d829a89bea5b73190db400987ec7269db9379ba"
|
|
61
63
|
}
|