@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.
@@ -260,7 +260,7 @@ function statusSentence(status) {
260
260
  case "connecting":
261
261
  switch (status.step) {
262
262
  case "detecting":
263
- return "Looking for Gezel\u2026";
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-K7XJDJUJ.js";
13
+ } from "./chunk-ACQF63SB.js";
14
14
  import {
15
15
  PresentationMaker
16
- } from "./chunk-SSB43524.js";
17
- import "./chunk-NAH52736.js";
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 {
@@ -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<void>;
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 };
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-KWG6UP5O.js";
4
4
  import {
5
5
  runExport
6
- } from "../chunk-HRWEGPTY.js";
6
+ } from "../chunk-6PA7QBZT.js";
7
7
  import {
8
8
  createImageSaveOutput
9
9
  } from "../chunk-UONFWKJ7.js";
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-RDYvDDI0.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-RDYvDDI0.js';
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