@mkabatek/pptx-viewer 1.5.4 → 1.5.11

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.
Files changed (47) hide show
  1. package/dist/index.js +3 -1
  2. package/dist/index.mjs +3 -1
  3. package/dist/viewer/index.js +3 -1
  4. package/dist/viewer/index.mjs +3 -1
  5. package/package.json +2 -9
  6. package/node_modules/emf-converter/LICENSE +0 -21
  7. package/node_modules/emf-converter/README.md +0 -629
  8. package/node_modules/emf-converter/dist/index.d.mts +0 -86
  9. package/node_modules/emf-converter/dist/index.d.ts +0 -86
  10. package/node_modules/emf-converter/dist/index.js +0 -4257
  11. package/node_modules/emf-converter/dist/index.mjs +0 -4253
  12. package/node_modules/emf-converter/package.json +0 -53
  13. package/node_modules/mtx-decompressor/LICENSE +0 -373
  14. package/node_modules/mtx-decompressor/README.md +0 -271
  15. package/node_modules/mtx-decompressor/dist/index.d.mts +0 -84
  16. package/node_modules/mtx-decompressor/dist/index.d.ts +0 -84
  17. package/node_modules/mtx-decompressor/dist/index.js +0 -1532
  18. package/node_modules/mtx-decompressor/dist/index.mjs +0 -1528
  19. package/node_modules/mtx-decompressor/package.json +0 -44
  20. package/node_modules/pptx-viewer-core/LICENSE +0 -21
  21. package/node_modules/pptx-viewer-core/NOTICE +0 -16
  22. package/node_modules/pptx-viewer-core/README.md +0 -1294
  23. package/node_modules/pptx-viewer-core/dist/SvgExporter-BtZczTlB.d.ts +0 -557
  24. package/node_modules/pptx-viewer-core/dist/SvgExporter-D4mBWJHE.d.mts +0 -557
  25. package/node_modules/pptx-viewer-core/dist/cli/index.d.mts +0 -150
  26. package/node_modules/pptx-viewer-core/dist/cli/index.d.ts +0 -150
  27. package/node_modules/pptx-viewer-core/dist/cli/index.js +0 -0
  28. package/node_modules/pptx-viewer-core/dist/cli/index.mjs +0 -0
  29. package/node_modules/pptx-viewer-core/dist/converter/index.d.mts +0 -48
  30. package/node_modules/pptx-viewer-core/dist/converter/index.d.ts +0 -48
  31. package/node_modules/pptx-viewer-core/dist/converter/index.js +0 -0
  32. package/node_modules/pptx-viewer-core/dist/converter/index.mjs +0 -0
  33. package/node_modules/pptx-viewer-core/dist/index.d.mts +0 -12744
  34. package/node_modules/pptx-viewer-core/dist/index.d.ts +0 -12744
  35. package/node_modules/pptx-viewer-core/dist/index.js +0 -66894
  36. package/node_modules/pptx-viewer-core/dist/index.mjs +0 -66420
  37. package/node_modules/pptx-viewer-core/dist/presentation-nZxgWvXq.d.mts +0 -5645
  38. package/node_modules/pptx-viewer-core/dist/presentation-nZxgWvXq.d.ts +0 -5645
  39. package/node_modules/pptx-viewer-core/dist/signature-inspection-status-BCUpfCQh.d.mts +0 -220
  40. package/node_modules/pptx-viewer-core/dist/signature-inspection-status-BCUpfCQh.d.ts +0 -220
  41. package/node_modules/pptx-viewer-core/dist/signature-node/index.d.mts +0 -177
  42. package/node_modules/pptx-viewer-core/dist/signature-node/index.d.ts +0 -177
  43. package/node_modules/pptx-viewer-core/dist/signature-node/index.js +0 -1206
  44. package/node_modules/pptx-viewer-core/dist/signature-node/index.mjs +0 -1143
  45. package/node_modules/pptx-viewer-core/dist/text-operations-DCTGMltY.d.mts +0 -134
  46. package/node_modules/pptx-viewer-core/dist/text-operations-DYmhoi7U.d.ts +0 -134
  47. package/node_modules/pptx-viewer-core/package.json +0 -96
