pptx-viewer-core 1.2.4 → 1.2.6
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 +8 -0
- package/dist/{SvgExporter-CYyO9c5A.d.mts → SvgExporter-BKbDaGaC.d.mts} +1 -1
- package/dist/{SvgExporter-DdjrIx33.d.ts → SvgExporter-CG73UVb9.d.ts} +1 -1
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +0 -0
- package/dist/cli/index.mjs +0 -0
- package/dist/converter/index.d.mts +3 -3
- package/dist/converter/index.d.ts +3 -3
- package/dist/converter/index.js +0 -0
- package/dist/converter/index.mjs +0 -0
- package/dist/index.d.mts +126 -7
- package/dist/index.d.ts +126 -7
- package/dist/index.js +403 -56
- package/dist/index.mjs +402 -57
- package/dist/{presentation-BRAUjTRt.d.mts → presentation-CLc4eS3z.d.mts} +10 -0
- package/dist/{presentation-BRAUjTRt.d.ts → presentation-CLc4eS3z.d.ts} +10 -0
- package/dist/signature-node/index.d.mts +17 -7
- package/dist/signature-node/index.d.ts +17 -7
- package/dist/signature-node/index.js +297 -209
- package/dist/signature-node/index.mjs +295 -207
- package/dist/{text-operations-CkW4BO91.d.mts → text-operations-CCKEVX_5.d.mts} +1 -1
- package/dist/{text-operations-BJUOhA1w.d.ts → text-operations-oN04X1yi.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -3962,6 +3962,16 @@ interface PptxAppProperties {
|
|
|
3962
3962
|
*/
|
|
3963
3963
|
interface PptxElementBase {
|
|
3964
3964
|
id: string;
|
|
3965
|
+
/**
|
|
3966
|
+
* The shape's native OOXML id from `p:cNvPr/@id` (an unsigned integer, as a
|
|
3967
|
+
* string), captured on load. Distinct from {@link id}, which is a synthetic
|
|
3968
|
+
* positional identity (`${slidePath}-shape-${index}`) the loader assigns for
|
|
3969
|
+
* selection / undo / template tracking. Animations target shapes by this
|
|
3970
|
+
* native id (`p:spTgt/@spid`), so it is the stable key used to reconcile an
|
|
3971
|
+
* animation to the element it animates across a save/reload round trip.
|
|
3972
|
+
* Absent on SDK-created elements until one is minted at save time.
|
|
3973
|
+
*/
|
|
3974
|
+
shapeId?: string;
|
|
3965
3975
|
/** Element name from `cNvPr/@name`. Used for morph transition matching via the `!!` naming convention. */
|
|
3966
3976
|
name?: string;
|
|
3967
3977
|
x: number;
|
|
@@ -3962,6 +3962,16 @@ interface PptxAppProperties {
|
|
|
3962
3962
|
*/
|
|
3963
3963
|
interface PptxElementBase {
|
|
3964
3964
|
id: string;
|
|
3965
|
+
/**
|
|
3966
|
+
* The shape's native OOXML id from `p:cNvPr/@id` (an unsigned integer, as a
|
|
3967
|
+
* string), captured on load. Distinct from {@link id}, which is a synthetic
|
|
3968
|
+
* positional identity (`${slidePath}-shape-${index}`) the loader assigns for
|
|
3969
|
+
* selection / undo / template tracking. Animations target shapes by this
|
|
3970
|
+
* native id (`p:spTgt/@spid`), so it is the stable key used to reconcile an
|
|
3971
|
+
* animation to the element it animates across a save/reload round trip.
|
|
3972
|
+
* Absent on SDK-created elements until one is minted at save time.
|
|
3973
|
+
*/
|
|
3974
|
+
shapeId?: string;
|
|
3965
3975
|
/** Element name from `cNvPr/@name`. Used for morph transition matching via the `!!` naming convention. */
|
|
3966
3976
|
name?: string;
|
|
3967
3977
|
x: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as SignatureCertificateInfo, L as LoadedSigningMaterial,
|
|
1
|
+
import { p as SignatureCertificateInfo, L as LoadedSigningMaterial, T as TimestampAuthorityStatus, C as CertificateRevocationStatus, r as SignatureValidationPolicy, k as ParsedReferenceTransform, R as ReferenceTransformResult, q as SignatureReferenceCheck, l as SignOptions, m as SignResult, d as DigitalSignatureReport } from '../signature-inspection-status-BCUpfCQh.mjs';
|
|
2
2
|
export { D as DIGEST_ALGORITHM_TO_HASH, a as DIGEST_ALGORITHM_TO_WEB_CRYPTO, b as DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, c as DIGITAL_SIGNATURE_REL_TYPE, e as DigitalSignatureVerificationStatus, E as ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, f as ENTERPRISE_REQUIRE_REVOCATION_ENV, g as ENTERPRISE_REQUIRE_TIMESTAMP_ENV, h as ENTERPRISE_TRUST_ROOTS_FILE_ENV, i as ENTERPRISE_TRUST_ROOTS_PEM_ENV, O as OPC_RELATIONSHIP_TRANSFORM, j as OfficeSignatureReference, P as PPTX_VIEWER_MANIFEST_NS, S as SUPPORTED_XML_CANON_TRANSFORMS, n as SignatureDetail, o as SignatureDetailStatus, X as XMLDSIG_NS, s as XML_TRANSFORM_ENVELOPED_SIGNATURE, t as computeDetailStatus, u as computeDigestBase64WebCrypto, v as computeVerificationStatus, w as escapeXmlAttr, x as escapeXmlText, y as extractAllTagText, z as extractFirstTagText, A as extractTagAttribute, B as isValidBase64, F as normalizePartPath, G as resolveReferenceUriToPart } from '../signature-inspection-status-BCUpfCQh.mjs';
|
|
3
3
|
import JSZip from 'jszip';
|
|
4
4
|
|
|
@@ -88,16 +88,30 @@ declare function loadSigningMaterialFromBuffer(certificateBuffer: Uint8Array, ce
|
|
|
88
88
|
declare function pemCertificateToBase64(pem: string): string;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
* PKI validation utilities — certificate
|
|
91
|
+
* PKI validation utilities — PEM/fingerprint certificate helpers and
|
|
92
92
|
* timestamp-authority evaluation for OOXML digital signatures.
|
|
93
93
|
*
|
|
94
|
-
*
|
|
94
|
+
* OCSP revocation checking lives in `./ocsp.ts`.
|
|
95
|
+
*
|
|
96
|
+
* Node-only — depends on `node:crypto` and `node-forge`.
|
|
95
97
|
*/
|
|
96
98
|
|
|
97
99
|
/** Wrap a Base64-encoded DER certificate in PEM armour. */
|
|
98
100
|
declare function certPemFromBase64(certBase64: string): string | undefined;
|
|
99
101
|
/** SHA-256 fingerprint of a PEM certificate (lowercase hex, no colons). */
|
|
100
102
|
declare function certFingerprintSha256(certPem: string): string | undefined;
|
|
103
|
+
declare function evaluateTimestampAuthority(signatureXml: string): Promise<{
|
|
104
|
+
status: TimestampAuthorityStatus;
|
|
105
|
+
error?: string;
|
|
106
|
+
}>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* OCSP (Online Certificate Status Protocol) revocation checking for OOXML
|
|
110
|
+
* digital signature certificates.
|
|
111
|
+
*
|
|
112
|
+
* Node-only — depends on `node:crypto`, `node:http`, `node:https`, and `node-forge`.
|
|
113
|
+
*/
|
|
114
|
+
|
|
101
115
|
declare function extractOcspUrls(certPem: string): string[];
|
|
102
116
|
declare function buildOcspRequestDer(leafPem: string, issuerPem: string): Buffer | undefined;
|
|
103
117
|
declare function parseOcspResponseStatus(data: Buffer): CertificateRevocationStatus;
|
|
@@ -107,10 +121,6 @@ declare function evaluateCertificateRevocation(leafCertPem: string, issuerCertPe
|
|
|
107
121
|
checkedOcspUrls: string[];
|
|
108
122
|
checkedCrlUrls: string[];
|
|
109
123
|
}>;
|
|
110
|
-
declare function evaluateTimestampAuthority(signatureXml: string): Promise<{
|
|
111
|
-
status: TimestampAuthorityStatus;
|
|
112
|
-
error?: string;
|
|
113
|
-
}>;
|
|
114
124
|
|
|
115
125
|
/**
|
|
116
126
|
* Environment-based configuration for digital signature validation.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as SignatureCertificateInfo, L as LoadedSigningMaterial,
|
|
1
|
+
import { p as SignatureCertificateInfo, L as LoadedSigningMaterial, T as TimestampAuthorityStatus, C as CertificateRevocationStatus, r as SignatureValidationPolicy, k as ParsedReferenceTransform, R as ReferenceTransformResult, q as SignatureReferenceCheck, l as SignOptions, m as SignResult, d as DigitalSignatureReport } from '../signature-inspection-status-BCUpfCQh.js';
|
|
2
2
|
export { D as DIGEST_ALGORITHM_TO_HASH, a as DIGEST_ALGORITHM_TO_WEB_CRYPTO, b as DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, c as DIGITAL_SIGNATURE_REL_TYPE, e as DigitalSignatureVerificationStatus, E as ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, f as ENTERPRISE_REQUIRE_REVOCATION_ENV, g as ENTERPRISE_REQUIRE_TIMESTAMP_ENV, h as ENTERPRISE_TRUST_ROOTS_FILE_ENV, i as ENTERPRISE_TRUST_ROOTS_PEM_ENV, O as OPC_RELATIONSHIP_TRANSFORM, j as OfficeSignatureReference, P as PPTX_VIEWER_MANIFEST_NS, S as SUPPORTED_XML_CANON_TRANSFORMS, n as SignatureDetail, o as SignatureDetailStatus, X as XMLDSIG_NS, s as XML_TRANSFORM_ENVELOPED_SIGNATURE, t as computeDetailStatus, u as computeDigestBase64WebCrypto, v as computeVerificationStatus, w as escapeXmlAttr, x as escapeXmlText, y as extractAllTagText, z as extractFirstTagText, A as extractTagAttribute, B as isValidBase64, F as normalizePartPath, G as resolveReferenceUriToPart } from '../signature-inspection-status-BCUpfCQh.js';
|
|
3
3
|
import JSZip from 'jszip';
|
|
4
4
|
|
|
@@ -88,16 +88,30 @@ declare function loadSigningMaterialFromBuffer(certificateBuffer: Uint8Array, ce
|
|
|
88
88
|
declare function pemCertificateToBase64(pem: string): string;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
* PKI validation utilities — certificate
|
|
91
|
+
* PKI validation utilities — PEM/fingerprint certificate helpers and
|
|
92
92
|
* timestamp-authority evaluation for OOXML digital signatures.
|
|
93
93
|
*
|
|
94
|
-
*
|
|
94
|
+
* OCSP revocation checking lives in `./ocsp.ts`.
|
|
95
|
+
*
|
|
96
|
+
* Node-only — depends on `node:crypto` and `node-forge`.
|
|
95
97
|
*/
|
|
96
98
|
|
|
97
99
|
/** Wrap a Base64-encoded DER certificate in PEM armour. */
|
|
98
100
|
declare function certPemFromBase64(certBase64: string): string | undefined;
|
|
99
101
|
/** SHA-256 fingerprint of a PEM certificate (lowercase hex, no colons). */
|
|
100
102
|
declare function certFingerprintSha256(certPem: string): string | undefined;
|
|
103
|
+
declare function evaluateTimestampAuthority(signatureXml: string): Promise<{
|
|
104
|
+
status: TimestampAuthorityStatus;
|
|
105
|
+
error?: string;
|
|
106
|
+
}>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* OCSP (Online Certificate Status Protocol) revocation checking for OOXML
|
|
110
|
+
* digital signature certificates.
|
|
111
|
+
*
|
|
112
|
+
* Node-only — depends on `node:crypto`, `node:http`, `node:https`, and `node-forge`.
|
|
113
|
+
*/
|
|
114
|
+
|
|
101
115
|
declare function extractOcspUrls(certPem: string): string[];
|
|
102
116
|
declare function buildOcspRequestDer(leafPem: string, issuerPem: string): Buffer | undefined;
|
|
103
117
|
declare function parseOcspResponseStatus(data: Buffer): CertificateRevocationStatus;
|
|
@@ -107,10 +121,6 @@ declare function evaluateCertificateRevocation(leafCertPem: string, issuerCertPe
|
|
|
107
121
|
checkedOcspUrls: string[];
|
|
108
122
|
checkedCrlUrls: string[];
|
|
109
123
|
}>;
|
|
110
|
-
declare function evaluateTimestampAuthority(signatureXml: string): Promise<{
|
|
111
|
-
status: TimestampAuthorityStatus;
|
|
112
|
-
error?: string;
|
|
113
|
-
}>;
|
|
114
124
|
|
|
115
125
|
/**
|
|
116
126
|
* Environment-based configuration for digital signature validation.
|