wordinweb 0.3.1 → 0.3.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.
package/dist/collab.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { X as XmlElement, D as DocxDocument, C as ClientMessage, S as ServerMessage, P as PresencePosition, R as RosterEntry, a as ParticipantProfile, I as Intent, b as IdSidecar, L as LineageHead, T as ToolbarFeature, c as ToolbarMode, d as DocxViewApi, W as WriteStatus, U as UndoOutcome } from './index-C_oyKJu0.js';
3
- export { e as bytesToB64, f as deriveEpochKeys, g as docKeyFromFragment, m as mintDocKey, s as sealCheckpoint, h as stretchShareCode } from './index-C_oyKJu0.js';
2
+ import { X as XmlElement, D as DocxDocument, C as ClientMessage, S as ServerMessage, P as PresencePosition, R as RosterEntry, a as ParticipantProfile, I as Intent, b as IdSidecar, L as LineageHead, T as ToolbarFeature, c as ToolbarMode, d as DocxViewApi, M as MissingFont, W as WriteStatus, U as UndoOutcome } from './index-BvwqvUF5.js';
3
+ export { e as bytesToB64, f as deriveEpochKeys, g as docKeyFromFragment, m as mintDocKey, s as sealCheckpoint, h as stretchShareCode } from './index-BvwqvUF5.js';
4
4
 
5
5
  /**
6
6
  * How much of the document an applied intent disturbed — the input to
@@ -1382,6 +1382,9 @@ declare function CollabEditor(opts: UseCollabOptions & {
1382
1382
  toolbarFeatures?: Partial<Record<ToolbarFeature, boolean>>;
1383
1383
  /** Observe the imperative document API (find/replace, inserts, ...). */
1384
1384
  onReady?: (api: DocxViewApi) => void;
1385
+ /** Requested faces the browser cannot render, reported after each
1386
+ * document load exactly as DocxView's own `onMissingFonts` does. */
1387
+ onMissingFonts?: (missing: MissingFont[]) => void;
1385
1388
  /** Observe the live CollabSession (roster, activity, epochChanged,
1386
1389
  * doc-for-download) — how an app shell renders chips/banners/buttons
1387
1390
  * around the editor without re-implementing its composition. */
package/dist/collab.js CHANGED
@@ -90,7 +90,7 @@ import {
90
90
  suggestMeta,
91
91
  validatePastedOoxml,
92
92
  validateRegisteredOperation
93
- } from "./chunk-FFQBNFND.js";
93
+ } from "./chunk-D6MZHDCC.js";
94
94
  import "./chunk-7D4SUZUM.js";
95
95
 
96
96
  // src/collab.tsx
@@ -5489,6 +5489,7 @@ function CollabEditor(opts) {
5489
5489
  commentAuthor: opts.commentAuthor,
5490
5490
  commentMentions: opts.commentMentions,
5491
5491
  revisions: opts.revisions,
5492
+ onMissingFonts: opts.onMissingFonts,
5492
5493
  // Re-key only on docEpoch (a document replacement), not on every change.
5493
5494
  // Between replacements the live doc mutates in place and the key stays stable,
5494
5495
  // so DocxView repaints in place instead of re-mounting (no flash/jump).