@backmatter/studio 0.0.19 → 0.0.21

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.
Files changed (57) hide show
  1. package/dist/chunks/{UiKitApp-B1ANqCac.js → UiKitApp-CMMcsaX4.js} +2 -2
  2. package/dist/chunks/{WorkspaceRoutes-BHNGrf-j.js → WorkspaceRoutes-DW0sLdpJ.js} +27141 -26236
  3. package/dist/chunks/dashboard-By0P4Yny.js +1879 -0
  4. package/dist/chunks/{index-HYioDjux.js → index-DTPUqaHE.js} +1 -1
  5. package/dist/dashboard.js +2 -2
  6. package/dist/index.js +205 -194
  7. package/dist/site-widget.css +208 -0
  8. package/dist/site-widget.js +10495 -9947
  9. package/dist/studio.css +280 -24
  10. package/package.json +2 -2
  11. package/src/App.tsx +7 -1
  12. package/src/api.ts +113 -13
  13. package/src/chat/ChatFiles.tsx +261 -0
  14. package/src/chat/ChatMessage.tsx +5 -0
  15. package/src/chat/ChatPanel.tsx +218 -14
  16. package/src/chat/ChatProvider.tsx +72 -22
  17. package/src/chat/Composer.tsx +83 -6
  18. package/src/chat/PendingFileRow.tsx +188 -0
  19. package/src/chat/chat-context.ts +7 -1
  20. package/src/chat/chat-helpers.ts +49 -0
  21. package/src/chat/chat-state.ts +17 -6
  22. package/src/chat/icons.tsx +28 -0
  23. package/src/chat/model-copy.ts +41 -0
  24. package/src/chat/pending-files.ts +236 -0
  25. package/src/chat/side-width.ts +48 -0
  26. package/src/chrome/AppShell.tsx +9 -1
  27. package/src/chrome/CommandPalette.tsx +7 -0
  28. package/src/chrome/ContentExplorerSidebar.tsx +43 -74
  29. package/src/chrome/folder-create-context.ts +56 -11
  30. package/src/chrome/hotkeys.ts +8 -0
  31. package/src/fields/FieldControl.tsx +331 -115
  32. package/src/fields/LinkFieldInput.tsx +13 -6
  33. package/src/fields/array-item-title.ts +28 -0
  34. package/src/fields/field-label.ts +8 -0
  35. package/src/host-pointer.ts +2 -0
  36. package/src/install-preview-pointer.ts +1 -0
  37. package/src/pages/BlockPicker.tsx +362 -0
  38. package/src/pages/BlocksList.tsx +57 -50
  39. package/src/pages/CliAuthorizePage.tsx +138 -25
  40. package/src/pages/DocEditorPage.tsx +95 -18
  41. package/src/pages/EmbedPublishPage.tsx +40 -2
  42. package/src/pages/LoginPage.tsx +118 -31
  43. package/src/pages/SettingsSchemaPage.tsx +19 -3
  44. package/src/pages/WorkspaceLayout.tsx +16 -1
  45. package/src/pages/block-picker.ts +116 -0
  46. package/src/pages/editor-grab.ts +61 -13
  47. package/src/pages/preview-split.ts +24 -0
  48. package/src/pages/session-preview.ts +1 -0
  49. package/src/replica/types.ts +2 -0
  50. package/src/sign-in-link.ts +45 -0
  51. package/src/site-pointer.ts +14 -1
  52. package/src/site-widget.tsx +12 -1
  53. package/src/ui/Field.tsx +26 -0
  54. package/src/workspace/schema-source.tsx +126 -0
  55. package/dist/chunks/dashboard-b-W6dGm5.js +0 -1779
  56. package/src/site-devbar-overlay-inject.ts +0 -15
  57. package/src/site-publish-menu.tsx +0 -33
package/dist/studio.css CHANGED
@@ -11,6 +11,10 @@
11
11
  inset: 0;
12
12
  }
13
13
 
