@pptx-editor.dev/editor-api 0.3.1 → 0.4.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/dist/index.js CHANGED
@@ -3,4 +3,4 @@ Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
3
3
  Licensed under the EigenPal Pro Evaluation License 1.0. See LICENSE.md in this package.
4
4
  Production use requires a commercial agreement: licensing@eigenpal.com
5
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-CSSS47FS.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};
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,Ha as we,I as B,J as D,Ja as e,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-ANMDPRJO.js";var De=Object.freeze({createServer:e});export{k as Adjustments,i as Application,ze as Binding,Ae as BindingCollection,a as BindingType,xe as Border,ce as Borders,H as BulletFormat,C as BulletStyle,b as BulletType,o as ClientObject,p as ClientResult,n as ConnectorType,Ue as CustomProperty,ge as CustomPropertyCollection,Z as CustomXmlPart,_ as CustomXmlPartCollection,$ as CustomXmlPartScopedCollection,ke as DocumentProperties,h as DocumentPropertyType,w as GeometricShapeType,I as Hyperlink,J as HyperlinkCollection,K as HyperlinkScopedCollection,s as HyperlinkType,U as InsertSlideFormatting,ve as Margins,le as PageSetup,G as ParagraphFormat,E as ParagraphHorizontalAlignment,je as PlaceholderFormat,y as PlaceholderType,De as PptxEditor,r as PptxEditorError,he as Presentation,we as RequestContext,be as Shape,P as ShapeArrowheadStyle,d as ShapeAutoSize,Ce as ShapeCollection,l as ShapeFill,c as ShapeFillType,F as ShapeFont,u as ShapeFontUnderlineStyle,g as ShapeGetImageFormatType,Re as ShapeGroup,v as ShapeLineDashStyle,q as ShapeLineFormat,S as ShapeLineStyle,Ne as ShapeScopedCollection,m as ShapeType,x as ShapeZOrder,oe as Slide,W as SlideBackground,V as SlideBackgroundFill,N as SlideBackgroundFillType,M as SlideBackgroundGradientFill,R as SlideBackgroundGradientFillType,Q as SlideBackgroundPatternFill,j as SlideBackgroundPatternFillType,T as SlideBackgroundPictureOrTextureFill,L as SlideBackgroundSolidFill,ie as SlideCollection,me as SlideLayout,X as SlideLayoutBackground,ae as SlideLayoutCollection,O as SlideLayoutType,ne as SlideMaster,Y as SlideMasterBackground,se as SlideMasterCollection,pe as SlideScopedCollection,de as Table,Se as TableCell,Oe as TableCellCollection,Ee as TableColumn,ye as TableColumnCollection,fe as TableRow,ue as TableRowCollection,A as TableStyle,Pe as TableStyleSettings,ee as Tag,re as TagCollection,B as TextFrame,D as TextRange,f as TextVerticalAlignment,z as ThemeColor,te as ThemeColorScheme,qe as TrackedObjects,t as isPptxEditorError};
@@ -3,7 +3,7 @@ Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
3
3
  Licensed under the EigenPal Pro Evaluation License 1.0. See LICENSE.md in this package.
4
4
  Production use requires a commercial agreement: licensing@eigenpal.com
5
5
  */
6
- import { AutomationHandle, AutomationRef, AutomationOperation, AutomationValue, AutomationItemKey, AutomationCellAddress, AutomationTextSpan, AutomationParagraphWrite, AutomationBackgroundWrite, AutomationBackgroundRead, AutomationCustomXmlPartRead, AutomationTableCellFormatRead, AutomationCellBorderSide, AutomationHost, AutomationCapabilities } from '@pptx-editor.dev/core/automation';
6
+ import { AutomationHandle, AutomationRef, AutomationOperation, AutomationValue, AutomationItemKey, AutomationCellAddress, AutomationTextSpan, AutomationParagraphWrite, AutomationBackgroundWrite, AutomationBackgroundRead, AutomationCustomXmlPartRead, AutomationTableCellFormatRead, AutomationCellBorderSide, ShapeFormatProperties, ShapeFormatPatch, AutomationHost, AutomationCapabilities } from '@pptx-editor.dev/core/automation';
7
7
  import { ImageRasterizer } from '@pptx-editor.dev/core/editor';
8
8
  import { FontSource } from '@pptx-editor.dev/core/layout';
9
9
 
@@ -499,6 +499,15 @@ declare enum ShapeLineDashStyle {
499
499
  systemDot = "SystemDot",
500
500
  systemDashDot = "SystemDashDot"
501
501
  }
502
+ /** SDK extension for line endpoint styles. @public */
503
+ declare enum ShapeArrowheadStyle {
504
+ none = "None",
505
+ triangle = "Triangle",
506
+ open = "Open",
507
+ stealth = "Stealth",
508
+ oval = "Oval",
509
+ diamond = "Diamond"
510
+ }
502
511
  /** @public */
