meno-core 1.0.40 → 1.0.41
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/bin/cli.ts +33 -0
- package/build-astro.ts +3 -27
- package/dist/bin/cli.js +30 -2
- package/dist/bin/cli.js.map +2 -2
- package/dist/build-static.js +7 -7
- package/dist/chunks/{chunk-3NOZVNM4.js → chunk-EQOSDQS2.js} +4 -4
- package/dist/chunks/{chunk-V4SVSX3X.js → chunk-IBR2F4IL.js} +4 -5
- package/dist/chunks/{chunk-V4SVSX3X.js.map → chunk-IBR2F4IL.js.map} +2 -2
- package/dist/chunks/{chunk-OJ5SROQN.js → chunk-IGVQF5GY.js} +8 -6
- package/dist/chunks/chunk-IGVQF5GY.js.map +7 -0
- package/dist/chunks/{chunk-Z7SAOCDG.js → chunk-LBWIHPN7.js} +5 -2
- package/dist/chunks/{chunk-Z7SAOCDG.js.map → chunk-LBWIHPN7.js.map} +2 -2
- package/dist/chunks/{chunk-A6KWUEA6.js → chunk-MKB2J6AD.js} +9 -1
- package/dist/chunks/chunk-MKB2J6AD.js.map +7 -0
- package/dist/chunks/{chunk-LOJLO2EY.js → chunk-S2HXJTAF.js} +1 -1
- package/dist/chunks/chunk-S2HXJTAF.js.map +7 -0
- package/dist/chunks/{chunk-GKICS7CF.js → chunk-SK3TLNUP.js} +120 -107
- package/dist/chunks/chunk-SK3TLNUP.js.map +7 -0
- package/dist/chunks/{chunk-MOCRENNU.js → chunk-SNUROC7E.js} +6 -6
- package/dist/chunks/{configService-TXBNUBBL.js → configService-MICL4S2L.js} +2 -2
- package/dist/chunks/{constants-L75FR445.js → constants-ZEU4TZCA.js} +2 -2
- package/dist/entries/server-router.js +7 -7
- package/dist/lib/client/index.js +9 -4
- package/dist/lib/client/index.js.map +2 -2
- package/dist/lib/server/index.js +76 -2966
- package/dist/lib/server/index.js.map +4 -4
- package/dist/lib/shared/index.js +3 -3
- package/dist/lib/test-utils/index.js +1 -1
- package/lib/client/core/ComponentBuilder.ts +1 -1
- package/lib/client/routing/Router.tsx +6 -0
- package/lib/client/templateEngine.test.ts +178 -0
- package/lib/client/templateEngine.ts +1 -2
- package/lib/server/astro/cmsPageEmitter.ts +3 -0
- package/lib/server/astro/componentEmitter.ts +60 -12
- package/lib/server/astro/nodeToAstro.test.ts +1101 -0
- package/lib/server/astro/nodeToAstro.ts +43 -4
- package/lib/server/astro/pageEmitter.ts +4 -0
- package/lib/server/index.ts +18 -4
- package/lib/server/services/configService.ts +12 -0
- package/lib/server/ssr/htmlGenerator.ts +0 -5
- package/lib/server/ssr/imageMetadata.ts +3 -3
- package/lib/server/ssr/ssrRenderer.ts +48 -19
- package/lib/shared/constants.ts +2 -0
- package/lib/shared/types/components.ts +8 -4
- package/lib/shared/validation/propValidator.ts +2 -1
- package/lib/shared/validation/schemas.ts +3 -1
- package/package.json +1 -1
- package/templates/index-router.html +0 -5
- package/dist/chunks/chunk-A6KWUEA6.js.map +0 -7
- package/dist/chunks/chunk-GKICS7CF.js.map +0 -7
- package/dist/chunks/chunk-LOJLO2EY.js.map +0 -7
- package/dist/chunks/chunk-OJ5SROQN.js.map +0 -7
- /package/dist/chunks/{chunk-3NOZVNM4.js.map → chunk-EQOSDQS2.js.map} +0 -0
- /package/dist/chunks/{chunk-MOCRENNU.js.map → chunk-SNUROC7E.js.map} +0 -0
- /package/dist/chunks/{configService-TXBNUBBL.js.map → configService-MICL4S2L.js.map} +0 -0
- /package/dist/chunks/{constants-L75FR445.js.map → constants-ZEU4TZCA.js.map} +0 -0
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
parseJSON,
|
|
17
17
|
resolveSlugToPageId,
|
|
18
18
|
variableService
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SK3TLNUP.js";
|
|
20
20
|
import {
|
|
21
21
|
configService
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MKB2J6AD.js";
|
|
23
23
|
import {
|
|
24
24
|
bundleFile,
|
|
25
25
|
createRuntimeServer,
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
} from "./chunk-LIHJ6OUH.js";
|
|
43
43
|
import {
|
|
44
44
|
isPathWithinRoot
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-S2HXJTAF.js";
|
|
46
46
|
import {
|
|
47
47
|
addItemUrls
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-IGVQF5GY.js";
|
|
49
49
|
import {
|
|
50
50
|
parseLocaleFromPath
|
|
51
51
|
} from "./chunk-PGH3ATYI.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
SERVER_PORT,
|
|
57
57
|
WEBSOCKET_STATES,
|
|
58
58
|
init_constants
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-LBWIHPN7.js";
|
|
60
60
|
|
|
61
61
|
// lib/server/pageCache.ts
|
|
62
62
|
var PageCache = class {
|
|
@@ -3217,4 +3217,4 @@ export {
|
|
|
3217
3217
|
createServer,
|
|
3218
3218
|
FileSystemPageProvider
|
|
3219
3219
|
};
|
|
3220
|
-
//# sourceMappingURL=chunk-
|
|
3220
|
+
//# sourceMappingURL=chunk-SNUROC7E.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigService,
|
|
3
3
|
configService
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MKB2J6AD.js";
|
|
5
5
|
import "./chunk-YSZ5IUFM.js";
|
|
6
6
|
import "./chunk-WQFG7PAH.js";
|
|
7
7
|
import "./chunk-PGH3ATYI.js";
|
|
@@ -10,4 +10,4 @@ export {
|
|
|
10
10
|
ConfigService,
|
|
11
11
|
configService
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=configService-
|
|
13
|
+
//# sourceMappingURL=configService-MICL4S2L.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
TREE_SCROLL_DELAY_MS,
|
|
20
20
|
WEBSOCKET_STATES,
|
|
21
21
|
init_constants
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LBWIHPN7.js";
|
|
23
23
|
import "./chunk-KSBZ2L7C.js";
|
|
24
24
|
init_constants();
|
|
25
25
|
export {
|
|
@@ -43,4 +43,4 @@ export {
|
|
|
43
43
|
TREE_SCROLL_DELAY_MS,
|
|
44
44
|
WEBSOCKET_STATES
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=constants-
|
|
46
|
+
//# sourceMappingURL=constants-ZEU4TZCA.js.map
|
|
@@ -6,27 +6,27 @@ import {
|
|
|
6
6
|
PageService,
|
|
7
7
|
WebSocketManager,
|
|
8
8
|
createServer
|
|
9
|
-
} from "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-SNUROC7E.js";
|
|
10
10
|
import {
|
|
11
11
|
CMSService,
|
|
12
12
|
FileSystemCMSProvider,
|
|
13
13
|
loadProjectConfig,
|
|
14
14
|
migrateTemplatesDirectory
|
|
15
|
-
} from "../chunks/chunk-
|
|
15
|
+
} from "../chunks/chunk-SK3TLNUP.js";
|
|
16
16
|
import {
|
|
17
17
|
configService
|
|
18
|
-
} from "../chunks/chunk-
|
|
18
|
+
} from "../chunks/chunk-MKB2J6AD.js";
|
|
19
19
|
import {
|
|
20
20
|
projectPaths
|
|
21
21
|
} from "../chunks/chunk-YSZ5IUFM.js";
|
|
22
22
|
import "../chunks/chunk-WQFG7PAH.js";
|
|
23
23
|
import "../chunks/chunk-LIHJ6OUH.js";
|
|
24
|
-
import "../chunks/chunk-
|
|
25
|
-
import "../chunks/chunk-
|
|
26
|
-
import "../chunks/chunk-
|
|
24
|
+
import "../chunks/chunk-S2HXJTAF.js";
|
|
25
|
+
import "../chunks/chunk-IBR2F4IL.js";
|
|
26
|
+
import "../chunks/chunk-IGVQF5GY.js";
|
|
27
27
|
import "../chunks/chunk-PGH3ATYI.js";
|
|
28
28
|
import "../chunks/chunk-UB44F4Z2.js";
|
|
29
|
-
import "../chunks/chunk-
|
|
29
|
+
import "../chunks/chunk-LBWIHPN7.js";
|
|
30
30
|
import "../chunks/chunk-KSBZ2L7C.js";
|
|
31
31
|
|
|
32
32
|
// entries/server-router.tsx
|
package/dist/lib/client/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveLinkMapping,
|
|
13
13
|
resolveStyleMapping,
|
|
14
14
|
skipEmptyTemplateAttributes
|
|
15
|
-
} from "../../chunks/chunk-
|
|
15
|
+
} from "../../chunks/chunk-IBR2F4IL.js";
|
|
16
16
|
import {
|
|
17
17
|
filterCSSProperties,
|
|
18
18
|
logNetworkError,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
singularize,
|
|
57
57
|
sortClassesByPropertyOrder,
|
|
58
58
|
validatePageData
|
|
59
|
-
} from "../../chunks/chunk-
|
|
59
|
+
} from "../../chunks/chunk-IGVQF5GY.js";
|
|
60
60
|
import {
|
|
61
61
|
DEFAULT_BREAKPOINTS,
|
|
62
62
|
DEFAULT_I18N_CONFIG,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
NOT_FOUND_TIMEOUT_MS,
|
|
80
80
|
RAW_HTML_PREFIX,
|
|
81
81
|
init_constants
|
|
82
|
-
} from "../../chunks/chunk-
|
|
82
|
+
} from "../../chunks/chunk-LBWIHPN7.js";
|
|
83
83
|
import "../../chunks/chunk-KSBZ2L7C.js";
|
|
84
84
|
|
|
85
85
|
// lib/client/core/ComponentBuilder.ts
|
|
@@ -2069,7 +2069,7 @@ var ComponentBuilder = class {
|
|
|
2069
2069
|
if (utilityClasses.length > 0) {
|
|
2070
2070
|
const existingClassName = props.className || "";
|
|
2071
2071
|
const classArray = existingClassName ? existingClassName.split(/\s+/) : [];
|
|
2072
|
-
return { ...props, className: [...classArray, ...utilityClasses].filter(Boolean).join(" ") };
|
|
2072
|
+
return { ...props, className: [...classArray, ...utilityClasses].filter(Boolean).join(" "), style: processedStyle };
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
2075
|
return props;
|
|
@@ -3833,6 +3833,11 @@ function Router(props = {}) {
|
|
|
3833
3833
|
useEffect2(() => {
|
|
3834
3834
|
if (typeof window === "undefined") return;
|
|
3835
3835
|
const handleMessage = (event) => {
|
|
3836
|
+
if (event.data?.type === IFRAME_MESSAGE_TYPES.CSS_VARIABLE_UPDATE) {
|
|
3837
|
+
const { name, value } = event.data;
|
|
3838
|
+
document.documentElement.style.setProperty(name, value);
|
|
3839
|
+
return;
|
|
3840
|
+
}
|
|
3836
3841
|
if (event.data?.type === IFRAME_MESSAGE_TYPES.INTERACTIVE_CSS_UPDATE) {
|
|
3837
3842
|
const css = event.data.css;
|
|
3838
3843
|
const styleId = "interactive-styles";
|