@pptx-editor.dev/editor-api 0.1.0 → 0.3.0-canary.20261108032713.sha-58e17f1

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.js CHANGED
@@ -1,184 +1,6 @@
1
- import {
2
- Adjustments,
3
- Application,
4
- Binding,
5
- BindingCollection,
6
- BindingType,
7
- Border,
8
- Borders,
9
- BulletFormat,
10
- BulletStyle,
11
- BulletType,
12
- ClientObject,
13
- ClientResult,
14
- ConnectorType,
15
- CustomProperty,
16
- CustomPropertyCollection,
17
- CustomXmlPart,
18
- CustomXmlPartCollection,
19
- CustomXmlPartScopedCollection,
20
- DocumentProperties,
21
- DocumentPropertyType,
22
- GeometricShapeType,
23
- Hyperlink,
24
- HyperlinkCollection,
25
- HyperlinkScopedCollection,
26
- HyperlinkType,
27
- InsertSlideFormatting,
28
- Margins,
29
- PageSetup,
30
- ParagraphFormat,
31
- ParagraphHorizontalAlignment,
32
- PlaceholderFormat,
33
- PlaceholderType,
34
- PptxEditorError,
35
- Presentation,
36
- RequestContext,
37
- Shape,
38
- ShapeAutoSize,
39
- ShapeCollection,
40
- ShapeFill,
41
- ShapeFillType,
42
- ShapeFont,
43
- ShapeFontUnderlineStyle,
44
- ShapeGetImageFormatType,
45
- ShapeGroup,
46
- ShapeLineDashStyle,
47
- ShapeLineFormat,
48
- ShapeLineStyle,
49
- ShapeScopedCollection,
50
- ShapeType,
51
- ShapeZOrder,
52
- Slide,
53
- SlideBackground,
54
- SlideBackgroundFill,
55
- SlideBackgroundFillType,
56
- SlideBackgroundGradientFill,
57
- SlideBackgroundGradientFillType,
58
- SlideBackgroundPatternFill,
59
- SlideBackgroundPatternFillType,
60
- SlideBackgroundPictureOrTextureFill,
61
- SlideBackgroundSolidFill,
62
- SlideCollection,
63
- SlideLayout,
64
- SlideLayoutBackground,
65
- SlideLayoutCollection,
66
- SlideLayoutType,
67
- SlideMaster,
68
- SlideMasterBackground,
69
- SlideMasterCollection,
70
- SlideScopedCollection,
71
- Table,
72
- TableCell,
73
- TableCellCollection,
74
- TableColumn,
75
- TableColumnCollection,
76
- TableRow,
77
- TableRowCollection,
78
- TableStyle,
79
- TableStyleSettings,
80
- Tag,
81
- TagCollection,
82
- TextFrame,
83
- TextRange,
84
- TextVerticalAlignment,
85
- ThemeColor,
86
- ThemeColorScheme,
87
- TrackedObjects,
88
- createServer,
89
- isPptxEditorError
90
- } from "./chunk-BULCTJVY.js";
91
-
92
- // src/index.ts
93
- var PptxEditor = Object.freeze({ createServer });
94
- export {
95
- Adjustments,
96
- Application,
97
- Binding,
98
- BindingCollection,
99
- BindingType,
100
- Border,
101
- Borders,
102
- BulletFormat,
103
- BulletStyle,
104
- BulletType,
105
- ClientObject,
106
- ClientResult,
107
- ConnectorType,
108
- CustomProperty,
109
- CustomPropertyCollection,
110
- CustomXmlPart,
111
- CustomXmlPartCollection,
112
- CustomXmlPartScopedCollection,
113
- DocumentProperties,
114
- DocumentPropertyType,
115
- GeometricShapeType,
116
- Hyperlink,
117
- HyperlinkCollection,
118
- HyperlinkScopedCollection,
119
- HyperlinkType,
120
- InsertSlideFormatting,
121
- Margins,
122
- PageSetup,
123
- ParagraphFormat,
124
- ParagraphHorizontalAlignment,
125
- PlaceholderFormat,
126
- PlaceholderType,
127
- PptxEditor,
128
- PptxEditorError,
129
- Presentation,
130
- RequestContext,
131
- Shape,
132
- ShapeAutoSize,
133
- ShapeCollection,
134
- ShapeFill,
135
- ShapeFillType,
136
- ShapeFont,
137
- ShapeFontUnderlineStyle,
138
- ShapeGetImageFormatType,
139
- ShapeGroup,
140
- ShapeLineDashStyle,
141
- ShapeLineFormat,
142
- ShapeLineStyle,
143
- ShapeScopedCollection,
144
- ShapeType,
145
- ShapeZOrder,
146
- Slide,
147
- SlideBackground,
148
- SlideBackgroundFill,
149
- SlideBackgroundFillType,
150
- SlideBackgroundGradientFill,
151
- SlideBackgroundGradientFillType,
152
- SlideBackgroundPatternFill,
153
- SlideBackgroundPatternFillType,
154
- SlideBackgroundPictureOrTextureFill,
155
- SlideBackgroundSolidFill,
156
- SlideCollection,
157
- SlideLayout,
158
- SlideLayoutBackground,
159
- SlideLayoutCollection,
160
- SlideLayoutType,
161
- SlideMaster,
162
- SlideMasterBackground,
163
- SlideMasterCollection,
164
- SlideScopedCollection,
165
- Table,
166
- TableCell,
167
- TableCellCollection,
168
- TableColumn,
169
- TableColumnCollection,
170
- TableRow,
171
- TableRowCollection,
172
- TableStyle,
173
- TableStyleSettings,
174
- Tag,
175
- TagCollection,
176
- TextFrame,
177
- TextRange,
178
- TextVerticalAlignment,
179
- ThemeColor,
180
- ThemeColorScheme,
181
- TrackedObjects,
182
- isPptxEditorError
183
- };
184
- //# sourceMappingURL=index.js.map
1
+ /*!
2
+ Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
3
+ Licensed under the EigenPal Pro Evaluation License 1.0. See LICENSE.md in this package.
4
+ Production use requires a commercial agreement: licensing@eigenpal.com
5
+ */
6
+ import{$ as ee,A,Aa as Ae,B as U,Ba as Ue,C as g,Ca as ge,D as h,Da as he,E as k,Ea as ke,F as l,Fa as le,G as q,Ga as qe,H as w,I as B,Ia as e,J as D,K as F,L as G,M as H,N as I,O as J,P as K,Q as L,R as M,S as Q,T,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as r,aa as re,b as t,ba as te,c as o,ca as oe,d as i,da as ie,e as p,ea as pe,f as m,fa as me,g as a,ga as ae,h as n,ha as ne,i as s,ia as se,j as x,ja as xe,k as c,ka as ce,l as v,la as ve,m as P,ma as Pe,n as S,na as Se,o as d,oa as de,p as f,pa as fe,q as E,qa as Ee,r as u,ra as ue,s as y,sa as ye,t as O,ta as Oe,u as b,ua as be,v as C,va as Ce,w as N,wa as Ne,x as R,xa as Re,y as j,ya as je,z,za as ze}from"./chunk-4LV64HZP.js";var Be=Object.freeze({createServer:e});export{h as Adjustments,i as Application,je as Binding,ze as BindingCollection,a as BindingType,se as Border,xe as Borders,G as BulletFormat,b as BulletStyle,O as BulletType,o as ClientObject,p as ClientResult,n as ConnectorType,Ae as CustomProperty,Ue as CustomPropertyCollection,Y as CustomXmlPart,Z as CustomXmlPartCollection,_ as CustomXmlPartScopedCollection,he as DocumentProperties,g as DocumentPropertyType,q as GeometricShapeType,H as Hyperlink,I as HyperlinkCollection,J as HyperlinkScopedCollection,s as HyperlinkType,A as InsertSlideFormatting,ce as Margins,ke as PageSetup,F as ParagraphFormat,f as ParagraphHorizontalAlignment,Re as PlaceholderFormat,u as PlaceholderType,Be as PptxEditor,r as PptxEditorError,ge as Presentation,qe as RequestContext,Oe as Shape,S as ShapeAutoSize,be as ShapeCollection,k as ShapeFill,c as ShapeFillType,D as ShapeFont,E as ShapeFontUnderlineStyle,U as ShapeGetImageFormatType,Ne as ShapeGroup,v as ShapeLineDashStyle,l as ShapeLineFormat,P as ShapeLineStyle,Ce as ShapeScopedCollection,m as ShapeType,x as ShapeZOrder,te as Slide,V as SlideBackground,T as SlideBackgroundFill,C as SlideBackgroundFillType,L as SlideBackgroundGradientFill,N as SlideBackgroundGradientFillType,M as SlideBackgroundPatternFill,R as SlideBackgroundPatternFillType,Q as SlideBackgroundPictureOrTextureFill,K as SlideBackgroundSolidFill,oe as SlideCollection,pe as SlideLayout,W as SlideLayoutBackground,me as SlideLayoutCollection,y as SlideLayoutType,ae as SlideMaster,X as SlideMasterBackground,ne as SlideMasterCollection,ie as SlideScopedCollection,Se as Table,Pe as TableCell,ye as TableCellCollection,fe as TableColumn,ue as TableColumnCollection,de as TableRow,Ee as TableRowCollection,z as TableStyle,ve as TableStyleSettings,$ as Tag,ee as TagCollection,w as TextFrame,B as TextRange,d as TextVerticalAlignment,j as ThemeColor,re as ThemeColorScheme,le as TrackedObjects,t as isPptxEditorError};
@@ -1,3 +1,8 @@
1
+ /*!
2
+ Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
3
+ Licensed under the EigenPal Pro Evaluation License 1.0. See LICENSE.md in this package.
4
+ Production use requires a commercial agreement: licensing@eigenpal.com
5
+ */
1
6
  import { AutomationHandle, AutomationRef, AutomationOperation, AutomationValue, AutomationItemKey, AutomationCellAddress, AutomationTextSpan, AutomationParagraphWrite, AutomationBackgroundWrite, AutomationBackgroundRead, AutomationCustomXmlPartRead, AutomationTableCellFormatRead, AutomationCellBorderSide, AutomationHost, AutomationCapabilities } from '@pptx-editor.dev/core/automation';
