@lingjingai/script-editor 0.1.18 → 0.1.20
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 +3 -2
- package/dist/index.d.ts +1 -6
- package/dist/index.js +345 -150
- package/dist/index.js.map +1 -1
- package/dist/style.css +9 -6
- package/package.json +6 -2
package/dist/style.css
CHANGED
|
@@ -263,8 +263,15 @@
|
|
|
263
263
|
.lj-se-main { display: flex; min-width: 0; flex: 1; flex-direction: column; height: 100%; overflow: hidden; }
|
|
264
264
|
.lj-se-canvas { position: relative; min-height: 0; flex: 1; overflow: hidden; display: flex; }
|
|
265
265
|
.lj-se-canvas > .lj-se-stream,
|
|
266
|
-
.lj-se-canvas > .lj-se-worldview,
|
|
267
266
|
.lj-se-canvas > .lj-se-entity { flex: 1; }
|
|
267
|
+
.lj-se-search { position: absolute; top: 20px; right: 44px; z-index: 35; display: inline-flex; align-items: center; gap: 4px; height: 32px; border: 1px solid var(--lj-se-border); border-radius: 6px; background: var(--lj-se-popover); padding: 0 6px 0 9px; color: var(--lj-se-muted-fg); box-shadow: 0 8px 24px -12px oklch(0 0 0 / 0.24), 0 2px 8px -4px oklch(0 0 0 / 0.12); }
|
|
268
|
+
.lj-se-search-input { width: 220px; min-width: 0; border: 0; outline: none; background: transparent; color: var(--lj-se-fg); font: inherit; font-size: 13px; }
|
|
269
|
+
.lj-se-search-input::placeholder { color: var(--lj-se-muted-fg); }
|
|
270
|
+
.lj-se-search-count { min-width: 38px; text-align: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; font-variant-numeric: tabular-nums; color: var(--lj-se-muted-fg); }
|
|
271
|
+
.lj-se-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--lj-se-muted-fg); cursor: pointer; padding: 0; }
|
|
272
|
+
.lj-se-search-btn:hover { background: var(--lj-se-accent); color: var(--lj-se-fg); }
|
|
273
|
+
.lj-se-search-btn:disabled { opacity: 0.35; cursor: default; }
|
|
274
|
+
.lj-se-search-hit { border-radius: 3px; background: oklch(0.88 0.15 90 / 0.62); color: inherit; padding: 0 1px; }
|
|
268
275
|
|
|
269
276
|
/* small ghost icon button (change-type, undo/redo) */
|
|
270
277
|
.lj-se-rowbtn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--lj-se-muted-fg); cursor: pointer; border-radius: 6px; padding: 4px; }
|
|
@@ -275,6 +282,7 @@
|
|
|
275
282
|
.lj-se-select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: none; padding: 0; font: inherit; color: inherit; cursor: pointer; max-width: 100%; border-radius: 3px; }
|
|
276
283
|
.lj-se-select:hover { text-decoration: underline dotted; text-underline-offset: 3px; }
|
|
277
284
|
.lj-se-select:disabled { cursor: default; text-decoration: none; }
|
|
285
|
+
.lj-se-select.is-search-hit { background: oklch(0.88 0.15 90 / 0.42); box-shadow: 0 0 0 2px oklch(0.88 0.15 90 / 0.42); }
|
|
278
286
|
.lj-se-select option { color: var(--lj-se-fg); background: var(--lj-se-popover); }
|
|
279
287
|
.is-orphan { color: var(--lj-se-destructive); }
|
|
280
288
|
|
|
@@ -364,7 +372,6 @@
|
|
|
364
372
|
.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); }
|
|
365
373
|
.lj-se-ctx-name { font-size: 12px; font-weight: 500; color: var(--lj-se-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
366
374
|
.lj-se-ctx-meta { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--lj-se-muted-fg); }
|
|
367
|
-
|
|
368
375
|
/* ── Format toggle ───────────────────────────────────────────────────── */
|
|
369
376
|
.lj-se-format { display: inline-flex; align-items: center; gap: 2px; border-radius: 6px; padding: 2px; font-size: 11px; }
|
|
370
377
|
.lj-se-format-btn { height: 24px; border: 0; background: transparent; border-radius: 4px; padding: 0 8px; line-height: 1; cursor: pointer; font: inherit; font-size: 11px; color: color-mix(in oklab, var(--lj-se-muted-fg) 65%, transparent); }
|
|
@@ -614,10 +621,6 @@
|
|
|
614
621
|
.lj-se-quote-btn svg { width: 13px; height: 13px; color: var(--lj-se-muted-fg); }
|
|
615
622
|
.lj-se-quote-btn:hover svg { color: var(--lj-se-fg); }
|
|
616
623
|
|
|
617
|
-
/* ── Stream: worldview block (inline, not full-height) ───────────────── */
|
|
618
|
-
.lj-se-stream-worldview { display: flex; justify-content: center; padding: 16px 24px 0; }
|
|
619
|
-
.lj-se-stream-worldview .lj-se-worldview { height: auto; overflow: visible; padding: 24px 0; max-width: 820px; }
|
|
620
|
-
|
|
621
624
|
/* ── Asset group header ──────────────────────────────────────────────── */
|
|
622
625
|
.lj-se-assetgroup-head { display: flex; justify-content: center; padding: 24px 24px 8px; }
|
|
623
626
|
.lj-se-assetgroup-title { width: 100%; max-width: 820px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--lj-se-fg); border-bottom: 1px solid var(--lj-se-border); padding-bottom: 6px; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingjingai/script-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
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",
|
|
@@ -13,10 +13,14 @@
|
|
|
13
13
|
],
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
+
"development": "./src/index.ts",
|
|
16
17
|
"types": "./dist/index.d.ts",
|
|
17
18
|
"default": "./dist/index.js"
|
|
18
19
|
},
|
|
19
|
-
"./style.css":
|
|
20
|
+
"./style.css": {
|
|
21
|
+
"development": "./src/styles.css",
|
|
22
|
+
"default": "./dist/style.css"
|
|
23
|
+
}
|
|
20
24
|
},
|
|
21
25
|
"main": "./dist/index.js",
|
|
22
26
|
"types": "./dist/index.d.ts",
|