docx 9.8.1 → 9.9.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.
@@ -1103,7 +1103,7 @@ var createVmlImageData = ({ relationshipId, title, gain, blackLevel, gamma, gray
1103
1103
  }
1104
1104
  });
1105
1105
  //#endregion
1106
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/typeof.js
1106
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/typeof.js
1107
1107
  function _typeof(o) {
1108
1108
  "@babel/helpers - typeof";
1109
1109
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -1113,7 +1113,7 @@ function _typeof(o) {
1113
1113
  }, _typeof(o);
1114
1114
  }
1115
1115
  //#endregion
1116
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPrimitive.js
1116
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPrimitive.js
1117
1117
  function toPrimitive(t, r) {
1118
1118
  if ("object" != _typeof(t) || !t) return t;
1119
1119
  var e = t[Symbol.toPrimitive];
@@ -1125,13 +1125,13 @@ function toPrimitive(t, r) {
1125
1125
  return ("string" === r ? String : Number)(t);
1126
1126
  }
1127
1127
  //#endregion
1128
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPropertyKey.js
1128
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPropertyKey.js
1129
1129
  function toPropertyKey(t) {
1130
1130
  var i = toPrimitive(t, "string");
1131
1131
  return "symbol" == _typeof(i) ? i : i + "";
1132
1132
  }
1133
1133
  //#endregion
1134
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/defineProperty.js
1134
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/defineProperty.js
1135
1135
  function _defineProperty(e, r, t) {
1136
1136
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1137
1137
  value: t,
@@ -1103,7 +1103,7 @@ var docxWatermarks = (function(exports, docx) {
1103
1103
  }
1104
1104
  });
1105
1105
  //#endregion
1106
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/typeof.js
1106
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/typeof.js
1107
1107
  function _typeof(o) {
1108
1108
  "@babel/helpers - typeof";
1109
1109
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -1113,7 +1113,7 @@ var docxWatermarks = (function(exports, docx) {
1113
1113
  }, _typeof(o);
1114
1114
  }
1115
1115
  //#endregion
1116
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPrimitive.js
1116
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPrimitive.js
1117
1117
  function toPrimitive(t, r) {
1118
1118
  if ("object" != _typeof(t) || !t) return t;
1119
1119
  var e = t[Symbol.toPrimitive];
@@ -1125,13 +1125,13 @@ var docxWatermarks = (function(exports, docx) {
1125
1125
  return ("string" === r ? String : Number)(t);
1126
1126
  }
1127
1127
  //#endregion
1128
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPropertyKey.js
1128
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPropertyKey.js
1129
1129
  function toPropertyKey(t) {
1130
1130
  var i = toPrimitive(t, "string");
1131
1131
  return "symbol" == _typeof(i) ? i : i + "";
1132
1132
  }
1133
1133
  //#endregion
1134
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/defineProperty.js
1134
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/defineProperty.js
1135
1135
  function _defineProperty(e, r, t) {
1136
1136
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1137
1137
  value: t,
@@ -1102,7 +1102,7 @@ var createVmlImageData = ({ relationshipId, title, gain, blackLevel, gamma, gray
1102
1102
  }
1103
1103
  });
1104
1104
  //#endregion
1105
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/typeof.js
1105
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/typeof.js
1106
1106
  function _typeof(o) {
1107
1107
  "@babel/helpers - typeof";
1108
1108
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -1112,7 +1112,7 @@ function _typeof(o) {
1112
1112
  }, _typeof(o);
1113
1113
  }
1114
1114
  //#endregion
1115
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPrimitive.js
1115
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPrimitive.js
1116
1116
  function toPrimitive(t, r) {
1117
1117
  if ("object" != _typeof(t) || !t) return t;
1118
1118
  var e = t[Symbol.toPrimitive];
@@ -1124,13 +1124,13 @@ function toPrimitive(t, r) {
1124
1124
  return ("string" === r ? String : Number)(t);
1125
1125
  }
1126
1126
  //#endregion
1127
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPropertyKey.js
1127
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPropertyKey.js
1128
1128
  function toPropertyKey(t) {
1129
1129
  var i = toPrimitive(t, "string");
1130
1130
  return "symbol" == _typeof(i) ? i : i + "";
1131
1131
  }
1132
1132
  //#endregion
1133
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/defineProperty.js
1133
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/defineProperty.js
1134
1134
  function _defineProperty(e, r, t) {
1135
1135
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1136
1136
  value: t,
@@ -1105,7 +1105,7 @@
1105
1105
  }
1106
1106
  });
1107
1107
  //#endregion
1108
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/typeof.js
1108
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/typeof.js
1109
1109
  function _typeof(o) {
1110
1110
  "@babel/helpers - typeof";
1111
1111
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -1115,7 +1115,7 @@
1115
1115
  }, _typeof(o);
1116
1116
  }
1117
1117
  //#endregion
1118
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPrimitive.js
1118
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPrimitive.js
1119
1119
  function toPrimitive(t, r) {
1120
1120
  if ("object" != _typeof(t) || !t) return t;
1121
1121
  var e = t[Symbol.toPrimitive];
@@ -1127,13 +1127,13 @@
1127
1127
  return ("string" === r ? String : Number)(t);
1128
1128
  }
1129
1129
  //#endregion
1130
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPropertyKey.js
1130
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/toPropertyKey.js
1131
1131
  function toPropertyKey(t) {
1132
1132
  var i = toPrimitive(t, "string");
1133
1133
  return "symbol" == _typeof(i) ? i : i + "";
1134
1134
  }
1135
1135
  //#endregion
1136
- //#region \0@oxc-project+runtime@0.150.0/helpers/esm/defineProperty.js
1136
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/defineProperty.js
1137
1137
  function _defineProperty(e, r, t) {
1138
1138
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1139
1139
  value: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx",
3
- "version": "9.8.1",
3
+ "version": "9.9.0",
4
4
  "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.cjs",
@@ -56,6 +56,16 @@
56
56
  "types": "./dist/math.d.cts",
57
57
  "default": "./dist/math.cjs"
58
58
  }
59
+ },
60
+ "./layout": {
61
+ "import": {
62
+ "types": "./dist/layout.d.ts",
63
+ "default": "./dist/layout.mjs"
64
+ },
65
+ "require": {
66
+ "types": "./dist/layout.d.cts",
67
+ "default": "./dist/layout.cjs"
68
+ }
59
69
  }
60
70
  },
