@jant/core 0.4.2 → 0.4.3
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-FtJ5R8pi.js → app-BrwhXxi4.js} +13 -13
- package/dist/app-Cu677p4b.js +6 -0
- package/dist/client/.vite/manifest.json +1 -1
- package/dist/client/_assets/{client-BbJ0FhON.css → client-gnH6Uk3M.css} +1 -1
- package/dist/{export-1DCaq4BR.js → export-B7P3YE3x.js} +3 -3
- package/dist/{github-sync-BoYWQKCr.js → github-sync-LvT27JR9.js} +2 -2
- package/dist/{github-sync-BWIpO72V.js → github-sync-Yg2zs-iC.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/node.js +4 -4
- package/package.json +1 -1
- package/src/preset.css +8 -0
- package/src/services/export-theme/layouts/partials/media-gallery.html +4 -4
- package/src/services/export-theme/styles/main.css +4 -1
- package/src/styles/tokens.css +1 -1
- package/dist/app-73ovSon0.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as getSitePathPrefix, c as normalizePath, d as sanitizeUrl, f as slugify, g as toPublicPath, h as toPublicHref, i as getSiteOrigin, m as toAbsoluteSiteUrl, n as extractDisplayDomain, o as isFullUrl, p as stripSitePathPrefix, r as extractDomain, s as isSafeInternalRedirect, t as buildSiteUrl, u as normalizeSiteUrl, v as __exportAll } from "./url-umUptr5z.js";
|
|
2
|
-
import { A as JANT_POSITIVE_LOGO_PNG_FILENAME, B as getJantLogoHref, C as formatYearMonth, D as HOME_BRANDING_LINK_LABEL, E as toISOString, F as getJantBundledAsset, G as base64ToUint8Array, H as JANT_LOGO_PATH_DATA, I as getJantIconFilename, L as getJantIconHref, M as getDefaultJantAppleTouchIconBytes, N as getDefaultJantFaviconIcoBytes, O as HOME_BRANDING_PREFIX, P as getJantBrandPackHref, R as getJantLogoFilename, S as formatTime, U as JANT_LOGO_VIEW_BOX, V as getJantPositiveLogoPngHref, W as arrayBufferToBase64, _ as getMediaUrl, b as formatRelativeAge, d as extractSummaryHtml, f as renderTiptapDocument, g as getImageUrl, h as escapeHtml, i as tiptapJsonToMarkdown, j as JANT_REPO_URL, k as JANT_BRAND_PACK_FILENAME, l as extractBodyText, m as trimTiptapBody, o as render, p as renderTiptapJson, s as toPlainText, t as createExportService, u as extractSummary, v as getPublicUrlForProvider, w as now, x as formatRelativeTime, y as formatDate, z as getJantLogoFills } from "./export-
|
|
2
|
+
import { A as JANT_POSITIVE_LOGO_PNG_FILENAME, B as getJantLogoHref, C as formatYearMonth, D as HOME_BRANDING_LINK_LABEL, E as toISOString, F as getJantBundledAsset, G as base64ToUint8Array, H as JANT_LOGO_PATH_DATA, I as getJantIconFilename, L as getJantIconHref, M as getDefaultJantAppleTouchIconBytes, N as getDefaultJantFaviconIcoBytes, O as HOME_BRANDING_PREFIX, P as getJantBrandPackHref, R as getJantLogoFilename, S as formatTime, U as JANT_LOGO_VIEW_BOX, V as getJantPositiveLogoPngHref, W as arrayBufferToBase64, _ as getMediaUrl, b as formatRelativeAge, d as extractSummaryHtml, f as renderTiptapDocument, g as getImageUrl, h as escapeHtml, i as tiptapJsonToMarkdown, j as JANT_REPO_URL, k as JANT_BRAND_PACK_FILENAME, l as extractBodyText, m as trimTiptapBody, o as render, p as renderTiptapJson, s as toPlainText, t as createExportService, u as extractSummary, v as getPublicUrlForProvider, w as now, x as formatRelativeTime, y as formatDate, z as getJantLogoFills } from "./export-B7P3YE3x.js";
|
|
3
3
|
import { C as coalesceDisplayText, S as shouldUseSecureCookies, _ as getInternalAdminToken, a as getConfiguredSingleSiteUrl, b as getSiteResolutionMode, c as getDevApiToken, d as getHostedControlPlaneBaseUrl, f as getHostedControlPlaneDomainCheckSecret, g as getHostedControlPlaneSsoSecret, h as getHostedControlPlaneProviderLabel$1, i as getConfiguredSingleSitePathPrefix, l as getEnvString, m as getHostedControlPlaneInternalToken, n as getAuthSecret, o as getConfiguredStorageDriver, p as getHostedControlPlaneInternalBaseUrl, r as getConfiguredSingleSiteOrigin, s as getCorsOrigins, u as getGitHubAppConfig, v as getLocalStoragePath } from "./env-CgaH9Mut.js";
|
|
4
|
-
import { l as markdownToTiptapJson, o as createGitHubSyncService } from "./github-sync-
|
|
4
|
+
import { l as markdownToTiptapJson, o as createGitHubSyncService } from "./github-sync-Yg2zs-iC.js";
|
|
5
5
|
import { a as listInstallationReposPage, n as getInstallation, o as searchInstallationRepos, t as buildInstallUrl } from "./github-app-D0GvNnqp.js";
|
|
6
6
|
import { r as parseRepoSlug, t as createGitHubClient } from "./github-api-Bh0PH3zr.js";
|
|
7
7
|
import { I18n } from "@lingui/core";
|
|
@@ -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.4.
|
|
3421
|
+
var CORE_VERSION = "0.4.3-12cd415911dcbfc3";
|
|
3422
3422
|
var CLIENT_JS_FILE = "/_assets/client-BIA0Kx3b.js";
|
|
3423
3423
|
var CLIENT_AUTH_JS_FILE = "/_assets/client-auth-LyAV-zh7.js";
|
|
3424
|
-
var CLIENT_CSS_FILE = "/_assets/client-
|
|
3424
|
+
var CLIENT_CSS_FILE = "/_assets/client-gnH6Uk3M.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.4.
|
|
3742
|
+
const faviconAssetVersion = resolvedFaviconVersion || "0.4.3-12cd415911dcbfc3";
|
|
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));
|
|
@@ -20177,7 +20177,7 @@ async function syncHostedControlPlaneSiteAvatar(input) {
|
|
|
20177
20177
|
return;
|
|
20178
20178
|
}
|
|
20179
20179
|
await markSyncPending(settings);
|
|
20180
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
20180
|
+
const { createGitHubSyncService } = await import("./github-sync-LvT27JR9.js");
|
|
20181
20181
|
const { getGitHubAppConfig } = await import("./env-CgaH9Mut.js").then((n) => n.t);
|
|
20182
20182
|
const run = runBackgroundSync(settings, createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
20183
20183
|
storage: c.var.storage,
|
|
@@ -20964,7 +20964,7 @@ settingsRoutes.post("/github-sync/connect", async (c) => {
|
|
|
20964
20964
|
await c.var.services.settings.set("GITHUB_SYNC_AUTH_MODE", "pat");
|
|
20965
20965
|
await c.var.services.settings.set("GITHUB_SYNC_APP_INSTALLATION_ID", "");
|
|
20966
20966
|
await c.var.services.settings.set("GITHUB_SYNC_ENABLED", "true");
|
|
20967
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
20967
|
+
const { createGitHubSyncService } = await import("./github-sync-LvT27JR9.js");
|
|
20968
20968
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
20969
20969
|
storage: c.var.storage,
|
|
20970
20970
|
githubApp: getGitHubAppConfig(c.env)
|
|
@@ -20983,7 +20983,7 @@ settingsRoutes.post("/github-sync/connect", async (c) => {
|
|
|
20983
20983
|
return dsRedirect(publicPath(c, "/settings/github-sync"));
|
|
20984
20984
|
});
|
|
20985
20985
|
settingsRoutes.post("/github-sync/push", async (c) => {
|
|
20986
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
20986
|
+
const { createGitHubSyncService } = await import("./github-sync-LvT27JR9.js");
|
|
20987
20987
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
20988
20988
|
storage: c.var.storage,
|
|
20989
20989
|
githubApp: getGitHubAppConfig(c.env)
|
|
@@ -21003,7 +21003,7 @@ settingsRoutes.post("/github-sync/push", async (c) => {
|
|
|
21003
21003
|
});
|
|
21004
21004
|
});
|
|
21005
21005
|
settingsRoutes.post("/github-sync/disconnect", async (c) => {
|
|
21006
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21006
|
+
const { createGitHubSyncService } = await import("./github-sync-LvT27JR9.js");
|
|
21007
21007
|
await createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), { githubApp: getGitHubAppConfig(c.env) }).teardownWebhook();
|
|
21008
21008
|
return dsRedirect(publicPath(c, "/settings/github-sync"));
|
|
21009
21009
|
});
|
|
@@ -21194,7 +21194,7 @@ function buildRepoPickerLabels(c) {
|
|
|
21194
21194
|
const { parseRepoSlug, createGitHubClient } = await import("./github-api-Bh0PH3zr.js").then((n) => n.n);
|
|
21195
21195
|
const parsed = parseRepoSlug(repo);
|
|
21196
21196
|
if (!parsed) return wantsJson ? c.json({ error: "Invalid repository format." }, 400) : c.text("Invalid repository format.", 400);
|
|
21197
|
-
const { classifyRepoForSync } = await import("./github-sync-
|
|
21197
|
+
const { classifyRepoForSync } = await import("./github-sync-LvT27JR9.js");
|
|
21198
21198
|
const ghClient = createGitHubClient(() => getInstallationTokenFromApp(app, installationId));
|
|
21199
21199
|
let classification;
|
|
21200
21200
|
try {
|
|
@@ -21224,7 +21224,7 @@ function buildRepoPickerLabels(c) {
|
|
|
21224
21224
|
await c.var.services.settings.set("GITHUB_SYNC_REPO", repo);
|
|
21225
21225
|
await c.var.services.settings.set("GITHUB_SYNC_TOKEN", "");
|
|
21226
21226
|
await c.var.services.settings.set("GITHUB_SYNC_ENABLED", "true");
|
|
21227
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21227
|
+
const { createGitHubSyncService } = await import("./github-sync-LvT27JR9.js");
|
|
21228
21228
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
21229
21229
|
storage: c.var.storage,
|
|
21230
21230
|
githubApp: app
|
|
@@ -21340,7 +21340,7 @@ function requireGitHubApp(c) {
|
|
|
21340
21340
|
const { parseRepoSlug, createGitHubClient } = await import("./github-api-Bh0PH3zr.js").then((n) => n.n);
|
|
21341
21341
|
const parsed = parseRepoSlug(repo);
|
|
21342
21342
|
if (!parsed) return c.json({ error: "Invalid repository format." }, 400);
|
|
21343
|
-
const { classifyRepoForSync } = await import("./github-sync-
|
|
21343
|
+
const { classifyRepoForSync } = await import("./github-sync-LvT27JR9.js");
|
|
21344
21344
|
const client = createGitHubClient(() => getInstallationTokenFromApp(app, installationId));
|
|
21345
21345
|
try {
|
|
21346
21346
|
const classification = await classifyRepoForSync(client, parsed.owner, parsed.repo, c.var.currentSite.id);
|
|
@@ -30797,7 +30797,7 @@ function createSiteAdminService(db, databaseSchema = sqliteSchemaBundle, databas
|
|
|
30797
30797
|
const themeCss = buildThemeStyle(activeTheme, appConfig.themeMode, fontOverrides);
|
|
30798
30798
|
const navItemList = await navItems.list();
|
|
30799
30799
|
const appleTouchKey = allSettings[SETTINGS_KEYS.SITE_FAVICON_APPLE_TOUCH];
|
|
30800
|
-
const { createExportService } = await import("./export-
|
|
30800
|
+
const { createExportService } = await import("./export-B7P3YE3x.js").then((n) => n.n);
|
|
30801
30801
|
const exportService = createExportService({
|
|
30802
30802
|
collections,
|
|
30803
30803
|
media: mediaService,
|