14
+ .x6mrcm {
15
+ inset: 6px;
16
+ }
17
+
14
18
  .x485pll {
15
19
  inset: clamp(12px, 3vw, 32px);
16
20
  }
@@ -31,6 +35,10 @@
31
35
  padding: 0;
32
36
  }
33
37
 
38
+ .xt5uv2c {
39
+ padding: 10%;
40
+ }
41
+
34
42
  .x1i3ajwb {
35
43
  padding: 2px;
36
44
  }
@@ -65,6 +73,10 @@
65
73
  }
66
74
 
67
75
  @layer priority3 {
76
+ .x1xsqp64 {
77
+ background-position: center;
78
+ }
79
+
68
80
  .x198m1os {
69
81
  border-color: #3f3f46;
70
82
  }
@@ -89,6 +101,10 @@
89
101
  border-color: var(--x11n7hvk);
90
102
  }
91
103
 
104
+ .x4glhw4 {
105
+ border-color: var(--x1nzi8h4);
106
+ }
107
+
92
108
  .x1nf6o4h {
93
109
  border-color: var(--x1toi6h6);
94
110
  }
@@ -97,6 +113,10 @@
97
113
  border-color: var(--x5y0tk9);
98
114
  }
99
115
 
116
+ .x1anjo7e {
117
+ border-color: var(--xw4dauw);
118
+ }
119
+
100
120
  .x1j0qoeq {
101
121
  border-color: var(--xz3qvk5);
102
122
  }
@@ -121,6 +141,14 @@
121
141
  border-radius: 16px;
122
142
  }
123
143
 
144
+ .x1cum3z5 {
145
+ border-radius: 2px;
146
+ }
147
+
148
+ .x18zih8k {
149
+ border-radius: 3px;
150
+ }
151
+
124
152
  .x12oqio5 {
125
153
  border-radius: 4px;
126
154
  }
@@ -205,10 +233,18 @@
205
233
  gap: 4px;
206
234
  }
207
235
 
236
+ .xjdnhhv {
237
+ gap: 6%;
238
+ }
239
+
208
240
  .x17d4w8g {
209
241
  gap: 6px;
210
242
  }
211
243
 
244
+ .x1tzqfcb {
245
+ gap: 7%;
246
+ }
247
+
212
248
  .x11cgr9k {
213
249
  gap: var(--x1ft7ks7);
214
250
  }
@@ -357,10 +393,6 @@
357
393
  padding-inline: 0;
358
394
  }
359
395
 
360
- .x3y1lgt {
361
- padding-inline: 3px;
362
- }
363
-
364
396
  .xfn1xvj {
365
397
  padding-inline: 4px;
366
398
  }
@@ -369,6 +401,10 @@
369
401
  padding-inline: 8px;
370
402
  }
371
403
 
404
+ .xtl5xca {
405
+ padding-inline: calc(var(--x1o7ezzp) + 13px + var(--x1o7ezzp));
406
+ }
407
+
372
408
  .x173sf5p {
373
409
  padding-inline: var(--x1ft7ks7);
374
410
  }
@@ -405,6 +441,10 @@
405
441
  text-decoration: none;
406
442
  }
407
443
 
444
+ .x1aa3rcd {
445
+ transition: background-size .12s;
446
+ }
447
+
408
448
  @supports not (backdrop-filter: blur(1px)) {
409
449
  .xc3wmqa.xc3wmqa {
410
450
  border-color: var(--xz3qvk5);
@@ -462,6 +502,10 @@
462
502
  border-color: var(--x1vnpaut);
463
503
  }
464
504
 
505
+ .x1u8480u.x1u8480u:hover {
506
+ border-color: var(--xw4dauw);
507
+ }
508
+
465
509
  .x4ohgrr.x4ohgrr:hover {
466
510
  text-decoration: underline;
467
511
  }
@@ -593,6 +637,10 @@
593
637
  aspect-ratio: 1;
594
638
  }
595
639
 
