meno-core 1.0.44 → 1.0.45
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/bin/cli.js +1 -1
- package/dist/build-static.js +8 -8
- package/dist/chunks/{chunk-KPNSCQNA.js → chunk-5ZASE4IG.js} +53 -10
- package/dist/chunks/chunk-5ZASE4IG.js.map +7 -0
- package/dist/chunks/{chunk-3XXLBUYA.js → chunk-BZQKEJQY.js} +9 -8
- package/dist/chunks/{chunk-3XXLBUYA.js.map → chunk-BZQKEJQY.js.map} +2 -2
- package/dist/chunks/{chunk-OLNQMCSR.js → chunk-F7MA62WG.js} +3 -3
- package/dist/chunks/{chunk-2NBGG2LJ.js → chunk-GYF3ABI3.js} +87 -2
- package/dist/chunks/{chunk-2NBGG2LJ.js.map → chunk-GYF3ABI3.js.map} +2 -2
- package/dist/chunks/{chunk-46AVQA4V.js → chunk-IF3RATBY.js} +2 -2
- package/dist/chunks/{chunk-S2HXJTAF.js → chunk-KITQJYZV.js} +5 -1
- package/dist/chunks/chunk-KITQJYZV.js.map +7 -0
- package/dist/chunks/{chunk-BXB6AX76.js → chunk-NZTSJS5C.js} +6 -3
- package/dist/chunks/chunk-NZTSJS5C.js.map +7 -0
- package/dist/chunks/{chunk-G3WIPJN3.js → chunk-OUNJ76QM.js} +5 -5
- package/dist/chunks/{chunk-5TJA272J.js → chunk-TVH3TC2T.js} +8 -8
- package/dist/chunks/{chunk-YEJVSNVF.js → chunk-WQSG5WHC.js} +13 -2
- package/dist/chunks/chunk-WQSG5WHC.js.map +7 -0
- package/dist/chunks/{chunk-X5SH4HXS.js → chunk-XSWR3QLI.js} +33 -1
- package/dist/chunks/chunk-XSWR3QLI.js.map +7 -0
- package/dist/chunks/{configService-KYO3TXDS.js → configService-6KTT6GRT.js} +3 -3
- package/dist/chunks/{constants-34NUGHQR.js → constants-L5IKLB6U.js} +2 -2
- package/dist/entries/server-router.js +9 -9
- package/dist/lib/client/index.js +5 -5
- package/dist/lib/server/index.js +10 -10
- package/dist/lib/shared/index.js +10 -6
- package/dist/lib/shared/index.js.map +1 -1
- package/dist/lib/test-utils/index.js +1 -1
- package/lib/server/services/configService.ts +13 -0
- package/lib/server/ssr/htmlGenerator.ts +4 -1
- package/lib/shared/constants.ts +8 -2
- package/lib/shared/cssGeneration.ts +11 -0
- package/lib/shared/cssProperties.ts +97 -2
- package/lib/shared/nodeUtils.ts +28 -0
- package/lib/shared/responsiveScaling.test.ts +20 -3
- package/lib/shared/responsiveScaling.ts +55 -1
- package/lib/shared/responsiveStyleUtils.test.ts +7 -8
- package/lib/shared/responsiveStyleUtils.ts +6 -7
- package/lib/shared/types/components.ts +1 -1
- package/lib/shared/types/variables.test.ts +9 -2
- package/lib/shared/types/variables.ts +5 -1
- package/lib/shared/utilityClassMapper.ts +14 -1
- package/lib/shared/validation/propValidator.ts +6 -0
- package/lib/shared/validation/schemas.ts +2 -2
- package/package.json +1 -1
- package/dist/chunks/chunk-BXB6AX76.js.map +0 -7
- package/dist/chunks/chunk-KPNSCQNA.js.map +0 -7
- package/dist/chunks/chunk-S2HXJTAF.js.map +0 -7
- package/dist/chunks/chunk-X5SH4HXS.js.map +0 -7
- package/dist/chunks/chunk-YEJVSNVF.js.map +0 -7
- /package/dist/chunks/{chunk-OLNQMCSR.js.map → chunk-F7MA62WG.js.map} +0 -0
- /package/dist/chunks/{chunk-46AVQA4V.js.map → chunk-IF3RATBY.js.map} +0 -0
- /package/dist/chunks/{chunk-G3WIPJN3.js.map → chunk-OUNJ76QM.js.map} +0 -0
- /package/dist/chunks/{chunk-5TJA272J.js.map → chunk-TVH3TC2T.js.map} +0 -0
- /package/dist/chunks/{configService-KYO3TXDS.js.map → configService-6KTT6GRT.js.map} +0 -0
- /package/dist/chunks/{constants-34NUGHQR.js.map → constants-L5IKLB6U.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WQSG5WHC.js";
|
|
4
4
|
import {
|
|
5
5
|
projectPaths,
|
|
6
6
|
resolveProjectPath,
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
isSafePathSegment,
|
|
17
17
|
isValidIdentifier,
|
|
18
18
|
resolvePaletteColor
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KITQJYZV.js";
|
|
20
20
|
import {
|
|
21
21
|
extractAttributesFromNode,
|
|
22
22
|
isHtmlMapping,
|
|
23
23
|
processStructure,
|
|
24
24
|
resolveHtmlMapping,
|
|
25
25
|
skipEmptyTemplateAttributes
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-F7MA62WG.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_PREFETCH_CONFIG,
|
|
29
29
|
SSRRegistry,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
singularize,
|
|
63
63
|
validateCMSItem,
|
|
64
64
|
validateComponentDefinition
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-5ZASE4IG.js";
|
|
66
66
|
import {
|
|
67
67
|
DEFAULT_BREAKPOINTS,
|
|
68
68
|
DEFAULT_I18N_CONFIG,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
normalizeBreakpointConfig,
|
|
75
75
|
resolveI18nValue,
|
|
76
76
|
scalePropertyValue
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-XSWR3QLI.js";
|
|
78
78
|
import {
|
|
79
79
|
isTiptapDocument,
|
|
80
80
|
tiptapToHtml
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
NODE_TYPE,
|
|
84
84
|
RAW_HTML_PREFIX,
|
|
85
85
|
init_constants
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-NZTSJS5C.js";
|
|
87
87
|
import {
|
|
88
88
|
__require
|
|
89
89
|
} from "./chunk-KSBZ2L7C.js";
|
|
@@ -3327,10 +3327,11 @@ async function generateSSRHTML(pageDataOrOptions, globalComponents = {}, pagePat
|
|
|
3327
3327
|
await configService.load();
|
|
3328
3328
|
const globalLibraries = configService.getLibraries() || { js: [], css: [] };
|
|
3329
3329
|
const globalCustomCode = configService.getCustomCode();
|
|
3330
|
+
const menoBadgeHtml = configService.getShowMenoBadge() ? `<a href="https://meno.so" target="_blank" rel="noopener" style="position:fixed;bottom:12px;left:12px;z-index:9999;background:#000;color:#fff;padding:4px 10px;border-radius:6px;font-size:12px;font-family:system-ui,sans-serif;text-decoration:none;opacity:0.8;transition:opacity 0.2s" onmouseenter="this.style.opacity='1'" onmouseleave="this.style.opacity='0.8'">Made in Meno</a>` : "";
|
|
3330
3331
|
const mergedCustomCode = {
|
|
3331
3332
|
head: [globalCustomCode.head, pageCustomCode?.head].filter(Boolean).join("\n"),
|
|
3332
3333
|
bodyStart: [globalCustomCode.bodyStart, pageCustomCode?.bodyStart].filter(Boolean).join("\n"),
|
|
3333
|
-
bodyEnd: [globalCustomCode.bodyEnd, pageCustomCode?.bodyEnd].filter(Boolean).join("\n")
|
|
3334
|
+
bodyEnd: [globalCustomCode.bodyEnd, pageCustomCode?.bodyEnd, menoBadgeHtml].filter(Boolean).join("\n")
|
|
3334
3335
|
};
|
|
3335
3336
|
const componentLibraries = collectComponentLibraries(components, pageData.components || {});
|
|
3336
3337
|
const globalPlusComponent = mergeLibraries(globalLibraries, componentLibraries) || { js: [], css: [] };
|
|
@@ -5964,4 +5965,4 @@ export {
|
|
|
5964
5965
|
FileSystemCMSProvider,
|
|
5965
5966
|
migrateTemplatesDirectory
|
|
5966
5967
|
};
|
|
5967
|
-
//# sourceMappingURL=chunk-
|
|
5968
|
+
//# sourceMappingURL=chunk-BZQKEJQY.js.map
|