pptx-ts 3.7.0 → 4.0.1

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 (136) hide show
  1. package/README.md +116 -269
  2. package/dist/autopage-odPz7zZO.js +536 -0
  3. package/dist/autopage-odPz7zZO.js.map +1 -0
  4. package/dist/binary-string-CKVAYI3M.js +24 -0
  5. package/dist/binary-string-CKVAYI3M.js.map +1 -0
  6. package/dist/body-insets-Dw_BeWD_.js +54 -0
  7. package/dist/body-insets-Dw_BeWD_.js.map +1 -0
  8. package/dist/browser.d.ts +29 -9
  9. package/dist/browser.d.ts.map +1 -1
  10. package/dist/browser.js +41 -14
  11. package/dist/browser.js.map +1 -1
  12. package/dist/clip-Bl01BPcN.d.ts +67 -0
  13. package/dist/clip-Bl01BPcN.d.ts.map +1 -0
  14. package/dist/diagnostics-D8ot4Ei7.d.ts +244 -0
  15. package/dist/diagnostics-D8ot4Ei7.d.ts.map +1 -0
  16. package/dist/embedded-fonts-DarT9aoa.d.ts +20 -0
  17. package/dist/embedded-fonts-DarT9aoa.d.ts.map +1 -0
  18. package/dist/entry-compose-DCnvBZz2.d.ts +1046 -0
  19. package/dist/entry-compose-DCnvBZz2.d.ts.map +1 -0
  20. package/dist/{enums-CvRYniUA.d.ts → enums-BUKTUB6V.d.ts} +21 -13
  21. package/dist/{enums-CvRYniUA.d.ts.map → enums-BUKTUB6V.d.ts.map} +1 -1
  22. package/dist/{errors-Bvln0H-7.js → errors-C4oENPcu.js} +92 -2
  23. package/dist/errors-C4oENPcu.js.map +1 -0
  24. package/dist/families.d.ts +260 -0
  25. package/dist/families.d.ts.map +1 -0
  26. package/dist/families.js +57 -0
  27. package/dist/families.js.map +1 -0
  28. package/dist/{fit-BKs0zxMI.js → fit-Cb7naFj6.js} +249 -167
  29. package/dist/fit-Cb7naFj6.js.map +1 -0
  30. package/dist/font-metrics-v5fn7s7e.d.ts +613 -0
  31. package/dist/font-metrics-v5fn7s7e.d.ts.map +1 -0
  32. package/dist/grid-DikTjFey.js +187 -0
  33. package/dist/grid-DikTjFey.js.map +1 -0
  34. package/dist/{html-dom-B0I0QSbU.js → html-dom-Iuog2wdK.js} +121 -91
  35. package/dist/html-dom-Iuog2wdK.js.map +1 -0
  36. package/dist/html.d.ts +6 -6
  37. package/dist/html.d.ts.map +1 -1
  38. package/dist/html.js +7 -6
  39. package/dist/html.js.map +1 -1
  40. package/dist/image-size-CvN2iCA4.js +1611 -0
  41. package/dist/image-size-CvN2iCA4.js.map +1 -0
  42. package/dist/index.d.ts +24 -10
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +31 -11
  45. package/dist/index.js.map +1 -1
  46. package/dist/inspect.d.ts +40 -31
  47. package/dist/inspect.d.ts.map +1 -1
  48. package/dist/inspect.js +40 -48
  49. package/dist/inspect.js.map +1 -1
  50. package/dist/math.d.ts +7 -5
  51. package/dist/math.d.ts.map +1 -1
  52. package/dist/math.js +16 -7
  53. package/dist/math.js.map +1 -1
  54. package/dist/measure.d.ts +12 -225
  55. package/dist/measure.d.ts.map +1 -1
  56. package/dist/measure.js +3 -3
  57. package/dist/node.d.ts +22 -8
  58. package/dist/node.d.ts.map +1 -1
  59. package/dist/node.js +27 -7
  60. package/dist/node.js.map +1 -1
  61. package/dist/notes-Dh12JAbn.js +3264 -0
  62. package/dist/notes-Dh12JAbn.js.map +1 -0
  63. package/dist/options-internal-WqgMf720.js +43 -0
  64. package/dist/options-internal-WqgMf720.js.map +1 -0
  65. package/dist/{package-CaOLXSNi.d.ts → package-J49Ck6S2.d.ts} +27 -12
  66. package/dist/package-J49Ck6S2.d.ts.map +1 -0
  67. package/dist/playbtn-CUqQdoDf.js +22 -0
  68. package/dist/playbtn-CUqQdoDf.js.map +1 -0
  69. package/dist/{slide-ZqAdVvHV.d.ts → pres-C6qgOFAa.d.ts} +1021 -1423
  70. package/dist/pres-C6qgOFAa.d.ts.map +1 -0
  71. package/dist/{presentation-DrJtj3-C.js → presentation-DGYlAWhl.js} +3208 -2727
  72. package/dist/presentation-DGYlAWhl.js.map +1 -0
  73. package/dist/{presentation-types-CDjScsev.d.ts → presentation-types-8jLQHI4M.d.ts} +1070 -683
  74. package/dist/presentation-types-8jLQHI4M.d.ts.map +1 -0
  75. package/dist/read.d.ts +9 -9
  76. package/dist/read.d.ts.map +1 -1
  77. package/dist/read.js +4 -4
  78. package/dist/script.d.ts +80 -66
  79. package/dist/script.d.ts.map +1 -1
  80. package/dist/script.js +2399 -1139
  81. package/dist/script.js.map +1 -1
  82. package/dist/{shapes-BemroU-z.js → shapes-re0KyQk_.js} +2807 -1609
  83. package/dist/shapes-re0KyQk_.js.map +1 -0
  84. package/dist/slide-Dx2ZeVZ6.d.ts +1256 -0
  85. package/dist/slide-Dx2ZeVZ6.d.ts.map +1 -0
  86. package/dist/slide-size-BalTjFuv.js +88 -0
  87. package/dist/slide-size-BalTjFuv.js.map +1 -0
  88. package/dist/{units-internal-Dg95w_YD.js → table-cell-margins-EVg0EwxT.js} +235 -273
  89. package/dist/table-cell-margins-EVg0EwxT.js.map +1 -0
  90. package/dist/table-dom-BTDP3lEP.js +21 -0
  91. package/dist/table-dom-BTDP3lEP.js.map +1 -0
  92. package/dist/text-anchor-CrYXAfUu.js +176 -0
  93. package/dist/text-anchor-CrYXAfUu.js.map +1 -0
  94. package/dist/text-sN64Otf_.js +3980 -0
  95. package/dist/text-sN64Otf_.js.map +1 -0
  96. package/dist/transition-speed-kUEWDWTx.js +14 -0
  97. package/dist/transition-speed-kUEWDWTx.js.map +1 -0
  98. package/dist/units-internal-XJlf-hOl.js +649 -0
  99. package/dist/units-internal-XJlf-hOl.js.map +1 -0
  100. package/dist/zip-C0leZZMj.d.ts +67 -0
  101. package/dist/zip-C0leZZMj.d.ts.map +1 -0
  102. package/dist/zip-CKd8ihcf.js +177 -0
  103. package/dist/zip-CKd8ihcf.js.map +1 -0
  104. package/dist/zip.d.ts +3 -68
  105. package/dist/zip.js +3 -163
  106. package/dist/zoom-DPUHh85d.js +8865 -0
  107. package/dist/zoom-DPUHh85d.js.map +1 -0
  108. package/package.json +106 -19
  109. package/skills/ts-pptx-upstream/SKILL.md +58 -57
  110. package/dist/autopage-DkjYZUFD.js +0 -423
  111. package/dist/autopage-DkjYZUFD.js.map +0 -1
  112. package/dist/diagnostics-DfBdDHre.d.ts +0 -829
  113. package/dist/diagnostics-DfBdDHre.d.ts.map +0 -1
  114. package/dist/errors-Bvln0H-7.js.map +0 -1
  115. package/dist/errors-PflMPWBn.d.ts +0 -182
  116. package/dist/errors-PflMPWBn.d.ts.map +0 -1
  117. package/dist/fit-BKs0zxMI.js.map +0 -1
  118. package/dist/html-dom-B0I0QSbU.js.map +0 -1
  119. package/dist/namespaces-BVnNu7sg.js +0 -666
  120. package/dist/namespaces-BVnNu7sg.js.map +0 -1
  121. package/dist/notes-CJFJaG6M.js +0 -1724
  122. package/dist/notes-CJFJaG6M.js.map +0 -1
  123. package/dist/package-CaOLXSNi.d.ts.map +0 -1
  124. package/dist/pres-BcBR3CSM.d.ts +0 -202
  125. package/dist/pres-BcBR3CSM.d.ts.map +0 -1
  126. package/dist/presentation-DrJtj3-C.js.map +0 -1
  127. package/dist/presentation-types-CDjScsev.d.ts.map +0 -1
  128. package/dist/shapes-BemroU-z.js.map +0 -1
  129. package/dist/slide-ZqAdVvHV.d.ts.map +0 -1
  130. package/dist/text-B8SLEaZx.js +0 -11327
  131. package/dist/text-B8SLEaZx.js.map +0 -1
  132. package/dist/units-1kRzYShk.js +0 -231
  133. package/dist/units-1kRzYShk.js.map +0 -1
  134. package/dist/units-internal-Dg95w_YD.js.map +0 -1
  135. package/dist/zip.d.ts.map +0 -1
  136. package/dist/zip.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-compose-DCnvBZz2.d.ts","names":[],"sources":["../src/runtime/types.ts","../src/units.ts","../src/gen/oxml/el.ts","../src/gen/slide/objects/shared.ts","../src/gen/opc/content-types.ts","../src/package/parts/shared.ts","../src/slide.ts","../src/families/shared.ts","../src/presentation.ts","../src/gen/slide/objects/text.ts","../src/gen/slide/objects/image.ts","../src/families/core.ts","../src/entry-compose.ts"],"mappings":"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"}