640
+ .x2ebxmi {
641
+ aspect-ratio: 16 / 10;
642
+ }
643
+
596
644
  .x1fx9mx7 {
597
645
  backdrop-filter: blur(28px) saturate(1.15);
598
646
  }
@@ -665,6 +713,18 @@
665
713
  background-color: #fff;
666
714
  }
667
715
 
716
+ .x1etmg90 {
717
+ background-color: color-mix(in srgb,var(--x1dudhym) 70%,transparent);
718
+ }
719
+
720
+ .x1qlnpb8 {
721
+ background-color: color-mix(in srgb,var(--x1dudhym) 75%,transparent);
722
+ }
723
+
724
+ .x1czng92 {
725
+ background-color: color-mix(in srgb,var(--x1dudhym) 88%,transparent);
726
+ }
727
+
668
728
  .xtwfq29 {
669
729
  background-color: currentColor;
670
730
  }
@@ -689,6 +749,14 @@
689
749
  background-color: #18181b0f;
690
750
  }
691
751
 
752
+ .xb19nat {
753
+ background-color: #18181b1f;
754
+ }
755
+
756
+ .x1xnzuui {
757
+ background-color: #18181b38;
758
+ }
759
+
692
760
  .xjwcffa {
693
761
  background-color: #18181b47;
694
762
  }
@@ -805,14 +873,38 @@
805
873
  background-color: var(--xz3qvk5);
806
874
  }
807
875
 
876
+ .x1p9l2a1 {
877
+ background-image: linear-gradient(var(--x11n7hvk),var(--x11n7hvk));
878
+ }
879
+
808
880
  .xlxt4rd {
809
881
  background-image: radial-gradient(90% 62% at 50% -8%, #ffffff29, #0000 60%);
810
882
  }
811
883
 
884
+ .xiy17q3 {
885
+ background-repeat: no-repeat;
886
+ }
887
+
888
+ .xjizwna {
889
+ background-size: 0 100%;
890
+ }
891
+
892
+ .xraeseg {
893
+ background-size: 2px 100%;
894
+ }
895
+
812
896
  .x1mwwwfo {
813
897
  border-collapse: collapse;
814
898
  }
815
899
 
900
+ .x1qy0q11 {
901
+ border-inline-start-color: var(--x1toi6h6);
902
+ }
903
+
904
+ .xyumdvf {
905
+ border-inline-start-width: 2px;
906
+ }
907
+
816
908
  .xbf8z7v {
817
909
  box-shadow: 0 0 0 2px var(--x1dudhym),0 0 0 4px var(--x1nzi8h4);
818
910
  }
@@ -869,6 +961,10 @@
869
961
  box-shadow: 0 4px 12px #18181b29;
870
962
  }
871
963
 
964
+ .xv0ipq4 {
965
+ box-shadow: 0 8px 24px #0000001f;
966
+ }
967
+
872
968
  .xs8uj1u {
873
969
  box-shadow: 0 8px 24px #18181b1f, 0 1px 2px #18181b0f;
874
970
  }
@@ -885,6 +981,10 @@
885
981
  box-sizing: border-box;
886
982
  }
887
983
 
984
+ .x1hyvwdk {
985
+ clip-path: inset(50%);
986
+ }
987
+
888
988
  .xzpqnlu {
889
989
  clip: rect(0,0,0,0);
890
990
  }
@@ -953,6 +1053,10 @@
953
1053
  contain: paint;
954
1054
  }
955
1055
 
1056
+ .xicojor {
1057
+ cursor: col-resize;
1058
+ }
1059
+
956
1060
  .xt0e3qv {
957
1061
  cursor: default;
958
1062
  }
@@ -1005,6 +1109,10 @@
1005
1109
  display: inline-flex;
1006
1110
  }
1007
1111
 
1112
+ .x1s85apg {
1113
+ display: none;
1114
+ }
1115
+
1008
1116
  .x1t1x2f9 {
1009
1117
  flex-basis: 0%;
1010
1118
  }
