@backmatter/studio 0.0.20 → 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.
- package/dist/chunks/{UiKitApp-C269OA8v.js → UiKitApp-CMMcsaX4.js} +2 -2
- package/dist/chunks/{WorkspaceRoutes-B4B5jjje.js → WorkspaceRoutes-DW0sLdpJ.js} +27141 -26241
- package/dist/chunks/dashboard-By0P4Yny.js +1879 -0
- package/dist/chunks/{index-7-TtXaMq.js → index-DTPUqaHE.js} +1 -1
- package/dist/dashboard.js +2 -2
- package/dist/index.js +205 -194
- package/dist/site-widget.css +208 -0
- package/dist/site-widget.js +10495 -9947
- package/dist/studio.css +276 -32
- package/package.json +2 -2
- package/src/App.tsx +7 -1
- package/src/api.ts +106 -13
- package/src/chat/ChatFiles.tsx +261 -0
- package/src/chat/ChatMessage.tsx +5 -0
- package/src/chat/ChatPanel.tsx +218 -14
- package/src/chat/ChatProvider.tsx +72 -22
- package/src/chat/Composer.tsx +83 -6
- package/src/chat/PendingFileRow.tsx +188 -0
- package/src/chat/chat-context.ts +7 -1
- package/src/chat/chat-helpers.ts +49 -0
- package/src/chat/chat-state.ts +17 -6
- package/src/chat/icons.tsx +28 -0
- package/src/chat/model-copy.ts +41 -0
- package/src/chat/pending-files.ts +236 -0
- package/src/chat/side-width.ts +48 -0
- package/src/chrome/AppShell.tsx +9 -1
- package/src/chrome/CommandPalette.tsx +7 -0
- package/src/chrome/ContentExplorerSidebar.tsx +43 -74
- package/src/chrome/folder-create-context.ts +56 -11
- package/src/chrome/hotkeys.ts +8 -0
- package/src/fields/FieldControl.tsx +331 -115
- package/src/fields/LinkFieldInput.tsx +13 -6
- package/src/fields/array-item-title.ts +28 -0
- package/src/fields/field-label.ts +8 -0
- package/src/host-pointer.ts +2 -0
- package/src/install-preview-pointer.ts +1 -0
- package/src/pages/BlockPicker.tsx +362 -0
- package/src/pages/BlocksList.tsx +39 -67
- package/src/pages/CliAuthorizePage.tsx +138 -25
- package/src/pages/DocEditorPage.tsx +95 -18
- package/src/pages/EmbedPublishPage.tsx +40 -2
- package/src/pages/LoginPage.tsx +118 -31
- package/src/pages/SettingsSchemaPage.tsx +19 -3
- package/src/pages/WorkspaceLayout.tsx +16 -1
- package/src/pages/block-picker.ts +116 -0
- package/src/pages/editor-grab.ts +61 -13
- package/src/pages/preview-split.ts +24 -0
- package/src/pages/session-preview.ts +1 -0
- package/src/replica/types.ts +2 -0
- package/src/sign-in-link.ts +45 -0
- package/src/site-pointer.ts +14 -1
- package/src/site-widget.tsx +12 -1
- package/src/ui/Field.tsx +26 -0
- package/src/workspace/schema-source.tsx +126 -0
- package/dist/chunks/dashboard-DeNgythd.js +0 -1779
- package/src/site-devbar-overlay-inject.ts +0 -15
- 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
|
}
|
|
@@ -1253,10 +1365,6 @@
|
|
|
1253
1365
|
line-height: 1;
|
|
1254
1366
|
}
|
|
1255
1367
|
|
|
1256
|
-
.x1xxsxie {
|
|
1257
|
-
line-height: 14px;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
1368
|
.x1fc57z9 {
|
|
1261
1369
|
line-height: 20px;
|
|
1262
1370
|
}
|
|
@@ -1283,12 +1391,12 @@
|
|
|
1283
1391
|
object-fit: cover;
|
|
1284
1392
|
}
|
|
1285
1393
|
|
|
1286
|
-
.
|
|
1287
|
-
|
|
1394
|
+
.xa9wxui {
|
|
1395
|
+
object-position: top center;
|
|
1288
1396
|
}
|
|
1289
1397
|
|
|
1290
|
-
.
|
|
1291
|
-
opacity: .
|
|
1398
|
+
.x3onkmb {
|
|
1399
|
+
opacity: .35;
|
|
1292
1400
|
}
|
|
1293
1401
|
|
|
1294
1402
|
.xbyyjgo {
|
|
@@ -1371,10 +1479,22 @@
|
|
|
1371
1479
|
padding-inline-end: var(--x1lzhbes);
|
|
1372
1480
|
}
|
|
1373
1481
|
|
|
1482
|
+
.x1l8n3cp {
|
|
1483
|
+
padding-inline-end: var(--x1uiwg42);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.xhngncm {
|
|
1487
|
+
padding-inline-start: var(--x1o7ezzp);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1374
1490
|
.xwcbq1v {
|
|
1375
1491
|
padding-inline-start: var(--x1uiwg42);
|
|
1376
1492
|
}
|
|
1377
1493
|
|
|
1494
|
+
.xtqv6xf {
|
|
1495
|
+
padding-inline-start: var(--xvc7yhn);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1378
1498
|
.x47corl {
|
|
1379
1499
|
pointer-events: none;
|
|
1380
1500
|
}
|
|
@@ -1391,6 +1511,10 @@
|
|
|
1391
1511
|
position: relative;
|
|
1392
1512
|
}
|
|
1393
1513
|
|
|
1514
|
+
.x1uhb9sk {
|
|
1515
|
+
position: static;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1394
1518
|
.x7wzq59 {
|
|
1395
1519
|
position: sticky;
|
|
1396
1520
|
}
|
|
@@ -1427,6 +1551,10 @@
|
|
|
1427
1551
|
text-align: start;
|
|
1428
1552
|
}
|
|
1429
1553
|
|
|
1554
|
+
.x1smjwyo {
|
|
1555
|
+
text-decoration-color: #a1a1aa66;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1430
1558
|
.xujl8zx {
|
|
1431
1559
|
text-decoration-line: underline;
|
|
1432
1560
|
}
|
|
@@ -1499,6 +1627,10 @@
|
|
|
1499
1627
|
transform: rotate(180deg);
|
|
1500
1628
|
}
|
|
1501
1629
|
|
|
1630
|
+
.x1iffjtl {
|
|
1631
|
+
transform: rotate(90deg);
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1502
1634
|
.x1n5d1j9 {
|
|
1503
1635
|
transform: scale(.96);
|
|
1504
1636
|
}
|
|
@@ -1563,6 +1695,10 @@
|
|
|
1563
1695
|
transition-property: background-color;
|
|
1564
1696
|
}
|
|
1565
1697
|
|
|
1698
|
+
.xq90yva {
|
|
1699
|
+
transition-property: border-color, background-color;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1566
1702
|
.xshfolx {
|
|
1567
1703
|
transition-property: border-color;
|
|
1568
1704
|
}
|
|
@@ -1612,10 +1748,6 @@
|
|
|
1612
1748
|
vertical-align: bottom;
|
|
1613
1749
|
}
|
|
1614
1750
|
|
|
1615
|
-
.xeaf4i8 {
|
|
1616
|
-
white-space: normal;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
1751
|
.xuxw1ft {
|
|
1620
1752
|
white-space: nowrap;
|
|
1621
1753
|
}
|
|
@@ -1636,6 +1768,10 @@
|
|
|
1636
1768
|
z-index: 1;
|
|
1637
1769
|
}
|
|
1638
1770
|
|
|
1771
|
+
.x1n327nk {
|
|
1772
|
+
z-index: 10;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1639
1775
|
.xhtitgo {
|
|
1640
1776
|
z-index: 2;
|
|
1641
1777
|
}
|
|
@@ -1644,6 +1780,10 @@
|
|
|
1644
1780
|
z-index: 2147483001;
|
|
1645
1781
|
}
|
|
1646
1782
|
|
|
1783
|
+
.x1u8a7rm {
|
|
1784
|
+
z-index: 5;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1647
1787
|
.x10ibpt2 {
|
|
1648
1788
|
z-index: var(--x14483eu);
|
|
1649
1789
|
}
|
|
@@ -1678,6 +1818,10 @@
|
|
|
1678
1818
|
}
|
|
1679
1819
|
}
|
|
1680
1820
|
|
|
1821
|
+
.xjanfmb:focus-visible {
|
|
1822
|
+
background-size: 2px 100%;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1681
1825
|
.x1xk3k8f:focus-visible {
|
|
1682
1826
|
box-shadow: none;
|
|
1683
1827
|
}
|
|
@@ -1778,6 +1922,14 @@
|
|
|
1778
1922
|
opacity: .8;
|
|
1779
1923
|
}
|
|
1780
1924
|
|
|
1925
|
+
.x8w64xv:hover {
|
|
1926
|
+
background-color: var(--xeg52a);
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
.x1skujzp:hover {
|
|
1930
|
+
color: var(--x5y0tk9);
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1781
1933
|
.xr9r2s9:focus {
|
|
1782
1934
|
box-shadow: none;
|
|
1783
1935
|
}
|
|
@@ -1872,7 +2024,15 @@
|
|
|
1872
2024
|
.xcqouw7.xcqouw7 {
|
|
1873
2025
|
grid-template-columns: 1fr;
|
|
1874
2026
|
}
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
@media (width <= 520px) {
|
|
2030
|
+
.x1b8mikl.x1b8mikl {
|
|
2031
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
1875
2034
|
|
|
2035
|
+
@media (width <= 800px) {
|
|
1876
2036
|
.x1kk4rku.x1kk4rku {
|
|
1877
2037
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1878
2038
|
}
|
|
@@ -1931,6 +2091,14 @@
|
|
|
1931
2091
|
background-color: var(--xfamku2);
|
|
1932
2092
|
}
|
|
1933
2093
|
|
|
2094
|
+
.x1ikh0ve.x1ikh0ve:hover {
|
|
2095
|
+
background-size: 2px 100%;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
.x1r72jz.x1r72jz:hover {
|
|
2099
|
+
color: #d4d4d8;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
1934
2102
|
.x14sdmy4.x14sdmy4:hover {
|
|
1935
2103
|
color: var(--x11n7hvk);
|
|
1936
2104
|
}
|
|
@@ -2032,6 +2200,14 @@
|
|
|
2032
2200
|
bottom: 44px;
|
|
2033
2201
|
}
|
|
2034
2202
|
|
|
2203
|
+
.xbfrwjf {
|
|
2204
|
+
bottom: 4px;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
.xdd4er5 {
|
|
2208
|
+
bottom: auto;
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2035
2211
|
.x1bs4c7o {
|
|
2036
2212
|
bottom: calc(100% - 12px);
|
|
2037
2213
|
}
|
|
@@ -2060,6 +2236,10 @@
|
|
|
2060
2236
|
height: 100dvh;
|
|
2061
2237
|
}
|
|
2062
2238
|
|
|
2239
|
+
.x170jfvy {
|
|
2240
|
+
height: 10px;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2063
2243
|
.x1kpxq89 {
|
|
2064
2244
|
height: 12px;
|
|
2065
2245
|
}
|
|
@@ -2124,6 +2304,10 @@
|
|
|
2124
2304
|
height: 36px;
|
|
2125
2305
|
}
|
|
2126
2306
|
|
|
2307
|
+
.xuoj239 {
|
|
2308
|
+
height: 3px;
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2127
2311
|
.x1q7yecz {
|
|
2128
2312
|
height: 4.5rem;
|
|
2129
2313
|
}
|
|
@@ -2144,6 +2328,14 @@
|
|
|
2144
2328
|
height: 56px;
|
|
2145
2329
|
}
|
|
2146
2330
|
|
|
2331
|
+
.x1ycjhwn {
|
|
2332
|
+
height: 5px;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
.x1peatla {
|
|
2336
|
+
height: 64px;
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2147
2339
|
.xols6we {
|
|
2148
2340
|
height: 6px;
|
|
2149
2341
|
}
|
|
@@ -2172,6 +2364,10 @@
|
|
|
2172
2364
|
height: min(640px,calc(100vh - 68px - env(safe-area-inset-bottom, 0px)));
|
|
2173
2365
|
}
|
|
2174
2366
|
|
|
2367
|
+
.x6zskup {
|
|
2368
|
+
left: -4px;
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2175
2371
|
.xu96u03 {
|
|
2176
2372
|
left: 0;
|
|
2177
2373
|
}
|
|
@@ -2180,6 +2376,10 @@
|
|
|
2180
2376
|
left: 2px;
|
|
2181
2377
|
}
|
|
2182
2378
|
|
|
2379
|
+
.xcqyyxr {
|
|
2380
|
+
left: 4px;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2183
2383
|
.x1nrll8i {
|
|
2184
2384
|
left: 50%;
|
|
2185
2385
|
}
|
|
@@ -2256,6 +2456,10 @@
|
|
|
2256
2456
|
margin-top: 2px;
|
|
2257
2457
|
}
|
|
2258
2458
|
|
|
2459
|
+
.xg87l8a {
|
|
2460
|
+
margin-top: 32px;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2259
2463
|
.x1tfhste {
|
|
2260
2464
|
margin-top: 40px;
|
|
2261
2465
|
}
|
|
@@ -2316,6 +2520,10 @@
|
|
|
2316
2520
|
max-height: 280px;
|
|
2317
2521
|
}
|
|
2318
2522
|
|
|
2523
|
+
.x1sslpiy {
|
|
2524
|
+
max-height: 320px;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2319
2527
|
.x1h9acoj {
|
|
2320
2528
|
max-height: min(320px,var(--available-height));
|
|
2321
2529
|
}
|
|
@@ -2360,10 +2568,6 @@
|
|
|
2360
2568
|
max-width: 220px;
|
|
2361
2569
|
}
|
|
2362
2570
|
|
|
2363
|
-
.xuv54rz {
|
|
2364
|
-
max-width: 22rem;
|
|
2365
|
-
}
|
|
2366
|
-
|
|
2367
2571
|
.x16em4ew {
|
|
2368
2572
|
max-width: 240px;
|
|
2369
2573
|
}
|
|
@@ -2420,6 +2624,14 @@
|
|
|
2420
2624
|
max-width: 960px;
|
|
2421
2625
|
}
|
|
2422
2626
|
|
|
2627
|
+
.x1jlfj8b {
|
|
2628
|
+
max-width: calc(100% - 2 * var(--x1lzhbes));
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
.xw7nakj {
|
|
2632
|
+
max-width: calc(100vw - 32px);
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2423
2635
|
.x2lwn1j {
|
|
2424
2636
|
min-height: 0;
|
|
2425
2637
|
}
|
|
@@ -2440,6 +2652,10 @@
|
|
|
2440
2652
|
min-height: 10rem;
|
|
2441
2653
|
}
|
|
2442
2654
|
|
|
2655
|
+
.xvrgn94 {
|
|
2656
|
+
min-height: 18px;
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2443
2659
|
.xe0957l {
|
|
2444
2660
|
min-height: 22px;
|
|
2445
2661
|
}
|
|
@@ -2500,14 +2716,6 @@
|
|
|
2500
2716
|
min-width: 12px;
|
|
2501
2717
|
}
|
|
2502
2718
|
|
|
2503
|
-
.x12kinc7 {
|
|
2504
|
-
min-width: 12rem;
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
.x1wu2mox {
|
|
2508
|
-
min-width: 14px;
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
2719
|
.xfb3i0g {
|
|
2512
2720
|
min-width: 180px;
|
|
2513
2721
|
}
|
|
@@ -2528,6 +2736,10 @@
|
|
|
2528
2736
|
min-width: 300px;
|
|
2529
2737
|
}
|
|
2530
2738
|
|
|
2739
|
+
.xw62h19 {
|
|
2740
|
+
min-width: 38%;
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2531
2743
|
.x900493 {
|
|
2532
2744
|
min-width: 48px;
|
|
2533
2745
|
}
|
|
@@ -2692,10 +2904,18 @@
|
|
|
2692
2904
|
right: 2px;
|
|
2693
2905
|
}
|
|
2694
2906
|
|
|
2907
|
+
.x1pzoy33 {
|
|
2908
|
+
right: 4px;
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2695
2911
|
.x1d37e2g {
|
|
2696
2912
|
right: 7px;
|
|
2697
2913
|
}
|
|
2698
2914
|
|
|
2915
|
+
.xwukr4l {
|
|
2916
|
+
right: auto;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2699
2919
|
.xjcl65e {
|
|
2700
2920
|
right: var(--x1ft7ks7);
|
|
2701
2921
|
}
|
|
@@ -2736,14 +2956,14 @@
|
|
|
2736
2956
|
top: 44px;
|
|
2737
2957
|
}
|
|
2738
2958
|
|
|
2739
|
-
.xndqk7f {
|
|
2740
|
-
top: 4px;
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
2959
|
.xwa60dl {
|
|
2744
2960
|
top: 50%;
|
|
2745
2961
|
}
|
|
2746
2962
|
|
|
2963
|
+
.xqzfmfr {
|
|
2964
|
+
top: calc(100% - 4px);
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2747
2967
|
.x87tjf4 {
|
|
2748
2968
|
top: var(--x1ft7ks7);
|
|
2749
2969
|
}
|
|
@@ -2804,6 +3024,10 @@
|
|
|
2804
3024
|
width: 20px;
|
|
2805
3025
|
}
|
|
2806
3026
|
|
|
3027
|
+
.x1jfg07d {
|
|
3028
|
+
width: 22%;
|
|
3029
|
+
}
|
|
3030
|
+
|
|
2807
3031
|
.x16grhtn {
|
|
2808
3032
|
width: 220px;
|
|
2809
3033
|
}
|
|
@@ -2828,6 +3052,10 @@
|
|
|
2828
3052
|
width: 26px;
|
|
2829
3053
|
}
|
|
2830
3054
|
|
|
3055
|
+
.xdqdh73 {
|
|
3056
|
+
width: 28%;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
2831
3059
|
.x1dz1jew {
|
|
2832
3060
|
width: 280px;
|
|
2833
3061
|
}
|
|
@@ -2848,6 +3076,10 @@
|
|
|
2848
3076
|
width: 32px;
|
|
2849
3077
|
}
|
|
2850
3078
|
|
|
3079
|
+
.xqblchm {
|
|
3080
|
+
width: 34rem;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
2851
3083
|
.x1cvmir6 {
|
|
2852
3084
|
width: 360px;
|
|
2853
3085
|
}
|
|
@@ -2876,6 +3108,10 @@
|
|
|
2876
3108
|
width: 56px;
|
|
2877
3109
|
}
|
|
2878
3110
|
|
|
3111
|
+
.xycev2y {
|
|
3112
|
+
width: 60%;
|
|
3113
|
+
}
|
|
3114
|
+
|
|
2879
3115
|
.x1fu8urw {
|
|
2880
3116
|
width: 64px;
|
|
2881
3117
|
}
|
|
@@ -2884,6 +3120,10 @@
|
|
|
2884
3120
|
width: 6px;
|
|
2885
3121
|
}
|
|
2886
3122
|
|
|
3123
|
+
.x65xoit {
|
|
3124
|
+
width: 70%;
|
|
3125
|
+
}
|
|
3126
|
+
|
|
2887
3127
|
.xni59qk {
|
|
2888
3128
|
width: 72px;
|
|
2889
3129
|
}
|
|
@@ -2900,6 +3140,10 @@
|
|
|
2900
3140
|
width: 9.5rem;
|
|
2901
3141
|
}
|
|
2902
3142
|
|
|
3143
|
+
.xm6i5cn {
|
|
3144
|
+
width: 90%;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
2903
3147
|
.x14atkfc {
|
|
2904
3148
|
width: auto;
|
|
2905
3149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backmatter/studio",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
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
|
}
|