pptx-react-viewer 1.0.8 → 1.0.9
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/node_modules/emf-converter/package.json +1 -1
- package/node_modules/mtx-decompressor/package.json +1 -1
- package/node_modules/pptx-viewer-core/dist/index.d.mts +1 -1
- package/node_modules/pptx-viewer-core/dist/index.d.ts +1 -1
- package/node_modules/pptx-viewer-core/dist/index.js +7 -7
- package/node_modules/pptx-viewer-core/dist/index.mjs +7 -7
- package/node_modules/pptx-viewer-core/dist/{signature-inspection-status-DDKhc1bm.d.mts → signature-inspection-status-BcJSdOvb.d.mts} +8 -8
- package/node_modules/pptx-viewer-core/dist/{signature-inspection-status-DDKhc1bm.d.ts → signature-inspection-status-BcJSdOvb.d.ts} +8 -8
- package/node_modules/pptx-viewer-core/dist/signature-node/index.d.mts +8 -8
- package/node_modules/pptx-viewer-core/dist/signature-node/index.d.ts +8 -8
- package/node_modules/pptx-viewer-core/dist/signature-node/index.js +11 -11
- package/node_modules/pptx-viewer-core/dist/signature-node/index.mjs +10 -10
- package/node_modules/pptx-viewer-core/package.json +1 -1
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@ import { F as FindResult, M as MergeOptions } from './text-operations-Bo-WG-Z8.m
|
|
|
4
4
|
export { f as findText, m as mergePresentation, r as replaceText, a as replaceTextInSlide } from './text-operations-Bo-WG-Z8.mjs';
|
|
5
5
|
import { XMLParser, XMLBuilder } from 'fast-xml-parser';
|
|
6
6
|
import JSZip from 'jszip';
|
|
7
|
-
export { C as CertificateRevocationStatus, 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, d as DigitalSignatureReport, 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, L as LoadedSigningMaterial,
|
|
7
|
+
export { C as CertificateRevocationStatus, 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, d as DigitalSignatureReport, 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, L as LoadedSigningMaterial, O as OPC_RELATIONSHIP_TRANSFORM, j as OfficeSignatureReference, P as PPTX_VIEWER_MANIFEST_NS, k as ParsedReferenceTransform, R as ReferenceTransformResult, S as SUPPORTED_XML_CANON_TRANSFORMS, l as SignOptions, m as SignResult, n as SignatureDetail, o as SignatureDetailStatus, p as SignatureNodeCertificateInfo, q as SignatureReferenceCheck, r as SignatureValidationPolicy, T as TimestampAuthorityStatus, X as XMLDSIG_NS, s as XML_TRANSFORM_ENVELOPED_SIGNATURE, t as computeDetailStatus, u as computeDigestBase64WebCrypto, v as computeVerificationStatus, w as escapeXmlAttr, x as extractAllTagText, y as extractFirstTagText, z as extractTagAttribute, A as normalizePartPath, B as resolveReferenceUriToPart } from './signature-inspection-status-BcJSdOvb.mjs';
|
|
8
8
|
export { convertEmfToDataUrl, convertWmfToDataUrl } from 'emf-converter';
|
|
9
9
|
export { C as ConversionOptions, a as ConversionResult, D as DocumentConverter, F as FileSystemAdapter, M as MediaContext, P as PptxConverterOptions, b as PptxMarkdownConverter, S as SlideProcessor, c as SlideProcessorOptions, d as SvgExportOptions, e as SvgExporter, f as dataUrlToMediaBytes, g as deriveOutputPath, h as generateMediaFilename, i as getDirectory, n as normalizePath } from './SvgExporter-DqcmwxFu.mjs';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ import { F as FindResult, M as MergeOptions } from './text-operations-D0f1jred.j
|
|
|
4
4
|
export { f as findText, m as mergePresentation, r as replaceText, a as replaceTextInSlide } from './text-operations-D0f1jred.js';
|
|
5
5
|
import { XMLParser, XMLBuilder } from 'fast-xml-parser';
|
|
6
6
|
import JSZip from 'jszip';
|
|
7
|
-
export { C as CertificateRevocationStatus, 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, d as DigitalSignatureReport, 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, L as LoadedSigningMaterial,
|
|
7
|
+
export { C as CertificateRevocationStatus, 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, d as DigitalSignatureReport, 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, L as LoadedSigningMaterial, O as OPC_RELATIONSHIP_TRANSFORM, j as OfficeSignatureReference, P as PPTX_VIEWER_MANIFEST_NS, k as ParsedReferenceTransform, R as ReferenceTransformResult, S as SUPPORTED_XML_CANON_TRANSFORMS, l as SignOptions, m as SignResult, n as SignatureDetail, o as SignatureDetailStatus, p as SignatureNodeCertificateInfo, q as SignatureReferenceCheck, r as SignatureValidationPolicy, T as TimestampAuthorityStatus, X as XMLDSIG_NS, s as XML_TRANSFORM_ENVELOPED_SIGNATURE, t as computeDetailStatus, u as computeDigestBase64WebCrypto, v as computeVerificationStatus, w as escapeXmlAttr, x as extractAllTagText, y as extractFirstTagText, z as extractTagAttribute, A as normalizePartPath, B as resolveReferenceUriToPart } from './signature-inspection-status-BcJSdOvb.js';
|
|
8
8
|
export { convertEmfToDataUrl, convertWmfToDataUrl } from 'emf-converter';
|
|
9
9
|
export { C as ConversionOptions, a as ConversionResult, D as DocumentConverter, F as FileSystemAdapter, M as MediaContext, P as PptxConverterOptions, b as PptxMarkdownConverter, S as SlideProcessor, c as SlideProcessorOptions, d as SvgExportOptions, e as SvgExporter, f as dataUrlToMediaBytes, g as deriveOutputPath, h as generateMediaFilename, i as getDirectory, n as normalizePath } from './SvgExporter-BZJguJbp.js';
|
|
10
10
|
|
|
@@ -10169,7 +10169,7 @@ ${nextText}` : nextText;
|
|
|
10169
10169
|
// src/core/utils/signature-constants.ts
|
|
10170
10170
|
var DIGITAL_SIGNATURE_ORIGIN_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
10171
10171
|
var DIGITAL_SIGNATURE_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
10172
|
-
var
|
|
10172
|
+
var PPTX_VIEWER_MANIFEST_NS = "urn:pptx-viewer:ooxml-signature:v1";
|
|
10173
10173
|
var XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
10174
10174
|
var OPC_RELATIONSHIP_TRANSFORM = "http://schemas.openxmlformats.org/package/2006/RelationshipTransform";
|
|
10175
10175
|
var XML_TRANSFORM_ENVELOPED_SIGNATURE = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
|
|
@@ -10180,11 +10180,11 @@ var SUPPORTED_XML_CANON_TRANSFORMS = /* @__PURE__ */ new Set([
|
|
|
10180
10180
|
"http://www.w3.org/2001/10/xml-exc-c14n#WithComments",
|
|
10181
10181
|
XML_TRANSFORM_ENVELOPED_SIGNATURE
|
|
10182
10182
|
]);
|
|
10183
|
-
var ENTERPRISE_TRUST_ROOTS_FILE_ENV = "
|
|
10184
|
-
var ENTERPRISE_TRUST_ROOTS_PEM_ENV = "
|
|
10185
|
-
var ENTERPRISE_REQUIRE_REVOCATION_ENV = "
|
|
10186
|
-
var ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "
|
|
10187
|
-
var ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "
|
|
10183
|
+
var ENTERPRISE_TRUST_ROOTS_FILE_ENV = "PPTX_VIEWER_TRUST_ROOTS_FILE";
|
|
10184
|
+
var ENTERPRISE_TRUST_ROOTS_PEM_ENV = "PPTX_VIEWER_TRUST_ROOTS_PEM";
|
|
10185
|
+
var ENTERPRISE_REQUIRE_REVOCATION_ENV = "PPTX_VIEWER_REQUIRE_REVOCATION_CHECK";
|
|
10186
|
+
var ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "PPTX_VIEWER_FAIL_ON_REVOCATION_UNKNOWN";
|
|
10187
|
+
var ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "PPTX_VIEWER_REQUIRE_TIMESTAMP";
|
|
10188
10188
|
var DIGEST_ALGORITHM_TO_HASH = {
|
|
10189
10189
|
"http://www.w3.org/2000/09/xmldsig#sha1": "sha1",
|
|
10190
10190
|
"http://www.w3.org/2001/04/xmlenc#sha256": "sha256",
|
|
@@ -49468,7 +49468,6 @@ exports.GroupBuilder = GroupBuilder;
|
|
|
49468
49468
|
exports.ImageBuilder = ImageBuilder;
|
|
49469
49469
|
exports.IncorrectPasswordError = IncorrectPasswordError;
|
|
49470
49470
|
exports.MIN_ELEMENT_SIZE = MIN_ELEMENT_SIZE;
|
|
49471
|
-
exports.MYCLAWASSIST_MANIFEST_NS = MYCLAWASSIST_MANIFEST_NS;
|
|
49472
49471
|
exports.MediaBuilder = MediaBuilder;
|
|
49473
49472
|
exports.MediaContext = MediaContext;
|
|
49474
49473
|
exports.MediaGraphicFrameXmlFactory = MediaGraphicFrameXmlFactory;
|
|
@@ -49481,6 +49480,7 @@ exports.PANOSE_MONOSPACE_PROPORTION = PANOSE_MONOSPACE_PROPORTION;
|
|
|
49481
49480
|
exports.PANOSE_SANS_SERIF_STYLES = PANOSE_SANS_SERIF_STYLES;
|
|
49482
49481
|
exports.PANOSE_WEIGHT_MAP = PANOSE_WEIGHT_MAP;
|
|
49483
49482
|
exports.POWERPOINT_PRESENCE_KEY = POWERPOINT_PRESENCE_KEY;
|
|
49483
|
+
exports.PPTX_VIEWER_MANIFEST_NS = PPTX_VIEWER_MANIFEST_NS;
|
|
49484
49484
|
exports.PRESET_COLOR_MAP = PRESET_COLOR_MAP;
|
|
49485
49485
|
exports.PRESET_SHAPE_CATEGORY_LABELS = PRESET_SHAPE_CATEGORY_LABELS;
|
|
49486
49486
|
exports.PRESET_SHAPE_CLIP_PATHS = PRESET_SHAPE_CLIP_PATHS;
|
|
@@ -10163,7 +10163,7 @@ ${nextText}` : nextText;
|
|
|
10163
10163
|
// src/core/utils/signature-constants.ts
|
|
10164
10164
|
var DIGITAL_SIGNATURE_ORIGIN_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
10165
10165
|
var DIGITAL_SIGNATURE_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
10166
|
-
var
|
|
10166
|
+
var PPTX_VIEWER_MANIFEST_NS = "urn:pptx-viewer:ooxml-signature:v1";
|
|
10167
10167
|
var XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
10168
10168
|
var OPC_RELATIONSHIP_TRANSFORM = "http://schemas.openxmlformats.org/package/2006/RelationshipTransform";
|
|
10169
10169
|
var XML_TRANSFORM_ENVELOPED_SIGNATURE = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
|
|
@@ -10174,11 +10174,11 @@ var SUPPORTED_XML_CANON_TRANSFORMS = /* @__PURE__ */ new Set([
|
|
|
10174
10174
|
"http://www.w3.org/2001/10/xml-exc-c14n#WithComments",
|
|
10175
10175
|
XML_TRANSFORM_ENVELOPED_SIGNATURE
|
|
10176
10176
|
]);
|
|
10177
|
-
var ENTERPRISE_TRUST_ROOTS_FILE_ENV = "
|
|
10178
|
-
var ENTERPRISE_TRUST_ROOTS_PEM_ENV = "
|
|
10179
|
-
var ENTERPRISE_REQUIRE_REVOCATION_ENV = "
|
|
10180
|
-
var ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "
|
|
10181
|
-
var ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "
|
|
10177
|
+
var ENTERPRISE_TRUST_ROOTS_FILE_ENV = "PPTX_VIEWER_TRUST_ROOTS_FILE";
|
|
10178
|
+
var ENTERPRISE_TRUST_ROOTS_PEM_ENV = "PPTX_VIEWER_TRUST_ROOTS_PEM";
|
|
10179
|
+
var ENTERPRISE_REQUIRE_REVOCATION_ENV = "PPTX_VIEWER_REQUIRE_REVOCATION_CHECK";
|
|
10180
|
+
var ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "PPTX_VIEWER_FAIL_ON_REVOCATION_UNKNOWN";
|
|
10181
|
+
var ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "PPTX_VIEWER_REQUIRE_TIMESTAMP";
|
|
10182
10182
|
var DIGEST_ALGORITHM_TO_HASH = {
|
|
10183
10183
|
"http://www.w3.org/2000/09/xmldsig#sha1": "sha1",
|
|
10184
10184
|
"http://www.w3.org/2001/04/xmlenc#sha256": "sha256",
|
|
@@ -49425,4 +49425,4 @@ var SvgExporter = class _SvgExporter {
|
|
|
49425
49425
|
}
|
|
49426
49426
|
};
|
|
49427
49427
|
|
|
49428
|
-
export { COLOR_MAP_ALIAS_KEYS, CONNECTOR_ARROW_OPTIONS, CONNECTOR_GEOMETRY_OPTIONS, ChartBuilder, ConnectorBuilder, ConnectorXmlFactory, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_COLOR_MAP, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_SCHEME_COLOR_MAP, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, DataIntegrityError, DocumentConverter, EMU_PER_INCH, EMU_PER_PIXEL2 as EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, EncryptedFileError, FONT_SUBSTITUTION_MAP, FreeformPathBuilder, GroupBuilder, ImageBuilder, IncorrectPasswordError, MIN_ELEMENT_SIZE,
|
|
49428
|
+
export { COLOR_MAP_ALIAS_KEYS, CONNECTOR_ARROW_OPTIONS, CONNECTOR_GEOMETRY_OPTIONS, ChartBuilder, ConnectorBuilder, ConnectorXmlFactory, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_COLOR_MAP, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_SCHEME_COLOR_MAP, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, DataIntegrityError, DocumentConverter, EMU_PER_INCH, EMU_PER_PIXEL2 as EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, EncryptedFileError, FONT_SUBSTITUTION_MAP, FreeformPathBuilder, GroupBuilder, ImageBuilder, IncorrectPasswordError, MIN_ELEMENT_SIZE, MediaBuilder, MediaContext, MediaGraphicFrameXmlFactory, OPC_RELATIONSHIP_TRANSFORM, Ole2ParseError, P14_GUIDE_URI, P15_GUIDE_URI, PANOSE_FAMILY_MAP, PANOSE_MONOSPACE_PROPORTION, PANOSE_SANS_SERIF_STYLES, PANOSE_WEIGHT_MAP, POWERPOINT_PRESENCE_KEY, PPTX_VIEWER_MANIFEST_NS, PRESET_COLOR_MAP, PRESET_SHAPE_CATEGORY_LABELS, PRESET_SHAPE_CLIP_PATHS, PRESET_SHAPE_DEFINITIONS, PRESET_TO_OOXML, PictureXmlFactory, PptxAnimationWriteService, PptxColorStyleCodec, PptxCommentAuthorsXmlFactory, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxConnectorParser, PptxContentTypesBuilder, PptxDocumentPropertiesUpdater, PptxEditorAnimationService, PptxElementTransformUpdater, PptxElementXmlBuilder, PptxGraphicFrameParser, PptxHandler, PptxHandlerRuntime75 as PptxHandlerRuntime, PptxHandlerRuntimeFactory, PptxLoadDataBuilder, PptxMarkdownConverter, PptxMediaDataParser, PptxNativeAnimationService, PptxPresentationSaveBuilder, PptxPresentationSlidesReconciler, PptxRuntimeDependencyFactory, PptxSaveConstantsFactory, PptxSaveState as PptxSaveSession, PptxSaveStateBuilder as PptxSaveSessionBuilder, PptxSaveState, PptxSaveStateBuilder, PptxShapeIdValidator, PptxShapeStyleExtractor, PptxSlideBackgroundBuilder, PptxSlideBuilder, PptxSlideCommentPartWriter, PptxSlideCommentsXmlFactory, PptxSlideElementsBuilder, PptxSlideLoaderService, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, PptxSlideRelationshipRegistry, PptxSlideTransitionService, PptxTableDataParser, PptxTemplateBackgroundService, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, Presentation, PresentationBuilder, SHAPE_TREE_ELEMENT_TAGS, STROKE_DASH_OPTIONS, SUPPORTED_XML_CANON_TRANSFORMS, SWITCHABLE_LAYOUT_TYPES, SYSTEM_COLOR_MAP, ShapeBuilder, SlideBuilder, SlideProcessor, SlideSizes, SvgExporter, THEME_COLOR_SCHEME_KEYS, THEME_PRESETS, TRANSITION_VALID_DIRECTIONS, TableBuilder, TextBuilder, TextShapeXmlFactory, ThemePresets, VML_SHAPE_TAGS, XMLDSIG_NS, XML_TRANSFORM_ENVELOPED_SIGNATURE, addChartCategory, addChartSeries, addSection, addSmartArtNode, addSmartArtNodeAsChild, applyDrawingColorTransforms, applyKinsokuToXml, applyTemplate, applyThemeToData, areNamespacesSupported, buildCalloutLeaderLineSvgPath, buildClrMapOverrideXml, buildFontFamilyString, buildGuideListExtension, buildLinkedTextBoxChains, buildOle2, buildSingleEffectNode, buildThemeColorMap, catmullRomToBezier, chartDataAddCategory, chartDataAddSeries, chartDataChangeType, chartDataRemoveCategory, chartDataRemoveSeries, chartDataUpdatePoint, clampUnitInterval, classifyPanose, cloneElement, cloneShapeStyle, cloneSlide, cloneTemplateElementsBySlideId, cloneTextStyle, cloneXmlObject, cm, cmToEmu, colorWithOpacity, combineShapes, computeCycleLayout, computeDetailStatus, computeDigestBase64 as computeDigestBase64WebCrypto, computeHierarchyLayout, computeLinearLayout, computeMatrixLayout, computePyramidLayout, computeSmartArtLayout, computeSnakeLayout, computeVerificationStatus, convertEmfToDataUrl, convertWmfToDataUrl, convertXmlToStrict, createArrayBufferCopy, createBuiltinVariables, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createEditorId, createFreeformElement, createGroupElement, createImageElement, createLayout, createLayouts, createMediaElement, createModifyVerifier, createPptxSaveConstants, createShapeElement, createTableElement, createTemplateConnectorRawXml, createTemplateShapeRawXml, createTextElement, createUniformTextSegments, dataUrlToMediaBytes, decomposeSmartArt, decryptPptx, demoteSmartArtNode, deobfuscateFont, deriveOutputPath, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, diffPresentations, diffSlides, distributeSegmentsAcrossChain, douglasPeucker, duplicateElement, duplicateSlide, elementActionToPptxAction, elementHasAction, emuToPixels, encryptPptx, ensureArrayValue, escapeXmlAttr, estimateTextBoxCapacity, evaluateGeometryPaths, evaluateGuides, extractAllTagText, extractFirstTagText, extractGuidFromPartName, extractModel3DTransform, extractTagAttribute, fetchUrlToBytes, findLayoutByName, findLayoutByType, findPlaceholders, findText, formatCommentTimestamp, fragmentShapes, generateFontGuid, generateLayoutXml, generateMediaFilename, getCalloutLeaderLineGeometry, getCalloutTier, getCalloutViewBoxBounds, getCommentMarkerPosition, getConnectorAdjustment, getConnectorPathGeometry, getCssBorderDashStyle, getDirectory, getElementLabel, getElementTextContent, getElementTransform, getImageMaskStyle, getLinkedTextBoxSegments, getOleObjectTypeLabel, getPanoseWeight, getPresetShapeClipPath, getRoundRectRadiusPx, getSectionForSlide, getSectionSlideRange, getShapeClipPath, getShapeType, getSignaturePathsToStrip, getSubstituteFontFamily, getSubstituteFonts, getSupportedNamespaces, getSvgStrokeDasharray, getTextCompensationTransform, getThemePreset, getZoomElements, getZoomTargetSlideIndexes, guidToKey, guideEmuToPx, guidePxToEmu, hasDirectSubstitution, hasNonTrivialOverride, hasShapeProperties, hasTextProperties, hexToRgbChannels, hslToRgb, inches, inchesToEmu, inferOleExtensionFromTarget, interpolateShapeGeometry, intersectPolygons, intersectShapes, intersectSvgPaths, isCalloutShape, isConnectorElement, isEditableTextElement, isImageLikeElement, isInkElement, isNamespaceSupported, isShapeElement, isStrictNamespaceUri, isSummaryZoomSlide, isSwitchableLayoutType, isTemplateElement, isTextElement, isTransitionalNamespaceUri, isZoomElement, isZoomElement2 as isZoomElementUtil, layoutEngineShapesToDrawingShapes, mailMerge, mergePresentation, mergeShapes, mergeThemeColorOverride, mm, moveSlidesToSection, normalizeHexColor, normalizeNamespaceUri, normalizePartPath, normalizePath, normalizeStrictXml, normalizeStrokeDashType, obfuscateFont, ooxmlArcToSvg, parseActiveXControlsFromSlide, parseAdjustmentValues, parseBodyPrBooleanAttrs, parseChart3DSurfaces, parseChartAxes, parseCondition, parseConditionList, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDrawingColor, parseDrawingColorChoice, parseDrawingColorOpacity, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingPercent, parseEmbeddedXlsx, parseGuideDefinitions, parseKinsoku, parseLayoutDefinition, parseLineStyle, parseMarker, parseOle2, parsePanoseBytes, parsePanoseString, parsePresentationDrawingGuides, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesExplosion, parseSeriesTrendlines, parseShapeProps, parseSignatureXml, parseSlideDrawingGuides, parseSvgPath, parseVmlElement, parseVmlElements, pixelsToEmu, polygonsToSvgPath, pptxActionToElementAction, promoteSmartArtNode, pt, reResolveSlideColors, readFileAsDataUrl, reflowSmartArtLayout, removeChartCategory, removeChartSeries, removeSection, removeSmartArtNode, reorderSections, reorderSmartArtNode, reorderSmartArtNodeToIndex, repairPptx, replaceShapeGeometry, replaceText, replaceTextInSlide, replaceWithCustomGeometry, resetCloneIdCounter, resetDecomposeCounter, resetIdCounter, resetSectionIdCounter, resetSmartArtEditCounter, resolveCoordinate, resolveModel3DMimeType, resolveReferenceUriToPart, rgbToHsl, selectAlternateContentBranch, serializeCondition, serializeConditionList, serializeSvgPath, setChartCategories, setChartGrouping, setChartTitle, setChartType, shouldRenderFallbackLabel, shouldReturnToZoomSlide, subtractPolygons, subtractShapes, subtractSvgPaths, svgPathToPolygons, switchSmartArtLayout, toHex, toStrictNamespaceUri, unionPolygons, unionShapes, unionSvgPaths, unwrapAlternateContent, updateChartDataPoint, updateChartSeriesValues, updateSmartArtNodeText, validatePptx, verifyModifyPassword, verifyPassword, verifySignatureDigests, writeBodyPrBooleanAttrs };
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
declare const DIGITAL_SIGNATURE_ORIGIN_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
10
10
|
/** The OOXML relationship type for individual signature parts. */
|
|
11
11
|
declare const DIGITAL_SIGNATURE_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
12
|
-
/** Custom
|
|
13
|
-
declare const
|
|
12
|
+
/** Custom pptx-viewer manifest namespace for extended signature references. */
|
|
13
|
+
declare const PPTX_VIEWER_MANIFEST_NS = "urn:pptx-viewer:ooxml-signature:v1";
|
|
14
14
|
/** W3C XML Digital Signature namespace. */
|
|
15
15
|
declare const XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
16
16
|
/** OPC relationship transform algorithm URI. */
|
|
@@ -20,15 +20,15 @@ declare const XML_TRANSFORM_ENVELOPED_SIGNATURE = "http://www.w3.org/2000/09/xml
|
|
|
20
20
|
/** Set of supported XML canonicalization transform algorithm URIs. */
|
|
21
21
|
declare const SUPPORTED_XML_CANON_TRANSFORMS: Set<string>;
|
|
22
22
|
/** Environment variable: path to file containing enterprise trust root PEM certificates. */
|
|
23
|
-
declare const ENTERPRISE_TRUST_ROOTS_FILE_ENV = "
|
|
23
|
+
declare const ENTERPRISE_TRUST_ROOTS_FILE_ENV = "PPTX_VIEWER_TRUST_ROOTS_FILE";
|
|
24
24
|
/** Environment variable: inline PEM trust roots. */
|
|
25
|
-
declare const ENTERPRISE_TRUST_ROOTS_PEM_ENV = "
|
|
25
|
+
declare const ENTERPRISE_TRUST_ROOTS_PEM_ENV = "PPTX_VIEWER_TRUST_ROOTS_PEM";
|
|
26
26
|
/** Environment variable: require revocation check. */
|
|
27
|
-
declare const ENTERPRISE_REQUIRE_REVOCATION_ENV = "
|
|
27
|
+
declare const ENTERPRISE_REQUIRE_REVOCATION_ENV = "PPTX_VIEWER_REQUIRE_REVOCATION_CHECK";
|
|
28
28
|
/** Environment variable: fail on unknown revocation status. */
|
|
29
|
-
declare const ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "
|
|
29
|
+
declare const ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "PPTX_VIEWER_FAIL_ON_REVOCATION_UNKNOWN";
|
|
30
30
|
/** Environment variable: require timestamp authority. */
|
|
31
|
-
declare const ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "
|
|
31
|
+
declare const ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "PPTX_VIEWER_REQUIRE_TIMESTAMP";
|
|
32
32
|
/**
|
|
33
33
|
* Mapping from XML Digital Signature digest algorithm URIs to hash function names.
|
|
34
34
|
* Used by Node-only code with `node:crypto` (lowercase names).
|
|
@@ -206,4 +206,4 @@ declare function computeDetailStatus(detail: Pick<SignatureDetail, 'signatureVal
|
|
|
206
206
|
*/
|
|
207
207
|
declare function computeVerificationStatus(details: SignatureDetail[]): DigitalSignatureReport['verificationStatus'];
|
|
208
208
|
|
|
209
|
-
export {
|
|
209
|
+
export { normalizePartPath as A, resolveReferenceUriToPart as B, type CertificateRevocationStatus as C, DIGEST_ALGORITHM_TO_HASH as D, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV as E, type LoadedSigningMaterial as L, OPC_RELATIONSHIP_TRANSFORM as O, PPTX_VIEWER_MANIFEST_NS as P, type ReferenceTransformResult as R, SUPPORTED_XML_CANON_TRANSFORMS as S, type TimestampAuthorityStatus as T, XMLDSIG_NS as X, DIGEST_ALGORITHM_TO_WEB_CRYPTO as a, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE as b, DIGITAL_SIGNATURE_REL_TYPE as c, type DigitalSignatureReport as d, type DigitalSignatureVerificationStatus as e, ENTERPRISE_REQUIRE_REVOCATION_ENV as f, ENTERPRISE_REQUIRE_TIMESTAMP_ENV as g, ENTERPRISE_TRUST_ROOTS_FILE_ENV as h, ENTERPRISE_TRUST_ROOTS_PEM_ENV as i, type OfficeSignatureReference as j, type ParsedReferenceTransform as k, type SignOptions as l, type SignResult as m, type SignatureDetail as n, type SignatureDetailStatus as o, type SignatureCertificateInfo as p, type SignatureReferenceCheck as q, type SignatureValidationPolicy as r, XML_TRANSFORM_ENVELOPED_SIGNATURE as s, computeDetailStatus as t, computeDigestBase64 as u, computeVerificationStatus as v, escapeXmlAttr as w, extractAllTagText as x, extractFirstTagText as y, extractTagAttribute as z };
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
declare const DIGITAL_SIGNATURE_ORIGIN_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
10
10
|
/** The OOXML relationship type for individual signature parts. */
|
|
11
11
|
declare const DIGITAL_SIGNATURE_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
12
|
-
/** Custom
|
|
13
|
-
declare const
|
|
12
|
+
/** Custom pptx-viewer manifest namespace for extended signature references. */
|
|
13
|
+
declare const PPTX_VIEWER_MANIFEST_NS = "urn:pptx-viewer:ooxml-signature:v1";
|
|
14
14
|
/** W3C XML Digital Signature namespace. */
|
|
15
15
|
declare const XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
16
16
|
/** OPC relationship transform algorithm URI. */
|
|
@@ -20,15 +20,15 @@ declare const XML_TRANSFORM_ENVELOPED_SIGNATURE = "http://www.w3.org/2000/09/xml
|
|
|
20
20
|
/** Set of supported XML canonicalization transform algorithm URIs. */
|
|
21
21
|
declare const SUPPORTED_XML_CANON_TRANSFORMS: Set<string>;
|
|
22
22
|
/** Environment variable: path to file containing enterprise trust root PEM certificates. */
|
|
23
|
-
declare const ENTERPRISE_TRUST_ROOTS_FILE_ENV = "
|
|
23
|
+
declare const ENTERPRISE_TRUST_ROOTS_FILE_ENV = "PPTX_VIEWER_TRUST_ROOTS_FILE";
|
|
24
24
|
/** Environment variable: inline PEM trust roots. */
|
|
25
|
-
declare const ENTERPRISE_TRUST_ROOTS_PEM_ENV = "
|
|
25
|
+
declare const ENTERPRISE_TRUST_ROOTS_PEM_ENV = "PPTX_VIEWER_TRUST_ROOTS_PEM";
|
|
26
26
|
/** Environment variable: require revocation check. */
|
|
27
|
-
declare const ENTERPRISE_REQUIRE_REVOCATION_ENV = "
|
|
27
|
+
declare const ENTERPRISE_REQUIRE_REVOCATION_ENV = "PPTX_VIEWER_REQUIRE_REVOCATION_CHECK";
|
|
28
28
|
/** Environment variable: fail on unknown revocation status. */
|
|
29
|
-
declare const ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "
|
|
29
|
+
declare const ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "PPTX_VIEWER_FAIL_ON_REVOCATION_UNKNOWN";
|
|
30
30
|
/** Environment variable: require timestamp authority. */
|
|
31
|
-
declare const ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "
|
|
31
|
+
declare const ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "PPTX_VIEWER_REQUIRE_TIMESTAMP";
|
|
32
32
|
/**
|
|
33
33
|
* Mapping from XML Digital Signature digest algorithm URIs to hash function names.
|
|
34
34
|
* Used by Node-only code with `node:crypto` (lowercase names).
|
|
@@ -206,4 +206,4 @@ declare function computeDetailStatus(detail: Pick<SignatureDetail, 'signatureVal
|
|
|
206
206
|
*/
|
|
207
207
|
declare function computeVerificationStatus(details: SignatureDetail[]): DigitalSignatureReport['verificationStatus'];
|
|
208
208
|
|
|
209
|
-
export {
|
|
209
|
+
export { normalizePartPath as A, resolveReferenceUriToPart as B, type CertificateRevocationStatus as C, DIGEST_ALGORITHM_TO_HASH as D, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV as E, type LoadedSigningMaterial as L, OPC_RELATIONSHIP_TRANSFORM as O, PPTX_VIEWER_MANIFEST_NS as P, type ReferenceTransformResult as R, SUPPORTED_XML_CANON_TRANSFORMS as S, type TimestampAuthorityStatus as T, XMLDSIG_NS as X, DIGEST_ALGORITHM_TO_WEB_CRYPTO as a, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE as b, DIGITAL_SIGNATURE_REL_TYPE as c, type DigitalSignatureReport as d, type DigitalSignatureVerificationStatus as e, ENTERPRISE_REQUIRE_REVOCATION_ENV as f, ENTERPRISE_REQUIRE_TIMESTAMP_ENV as g, ENTERPRISE_TRUST_ROOTS_FILE_ENV as h, ENTERPRISE_TRUST_ROOTS_PEM_ENV as i, type OfficeSignatureReference as j, type ParsedReferenceTransform as k, type SignOptions as l, type SignResult as m, type SignatureDetail as n, type SignatureDetailStatus as o, type SignatureCertificateInfo as p, type SignatureReferenceCheck as q, type SignatureValidationPolicy as r, XML_TRANSFORM_ENVELOPED_SIGNATURE as s, computeDetailStatus as t, computeDigestBase64 as u, computeVerificationStatus as v, escapeXmlAttr as w, extractAllTagText as x, extractFirstTagText as y, extractTagAttribute as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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-BcJSdOvb.mjs';
|
|
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 extractAllTagText, y as extractFirstTagText, z as extractTagAttribute, A as normalizePartPath, B as resolveReferenceUriToPart } from '../signature-inspection-status-BcJSdOvb.mjs';
|
|
3
3
|
import JSZip from 'jszip';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -89,8 +89,8 @@ declare function extractPemCertificatesFromText(text: string): string[];
|
|
|
89
89
|
/**
|
|
90
90
|
* Load enterprise trust root certificates from environment-configured sources.
|
|
91
91
|
*
|
|
92
|
-
* Checks `
|
|
93
|
-
* `
|
|
92
|
+
* Checks `PPTX_VIEWER_TRUST_ROOTS_PEM` for inline PEM data and
|
|
93
|
+
* `PPTX_VIEWER_TRUST_ROOTS_FILE` for file paths (semicolon/comma-separated).
|
|
94
94
|
*/
|
|
95
95
|
declare function loadEnterpriseTrustRoots(): Promise<string[]>;
|
|
96
96
|
/**
|
|
@@ -131,9 +131,9 @@ declare function computeDigestBase64(content: Uint8Array, digestAlgorithmUri: st
|
|
|
131
131
|
*/
|
|
132
132
|
declare function buildReferenceChecksFromSignatureXml(zip: JSZip, signatureXml: string): Promise<SignatureReferenceCheck[]>;
|
|
133
133
|
/**
|
|
134
|
-
* Verify references from a
|
|
134
|
+
* Verify references from a PptxViewer manifest extension in the signature XML.
|
|
135
135
|
*/
|
|
136
|
-
declare function
|
|
136
|
+
declare function buildReferenceChecksFromPptxViewerManifest(zip: JSZip, signatureXml: string): Promise<SignatureReferenceCheck[]>;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* PPTX digital signature creation.
|
|
@@ -163,7 +163,7 @@ declare function signPptxWithCertificate(data: Uint8Array, certificateBuffer: Ui
|
|
|
163
163
|
* Inspect all digital signatures in a PPTX package.
|
|
164
164
|
*
|
|
165
165
|
* Performs full cryptographic verification including:
|
|
166
|
-
* - Reference digest checks (standard XML-DSig +
|
|
166
|
+
* - Reference digest checks (standard XML-DSig + PptxViewer manifest)
|
|
167
167
|
* - Signature value verification (RSA-SHA256/384/512)
|
|
168
168
|
* - Certificate chain validation against system + enterprise trust roots
|
|
169
169
|
* - OCSP revocation checking
|
|
@@ -174,4 +174,4 @@ declare function signPptxWithCertificate(data: Uint8Array, certificateBuffer: Ui
|
|
|
174
174
|
*/
|
|
175
175
|
declare function inspectPptxDigitalSignatures(data: Uint8Array): Promise<DigitalSignatureReport>;
|
|
176
176
|
|
|
177
|
-
export { CertificateRevocationStatus, DigitalSignatureReport, LoadedSigningMaterial, ParsedReferenceTransform, ReferenceTransformResult, SignOptions, SignResult, SignatureCertificateInfo, SignatureReferenceCheck, SignatureValidationPolicy, TimestampAuthorityStatus, applyReferenceTransforms, buildOcspRequestDer,
|
|
177
|
+
export { CertificateRevocationStatus, DigitalSignatureReport, LoadedSigningMaterial, ParsedReferenceTransform, ReferenceTransformResult, SignOptions, SignResult, SignatureCertificateInfo, SignatureReferenceCheck, SignatureValidationPolicy, TimestampAuthorityStatus, applyReferenceTransforms, buildOcspRequestDer, buildReferenceChecksFromPptxViewerManifest, buildReferenceChecksFromSignatureXml, canonicalizeNode, canonicalizeSignedInfoXml, certFingerprintSha256, certPemFromBase64, certificateInfoFromBase64, computeDigestBase64, evaluateCertificateRevocation, evaluateTimestampAuthority, extractOcspUrls, extractPemCertificatesFromText, extractReferenceTransforms, getFirstDescendantElementByLocalName, getNodeLocalName, getSignatureValidationPolicy, inspectPptxDigitalSignatures, loadEnterpriseTrustRoots, loadSigningMaterialFromBuffer, parseOcspResponseStatus, pemCertificateToBase64, signPptxWithCertificate, validateCertificateChain, verifySignatureValue };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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-BcJSdOvb.js';
|
|
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 extractAllTagText, y as extractFirstTagText, z as extractTagAttribute, A as normalizePartPath, B as resolveReferenceUriToPart } from '../signature-inspection-status-BcJSdOvb.js';
|
|
3
3
|
import JSZip from 'jszip';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -89,8 +89,8 @@ declare function extractPemCertificatesFromText(text: string): string[];
|
|
|
89
89
|
/**
|
|
90
90
|
* Load enterprise trust root certificates from environment-configured sources.
|
|
91
91
|
*
|
|
92
|
-
* Checks `
|
|
93
|
-
* `
|
|
92
|
+
* Checks `PPTX_VIEWER_TRUST_ROOTS_PEM` for inline PEM data and
|
|
93
|
+
* `PPTX_VIEWER_TRUST_ROOTS_FILE` for file paths (semicolon/comma-separated).
|
|
94
94
|
*/
|
|
95
95
|
declare function loadEnterpriseTrustRoots(): Promise<string[]>;
|
|
96
96
|
/**
|
|
@@ -131,9 +131,9 @@ declare function computeDigestBase64(content: Uint8Array, digestAlgorithmUri: st
|
|
|
131
131
|
*/
|
|
132
132
|
declare function buildReferenceChecksFromSignatureXml(zip: JSZip, signatureXml: string): Promise<SignatureReferenceCheck[]>;
|
|
133
133
|
/**
|
|
134
|
-
* Verify references from a
|
|
134
|
+
* Verify references from a PptxViewer manifest extension in the signature XML.
|
|
135
135
|
*/
|
|
136
|
-
declare function
|
|
136
|
+
declare function buildReferenceChecksFromPptxViewerManifest(zip: JSZip, signatureXml: string): Promise<SignatureReferenceCheck[]>;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* PPTX digital signature creation.
|
|
@@ -163,7 +163,7 @@ declare function signPptxWithCertificate(data: Uint8Array, certificateBuffer: Ui
|
|
|
163
163
|
* Inspect all digital signatures in a PPTX package.
|
|
164
164
|
*
|
|
165
165
|
* Performs full cryptographic verification including:
|
|
166
|
-
* - Reference digest checks (standard XML-DSig +
|
|
166
|
+
* - Reference digest checks (standard XML-DSig + PptxViewer manifest)
|
|
167
167
|
* - Signature value verification (RSA-SHA256/384/512)
|
|
168
168
|
* - Certificate chain validation against system + enterprise trust roots
|
|
169
169
|
* - OCSP revocation checking
|
|
@@ -174,4 +174,4 @@ declare function signPptxWithCertificate(data: Uint8Array, certificateBuffer: Ui
|
|
|
174
174
|
*/
|
|
175
175
|
declare function inspectPptxDigitalSignatures(data: Uint8Array): Promise<DigitalSignatureReport>;
|
|
176
176
|
|
|
177
|
-
export { CertificateRevocationStatus, DigitalSignatureReport, LoadedSigningMaterial, ParsedReferenceTransform, ReferenceTransformResult, SignOptions, SignResult, SignatureCertificateInfo, SignatureReferenceCheck, SignatureValidationPolicy, TimestampAuthorityStatus, applyReferenceTransforms, buildOcspRequestDer,
|
|
177
|
+
export { CertificateRevocationStatus, DigitalSignatureReport, LoadedSigningMaterial, ParsedReferenceTransform, ReferenceTransformResult, SignOptions, SignResult, SignatureCertificateInfo, SignatureReferenceCheck, SignatureValidationPolicy, TimestampAuthorityStatus, applyReferenceTransforms, buildOcspRequestDer, buildReferenceChecksFromPptxViewerManifest, buildReferenceChecksFromSignatureXml, canonicalizeNode, canonicalizeSignedInfoXml, certFingerprintSha256, certPemFromBase64, certificateInfoFromBase64, computeDigestBase64, evaluateCertificateRevocation, evaluateTimestampAuthority, extractOcspUrls, extractPemCertificatesFromText, extractReferenceTransforms, getFirstDescendantElementByLocalName, getNodeLocalName, getSignatureValidationPolicy, inspectPptxDigitalSignatures, loadEnterpriseTrustRoots, loadSigningMaterialFromBuffer, parseOcspResponseStatus, pemCertificateToBase64, signPptxWithCertificate, validateCertificateChain, verifySignatureValue };
|
|
@@ -25,7 +25,7 @@ var JSZip__default = /*#__PURE__*/_interopDefault(JSZip);
|
|
|
25
25
|
// src/core/utils/signature-constants.ts
|
|
26
26
|
var DIGITAL_SIGNATURE_ORIGIN_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
27
27
|
var DIGITAL_SIGNATURE_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
28
|
-
var
|
|
28
|
+
var PPTX_VIEWER_MANIFEST_NS = "urn:pptx-viewer:ooxml-signature:v1";
|
|
29
29
|
var XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
30
30
|
var OPC_RELATIONSHIP_TRANSFORM = "http://schemas.openxmlformats.org/package/2006/RelationshipTransform";
|
|
31
31
|
var XML_TRANSFORM_ENVELOPED_SIGNATURE = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
|
|
@@ -36,11 +36,11 @@ var SUPPORTED_XML_CANON_TRANSFORMS = /* @__PURE__ */ new Set([
|
|
|
36
36
|
"http://www.w3.org/2001/10/xml-exc-c14n#WithComments",
|
|
37
37
|
XML_TRANSFORM_ENVELOPED_SIGNATURE
|
|
38
38
|
]);
|
|
39
|
-
var ENTERPRISE_TRUST_ROOTS_FILE_ENV = "
|
|
40
|
-
var ENTERPRISE_TRUST_ROOTS_PEM_ENV = "
|
|
41
|
-
var ENTERPRISE_REQUIRE_REVOCATION_ENV = "
|
|
42
|
-
var ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "
|
|
43
|
-
var ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "
|
|
39
|
+
var ENTERPRISE_TRUST_ROOTS_FILE_ENV = "PPTX_VIEWER_TRUST_ROOTS_FILE";
|
|
40
|
+
var ENTERPRISE_TRUST_ROOTS_PEM_ENV = "PPTX_VIEWER_TRUST_ROOTS_PEM";
|
|
41
|
+
var ENTERPRISE_REQUIRE_REVOCATION_ENV = "PPTX_VIEWER_REQUIRE_REVOCATION_CHECK";
|
|
42
|
+
var ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "PPTX_VIEWER_FAIL_ON_REVOCATION_UNKNOWN";
|
|
43
|
+
var ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "PPTX_VIEWER_REQUIRE_TIMESTAMP";
|
|
44
44
|
var DIGEST_ALGORITHM_TO_HASH = {
|
|
45
45
|
"http://www.w3.org/2000/09/xmldsig#sha1": "sha1",
|
|
46
46
|
"http://www.w3.org/2001/04/xmlenc#sha256": "sha256",
|
|
@@ -838,10 +838,10 @@ async function buildReferenceChecksFromSignatureXml(zip, signatureXml) {
|
|
|
838
838
|
}
|
|
839
839
|
return checks;
|
|
840
840
|
}
|
|
841
|
-
async function
|
|
841
|
+
async function buildReferenceChecksFromPptxViewerManifest(zip, signatureXml) {
|
|
842
842
|
const parser = new xmldom.DOMParser();
|
|
843
843
|
const doc = parser.parseFromString(signatureXml, "text/xml");
|
|
844
|
-
const partNodes = Array.from(doc.getElementsByTagNameNS(
|
|
844
|
+
const partNodes = Array.from(doc.getElementsByTagNameNS(PPTX_VIEWER_MANIFEST_NS, "Part"));
|
|
845
845
|
const checks = [];
|
|
846
846
|
for (const partNode of partNodes) {
|
|
847
847
|
const rawName = partNode.getAttribute("Name") || "";
|
|
@@ -934,7 +934,7 @@ async function inspectPptxDigitalSignatures(data) {
|
|
|
934
934
|
const details = [];
|
|
935
935
|
for (const signaturePath of signaturePaths) {
|
|
936
936
|
const signatureXml = await zip.file(signaturePath)?.async("string") ?? "";
|
|
937
|
-
const manifestChecks = await
|
|
937
|
+
const manifestChecks = await buildReferenceChecksFromPptxViewerManifest(zip, signatureXml);
|
|
938
938
|
const referenceChecks = manifestChecks.length > 0 ? manifestChecks : await buildReferenceChecksFromSignatureXml(zip, signatureXml);
|
|
939
939
|
const missingPartReferences = referenceChecks.filter((check) => check.digestStatus === "missing-part").map((check) => check.uri);
|
|
940
940
|
const unsupportedTransforms = referenceChecks.flatMap(
|
|
@@ -1150,14 +1150,14 @@ exports.ENTERPRISE_REQUIRE_REVOCATION_ENV = ENTERPRISE_REQUIRE_REVOCATION_ENV;
|
|
|
1150
1150
|
exports.ENTERPRISE_REQUIRE_TIMESTAMP_ENV = ENTERPRISE_REQUIRE_TIMESTAMP_ENV;
|
|
1151
1151
|
exports.ENTERPRISE_TRUST_ROOTS_FILE_ENV = ENTERPRISE_TRUST_ROOTS_FILE_ENV;
|
|
1152
1152
|
exports.ENTERPRISE_TRUST_ROOTS_PEM_ENV = ENTERPRISE_TRUST_ROOTS_PEM_ENV;
|
|
1153
|
-
exports.MYCLAWASSIST_MANIFEST_NS = MYCLAWASSIST_MANIFEST_NS;
|
|
1154
1153
|
exports.OPC_RELATIONSHIP_TRANSFORM = OPC_RELATIONSHIP_TRANSFORM;
|
|
1154
|
+
exports.PPTX_VIEWER_MANIFEST_NS = PPTX_VIEWER_MANIFEST_NS;
|
|
1155
1155
|
exports.SUPPORTED_XML_CANON_TRANSFORMS = SUPPORTED_XML_CANON_TRANSFORMS;
|
|
1156
1156
|
exports.XMLDSIG_NS = XMLDSIG_NS;
|
|
1157
1157
|
exports.XML_TRANSFORM_ENVELOPED_SIGNATURE = XML_TRANSFORM_ENVELOPED_SIGNATURE;
|
|
1158
1158
|
exports.applyReferenceTransforms = applyReferenceTransforms;
|
|
1159
1159
|
exports.buildOcspRequestDer = buildOcspRequestDer;
|
|
1160
|
-
exports.
|
|
1160
|
+
exports.buildReferenceChecksFromPptxViewerManifest = buildReferenceChecksFromPptxViewerManifest;
|
|
1161
1161
|
exports.buildReferenceChecksFromSignatureXml = buildReferenceChecksFromSignatureXml;
|
|
1162
1162
|
exports.canonicalizeNode = canonicalizeNode;
|
|
1163
1163
|
exports.canonicalizeSignedInfoXml = canonicalizeSignedInfoXml;
|
|
@@ -12,7 +12,7 @@ import JSZip from 'jszip';
|
|
|
12
12
|
// src/core/utils/signature-constants.ts
|
|
13
13
|
var DIGITAL_SIGNATURE_ORIGIN_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
14
14
|
var DIGITAL_SIGNATURE_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
15
|
-
var
|
|
15
|
+
var PPTX_VIEWER_MANIFEST_NS = "urn:pptx-viewer:ooxml-signature:v1";
|
|
16
16
|
var XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
17
17
|
var OPC_RELATIONSHIP_TRANSFORM = "http://schemas.openxmlformats.org/package/2006/RelationshipTransform";
|
|
18
18
|
var XML_TRANSFORM_ENVELOPED_SIGNATURE = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
|
|
@@ -23,11 +23,11 @@ var SUPPORTED_XML_CANON_TRANSFORMS = /* @__PURE__ */ new Set([
|
|
|
23
23
|
"http://www.w3.org/2001/10/xml-exc-c14n#WithComments",
|
|
24
24
|
XML_TRANSFORM_ENVELOPED_SIGNATURE
|
|
25
25
|
]);
|
|
26
|
-
var ENTERPRISE_TRUST_ROOTS_FILE_ENV = "
|
|
27
|
-
var ENTERPRISE_TRUST_ROOTS_PEM_ENV = "
|
|
28
|
-
var ENTERPRISE_REQUIRE_REVOCATION_ENV = "
|
|
29
|
-
var ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "
|
|
30
|
-
var ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "
|
|
26
|
+
var ENTERPRISE_TRUST_ROOTS_FILE_ENV = "PPTX_VIEWER_TRUST_ROOTS_FILE";
|
|
27
|
+
var ENTERPRISE_TRUST_ROOTS_PEM_ENV = "PPTX_VIEWER_TRUST_ROOTS_PEM";
|
|
28
|
+
var ENTERPRISE_REQUIRE_REVOCATION_ENV = "PPTX_VIEWER_REQUIRE_REVOCATION_CHECK";
|
|
29
|
+
var ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "PPTX_VIEWER_FAIL_ON_REVOCATION_UNKNOWN";
|
|
30
|
+
var ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "PPTX_VIEWER_REQUIRE_TIMESTAMP";
|
|
31
31
|
var DIGEST_ALGORITHM_TO_HASH = {
|
|
32
32
|
"http://www.w3.org/2000/09/xmldsig#sha1": "sha1",
|
|
33
33
|
"http://www.w3.org/2001/04/xmlenc#sha256": "sha256",
|
|
@@ -825,10 +825,10 @@ async function buildReferenceChecksFromSignatureXml(zip, signatureXml) {
|
|
|
825
825
|
}
|
|
826
826
|
return checks;
|
|
827
827
|
}
|
|
828
|
-
async function
|
|
828
|
+
async function buildReferenceChecksFromPptxViewerManifest(zip, signatureXml) {
|
|
829
829
|
const parser = new DOMParser();
|
|
830
830
|
const doc = parser.parseFromString(signatureXml, "text/xml");
|
|
831
|
-
const partNodes = Array.from(doc.getElementsByTagNameNS(
|
|
831
|
+
const partNodes = Array.from(doc.getElementsByTagNameNS(PPTX_VIEWER_MANIFEST_NS, "Part"));
|
|
832
832
|
const checks = [];
|
|
833
833
|
for (const partNode of partNodes) {
|
|
834
834
|
const rawName = partNode.getAttribute("Name") || "";
|
|
@@ -921,7 +921,7 @@ async function inspectPptxDigitalSignatures(data) {
|
|
|
921
921
|
const details = [];
|
|
922
922
|
for (const signaturePath of signaturePaths) {
|
|
923
923
|
const signatureXml = await zip.file(signaturePath)?.async("string") ?? "";
|
|
924
|
-
const manifestChecks = await
|
|
924
|
+
const manifestChecks = await buildReferenceChecksFromPptxViewerManifest(zip, signatureXml);
|
|
925
925
|
const referenceChecks = manifestChecks.length > 0 ? manifestChecks : await buildReferenceChecksFromSignatureXml(zip, signatureXml);
|
|
926
926
|
const missingPartReferences = referenceChecks.filter((check) => check.digestStatus === "missing-part").map((check) => check.uri);
|
|
927
927
|
const unsupportedTransforms = referenceChecks.flatMap(
|
|
@@ -1128,4 +1128,4 @@ async function signPptxWithCertificate(data, certificateBuffer, options) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
|
-
export { DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV,
|
|
1131
|
+
export { DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, OPC_RELATIONSHIP_TRANSFORM, PPTX_VIEWER_MANIFEST_NS, SUPPORTED_XML_CANON_TRANSFORMS, XMLDSIG_NS, XML_TRANSFORM_ENVELOPED_SIGNATURE, applyReferenceTransforms, buildOcspRequestDer, buildReferenceChecksFromPptxViewerManifest, buildReferenceChecksFromSignatureXml, canonicalizeNode, canonicalizeSignedInfoXml, certFingerprintSha256, certPemFromBase64, certificateInfoFromBase64, computeDetailStatus, computeDigestBase642 as computeDigestBase64, computeDigestBase64 as computeDigestBase64WebCrypto, computeVerificationStatus, escapeXmlAttr, evaluateCertificateRevocation, evaluateTimestampAuthority, extractAllTagText, extractFirstTagText, extractOcspUrls, extractPemCertificatesFromText, extractReferenceTransforms, extractTagAttribute, getFirstDescendantElementByLocalName, getNodeLocalName, getSignatureValidationPolicy, inspectPptxDigitalSignatures, loadEnterpriseTrustRoots, loadSigningMaterialFromBuffer, normalizePartPath, parseOcspResponseStatus, pemCertificateToBase64, resolveReferenceUriToPart, signPptxWithCertificate, validateCertificateChain, verifySignatureValue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-react-viewer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "React-based PowerPoint viewer, editor, and canvas export — depends on pptx-viewer-core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"editor",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"clsx": "^2.1.1",
|
|
60
|
-
"emf-converter": "^1.0.
|
|
60
|
+
"emf-converter": "^1.0.9",
|
|
61
61
|
"html2canvas-pro": "^2.0.2",
|
|
62
|
-
"mtx-decompressor": "^1.0.
|
|
63
|
-
"pptx-viewer-core": "^1.0.
|
|
62
|
+
"mtx-decompressor": "^1.0.9",
|
|
63
|
+
"pptx-viewer-core": "^1.0.9",
|
|
64
64
|
"tailwind-merge": "^3.5.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|