pptx-angular-viewer 1.15.0 → 1.16.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-angular-viewer",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Angular PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "angular",
@@ -46,7 +46,7 @@
46
46
  "html2canvas-pro": "^2.0.4",
47
47
  "jspdf": "^4.2.1",
48
48
  "jszip": "^3.10.1",
49
- "pptx-viewer-core": "^1.2.8",
49
+ "pptx-viewer-core": "^1.3.0",
50
50
  "tslib": "^2.8.1"
51
51
  },
52
52
  "peerDependencies": {
@@ -2512,6 +2512,12 @@ declare function clampCursorPosition(value: unknown, min: number, max: number):
2512
2512
  * id or user name) always maps to the same colour so a peer keeps a stable hue.
2513
2513
  */
2514
2514
  declare function assignUserColor(seed: number | string, palette?: readonly string[]): string;
2515
+ /**
2516
+ * Clamp/format a cursor label so long names don't overflow the chip. When
2517
+ * truncating, the result is exactly `maxChars` characters including a trailing
2518
+ * `...` ellipsis.
2519
+ */
2520
+ declare function formatCursorLabel(userName: string, maxChars?: number): string;
2515
2521
  /**
2516
2522
  * Derive the remote-presence list from a raw awareness state map. Skips the
2517
2523
  * local client, sanitises each entry, and drops stale entries (older than
@@ -4082,34 +4088,6 @@ declare class AutosaveService {
4082
4088
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AutosaveService>;
4083
4089
  }
4084
4090
 
4085
- /**
4086
- * Thin re-export shim → vendored `pptx-viewer-shared`
4087
- * (`render/collaboration-presence`).
4088
- *
4089
- * The pure presence/cursor sanitisation logic now lives in shared and is
4090
- * consumed by every binding. This shim preserves the historical Angular import
4091
- * surface so `collaboration.service.ts`, `collaboration-cursors.component.ts`,
4092
- * the viewer barrel, and the colocated tests are unchanged.
4093
- *
4094
- * Two pieces stay Angular-local because they diverge from the shared copy:
4095
- * - `RemotePresence` is the Angular name for shared's `SanitizedPresence`
4096
- * (re-aliased here).
4097
- * - `formatCursorLabel` keeps the historical single-character ellipsis (`…`)
4098
- * truncation, which differs from shared's three-dot (`...`) variant that the
4099
- * React binding expects. Kept local so the rendered label and the colocated
4100
- * test are unchanged.
4101
- *
4102
- * `mapAwarenessCursors` (the foundational bare-`{ cursor, user }` mapping) now
4103
- * lives in shared and is re-exported here so existing Angular imports are
4104
- * unchanged.
4105
- */
4106
-
4107
- /**
4108
- * Clamp/format a cursor label so long names don't overflow the chip. Uses a
4109
- * single-character ellipsis (`…`); the total length is exactly `maxChars`.
4110
- */
4111
- declare function formatCursorLabel(userName: string, maxChars?: number): string;
4112
-
4113
4091
  /**
4114
4092
  * template-mode.ts: separate-state model + per-element interactivity gate for the
4115
4093
  * editTemplateMode feature.
@@ -13002,10 +12980,11 @@ declare const SHORTCUT_REFERENCE_ITEMS: ShortcutReferenceItem[];
13002
12980
  *
13003
12981
  * Isolates the dynamic `yjs` / `y-websocket` / `y-webrtc` imports and provider
13004
12982
  * construction so the service focuses on lifecycle + reactive state. The Yjs
13005
- * packages are dynamically imported so they are fully tree-shaken when
13006
- * collaboration is unused; each specifier is read from a variable so bundlers
13007
- * do not eagerly follow it (mirrors the historical `/* @vite-ignore *\/`
13008
- * pattern).
12983
+ * packages are dynamically imported (plain string-literal specifiers, matching
12984
+ * React/Vue) so they are fully tree-shaken when collaboration is unused, while
12985
+ * still resolving correctly under a consuming app's Vite dev server: an
12986
+ * `@vite-ignore`d or variable specifier skips Vite's dev-time bare-specifier
12987
+ * rewrite, which then fails to resolve natively in the browser.
13009
12988
  */
13010
12989
 
13011
12990
  /** Minimal awareness surface used by the service. */