pptx-svelte-viewer 0.4.0 → 0.5.1

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.d.ts CHANGED
@@ -385,14 +385,25 @@ export declare interface PowerPointViewerProps {
385
385
  * to the room (y-websocket or serverless y-webrtc), publishes local edits
386
386
  * granularly, and applies remote peers' edits into the editable slides.
387
387
  * Clearing it (undefined) tears the session down. A `viewer` role makes the
388
- * local user read-only. Remote presence/cursors are not rendered by this
389
- * binding (descoped); see `collab/collaboration.svelte.ts`.
388
+ * local user read-only. Remote cursors/presence render via the built-in
389
+ * Share/Broadcast toolbar buttons; see `collab/collaboration.svelte.ts` and
390
+ * `collab/components/`.
390
391
  */
391
392
  collaboration?: CollaborationConfig;
392
393
  /** Fired when a collaboration session starts (with the resolved config). */
393
394
  onstartcollaboration?: (config: CollaborationConfig) => void;
394
395
  /** Fired when a collaboration session stops. */
395
396
  onstopcollaboration?: () => void;
397
+ /**
398
+ * Prefilled values for the built-in Share dialog's form (room id, display
399
+ * name, server URL). The Broadcast dialog reuses `serverUrl` from this same
400
+ * object. Purely a starting point; the user can still edit every field.
401
+ */
402
+ shareDefaults?: {
403
+ roomId?: string;
404
+ userName?: string;
405
+ serverUrl?: string;
406
+ };
396
407
  }
397
408
 
398
409
  /** Colour mode for the printed output. */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, b as e, d as o, f as r, g as t, h as i, l, m, p as n, t as h, u, v, y as p } from "./component-qdUERFDU.js";
1
+ import { _ as a, b as e, d as o, f as r, g as t, h as i, l, m, p as n, t as h, u, v, y as p } from "./component-B4CAjgjO.js";
2
2
  import { r as f } from "./translator-nTmCzaSH.js";
3
3
  import "./i18n.js";
4
4
  export {
@@ -1545,14 +1545,25 @@ export declare interface PowerPointViewerProps {
1545
1545
  * to the room (y-websocket or serverless y-webrtc), publishes local edits
1546
1546
  * granularly, and applies remote peers' edits into the editable slides.
1547
1547
  * Clearing it (undefined) tears the session down. A `viewer` role makes the
1548
- * local user read-only. Remote presence/cursors are not rendered by this
1549
- * binding (descoped); see `collab/collaboration.svelte.ts`.
1548
+ * local user read-only. Remote cursors/presence render via the built-in
1549
+ * Share/Broadcast toolbar buttons; see `collab/collaboration.svelte.ts` and
1550
+ * `collab/components/`.
1550
1551
  */
1551
1552
  collaboration?: CollaborationConfig;
1552
1553
  /** Fired when a collaboration session starts (with the resolved config). */
1553
1554
  onstartcollaboration?: (config: CollaborationConfig) => void;
1554
1555
  /** Fired when a collaboration session stops. */
1555
1556
  onstopcollaboration?: () => void;
1557
+ /**
1558
+ * Prefilled values for the built-in Share dialog's form (room id, display
1559
+ * name, server URL). The Broadcast dialog reuses `serverUrl` from this same
1560
+ * object. Purely a starting point; the user can still edit every field.
1561
+ */
1562
+ shareDefaults?: {
1563
+ roomId?: string;
1564
+ userName?: string;
1565
+ serverUrl?: string;
1566
+ };
1556
1567
  }
1557
1568
 
1558
1569
  /**
@@ -1,4 +1,4 @@
1
- import { a, c as o, i as t, n as r, o as s, r as i, s as n, t as c } from "../component-qdUERFDU.js";
1
+ import { a, c as o, i as t, n as r, o as s, r as i, s as n, t as c } from "../component-B4CAjgjO.js";
2
2
  export {
3
3
  c as PowerPointViewer,
4
4
  o as PresentationLoader,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-svelte-viewer",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "Svelte 5 PowerPoint viewer component: render PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "office",