503
512
  declare enum ShapeLineStyle {
504
513
  single = "Single",
@@ -956,6 +965,12 @@ declare class ShapeLineFormat extends ModelObject {
956
965
  #private;
957
966
  /** @internal */
958
967
  constructor(context: RequestContext, path: ObjectPath, shape: ObjectPath);
968
+ /** SDK extension: the start arrowhead style. A write keeps its dimensions and extension content. */
969
+ get beginArrowheadStyle(): ShapeArrowheadStyle | `${ShapeArrowheadStyle}`;
970
+ set beginArrowheadStyle(value: ShapeArrowheadStyle | `${ShapeArrowheadStyle}`);
971
+ /** SDK extension: the end arrowhead style. `None` hides the arrowhead and keeps its dimensions. */
972
+ get endArrowheadStyle(): ShapeArrowheadStyle | `${ShapeArrowheadStyle}`;
973
+ set endArrowheadStyle(value: ShapeArrowheadStyle | `${ShapeArrowheadStyle}`);
959
974
  /** The line color as `#RRGGBB`, or an empty string when it has none. */
960
975
  get color(): string;
961
976
  set color(value: string);
@@ -2629,6 +2644,10 @@ declare class Shape extends ModelObject {
2629
2644
  * ```
2630
2645
  */
2631
2646
  getImageAsBase64(options?: ShapeGetImageOptions): ClientResult<string>;
2647
+ /** Read detailed formatting. Read the result after `context.sync()`. */
2648
+ getFormat(): ClientResult<ShapeFormatProperties>;
2649
+ /** Patch existing formatting. Omitted fields retain their source XML. */
2650
+ patchFormat(patch: ShapeFormatPatch): void;
2632
2651
  /** The slide the shape is on; `ItemNotFound` at the sync for a layout or master shape. */
2633
2652
  getParentSlide(): Slide;
2634
2653
  /** The slide the shape is on, or a null object. */
@@ -3397,5 +3416,5 @@ interface CreateServerOptions {
3397
3416
  readonly rasterize?: ImageRasterizer;
3398
3417
  }
3399
3418
 
3400
- export { Binding as B, DocumentProperties as D, GeometricShapeType as G, Hyperlink as H, InsertSlideFormatting as I, Margins as M, PageSetup as N, ParagraphFormat as O, ParagraphHorizontalAlignment as Q, PlaceholderFormat as R, PlaceholderType as S, PptxEditorError as U, Presentation as Y, RequestContext as _, Shape as a1, ShapeAutoSize as a3, ShapeCollection as a4, ShapeFill as a5, ShapeFillType as a6, ShapeFont as a7, ShapeFontUnderlineStyle as a8, ShapeGetImageFormatType as a9, SlideLayoutCollection as aA, SlideLayoutType as aB, SlideMaster as aC, SlideMasterBackground as aD, SlideMasterCollection as aE, SlideScopedCollection as aF, Table as aG, TableCell as aI, TableCellCollection as aK, TableColumn as aO, TableColumnCollection as aP, TableRow as aS, TableRowCollection as aT, TableStyle as aV, TableStyleSettings as aW, Tag as aX, TagCollection as aY, TextFrame as aZ, TextRange as a_, ShapeGroup as ab, ShapeLineDashStyle as ac, ShapeLineFormat as ad, ShapeLineStyle as ae, ShapeScopedCollection as af, ShapeType as ag, ShapeZOrder as ah, Slide as ai, SlideBackground as aj, SlideBackgroundFill as ak, SlideBackgroundFillType as al, SlideBackgroundGradientFill as am, SlideBackgroundGradientFillType as ao, SlideBackgroundPatternFill as ap, SlideBackgroundPatternFillType as ar, SlideBackgroundPictureOrTextureFill as as, SlideBackgroundSolidFill as au, SlideCollection as aw, SlideLayout as ay, SlideLayoutBackground as az, Adjustments as b, TextVerticalAlignment as b0, ThemeColor as b1, ThemeColorScheme as b2, TrackedObjects as b3, isPptxEditorError as b4, Application as c, BindingCollection as d, BindingType as e, Border as f, Borders as h, BulletFormat as i, BulletStyle as j, BulletType as k, ClientObject as l, ClientResult as n, ConnectorType as o, CustomProperty as p, CustomPropertyCollection as q, CustomXmlPart as r, CustomXmlPartCollection as s, CustomXmlPartScopedCollection as t, DocumentPropertyType as u, HyperlinkCollection as x, HyperlinkScopedCollection as y, HyperlinkType as z };
3401
- export type { RequestContextDebugInfo as $, AddSlideOptions as A, CreateServerOptions as C, InsertSlideOptions as E, FillProperties as F, LoadPropertyOptions as J, LoadQueryOptions as K, LoadOption as L, PptxEditorRuntime as P, PptxEditorDebugInfo as T, PptxEditorErrorCode as V, PptxEditorErrorInit as W, PptxEditorInnerError as X, PresentationCapabilities as Z, PptxEditorServerRuntime as a, TextRun as a$, RunCallback as a0, ShapeAddOptions as a2, TableAddOptions as aH, TableCellBorders as aJ, TableCellMargins as aL, TableCellProperties as aM, TableClearOptions as aN, TableColumnProperties as aQ, TableMergedAreaProperties as aR, TableRowProperties as aU, ShapeGetImageOptions as aa, SlideBackgroundGradientFillOptions as an, SlideBackgroundPatternFillOptions as aq, SlideBackgroundPictureOrTextureFillOptions as at, SlideBackgroundSolidFillOptions as av, SlideGetImageOptions as ax, BorderProperties as g, ClientRequestContext as m, FontProperties as v, HyperlinkAddOptions as w };
3419
+ export { Binding as B, DocumentProperties as D, GeometricShapeType as G, Hyperlink as H, InsertSlideFormatting as I, Margins as M, PageSetup as N, ParagraphFormat as O, ParagraphHorizontalAlignment as Q, PlaceholderFormat as R, PlaceholderType as S, PptxEditorError as U, Presentation as Y, RequestContext as _, TextRange as a$, Shape as a1, ShapeArrowheadStyle as a3, ShapeAutoSize as a4, ShapeCollection as a5, ShapeFill as a6, ShapeFillType as a7, ShapeFont as a8, ShapeFontUnderlineStyle as a9, SlideLayoutBackground as aA, SlideLayoutCollection as aB, SlideLayoutType as aC, SlideMaster as aD, SlideMasterBackground as aE, SlideMasterCollection as aF, SlideScopedCollection as aG, Table as aH, TableCell as aJ, TableCellCollection as aL, TableColumn as aP, TableColumnCollection as aQ, TableRow as aT, TableRowCollection as aU, TableStyle as aW, TableStyleSettings as aX, Tag as aY, TagCollection as aZ, TextFrame as a_, ShapeGetImageFormatType as aa, ShapeGroup as ac, ShapeLineDashStyle as ad, ShapeLineFormat as ae, ShapeLineStyle as af, ShapeScopedCollection as ag, ShapeType as ah, ShapeZOrder as ai, Slide as aj, SlideBackground as ak, SlideBackgroundFill as al, SlideBackgroundFillType as am, SlideBackgroundGradientFill as an, SlideBackgroundGradientFillType as ap, SlideBackgroundPatternFill as aq, SlideBackgroundPatternFillType as as, SlideBackgroundPictureOrTextureFill as at, SlideBackgroundSolidFill as av, SlideCollection as ax, SlideLayout as az, Adjustments as b, TextVerticalAlignment as b1, ThemeColor as b2, ThemeColorScheme as b3, TrackedObjects as b4, isPptxEditorError as b5, Application as c, BindingCollection as d, BindingType as e, Border as f, Borders as h, BulletFormat as i, BulletStyle as j, BulletType as k, ClientObject as l, ClientResult as n, ConnectorType as o, CustomProperty as p, CustomPropertyCollection as q, CustomXmlPart as r, CustomXmlPartCollection as s, CustomXmlPartScopedCollection as t, DocumentPropertyType as u, HyperlinkCollection as x, HyperlinkScopedCollection as y, HyperlinkType as z };
3420
+ export type { RequestContextDebugInfo as $, AddSlideOptions as A, CreateServerOptions as C, InsertSlideOptions as E, FillProperties as F, LoadPropertyOptions as J, LoadQueryOptions as K, LoadOption as L, PptxEditorRuntime as P, PptxEditorDebugInfo as T, PptxEditorErrorCode as V, PptxEditorErrorInit as W, PptxEditorInnerError as X, PresentationCapabilities as Z, PptxEditorServerRuntime as a, RunCallback as a0, ShapeAddOptions as a2, TableAddOptions as aI, TableCellBorders as aK, TableCellMargins as aM, TableCellProperties as aN, TableClearOptions as aO, TableColumnProperties as aR, TableMergedAreaProperties as aS, TableRowProperties as aV, ShapeGetImageOptions as ab, SlideBackgroundGradientFillOptions as ao, SlideBackgroundPatternFillOptions as ar, SlideBackgroundPictureOrTextureFillOptions as au, SlideBackgroundSolidFillOptions as aw, SlideGetImageOptions as ay, TextRun as b0, BorderProperties as g, ClientRequestContext as m, FontProperties as v, HyperlinkAddOptions as w };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptx-editor.dev/editor-api",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
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.3.0"
48
+ "@pptx-editor.dev/core": "~0.4.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@pptx-editor.dev/core": "workspace:*"