@emeryld/rrroutes-contract 2.7.7 → 2.7.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-contract",
3
3
  "description": "TypeScript contract definitions for RRRoutes",
4
- "version": "2.7.7",
4
+ "version": "2.7.9",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "main": "dist/index.cjs",
@@ -6,13 +6,14 @@
6
6
  <title>Finalized Leaves Viewer</title>
7
7
  <style>
8
8
  :root {
9
- --bg: #f6f8fc;
10
- --surface: #ffffff;
11
- --surface-2: #f1f4f9;
12
- --border: #d9e0eb;
13
- --text: #182033;
14
- --muted: #64708b;
15
- --accent: #1858c6;
9
+ --bg: #212121;
10
+ --surface: #2a2a2a;
11
+ --surface-2: #353535;
12
+ --border: #4a4a4a;
13
+ --text: #fffafa;
14
+ --muted: #c8c2c2;
15
+ --accent: #a764d3;
16
+ --schema-accent: #fbbd23;
16
17
  --ok: #1f8f4e;
17
18
  --danger: #d12b2b;
18
19
  }
@@ -29,8 +30,8 @@
29
30
  }
30
31
 
31
32
  mark {
32
- background: #ffec99;
33
- color: #402f00;
33
+ background: #00e5ff;
34
+ color: #0f1416;
34
35
  border-radius: 2px;
35
36
  padding: 0 1px;
36
37
  }
@@ -43,7 +44,7 @@
43
44
 
44
45
  .card {
45
46
  background: var(--surface);
46
- border: 1px solid #e7ecf4;
47
+ border: 1px solid var(--border);
47
48
  border-radius: 6px;
48
49
  padding: 12px;
49
50
  }
@@ -79,7 +80,8 @@
79
80
  border-radius: 4px;
80
81
  padding: 8px 10px;
81
82
  font: inherit;
82
- background: #fff;
83
+ background: var(--surface-2);
84
+ color: var(--text);
83
85
  }
84
86
 
85
87
  button {
@@ -87,7 +89,7 @@
87
89
  border-radius: 4px;
88
90
  padding: 7px 10px;
89
91
  font: inherit;
90
- background: #fff;
92
+ background: var(--surface-2);
91
93
  color: var(--text);
92
94
  cursor: pointer;
93
95
  }
@@ -122,10 +124,13 @@
122
124
  display: grid;
123
125
  gap: 4px;
124
126
  margin-top: 10px;
127
+ margin-left: 16px;
128
+ padding-left: 12px;
129
+ border-left: 2px solid var(--border);
125
130
  }
126
131
 
127
132
  .section {
128
- border-top: 1px solid #e8edf5;
133
+ border-top: 1px solid var(--border);
129
134
  padding: 10px 0 2px;
130
135
  }
131
136
 
@@ -147,7 +152,7 @@
147
152
  }
148
153
 
149
154
  .kv {
150
- border-bottom: 1px dashed #e2e8f2;
155
+ border-bottom: 1px dashed var(--border);
151
156
  padding: 4px 0 6px;
152
157
  }
153
158
 
@@ -178,11 +183,11 @@
178
183
  }
179
184
 
180
185
  .chip {
181
- border: 1px solid #e0e6f0;
186
+ border: 1px solid var(--border);
182
187
  border-radius: 4px;
183
188
  padding: 2px 6px;
184
189
  font-size: 12px;
185
- background: #f6f8fc;
190
+ background: var(--surface-2);
186
191
  }
187
192
 
188
193
  .chip.ok {
@@ -203,10 +208,10 @@
203
208
  justify-content: center;
204
209
  width: 18px;
205
210
  height: 18px;
206
- border: 1px solid #e0e6f0;
211
+ border: 1px solid var(--border);
207
212
  border-radius: 4px;
208
213
  font-size: 11px;
209
- background: #f6f8fc;
214
+ background: var(--surface-2);
210
215
  }
211
216
 
212
217
  .icon-badge.warn {
@@ -224,7 +229,7 @@
224
229
  }
225
230
 
226
231
  .schema-block {
227
- border-top: 1px solid #e8edf5;
232
+ border-top: 1px solid var(--border);
228
233
  padding: 8px 0 2px;
229
234
  margin-bottom: 6px;
230
235
  }
@@ -240,7 +245,7 @@
240
245
 
241
246
  .schema-tree details {
242
247
  margin-left: 12px;
243
- border-left: 1px solid #e8edf5;
248
+ border-left: 1px solid var(--border);
244
249
  padding-left: 8px;
245
250
  }
246
251
 
@@ -253,10 +258,14 @@
253
258
  }
254
259
 
255
260
  .schema-tree summary .tree-row {
256
- display: inline-grid;
261
+ display: grid;
257
262
  vertical-align: middle;
258
263
  }
259
264
 
265
+ .schema-tree > .tree-row {
266
+ padding-left: 18px;
267
+ }
268
+
260
269
  .tree-name {
261
270
  display: inline-flex;
262
271
  align-items: baseline;
@@ -274,11 +283,40 @@
274
283
  }
275
284
 
276
285
  .tree-pill {
277
- border: 1px solid #e0e6f0;
286
+ border: 1px solid var(--schema-accent);
278
287
  border-radius: 4px;
279
288
  padding: 1px 6px;
280
289
  font-size: 11px;
281
- background: #f2f5fa;
290
+ background: rgba(251, 189, 35, 0.15);
291
+ color: var(--schema-accent);
292
+ }
293
+
294
+ .schema-tree summary {
295
+ color: var(--schema-accent);
296
+ list-style: none;
297
+ display: flex;
298
+ align-items: center;
299
+ gap: 6px;
300
+ }
301
+
302
+ .schema-tree summary::-webkit-details-marker {
303
+ display: none;
304
+ }
305
+
306
+ .schema-tree summary::before {
307
+ content: '▸';
308
+ display: inline-block;
309
+ width: 12px;
310
+ flex: 0 0 12px;
311
+ text-align: center;
312
+ }
313
+
314
+ .schema-tree details[open] > summary::before {
315
+ content: '▾';
316
+ }
317
+
318
+ input[type='checkbox'] {
319
+ accent-color: var(--accent);
282
320
  }
283
321
 
284
322
  @media (max-width: 720px) {
@@ -730,6 +768,10 @@
730
768
  return `${prefix}${encodeURI(normalizedPath)}`
731
769
  }
732
770
 
771
+ function sourceDisplay(source) {
772
+ return ''
773
+ }
774
+
733
775
  function createSourceRow(key, source, engine) {
734
776
  const box = el('div', 'kv')
735
777
  const keyNode = el('div', 'k')
@@ -748,10 +790,10 @@
748
790
  keyLink.href = href
749
791
  keyLink.target = '_blank'
750
792
  keyLink.rel = 'noopener noreferrer'
751
- keyLink.textContent = key
793
+ keyLink.innerHTML = engine.highlight(key)
752
794
  keyNode.appendChild(keyLink)
753
795
 
754
- setHighlighted(valueNode, `${source.file}:${source.line}:${source.column}`, engine)
796
+ setHighlighted(valueNode, sourceDisplay(source), engine)
755
797
  box.appendChild(keyNode)
756
798
  box.appendChild(valueNode)
757
799
  return box