@office-open/core 0.6.6 → 0.6.8
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/dist/chart/{index.d.ts → index.d.mts} +1 -1
- package/dist/chart/{index.js → index.mjs} +1 -1
- package/dist/{chart-BUlAcF2k.js → chart-jj57bDdC.mjs} +1 -1
- package/dist/drawingml/{index.d.ts → index.d.mts} +1 -1
- package/dist/drawingml/{index.js → index.mjs} +1 -1
- package/dist/{drawingml-DG6euH0k.js → drawingml-C0t3mzSK.mjs} +2 -2
- package/dist/{index-nyrpMDHV.d.ts → index-18VktT2t.d.mts} +2 -2
- package/dist/{index-C1jJNA2J.d.ts → index-BaL8Sbrf.d.mts} +2 -2
- package/dist/{index-BDwL0MVx.d.ts → index-CEFUwJ2F.d.mts} +1 -1
- package/dist/{index-k2ds4fI-.d.ts → index-DP97S6un.d.mts} +25 -38
- package/dist/{index.d.ts → index.d.mts} +33 -20
- package/dist/{index.js → index.mjs} +65 -42
- package/dist/patch/{index.d.ts → index.d.mts} +1 -1
- package/dist/patch/{index.js → index.mjs} +1 -1
- package/dist/smartart/{index.d.ts → index.d.mts} +1 -1
- package/dist/smartart/{index.js → index.mjs} +1 -1
- package/dist/{smartart-DGNfjKA9.js → smartart-BKz8xM1k.mjs} +1 -1
- package/dist/{values.d.ts → values.d.mts} +1 -1
- package/dist/{xml-components-SxPlKGms.js → xml-components-Cfvn_mId.mjs} +33 -66
- package/package.json +14 -14
- /package/dist/{index-NK0k2I-R.d.ts → index-DNLRdIqy.d.mts} +0 -0
- /package/dist/{patch-BWan_fhF.js → patch-O6SD_BaJ.mjs} +0 -0
- /package/dist/{values-CyCW27--.d.ts → values-QyWq4U4A.d.mts} +0 -0
- /package/dist/{values.js → values.mjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "../index-
|
|
1
|
+
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "../index-18VktT2t.mjs";
|
|
2
2
|
export { AreaChart, BarChart, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, LineChart, PieChart, ScatterChart, ValAx, createChartType, createNumRef, createStrRef };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ScatterChart, c as BarChart, d as createStrRef, f as CatAx, i as createChartType, l as AreaChart, n as ChartSpace, o as PieChart, p as ValAx, r as ChartTitle, s as LineChart, t as ChartCollection, u as createNumRef } from "../chart-
|
|
1
|
+
import { a as ScatterChart, c as BarChart, d as createStrRef, f as CatAx, i as createChartType, l as AreaChart, n as ChartSpace, o as PieChart, p as ValAx, r as ChartTitle, s as LineChart, t as ChartCollection, u as createNumRef } from "../chart-jj57bDdC.mjs";
|
|
2
2
|
export { AreaChart, BarChart, CatAx, ChartCollection, ChartSpace, ChartTitle, LineChart, PieChart, ScatterChart, ValAx, createChartType, createNumRef, createStrRef };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BuilderElement,
|
|
1
|
+
import { a as BuilderElement, g as wrapEl, l as chartAttr, o as EmptyElement, y as XmlComponent } from "./xml-components-Cfvn_mId.mjs";
|
|
2
2
|
//#region src/chart/axes.ts
|
|
3
3
|
/**
|
|
4
4
|
* c:scaling — axis scaling configuration (minOccurs=1 in EG_AxShared).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "../index-
|
|
1
|
+
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "../index-BaL8Sbrf.mjs";
|
|
2
2
|
export { BackdropOptions, BevelOptions, BevelPresetType, BlendMode, BlipEffectsOptions, BlipFillConfigOptions, BlipFillMediaData, BlipFillOptions, BlipOptions, BlurEffectOptions, CameraOptions, ColorTransformOptions, CompoundLine, ConnectionSite, CustomGeometryOptions, DashStop, EffectContainerType, EffectDagOptions, EffectListOptions, FillOptions, FillOverlayEffectOptions, GeomRect, GeometryGuide, GlowEffectOptions, GradientFillOptions, GradientShadeOptions, GradientStop, GradientStopOptions, GroupTransform2DOptions, HslColorOptions, InnerShadowEffectOptions, LightRigOptions, LineCap, LineEndLength, LineEndOptions, LineEndType, LineEndWidth, LineJoin, LinearShadeOptions, MediaDataTransformation, MediaTransformation, OuterShadowEffectOptions, OutlineFillProperties, OutlineOptions, PathCommand, PathFillMode, PathOptions, PathShadeOptions, PathShadeType, PatternFillOptions, PenAlignment, Point3D, PresetColor, PresetColorOptions, PresetDash, PresetGeometry, PresetGeometryOptions, PresetMaterialType, PresetPattern, PresetShadowEffectOptions, PresetShadowVal, RectAlignment, ReflectionEffectOptions, RelativeRect, RgbColorOptions, ScRgbColorOptions, Scene3DOptions, SchemeColor, SchemeColorOptions, Shape3DOptions, SolidFillOptions, SourceRectangleOptions, SphereCoords, Stretch, SystemColor, SystemColorOptions, TileAlignment, TileFlipMode, TileOptions, Transform2DOptions, Vector3D, buildFill, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createOuterShadowEffect, createOutline, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSystemColor, createTileInfo, createTransform2D, createTransformation, extractBlipFillMedia };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LineJoin, B as createNoFill, C as createOuterShadowEffect, Ct as createSchemeColor, D as createFillOverlayEffect, Dt as createPresetColor, E as BlendMode, Et as PresetColor, F as LineEndType, G as PathShadeType, H as extractBlipFillMedia, I as LineEndWidth, J as createGradientStop, K as TileFlipMode, L as createLineEnd, M as PresetDash, N as createOutline, O as CompoundLine, Ot as createHslColor, P as LineEndLength, R as createCustomDash, S as RectAlignment, St as SchemeColor, T as createGlowEffect, Tt as createRgbColor, U as PresetPattern, V as buildFill, W as createPatternFill, X as createTileInfo, Y as TileAlignment, _ as createEffectList, _t as createBlipEffects, a as createBlip, b as PresetShadowVal, bt as SystemColor, c as PresetGeometry, d as createShape3D, f as BevelPresetType, g as createEffectDag, gt as createSourceRectangle, h as createScene3D, ht as Stretch, i as createBlipFill, j as PenAlignment, k as LineCap, kt as createColorTransforms, l as createAdjustmentValues, m as createBottomBevel, n as createGroupTransform2D, o as createExtentionList, p as createBevel, q as createGradientFill, r as createTransform2D, s as createCustomGeometry, t as createTransformation, u as PresetMaterialType, v as createSoftEdgeEffect, vt as createColorElement, w as createInnerShadowEffect, wt as createScRgbColor, x as createPresetShadowEffect, xt as createSystemColor, y as createReflectionEffect, yt as createSolidFill, z as createGroupFill } from "../drawingml-
|
|
1
|
+
import { A as LineJoin, B as createNoFill, C as createOuterShadowEffect, Ct as createSchemeColor, D as createFillOverlayEffect, Dt as createPresetColor, E as BlendMode, Et as PresetColor, F as LineEndType, G as PathShadeType, H as extractBlipFillMedia, I as LineEndWidth, J as createGradientStop, K as TileFlipMode, L as createLineEnd, M as PresetDash, N as createOutline, O as CompoundLine, Ot as createHslColor, P as LineEndLength, R as createCustomDash, S as RectAlignment, St as SchemeColor, T as createGlowEffect, Tt as createRgbColor, U as PresetPattern, V as buildFill, W as createPatternFill, X as createTileInfo, Y as TileAlignment, _ as createEffectList, _t as createBlipEffects, a as createBlip, b as PresetShadowVal, bt as SystemColor, c as PresetGeometry, d as createShape3D, f as BevelPresetType, g as createEffectDag, gt as createSourceRectangle, h as createScene3D, ht as Stretch, i as createBlipFill, j as PenAlignment, k as LineCap, kt as createColorTransforms, l as createAdjustmentValues, m as createBottomBevel, n as createGroupTransform2D, o as createExtentionList, p as createBevel, q as createGradientFill, r as createTransform2D, s as createCustomGeometry, t as createTransformation, u as PresetMaterialType, v as createSoftEdgeEffect, vt as createColorElement, w as createInnerShadowEffect, wt as createScRgbColor, x as createPresetShadowEffect, xt as createSystemColor, y as createReflectionEffect, yt as createSolidFill, z as createGroupFill } from "../drawingml-C0t3mzSK.mjs";
|
|
2
2
|
export { BevelPresetType, BlendMode, CompoundLine, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetGeometry, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, Stretch, SystemColor, TileAlignment, TileFlipMode, buildFill, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createOuterShadowEffect, createOutline, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSystemColor, createTileInfo, createTransform2D, createTransformation, extractBlipFillMedia };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BuilderElement,
|
|
1
|
+
import { a as BuilderElement, y as XmlComponent } from "./xml-components-Cfvn_mId.mjs";
|
|
2
2
|
import hash from "hash.js";
|
|
3
3
|
import { customAlphabet, nanoid } from "nanoid/non-secure";
|
|
4
4
|
//#region src/converters.ts
|
|
@@ -1797,7 +1797,7 @@ function toUint8Array(data) {
|
|
|
1797
1797
|
* Returns undefined for non-blip fills.
|
|
1798
1798
|
*
|
|
1799
1799
|
* The returned data should be registered with the document's media store
|
|
1800
|
-
* during
|
|
1800
|
+
* during serialization so the packer can resolve the `{fileName}` placeholder.
|
|
1801
1801
|
*/
|
|
1802
1802
|
const extractBlipFillMedia = (fill) => {
|
|
1803
1803
|
if (typeof fill === "string" || fill.type !== "blip") return void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as XmlComponent } from "./index-DP97S6un.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/chart/axes.d.ts
|
|
4
4
|
/**
|
|
@@ -77,7 +77,7 @@ interface ChartTypeOptions {
|
|
|
77
77
|
readonly series: readonly ChartSeriesData[];
|
|
78
78
|
readonly categories: readonly string[];
|
|
79
79
|
}
|
|
80
|
-
declare const createChartType: (options: ChartTypeOptions) => ScatterChart |
|
|
80
|
+
declare const createChartType: (options: ChartTypeOptions) => ScatterChart | AreaChart | PieChart | BarChart | LineChart;
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region src/chart/chart-space.d.ts
|
|
83
83
|
interface ChartSpaceOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as BuilderElement, b as XmlComponent } from "./index-DP97S6un.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/drawingml/color/color-transform.d.ts
|
|
4
4
|
/**
|
|
@@ -1130,7 +1130,7 @@ type FillOptions = string | {
|
|
|
1130
1130
|
* Returns undefined for non-blip fills.
|
|
1131
1131
|
*
|
|
1132
1132
|
* The returned data should be registered with the document's media store
|
|
1133
|
-
* during
|
|
1133
|
+
* during serialization so the packer can resolve the `{fileName}` placeholder.
|
|
1134
1134
|
*/
|
|
1135
1135
|
declare const extractBlipFillMedia: (fill: FillOptions) => BlipFillMediaData | undefined;
|
|
1136
1136
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as PositiveUniversalMeasure } from "./values-
|
|
1
|
+
import { r as PositiveUniversalMeasure } from "./values-QyWq4U4A.mjs";
|
|
2
2
|
import { Element } from "@office-open/xml";
|
|
3
3
|
|
|
4
4
|
//#region src/xml-components/types.d.ts
|
|
@@ -36,17 +36,13 @@ declare abstract class BaseXmlComponent {
|
|
|
36
36
|
protected readonly rootKey: string;
|
|
37
37
|
constructor(rootKey: string);
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* @param context - The serialization context
|
|
42
|
-
* @returns The XML-serializable object, or undefined to exclude from output
|
|
39
|
+
* @deprecated Use `toXml()` instead.
|
|
43
40
|
*/
|
|
44
|
-
|
|
41
|
+
prepForXml(_context: Context): IXmlableObject | undefined;
|
|
45
42
|
/**
|
|
46
43
|
* Direct XML serialization. Override in subclasses for zero-allocation output.
|
|
47
|
-
* Default falls back to prepForXml() + xml().
|
|
48
44
|
*/
|
|
49
|
-
toXml(
|
|
45
|
+
toXml(_context: Context): string;
|
|
50
46
|
}
|
|
51
47
|
//#endregion
|
|
52
48
|
//#region src/xml-components/component.d.ts
|
|
@@ -71,7 +67,7 @@ declare abstract class XmlComponent extends BaseXmlComponent {
|
|
|
71
67
|
root: (BaseXmlComponent | IXmlableObject | string)[];
|
|
72
68
|
constructor(rootKey: string);
|
|
73
69
|
/**
|
|
74
|
-
*
|
|
70
|
+
* @deprecated Use `toXml()` instead.
|
|
75
71
|
*/
|
|
76
72
|
prepForXml(context: Context): IXmlableObject | undefined;
|
|
77
73
|
/**
|
|
@@ -90,6 +86,9 @@ declare abstract class XmlComponent extends BaseXmlComponent {
|
|
|
90
86
|
declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
|
91
87
|
private readonly includeIfEmpty;
|
|
92
88
|
constructor(rootKey: string, includeIfEmpty?: boolean);
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Use `toXml()` instead.
|
|
91
|
+
*/
|
|
93
92
|
prepForXml(context: Context): IXmlableObject | undefined;
|
|
94
93
|
/**
|
|
95
94
|
* Suppress empty elements — super.toXml() produces a self-closing tag
|
|
@@ -102,13 +101,10 @@ declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
|
|
102
101
|
//#endregion
|
|
103
102
|
//#region src/xml-components/attributes.d.ts
|
|
104
103
|
/**
|
|
105
|
-
*
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Simple attribute data as a key-value record.
|
|
104
|
+
* XML attribute types for OOXML document generation.
|
|
105
|
+
*
|
|
106
|
+
* @module
|
|
110
107
|
*/
|
|
111
|
-
type AttributeData = Record<string, boolean | number | string>;
|
|
112
108
|
/**
|
|
113
109
|
* Structured attribute payload with explicit key-value mapping.
|
|
114
110
|
*/
|
|
@@ -116,24 +112,6 @@ type AttributePayload<T> = { readonly [P in keyof T]: {
|
|
|
116
112
|
readonly key: string;
|
|
117
113
|
readonly value: T[P];
|
|
118
114
|
} };
|
|
119
|
-
/**
|
|
120
|
-
* Base class for creating XML attributes with automatic name mapping.
|
|
121
|
-
*/
|
|
122
|
-
declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {
|
|
123
|
-
private readonly root;
|
|
124
|
-
/** Optional mapping from property names to XML attribute names. */
|
|
125
|
-
protected readonly xmlKeys?: AttributeMap<T>;
|
|
126
|
-
constructor(root: T);
|
|
127
|
-
prepForXml(_: Context): IXmlableObject;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Next-generation attribute component with explicit key-value pairs.
|
|
131
|
-
*/
|
|
132
|
-
declare class NextAttributeComponent<T> extends BaseXmlComponent {
|
|
133
|
-
private readonly root;
|
|
134
|
-
constructor(root: AttributePayload<T>);
|
|
135
|
-
prepForXml(_: Context): IXmlableObject;
|
|
136
|
-
}
|
|
137
115
|
//#endregion
|
|
138
116
|
//#region src/xml-components/elements.d.ts
|
|
139
117
|
/**
|
|
@@ -184,13 +162,17 @@ declare class BuilderElement<T = {}> extends XmlComponent {
|
|
|
184
162
|
});
|
|
185
163
|
}
|
|
186
164
|
/**
|
|
187
|
-
*
|
|
165
|
+
* Builds an attribute-only IXmlableObject from a plain key-value record.
|
|
188
166
|
*/
|
|
189
|
-
declare
|
|
167
|
+
declare function buildAttrObject(attrs: Record<string, string | number | boolean>): IXmlableObject;
|
|
168
|
+
/**
|
|
169
|
+
* Creates an attribute IXmlableObject for chart elements.
|
|
170
|
+
*/
|
|
171
|
+
declare const chartAttr: (attrs: Record<string, string | number | boolean>) => IXmlableObject;
|
|
190
172
|
/**
|
|
191
173
|
* Wraps a component in a named XmlComponent element.
|
|
192
174
|
*/
|
|
193
|
-
declare function wrapEl(elementName: string, child: BaseXmlComponent): XmlComponent;
|
|
175
|
+
declare function wrapEl(elementName: string, child: BaseXmlComponent | IXmlableObject): XmlComponent;
|
|
194
176
|
//#endregion
|
|
195
177
|
//#region src/xml-components/imported.d.ts
|
|
196
178
|
/**
|
|
@@ -210,11 +192,16 @@ declare class ImportedXmlComponent extends XmlComponent {
|
|
|
210
192
|
}
|
|
211
193
|
/**
|
|
212
194
|
* Represents attributes for imported root elements.
|
|
195
|
+
* The { _attr } in root is consumed by the parent's toXml() serialization.
|
|
213
196
|
*/
|
|
214
197
|
declare class ImportedRootElementAttributes extends XmlComponent {
|
|
215
198
|
private readonly _attr;
|
|
216
199
|
constructor(_attr: any);
|
|
217
|
-
|
|
200
|
+
/**
|
|
201
|
+
* @deprecated Use `toXml()` instead.
|
|
202
|
+
*/
|
|
203
|
+
prepForXml(_context: Context): IXmlableObject;
|
|
204
|
+
toXml(_context: Context): string;
|
|
218
205
|
}
|
|
219
206
|
//#endregion
|
|
220
207
|
//#region src/xml-components/initializable.d.ts
|
|
@@ -225,4 +212,4 @@ declare abstract class InitializableXmlComponent extends XmlComponent {
|
|
|
225
212
|
constructor(rootKey: string, initComponent?: XmlComponent);
|
|
226
213
|
}
|
|
227
214
|
//#endregion
|
|
228
|
-
export {
|
|
215
|
+
export { IXmlAttribute as C, Context as S, AttributePayload as _, BuilderElement as a, XmlComponent as b, buildAttrObject as c, numberValObj as d, onOffObj as f, wrapEl as g, stringValObj as h, convertToXmlComponent as i, chartAttr as l, stringEnumValObj as m, ImportedRootElementAttributes as n, EmptyElement as o, stringContainerObj as p, ImportedXmlComponent as r, attrObj as s, InitializableXmlComponent as t, hpsMeasureObj as u, EMPTY_OBJECT as v, IXmlableObject as w, BaseXmlComponent as x, IgnoreIfEmptyXmlComponent as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-
|
|
3
|
-
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "./index-
|
|
4
|
-
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "./index-
|
|
5
|
-
import { a as Point, c as Connection, d as getLayoutXml, f as getStyleXml, h as STYLE_CATEGORIES, i as SmartArtData, l as DEFAULT_DRAWING_XML, m as LAYOUT_CATEGORIES, n as createDataModel, o as TransPoint, p as COLOR_CATEGORIES, r as SmartArtCollection, s as DataModel, t as TreeNode, u as getColorXml } from "./index-
|
|
6
|
-
import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "./index-
|
|
1
|
+
import { C as IXmlAttribute, S as Context, _ as AttributePayload, a as BuilderElement, b as XmlComponent, c as buildAttrObject, d as numberValObj, f as onOffObj, g as wrapEl, h as stringValObj, i as convertToXmlComponent, l as chartAttr, m as stringEnumValObj, n as ImportedRootElementAttributes, o as EmptyElement, p as stringContainerObj, r as ImportedXmlComponent, s as attrObj, t as InitializableXmlComponent, u as hpsMeasureObj, v as EMPTY_OBJECT, w as IXmlableObject, x as BaseXmlComponent, y as IgnoreIfEmptyXmlComponent } from "./index-DP97S6un.mjs";
|
|
2
|
+
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-QyWq4U4A.mjs";
|
|
3
|
+
import { _ as CatAx, a as ChartData, c as ChartSeriesData, d as createChartType, f as ScatterChart, g as AreaChart, h as BarChart, i as ChartCollection, l as ChartType, m as LineChart, n as createNumRef, o as ChartSpace, p as PieChart, r as createStrRef, s as ChartSpaceOptions, t as ChartTitle, u as ChartTypeOptions, v as ValAx } from "./index-18VktT2t.mjs";
|
|
4
|
+
import { $ as RectAlignment, $t as createSolidFill, A as createBevel, At as FillOptions, B as createSoftEdgeEffect, Bt as RelativeRect, C as GeometryGuide, Ct as createGroupFill, D as createShape3D, Dt as createNoFill, E as Shape3DOptions, Et as createPatternFill, F as Point3D, Ft as GradientShadeOptions, G as EffectListOptions, Gt as TileOptions, H as EffectDagOptions, Ht as createGradientFill, I as Scene3DOptions, It as GradientStop, J as createReflectionEffect, Jt as createSourceRectangle, K as createEffectList, Kt as createTileInfo, L as SphereCoords, Lt as LinearShadeOptions, M as BackdropOptions, Mt as buildFill, N as CameraOptions, Nt as extractBlipFillMedia, O as BevelOptions, Ot as BlipFillConfigOptions, P as LightRigOptions, Pt as GradientFillOptions, Q as OuterShadowEffectOptions, Qt as createColorElement, R as Vector3D, Rt as PathShadeOptions, S as PresetGeometryOptions, St as createCustomDash, T as PresetMaterialType, Tt as PresetPattern, U as createEffectDag, Ut as createGradientStop, V as EffectContainerType, Vt as TileFlipMode, W as BlurEffectOptions, Wt as TileAlignment, X as PresetShadowVal, Xt as createBlipEffects, Y as PresetShadowEffectOptions, Yt as BlipEffectsOptions, Z as createPresetShadowEffect, Zt as SolidFillOptions, _ as PathCommand, _t as LineEndOptions, a as Transform2DOptions, an as createSchemeColor, at as BlendMode, b as createCustomGeometry, bt as createLineEnd, c as Stretch, cn as RgbColorOptions, ct as CompoundLine, d as createBlipFill, dn as PresetColorOptions, dt as OutlineFillProperties, en as SystemColor, et as createOuterShadowEffect, f as BlipOptions, fn as createPresetColor, ft as OutlineOptions, g as GeomRect, gn as createColorTransforms, gt as LineEndLength, h as CustomGeometryOptions, hn as ColorTransformOptions, ht as createOutline, i as GroupTransform2DOptions, in as SchemeColorOptions, it as createGlowEffect, j as createBottomBevel, jt as GradientStopOptions, k as BevelPresetType, kt as BlipFillMediaData, l as createExtentionList, ln as createRgbColor, lt as LineCap, m as ConnectionSite, mn as createHslColor, mt as PresetDash, n as MediaTransformation, nn as createSystemColor, nt as createInnerShadowEffect, o as createGroupTransform2D, on as ScRgbColorOptions, ot as FillOverlayEffectOptions, p as createBlip, pn as HslColorOptions, pt as PenAlignment, q as ReflectionEffectOptions, qt as SourceRectangleOptions, r as createTransformation, rn as SchemeColor, rt as GlowEffectOptions, s as createTransform2D, sn as createScRgbColor, st as createFillOverlayEffect, t as MediaDataTransformation, tn as SystemColorOptions, tt as InnerShadowEffectOptions, u as BlipFillOptions, un as PresetColor, ut as LineJoin, v as PathFillMode, vt as LineEndType, w as createAdjustmentValues, wt as PatternFillOptions, x as PresetGeometry, xt as DashStop, y as PathOptions, yt as LineEndWidth, z as createScene3D, zt as PathShadeType } from "./index-BaL8Sbrf.mjs";
|
|
5
|
+
import { a as Point, c as Connection, d as getLayoutXml, f as getStyleXml, h as STYLE_CATEGORIES, i as SmartArtData, l as DEFAULT_DRAWING_XML, m as LAYOUT_CATEGORIES, n as createDataModel, o as TransPoint, p as COLOR_CATEGORIES, r as SmartArtCollection, s as DataModel, t as TreeNode, u as getColorXml } from "./index-CEFUwJ2F.mjs";
|
|
6
|
+
import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "./index-DNLRdIqy.mjs";
|
|
7
7
|
import { Element } from "@office-open/xml";
|
|
8
8
|
import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8, unzipSync } from "fflate";
|
|
9
9
|
|
|
@@ -186,7 +186,7 @@ declare const createPacker: <TFile>(options: {
|
|
|
186
186
|
declare class AppProperties extends ImportedXmlComponent {
|
|
187
187
|
private static instance;
|
|
188
188
|
constructor();
|
|
189
|
-
|
|
189
|
+
toXml(_context: Context): string;
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/opc/relationships.d.ts
|
|
@@ -204,7 +204,6 @@ declare class Relationships extends BaseXmlComponent {
|
|
|
204
204
|
* Bypasses the IXmlableObject intermediate tree entirely.
|
|
205
205
|
*/
|
|
206
206
|
toXml(_context: Context): string;
|
|
207
|
-
prepForXml(_context: Context): IXmlableObject;
|
|
208
207
|
}
|
|
209
208
|
//#endregion
|
|
210
209
|
//#region src/opc/content-types.d.ts
|
|
@@ -230,14 +229,15 @@ declare const createOverride: (contentType: string, partName?: string) => XmlCom
|
|
|
230
229
|
* Converts an XmlComponent tree into a serializable XML object or string.
|
|
231
230
|
*/
|
|
232
231
|
declare class Formatter {
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated Use `component.toXml(context)` or `formatToXml()` instead.
|
|
234
|
+
*/
|
|
233
235
|
format<T extends Context = Context>(input: BaseXmlComponent, context?: T): Record<string, any>;
|
|
234
236
|
/**
|
|
235
237
|
* Serialize a component directly to XML string via the toXml() fast path.
|
|
238
|
+
* Always includes XML declaration.
|
|
236
239
|
*/
|
|
237
|
-
formatToXml(input: BaseXmlComponent, context: Context
|
|
238
|
-
encoding?: string;
|
|
239
|
-
standalone?: string;
|
|
240
|
-
}): string;
|
|
240
|
+
formatToXml(input: BaseXmlComponent, context: Context): string;
|
|
241
241
|
}
|
|
242
242
|
//#endregion
|
|
243
243
|
//#region src/core-properties.d.ts
|
|
@@ -272,6 +272,20 @@ declare function buildCorePropertiesXml(opts: {
|
|
|
272
272
|
readonly lastModifiedBy?: string;
|
|
273
273
|
readonly revision?: number;
|
|
274
274
|
}): IXmlableObject;
|
|
275
|
+
/**
|
|
276
|
+
* Build a cp:coreProperties XML string directly (fast path).
|
|
277
|
+
*
|
|
278
|
+
* Shared by pptx and xlsx to bypass the toXml() → xml() pipeline.
|
|
279
|
+
*/
|
|
280
|
+
declare function buildCorePropertiesXmlString(opts: {
|
|
281
|
+
readonly title?: string;
|
|
282
|
+
readonly subject?: string;
|
|
283
|
+
readonly creator?: string;
|
|
284
|
+
readonly keywords?: string;
|
|
285
|
+
readonly description?: string;
|
|
286
|
+
readonly lastModifiedBy?: string;
|
|
287
|
+
readonly revision?: number;
|
|
288
|
+
}): string;
|
|
275
289
|
//#endregion
|
|
276
290
|
//#region src/parser.d.ts
|
|
277
291
|
/**
|
|
@@ -331,7 +345,6 @@ declare class RawPassthrough extends BaseXmlComponent {
|
|
|
331
345
|
*/
|
|
332
346
|
type IdFormat = "rId" | "plain";
|
|
333
347
|
declare const formatId: (offset: number, index: number, style: IdFormat) => string;
|
|
334
|
-
declare function escapeRegex(str: string): string;
|
|
335
348
|
declare function hasPlaceholders(xml: string): boolean;
|
|
336
349
|
declare function collectPlaceholderKeys(xml: string, prefix: string): string[];
|
|
337
350
|
declare function replaceImagePlaceholders(xml: string, mediaData: readonly {
|
|
@@ -365,20 +378,20 @@ declare function invertMap<K extends string, V extends string>(map: Record<K, V>
|
|
|
365
378
|
declare const xsdRectAlignment: {
|
|
366
379
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
367
380
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
368
|
-
forward: Record<"
|
|
369
|
-
reverse: Record<"tl" | "t" | "tr" | "l" | "ctr" | "r" | "bl" | "b" | "br", "
|
|
381
|
+
forward: Record<"center" | "topLeft" | "top" | "topRight" | "left" | "right" | "bottomLeft" | "bottom" | "bottomRight", "tl" | "t" | "tr" | "l" | "ctr" | "r" | "bl" | "b" | "br">; /** The reverse map (XSD → user) */
|
|
382
|
+
reverse: Record<"tl" | "t" | "tr" | "l" | "ctr" | "r" | "bl" | "b" | "br", "center" | "topLeft" | "top" | "topRight" | "left" | "right" | "bottomLeft" | "bottom" | "bottomRight">;
|
|
370
383
|
};
|
|
371
384
|
declare const xsdTextAlign: {
|
|
372
385
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
373
386
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
374
|
-
forward: Record<"
|
|
375
|
-
reverse: Record<"l" | "ctr" | "r" | "just", "
|
|
387
|
+
forward: Record<"center" | "left" | "right" | "justify", "l" | "ctr" | "r" | "just">; /** The reverse map (XSD → user) */
|
|
388
|
+
reverse: Record<"l" | "ctr" | "r" | "just", "center" | "left" | "right" | "justify">;
|
|
376
389
|
};
|
|
377
390
|
declare const xsdTextAnchor: {
|
|
378
391
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
379
392
|
from: (xsd: string) => string; /** The forward map (user → XSD) */
|
|
380
|
-
forward: Record<"
|
|
381
|
-
reverse: Record<"t" | "ctr" | "b", "
|
|
393
|
+
forward: Record<"center" | "top" | "bottom", "t" | "ctr" | "b">; /** The reverse map (XSD → user) */
|
|
394
|
+
reverse: Record<"t" | "ctr" | "b", "center" | "top" | "bottom">;
|
|
382
395
|
};
|
|
383
396
|
declare const xsdLineCap: {
|
|
384
397
|
/** User-friendly value → XSD value */to: (key: string) => string; /** XSD value → user-friendly value */
|
|
@@ -479,4 +492,4 @@ declare function compileMapping(mapping: Record<string, {
|
|
|
479
492
|
path: string;
|
|
480
493
|
}[]): Zippable;
|
|
481
494
|
//#endregion
|
|
482
|
-
export { AppProperties, AreaChart,
|
|
495
|
+
export { AppProperties, AreaChart, AttributePayload, BackdropOptions, BarChart, BaseXmlComponent, BevelOptions, BevelPresetType, BlendMode, BlipEffectsOptions, BlipFillConfigOptions, BlipFillMediaData, BlipFillOptions, BlipOptions, BlurEffectOptions, BuilderElement, COLOR_CATEGORIES, CameraOptions, CatAx, ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartTitle, ChartType, ChartTypeOptions, ColorTransformOptions, CompileFn, CompoundLine, Connection, ConnectionSite, Context, CoreProperties, CustomGeometryOptions, DEFAULT_DRAWING_XML, DOCX_NS, DashStop, DataModel, type DefaultAttributes, EMPTY_OBJECT, EffectContainerType, EffectDagOptions, EffectListOptions, EmptyElement, FillOptions, FillOverlayEffectOptions, Formatter, GeomRect, GeometryGuide, GlowEffectOptions, GradientFillOptions, GradientShadeOptions, GradientStop, GradientStopOptions, GroupTransform2DOptions, HslColorOptions, IXmlAttribute, IXmlableObject, IdFormat, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InnerShadowEffectOptions, LAYOUT_CATEGORIES, LightRigOptions, LineCap, LineChart, LineEndLength, LineEndOptions, LineEndType, LineEndWidth, LineJoin, LinearShadeOptions, MediaDataTransformation, MediaTransformation, OoxmlMimeType, OuterShadowEffectOptions, OutlineFillProperties, OutlineOptions, OutputByType, OutputType, type OverrideAttributes, PPTX_NS, Packer, ParsedArchive, PathCommand, PathFillMode, PathOptions, PathShadeOptions, PathShadeType, PatternFillOptions, PenAlignment, Percentage, PieChart, Point, Point3D, PositivePercentage, PositiveUniversalMeasure, PresetColor, PresetColorOptions, PresetDash, PresetGeometry, PresetGeometryOptions, PresetMaterialType, PresetPattern, PresetShadowEffectOptions, PresetShadowVal, RawPassthrough, RectAlignment, ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, RelativeRect, RenderedParagraphNode, ReplacerConfig, RgbColorOptions, STYLE_CATEGORIES, ScRgbColorOptions, ScatterChart, Scene3DOptions, SchemeColor, SchemeColorOptions, Shape3DOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, SolidFillOptions, SourceRectangleOptions, SphereCoords, Stretch, SystemColor, SystemColorOptions, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, TileOptions, TokenNotFoundError, TransPoint, Transform2DOptions, TreeNode, UniqueNumericIdCreator, UniversalMeasure, ValAx, Vector3D, XmlComponent, XmlNamespaceConfig, XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChartType, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createDataModel, createDefault, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createNumRef, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStrRef, createSystemColor, createTextElementContents, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, dateTimeValue, decimalNumber, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { ThemeColor, ThemeFont, dateTimeValue, decimalNumber, eighthPointMeasureValue, hexBinary, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, universalMeasureValue, unsignedDecimalNumber } from "./values.
|
|
3
|
-
import { $ as xsdCompoundLine, A as LineJoin, At as hashedId, B as createNoFill, Bt as convertPixelsToEmu, C as createOuterShadowEffect, Ct as createSchemeColor, D as createFillOverlayEffect, Dt as createPresetColor, E as BlendMode, Et as PresetColor, F as LineEndType, Ft as convertEmuToPixels, G as PathShadeType, H as extractBlipFillMedia, I as LineEndWidth, It as convertEmuToPoints, J as createGradientStop, K as TileFlipMode, L as createLineEnd, Lt as convertInchesToEmu, M as PresetDash, Mt as uniqueNumericIdCreator, N as createOutline, Nt as uniqueUuid, O as CompoundLine, Ot as createHslColor, P as LineEndLength, Pt as convertEmuToInches, Q as xsdBlendMode, R as createCustomDash, Rt as convertInchesToTwip, S as RectAlignment, St as SchemeColor, T as createGlowEffect, Tt as createRgbColor, U as PresetPattern, V as buildFill, Vt as convertPointsToEmu, W as createPatternFill, X as createTileInfo, Y as TileAlignment, Z as invertMap, _ as createEffectList, _t as createBlipEffects, a as createBlip, at as xsdPattern, b as PresetShadowVal, bt as SystemColor, c as PresetGeometry, ct as xsdRectAlignment, d as createShape3D, dt as xsdTextAnchor, et as xsdEffectContainer, f as BevelPresetType, ft as xsdTextCaps, g as createEffectDag, gt as createSourceRectangle, h as createScene3D, ht as Stretch, i as createBlipFill, it as xsdPathFillMode, j as PenAlignment, jt as uniqueId, k as LineCap, kt as createColorTransforms, l as createAdjustmentValues, lt as xsdStrikeStyle, m as createBottomBevel, mt as xsdVerticalMergeRev, n as createGroupTransform2D, nt as xsdLineEndSize, o as createExtentionList, ot as xsdPenAlignment, p as createBevel, pt as xsdUnderlineStyle, q as createGradientFill, r as createTransform2D, rt as xsdMaterialType, s as createCustomGeometry, st as xsdPresetShadow, t as createTransformation, tt as xsdLineCap, u as PresetMaterialType, ut as xsdTextAlign, v as createSoftEdgeEffect, vt as createColorElement, w as createInnerShadowEffect, wt as createScRgbColor, x as createPresetShadowEffect, xt as createSystemColor, y as createReflectionEffect, yt as createSolidFill, z as createGroupFill, zt as convertMillimetersToTwip } from "./drawingml-
|
|
4
|
-
import { a as DataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as TransPoint, l as getLayoutXml, n as SmartArtCollection, o as Connection, p as STYLE_CATEGORIES, r as Point, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "./smartart-
|
|
5
|
-
import { a as ScatterChart, c as BarChart, d as createStrRef, f as CatAx, i as createChartType, l as AreaChart, n as ChartSpace, o as PieChart, p as ValAx, r as ChartTitle, s as LineChart, t as ChartCollection, u as createNumRef } from "./chart-
|
|
6
|
-
import { a as createTraverser, c as TokenNotFoundError, d as getFirstLevelElements, f as patchSpaceAttribute, h as PPTX_NS, i as createReplacer, l as createSplitInject, m as DOCX_NS, n as getNextRelationshipIndex, o as createRunRenderer, p as toJson, r as appendContentType, s as createTokenReplacer, t as appendRelationship, u as createTextElementContents } from "./patch-
|
|
1
|
+
import { _ as EMPTY_OBJECT, a as BuilderElement, b as BaseXmlComponent, c as buildAttrObject, d as numberValObj, f as onOffObj, g as wrapEl, h as stringValObj, i as convertToXmlComponent, l as chartAttr, m as stringEnumValObj, n as ImportedRootElementAttributes, o as EmptyElement, p as stringContainerObj, r as ImportedXmlComponent, s as attrObj, t as InitializableXmlComponent, u as hpsMeasureObj, v as IgnoreIfEmptyXmlComponent, y as XmlComponent } from "./xml-components-Cfvn_mId.mjs";
|
|
2
|
+
import { ThemeColor, ThemeFont, dateTimeValue, decimalNumber, eighthPointMeasureValue, hexBinary, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, universalMeasureValue, unsignedDecimalNumber } from "./values.mjs";
|
|
3
|
+
import { $ as xsdCompoundLine, A as LineJoin, At as hashedId, B as createNoFill, Bt as convertPixelsToEmu, C as createOuterShadowEffect, Ct as createSchemeColor, D as createFillOverlayEffect, Dt as createPresetColor, E as BlendMode, Et as PresetColor, F as LineEndType, Ft as convertEmuToPixels, G as PathShadeType, H as extractBlipFillMedia, I as LineEndWidth, It as convertEmuToPoints, J as createGradientStop, K as TileFlipMode, L as createLineEnd, Lt as convertInchesToEmu, M as PresetDash, Mt as uniqueNumericIdCreator, N as createOutline, Nt as uniqueUuid, O as CompoundLine, Ot as createHslColor, P as LineEndLength, Pt as convertEmuToInches, Q as xsdBlendMode, R as createCustomDash, Rt as convertInchesToTwip, S as RectAlignment, St as SchemeColor, T as createGlowEffect, Tt as createRgbColor, U as PresetPattern, V as buildFill, Vt as convertPointsToEmu, W as createPatternFill, X as createTileInfo, Y as TileAlignment, Z as invertMap, _ as createEffectList, _t as createBlipEffects, a as createBlip, at as xsdPattern, b as PresetShadowVal, bt as SystemColor, c as PresetGeometry, ct as xsdRectAlignment, d as createShape3D, dt as xsdTextAnchor, et as xsdEffectContainer, f as BevelPresetType, ft as xsdTextCaps, g as createEffectDag, gt as createSourceRectangle, h as createScene3D, ht as Stretch, i as createBlipFill, it as xsdPathFillMode, j as PenAlignment, jt as uniqueId, k as LineCap, kt as createColorTransforms, l as createAdjustmentValues, lt as xsdStrikeStyle, m as createBottomBevel, mt as xsdVerticalMergeRev, n as createGroupTransform2D, nt as xsdLineEndSize, o as createExtentionList, ot as xsdPenAlignment, p as createBevel, pt as xsdUnderlineStyle, q as createGradientFill, r as createTransform2D, rt as xsdMaterialType, s as createCustomGeometry, st as xsdPresetShadow, t as createTransformation, tt as xsdLineCap, u as PresetMaterialType, ut as xsdTextAlign, v as createSoftEdgeEffect, vt as createColorElement, w as createInnerShadowEffect, wt as createScRgbColor, x as createPresetShadowEffect, xt as createSystemColor, y as createReflectionEffect, yt as createSolidFill, z as createGroupFill, zt as convertMillimetersToTwip } from "./drawingml-C0t3mzSK.mjs";
|
|
4
|
+
import { a as DataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as TransPoint, l as getLayoutXml, n as SmartArtCollection, o as Connection, p as STYLE_CATEGORIES, r as Point, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "./smartart-BKz8xM1k.mjs";
|
|
5
|
+
import { a as ScatterChart, c as BarChart, d as createStrRef, f as CatAx, i as createChartType, l as AreaChart, n as ChartSpace, o as PieChart, p as ValAx, r as ChartTitle, s as LineChart, t as ChartCollection, u as createNumRef } from "./chart-jj57bDdC.mjs";
|
|
6
|
+
import { a as createTraverser, c as TokenNotFoundError, d as getFirstLevelElements, f as patchSpaceAttribute, h as PPTX_NS, i as createReplacer, l as createSplitInject, m as DOCX_NS, n as getNextRelationshipIndex, o as createRunRenderer, p as toJson, r as appendContentType, s as createTokenReplacer, t as appendRelationship, u as createTextElementContents } from "./patch-O6SD_BaJ.mjs";
|
|
7
7
|
import { escapeXml, js2xml, textOf, xml2js } from "@office-open/xml";
|
|
8
8
|
import { AsyncZipDeflate, Zip, ZipPassThrough, strFromU8, strFromU8 as strFromU8$1, strToU8, unzipSync, unzipSync as unzipSync$1, zip, zipSync } from "fflate";
|
|
9
9
|
//#region src/output-type.ts
|
|
@@ -166,14 +166,13 @@ var AppProperties = class AppProperties extends ImportedXmlComponent {
|
|
|
166
166
|
constructor() {
|
|
167
167
|
super("Properties");
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
return AppProperties.instance.
|
|
169
|
+
toXml(_context) {
|
|
170
|
+
return AppProperties.instance.toXml(_context);
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region src/opc/relationships.ts
|
|
175
175
|
const TargetModeType = { EXTERNAL: "External" };
|
|
176
|
-
const RELS_ATTRS = { _attr: { xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" } };
|
|
177
176
|
var Relationships = class extends BaseXmlComponent {
|
|
178
177
|
entries = [];
|
|
179
178
|
constructor() {
|
|
@@ -203,20 +202,6 @@ var Relationships = class extends BaseXmlComponent {
|
|
|
203
202
|
p.push("</Relationships>");
|
|
204
203
|
return p.join("");
|
|
205
204
|
}
|
|
206
|
-
prepForXml(_context) {
|
|
207
|
-
const children = [RELS_ATTRS];
|
|
208
|
-
for (const e of this.entries) {
|
|
209
|
-
const attrs = {
|
|
210
|
-
Id: e.id,
|
|
211
|
-
Type: e.type,
|
|
212
|
-
Target: e.target
|
|
213
|
-
};
|
|
214
|
-
if (e.targetMode) attrs.TargetMode = e.targetMode;
|
|
215
|
-
children.push({ Relationship: { _attr: attrs } });
|
|
216
|
-
}
|
|
217
|
-
if (children.length === 1 && "_attr" in children[0]) return { Relationships: children[0] };
|
|
218
|
-
return { Relationships: children };
|
|
219
|
-
}
|
|
220
205
|
};
|
|
221
206
|
//#endregion
|
|
222
207
|
//#region src/opc/content-types.ts
|
|
@@ -269,6 +254,9 @@ const XML_DECL = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
|
|
|
269
254
|
* Converts an XmlComponent tree into a serializable XML object or string.
|
|
270
255
|
*/
|
|
271
256
|
var Formatter = class {
|
|
257
|
+
/**
|
|
258
|
+
* @deprecated Use `component.toXml(context)` or `formatToXml()` instead.
|
|
259
|
+
*/
|
|
272
260
|
format(input, context = { stack: [] }) {
|
|
273
261
|
const output = input.prepForXml(context);
|
|
274
262
|
if (output) return output;
|
|
@@ -276,12 +264,11 @@ var Formatter = class {
|
|
|
276
264
|
}
|
|
277
265
|
/**
|
|
278
266
|
* Serialize a component directly to XML string via the toXml() fast path.
|
|
267
|
+
* Always includes XML declaration.
|
|
279
268
|
*/
|
|
280
|
-
formatToXml(input, context
|
|
269
|
+
formatToXml(input, context) {
|
|
281
270
|
const body = input.toXml(context);
|
|
282
|
-
|
|
283
|
-
if (declaration) return (declaration === true ? XML_DECL : `<?xml version="1.0" encoding="${declaration.encoding || "UTF-8"}"${declaration.standalone ? ` standalone="${declaration.standalone}"` : ""}?>`) + body;
|
|
284
|
-
return body;
|
|
271
|
+
return body ? XML_DECL + body : "";
|
|
285
272
|
}
|
|
286
273
|
};
|
|
287
274
|
//#endregion
|
|
@@ -355,13 +342,33 @@ function buildCorePropertiesXml(opts) {
|
|
|
355
342
|
if (opts.creator) children.push({ "dc:creator": [opts.creator] });
|
|
356
343
|
if (opts.keywords) children.push({ "cp:keywords": [opts.keywords] });
|
|
357
344
|
if (opts.description) children.push({ "dc:description": [opts.description] });
|
|
358
|
-
|
|
345
|
+
children.push({ "cp:lastModifiedBy": [opts.lastModifiedBy || opts.creator || "Unknown"] });
|
|
359
346
|
if (opts.revision) children.push({ "cp:revision": [String(opts.revision)] });
|
|
360
347
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
361
348
|
children.push({ "dcterms:created": [W3CDTF_ATTR, now] });
|
|
362
349
|
children.push({ "dcterms:modified": [W3CDTF_ATTR, now] });
|
|
363
350
|
return { "cp:coreProperties": children };
|
|
364
351
|
}
|
|
352
|
+
/**
|
|
353
|
+
* Build a cp:coreProperties XML string directly (fast path).
|
|
354
|
+
*
|
|
355
|
+
* Shared by pptx and xlsx to bypass the toXml() → xml() pipeline.
|
|
356
|
+
*/
|
|
357
|
+
function buildCorePropertiesXmlString(opts) {
|
|
358
|
+
const p = ["<cp:coreProperties xmlns:cp=\"http://schemas.openxmlformats.org/package/2006/metadata/core-properties\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:dcmitype=\"http://purl.org/dc/dcmitype/\" xmlns:dcterms=\"http://purl.org/dc/terms/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"];
|
|
359
|
+
if (opts.title) p.push(`<dc:title>${escapeXml(opts.title)}</dc:title>`);
|
|
360
|
+
if (opts.subject) p.push(`<dc:subject>${escapeXml(opts.subject)}</dc:subject>`);
|
|
361
|
+
if (opts.creator) p.push(`<dc:creator>${escapeXml(opts.creator)}</dc:creator>`);
|
|
362
|
+
if (opts.keywords) p.push(`<cp:keywords>${escapeXml(opts.keywords)}</cp:keywords>`);
|
|
363
|
+
if (opts.description) p.push(`<dc:description>${escapeXml(opts.description)}</dc:description>`);
|
|
364
|
+
p.push(`<cp:lastModifiedBy>${escapeXml(opts.lastModifiedBy || opts.creator || "Unknown")}</cp:lastModifiedBy>`);
|
|
365
|
+
if (opts.revision) p.push(`<cp:revision>${opts.revision}</cp:revision>`);
|
|
366
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
367
|
+
p.push(`<dcterms:created xsi:type="dcterms:W3CDTF">${now}</dcterms:created>`);
|
|
368
|
+
p.push(`<dcterms:modified xsi:type="dcterms:W3CDTF">${now}</dcterms:modified>`);
|
|
369
|
+
p.push("</cp:coreProperties>");
|
|
370
|
+
return p.join("");
|
|
371
|
+
}
|
|
365
372
|
//#endregion
|
|
366
373
|
//#region src/parser.ts
|
|
367
374
|
const XML_PARSE_OPTIONS = {
|
|
@@ -440,13 +447,32 @@ var ParsedArchive = class {
|
|
|
440
447
|
/** Serialize back to a ZIP buffer, merging original zip + modifications. */
|
|
441
448
|
save() {
|
|
442
449
|
const files = {};
|
|
443
|
-
for (const [path, data] of this.zip) if (!this.modified.has(path)) files[path] =
|
|
444
|
-
for (const [path, data] of this.modified) files[path] =
|
|
450
|
+
for (const [path, data] of this.zip) if (!this.modified.has(path)) files[path] = isMediaPath(path) ? [data, { level: MEDIA_STORED_LEVEL }] : data;
|
|
451
|
+
for (const [path, data] of this.modified) files[path] = isMediaPath(path) ? [data, { level: MEDIA_STORED_LEVEL }] : data;
|
|
445
452
|
return zipSync(files);
|
|
446
453
|
}
|
|
447
454
|
};
|
|
448
|
-
/**
|
|
449
|
-
const
|
|
455
|
+
/** Set of already-compressed media file extensions (lowercase, with dot prefix). */
|
|
456
|
+
const MEDIA_EXTENSIONS = new Set([
|
|
457
|
+
".png",
|
|
458
|
+
".jpg",
|
|
459
|
+
".jpeg",
|
|
460
|
+
".gif",
|
|
461
|
+
".wmf",
|
|
462
|
+
".emf",
|
|
463
|
+
".tif",
|
|
464
|
+
".tiff",
|
|
465
|
+
".avi",
|
|
466
|
+
".mp4",
|
|
467
|
+
".mp3",
|
|
468
|
+
".wav"
|
|
469
|
+
]);
|
|
470
|
+
/** Check if a file path has a media extension that should use STORE (no compression). */
|
|
471
|
+
function isMediaPath(path) {
|
|
472
|
+
const dot = path.lastIndexOf(".");
|
|
473
|
+
if (dot === -1) return false;
|
|
474
|
+
return MEDIA_EXTENSIONS.has(path.slice(dot).toLowerCase());
|
|
475
|
+
}
|
|
450
476
|
/** STORE level for already-compressed media formats. */
|
|
451
477
|
const MEDIA_STORED_LEVEL = 0;
|
|
452
478
|
/** Parse an OOXML archive (.docx, .pptx, .xlsx) into a ParsedArchive. */
|
|
@@ -492,9 +518,6 @@ var RawPassthrough = class extends BaseXmlComponent {
|
|
|
492
518
|
//#endregion
|
|
493
519
|
//#region src/placeholder.ts
|
|
494
520
|
const formatId = (offset, index, style) => style === "rId" ? `rId${offset + index}` : `${offset + index}`;
|
|
495
|
-
function escapeRegex(str) {
|
|
496
|
-
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
497
|
-
}
|
|
498
521
|
function hasPlaceholders(xml) {
|
|
499
522
|
return xml.includes("{");
|
|
500
523
|
}
|
|
@@ -515,7 +538,7 @@ function collectPlaceholderKeys(xml, prefix) {
|
|
|
515
538
|
function replaceImagePlaceholders(xml, mediaData, offset, idFormat = "rId") {
|
|
516
539
|
let result = xml;
|
|
517
540
|
mediaData.forEach((image, i) => {
|
|
518
|
-
result = result.
|
|
541
|
+
result = result.replaceAll(`{${image.fileName}}`, formatId(offset, i, idFormat));
|
|
519
542
|
});
|
|
520
543
|
return result;
|
|
521
544
|
}
|
|
@@ -525,7 +548,7 @@ function getReferencedMedia(xml, mediaArray) {
|
|
|
525
548
|
function replaceChartPlaceholders(xml, chartKeys, offset, idFormat = "rId") {
|
|
526
549
|
let result = xml;
|
|
527
550
|
chartKeys.forEach((key, i) => {
|
|
528
|
-
result = result.
|
|
551
|
+
result = result.replaceAll(`{chart:${key}}`, formatId(offset, i, idFormat));
|
|
529
552
|
});
|
|
530
553
|
return result;
|
|
531
554
|
}
|
|
@@ -536,10 +559,10 @@ function replaceSmartArtPlaceholders(xml, keys, dataOffset, idFormat = "rId") {
|
|
|
536
559
|
const qsOffset = loOffset + count;
|
|
537
560
|
const csOffset = qsOffset + count;
|
|
538
561
|
keys.forEach((key, i) => {
|
|
539
|
-
result = result.
|
|
540
|
-
result = result.
|
|
541
|
-
result = result.
|
|
542
|
-
result = result.
|
|
562
|
+
result = result.replaceAll(`{smartart:${key}}`, formatId(dataOffset, i, idFormat));
|
|
563
|
+
result = result.replaceAll(`{smartart-lo:${key}}`, formatId(loOffset, i, idFormat));
|
|
564
|
+
result = result.replaceAll(`{smartart-qs:${key}}`, formatId(qsOffset, i, idFormat));
|
|
565
|
+
result = result.replaceAll(`{smartart-cs:${key}}`, formatId(csOffset, i, idFormat));
|
|
543
566
|
});
|
|
544
567
|
return result;
|
|
545
568
|
}
|
|
@@ -577,4 +600,4 @@ function compileMapping(mapping, overrides, media) {
|
|
|
577
600
|
return files;
|
|
578
601
|
}
|
|
579
602
|
//#endregion
|
|
580
|
-
export { AppProperties, AreaChart, BarChart, BaseXmlComponent, BevelPresetType, BlendMode, BuilderElement, COLOR_CATEGORIES, CatAx, ChartCollection, ChartSpace, ChartTitle, CompoundLine, Connection, DEFAULT_DRAWING_XML, DOCX_NS, DataModel, EMPTY_OBJECT, EmptyElement, Formatter, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, LAYOUT_CATEGORIES, LineCap, LineChart, LineEndLength, LineEndType, LineEndWidth, LineJoin,
|
|
603
|
+
export { AppProperties, AreaChart, BarChart, BaseXmlComponent, BevelPresetType, BlendMode, BuilderElement, COLOR_CATEGORIES, CatAx, ChartCollection, ChartSpace, ChartTitle, CompoundLine, Connection, DEFAULT_DRAWING_XML, DOCX_NS, DataModel, EMPTY_OBJECT, EmptyElement, Formatter, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, LAYOUT_CATEGORIES, LineCap, LineChart, LineEndLength, LineEndType, LineEndWidth, LineJoin, OoxmlMimeType, PPTX_NS, ParsedArchive, PathShadeType, PenAlignment, PieChart, Point, PresetColor, PresetDash, PresetGeometry, PresetMaterialType, PresetPattern, PresetShadowVal, RawPassthrough, RectAlignment, Relationships, STYLE_CATEGORIES, ScatterChart, SchemeColor, SmartArtCollection, Stretch, SystemColor, TargetModeType, ThemeColor, ThemeFont, TileAlignment, TileFlipMode, TokenNotFoundError, TransPoint, ValAx, XmlComponent, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, buildAttrObject, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, chartAttr, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertToXmlComponent, createAdjustmentValues, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChartType, createColorElement, createColorTransforms, createCustomDash, createCustomGeometry, createDataModel, createDefault, createEffectDag, createEffectList, createExtentionList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGroupFill, createGroupTransform2D, createHslColor, createInnerShadowEffect, createLineEnd, createNoFill, createNumRef, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStrRef, createSystemColor, createTextElementContents, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createZipStream, dateTimeValue, decimalNumber, eighthPointMeasureValue, elementToCompact, extractBlipFillMedia, formatId, getColorXml, getFirstLevelElements, getLayoutXml, getNextRelationshipIndex, getReferencedMedia, getStyleXml, hasPlaceholders, hashedId, hexBinary, hexColorValue, hpsMeasureObj, hpsMeasureValue, invertMap, longHexNumber, measurementOrPercentValue, numberValObj, onOffObj, parseArchive, parseCorePropsElement, patchSpaceAttribute, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, strFromU8, stringContainerObj, stringEnumValObj, stringValObj, toJson, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, wrapEl, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "../index-
|
|
1
|
+
import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "../index-DNLRdIqy.mjs";
|
|
2
2
|
export { DOCX_NS, PPTX_NS, RenderedParagraphNode, ReplacerConfig, TokenNotFoundError, XmlNamespaceConfig, appendContentType, appendRelationship, createReplacer, createRunRenderer, createSplitInject, createTextElementContents, createTokenReplacer, createTraverser, getFirstLevelElements, getNextRelationshipIndex, patchSpaceAttribute, toJson };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createTraverser, c as TokenNotFoundError, d as getFirstLevelElements, f as patchSpaceAttribute, h as PPTX_NS, i as createReplacer, l as createSplitInject, m as DOCX_NS, n as getNextRelationshipIndex, o as createRunRenderer, p as toJson, r as appendContentType, s as createTokenReplacer, t as appendRelationship, u as createTextElementContents } from "../patch-
|
|
1
|
+
import { a as createTraverser, c as TokenNotFoundError, d as getFirstLevelElements, f as patchSpaceAttribute, h as PPTX_NS, i as createReplacer, l as createSplitInject, m as DOCX_NS, n as getNextRelationshipIndex, o as createRunRenderer, p as toJson, r as appendContentType, s as createTokenReplacer, t as appendRelationship, u as createTextElementContents } from "../patch-O6SD_BaJ.mjs";
|
|
2
2
|
export { DOCX_NS, PPTX_NS, TokenNotFoundError, appendContentType, appendRelationship, createReplacer, createRunRenderer, createSplitInject, createTextElementContents, createTokenReplacer, createTraverser, getFirstLevelElements, getNextRelationshipIndex, patchSpaceAttribute, toJson };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Point, c as Connection, d as getLayoutXml, f as getStyleXml, h as STYLE_CATEGORIES, i as SmartArtData, l as DEFAULT_DRAWING_XML, m as LAYOUT_CATEGORIES, n as createDataModel, o as TransPoint, p as COLOR_CATEGORIES, r as SmartArtCollection, s as DataModel, t as TreeNode, u as getColorXml } from "../index-
|
|
1
|
+
import { a as Point, c as Connection, d as getLayoutXml, f as getStyleXml, h as STYLE_CATEGORIES, i as SmartArtData, l as DEFAULT_DRAWING_XML, m as LAYOUT_CATEGORIES, n as createDataModel, o as TransPoint, p as COLOR_CATEGORIES, r as SmartArtCollection, s as DataModel, t as TreeNode, u as getColorXml } from "../index-CEFUwJ2F.mjs";
|
|
2
2
|
export { COLOR_CATEGORIES, Connection, DEFAULT_DRAWING_XML, DataModel, LAYOUT_CATEGORIES, Point, STYLE_CATEGORIES, SmartArtCollection, SmartArtData, TransPoint, TreeNode, createDataModel, getColorXml, getLayoutXml, getStyleXml };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as TransPoint, l as getLayoutXml, n as SmartArtCollection, o as Connection, p as STYLE_CATEGORIES, r as Point, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "../smartart-
|
|
1
|
+
import { a as DataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as TransPoint, l as getLayoutXml, n as SmartArtCollection, o as Connection, p as STYLE_CATEGORIES, r as Point, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "../smartart-BKz8xM1k.mjs";
|
|
2
2
|
export { COLOR_CATEGORIES, Connection, DEFAULT_DRAWING_XML, DataModel, LAYOUT_CATEGORIES, Point, STYLE_CATEGORIES, SmartArtCollection, TransPoint, createDataModel, getColorXml, getLayoutXml, getStyleXml };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as chartAttr, y as XmlComponent } from "./xml-components-Cfvn_mId.mjs";
|
|
2
2
|
//#region src/smartart/categories.ts
|
|
3
3
|
/** Layout ID → OOXML category type */
|
|
4
4
|
const LAYOUT_CATEGORIES = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-
|
|
1
|
+
import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-QyWq4U4A.mjs";
|
|
2
2
|
export { Percentage, PositivePercentage, PositiveUniversalMeasure, RelativeMeasure, ThemeColor, ThemeFont, UniversalMeasure, dateTimeValue, decimalNumber, eighthPointMeasureValue, hexBinary, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, universalMeasureValue, unsignedDecimalNumber };
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { hpsMeasureValue } from "./values.
|
|
1
|
+
import { hpsMeasureValue } from "./values.mjs";
|
|
2
2
|
import { escapeXml, xml, xml2js } from "@office-open/xml";
|
|
3
3
|
//#region src/xml-components/base.ts
|
|
4
4
|
/**
|
|
5
|
-
* Base XML Component infrastructure for OOXML document generation.
|
|
6
|
-
*
|
|
7
|
-
* @module
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
5
|
* Abstract base class for all XML components.
|
|
11
6
|
*/
|
|
12
7
|
var BaseXmlComponent = class {
|
|
@@ -16,12 +11,14 @@ var BaseXmlComponent = class {
|
|
|
16
11
|
this.rootKey = rootKey;
|
|
17
12
|
}
|
|
18
13
|
/**
|
|
14
|
+
* @deprecated Use `toXml()` instead.
|
|
15
|
+
*/
|
|
16
|
+
prepForXml(_context) {}
|
|
17
|
+
/**
|
|
19
18
|
* Direct XML serialization. Override in subclasses for zero-allocation output.
|
|
20
|
-
* Default falls back to prepForXml() + xml().
|
|
21
19
|
*/
|
|
22
|
-
toXml(
|
|
23
|
-
|
|
24
|
-
return obj ? xml(obj) : "";
|
|
20
|
+
toXml(_context) {
|
|
21
|
+
return "";
|
|
25
22
|
}
|
|
26
23
|
};
|
|
27
24
|
//#endregion
|
|
@@ -55,7 +52,7 @@ var XmlComponent = class extends BaseXmlComponent {
|
|
|
55
52
|
this.root = [];
|
|
56
53
|
}
|
|
57
54
|
/**
|
|
58
|
-
*
|
|
55
|
+
* @deprecated Use `toXml()` instead.
|
|
59
56
|
*/
|
|
60
57
|
prepForXml(context) {
|
|
61
58
|
context.stack.push(this);
|
|
@@ -106,10 +103,13 @@ var IgnoreIfEmptyXmlComponent = class extends XmlComponent {
|
|
|
106
103
|
super(rootKey);
|
|
107
104
|
this.includeIfEmpty = includeIfEmpty;
|
|
108
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated Use `toXml()` instead.
|
|
108
|
+
*/
|
|
109
109
|
prepForXml(context) {
|
|
110
|
+
if (this.includeIfEmpty) return super.prepForXml(context);
|
|
110
111
|
const result = super.prepForXml(context);
|
|
111
|
-
|
|
112
|
-
if (result && (typeof result[this.rootKey] !== "object" || Object.keys(result[this.rootKey]).length)) return result;
|
|
112
|
+
return result && result[this.rootKey] === EMPTY_OBJECT ? void 0 : result;
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Suppress empty elements — super.toXml() produces a self-closing tag
|
|
@@ -124,52 +124,6 @@ var IgnoreIfEmptyXmlComponent = class extends XmlComponent {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
//#endregion
|
|
127
|
-
//#region src/xml-components/attributes.ts
|
|
128
|
-
/**
|
|
129
|
-
* XML attribute components for OOXML document generation.
|
|
130
|
-
*
|
|
131
|
-
* @module
|
|
132
|
-
*/
|
|
133
|
-
/**
|
|
134
|
-
* Base class for creating XML attributes with automatic name mapping.
|
|
135
|
-
*/
|
|
136
|
-
var XmlAttributeComponent = class extends BaseXmlComponent {
|
|
137
|
-
/** Optional mapping from property names to XML attribute names. */
|
|
138
|
-
xmlKeys;
|
|
139
|
-
constructor(root) {
|
|
140
|
-
super("_attr");
|
|
141
|
-
this.root = root;
|
|
142
|
-
}
|
|
143
|
-
prepForXml(_) {
|
|
144
|
-
const attrs = {};
|
|
145
|
-
Object.entries(this.root).forEach(([key, value]) => {
|
|
146
|
-
if (value !== void 0) {
|
|
147
|
-
const newKey = this.xmlKeys && this.xmlKeys[key] || key;
|
|
148
|
-
attrs[newKey] = value;
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
return { _attr: attrs };
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Next-generation attribute component with explicit key-value pairs.
|
|
156
|
-
*/
|
|
157
|
-
var NextAttributeComponent = class extends BaseXmlComponent {
|
|
158
|
-
constructor(root) {
|
|
159
|
-
super("_attr");
|
|
160
|
-
this.root = root;
|
|
161
|
-
}
|
|
162
|
-
prepForXml(_) {
|
|
163
|
-
const attrs = {};
|
|
164
|
-
const values = Object.values(this.root);
|
|
165
|
-
for (let i = 0; i < values.length; i++) {
|
|
166
|
-
const { key, value } = values[i];
|
|
167
|
-
if (value !== void 0) attrs[key] = value;
|
|
168
|
-
}
|
|
169
|
-
return { _attr: attrs };
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
//#endregion
|
|
173
127
|
//#region src/xml-components/elements.ts
|
|
174
128
|
/**
|
|
175
129
|
* Simple XML element types for common OOXML patterns.
|
|
@@ -258,12 +212,17 @@ var BuilderElement = class extends XmlComponent {
|
|
|
258
212
|
}
|
|
259
213
|
};
|
|
260
214
|
/**
|
|
261
|
-
*
|
|
215
|
+
* Builds an attribute-only IXmlableObject from a plain key-value record.
|
|
262
216
|
*/
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
value
|
|
266
|
-
}
|
|
217
|
+
function buildAttrObject(attrs) {
|
|
218
|
+
const result = {};
|
|
219
|
+
for (const [key, value] of Object.entries(attrs)) if (value !== void 0) result[key] = value;
|
|
220
|
+
return Object.keys(result).length > 0 ? { _attr: result } : EMPTY_OBJECT;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Creates an attribute IXmlableObject for chart elements.
|
|
224
|
+
*/
|
|
225
|
+
const chartAttr = (attrs) => buildAttrObject(attrs);
|
|
267
226
|
/**
|
|
268
227
|
* Wraps a component in a named XmlComponent element.
|
|
269
228
|
*/
|
|
@@ -329,15 +288,23 @@ var ImportedXmlComponent = class extends XmlComponent {
|
|
|
329
288
|
};
|
|
330
289
|
/**
|
|
331
290
|
* Represents attributes for imported root elements.
|
|
291
|
+
* The { _attr } in root is consumed by the parent's toXml() serialization.
|
|
332
292
|
*/
|
|
333
293
|
var ImportedRootElementAttributes = class extends XmlComponent {
|
|
334
294
|
constructor(_attr) {
|
|
335
295
|
super("");
|
|
336
296
|
this._attr = _attr;
|
|
297
|
+
if (_attr) this.root.push({ _attr });
|
|
337
298
|
}
|
|
338
|
-
|
|
299
|
+
/**
|
|
300
|
+
* @deprecated Use `toXml()` instead.
|
|
301
|
+
*/
|
|
302
|
+
prepForXml(_context) {
|
|
339
303
|
return { _attr: this._attr };
|
|
340
304
|
}
|
|
305
|
+
toXml(_context) {
|
|
306
|
+
return "";
|
|
307
|
+
}
|
|
341
308
|
};
|
|
342
309
|
//#endregion
|
|
343
310
|
//#region src/xml-components/initializable.ts
|
|
@@ -356,4 +323,4 @@ var InitializableXmlComponent = class extends XmlComponent {
|
|
|
356
323
|
}
|
|
357
324
|
};
|
|
358
325
|
//#endregion
|
|
359
|
-
export {
|
|
326
|
+
export { EMPTY_OBJECT as _, BuilderElement as a, BaseXmlComponent as b, buildAttrObject as c, numberValObj as d, onOffObj as f, wrapEl as g, stringValObj as h, convertToXmlComponent as i, chartAttr as l, stringEnumValObj as m, ImportedRootElementAttributes as n, EmptyElement as o, stringContainerObj as p, ImportedXmlComponent as r, attrObj as s, InitializableXmlComponent as t, hpsMeasureObj as u, IgnoreIfEmptyXmlComponent as v, XmlComponent as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-open/core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"description": "Shared OOXML infrastructure: XmlComponent, value validators, unit converters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"core",
|
|
@@ -27,35 +27,35 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"type": "module",
|
|
30
|
-
"main": "dist/index.
|
|
31
|
-
"types": "dist/index.d.
|
|
30
|
+
"main": "dist/index.mjs",
|
|
31
|
+
"types": "dist/index.d.mts",
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
|
-
"types": "./dist/index.d.
|
|
35
|
-
"import": "./dist/index.
|
|
34
|
+
"types": "./dist/index.d.mts",
|
|
35
|
+
"import": "./dist/index.mjs"
|
|
36
36
|
},
|
|
37
37
|
"./values": {
|
|
38
|
-
"types": "./dist/values.d.
|
|
39
|
-
"import": "./dist/values.
|
|
38
|
+
"types": "./dist/values.d.mts",
|
|
39
|
+
"import": "./dist/values.mjs"
|
|
40
40
|
},
|
|
41
41
|
"./smartart": {
|
|
42
|
-
"types": "./dist/smartart/index.d.
|
|
43
|
-
"import": "./dist/smartart/index.
|
|
42
|
+
"types": "./dist/smartart/index.d.mts",
|
|
43
|
+
"import": "./dist/smartart/index.mjs"
|
|
44
44
|
},
|
|
45
45
|
"./chart": {
|
|
46
|
-
"types": "./dist/chart/index.d.
|
|
47
|
-
"import": "./dist/chart/index.
|
|
46
|
+
"types": "./dist/chart/index.d.mts",
|
|
47
|
+
"import": "./dist/chart/index.mjs"
|
|
48
48
|
},
|
|
49
49
|
"./drawingml": {
|
|
50
|
-
"types": "./dist/drawingml/index.d.
|
|
51
|
-
"import": "./dist/drawingml/index.
|
|
50
|
+
"types": "./dist/drawingml/index.d.mts",
|
|
51
|
+
"import": "./dist/drawingml/index.mjs"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"fflate": "0.8.3",
|
|
56
56
|
"hash.js": "1.1.7",
|
|
57
57
|
"nanoid": "5.1.11",
|
|
58
|
-
"@office-open/xml": "0.6.
|
|
58
|
+
"@office-open/xml": "0.6.8"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"dev": "basis build --stub",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|