@bendyline/docblocks-react 2.7.1 → 2.7.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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.txt +98 -48
  3. package/dist/{ExportDialog-IMBVGRYG.js → ExportDialog-JRVZCG3J.js} +2 -2
  4. package/dist/{ExportToolbarControls-MUM6HM3K.js → ExportToolbarControls-2FEIHNMW.js} +15 -7
  5. package/dist/KeyboardShortcutsDialog-NOD4P25G.js +145 -0
  6. package/dist/{PresentationMaker-W2JIBHRN.js → PresentationMaker-ITNP5SDO.js} +1 -1
  7. package/dist/{Settings-DuXk6baH.d.ts → Settings-RDYvDDI0.d.ts} +13 -11
  8. package/dist/{SpeechToolbarControl-OSQS7NVY.js → SpeechToolbarControl-CLU7RB2G.js} +1 -1
  9. package/dist/{TextFromNarration-XYRAB6O2.js → TextFromNarration-NITJQ4IB.js} +1 -1
  10. package/dist/{WorkspaceSearchPanel-BKZJRPMY.js → WorkspaceSearchPanel-J6BKEZQJ.js} +1 -1
  11. package/dist/{chunk-UG4G7PJ4.js → chunk-5O5YTOXG.js} +1 -1
  12. package/dist/{chunk-VO2JYYQZ.js → chunk-6JJOGV6M.js} +5 -13
  13. package/dist/{chunk-X437UAF7.js → chunk-6MSHXQNB.js} +7 -2
  14. package/dist/{chunk-W55E6TE2.js → chunk-BLUEZG7T.js} +27 -22
  15. package/dist/chunk-DICE7VBJ.js +77 -0
  16. package/dist/{chunk-BCQZTWE5.js → chunk-HRWEGPTY.js} +18 -4
  17. package/dist/chunk-K7XJDJUJ.js +126 -0
  18. package/dist/{chunk-EPOLZNFD.js → chunk-SSB43524.js} +164 -69
  19. package/dist/{chunk-G4MFB3IO.js → chunk-VG434562.js} +2 -70
  20. package/dist/{chunk-BD54Z5XP.js → chunk-Y5OE3HJC.js} +4 -3
  21. package/dist/editor.js +6 -4
  22. package/dist/export/index.d.ts +17 -6
  23. package/dist/export/index.js +4 -4
  24. package/dist/index.d.ts +24 -6
  25. package/dist/index.js +395 -196
  26. package/dist/run-export-CS3HRNAZ.js +13 -0
  27. package/dist/settings/index.d.ts +1 -1
  28. package/dist/settings/index.js +1 -1
  29. package/package.json +9 -8
  30. package/src/styles/docblocks.css +465 -266
  31. package/dist/chunk-EA4BO6E4.js +0 -73
  32. package/dist/run-export-47X5FTYZ.js +0 -11
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-DuXk6baH.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-DuXk6baH.js';
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';
11
11
  import { SharedDocumentMode } from '@bendyline/docblocks/share';
12
12
  import { MediaProvider } from '@bendyline/squisq/schemas';
13
13
  import { ContentContainer } from '@bendyline/squisq/storage';
@@ -311,12 +311,20 @@ interface DocBlocksShellProps {
311
311
  theme?: EditorColorScheme | 'auto';
312
312
  /** Optional logo image URL for the app menu. */
313
313
  logoUrl?: string;
314
+ /** The app-menu logo drawn for dark appearances (see AppMenu). */
315
+ logoDarkUrl?: string;
314
316
  /** Version and surface label included in prefilled issue reports, e.g. `1.1.2 web`. */
315
317
  issueReportVersion?: string;
316
318
  /** ISO build date shown in About, e.g. `2026-07-15`. */
317
319
  appBuildDate?: string;
318
320
  /** Self-hosted ffmpeg.wasm core. Supplying it enables Animated GIF export. */
319
321
  ffmpegWasm?: FfmpegWasmLoadConfig;
322
+ /**
323
+ * URL of the self-hosted pdf.js worker (`pdfjs-dist/legacy/build/
324
+ * pdf.worker.min.mjs`, the version Squisq's formats package pins).
325
+ * Importing a PDF fails without it.
326
+ */
327
+ pdfWorkerSrc?: string;
320
328
  /**
321
329
  * Optional spreadsheet calculation backend. DocBlocks surfaces normally
322
330
  * pass the lazy IronCalc factory from the `calculation` package subpath;
@@ -405,7 +413,7 @@ interface DocBlocksShellProps {
405
413
  */
406
414
  offlineReady?: boolean;
407
415
  }
