meno-core 1.0.47 → 1.0.49
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 +2 -2
- package/dist/build-static.js +7 -7
- package/dist/chunks/{chunk-UUA5LEWF.js → chunk-6IVUG7FY.js} +138 -7
- package/dist/chunks/chunk-6IVUG7FY.js.map +7 -0
- package/dist/chunks/{chunk-XSWR3QLI.js → chunk-AZQYF6KE.js} +261 -130
- package/dist/chunks/chunk-AZQYF6KE.js.map +7 -0
- package/dist/chunks/{chunk-47UNLQUU.js → chunk-CHD5UCFF.js} +57 -12
- package/dist/chunks/chunk-CHD5UCFF.js.map +7 -0
- package/dist/chunks/{chunk-FGUZOYJX.js → chunk-EQYDSPBB.js} +435 -131
- package/dist/chunks/chunk-EQYDSPBB.js.map +7 -0
- package/dist/chunks/{chunk-IF3RATBY.js → chunk-H4JSCDNW.js} +2 -2
- package/dist/chunks/{chunk-KITQJYZV.js → chunk-J23ZX5AP.js} +40 -4
- package/dist/chunks/chunk-J23ZX5AP.js.map +7 -0
- package/dist/chunks/{chunk-LJFB5EBT.js → chunk-JER5NQVM.js} +5 -5
- package/dist/chunks/{chunk-ZTKHJQ2Z.js → chunk-KPU2XHOS.js} +5 -2
- package/dist/chunks/{chunk-ZTKHJQ2Z.js.map → chunk-KPU2XHOS.js.map} +2 -2
- package/dist/chunks/{chunk-BCLGRZ3U.js → chunk-LKAGAQ3M.js} +2 -2
- package/dist/chunks/{chunk-FED5MME6.js → chunk-S2CX6HFM.js} +262 -26
- package/dist/chunks/chunk-S2CX6HFM.js.map +7 -0
- package/dist/chunks/{configService-DYCUEURL.js → configService-CCA6AIDI.js} +3 -3
- package/dist/entries/server-router.js +9 -9
- package/dist/entries/server-router.js.map +2 -2
- package/dist/lib/client/index.js +64 -20
- package/dist/lib/client/index.js.map +3 -3
- package/dist/lib/server/index.js +1737 -296
- package/dist/lib/server/index.js.map +4 -4
- package/dist/lib/shared/index.js +50 -10
- package/dist/lib/shared/index.js.map +3 -3
- package/entries/server-router.tsx +6 -2
- package/lib/client/core/ComponentBuilder.test.ts +17 -0
- package/lib/client/core/ComponentBuilder.ts +25 -1
- package/lib/client/core/builders/embedBuilder.ts +15 -2
- package/lib/client/core/builders/linkNodeBuilder.ts +15 -2
- package/lib/client/core/builders/localeListBuilder.ts +17 -6
- package/lib/client/styles/StyleInjector.ts +3 -2
- package/lib/client/theme.ts +4 -4
- package/lib/server/cssGenerator.test.ts +64 -1
- package/lib/server/cssGenerator.ts +48 -9
- 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/providers/fileSystemCMSProvider.test.ts +163 -0
- package/lib/server/providers/fileSystemCMSProvider.ts +200 -11
- package/lib/server/routes/api/variables.ts +4 -2
- package/lib/server/routes/index.ts +1 -1
- package/lib/server/routes/pages.ts +23 -1
- package/lib/server/services/cmsService.test.ts +246 -0
- package/lib/server/services/cmsService.ts +122 -5
- package/lib/server/services/configService.ts +5 -0
- package/lib/server/ssr/attributeBuilder.ts +41 -0
- package/lib/server/ssr/htmlGenerator.test.ts +114 -2
- package/lib/server/ssr/htmlGenerator.ts +53 -6
- package/lib/server/ssr/liveReloadIntegration.test.ts +209 -0
- package/lib/server/ssr/ssrRenderer.test.ts +362 -1
- package/lib/server/ssr/ssrRenderer.ts +216 -72
- 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/cssGeneration.test.ts +267 -1
- package/lib/shared/cssGeneration.ts +240 -18
- package/lib/shared/cssProperties.test.ts +247 -1
- package/lib/shared/cssProperties.ts +196 -6
- package/lib/shared/elementClassName.test.ts +15 -0
- package/lib/shared/elementClassName.ts +7 -3
- package/lib/shared/interfaces/contentProvider.ts +39 -6
- package/lib/shared/pathSecurity.ts +16 -0
- package/lib/shared/registry/nodeTypes/ListNodeType.ts +1 -1
- package/lib/shared/responsiveScaling.test.ts +143 -0
- package/lib/shared/responsiveScaling.ts +253 -2
- package/lib/shared/themeDefaults.test.ts +3 -3
- package/lib/shared/themeDefaults.ts +3 -3
- package/lib/shared/types/cms.ts +28 -3
- package/lib/shared/types/index.ts +2 -0
- package/lib/shared/types/variables.ts +37 -0
- package/lib/shared/utilityClassConfig.ts +3 -0
- package/lib/shared/utilityClassMapper.test.ts +123 -0
- package/lib/shared/utilityClassMapper.ts +179 -8
- package/lib/shared/validation/schemas.ts +15 -1
- package/lib/shared/validation/validators.ts +26 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-47UNLQUU.js.map +0 -7
- package/dist/chunks/chunk-FED5MME6.js.map +0 -7
- package/dist/chunks/chunk-FGUZOYJX.js.map +0 -7
- package/dist/chunks/chunk-KITQJYZV.js.map +0 -7
- package/dist/chunks/chunk-UUA5LEWF.js.map +0 -7
- package/dist/chunks/chunk-XSWR3QLI.js.map +0 -7
- /package/dist/chunks/{chunk-IF3RATBY.js.map → chunk-H4JSCDNW.js.map} +0 -0
- /package/dist/chunks/{chunk-LJFB5EBT.js.map → chunk-JER5NQVM.js.map} +0 -0
- /package/dist/chunks/{chunk-BCLGRZ3U.js.map → chunk-LKAGAQ3M.js.map} +0 -0
- /package/dist/chunks/{configService-DYCUEURL.js.map → configService-CCA6AIDI.js.map} +0 -0
package/dist/lib/shared/index.js
CHANGED
|
@@ -3,13 +3,15 @@ import {
|
|
|
3
3
|
generateFilenameFromItem,
|
|
4
4
|
generateUniqueFilename,
|
|
5
5
|
slugify
|
|
6
|
-
} from "../../chunks/chunk-
|
|
6
|
+
} from "../../chunks/chunk-H4JSCDNW.js";
|
|
7
7
|
import {
|
|
8
|
+
CMS_DRAFT_SUFFIX,
|
|
8
9
|
PathTraversalError,
|
|
9
10
|
SAFE_IDENTIFIER_REGEX,
|
|
10
11
|
VARIABLE_GROUPS,
|
|
11
12
|
VARIABLE_GROUP_VALUES,
|
|
12
13
|
VARIABLE_TYPES,
|
|
14
|
+
VARIABLE_TYPE_VALUES,
|
|
13
15
|
createTypeSafetyError,
|
|
14
16
|
createValidationError,
|
|
15
17
|
generateShortCssVar,
|
|
@@ -19,24 +21,31 @@ import {
|
|
|
19
21
|
isBasePropDefinition,
|
|
20
22
|
isListPropDefinition,
|
|
21
23
|
isPathWithinRoot,
|
|
24
|
+
isReservedDraftFilename,
|
|
22
25
|
isSafePathSegment,
|
|
23
26
|
isValidIdentifier,
|
|
24
27
|
resolvePaletteColor,
|
|
25
28
|
resolveSafePath
|
|
26
|
-
} from "../../chunks/chunk-
|
|
29
|
+
} from "../../chunks/chunk-J23ZX5AP.js";
|
|
27
30
|
import {
|
|
28
31
|
CSS_PROPERTIES,
|
|
29
32
|
CSS_PROPERTIES_DEFINITION,
|
|
30
33
|
CSS_PROPERTY_GROUPS,
|
|
34
|
+
UNITLESS_PROPERTIES,
|
|
35
|
+
VISUAL_MODE_PROPERTIES,
|
|
36
|
+
VISUAL_MODE_RULES,
|
|
37
|
+
appendsPxByDefault,
|
|
31
38
|
filterCSSProperties,
|
|
32
39
|
filterPropertyValues,
|
|
33
40
|
getPropertyGroup,
|
|
34
41
|
getPropertyType,
|
|
35
42
|
getPropertyValues,
|
|
43
|
+
isVisualModeProperty,
|
|
44
|
+
isVisualModeRowVisible,
|
|
36
45
|
logNetworkError,
|
|
37
46
|
logRuntimeError,
|
|
38
47
|
setErrorHandler
|
|
39
|
-
} from "../../chunks/chunk-
|
|
48
|
+
} from "../../chunks/chunk-6IVUG7FY.js";
|
|
40
49
|
import {
|
|
41
50
|
BaseComponentRegistry,
|
|
42
51
|
BaseNodeTypeRegistry,
|
|
@@ -79,6 +88,7 @@ import {
|
|
|
79
88
|
VOID_ELEMENTS,
|
|
80
89
|
addItemUrl,
|
|
81
90
|
addItemUrls,
|
|
91
|
+
applyContainerPattern,
|
|
82
92
|
booleanField,
|
|
83
93
|
breakpointToViewportWidth,
|
|
84
94
|
buildItemUrl,
|
|
@@ -188,6 +198,7 @@ import {
|
|
|
188
198
|
selectField,
|
|
189
199
|
serializeRegistry,
|
|
190
200
|
setGlobalTemplateContext,
|
|
201
|
+
shortHash,
|
|
191
202
|
singularize,
|
|
192
203
|
sortClassesByPropertyOrder,
|
|
193
204
|
stringToPath,
|
|
@@ -207,12 +218,19 @@ import {
|
|
|
207
218
|
validatePath,
|
|
208
219
|
validatePropDefinition,
|
|
209
220
|
validateStructuredComponentDefinition
|
|
210
|
-
} from "../../chunks/chunk-
|
|
221
|
+
} from "../../chunks/chunk-S2CX6HFM.js";
|
|
211
222
|
import {
|
|
212
223
|
DEFAULT_BREAKPOINTS,
|
|
224
|
+
DEFAULT_FLUID_RANGE,
|
|
213
225
|
DEFAULT_I18N_CONFIG,
|
|
214
226
|
DEFAULT_RESPONSIVE_SCALES,
|
|
227
|
+
DEFAULT_SITE_MARGIN,
|
|
228
|
+
SCALABLE_CSS_PROPERTIES,
|
|
229
|
+
buildFluidClamp,
|
|
230
|
+
buildFluidClampWithExplicitMin,
|
|
231
|
+
buildFluidPropertyValue,
|
|
215
232
|
buildLocalizedPath,
|
|
233
|
+
buildSiteMarginClamp,
|
|
216
234
|
calculateResponsiveValue,
|
|
217
235
|
clearStoredLocale,
|
|
218
236
|
extractLocaleFromPath,
|
|
@@ -225,6 +243,7 @@ import {
|
|
|
225
243
|
getPreviewPointValues,
|
|
226
244
|
getResponsiveValues,
|
|
227
245
|
getScaleMultiplier,
|
|
246
|
+
getSmallestBreakpointName,
|
|
228
247
|
getStoredLocale,
|
|
229
248
|
isI18nValue,
|
|
230
249
|
isValidLocaleCode,
|
|
@@ -232,6 +251,7 @@ import {
|
|
|
232
251
|
normalizeBreakpointConfig,
|
|
233
252
|
parseLocaleFromPath,
|
|
234
253
|
parseMultiValue,
|
|
254
|
+
parseValue,
|
|
235
255
|
resolveI18nInProps,
|
|
236
256
|
resolveI18nValue,
|
|
237
257
|
resolveTranslation,
|
|
@@ -239,7 +259,7 @@ import {
|
|
|
239
259
|
scalePropertyValue,
|
|
240
260
|
scaleValue,
|
|
241
261
|
setStoredLocale
|
|
242
|
-
} from "../../chunks/chunk-
|
|
262
|
+
} from "../../chunks/chunk-AZQYF6KE.js";
|
|
243
263
|
import {
|
|
244
264
|
RICH_TEXT_ALLOWED_ATTRS,
|
|
245
265
|
RICH_TEXT_ALLOWED_TAGS,
|
|
@@ -764,9 +784,9 @@ var DEFAULT_PROPS_PANEL_COLORS = {
|
|
|
764
784
|
backgroundTertiary: "#252525",
|
|
765
785
|
border: "#333333",
|
|
766
786
|
borderSecondary: "#444444",
|
|
767
|
-
text: "#
|
|
787
|
+
text: "#ebebeb",
|
|
768
788
|
textSecondary: "#cccccc",
|
|
769
|
-
textMuted: "#
|
|
789
|
+
textMuted: "#b0b0b0",
|
|
770
790
|
codeString: "#ffffff",
|
|
771
791
|
codeNumber: "#b5cea8",
|
|
772
792
|
codeKey: "#9cdcfe",
|
|
@@ -789,7 +809,7 @@ var LIGHT_PROPS_PANEL_COLORS = {
|
|
|
789
809
|
borderSecondary: "#d0d0d0",
|
|
790
810
|
text: "#1a1a1a",
|
|
791
811
|
textSecondary: "#333333",
|
|
792
|
-
textMuted: "#
|
|
812
|
+
textMuted: "#525a63",
|
|
793
813
|
codeString: "#a31515",
|
|
794
814
|
codeNumber: "#098658",
|
|
795
815
|
codeKey: "#0451a5",
|
|
@@ -1151,7 +1171,7 @@ function parseFilterLine(line) {
|
|
|
1151
1171
|
if (!match) return null;
|
|
1152
1172
|
const [, field, op, rawValue] = match;
|
|
1153
1173
|
const operator = normalizeOperator(op);
|
|
1154
|
-
const value =
|
|
1174
|
+
const value = parseValue2(rawValue.trim(), operator);
|
|
1155
1175
|
if (operator === "eq") {
|
|
1156
1176
|
return { field, value };
|
|
1157
1177
|
}
|
|
@@ -1180,7 +1200,7 @@ function normalizeOperator(op) {
|
|
|
1180
1200
|
};
|
|
1181
1201
|
return map[normalized] || "eq";
|
|
1182
1202
|
}
|
|
1183
|
-
function
|
|
1203
|
+
function parseValue2(raw, operator) {
|
|
1184
1204
|
if (raw.startsWith("{{") && raw.endsWith("}}")) {
|
|
1185
1205
|
return raw;
|
|
1186
1206
|
}
|
|
@@ -1246,6 +1266,7 @@ export {
|
|
|
1246
1266
|
CMSItemSchema,
|
|
1247
1267
|
CMSSchemaSchema,
|
|
1248
1268
|
CMS_COLLECTION_ID_REGEX,
|
|
1269
|
+
CMS_DRAFT_SUFFIX,
|
|
1249
1270
|
CSS_NAMED_COLORS,
|
|
1250
1271
|
CSS_PROPERTIES,
|
|
1251
1272
|
CSS_PROPERTIES_DEFINITION,
|
|
@@ -1257,6 +1278,7 @@ export {
|
|
|
1257
1278
|
ComponentNodeSchema,
|
|
1258
1279
|
DEFAULT_BREAKPOINTS,
|
|
1259
1280
|
DEFAULT_COMPONENT_TYPES,
|
|
1281
|
+
DEFAULT_FLUID_RANGE,
|
|
1260
1282
|
DEFAULT_I18N_CONFIG,
|
|
1261
1283
|
DEFAULT_ICON_COLOR,
|
|
1262
1284
|
DEFAULT_INPUT_STYLE,
|
|
@@ -1264,6 +1286,7 @@ export {
|
|
|
1264
1286
|
DEFAULT_PROPS_PANEL_COLORS,
|
|
1265
1287
|
DEFAULT_PROPS_PANEL_SPACING,
|
|
1266
1288
|
DEFAULT_RESPONSIVE_SCALES,
|
|
1289
|
+
DEFAULT_SITE_MARGIN,
|
|
1267
1290
|
DEFAULT_TEXTAREA_STYLE,
|
|
1268
1291
|
DEFAULT_TIMEOUT,
|
|
1269
1292
|
EmbedNodeType,
|
|
@@ -1297,6 +1320,7 @@ export {
|
|
|
1297
1320
|
RegistryManager,
|
|
1298
1321
|
ResponsiveStyleObjectSchema,
|
|
1299
1322
|
SAFE_IDENTIFIER_REGEX,
|
|
1323
|
+
SCALABLE_CSS_PROPERTIES,
|
|
1300
1324
|
SERVER_PORT,
|
|
1301
1325
|
SERVE_PORT,
|
|
1302
1326
|
SPECIAL_PATHS,
|
|
@@ -1309,20 +1333,30 @@ export {
|
|
|
1309
1333
|
StyleValueSchema,
|
|
1310
1334
|
TAB_SWITCH_DELAY_MS,
|
|
1311
1335
|
TREE_SCROLL_DELAY_MS,
|
|
1336
|
+
UNITLESS_PROPERTIES,
|
|
1312
1337
|
VARIABLE_GROUPS,
|
|
1313
1338
|
VARIABLE_GROUP_VALUES,
|
|
1314
1339
|
VARIABLE_TYPES,
|
|
1340
|
+
VARIABLE_TYPE_VALUES,
|
|
1341
|
+
VISUAL_MODE_PROPERTIES,
|
|
1342
|
+
VISUAL_MODE_RULES,
|
|
1315
1343
|
VOID_ELEMENTS,
|
|
1316
1344
|
WEBSOCKET_STATES,
|
|
1317
1345
|
addItemUrl,
|
|
1318
1346
|
addItemUrls,
|
|
1347
|
+
appendsPxByDefault,
|
|
1348
|
+
applyContainerPattern,
|
|
1319
1349
|
booleanField,
|
|
1320
1350
|
breakpointToViewportWidth,
|
|
1321
1351
|
buildComponentTreePaths,
|
|
1352
|
+
buildFluidClamp,
|
|
1353
|
+
buildFluidClampWithExplicitMin,
|
|
1354
|
+
buildFluidPropertyValue,
|
|
1322
1355
|
buildGradientCss,
|
|
1323
1356
|
buildItemUrl,
|
|
1324
1357
|
buildLocalizedPath,
|
|
1325
1358
|
buildParentPaths,
|
|
1359
|
+
buildSiteMarginClamp,
|
|
1326
1360
|
buildTemplateContext,
|
|
1327
1361
|
buildTreePathsWithRendered,
|
|
1328
1362
|
builtInNodeTypes,
|
|
@@ -1401,6 +1435,7 @@ export {
|
|
|
1401
1435
|
getResponsiveValues,
|
|
1402
1436
|
getRootData,
|
|
1403
1437
|
getScaleMultiplier,
|
|
1438
|
+
getSmallestBreakpointName,
|
|
1404
1439
|
getStoredLocale,
|
|
1405
1440
|
getStyleValue,
|
|
1406
1441
|
getTagName,
|
|
@@ -1450,6 +1485,7 @@ export {
|
|
|
1450
1485
|
isNodeType,
|
|
1451
1486
|
isPageDataParent,
|
|
1452
1487
|
isPathWithinRoot,
|
|
1488
|
+
isReservedDraftFilename,
|
|
1453
1489
|
isResponsiveStyle,
|
|
1454
1490
|
isRichTextMarker,
|
|
1455
1491
|
isRootPath,
|
|
@@ -1468,6 +1504,8 @@ export {
|
|
|
1468
1504
|
isValidNodeLocation,
|
|
1469
1505
|
isValidNodeType,
|
|
1470
1506
|
isValidPath,
|
|
1507
|
+
isVisualModeProperty,
|
|
1508
|
+
isVisualModeRowVisible,
|
|
1471
1509
|
isVoidElement,
|
|
1472
1510
|
logNetworkError,
|
|
1473
1511
|
logRuntimeError,
|
|
@@ -1488,6 +1526,7 @@ export {
|
|
|
1488
1526
|
parseLocaleFromPath,
|
|
1489
1527
|
parseMultiValue,
|
|
1490
1528
|
parseSortExpression,
|
|
1529
|
+
parseValue,
|
|
1491
1530
|
pathToLegacyString,
|
|
1492
1531
|
pathToString,
|
|
1493
1532
|
pathsEqual,
|
|
@@ -1524,6 +1563,7 @@ export {
|
|
|
1524
1563
|
setGlobalTemplateContext,
|
|
1525
1564
|
setParentChildren,
|
|
1526
1565
|
setStoredLocale,
|
|
1566
|
+
shortHash,
|
|
1527
1567
|
singularize,
|
|
1528
1568
|
slugify,
|
|
1529
1569
|
sortClassesByPropertyOrder,
|