pptx-viewer-core 1.6.1 → 1.6.3

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/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project are documented here.
4
4
  This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
5
5
  by [git-cliff](https://git-cliff.org); do not edit it by hand.
6
6
 
7
+ ## [1.6.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.6.2) - 2026-07-17
8
+
9
+ ## [1.6.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.6.1) - 2026-07-17
10
+
11
+ ### Dependencies
12
+
13
+ - **deps:** Update outdated dependencies within semver ranges (by @ChristopherVR) ([3249d8e](https://github.com/ChristopherVR/pptx-viewer/commit/3249d8ecd53ea79089f87f942f2c88caae840466))
14
+
7
15
  ## [1.6.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.6.0) - 2026-07-17
8
16
 
9
17
  ## [1.5.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.5.0) - 2026-07-16
@@ -1,90 +1,78 @@
1
- #!/usr/bin/env node
2
- import { F as FindResult, M as MergeOptions } from '../text-operations-B0rbI4l2.js';
3
- import '../presentation-BLbjWKxK.js';
4
-
5
- /**
6
- * CLI command handlers for pptx-cli.
7
- *
8
- * Each handler is a standalone async function that accepts parsed
9
- * arguments and returns a result object. This separation from the
10
- * CLI entry-point allows programmatic reuse and testability.
11
- *
12
- * @module cli/commands
13
- */
14
-
1
+ import { a as MergeOptions, t as FindResult } from "../text-operations-DnyNBsGN.js";
2
+ //#region src/cli/commands.d.ts
15
3
  /** Result from the `info` command. */
16
4
  interface InfoResult {
17
- slideCount: number;
18
- width: number;
19
- height: number;
20
- widthEmu?: number;
21
- heightEmu?: number;
22
- slideSizeType?: string;
23
- title?: string;
24
- creator?: string;
25
- subject?: string;
26
- themeName?: string;
27
- majorFont?: string;
28
- minorFont?: string;
29
- layoutCount: number;
30
- layouts: string[];
31
- sectionCount: number;
32
- sections: string[];
33
- hasMacros: boolean;
34
- hasDigitalSignatures: boolean;
35
- embeddedFontCount: number;
36
- customShowCount: number;
37
- totalElements: number;
38
- hiddenSlideCount: number;
39
- notesCount: number;
40
- commentCount: number;
5
+ slideCount: number;
6
+ width: number;
7
+ height: number;
8
+ widthEmu?: number;
9
+ heightEmu?: number;
10
+ slideSizeType?: string;
11
+ title?: string;
12
+ creator?: string;
13
+ subject?: string;
14
+ themeName?: string;
15
+ majorFont?: string;
16
+ minorFont?: string;
17
+ layoutCount: number;
18
+ layouts: string[];
19
+ sectionCount: number;
20
+ sections: string[];
21
+ hasMacros: boolean;
22
+ hasDigitalSignatures: boolean;
23
+ embeddedFontCount: number;
24
+ customShowCount: number;
25
+ totalElements: number;
26
+ hiddenSlideCount: number;
27
+ notesCount: number;
28
+ commentCount: number;
41
29
  }
42
30
  /** Result from the `export-svg` command. */
43
31
  interface ExportSvgResult {
44
- slideCount: number;
45
- svgs: string[];
32
+ slideCount: number;
33
+ svgs: string[];
46
34
  }
47
35
  /** Result from the `export-md` command. */
48
36
  interface ExportMdResult {
49
- markdown: string;
50
- slideCount: number;
37
+ markdown: string;
38
+ slideCount: number;
51
39
  }
52
40
  /** Result from the `merge` command. */
53
41
  interface MergeResult {
54
- mergedSlideCount: number;
55
- totalSlideCount: number;
56
- outputBytes: Uint8Array;
42
+ mergedSlideCount: number;
43
+ totalSlideCount: number;
44
+ outputBytes: Uint8Array;
57
45
  }
58
46
  /** Result from the `find` command. */
59
47
  interface FindCommandResult {
60
- matches: FindResult[];
61
- totalCount: number;
48
+ matches: FindResult[];
49
+ totalCount: number;
62
50
  }
63
51
  /** Result from the `replace` command. */
64
52
  interface ReplaceResult {
65
- replacementCount: number;
66
- outputBytes: Uint8Array;
53
+ replacementCount: number;
54
+ outputBytes: Uint8Array;
67
55
  }
68
56
  /** Result from the `create` command. */
69
57
  interface CreateResult {
70
- outputBytes: Uint8Array;
71
- slideCount: number;
58
+ outputBytes: Uint8Array;
59
+ slideCount: number;
72
60
  }
73
61
  /** A single slide's diff entry. */
74
62
  interface SlideDiffEntry {
75
- slideNumber: number;
76
- status: 'added' | 'removed' | 'modified' | 'unchanged';
77
- elementCountA?: number;
78
- elementCountB?: number;
79
- textDifferences?: string[];
63
+ slideNumber: number;
64
+ status: 'added' | 'removed' | 'modified' | 'unchanged';
65
+ elementCountA?: number;
66
+ elementCountB?: number;
67
+ textDifferences?: string[];
80
68
  }
81
69
  /** Result from the `diff` command. */
82
70
  interface DiffResult {
83
- slideCountA: number;
84
- slideCountB: number;
85
- dimensionsMatch: boolean;
86
- themeMatch: boolean;
87
- slideDiffs: SlideDiffEntry[];
71
+ slideCountA: number;
72
+ slideCountB: number;
73
+ dimensionsMatch: boolean;
74
+ themeMatch: boolean;
75
+ slideDiffs: SlideDiffEntry[];
88
76
  }
89
77
  /**
90
78
  * Show presentation info (slides, dimensions, theme, metadata).
@@ -94,20 +82,20 @@ declare function handleInfo(bytes: Uint8Array): Promise<InfoResult>;
94
82
  * Export all slides as SVG strings.
95
83
  */
96
84
  declare function handleExportSvg(bytes: Uint8Array, options?: {
97
- slideIndices?: number[];
98
- includeHidden?: boolean;
85
+ slideIndices?: number[];
86
+ includeHidden?: boolean;
99
87
  }): Promise<ExportSvgResult>;
100
88
  /**
101
89
  * Export presentation to Markdown.
102
90
  */
103
91
  declare function handleExportMd(bytes: Uint8Array, options?: {
104
- sourceName?: string;
105
- includeSpeakerNotes?: boolean;
106
- semanticMode?: boolean;
107
- slideRange?: {
108
- start?: number;
109
- end?: number;
110
- };
92
+ sourceName?: string;
93
+ includeSpeakerNotes?: boolean;
94
+ semanticMode?: boolean;
95
+ slideRange?: {
96
+ start?: number;
97
+ end?: number;
98
+ };
111
99
  }): Promise<ExportMdResult>;
112
100
  /**
113
101
  * Merge two presentations.
@@ -117,34 +105,35 @@ declare function handleMerge(targetBytes: Uint8Array, sourceBytes: Uint8Array, o
117
105
  * Find text in a presentation.
118
106
  */
119
107
  declare function handleFind(bytes: Uint8Array, search: string, options?: {
120
- caseSensitive?: boolean;
108
+ caseSensitive?: boolean;
121
109
  }): Promise<FindCommandResult>;
122
110
  /**
123
111
  * Replace text in a presentation and return the modified bytes.
124
112
  */
125
113
  declare function handleReplace(bytes: Uint8Array, search: string, replacement: string, options?: {
126
- caseSensitive?: boolean;
114
+ caseSensitive?: boolean;
127
115
  }): Promise<ReplaceResult>;
128
116
  /**
129
117
  * Create a new blank presentation.
130
118
  */
131
119
  declare function handleCreate(options?: {
132
- title?: string;
133
- creator?: string;
134
- theme?: {
135
- name?: string;
136
- colors?: Record<string, string>;
137
- fonts?: {
138
- majorFont?: string;
139
- minorFont?: string;
140
- };
120
+ title?: string;
121
+ creator?: string;
122
+ theme?: {
123
+ name?: string;
124
+ colors?: Record<string, string>;
125
+ fonts?: {
126
+ majorFont?: string;
127
+ minorFont?: string;
141
128
  };
142
- width?: number;
143
- height?: number;
129
+ };
130
+ width?: number;
131
+ height?: number;
144
132
  }): Promise<CreateResult>;
145
133
  /**
146
134
  * Compare two presentations and return a diff summary.
147
135
  */
148
136
  declare function handleDiff(bytesA: Uint8Array, bytesB: Uint8Array): Promise<DiffResult>;
149
-
137
+ //#endregion
150
138
  export { type CreateResult, type DiffResult, type ExportMdResult, type ExportSvgResult, type FindCommandResult, type InfoResult, type MergeResult, type ReplaceResult, type SlideDiffEntry, handleCreate, handleDiff, handleExportMd, handleExportSvg, handleFind, handleInfo, handleMerge, handleReplace };
139
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/cli/commands.ts"],"mappings":";;;UAyBiB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;UAIgB;EAChB;EACA;;;UAIgB;EAChB;EACA;;;UAIgB;EAChB;EACA;EACA,aAAa;;;UAIG;EAChB,SAAS;EACT;;;UAIgB;EAChB;EACA,aAAa;;;UAIG;EAChB,aAAa;EACb;;;UAIgB;EAChB;EACA;EACA;EACA;EACA;;;UAIgB;EAChB;EACA;EACA;EACA;EACA,YAAY;;;;;iBAwDS,WAAW,OAAO,aAAa,QAAQ;;;;iBAoDvC,gBACrB,OAAO,YACP;EAAY;EAAyB;IACnC,QAAQ;;;;iBAiBW,eACrB,OAAO,YACP;EACC;EACA;EACA;EACA;IAAe;IAAgB;;IAE9B,QAAQ;;;;iBAuBW,YACrB,aAAa,YACb,aAAa,YACb,UAAU,eACR,QAAQ;;;;iBAiBW,WACrB,OAAO,YACP,gBACA;EAAY;IACV,QAAQ;;;;iBAmBW,cACrB,OAAO,YACP,gBACA,qBACA;EAAY;IACV,QAAQ;;;;iBAoBW,aAAa;EAClC;EACA;EACA;IACC;IACA,SAAS;IACT;MAAU;MAAoB;;;EAE/B;EACA;IACG,QAAQ;;;;iBA6BU,WAAW,QAAQ,YAAY,QAAQ,aAAa,QAAQ"}
@@ -1,48 +1,2 @@
1
- import { T as TextSegmentRenderer } from '../SvgExporter-CxE3LpEi.js';
2
- export { C as ConversionOptions, a as ConversionResult, D as DocumentConverter, F as FileSystemAdapter, M as MediaContext, P as PptxConverterOptions, b as PptxMarkdownConverter, S as SlideProcessor, c as SlideProcessorOptions, d as SvgExportOptions, e as SvgExporter, f as dataUrlToMediaBytes, g as deriveOutputPath, h as generateMediaFilename, i as getDirectory, n as normalizePath } from '../SvgExporter-CxE3LpEi.js';
3
- import { P as PptxSlide } from '../presentation-BLbjWKxK.js';
4
-
5
- /**
6
- * Renders slide-level metadata sections (transition, animations,
7
- * warnings, comments, speaker notes) into Markdown strings.
8
- */
9
- declare class SlideMetadataRenderer {
10
- private readonly textRenderer;
11
- constructor(textRenderer: TextSegmentRenderer);
12
- /**
13
- * Renders the slide transition effect as a short metadata line.
14
- */
15
- renderTransition(slide: PptxSlide): string;
16
- /**
17
- * Renders the slide's animation effects grouped by click sequence.
18
- */
19
- renderAnimations(slide: PptxSlide): string;
20
- /**
21
- * Renders any compatibility warnings for the slide.
22
- */
23
- renderWarnings(slide: PptxSlide): string;
24
- /**
25
- * Renders any review comments attached to the slide.
26
- */
27
- renderComments(slide: PptxSlide): string;
28
- /**
29
- * Renders the slide's speaker notes as a Markdown blockquote.
30
- */
31
- renderNotes(slide: PptxSlide): string;
32
- /**
33
- * Groups animations by click sequence. Each `onClick` trigger starts
34
- * a new group; `withPrevious` and `afterPrevious` are appended to the
35
- * current group.
36
- */
37
- private groupByClickSequence;
38
- /**
39
- * Converts legacy animation data into the NativeAnimationLike shape.
40
- */
41
- private mapLegacyAnimations;
42
- /**
43
- * Produces a human-readable summary of a single animation effect.
44
- */
45
- private summariseAnimation;
46
- }
47
-
48
- export { SlideMetadataRenderer };
1
+ import { _ as FileSystemAdapter, a as SlideProcessorOptions, c as DocumentConverter, d as normalizePath, f as MediaContext, g as ConversionResult, h as ConversionOptions, i as SlideProcessor, l as deriveOutputPath, m as generateMediaFilename, n as SvgExporter, o as PptxConverterOptions, p as dataUrlToMediaBytes, r as SlideMetadataRenderer, s as PptxMarkdownConverter, t as SvgExportOptions, u as getDirectory } from "../index-B0LkcsWQ.js";
2
+ export { type ConversionOptions, type ConversionResult, DocumentConverter, type FileSystemAdapter, MediaContext, type PptxConverterOptions, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, type SlideProcessorOptions, type SvgExportOptions, SvgExporter, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath };