@arcships/pptx-core 0.3.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/LICENSE +201 -0
- package/README.md +34 -0
- package/dist/browser.d.ts +146 -0
- package/dist/browser.js +15668 -0
- package/dist/chunk-YX5SL7A5.js +709 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +26 -0
- package/dist/types-Dg1bRe8C.d.ts +222 -0
- package/package.json +56 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { g as PptxFeatureRecord, d as PptxCapabilityReport, h as PptxObjectSource, i as PptxObjectIdentity, j as PptxMorphMatch, k as PptxPlaybackEffect, l as PptxTriggerEvent, m as PptxPlaybackSlide, n as PptxPropertyTrack, o as PptxTimeNode, p as PptxTrackProperty } from './types-Dg1bRe8C.js';
|
|
2
|
+
export { q as PptxEffectKind, r as PptxFeatureDisposition, s as PptxMediaBookmark, t as PptxMediaItem, u as PptxMorphMatchMethod, c as PptxPlaybackDocument, f as PptxPlaybackError, v as PptxPlaybackErrorCode, w as PptxPlaybackErrorDetails, e as PptxPlaybackWarning, P as PptxPreviewDocument, x as PptxPreviewError, y as PptxPreviewErrorCode, a as PptxPreviewLimits, z as PptxPreviewWarning, b as PptxSearchResult, A as PptxSlideAction, B as PptxSlideInfo, C as PptxSlideTransition, D as PptxTimeCondition, E as PptxTimeContainer, F as PptxTimeNodeKind, G as PptxTrackKeyframe } from './types-Dg1bRe8C.js';
|
|
3
|
+
|
|
4
|
+
declare function createPptxCapabilityReport(features?: readonly PptxFeatureRecord[]): PptxCapabilityReport;
|
|
5
|
+
|
|
6
|
+
interface PptxObjectKeyParts {
|
|
7
|
+
slidePath: string;
|
|
8
|
+
source: PptxObjectSource;
|
|
9
|
+
shapeId: string;
|
|
10
|
+
groupPath?: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
declare function createPptxObjectKey(parts: PptxObjectKeyParts): string;
|
|
13
|
+
declare function matchPptxMorphObjects(fromObjects: readonly PptxObjectIdentity[], toObjects: readonly PptxObjectIdentity[]): readonly PptxMorphMatch[];
|
|
14
|
+
|
|
15
|
+
type PptxTriggerKey = "auto" | `click:${number}` | `shape:${string}` | `bookmark:${string}`;
|
|
16
|
+
interface PptxScheduledEffect {
|
|
17
|
+
nodeId: string;
|
|
18
|
+
effect: PptxPlaybackEffect;
|
|
19
|
+
triggerKey: PptxTriggerKey;
|
|
20
|
+
triggerEvent: PptxTriggerEvent;
|
|
21
|
+
clickBoundary: number;
|
|
22
|
+
startMs: number;
|
|
23
|
+
endMs: number | "indefinite";
|
|
24
|
+
order: number;
|
|
25
|
+
}
|
|
26
|
+
interface PptxTriggerSchedule {
|
|
27
|
+
key: PptxTriggerKey;
|
|
28
|
+
clickBoundary: number;
|
|
29
|
+
durationMs: number | "indefinite";
|
|
30
|
+
effects: readonly PptxScheduledEffect[];
|
|
31
|
+
}
|
|
32
|
+
interface PptxSlideSchedule {
|
|
33
|
+
groups: readonly PptxTriggerSchedule[];
|
|
34
|
+
clickBoundaryCount: number;
|
|
35
|
+
unsupportedNodeIds: readonly string[];
|
|
36
|
+
}
|
|
37
|
+
declare function compilePptxSlideSchedule(slide: PptxPlaybackSlide): PptxSlideSchedule;
|
|
38
|
+
|
|
39
|
+
type PptxTrackValue = string | number | boolean;
|
|
40
|
+
type PptxObjectPropertyState = Partial<Record<PptxTrackProperty, PptxTrackValue>>;
|
|
41
|
+
type PptxObjectStateMap = Readonly<Record<string, Readonly<PptxObjectPropertyState>>>;
|
|
42
|
+
interface PptxCompiledPropertyTrack extends PptxPropertyTrack {
|
|
43
|
+
paragraphRange?: {
|
|
44
|
+
start: number;
|
|
45
|
+
end: number;
|
|
46
|
+
};
|
|
47
|
+
segments: readonly PptxCompiledTrackSegment[];
|
|
48
|
+
}
|
|
49
|
+
interface PptxCompiledTrackSegment {
|
|
50
|
+
startMs: number;
|
|
51
|
+
endMs: number;
|
|
52
|
+
from: PptxTrackValue;
|
|
53
|
+
to: PptxTrackValue;
|
|
54
|
+
sourceNodeId: string;
|
|
55
|
+
order: number;
|
|
56
|
+
fill: PptxTimeNode["fill"];
|
|
57
|
+
easing?: string;
|
|
58
|
+
repeatStartMs?: number;
|
|
59
|
+
repeatPeriodMs?: number;
|
|
60
|
+
repeatIndefinite?: boolean;
|
|
61
|
+
}
|
|
62
|
+
interface PptxCompiledTriggerGroup {
|
|
63
|
+
key: PptxTriggerKey;
|
|
64
|
+
clickBoundary: number;
|
|
65
|
+
durationMs: number | "indefinite";
|
|
66
|
+
tracks: readonly PptxCompiledPropertyTrack[];
|
|
67
|
+
effects: readonly PptxScheduledEffect[];
|
|
68
|
+
}
|
|
69
|
+
interface PptxCompiledSlide {
|
|
70
|
+
slideIndex: number;
|
|
71
|
+
schedule: PptxSlideSchedule;
|
|
72
|
+
groups: readonly PptxCompiledTriggerGroup[];
|
|
73
|
+
initialState: PptxObjectStateMap;
|
|
74
|
+
}
|
|
75
|
+
declare function compilePptxSlideTracks(slide: PptxPlaybackSlide, initialState?: PptxObjectStateMap): PptxCompiledSlide;
|
|
76
|
+
declare function evaluatePptxTrack(track: PptxPropertyTrack, positionMs: number): PptxTrackValue;
|
|
77
|
+
declare function evaluatePptxTriggerGroup(group: PptxCompiledTriggerGroup, positionMs: number): PptxObjectStateMap;
|
|
78
|
+
declare function rebuildPptxStateAtBoundary(compiled: PptxCompiledSlide, clickBoundary: number): PptxObjectStateMap;
|
|
79
|
+
|
|
80
|
+
declare const DEFAULT_PPTX_PREVIEW_LIMITS: Readonly<{
|
|
81
|
+
maxInputBytes: number;
|
|
82
|
+
maxArchiveEntries: 4000;
|
|
83
|
+
maxSingleEntryBytes: number;
|
|
84
|
+
maxUncompressedBytes: number;
|
|
85
|
+
maxMediaBytes: number;
|
|
86
|
+
maxConcurrency: 8;
|
|
87
|
+
}>;
|
|
88
|
+
|
|
89
|
+
export { DEFAULT_PPTX_PREVIEW_LIMITS, PptxCapabilityReport, type PptxCompiledPropertyTrack, type PptxCompiledSlide, type PptxCompiledTrackSegment, type PptxCompiledTriggerGroup, PptxFeatureRecord, PptxMorphMatch, PptxObjectIdentity, type PptxObjectKeyParts, type PptxObjectPropertyState, PptxObjectSource, type PptxObjectStateMap, PptxPlaybackEffect, PptxPlaybackSlide, PptxPropertyTrack, type PptxScheduledEffect, type PptxSlideSchedule, PptxTimeNode, PptxTrackProperty, type PptxTrackValue, PptxTriggerEvent, type PptxTriggerKey, type PptxTriggerSchedule, compilePptxSlideSchedule, compilePptxSlideTracks, createPptxCapabilityReport, createPptxObjectKey, evaluatePptxTrack, evaluatePptxTriggerGroup, matchPptxMorphObjects, rebuildPptxStateAtBoundary };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_PPTX_PREVIEW_LIMITS,
|
|
3
|
+
PptxPlaybackError,
|
|
4
|
+
PptxPreviewError,
|
|
5
|
+
compilePptxSlideSchedule,
|
|
6
|
+
compilePptxSlideTracks,
|
|
7
|
+
createPptxCapabilityReport,
|
|
8
|
+
createPptxObjectKey,
|
|
9
|
+
evaluatePptxTrack,
|
|
10
|
+
evaluatePptxTriggerGroup,
|
|
11
|
+
matchPptxMorphObjects,
|
|
12
|
+
rebuildPptxStateAtBoundary
|
|
13
|
+
} from "./chunk-YX5SL7A5.js";
|
|
14
|
+
export {
|
|
15
|
+
DEFAULT_PPTX_PREVIEW_LIMITS,
|
|
16
|
+
PptxPlaybackError,
|
|
17
|
+
PptxPreviewError,
|
|
18
|
+
compilePptxSlideSchedule,
|
|
19
|
+
compilePptxSlideTracks,
|
|
20
|
+
createPptxCapabilityReport,
|
|
21
|
+
createPptxObjectKey,
|
|
22
|
+
evaluatePptxTrack,
|
|
23
|
+
evaluatePptxTriggerGroup,
|
|
24
|
+
matchPptxMorphObjects,
|
|
25
|
+
rebuildPptxStateAtBoundary
|
|
26
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
type PptxPreviewErrorCode = "ABORTED" | "INVALID_SOURCE" | "LIMIT_EXCEEDED" | "PARSE_FAILED" | "RENDER_FAILED" | "STALE_RESULT" | "UNSUPPORTED_CONTENT";
|
|
2
|
+
declare class PptxPreviewError extends Error {
|
|
3
|
+
readonly code: PptxPreviewErrorCode;
|
|
4
|
+
readonly cause?: unknown;
|
|
5
|
+
constructor(code: PptxPreviewErrorCode, message: string, cause?: unknown);
|
|
6
|
+
}
|
|
7
|
+
interface PptxPreviewLimits {
|
|
8
|
+
maxInputBytes?: number;
|
|
9
|
+
maxArchiveEntries?: number;
|
|
10
|
+
maxSingleEntryBytes?: number;
|
|
11
|
+
maxUncompressedBytes?: number;
|
|
12
|
+
maxMediaBytes?: number;
|
|
13
|
+
maxConcurrency?: number;
|
|
14
|
+
}
|
|
15
|
+
interface PptxSlideInfo {
|
|
16
|
+
index: number;
|
|
17
|
+
number: number;
|
|
18
|
+
hidden: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface PptxPreviewWarning {
|
|
21
|
+
code: "NOTES_UNSUPPORTED" | "UNSUPPORTED_CONTENT";
|
|
22
|
+
message: string;
|
|
23
|
+
slideIndex?: number;
|
|
24
|
+
}
|
|
25
|
+
interface PptxPreviewDocument {
|
|
26
|
+
fileName?: string;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
slides: readonly PptxSlideInfo[];
|
|
30
|
+
warnings: readonly PptxPreviewWarning[];
|
|
31
|
+
}
|
|
32
|
+
interface PptxSearchResult {
|
|
33
|
+
slideIndex: number;
|
|
34
|
+
nodeId: string;
|
|
35
|
+
text: string;
|
|
36
|
+
snippet: string;
|
|
37
|
+
matchStart: number;
|
|
38
|
+
matchEnd: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type PptxPlaybackErrorCode = "PLAYBACK_NOT_READY" | "PLAYBACK_DISPOSED" | "TARGET_NOT_FOUND" | "TARGET_AMBIGUOUS" | "TIME_CONDITION_UNSUPPORTED" | "TRACK_COMPILE_FAILED" | "MEDIA_BLOCKED" | "MEDIA_FAILED" | "FULLSCREEN_REJECTED" | "UNSUPPORTED_FEATURE";
|
|
42
|
+
interface PptxPlaybackErrorDetails {
|
|
43
|
+
slideIndex?: number;
|
|
44
|
+
objectKey?: string;
|
|
45
|
+
sourceNodeId?: string;
|
|
46
|
+
cause?: unknown;
|
|
47
|
+
}
|
|
48
|
+
declare class PptxPlaybackError extends Error {
|
|
49
|
+
readonly code: PptxPlaybackErrorCode;
|
|
50
|
+
readonly slideIndex?: number;
|
|
51
|
+
readonly objectKey?: string;
|
|
52
|
+
readonly sourceNodeId?: string;
|
|
53
|
+
readonly cause?: unknown;
|
|
54
|
+
constructor(code: PptxPlaybackErrorCode, message: string, details?: PptxPlaybackErrorDetails);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
type PptxObjectSource = "slide" | "layout" | "master";
|
|
58
|
+
interface PptxObjectIdentity {
|
|
59
|
+
key: string;
|
|
60
|
+
slidePath: string;
|
|
61
|
+
source: PptxObjectSource;
|
|
62
|
+
shapeId: string;
|
|
63
|
+
groupPath: readonly string[];
|
|
64
|
+
name?: string;
|
|
65
|
+
explicitMorphName?: string;
|
|
66
|
+
creationId?: string;
|
|
67
|
+
nodeType: string;
|
|
68
|
+
}
|
|
69
|
+
type PptxMorphMatchMethod = "explicit-name" | "creation-id" | "name-and-geometry" | "text-and-geometry";
|
|
70
|
+
interface PptxMorphMatch {
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
73
|
+
method: PptxMorphMatchMethod;
|
|
74
|
+
confidence: "strong" | "medium" | "weak";
|
|
75
|
+
score: number;
|
|
76
|
+
unique: boolean;
|
|
77
|
+
}
|
|
78
|
+
type PptxTimeContainer = "root" | "sequence" | "parallel" | "exclusive" | "behavior" | "unknown";
|
|
79
|
+
type PptxTimeNodeKind = "group" | "effect" | "media" | "command" | "unknown";
|
|
80
|
+
type PptxTriggerEvent = "delay" | "on-click" | "with-previous" | "after-previous" | "on-shape-click" | "on-begin" | "on-end" | "on-next" | "on-previous" | "on-media-bookmark" | "on-stop-audio" | "unknown";
|
|
81
|
+
interface PptxTimeCondition {
|
|
82
|
+
source: "start" | "end" | "previous" | "next";
|
|
83
|
+
event: PptxTriggerEvent;
|
|
84
|
+
delayMs: number;
|
|
85
|
+
targetObjectKey?: string;
|
|
86
|
+
targetNodeId?: string;
|
|
87
|
+
bookmarkName?: string;
|
|
88
|
+
rawEvent?: string;
|
|
89
|
+
}
|
|
90
|
+
type PptxEffectKind = "appear" | "disappear" | "fade-in" | "fade-out" | "wipe" | "scale" | "rotate" | "motion-path" | "emphasis" | "set" | "media-command" | "unknown";
|
|
91
|
+
interface PptxPlaybackEffect {
|
|
92
|
+
id: string;
|
|
93
|
+
kind: PptxEffectKind;
|
|
94
|
+
targetObjectKey?: string;
|
|
95
|
+
paragraphRange?: {
|
|
96
|
+
start: number;
|
|
97
|
+
end: number;
|
|
98
|
+
};
|
|
99
|
+
presetClass?: string;
|
|
100
|
+
presetId?: string;
|
|
101
|
+
transition?: "in" | "out";
|
|
102
|
+
filter?: string;
|
|
103
|
+
command?: string;
|
|
104
|
+
motionPath?: string;
|
|
105
|
+
values: Readonly<Record<string, string | number | boolean>>;
|
|
106
|
+
}
|
|
107
|
+
interface PptxTimeNode {
|
|
108
|
+
id: string;
|
|
109
|
+
parentId?: string;
|
|
110
|
+
container: PptxTimeContainer;
|
|
111
|
+
kind: PptxTimeNodeKind;
|
|
112
|
+
nodeType?: string;
|
|
113
|
+
delayMs: number;
|
|
114
|
+
durationMs: number | "indefinite";
|
|
115
|
+
repeatCount?: number | "indefinite";
|
|
116
|
+
autoReverse: boolean;
|
|
117
|
+
fill: "hold" | "remove" | "freeze" | "unknown";
|
|
118
|
+
restart: "always" | "when-not-active" | "never" | "unknown";
|
|
119
|
+
acceleration: number;
|
|
120
|
+
deceleration: number;
|
|
121
|
+
conditions: readonly PptxTimeCondition[];
|
|
122
|
+
childIds: readonly string[];
|
|
123
|
+
effect?: PptxPlaybackEffect;
|
|
124
|
+
rawSummary?: string;
|
|
125
|
+
}
|
|
126
|
+
type PptxTrackProperty = "display" | "opacity" | "translate-x" | "translate-y" | "scale-x" | "scale-y" | "rotate" | "clip-path" | "filter" | "fill-color" | "line-color" | "text-color" | "media-playback" | "media-time" | "media-volume";
|
|
127
|
+
interface PptxTrackKeyframe {
|
|
128
|
+
timeMs: number;
|
|
129
|
+
value: string | number | boolean;
|
|
130
|
+
easing?: string;
|
|
131
|
+
sourceNodeId: string;
|
|
132
|
+
}
|
|
133
|
+
interface PptxPropertyTrack {
|
|
134
|
+
objectKey: string;
|
|
135
|
+
property: PptxTrackProperty;
|
|
136
|
+
initialValue: string | number | boolean;
|
|
137
|
+
keyframes: readonly PptxTrackKeyframe[];
|
|
138
|
+
endTimeMs: number | "indefinite";
|
|
139
|
+
repeatStartMs?: number;
|
|
140
|
+
repeatPeriodMs?: number;
|
|
141
|
+
repeatIndefinite?: boolean;
|
|
142
|
+
}
|
|
143
|
+
interface PptxSlideTransition {
|
|
144
|
+
kind: string;
|
|
145
|
+
direction?: string;
|
|
146
|
+
option?: string;
|
|
147
|
+
durationMs: number;
|
|
148
|
+
advanceOnClick: boolean;
|
|
149
|
+
advanceAfterMs?: number;
|
|
150
|
+
soundRelationId?: string;
|
|
151
|
+
}
|
|
152
|
+
interface PptxMediaBookmark {
|
|
153
|
+
name: string;
|
|
154
|
+
timeMs: number;
|
|
155
|
+
}
|
|
156
|
+
interface PptxMediaItem {
|
|
157
|
+
id: string;
|
|
158
|
+
objectKey?: string;
|
|
159
|
+
relationId: string;
|
|
160
|
+
sourcePath?: string;
|
|
161
|
+
contentType?: string;
|
|
162
|
+
kind: "audio" | "video";
|
|
163
|
+
embedded: boolean;
|
|
164
|
+
trimStartMs?: number;
|
|
165
|
+
trimEndMs?: number;
|
|
166
|
+
loop: boolean;
|
|
167
|
+
volume: number;
|
|
168
|
+
bookmarks: readonly PptxMediaBookmark[];
|
|
169
|
+
}
|
|
170
|
+
interface PptxSlideAction {
|
|
171
|
+
id: string;
|
|
172
|
+
sourceObjectKey: string;
|
|
173
|
+
trigger: "click" | "hover";
|
|
174
|
+
kind: "go-to-slide" | "open-url" | "mailto" | "unsupported";
|
|
175
|
+
targetSlideIndex?: number;
|
|
176
|
+
url?: string;
|
|
177
|
+
rawAction?: string;
|
|
178
|
+
}
|
|
179
|
+
type PptxFeatureDisposition = "strict" | "approximate" | "static" | "unparsed";
|
|
180
|
+
interface PptxFeatureRecord {
|
|
181
|
+
id: string;
|
|
182
|
+
slideIndex: number;
|
|
183
|
+
objectKey?: string;
|
|
184
|
+
feature: string;
|
|
185
|
+
disposition: PptxFeatureDisposition;
|
|
186
|
+
reason?: string;
|
|
187
|
+
sourceNodeId?: string;
|
|
188
|
+
}
|
|
189
|
+
interface PptxCapabilityReport {
|
|
190
|
+
discovered: number;
|
|
191
|
+
strict: number;
|
|
192
|
+
approximate: number;
|
|
193
|
+
static: number;
|
|
194
|
+
unparsed: number;
|
|
195
|
+
features: readonly PptxFeatureRecord[];
|
|
196
|
+
}
|
|
197
|
+
interface PptxPlaybackSlide {
|
|
198
|
+
index: number;
|
|
199
|
+
hidden: boolean;
|
|
200
|
+
objects: readonly PptxObjectIdentity[];
|
|
201
|
+
morphFromPrevious: readonly PptxMorphMatch[];
|
|
202
|
+
transition?: PptxSlideTransition;
|
|
203
|
+
rootNodeId?: string;
|
|
204
|
+
nodes: Readonly<Record<string, PptxTimeNode>>;
|
|
205
|
+
media: readonly PptxMediaItem[];
|
|
206
|
+
actions: readonly PptxSlideAction[];
|
|
207
|
+
capability: PptxCapabilityReport;
|
|
208
|
+
}
|
|
209
|
+
interface PptxPlaybackDocument {
|
|
210
|
+
slides: readonly PptxPlaybackSlide[];
|
|
211
|
+
capability: PptxCapabilityReport;
|
|
212
|
+
}
|
|
213
|
+
interface PptxPlaybackWarning {
|
|
214
|
+
code: string;
|
|
215
|
+
message: string;
|
|
216
|
+
slideIndex: number;
|
|
217
|
+
objectKey?: string;
|
|
218
|
+
sourceNodeId?: string;
|
|
219
|
+
recoverable: boolean;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export { type PptxSlideAction as A, type PptxSlideInfo as B, type PptxSlideTransition as C, type PptxTimeCondition as D, type PptxTimeContainer as E, type PptxTimeNodeKind as F, type PptxTrackKeyframe as G, type PptxPreviewDocument as P, type PptxPreviewLimits as a, type PptxSearchResult as b, type PptxPlaybackDocument as c, type PptxCapabilityReport as d, type PptxPlaybackWarning as e, PptxPlaybackError as f, type PptxFeatureRecord as g, type PptxObjectSource as h, type PptxObjectIdentity as i, type PptxMorphMatch as j, type PptxPlaybackEffect as k, type PptxTriggerEvent as l, type PptxPlaybackSlide as m, type PptxPropertyTrack as n, type PptxTimeNode as o, type PptxTrackProperty as p, type PptxEffectKind as q, type PptxFeatureDisposition as r, type PptxMediaBookmark as s, type PptxMediaItem as t, type PptxMorphMatchMethod as u, type PptxPlaybackErrorCode as v, type PptxPlaybackErrorDetails as w, PptxPreviewError as x, type PptxPreviewErrorCode as y, type PptxPreviewWarning as z };
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@arcships/pptx-core",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"description": "PPTX preview and playback model with browser document sessions and animation controls",
|
|
6
|
+
"keywords": ["pptx", "powerpoint", "presentation", "viewer", "playback", "animation"],
|
|
7
|
+
"homepage": "https://github.com/arcships/agentic-office-ui#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/arcships/agentic-office-ui.git",
|
|
11
|
+
"directory": "packages/pptx-core"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/arcships/agentic-office-ui/issues"
|
|
15
|
+
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"import": "./dist/index.js",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./browser": {
|
|
36
|
+
"types": "./dist/browser.d.ts",
|
|
37
|
+
"import": "./dist/browser.js",
|
|
38
|
+
"default": "./dist/browser.js"
|
|
39
|
+
},
|
|
40
|
+
"./package.json": "./package.json"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup",
|
|
44
|
+
"prepack": "pnpm run build",
|
|
45
|
+
"typecheck": "tsc --noEmit"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"echarts": "^6.0.0",
|
|
49
|
+
"jszip": "^3.10.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@aiden0z/pptx-renderer": "1.2.4",
|
|
53
|
+
"tsup": "^8.0.0",
|
|
54
|
+
"typescript": "^5.0.0"
|
|
55
|
+
}
|
|
56
|
+
}
|