juxscript 1.1.319 → 1.1.320
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeparser.d.ts","sourceRoot":"","sources":["../../../lib/utils/codeparser.ts"],"names":[],"mappings":"AA2DA,MAAM,WAAW,UAAU;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOxC;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAqB,GAAG,UAAU,EAAE,CAQrF;AAuPD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAEnE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"codeparser.d.ts","sourceRoot":"","sources":["../../../lib/utils/codeparser.ts"],"names":[],"mappings":"AA2DA,MAAM,WAAW,UAAU;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOxC;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAqB,GAAG,UAAU,EAAE,CAQrF;AAuPD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAEnE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAyD9C;;;;;;;AAED,wBAKE"}
|
|
@@ -320,16 +320,17 @@ export function renderLineWithTokens(parsedLine) {
|
|
|
320
320
|
*/
|
|
321
321
|
export function getSyntaxHighlightCSS() {
|
|
322
322
|
return `
|
|
323
|
-
/* Semantic Code Highlighting */
|
|
324
323
|
.jux-code {
|
|
325
|
-
font-family: '
|
|
326
|
-
font-size:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
324
|
+
font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
|
|
325
|
+
font-size: 14px;
|
|
326
|
+
font-weight: 500;
|
|
327
|
+
line-height: 1.7;
|
|
328
|
+
background: hsl(var(--muted, 0 0% 96%));
|
|
329
|
+
color: hsl(var(--foreground, 0 0% 9%));
|
|
330
|
+
border: 1px solid hsl(var(--border, 0 0% 89.8%));
|
|
331
|
+
border-radius: var(--radius, 6px);
|
|
331
332
|
overflow: hidden;
|
|
332
|
-
margin: 0
|
|
333
|
+
margin: 0;
|
|
333
334
|
padding: 1rem;
|
|
334
335
|
overflow-x: auto;
|
|
335
336
|
}
|
|
@@ -339,40 +340,40 @@ export function getSyntaxHighlightCSS() {
|
|
|
339
340
|
.jux-code-line {
|
|
340
341
|
display: flex;
|
|
341
342
|
align-items: flex-start;
|
|
342
|
-
min-height: 1.
|
|
343
|
+
min-height: 1.7em;
|
|
343
344
|
}
|
|
344
345
|
.jux-code-line:hover {
|
|
345
|
-
background-color:
|
|
346
|
+
background-color: hsl(var(--accent, 0 0% 93%) / 0.5);
|
|
346
347
|
}
|
|
347
348
|
.jux-code-line-number {
|
|
348
349
|
display: inline-block;
|
|
349
350
|
min-width: 2.5rem;
|
|
350
351
|
text-align: right;
|
|
351
352
|
padding-right: 1rem;
|
|
352
|
-
color:
|
|
353
|
+
color: hsl(var(--muted-foreground, 0 0% 45%));
|
|
353
354
|
user-select: none;
|
|
354
355
|
flex-shrink: 0;
|
|
356
|
+
font-size: 12px;
|
|
355
357
|
}
|
|
356
358
|
.jux-code-line-content {
|
|
357
359
|
flex: 1;
|
|
358
|
-
color: #d4d4d4;
|
|
359
360
|
white-space: pre;
|
|
360
361
|
}
|
|
361
362
|
|
|
362
|
-
/*
|
|
363
|
-
.token-control { color:
|
|
364
|
-
.token-declaration { color:
|
|
365
|
-
.token-operator-keyword { color:
|
|
366
|
-
.token-special { color:
|
|
367
|
-
.token-jux { color:
|
|
368
|
-
.token-number { color:
|
|
369
|
-
.token-string { color:
|
|
370
|
-
.token-comment { color:
|
|
371
|
-
.token-function { color:
|
|
372
|
-
.token-identifier { color:
|
|
373
|
-
.token-structural { color:
|
|
374
|
-
.token-delimiter { color:
|
|
375
|
-
.token-operator { color:
|
|
363
|
+
/* Token colors — shadcn-aware light theme */
|
|
364
|
+
.token-control { color: hsl(262 83% 50%); font-weight: 700; }
|
|
365
|
+
.token-declaration { color: hsl(221 83% 45%); font-weight: 700; }
|
|
366
|
+
.token-operator-keyword { color: hsl(0 68% 45%); font-weight: 600; }
|
|
367
|
+
.token-special { color: hsl(35 80% 40%); font-weight: 600; }
|
|
368
|
+
.token-jux { color: hsl(187 70% 35%); font-weight: 700; }
|
|
369
|
+
.token-number { color: hsl(25 85% 45%); font-weight: 500; }
|
|
370
|
+
.token-string { color: hsl(142 60% 35%); font-weight: 500; }
|
|
371
|
+
.token-comment { color: hsl(var(--muted-foreground, 0 0% 45%)); font-style: italic; font-weight: 400; }
|
|
372
|
+
.token-function { color: hsl(221 83% 45%); font-weight: 600; }
|
|
373
|
+
.token-identifier { color: hsl(var(--foreground, 0 0% 9%)); font-weight: 500; }
|
|
374
|
+
.token-structural { color: hsl(var(--foreground, 0 0% 9%)); font-weight: 700; }
|
|
375
|
+
.token-delimiter { color: hsl(var(--muted-foreground, 0 0% 45%)); font-weight: 500; }
|
|
376
|
+
.token-operator { color: hsl(187 70% 35%); font-weight: 600; }
|
|
376
377
|
`;
|
|
377
378
|
}
|
|
378
379
|
export default {
|