@monkeyplus/flow 6.0.52 → 6.0.53
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/package.json +1 -1
- package/src/public/vite.mjs +5 -2
- package/src/runtime/config.d.ts +2 -0
package/package.json
CHANGED
package/src/public/vite.mjs
CHANGED
|
@@ -341,6 +341,7 @@ export function createFlowViteConfig(options = {}) {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
const { imports: userImports, ...userAutoImport } = options.userFlowConfig?.autoImport || {};
|
|
344
|
+
const uiOptions = options.userFlowConfig?.ui || {};
|
|
344
345
|
return defineConfig({
|
|
345
346
|
plugins: [
|
|
346
347
|
createFlowVirtualServerModules(projectRoot, flowConfig),
|
|
@@ -354,7 +355,8 @@ export function createFlowViteConfig(options = {}) {
|
|
|
354
355
|
createFlowEmptyFileFallback(),
|
|
355
356
|
Vue(),
|
|
356
357
|
ui({
|
|
357
|
-
|
|
358
|
+
...uiOptions,
|
|
359
|
+
router: uiOptions.router || false,
|
|
358
360
|
components: {
|
|
359
361
|
dts: resolve(projectRoot, ".flow/types/components.d.ts"),
|
|
360
362
|
...options.userFlowConfig?.components,
|
|
@@ -364,7 +366,7 @@ export function createFlowViteConfig(options = {}) {
|
|
|
364
366
|
...options.userFlowConfig?.components?.resolvers || []
|
|
365
367
|
]
|
|
366
368
|
},
|
|
367
|
-
prose: true,
|
|
369
|
+
prose: uiOptions.prose || true,
|
|
368
370
|
autoImport: {
|
|
369
371
|
dts: resolve(projectRoot, ".flow/types/auto-imports.d.ts"),
|
|
370
372
|
imports: [
|
|
@@ -391,6 +393,7 @@ export function createFlowViteConfig(options = {}) {
|
|
|
391
393
|
],
|
|
392
394
|
...userAutoImport
|
|
393
395
|
}
|
|
396
|
+
// colorMode:
|
|
394
397
|
}),
|
|
395
398
|
nitro({
|
|
396
399
|
...flowNitroConfig,
|
package/src/runtime/config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NuxtUIOptions } from '@nuxt/ui/unplugin';
|
|
1
2
|
import type { NitroConfig } from 'nitro/types';
|
|
2
3
|
import type { Options as AutoimportOptions } from 'unplugin-auto-import/types';
|
|
3
4
|
import type { Options as ComponentOptions } from 'unplugin-vue-components/types';
|
|
@@ -66,6 +67,7 @@ export type UserFlowConfig = Partial<FlowConfig> & Record<string, unknown> & {
|
|
|
66
67
|
siteUrl?: string;
|
|
67
68
|
components?: Partial<ComponentOptions>;
|
|
68
69
|
autoImport?: Partial<AutoimportOptions>;
|
|
70
|
+
ui?: Omit<NuxtUIOptions, 'components' | 'autoImport'>;
|
|
69
71
|
};
|
|
70
72
|
export type FlowModuleNitroConfig = NitroConfig & {
|
|
71
73
|
runtimeConfig: any;
|