@bendyline/docblocks-react 2.7.2 → 2.7.3
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/THIRD_PARTY_NOTICES.txt +215 -23
- package/dist/{AiDiagrams-LFV4YU6W.js → AiDiagrams-QE3LVYFK.js} +2 -2
- package/dist/{AiEditorAssistant-GN2KXKZD.js → AiEditorAssistant-YLJ5OZK2.js} +203 -164
- package/dist/AiStudyDialog-4TQZZGU3.js +1150 -0
- package/dist/{ExportToolbarControls-2FEIHNMW.js → ExportToolbarControls-A2YBKUUD.js} +32 -3
- package/dist/{KeyboardShortcutsDialog-NOD4P25G.js → KeyboardShortcutsDialog-G5OBDTNR.js} +1 -1
- package/dist/{PresentationMaker-ITNP5SDO.js → PresentationMaker-P2JP6UUX.js} +2 -2
- package/dist/{Settings-RDYvDDI0.d.ts → Settings-ByNImjk5.d.ts} +2 -4
- package/dist/{chunk-X3DDTJKR.js → chunk-3CE5RH2B.js} +255 -17
- package/dist/{chunk-HRWEGPTY.js → chunk-6PA7QBZT.js} +90 -21
- package/dist/{chunk-K7XJDJUJ.js → chunk-ACQF63SB.js} +14 -4
- package/dist/{chunk-SSB43524.js → chunk-EOU2JWAQ.js} +22 -2
- package/dist/chunk-XNT66JC2.js +168 -0
- package/dist/{chunk-NAH52736.js → chunk-YPIVCCTB.js} +969 -98
- package/dist/{chunk-BLUEZG7T.js → chunk-ZMCQO57Q.js} +1 -1
- package/dist/editor.js +3 -3
- package/dist/export/index.d.ts +10 -2
- package/dist/export/index.js +1 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.js +365 -381
- package/dist/{run-export-CS3HRNAZ.js → run-export-OHRNT2TP.js} +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +1 -1
- package/package.json +8 -8
- package/src/styles/docblocks.css +497 -57
|
@@ -260,7 +260,7 @@ function statusSentence(status) {
|
|
|
260
260
|
case "connecting":
|
|
261
261
|
switch (status.step) {
|
|
262
262
|
case "detecting":
|
|
263
|
-
return "Looking
|
|
263
|
+
return "Looking to see if shared AI services (Gezel) are installed; we can use bundled services if they are not available.";
|
|
264
264
|
case "awaiting-approval":
|
|
265
265
|
return "Waiting for approval in Gezel\u2026";
|
|
266
266
|
case "preparing-model":
|
package/dist/editor.js
CHANGED
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
findShortcutLabel,
|
|
12
12
|
isFindShortcut
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ACQF63SB.js";
|
|
14
14
|
import {
|
|
15
15
|
PresentationMaker
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-EOU2JWAQ.js";
|
|
17
|
+
import "./chunk-YPIVCCTB.js";
|
|
18
18
|
import "./chunk-K4I3NJFL.js";
|
|
19
19
|
import "./chunk-56KO2LYN.js";
|
|
20
20
|
export {
|
package/dist/export/index.d.ts
CHANGED
|
@@ -82,8 +82,16 @@ interface ExportConverterOverrides {
|
|
|
82
82
|
*/
|
|
83
83
|
diagramRenderer?: DiagramRasterizer;
|
|
84
84
|
}
|
|
85
|
+
/** What an export reports beyond the saved file. */
|
|
86
|
+
interface ExportResult {
|
|
87
|
+
/**
|
|
88
|
+
* What the user should know about the file that was saved, such as
|
|
89
|
+
* characters PDF export had to replace. Empty when nothing was lost.
|
|
90
|
+
*/
|
|
91
|
+
readonly warnings: readonly string[];
|
|
92
|
+
}
|
|
85
93
|
/** Run the export and trigger a download. */
|
|
86
|
-
declare function runExport(markdown: string, selectedFile: string | null, options: ExportOptions, mediaContainer?: ContentContainer | null, saveBlob?: ExportBlobSaver, converterOverrides?: ExportConverterOverrides): Promise<
|
|
94
|
+
declare function runExport(markdown: string, selectedFile: string | null, options: ExportOptions, mediaContainer?: ContentContainer | null, saveBlob?: ExportBlobSaver, converterOverrides?: ExportConverterOverrides): Promise<ExportResult>;
|
|
87
95
|
|
|
88
96
|
interface ExportDialogProps {
|
|
89
97
|
/** Initial options (pre-populated from last export). */
|
|
@@ -150,4 +158,4 @@ type ImageSaveOutput = (blob: Blob, filename: string) => Promise<boolean | void>
|
|
|
150
158
|
*/
|
|
151
159
|
declare function createImageSaveOutput<TTarget>(adapter: ImageSaveAdapter<TTarget>): ImageSaveOutput;
|
|
152
160
|
|
|
153
|
-
export { type ImageSaveAdapter as CoverImageSaveAdapter, type ImageSaveOutput as CoverImageSaveOutput, DEFAULT_OPTIONS, type ImageSaveAdapter as DashboardImageSaveAdapter, type ImageSaveOutput as DashboardImageSaveOutput, type ExportBlobSaver, type ExportConverterOverrides, type ExportDestinationControl, ExportDialog, type ExportDialogProps, type ExportFormat, type ExportOptions, FORMAT_EXTENSIONS, FORMAT_LABELS, type HtmlBundle, type HtmlStyle, type ImageSaveAdapter, type ImageSaveOutput, buildExportFilename, createImageSaveOutput as createCoverImageSaveOutput, createImageSaveOutput as createDashboardImageSaveOutput, createImageSaveOutput, loadLastExportOptions, resolveExportDialogInitial, runExport, saveExportOptions, updateExportTargetExtension };
|
|
161
|
+
export { type ImageSaveAdapter as CoverImageSaveAdapter, type ImageSaveOutput as CoverImageSaveOutput, DEFAULT_OPTIONS, type ImageSaveAdapter as DashboardImageSaveAdapter, type ImageSaveOutput as DashboardImageSaveOutput, type ExportBlobSaver, type ExportConverterOverrides, type ExportDestinationControl, ExportDialog, type ExportDialogProps, type ExportFormat, type ExportOptions, type ExportResult, FORMAT_EXTENSIONS, FORMAT_LABELS, type HtmlBundle, type HtmlStyle, type ImageSaveAdapter, type ImageSaveOutput, buildExportFilename, createImageSaveOutput as createCoverImageSaveOutput, createImageSaveOutput as createDashboardImageSaveOutput, createImageSaveOutput, loadLastExportOptions, resolveExportDialogInitial, runExport, saveExportOptions, updateExportTargetExtension };
|
package/dist/export/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { CodeBlockCopyHandler } from '@bendyline/squisq-react';
|
|
|
6
6
|
import { FfmpegWasmLoadConfig } from '@bendyline/squisq-video';
|
|
7
7
|
import { PrunePolicy, SaveVersionResult, DocumentVersionManager } from '@bendyline/squisq/versions';
|
|
8
8
|
import { DocBlocksHostAiAPI, DocBlocksHostSpeechAPI } from '@bendyline/docblocks/host';
|
|
9
|
-
import { T as ThemePreference, A as AccentColor, I as InterfaceFontPreference, q as WriteCanvasPreferences, P as ProofingPreferences } from './Settings-
|
|
10
|
-
export { 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, g as InterfaceFontSettings, h as InterfaceFontSettingsProps, i as ProofingSettingsControls, j as ProofingSettingsControlsProps, S as SettingsDialog, k as SettingsDialogProps, l as ThemeSettings, m as ThemeSettingsProps, W as WRITE_CANVAS_FONT_SCHEMES, n as WriteCanvasFontScheme, o as WriteCanvasFontSchemeGroup, p as WriteCanvasFontSchemeOption, r as WriteCanvasSettingsControls, s as WriteCanvasSettingsControlsProps, t as loadInterfaceFont, u as loadProofingPreferences, v as resolveWriteCanvasFonts, w as saveInterfaceFont, x as saveProofingPreferences } from './Settings-
|
|
9
|
+
import { T as ThemePreference, A as AccentColor, I as InterfaceFontPreference, q as WriteCanvasPreferences, P as ProofingPreferences } from './Settings-ByNImjk5.js';
|
|
10
|
+
export { 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, g as InterfaceFontSettings, h as InterfaceFontSettingsProps, i as ProofingSettingsControls, j as ProofingSettingsControlsProps, S as SettingsDialog, k as SettingsDialogProps, l as ThemeSettings, m as ThemeSettingsProps, W as WRITE_CANVAS_FONT_SCHEMES, n as WriteCanvasFontScheme, o as WriteCanvasFontSchemeGroup, p as WriteCanvasFontSchemeOption, r as WriteCanvasSettingsControls, s as WriteCanvasSettingsControlsProps, t as loadInterfaceFont, u as loadProofingPreferences, v as resolveWriteCanvasFonts, w as saveInterfaceFont, x as saveProofingPreferences } from './Settings-ByNImjk5.js';
|
|
11
11
|
import { SharedDocumentMode } from '@bendyline/docblocks/share';
|
|
12
12
|
import { MediaProvider } from '@bendyline/squisq/schemas';
|
|
13
13
|
import { ContentContainer } from '@bendyline/squisq/storage';
|
|
@@ -141,6 +141,11 @@ interface WorkspaceMoveDestination {
|
|
|
141
141
|
interface FileExplorerProps {
|
|
142
142
|
/** The filesystem to display. */
|
|
143
143
|
provider: FileSystemProvider | null;
|
|
144
|
+
/**
|
|
145
|
+
* The host is still opening the workspace `provider` will become. Shows
|
|
146
|
+
* the loading state instead of "No files yet" before anything was read.
|
|
147
|
+
*/
|
|
148
|
+
loading?: boolean;
|
|
144
149
|
/** Changes after a non-watch provider has durably updated file metadata. */
|
|
145
150
|
metadataRefreshKey?: string | number | null;
|
|
146
151
|
/** Active document to select and reveal by expanding all ancestor folders. */
|
|
@@ -203,7 +208,7 @@ interface FileExplorerProps {
|
|
|
203
208
|
/** Optional className for the root element. */
|
|
204
209
|
className?: string;
|
|
205
210
|
}
|
|
206
|
-
declare function FileExplorer({ provider, metadataRefreshKey, activeFilePath, sortMode, onSortModeChange, activeWorkspaceId, pinnedDocuments, pinnedPaths, onPinnedDocumentSelect, onPinnedDocumentUnpin, onPinnedDocumentRename, onPinnedDocumentDelete, onTogglePin, onSelect, onOpenWorkspaceFolder, actionsForEntry, onTreeMutation, onTreeChange, onImportFiles, confirmDelete, moveDestinations, onMoveToWorkspace, outsideInRender, defaultNewFileFormat, onNewFileFormatUsed, onShowSearch, searchShortcutLabel, className, }: FileExplorerProps): react_jsx_runtime.JSX.Element;
|
|
211
|
+
declare function FileExplorer({ provider, loading, metadataRefreshKey, activeFilePath, sortMode, onSortModeChange, activeWorkspaceId, pinnedDocuments, pinnedPaths, onPinnedDocumentSelect, onPinnedDocumentUnpin, onPinnedDocumentRename, onPinnedDocumentDelete, onTogglePin, onSelect, onOpenWorkspaceFolder, actionsForEntry, onTreeMutation, onTreeChange, onImportFiles, confirmDelete, moveDestinations, onMoveToWorkspace, outsideInRender, defaultNewFileFormat, onNewFileFormatUsed, onShowSearch, searchShortcutLabel, className, }: FileExplorerProps): react_jsx_runtime.JSX.Element;
|
|
207
212
|
|
|
208
213
|
/**
|
|
209
214
|
* useFileTree — hook that reads from a FileSystemProvider,
|
|
@@ -282,10 +287,15 @@ interface WorkspacePickerProps {
|
|
|
282
287
|
onRemoveWorkspace?: (descriptor: WorkspaceDescriptor) => void;
|
|
283
288
|
/** Forces a list refresh after an external workspace-registry mutation. */
|
|
284
289
|
refreshKey?: number;
|
|
290
|
+
/**
|
|
291
|
+
* The host is still opening its first workspace. Shown as loading rather
|
|
292
|
+
* than "No workspace", which read as an error on every first visit.
|
|
293
|
+
*/
|
|
294
|
+
loading?: boolean;
|
|
285
295
|
/** Optional className. */
|
|
286
296
|
className?: string;
|
|
287
297
|
}
|
|
288
|
-
declare function WorkspacePicker({ activeWorkspaceId, onSelect, onOpenFolder, onCloneRepository, onRemoveWorkspace, refreshKey, className, }: WorkspacePickerProps): react_jsx_runtime.JSX.Element;
|
|
298
|
+
declare function WorkspacePicker({ activeWorkspaceId, onSelect, onOpenFolder, onCloneRepository, onRemoveWorkspace, refreshKey, loading, className, }: WorkspacePickerProps): react_jsx_runtime.JSX.Element;
|
|
289
299
|
|
|
290
300
|
/**
|
|
291
301
|
* Owns the active workspace's index: one per provider instance, disposed
|