zudoku 0.0.0-monetization-standalone.zada7f04c → 0.0.0-monetization-standalone.z2a065bd9
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/config/validators/InputNavigationSchema.d.ts +75 -75
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +7 -7
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/core/__internal.d.ts +1 -1
- package/dist/lib/core/transform-config.d.ts +2 -2
- package/dist/lib/core/transform-config.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +3 -3
- package/dist/vite/prerender/prerender.js +3 -1
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.js +3 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/lib/zudoku.__internal.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/core/transform-config.ts +5 -5
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isValidElement } from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ZudokuConfig } from "../../config/validators/validate.js";
|
|
3
3
|
import { isTransformConfigPlugin } from "./plugins.js";
|
|
4
4
|
|
|
5
5
|
export const isPlainObject = (
|
|
@@ -43,9 +43,9 @@ export const mergeConfig = <
|
|
|
43
43
|
return result;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
export const runPluginTransformConfig = async (
|
|
47
|
-
config:
|
|
48
|
-
): Promise<
|
|
46
|
+
export const runPluginTransformConfig = async <T extends ZudokuConfig>(
|
|
47
|
+
config: T,
|
|
48
|
+
): Promise<T> => {
|
|
49
49
|
const plugins = config.plugins ?? [];
|
|
50
50
|
|
|
51
51
|
let result = config;
|
|
@@ -60,7 +60,7 @@ export const runPluginTransformConfig = async (
|
|
|
60
60
|
});
|
|
61
61
|
if (!transformed) continue;
|
|
62
62
|
|
|
63
|
-
result = transformed as
|
|
63
|
+
result = transformed as T;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
return result;
|