@monkeyplus/flow 6.0.0 → 6.0.1
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/modules/content/module.mjs +2 -2
- package/modules/sitemap/handler.mjs +1 -1
- package/modules/sitemap/module.mjs +2 -2
- package/modules/strapi/module.mjs +2 -2
- package/package.json +1 -1
- package/server/lib/handler.mjs +3 -3
- package/src/public/components.mjs +1 -1
- package/src/public/head.mjs +1 -1
- package/src/public/index.mjs +2 -2
- package/src/public/modules/content.mjs +1 -1
- package/src/public/modules/sitemap.mjs +1 -1
- package/src/public/modules/strapi.mjs +1 -1
- package/src/public/nitro.mjs +8 -8
- package/src/public/vite.mjs +4 -4
- package/src/public/vue.mjs +1 -1
- package/src/runtime/ssg.mjs +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolve } from "node:path";
|
|
2
|
-
import { defineFlowModule } from "../../src/runtime/config.
|
|
3
|
-
import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.
|
|
2
|
+
import { defineFlowModule } from "../../src/runtime/config.mjs";
|
|
3
|
+
import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.mjs";
|
|
4
4
|
export default defineFlowModule({
|
|
5
5
|
meta: {
|
|
6
6
|
name: "content",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineEventHandler, getRequestURL, setHeader } from "nitro/h3";
|
|
2
2
|
import { useRuntimeConfig } from "nitro/runtime-config";
|
|
3
|
-
import { getUrls } from "../../server/lib/pages.
|
|
3
|
+
import { getUrls } from "../../server/lib/pages.mjs";
|
|
4
4
|
function escapeXml(value) {
|
|
5
5
|
return value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolve } from "node:path";
|
|
2
|
-
import { defineFlowModule } from "../../src/runtime/config.
|
|
3
|
-
import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.
|
|
2
|
+
import { defineFlowModule } from "../../src/runtime/config.mjs";
|
|
3
|
+
import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.mjs";
|
|
4
4
|
export default defineFlowModule({
|
|
5
5
|
meta: {
|
|
6
6
|
name: "sitemap",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolve } from "node:path";
|
|
2
|
-
import { defineFlowModule } from "../../src/runtime/config.
|
|
3
|
-
import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.
|
|
2
|
+
import { defineFlowModule } from "../../src/runtime/config.mjs";
|
|
3
|
+
import { resolvePackageFile, resolvePackagePath } from "../../src/public/shared.mjs";
|
|
4
4
|
function createStrapiConfigPlugin(config) {
|
|
5
5
|
const virtualId = "virtual:flow/strapi-config";
|
|
6
6
|
const resolvedVirtualId = `\0${virtualId}`;
|
package/package.json
CHANGED
package/server/lib/handler.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import clientAssets from "../../src/main.
|
|
1
|
+
import clientAssets from "../../src/main.mjs?assets=client";
|
|
2
2
|
import bundleAssets from "virtual:flow/client-page-assets";
|
|
3
|
-
import { renderDocument } from "./render.
|
|
4
|
-
import { resolvePage, resolvePageByName } from "./pages.
|
|
3
|
+
import { renderDocument } from "./render.mjs";
|
|
4
|
+
import { resolvePage, resolvePageByName } from "./pages.mjs";
|
|
5
5
|
function mergeClientAssets(baseAssets, pageAssets) {
|
|
6
6
|
const css = [...baseAssets.css || [], ...pageAssets?.css || []];
|
|
7
7
|
const js = [...baseAssets.js || [], ...pageAssets?.js || []];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as FlowIsland } from "../runtime/components/FlowIsland.
|
|
1
|
+
export { default as FlowIsland } from "../runtime/components/FlowIsland.mjs";
|
package/src/public/head.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getClientHead, useHead, useSeoMeta } from "../runtime/head.
|
|
1
|
+
export { getClientHead, useHead, useSeoMeta } from "../runtime/head.mjs";
|
package/src/public/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { defineFlowConfig, defineFlowModule, resolveFlowConfig } from "../runtime/config.
|
|
2
|
-
export { definePage } from "../runtime/pages.
|
|
1
|
+
export { defineFlowConfig, defineFlowModule, resolveFlowConfig } from "../runtime/config.mjs";
|
|
2
|
+
export { definePage } from "../runtime/pages.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "../../../modules/content/module.
|
|
1
|
+
export { default } from "../../../modules/content/module.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "../../../modules/sitemap/module.
|
|
1
|
+
export { default } from "../../../modules/sitemap/module.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "../../../modules/strapi/module.
|
|
1
|
+
export { default } from "../../../modules/strapi/module.mjs";
|
package/src/public/nitro.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { resolve } from "node:path";
|
|
2
2
|
import { defineNitroConfig } from "nitro/config";
|
|
3
|
-
import { resolveFlowConfig } from "../runtime/config.
|
|
4
|
-
import { loadFlowModules } from "../runtime/modules.
|
|
5
|
-
import { createFlowBuildHooks } from "../runtime/ssg.
|
|
3
|
+
import { resolveFlowConfig } from "../runtime/config.mjs";
|
|
4
|
+
import { loadFlowModules } from "../runtime/modules.mjs";
|
|
5
|
+
import { createFlowBuildHooks } from "../runtime/ssg.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createVirtualBaseTemplatesModule,
|
|
8
8
|
createVirtualIslandsModule,
|
|
9
9
|
createVirtualLayoutsModule,
|
|
10
10
|
createVirtualPagesModule,
|
|
11
11
|
createVirtualTemplatesModule
|
|
12
|
-
} from "../runtime/virtual-pages.
|
|
13
|
-
import { resolvePackageFile } from "./shared.
|
|
12
|
+
} from "../runtime/virtual-pages.mjs";
|
|
13
|
+
import { resolvePackageFile } from "./shared.mjs";
|
|
14
14
|
export function createFlowNitroConfig(options = {}) {
|
|
15
15
|
const projectRoot = resolve(options.projectRoot || process.cwd());
|
|
16
16
|
const flowConfig = resolveFlowConfig(options.userFlowConfig || {});
|
|
@@ -28,7 +28,7 @@ export function createFlowNitroConfig(options = {}) {
|
|
|
28
28
|
},
|
|
29
29
|
framework: {
|
|
30
30
|
name: "@monkeyplus/flow",
|
|
31
|
-
version: "
|
|
31
|
+
version: "0.1.0"
|
|
32
32
|
},
|
|
33
33
|
serverDir: "./server",
|
|
34
34
|
devServer: {
|
|
@@ -62,8 +62,8 @@ export function createFlowNitroConfig(options = {}) {
|
|
|
62
62
|
},
|
|
63
63
|
runtimeConfig: {
|
|
64
64
|
app: {
|
|
65
|
-
name: "
|
|
66
|
-
version: "
|
|
65
|
+
name: "Flow Next",
|
|
66
|
+
version: "0.1.0"
|
|
67
67
|
},
|
|
68
68
|
flow: {
|
|
69
69
|
build: flowConfig.build,
|
package/src/public/vite.mjs
CHANGED
|
@@ -6,9 +6,9 @@ import { defineConfig, normalizePath } from "vite";
|
|
|
6
6
|
import IconsResolver from "unplugin-icons/resolver";
|
|
7
7
|
import Icons from "unplugin-icons/vite";
|
|
8
8
|
import ui from "@nuxt/ui/vite";
|
|
9
|
-
import { resolveFlowConfig } from "../runtime/config.
|
|
10
|
-
import { loadFlowModules } from "../runtime/modules.
|
|
11
|
-
import { getPrerenderRoutes } from "../runtime/page-discovery.
|
|
9
|
+
import { resolveFlowConfig } from "../runtime/config.mjs";
|
|
10
|
+
import { loadFlowModules } from "../runtime/modules.mjs";
|
|
11
|
+
import { getPrerenderRoutes } from "../runtime/page-discovery.mjs";
|
|
12
12
|
import {
|
|
13
13
|
createVirtualBaseTemplatesModule,
|
|
14
14
|
createVirtualClientPageAssetsModule,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
createVirtualLayoutsModule,
|
|
18
18
|
createVirtualPagesModule,
|
|
19
19
|
createVirtualTemplatesModule
|
|
20
|
-
} from "../runtime/virtual-pages.
|
|
20
|
+
} from "../runtime/virtual-pages.mjs";
|
|
21
21
|
const flowRestartPatterns = [
|
|
22
22
|
/^flow\.config\.ts$/,
|
|
23
23
|
/^nitro\.config\.ts$/,
|
package/src/public/vue.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { installFlowVuePlugins } from "../runtime/vue.
|
|
1
|
+
export { installFlowVuePlugins } from "../runtime/vue.mjs";
|
package/src/runtime/ssg.mjs
CHANGED