@nkzw/codiff-core 1.9.0 → 1.10.0
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/SharedWalkthroughApp.d.ts +2 -1
- package/dist/app/components/OpenReviewSourceDialog.d.ts +6 -0
- package/dist/app/components/OpenReviewSourceMenu.d.ts +5 -0
- package/dist/app/components/Panels.d.ts +6 -1
- package/dist/app/components/ReviewTopBar.d.ts +23 -0
- package/dist/app/components/Sidebar.d.ts +1 -3
- package/dist/app/hooks/useAppCommands.d.ts +3 -2
- package/dist/config/keyboard-layout.d.ts +13 -0
- package/dist/config/keymap.d.ts +3 -1
- package/dist/config/types.d.ts +1 -0
- package/dist/lib/files.d.ts +10 -1
- package/dist/react.mjs +293 -124
- package/dist/style.css +291 -158
- package/dist/types.d.ts +11 -0
- package/package.json +4 -3
package/dist/style.css
CHANGED
|
@@ -4805,6 +4805,7 @@ form._multiFieldForm_sre1d_1628 {
|
|
|
4805
4805
|
}
|
|
4806
4806
|
|
|
4807
4807
|
.app-shell {
|
|
4808
|
+
grid-template-rows: 40px minmax(0, 1fr);
|
|
4808
4809
|
grid-template-columns: 292px 0 minmax(0, 1fr);
|
|
4809
4810
|
height: 100%;
|
|
4810
4811
|
display: grid;
|
|
@@ -4818,18 +4819,21 @@ form._multiFieldForm_sre1d_1628 {
|
|
|
4818
4819
|
overflow: hidden;
|
|
4819
4820
|
}
|
|
4820
4821
|
|
|
4821
|
-
.
|
|
4822
|
+
.workspace-top-bar {
|
|
4822
4823
|
-webkit-app-region: drag;
|
|
4823
4824
|
backdrop-filter: blur(28px) saturate(1.3);
|
|
4824
4825
|
background: var(--sidebar-bg);
|
|
4825
4826
|
border-bottom: 1px solid var(--sidebar-border);
|
|
4826
4827
|
align-items: center;
|
|
4827
4828
|
height: 40px;
|
|
4828
|
-
padding: 0 14px 0 78px;
|
|
4829
4829
|
display: flex;
|
|
4830
4830
|
}
|
|
4831
4831
|
|
|
4832
|
-
|
|
4832
|
+
.plan-header {
|
|
4833
|
+
padding: 0 14px 0 78px;
|
|
4834
|
+
}
|
|
4835
|
+
|
|
4836
|
+
html[data-codiff-platform="darwin"] .workspace-top-bar {
|
|
4833
4837
|
backdrop-filter: none;
|
|
4834
4838
|
background: var(--sidebar-vibrancy-tint);
|
|
4835
4839
|
}
|
|
@@ -5238,7 +5242,6 @@ html[data-codiff-platform="darwin"] .plan-header {
|
|
|
5238
5242
|
}
|
|
5239
5243
|
|
|
5240
5244
|
.app-shell.sidebar-collapsed {
|
|
5241
|
-
grid-template-rows: auto minmax(0, 1fr);
|
|
5242
5245
|
grid-template-columns: minmax(0, 1fr);
|
|
5243
5246
|
}
|
|
5244
5247
|
|
|
@@ -5246,46 +5249,214 @@ html[data-codiff-platform="darwin"] .plan-header {
|
|
|
5246
5249
|
display: none;
|
|
5247
5250
|
}
|
|
5248
5251
|
|
|
5249
|
-
.
|
|
5250
|
-
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5252
|
+
.review-top-bar {
|
|
5253
|
+
grid-area: 1 / 1 / auto / -1;
|
|
5254
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
5255
|
+
gap: 12px;
|
|
5256
|
+
min-width: 0;
|
|
5257
|
+
padding: 0 14px 0 78px;
|
|
5258
|
+
display: grid;
|
|
5259
|
+
}
|
|
5260
|
+
|
|
5261
|
+
.share-shell .review-top-bar, .app-shell.window-fullscreen .review-top-bar {
|
|
5262
|
+
padding-left: 14px;
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5265
|
+
.review-top-bar-left, .review-top-bar-right {
|
|
5258
5266
|
align-items: center;
|
|
5259
5267
|
gap: 8px;
|
|
5260
|
-
|
|
5261
|
-
margin: 0;
|
|
5262
|
-
padding: 0 14px 0 78px;
|
|
5268
|
+
min-width: 0;
|
|
5263
5269
|
display: flex;
|
|
5264
5270
|
}
|
|
5265
5271
|
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
background: var(--sidebar-vibrancy-tint);
|
|
5272
|
+
.review-top-bar-left {
|
|
5273
|
+
justify-content: flex-start;
|
|
5269
5274
|
}
|
|
5270
5275
|
|
|
5271
|
-
.
|
|
5272
|
-
|
|
5276
|
+
.review-top-bar-right {
|
|
5277
|
+
justify-content: flex-end;
|
|
5273
5278
|
}
|
|
5274
5279
|
|
|
5275
|
-
.
|
|
5280
|
+
.review-top-bar-repository-slot {
|
|
5276
5281
|
color: var(--sidebar-text);
|
|
5277
5282
|
font-family: var(--font-mono);
|
|
5278
|
-
text-overflow: ellipsis;
|
|
5279
|
-
white-space: nowrap;
|
|
5280
5283
|
flex: 1;
|
|
5284
|
+
align-items: center;
|
|
5281
5285
|
min-width: 0;
|
|
5282
5286
|
font-size: 12px;
|
|
5283
5287
|
font-weight: 600;
|
|
5284
5288
|
line-height: 1.35;
|
|
5289
|
+
display: flex;
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
.review-top-bar-repository {
|
|
5293
|
+
-webkit-app-region: no-drag;
|
|
5294
|
+
text-overflow: ellipsis;
|
|
5295
|
+
white-space: nowrap;
|
|
5296
|
+
flex: 1;
|
|
5297
|
+
min-width: 0;
|
|
5285
5298
|
overflow: hidden;
|
|
5286
5299
|
}
|
|
5287
5300
|
|
|
5288
|
-
.
|
|
5301
|
+
.review-top-bar-repository-path {
|
|
5302
|
+
flex: 0 auto;
|
|
5303
|
+
align-items: center;
|
|
5304
|
+
display: flex;
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
.review-top-bar-repository-head {
|
|
5308
|
+
text-overflow: ellipsis;
|
|
5309
|
+
white-space: nowrap;
|
|
5310
|
+
flex: 0 auto;
|
|
5311
|
+
min-width: 0;
|
|
5312
|
+
overflow: hidden;
|
|
5313
|
+
}
|
|
5314
|
+
|
|
5315
|
+
.review-top-bar-repository-tail {
|
|
5316
|
+
text-overflow: ellipsis;
|
|
5317
|
+
white-space: nowrap;
|
|
5318
|
+
flex: none;
|
|
5319
|
+
min-width: 0;
|
|
5320
|
+
max-width: 100%;
|
|
5321
|
+
overflow: hidden;
|
|
5322
|
+
}
|
|
5323
|
+
|
|
5324
|
+
.review-top-bar-branch {
|
|
5325
|
+
color: var(--muted);
|
|
5326
|
+
corner-shape: squircle;
|
|
5327
|
+
font: 600 12px/1 var(--font-sans);
|
|
5328
|
+
text-overflow: ellipsis;
|
|
5329
|
+
white-space: nowrap;
|
|
5330
|
+
border-radius: 14px;
|
|
5331
|
+
flex: none;
|
|
5332
|
+
align-items: center;
|
|
5333
|
+
max-width: min(240px, 24vw);
|
|
5334
|
+
padding: 4px 8px;
|
|
5335
|
+
display: inline-flex;
|
|
5336
|
+
overflow: hidden;
|
|
5337
|
+
}
|
|
5338
|
+
|
|
5339
|
+
a.review-top-bar-repository, a.review-top-bar-source {
|
|
5340
|
+
color: inherit;
|
|
5341
|
+
text-decoration: none;
|
|
5342
|
+
}
|
|
5343
|
+
|
|
5344
|
+
a.review-top-bar-repository:hover, a.review-top-bar-source:hover {
|
|
5345
|
+
color: var(--text);
|
|
5346
|
+
}
|
|
5347
|
+
|
|
5348
|
+
a.review-top-bar-repository:focus-visible, a.review-top-bar-source:focus-visible {
|
|
5349
|
+
outline: 1px solid var(--tree-selection-focus);
|
|
5350
|
+
outline-offset: 2px;
|
|
5351
|
+
border-radius: 3px;
|
|
5352
|
+
}
|
|
5353
|
+
|
|
5354
|
+
.review-top-bar-source {
|
|
5355
|
+
-webkit-app-region: no-drag;
|
|
5356
|
+
color: var(--sidebar-text);
|
|
5357
|
+
font: 600 12px/1.35 var(--font-mono);
|
|
5358
|
+
white-space: nowrap;
|
|
5359
|
+
flex: none;
|
|
5360
|
+
align-items: center;
|
|
5361
|
+
gap: 4px;
|
|
5362
|
+
display: inline-flex;
|
|
5363
|
+
}
|
|
5364
|
+
|
|
5365
|
+
.review-top-bar-context {
|
|
5366
|
+
align-items: center;
|
|
5367
|
+
gap: 8px;
|
|
5368
|
+
min-width: 0;
|
|
5369
|
+
display: flex;
|
|
5370
|
+
}
|
|
5371
|
+
|
|
5372
|
+
.review-top-bar-actions {
|
|
5373
|
+
-webkit-app-region: no-drag;
|
|
5374
|
+
flex: none;
|
|
5375
|
+
align-items: center;
|
|
5376
|
+
gap: 6px;
|
|
5377
|
+
min-width: 0;
|
|
5378
|
+
display: flex;
|
|
5379
|
+
}
|
|
5380
|
+
|
|
5381
|
+
.review-top-bar-settings, .review-top-bar-settings > * {
|
|
5382
|
+
flex: none;
|
|
5383
|
+
align-items: center;
|
|
5384
|
+
width: auto;
|
|
5385
|
+
display: flex;
|
|
5386
|
+
}
|
|
5387
|
+
|
|
5388
|
+
.review-mode-control {
|
|
5389
|
+
-webkit-app-region: no-drag;
|
|
5390
|
+
corner-shape: squircle;
|
|
5391
|
+
border-radius: 16px;
|
|
5392
|
+
flex: none;
|
|
5393
|
+
align-items: center;
|
|
5394
|
+
gap: 2px;
|
|
5395
|
+
height: 30px;
|
|
5396
|
+
padding: 2px;
|
|
5397
|
+
display: inline-flex;
|
|
5398
|
+
}
|
|
5399
|
+
|
|
5400
|
+
.review-top-bar-branch, .review-mode-control {
|
|
5401
|
+
background: #7f7f7f14;
|
|
5402
|
+
border: 1px solid #7f7f7f1f;
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
.review-mode-control button {
|
|
5406
|
+
color: var(--muted);
|
|
5407
|
+
corner-shape: squircle;
|
|
5408
|
+
cursor: pointer;
|
|
5409
|
+
font: 600 11px/1 var(--font-sans);
|
|
5410
|
+
white-space: nowrap;
|
|
5411
|
+
background: none;
|
|
5412
|
+
border: 0;
|
|
5413
|
+
border-radius: 14px;
|
|
5414
|
+
justify-content: center;
|
|
5415
|
+
align-items: center;
|
|
5416
|
+
gap: 5px;
|
|
5417
|
+
min-width: 0;
|
|
5418
|
+
height: 24px;
|
|
5419
|
+
padding: 0 8px;
|
|
5420
|
+
display: inline-flex;
|
|
5421
|
+
}
|
|
5422
|
+
|
|
5423
|
+
.review-mode-control button:hover {
|
|
5424
|
+
color: var(--sidebar-text);
|
|
5425
|
+
background: #7f7f7f17;
|
|
5426
|
+
}
|
|
5427
|
+
|
|
5428
|
+
.review-mode-control button[aria-selected="true"] {
|
|
5429
|
+
background: var(--hover-wash);
|
|
5430
|
+
color: var(--sidebar-text);
|
|
5431
|
+
box-shadow: 0 1px 2px #00000014;
|
|
5432
|
+
}
|
|
5433
|
+
|
|
5434
|
+
.review-mode-label {
|
|
5435
|
+
text-overflow: ellipsis;
|
|
5436
|
+
min-width: 0;
|
|
5437
|
+
overflow: hidden;
|
|
5438
|
+
}
|
|
5439
|
+
|
|
5440
|
+
.review-mode-count {
|
|
5441
|
+
color: inherit;
|
|
5442
|
+
font: 700 10px/1 var(--font-mono);
|
|
5443
|
+
text-align: center;
|
|
5444
|
+
background: #7f7f7f29;
|
|
5445
|
+
border-radius: 999px;
|
|
5446
|
+
flex: none;
|
|
5447
|
+
min-width: 16px;
|
|
5448
|
+
padding: 3px 5px;
|
|
5449
|
+
}
|
|
5450
|
+
|
|
5451
|
+
.review-mode-dot {
|
|
5452
|
+
background: var(--sidebar-ref);
|
|
5453
|
+
border-radius: 50%;
|
|
5454
|
+
flex: none;
|
|
5455
|
+
width: 6px;
|
|
5456
|
+
height: 6px;
|
|
5457
|
+
}
|
|
5458
|
+
|
|
5459
|
+
.review-top-bar-icon-button {
|
|
5289
5460
|
-webkit-app-region: no-drag;
|
|
5290
5461
|
color: var(--muted);
|
|
5291
5462
|
corner-shape: squircle;
|
|
@@ -5303,12 +5474,13 @@ html[data-codiff-platform="darwin"] .collapsed-sidebar-bar {
|
|
|
5303
5474
|
display: inline-flex;
|
|
5304
5475
|
}
|
|
5305
5476
|
|
|
5306
|
-
.
|
|
5477
|
+
.review-top-bar-icon-button:hover {
|
|
5307
5478
|
color: var(--sidebar-text);
|
|
5308
5479
|
background: #7f7f7f24;
|
|
5309
5480
|
}
|
|
5310
5481
|
|
|
5311
|
-
.
|
|
5482
|
+
.review-top-bar-icon-button:active {
|
|
5483
|
+
color: var(--sidebar-text);
|
|
5312
5484
|
background: #7f7f7f33;
|
|
5313
5485
|
}
|
|
5314
5486
|
|
|
@@ -5321,6 +5493,10 @@ html[data-codiff-platform="darwin"] .collapsed-sidebar-bar {
|
|
|
5321
5493
|
position: relative;
|
|
5322
5494
|
}
|
|
5323
5495
|
|
|
5496
|
+
.app-shell > .sidebar, .app-shell > .sidebar-resizer, .app-shell > .review {
|
|
5497
|
+
grid-row: 2;
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5324
5500
|
.sidebar-resizer:before {
|
|
5325
5501
|
content: "";
|
|
5326
5502
|
background: none;
|
|
@@ -5581,31 +5757,6 @@ html[data-codiff-platform="darwin"] .sidebar {
|
|
|
5581
5757
|
background: var(--sidebar-vibrancy-tint);
|
|
5582
5758
|
}
|
|
5583
5759
|
|
|
5584
|
-
.sidebar-header {
|
|
5585
|
-
-webkit-app-region: drag;
|
|
5586
|
-
border-bottom: 1px solid var(--sidebar-border);
|
|
5587
|
-
flex: none;
|
|
5588
|
-
min-width: 0;
|
|
5589
|
-
padding: 0 14px;
|
|
5590
|
-
}
|
|
5591
|
-
|
|
5592
|
-
.sidebar-path-row {
|
|
5593
|
-
align-items: center;
|
|
5594
|
-
gap: 8px;
|
|
5595
|
-
min-width: 0;
|
|
5596
|
-
min-height: 38px;
|
|
5597
|
-
padding-left: 64px;
|
|
5598
|
-
display: flex;
|
|
5599
|
-
}
|
|
5600
|
-
|
|
5601
|
-
.app-shell.window-fullscreen .sidebar-path-row, .share-shell .sidebar-path-row {
|
|
5602
|
-
padding-left: 0;
|
|
5603
|
-
}
|
|
5604
|
-
|
|
5605
|
-
.merge-request-shell .sidebar-path-row {
|
|
5606
|
-
gap: 6px;
|
|
5607
|
-
}
|
|
5608
|
-
|
|
5609
5760
|
.merge-request-nav-button {
|
|
5610
5761
|
color: var(--muted);
|
|
5611
5762
|
cursor: pointer;
|
|
@@ -5640,19 +5791,6 @@ html[data-codiff-platform="darwin"] .sidebar {
|
|
|
5640
5791
|
padding: 18px 14px;
|
|
5641
5792
|
}
|
|
5642
5793
|
|
|
5643
|
-
.sidebar-path {
|
|
5644
|
-
color: var(--sidebar-text);
|
|
5645
|
-
font-family: var(--font-mono);
|
|
5646
|
-
text-overflow: ellipsis;
|
|
5647
|
-
white-space: nowrap;
|
|
5648
|
-
flex: 1;
|
|
5649
|
-
min-width: 0;
|
|
5650
|
-
font-size: 12px;
|
|
5651
|
-
font-weight: 600;
|
|
5652
|
-
line-height: 1.35;
|
|
5653
|
-
overflow: hidden;
|
|
5654
|
-
}
|
|
5655
|
-
|
|
5656
5794
|
.sidebar-search-row {
|
|
5657
5795
|
flex: none;
|
|
5658
5796
|
gap: 8px;
|
|
@@ -5660,78 +5798,6 @@ html[data-codiff-platform="darwin"] .sidebar {
|
|
|
5660
5798
|
display: grid;
|
|
5661
5799
|
}
|
|
5662
5800
|
|
|
5663
|
-
.sidebar-mode-toggle {
|
|
5664
|
-
border-bottom: 1px solid var(--sidebar-border);
|
|
5665
|
-
flex: none;
|
|
5666
|
-
grid-template-columns: minmax(48px, .75fr) minmax(96px, 1.35fr) minmax(68px, .9fr);
|
|
5667
|
-
gap: 6px;
|
|
5668
|
-
padding: 0 8px;
|
|
5669
|
-
display: grid;
|
|
5670
|
-
}
|
|
5671
|
-
|
|
5672
|
-
.share-shell .sidebar-mode-toggle {
|
|
5673
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
5674
|
-
}
|
|
5675
|
-
|
|
5676
|
-
.share-shell .sidebar-mode-toggle-with-comments, .merge-request-shell .sidebar-mode-toggle {
|
|
5677
|
-
grid-template-columns: minmax(42px, .65fr) minmax(88px, 1.05fr) minmax(102px, 1.3fr);
|
|
5678
|
-
}
|
|
5679
|
-
|
|
5680
|
-
.sidebar-mode-toggle button {
|
|
5681
|
-
-webkit-app-region: no-drag;
|
|
5682
|
-
color: var(--muted);
|
|
5683
|
-
corner-shape: squircle;
|
|
5684
|
-
cursor: pointer;
|
|
5685
|
-
font: 600 12px/1.35 var(--font-sans);
|
|
5686
|
-
background: none;
|
|
5687
|
-
border: 0;
|
|
5688
|
-
border-radius: 24px 24px 0 0;
|
|
5689
|
-
justify-content: center;
|
|
5690
|
-
align-items: center;
|
|
5691
|
-
gap: 5px;
|
|
5692
|
-
min-width: 0;
|
|
5693
|
-
height: 30px;
|
|
5694
|
-
padding: 0 8px;
|
|
5695
|
-
display: inline-flex;
|
|
5696
|
-
}
|
|
5697
|
-
|
|
5698
|
-
.sidebar-mode-toggle button span:first-child {
|
|
5699
|
-
text-overflow: ellipsis;
|
|
5700
|
-
min-width: 0;
|
|
5701
|
-
overflow: hidden;
|
|
5702
|
-
}
|
|
5703
|
-
|
|
5704
|
-
.sidebar-tab-count {
|
|
5705
|
-
color: var(--muted);
|
|
5706
|
-
font: 700 10px/1 var(--font-mono);
|
|
5707
|
-
text-align: center;
|
|
5708
|
-
background: #7f7f7f29;
|
|
5709
|
-
border-radius: 999px;
|
|
5710
|
-
flex: none;
|
|
5711
|
-
min-width: 16px;
|
|
5712
|
-
padding: 3px 5px;
|
|
5713
|
-
}
|
|
5714
|
-
|
|
5715
|
-
.sidebar-mode-toggle button[aria-selected="true"] .sidebar-tab-count {
|
|
5716
|
-
color: var(--sidebar-text);
|
|
5717
|
-
background: #7f7f7f38;
|
|
5718
|
-
}
|
|
5719
|
-
|
|
5720
|
-
.sidebar-mode-toggle button:hover:not(:disabled) {
|
|
5721
|
-
color: var(--sidebar-text);
|
|
5722
|
-
background: #7f7f7f1a;
|
|
5723
|
-
}
|
|
5724
|
-
|
|
5725
|
-
.sidebar-mode-toggle button[aria-selected="true"] {
|
|
5726
|
-
color: var(--sidebar-text);
|
|
5727
|
-
background: #7f7f7f24;
|
|
5728
|
-
}
|
|
5729
|
-
|
|
5730
|
-
.sidebar-mode-toggle button:disabled {
|
|
5731
|
-
cursor: default;
|
|
5732
|
-
opacity: .45;
|
|
5733
|
-
}
|
|
5734
|
-
|
|
5735
5801
|
.sidebar-settings-bar {
|
|
5736
5802
|
border-top: 1px solid var(--sidebar-border);
|
|
5737
5803
|
flex: none;
|
|
@@ -8120,6 +8186,7 @@ diffs-container .review-comment-thread {
|
|
|
8120
8186
|
|
|
8121
8187
|
.empty-panel code {
|
|
8122
8188
|
color: var(--text);
|
|
8189
|
+
overflow-wrap: anywhere;
|
|
8123
8190
|
}
|
|
8124
8191
|
|
|
8125
8192
|
.empty-panel-menu-path {
|
|
@@ -8304,9 +8371,8 @@ diffs-container .review-comment-thread {
|
|
|
8304
8371
|
padding: 4px 6px;
|
|
8305
8372
|
}
|
|
8306
8373
|
|
|
8307
|
-
.command-bar-overlay {
|
|
8374
|
+
.command-bar-overlay, .open-review-source-overlay {
|
|
8308
8375
|
backdrop-filter: blur(4px);
|
|
8309
|
-
z-index: 100;
|
|
8310
8376
|
background: #ffffff47;
|
|
8311
8377
|
justify-content: center;
|
|
8312
8378
|
align-items: flex-start;
|
|
@@ -8316,28 +8382,35 @@ diffs-container .review-comment-thread {
|
|
|
8316
8382
|
inset: 0;
|
|
8317
8383
|
}
|
|
8318
8384
|
|
|
8319
|
-
|
|
8385
|
+
.command-bar-overlay {
|
|
8386
|
+
z-index: 100;
|
|
8387
|
+
}
|
|
8388
|
+
|
|
8389
|
+
:root[data-theme="dark"] .command-bar-overlay, :root[data-theme="dark"] .open-review-source-overlay {
|
|
8320
8390
|
background: #00000029;
|
|
8321
8391
|
}
|
|
8322
8392
|
|
|
8323
8393
|
@media (prefers-color-scheme: dark) {
|
|
8324
|
-
:root:not([data-theme="light"]) .command-bar-overlay {
|
|
8394
|
+
:root:not([data-theme="light"]) .command-bar-overlay, :root:not([data-theme="light"]) .open-review-source-overlay {
|
|
8325
8395
|
background: #00000029;
|
|
8326
8396
|
}
|
|
8327
8397
|
}
|
|
8328
8398
|
|
|
8329
|
-
.command-bar {
|
|
8399
|
+
.command-bar, .open-review-source-dialog {
|
|
8330
8400
|
backdrop-filter: blur(28px) saturate(1.4);
|
|
8331
8401
|
background: color-mix(in srgb, var(--code-bg) 88%, transparent);
|
|
8332
8402
|
border: 1px solid var(--file-border);
|
|
8333
8403
|
corner-shape: squircle;
|
|
8334
8404
|
border-radius: 28px;
|
|
8405
|
+
box-shadow: inset 0 0 0 1px #ffffff1f, 0 18px 80px -54px #000000c7, 0 16px 46px -30px #000000b8, 0 12px 24px -18px #000000e6;
|
|
8406
|
+
}
|
|
8407
|
+
|
|
8408
|
+
.command-bar {
|
|
8335
8409
|
flex-direction: column;
|
|
8336
8410
|
width: min(520px, 90vw);
|
|
8337
8411
|
max-height: 400px;
|
|
8338
8412
|
display: flex;
|
|
8339
8413
|
overflow: hidden;
|
|
8340
|
-
box-shadow: inset 0 0 0 1px #ffffff1f, 0 18px 80px -54px #000000c7, 0 16px 46px -30px #000000b8, 0 12px 24px -18px #000000e6;
|
|
8341
8414
|
}
|
|
8342
8415
|
|
|
8343
8416
|
.command-bar-input {
|
|
@@ -8425,25 +8498,85 @@ diffs-container .review-comment-thread {
|
|
|
8425
8498
|
padding: 3px 6px;
|
|
8426
8499
|
}
|
|
8427
8500
|
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8501
|
+
.open-review-source-overlay {
|
|
8502
|
+
z-index: 101;
|
|
8503
|
+
padding-inline: 16px;
|
|
8504
|
+
}
|
|
8505
|
+
|
|
8506
|
+
.open-review-source-dialog {
|
|
8507
|
+
flex-direction: column;
|
|
8508
|
+
gap: 18px;
|
|
8509
|
+
width: min(520px, 100%);
|
|
8510
|
+
padding: 20px;
|
|
8511
|
+
display: flex;
|
|
8512
|
+
box-shadow: 0 10px 30px #00000029;
|
|
8513
|
+
}
|
|
8514
|
+
|
|
8515
|
+
.open-review-source-heading {
|
|
8516
|
+
gap: 5px;
|
|
8517
|
+
display: grid;
|
|
8518
|
+
}
|
|
8519
|
+
|
|
8520
|
+
.open-review-source-heading h2 {
|
|
8521
|
+
font: 600 16px/1.35 var(--font-sans);
|
|
8522
|
+
}
|
|
8434
8523
|
|
|
8435
|
-
|
|
8436
|
-
|
|
8524
|
+
.open-review-source-heading p, .open-review-source-error {
|
|
8525
|
+
color: var(--muted);
|
|
8526
|
+
font: 13px/1.4 var(--font-sans);
|
|
8527
|
+
}
|
|
8528
|
+
|
|
8529
|
+
.open-review-source-field {
|
|
8530
|
+
gap: 7px;
|
|
8531
|
+
display: grid;
|
|
8532
|
+
}
|
|
8533
|
+
|
|
8534
|
+
.open-review-source-label {
|
|
8535
|
+
font: 600 12px/1.35 var(--font-sans);
|
|
8536
|
+
}
|
|
8537
|
+
|
|
8538
|
+
.open-review-source-input {
|
|
8539
|
+
color: var(--text);
|
|
8540
|
+
corner-shape: squircle;
|
|
8541
|
+
font: 14px/1.35 var(--font-sans);
|
|
8542
|
+
background: #7f7f7f1a;
|
|
8543
|
+
border: 0;
|
|
8544
|
+
border-radius: 17px;
|
|
8545
|
+
outline: none;
|
|
8546
|
+
width: 100%;
|
|
8547
|
+
height: 34px;
|
|
8548
|
+
padding: 0 12px;
|
|
8549
|
+
}
|
|
8550
|
+
|
|
8551
|
+
.open-review-source-input:focus {
|
|
8552
|
+
box-shadow: 0 0 0 2px #3d87f552;
|
|
8553
|
+
}
|
|
8554
|
+
|
|
8555
|
+
.open-review-source-input::placeholder {
|
|
8556
|
+
color: var(--muted);
|
|
8557
|
+
}
|
|
8558
|
+
|
|
8559
|
+
.open-review-source-error {
|
|
8560
|
+
color: var(--danger);
|
|
8561
|
+
}
|
|
8562
|
+
|
|
8563
|
+
.open-review-source-actions {
|
|
8564
|
+
justify-content: space-between;
|
|
8565
|
+
display: flex;
|
|
8566
|
+
}
|
|
8567
|
+
|
|
8568
|
+
@media (width <= 720px) {
|
|
8569
|
+
.review-top-bar-repository-slot, .review-top-bar-context {
|
|
8570
|
+
display: none;
|
|
8437
8571
|
}
|
|
8572
|
+
}
|
|
8438
8573
|
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
padding-inline:
|
|
8442
|
-
font-size: 11px;
|
|
8574
|
+
@media (width <= 480px) {
|
|
8575
|
+
.review-mode-control button {
|
|
8576
|
+
padding-inline: 7px;
|
|
8443
8577
|
}
|
|
8444
8578
|
|
|
8445
|
-
.
|
|
8446
|
-
|
|
8447
|
-
padding-inline: 4px;
|
|
8579
|
+
.review-mode-label {
|
|
8580
|
+
display: none;
|
|
8448
8581
|
}
|
|
8449
8582
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -147,6 +147,8 @@ export type ReviewSource = {
|
|
|
147
147
|
type: 'pull-request';
|
|
148
148
|
url: string;
|
|
149
149
|
};
|
|
150
|
+
/** Sources that can be entered from the palette or native application menu. */
|
|
151
|
+
export type OpenReviewSourceKind = 'branch' | 'commit' | 'pull-request';
|
|
150
152
|
export type HistoryEntry = {
|
|
151
153
|
author: string;
|
|
152
154
|
committedAt: number;
|
|
@@ -355,6 +357,7 @@ export type WalkthroughContext = {
|
|
|
355
357
|
};
|
|
356
358
|
export type CodiffLaunchOptions = {
|
|
357
359
|
agentBackend?: 'codex' | 'claude' | 'opencode' | 'pi';
|
|
360
|
+
applyUpdate?: boolean;
|
|
358
361
|
claudeSessionId?: string;
|
|
359
362
|
codexSessionId?: string;
|
|
360
363
|
opencodeSessionId?: string;
|
|
@@ -647,6 +650,14 @@ export type CodiffPreferences = {
|
|
|
647
650
|
wordWrap: boolean;
|
|
648
651
|
};
|
|
649
652
|
export type ReviewPreferences = Pick<CodiffPreferences, 'codeFontFamily' | 'codeFontSize' | 'diffStyle' | 'showWhitespace' | 'theme' | 'wordWrap'>;
|
|
653
|
+
export type CodiffUpdatePhase = 'available' | 'error' | 'idle' | 'installerReady' | 'updating';
|
|
654
|
+
export type CodiffUpdateStatus = {
|
|
655
|
+
currentVersion: string;
|
|
656
|
+
message?: string;
|
|
657
|
+
phase: CodiffUpdatePhase;
|
|
658
|
+
strategy?: 'download' | 'manual' | 'squirrel';
|
|
659
|
+
version?: string;
|
|
660
|
+
};
|
|
650
661
|
export type PullRequestReviewComment = {
|
|
651
662
|
anchor?: 'file' | 'line';
|
|
652
663
|
body: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nkzw/codiff-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "A fast diff viewer.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"sideEffects": [
|
|
20
20
|
"./App.css",
|
|
21
|
+
"./Desktop.css",
|
|
21
22
|
"./dist/*.css"
|
|
22
23
|
],
|
|
23
24
|
"main": "./dist/index.mjs",
|
|
@@ -55,10 +56,10 @@
|
|
|
55
56
|
"@phosphor-icons/react": "^2.1.10",
|
|
56
57
|
"@pierre/diffs": "1.3.0-beta.9",
|
|
57
58
|
"@pierre/trees": "1.0.0-beta.5",
|
|
58
|
-
"@radix-ui/react-slot": "^1.3.
|
|
59
|
+
"@radix-ui/react-slot": "^1.3.3",
|
|
59
60
|
"class-variance-authority": "^0.7.1",
|
|
60
61
|
"ghostty-web": "^0.4.0",
|
|
61
|
-
"lucide-react": "^1.
|
|
62
|
+
"lucide-react": "^1.26.0",
|
|
62
63
|
"valibot": "^1.4.2"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|