@jant/core 0.5.2 → 0.5.4
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-CPVwpmb3.js → app-BtNdUAqz.js} +15 -15
- package/dist/app-DLINgGBd.js +6 -0
- package/dist/client/.vite/manifest.json +3 -3
- package/dist/client/_assets/client-BErXNT6k.css +2 -0
- package/dist/client/_assets/{client-8pp1btGZ.js → client-CtAgWT8i.js} +10 -8
- package/dist/client/_assets/{client-auth-Ds3SVvGh.js → client-auth-DJ_5wx9N.js} +55 -44
- package/dist/{export-I9XFTWyO.js → export-CR9Megtb.js} +2 -2
- package/dist/{github-sync-C0Fi4LKt.js → github-sync-8Vv06aCr.js} +2 -2
- package/dist/{github-sync-DBAwA3H9.js → github-sync-DYZq9rQp.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/node.js +4 -4
- package/package.json +1 -1
- package/src/client/components/jant-compose-dialog.ts +27 -6
- package/src/client/components/jant-compose-editor.ts +72 -0
- package/src/client/components/jant-media-lightbox.ts +124 -39
- package/src/client/tiptap/paste-media.ts +49 -33
- package/src/client/video-processor.ts +9 -0
- package/src/lib/__tests__/mp4-track-flags.test.ts +117 -0
- package/src/lib/mp4-track-flags.ts +71 -0
- package/src/services/export-theme/assets/client-site.js +9 -7
- package/src/styles/tokens.css +40 -0
- package/src/styles/ui.css +61 -7
- package/dist/app-Z83YzveI.js +0 -6
- package/dist/client/_assets/client-CFegXQty.css +0 -2
|
@@ -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-CR9Megtb.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-DYZq9rQp.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.5.
|
|
3422
|
-
var CLIENT_JS_FILE = "/_assets/client-
|
|
3423
|
-
var CLIENT_AUTH_JS_FILE = "/_assets/client-auth-
|
|
3424
|
-
var CLIENT_CSS_FILE = "/_assets/client-
|
|
3421
|
+
var CORE_VERSION = "0.5.4-0db1395675f717c0";
|
|
3422
|
+
var CLIENT_JS_FILE = "/_assets/client-CtAgWT8i.js";
|
|
3423
|
+
var CLIENT_AUTH_JS_FILE = "/_assets/client-auth-DJ_5wx9N.js";
|
|
3424
|
+
var CLIENT_CSS_FILE = "/_assets/client-BErXNT6k.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.5.
|
|
3742
|
+
const faviconAssetVersion = resolvedFaviconVersion || "0.5.4-0db1395675f717c0";
|
|
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));
|
|
@@ -20238,7 +20238,7 @@ async function syncHostedControlPlaneSiteAvatar(input) {
|
|
|
20238
20238
|
return;
|
|
20239
20239
|
}
|
|
20240
20240
|
await markSyncPending(settings);
|
|
20241
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
20241
|
+
const { createGitHubSyncService } = await import("./github-sync-8Vv06aCr.js");
|
|
20242
20242
|
const { getGitHubAppConfig } = await import("./env-CgaH9Mut.js").then((n) => n.t);
|
|
20243
20243
|
const run = runBackgroundSync(settings, createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
20244
20244
|
storage: c.var.storage,
|
|
@@ -21025,7 +21025,7 @@ settingsRoutes.post("/github-sync/connect", async (c) => {
|
|
|
21025
21025
|
await c.var.services.settings.set("GITHUB_SYNC_AUTH_MODE", "pat");
|
|
21026
21026
|
await c.var.services.settings.set("GITHUB_SYNC_APP_INSTALLATION_ID", "");
|
|
21027
21027
|
await c.var.services.settings.set("GITHUB_SYNC_ENABLED", "true");
|
|
21028
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21028
|
+
const { createGitHubSyncService } = await import("./github-sync-8Vv06aCr.js");
|
|
21029
21029
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
21030
21030
|
storage: c.var.storage,
|
|
21031
21031
|
githubApp: getGitHubAppConfig(c.env)
|
|
@@ -21044,7 +21044,7 @@ settingsRoutes.post("/github-sync/connect", async (c) => {
|
|
|
21044
21044
|
return dsRedirect(publicPath(c, "/settings/github-sync"));
|
|
21045
21045
|
});
|
|
21046
21046
|
settingsRoutes.post("/github-sync/push", async (c) => {
|
|
21047
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21047
|
+
const { createGitHubSyncService } = await import("./github-sync-8Vv06aCr.js");
|
|
21048
21048
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
21049
21049
|
storage: c.var.storage,
|
|
21050
21050
|
githubApp: getGitHubAppConfig(c.env)
|
|
@@ -21064,7 +21064,7 @@ settingsRoutes.post("/github-sync/push", async (c) => {
|
|
|
21064
21064
|
});
|
|
21065
21065
|
});
|
|
21066
21066
|
settingsRoutes.post("/github-sync/disconnect", async (c) => {
|
|
21067
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21067
|
+
const { createGitHubSyncService } = await import("./github-sync-8Vv06aCr.js");
|
|
21068
21068
|
await createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), { githubApp: getGitHubAppConfig(c.env) }).teardownWebhook();
|
|
21069
21069
|
return dsRedirect(publicPath(c, "/settings/github-sync"));
|
|
21070
21070
|
});
|
|
@@ -21255,7 +21255,7 @@ function buildRepoPickerLabels(c) {
|
|
|
21255
21255
|
const { parseRepoSlug, createGitHubClient } = await import("./github-api-Bh0PH3zr.js").then((n) => n.n);
|
|
21256
21256
|
const parsed = parseRepoSlug(repo);
|
|
21257
21257
|
if (!parsed) return wantsJson ? c.json({ error: "Invalid repository format." }, 400) : c.text("Invalid repository format.", 400);
|
|
21258
|
-
const { classifyRepoForSync } = await import("./github-sync-
|
|
21258
|
+
const { classifyRepoForSync } = await import("./github-sync-8Vv06aCr.js");
|
|
21259
21259
|
const ghClient = createGitHubClient(() => getInstallationTokenFromApp(app, installationId));
|
|
21260
21260
|
let classification;
|
|
21261
21261
|
try {
|
|
@@ -21285,7 +21285,7 @@ function buildRepoPickerLabels(c) {
|
|
|
21285
21285
|
await c.var.services.settings.set("GITHUB_SYNC_REPO", repo);
|
|
21286
21286
|
await c.var.services.settings.set("GITHUB_SYNC_TOKEN", "");
|
|
21287
21287
|
await c.var.services.settings.set("GITHUB_SYNC_ENABLED", "true");
|
|
21288
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21288
|
+
const { createGitHubSyncService } = await import("./github-sync-8Vv06aCr.js");
|
|
21289
21289
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
21290
21290
|
storage: c.var.storage,
|
|
21291
21291
|
githubApp: app
|
|
@@ -21401,7 +21401,7 @@ function requireGitHubApp(c) {
|
|
|
21401
21401
|
const { parseRepoSlug, createGitHubClient } = await import("./github-api-Bh0PH3zr.js").then((n) => n.n);
|
|
21402
21402
|
const parsed = parseRepoSlug(repo);
|
|
21403
21403
|
if (!parsed) return c.json({ error: "Invalid repository format." }, 400);
|
|
21404
|
-
const { classifyRepoForSync } = await import("./github-sync-
|
|
21404
|
+
const { classifyRepoForSync } = await import("./github-sync-8Vv06aCr.js");
|
|
21405
21405
|
const client = createGitHubClient(() => getInstallationTokenFromApp(app, installationId));
|
|
21406
21406
|
try {
|
|
21407
21407
|
const classification = await classifyRepoForSync(client, parsed.owner, parsed.repo, c.var.currentSite.id);
|
|
@@ -30863,7 +30863,7 @@ function createSiteAdminService(db, databaseSchema = sqliteSchemaBundle, databas
|
|
|
30863
30863
|
const themeCss = buildThemeStyle(activeTheme, appConfig.themeMode, fontOverrides);
|
|
30864
30864
|
const navItemList = await navItems.list();
|
|
30865
30865
|
const appleTouchKey = allSettings[SETTINGS_KEYS.SITE_FAVICON_APPLE_TOUCH];
|
|
30866
|
-
const { createExportService } = await import("./export-
|
|
30866
|
+
const { createExportService } = await import("./export-CR9Megtb.js").then((n) => n.n);
|
|
30867
30867
|
const exportService = createExportService({
|
|
30868
30868
|
collections,
|
|
30869
30869
|
media: mediaService,
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"name": "url"
|
|
147
147
|
},
|
|
148
148
|
"src/client-auth.ts": {
|
|
149
|
-
"file": "_assets/client-auth-
|
|
149
|
+
"file": "_assets/client-auth-DJ_5wx9N.js",
|
|
150
150
|
"name": "client-auth",
|
|
151
151
|
"src": "src/client-auth.ts",
|
|
152
152
|
"isEntry": true,
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
]
|
|
164
164
|
},
|
|
165
165
|
"src/client.ts": {
|
|
166
|
-
"file": "_assets/client-
|
|
166
|
+
"file": "_assets/client-CtAgWT8i.js",
|
|
167
167
|
"name": "client",
|
|
168
168
|
"src": "src/client.ts",
|
|
169
169
|
"isEntry": true,
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
]
|
|
859
859
|
},
|
|
860
860
|
"src/style.css": {
|
|
861
|
-
"file": "_assets/client-
|
|
861
|
+
"file": "_assets/client-BErXNT6k.css",
|
|
862
862
|
"name": "style",
|
|
863
863
|
"names": [
|
|
864
864
|
"style.css"
|