@lingjingai/script-editor 0.1.28 → 0.2.0

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/style.css CHANGED
@@ -344,6 +344,11 @@
344
344
  .lj-se-tocitem-meta { flex-shrink: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; color: var(--lj-se-muted-fg); }
345
345
  .lj-se-toc-dot { user-select: none; padding-right: 4px; color: var(--lj-se-border); }
346
346
  .lj-se-toc-empty { padding: 4px 8px; font-size: 12px; color: var(--lj-se-muted-fg); }
347
+ /* 背景资产折叠行 */
348
+ .lj-se-toc-fold { display: flex; width: 100%; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 6px; padding: 4px 8px 4px 20px; text-align: left; font: inherit; font-size: 12px; color: var(--lj-se-muted-fg); cursor: pointer; }
349
+ .lj-se-toc-fold:hover { background: color-mix(in oklab, var(--lj-se-accent) 40%, transparent); }
350
+ .lj-se-toc-fold-chev { flex-shrink: 0; transition: transform 0.15s; }
351
+ .lj-se-toc-fold.is-open .lj-se-toc-fold-chev { transform: rotate(90deg); }
347
352
 
348
353
  .lj-se-eprow { display: flex; width: 100%; align-items: center; gap: 6px; border-radius: 6px; padding: 4px 8px 4px 20px; font-size: 13px; font-weight: 500; }
349
354
  .lj-se-eprow:hover { background: color-mix(in oklab, var(--lj-se-accent) 50%, transparent); }
@@ -638,6 +643,11 @@
638
643
  .lj-se-assetcard-id { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--lj-se-muted-fg); }
639
644
  .lj-se-assetcard-actions { margin-left: auto; display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; }
640
645
  .lj-se-assetcard-badge { border-radius: 4px; background: var(--lj-se-muted); padding: 2px 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; color: var(--lj-se-muted-fg); }
646
+ /* importance 互转 chip: 主要=accent 实心, 背景=muted 描边 */
647
+ .lj-se-assetcard-imp { border: 1px solid transparent; border-radius: 4px; background: color-mix(in oklab, var(--lj-se-accent) 60%, transparent); padding: 2px 8px; font-size: 10.5px; color: var(--lj-se-fg); cursor: pointer; }
648
+ .lj-se-assetcard-imp.is-bg { background: transparent; border-color: var(--lj-se-border); color: var(--lj-se-muted-fg); }
649
+ .lj-se-assetcard-imp:hover:not(:disabled) { border-color: var(--lj-se-accent); }
650
+ .lj-se-assetcard-imp:disabled { cursor: default; opacity: 0.7; }
641
651
  .lj-se-assetcard-del { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 6px; color: var(--lj-se-muted-fg); cursor: pointer; }
642
652
  .lj-se-assetcard-del:hover { background: color-mix(in oklab, var(--lj-se-destructive) 10%, transparent); color: var(--lj-se-destructive); }
643
653
  .lj-se-assetcard-desc { margin-top: 6px; max-width: 70ch; font-size: 13px; line-height: 1.6; color: var(--lj-se-muted-fg); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/script-editor",
3
- "version": "0.1.28",
3
+ "version": "0.2.0",
4
4
  "description": "Pure, business-decoupled screenplay (剧本) editor: value:ScriptProject + onEdit(patch); dual-format (standard/asian), virtualized single-stream, click-to-edit; bundled CSS, business injected via adapters.",
5
5
  "license": "MIT",
6
6
  "type": "module",