@office-open/core 0.9.8 → 0.10.0

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.
@@ -1,2 +1,2 @@
1
- import { a as roundTripFields, c as boolEncode, d as parse, f as stringify, i as diffTagSets, l as enumDecode, n as findFieldSpec, o as DescriptorRegistry, r as checkOrder, s as boolDecode, t as FIELD_SPECS, u as enumEncode } from "../descriptor-TtMXoZgS.mjs";
1
+ import { a as roundTripFields, c as boolEncode, d as parse, f as stringify, i as diffTagSets, l as enumDecode, n as findFieldSpec, o as DescriptorRegistry, r as checkOrder, s as boolDecode, t as FIELD_SPECS, u as enumEncode } from "../descriptor-BdWTH1vv.mjs";
2
2
  export { DescriptorRegistry, FIELD_SPECS, boolDecode, boolEncode, checkOrder, diffTagSets, enumDecode, enumEncode, findFieldSpec, parse, roundTripFields, stringify };
@@ -188,7 +188,7 @@ function deepEqual(a, b) {
188
188
  */
189
189
  const FIELD_SPECS = [{
190
190
  id: "core-properties",
191
- optionsInterface: "CorePropertiesInput",
191
+ optionsInterface: "CorePropertiesOptions",
192
192
  interfaceFields: [
193
193
  "title",
194
194
  "subject",
@@ -351,7 +351,8 @@ const FIELD_SPECS = [{
351
351
  "topLinePunct",
352
352
  "autoSpaceDE",
353
353
  "textAlignment",
354
- "outlineLevel"
354
+ "outlineLevel",
355
+ "revision"
355
356
  ],
356
357
  order: [
357
358
  "pStyle",
@@ -434,7 +435,7 @@ const FIELD_SPECS = [{
434
435
  "leftTabStop",
435
436
  "includeIfEmpty"
436
437
  ],
437
- notes: "F3 parse-loss: textDirection, textboxTightWrap, divId, cnfStyle, revision written but never parsed. Input-side sugar excluded from the field sets: thematicBreak (→pBdr/border), rightTabStop/leftTabStop (→tabs/tabStops), includeIfEmpty (control flag) — these map field→XML but XML→a different field, breaking the 1:1 round-trip assumption."
438
+ notes: "F3 parse-loss: textDirection, textboxTightWrap, divId, cnfStyle written but never parsed. Input-side sugar excluded from the field sets: thematicBreak (→pBdr/border), rightTabStop/leftTabStop (→tabs/tabStops), includeIfEmpty (control flag) — these map field→XML but XML→a different field, breaking the 1:1 round-trip assumption."
438
439
  }];
439
440
  function findFieldSpec(id) {
440
441
  return FIELD_SPECS.find((s) => s.id === id);
@@ -1,2 +1,2 @@
1
- import { $ as createLineColorList, $n as calculateEffectExtent, $t as TableStyleListOptions, A as rgbColorDesc, Aa as TileFlipMode, An as stringifyAdjustmentValues, Ar as createCustomDash, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Bn as LightRigOptions, Bt as GraphicFrameLockingOptions, C as fillDesc, Ca as GradientFillOptions, Cn as PathCommand, Co as PresetColor, Cr as createOutline, Ct as AnimationLevelOptions, D as hslColorDesc, Da as PathShadeOptions, Dn as PresetGeometryOptions, Do as createHslColor, Dr as LineEndWidth, Dt as MaxChildrenOptions, E as getColorDescriptor, Ea as LinearShadeOptions, En as createCustomGeometry, Eo as HslColorOptions, Er as LineEndType, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fa as createTileInfo, Fn as BevelPresetType, Ft as createHierBranch, G as DiagramStyleLabelOptions, Gn as createScene3D, Gt as createGroupLocking, H as createDiagramRelationshipIds, Hn as Scene3DOptions, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as SourceRectangleOptions, In as createBevel, It as createMaxChildren, J as HueDirection, Jn as EffectDagOptions, Jt as OnOffStyleType, K as DiagramStyleOptions, Kn as createSoftEdgeEffect, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, La as createSourceRectangle, Ln as createBottomBevel, Lt as createOrgChart, M as schemeColorDesc, Ma as createGradientStop, Mn as Shape3DOptions, Mt as createAdjustList, N as solidFillDesc, Na as TileAlignment, Nn as createShape3D, Nt as createAnimateOneByOne, O as parseColorChoice, Oa as PathShadeType, On as stringifyPresetGeometry, Oo as ColorTransformOptions, Or as createLineEnd, Ot as OrgChartOptions, P as systemColorDesc, Pa as TileOptions, Pn as BevelOptions, Pt as createAnimationLevel, Q as createFillColorList, Qn as EffectListOptions, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Ra as BlipEffectsOptions, Rn as BackdropOptions, Rt as createPreferredChildren, S as outlineDesc, Sa as extractBlipFillMedia, Sn as GeomRect, So as createRgbColor, Sr as PresetDash, St as AnimateOneByOneValue, T as patternFillDesc, Ta as GradientStop, Tn as PathOptions, To as createPresetColor, Tr as LineEndOptions, Tt as HierBranchOptions, U as ColorListOptions, Un as SphereCoords, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Vn as Point3D, Vt as GroupLockingOptions, W as ColorMethod, Wn as Vector3D, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xn as BlurEffectOptions, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Yn as createEffectDag, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Zn as EffectExtent, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _a as BlipFillConfigOptions, _n as createBlipFill, _o as SchemeColorOptions, _r as LineCap, _t as createStyleDefinitionHeader, a as blipDesc, an as createTableStyleList, ar as createPresetShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, ba as GradientStopOptions, bn as ConnectionSite, bo as createScRgbColor, br as OutlineOptions, bt as AdjustOptions, c as stretchDesc, cn as MediaTransformation, cr as createOuterShadowEffect, ct as DiagramNameOptions, d as scene3DDesc, dn as Transform2DOptions, do as createColorElement, dr as GlowEffectOptions, dt as StyleDefinitionHeaderListOptions, en as TableStyleOptions, er as createEffectList, et as createStyleLabel, f as shape3DDesc, fa as createGroupFill, fn as createGroupTransform2D, fo as createSolidFill, fr as createGlowEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, ga as createNoFill, gn as BlipFillOptions, go as SchemeColor, gr as CompoundLine, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, ha as createPatternFill, hn as createExtentionList, ho as createSystemColor, hr as createFillOverlayEffect, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, in as createTableStyle, ir as PresetShadowVal, it as ColorsDefinitionHeaderListOptions, j as scRgbColorDesc, ja as createGradientFill, jn as PresetMaterialType, jt as createAdjust, k as presetColorDesc, ka as RelativeRect, kn as GeometryGuide, ko as createColorTransforms, kr as DashStop, kt as PreferredChildrenOptions, l as tileDesc, ln as createTransformation, lr as InnerShadowEffectOptions, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, ma as PresetPattern, mn as stringifyStretch, mo as SystemColorOptions, mr as FillOverlayEffectOptions, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, nn as TableTextStyleOptions, nr as createReflectionEffect, nt as createTextFillColorList, o as blipFillDesc, on as parseTableStyleList, or as OuterShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pa as PatternFillOptions, pn as createTransform2D, po as SystemColor, pr as BlendMode, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qn as EffectContainerType, qt as createShapeLocking, r as diagramStyleDesc, rn as ThemeableLineStyleOptions, rr as PresetShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, sn as MediaDataTransformation, sr as RectAlignment, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, tn as TableStyleRegion, tr as ReflectionEffectOptions, tt as createTextEffectColorList, u as bevelDesc, un as GroupTransform2DOptions, uo as SolidFillOptions, ur as createInnerShadowEffect, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, va as BlipFillMediaData, vn as BlipOptions, vo as createSchemeColor, vr as LineJoin, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wa as GradientShadeOptions, wn as PathFillMode, wo as PresetColorOptions, wr as LineEndLength, wt as AnimationLevelValue, x as effectListDesc, xa as buildFill, xn as CustomGeometryOptions, xo as RgbColorOptions, xr as PenAlignment, xt as AnimateOneByOneOptions, y as pictureLockingDesc, ya as FillOptions, yn as createBlip, yo as ScRgbColorOptions, yr as OutlineFillProperties, yt as AdjustListOptions, z as createDiagramShape3D, za as createBlipEffects, zn as CameraOptions, zt as createPresentationLayoutVariables } from "../index-CeVhA1an.mjs";
1
+ import { $ as createLineColorList, $a as TileOptions, $n as calculateEffectExtent, $t as TableStyleListOptions, A as rgbColorDesc, An as stringifyAdjustmentValues, Ar as createCustomDash, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Ba as buildFill, Bn as LightRigOptions, Bt as GraphicFrameLockingOptions, C as fillDesc, Cn as PathCommand, Co as ColorTransformOptions, Cr as createOutline, Ct as AnimationLevelOptions, D as hslColorDesc, Dn as PresetGeometryOptions, Dr as LineEndWidth, Dt as MaxChildrenOptions, E as getColorDescriptor, En as createCustomGeometry, Er as LineEndType, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fa as createNoFill, Fn as BevelPresetType, Ft as createHierBranch, G as DiagramStyleLabelOptions, Ga as LinearShadeOptions, Gn as createScene3D, Gt as createGroupLocking, H as createDiagramRelationshipIds, Ha as GradientFillOptions, Hn as Scene3DOptions, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as BlipFillConfigOptions, In as createBevel, It as createMaxChildren, J as HueDirection, Ja as RelativeRect, Jn as EffectDagOptions, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as PathShadeOptions, Kn as createSoftEdgeEffect, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, La as BlipFillMediaData, Ln as createBottomBevel, Lt as createOrgChart, M as schemeColorDesc, Ma as PatternFillOptions, Mn as Shape3DOptions, Mt as createAdjustList, N as solidFillDesc, Na as PresetPattern, Nn as createShape3D, Nt as createAnimateOneByOne, O as parseColorChoice, On as stringifyPresetGeometry, Or as createLineEnd, Ot as OrgChartOptions, P as systemColorDesc, Pa as createPatternFill, Pn as BevelOptions, Pt as createAnimationLevel, Q as createFillColorList, Qa as TileAlignment, Qn as EffectListOptions, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Ra as FillOptions, Rn as BackdropOptions, Rt as createPreferredChildren, S as outlineDesc, Sn as GeomRect, So as createHslColor, Sr as PresetDash, St as AnimateOneByOneValue, T as patternFillDesc, Tn as PathOptions, Tr as LineEndOptions, Tt as HierBranchOptions, U as ColorListOptions, Ua as GradientShadeOptions, Un as SphereCoords, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Va as extractBlipFillMedia, Vn as Point3D, Vt as GroupLockingOptions, W as ColorMethod, Wa as GradientStop, Wn as Vector3D, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as createGradientFill, Xn as BlurEffectOptions, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as TileFlipMode, Yn as createEffectDag, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Za as createGradientStop, Zn as EffectExtent, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _n as createBlipFill, _o as createRgbColor, _r as LineCap, _t as createStyleDefinitionHeader, a as blipDesc, an as createTableStyleList, ao as SolidFillOptions, ar as createPresetShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, bn as ConnectionSite, bo as createPresetColor, br as OutlineOptions, bt as AdjustOptions, c as stretchDesc, cn as MediaTransformation, co as SystemColor, cr as createOuterShadowEffect, ct as DiagramNameOptions, d as scene3DDesc, dn as Transform2DOptions, do as SchemeColor, dr as GlowEffectOptions, dt as StyleDefinitionHeaderListOptions, en as TableStyleOptions, eo as createTileInfo, er as createEffectList, et as createStyleLabel, f as shape3DDesc, fn as createGroupTransform2D, fo as SchemeColorOptions, fr as createGlowEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, gn as BlipFillOptions, go as RgbColorOptions, gr as CompoundLine, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, hn as createExtentionList, ho as createScRgbColor, hr as createFillOverlayEffect, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, in as createTableStyle, io as createBlipEffects, ir as PresetShadowVal, it as ColorsDefinitionHeaderListOptions, j as scRgbColorDesc, ja as createGroupFill, jn as PresetMaterialType, jt as createAdjust, k as presetColorDesc, kn as GeometryGuide, kr as DashStop, kt as PreferredChildrenOptions, l as tileDesc, ln as createTransformation, lo as SystemColorOptions, lr as InnerShadowEffectOptions, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, mn as stringifyStretch, mo as ScRgbColorOptions, mr as FillOverlayEffectOptions, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, nn as TableTextStyleOptions, no as createSourceRectangle, nr as createReflectionEffect, nt as createTextFillColorList, o as blipFillDesc, on as parseTableStyleList, oo as createColorElement, or as OuterShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pn as createTransform2D, po as createSchemeColor, pr as BlendMode, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qa as PathShadeType, qn as EffectContainerType, qt as createShapeLocking, r as diagramStyleDesc, rn as ThemeableLineStyleOptions, ro as BlipEffectsOptions, rr as PresetShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, sn as MediaDataTransformation, so as createSolidFill, sr as RectAlignment, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, tn as TableStyleRegion, to as SourceRectangleOptions, tr as ReflectionEffectOptions, tt as createTextEffectColorList, u as bevelDesc, un as GroupTransform2DOptions, uo as createSystemColor, ur as createInnerShadowEffect, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, vn as BlipOptions, vo as PresetColor, vr as LineJoin, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wn as PathFillMode, wo as createColorTransforms, wr as LineEndLength, wt as AnimationLevelValue, x as effectListDesc, xn as CustomGeometryOptions, xo as HslColorOptions, xr as PenAlignment, xt as AnimateOneByOneOptions, y as pictureLockingDesc, yn as createBlip, yo as PresetColorOptions, yr as OutlineFillProperties, yt as AdjustListOptions, z as createDiagramShape3D, za as GradientStopOptions, zn as CameraOptions, zt as createPresentationLayoutVariables } from "../index-pvj6gDsT.mjs";
2
2
  export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOneOptions, AnimateOneByOneValue, type AnimationLevelOptions, AnimationLevelValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleLabelOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MaxChildrenOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, createTransformation, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
@@ -1,2 +1,2 @@
1
- import { $ as solidFillDesc, $n as createTileInfo, A as bevelDesc, An as createFillOverlayEffect, Ar as createScRgbColor, At as createHierBranch, B as shapeLockingDesc, Bn as createLineEnd, Bt as createTableStyleList, C as diagramStyleDesc, Cn as PresetShadowVal, Ct as AnimateOneByOneValue, D as sourceRectangleDesc, Dn as createInnerShadowEffect, Dr as createSystemColor, Dt as createAdjustList, E as blipFillDesc, En as createOuterShadowEffect, Er as SystemColor, Et as createAdjust, F as customGeometryDesc, Fn as PresetDash, Fr as createColorTransforms, Ft as createGraphicFrameLocking, G as patternFillDesc, Gn as extractBlipFillMedia, H as outlineDesc, Hn as createGroupFill, Ht as createTransformation, I as presetGeometryDesc, In as createOutline, It as createGroupLocking, J as parseColorChoice, Jn as PathShadeType, K as getColorDescriptor, Kn as PresetPattern, L as graphicFrameLockingDesc, Ln as LineEndLength, Lt as createPictureLocking, M as shape3DDesc, Mn as LineCap, Mr as PresetColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as LineJoin, Nr as createPresetColor, Nt as createPreferredChildren, O as stretchDesc, On as createGlowEffect, Or as SchemeColor, Ot as createAnimateOneByOne, P as transform2DDesc, Pn as PenAlignment, Pr as createHslColor, Pt as createPresentationLayoutVariables, Q as schemeColorDesc, Qn as TileAlignment, R as groupLockingDesc, Rn as LineEndType, Rt as createShapeLocking, S as diagramRelationshipIdsDesc, Sn as createReflectionEffect, St as createStyleDefinitionHeaderList, T as blipDesc, Tn as RectAlignment, Tr as createSolidFill, Tt as HierBranchStyle, U as fillDesc, Un as createNoFill, V as effectListDesc, Vn as createCustomDash, Vt as parseTableStyleList, W as gradientFillDesc, Wn as buildFill, X as rgbColorDesc, Xn as createGradientFill, Y as presetColorDesc, Yn as TileFlipMode, Z as scRgbColorDesc, Zn as createGradientStop, _n as createScene3D, _t as createColorsDefinitionHeader, an as stringifyStretch, at as ColorMethod, bn as createEffectList, bt as createLayoutDefinitionHeaderList, cn as createExtentionList, ct as StyleMatrixIndex, dn as stringifyAdjustmentValues, dt as createFillColorList, et as systemColorDesc, fn as PresetMaterialType, ft as createLineColorList, gn as createBottomBevel, gt as createTextLineColorList, hn as createBevel, ht as createTextFillColorList, in as createTransform2D, it as createDiagramRelationshipIds, j as scene3DDesc, jn as CompoundLine, jr as createRgbColor, jt as createMaxChildren, k as tileDesc, kn as BlendMode, kr as createSchemeColor, kt as createAnimationLevel, ln as createCustomGeometry, lt as createDiagramStyle, mn as BevelPresetType, mt as createTextEffectColorList, nt as createDiagramShape3D, on as createBlipFill, ot as FontCollectionIndex, pn as createShape3D, pt as createStyleLabel, q as hslColorDesc, qn as createPatternFill, rn as createGroupTransform2D, rt as createDiagramTextProperties, sn as createBlip, st as HueDirection, tt as createDiagramExtensionList, un as stringifyPresetGeometry, ut as createEffectColorList, vn as createEffectDag, vr as createSourceRectangle, vt as createColorsDefinitionHeaderList, w as presentationLayoutVariablesDesc, wn as createPresetShadowEffect, wr as createColorElement, wt as AnimationLevelValue, x as diagramExtensionListDesc, xn as createSoftEdgeEffect, xt as createStyleDefinitionHeader, yn as calculateEffectExtent, yr as createBlipEffects, yt as createLayoutDefinitionHeader, z as pictureLockingDesc, zn as LineEndWidth, zt as createTableStyle } from "../src-CSka9ln4.mjs";
1
+ import { $ as solidFillDesc, $n as createTileInfo, A as bevelDesc, An as createFillOverlayEffect, Ar as SchemeColor, At as createHierBranch, B as shapeLockingDesc, Bn as createLineEnd, Bt as createTableStyleList, C as diagramStyleDesc, Cn as PresetShadowVal, Ct as AnimateOneByOneValue, D as sourceRectangleDesc, Dn as createInnerShadowEffect, Dr as createSolidFill, Dt as createAdjustList, E as blipFillDesc, En as createOuterShadowEffect, Er as createColorElement, Et as createAdjust, F as customGeometryDesc, Fn as PresetDash, Fr as createPresetColor, Ft as createGraphicFrameLocking, G as patternFillDesc, Gn as extractBlipFillMedia, H as outlineDesc, Hn as createGroupFill, Ht as createTransformation, I as presetGeometryDesc, In as createOutline, Ir as createHslColor, It as createGroupLocking, J as parseColorChoice, Jn as PathShadeType, K as getColorDescriptor, Kn as PresetPattern, L as graphicFrameLockingDesc, Ln as LineEndLength, Lr as createColorTransforms, Lt as createPictureLocking, M as shape3DDesc, Mn as LineCap, Mr as createScRgbColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as LineJoin, Nr as createRgbColor, Nt as createPreferredChildren, O as stretchDesc, On as createGlowEffect, Or as SystemColor, Ot as createAnimateOneByOne, P as transform2DDesc, Pn as PenAlignment, Pr as PresetColor, Pt as createPresentationLayoutVariables, Q as schemeColorDesc, Qn as TileAlignment, R as groupLockingDesc, Rn as LineEndType, Rt as createShapeLocking, S as diagramRelationshipIdsDesc, Sn as createReflectionEffect, St as createStyleDefinitionHeaderList, T as blipDesc, Tn as RectAlignment, Tt as HierBranchStyle, U as fillDesc, Un as createNoFill, V as effectListDesc, Vn as createCustomDash, Vt as parseTableStyleList, W as gradientFillDesc, Wn as buildFill, X as rgbColorDesc, Xn as createGradientFill, Y as presetColorDesc, Yn as TileFlipMode, Z as scRgbColorDesc, Zn as createGradientStop, _n as createScene3D, _t as createColorsDefinitionHeader, an as stringifyStretch, at as ColorMethod, bn as createEffectList, bt as createLayoutDefinitionHeaderList, cn as createExtentionList, ct as StyleMatrixIndex, dn as stringifyAdjustmentValues, dt as createFillColorList, et as systemColorDesc, fn as PresetMaterialType, ft as createLineColorList, gn as createBottomBevel, gt as createTextLineColorList, hn as createBevel, ht as createTextFillColorList, in as createTransform2D, it as createDiagramRelationshipIds, j as scene3DDesc, jn as CompoundLine, jr as createSchemeColor, jt as createMaxChildren, k as tileDesc, kn as BlendMode, kr as createSystemColor, kt as createAnimationLevel, ln as createCustomGeometry, lt as createDiagramStyle, mn as BevelPresetType, mt as createTextEffectColorList, nt as createDiagramShape3D, on as createBlipFill, ot as FontCollectionIndex, pn as createShape3D, pt as createStyleLabel, q as hslColorDesc, qn as createPatternFill, rn as createGroupTransform2D, rt as createDiagramTextProperties, sn as createBlip, st as HueDirection, tt as createDiagramExtensionList, un as stringifyPresetGeometry, ut as createEffectColorList, vn as createEffectDag, vr as createSourceRectangle, vt as createColorsDefinitionHeaderList, w as presentationLayoutVariablesDesc, wn as createPresetShadowEffect, wt as AnimationLevelValue, x as diagramExtensionListDesc, xn as createSoftEdgeEffect, xt as createStyleDefinitionHeader, yn as calculateEffectExtent, yr as createBlipEffects, yt as createLayoutDefinitionHeader, z as pictureLockingDesc, zn as LineEndWidth, zt as createTableStyle } from "../src-CXdJt0WZ.mjs";
2
2
  export { AnimateOneByOneValue, AnimationLevelValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, createTransformation, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
@@ -0,0 +1,239 @@
1
+ import { Element } from "@office-open/xml";
2
+ import { Buffer } from "\u0000polyfill-node.buffer";
3
+
4
+ //#region src/util/data-type.d.ts
5
+ /** Supported binary input shapes. */
6
+ type DataType = ArrayBufferLike | Blob | DataView | number[] | ReadableStream | string | Uint8Array;
7
+ /** Test whether a string is a base64 data URL (`data:[mime];base64,...`). */
8
+ declare function isBase64DataURL(input: string): boolean;
9
+ /** Normalize any supported binary input to a `Uint8Array`. */
10
+ declare function toUint8Array(data: DataType): Uint8Array;
11
+ //#endregion
12
+ //#region src/opc/core.d.ts
13
+ type IXmlableObject = Readonly<Record<string, unknown>>;
14
+ /**
15
+ * Core document properties (docProps/core.xml).
16
+ *
17
+ * Shared across docx/pptx/xlsx: each format's top-level Options extends this,
18
+ * parse emits the same shape, and patch overrides it — read/write symmetry
19
+ * (CONTRIBUTING §Property Naming). Field names follow the OPC core-properties
20
+ * XSD element local names (`creator` = dc:creator, … — never `author`).
21
+ */
22
+ interface CorePropertiesOptions {
23
+ title?: string;
24
+ subject?: string;
25
+ creator?: string;
26
+ keywords?: string;
27
+ description?: string;
28
+ lastModifiedBy?: string;
29
+ revision?: number;
30
+ lastPrinted?: string;
31
+ /** Creation timestamp (W3CDTF), round-tripped from dcterms:created. */
32
+ created?: string;
33
+ /** Last modified timestamp (W3CDTF), round-tripped from dcterms:modified. */
34
+ modified?: string;
35
+ }
36
+ /**
37
+ * Parse core properties from an already-parsed XML element.
38
+ * Shared by docx/pptx/xlsx to extract Dublin Core metadata into the unified
39
+ * {@link CorePropertiesOptions} shape.
40
+ */
41
+ declare function parseCorePropsElement(el: Element | undefined): CorePropertiesOptions;
42
+ /**
43
+ * Build a cp:coreProperties XML object from metadata.
44
+ *
45
+ * Shared by docx and pptx to avoid duplicating namespace declarations
46
+ * and Dublin Core property construction.
47
+ */
48
+ declare function buildCorePropertiesXml(opts: {
49
+ title?: string;
50
+ subject?: string;
51
+ creator?: string;
52
+ keywords?: string;
53
+ description?: string;
54
+ lastModifiedBy?: string;
55
+ revision?: number;
56
+ }): IXmlableObject;
57
+ /**
58
+ * Build a cp:coreProperties XML string directly (fast path).
59
+ *
60
+ * Shared by pptx and xlsx to bypass the toXml() → xml() pipeline.
61
+ * created/modified default to now when not supplied; all other fields emit
62
+ * only when present.
63
+ */
64
+ declare function buildCorePropertiesXmlString(opts: CorePropertiesOptions): string;
65
+ //#endregion
66
+ //#region src/opc/output.d.ts
67
+ /**
68
+ * Output type definitions for OOXML document export.
69
+ *
70
+ * @module
71
+ */
72
+ interface OutputByType {
73
+ base64: string;
74
+ string: string;
75
+ text: string;
76
+ binarystring: string;
77
+ array: readonly number[];
78
+ uint8array: Uint8Array;
79
+ arraybuffer: ArrayBuffer;
80
+ blob: Blob;
81
+ nodebuffer: Buffer;
82
+ }
83
+ type OutputType = keyof OutputByType;
84
+ declare const OoxmlMimeType: {
85
+ readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
86
+ readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
87
+ readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
88
+ };
89
+ declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T, mimeType?: string) => OutputByType[T];
90
+ //#endregion
91
+ //#region src/patch/xml-namespace.d.ts
92
+ /**
93
+ * Namespace configuration for XML patch operations.
94
+ *
95
+ * Parameterises element names so the same patch algorithm works for both
96
+ * DOCX (`w:*`) and PPTX (`a:*`) documents.
97
+ */
98
+ interface XmlNamespaceConfig {
99
+ paragraph: string;
100
+ run: string;
101
+ text: string;
102
+ runProperties: string;
103
+ }
104
+ declare const DOCX_NS: XmlNamespaceConfig;
105
+ declare const PPTX_NS: XmlNamespaceConfig;
106
+ //#endregion
107
+ //#region src/patch/xml-replacer.d.ts
108
+ interface ReplacerConfig {
109
+ ns: XmlNamespaceConfig;
110
+ formatChild: (child: unknown, context: unknown) => Element[];
111
+ preserveSpace?: boolean;
112
+ }
113
+ interface ReplacerResult {
114
+ element: Element;
115
+ didFindOccurrence: boolean;
116
+ }
117
+ declare function createReplacer(config: ReplacerConfig): ({
118
+ json,
119
+ patch,
120
+ patchText,
121
+ context,
122
+ keepOriginalStyles
123
+ }: {
124
+ json: Element;
125
+ patch: {
126
+ type: string;
127
+ children: readonly unknown[];
128
+ };
129
+ patchText: string;
130
+ context: unknown;
131
+ keepOriginalStyles?: boolean;
132
+ }) => ReplacerResult;
133
+ //#endregion
134
+ //#region src/patch/run-renderer.d.ts
135
+ interface ElementWrapper {
136
+ element: Element;
137
+ index: number;
138
+ parent: ElementWrapper | undefined;
139
+ }
140
+ interface RenderedParagraphNode {
141
+ text: string;
142
+ runs: readonly RenderedRunNode[];
143
+ index: number;
144
+ pathToParagraph: readonly number[];
145
+ }
146
+ interface StartAndEnd {
147
+ start: number;
148
+ end: number;
149
+ }
150
+ type IParts = {
151
+ text: string;
152
+ index: number;
153
+ } & StartAndEnd;
154
+ type RenderedRunNode = {
155
+ text: string;
156
+ parts: readonly IParts[];
157
+ index: number;
158
+ } & StartAndEnd;
159
+ declare function createRunRenderer(ns: XmlNamespaceConfig): (node: ElementWrapper) => RenderedParagraphNode;
160
+ //#endregion
161
+ //#region src/patch/xml-traverser.d.ts
162
+ declare function createTraverser(ns: XmlNamespaceConfig): {
163
+ traverse: (node: Element) => readonly RenderedParagraphNode[];
164
+ findLocationOfText: (node: Element, text: string) => readonly RenderedParagraphNode[];
165
+ };
166
+ //#endregion
167
+ //#region src/patch/paragraph-token-replacer.d.ts
168
+ declare function createTokenReplacer(createTextElementContents: (text: string) => Element[], options?: {
169
+ readonly preserveSpace?: boolean;
170
+ }): ({
171
+ paragraphElement,
172
+ renderedParagraph,
173
+ originalText,
174
+ replacementText
175
+ }: {
176
+ paragraphElement: Element;
177
+ renderedParagraph: RenderedParagraphNode;
178
+ originalText: string;
179
+ replacementText: string;
180
+ }) => Element;
181
+ //#endregion
182
+ //#region src/patch/paragraph-split-inject.d.ts
183
+ declare class TokenNotFoundError extends Error {
184
+ constructor(token: string);
185
+ }
186
+ declare function createSplitInject(ns: XmlNamespaceConfig, createTextElementContents: (text: string) => Element[], options?: {
187
+ readonly preserveSpace?: boolean;
188
+ }): {
189
+ findRunElementIndexWithToken: (paragraphElement: Element, token: string) => number;
190
+ splitRunElement: (runElement: Element, token: string) => {
191
+ readonly left: Element;
192
+ readonly right: Element;
193
+ };
194
+ };
195
+ //#endregion
196
+ //#region src/patch/xml-patch-utils.d.ts
197
+ declare const toJson: (xmlData: string) => Element;
198
+ /**
199
+ * Creates the inner content of a text element (`w:t` / `a:t`).
200
+ *
201
+ * Returns `[{ type: "text", text }]` for non-empty text, `[]` for empty.
202
+ * The `xml:space` attribute is handled separately by `patchSpaceAttribute`.
203
+ */
204
+ declare const createTextElementContents: (text: string) => Element[];
205
+ declare const patchSpaceAttribute: (element: Element) => Element;
206
+ declare const getFirstLevelElements: (relationships: Element, id: string) => Element[];
207
+ //#endregion
208
+ //#region src/patch/content-types-manager.d.ts
209
+ declare const appendContentType: (element: Element, contentType: string, extension: string) => void;
210
+ //#endregion
211
+ //#region src/patch/relationship-manager.d.ts
212
+ declare const getNextRelationshipIndex: (relationships: Element) => number;
213
+ declare const appendRelationship: (relationships: Element, id: number | string, type: string, target: string, targetMode?: string) => readonly Element[];
214
+ //#endregion
215
+ //#region src/patch/core-properties-override.d.ts
216
+ declare function applyCorePropertiesOverride(corePropsDoc: Element, overrides: Partial<CorePropertiesOptions>): string;
217
+ //#endregion
218
+ //#region src/patch/types.d.ts
219
+ /** Placeholder delimiter pair surrounding a patch key (e.g. `{{` / `}}`). */
220
+ interface PlaceholderDelimiters {
221
+ start: string;
222
+ end: string;
223
+ }
224
+ /**
225
+ * Shared base options for patch operations.
226
+ *
227
+ * Format-specific patch functions extend this with their `patches` field
228
+ * (and any format-specific options like `keepOriginalStyles`).
229
+ */
230
+ interface BasePatchOptions<T extends OutputType = OutputType> {
231
+ /** Source document bytes (Buffer / Uint8Array / ArrayBuffer / base64 data URL / …). */
232
+ data: DataType;
233
+ /** Output container type — controls the return type via OutputByType. */
234
+ outputType: T;
235
+ /** Custom placeholder delimiters (default `{{` / `}}`). */
236
+ placeholderDelimiters?: PlaceholderDelimiters;
237
+ }
238
+ //#endregion
239
+ export { DataType as A, OutputByType as C, buildCorePropertiesXml as D, CorePropertiesOptions as E, toUint8Array as M, buildCorePropertiesXmlString as O, OoxmlMimeType as S, convertOutput as T, ReplacerConfig as _, getNextRelationshipIndex as a, PPTX_NS as b, getFirstLevelElements as c, TokenNotFoundError as d, createSplitInject as f, createRunRenderer as g, RenderedParagraphNode as h, appendRelationship as i, isBase64DataURL as j, parseCorePropsElement as k, patchSpaceAttribute as l, createTraverser as m, PlaceholderDelimiters as n, appendContentType as o, createTokenReplacer as p, applyCorePropertiesOverride as r, createTextElementContents as s, BasePatchOptions as t, toJson as u, createReplacer as v, OutputType as w, XmlNamespaceConfig as x, DOCX_NS as y };