@bendyline/docblocks-react 2.2.2 → 2.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/docblocks-react",
3
- "version": "2.2.2",
3
+ "version": "2.3.0",
4
4
  "description": "React components for DocBlocks — file explorer, workspace picker, and editor shell",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -20,6 +20,9 @@
20
20
  "publishConfig": {
21
21
  "access": "public"
22
22
  },
23
+ "engines": {
24
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
25
+ },
23
26
  "type": "module",
24
27
  "main": "./dist/index.js",
25
28
  "module": "./dist/index.js",
@@ -62,17 +65,23 @@
62
65
  "typecheck": "tsc --noEmit"
63
66
  },
64
67
  "peerDependencies": {
68
+ "@types/react": "^18.0.0 || ^19.0.0",
65
69
  "react": "^18.0.0 || ^19.0.0",
66
70
  "react-dom": "^18.0.0 || ^19.0.0"
67
71
  },
72
+ "peerDependenciesMeta": {
73
+ "@types/react": {
74
+ "optional": true
75
+ }
76
+ },
68
77
  "dependencies": {
69
- "@bendyline/docblocks": "2.2.2",
70
- "@bendyline/squisq": "2.4.1",
71
- "@bendyline/squisq-editor-react": "2.4.1",
72
- "@bendyline/squisq-formats": "2.3.5",
73
- "@bendyline/squisq-react": "2.4.1",
74
- "@bendyline/squisq-video": "2.2.5",
75
- "@bendyline/squisq-video-react": "2.2.5"
78
+ "@bendyline/docblocks": "2.3.0",
79
+ "@bendyline/squisq": "2.4.3",
80
+ "@bendyline/squisq-editor-react": "2.4.5",
81
+ "@bendyline/squisq-formats": "2.3.7",
82
+ "@bendyline/squisq-react": "2.4.5",
83
+ "@bendyline/squisq-video": "2.2.7",
84
+ "@bendyline/squisq-video-react": "2.2.9"
76
85
  },
77
86
  "devDependencies": {
78
87
  "@happy-dom/global-registrator": "20.9.0",
@@ -194,10 +194,23 @@
194
194
  }
195
195
 
196
196
  .db-explorer-actions {
197
+ display: flex;
198
+ align-items: center;
199
+ gap: 2px;
200
+ }
201
+
202
+ .db-explorer-sort-actions {
197
203
  display: flex;
198
204
  gap: 2px;
199
205
  }
200
206
 
207
+ .db-explorer-action-divider {
208
+ width: 1px;
209
+ height: 16px;
210
+ margin: 0 2px;
211
+ background: var(--db-border-strong);
212
+ }
213
+
201
214
  .db-pinned-documents {
202
215
  display: flex;
203
216
  flex-direction: column;
@@ -350,6 +363,23 @@
350
363
  color: var(--db-text-secondary);
351
364
  }
352
365
 
366
+ .db-explorer-btn[aria-pressed='true'] {
367
+ background: var(--db-bg-selected);
368
+ border-color: var(--db-bg-selected);
369
+ color: var(--db-text-on-selected);
370
+ }
371
+
372
+ .db-explorer-btn[aria-pressed='true']:hover:not(:disabled) {
373
+ background: var(--db-bg-selected-hover);
374
+ border-color: var(--db-bg-selected-hover);
375
+ color: var(--db-text-on-selected);
376
+ }
377
+
378
+ .db-explorer-btn:focus-visible {
379
+ outline: 2px solid var(--db-focus);
380
+ outline-offset: 1px;
381
+ }
382
+
353
383
  .db-explorer-btn:disabled {
354
384
  cursor: default;
355
385
  opacity: 0.55;
@@ -676,6 +706,23 @@
676
706
  text-overflow: ellipsis;
677
707
  }
678
708
 
709
+ .db-tree-last-modified {
710
+ width: 72px;
711
+ flex-shrink: 0;
712
+ margin-left: 8px;
713
+ overflow: hidden;
714
+ color: var(--db-text-secondary);
715
+ font-size: 11px;
716
+ font-variant-numeric: tabular-nums;
717
+ text-align: right;
718
+ text-overflow: ellipsis;
719
+ }
720
+
721
+ .db-tree-row--selected .db-tree-last-modified,
722
+ .db-tree-row--drop-target .db-tree-last-modified {
723
+ color: inherit;
724
+ }
725
+
679
726
  .db-tree-rename-input {
680
727
  flex: 1;
681
728
  padding: 1px 4px;
@@ -2773,6 +2820,41 @@ body.db-resizing-sidebar * {
2773
2820
  --squisq-editor-foreground: #1f2937;
2774
2821
  }
2775
2822
 
2823
+ /* Squisq's segmented mode controls otherwise retain their standalone
2824
+ slate/blue palette. Bind the control surface and every interaction state
2825
+ to the active DocBlocks appearance and accent. */
2826
+ .db-shell .squisq-editor-shell .squisq-preview-seg {
2827
+ background: var(--db-bg);
2828
+ border-color: var(--db-border);
2829
+ }
2830
+
2831
+ .db-shell .squisq-editor-shell .squisq-preview-seg-btn {
2832
+ border-left-color: var(--db-border);
2833
+ color: var(--db-text-secondary);
2834
+ }
2835
+
2836
+ .db-shell .squisq-editor-shell .squisq-preview-seg-btn:hover {
2837
+ background: var(--db-bg-hover);
2838
+ color: var(--db-text);
2839
+ }
2840
+
2841
+ .db-shell .squisq-editor-shell .squisq-preview-seg-btn--active {
2842
+ background: var(--db-accent);
2843
+ color: var(--db-text-on-accent);
2844
+ }
2845
+
2846
+ .db-shell .squisq-editor-shell .squisq-preview-seg-btn--active:hover {
2847
+ background: var(--db-accent-hover);
2848
+ color: var(--db-text-on-accent);
2849
+ }
2850
+
2851
+ .db-shell .squisq-editor-shell .squisq-preview-seg-btn:focus-visible {
2852
+ position: relative;
2853
+ z-index: 1;
2854
+ outline: 2px solid var(--db-focus, var(--db-accent));
2855
+ outline-offset: -2px;
2856
+ }
2857
+
2776
2858
  .db-shell .squisq-editor-shell[data-theme='dark'] {
2777
2859
  /* Match Monaco's built-in vs-dark canvas exactly so replacing the loading
2778
2860
  textarea with Monaco does not introduce a second, subtler color flash. */