@office-kit/pptx 0.17.0 → 0.18.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/CHANGELOG.md +45 -0
- package/dist/{api-DTHZaBPq.js → api-0CdoUwvg.js} +704 -56
- package/dist/api-0CdoUwvg.js.map +1 -0
- package/dist/{index-Bfvx6-CU.d.ts → index-bswJVsv2.d.ts} +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
- package/dist/api-DTHZaBPq.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @office-kit/pptx
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7e89e62: Validate enum inputs at authoring boundaries and throw a descriptive `RangeError`
|
|
8
|
+
instead of writing invalid PowerPoint XML or silently selecting another mode.
|
|
9
|
+
|
|
10
|
+
Affected APIs:
|
|
11
|
+
|
|
12
|
+
- Shapes: `addSlideShape` preset and text anchor, including calls through the TSX DSL.
|
|
13
|
+
- Strokes and fills: `setShapeStrokeDash`, `setShapeStrokeCap`, `setShapeStrokeJoin`,
|
|
14
|
+
`setShapeStrokeCompound`, `setShapeStrokeArrow` (end, type, width, length), and
|
|
15
|
+
`setShapeGradientFill` path.
|
|
16
|
+
- Text: `setShapeAlignment`, `setParagraphAlignment`, `setShapeTextAnchor`,
|
|
17
|
+
`setShapeTextAutoFit`, `setShapeTextWrap`, `setShapeTextDirection`, `setShapeBullets`,
|
|
18
|
+
`setParagraphBullet`, and `setShapeText` bullets; `setShapeTextFormat`,
|
|
19
|
+
`setShapeRunFormat`, and `setShapeParagraphs` formatting and alignment.
|
|
20
|
+
- Tables: `setTableCellAlignment`, `setTableCellTextFormat`, `setTableCellParagraphs`,
|
|
21
|
+
`setTableCellTextDirection`, `setTableCellAnchor`, and `setTableCellBorders` dash.
|
|
22
|
+
- Charts: `addSlideChart` and `setChartSpec` kind, grouping, axes, legend, layout,
|
|
23
|
+
data labels, series markers, line dash, trendlines, error bars, and chart styles.
|
|
24
|
+
- Slides: `setSlideSize` type, `setSlideTransition` speed and split orientation,
|
|
25
|
+
and `setShapeAnimation` effect.
|
|
26
|
+
|
|
27
|
+
Previously accepted inputs such as preset `'rounded-rect'`, alignment `'middle'`,
|
|
28
|
+
stroke dash `'dotted'`, text auto-fit `'shrink'`, and auto-numbering `'bogus'` now
|
|
29
|
+
throw `RangeError`. Underline and strike strings must be exact XSD tokens:
|
|
30
|
+
use `'sng'` / `'sngStrike'` (or `true`), not `'single'`. Existing JavaScript
|
|
31
|
+
`null` values for underline, strike, and cap still remove the corresponding
|
|
32
|
+
attributes; their TypeScript types are unchanged.
|
|
33
|
+
|
|
34
|
+
Unknown chart kinds now throw `RangeError: addSlideChart: kind: … is not one of: …`
|
|
35
|
+
instead of `Error: unsupported chart kind: …`; `setChartSpec` uses its own API name
|
|
36
|
+
in the new message. Code that checks the exception class or message should adapt.
|
|
37
|
+
|
|
38
|
+
Valid ECMA-376 shape presets remain supported, including presets outside the
|
|
39
|
+
TypeScript autocomplete list. Rejected bullets and transitions preserve existing
|
|
40
|
+
content, and rejected table-cell alignment or text-format enums do not create a
|
|
41
|
+
text body.
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 7e89e62: fix: Preserve valid table XML when setting alignment on a covered merged cell whose text was dropped. Recreated text bodies now include the required paragraph, so the alignment is applied and survives saving and reloading.
|
|
46
|
+
- 64fa3c7: Fix nested list indentation when changing a paragraph's level after applying bullets or numbering, including after copying or reloading a presentation. Indentation that differs from the previous level's default pair is preserved.
|
|
47
|
+
|
|
3
48
|
## 0.17.0
|
|
4
49
|
|
|
5
50
|
### Minor Changes
|