meno-core 1.0.47 → 1.0.48

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 (60) hide show
  1. package/build-astro.ts +2 -2
  2. package/dist/build-static.js +7 -7
  3. package/dist/chunks/{chunk-FED5MME6.js → chunk-3FHJUHAS.js} +5 -4
  4. package/dist/chunks/chunk-3FHJUHAS.js.map +7 -0
  5. package/dist/chunks/{chunk-XSWR3QLI.js → chunk-B2RTLDXY.js} +130 -130
  6. package/dist/chunks/chunk-B2RTLDXY.js.map +7 -0
  7. package/dist/chunks/{chunk-ZTKHJQ2Z.js → chunk-BJRKEPMP.js} +2 -2
  8. package/dist/chunks/{chunk-LJFB5EBT.js → chunk-D5E3OKSL.js} +5 -5
  9. package/dist/chunks/{chunk-KITQJYZV.js → chunk-EK4KESLU.js} +33 -3
  10. package/dist/chunks/chunk-EK4KESLU.js.map +7 -0
  11. package/dist/chunks/{chunk-47UNLQUU.js → chunk-NKUV77SR.js} +43 -10
  12. package/dist/chunks/chunk-NKUV77SR.js.map +7 -0
  13. package/dist/chunks/{chunk-BCLGRZ3U.js → chunk-NP76N4HQ.js} +2 -2
  14. package/dist/chunks/{chunk-IF3RATBY.js → chunk-RQSTH2BS.js} +2 -2
  15. package/dist/chunks/{chunk-FGUZOYJX.js → chunk-TPQ7APVQ.js} +23 -75
  16. package/dist/chunks/chunk-TPQ7APVQ.js.map +7 -0
  17. package/dist/chunks/{configService-DYCUEURL.js → configService-IGJEC3MC.js} +3 -3
  18. package/dist/entries/server-router.js +8 -8
  19. package/dist/lib/client/index.js +13 -3
  20. package/dist/lib/client/index.js.map +2 -2
  21. package/dist/lib/server/index.js +1737 -296
  22. package/dist/lib/server/index.js.map +4 -4
  23. package/dist/lib/shared/index.js +8 -4
  24. package/dist/lib/shared/index.js.map +1 -1
  25. package/lib/client/core/ComponentBuilder.test.ts +17 -0
  26. package/lib/client/core/ComponentBuilder.ts +17 -0
  27. package/lib/server/index.ts +1 -1
  28. package/lib/server/jsonLoader.test.ts +0 -17
  29. package/lib/server/jsonLoader.ts +0 -81
  30. package/lib/server/routes/api/variables.ts +4 -2
  31. package/lib/server/ssr/htmlGenerator.test.ts +1 -2
  32. package/lib/server/ssr/htmlGenerator.ts +2 -2
  33. package/lib/server/ssr/ssrRenderer.test.ts +56 -1
  34. package/lib/server/ssr/ssrRenderer.ts +34 -28
  35. package/lib/server/utils/jsonLineMapper.test.ts +53 -1
  36. package/lib/server/utils/jsonLineMapper.ts +43 -3
  37. package/lib/server/webflow/buildWebflow.ts +343 -123
  38. package/lib/server/webflow/index.ts +1 -0
  39. package/lib/server/webflow/nodeToWebflow.test.ts +3170 -0
  40. package/lib/server/webflow/nodeToWebflow.ts +2141 -129
  41. package/lib/server/webflow/styleMapper.test.ts +389 -0
  42. package/lib/server/webflow/styleMapper.ts +517 -63
  43. package/lib/server/webflow/templateWrapper.ts +49 -0
  44. package/lib/server/webflow/types.ts +218 -18
  45. package/lib/shared/elementClassName.test.ts +15 -0
  46. package/lib/shared/elementClassName.ts +7 -3
  47. package/lib/shared/registry/nodeTypes/ListNodeType.ts +1 -1
  48. package/lib/shared/types/index.ts +1 -0
  49. package/lib/shared/types/variables.ts +37 -0
  50. package/package.json +1 -1
  51. package/dist/chunks/chunk-47UNLQUU.js.map +0 -7
  52. package/dist/chunks/chunk-FED5MME6.js.map +0 -7
  53. package/dist/chunks/chunk-FGUZOYJX.js.map +0 -7
  54. package/dist/chunks/chunk-KITQJYZV.js.map +0 -7
  55. package/dist/chunks/chunk-XSWR3QLI.js.map +0 -7
  56. /package/dist/chunks/{chunk-ZTKHJQ2Z.js.map → chunk-BJRKEPMP.js.map} +0 -0
  57. /package/dist/chunks/{chunk-LJFB5EBT.js.map → chunk-D5E3OKSL.js.map} +0 -0
  58. /package/dist/chunks/{chunk-BCLGRZ3U.js.map → chunk-NP76N4HQ.js.map} +0 -0
  59. /package/dist/chunks/{chunk-IF3RATBY.js.map → chunk-RQSTH2BS.js.map} +0 -0
  60. /package/dist/chunks/{configService-DYCUEURL.js.map → configService-IGJEC3MC.js.map} +0 -0
