@openpresentation/opf-editor 0.26.3 → 0.26.5

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/styles.css CHANGED
@@ -3639,6 +3639,13 @@ input.opf-lx-input[data-field="max"] { font-family: var(--opf-ui-mono); font-siz
3639
3639
  opacity: 0.85;
3640
3640
  }
3641
3641
 
3642
+ :root :is(.opf-ui, .opf-json, .opf-code) .cm-tooltip-autocomplete > .opf-completion-footer {
3643
+ padding: 4px 8px;
3644
+ font: 12px/1.4 var(--opf-ui-font);
3645
+ color: var(--opf-ui-muted-fg);
3646
+ border-top: 1px solid var(--opf-ui-border);
3647
+ }
3648
+
3642
3649
  :root :is(.opf-ui, .opf-json, .opf-code) .cm-tooltip-autocomplete .cm-completionMatchedText {
3643
3650
  font-weight: 600;
3644
3651
  text-decoration: none;
@@ -4268,6 +4275,25 @@ input.opf-lx-input[data-field="max"] { font-family: var(--opf-ui-mono); font-siz
4268
4275
  cursor: pointer;
4269
4276
  }
4270
4277
  .opf-source-finding-fix:hover { background: var(--opf-ui-muted); }
4278
+ .opf-source-finding-details {
4279
+ min-height: 22px;
4280
+ padding: 0 8px;
4281
+ border: 1px solid transparent;
4282
+ border-radius: var(--opf-ui-radius-sm);
4283
+ background: transparent;
4284
+ color: var(--opf-ui-muted-fg);
4285
+ font-size: 12px;
4286
+ text-decoration: underline;
4287
+ cursor: pointer;
4288
+ }
4289
+ .opf-source-finding-details:hover { background: var(--opf-ui-muted); }
4290
+ .opf-source-finding-details[aria-expanded="true"] { text-decoration: none; background: var(--opf-ui-muted); }
4291
+ .opf-source-finding-explain { display: flex; flex-direction: column; gap: 4px; margin: 0 6px 6px 28px; padding: 6px 8px; border-left: 2px solid var(--opf-ui-border); color: var(--opf-ui-fg); font-size: 12px; }
4292
+ .opf-source-finding-explain[hidden] { display: none; }
4293
+ .opf-source-finding-explain-line { margin: 0; overflow-wrap: anywhere; }
4294
+ .opf-source-finding-explain-example { font: 11px var(--opf-ui-mono); overflow-wrap: anywhere; white-space: pre-wrap; }
4295
+ .opf-source-finding-explain-example code { padding: 1px 4px; border-radius: var(--opf-ui-radius-sm); background: var(--opf-ui-muted); }
4296
+ .opf-source-finding-explain-link { color: var(--opf-ui-muted-fg); }
4271
4297
  .opf-source-finding-more { padding: 3px 6px; color: var(--opf-ui-muted-fg); font-size: 12px; }
4272
4298
 
4273
4299
  .opf-source-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@@ -4277,6 +4303,29 @@ input.opf-lx-input[data-field="max"] { font-family: var(--opf-ui-mono); font-siz
4277
4303
  .opf-source *::before { transition: none !important; }
4278
4304
  }
4279
4305
 
4306
+ /* Canonicalize with OPF: the question before a rewrite that drops comments. */
4307
+ .opf-source-confirm {
4308
+ display: flex;
4309
+ flex-wrap: wrap;
4310
+ align-items: center;
4311
+ gap: 8px 10px;
4312
+ flex: none;
4313
+ padding: 8px 14px;
4314
+ border-bottom: 1px solid var(--opf-ui-code-border);
4315
+ background: color-mix(in srgb, var(--opf-ui-warn) 8%, transparent);
4316
+ }
4317
+ .opf-source-confirm-text { margin: 0; flex: 1 1 18em; min-width: 0; }
4318
+ .opf-source-confirm button {
4319
+ height: var(--_h);
4320
+ padding: 0 12px;
4321
+ border: 1px solid var(--opf-ui-code-border);
4322
+ border-radius: var(--opf-ui-radius);
4323
+ background: var(--opf-ui-muted-2);
4324
+ cursor: pointer;
4325
+ }
4326
+ .opf-source-confirm button:hover { background: var(--opf-ui-muted); }
4327
+ .opf-source-confirm-accept { font-weight: 600; }
4328
+
4280
4329
  /* thumbnails.css */
4281
4330
  /* Thumbnail strip (RR-98). Uses only --opf-ui-* tokens. */
4282
4331
  .opf-thumbs {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpresentation/opf-editor",
3
- "version": "0.26.3",
3
+ "version": "0.26.5",
4
4
  "description": "Embeddable local OPF editor primitives built on the deterministic renderer.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -283,10 +283,10 @@
283
283
  "@lezer/highlight": "1.2.5",
284
284
  "jsonc-parser": "3.3.1",
285
285
  "yaml": "^2.9.1",
286
- "@openpresentation/opf": "^0.26.3"
286
+ "@openpresentation/opf": "^0.26.5"
287
287
  },
288
288
  "peerDependencies": {
289
- "@openpresentation/opf-render": "^0.26.3"
289
+ "@openpresentation/opf-render": "^0.26.5"
290
290
  },
291
291
  "peerDependenciesMeta": {
292
292
  "@openpresentation/opf-render": {
@@ -345,9 +345,9 @@
345
345
  "pdf-lib": "1.17.1",
346
346
  "pdfjs-dist": "6.4.299",
347
347
  "playwright": "1.64.0",
348
- "@openpresentation/gallery": "0.26.3",
349
- "@openpresentation/opf-pptx": "0.26.3",
350
- "@openpresentation/opf-render": "0.26.3"
348
+ "@openpresentation/gallery": "0.26.5",
349
+ "@openpresentation/opf-render": "0.26.5",
350
+ "@openpresentation/opf-pptx": "0.26.5"
351
351
  },
352
352
  "scripts": {
353
353
  "build": "node scripts/build.mjs",
@@ -386,6 +386,9 @@
386
386
  "test:source-pane-browser": "node test/source-pane-browser.mjs",
387
387
  "test:source-keyboard-browser": "node test/source-keyboard-browser.mjs",
388
388
  "test:source-keyboard-json-browser": "node test/source-keyboard-json-browser.mjs",
389
+ "test:source-keyboard-yaml-browser": "node test/source-keyboard-yaml-browser.mjs",
390
+ "test:source-keyboard-markdown-browser": "node test/source-keyboard-markdown-browser.mjs",
391
+ "test:source-diagnostics-browser": "node test/source-diagnostics-browser.mjs",
389
392
  "test:layout-editor-browser": "node test/layout-editor-browser.mjs",
390
393
  "test:export-license-browser": "node test/export-license-browser.mjs",
391
394
  "test:chart-options-browser": "node test/chart-options-browser.mjs",
@@ -395,5 +398,5 @@
395
398
  "test:export-menu-browser": "node test/export-menu-browser.mjs",
396
399
  "test:agent-handoff-browser": "node test/agent-handoff-browser.mjs"
397
400
  },
398
- "gitHead": "570ebe0c803e9613f6b9f9fcca8160b38b16a826"
401
+ "gitHead": "750d120e715b6c4930906aa71322d092d057c58d"
399
402
  }