meno-core 1.1.7 → 1.1.8
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/chunks/{chunk-XTKNX4FW.js → chunk-AMNAKQAI.js} +25 -11
- package/dist/chunks/{chunk-XTKNX4FW.js.map → chunk-AMNAKQAI.js.map} +2 -2
- package/dist/chunks/{chunk-YMBUSHII.js → chunk-CG3O7H5V.js} +9 -4
- package/dist/chunks/chunk-CG3O7H5V.js.map +7 -0
- package/dist/chunks/{chunk-4ZRU52J2.js → chunk-EJ6QOX7C.js} +14 -10
- package/dist/chunks/chunk-EJ6QOX7C.js.map +7 -0
- package/dist/chunks/{chunk-KX2LPIZZ.js → chunk-EKB7GGQK.js} +223 -38
- package/dist/chunks/chunk-EKB7GGQK.js.map +7 -0
- package/dist/chunks/{chunk-WOJS25K3.js → chunk-G6OXV2IV.js} +2 -2
- package/dist/lib/client/index.js +9 -5
- package/dist/lib/client/index.js.map +2 -2
- package/dist/lib/server/index.js +14 -5
- package/dist/lib/server/index.js.map +2 -2
- package/dist/lib/shared/index.js +18 -6
- package/dist/lib/shared/index.js.map +2 -2
- package/lib/client/core/ComponentBuilder.test.ts +40 -0
- package/lib/client/core/ComponentBuilder.ts +8 -1
- package/lib/server/routes/static.test.ts +67 -0
- package/lib/server/routes/static.ts +9 -1
- package/lib/server/ssr/htmlGenerator.ts +7 -0
- package/lib/server/ssr/ssrRenderer.test.ts +31 -0
- package/lib/server/ssr/ssrRenderer.ts +8 -1
- package/lib/shared/cssGeneration.test.ts +150 -9
- package/lib/shared/cssGeneration.ts +116 -31
- package/lib/shared/cssProperties.ts +40 -14
- package/lib/shared/i18n.test.ts +21 -0
- package/lib/shared/i18n.ts +24 -10
- package/lib/shared/nodeUtils.test.ts +22 -0
- package/lib/shared/nodeUtils.ts +39 -4
- package/lib/shared/permissions.test.ts +46 -6
- package/lib/shared/permissions.ts +14 -2
- package/lib/shared/pxToRem.ts +2 -0
- package/lib/shared/responsiveScaling.test.ts +19 -0
- package/lib/shared/responsiveScaling.ts +8 -3
- package/lib/shared/styleUtils.ts +53 -0
- package/lib/shared/tailwindThemeScale.ts +91 -0
- package/lib/shared/types/components.ts +45 -7
- package/lib/shared/types/index.ts +1 -0
- package/lib/shared/types/permissions.ts +27 -11
- package/lib/shared/utilityClassMapper.test.ts +105 -0
- package/lib/shared/utilityClassMapper.ts +43 -5
- package/lib/shared/utilityClassNames.ts +14 -1
- package/lib/shared/validation/propValidator.test.ts +47 -0
- package/lib/shared/validation/propValidator.ts +8 -0
- package/lib/shared/validation/schemas.test.ts +149 -16
- package/lib/shared/validation/schemas.ts +101 -5
- package/package.json +1 -1
- package/dist/chunks/chunk-4ZRU52J2.js.map +0 -7
- package/dist/chunks/chunk-KX2LPIZZ.js.map +0 -7
- package/dist/chunks/chunk-YMBUSHII.js.map +0 -7
- /package/dist/chunks/{chunk-WOJS25K3.js.map → chunk-G6OXV2IV.js.map} +0 -0
package/dist/lib/server/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
resolveSlugToPageId,
|
|
21
21
|
rewriteComponentRefs,
|
|
22
22
|
translatePath
|
|
23
|
-
} from "../../chunks/chunk-
|
|
23
|
+
} from "../../chunks/chunk-CG3O7H5V.js";
|
|
24
24
|
import {
|
|
25
25
|
syncNetlifyLocale404Block
|
|
26
26
|
} from "../../chunks/chunk-2AR55GYH.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
processStructure,
|
|
35
35
|
resolveHtmlMapping,
|
|
36
36
|
skipEmptyTemplateAttributes
|
|
37
|
-
} from "../../chunks/chunk-
|
|
37
|
+
} from "../../chunks/chunk-G6OXV2IV.js";
|
|
38
38
|
import {
|
|
39
39
|
DEFAULT_BREAKPOINTS,
|
|
40
40
|
DEFAULT_FLUID_RANGE,
|
|
@@ -83,6 +83,7 @@ import {
|
|
|
83
83
|
processItemPropsTemplate,
|
|
84
84
|
processItemTemplate,
|
|
85
85
|
resolveExtractedMappings,
|
|
86
|
+
resolveIfI18n,
|
|
86
87
|
resolveItemsTemplate,
|
|
87
88
|
resolvePropsFromDefinition,
|
|
88
89
|
resolveTemplateRawValue,
|
|
@@ -96,7 +97,7 @@ import {
|
|
|
96
97
|
validateCMSDraftItem,
|
|
97
98
|
validateCMSItem,
|
|
98
99
|
validateComponentDefinition
|
|
99
|
-
} from "../../chunks/chunk-
|
|
100
|
+
} from "../../chunks/chunk-EKB7GGQK.js";
|
|
100
101
|
import {
|
|
101
102
|
DEFAULT_I18N_CONFIG,
|
|
102
103
|
buildLocalizedPath,
|
|
@@ -105,7 +106,7 @@ import {
|
|
|
105
106
|
migrateI18nConfig,
|
|
106
107
|
parseLocaleFromPath,
|
|
107
108
|
resolveI18nValue
|
|
108
|
-
} from "../../chunks/chunk-
|
|
109
|
+
} from "../../chunks/chunk-EJ6QOX7C.js";
|
|
109
110
|
import {
|
|
110
111
|
isTiptapDocument,
|
|
111
112
|
tiptapToHtml
|
|
@@ -4719,6 +4720,9 @@ function evaluateIfCondition(node, ctx) {
|
|
|
4719
4720
|
if (typeof ifValue === "boolean") {
|
|
4720
4721
|
return ifValue;
|
|
4721
4722
|
}
|
|
4723
|
+
if (isI18nValue(ifValue)) {
|
|
4724
|
+
return Boolean(resolveIfI18n(ifValue, ctx.locale, ctx.i18nConfig));
|
|
4725
|
+
}
|
|
4722
4726
|
if (isBooleanMapping(ifValue)) {
|
|
4723
4727
|
const props = ctx.componentResolvedProps || {};
|
|
4724
4728
|
const propValue = props[ifValue.prop];
|
|
@@ -6666,6 +6670,9 @@ ${escapedJavaScript}
|
|
|
6666
6670
|
padding: 0;
|
|
6667
6671
|
box-sizing: border-box;
|
|
6668
6672
|
}
|
|
6673
|
+
*, ::before, ::after, ::backdrop, ::file-selector-button {
|
|
6674
|
+
border: 0 solid;
|
|
6675
|
+
}
|
|
6669
6676
|
body {
|
|
6670
6677
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
|
|
6671
6678
|
}
|
|
@@ -9446,7 +9453,9 @@ async function handleStaticRoute(url, _req) {
|
|
|
9446
9453
|
let rootPath;
|
|
9447
9454
|
if (decodedPathname.startsWith("/fonts/") || decodedPathname.startsWith("/images/") || decodedPathname.startsWith("/icons/") || decodedPathname.startsWith("/assets/") || decodedPathname.startsWith("/libraries/") || decodedPathname.startsWith("/videos/")) {
|
|
9448
9455
|
rootPath = getProjectRoot();
|
|
9449
|
-
|
|
9456
|
+
const rel = decodedPathname.slice(1);
|
|
9457
|
+
const fromPublic = resolveProjectPath("public", rel);
|
|
9458
|
+
filePath = isPathWithinRoot(fromPublic, rootPath) && await fileExists(fromPublic) ? fromPublic : resolveProjectPath(rel);
|
|
9450
9459
|
} else {
|
|
9451
9460
|
rootPath = getPackageRoot();
|
|
9452
9461
|
filePath = resolvePackagePath(decodedPathname.slice(1));
|