jamdesk 1.1.176 → 1.1.177

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,6 +1,6 @@
1
1
  {
2
2
  "name": "jamdesk",
3
- "version": "1.1.176",
3
+ "version": "1.1.177",
4
4
  "description": "CLI for Jamdesk — build, preview, and deploy documentation sites from MDX. Dev server with hot reload, 50+ components, OpenAPI support, AI search, and Mintlify migration",
5
5
  "keywords": [
6
6
  "jamdesk",
@@ -132,7 +132,7 @@ const promptUtilityClassName = [
132
132
  ].join(' ');
133
133
 
134
134
  const primaryActionClassName = [
135
- 'inline-flex min-h-10 min-w-0 items-center gap-2 px-4 py-2 text-sm font-semibold',
135
+ 'inline-flex min-h-8 min-w-0 items-center gap-2 px-3.5 py-1 text-sm font-semibold',
136
136
  'prompt-primary-action bg-[var(--color-primary)] text-white transition-opacity cursor-pointer',
137
137
  'hover:opacity-90',
138
138
  contrastSafeFocusClassName,
@@ -243,9 +243,10 @@ function PromptDialog({
243
243
  </span>
244
244
  </div>
245
245
  <style jsx>{`
246
+ /* A fixed black scrim: the text token flips to near-white in dark
247
+ mode and washed the whole page out behind the dialog. */
246
248
  .prompt-dialog::backdrop {
247
- background: var(--color-text-primary);
248
- opacity: 0.6;
249
+ background: rgb(0 0 0 / 0.55);
249
250
  backdrop-filter: blur(4px);
250
251
  }
251
252
  /* Outranks the docs themes' .prose h2 rules, which reach into the
@@ -422,7 +423,7 @@ export function Prompt({
422
423
  ) : null}
423
424
  <div
424
425
  data-testid="prompt-actions"
425
- className="flex min-w-0 max-w-full items-stretch justify-end self-end sm:ml-auto sm:self-auto"
426
+ className="flex min-w-0 max-w-full items-center justify-end self-end sm:ml-auto sm:self-auto"
426
427
  >
427
428
  {primary ? (
428
429
  <a
@@ -430,7 +431,7 @@ export function Prompt({
430
431
  target="_blank"
431
432
  rel="noopener noreferrer"
432
433
  aria-label={primary.label}
433
- className={`${primaryActionClassName} ${secondary.length > 0 ? 'rounded-l-[var(--radius-lg)]' : 'rounded-[var(--radius-lg)]'}`}
434
+ className={`${primaryActionClassName} ${secondary.length > 0 ? 'rounded-l-full' : 'rounded-full'}`}
434
435
  >
435
436
  <span aria-hidden="true"><ActionIcon action={primary.action} /></span>
436
437
  <span className="min-w-0 truncate">{primary.label}</span>
@@ -445,7 +446,7 @@ export function Prompt({
445
446
  aria-haspopup="menu"
446
447
  aria-expanded={menuOpen}
447
448
  aria-controls={menuId}
448
- className={`${primaryActionClassName} min-w-10 rounded-r-[var(--radius-lg)] border-l border-[var(--color-bg-primary)] px-3`}
449
+ className={`${primaryActionClassName} min-w-8 rounded-r-full border-l border-[var(--color-bg-primary)] px-2.5`}
449
450
  onMouseDown={(event) => {
450
451
  if (menuOpen) event.preventDefault();
451
452
  }}
@@ -506,7 +507,7 @@ export function Prompt({
506
507
  >
507
508
  <span
508
509
  data-testid="prompt-icon"
509
- className="mt-1 shrink-0 text-[var(--color-primary)]"
510
+ className="flex h-6 shrink-0 items-center text-[var(--color-primary)]"
510
511
  aria-hidden="true"
511
512
  >
512
513
  <Icon icon={authorIcon} size={18} />
@@ -517,8 +518,11 @@ export function Prompt({
517
518
  >
518
519
  {hasDescription ? renderInlineMarkdown(description) : prompt || children}
519
520
  </div>
521
+ {/* -my-2 keeps the 40px hit targets while the buttons occupy one
522
+ 24px text line, so they center on the first preview line and a
523
+ one-line prompt yields a compact well. */}
520
524
  {hasPrompt ? (
521
- <div data-testid="prompt-utilities" className="flex shrink-0 items-center gap-1">
525
+ <div data-testid="prompt-utilities" className="-my-2 flex shrink-0 items-center gap-1">
522
526
  <button
523
527
  ref={expandTriggerRef}
524
528
  type="button"
@@ -603,8 +607,10 @@ export function Prompt({
603
607
  color: color-mix(in srgb, var(--color-primary) 40%, var(--color-text-primary));
604
608
  }
605
609
  }
610
+ /* Three lines of leading-6, then scroll — the Expand dialog carries
611
+ the full prompt. */
606
612
  .prompt-preview {
607
- max-height: 10rem;
613
+ max-height: 4.5rem;
608
614
  overflow-y: auto;
609
615
  overflow-wrap: anywhere;
610
616
  }