@lingjingai/script-editor 0.1.14 → 0.1.16
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/INTEGRATION.md +2 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +195 -168
- package/dist/index.js.map +1 -1
- package/dist/style.css +16 -2
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -350,9 +350,16 @@
|
|
|
350
350
|
|
|
351
351
|
/* ── Top bar ─────────────────────────────────────────────────────────── */
|
|
352
352
|
.lj-se-topbar { display: flex; height: 36px; flex-shrink: 0; align-items: center; gap: 8px; border-bottom: 1px solid var(--lj-se-border); padding: 0 16px; background: var(--lj-se-bg); }
|
|
353
|
-
.lj-se-topbar-left { min-width: 0; flex: 1; }
|
|
353
|
+
.lj-se-topbar-left { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 8px; overflow: hidden; }
|
|
354
354
|
.lj-se-topbar-right { display: flex; align-items: center; gap: 8px; }
|
|
355
355
|
.lj-se-topbar-undo { display: inline-flex; gap: 2px; }
|
|
356
|
+
/* script title — the document name, the prominent thing on the left. As an
|
|
357
|
+
EditableText it carries this class on both the display span and the <input>. */
|
|
358
|
+
.lj-se-topbar-title { font-size: 14px; font-weight: 600; color: var(--lj-se-fg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
|
|
359
|
+
.lj-se-topbar-title--ro { cursor: default; }
|
|
360
|
+
.lj-se-topbar-ctx { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; }
|
|
361
|
+
.lj-se-topbar-sep { color: var(--lj-se-border); font-size: 13px; }
|
|
362
|
+
.lj-se-topbar-actions { display: inline-flex; align-items: center; gap: 4px; }
|
|
356
363
|
.lj-se-ctx { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
|
|
357
364
|
.lj-se-ctx-kicker { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lj-se-muted-fg); }
|
|
358
365
|
.lj-se-ctx-name { font-size: 12px; font-weight: 500; color: var(--lj-se-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -543,8 +550,15 @@
|
|
|
543
550
|
.lj-se-asian-narration { font-style: italic; opacity: 0.8; }
|
|
544
551
|
.lj-se-asian-cueline.is-inner { font-style: italic; opacity: 0.92; }
|
|
545
552
|
.lj-se-asian-speaker { flex-shrink: 0; font-weight: 600; }
|
|
546
|
-
|
|
553
|
+
/* As a flex item, a native <select> sizes to its widest <option> (the widest
|
|
554
|
+
actor name) — leaving a gap before the emotion tag on short names. field-sizing
|
|
555
|
+
shrinks it to the SELECTED option so the tag hugs the name. */
|
|
556
|
+
.lj-se-asian-speaker--select { display: inline; field-sizing: content; max-width: 16rem; }
|
|
547
557
|
.lj-se-asian-tag { flex-shrink: 0; margin-left: 2px; font-style: italic; opacity: 0.45; }
|
|
558
|
+
/* the emotion editor is nested INSIDE the tag (not a direct cueline child), so the
|
|
559
|
+
"fill the rest of the line" rule below doesn't reach it — without this it would
|
|
560
|
+
inherit width:100% and blow the ( ) parens onto their own lines while editing. */
|
|
561
|
+
.lj-se-asian-tag .lj-se-editing { width: auto; field-sizing: content; min-width: 2ch; max-width: 14ch; }
|
|
548
562
|
.lj-se-asian-colon { flex-shrink: 0; margin: 0 2px; }
|
|
549
563
|
.lj-se-asian-narration .lj-se-editable { display: inline; }
|
|
550
564
|
/* the content editor (span in display, textarea in edit) fills the rest of the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingjingai/script-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
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",
|