@bendyline/docblocks-react 2.1.1 → 2.1.2
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.
|
@@ -409,7 +409,7 @@ function ExportToolbarControls({
|
|
|
409
409
|
role: "menuitem",
|
|
410
410
|
className: "db-toolbar-menu-item",
|
|
411
411
|
onClick: () => void handleOpenVideoModal("mp4"),
|
|
412
|
-
children: "Export
|
|
412
|
+
children: "Export video..."
|
|
413
413
|
}
|
|
414
414
|
),
|
|
415
415
|
showAnimatedGifExport && /* @__PURE__ */ jsx(
|
|
@@ -419,7 +419,7 @@ function ExportToolbarControls({
|
|
|
419
419
|
role: "menuitem",
|
|
420
420
|
className: "db-toolbar-menu-item",
|
|
421
421
|
onClick: () => void handleOpenVideoModal("gif"),
|
|
422
|
-
children: "Export
|
|
422
|
+
children: "Export animated gif..."
|
|
423
423
|
}
|
|
424
424
|
)
|
|
425
425
|
] })
|
package/dist/index.js
CHANGED
|
@@ -221,13 +221,19 @@ function useFileTree(provider) {
|
|
|
221
221
|
}
|
|
222
222
|
})();
|
|
223
223
|
};
|
|
224
|
-
const subscription = providerV2.watch(
|
|
225
|
-
|
|
226
|
-
if (
|
|
227
|
-
reportError(caught);
|
|
224
|
+
const subscription = providerV2.watch(
|
|
225
|
+
(event) => {
|
|
226
|
+
if (event.type === "modified") return;
|
|
228
227
|
requestRefresh();
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
onError: (caught) => {
|
|
231
|
+
if (disposed) return;
|
|
232
|
+
reportError(caught);
|
|
233
|
+
requestRefresh();
|
|
234
|
+
}
|
|
229
235
|
}
|
|
230
|
-
|
|
236
|
+
);
|
|
231
237
|
void subscription.ready.catch((caught) => {
|
|
232
238
|
if (!disposed) reportError(caught);
|
|
233
239
|
});
|
|
@@ -2254,7 +2260,7 @@ function useDocumentSession(autoSaveDelayMs = 500) {
|
|
|
2254
2260
|
import { lazy, Suspense } from "react";
|
|
2255
2261
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
2256
2262
|
var ExportToolbarControlsImplementation = lazy(
|
|
2257
|
-
() => import("./ExportToolbarControls-
|
|
2263
|
+
() => import("./ExportToolbarControls-C46GMPKC.js").then((module) => ({
|
|
2258
2264
|
default: module.ExportToolbarControls
|
|
2259
2265
|
}))
|
|
2260
2266
|
);
|
|
@@ -3549,8 +3555,9 @@ var editorShellModulePromise = null;
|
|
|
3549
3555
|
function loadEditorShell() {
|
|
3550
3556
|
editorShellModulePromise ?? (editorShellModulePromise = (async () => {
|
|
3551
3557
|
const workersReady = globalThis.docBlocksMonacoWorkersReady;
|
|
3552
|
-
|
|
3553
|
-
|
|
3558
|
+
const editorReady = import("./LazyEditorShell-LU4QFPDX.js");
|
|
3559
|
+
const [editorModule] = await Promise.all([editorReady, workersReady?.catch(() => void 0)]);
|
|
3560
|
+
return editorModule;
|
|
3554
3561
|
})());
|
|
3555
3562
|
return editorShellModulePromise;
|
|
3556
3563
|
}
|
|
@@ -6199,7 +6206,7 @@ function DocBlocksShell({
|
|
|
6199
6206
|
/* @__PURE__ */ jsx12("span", { className: "db-shell-sidebar-footer-separator", "aria-hidden": "true", children: "\u2022" }),
|
|
6200
6207
|
/* @__PURE__ */ jsx12("a", { href: "https://docblocks.com/terms/", target: "_blank", rel: "noopener noreferrer", children: "Terms" }),
|
|
6201
6208
|
/* @__PURE__ */ jsx12("span", { className: "db-shell-sidebar-footer-separator", "aria-hidden": "true", children: "\u2022" }),
|
|
6202
|
-
/* @__PURE__ */ jsx12("a", { href: issueReportUrl, target: "_blank", rel: "noopener noreferrer", children: "
|
|
6209
|
+
/* @__PURE__ */ jsx12("a", { href: issueReportUrl, target: "_blank", rel: "noopener noreferrer", children: "Report issue" }),
|
|
6203
6210
|
showBrowserStorageWarning && /* @__PURE__ */ jsxs11(Fragment7, { children: [
|
|
6204
6211
|
/* @__PURE__ */ jsx12("span", { className: "db-shell-sidebar-footer-separator", "aria-hidden": "true", children: "\u2022" }),
|
|
6205
6212
|
/* @__PURE__ */ jsx12(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/docblocks-react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "React components for DocBlocks — file explorer, workspace picker, and editor shell",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@bendyline/docblocks": "2.1.
|
|
69
|
-
"@bendyline/squisq": "2.3.
|
|
70
|
-
"@bendyline/squisq-editor-react": "2.3.
|
|
71
|
-
"@bendyline/squisq-formats": "2.3.
|
|
72
|
-
"@bendyline/squisq-react": "2.3.
|
|
73
|
-
"@bendyline/squisq-video": "2.2.
|
|
74
|
-
"@bendyline/squisq-video-react": "2.2.
|
|
68
|
+
"@bendyline/docblocks": "2.1.2",
|
|
69
|
+
"@bendyline/squisq": "2.3.2",
|
|
70
|
+
"@bendyline/squisq-editor-react": "2.3.3",
|
|
71
|
+
"@bendyline/squisq-formats": "2.3.2",
|
|
72
|
+
"@bendyline/squisq-react": "2.3.2",
|
|
73
|
+
"@bendyline/squisq-video": "2.2.2",
|
|
74
|
+
"@bendyline/squisq-video-react": "2.2.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@happy-dom/global-registrator": "20.9.0",
|
package/src/styles/docblocks.css
CHANGED
|
@@ -2808,6 +2808,7 @@ html:has(.db-shell[data-theme='dark']) {
|
|
|
2808
2808
|
--db-shadow: rgba(0, 0, 0, 0.4);
|
|
2809
2809
|
--db-accent: #c8b48f;
|
|
2810
2810
|
--db-accent-hover: #dec79d;
|
|
2811
|
+
--db-text-on-accent: #1a1812;
|
|
2811
2812
|
--db-accent-soft-15: rgba(200, 180, 143, 0.18);
|
|
2812
2813
|
--db-accent-soft-25: rgba(200, 180, 143, 0.28);
|
|
2813
2814
|
--db-accent-tint-strong: #3a382e;
|
|
@@ -2829,6 +2830,7 @@ html:has(.db-shell[data-theme='light']) {
|
|
|
2829
2830
|
--db-shadow: rgba(40, 30, 15, 0.12);
|
|
2830
2831
|
--db-accent: #7d6948;
|
|
2831
2832
|
--db-accent-hover: #5e4f37;
|
|
2833
|
+
--db-text-on-accent: #ffffff;
|
|
2832
2834
|
--db-accent-soft-15: rgba(125, 105, 72, 0.15);
|
|
2833
2835
|
--db-accent-soft-25: rgba(125, 105, 72, 0.25);
|
|
2834
2836
|
--db-accent-tint-strong: #d8d0b5;
|
|
@@ -3163,6 +3165,34 @@ html:has(.db-shell[data-theme='dark'][data-accent='gray']) {
|
|
|
3163
3165
|
--db-badge-text-hover: #ffffff;
|
|
3164
3166
|
}
|
|
3165
3167
|
|
|
3168
|
+
/* Custom layout authoring is portaled to document.body. Bind its host-facing
|
|
3169
|
+
accent tokens at that portal boundary so selected layouts, palette states,
|
|
3170
|
+
primary actions, and focus rings follow the active DocBlocks accent instead
|
|
3171
|
+
of Squisq's standalone indigo defaults. */
|
|
3172
|
+
html:has(.db-shell) :is(.squisq-template-designer-overlay, .squisq-layout-manager-overlay) {
|
|
3173
|
+
--squisq-layout-accent-text: var(--db-accent-hover);
|
|
3174
|
+
--squisq-layout-accent-bg: var(--db-accent);
|
|
3175
|
+
--squisq-layout-accent-bg-hover: var(--db-accent-hover);
|
|
3176
|
+
--squisq-layout-accent-border: var(--db-accent);
|
|
3177
|
+
--squisq-layout-accent-soft: var(--db-accent-tint-strong);
|
|
3178
|
+
--squisq-layout-accent-soft-hover: var(--db-bg-hover);
|
|
3179
|
+
--squisq-layout-accent-soft-border: var(--db-accent);
|
|
3180
|
+
--squisq-layout-accent-hover-border: var(--db-accent-hover);
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
html:has(.db-shell)
|
|
3184
|
+
:is(.squisq-template-designer-overlay, .squisq-layout-manager-overlay)
|
|
3185
|
+
.squisq-template-designer-btn--primary {
|
|
3186
|
+
color: var(--db-text-on-accent);
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3189
|
+
html:has(.db-shell)
|
|
3190
|
+
:is(.squisq-template-designer-overlay, .squisq-layout-manager-overlay)
|
|
3191
|
+
.squisq-template-designer-field
|
|
3192
|
+
input:focus {
|
|
3193
|
+
box-shadow: 0 0 0 3px var(--db-accent-soft-25);
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3166
3196
|
/* Convert/Insert is portaled to document.body, so the editor shell's Squisq
|
|
3167
3197
|
overrides cannot reach it. The active DocBlocks palette is already hoisted
|
|
3168
3198
|
to html above; consume it here so every accent and appearance produces the
|
|
@@ -4952,6 +4982,13 @@ button.db-git-file-row:hover {
|
|
|
4952
4982
|
padding-bottom: 2px;
|
|
4953
4983
|
}
|
|
4954
4984
|
|
|
4985
|
+
/* The native 32px caption band leaves the labels slightly above its visual
|
|
4986
|
+
center. Move only the text down; the tab hit area and active underline
|
|
4987
|
+
stay anchored to the titlebar edges. */
|
|
4988
|
+
.db-shell .squisq-toolbar-view-tab-label {
|
|
4989
|
+
transform: translateY(4px);
|
|
4990
|
+
}
|
|
4991
|
+
|
|
4955
4992
|
.db-shell .squisq-use-mode-trigger {
|
|
4956
4993
|
padding-bottom: 7px;
|
|
4957
4994
|
}
|