package/build-astro.ts CHANGED
@@ -32,7 +32,7 @@ import { generateThemeColorVariablesCSS, generateVariablesCSS } from "./lib/serv
32
32
  import { colorService } from "./lib/server/services/ColorService";
33
33
  import { variableService } from "./lib/server/services/VariableService";
34
34
  import { configService } from "./lib/server/services/configService";
35
- import { loadBreakpointConfig, loadResponsiveScalesConfig, loadIconsConfig } from "./lib/server/jsonLoader";
35
+ import { loadBreakpointConfig, loadIconsConfig } from "./lib/server/jsonLoader";
36
36
  import type { InteractiveStyles } from "./lib/shared/types/styles";
37
37
  import { collectComponentLibraries, filterLibrariesByContext, mergeLibraries, generateLibraryTags } from "./lib/shared/libraryLoader";
38
38
  import { migrateTemplatesDirectory } from "./lib/server/migrateTemplates";
@@ -322,10 +322,10 @@ export async function buildAstroProject(
322
322
  const themeConfig = await colorService.loadThemeConfig();
323
323
  const variablesConfig = await variableService.loadConfig();
324
324
  const breakpoints = await loadBreakpointConfig();
325
- const responsiveScales = await loadResponsiveScalesConfig();
326
325
 
327
326
  // Libraries (global + component)
328
327
  await configService.load();
328
+ const responsiveScales = configService.getResponsiveScales();
329
329
  const globalLibraries = configService.getLibraries();
330
330
  const componentLibraries = collectComponentLibraries(globalComponents);
331
331
 
@@ -9,15 +9,15 @@ import {
9
9
  hashContent,
10
10
  injectTrackingScript,
11
11
  isCMSPage
12
- } from "./chunks/chunk-LJFB5EBT.js";
13
- import "./chunks/chunk-FGUZOYJX.js";
14
- import "./chunks/chunk-ZTKHJQ2Z.js";
12
+ } from "./chunks/chunk-D5E3OKSL.js";
13
+ import "./chunks/chunk-TPQ7APVQ.js";
14
+ import "./chunks/chunk-BJRKEPMP.js";
15
15
  import "./chunks/chunk-I7YIGZXT.js";
16
16
  import "./chunks/chunk-WQFG7PAH.js";
17
- import "./chunks/chunk-KITQJYZV.js";
18
- import "./chunks/chunk-BCLGRZ3U.js";
19
- import "./chunks/chunk-FED5MME6.js";
20
- import "./chunks/chunk-XSWR3QLI.js";
17
+ import "./chunks/chunk-EK4KESLU.js";
18
+ import "./chunks/chunk-NP76N4HQ.js";
19
+ import "./chunks/chunk-3FHJUHAS.js";
20
+ import "./chunks/chunk-B2RTLDXY.js";
21
21
  import "./chunks/chunk-UB44F4Z2.js";
22
22
  import "./chunks/chunk-2QK6U5UK.js";
23
23
  import "./chunks/chunk-KSBZ2L7C.js";
@@ -11,7 +11,7 @@ import {
11
11
  resolveI18nValue,
12
12
  scalePropertyValue,
13
13
  shouldConvertProperty
14
- } from "./chunk-XSWR3QLI.js";
14
+ } from "./chunk-B2RTLDXY.js";
15
15
  import {
16
16
  isTiptapDocument,
17
17
  tiptapToHtml
@@ -1536,7 +1536,7 @@ var init_ListNodeType = __esm({
1536
1536
  children: []
1537
1537
  },
1538
1538
  treeDisplay: {
1539
- icon: "HTML_ELEMENT",
1539
+ icon: "ARRAY",
1540
1540
  getLabel: (node) => {
1541
1541
  const listNode = node;
1542
1542
  const sourceType = listNode.sourceType || "prop";
@@ -3648,7 +3648,7 @@ function shortHash(input) {
3648
3648
  for (let i = 0; i < input.length; i++) {
3649
3649
  hash = (hash << 5) + hash ^ input.charCodeAt(i);
3650
3650
  }
3651
- return Math.abs(hash).toString(36).slice(0, 5);
3651
+ return Math.abs(hash).toString(36).slice(-5);
3652
3652
  }
3653
3653
  function sanitizeName(name) {
3654
3654
  return name.toLowerCase().replace(/[^a-z0-9_-]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "");
@@ -4789,6 +4789,7 @@ export {
4789
4789
  pathsEqual,
4790
4790
  convertPagePathToComponentPath,
4791
4791
  convertComponentPathToPagePath,
4792
+ shortHash,
4792
4793
  generateElementClassName,
4793
4794
  isElementClassName,
4794
4795
  parseElementClassName,
@@ -4810,4 +4811,4 @@ export {
4810
4811
  generateInteractiveCSS,
4811
4812
  generateAllInteractiveCSS
4812
4813
  };
4813
- //# sourceMappingURL=chunk-FED5MME6.js.map
4814
+ //# sourceMappingURL=chunk-3FHJUHAS.js.map