meno-core 1.0.35 → 1.0.36
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 +2 -2
- package/dist/build-static.js +6 -6
- package/dist/chunks/{chunk-YSV4AG55.js → chunk-A6KWUEA6.js} +3 -3
- package/dist/chunks/{chunk-2ZTKVTUO.js → chunk-EUCAKI5U.js} +36 -21
- package/dist/chunks/chunk-EUCAKI5U.js.map +7 -0
- package/dist/chunks/{chunk-RWTKZPWJ.js → chunk-P3FX5HJM.js} +1 -1
- package/dist/chunks/{chunk-RWTKZPWJ.js.map → chunk-P3FX5HJM.js.map} +1 -1
- package/dist/chunks/{chunk-NRKBBQL3.js → chunk-UR7L5UZ3.js} +11 -11
- package/dist/chunks/{chunk-NRKBBQL3.js.map → chunk-UR7L5UZ3.js.map} +2 -2
- package/dist/chunks/{chunk-VNVD6LFP.js → chunk-VENUWN6C.js} +5 -5
- package/dist/chunks/{chunk-GB2LHWZF.js → chunk-WQFG7PAH.js} +2 -1
- package/dist/chunks/chunk-WQFG7PAH.js.map +7 -0
- package/dist/chunks/{chunk-E6L5FESH.js → chunk-YSZ5IUFM.js} +4 -4
- package/dist/chunks/{configService-SASOCJRE.js → configService-TXBNUBBL.js} +4 -4
- package/dist/chunks/{fs-JMN4XQPQ.js → fs-JGINUXGL.js} +2 -2
- package/dist/entries/server-router.js +6 -6
- package/dist/lib/client/index.js +2 -2
- package/dist/lib/client/index.js.map +1 -1
- package/dist/lib/server/index.js +7 -7
- package/dist/lib/shared/index.js +8 -8
- package/dist/lib/shared/index.js.map +1 -1
- package/lib/client/theme.ts +2 -2
- package/lib/server/cssGenerator.ts +13 -28
- package/lib/server/routes/index.ts +2 -2
- package/lib/server/routes/static.ts +3 -3
- package/lib/server/runtime/fs.ts +1 -0
- package/lib/server/ssr/attributeBuilder.ts +12 -2
- package/lib/shared/fontLoader.ts +4 -1
- package/lib/shared/themeDefaults.ts +7 -7
- package/lib/shared/types/variables.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-2ZTKVTUO.js.map +0 -7
- package/dist/chunks/chunk-GB2LHWZF.js.map +0 -7
- /package/dist/chunks/{chunk-YSV4AG55.js.map → chunk-A6KWUEA6.js.map} +0 -0
- /package/dist/chunks/{chunk-VNVD6LFP.js.map → chunk-VENUWN6C.js.map} +0 -0
- /package/dist/chunks/{chunk-E6L5FESH.js.map → chunk-YSZ5IUFM.js.map} +0 -0
- /package/dist/chunks/{configService-SASOCJRE.js.map → configService-TXBNUBBL.js.map} +0 -0
- /package/dist/chunks/{fs-JMN4XQPQ.js.map → fs-JGINUXGL.js.map} +0 -0
package/dist/bin/cli.js
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
createRuntimeServer,
|
|
7
7
|
setProjectRoot
|
|
8
|
-
} from "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-YSZ5IUFM.js";
|
|
9
9
|
import {
|
|
10
10
|
fileExists,
|
|
11
11
|
serveFile
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-WQFG7PAH.js";
|
|
13
13
|
import "../chunks/chunk-KSBZ2L7C.js";
|
|
14
14
|
|
|
15
15
|
// bin/cli.ts
|
package/dist/build-static.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
hashContent,
|
|
10
10
|
injectTrackingScript,
|
|
11
11
|
isCMSPage
|
|
12
|
-
} from "./chunks/chunk-
|
|
13
|
-
import "./chunks/chunk-
|
|
14
|
-
import "./chunks/chunk-
|
|
15
|
-
import "./chunks/chunk-
|
|
16
|
-
import "./chunks/chunk-
|
|
17
|
-
import "./chunks/chunk-
|
|
12
|
+
} from "./chunks/chunk-VENUWN6C.js";
|
|
13
|
+
import "./chunks/chunk-EUCAKI5U.js";
|
|
14
|
+
import "./chunks/chunk-A6KWUEA6.js";
|
|
15
|
+
import "./chunks/chunk-YSZ5IUFM.js";
|
|
16
|
+
import "./chunks/chunk-WQFG7PAH.js";
|
|
17
|
+
import "./chunks/chunk-P3FX5HJM.js";
|
|
18
18
|
import "./chunks/chunk-AIXKUVNG.js";
|
|
19
19
|
import "./chunks/chunk-NV25WXCA.js";
|
|
20
20
|
import "./chunks/chunk-PGH3ATYI.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectPaths
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YSZ5IUFM.js";
|
|
4
4
|
import {
|
|
5
5
|
fileExists,
|
|
6
6
|
readTextFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WQFG7PAH.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_BREAKPOINTS,
|
|
10
10
|
DEFAULT_I18N_CONFIG,
|
|
@@ -197,4 +197,4 @@ export {
|
|
|
197
197
|
ConfigService,
|
|
198
198
|
configService
|
|
199
199
|
};
|
|
200
|
-
//# sourceMappingURL=chunk-
|
|
200
|
+
//# sourceMappingURL=chunk-A6KWUEA6.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A6KWUEA6.js";
|
|
4
4
|
import {
|
|
5
5
|
projectPaths,
|
|
6
6
|
resolveProjectPath,
|
|
7
7
|
validateJS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YSZ5IUFM.js";
|
|
9
9
|
import {
|
|
10
10
|
fileExists,
|
|
11
11
|
readJsonFile,
|
|
12
12
|
readTextFile,
|
|
13
13
|
writeFile
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WQFG7PAH.js";
|
|
15
15
|
import {
|
|
16
16
|
isSafePathSegment,
|
|
17
17
|
isValidIdentifier,
|
|
18
18
|
resolvePaletteColor
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-P3FX5HJM.js";
|
|
20
20
|
import {
|
|
21
21
|
extractAttributesFromNode,
|
|
22
22
|
isHtmlMapping,
|
|
@@ -1274,12 +1274,14 @@ function generateFontCSS() {
|
|
|
1274
1274
|
const style = font.style ?? "normal";
|
|
1275
1275
|
const fontDisplay = font.fontDisplay;
|
|
1276
1276
|
const fontWeight = weightMax != null ? `${weight} ${weightMax}` : weight;
|
|
1277
|
+
const unicodeRange = font.unicodeRange;
|
|
1277
1278
|
return `@font-face {
|
|
1278
1279
|
font-family: '${family}';
|
|
1279
1280
|
src: url('${fontPath}') format('${format}');
|
|
1280
1281
|
font-weight: ${fontWeight};
|
|
1281
1282
|
font-style: ${style};${fontDisplay ? `
|
|
1282
|
-
font-display: ${fontDisplay};` : ""}
|
|
1283
|
+
font-display: ${fontDisplay};` : ""}${unicodeRange ? `
|
|
1284
|
+
unicode-range: ${unicodeRange};` : ""}
|
|
1283
1285
|
}`;
|
|
1284
1286
|
}).join("\n\n");
|
|
1285
1287
|
}
|
|
@@ -1311,6 +1313,23 @@ function escapeHtml(unsafe) {
|
|
|
1311
1313
|
}
|
|
1312
1314
|
return unsafe.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1313
1315
|
}
|
|
1316
|
+
var NO_KEBAB_ATTRS = /* @__PURE__ */ new Set([
|
|
1317
|
+
"autoplay",
|
|
1318
|
+
"playsinline",
|
|
1319
|
+
"crossorigin",
|
|
1320
|
+
"novalidate",
|
|
1321
|
+
"readonly",
|
|
1322
|
+
"nomodule",
|
|
1323
|
+
"formnovalidate",
|
|
1324
|
+
"ismap",
|
|
1325
|
+
"usemap",
|
|
1326
|
+
"srcset",
|
|
1327
|
+
"inputmode",
|
|
1328
|
+
"enterkeyhint",
|
|
1329
|
+
"autocomplete",
|
|
1330
|
+
"autofocus",
|
|
1331
|
+
"contenteditable"
|
|
1332
|
+
]);
|
|
1314
1333
|
function buildAttributes(props, exclude = []) {
|
|
1315
1334
|
const attrs = [];
|
|
1316
1335
|
const internalProps = ["tag", "component", "props", "children"];
|
|
@@ -1322,7 +1341,7 @@ function buildAttributes(props, exclude = []) {
|
|
|
1322
1341
|
if (typeof value === "function") continue;
|
|
1323
1342
|
if (typeof value === "object") continue;
|
|
1324
1343
|
if (typeof value === "string" && unresolvedTemplatePattern.test(value)) continue;
|
|
1325
|
-
const attrName = key.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
1344
|
+
const attrName = NO_KEBAB_ATTRS.has(key.toLowerCase()) ? key.toLowerCase() : key.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
1326
1345
|
const attrValue = typeof value === "boolean" ? value ? "" : void 0 : escapeHtml(String(value));
|
|
1327
1346
|
if (attrValue !== void 0) {
|
|
1328
1347
|
if (typeof value === "boolean" && value) {
|
|
@@ -3063,7 +3082,16 @@ ${baseVars.join("\n")}
|
|
|
3063
3082
|
for (const [bpName, bpEntry] of sortedBreakpoints) {
|
|
3064
3083
|
const scaledVars = [];
|
|
3065
3084
|
for (const variable of config.variables) {
|
|
3066
|
-
|
|
3085
|
+
if (variable.scales && variable.scales[bpName]) {
|
|
3086
|
+
const overrideValue = variable.scales[bpName];
|
|
3087
|
+
if (overrideValue !== variable.value) {
|
|
3088
|
+
scaledVars.push(` ${variable.cssVar}: ${overrideValue};`);
|
|
3089
|
+
}
|
|
3090
|
+
continue;
|
|
3091
|
+
}
|
|
3092
|
+
if (variable.type === "none") continue;
|
|
3093
|
+
const categoryScales = responsiveScales[variable.type];
|
|
3094
|
+
const scale = categoryScales?.[bpName] ?? null;
|
|
3067
3095
|
if (scale === null) continue;
|
|
3068
3096
|
const scaled = scalePropertyValue(variable.value, baseRef, scale);
|
|
3069
3097
|
if (scaled !== null && scaled !== variable.value) {
|
|
@@ -3083,19 +3111,6 @@ ${scaledVars.join("\n")}
|
|
|
3083
3111
|
}
|
|
3084
3112
|
return cssBlocks.join("\n");
|
|
3085
3113
|
}
|
|
3086
|
-
function getVariableScale(variable, breakpointName, responsiveScales) {
|
|
3087
|
-
if (variable.type === "none" && !variable.scales) {
|
|
3088
|
-
return null;
|
|
3089
|
-
}
|
|
3090
|
-
if (variable.scales && variable.scales[breakpointName] !== void 0) {
|
|
3091
|
-
return variable.scales[breakpointName];
|
|
3092
|
-
}
|
|
3093
|
-
if (variable.type === "none") {
|
|
3094
|
-
return null;
|
|
3095
|
-
}
|
|
3096
|
-
const categoryScales = responsiveScales[variable.type];
|
|
3097
|
-
return categoryScales?.[breakpointName] ?? null;
|
|
3098
|
-
}
|
|
3099
3114
|
|
|
3100
3115
|
// lib/client/scripts/formHandler.ts
|
|
3101
3116
|
var formHandlerScript = `
|
|
@@ -3755,4 +3770,4 @@ export {
|
|
|
3755
3770
|
FileSystemCMSProvider,
|
|
3756
3771
|
migrateTemplatesDirectory
|
|
3757
3772
|
};
|
|
3758
|
-
//# sourceMappingURL=chunk-
|
|
3773
|
+
//# sourceMappingURL=chunk-EUCAKI5U.js.map
|