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,CAwD9C;;;;;;;AAED,wBAKE"}
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: 'Consolas', 'Monaco', 'SF Mono', 'Fira Code', monospace;
326
- font-size: 13px;
327
- line-height: 1.6;
328
- background: #1e1e1e;
329
- color: #d4d4d4;
330
- border-radius: 8px;
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.5rem 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.6em;
343
+ min-height: 1.7em;
343
344
  }
344
345
  .jux-code-line:hover {
345
- background-color: rgba(255, 255, 255, 0.03);
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: #555;
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
- /* Semantic token colors — One Dark inspired */
363
- .token-control { color: #c678dd; font-weight: 600; }
364
- .token-declaration { color: #61afef; font-weight: 600; }
365
- .token-operator-keyword { color: #e06c75; font-weight: 600; }
366
- .token-special { color: #e5c07b; font-weight: 600; }
367
- .token-jux { color: #56b6c2; font-weight: 700; }
368
- .token-number { color: #d19a66; }
369
- .token-string { color: #98c379; }
370
- .token-comment { color: #5c6370; font-style: italic; }
371
- .token-function { color: #61afef; }
372
- .token-identifier { color: #e06c75; }
373
- .token-structural { color: #abb2bf; font-weight: 600; }
374
- .token-delimiter { color: #777; }
375
- .token-operator { color: #56b6c2; }
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juxscript",
3
- "version": "1.1.319",
3
+ "version": "1.1.320",
4
4
  "type": "module",
5
5
  "description": "A JavaScript UX authorship platform",
6
6
  "main": "./dist/lib/index.js",