@@ -1149,6 +1257,10 @@
1149
1257
  grid-template-columns: repeat(2, minmax(0, 1fr));
1150
1258
  }
1151
1259
 
1260
+ .x185a7wo {
1261
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1262
+ }
1263
+
1152
1264
  .x1sipb5g {
1153
1265
  grid-template-columns: repeat(4, minmax(0, 1fr));
1154
1266
  }
@@ -1225,6 +1337,10 @@
1225
1337
  line-height: 1.3;
1226
1338
  }
1227
1339
 
1340
+ .x1xfvgam {
1341
+ line-height: 1.35;
1342
+ }
1343
+
1228
1344
  .x37zpob {
1229
1345
  line-height: 1.4;
1230
1346
  }
@@ -1249,10 +1365,6 @@
1249
1365
  line-height: 1;
1250
1366
  }
1251
1367
 
1252
- .x1xxsxie {
1253
- line-height: 14px;
1254
- }
1255
-
1256
1368
  .x1fc57z9 {
1257
1369
  line-height: 20px;
1258
1370
  }
@@ -1279,12 +1391,12 @@
1279
1391
  object-fit: cover;
1280
1392
  }
1281
1393
 
1282
- .x3onkmb {
1283
- opacity: .35;
1394
+ .xa9wxui {
1395
+ object-position: top center;
1284
1396
  }
1285
1397
 
1286
- .xyd83as {
1287
- opacity: .45;
1398
+ .x3onkmb {
1399
+ opacity: .35;
1288
1400
  }
1289
1401
 
1290
1402
  .xbyyjgo {
@@ -1367,10 +1479,22 @@
1367
1479
  padding-inline-end: var(--x1lzhbes);
1368
1480
  }
1369
1481
 
1482
+ .x1l8n3cp {
1483
+ padding-inline-end: var(--x1uiwg42);
1484
+ }
1485
+
1486
+ .xhngncm {
1487
+ padding-inline-start: var(--x1o7ezzp);
1488
+ }
1489
+
1370
1490
  .xwcbq1v {
1371
1491
  padding-inline-start: var(--x1uiwg42);
1372
1492
  }
1373
1493
 
1494
+ .xtqv6xf {
1495
+ padding-inline-start: var(--xvc7yhn);
1496
+ }
1497
+
1374
1498
  .x47corl {
1375
1499
  pointer-events: none;
1376
1500
  }
@@ -1387,6 +1511,10 @@
1387
1511
  position: relative;
1388
1512
  }
1389
1513
 
1514
+ .x1uhb9sk {
1515
+ position: static;
1516
+ }
1517
+
1390
1518
  .x7wzq59 {
1391
1519
  position: sticky;
1392
1520
  }
@@ -1423,6 +1551,10 @@
1423
1551
  text-align: start;
1424
1552
  }
1425
1553
 
1554
+ .x1smjwyo {
1555
+ text-decoration-color: #a1a1aa66;
1556
+ }
1557
+
1426
1558
  .xujl8zx {
1427
1559
  text-decoration-line: underline;
1428
1560
  }
@@ -1495,6 +1627,10 @@
1495
1627
  transform: rotate(180deg);
1496
1628
  }
1497
1629
 
1630
+ .x1iffjtl {
1631
+ transform: rotate(90deg);
1632
+ }
1633
+
1498
1634
  .x1n5d1j9 {
1499
1635
  transform: scale(.96);
1500
1636
  }
@@ -1559,6 +1695,10 @@
1559
1695
  transition-property: background-color;
1560
1696
  }
1561
1697
 
1698
+ .xq90yva {
1699
+ transition-property: border-color, background-color;
1700
+ }
1701
+
1562
1702
  .xshfolx {
1563
1703
  transition-property: border-color;
1564
1704
  }
@@ -1628,6 +1768,10 @@
1628
1768
  z-index: 1;
1629
1769
  }
1630
1770
 