@@ -1,150 +0,0 @@
1
- #!/usr/bin/env node
2
- import { F as FindResult, M as MergeOptions } from '../text-operations-DCTGMltY.mjs';
3
- import '../presentation-nZxgWvXq.mjs';
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
-
15
- /** Result from the `info` command. */
16
- 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;
41
- }
42
- /** Result from the `export-svg` command. */
43
- interface ExportSvgResult {
44
- slideCount: number;
45
- svgs: string[];
46
- }
47
- /** Result from the `export-md` command. */
48
- interface ExportMdResult {
49
- markdown: string;
50
- slideCount: number;
51
- }
52
- /** Result from the `merge` command. */
53
- interface MergeResult {
54
- mergedSlideCount: number;
55
- totalSlideCount: number;
56
- outputBytes: Uint8Array;
57
- }
58
- /** Result from the `find` command. */
59
- interface FindCommandResult {
60
- matches: FindResult[];
61
- totalCount: number;
62
- }
63
- /** Result from the `replace` command. */
64
- interface ReplaceResult {
65
- replacementCount: number;
66
- outputBytes: Uint8Array;
67
- }
68
- /** Result from the `create` command. */
69
- interface CreateResult {
70
- outputBytes: Uint8Array;
71
- slideCount: number;
72
- }
73
- /** A single slide's diff entry. */
74
- interface SlideDiffEntry {
75
- slideNumber: number;
76
- status: 'added' | 'removed' | 'modified' | 'unchanged';
77
- elementCountA?: number;
78
- elementCountB?: number;
79
- textDifferences?: string[];
80
- }
81
- /** Result from the `diff` command. */
82
- interface DiffResult {
83
- slideCountA: number;
84
- slideCountB: number;
85
- dimensionsMatch: boolean;
86
- themeMatch: boolean;
87
- slideDiffs: SlideDiffEntry[];
88
- }
89
- /**
90
- * Show presentation info (slides, dimensions, theme, metadata).
91
- */
92
- declare function handleInfo(bytes: Uint8Array): Promise<InfoResult>;
93
- /**
94
- * Export all slides as SVG strings.
95
- */
96
- declare function handleExportSvg(bytes: Uint8Array, options?: {
97
- slideIndices?: number[];
98
- includeHidden?: boolean;
99
- }): Promise<ExportSvgResult>;
100
- /**
101
- * Export presentation to Markdown.
102
- */
103
- declare function handleExportMd(bytes: Uint8Array, options?: {
104
- sourceName?: string;
105
- includeSpeakerNotes?: boolean;
106
- semanticMode?: boolean;
107
- slideRange?: {
108
- start?: number;
109
- end?: number;
110
- };
111
- }): Promise<ExportMdResult>;
112
- /**
113
- * Merge two presentations.
114
- */
115
- declare function handleMerge(targetBytes: Uint8Array, sourceBytes: Uint8Array, options?: MergeOptions): Promise<MergeResult>;
116
- /**
117
- * Find text in a presentation.
118
- */
119
- declare function handleFind(bytes: Uint8Array, search: string, options?: {
120
- caseSensitive?: boolean;
121
- }): Promise<FindCommandResult>;
122
- /**
123
- * Replace text in a presentation and return the modified bytes.
124
- */
125
- declare function handleReplace(bytes: Uint8Array, search: string, replacement: string, options?: {
126
- caseSensitive?: boolean;
127
- }): Promise<ReplaceResult>;
128
- /**
129
- * Create a new blank presentation.
130
- */
131
- 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
- };
141
- };
142
- width?: number;
143
- height?: number;
144
- }): Promise<CreateResult>;
145
- /**
146
- * Compare two presentations and return a diff summary.
147
- */
148
- declare function handleDiff(bytesA: Uint8Array, bytesB: Uint8Array): Promise<DiffResult>;
149
-
150
- 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 };
@@ -1,150 +0,0 @@
1
- #!/usr/bin/env node
2
- import { F as FindResult, M as MergeOptions } from '../text-operations-DYmhoi7U.js';
3
- import '../presentation-nZxgWvXq.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
-
15
- /** Result from the `info` command. */
16
- 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;
41
- }
42
- /** Result from the `export-svg` command. */
43
- interface ExportSvgResult {
44
- slideCount: number;
45
- svgs: string[];
46
- }
47
- /** Result from the `export-md` command. */
48
- interface ExportMdResult {
49
- markdown: string;
50
- slideCount: number;
51
- }
52
- /** Result from the `merge` command. */
53
- interface MergeResult {
54
- mergedSlideCount: number;
55
- totalSlideCount: number;
56
- outputBytes: Uint8Array;
57
- }
58
- /** Result from the `find` command. */
59
- interface FindCommandResult {
60
- matches: FindResult[];
61
- totalCount: number;
62
- }
63
- /** Result from the `replace` command. */
64
- interface ReplaceResult {
65
- replacementCount: number;
66
- outputBytes: Uint8Array;
67
- }
68
- /** Result from the `create` command. */
69
- interface CreateResult {
70
- outputBytes: Uint8Array;
71
- slideCount: number;
72
- }
73
- /** A single slide's diff entry. */
74
- interface SlideDiffEntry {
75
- slideNumber: number;
76
- status: 'added' | 'removed' | 'modified' | 'unchanged';
77
- elementCountA?: number;
78
- elementCountB?: number;
79
- textDifferences?: string[];
80
- }
81
- /** Result from the `diff` command. */
82
- interface DiffResult {
83
- slideCountA: number;
84
- slideCountB: number;
85
- dimensionsMatch: boolean;
86
- themeMatch: boolean;
87
- slideDiffs: SlideDiffEntry[];
88
- }
89
- /**
90
- * Show presentation info (slides, dimensions, theme, metadata).
91
- */
92
- declare function handleInfo(bytes: Uint8Array): Promise<InfoResult>;
93
- /**
94
- * Export all slides as SVG strings.
95
- */
96
- declare function handleExportSvg(bytes: Uint8Array, options?: {
97
- slideIndices?: number[];
98
- includeHidden?: boolean;
99
- }): Promise<ExportSvgResult>;
100
- /**
101
- * Export presentation to Markdown.
102
- */
103
- declare function handleExportMd(bytes: Uint8Array, options?: {
104
- sourceName?: string;
105
- includeSpeakerNotes?: boolean;
106
- semanticMode?: boolean;
107
- slideRange?: {
108
- start?: number;
109
- end?: number;
110
- };
111
- }): Promise<ExportMdResult>;
112
- /**
113
- * Merge two presentations.
114
- */
115
- declare function handleMerge(targetBytes: Uint8Array, sourceBytes: Uint8Array, options?: MergeOptions): Promise<MergeResult>;
116
- /**
117
- * Find text in a presentation.
118
- */
119
- declare function handleFind(bytes: Uint8Array, search: string, options?: {
120
- caseSensitive?: boolean;
121
- }): Promise<FindCommandResult>;
122
- /**
123
- * Replace text in a presentation and return the modified bytes.
124
- */
125
- declare function handleReplace(bytes: Uint8Array, search: string, replacement: string, options?: {
126
- caseSensitive?: boolean;
127
- }): Promise<ReplaceResult>;
128
- /**
129
- * Create a new blank presentation.
130
- */
131
- 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
- };
141
- };
142
- width?: number;
143
- height?: number;
144
- }): Promise<CreateResult>;
145
- /**
146
- * Compare two presentations and return a diff summary.
147
- */
148
- declare function handleDiff(bytesA: Uint8Array, bytesB: Uint8Array): Promise<DiffResult>;
149
-
150
- 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 };
@@ -1,48 +0,0 @@
1
- import { T as TextSegmentRenderer } from '../SvgExporter-D4mBWJHE.mjs';
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-D4mBWJHE.mjs';
3
- import { l as PptxSlide } from '../presentation-nZxgWvXq.mjs';
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,48 +0,0 @@
1
- import { T as TextSegmentRenderer } from '../SvgExporter-BtZczTlB.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-BtZczTlB.js';
3
- import { l as PptxSlide } from '../presentation-nZxgWvXq.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 };