2
7
  import { ImageRasterizer } from '@pptx-editor.dev/core/editor';
3
8
  import { FontSource } from '@pptx-editor.dev/core/layout';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptx-editor.dev/editor-api",
3
- "version": "0.1.0",
3
+ "version": "0.3.0-canary.20261108032713.sha-58e17f1",
4
4
  "description": "Presentation automation for PPTX: an Office.js-shaped batching object model that drives a deck on a server or in an editor already open in a page.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -45,7 +45,7 @@
45
45
  "office-js"
46
46
  ],
47
47
  "peerDependencies": {
48
- "@pptx-editor.dev/core": "0.x"
48
+ "@pptx-editor.dev/core": "0.3.0-canary.20261108032713.sha-58e17f1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@pptx-editor.dev/core": "workspace:*"
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/runtime/browser.ts","../src/browser.ts"],"sourcesContent":["/*\nCopyright (c) 2026 EigenPal, Inc. All rights reserved.\nLicensed under the EigenPal Pro Evaluation License 1.0 — see packages/editor-api/LICENSE.md.\nProduction use requires a commercial agreement: licensing@eigenpal.com\n*/\n// After DOCX Editor's `packages/editor-api/src/runtime/browser.ts` (commit 5993bd223945).\n//\n// A runtime that borrows an editor a reader already has open. Each `sync()` that writes is one\n// undo step in the editor, and the selection members read and move the reader's selection.\n\nimport { createBrowserAutomationHost, type PptxEditorInstance } from '@pptx-editor.dev/core/editor';\nimport { createRuntime, type PptxEditorRuntime } from './runtime.ts';\n\nexport function createBrowser(editor: PptxEditorInstance): PptxEditorRuntime {\n return createRuntime({ host: createBrowserAutomationHost(editor), save: false });\n}\n","/*\nCopyright (c) 2026 EigenPal, Inc. All rights reserved.\nLicensed under the EigenPal Pro Evaluation License 1.0 — see packages/editor-api/LICENSE.md.\nProduction use requires a commercial agreement: licensing@eigenpal.com\n*/\n/**\n * Presentation automation over an editor a reader already has open, plus everything the root\n * entry offers.\n *\n * `createBrowser` lives one subpath along because reaching a live editor means reaching the\n * painted engine; a consumer that holds bytes does not pay for that.\n *\n * @example Format the reader's selected text\n * ```ts\n * import { PptxEditor } from '@pptx-editor.dev/editor-api/browser';\n *\n * const runtime = PptxEditor.createBrowser(editor);\n * await runtime.run(async (context) => {\n * const range = context.presentation.getSelectedTextRangeOrNullObject();\n * range.load('text');\n * await context.sync();\n * if (!range.isNullObject) range.font.color = '#C00000';\n * await context.sync();\n * });\n * ```\n *\n * @packageDocumentation\n */\n\nimport type { PptxEditorInstance } from '@pptx-editor.dev/core/editor';\nimport { createBrowser } from './runtime/browser.ts';\nimport type { PptxEditorRuntime, PptxEditorServerRuntime } from './runtime/runtime.ts';\nimport { createServer, type CreateServerOptions } from './runtime/server.ts';\n\nexport * from './runtime/public.ts';\n\n/**\n * The entry point with `createBrowser`.\n *\n * @public\n */\nexport interface PptxEditorBrowserNamespace {\n /**\n * A runtime over an editor that is already open. The editor keeps its own lifetime: dispose\n * the runtime before the editor. Each `sync()` that writes is one undo step.\n */\n createBrowser(editor: PptxEditorInstance): PptxEditorRuntime;\n /** A runtime over PPTX bytes. It also offers `save()`. */\n createServer(bytes: Uint8Array, options?: CreateServerOptions): Promise<PptxEditorServerRuntime>;\n}\n\n/**\n * The entry point: borrow a live editor, or open bytes.\n *\n * @public\n */\nexport const PptxEditor: PptxEditorBrowserNamespace = Object.freeze({\n createBrowser,\n createServer,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,mCAA4D;AAG9D,SAAS,cAAc,QAA+C;AAC3E,SAAO,cAAc,EAAE,MAAM,4BAA4B,MAAM,GAAG,MAAM,MAAM,CAAC;AACjF;;;ACyCO,IAAM,aAAyC,OAAO,OAAO;AAAA,EAClE;AAAA,EACA;AACF,CAAC;","names":[]}