1771
+ .x1n327nk {
1772
+ z-index: 10;
1773
+ }
1774
+
1631
1775
  .xhtitgo {
1632
1776
  z-index: 2;
1633
1777
  }
@@ -1636,6 +1780,10 @@
1636
1780
  z-index: 2147483001;
1637
1781
  }
1638
1782
 
1783
+ .x1u8a7rm {
1784
+ z-index: 5;
1785
+ }
1786
+
1639
1787
  .x10ibpt2 {
1640
1788
  z-index: var(--x14483eu);
1641
1789
  }
@@ -1670,6 +1818,10 @@
1670
1818
  }
1671
1819
  }
1672
1820
 
1821
+ .xjanfmb:focus-visible {
1822
+ background-size: 2px 100%;
1823
+ }
1824
+
1673
1825
  .x1xk3k8f:focus-visible {
1674
1826
  box-shadow: none;
1675
1827
  }
@@ -1770,6 +1922,14 @@
1770
1922
  opacity: .8;
1771
1923
  }
1772
1924
 
1925
+ .x8w64xv:hover {
1926
+ background-color: var(--xeg52a);
1927
+ }
1928
+
1929
+ .x1skujzp:hover {
1930
+ color: var(--x5y0tk9);
1931
+ }
1932
+
1773
1933
  .xr9r2s9:focus {
1774
1934
  box-shadow: none;
1775
1935
  }
@@ -1864,7 +2024,15 @@
1864
2024
  .xcqouw7.xcqouw7 {
1865
2025
  grid-template-columns: 1fr;
1866
2026
  }
2027
+ }
2028
+
2029
+ @media (width <= 520px) {
2030
+ .x1b8mikl.x1b8mikl {
2031
+ grid-template-columns: minmax(0, 1fr);
2032
+ }
2033
+ }
1867
2034
 
2035
+ @media (width <= 800px) {
1868
2036
  .x1kk4rku.x1kk4rku {
1869
2037
  grid-template-columns: repeat(2, minmax(0, 1fr));
1870
2038
  }
@@ -1923,6 +2091,14 @@
1923
2091
  background-color: var(--xfamku2);
1924
2092
  }
1925
2093
 
2094
+ .x1ikh0ve.x1ikh0ve:hover {
2095
+ background-size: 2px 100%;
2096
+ }
2097
+
2098
+ .x1r72jz.x1r72jz:hover {
2099
+ color: #d4d4d8;
2100
+ }
2101
+
1926
2102
  .x14sdmy4.x14sdmy4:hover {
1927
2103
  color: var(--x11n7hvk);
1928
2104
  }
@@ -2024,6 +2200,14 @@
2024
2200
  bottom: 44px;
2025
2201
  }
2026
2202
 
2203
+ .xbfrwjf {
2204
+ bottom: 4px;
2205
+ }
2206
+
2207
+ .xdd4er5 {
2208
+ bottom: auto;
2209
+ }
2210
+
2027
2211
  .x1bs4c7o {
2028
2212
  bottom: calc(100% - 12px);
2029
2213
  }
@@ -2052,6 +2236,10 @@
2052
2236
  height: 100dvh;
2053
2237
  }
2054
2238
 
2239
+ .x170jfvy {
2240
+ height: 10px;
2241
+ }
2242
+
2055
2243
  .x1kpxq89 {
2056
2244
  height: 12px;
2057
2245
  }
@@ -2116,6 +2304,10 @@
2116
2304
  height: 36px;
2117
2305
  }
2118
2306
 
2307
+ .xuoj239 {
2308
+ height: 3px;
2309
+ }
2310
+
2119
2311
  .x1q7yecz {
2120
2312
  height: 4.5rem;
2121
2313
  }
@@ -2136,6 +2328,14 @@
2136
2328
  height: 56px;
2137
2329
  }
2138
2330
 
