@bendyline/docblocks-react 2.1.2 → 2.2.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/index.js CHANGED
@@ -6143,6 +6143,14 @@ function DocBlocksShell({
6143
6143
  title: "Restore split view",
6144
6144
  children: /* @__PURE__ */ jsx12(SplitViewIcon, {})
6145
6145
  }
6146
+ ),
6147
+ /* @__PURE__ */ jsx12(
6148
+ "span",
6149
+ {
6150
+ className: "db-window-drag-grip",
6151
+ "data-tooltip": "Click and drag here to move your window around.",
6152
+ "aria-hidden": true
6153
+ }
6146
6154
  )
6147
6155
  ] }),
6148
6156
  git.available && /* @__PURE__ */ jsx12(Suspense2, { fallback: null, children: /* @__PURE__ */ jsx12(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/docblocks-react",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "React components for DocBlocks — file explorer, workspace picker, and editor shell",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -65,7 +65,7 @@
65
65
  "react-dom": "^18.0.0 || ^19.0.0"
66
66
  },
67
67
  "dependencies": {
68
- "@bendyline/docblocks": "2.1.2",
68
+ "@bendyline/docblocks": "2.2.0",
69
69
  "@bendyline/squisq": "2.3.2",
70
70
  "@bendyline/squisq-editor-react": "2.3.3",
71
71
  "@bendyline/squisq-formats": "2.3.2",
@@ -1138,6 +1138,7 @@ body.db-resizing-sidebar * {
1138
1138
  display: flex;
1139
1139
  align-items: center;
1140
1140
  gap: 6px;
1141
+ /* Match Squisq's rendered line box + 4px vertical padding + 1px border. */
1141
1142
  height: 23px;
1142
1143
  padding: 0 12px 0 18px;
1143
1144
  border-top: 1px solid var(--db-border-strong);
@@ -2812,6 +2813,7 @@ html:has(.db-shell[data-theme='dark']) {
2812
2813
  --db-accent-soft-15: rgba(200, 180, 143, 0.18);
2813
2814
  --db-accent-soft-25: rgba(200, 180, 143, 0.28);
2814
2815
  --db-accent-tint-strong: #3a382e;
2816
+ --db-accent-deep: #e6dcc0;
2815
2817
  --db-gutter-bg: #4a4538;
2816
2818
  }
2817
2819
 
@@ -2834,6 +2836,7 @@ html:has(.db-shell[data-theme='light']) {
2834
2836
  --db-accent-soft-15: rgba(125, 105, 72, 0.15);
2835
2837
  --db-accent-soft-25: rgba(125, 105, 72, 0.25);
2836
2838
  --db-accent-tint-strong: #d8d0b5;
2839
+ --db-accent-deep: #3d3220;
2837
2840
  --db-gutter-bg: #efe8d4;
2838
2841
  }
2839
2842
 
@@ -3165,6 +3168,54 @@ html:has(.db-shell[data-theme='dark'][data-accent='gray']) {
3165
3168
  --db-badge-text-hover: #ffffff;
3166
3169
  }
3167
3170
 
3171
+ /* The Use mode menu is portaled to document.body, outside both the DocBlocks
3172
+ shell and the Squisq editor shell. Consume the palette hoisted to `html`
3173
+ above so its surface, states, icons, and text follow every DocBlocks theme
3174
+ and accent instead of falling back to Squisq's standalone blue/slate UI. */
3175
+ html:has(.db-shell) .squisq-use-mode-menu {
3176
+ background: var(--db-bg);
3177
+ border-color: var(--db-border);
3178
+ box-shadow:
3179
+ 0 12px 32px var(--db-shadow),
3180
+ 0 2px 6px var(--db-shadow);
3181
+ }
3182
+
3183
+ html:has(.db-shell) .squisq-use-mode-menu .squisq-use-mode-menu-item {
3184
+ color: var(--db-text-secondary);
3185
+ }
3186
+
3187
+ html:has(.db-shell) .squisq-use-mode-menu .squisq-use-mode-menu-item:hover,
3188
+ html:has(.db-shell) .squisq-use-mode-menu .squisq-use-mode-menu-item:focus-visible {
3189
+ background: var(--db-bg-hover);
3190
+ color: var(--db-text);
3191
+ }
3192
+
3193
+ html:has(.db-shell) .squisq-use-mode-menu .squisq-use-mode-menu-item--selected {
3194
+ background: var(--db-accent-tint-strong);
3195
+ color: var(--db-accent-deep);
3196
+ }
3197
+
3198
+ html:has(.db-shell) .squisq-use-mode-menu .squisq-use-mode-menu-icon {
3199
+ background: var(--db-bg-hover);
3200
+ color: var(--db-text-muted);
3201
+ }
3202
+
3203
+ html:has(.db-shell)
3204
+ .squisq-use-mode-menu
3205
+ .squisq-use-mode-menu-item--selected
3206
+ .squisq-use-mode-menu-icon {
3207
+ background: var(--db-accent-soft-25);
3208
+ color: var(--db-accent-hover);
3209
+ }
3210
+
3211
+ html:has(.db-shell) .squisq-use-mode-menu .squisq-use-mode-menu-summary {
3212
+ color: var(--db-text-muted);
3213
+ }
3214
+
3215
+ html:has(.db-shell) .squisq-use-mode-menu .squisq-use-mode-menu-check {
3216
+ color: var(--db-accent-hover);
3217
+ }
3218
+
3168
3219
  /* Custom layout authoring is portaled to document.body. Bind its host-facing
3169
3220
  accent tokens at that portal boundary so selected layouts, palette states,
3170
3221
  primary actions, and focus rings follow the active DocBlocks accent instead
@@ -5017,18 +5068,20 @@ button.db-git-file-row:hover {
5017
5068
  }
5018
5069
 
5019
5070
  /* Make the draggable header space beside the workspace gear discoverable,
5020
- matching the Electron titlebar without introducing another control. */
5021
- .db-shell .db-shell-sidebar-header::after {
5022
- content: '';
5023
- width: 12px;
5071
+ matching the Electron titlebar without introducing another control. The
5072
+ 12px dotted content and its 8px right padding form one drag region. */
5073
+ .db-shell .db-window-drag-grip {
5074
+ box-sizing: border-box;
5075
+ width: 20px;
5024
5076
  height: 20px;
5025
- flex: 0 0 12px;
5026
- margin-right: 3px;
5077
+ flex: 0 0 20px;
5078
+ padding-right: 8px;
5027
5079
  background-image: radial-gradient(circle, var(--db-text-muted) 1px, transparent 1.25px);
5080
+ background-clip: content-box;
5081
+ background-origin: content-box;
5028
5082
  background-position: center;
5029
5083
  background-size: 4px 4px;
5030
5084
  opacity: 0.72;
5031
- pointer-events: none;
5032
5085
  app-region: drag;
5033
5086
  -webkit-app-region: drag;
5034
5087
  }