pptx-viewer-core 1.1.42 → 1.1.44
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 +12 -0
- package/dist/cli/index.js +0 -0
- package/dist/cli/index.mjs +0 -0
- package/dist/index.js +18 -8
- package/dist/index.mjs +18 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [1.1.43](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.1.43) - 2026-07-02
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **core,angular:** Revert xmldom to 0.8.x and fix shared import specifiers (by @ChristopherVR) ([29eda31](https://github.com/ChristopherVR/pptx-viewer/commit/29eda3119836559b63bc08733dd9dd6398a69c8d))
|
|
12
|
+
|
|
13
|
+
## [1.1.42](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.1.42) - 2026-06-27
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- Missing document links (by @ChristopherVR) ([f52bd6f](https://github.com/ChristopherVR/pptx-viewer/commit/f52bd6fd2fc4f564f018ecf5e84e64d24c8fd240))
|
|
18
|
+
|
|
7
19
|
## [1.1.28](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-core@1.1.28) - 2026-06-21
|
|
8
20
|
|
|
9
21
|
### Dependencies
|
package/dist/cli/index.js
CHANGED
|
Binary file
|
package/dist/cli/index.mjs
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -41796,6 +41796,7 @@ var PptxHandlerRuntime60 = class extends PptxHandlerRuntime59 {
|
|
|
41796
41796
|
if (this.masterCache.has(masterPath)) {
|
|
41797
41797
|
return this.masterCache.get(masterPath);
|
|
41798
41798
|
}
|
|
41799
|
+
const masterToken = masterPath.split("/").pop()?.replace(/\.xml$/u, "") ?? masterPath;
|
|
41799
41800
|
try {
|
|
41800
41801
|
const masterXmlStr = await this.zip.file(masterPath)?.async("string");
|
|
41801
41802
|
if (!masterXmlStr) {
|
|
@@ -41853,11 +41854,15 @@ var PptxHandlerRuntime60 = class extends PptxHandlerRuntime59 {
|
|
|
41853
41854
|
if (spPr?.["a:blipFill"]) {
|
|
41854
41855
|
element = await this.parseShapeWithImageFill(
|
|
41855
41856
|
shape,
|
|
41856
|
-
`master-shape-img-${entry.indexInType}`,
|
|
41857
|
+
`master-shape-img-${masterToken}-${entry.indexInType}`,
|
|
41857
41858
|
masterPath
|
|
41858
41859
|
);
|
|
41859
41860
|
} else {
|
|
41860
|
-
element = this.parseShape(
|
|
41861
|
+
element = this.parseShape(
|
|
41862
|
+
shape,
|
|
41863
|
+
`master-shape-${masterToken}-${entry.indexInType}`,
|
|
41864
|
+
masterPath
|
|
41865
|
+
);
|
|
41861
41866
|
}
|
|
41862
41867
|
if (element) {
|
|
41863
41868
|
element.id = `master-${element.id}`;
|
|
@@ -41871,7 +41876,7 @@ var PptxHandlerRuntime60 = class extends PptxHandlerRuntime59 {
|
|
|
41871
41876
|
}
|
|
41872
41877
|
const element = await this.parsePicture(
|
|
41873
41878
|
pic,
|
|
41874
|
-
`master-pic-${entry.indexInType}`,
|
|
41879
|
+
`master-pic-${masterToken}-${entry.indexInType}`,
|
|
41875
41880
|
masterPath
|
|
41876
41881
|
);
|
|
41877
41882
|
if (element) {
|
|
@@ -41886,7 +41891,7 @@ var PptxHandlerRuntime60 = class extends PptxHandlerRuntime59 {
|
|
|
41886
41891
|
}
|
|
41887
41892
|
const element = this.parseGraphicFrame(
|
|
41888
41893
|
frame2,
|
|
41889
|
-
`master-frame-${entry.indexInType}`,
|
|
41894
|
+
`master-frame-${masterToken}-${entry.indexInType}`,
|
|
41890
41895
|
masterPath
|
|
41891
41896
|
);
|
|
41892
41897
|
if (element) {
|
|
@@ -41925,6 +41930,7 @@ var PptxHandlerRuntime61 = class extends PptxHandlerRuntime60 {
|
|
|
41925
41930
|
if (this.layoutCache.has(layoutPath)) {
|
|
41926
41931
|
return this.layoutCache.get(layoutPath);
|
|
41927
41932
|
}
|
|
41933
|
+
const layoutToken = layoutPath.split("/").pop()?.replace(/\.xml$/u, "") ?? layoutPath;
|
|
41928
41934
|
try {
|
|
41929
41935
|
const layoutXmlStr = await this.zip.file(layoutPath)?.async("string");
|
|
41930
41936
|
if (!layoutXmlStr) {
|
|
@@ -41986,11 +41992,15 @@ var PptxHandlerRuntime61 = class extends PptxHandlerRuntime60 {
|
|
|
41986
41992
|
if (spPr && xmlChild(spPr, "a:blipFill")) {
|
|
41987
41993
|
element = await this.parseShapeWithImageFill(
|
|
41988
41994
|
shape,
|
|
41989
|
-
`layout-shape-img-${entry.indexInType}`,
|
|
41995
|
+
`layout-shape-img-${layoutToken}-${entry.indexInType}`,
|
|
41990
41996
|
layoutPath
|
|
41991
41997
|
);
|
|
41992
41998
|
} else {
|
|
41993
|
-
element = this.parseShape(
|
|
41999
|
+
element = this.parseShape(
|
|
42000
|
+
shape,
|
|
42001
|
+
`layout-shape-${layoutToken}-${entry.indexInType}`,
|
|
42002
|
+
layoutPath
|
|
42003
|
+
);
|
|
41994
42004
|
}
|
|
41995
42005
|
if (element) {
|
|
41996
42006
|
element.id = `layout-${element.id}`;
|
|
@@ -42004,7 +42014,7 @@ var PptxHandlerRuntime61 = class extends PptxHandlerRuntime60 {
|
|
|
42004
42014
|
}
|
|
42005
42015
|
const element = await this.parsePicture(
|
|
42006
42016
|
pic,
|
|
42007
|
-
`layout-pic-${entry.indexInType}`,
|
|
42017
|
+
`layout-pic-${layoutToken}-${entry.indexInType}`,
|
|
42008
42018
|
layoutPath
|
|
42009
42019
|
);
|
|
42010
42020
|
if (element) {
|
|
@@ -42019,7 +42029,7 @@ var PptxHandlerRuntime61 = class extends PptxHandlerRuntime60 {
|
|
|
42019
42029
|
}
|
|
42020
42030
|
const element = this.parseGraphicFrame(
|
|
42021
42031
|
frame2,
|
|
42022
|
-
`layout-frame-${entry.indexInType}`,
|
|
42032
|
+
`layout-frame-${layoutToken}-${entry.indexInType}`,
|
|
42023
42033
|
layoutPath
|
|
42024
42034
|
);
|
|
42025
42035
|
if (element) {
|
package/dist/index.mjs
CHANGED
|
@@ -41791,6 +41791,7 @@ var PptxHandlerRuntime60 = class extends PptxHandlerRuntime59 {
|
|
|
41791
41791
|
if (this.masterCache.has(masterPath)) {
|
|
41792
41792
|
return this.masterCache.get(masterPath);
|
|
41793
41793
|
}
|
|
41794
|
+
const masterToken = masterPath.split("/").pop()?.replace(/\.xml$/u, "") ?? masterPath;
|
|
41794
41795
|
try {
|
|
41795
41796
|
const masterXmlStr = await this.zip.file(masterPath)?.async("string");
|
|
41796
41797
|
if (!masterXmlStr) {
|
|
@@ -41848,11 +41849,15 @@ var PptxHandlerRuntime60 = class extends PptxHandlerRuntime59 {
|
|
|
41848
41849
|
if (spPr?.["a:blipFill"]) {
|
|
41849
41850
|
element = await this.parseShapeWithImageFill(
|
|
41850
41851
|
shape,
|
|
41851
|
-
`master-shape-img-${entry.indexInType}`,
|
|
41852
|
+
`master-shape-img-${masterToken}-${entry.indexInType}`,
|
|
41852
41853
|
masterPath
|
|
41853
41854
|
);
|
|
41854
41855
|
} else {
|
|
41855
|
-
element = this.parseShape(
|
|
41856
|
+
element = this.parseShape(
|
|
41857
|
+
shape,
|
|
41858
|
+
`master-shape-${masterToken}-${entry.indexInType}`,
|
|
41859
|
+
masterPath
|
|
41860
|
+
);
|
|
41856
41861
|
}
|
|
41857
41862
|
if (element) {
|
|
41858
41863
|
element.id = `master-${element.id}`;
|
|
@@ -41866,7 +41871,7 @@ var PptxHandlerRuntime60 = class extends PptxHandlerRuntime59 {
|
|
|
41866
41871
|
}
|
|
41867
41872
|
const element = await this.parsePicture(
|
|
41868
41873
|
pic,
|
|
41869
|
-
`master-pic-${entry.indexInType}`,
|
|
41874
|
+
`master-pic-${masterToken}-${entry.indexInType}`,
|
|
41870
41875
|
masterPath
|
|
41871
41876
|
);
|
|
41872
41877
|
if (element) {
|
|
@@ -41881,7 +41886,7 @@ var PptxHandlerRuntime60 = class extends PptxHandlerRuntime59 {
|
|
|
41881
41886
|
}
|
|
41882
41887
|
const element = this.parseGraphicFrame(
|
|
41883
41888
|
frame2,
|
|
41884
|
-
`master-frame-${entry.indexInType}`,
|
|
41889
|
+
`master-frame-${masterToken}-${entry.indexInType}`,
|
|
41885
41890
|
masterPath
|
|
41886
41891
|
);
|
|
41887
41892
|
if (element) {
|
|
@@ -41920,6 +41925,7 @@ var PptxHandlerRuntime61 = class extends PptxHandlerRuntime60 {
|
|
|
41920
41925
|
if (this.layoutCache.has(layoutPath)) {
|
|
41921
41926
|
return this.layoutCache.get(layoutPath);
|
|
41922
41927
|
}
|
|
41928
|
+
const layoutToken = layoutPath.split("/").pop()?.replace(/\.xml$/u, "") ?? layoutPath;
|
|
41923
41929
|
try {
|
|
41924
41930
|
const layoutXmlStr = await this.zip.file(layoutPath)?.async("string");
|
|
41925
41931
|
if (!layoutXmlStr) {
|
|
@@ -41981,11 +41987,15 @@ var PptxHandlerRuntime61 = class extends PptxHandlerRuntime60 {
|
|
|
41981
41987
|
if (spPr && xmlChild(spPr, "a:blipFill")) {
|
|
41982
41988
|
element = await this.parseShapeWithImageFill(
|
|
41983
41989
|
shape,
|
|
41984
|
-
`layout-shape-img-${entry.indexInType}`,
|
|
41990
|
+
`layout-shape-img-${layoutToken}-${entry.indexInType}`,
|
|
41985
41991
|
layoutPath
|
|
41986
41992
|
);
|
|
41987
41993
|
} else {
|
|
41988
|
-
element = this.parseShape(
|
|
41994
|
+
element = this.parseShape(
|
|
41995
|
+
shape,
|
|
41996
|
+
`layout-shape-${layoutToken}-${entry.indexInType}`,
|
|
41997
|
+
layoutPath
|
|
41998
|
+
);
|
|
41989
41999
|
}
|
|
41990
42000
|
if (element) {
|
|
41991
42001
|
element.id = `layout-${element.id}`;
|
|
@@ -41999,7 +42009,7 @@ var PptxHandlerRuntime61 = class extends PptxHandlerRuntime60 {
|
|
|
41999
42009
|
}
|
|
42000
42010
|
const element = await this.parsePicture(
|
|
42001
42011
|
pic,
|
|
42002
|
-
`layout-pic-${entry.indexInType}`,
|
|
42012
|
+
`layout-pic-${layoutToken}-${entry.indexInType}`,
|
|
42003
42013
|
layoutPath
|
|
42004
42014
|
);
|
|
42005
42015
|
if (element) {
|
|
@@ -42014,7 +42024,7 @@ var PptxHandlerRuntime61 = class extends PptxHandlerRuntime60 {
|
|
|
42014
42024
|
}
|
|
42015
42025
|
const element = this.parseGraphicFrame(
|
|
42016
42026
|
frame2,
|
|
42017
|
-
`layout-frame-${entry.indexInType}`,
|
|
42027
|
+
`layout-frame-${layoutToken}-${entry.indexInType}`,
|
|
42018
42028
|
layoutPath
|
|
42019
42029
|
);
|
|
42020
42030
|
if (element) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-viewer-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.44",
|
|
4
4
|
"description": "PowerPoint PPTX engine: parse, edit, serialize, and convert .pptx files. Framework-agnostic TypeScript SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"converter",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"pack": "bun run build && bun pm pack"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"emf-converter": "^1.
|
|
76
|
+
"emf-converter": "^1.5.0",
|
|
77
77
|
"fast-xml-parser": "^5.9.3",
|
|
78
78
|
"jszip": "^3.10.1",
|
|
79
79
|
"mtx-decompressor": "^1.4.2"
|