2331
+ .x1ycjhwn {
2332
+ height: 5px;
2333
+ }
2334
+
2335
+ .x1peatla {
2336
+ height: 64px;
2337
+ }
2338
+
2139
2339
  .xols6we {
2140
2340
  height: 6px;
2141
2341
  }
@@ -2164,6 +2364,10 @@
2164
2364
  height: min(640px,calc(100vh - 68px - env(safe-area-inset-bottom, 0px)));
2165
2365
  }
2166
2366
 
2367
+ .x6zskup {
2368
+ left: -4px;
2369
+ }
2370
+
2167
2371
  .xu96u03 {
2168
2372
  left: 0;
2169
2373
  }
@@ -2172,6 +2376,10 @@
2172
2376
  left: 2px;
2173
2377
  }
2174
2378
 
2379
+ .xcqyyxr {
2380
+ left: 4px;
2381
+ }
2382
+
2175
2383
  .x1nrll8i {
2176
2384
  left: 50%;
2177
2385
  }
@@ -2248,6 +2456,10 @@
2248
2456
  margin-top: 2px;
2249
2457
  }
2250
2458
 
2459
+ .xg87l8a {
2460
+ margin-top: 32px;
2461
+ }
2462
+
2251
2463
  .x1tfhste {
2252
2464
  margin-top: 40px;
2253
2465
  }
@@ -2308,6 +2520,10 @@
2308
2520
  max-height: 280px;
2309
2521
  }
2310
2522
 
2523
+ .x1sslpiy {
2524
+ max-height: 320px;
2525
+ }
2526
+
2311
2527
  .x1h9acoj {
2312
2528
  max-height: min(320px,var(--available-height));
2313
2529
  }
@@ -2408,6 +2624,14 @@
2408
2624
  max-width: 960px;
2409
2625
  }
2410
2626
 
2627
+ .x1jlfj8b {
2628
+ max-width: calc(100% - 2 * var(--x1lzhbes));
2629
+ }
2630
+
2631
+ .xw7nakj {
2632
+ max-width: calc(100vw - 32px);
2633
+ }
2634
+
2411
2635
  .x2lwn1j {
2412
2636
  min-height: 0;
2413
2637
  }
@@ -2428,6 +2652,10 @@
2428
2652
  min-height: 10rem;
2429
2653
  }
2430
2654
 
2655
+ .xvrgn94 {
2656
+ min-height: 18px;
2657
+ }
2658
+
2431
2659
  .xe0957l {
2432
2660
  min-height: 22px;
2433
2661
  }
@@ -2488,14 +2716,6 @@
2488
2716
  min-width: 12px;
2489
2717
  }
2490
2718
 
2491
- .x12kinc7 {
2492
- min-width: 12rem;
2493
- }
2494
-
2495
- .x1wu2mox {
2496
- min-width: 14px;
2497
- }
2498
-
2499
2719
  .xfb3i0g {
2500
2720
  min-width: 180px;
2501
2721
  }
@@ -2516,6 +2736,10 @@
2516
2736
  min-width: 300px;
2517
2737
  }
2518
2738
 
2739
+ .xw62h19 {
2740
+ min-width: 38%;
2741
+ }
2742
+
2519
2743
  .x900493 {
2520
2744
  min-width: 48px;
2521
2745
  }
@@ -2680,10 +2904,18 @@
2680
2904
  right: 2px;
2681
2905
  }
2682
2906
 
2907
+ .x1pzoy33 {
2908
+ right: 4px;
2909
+ }
2910
+
2683
2911
  .x1d37e2g {
2684
2912
  right: 7px;
2685
2913
  }
2686
2914
 
2915
+ .xwukr4l {
2916
+ right: auto;
2917
+ }
2918
+
2687
2919
  .xjcl65e {
2688
2920
  right: var(--x1ft7ks7);
2689
2921
  }
@@ -2724,14 +2956,14 @@
2724
2956
  top: 44px;
2725
2957
  }
2726
2958
 
