@bendyline/docblocks-react 2.6.2 → 2.7.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 +3 -10
- package/THIRD_PARTY_NOTICES.txt +4284 -3651
- package/dist/AiDiagrams-XWOM3YZX.js +13 -0
- package/dist/AiEditorAssistant-M4LI2CRY.js +771 -0
- package/dist/AudioExportDialog-F23QXNPB.js +253 -0
- package/dist/DocumentConflictDialog-5LRVIGXS.js +111 -0
- package/dist/ExportDialog-L6FG6W3H.js +9 -0
- package/dist/{ExportToolbarControls-QYLBRWM7.js → ExportToolbarControls-BRCPZ7H3.js} +108 -42
- package/dist/{GitUI-L5T3XHZG.js → GitUI-LZW3IUXO.js} +5 -5
- package/dist/PresentationMaker-622NHMIN.js +9 -0
- package/dist/QuickOpenDialog-2KK4SEBU.js +356 -0
- package/dist/Settings-DuXk6baH.d.ts +144 -0
- package/dist/{ShareDialog-4OX3UPJ4.js → ShareDialog-N7GPM4SB.js} +10 -59
- package/dist/SpeechToolbarControl-UZQKGQWD.js +434 -0
- package/dist/TextFromNarration-XYRAB6O2.js +598 -0
- package/dist/WorkspaceSearchPanel-OUQQ5DOM.js +328 -0
- package/dist/chunk-2IYBBFQX.js +201 -0
- package/dist/{chunk-LG6HAWCK.js → chunk-56KO2LYN.js} +35 -4
- package/dist/chunk-5OZBGIIT.js +1826 -0
- package/dist/chunk-6B7G33D5.js +88 -0
- package/dist/chunk-ARATARVJ.js +40 -0
- package/dist/{chunk-ODYNOPC3.js → chunk-BCQZTWE5.js} +57 -17
- package/dist/chunk-EA4BO6E4.js +73 -0
- package/dist/chunk-G4MFB3IO.js +208 -0
- package/dist/chunk-I44HKDQX.js +314 -0
- package/dist/chunk-K4I3NJFL.js +49 -0
- package/dist/chunk-KBDZDFPU.js +61 -0
- package/dist/{chunk-FNSRCCBC.js → chunk-KWG6UP5O.js} +0 -10
- package/dist/chunk-MMOTEQK6.js +518 -0
- package/dist/chunk-OINKNX26.js +574 -0
- package/dist/chunk-Q5ZVP5LV.js +1711 -0
- package/dist/chunk-RP3DVNTI.js +62 -0
- package/dist/{chunk-FMDLZ4ZG.js → chunk-SGQKTKDX.js} +2 -2
- package/dist/chunk-TBLZBNQF.js +25 -0
- package/dist/{chunk-M5Y5WO7Z.js → chunk-UG4G7PJ4.js} +1 -1
- package/dist/chunk-UONFWKJ7.js +22 -0
- package/dist/chunk-VO2JYYQZ.js +40 -0
- package/dist/{chunk-EBWYGTN7.js → chunk-X437UAF7.js} +6 -0
- package/dist/chunk-YS4HVWIO.js +63 -0
- package/dist/editor.d.ts +36 -1
- package/dist/editor.js +16 -1
- package/dist/export/index.d.ts +27 -11
- package/dist/export/index.js +11 -7
- package/dist/index.d.ts +100 -13
- package/dist/index.js +3916 -1633
- package/dist/{run-export-I2XOVGG4.js → run-export-47X5FTYZ.js} +3 -3
- package/dist/settings/index.d.ts +32 -101
- package/dist/settings/index.js +14 -2
- package/package.json +9 -9
- package/src/styles/docblocks.css +2332 -656
- package/dist/ExportDialog-Q4VWI43H.js +0 -9
- package/dist/chunk-JDJVRDOP.js +0 -92
- package/dist/chunk-Q6XNIKDG.js +0 -669
- package/dist/{GitToolbarControl-O5AXBC6T.js → GitToolbarControl-J4UYZDV6.js} +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BCQZTWE5.js";
|
|
4
4
|
import {
|
|
5
5
|
buildExportFilename
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-UG4G7PJ4.js";
|
|
7
|
+
import "./chunk-X437UAF7.js";
|
|
8
8
|
export {
|
|
9
9
|
buildExportFilename,
|
|
10
10
|
runExport
|
package/dist/settings/index.d.ts
CHANGED
|
@@ -1,104 +1,35 @@
|
|
|
1
|
+
export { A as AccentColor, a as AccentColorSettings, b as AccentColorSettingsProps, c as AiSettingsControls, d as AiSettingsControlsProps, D as DEFAULT_INTERFACE_FONT, e as DEFAULT_PROOFING_PREFERENCES, f as DEFAULT_WRITE_CANVAS_FONT_SCHEME, I as InterfaceFontPreference, g as InterfaceFontSettings, h as InterfaceFontSettingsProps, P as ProofingPreferences, i as ProofingSettingsControls, j as ProofingSettingsControlsProps, S as SettingsDialog, k as SettingsDialogProps, T as ThemePreference, l as ThemeSettings, m as ThemeSettingsProps, W as WRITE_CANVAS_FONT_SCHEMES, n as WriteCanvasFontScheme, o as WriteCanvasFontSchemeGroup, p as WriteCanvasFontSchemeOption, q as WriteCanvasPreferences, r as WriteCanvasSettingsControls, s as WriteCanvasSettingsControlsProps, t as loadInterfaceFont, u as loadProofingPreferences, v as resolveWriteCanvasFonts, w as saveInterfaceFont, x as saveProofingPreferences } from '../Settings-DuXk6baH.js';
|
|
1
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
3
|
+
import { WorkspaceSettings } from '@bendyline/docblocks/workspace-settings';
|
|
4
|
+
import '@bendyline/docblocks/host';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '@bendyline/squisq-editor-react';
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
interface WorkspaceSettingsThemeOption {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly name: string;
|
|
11
|
+
}
|
|
12
|
+
interface WorkspaceCatalogStatusView {
|
|
13
|
+
readonly message: string;
|
|
14
|
+
readonly tone: 'info' | 'warning';
|
|
15
|
+
}
|
|
16
|
+
interface WorkspaceSettingsControlsProps {
|
|
17
|
+
value: WorkspaceSettings;
|
|
18
|
+
onChange: (next: WorkspaceSettings) => void;
|
|
19
|
+
themes: readonly WorkspaceSettingsThemeOption[];
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Present when the host keeps version history. `inheritLabel` describes
|
|
23
|
+
* what "use the app default" currently means for this workspace.
|
|
24
|
+
*/
|
|
25
|
+
versionHistory?: {
|
|
26
|
+
readonly inheritLabel: string;
|
|
27
|
+
};
|
|
28
|
+
catalogStatus?: WorkspaceCatalogStatusView | null;
|
|
29
|
+
/** Rebuild the catalog now. Omit when the host cannot. */
|
|
30
|
+
onRegenerate?: () => void;
|
|
31
|
+
regenerating?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare function WorkspaceSettingsControls({ value, onChange, themes, disabled, versionHistory, catalogStatus, onRegenerate, regenerating, }: WorkspaceSettingsControlsProps): react_jsx_runtime.JSX.Element;
|
|
9
34
|
|
|
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
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Inline proofing preferences — which squiggles the editor draws.
|
|
46
|
-
*
|
|
47
|
-
* Two independent switches rather than one, because they fail
|
|
48
|
-
* differently: spell checking is language-agnostic enough to leave on
|
|
49
|
-
* everywhere, while the grammar rules harper ships are English-only and
|
|
50
|
-
* are noise in a document written in anything else. The engine itself is
|
|
51
|
-
* still all-or-nothing (harper lints once and reports a category per
|
|
52
|
-
* finding), so these filter what surfaces; turning both off is what
|
|
53
|
-
* turns proofing — and the ~30 MiB engine download — off entirely.
|
|
54
|
-
*
|
|
55
|
-
* Stored per browser/profile, never in the document: a reader's tolerance
|
|
56
|
-
* for green underlines is not content. The per-document opt-out lives in
|
|
57
|
-
* `squisq-proofing` frontmatter and is separate from this.
|
|
58
|
-
*/
|
|
59
|
-
interface ProofingPreferences {
|
|
60
|
-
/** Draw red squiggles under misspellings. */
|
|
61
|
-
spelling: boolean;
|
|
62
|
-
/** Draw green/blue squiggles under grammar and style findings. */
|
|
63
|
-
grammar: boolean;
|
|
64
|
-
}
|
|
65
|
-
declare const DEFAULT_PROOFING_PREFERENCES: Readonly<ProofingPreferences>;
|
|
66
|
-
declare function loadProofingPreferences(): ProofingPreferences;
|
|
67
|
-
declare function saveProofingPreferences(value: ProofingPreferences): void;
|
|
68
|
-
|
|
69
|
-
interface SettingsDialogProps {
|
|
70
|
-
title?: string;
|
|
71
|
-
onClose: () => void;
|
|
72
|
-
children: ReactNode;
|
|
73
|
-
}
|
|
74
|
-
declare function SettingsDialog({ title, onClose, children }: SettingsDialogProps): react_jsx_runtime.JSX.Element;
|
|
75
|
-
interface ThemeSettingsProps {
|
|
76
|
-
value: ThemePreference;
|
|
77
|
-
onChange: (theme: ThemePreference) => void;
|
|
78
|
-
name?: string;
|
|
79
|
-
}
|
|
80
|
-
declare function ThemeSettings({ value, onChange, name }: ThemeSettingsProps): react_jsx_runtime.JSX.Element;
|
|
81
|
-
interface AccentColorSettingsProps {
|
|
82
|
-
value: AccentColor;
|
|
83
|
-
onChange: (color: AccentColor) => void;
|
|
84
|
-
name?: string;
|
|
85
|
-
}
|
|
86
|
-
declare function AccentColorSettings({ value, onChange, name, }: AccentColorSettingsProps): react_jsx_runtime.JSX.Element;
|
|
87
|
-
interface ProofingSettingsControlsProps {
|
|
88
|
-
value: ProofingPreferences;
|
|
89
|
-
onChange: (settings: ProofingPreferences) => void;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Spelling and grammar squiggles, as two switches. Grammar is separable
|
|
93
|
-
* because harper's grammar rules are English-only — a writer working in
|
|
94
|
-
* another language wants the spell checker and none of the green
|
|
95
|
-
* underlines. With both off no checking engine is ever downloaded.
|
|
96
|
-
*/
|
|
97
|
-
declare function ProofingSettingsControls({ value, onChange }: ProofingSettingsControlsProps): react_jsx_runtime.JSX.Element;
|
|
98
|
-
interface WriteCanvasSettingsControlsProps {
|
|
99
|
-
value: WriteCanvasPreferences;
|
|
100
|
-
onChange: (settings: WriteCanvasPreferences) => void;
|
|
101
|
-
}
|
|
102
|
-
declare function WriteCanvasSettingsControls({ value, onChange }: WriteCanvasSettingsControlsProps): react_jsx_runtime.JSX.Element;
|
|
103
|
-
|
|
104
|
-
export { type AccentColor, AccentColorSettings, type AccentColorSettingsProps, DEFAULT_PROOFING_PREFERENCES, DEFAULT_WRITE_CANVAS_FONT_SCHEME, type ProofingPreferences, ProofingSettingsControls, type ProofingSettingsControlsProps, SettingsDialog, type SettingsDialogProps, type ThemePreference, ThemeSettings, type ThemeSettingsProps, WRITE_CANVAS_FONT_SCHEMES, type WriteCanvasFontScheme, type WriteCanvasFontSchemeGroup, type WriteCanvasFontSchemeOption, type WriteCanvasPreferences, WriteCanvasSettingsControls, type WriteCanvasSettingsControlsProps, loadProofingPreferences, resolveWriteCanvasFonts, saveProofingPreferences };
|
|
35
|
+
export { type WorkspaceCatalogStatusView, WorkspaceSettingsControls, type WorkspaceSettingsControlsProps, type WorkspaceSettingsThemeOption };
|
package/dist/settings/index.js
CHANGED
|
@@ -1,27 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccentColorSettings,
|
|
3
|
+
AiSettingsControls,
|
|
4
|
+
DEFAULT_INTERFACE_FONT,
|
|
3
5
|
DEFAULT_PROOFING_PREFERENCES,
|
|
4
6
|
DEFAULT_WRITE_CANVAS_FONT_SCHEME,
|
|
7
|
+
InterfaceFontSettings,
|
|
5
8
|
ProofingSettingsControls,
|
|
6
9
|
SettingsDialog,
|
|
7
10
|
ThemeSettings,
|
|
8
11
|
WRITE_CANVAS_FONT_SCHEMES,
|
|
12
|
+
WorkspaceSettingsControls,
|
|
9
13
|
WriteCanvasSettingsControls,
|
|
14
|
+
loadInterfaceFont,
|
|
10
15
|
loadProofingPreferences,
|
|
11
16
|
resolveWriteCanvasFonts,
|
|
17
|
+
saveInterfaceFont,
|
|
12
18
|
saveProofingPreferences
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-Q5ZVP5LV.js";
|
|
20
|
+
import "../chunk-56KO2LYN.js";
|
|
15
21
|
export {
|
|
16
22
|
AccentColorSettings,
|
|
23
|
+
AiSettingsControls,
|
|
24
|
+
DEFAULT_INTERFACE_FONT,
|
|
17
25
|
DEFAULT_PROOFING_PREFERENCES,
|
|
18
26
|
DEFAULT_WRITE_CANVAS_FONT_SCHEME,
|
|
27
|
+
InterfaceFontSettings,
|
|
19
28
|
ProofingSettingsControls,
|
|
20
29
|
SettingsDialog,
|
|
21
30
|
ThemeSettings,
|
|
22
31
|
WRITE_CANVAS_FONT_SCHEMES,
|
|
32
|
+
WorkspaceSettingsControls,
|
|
23
33
|
WriteCanvasSettingsControls,
|
|
34
|
+
loadInterfaceFont,
|
|
24
35
|
loadProofingPreferences,
|
|
25
36
|
resolveWriteCanvasFonts,
|
|
37
|
+
saveInterfaceFont,
|
|
26
38
|
saveProofingPreferences
|
|
27
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/docblocks-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "React components for DocBlocks — file explorer, workspace picker, and editor shell",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@bendyline/docblocks": "2.
|
|
89
|
-
"@bendyline/squisq": "2.11.
|
|
90
|
-
"@bendyline/squisq-calc": "2.11.
|
|
91
|
-
"@bendyline/squisq-editor-react": "2.11.
|
|
92
|
-
"@bendyline/squisq-formats": "2.6.
|
|
93
|
-
"@bendyline/squisq-react": "2.11.
|
|
94
|
-
"@bendyline/squisq-video": "2.3.
|
|
95
|
-
"@bendyline/squisq-video-react": "2.4.
|
|
88
|
+
"@bendyline/docblocks": "2.7.0",
|
|
89
|
+
"@bendyline/squisq": "2.11.19",
|
|
90
|
+
"@bendyline/squisq-calc": "2.11.2",
|
|
91
|
+
"@bendyline/squisq-editor-react": "2.11.23",
|
|
92
|
+
"@bendyline/squisq-formats": "2.6.19",
|
|
93
|
+
"@bendyline/squisq-react": "2.11.21",
|
|
94
|
+
"@bendyline/squisq-video": "2.3.23",
|
|
95
|
+
"@bendyline/squisq-video-react": "2.4.25",
|
|
96
96
|
"qrcode": "1.5.4"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|