@emeryld/rrroutes-contract 2.7.6 → 2.7.8

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.6",
4
+ "version": "2.7.8",
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: #fbbd23;
34
+ color: #1f1f1f;
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
  }
@@ -125,7 +127,7 @@
125
127
  }
126
128
 
127
129
  .section {
128
- border-top: 1px solid #e8edf5;
130
+ border-top: 1px solid var(--border);
129
131
  padding: 10px 0 2px;
130
132
  }
131
133
 
@@ -147,7 +149,7 @@
147
149
  }
148
150
 
149
151
  .kv {
150
- border-bottom: 1px dashed #e2e8f2;
152
+ border-bottom: 1px dashed var(--border);
151
153
  padding: 4px 0 6px;
152
154
  }
153
155
 
@@ -156,6 +158,12 @@
156
158
  color: var(--muted);
157
159
  }
158
160
 
161
+ .kv .k a {
162
+ color: inherit;
163
+ text-decoration: underline;
164
+ text-underline-offset: 2px;
165
+ }
166
+
159
167
  .kv .v {
160
168
  margin-top: 2px;
161
169
  word-break: break-word;
@@ -172,11 +180,11 @@
172
180
  }
173
181
 
174
182
  .chip {
175
- border: 1px solid #e0e6f0;
183
+ border: 1px solid var(--border);
176
184
  border-radius: 4px;
177
185
  padding: 2px 6px;
178
186
  font-size: 12px;
179
- background: #f6f8fc;
187
+ background: var(--surface-2);
180
188
  }
181
189
 
182
190
  .chip.ok {
@@ -197,10 +205,10 @@
197
205
  justify-content: center;
198
206
  width: 18px;
199
207
  height: 18px;
200
- border: 1px solid #e0e6f0;
208
+ border: 1px solid var(--border);
201
209
  border-radius: 4px;
202
210
  font-size: 11px;
203
- background: #f6f8fc;
211
+ background: var(--surface-2);
204
212
  }
205
213
 
206
214
  .icon-badge.warn {
@@ -218,7 +226,7 @@
218
226
  }
219
227
 
220
228
  .schema-block {
221
- border-top: 1px solid #e8edf5;
229
+ border-top: 1px solid var(--border);
222
230
  padding: 8px 0 2px;
223
231
  margin-bottom: 6px;
224
232
  }
@@ -234,7 +242,7 @@
234
242
 
235
243
  .schema-tree details {
236
244
  margin-left: 12px;
237
- border-left: 1px solid #e8edf5;
245
+ border-left: 1px solid var(--border);
238
246
  padding-left: 8px;
239
247
  }
240
248
 
@@ -268,11 +276,20 @@
268
276
  }
269
277
 
270
278
  .tree-pill {
271
- border: 1px solid #e0e6f0;
279
+ border: 1px solid var(--schema-accent);
272
280
  border-radius: 4px;
273
281
  padding: 1px 6px;
274
282
  font-size: 11px;
275
- background: #f2f5fa;
283
+ background: rgba(251, 189, 35, 0.15);
284
+ color: var(--schema-accent);
285
+ }
286
+
287
+ .schema-tree summary {
288
+ color: var(--schema-accent);
289
+ }
290
+
291
+ input[type='checkbox'] {
292
+ accent-color: var(--accent);
276
293
  }
277
294
 
278
295
  @media (max-width: 720px) {
@@ -724,24 +741,33 @@
724
741
  return `${prefix}${encodeURI(normalizedPath)}`
725
742
  }
726
743
 
744
+ function sourceDisplay(source) {
745
+ return ''
746
+ }
747
+
727
748
  function createSourceRow(key, source, engine) {
728
749
  const box = el('div', 'kv')
729
- box.appendChild(el('div', 'k', key))
750
+ const keyNode = el('div', 'k')
730
751
  const valueNode = el('div', 'v mono')
731
752
 
732
753
  if (!source || !source.file) {
754
+ setHighlighted(keyNode, key, engine)
755
+ box.appendChild(keyNode)
733
756
  setHighlighted(valueNode, '—', engine)
734
757
  box.appendChild(valueNode)
735
758
  return box
736
759
  }
737
760
 
738
761
  const href = sourceHref(source)
739
- const link = document.createElement('a')
740
- link.href = href
741
- link.target = '_blank'
742
- link.rel = 'noopener noreferrer'
743
- link.textContent = `${source.file}:${source.line}:${source.column}`
744
- valueNode.appendChild(link)
762
+ const keyLink = document.createElement('a')
763
+ keyLink.href = href
764
+ keyLink.target = '_blank'
765
+ keyLink.rel = 'noopener noreferrer'
766
+ keyLink.textContent = key
767
+ keyNode.appendChild(keyLink)
768
+
769
+ setHighlighted(valueNode, sourceDisplay(source), engine)
770
+ box.appendChild(keyNode)
745
771
  box.appendChild(valueNode)
746
772
  return box
747
773
  }