meno-core 1.1.6 → 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.
Files changed (54) hide show
  1. package/dist/bin/cli.js +1 -1
  2. package/dist/chunks/{chunk-XTKNX4FW.js → chunk-AMNAKQAI.js} +25 -11
  3. package/dist/chunks/{chunk-XTKNX4FW.js.map → chunk-AMNAKQAI.js.map} +2 -2
  4. package/dist/chunks/{chunk-YMBUSHII.js → chunk-CG3O7H5V.js} +9 -4
  5. package/dist/chunks/chunk-CG3O7H5V.js.map +7 -0
  6. package/dist/chunks/{chunk-4ZRU52J2.js → chunk-EJ6QOX7C.js} +14 -10
  7. package/dist/chunks/chunk-EJ6QOX7C.js.map +7 -0
  8. package/dist/chunks/{chunk-KX2LPIZZ.js → chunk-EKB7GGQK.js} +223 -38
  9. package/dist/chunks/chunk-EKB7GGQK.js.map +7 -0
  10. package/dist/chunks/{chunk-GHNLTFCN.js → chunk-G6OXV2IV.js} +3 -3
  11. package/dist/chunks/{chunk-GHNLTFCN.js.map → chunk-G6OXV2IV.js.map} +2 -2
  12. package/dist/lib/client/index.js +9 -5
  13. package/dist/lib/client/index.js.map +2 -2
  14. package/dist/lib/server/index.js +14 -5
  15. package/dist/lib/server/index.js.map +2 -2
  16. package/dist/lib/shared/index.js +18 -6
  17. package/dist/lib/shared/index.js.map +2 -2
  18. package/lib/client/core/ComponentBuilder.test.ts +40 -0
  19. package/lib/client/core/ComponentBuilder.ts +8 -1
  20. package/lib/server/routes/static.test.ts +67 -0
  21. package/lib/server/routes/static.ts +9 -1
  22. package/lib/server/ssr/htmlGenerator.ts +7 -0
  23. package/lib/server/ssr/ssrRenderer.test.ts +64 -0
  24. package/lib/server/ssr/ssrRenderer.ts +8 -1
  25. package/lib/shared/attributeNodeUtils.test.ts +25 -0
  26. package/lib/shared/attributeNodeUtils.ts +9 -1
  27. package/lib/shared/cssGeneration.test.ts +150 -9
  28. package/lib/shared/cssGeneration.ts +116 -31
  29. package/lib/shared/cssProperties.ts +40 -14
  30. package/lib/shared/i18n.test.ts +21 -0
  31. package/lib/shared/i18n.ts +24 -10
  32. package/lib/shared/nodeUtils.test.ts +22 -0
  33. package/lib/shared/nodeUtils.ts +39 -4
  34. package/lib/shared/permissions.test.ts +46 -6
  35. package/lib/shared/permissions.ts +14 -2
  36. package/lib/shared/pxToRem.ts +2 -0
  37. package/lib/shared/responsiveScaling.test.ts +19 -0
  38. package/lib/shared/responsiveScaling.ts +8 -3
  39. package/lib/shared/styleUtils.ts +53 -0
  40. package/lib/shared/tailwindThemeScale.ts +91 -0
  41. package/lib/shared/types/components.ts +45 -7
  42. package/lib/shared/types/index.ts +1 -0
  43. package/lib/shared/types/permissions.ts +27 -11
  44. package/lib/shared/utilityClassMapper.test.ts +105 -0
  45. package/lib/shared/utilityClassMapper.ts +43 -5
  46. package/lib/shared/utilityClassNames.ts +14 -1
  47. package/lib/shared/validation/propValidator.test.ts +47 -0
  48. package/lib/shared/validation/propValidator.ts +8 -0
  49. package/lib/shared/validation/schemas.test.ts +149 -16
  50. package/lib/shared/validation/schemas.ts +101 -5
  51. package/package.json +1 -1
  52. package/dist/chunks/chunk-4ZRU52J2.js.map +0 -7
  53. package/dist/chunks/chunk-KX2LPIZZ.js.map +0 -7
  54. package/dist/chunks/chunk-YMBUSHII.js.map +0 -7
@@ -20,7 +20,7 @@ import {
20
20
  resolveSlugToPageId,
21
21
  rewriteComponentRefs,
22
22
  translatePath
23
- } from "../../chunks/chunk-YMBUSHII.js";
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-GHNLTFCN.js";
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-KX2LPIZZ.js";
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-4ZRU52J2.js";
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
- filePath = resolveProjectPath(decodedPathname.slice(1));
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));