jamdesk 1.1.146 → 1.1.147

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.146",
3
+ "version": "1.1.147",
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",
@@ -12,11 +12,21 @@ export interface NativeSubscribeFormProps {
12
12
  className?: string;
13
13
  }
14
14
 
15
+ // Shared control height for the email field + Subscribe button so they line up
16
+ // exactly. The input must carry 16px text (iOS no-zoom rule) which otherwise
17
+ // makes it taller than the smaller-font button; pinning both to one height with
18
+ // border-box collapses the mismatch. 2rem (32px) stays compact yet clears the
19
+ // WCAG 24px minimum target.
20
+ const CONTROL_HEIGHT = '2rem';
21
+
15
22
  // Solid primary button (the collapsed trigger and the form's submit share it).
16
23
  // Kept compact — the iOS 16px-min rule is for inputs, not buttons. Radius tracks
17
24
  // the theme's button token (--radius-md) so it matches the docs' own buttons.
25
+ // inline-flex centers the label inside the fixed CONTROL_HEIGHT box.
18
26
  const PRIMARY_BUTTON: CSSProperties = {
19
- fontSize: '0.8125rem', padding: '0.35rem 0.75rem', border: 0,
27
+ display: 'inline-flex', alignItems: 'center', justifyContent: 'center',
28
+ height: CONTROL_HEIGHT, boxSizing: 'border-box',
29
+ fontSize: '0.8125rem', padding: '0 0.85rem', border: 0,
20
30
  borderRadius: 'var(--radius-md, 0.375rem)', cursor: 'pointer',
21
31
  background: 'var(--color-primary, #2563eb)', color: '#fff',
22
32
  };
