meno-core 1.0.48 → 1.0.50
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 +6 -2
- package/dist/build-static.js +7 -7
- package/dist/chunks/{chunk-D5E3OKSL.js → chunk-56EUSC6D.js} +5 -5
- package/dist/chunks/{chunk-3FHJUHAS.js → chunk-7NIC4I3V.js} +300 -43
- package/dist/chunks/chunk-7NIC4I3V.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-TPQ7APVQ.js → chunk-CVLFID6V.js} +473 -73
- package/dist/chunks/chunk-CVLFID6V.js.map +7 -0
- package/dist/chunks/{chunk-NP76N4HQ.js → chunk-EDQSMAMP.js} +13 -2
- package/dist/chunks/{chunk-NP76N4HQ.js.map → chunk-EDQSMAMP.js.map} +2 -2
- 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-UUA5LEWF.js → chunk-LPVETICS.js} +156 -8
- package/dist/chunks/chunk-LPVETICS.js.map +7 -0
- package/dist/chunks/{chunk-BJRKEPMP.js → chunk-PQ2HRXDR.js} +5 -2
- package/dist/chunks/chunk-PQ2HRXDR.js.map +7 -0
- package/dist/chunks/{chunk-NKUV77SR.js → chunk-YWJJD5D6.js} +133 -37
- package/dist/chunks/chunk-YWJJD5D6.js.map +7 -0
- package/dist/chunks/{configService-IGJEC3MC.js → configService-VOY2MY2K.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 +92 -32
- package/dist/lib/client/index.js.map +3 -3
- package/dist/lib/server/index.js +14 -12
- package/dist/lib/server/index.js.map +2 -2
- 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.test.ts +34 -0
- package/lib/client/core/ComponentBuilder.ts +33 -4
- package/lib/client/core/builders/embedBuilder.ts +28 -7
- package/lib/client/core/builders/linkNodeBuilder.ts +28 -7
- package/lib/client/core/builders/localeListBuilder.ts +30 -11
- package/lib/client/styles/StyleInjector.ts +3 -2
- package/lib/client/templateEngine.ts +24 -0
- 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/fileWatcher.test.ts +134 -0
- package/lib/server/fileWatcher.ts +100 -32
- package/lib/server/jsonLoader.ts +1 -0
- package/lib/server/providers/fileSystemCMSProvider.test.ts +163 -0
- package/lib/server/providers/fileSystemCMSProvider.ts +240 -19
- 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 +6 -0
- package/lib/server/services/fileWatcherService.ts +17 -0
- package/lib/server/ssr/attributeBuilder.ts +41 -0
- package/lib/server/ssr/htmlGenerator.test.ts +113 -0
- package/lib/server/ssr/htmlGenerator.ts +62 -7
- package/lib/server/ssr/liveReloadIntegration.test.ts +209 -0
- package/lib/server/ssr/ssrRenderer.test.ts +564 -0
- package/lib/server/ssr/ssrRenderer.ts +228 -49
- package/lib/server/webflow/buildWebflow.ts +1 -1
- package/lib/server/websocketManager.test.ts +61 -6
- package/lib/server/websocketManager.ts +25 -1
- package/lib/shared/cssGeneration.test.ts +267 -1
- package/lib/shared/cssGeneration.ts +240 -18
- package/lib/shared/cssProperties.test.ts +275 -1
- package/lib/shared/cssProperties.ts +223 -7
- 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/api.ts +10 -1
- package/lib/shared/types/cms.ts +46 -12
- 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.test.ts +93 -0
- package/lib/shared/validation/schemas.ts +71 -16
- 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-BJRKEPMP.js.map +0 -7
- package/dist/chunks/chunk-NKUV77SR.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-D5E3OKSL.js.map → chunk-56EUSC6D.js.map} +0 -0
- /package/dist/chunks/{chunk-RQSTH2BS.js.map → chunk-H4JSCDNW.js.map} +0 -0
- /package/dist/chunks/{configService-IGJEC3MC.js.map → configService-VOY2MY2K.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-56EUSC6D.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-YWJJD5D6.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-CVLFID6V.js";
|
|
87
87
|
import {
|
|
88
88
|
ConfigService,
|
|
89
89
|
configService
|
|
90
|
-
} from "../../chunks/chunk-
|
|
90
|
+
} from "../../chunks/chunk-PQ2HRXDR.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-EDQSMAMP.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-7NIC4I3V.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,
|
|
@@ -3127,9 +3127,11 @@ async function buildAstroProject(projectRoot, outputDir) {
|
|
|
3127
3127
|
const defaultTheme = themeConfig.default || "light";
|
|
3128
3128
|
const customCode = configService.getCustomCode();
|
|
3129
3129
|
const iconsConfig = await loadIconsConfig();
|
|
3130
|
-
const
|
|
3130
|
+
const hasDarkFavicon = !!(iconsConfig.favicon && iconsConfig.faviconDark);
|
|
3131
|
+
const faviconTag = iconsConfig.favicon ? `<link rel="icon" href="${iconsConfig.favicon.replace(/"/g, """)}"${hasDarkFavicon ? ' media="(prefers-color-scheme: light)"' : ""} />` : "";
|
|
3132
|
+
const faviconDarkTag = iconsConfig.faviconDark ? `<link rel="icon" href="${iconsConfig.faviconDark.replace(/"/g, """)}" media="(prefers-color-scheme: dark)" />` : "";
|
|
3131
3133
|
const appleTouchIconTag = iconsConfig.appleTouchIcon ? `<link rel="apple-touch-icon" href="${iconsConfig.appleTouchIcon.replace(/"/g, """)}" />` : "";
|
|
3132
|
-
const iconTagsHtml = [faviconTag, appleTouchIconTag].filter(Boolean).join("\n ");
|
|
3134
|
+
const iconTagsHtml = [faviconTag, faviconDarkTag, appleTouchIconTag].filter(Boolean).join("\n ");
|
|
3133
3135
|
const remConversionConfig = configService.getRemConversion();
|
|
3134
3136
|
const templatesDir = projectPaths.templates();
|
|
3135
3137
|
const templateSchemas = [];
|
|
@@ -5495,7 +5497,7 @@ async function buildWebflowPayload(options) {
|
|
|
5495
5497
|
const pageName = file.replace(".json", "");
|
|
5496
5498
|
for (const localeConfig of localesToBuild) {
|
|
5497
5499
|
const locale = localeConfig.code;
|
|
5498
|
-
let itemSlug = item[cmsSchema.slugField] ?? item._slug ?? item._id;
|
|
5500
|
+
let itemSlug = item[cmsSchema.slugField] ?? item._slug ?? item._filename ?? item._id;
|
|
5499
5501
|
if (isI18nValue(itemSlug)) {
|
|
5500
5502
|
itemSlug = resolveI18nValue(itemSlug, locale, i18nConfig);
|
|
5501
5503
|
}
|