pptx-react-viewer 1.1.74 → 1.1.76

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/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file
@@ -1407,6 +1407,11 @@ interface CollaborationContextValue {
1407
1407
  config: CollaborationConfig;
1408
1408
  /** The Yjs document (for document sync). */
1409
1409
  doc: Doc | null;
1410
+ /**
1411
+ * Whether the provider completed its initial document sync (or the
1412
+ * first-write grace period elapsed). Local doc writes are gated on this.
1413
+ */
1414
+ synced: boolean;
1410
1415
  /** Manually retry the WebSocket connection after a timeout or error. */
1411
1416
  retry: () => void;
1412
1417
  }
@@ -1521,6 +1526,15 @@ interface UseYjsProviderResult {
1521
1526
  doc: Doc | null;
1522
1527
  /** Local awareness client ID. */
1523
1528
  clientId: number | null;
1529
+ /**
1530
+ * Whether the provider completed its initial document sync. Local doc
1531
+ * writes should be gated on this so a late joiner never seeds its
1532
+ * bootstrap deck into a room whose content has not arrived yet. Websocket
1533
+ * flips it on the provider's 'synced' event; webrtc flips it on peer sync
1534
+ * or after {@link INITIAL_SYNC_GRACE_MS} (a lone fresh-room peer never
1535
+ * receives a sync event).
1536
+ */
1537
+ synced: boolean;
1524
1538
  /** Manually retry the connection after a timeout or error. */
1525
1539
  retry: () => void;
1526
1540
  }
@@ -1407,6 +1407,11 @@ interface CollaborationContextValue {
1407
1407
  config: CollaborationConfig;
1408
1408
  /** The Yjs document (for document sync). */
1409
1409
  doc: Doc | null;
1410
+ /**
1411
+ * Whether the provider completed its initial document sync (or the
1412
+ * first-write grace period elapsed). Local doc writes are gated on this.
1413
+ */
1414
+ synced: boolean;
1410
1415
  /** Manually retry the WebSocket connection after a timeout or error. */
1411
1416
  retry: () => void;
1412
1417
  }
@@ -1521,6 +1526,15 @@ interface UseYjsProviderResult {
1521
1526
  doc: Doc | null;
1522
1527
  /** Local awareness client ID. */
1523
1528
  clientId: number | null;
1529
+ /**
1530
+ * Whether the provider completed its initial document sync. Local doc
1531
+ * writes should be gated on this so a late joiner never seeds its
1532
+ * bootstrap deck into a room whose content has not arrived yet. Websocket
1533
+ * flips it on the provider's 'synced' event; webrtc flips it on peer sync
1534
+ * or after {@link INITIAL_SYNC_GRACE_MS} (a lone fresh-room peer never
1535
+ * receives a sync event).
1536
+ */
1537
+ synced: boolean;
1524
1538
  /** Manually retry the connection after a timeout or error. */
1525
1539
  retry: () => void;
1526
1540
  }