408
- declare function DocBlocksShell({ theme: hostTheme, logoUrl, issueReportVersion, appBuildDate, ffmpegWasm, calcEngineFactory, proofing, proofingDefaultEnabled, proofingIgnoreStore, homeDocumentTitle, homeDocumentPath, allowVersioning, versionBasename, versioningPrunePolicy, versioningAutoSaveIdleMs, onSaveVersion, versioningRef, updateAvailable, onApplyUpdate, statusBarSlotRight, workspaceIndex: workspaceIndexMode, showCodeCopyButton, onCopyCode, allowRecording, allowPresentationWindow, allowPresentationFullscreen, offlineReady, }: DocBlocksShellProps): react_jsx_runtime.JSX.Element;
416
+ declare function DocBlocksShell({ theme: hostTheme, logoUrl, logoDarkUrl, issueReportVersion, appBuildDate, ffmpegWasm, pdfWorkerSrc, calcEngineFactory, proofing, proofingDefaultEnabled, proofingIgnoreStore, homeDocumentTitle, homeDocumentPath, allowVersioning, versionBasename, versioningPrunePolicy, versioningAutoSaveIdleMs, onSaveVersion, versioningRef, updateAvailable, onApplyUpdate, statusBarSlotRight, workspaceIndex: workspaceIndexMode, showCodeCopyButton, onCopyCode, allowRecording, allowPresentationWindow, allowPresentationFullscreen, offlineReady, }: DocBlocksShellProps): react_jsx_runtime.JSX.Element;
409
417
 
410
418
  /**
411
419
  * Versioning preferences — global default + per-workspace resolution.
@@ -428,6 +436,11 @@ type VersioningPreference = 'on' | 'browser-only' | 'off';
428
436
  interface AppMenuProps {
429
437
  /** Optional logo image URL to display instead of the text label. */
430
438
  logoUrl?: string;
439
+ /**
440
+ * The logo drawn for dark appearances. Without it, the light logo is
441
+ * inverted in dark mode, which suits only a flat black-on-transparent mark.
442
+ */
443
+ logoDarkUrl?: string;
431
444
  /** Current theme preference. */
432
445
  themePreference?: ThemePreference;
433
446
  /** Called when the user changes the theme preference. */
@@ -454,10 +467,12 @@ interface AppMenuProps {
454
467
  /** Opens the active workspace's own settings (`.docblocks/workspace.json`). */
455
468
  onOpenWorkspaceSettings?: () => void;
456
469
  /**
457
- * Called when the user clicks "Download all workspaces". When omitted,
470
+ * Called when the user clicks "Back up all workspaces". When omitted,
458
471
  * the menu item is hidden.
459
472
  */
460
473
  onDownloadAllWorkspaces?: () => void | Promise<void>;
474
+ /** Opens the keyboard-shortcut sheet. When omitted, the menu item is hidden. */
475
+ onShowKeyboardShortcuts?: () => void;
461
476
  /**
462
477
  * Called when the user asks the browser to keep origin storage persistent.
463
478
  * When omitted, the menu item is hidden.
@@ -482,7 +497,10 @@ interface AppMenuProps {
482
497
  storagePersistent?: boolean;
483
498
  /** Human-readable version/build and delivery surface shown in About. */
484
499
  appVersion?: string;
485
- /** ISO build date shown in About. */
500
+ /**
501
+ * Build date shown in About: an ISO timestamp, shown as the viewer's local
502
+ * day, or a bare `YYYY-MM-DD`, shown as given.
503
+ */
486
504
  appBuildDate?: string;
487
505
  /**
488
506
  * The host's AI API. When present, Settings offers an AI section; when
@@ -497,7 +515,7 @@ interface AppMenuProps {
497
515
  /** Opens Settings whenever it changes to a new non-zero value. */
498
516
  settingsRequest?: number;
499
517
  }
500
- declare function AppMenu({ logoUrl, themePreference, onThemeChange, accentColor, onAccentColorChange, interfaceFont, onInterfaceFontChange, writeCanvasSettings, onWriteCanvasSettingsChange, proofingPreferences, onProofingPreferencesChange, versioningPreference, onVersioningPreferenceChange, onOpenWorkspaceSettings, onDownloadAllWorkspaces, onKeepBrowserData, onInstallApp, getStorageEstimate, storagePersistent, appVersion, appBuildDate, ai, speech, settingsRequest, }: AppMenuProps): react_jsx_runtime.JSX.Element;
518
+ declare function AppMenu({ logoUrl, logoDarkUrl, themePreference, onThemeChange, accentColor, onAccentColorChange, interfaceFont, onInterfaceFontChange, writeCanvasSettings, onWriteCanvasSettingsChange, proofingPreferences, onProofingPreferencesChange, versioningPreference, onVersioningPreferenceChange, onOpenWorkspaceSettings, onDownloadAllWorkspaces, onShowKeyboardShortcuts, onKeepBrowserData, onInstallApp, getStorageEstimate, storagePersistent, appVersion, appBuildDate, ai, speech, settingsRequest, }: AppMenuProps): react_jsx_runtime.JSX.Element;
501
519
 
502
520
  interface ExportToolbarControlsProps {
503
521
  /** Currently selected file path — used to derive the download filename. */