@jant/core 0.3.47 → 0.3.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/dist/{app-B67XOEyo.js → app-DU7dpJID.js} +1 -1
- package/dist/{app-3REcR-3U.js → app-DdnIoX7y.js} +5 -5
- package/dist/client/.vite/manifest.json +1 -1
- package/dist/client/_assets/{client-s71Js1Cu.css → client-BoUn7xBo.css} +1 -1
- package/dist/index.js +1 -1
- package/dist/node.js +2 -2
- package/package.json +1 -1
- package/src/lib/api-posts.ts +9 -7
- package/src/styles/ui.css +2 -2
|
@@ -3418,10 +3418,10 @@ function normalizeThemeColorForMeta(color) {
|
|
|
3418
3418
|
* internal paths (e.g. `/_assets/client-HASH.js`) embedded by the Worker build
|
|
3419
3419
|
* from the Vite client manifest. Used only in production (IS_VITE_DEV=false).
|
|
3420
3420
|
*/ var IS_VITE_DEV = typeof __JANT_DEV__ !== "undefined" && __JANT_DEV__ === true;
|
|
3421
|
-
var CORE_VERSION = "0.3.
|
|
3421
|
+
var CORE_VERSION = "0.3.48-5b409c34fc5f0c4a";
|
|
3422
3422
|
var CLIENT_JS_FILE = "/_assets/client-dSfWfMe9.js";
|
|
3423
3423
|
var CLIENT_AUTH_JS_FILE = "/_assets/client-auth-Ce5WEAVS.js";
|
|
3424
|
-
var CLIENT_CSS_FILE = "/_assets/client-
|
|
3424
|
+
var CLIENT_CSS_FILE = "/_assets/client-BoUn7xBo.css";
|
|
3425
3425
|
var CLIENT_CJK_CSS_FILE = "/_assets/client-cjk-B7Z0snDu.css";
|
|
3426
3426
|
var CLIENT_CJK_TC_CSS_FILE = "/_assets/client-cjk-tc-BesJYrb2.css";
|
|
3427
3427
|
var CLIENT_CJK_JP_CSS_FILE = "/_assets/client-cjk-jp-DZwrTzQC.css";
|
|
@@ -3739,7 +3739,7 @@ var IconSprite = () => {
|
|
|
3739
3739
|
const cjkSerifFont = appConfig?.cjkSerifFont ?? "off";
|
|
3740
3740
|
const cjkStylesheetPath = cjkSerifFont === "zh-Hans" ? IS_VITE_DEV ? assetPath("/src/style-cjk.css") : toPublicAssetPath(CLIENT_CJK_CSS_FILE, assetBasePath) : cjkSerifFont === "zh-Hant" ? IS_VITE_DEV ? assetPath("/src/style-cjk-tc.css") : toPublicAssetPath(CLIENT_CJK_TC_CSS_FILE, assetBasePath) : cjkSerifFont === "ja" ? IS_VITE_DEV ? assetPath("/src/style-cjk-jp.css") : toPublicAssetPath(CLIENT_CJK_JP_CSS_FILE, assetBasePath) : cjkSerifFont === "ko" ? IS_VITE_DEV ? assetPath("/src/style-cjk-kr.css") : toPublicAssetPath(CLIENT_CJK_KR_CSS_FILE, assetBasePath) : null;
|
|
3741
3741
|
const clientScriptPath = IS_VITE_DEV ? resolvedClientBundle === "full" ? assetPath("/src/client-auth.ts") : assetPath("/src/client.ts") : toPublicAssetPath(resolvedClientBundle === "full" ? CLIENT_AUTH_JS_FILE : CLIENT_JS_FILE, assetBasePath);
|
|
3742
|
-
const faviconAssetVersion = resolvedFaviconVersion || "0.3.
|
|
3742
|
+
const faviconAssetVersion = resolvedFaviconVersion || "0.3.48-5b409c34fc5f0c4a";
|
|
3743
3743
|
const resolvedFaviconHref = faviconHref ?? (faviconAssetVersion ? toPublicPath(`/favicon.ico?v=${faviconAssetVersion}`, sitePathPrefix) : toPublicPath("/favicon.ico", sitePathPrefix));
|
|
3744
3744
|
const resolvedAppleTouchHref = appleTouchHref ?? (faviconAssetVersion ? toPublicPath(`/apple-touch-icon.png?v=${faviconAssetVersion}`, sitePathPrefix) : toPublicPath("/apple-touch-icon.png", sitePathPrefix));
|
|
3745
3745
|
const socialImageHref = resolvedSocialImagePath && (isFullUrl(resolvedSocialImagePath) || resolvedSocialImagePath.startsWith("//") ? resolvedSocialImagePath : toAbsoluteSiteUrl(resolvedSocialImagePath, appConfig?.siteUrl || "", sitePathPrefix));
|
|
@@ -21952,13 +21952,13 @@ function toApiAttachment(media, r2PublicUrl, imageTransformUrl, s3PublicUrl, loc
|
|
|
21952
21952
|
summary: media.summary,
|
|
21953
21953
|
chars: media.chars
|
|
21954
21954
|
};
|
|
21955
|
-
const previewUrl = getImageUrl(url, imageTransformUrl, {
|
|
21955
|
+
const previewUrl = media.mimeType.startsWith("image/") ? getImageUrl(url, imageTransformUrl, {
|
|
21956
21956
|
width: 1200,
|
|
21957
21957
|
height: 768,
|
|
21958
21958
|
quality: 80,
|
|
21959
21959
|
format: "auto",
|
|
21960
21960
|
fit: "scale-down"
|
|
21961
|
-
});
|
|
21961
|
+
}) : url;
|
|
21962
21962
|
const posterUrl = media.posterKey ? getMediaUrl(media.posterKey, publicUrl, sitePathPrefix) : null;
|
|
21963
21963
|
return {
|
|
21964
21964
|
type: "media",
|