pptx-glimpse 0.1.0 → 0.1.2

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.cts CHANGED
@@ -1,3 +1,23 @@
1
+ type LogLevel = "off" | "warn" | "debug";
2
+ interface WarningEntry {
3
+ /** The feature key, e.g. "sp.style", "bodyPr@vert" */
4
+ feature: string;
5
+ /** Human-readable description */
6
+ message: string;
7
+ /** Location context, e.g. "Slide 1" */
8
+ context?: string;
9
+ }
10
+ interface WarningSummary {
11
+ totalCount: number;
12
+ features: {
13
+ feature: string;
14
+ message: string;
15
+ count: number;
16
+ }[];
17
+ }
18
+ declare function getWarningSummary(): WarningSummary;
19
+ declare function getWarningEntries(): readonly WarningEntry[];
20
+
1
21
  interface ConvertOptions {
2
22
  /** 変換対象のスライド番号 (1始まり)。未指定で全スライド */
3
23
  slides?: number[];
@@ -5,6 +25,8 @@ interface ConvertOptions {
5
25
  width?: number;
6
26
  /** 出力画像の高さ (ピクセル)。widthと同時指定時はwidthが優先 */
7
27
  height?: number;
28
+ /** 警告ログレベル。デフォルト: "off" */
29
+ logLevel?: LogLevel;
8
30
  }
9
31
  interface SlideSvg {
10
32
  slideNumber: number;
@@ -19,4 +41,4 @@ interface SlideImage {
19
41
  declare function convertPptxToSvg(input: Buffer | Uint8Array, options?: ConvertOptions): Promise<SlideSvg[]>;
20
42
  declare function convertPptxToPng(input: Buffer | Uint8Array, options?: ConvertOptions): Promise<SlideImage[]>;
21
43
 
22
- export { type ConvertOptions, type SlideImage, type SlideSvg, convertPptxToPng, convertPptxToSvg };
44
+ export { type ConvertOptions, type LogLevel, type SlideImage, type SlideSvg, type WarningEntry, type WarningSummary, convertPptxToPng, convertPptxToSvg, getWarningEntries, getWarningSummary };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,23 @@
1
+ type LogLevel = "off" | "warn" | "debug";
2
+ interface WarningEntry {
3
+ /** The feature key, e.g. "sp.style", "bodyPr@vert" */
4
+ feature: string;
5
+ /** Human-readable description */
6
+ message: string;
7
+ /** Location context, e.g. "Slide 1" */
8
+ context?: string;
9
+ }
10
+ interface WarningSummary {
11
+ totalCount: number;
12
+ features: {
13
+ feature: string;
14
+ message: string;
15
+ count: number;
16
+ }[];
17
+ }
18
+ declare function getWarningSummary(): WarningSummary;
19
+ declare function getWarningEntries(): readonly WarningEntry[];
20
+
1
21
  interface ConvertOptions {
2
22
  /** 変換対象のスライド番号 (1始まり)。未指定で全スライド */
3
23
  slides?: number[];
@@ -5,6 +25,8 @@ interface ConvertOptions {
5
25
  width?: number;
6
26
  /** 出力画像の高さ (ピクセル)。widthと同時指定時はwidthが優先 */
7
27
  height?: number;
28
+ /** 警告ログレベル。デフォルト: "off" */
29
+ logLevel?: LogLevel;
8
30
  }
9
31
  interface SlideSvg {
10
32
  slideNumber: number;
@@ -19,4 +41,4 @@ interface SlideImage {
19
41
  declare function convertPptxToSvg(input: Buffer | Uint8Array, options?: ConvertOptions): Promise<SlideSvg[]>;
20
42
  declare function convertPptxToPng(input: Buffer | Uint8Array, options?: ConvertOptions): Promise<SlideImage[]>;
21
43
 
22
- export { type ConvertOptions, type SlideImage, type SlideSvg, convertPptxToPng, convertPptxToSvg };
44
+ export { type ConvertOptions, type LogLevel, type SlideImage, type SlideSvg, type WarningEntry, type WarningSummary, convertPptxToPng, convertPptxToSvg, getWarningEntries, getWarningSummary };