meno-core 1.1.2 → 1.1.4
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/chunks/{chunk-J4IPTP5X.js → chunk-UOF4MCAD.js} +92 -4
- package/dist/chunks/chunk-UOF4MCAD.js.map +7 -0
- package/dist/chunks/{chunk-7ZLF4NE5.js → chunk-ZEDLSHYQ.js} +2 -2
- package/dist/lib/client/index.js +46 -28
- package/dist/lib/client/index.js.map +2 -2
- package/dist/lib/server/index.js +1287 -236
- package/dist/lib/server/index.js.map +4 -4
- package/dist/lib/shared/index.js +5 -1
- package/dist/lib/shared/index.js.map +1 -1
- package/lib/client/core/ComponentBuilder.test.ts +32 -0
- package/lib/client/core/ComponentBuilder.ts +30 -0
- package/lib/client/scripts/formHandler.ts +17 -0
- package/lib/client/theme.test.ts +2 -2
- package/lib/client/theme.ts +28 -26
- package/lib/server/createServer.ts +5 -1
- package/lib/server/cssAudit.test.ts +270 -0
- package/lib/server/cssAudit.ts +815 -0
- package/lib/server/deMirror.test.ts +61 -0
- package/lib/server/deMirror.ts +317 -0
- package/lib/server/fileWatcher.test.ts +23 -0
- package/lib/server/fileWatcher.ts +6 -1
- package/lib/server/index.ts +19 -0
- package/lib/server/middleware/cors.test.ts +1 -1
- package/lib/server/middleware/cors.ts +1 -1
- package/lib/server/routes/api/core-routes.ts +18 -0
- package/lib/server/routes/api/cssAudit.test.ts +101 -0
- package/lib/server/routes/api/cssAudit.ts +138 -0
- package/lib/server/routes/api/deMirror.test.ts +105 -0
- package/lib/server/routes/api/deMirror.ts +127 -0
- package/lib/server/routes/api/functions.ts +2 -2
- package/lib/server/routes/api/pages.ts +2 -2
- package/lib/server/services/componentService.test.ts +43 -0
- package/lib/server/services/componentService.ts +49 -12
- package/lib/server/services/pageService.test.ts +15 -0
- package/lib/server/services/pageService.ts +44 -22
- package/lib/server/ssr/htmlGenerator.test.ts +29 -0
- package/lib/server/ssr/htmlGenerator.ts +83 -3
- package/lib/server/themeCssCodec.test.ts +67 -0
- package/lib/server/themeCssCodec.ts +67 -5
- package/lib/server/webflow/templateWrapper.ts +54 -0
- package/lib/shared/cssGeneration.test.ts +28 -0
- package/lib/shared/interfaces/contentProvider.ts +9 -0
- package/lib/shared/nodeUtils.ts +18 -0
- package/lib/shared/types/cms.ts +1 -0
- package/lib/shared/utilityClassConfig.ts +2 -0
- package/lib/shared/utilityClassMapper.test.ts +63 -0
- package/lib/shared/utilityClassMapper.ts +9 -1
- package/lib/shared/utilityClassNames.ts +74 -0
- package/lib/shared/utils/fileUtils.ts +11 -0
- package/lib/shared/validation/schemas.test.ts +78 -0
- package/lib/shared/validation/schemas.ts +54 -5
- package/lib/shared/viewportUnits.test.ts +34 -1
- package/lib/shared/viewportUnits.ts +43 -0
- package/package.json +3 -1
- package/vite.config.ts +4 -1
- package/dist/chunks/chunk-J4IPTP5X.js.map +0 -7
- /package/dist/chunks/{chunk-7ZLF4NE5.js.map → chunk-ZEDLSHYQ.js.map} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
normalizeStyle,
|
|
17
17
|
richTextMarkerToHtml,
|
|
18
18
|
safeEvaluate
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UOF4MCAD.js";
|
|
20
20
|
import {
|
|
21
21
|
NODE_TYPE,
|
|
22
22
|
RAW_HTML_PREFIX,
|
|
@@ -805,4 +805,4 @@ export {
|
|
|
805
805
|
skipEmptyTemplateAttributes,
|
|
806
806
|
inlineSvgStyleRules
|
|
807
807
|
};
|
|
808
|
-
//# sourceMappingURL=chunk-
|
|
808
|
+
//# sourceMappingURL=chunk-ZEDLSHYQ.js.map
|
package/dist/lib/client/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveLinkMapping,
|
|
14
14
|
resolveStyleMapping,
|
|
15
15
|
skipEmptyTemplateAttributes
|
|
16
|
-
} from "../../chunks/chunk-
|
|
16
|
+
} from "../../chunks/chunk-ZEDLSHYQ.js";
|
|
17
17
|
import {
|
|
18
18
|
filterCSSProperties
|
|
19
19
|
} from "../../chunks/chunk-XTKNX4FW.js";
|
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
isCurrentLink,
|
|
46
46
|
isCustomNode,
|
|
47
47
|
isEmbedNode,
|
|
48
|
+
isHtmlNode,
|
|
48
49
|
isIslandNode,
|
|
49
50
|
isItemDraftForLocale,
|
|
50
51
|
isLinkNode,
|
|
@@ -72,7 +73,7 @@ import {
|
|
|
72
73
|
sortClassesByPropertyOrder,
|
|
73
74
|
toFriendlyError,
|
|
74
75
|
validatePageData
|
|
75
|
-
} from "../../chunks/chunk-
|
|
76
|
+
} from "../../chunks/chunk-UOF4MCAD.js";
|
|
76
77
|
import {
|
|
77
78
|
DEFAULT_I18N_CONFIG,
|
|
78
79
|
isI18nValue,
|
|
@@ -2799,6 +2800,21 @@ var ComponentBuilder = class {
|
|
|
2799
2800
|
if (finalProps.style && typeof finalProps.style === "object") {
|
|
2800
2801
|
mergeNodeStyles(processedStructure, finalProps.style, viewportWidth);
|
|
2801
2802
|
}
|
|
2803
|
+
const instanceClass = typeof finalProps.class === "string" ? finalProps.class : "";
|
|
2804
|
+
if (instanceClass) {
|
|
2805
|
+
const root = processedStructure;
|
|
2806
|
+
if (isHtmlNode(root) || isLinkNode(root)) {
|
|
2807
|
+
if (!root.attributes) root.attributes = {};
|
|
2808
|
+
const existing = root.attributes.class || "";
|
|
2809
|
+
root.attributes.class = existing ? `${existing} ${instanceClass}` : instanceClass;
|
|
2810
|
+
} else {
|
|
2811
|
+
if (!root.props) root.props = {};
|
|
2812
|
+
const existing = root.props.className || "";
|
|
2813
|
+
root.props.className = existing ? `${existing} ${instanceClass}` : instanceClass;
|
|
2814
|
+
}
|
|
2815
|
+
const tokens = instanceClass.split(/\s+/).filter(Boolean);
|
|
2816
|
+
if (tokens.length > 0) UtilityClassCollector.collect(tokens);
|
|
2817
|
+
}
|
|
2802
2818
|
if (finalProps.onClick && isComponentNode(processedStructure)) {
|
|
2803
2819
|
if (!processedStructure.props) processedStructure.props = {};
|
|
2804
2820
|
processedStructure.props.onClick = this.createOnClickHandler(finalProps.onClick);
|
|
@@ -4948,20 +4964,21 @@ var lightThemeColors = {
|
|
|
4948
4964
|
};
|
|
4949
4965
|
var darkThemeColors = {
|
|
4950
4966
|
sidebar: {
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4967
|
+
// Codex dark (near-black neutral) palette
|
|
4968
|
+
background: "#0d0d0d",
|
|
4969
|
+
border: "#2a2a2a",
|
|
4970
|
+
text: "#ececec",
|
|
4971
|
+
textSecondary: "#b4b4b4",
|
|
4972
|
+
textMuted: "#8f8f8f",
|
|
4973
|
+
headerBackground: "#171717",
|
|
4974
|
+
tabActiveBackground: "#0d0d0d",
|
|
4975
|
+
tabActiveBorder: "#ececec",
|
|
4959
4976
|
tabInactiveBackground: "transparent",
|
|
4960
|
-
footerBackground: "#
|
|
4961
|
-
buttonPrimaryBackground: "#
|
|
4977
|
+
footerBackground: "#171717",
|
|
4978
|
+
buttonPrimaryBackground: "#2f2f2f",
|
|
4962
4979
|
buttonPrimaryColor: "#ffffff",
|
|
4963
|
-
hoverBackground: "#
|
|
4964
|
-
selectedBackground: "#
|
|
4980
|
+
hoverBackground: "#1f1f1f",
|
|
4981
|
+
selectedBackground: "#2a2a2a",
|
|
4965
4982
|
selectedText: "#ffffff"
|
|
4966
4983
|
},
|
|
4967
4984
|
scrollbar: {
|
|
@@ -4970,26 +4987,27 @@ var darkThemeColors = {
|
|
|
4970
4987
|
thumbHover: "#4e4e4e"
|
|
4971
4988
|
},
|
|
4972
4989
|
propsPanel: {
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4990
|
+
// Codex dark (near-black neutral) palette — matches sidebar/topbar
|
|
4991
|
+
background: "#0d0d0d",
|
|
4992
|
+
backgroundSecondary: "#171717",
|
|
4993
|
+
backgroundTertiary: "#1f1f1f",
|
|
4994
|
+
border: "#2a2a2a",
|
|
4995
|
+
borderSecondary: "#333333",
|
|
4996
|
+
text: "#ececec",
|
|
4997
|
+
textSecondary: "#b4b4b4",
|
|
4998
|
+
textMuted: "#8f8f8f",
|
|
4981
4999
|
codeString: "#ffffff",
|
|
4982
5000
|
codeNumber: "#b5cea8",
|
|
4983
5001
|
codeKey: "#9cdcfe",
|
|
4984
5002
|
codeType: "#4ec9b0",
|
|
4985
|
-
buttonPrimary: "#
|
|
4986
|
-
buttonPrimaryHover: "#
|
|
4987
|
-
buttonSecondary: "#
|
|
5003
|
+
buttonPrimary: "#2f2f2f",
|
|
5004
|
+
buttonPrimaryHover: "#3a3a3a",
|
|
5005
|
+
buttonSecondary: "#b4b4b4",
|
|
4988
5006
|
buttonDanger: "#f48771",
|
|
4989
5007
|
buttonDangerHover: "#ff6b6b",
|
|
4990
|
-
inputBackground: "#
|
|
4991
|
-
inputBorder: "#
|
|
4992
|
-
hoverBackground: "#
|
|
5008
|
+
inputBackground: "#171717",
|
|
5009
|
+
inputBorder: "#2a2a2a",
|
|
5010
|
+
hoverBackground: "#1f1f1f",
|
|
4993
5011
|
variableBackground: "#2a2a2a"
|
|
4994
5012
|
}
|
|
4995
5013
|
};
|