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.
@@ -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, C as CertificateRevocationStatus, T as TimestampAuthorityStatus, 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';
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 revocation (OCSP) and
91
+ * PKI validation utilities — PEM/fingerprint certificate helpers and
92
92
  * timestamp-authority evaluation for OOXML digital signatures.
93
93
  *
94
- * Node-only depends on `node:crypto`, `node:http`, `node:https`, and `node-forge`.
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, C as CertificateRevocationStatus, T as TimestampAuthorityStatus, 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';
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 revocation (OCSP) and
91
+ * PKI validation utilities — PEM/fingerprint certificate helpers and
92
92
  * timestamp-authority evaluation for OOXML digital signatures.
93
93
  *
94
- * Node-only depends on `node:crypto`, `node:http`, `node:https`, and `node-forge`.
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.