@bendyline/docblocks-react 2.2.1 → 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/README.md +7 -2
- package/THIRD_PARTY_NOTICES.txt +11972 -0
- package/dist/{ExportToolbarControls-2VB43ITO.js → ExportToolbarControls-6MO4NX6H.js} +142 -73
- package/dist/{GitToolbarControl-FW3BZFXV.js → GitToolbarControl-VJVK2B4X.js} +4 -3
- package/dist/{GitUI-GMH3PAYL.js → GitUI-CAKFVKWY.js} +4 -3
- package/dist/chunk-APC4KI4B.js +0 -0
- package/dist/{chunk-BPGEBGAN.js → chunk-JDJVRDOP.js} +23 -0
- package/dist/{chunk-TFMO7EVO.js → chunk-MRUK56JS.js} +23 -4
- package/dist/chunk-VRRL6VTD.js +606 -0
- package/dist/editor.d.ts +12 -1
- package/dist/editor.js +9 -3
- package/dist/index.d.ts +72 -8
- package/dist/index.js +2251 -806
- package/dist/settings/index.d.ts +34 -2
- package/dist/settings/index.js +9 -3
- package/package.json +19 -9
- package/src/styles/docblocks.css +540 -5
- package/dist/chunk-3QSZY74C.js +0 -255
package/dist/settings/index.d.ts
CHANGED
|
@@ -7,7 +7,39 @@ type ThemePreference = 'auto' | 'light' | 'dark';
|
|
|
7
7
|
declare const ACCENT_COLORS: readonly ["brown", "green", "blue", "purple", "maroon", "orange", "gray"];
|
|
8
8
|
type AccentColor = (typeof ACCENT_COLORS)[number];
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Stable ids for the Write-canvas font schemes offered in Settings. This list
|
|
12
|
+
* mirrors `DOCBLOCKS_WRITE_CANVAS_FONT_SCHEMES` in `@bendyline/docblocks/vscode`
|
|
13
|
+
* (the wire/persisted contract) and the `docblocks.writeCanvasFontScheme` enum
|
|
14
|
+
* in the VS Code `package.json`; a guard test keeps the three in sync.
|
|
15
|
+
*/
|
|
16
|
+
type WriteCanvasFontScheme = 'theme' | 'serif-sans' | 'sans-sans' | 'serif-serif' | 'pt-serif' | 'hanken' | 'playfair-pt-serif' | 'hanken-lora' | 'dm-serif-dm-sans' | 'inter';
|
|
17
|
+
type WriteCanvasFontSchemeGroup = 'theme' | 'system' | 'curated';
|
|
18
|
+
interface WriteCanvasFontSchemeOption {
|
|
19
|
+
id: WriteCanvasFontScheme;
|
|
20
|
+
label: string;
|
|
21
|
+
group: WriteCanvasFontSchemeGroup;
|
|
22
|
+
/** CSS font-family for headings. Omitted for `'theme'` (inherit). */
|
|
23
|
+
headerFont?: string;
|
|
24
|
+
/** CSS font-family for body text. Omitted for `'theme'` (inherit). */
|
|
25
|
+
bodyFont?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Curated Write-canvas font schemes, in picker order. A named scheme is an
|
|
29
|
+
* explicit user preference and overrides the active theme in Write mode through
|
|
30
|
+
* the DocBlocks host stylesheet. `'theme'` sets no fonts, i.e. inherits the
|
|
31
|
+
* active theme / host as before.
|
|
32
|
+
*/
|
|
33
|
+
declare const WRITE_CANVAS_FONT_SCHEMES: readonly WriteCanvasFontSchemeOption[];
|
|
34
|
+
declare const DEFAULT_WRITE_CANVAS_FONT_SCHEME: WriteCanvasFontScheme;
|
|
35
|
+
/** Resolve a scheme id to the header/body CSS font-family strings (empty for `'theme'`). */
|
|
36
|
+
declare function resolveWriteCanvasFonts(scheme: WriteCanvasFontScheme): Pick<WriteCanvasSettings, 'headerFont' | 'bodyFont'>;
|
|
37
|
+
/** Persisted Write-canvas preferences. Stores the font scheme id, not resolved fonts. */
|
|
38
|
+
interface WriteCanvasPreferences {
|
|
39
|
+
textSize: number;
|
|
40
|
+
lineSpacing: number;
|
|
41
|
+
fontScheme: WriteCanvasFontScheme;
|
|
42
|
+
}
|
|
11
43
|
|
|
12
44
|
interface SettingsDialogProps {
|
|
13
45
|
title?: string;
|
|
@@ -33,4 +65,4 @@ interface WriteCanvasSettingsControlsProps {
|
|
|
33
65
|
}
|
|
34
66
|
declare function WriteCanvasSettingsControls({ value, onChange }: WriteCanvasSettingsControlsProps): react_jsx_runtime.JSX.Element;
|
|
35
67
|
|
|
36
|
-
export { type AccentColor, AccentColorSettings, type AccentColorSettingsProps, SettingsDialog, type SettingsDialogProps, type ThemePreference, ThemeSettings, type ThemeSettingsProps, type WriteCanvasPreferences, WriteCanvasSettingsControls, type WriteCanvasSettingsControlsProps };
|
|
68
|
+
export { type AccentColor, AccentColorSettings, type AccentColorSettingsProps, DEFAULT_WRITE_CANVAS_FONT_SCHEME, SettingsDialog, type SettingsDialogProps, type ThemePreference, ThemeSettings, type ThemeSettingsProps, WRITE_CANVAS_FONT_SCHEMES, type WriteCanvasFontScheme, type WriteCanvasFontSchemeGroup, type WriteCanvasFontSchemeOption, type WriteCanvasPreferences, WriteCanvasSettingsControls, type WriteCanvasSettingsControlsProps, resolveWriteCanvasFonts };
|
package/dist/settings/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccentColorSettings,
|
|
3
|
+
DEFAULT_WRITE_CANVAS_FONT_SCHEME,
|
|
3
4
|
SettingsDialog,
|
|
4
5
|
ThemeSettings,
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
WRITE_CANVAS_FONT_SCHEMES,
|
|
7
|
+
WriteCanvasSettingsControls,
|
|
8
|
+
resolveWriteCanvasFonts
|
|
9
|
+
} from "../chunk-VRRL6VTD.js";
|
|
7
10
|
import "../chunk-LG6HAWCK.js";
|
|
8
11
|
export {
|
|
9
12
|
AccentColorSettings,
|
|
13
|
+
DEFAULT_WRITE_CANVAS_FONT_SCHEME,
|
|
10
14
|
SettingsDialog,
|
|
11
15
|
ThemeSettings,
|
|
12
|
-
|
|
16
|
+
WRITE_CANVAS_FONT_SCHEMES,
|
|
17
|
+
WriteCanvasSettingsControls,
|
|
18
|
+
resolveWriteCanvasFonts
|
|
13
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/docblocks-react",
|
|
3
|
-
"version": "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",
|
|
@@ -30,7 +33,8 @@
|
|
|
30
33
|
],
|
|
31
34
|
"files": [
|
|
32
35
|
"dist",
|
|
33
|
-
"src/styles"
|
|
36
|
+
"src/styles",
|
|
37
|
+
"THIRD_PARTY_NOTICES.txt"
|
|
34
38
|
],
|
|
35
39
|
"exports": {
|
|
36
40
|
".": {
|
|
@@ -61,17 +65,23 @@
|
|
|
61
65
|
"typecheck": "tsc --noEmit"
|
|
62
66
|
},
|
|
63
67
|
"peerDependencies": {
|
|
68
|
+
"@types/react": "^18.0.0 || ^19.0.0",
|
|
64
69
|
"react": "^18.0.0 || ^19.0.0",
|
|
65
70
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
66
71
|
},
|
|
72
|
+
"peerDependenciesMeta": {
|
|
73
|
+
"@types/react": {
|
|
74
|
+
"optional": true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
67
77
|
"dependencies": {
|
|
68
|
-
"@bendyline/docblocks": "2.
|
|
69
|
-
"@bendyline/squisq": "2.
|
|
70
|
-
"@bendyline/squisq-editor-react": "2.
|
|
71
|
-
"@bendyline/squisq-formats": "2.3.
|
|
72
|
-
"@bendyline/squisq-react": "2.
|
|
73
|
-
"@bendyline/squisq-video": "2.2.
|
|
74
|
-
"@bendyline/squisq-video-react": "2.2.
|
|
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"
|
|
75
85
|
},
|
|
76
86
|
"devDependencies": {
|
|
77
87
|
"@happy-dom/global-registrator": "20.9.0",
|