@@ -189,6 +199,11 @@ export function NativeSubscribeForm({ provider, title, description, collapsed, c
189
199
  <Shell className={className}>
190
200
  {titleEl}
191
201
  {description && <p className="mb-3 text-sm text-theme-text-secondary">{description}</p>}
202
+ {/* The field keeps 16px text (iOS no-zoom), but the placeholder reads a
203
+ touch smaller — inline styles can't reach ::placeholder, so scope it by
204
+ the stable jd-emailsubscribe hook. Smaller ::placeholder font doesn't
205
+ re-trigger iOS zoom (that keys off the input's own font-size). */}
206
+ <style>{`.jd-emailsubscribe input[type="email"]::placeholder{font-size:0.875rem}`}</style>
192
207
  <form onSubmit={onSubmit} style={{ display: 'flex', gap: '0.5rem', flexWrap: 'wrap', alignItems: 'center', maxWidth: '28rem' }}>
193
208
  {/* Honeypot: a deliberately odd name (NOT website/url/email, which password
194
209
  managers autofill — a filled honeypot silently drops a real user). Bots
@@ -196,11 +211,12 @@ export function NativeSubscribeForm({ provider, title, description, collapsed, c
196
211
  <input type="text" name="jd_hp" tabIndex={-1} autoComplete="off" aria-hidden="true"
197
212
  defaultValue="" style={{ position: 'absolute', left: '-5000px' }} />
198
213
  {/* font-size:16px avoids iOS auto-zoom (monorepo UI rule). primary-bg field
199
- pops against the card's secondary-bg surface; radius tracks the theme. */}
214
+ pops against the card's secondary-bg surface; radius tracks the theme.
215
+ height+border-box matches the Subscribe button exactly. */}
200
216
  <input type="email" name="email" required value={email}
201
217
  onChange={(e) => { setEmail(e.target.value); if (status === 'error') setStatus('idle'); }}
202
- disabled={status === 'submitting'} placeholder="you@example.com" aria-label="Email address"
203
- style={{ flex: 1, minWidth: 0, fontSize: '16px', padding: '0.35rem 0.7rem', border: 'var(--border-width, 1px) solid var(--color-border, #d4d4d8)', borderRadius: 'var(--radius-md, 0.375rem)', background: 'var(--color-bg-primary, #fff)', color: 'var(--color-text-primary, #18181b)' }} />
218
+ disabled={status === 'submitting'} placeholder="you@email.com" aria-label="Email address"
219
+ style={{ flex: 1, minWidth: 0, height: CONTROL_HEIGHT, boxSizing: 'border-box', fontSize: '16px', padding: '0 0.7rem', border: 'var(--border-width, 1px) solid var(--color-border, #d4d4d8)', borderRadius: 'var(--radius-md, 0.375rem)', background: 'var(--color-bg-primary, #fff)', color: 'var(--color-text-primary, #18181b)' }} />
204
220
  <button type="submit" disabled={status === 'submitting'} style={PRIMARY_BUTTON}>
205
221
  {status === 'submitting' ? 'Subscribing…' : 'Subscribe'}
206
222
  </button>
@@ -373,9 +373,6 @@
373
373
  "cpu": [
374
374
  "arm"
375
375
  ],
376
- "libc": [
377
- "glibc"
378
- ],
379
376
  "license": "LGPL-3.0-or-later",
380
377
  "optional": true,
381
378
  "os": [
@@ -392,9 +389,6 @@
392
389
  "cpu": [
393
390
  "arm64"
394
391
  ],
395
- "libc": [
396
- "glibc"
397
- ],
398
392
  "license": "LGPL-3.0-or-later",
399
393
  "optional": true,
400
394
  "os": [
@@ -411,9 +405,6 @@
411
405
  "cpu": [
412
406
  "ppc64"
413
407
  ],
414
- "libc": [
415
- "glibc"
416
- ],
417
408
  "license": "LGPL-3.0-or-later",
418
409
  "optional": true,
419
410
  "os": [
@@ -430,9 +421,6 @@
430
421
  "cpu": [
431
422
  "riscv64"
432
423
  ],
433
- "libc": [
434
- "glibc"
435
- ],
436
424
  "license": "LGPL-3.0-or-later",
437
425
  "optional": true,
438
426
  "os": [
@@ -449,9 +437,6 @@
449
437
  "cpu": [
450
438
  "s390x"
451
439
  ],
452
- "libc": [
453
- "glibc"
454
- ],
455
440
  "license": "LGPL-3.0-or-later",
456
441
  "optional": true,
457
442
  "os": [
@@ -468,9 +453,6 @@
468
453
  "cpu": [
469
454
  "x64"
470
455
  ],
471
- "libc": [
472
- "glibc"
473
- ],
474
456
  "license": "LGPL-3.0-or-later",
475
457
  "optional": true,
476
458
  "os": [
@@ -487,9 +469,6 @@
487
469
  "cpu": [
488
470
  "arm64"
489
471
  ],
490
- "libc": [
491
- "musl"
492
- ],
493
472
  "license": "LGPL-3.0-or-later",
494
473
  "optional": true,
495
474
  "os": [
@@ -506,9 +485,6 @@
506
485
  "cpu": [
507
486
  "x64"
508
487
  ],
509
- "libc": [
510
- "musl"
511
- ],
512
488
  "license": "LGPL-3.0-or-later",
513
489
  "optional": true,
514
490
  "os": [
@@ -525,9 +501,6 @@
525
501
  "cpu": [
526
502
  "arm"
527
503
  ],
528
- "libc": [
529
- "glibc"
530
- ],
531
504
  "license": "Apache-2.0",
532
505
  "optional": true,
533
506
  "os": [
@@ -550,9 +523,6 @@
550
523
  "cpu": [
551
524
  "arm64"
552
525
  ],
553
- "libc": [
554
- "glibc"
555
- ],
556
526
  "license": "Apache-2.0",
557
527
  "optional": true,
558
528
  "os": [
@@ -575,9 +545,6 @@
575
545
  "cpu": [
576
546
  "ppc64"
577
547
  ],
578
- "libc": [
579
- "glibc"
580
- ],
581
548
  "license": "Apache-2.0",
582
549
  "optional": true,
583
550
  "os": [
@@ -600,9 +567,6 @@
600
567
  "cpu": [
601
568
  "riscv64"
602
569
  ],
603
- "libc": [
604
- "glibc"
605
- ],
606
570
  "license": "Apache-2.0",
607
571
  "optional": true,
608
572
  "os": [
@@ -625,9 +589,6 @@
625
589
  "cpu": [
626
590
  "s390x"
627
591
  ],
628
- "libc": [
629
- "glibc"
630
- ],
631
592
  "license": "Apache-2.0",
632
593
  "optional": true,
633
594
  "os": [
@@ -650,9 +611,6 @@
650
611
  "cpu": [
651
612
  "x64"
652
613
  ],
653
- "libc": [
654
- "glibc"
655
- ],
656
614
  "license": "Apache-2.0",
657
615
  "optional": true,
658
616
  "os": [
@@ -675,9 +633,6 @@
675
633
  "cpu": [
676
634
  "arm64"
677
635
  ],
678
- "libc": [
679
- "musl"
680
- ],
681
636
  "license": "Apache-2.0",
682
637
  "optional": true,
683
638
  "os": [
@@ -700,9 +655,6 @@
700
655
  "cpu": [
701
656
  "x64"
702
657
  ],
703
- "libc": [
704
- "musl"
705
- ],
706
658
  "license": "Apache-2.0",
707
659
  "optional": true,
708
660
  "os": [
@@ -977,9 +929,6 @@
977
929
  "cpu": [
978
930
  "arm64"
979
931
  ],
980
- "libc": [
981
- "glibc"
982
- ],
983
932
  "license": "MIT",
984
933
  "optional": true,
985
934
  "os": [
@@ -996,9 +945,6 @@
996
945
  "cpu": [
997
946
  "arm64"
998
947
  ],
999
- "libc": [
1000
- "musl"
1001
- ],
1002
948
  "license": "MIT",
1003
949
  "optional": true,
1004
950
  "os": [
@@ -1015,9 +961,6 @@
1015
961
  "cpu": [
1016
962
  "x64"
1017
963
  ],
1018
- "libc": [
1019
- "glibc"
1020
- ],
1021
964
  "license": "MIT",
1022
965
  "optional": true,
1023
966
  "os": [
@@ -1034,9 +977,6 @@
1034
977
  "cpu": [
1035
978
  "x64"
1036
979
  ],
1037
- "libc": [
1038
- "musl"
1039
- ],
1040
980
  "license": "MIT",
1041
981
  "optional": true,
1042
982
  "os": [
@@ -1376,9 +1316,6 @@
1376
1316
  "cpu": [
1377
1317
  "arm64"
1378
1318
  ],
1379
- "libc": [
1380
- "glibc"
1381
- ],
1382
1319
  "license": "MIT",
1383
1320
  "optional": true,
1384
1321
  "os": [
@@ -1395,9 +1332,6 @@
1395
1332
  "cpu": [
1396
1333
  "arm64"
1397
1334
  ],
1398
- "libc": [
1399
- "musl"
1400
- ],
1401
1335
  "license": "MIT",
1402
1336
  "optional": true,
1403
1337
  "os": [
@@ -1414,9 +1348,6 @@
1414
1348
  "cpu": [
1415
1349
  "x64"
1416
1350
  ],
1417
- "libc": [
1418
- "glibc"
1419
- ],
1420
1351
  "license": "MIT",
1421
1352
  "optional": true,
1422
1353
  "os": [
@@ -1433,9 +1364,6 @@
1433
1364
  "cpu": [
1434
1365
  "x64"
1435
1366
  ],
1436
- "libc": [
1437
- "musl"
1438
- ],
1439
1367
  "license": "MIT",
1440
1368
  "optional": true,
1441
1369
  "os": [
@@ -3937,9 +3865,6 @@
3937
3865
  "cpu": [
3938
3866
  "arm64"
3939
3867
  ],
3940
- "libc": [
3941
- "glibc"
3942
- ],
3943
3868
  "license": "MPL-2.0",
3944
3869
  "optional": true,
3945
3870
  "os": [
@@ -3960,9 +3885,6 @@
3960
3885
  "cpu": [
3961
3886
  "arm64"
3962
3887
  ],
3963
- "libc": [
3964
- "musl"
3965
- ],
3966
3888
  "license": "MPL-2.0",
3967
3889
  "optional": true,
3968
3890
  "os": [
@@ -3983,9 +3905,6 @@
3983
3905
  "cpu": [
3984
3906
  "x64"
3985
3907
  ],
3986
- "libc": [
3987
- "glibc"
3988
- ],
3989
3908
  "license": "MPL-2.0",
3990
3909
  "optional": true,
3991
3910
  "os": [
@@ -4006,9 +3925,6 @@
4006
3925
  "cpu": [
4007
3926
  "x64"
4008
3927
  ],
4009
- "libc": [
4010
- "musl"
4011
- ],
4012
3928
  "license": "MPL-2.0",
4013
3929
  "optional": true,
4014
3930
  "os": [