meno-core 1.0.46 → 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.
- package/build-astro.ts +13 -77
- package/dist/build-static.js +7 -7
- package/dist/chunks/{chunk-FED5MME6.js → chunk-3FHJUHAS.js} +5 -4
- package/dist/chunks/chunk-3FHJUHAS.js.map +7 -0
- package/dist/chunks/{chunk-XSWR3QLI.js → chunk-B2RTLDXY.js} +130 -130
- package/dist/chunks/chunk-B2RTLDXY.js.map +7 -0
- package/dist/chunks/{chunk-ZTKHJQ2Z.js → chunk-BJRKEPMP.js} +2 -2
- package/dist/chunks/{chunk-ORN7S4AP.js → chunk-D5E3OKSL.js} +5 -5
- package/dist/chunks/{chunk-KITQJYZV.js → chunk-EK4KESLU.js} +33 -3
- package/dist/chunks/chunk-EK4KESLU.js.map +7 -0
- package/dist/chunks/{chunk-C6U5T5S5.js → chunk-NKUV77SR.js} +43 -10
- package/dist/chunks/chunk-NKUV77SR.js.map +7 -0
- package/dist/chunks/{chunk-ZWYDT3QJ.js → chunk-NP76N4HQ.js} +4 -4
- package/dist/chunks/{chunk-ZWYDT3QJ.js.map → chunk-NP76N4HQ.js.map} +2 -2
- package/dist/chunks/{chunk-IF3RATBY.js → chunk-RQSTH2BS.js} +2 -2
- package/dist/chunks/{chunk-77ZB6353.js → chunk-TPQ7APVQ.js} +42 -86
- package/dist/chunks/chunk-TPQ7APVQ.js.map +7 -0
- package/dist/chunks/{configService-DYCUEURL.js → configService-IGJEC3MC.js} +3 -3
- package/dist/entries/server-router.js +8 -8
- package/dist/lib/client/index.js +16 -4
- package/dist/lib/client/index.js.map +2 -2
- package/dist/lib/server/index.js +1803 -383
- package/dist/lib/server/index.js.map +4 -4
- package/dist/lib/shared/index.js +8 -4
- package/dist/lib/shared/index.js.map +1 -1
- package/lib/client/core/ComponentBuilder.test.ts +38 -0
- package/lib/client/core/ComponentBuilder.ts +25 -1
- package/lib/server/astro/astroEmitHelpers.ts +5 -0
- package/lib/server/astro/cmsPageEmitter.ts +15 -2
- package/lib/server/astro/componentEmitter.ts +13 -5
- package/lib/server/astro/nodeToAstro.ts +23 -9
- package/lib/server/astro/pageEmitter.ts +15 -2
- package/lib/server/index.ts +1 -1
- package/lib/server/jsonLoader.test.ts +0 -17
- package/lib/server/jsonLoader.ts +0 -81
- package/lib/server/routes/api/variables.ts +4 -2
- package/lib/server/ssr/htmlGenerator.test.ts +4 -4
- package/lib/server/ssr/htmlGenerator.ts +7 -2
- package/lib/server/ssr/imageMetadata.ts +15 -9
- package/lib/server/ssr/ssrRenderer.test.ts +103 -1
- package/lib/server/ssr/ssrRenderer.ts +41 -35
- package/lib/server/utils/jsonLineMapper.test.ts +53 -1
- package/lib/server/utils/jsonLineMapper.ts +43 -3
- package/lib/server/webflow/buildWebflow.ts +343 -123
- package/lib/server/webflow/index.ts +1 -0
- package/lib/server/webflow/nodeToWebflow.test.ts +3170 -0
- package/lib/server/webflow/nodeToWebflow.ts +2141 -129
- package/lib/server/webflow/styleMapper.test.ts +389 -0
- package/lib/server/webflow/styleMapper.ts +517 -63
- package/lib/server/webflow/templateWrapper.ts +49 -0
- package/lib/server/webflow/types.ts +218 -18
- package/lib/shared/elementClassName.test.ts +15 -0
- package/lib/shared/elementClassName.ts +7 -3
- package/lib/shared/registry/nodeTypes/ListNodeType.ts +1 -1
- package/lib/shared/styleNodeUtils.test.ts +47 -1
- package/lib/shared/styleNodeUtils.ts +7 -7
- package/lib/shared/types/index.ts +1 -0
- package/lib/shared/types/variables.ts +37 -0
- package/package.json +1 -1
- package/dist/chunks/chunk-77ZB6353.js.map +0 -7
- package/dist/chunks/chunk-C6U5T5S5.js.map +0 -7
- package/dist/chunks/chunk-FED5MME6.js.map +0 -7
- package/dist/chunks/chunk-KITQJYZV.js.map +0 -7
- package/dist/chunks/chunk-XSWR3QLI.js.map +0 -7
- /package/dist/chunks/{chunk-ZTKHJQ2Z.js.map → chunk-BJRKEPMP.js.map} +0 -0
- /package/dist/chunks/{chunk-ORN7S4AP.js.map → chunk-D5E3OKSL.js.map} +0 -0
- /package/dist/chunks/{chunk-IF3RATBY.js.map → chunk-RQSTH2BS.js.map} +0 -0
- /package/dist/chunks/{configService-DYCUEURL.js.map → configService-IGJEC3MC.js.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigService,
|
|
3
3
|
configService
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BJRKEPMP.js";
|
|
5
5
|
import "./chunk-I7YIGZXT.js";
|
|
6
6
|
import "./chunk-WQFG7PAH.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-B2RTLDXY.js";
|
|
8
8
|
import "./chunk-KSBZ2L7C.js";
|
|
9
9
|
export {
|
|
10
10
|
ConfigService,
|
|
11
11
|
configService
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=configService-
|
|
13
|
+
//# sourceMappingURL=configService-IGJEC3MC.js.map
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
PageService,
|
|
7
7
|
WebSocketManager,
|
|
8
8
|
createServer
|
|
9
|
-
} from "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-NKUV77SR.js";
|
|
10
10
|
import {
|
|
11
11
|
CMSService,
|
|
12
12
|
FileSystemCMSProvider,
|
|
13
13
|
loadProjectConfig,
|
|
14
14
|
migrateTemplatesDirectory
|
|
15
|
-
} from "../chunks/chunk-
|
|
15
|
+
} from "../chunks/chunk-TPQ7APVQ.js";
|
|
16
16
|
import {
|
|
17
17
|
configService
|
|
18
|
-
} from "../chunks/chunk-
|
|
18
|
+
} from "../chunks/chunk-BJRKEPMP.js";
|
|
19
19
|
import {
|
|
20
20
|
projectPaths
|
|
21
21
|
} from "../chunks/chunk-I7YIGZXT.js";
|
|
22
22
|
import "../chunks/chunk-WQFG7PAH.js";
|
|
23
|
-
import "../chunks/chunk-
|
|
24
|
-
import "../chunks/chunk-
|
|
25
|
-
import "../chunks/chunk-
|
|
26
|
-
import "../chunks/chunk-
|
|
27
|
-
import "../chunks/chunk-
|
|
23
|
+
import "../chunks/chunk-RQSTH2BS.js";
|
|
24
|
+
import "../chunks/chunk-EK4KESLU.js";
|
|
25
|
+
import "../chunks/chunk-NP76N4HQ.js";
|
|
26
|
+
import "../chunks/chunk-3FHJUHAS.js";
|
|
27
|
+
import "../chunks/chunk-B2RTLDXY.js";
|
|
28
28
|
import "../chunks/chunk-UB44F4Z2.js";
|
|
29
29
|
import "../chunks/chunk-2QK6U5UK.js";
|
|
30
30
|
import "../chunks/chunk-KSBZ2L7C.js";
|
package/dist/lib/client/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveLinkMapping,
|
|
13
13
|
resolveStyleMapping,
|
|
14
14
|
skipEmptyTemplateAttributes
|
|
15
|
-
} from "../../chunks/chunk-
|
|
15
|
+
} from "../../chunks/chunk-NP76N4HQ.js";
|
|
16
16
|
import {
|
|
17
17
|
filterCSSProperties,
|
|
18
18
|
logNetworkError,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
singularize,
|
|
60
60
|
sortClassesByPropertyOrder,
|
|
61
61
|
validatePageData
|
|
62
|
-
} from "../../chunks/chunk-
|
|
62
|
+
} from "../../chunks/chunk-3FHJUHAS.js";
|
|
63
63
|
import {
|
|
64
64
|
DEFAULT_BREAKPOINTS,
|
|
65
65
|
DEFAULT_I18N_CONFIG,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
parseLocaleFromPath,
|
|
72
72
|
resolveI18nValue,
|
|
73
73
|
setStoredLocale
|
|
74
|
-
} from "../../chunks/chunk-
|
|
74
|
+
} from "../../chunks/chunk-B2RTLDXY.js";
|
|
75
75
|
import {
|
|
76
76
|
isTiptapDocument,
|
|
77
77
|
tiptapToHtml
|
|
@@ -1619,6 +1619,7 @@ function buildLink(props, children, ctx, deps) {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
|
|
1621
1621
|
// lib/client/core/ComponentBuilder.ts
|
|
1622
|
+
var DOCUMENT_STRUCTURE_TAGS = /* @__PURE__ */ new Set(["body", "html", "head"]);
|
|
1622
1623
|
var ComponentBuilder = class {
|
|
1623
1624
|
componentRegistry;
|
|
1624
1625
|
elementRegistry;
|
|
@@ -1699,6 +1700,9 @@ var ComponentBuilder = class {
|
|
|
1699
1700
|
const i18nResolver = effectiveLocale ? (value) => resolveI18nValue(value, effectiveLocale, config) : void 0;
|
|
1700
1701
|
resolved = processItemTemplate(resolved, effectiveTemplateContext, i18nResolver);
|
|
1701
1702
|
}
|
|
1703
|
+
if (resolved.includes("{{") && resolved.includes("}}")) {
|
|
1704
|
+
return false;
|
|
1705
|
+
}
|
|
1702
1706
|
return Boolean(resolved) && resolved !== "false" && resolved !== "0" && resolved !== "";
|
|
1703
1707
|
}
|
|
1704
1708
|
return true;
|
|
@@ -2152,6 +2156,13 @@ var ComponentBuilder = class {
|
|
|
2152
2156
|
mergeAttributes(props, node, ctx) {
|
|
2153
2157
|
let extractedAttributes = extractAttributesFromNode(node);
|
|
2154
2158
|
const originalAttributes = { ...extractedAttributes };
|
|
2159
|
+
if (ctx.cmsContext && Object.keys(extractedAttributes).length > 0) {
|
|
2160
|
+
extractedAttributes = processCMSPropsTemplate(
|
|
2161
|
+
extractedAttributes,
|
|
2162
|
+
ctx.cmsContext,
|
|
2163
|
+
ctx.cmsLocale || ctx.locale
|
|
2164
|
+
);
|
|
2165
|
+
}
|
|
2155
2166
|
const effectiveItemContext = ctx.templateContext || ctx.itemContext;
|
|
2156
2167
|
if (effectiveItemContext && Object.keys(extractedAttributes).length > 0) {
|
|
2157
2168
|
const effectiveLocale = ctx.cmsLocale || ctx.locale;
|
|
@@ -2295,7 +2306,8 @@ var ComponentBuilder = class {
|
|
|
2295
2306
|
componentResolvedProps = null,
|
|
2296
2307
|
isSlotContent: isSlotContent2 = false
|
|
2297
2308
|
} = options;
|
|
2298
|
-
const
|
|
2309
|
+
const requestedTag = (tag || "div").toLowerCase();
|
|
2310
|
+
const finalTag = DOCUMENT_STRUCTURE_TAGS.has(requestedTag) ? "div" : tag || "div";
|
|
2299
2311
|
const effectiveParentComponentName = this.getEffectiveParentComponentName(componentContext, parentComponentName);
|
|
2300
2312
|
const { __componentProps, ...customPropsForDOM } = customProps || {};
|
|
2301
2313
|
const isComponentRoot = !!(customProps && "__componentProps" in customProps);
|