@@ -255,12 +255,30 @@ declare enum AlignH {
255
255
  right = "right",
256
256
  justify = "justify"
257
257
  }
258
+ /**
259
+ * @deprecated The enum form of `VAlign`, which no option actually takes. Use the `VAlign`
260
+ * string union (`'top' | 'middle' | 'bottom'`) or, for a text body's own anchoring,
261
+ * {@link TextAnchor}. Unlike its sibling {@link AlignH} — which `TextPropsOptions.align`
262
+ * really is typed as — nothing in the library reads this, so it is a third spelling of a
263
+ * two-spelling fact. It will be removed in the next major.
264
+ */
258
265
  declare enum AlignV {
259
266
  top = "top",
260
267
  middle = "middle",
261
268
  bottom = "bottom"
262
269
  }
263
- type SHAPE_NAME = 'accentBorderCallout1' | 'accentBorderCallout2' | 'accentBorderCallout3' | 'accentCallout1' | 'accentCallout2' | 'accentCallout3' | 'actionButtonBackPrevious' | 'actionButtonBeginning' | 'actionButtonBlank' | 'actionButtonDocument' | 'actionButtonEnd' | 'actionButtonForwardNext' | 'actionButtonHelp' | 'actionButtonHome' | 'actionButtonInformation' | 'actionButtonMovie' | 'actionButtonReturn' | 'actionButtonSound' | 'arc' | 'bentArrow' | 'bentUpArrow' | 'bevel' | 'blockArc' | 'borderCallout1' | 'borderCallout2' | 'borderCallout3' | 'bracePair' | 'bracketPair' | 'callout1' | 'callout2' | 'callout3' | 'can' | 'chartPlus' | 'chartStar' | 'chartX' | 'chevron' | 'chord' | 'circularArrow' | 'cloud' | 'cloudCallout' | 'corner' | 'cornerTabs' | 'cube' | 'curvedDownArrow' | 'curvedLeftArrow' | 'curvedRightArrow' | 'curvedUpArrow' | 'custGeom' | 'decagon' | 'diagStripe' | 'diamond' | 'dodecagon' | 'donut' | 'doubleWave' | 'downArrow' | 'downArrowCallout' | 'ellipse' | 'ellipseRibbon' | 'ellipseRibbon2' | 'flowChartAlternateProcess' | 'flowChartCollate' | 'flowChartConnector' | 'flowChartDecision' | 'flowChartDelay' | 'flowChartDisplay' | 'flowChartDocument' | 'flowChartExtract' | 'flowChartInputOutput' | 'flowChartInternalStorage' | 'flowChartMagneticDisk' | 'flowChartMagneticDrum' | 'flowChartMagneticTape' | 'flowChartManualInput' | 'flowChartManualOperation' | 'flowChartMerge' | 'flowChartMultidocument' | 'flowChartOfflineStorage' | 'flowChartOffpageConnector' | 'flowChartOnlineStorage' | 'flowChartOr' | 'flowChartPredefinedProcess' | 'flowChartPreparation' | 'flowChartProcess' | 'flowChartPunchedCard' | 'flowChartPunchedTape' | 'flowChartSort' | 'flowChartSummingJunction' | 'flowChartTerminator' | 'foldedCorner' | 'frame' | 'funnel' | 'gear6' | 'gear9' | 'halfFrame' | 'heart' | 'heptagon' | 'hexagon' | 'homePlate' | 'horizontalScroll' | 'irregularSeal1' | 'irregularSeal2' | 'leftArrow' | 'leftArrowCallout' | 'leftBrace' | 'leftBracket' | 'leftCircularArrow' | 'leftRightArrow' | 'leftRightArrowCallout' | 'leftRightCircularArrow' | 'leftRightRibbon' | 'leftRightUpArrow' | 'leftUpArrow' | 'lightningBolt' | 'line' | 'lineInv' | 'mathDivide' | 'mathEqual' | 'mathMinus' | 'mathMultiply' | 'mathNotEqual' | 'mathPlus' | 'moon' | 'noSmoking' | 'nonIsoscelesTrapezoid' | 'notchedRightArrow' | 'octagon' | 'parallelogram' | 'pentagon' | 'pie' | 'pieWedge' | 'plaque' | 'plaqueTabs' | 'plus' | 'quadArrow' | 'quadArrowCallout' | 'rect' | 'ribbon' | 'ribbon2' | 'rightArrow' | 'rightArrowCallout' | 'rightBrace' | 'rightBracket' | 'round1Rect' | 'round2DiagRect' | 'round2SameRect' | 'roundRect' | 'rtTriangle' | 'smileyFace' | 'snip1Rect' | 'snip2DiagRect' | 'snip2SameRect' | 'snipRoundRect' | 'squareTabs' | 'star10' | 'star12' | 'star16' | 'star24' | 'star32' | 'star4' | 'star5' | 'star6' | 'star7' | 'star8' | 'stripedRightArrow' | 'sun' | 'swooshArrow' | 'teardrop' | 'trapezoid' | 'triangle' | 'upArrow' | 'upArrowCallout' | 'upDownArrow' | 'upDownArrowCallout' | 'uturnArrow' | 'verticalScroll' | 'wave' | 'wedgeEllipseCallout' | 'wedgeRectCallout' | 'wedgeRoundRectCallout' | CONNECTOR_PRESET_NAME;
270
+ /**
271
+ * Every shape geometry name `addShape` accepts: the friendly {@link ShapeType} names plus the
272
+ * connector presets that enum does not surface.
273
+ *
274
+ * Derived from `ShapeType` rather than spelled out, for the reason `CHART_NAME`, `SCHEME_COLORS`,
275
+ * `PLACEHOLDER_TYPE` and `CONNECTOR_PRESET_NAME` are each derived from their runtime source: the
276
+ * two cannot drift. The hand-written union this replaced had all 179 members in enum order, and
277
+ * the runtime `VALID_SHAPE_PRESETS` set was already built from `Object.values(ShapeType)`, so the
278
+ * type and the set it is supposed to describe could disagree on exactly the half nothing checked.
279
+ * The union this produces is character-for-character the one it replaces.
280
+ */
281
+ type SHAPE_NAME = `${ShapeType}` | CONNECTOR_PRESET_NAME;
264
282
  /**
265
283
  * Valid ECMA-376 `ST_ShapeType` presets that are not surfaced with a friendly
266
284
  * `ShapeType` name. They are still legal geometries PowerPoint renders, so the
@@ -326,16 +344,6 @@ declare enum SlideObjectType {
326
344
  notes = "notes",
327
345
  zoom = "zoom"
328
346
  }
329
- /**
330
- * Maps a friendly `ConnectorType` to its OOXML connector preset *family*. `straight`
331
- * has a single fixed preset; `elbow` and `curved` select a member by bend count
332
- * (`bentConnector{3,4,5}` / `curvedConnector{3,4,5}`) — see `connectorPresetFor`.
333
- */
334
- declare const CONNECTOR_PRESETS: {
335
- readonly straight: 'straightConnector1';
336
- readonly elbow: 'bentConnector';
337
- readonly curved: 'curvedConnector';
338
- };
339
347
  /**
340
348
  * Resolve the concrete connector preset geometry name for a `type` + bend count.
341
349
  * `straight` ignores `bends` (it has no adjustable jog). For `elbow` / `curved`, the
@@ -459,5 +467,5 @@ declare enum TableStyle {
459
467
  DARK_STYLE_2_ACCENT_5_ACCENT_6 = "{46F890A9-2807-4EBB-B81D-B2AA78EC7F39}"
460
468
  }
461
469
  //#endregion
462
- export { isChartExType as C, connectorPresetFor as S, TextAnchor as _, CONNECTOR_PRESETS as a, ZIP_OUTPUT_TYPE as b, OutputType as c, SCHEME_COLORS as d, SHAPE_NAME as f, TableStyle as g, SlideObjectType as h, CHART_NAME as i, PLACEHOLDER_TYPE as l, ShapeType as m, AlignV as n, CONNECTOR_PRESET_NAME as o, SchemeColor as p, BulletType as r, ChartType as s, AlignH as t, PlaceholderType as u, VALID_SHAPE_PRESETS as v, isChartType as w, asChartType as x, WRITE_OUTPUT_TYPE as y };
463
- //# sourceMappingURL=enums-CvRYniUA.d.ts.map
470
+ export { isChartType as C, isChartExType as S, VALID_SHAPE_PRESETS as _, CONNECTOR_PRESET_NAME as a, asChartType as b, PLACEHOLDER_TYPE as c, SHAPE_NAME as d, SchemeColor as f, TextAnchor as g, TableStyle as h, CHART_NAME as i, PlaceholderType as l, SlideObjectType as m, AlignV as n, ChartType as o, ShapeType as p, BulletType as r, OutputType as s, AlignH as t, SCHEME_COLORS as u, WRITE_OUTPUT_TYPE as v, connectorPresetFor as x, ZIP_OUTPUT_TYPE as y };
471
+ //# sourceMappingURL=enums-BUKTUB6V.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums-CvRYniUA.d.ts","names":[],"sources":["../src/enums.ts"],"mappings":";;;;;;;;;;KAUY,qBAAqB;KACrB,oBAAoB;;;;;;KAMpB,gBAAgB;;;;;KAKhB,mBAAmB;aAEnB;EACX;EACA;EACA;;aAIW;EACX;EACA;EACA;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;;KAGW,8iGAoLT;;;;;;cAOG;;;;;;;;;KAoBM,gCAAgC;;;;;;;;;cAU/B,qBAAqB;;;;;;;;iBAYlB,YAAY,MAAM,aAAa;;;;;;;;;;iBAgB/B,YAAY,gBAAgB,QAAQ;;;;;;iBA4BpC,cAAc;aAIlB;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;cAQY;WACF;WACH;WACC;;;;;;;;;;;iBAYO,mBAAmB,uCAAuC,gBAAgB;aAI9E;EACX;EACA;EACA;EACA;EACA;EACA;;;;;;KAMW,sBAAsB;;;;;aAMtB;EACX;EACA;EACA;EACA;;;;;;;;;;;;aAaW;EAEX;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;;EAEA;;EAEA;;EAEA"}
1
+ {"version":3,"file":"enums-BUKTUB6V.d.ts","names":[],"sources":["../src/enums.ts"],"mappings":";;;;;;;;;;KAUY,qBAAqB;KACrB,oBAAoB;;;;;;KAMpB,gBAAgB;;;;;KAKhB,mBAAmB;aAEnB;EACX;EACA;EACA;;aAIW;EACX;EACA;EACA;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;aAEW;EACX;EACA;EACA;EACA;;;;;;;;;aASW;EACX;EACA;EACA;;;;;;;;;;;;;KAcW,gBAAgB,cAAc;;;;;;cAOpC;;;;;;;;;KAoBM,gCAAgC;;;;;;;;;cAU/B,qBAAqB;;;;;;;;iBAYlB,YAAY,MAAM,aAAa;;;;;;;;;;iBAgB/B,YAAY,gBAAgB,QAAQ;;;;;;iBA4BpC,cAAc;aAIlB;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;iBA4Be,mBAAmB,uCAAuC,gBAAgB;aAI9E;EACX;EACA;EACA;EACA;EACA;EACA;;;;;;KAMW,sBAAsB;;;;;aAMtB;EACX;EACA;EACA;EACA;;;;;;;;;;;;aAaW;EAEX;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;;EAEA;;EAEA;;EAEA"}
@@ -1,3 +1,93 @@
1
+ //#region src/diagnostics.ts
2
+ /** Prefix stamped on every warning so consumers can attribute console noise to this library. */
3
+ const WARN_PREFIX = "ts-pptx";
4
+ /** The default handler: one `console.warn` line per diagnostic, prefixed. */
5
+ const consoleHandler = (diagnostic) => {
6
+ console.warn(`${WARN_PREFIX}: ${diagnostic.message}`);
7
+ };
8
+ let handler = consoleHandler;
9
+ /**
10
+ * Route every library diagnostic to `handler`, or pass `null` to restore the default
11
+ * (one prefixed `console.warn` per diagnostic).
12
+ *
13
+ * This is process-global rather than per-presentation, deliberately: the emitting code is a tree
14
+ * of free functions in `gen/**` with no presentation in scope, and threading a handler through
15
+ * every signature would be a far larger and worse change than the problem warrants. The practical
16
+ * consequence is that a process building several decks concurrently cannot attribute a diagnostic
17
+ * to one of them. If that matters, correlate on `code`, or build the decks one at a time with the
18
+ * handler set around each build: a handler set around concurrent builds sees all of their
19
+ * diagnostics.
20
+ *
21
+ * A throwing handler propagates out of whatever library call emitted the diagnostic, which is the
22
+ * supported way to make a specific condition fatal:
23
+ *
24
+ * ```ts
25
+ * setDiagnosticHandler((d) => {
26
+ * if (d.code === 'coord/bare-number-is-inches') throw new Error(d.message)
27
+ * })
28
+ * ```
29
+ * @param next - the receiver, or `null` to restore the console default
30
+ */
31
+ function setDiagnosticHandler(next) {
32
+ handler = next ?? consoleHandler;
33
+ }
34
+ /**
35
+ * Emit a library diagnostic.
36
+ * @param code - the stable condition identifier ({@link DiagnosticCode})
37
+ * @param message - explanation, without a `ts-pptx:` prefix (the default handler adds one)
38
+ * @param detail - optional structured context
39
+ */
40
+ function warn(code, message, detail) {
41
+ handler(detail === void 0 ? {
42
+ code,
43
+ message
44
+ } : {
45
+ code,
46
+ message,
47
+ detail
48
+ });
49
+ }
50
+ const seen = /* @__PURE__ */ new Set();
51
+ /**
52
+ * Emit a library diagnostic at most once per distinct code+message.
53
+ *
54
+ * "Once" is **process-global**, the same scope {@link setDiagnosticHandler} has and for the
55
+ * same reason: the emitting code is a tree of free functions in `gen/**` with no presentation
56
+ * in scope. The consequence is different, though, and worth stating on its own — a process that
57
+ * builds several decks does not get a second report of a condition an earlier deck already
58
+ * tripped, so the second deck's diagnostics are incomplete rather than merely unattributed.
59
+ * {@link resetDiagnosticState} is how a host that cares gets each build a clean slate.
60
+ *
61
+ * @param code - the stable condition identifier ({@link DiagnosticCode})
62
+ * @param message - explanation (see {@link warn})
63
+ * @param detail - optional structured context
64
+ */
65
+ function warnOnce(code, message, detail) {
66
+ const key = `${code}\0${message}`;
67
+ if (seen.has(key)) return;
68
+ seen.add(key);
69
+ warn(code, message, detail);
70
+ }
71
+ /**
72
+ * Clear the `warnOnce` dedupe set, so a condition already reported reports again. (`warnOnce` is
73
+ * internal and carries no page of its own, so it is named rather than linked.)
74
+ *
75
+ * Call it between builds in a host that builds more than one deck per process and wants each
76
+ * build's diagnostics complete. Without it, deck two is silent about anything deck one already
77
+ * warned for, which reads as "no problems found" rather than as "already mentioned".
78
+ *
79
+ * It also bounds the set. Most `warnOnce` messages interpolate the offending value, so a server
80
+ * building decks from user input accumulates one entry per distinct bad value with no way to
81
+ * release them.
82
+ *
83
+ * This does not touch the handler — {@link setDiagnosticHandler} owns that, and the two are
84
+ * reset independently on purpose: a host usually installs its handler once and wants it to
85
+ * survive.
86
+ */
87
+ function resetDiagnosticState() {
88
+ seen.clear();
89
+ }
90
+ //#endregion
1
91
  //#region src/errors.ts
