@majeanson/lac 3.4.1 โ†’ 3.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/index.mjs CHANGED
@@ -21014,10 +21014,10 @@ function generateUserGuide(features, projectName) {
21014
21014
  const draftCount = pages.filter((p) => p.feature.status === "draft").length;
21015
21015
  const skippedCount = features.length - guideFeatures.length;
21016
21016
  function navItem(p) {
21017
- return `<div class="nav-item" data-id="${esc(p.id)}" onclick="showPage('${esc(p.id)}')">
21017
+ return `<a class="nav-item" data-id="${esc(p.id)}" href="#${esc(p.id)}">
21018
21018
  <div class="nav-item-dot ${esc(p.feature.status)}"></div>
21019
21019
  <span class="nav-item-name">${esc(p.feature.title)}</span>
21020
- </div>`;
21020
+ </a>`;
21021
21021
  }
21022
21022
  const navGroupsHtml = domainOrder.map((domain) => {
21023
21023
  const domainPages = pages.filter((p) => p.domain === domain);
@@ -21034,13 +21034,13 @@ function generateUserGuide(features, projectName) {
21034
21034
  </div>
21035
21035
  </div>`;
21036
21036
  }).join("\n ");
21037
- const tocCardsHtml = pages.map((p) => `<div class="toc-card" onclick="showPage('${esc(p.id)}')">
21037
+ const tocCardsHtml = pages.map((p) => `<a class="toc-card" href="#${esc(p.id)}">
21038
21038
  <div class="toc-pip" style="background:${p.color}"></div>
21039
21039
  <div>
21040
21040
  <div class="toc-card-title">${esc(p.feature.title)}</div>
21041
21041
  <div class="toc-card-sub">${esc(p.domain.replace(/-/g, " "))} ยท <span style="color:var(--status-${esc(p.feature.status)})">${esc(p.feature.status)}</span></div>
21042
21042
  </div>
21043
- </div>`).join("\n ");
21043
+ </a>`).join("\n ");
21044
21044
  const statCardsHtml = [
21045
21045
  {
21046
21046
  num: pages.length,
@@ -21095,6 +21095,10 @@ function generateUserGuide(features, projectName) {
21095
21095
  ${f.featureKey ? `<span class="feature-key-label">${esc(f.featureKey)}</span>` : ""}
21096
21096
  ${tags}
21097
21097
  </div>
21098
+ ${f.featureKey ? `<div class="cross-links">
21099
+ <a class="cross-link" href="./lac-wiki.html#${esc(f.featureKey)}">๐Ÿ—‚๏ธ Wiki</a>
21100
+ <a class="cross-link" href="./lac-raw.html#${esc(f.featureKey)}">๐Ÿ”ฉ Raw</a>
21101
+ </div>` : ""}
21098
21102
  <div class="guide-block">
21099
21103
  <div class="guide-block-label">How to use</div>
21100
21104
  <div class="guide-text">${guideHtml}</div>
@@ -21209,6 +21213,7 @@ body {
21209
21213
  .nav-item {
21210
21214
  display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 24px;
21211
21215
  cursor: pointer; border-left: 2px solid transparent; transition: background 0.1s;
21216
+ text-decoration: none;
21212
21217
  }
21213
21218
  .nav-item:hover { background: var(--bg-hover); }
21214
21219
  .nav-item.active { background: var(--bg-active); border-left-color: var(--accent); }
@@ -21239,7 +21244,7 @@ body {
21239
21244
  .stat-lbl { font-size: 11px; color: var(--text-soft); margin-top: 4px; }
21240
21245
  .section-title { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
21241
21246
  .toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
21242
- .toc-card { padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; display: flex; align-items: flex-start; gap: 10px; }
21247
+ .toc-card { padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; display: flex; align-items: flex-start; gap: 10px; text-decoration: none; }
21243
21248
  .toc-card:hover { background: var(--bg-hover); border-color: var(--text-soft); }
21244
21249
  .toc-pip { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
21245
21250
  .toc-card-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
@@ -21250,7 +21255,10 @@ body {
21250
21255
  .feature-page.hidden, .home-page.hidden { display: none; }
21251
21256
  .feature-domain-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
21252
21257
  .feature-title { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 12px; }
21253
- .feature-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
21258
+ .feature-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
21259
+ .cross-links { display: flex; gap: 8px; margin-bottom: 24px; }
21260
+ .cross-link { font-family: var(--mono); font-size: 11px; color: var(--text-soft); text-decoration: none; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); }
21261
+ .cross-link:hover { color: var(--accent); border-color: var(--accent); }
21254
21262
  .status-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-family: var(--mono); font-size: 10px; border: 1px solid; }
21255
21263
  .status-badge.frozen { color: var(--status-frozen); border-color: rgba(91,130,204,0.4); background: var(--status-frozen-bg); }
21256
21264
  .status-badge.active { color: var(--status-active); border-color: rgba(74,173,114,0.4); background: var(--status-active-bg); }