pptxgenjs-plus 4.3.6 → 4.3.7
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/pptxgen.bundle.js +6 -6
- package/dist/pptxgen.cjs.js +10 -7
- package/dist/pptxgen.es.js +10 -7
- package/dist/pptxgen.min.js +6 -6
- package/package.json +1 -1
package/dist/pptxgen.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PptxGenJS 4.3.
|
|
1
|
+
/* PptxGenJS 4.3.7 @ 2026-11-07T17:12:38.755Z */
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
@@ -22988,11 +22988,14 @@ function collectSlideAnimations(slide) {
|
|
|
22988
22988
|
* @return {string} XML
|
|
22989
22989
|
*/ function makeXmlNotesSlide(slide) {
|
|
22990
22990
|
const notesText = getNotesFromSlide(slide);
|
|
22991
|
-
// ECMA-376 §5.1.5.2.6
|
|
22992
|
-
//
|
|
22993
|
-
//
|
|
22994
|
-
const
|
|
22995
|
-
|
|
22991
|
+
// ECMA-376 §5.1.5.2.6: paragraphs are separate a:p elements. Literal newlines
|
|
22992
|
+
// inside a:t do not express DrawingML paragraph boundaries. Keep empty lines
|
|
22993
|
+
// as paragraphs without empty text runs (PowerPoint repair regression 3260b6e).
|
|
22994
|
+
const notesParagraphs = notesText.split(/\r\n|\r|\n/).map((line)=>{
|
|
22995
|
+
const run = line ? `<a:r><a:rPr lang="en-US" dirty="0"/><a:t>${encodeXmlEntities(line)}</a:t></a:r>` : '';
|
|
22996
|
+
return `<a:p>${run}<a:endParaRPr lang="en-US" dirty="0"/></a:p>`;
|
|
22997
|
+
}).join('');
|
|
22998
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${(/* inlined export .CRLF */"\r\n")}<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/>${notesParagraphs}</p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="${SLDNUMFLDID}" type="slidenum"><a:rPr lang="en-US"/><a:t>${slide._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>`;
|
|
22996
22999
|
}
|
|
22997
23000
|
/**
|
|
22998
23001
|
* Generates the XML layout resource from a layout object
|
|
@@ -23923,7 +23926,7 @@ class PptxGenJS {
|
|
|
23923
23926
|
*/ pptxgen_define_property(this, "_layout", void 0);
|
|
23924
23927
|
/**
|
|
23925
23928
|
* PptxGenJS Library Version
|
|
23926
|
-
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.
|
|
23929
|
+
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.7"));
|
|
23927
23930
|
/**
|
|
23928
23931
|
* @type {string}
|
|
23929
23932
|
*/ pptxgen_define_property(this, "_author", void 0);
|
package/dist/pptxgen.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PptxGenJS 4.3.
|
|
1
|
+
/* PptxGenJS 4.3.7 @ 2026-11-07T17:12:38.755Z */
|
|
2
2
|
|
|
3
3
|
import { JSZip } from "@node-projects/jszip";
|
|
4
4
|
import { parseXml } from "@rgrove/parse-xml";
|
|
@@ -22858,11 +22858,14 @@ function collectSlideAnimations(slide) {
|
|
|
22858
22858
|
* @return {string} XML
|
|
22859
22859
|
*/ function makeXmlNotesSlide(slide) {
|
|
22860
22860
|
const notesText = getNotesFromSlide(slide);
|
|
22861
|
-
// ECMA-376 §5.1.5.2.6
|
|
22862
|
-
//
|
|
22863
|
-
//
|
|
22864
|
-
const
|
|
22865
|
-
|
|
22861
|
+
// ECMA-376 §5.1.5.2.6: paragraphs are separate a:p elements. Literal newlines
|
|
22862
|
+
// inside a:t do not express DrawingML paragraph boundaries. Keep empty lines
|
|
22863
|
+
// as paragraphs without empty text runs (PowerPoint repair regression 3260b6e).
|
|
22864
|
+
const notesParagraphs = notesText.split(/\r\n|\r|\n/).map((line)=>{
|
|
22865
|
+
const run = line ? `<a:r><a:rPr lang="en-US" dirty="0"/><a:t>${encodeXmlEntities(line)}</a:t></a:r>` : '';
|
|
22866
|
+
return `<a:p>${run}<a:endParaRPr lang="en-US" dirty="0"/></a:p>`;
|
|
22867
|
+
}).join('');
|
|
22868
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${(/* inlined export .CRLF */"\r\n")}<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/>${notesParagraphs}</p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="${SLDNUMFLDID}" type="slidenum"><a:rPr lang="en-US"/><a:t>${slide._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>`;
|
|
22866
22869
|
}
|
|
22867
22870
|
/**
|
|
22868
22871
|
* Generates the XML layout resource from a layout object
|
|
@@ -23791,7 +23794,7 @@ class PptxGenJS {
|
|
|
23791
23794
|
*/ pptxgen_define_property(this, "_layout", void 0);
|
|
23792
23795
|
/**
|
|
23793
23796
|
* PptxGenJS Library Version
|
|
23794
|
-
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.
|
|
23797
|
+
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.7"));
|
|
23795
23798
|
/**
|
|
23796
23799
|
* @type {string}
|
|
23797
23800
|
*/ pptxgen_define_property(this, "_author", void 0);
|