@lingjingai/script-editor 0.0.1 → 0.1.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/index.d.ts +44 -7
- package/dist/index.js +146 -18
- package/dist/index.js.map +1 -1
- package/dist/style.css +12 -0
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -386,6 +386,18 @@
|
|
|
386
386
|
.lj-se-capsule-accept { font-weight: 500; color: var(--lj-se-fg); }
|
|
387
387
|
.lj-se-capsule-accept:hover { background: var(--lj-se-muted); }
|
|
388
388
|
.lj-se-capsule-reject:disabled, .lj-se-capsule-accept:disabled { opacity: 0.4; cursor: default; }
|
|
389
|
+
.lj-se-capsule-warn { font-size: 11px; padding: 1px 6px; border-radius: 999px; color: oklch(0.55 0.14 70); background: color-mix(in oklab, oklch(0.7 0.16 70) 16%, transparent); }
|
|
390
|
+
|
|
391
|
+
/* ── per-scene diff bar (when host supports onPatchBaseline) ───────────────── */
|
|
392
|
+
.lj-se-scenediff { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 4px 6px 4px 10px; border-radius: 8px; background: color-mix(in oklab, oklch(0.7 0.16 70) 9%, transparent); }
|
|
393
|
+
.lj-se-scenediff-spacer { flex: 1 1 auto; }
|
|
394
|
+
.lj-se-scenediff-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: oklch(0.5 0.14 70); }
|
|
395
|
+
.lj-se-scenediff-tag.is-added { color: oklch(0.52 0.15 150); }
|
|
396
|
+
.lj-se-scenediff-reject, .lj-se-scenediff-accept { border: 0; background: transparent; border-radius: 6px; padding: 3px 12px; font-size: 12px; font: inherit; cursor: pointer; }
|
|
397
|
+
.lj-se-scenediff-reject { color: var(--lj-se-muted-fg); }
|
|
398
|
+
.lj-se-scenediff-reject:hover { background: color-mix(in oklab, var(--lj-se-destructive) 12%, transparent); color: var(--lj-se-destructive); }
|
|
399
|
+
.lj-se-scenediff-accept { font-weight: 500; color: var(--lj-se-fg); background: var(--lj-se-bg); box-shadow: inset 0 0 0 1px var(--lj-se-border); }
|
|
400
|
+
.lj-se-scenediff-accept:hover { background: var(--lj-se-muted); }
|
|
389
401
|
|
|
390
402
|
/* ── Worldview view ──────────────────────────────────────────────────── */
|
|
391
403
|
.lj-se-worldview { height: 100%; overflow-y: auto; padding: 24px; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingjingai/script-editor",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.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",
|