61
71
  "typesVersions": {
@@ -71,6 +81,9 @@
71
81
  ],
72
82
  "math": [
73
83
  "./dist/math.d.ts"
84
+ ],
85
+ "layout": [
86
+ "./dist/layout.d.ts"
74
87
  ]
75
88
  }
76
89
  },
@@ -78,14 +91,14 @@
78
91
  "dist"
79
92
  ],
80
93
  "scripts": {
81
- "build": "tsc && vite build && vite build --config vite.entries.config.ts --mode shapes && vite build --config vite.entries.config.ts --mode watermarks && vite build --config vite.entries.config.ts --mode charts && vite build --config vite.entries.config.ts --mode math",
94
+ "build": "tsc && vite build && vite build --config vite.entries.config.ts --mode shapes && vite build --config vite.entries.config.ts --mode watermarks && vite build --config vite.entries.config.ts --mode charts && vite build --config vite.entries.config.ts --mode math && vite build --config vite.entries.config.ts --mode layout",
82
95
  "test": "vitest --ui --coverage",
83
96
  "test:ci": "vitest run --coverage",
84
97
  "prepublishOnly": "npm run build --omit=dev",
85
98
  "lint": "eslint --config eslint.config.ts",
86
99
  "predemo": "npm run build",
87
100
  "demo": "tsx ./demo/index.ts",
88
- "typedoc": "typedoc src/index.ts src/shapes/index.ts src/watermarks/index.ts src/charts/index.ts src/math/index.ts --tsconfig tsconfig.typedoc.json",
101
+ "typedoc": "typedoc src/index.ts src/shapes/index.ts src/watermarks/index.ts src/charts/index.ts src/math/index.ts src/layout/index.ts --tsconfig tsconfig.typedoc.json",
89
102
  "prettier": "prettier -l \"{src,scripts,demo,docs}/**/*.{ts,html,md}\"",
90
103
  "prettier:fix": "npm run prettier -- --write",
91
104
  "cspell": "cspell \"{src,demo,docs,scripts}/**/*.{ts,scss,html,md}\" && cspell \"./*.*\"",
@@ -145,10 +158,10 @@
145
158
  "eslint-import-resolver-typescript": "^4.3.2",
146
159
  "eslint-plugin-functional": "^10.0.1",
147
160
  "eslint-plugin-import-x": "^4.17.1",
148
- "eslint-plugin-jsdoc": "^64.5.4",
161
+ "eslint-plugin-jsdoc": "^65.0.0",
149
162
  "eslint-plugin-no-null": "^1.0.2",
150
163
  "eslint-plugin-prefer-arrow": "^1.2.3",
151
- "eslint-plugin-unicorn": "^76.0.0",
164
+ "eslint-plugin-unicorn": "^77.0.0",
152
165
  "execa": "^10.0.1",
153
166
  "glob": "^13.0.3",
154
167
  "globals": "^17.12.0",