2
92
  /**
3
93
  * Base class for every error ts-pptx throws.
@@ -107,6 +197,6 @@ var InternalError = class extends TsPptxError {
107
197
  }
108
198
  };
109
199
  //#endregion
110
- export { TsPptxError as a, PackageReadError as i, InvalidOptionError as n, UnsupportedFeatureError as o, MediaError as r, InternalError as t };
200
+ export { TsPptxError as a, setDiagnosticHandler as c, PackageReadError as i, warn as l, InvalidOptionError as n, UnsupportedFeatureError as o, MediaError as r, resetDiagnosticState as s, InternalError as t, warnOnce as u };
111
201
 
112
- //# sourceMappingURL=errors-Bvln0H-7.js.map
202
+ //# sourceMappingURL=errors-C4oENPcu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-C4oENPcu.js","names":[],"sources":["../src/diagnostics.ts","../src/errors.ts"],"sourcesContent":["/**\n * Central sink for library diagnostics.\n *\n * Every user-facing warning is routed through {@link warn} / {@link warnOnce} rather than calling\n * `console.warn` directly, so there is one place to apply a consistent prefix and one place a\n * consumer can take over — see {@link setDiagnosticHandler}. This module has no *runtime* imports\n * so it can be used from anywhere without risking an import cycle; `codes.ts` is types only and is\n * erased at compile time, so it does not cost that property.\n *\n * **A diagnostic's `code` is API; its `message` is not.** The code is a stable identifier a\n * consumer may branch on (`if (d.code === 'chart/non-finite-value')`); the wording behind it is\n * free to improve in any release. The vocabulary lives in `codes.ts` and is shared with the thrown\n * surface (`errors.ts`), so a condition that can both warn and throw reads the same either way.\n */\n\nimport type { DiagnosticCode } from './codes.js'\n\nexport type { DiagnosticCode }\n\n/** One diagnostic emitted by the library. */\nexport interface Diagnostic {\n\t/** Stable condition identifier — see {@link DiagnosticCode}. Branch on this, not on the text. */\n\treadonly code: DiagnosticCode\n\t/** Human-readable explanation. Free to change in any release; do not parse it. */\n\treadonly message: string\n\t/**\n\t * Structured context for the condition, when a site has any to give.\n\t *\n\t * Every rejection of an `ST_` enum value populates it: `checkEnumOrWarn` (`ooxml/check-enum.ts`)\n\t * carries `received` — the value the caller passed — and `valid`, the whole legal list, plus\n\t * whatever the call site adds. That reaches a handler for a line dash type, a table cell's 3-D\n\t * preset and a table's horizontal overflow, among others. Nothing else populates it yet, so a\n\t * handler must still treat the field as optional and must not assume a particular key is there\n\t * for a given code.\n\t */\n\treadonly detail?: Readonly<Record<string, unknown>>\n}\n\n/** Receives every {@link Diagnostic} the library emits. See {@link setDiagnosticHandler}. */\nexport type DiagnosticHandler = (diagnostic: Diagnostic) => void\n\n/** Prefix stamped on every warning so consumers can attribute console noise to this library. */\nconst WARN_PREFIX = 'ts-pptx'\n\n/** The default handler: one `console.warn` line per diagnostic, prefixed. */\nconst consoleHandler: DiagnosticHandler = (diagnostic) => {\n\tconsole.warn(`${WARN_PREFIX}: ${diagnostic.message}`)\n}\n\nlet handler: DiagnosticHandler = consoleHandler\n\n/**\n * Route every library diagnostic to `handler`, or pass `null` to restore the default\n * (one prefixed `console.warn` per diagnostic).\n *\n * This is process-global rather than per-presentation, deliberately: the emitting code is a tree\n * of free functions in `gen/**` with no presentation in scope, and threading a handler through\n * every signature would be a far larger and worse change than the problem warrants. The practical\n * consequence is that a process building several decks concurrently cannot attribute a diagnostic\n * to one of them. If that matters, correlate on `code`, or build the decks one at a time with the\n * handler set around each build: a handler set around concurrent builds sees all of their\n * diagnostics.\n *\n * A throwing handler propagates out of whatever library call emitted the diagnostic, which is the\n * supported way to make a specific condition fatal:\n *\n * ```ts\n * setDiagnosticHandler((d) => {\n * if (d.code === 'coord/bare-number-is-inches') throw new Error(d.message)\n * })\n * ```\n * @param next - the receiver, or `null` to restore the console default\n */\nexport function setDiagnosticHandler(next: DiagnosticHandler | null): void {\n\thandler = next ?? consoleHandler\n}\n\n/**\n * Emit a library diagnostic.\n * @param code - the stable condition identifier ({@link DiagnosticCode})\n * @param message - explanation, without a `ts-pptx:` prefix (the default handler adds one)\n * @param detail - optional structured context\n */\nexport function warn(code: DiagnosticCode, message: string, detail?: Readonly<Record<string, unknown>>): void {\n\thandler(detail === undefined ? { code, message } : { code, message, detail })\n}\n\n// Track diagnostics already emitted so a recurring condition (e.g. the same out-of-range fontSize\n// on every cell of a table) is reported once instead of flooding the handler. Keyed on code AND\n// message, so a *different* offending value under the same code still reports.\nconst seen = new Set<string>()\n\n/**\n * Emit a library diagnostic at most once per distinct code+message.\n *\n * \"Once\" is **process-global**, the same scope {@link setDiagnosticHandler} has and for the\n * same reason: the emitting code is a tree of free functions in `gen/**` with no presentation\n * in scope. The consequence is different, though, and worth stating on its own — a process that\n * builds several decks does not get a second report of a condition an earlier deck already\n * tripped, so the second deck's diagnostics are incomplete rather than merely unattributed.\n * {@link resetDiagnosticState} is how a host that cares gets each build a clean slate.\n *\n * @param code - the stable condition identifier ({@link DiagnosticCode})\n * @param message - explanation (see {@link warn})\n * @param detail - optional structured context\n */\nexport function warnOnce(code: DiagnosticCode, message: string, detail?: Readonly<Record<string, unknown>>): void {\n\tconst key = `${code}\\0${message}`\n\tif (seen.has(key)) return\n\tseen.add(key)\n\twarn(code, message, detail)\n}\n\n/**\n * Clear the `warnOnce` dedupe set, so a condition already reported reports again. (`warnOnce` is\n * internal and carries no page of its own, so it is named rather than linked.)\n *\n * Call it between builds in a host that builds more than one deck per process and wants each\n * build's diagnostics complete. Without it, deck two is silent about anything deck one already\n * warned for, which reads as \"no problems found\" rather than as \"already mentioned\".\n *\n * It also bounds the set. Most `warnOnce` messages interpolate the offending value, so a server\n * building decks from user input accumulates one entry per distinct bad value with no way to\n * release them.\n *\n * This does not touch the handler — {@link setDiagnosticHandler} owns that, and the two are\n * reset independently on purpose: a host usually installs its handler once and wants it to\n * survive.\n */\nexport function resetDiagnosticState(): void {\n\tseen.clear()\n}\n","/**\n * The library's error taxonomy.\n *\n * Every failure ts-pptx raises is a {@link TsPptxError} carrying a stable {@link ErrorCode}, so a\n * consumer can tell *\"you passed a bad coordinate\"* from *\"this font file is corrupt\"* from\n * *\"these bytes are not a package\"* without matching on message substrings. The classes are a\n * deliberately flat, coarse bucket — five of them — and the code carries the specificity. Do not\n * add a class per throw site; add a code.\n *\n * **The class and the code are API. The message is not.** Branch on `instanceof` and on `code`;\n * the wording behind them is free to improve in any release. Every error remains an\n * `instanceof Error`, so existing `catch` blocks keep working.\n *\n * Which class to reach for:\n *\n * | class | the failure is | who fixes it |\n * |---|---|---|\n * | {@link InvalidOptionError} | the caller passed something unusable | the caller's code |\n * | {@link UnsupportedFeatureError} | a well-formed request this build/runtime/shape cannot express | the caller's expectations, or the environment |\n * | {@link PackageReadError} | the input bytes are not a readable package | the input file |\n * | {@link MediaError} | a referenced image/font/AV resource would not load or decode | the resource |\n * | {@link InternalError} | an invariant of the library itself did not hold | ts-pptx (file a bug) |\n *\n * **Which of these is worth reporting upstream.** `InternalError` always is, and says so at\n * runtime. The middle three are worth reporting when the environment disagrees with us:\n * a `PackageReadError` on a file that opens cleanly in PowerPoint, a `MediaError` on an asset every\n * other tool loads, an `UnsupportedFeatureError` for something PowerPoint can plainly express.\n * `InvalidOptionError` is worth reporting only if the deck it refused is one PowerPoint can\n * express. See `skills/ts-pptx-upstream` for how to file one.\n *\n * @see `docs/errors-and-warnings.md` for the consumer-facing contract.\n * @see `codes.ts` for the code vocabulary, which is shared with the diagnostic (warning) surface.\n */\n\nimport type {\n\tErrorCode,\n\tInternalErrorCode,\n\tInvalidOptionErrorCode,\n\tMediaErrorCode,\n\tPackageReadErrorCode,\n\tUnsupportedFeatureErrorCode,\n} from './codes.js'\n\n/** Extra context accepted by every {@link TsPptxError} constructor. */\nexport interface TsPptxErrorOptions extends ErrorOptions {\n\t/**\n\t * Structured context for the condition, when a site has any to give. Mirrors `Diagnostic.detail`\n\t * so the same condition looks the same whether it was warned or thrown.\n\t */\n\treadonly detail?: Readonly<Record<string, unknown>>\n}\n\n/**\n * Base class for every error ts-pptx throws.\n *\n * Catch this to catch anything from the library; narrow with `instanceof` on a subclass, or branch\n * on {@link TsPptxError.code}, to react to something specific. It is never thrown directly — every\n * site picks one of the five subclasses.\n */\nexport class TsPptxError extends Error {\n\t/** Stable condition identifier — see {@link ErrorCode}. Branch on this, not on the text. */\n\treadonly code: ErrorCode\n\n\t/** Structured context for the condition, when the throwing site had any to give. */\n\treadonly detail?: Readonly<Record<string, unknown>>\n\n\t/**\n\t * @param code - the stable condition identifier\n\t * @param message - explanation for a human reading a stack trace; not part of the contract\n\t * @param options - standard `cause`, plus optional structured `detail`\n\t */\n\tconstructor(code: ErrorCode, message: string, options?: TsPptxErrorOptions) {\n\t\tsuper(message, options)\n\t\t// `name` drives how a stack trace and `console.log` label the error, and the default from\n\t\t// `Error` would say \"Error\" for every subclass. Derive it from the constructor so a subclass\n\t\t// never has to remember to set it.\n\t\tthis.name = new.target.name\n\t\tthis.code = code\n\t\tif (options?.detail !== undefined) this.detail = options.detail\n\t}\n}\n\n/**\n * The caller passed something the library cannot use — a non-finite coordinate, an unknown enum\n * value, a required option left out, a value outside its legal range.\n *\n * This is the error behind the project's throw-rather-than-coerce policy: emitting a degenerate\n * result (a zero-size shape, a silently dropped option) hides the mistake, so the library refuses\n * instead. Reaching one means the calling code needs to change.\n */\nexport class InvalidOptionError extends TsPptxError {\n\tdeclare readonly code: InvalidOptionErrorCode\n\tconstructor(code: InvalidOptionErrorCode, message: string, options?: TsPptxErrorOptions) {\n\t\tsuper(code, message, options)\n\t}\n}\n\n/**\n * The request is well-formed but cannot be expressed here: an optional peer dependency is not\n * installed, the runtime lacks a capability, or the shape/feature has no OOXML representation the\n * library emits.\n *\n * Distinct from {@link InvalidOptionError} because the caller did nothing wrong — the answer is\n * \"not here\", not \"not like that\" — and the fix is usually to install something or pick a different\n * approach rather than to correct a value.\n */\nexport class UnsupportedFeatureError extends TsPptxError {\n\tdeclare readonly code: UnsupportedFeatureErrorCode\n\tconstructor(code: UnsupportedFeatureErrorCode, message: string, options?: TsPptxErrorOptions) {\n\t\tsuper(code, message, options)\n\t}\n}\n\n/**\n * The bytes handed to the library are not a package it can read, or a part inside one is\n * structurally malformed — a missing `[Content_Types].xml`, a relationship pointing at nothing, a\n * slide part with no root element.\n *\n * Always about *input*. A problem with something the library is being asked to produce is an\n * {@link InvalidOptionError}.\n */\nexport class PackageReadError extends TsPptxError {\n\tdeclare readonly code: PackageReadErrorCode\n\tconstructor(code: PackageReadErrorCode, message: string, options?: TsPptxErrorOptions) {\n\t\tsuper(code, message, options)\n\t}\n}\n\n/**\n * A referenced image, font, or audio/video resource could not be fetched, read, or decoded.\n *\n * Kept apart from {@link PackageReadError} because the failure is in a resource the deck *points\n * at*, not in the package structure — a broken URL, an unreadable path, a corrupt font file — and\n * a consumer typically retries or substitutes rather than rejecting the deck.\n */\nexport class MediaError extends TsPptxError {\n\tdeclare readonly code: MediaErrorCode\n\tconstructor(code: MediaErrorCode, message: string, options?: TsPptxErrorOptions) {\n\t\tsuper(code, message, options)\n\t}\n}\n\n/**\n * Where a report of an `InternalError` should go. Appended to the message rather than left to the\n * docs, because a stack trace is the only artefact of the failure that reaches whoever (or\n * whatever) is debugging it — a pointer anywhere else is a pointer they have to already be looking\n * for. Most code that calls this library is written by an agent in a repository that is not this\n * one, and an agent that hits a library defect routes around it silently unless something in front\n * of it says the report is worth making.\n */\nconst REPORT_NOTICE =\n\t'This is a bug in ts-pptx, not in your deck or your code. Please report it:\\n' +\n\t'https://github.com/shbernal/ts-pptx/issues/new?template=agent-report.yml'\n\n/**\n * An invariant the library maintains itself did not hold.\n *\n * No consumer input should be able to produce one, which is the whole reason it is a separate\n * class: seeing it means the bug is in ts-pptx, and the useful response is to file it rather than\n * to keep adjusting the input.\n *\n * It is the one class in the taxonomy that extends its own message, appending `REPORT_NOTICE`\n * below the invariant that broke. The constructor is where that lives so a throw site added later\n * inherits it — the alternative, a notice pasted at each of the sites, is one every future site can\n * forget. Every other class leaves `message` exactly as given: a malformed package is the routine\n * outcome for a library that reads untrusted files, and a \"report this\" banner on each corrupt\n * input would train callers to ignore the one banner that always means something.\n *\n * This does not make the message API — see the class doc on {@link TsPptxError}. Branch on\n * `instanceof` or on {@link InternalError.code}, never on the text.\n */\nexport class InternalError extends TsPptxError {\n\tdeclare readonly code: InternalErrorCode\n\tconstructor(code: InternalErrorCode, message: string, options?: TsPptxErrorOptions) {\n\t\tsuper(code, `${message}\\n\\n${REPORT_NOTICE}`, options)\n\t}\n}\n"],"mappings":";;AA0CA,MAAM,cAAc;;AAGpB,MAAM,kBAAqC,eAAe;CACzD,QAAQ,KAAK,GAAG,YAAY,IAAI,WAAW,SAAS;AACrD;AAEA,IAAI,UAA6B;;;;;;;;;;;;;;;;;;;;;;;AAwBjC,SAAgB,qBAAqB,MAAsC;CAC1E,UAAU,QAAQ;AACnB;;;;;;;AAQA,SAAgB,KAAK,MAAsB,SAAiB,QAAkD;CAC7G,QAAQ,WAAW,KAAA,IAAY;EAAE;EAAM;CAAQ,IAAI;EAAE;EAAM;EAAS;CAAO,CAAC;AAC7E;AAKA,MAAM,uBAAO,IAAI,IAAY;;;;;;;;;;;;;;;AAgB7B,SAAgB,SAAS,MAAsB,SAAiB,QAAkD;CACjH,MAAM,MAAM,GAAG,KAAK,IAAI;CACxB,IAAI,KAAK,IAAI,GAAG,GAAG;CACnB,KAAK,IAAI,GAAG;CACZ,KAAK,MAAM,SAAS,MAAM;AAC3B;;;;;;;;;;;;;;;;;AAkBA,SAAgB,uBAA6B;CAC5C,KAAK,MAAM;AACZ;;;;;;;;;;ACxEA,IAAa,cAAb,cAAiC,MAAM;;CAEtC;;CAGA;;;;;;CAOA,YAAY,MAAiB,SAAiB,SAA8B;EAC3E,MAAM,SAAS,OAAO;EAItB,KAAK,OAAO,WAAW;EACvB,KAAK,OAAO;EACZ,IAAI,SAAS,WAAW,KAAA,GAAW,KAAK,SAAS,QAAQ;CAC1D;AACD;;;;;;;;;AAUA,IAAa,qBAAb,cAAwC,YAAY;CAEnD,YAAY,MAA8B,SAAiB,SAA8B;EACxF,MAAM,MAAM,SAAS,OAAO;CAC7B;AACD;;;;;;;;;;AAWA,IAAa,0BAAb,cAA6C,YAAY;CAExD,YAAY,MAAmC,SAAiB,SAA8B;EAC7F,MAAM,MAAM,SAAS,OAAO;CAC7B;AACD;;;;;;;;;AAUA,IAAa,mBAAb,cAAsC,YAAY;CAEjD,YAAY,MAA4B,SAAiB,SAA8B;EACtF,MAAM,MAAM,SAAS,OAAO;CAC7B;AACD;;;;;;;;AASA,IAAa,aAAb,cAAgC,YAAY;CAE3C,YAAY,MAAsB,SAAiB,SAA8B;EAChF,MAAM,MAAM,SAAS,OAAO;CAC7B;AACD;;;;;;;;;AAUA,MAAM,gBACL;;;;;;;;;;;;;;;;;;AAoBD,IAAa,gBAAb,cAAmC,YAAY;CAE9C,YAAY,MAAyB,SAAiB,SAA8B;EACnF,MAAM,MAAM,GAAG,QAAQ,MAAM,iBAAiB,OAAO;CACtD;AACD"}
@@ -0,0 +1,260 @@
1
+ import { d as SHAPE_NAME, i as CHART_NAME } from "./enums-BUKTUB6V.js";
2
+ import { Bt as TextMeasurement, Dt as CommentProps, Ft as TableLayoutResult, Ht as TextPropsOptions, Kt as ImageProps, Ot as MeasureTextOptions, P as ConnectorProps, Q as ChartOpts, Vt as TextProps, Yt as OleObjectProps, Z as ChartMulti, jt as OverflowBoxOptions, kt as NotesProps, nn as ShapeProps, qt as MediaProps, xt as OptsChartData } from "./pres-C6qgOFAa.js";
3
+ import { L as TableToSlidesProps, M as TableProps, N as TableRow, S as AnimationProps, c as SectionZoomProps, d as ZoomBaseProps, l as SlideZoomProps, m as Model3dProps, n as GroupChildProps, r as GroupProps, v as SlideMasterChartProps } from "./slide-Dx2ZeVZ6.js";
4
+ import { T as PresSlideInternal } from "./font-metrics-v5fn7s7e.js";
5
+ import { a as renderImageObject, c as ConstructFamily, d as PartContributor, f as RenderContext, l as PresentationAuthorContext, o as renderTextObject, u as SlideBuilder } from "./entry-compose-DCnvBZz2.js";
6
+ import { s as ExtractedSlide } from "./presentation-types-8jLQHI4M.js";
7
+ //#region src/gen/slide/objects/chart.d.ts
8
+ /**
9
+ * Render a `chart` slide object to its `<p:graphicFrame>` XML referencing the chart part.
10
+ *
11
+ * Classic charts emit a bare `<p:graphicFrame>` pointing at a `<c:chart>`. chartEx charts
12
+ * (waterfall, …) instead wrap that graphicFrame in `<mc:AlternateContent>`: an `<mc:Choice>`
13
+ * carrying the `<cx:chart>` reference (rendered by PowerPoint 2016+/Microsoft 365) and an
14
+ * `<mc:Fallback>` placeholder shape shown by every other consumer.
15
+ */
16
+ declare function renderChartObject(ctx: RenderContext): string;
17
+ //#endregion
18
+ //#region src/gen/extract-charts.d.ts
19
+ /**
20
+ * Charts: the chart part XML plus its embedded workbook bytes. The chart part's own `.rels`
21
+ * (workbook reference) is rebuilt on injection.
22
+ *
23
+ * chartEx charts are a different part behind a different rel type and content type, and
24
+ * PowerPoint reports one as corrupt without its style/colors sidecars (see
25
+ * gen/chart/chartex-style.ts). Both ride in the descriptor's `chartEx` slot, which is what tells
26
+ * `appendSlides` the two shapes apart: it cannot be inferred from the XML. `chartPartBodies` makes
27
+ * the classic-or-chartEx choice for the package writer too.
28
+ */
29
+ declare function chartsOf(slide: PresSlideInternal): ExtractedSlide['charts'];
30
+ //#endregion
31
+ //#region src/gen/slide/objects/table.d.ts
32
+ /**
33
+ * Render a `table` slide object to its `<p:graphicFrame>` XML (merge-grid, row/col spans, per-cell styling).
34
+ */
35
+ declare function renderTableObject(ctx: RenderContext): string;
36
+ //#endregion
37
+ //#region src/gen/slide/objects/media.d.ts
38
+ /**
39
+ * Render a `media` (audio/video/online) slide object to its `<p:pic>` XML.
40
+ */
41
+ declare function renderMediaObject(ctx: RenderContext): string;
42
+ //#endregion
43
+ //#region src/gen/slide/objects/connector.d.ts
44
+ /**
45
+ * Render a `connector` slide object to its `<p:cxnSp>` XML (start/end shape bindings via shapeIds).
46
+ */
47
+ declare function renderConnectorObject(ctx: RenderContext): string;
48
+ //#endregion
49
+ //#region src/gen/slide/objects/ole.d.ts
50
+ /**
51
+ * Render an `oleObject` slide object to its `<p:graphicFrame>` XML.
52
+ *
53
+ * Mirrors what PowerPoint authors for Insert ▸ Object: a graphicFrame in the `.../ole` graphicData
54
+ * namespace holding an `<mc:AlternateContent>`. The `mc:Choice` carries the bare `<p:oleObj>` (which
55
+ * PowerPoint renders by drawing the live embedded document); the `mc:Fallback` repeats it with a
56
+ * `<p:pic>` preview so every other consumer shows the cached picture.
57
+ *
58
+ * Note `mc:Choice Requires="v"` only *declares* the VML namespace — modern PowerPoint writes no
59
+ * `spid` and no `vmlDrawing` part, so neither is emitted here.
60
+ */
61
+ declare function renderOleObject(ctx: RenderContext): string;
62
+ //#endregion
63
+ //#region src/gen/slide/objects/model3d.d.ts
64
+ /**
65
+ * Render a `model3d` slide object to its `<mc:AlternateContent>` XML. The `mc:Choice` carries the
66
+ * real `<p:graphicFrame>` (the `am3d:model3d` graphicData PowerPoint 2019+ renders live); the
67
+ * `mc:Fallback` carries the cached preview picture. See `gen/define/model3d.ts`.
68
+ */
69
+ declare function renderModel3dObject(ctx: RenderContext): string;
70
+ //#endregion
71
+ //#region src/gen/slide/objects/zoom.d.ts
72
+ /**
73
+ * Render a `zoom` slide object to its `<mc:AlternateContent>` XML. The `mc:Choice` carries the real
74
+ * `<p:graphicFrame>` (Slide/Section/Summary Zoom in the 2016 zoom namespaces, read by PowerPoint
75
+ * 2016+); the `mc:Fallback` carries a hyperlinked picture — or, for a Summary Zoom, a group of them —
76
+ * so pre-2016 consumers still get a clickable navigation thumbnail. See `gen/define/zoom.ts`.
77
+ */
78
+ declare function renderZoomObject(ctx: RenderContext): string;
79
+ //#endregion
80
+ //#region src/families.d.ts
81
+ /** Text boxes. Core: composed whether you ask for it or not. */
82
+ export declare const text: {
83
+ name: "text";
84
+ authors: {
85
+ addText(slide: SlideBuilder, text: string | number | TextProps[], options: TextPropsOptions | undefined): void;
86
+ };
87
+ children: {
88
+ text(target: PresSlideInternal, child: {
89
+ text: string | number | TextProps[];
90
+ options?: TextPropsOptions;
91
+ }): void;
92
+ };
93
+ renderers: {
94
+ placeholder: typeof renderTextObject;
95
+ text: typeof renderTextObject;
96
+ };
97
+ };
98
+ /** Preset shapes (`addShape`), and the `rect`/`line`/`roundRect` descriptors. Core. */
99
+ export declare const shapes: {
100
+ name: "shape";
101
+ authors: {
102
+ addShape(slide: SlideBuilder, shapeName: SHAPE_NAME, options: ShapeProps | undefined): void;
103
+ };
104
+ children: {
105
+ line(target: PresSlideInternal, child: ShapeProps): void;
106
+ rect(target: PresSlideInternal, child: ShapeProps): void;
107
+ roundRect(target: PresSlideInternal, child: ShapeProps): void;
108
+ shape(target: PresSlideInternal, child: {
109
+ type: SHAPE_NAME;
110
+ options?: ShapeProps;
111
+ }): void;
112
+ };
113
+ };
114
+ /** Raster and SVG pictures. Core. */
115
+ export declare const images: {
116
+ name: "image";
117
+ authors: {
118
+ addImage(slide: SlideBuilder, options: ImageProps): void;
119
+ };
120
+ children: {
121
+ image(target: PresSlideInternal, child: ImageProps): void;
122
+ };
123
+ renderers: {
124
+ image: typeof renderImageObject;
125
+ };
126
+ };
127
+ /** Groups, from descriptors (`addGroup`) or from objects already on the slide (`groupObjects`). Core. */
128
+ export declare const groups: {
129
+ name: "group";
130
+ authors: {
131
+ addGroup(slide: SlideBuilder, children: GroupChildProps[], options: GroupProps | undefined): void;
132
+ groupObjects(slide: SlideBuilder, objectNames: string[], options: GroupProps | undefined): void;
133
+ };
134
+ };
135
+ /** Speaker notes, and the notes slides they are written to. Core. */
136
+ export declare const notes: {
137
+ name: "notes";
138
+ authors: {
139
+ addNotes(slide: SlideBuilder, notes: string | NotesProps[] | NotesProps): void;
140
+ };
141
+ parts: PartContributor;
142
+ };
143
+ /** Charts of every type, their embedded workbooks, and the chartEx sidecars. The expensive one. */
144
+ export declare const charts: {
145
+ name: "chart";
146
+ authors: {
147
+ addChart(slide: SlideBuilder, arg1: ChartMulti[] | OptsChartData[], arg2: (ChartOpts & {
148
+ type?: CHART_NAME;
149
+ }) | undefined): void;
150
+ };
151
+ children: {
152
+ chart(target: PresSlideInternal, child: SlideMasterChartProps): void;
153
+ };
154
+ renderers: {
155
+ chart: typeof renderChartObject;
156
+ };
157
+ parts: PartContributor;
158
+ extract: {
159
+ charts: typeof chartsOf;
160
+ };
161
+ };
162
+ /** Tables, including auto-paging onto continuation slides. */
163
+ export declare const tables: {
164
+ name: "table";
165
+ authors: {
166
+ addTable(slide: SlideBuilder, tableRows: TableRow[], options: TableProps | undefined): void;
167
+ };
168
+ renderers: {
169
+ table: typeof renderTableObject;
170
+ };
171
+ };
172
+ /**
173
+ * `tableToSlides`: reproducing a rendered HTML `<table>`. Needs a live DOM, so it belongs to a
174
+ * program that has one; the same conversion is a free function on `pptx-ts/html`.
175
+ */
176
+ export declare const domTables: {
177
+ name: "table";
178
+ presentationAuthors: {
179
+ tableToSlides(ctx: PresentationAuthorContext, eleId: string, options: TableToSlidesProps): void;
180
+ };
181
+ };
182
+ /** Embedded and online audio/video. */
183
+ export declare const media: {
184
+ name: "media";
185
+ authors: {
186
+ addMedia(slide: SlideBuilder, options: MediaProps): void;
187
+ };
188
+ renderers: {
189
+ media: typeof renderMediaObject;
190
+ };
191
+ };
192
+ /** Connectors: lines drawn between two points. */
193
+ export declare const connectors: {
194
+ name: "connector";
195
+ authors: {
196
+ addConnector(slide: SlideBuilder, options: ConnectorProps): void;
197
+ };
198
+ renderers: {
199
+ connector: typeof renderConnectorObject;
200
+ };
201
+ };
202
+ /** Embedded OLE objects, whose payload travels inside the `.pptx`. */
203
+ export declare const oleObjects: {
204
+ name: "ole";
205
+ authors: {
206
+ addOleObject(slide: SlideBuilder, options: OleObjectProps): void;
207
+ };
208
+ renderers: {
209
+ oleObject: typeof renderOleObject;
210
+ };
211
+ };
212
+ /** Embedded 3D models (`.glb`) with their preview picture. */
213
+ export declare const models3d: {
214
+ name: "model3d";
215
+ authors: {
216
+ addModel3d(slide: SlideBuilder, options: Model3dProps): void;
217
+ };
218
+ renderers: {
219
+ model3d: typeof renderModel3dObject;
220
+ };
221
+ };
222
+ /** Slide, Section and Summary Zoom tiles. */
223
+ export declare const zooms: {
224
+ name: "zoom";
225
+ authors: {
226
+ addSlideZoom(slide: SlideBuilder, options: SlideZoomProps): void;
227
+ addSectionZoom(slide: SlideBuilder, options: SectionZoomProps): void;
228
+ addSummaryZoom(slide: SlideBuilder, options: ZoomBaseProps): void;
229
+ };
230
+ renderers: {
231
+ zoom: typeof renderZoomObject;
232
+ };
233
+ };
234
+ /** Review comments and the deck-wide author list. */
235
+ export declare const comments: {
236
+ name: "comments";
237
+ authors: {
238
+ addComment(slide: SlideBuilder, options: CommentProps): void;
239
+ };
240
+ parts: PartContributor;
241
+ };
242
+ /** Preset build animations. */
243
+ export declare const animations: {
244
+ name: "animations";
245
+ authors: {
246
+ addAnimation(slide: SlideBuilder, options: AnimationProps): void;
247
+ };
248
+ };
249
+ /** `measureText`, `overflowsBox` and `tableLayout` on the presentation. */
250
+ export declare const measure: {
251
+ name: "measure";
252
+ presentationAuthors: {
253
+ measureText(ctx: PresentationAuthorContext, text: string | TextProps[], opts: MeasureTextOptions): TextMeasurement;
254
+ overflowsBox(ctx: PresentationAuthorContext, text: string | TextProps[], opts: OverflowBoxOptions): boolean;
255
+ tableLayout(ctx: PresentationAuthorContext, rows: TableRow[], opts: TableProps): TableLayoutResult;
256
+ };
257
+ };
258
+ //#endregion
259
+ export type { ConstructFamily };
260
+ //# sourceMappingURL=families.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"families.d.ts","names":[],"sources":["../src/gen/slide/objects/chart.ts","../src/gen/extract-charts.ts","../src/gen/slide/objects/table.ts","../src/gen/slide/objects/media.ts","../src/gen/slide/objects/connector.ts","../src/gen/slide/objects/ole.ts","../src/gen/slide/objects/model3d.ts","../src/gen/slide/objects/zoom.ts","../src/families.ts"],"mappings":";;;;;;;;;;;;;;;iBAwDgB,kBAAkB,KAAK;;;;;;;;;;;;;iBClCvB,SAAS,OAAO,oBAAoB;;;;;;iBC4LpC,kBAAkB,KAAK;;;;;;iBC/LvB,kBAAkB,KAAK;;;;;;iBCHvB,sBAAsB,KAAK;;;;;;;;;;;;;;iBCU3B,gBAAgB,KAAK;;;;;;;;iBCyHrB,oBAAoB,KAAK;;;;;;;;;iBCtBzB,iBAAiB,KAAK;;;;qBCzFzB;;;mBAAA;;;;;;;;;;;;;;qBAEA;;;oBAAA;;;;;;;;;;;;;qBAEA;;;oBAAA;;;;;;;;;;qBAEA;;;oBAAA;;;;;qBAEA;;;oBAAA;;;;;qBAGA;;;oBAAA;;;;;;;;;;;;;;;;qBAEA;;;oBAAA;;;;;;;;;;qBAKA;;;uBAAA,mDAAA;;;;qBAEA;;;oBAAA;;;;;;;qBAEA;;;wBAAA;;;;;;;qBAEA;;;wBAAA;;;;;;;qBAEA;;;sBAAA;;;;;;;qBAEA;;;wBAAA;;;;;;;;;qBAEA;;;sBAAA;;;;;qBAEA;;;wBAAA,uBAAA;;;;qBAEA;;;qBAAA"}
@@ -0,0 +1,57 @@
1
+ import { a as mediaFamily, c as commentsFamily, d as textFamily, f as shapeFamily, h as groupFamily, i as model3dFamily, l as chartFamily, m as imageFamily, n as tableFamily, o as measureFamily, p as notesFamily, r as oleFamily, s as connectorFamily, t as zoomFamily, u as animationsFamily } from "./zoom-DPUHh85d.js";
2
+ import { t as tableDomFamily } from "./table-dom-BTDP3lEP.js";
3
+ //#region src/families.ts
4
+ /**
5
+ * The construct families, as the `pptx-ts/families` subpath publishes them.
6
+ *
7
+ * What a caller hands to `createPresentation({ use: [...] })`. Each value is one family: the
8
+ * methods it adds to a slide, the child descriptors it recognises in a slide master or a group,
9
+ * the renderer that emits its XML, and the parts it puts in the package.
10
+ *
11
+ * Naming one here is what puts its code in your bundle, which is the whole point: a program that
12
+ * composes `charts` pays for charts, and a program that does not, does not.
13
+ *
14
+ * The core tier -- text, shapes, images, groups and speaker notes -- is composed for you. Those
15
+ * five are exported anyway, so a caller can be explicit; listing one changes nothing.
16
+ *
17
+ * @module
18
+ */
19
+ /** Text boxes. Core: composed whether you ask for it or not. */
20
+ const text = textFamily;
21
+ /** Preset shapes (`addShape`), and the `rect`/`line`/`roundRect` descriptors. Core. */
22
+ const shapes = shapeFamily;
23
+ /** Raster and SVG pictures. Core. */
24
+ const images = imageFamily;
25
+ /** Groups, from descriptors (`addGroup`) or from objects already on the slide (`groupObjects`). Core. */
26
+ const groups = groupFamily;
27
+ /** Speaker notes, and the notes slides they are written to. Core. */
28
+ const notes = notesFamily;
29
+ /** Charts of every type, their embedded workbooks, and the chartEx sidecars. The expensive one. */
30
+ const charts = chartFamily;
31
+ /** Tables, including auto-paging onto continuation slides. */
32
+ const tables = tableFamily;
33
+ /**
34
+ * `tableToSlides`: reproducing a rendered HTML `<table>`. Needs a live DOM, so it belongs to a
35
+ * program that has one; the same conversion is a free function on `pptx-ts/html`.
36
+ */
37
+ const domTables = tableDomFamily;
38
+ /** Embedded and online audio/video. */
39
+ const media = mediaFamily;
40
+ /** Connectors: lines drawn between two points. */
41
+ const connectors = connectorFamily;
42
+ /** Embedded OLE objects, whose payload travels inside the `.pptx`. */
43
+ const oleObjects = oleFamily;
44
+ /** Embedded 3D models (`.glb`) with their preview picture. */
45
+ const models3d = model3dFamily;
46
+ /** Slide, Section and Summary Zoom tiles. */
47
+ const zooms = zoomFamily;
48
+ /** Review comments and the deck-wide author list. */
49
+ const comments = commentsFamily;
50
+ /** Preset build animations. */
51
+ const animations = animationsFamily;
52
+ /** `measureText`, `overflowsBox` and `tableLayout` on the presentation. */
53
+ const measure = measureFamily;
54
+ //#endregion
55
+ export { animations, charts, comments, connectors, domTables, groups, images, measure, media, models3d, notes, oleObjects, shapes, tables, text, zooms };
56
+
57
+ //# sourceMappingURL=families.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"families.js","names":[],"sources":["../src/families.ts"],"sourcesContent":["/**\n * The construct families, as the `pptx-ts/families` subpath publishes them.\n *\n * What a caller hands to `createPresentation({ use: [...] })`. Each value is one family: the\n * methods it adds to a slide, the child descriptors it recognises in a slide master or a group,\n * the renderer that emits its XML, and the parts it puts in the package.\n *\n * Naming one here is what puts its code in your bundle, which is the whole point: a program that\n * composes `charts` pays for charts, and a program that does not, does not.\n *\n * The core tier -- text, shapes, images, groups and speaker notes -- is composed for you. Those\n * five are exported anyway, so a caller can be explicit; listing one changes nothing.\n *\n * @module\n */\n\nimport { animationsFamily } from './families/animations.js'\nimport { chartFamily } from './families/chart.js'\nimport { commentsFamily } from './families/comments.js'\nimport { connectorFamily } from './families/connector.js'\nimport { groupFamily } from './families/group.js'\nimport { imageFamily } from './families/image.js'\nimport { measureFamily } from './families/measure.js'\nimport { mediaFamily } from './families/media.js'\nimport { model3dFamily } from './families/model3d.js'\nimport { notesFamily } from './families/notes.js'\nimport { oleFamily } from './families/ole.js'\nimport { shapeFamily } from './families/shape.js'\nimport { tableDomFamily } from './families/table-dom.js'\nimport { tableFamily } from './families/table.js'\nimport { textFamily } from './families/text.js'\nimport { zoomFamily } from './families/zoom.js'\n\nexport type { ConstructFamily } from './families/shared.js'\n\n/** Text boxes. Core: composed whether you ask for it or not. */\nexport const text = textFamily\n/** Preset shapes (`addShape`), and the `rect`/`line`/`roundRect` descriptors. Core. */\nexport const shapes = shapeFamily\n/** Raster and SVG pictures. Core. */\nexport const images = imageFamily\n/** Groups, from descriptors (`addGroup`) or from objects already on the slide (`groupObjects`). Core. */\nexport const groups = groupFamily\n/** Speaker notes, and the notes slides they are written to. Core. */\nexport const notes = notesFamily\n\n/** Charts of every type, their embedded workbooks, and the chartEx sidecars. The expensive one. */\nexport const charts = chartFamily\n/** Tables, including auto-paging onto continuation slides. */\nexport const tables = tableFamily\n/**\n * `tableToSlides`: reproducing a rendered HTML `<table>`. Needs a live DOM, so it belongs to a\n * program that has one; the same conversion is a free function on `pptx-ts/html`.\n */\nexport const domTables = tableDomFamily\n/** Embedded and online audio/video. */\nexport const media = mediaFamily\n/** Connectors: lines drawn between two points. */\nexport const connectors = connectorFamily\n/** Embedded OLE objects, whose payload travels inside the `.pptx`. */\nexport const oleObjects = oleFamily\n/** Embedded 3D models (`.glb`) with their preview picture. */\nexport const models3d = model3dFamily\n/** Slide, Section and Summary Zoom tiles. */\nexport const zooms = zoomFamily\n/** Review comments and the deck-wide author list. */\nexport const comments = commentsFamily\n/** Preset build animations. */\nexport const animations = animationsFamily\n/** `measureText`, `overflowsBox` and `tableLayout` on the presentation. */\nexport const measure = measureFamily\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAoCA,MAAa,OAAO;;AAEpB,MAAa,SAAS;;AAEtB,MAAa,SAAS;;AAEtB,MAAa,SAAS;;AAEtB,MAAa,QAAQ;;AAGrB,MAAa,SAAS;;AAEtB,MAAa,SAAS;;;;;AAKtB,MAAa,YAAY;;AAEzB,MAAa,QAAQ;;AAErB,MAAa,aAAa;;AAE1B,MAAa,aAAa;;AAE1B,MAAa,WAAW;;AAExB,MAAa,QAAQ;;AAErB,MAAa,WAAW;;AAExB,MAAa,aAAa;;AAE1B,MAAa,UAAU"}