meno-core 1.0.48 → 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/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-B2RTLDXY.js → chunk-AZQYF6KE.js} +132 -1
- package/dist/chunks/chunk-AZQYF6KE.js.map +7 -0
- package/dist/chunks/{chunk-NKUV77SR.js → chunk-CHD5UCFF.js} +21 -9
- package/dist/chunks/{chunk-NKUV77SR.js.map → chunk-CHD5UCFF.js.map} +2 -2
- package/dist/chunks/{chunk-TPQ7APVQ.js → chunk-EQYDSPBB.js} +418 -62
- package/dist/chunks/chunk-EQYDSPBB.js.map +7 -0
- package/dist/chunks/{chunk-RQSTH2BS.js → chunk-H4JSCDNW.js} +2 -2
- package/dist/chunks/{chunk-EK4KESLU.js → chunk-J23ZX5AP.js} +8 -2
- package/dist/chunks/{chunk-EK4KESLU.js.map → chunk-J23ZX5AP.js.map} +2 -2
- package/dist/chunks/{chunk-D5E3OKSL.js → chunk-JER5NQVM.js} +5 -5
- package/dist/chunks/{chunk-BJRKEPMP.js → chunk-KPU2XHOS.js} +5 -2
- package/dist/chunks/{chunk-BJRKEPMP.js.map → chunk-KPU2XHOS.js.map} +2 -2
- package/dist/chunks/{chunk-NP76N4HQ.js → chunk-LKAGAQ3M.js} +2 -2
- package/dist/chunks/{chunk-3FHJUHAS.js → chunk-S2CX6HFM.js} +260 -25
- package/dist/chunks/chunk-S2CX6HFM.js.map +7 -0
- package/dist/chunks/{configService-IGJEC3MC.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 +54 -20
- package/dist/lib/client/index.js.map +3 -3
- package/dist/lib/server/index.js +9 -9
- package/dist/lib/shared/index.js +46 -10
- package/dist/lib/shared/index.js.map +3 -3
- package/entries/server-router.tsx +6 -2
- package/lib/client/core/ComponentBuilder.ts +8 -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/providers/fileSystemCMSProvider.test.ts +163 -0
- package/lib/server/providers/fileSystemCMSProvider.ts +200 -11
- 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 +113 -0
- package/lib/server/ssr/htmlGenerator.ts +51 -4
- package/lib/server/ssr/liveReloadIntegration.test.ts +209 -0
- package/lib/server/ssr/ssrRenderer.test.ts +306 -0
- package/lib/server/ssr/ssrRenderer.ts +182 -44
- 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/interfaces/contentProvider.ts +39 -6
- package/lib/shared/pathSecurity.ts +16 -0
- 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 +1 -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-3FHJUHAS.js.map +0 -7
- package/dist/chunks/chunk-B2RTLDXY.js.map +0 -7
- package/dist/chunks/chunk-TPQ7APVQ.js.map +0 -7
- package/dist/chunks/chunk-UUA5LEWF.js.map +0 -7
- /package/dist/chunks/{chunk-RQSTH2BS.js.map → chunk-H4JSCDNW.js.map} +0 -0
- /package/dist/chunks/{chunk-D5E3OKSL.js.map → chunk-JER5NQVM.js.map} +0 -0
- /package/dist/chunks/{chunk-NP76N4HQ.js.map → chunk-LKAGAQ3M.js.map} +0 -0
- /package/dist/chunks/{configService-IGJEC3MC.js.map → configService-CCA6AIDI.js.map} +0 -0
package/dist/lib/server/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../../chunks/chunk-4OFZP5NQ.js";
|
|
4
4
|
import {
|
|
5
5
|
buildStaticPages
|
|
6
|
-
} from "../../chunks/chunk-
|
|
6
|
+
} from "../../chunks/chunk-JER5NQVM.js";
|
|
7
7
|
import {
|
|
8
8
|
ComponentService,
|
|
9
9
|
EnumService,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
logResponseTime,
|
|
33
33
|
withErrorHandling,
|
|
34
34
|
withLogging
|
|
35
|
-
} from "../../chunks/chunk-
|
|
35
|
+
} from "../../chunks/chunk-CHD5UCFF.js";
|
|
36
36
|
import {
|
|
37
37
|
CMSService,
|
|
38
38
|
ColorService,
|
|
@@ -83,11 +83,11 @@ import {
|
|
|
83
83
|
styleToString,
|
|
84
84
|
translatePath,
|
|
85
85
|
variableService
|
|
86
|
-
} from "../../chunks/chunk-
|
|
86
|
+
} from "../../chunks/chunk-EQYDSPBB.js";
|
|
87
87
|
import {
|
|
88
88
|
ConfigService,
|
|
89
89
|
configService
|
|
90
|
-
} from "../../chunks/chunk-
|
|
90
|
+
} from "../../chunks/chunk-KPU2XHOS.js";
|
|
91
91
|
import {
|
|
92
92
|
bundleFile,
|
|
93
93
|
createRuntimeServer,
|
|
@@ -116,16 +116,16 @@ import {
|
|
|
116
116
|
spawnProcess,
|
|
117
117
|
writeFile
|
|
118
118
|
} from "../../chunks/chunk-WQFG7PAH.js";
|
|
119
|
-
import "../../chunks/chunk-
|
|
119
|
+
import "../../chunks/chunk-H4JSCDNW.js";
|
|
120
120
|
import {
|
|
121
121
|
resolvePaletteColor
|
|
122
|
-
} from "../../chunks/chunk-
|
|
122
|
+
} from "../../chunks/chunk-J23ZX5AP.js";
|
|
123
123
|
import {
|
|
124
124
|
hasTemplates,
|
|
125
125
|
isHtmlMapping,
|
|
126
126
|
processCodeTemplates,
|
|
127
127
|
resolveHtmlMapping
|
|
128
|
-
} from "../../chunks/chunk-
|
|
128
|
+
} from "../../chunks/chunk-LKAGAQ3M.js";
|
|
129
129
|
import {
|
|
130
130
|
addItemUrl,
|
|
131
131
|
buildTemplateContext,
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
resolvePropsFromDefinition,
|
|
145
145
|
shortHash,
|
|
146
146
|
singularize
|
|
147
|
-
} from "../../chunks/chunk-
|
|
147
|
+
} from "../../chunks/chunk-S2CX6HFM.js";
|
|
148
148
|
import {
|
|
149
149
|
DEFAULT_BREAKPOINTS,
|
|
150
150
|
DEFAULT_I18N_CONFIG,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
resolveI18nValue,
|
|
155
155
|
resolveVariableValueAtBreakpoint,
|
|
156
156
|
scalePropertyValue
|
|
157
|
-
} from "../../chunks/chunk-
|
|
157
|
+
} from "../../chunks/chunk-AZQYF6KE.js";
|
|
158
158
|
import "../../chunks/chunk-UB44F4Z2.js";
|
|
159
159
|
import {
|
|
160
160
|
HMR_ROUTE,
|
package/dist/lib/shared/index.js
CHANGED
|
@@ -3,8 +3,9 @@ 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,
|
|
@@ -20,24 +21,31 @@ import {
|
|
|
20
21
|
isBasePropDefinition,
|
|
21
22
|
isListPropDefinition,
|
|
22
23
|
isPathWithinRoot,
|
|
24
|
+
isReservedDraftFilename,
|
|
23
25
|
isSafePathSegment,
|
|
24
26
|
isValidIdentifier,
|
|
25
27
|
resolvePaletteColor,
|
|
26
28
|
resolveSafePath
|
|
27
|
-
} from "../../chunks/chunk-
|
|
29
|
+
} from "../../chunks/chunk-J23ZX5AP.js";
|
|
28
30
|
import {
|
|
29
31
|
CSS_PROPERTIES,
|
|
30
32
|
CSS_PROPERTIES_DEFINITION,
|
|
31
33
|
CSS_PROPERTY_GROUPS,
|
|
34
|
+
UNITLESS_PROPERTIES,
|
|
35
|
+
VISUAL_MODE_PROPERTIES,
|
|
36
|
+
VISUAL_MODE_RULES,
|
|
37
|
+
appendsPxByDefault,
|
|
32
38
|
filterCSSProperties,
|
|
33
39
|
filterPropertyValues,
|
|
34
40
|
getPropertyGroup,
|
|
35
41
|
getPropertyType,
|
|
36
42
|
getPropertyValues,
|
|
43
|
+
isVisualModeProperty,
|
|
44
|
+
isVisualModeRowVisible,
|
|
37
45
|
logNetworkError,
|
|
38
46
|
logRuntimeError,
|
|
39
47
|
setErrorHandler
|
|
40
|
-
} from "../../chunks/chunk-
|
|
48
|
+
} from "../../chunks/chunk-6IVUG7FY.js";
|
|
41
49
|
import {
|
|
42
50
|
BaseComponentRegistry,
|
|
43
51
|
BaseNodeTypeRegistry,
|
|
@@ -80,6 +88,7 @@ import {
|
|
|
80
88
|
VOID_ELEMENTS,
|
|
81
89
|
addItemUrl,
|
|
82
90
|
addItemUrls,
|
|
91
|
+
applyContainerPattern,
|
|
83
92
|
booleanField,
|
|
84
93
|
breakpointToViewportWidth,
|
|
85
94
|
buildItemUrl,
|
|
@@ -209,12 +218,19 @@ import {
|
|
|
209
218
|
validatePath,
|
|
210
219
|
validatePropDefinition,
|
|
211
220
|
validateStructuredComponentDefinition
|
|
212
|
-
} from "../../chunks/chunk-
|
|
221
|
+
} from "../../chunks/chunk-S2CX6HFM.js";
|
|
213
222
|
import {
|
|
214
223
|
DEFAULT_BREAKPOINTS,
|
|
224
|
+
DEFAULT_FLUID_RANGE,
|
|
215
225
|
DEFAULT_I18N_CONFIG,
|
|
216
226
|
DEFAULT_RESPONSIVE_SCALES,
|
|
227
|
+
DEFAULT_SITE_MARGIN,
|
|
228
|
+
SCALABLE_CSS_PROPERTIES,
|
|
229
|
+
buildFluidClamp,
|
|
230
|
+
buildFluidClampWithExplicitMin,
|
|
231
|
+
buildFluidPropertyValue,
|
|
217
232
|
buildLocalizedPath,
|
|
233
|
+
buildSiteMarginClamp,
|
|
218
234
|
calculateResponsiveValue,
|
|
219
235
|
clearStoredLocale,
|
|
220
236
|
extractLocaleFromPath,
|
|
@@ -227,6 +243,7 @@ import {
|
|
|
227
243
|
getPreviewPointValues,
|
|
228
244
|
getResponsiveValues,
|
|
229
245
|
getScaleMultiplier,
|
|
246
|
+
getSmallestBreakpointName,
|
|
230
247
|
getStoredLocale,
|
|
231
248
|
isI18nValue,
|
|
232
249
|
isValidLocaleCode,
|
|
@@ -234,6 +251,7 @@ import {
|
|
|
234
251
|
normalizeBreakpointConfig,
|
|
235
252
|
parseLocaleFromPath,
|
|
236
253
|
parseMultiValue,
|
|
254
|
+
parseValue,
|
|
237
255
|
resolveI18nInProps,
|
|
238
256
|
resolveI18nValue,
|
|
239
257
|
resolveTranslation,
|
|
@@ -241,7 +259,7 @@ import {
|
|
|
241
259
|
scalePropertyValue,
|
|
242
260
|
scaleValue,
|
|
243
261
|
setStoredLocale
|
|
244
|
-
} from "../../chunks/chunk-
|
|
262
|
+
} from "../../chunks/chunk-AZQYF6KE.js";
|
|
245
263
|
import {
|
|
246
264
|
RICH_TEXT_ALLOWED_ATTRS,
|
|
247
265
|
RICH_TEXT_ALLOWED_TAGS,
|
|
@@ -766,9 +784,9 @@ var DEFAULT_PROPS_PANEL_COLORS = {
|
|
|
766
784
|
backgroundTertiary: "#252525",
|
|
767
785
|
border: "#333333",
|
|
768
786
|
borderSecondary: "#444444",
|
|
769
|
-
text: "#
|
|
787
|
+
text: "#ebebeb",
|
|
770
788
|
textSecondary: "#cccccc",
|
|
771
|
-
textMuted: "#
|
|
789
|
+
textMuted: "#b0b0b0",
|
|
772
790
|
codeString: "#ffffff",
|
|
773
791
|
codeNumber: "#b5cea8",
|
|
774
792
|
codeKey: "#9cdcfe",
|
|
@@ -791,7 +809,7 @@ var LIGHT_PROPS_PANEL_COLORS = {
|
|
|
791
809
|
borderSecondary: "#d0d0d0",
|
|
792
810
|
text: "#1a1a1a",
|
|
793
811
|
textSecondary: "#333333",
|
|
794
|
-
textMuted: "#
|
|
812
|
+
textMuted: "#525a63",
|
|
795
813
|
codeString: "#a31515",
|
|
796
814
|
codeNumber: "#098658",
|
|
797
815
|
codeKey: "#0451a5",
|
|
@@ -1153,7 +1171,7 @@ function parseFilterLine(line) {
|
|
|
1153
1171
|
if (!match) return null;
|
|
1154
1172
|
const [, field, op, rawValue] = match;
|
|
1155
1173
|
const operator = normalizeOperator(op);
|
|
1156
|
-
const value =
|
|
1174
|
+
const value = parseValue2(rawValue.trim(), operator);
|
|
1157
1175
|
if (operator === "eq") {
|
|
1158
1176
|
return { field, value };
|
|
1159
1177
|
}
|
|
@@ -1182,7 +1200,7 @@ function normalizeOperator(op) {
|
|
|
1182
1200
|
};
|
|
1183
1201
|
return map[normalized] || "eq";
|
|
1184
1202
|
}
|
|
1185
|
-
function
|
|
1203
|
+
function parseValue2(raw, operator) {
|
|
1186
1204
|
if (raw.startsWith("{{") && raw.endsWith("}}")) {
|
|
1187
1205
|
return raw;
|
|
1188
1206
|
}
|
|
@@ -1248,6 +1266,7 @@ export {
|
|
|
1248
1266
|
CMSItemSchema,
|
|
1249
1267
|
CMSSchemaSchema,
|
|
1250
1268
|
CMS_COLLECTION_ID_REGEX,
|
|
1269
|
+
CMS_DRAFT_SUFFIX,
|
|
1251
1270
|
CSS_NAMED_COLORS,
|
|
1252
1271
|
CSS_PROPERTIES,
|
|
1253
1272
|
CSS_PROPERTIES_DEFINITION,
|
|
@@ -1259,6 +1278,7 @@ export {
|
|
|
1259
1278
|
ComponentNodeSchema,
|
|
1260
1279
|
DEFAULT_BREAKPOINTS,
|
|
1261
1280
|
DEFAULT_COMPONENT_TYPES,
|
|
1281
|
+
DEFAULT_FLUID_RANGE,
|
|
1262
1282
|
DEFAULT_I18N_CONFIG,
|
|
1263
1283
|
DEFAULT_ICON_COLOR,
|
|
1264
1284
|
DEFAULT_INPUT_STYLE,
|
|
@@ -1266,6 +1286,7 @@ export {
|
|
|
1266
1286
|
DEFAULT_PROPS_PANEL_COLORS,
|
|
1267
1287
|
DEFAULT_PROPS_PANEL_SPACING,
|
|
1268
1288
|
DEFAULT_RESPONSIVE_SCALES,
|
|
1289
|
+
DEFAULT_SITE_MARGIN,
|
|
1269
1290
|
DEFAULT_TEXTAREA_STYLE,
|
|
1270
1291
|
DEFAULT_TIMEOUT,
|
|
1271
1292
|
EmbedNodeType,
|
|
@@ -1299,6 +1320,7 @@ export {
|
|
|
1299
1320
|
RegistryManager,
|
|
1300
1321
|
ResponsiveStyleObjectSchema,
|
|
1301
1322
|
SAFE_IDENTIFIER_REGEX,
|
|
1323
|
+
SCALABLE_CSS_PROPERTIES,
|
|
1302
1324
|
SERVER_PORT,
|
|
1303
1325
|
SERVE_PORT,
|
|
1304
1326
|
SPECIAL_PATHS,
|
|
@@ -1311,21 +1333,30 @@ export {
|
|
|
1311
1333
|
StyleValueSchema,
|
|
1312
1334
|
TAB_SWITCH_DELAY_MS,
|
|
1313
1335
|
TREE_SCROLL_DELAY_MS,
|
|
1336
|
+
UNITLESS_PROPERTIES,
|
|
1314
1337
|
VARIABLE_GROUPS,
|
|
1315
1338
|
VARIABLE_GROUP_VALUES,
|
|
1316
1339
|
VARIABLE_TYPES,
|
|
1317
1340
|
VARIABLE_TYPE_VALUES,
|
|
1341
|
+
VISUAL_MODE_PROPERTIES,
|
|
1342
|
+
VISUAL_MODE_RULES,
|
|
1318
1343
|
VOID_ELEMENTS,
|
|
1319
1344
|
WEBSOCKET_STATES,
|
|
1320
1345
|
addItemUrl,
|
|
1321
1346
|
addItemUrls,
|
|
1347
|
+
appendsPxByDefault,
|
|
1348
|
+
applyContainerPattern,
|
|
1322
1349
|
booleanField,
|
|
1323
1350
|
breakpointToViewportWidth,
|
|
1324
1351
|
buildComponentTreePaths,
|
|
1352
|
+
buildFluidClamp,
|
|
1353
|
+
buildFluidClampWithExplicitMin,
|
|
1354
|
+
buildFluidPropertyValue,
|
|
1325
1355
|
buildGradientCss,
|
|
1326
1356
|
buildItemUrl,
|
|
1327
1357
|
buildLocalizedPath,
|
|
1328
1358
|
buildParentPaths,
|
|
1359
|
+
buildSiteMarginClamp,
|
|
1329
1360
|
buildTemplateContext,
|
|
1330
1361
|
buildTreePathsWithRendered,
|
|
1331
1362
|
builtInNodeTypes,
|
|
@@ -1404,6 +1435,7 @@ export {
|
|
|
1404
1435
|
getResponsiveValues,
|
|
1405
1436
|
getRootData,
|
|
1406
1437
|
getScaleMultiplier,
|
|
1438
|
+
getSmallestBreakpointName,
|
|
1407
1439
|
getStoredLocale,
|
|
1408
1440
|
getStyleValue,
|
|
1409
1441
|
getTagName,
|
|
@@ -1453,6 +1485,7 @@ export {
|
|
|
1453
1485
|
isNodeType,
|
|
1454
1486
|
isPageDataParent,
|
|
1455
1487
|
isPathWithinRoot,
|
|
1488
|
+
isReservedDraftFilename,
|
|
1456
1489
|
isResponsiveStyle,
|
|
1457
1490
|
isRichTextMarker,
|
|
1458
1491
|
isRootPath,
|
|
@@ -1471,6 +1504,8 @@ export {
|
|
|
1471
1504
|
isValidNodeLocation,
|
|
1472
1505
|
isValidNodeType,
|
|
1473
1506
|
isValidPath,
|
|
1507
|
+
isVisualModeProperty,
|
|
1508
|
+
isVisualModeRowVisible,
|
|
1474
1509
|
isVoidElement,
|
|
1475
1510
|
logNetworkError,
|
|
1476
1511
|
logRuntimeError,
|
|
@@ -1491,6 +1526,7 @@ export {
|
|
|
1491
1526
|
parseLocaleFromPath,
|
|
1492
1527
|
parseMultiValue,
|
|
1493
1528
|
parseSortExpression,
|
|
1529
|
+
parseValue,
|
|
1494
1530
|
pathToLegacyString,
|
|
1495
1531
|
pathToString,
|
|
1496
1532
|
pathsEqual,
|