2727
- .xndqk7f {
2728
- top: 4px;
2729
- }
2730
-
2731
2959
  .xwa60dl {
2732
2960
  top: 50%;
2733
2961
  }
2734
2962
 
2963
+ .xqzfmfr {
2964
+ top: calc(100% - 4px);
2965
+ }
2966
+
2735
2967
  .x87tjf4 {
2736
2968
  top: var(--x1ft7ks7);
2737
2969
  }
@@ -2792,6 +3024,10 @@
2792
3024
  width: 20px;
2793
3025
  }
2794
3026
 
3027
+ .x1jfg07d {
3028
+ width: 22%;
3029
+ }
3030
+
2795
3031
  .x16grhtn {
2796
3032
  width: 220px;
2797
3033
  }
@@ -2816,6 +3052,10 @@
2816
3052
  width: 26px;
2817
3053
  }
2818
3054
 
3055
+ .xdqdh73 {
3056
+ width: 28%;
3057
+ }
3058
+
2819
3059
  .x1dz1jew {
2820
3060
  width: 280px;
2821
3061
  }
@@ -2836,6 +3076,10 @@
2836
3076
  width: 32px;
2837
3077
  }
2838
3078
 
3079
+ .xqblchm {
3080
+ width: 34rem;
3081
+ }
3082
+
2839
3083
  .x1cvmir6 {
2840
3084
  width: 360px;
2841
3085
  }
@@ -2864,6 +3108,10 @@
2864
3108
  width: 56px;
2865
3109
  }
2866
3110
 
3111
+ .xycev2y {
3112
+ width: 60%;
3113
+ }
3114
+
2867
3115
  .x1fu8urw {
2868
3116
  width: 64px;
2869
3117
  }
@@ -2872,6 +3120,10 @@
2872
3120
  width: 6px;
2873
3121
  }
2874
3122
 
3123
+ .x65xoit {
3124
+ width: 70%;
3125
+ }
3126
+
2875
3127
  .xni59qk {
2876
3128
  width: 72px;
2877
3129
  }
@@ -2888,6 +3140,10 @@
2888
3140
  width: 9.5rem;
2889
3141
  }
2890
3142
 
3143
+ .xm6i5cn {
3144
+ width: 90%;
3145
+ }
3146
+
2891
3147
  .x14atkfc {
2892
3148
  width: auto;
2893
3149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backmatter/studio",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "The Backmatter editing surface: document editor, AI chat, publish. Mounted on your site or hosted on the dashboard.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@ai-sdk/react": "^4.0.100",
59
- "@backmatter/core": "^0.0.36",
59
+ "@backmatter/core": "^0.0.38",
60
60
  "@base-ui/react": "^1.6.0",
61
61
  "@central-icons-react/round-outlined-radius-2-stroke-1.5": "1.2.15",
62
62
  "@dnd-kit/abstract": "^0.5.0",
package/src/App.tsx CHANGED
@@ -12,7 +12,8 @@ import { fetchMe } from "./api";
12
12
  import { authClient } from "./auth-client";
13
13
  import { forgetLastUser, readLastUser, rememberLastUser } from "./last-user";
14
14
  import { Shell } from "./components/Shell";
15
- import { LoginPage } from "./pages/LoginPage";
15
+ import { LoginPage, SignInLinkPage } from "./pages/LoginPage";
16
+ import { isSignInLinkPath } from "./sign-in-link";
16
17
  import { ResumeHome } from "./pages/ResumeHome";
17
18
  import { WorkspacesPage } from "./pages/WorkspacesPage";
18
19
  import { NewWorkspacePage } from "./pages/NewWorkspacePage";
@@ -97,6 +98,11 @@ function AppInner() {
97
98
  );
98
99
  }
99
100
 
101
+ // Needs no session, and must not wait for one.
102
+ if (isSignInLinkPath(location.pathname)) {
103
+ return <SignInLinkPage />;
104
+ }
105
+
100
106
  if (session === "loading") {
101
107
  return <BootstrapSplash />;
102
108
  }