baiten3d 0.1.4 → 0.1.6
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/adapters/react/index.js +1 -1
- package/dist/adapters/static/index.js +7 -6
- package/dist/baiten3d.css +1 -1
- package/dist/index.js +1 -1
- package/dist/{react-Db-pHQmz.js → react-3d5iYyXq.js} +400 -377
- package/dist/site/assets/index-SuXbBI38.css +1 -0
- package/dist/site/assets/{index-CIHITzQ1.js → index-rXZw4WQF.js} +1 -1
- package/dist/site/assets/magazine-rack-body-1uPYBmvv.avif +0 -0
- package/dist/site/assets/magazine-rack-guard-DdF4TW0G.avif +0 -0
- package/dist/site/index.html +2 -2
- package/package.json +1 -1
- package/dist/site/assets/index-Dp2bnXb2.css +0 -1
- package/dist/site/assets/magazine-rack-body-cPab8u_T.avif +0 -0
- package/dist/site/assets/magazine-rack-guard-CSSqp4XI.avif +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as ArchiveIndexView, r as MagazineViewer, n as NewspaperViewer, t as NewsstandView } from "../../react-
|
|
1
|
+
export { c as ArchiveIndexView, r as MagazineViewer, n as NewspaperViewer, t as NewsstandView } from "../../react-3d5iYyXq.js";
|
|
@@ -875,7 +875,7 @@ function K(e, t, n, r, i = !1, a) {
|
|
|
875
875
|
<h2>${e.page}面</h2>
|
|
876
876
|
${n}
|
|
877
877
|
</section>`;
|
|
878
|
-
}).join("\n"), l = t.editions.map((e) => `<li><a href="${o}${$(t.config.id)}/editions/${$(e.id)}/">${$(e.label)} — ${$(e.title)} (${$(e.publishedAt)})</a></li>`).join("\n"), u = i ? `${t.config.title} | ${e.site.title}` : `${t.config.title} ${n.label}(${n.title}) | ${e.site.title}`, d = t.config.description ?? n.leadArticle?.summary ?? `${t.config.title}の紙面`, f = `<main class="baiten-ssr-edition" data-pub="${$(t.config.id)}" data-theme="${$(t.config.theme)}" data-scene="${$(t.config.scene)}"
|
|
878
|
+
}).join("\n"), l = t.editions.map((e) => `<li><a href="${o}${$(t.config.id)}/editions/${$(e.id)}/">${$(e.label)} — ${$(e.title)} (${$(e.publishedAt)})</a></li>`).join("\n"), u = i ? `${t.config.title} | ${e.site.title}` : `${t.config.title} ${n.label}(${n.title}) | ${e.site.title}`, d = t.config.description ?? n.leadArticle?.summary ?? `${t.config.title}の紙面`, f = `<main class="baiten-ssr-edition" data-pub="${$(t.config.id)}" data-theme="${$(t.config.theme)}" data-scene="${$(t.config.scene)}">
|
|
879
879
|
<header>
|
|
880
880
|
<nav aria-label="紙面ナビゲーション">
|
|
881
881
|
<a href="${o}">売店へ戻る</a>
|
|
@@ -944,7 +944,7 @@ function q(e, t, n) {
|
|
|
944
944
|
});
|
|
945
945
|
}
|
|
946
946
|
function J(e, t, n, r, i) {
|
|
947
|
-
let a = Q(i.canonicalPath), o = pt(r.bodyHtml ?? `<p>${$(r.body)}</p>`, `${a}${t.config.id}/`), s = r.heroImage ? `<figure class="baiten-figure baiten-figure--image"><img src="${a}${$(t.config.id)}/${$(r.heroImage)}" alt="${$(r.heroCaption ?? r.title)}" width="960" height="717">${r.heroCaption ? `<figcaption>${$(r.heroCaption)}</figcaption>` : ""}</figure>` : "", c = t.allArticles.filter((e) => e.slug !== r.slug).slice(0, 3).map((e) => `<li><a href="${a}${$(t.config.id)}/${$(e.slug)}/">${$(e.title)}</a> <time datetime="${$(e.publishedAt)}">${$(e.publishedAt)}</time></li>`).join("\n"), l = `${r.title} | ${t.config.title}`, u = r.summary || `${t.config.title}の記事`, d = `<main class="baiten-ssr-article" data-pub="${$(t.config.id)}" data-slug="${$(r.slug)}" data-theme="${$(t.config.theme)}" data-scene="${$(t.config.scene)}"
|
|
947
|
+
let a = Q(i.canonicalPath), o = pt(r.bodyHtml ?? `<p>${$(r.body)}</p>`, `${a}${t.config.id}/`), s = r.heroImage ? `<figure class="baiten-figure baiten-figure--image"><img src="${a}${$(t.config.id)}/${$(r.heroImage)}" alt="${$(r.heroCaption ?? r.title)}" width="960" height="717">${r.heroCaption ? `<figcaption>${$(r.heroCaption)}</figcaption>` : ""}</figure>` : "", c = t.allArticles.filter((e) => e.slug !== r.slug).slice(0, 3).map((e) => `<li><a href="${a}${$(t.config.id)}/${$(e.slug)}/">${$(e.title)}</a> <time datetime="${$(e.publishedAt)}">${$(e.publishedAt)}</time></li>`).join("\n"), l = `${r.title} | ${t.config.title}`, u = r.summary || `${t.config.title}の記事`, d = `<main class="baiten-ssr-article" data-pub="${$(t.config.id)}" data-slug="${$(r.slug)}" data-theme="${$(t.config.theme)}" data-scene="${$(t.config.scene)}">
|
|
948
948
|
<nav aria-label="パンくずリスト">
|
|
949
949
|
<ol>
|
|
950
950
|
<li><a href="${a}">売店</a></li>
|
|
@@ -1012,20 +1012,21 @@ function Y(e, t) {
|
|
|
1012
1012
|
t.initialView.kind !== "stand" && e.runtimeAssets.morningBg ? `<link rel="preload" as="image" href="${n}${$(e.runtimeAssets.morningBg)}">` : "",
|
|
1013
1013
|
t.initialView.kind === "edition" && e.runtimeAssets.spreadPlate ? `<link rel="preload" as="image" media="(min-width: 768px)" fetchpriority="high" href="${n}${$(e.runtimeAssets.spreadPlate)}">` : "",
|
|
1014
1014
|
t.initialView.kind === "edition" && e.runtimeAssets.mobileSheetPlate ? `<link rel="preload" as="image" media="(max-width: 767px)" fetchpriority="high" href="${n}${$(e.runtimeAssets.mobileSheetPlate)}">` : "",
|
|
1015
|
-
e.runtimeAssets.styles.length > 0 ? e.runtimeAssets.styles.map((e) => `<link rel="stylesheet" href="${n}${$(e)}">`).join("\n ") : "
|
|
1016
|
-
].filter(Boolean).join("\n "), s = JSON.stringify(t.initialView).replace(/</g, "\\u003c"), c = e.runtimeAssets.scripts.map((e) => `<script type="module" src="${n}${$(e)}"><\/script>`).join("\n "), l = e.liveReload ? "<script>new EventSource('/__baiten_reload').onmessage=()=>location.reload();<\/script>" : "";
|
|
1015
|
+
e.runtimeAssets.styles.length > 0 ? e.runtimeAssets.styles.map((e) => `<link rel="stylesheet" href="${n}${$(e)}">`).join("\n ") : ""
|
|
1016
|
+
].filter(Boolean).join("\n "), s = JSON.stringify(t.initialView).replace(/</g, "\\u003c"), c = e.runtimeAssets.scripts.map((e) => `<script type="module" src="${n}${$(e)}"><\/script>`).join("\n "), l = e.runtimeAssets.scripts.length > 0 ? "<script>document.documentElement.classList.add(\"baiten-js-booting\");window.__baitenBootTimer=setTimeout(function(){document.documentElement.classList.remove(\"baiten-js-booting\");},3000);<\/script>" : "", u = e.liveReload ? "<script>new EventSource('/__baiten_reload').onmessage=()=>location.reload();<\/script>" : "";
|
|
1017
1017
|
return `<!DOCTYPE html>
|
|
1018
1018
|
<html lang="ja">
|
|
1019
1019
|
<head>
|
|
1020
1020
|
${o}
|
|
1021
|
-
<style>html,body{margin:0;padding:0;background:#141518;}</style>
|
|
1021
|
+
<style>html,body{margin:0;padding:0;background:#141518;color:#efece4;}#baiten-root>main[class^="baiten-ssr-"]{max-width:56rem;margin:0 auto;padding:2rem 1.25rem;color:#efece4;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;line-height:1.85;}#baiten-root>main[class^="baiten-ssr-"] a{color:#e6d7b9;}#baiten-root>main[class^="baiten-ssr-"] img{max-width:100%;height:auto;}#baiten-root>main[class^="baiten-ssr-"] .baiten-figure{margin:1.25rem 0;padding:1rem;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);overflow-x:auto;}html.baiten-js-booting #baiten-root>main[class^="baiten-ssr-"]{opacity:0;pointer-events:none;}</style>
|
|
1022
|
+
${l}
|
|
1022
1023
|
</head>
|
|
1023
1024
|
<body>
|
|
1024
1025
|
<div id="baiten-root" data-initial-view="${$(s)}">
|
|
1025
1026
|
${t.body}
|
|
1026
1027
|
</div>
|
|
1027
1028
|
${c}
|
|
1028
|
-
${
|
|
1029
|
+
${u}
|
|
1029
1030
|
</body>
|
|
1030
1031
|
</html>
|
|
1031
1032
|
`;
|