@superdoc-dev/cli 0.7.0-next.5 → 0.7.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +56 -39
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -204289,7 +204289,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
204289
204289
  init_remark_gfm_BhnWr3yf_es();
204290
204290
  });
204291
204291
 
204292
- // ../../packages/superdoc/dist/chunks/src-Bf2Vgwaf.es.js
204292
+ // ../../packages/superdoc/dist/chunks/src-yvw_tH1l.es.js
204293
204293
  function deleteProps(obj, propOrProps) {
204294
204294
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
204295
204295
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -277193,7 +277193,7 @@ var Node$13 = class Node$14 {
277193
277193
  }
277194
277194
  element3.style.textAlign = resolveTextAlign(attrs?.alignment, rtl);
277195
277195
  return rtl;
277196
- }, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$11 = "http://www.w3.org/1998/Math/MathML", OPERATOR_CHARS, STY_TO_VARIANT, SCR_TO_VARIANT, convertMathRun = (node3, doc$12) => {
277196
+ }, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$12 = "http://www.w3.org/1998/Math/MathML", OPERATOR_CHARS, STY_TO_VARIANT, SCR_TO_VARIANT, convertMathRun = (node3, doc$12) => {
277197
277197
  const elements = node3.elements ?? [];
277198
277198
  let text5 = "";
277199
277199
  for (const child of elements)
@@ -277207,66 +277207,66 @@ var Node$13 = class Node$14 {
277207
277207
  return null;
277208
277208
  const variant = resolveMathVariant(elements.find((el$1) => el$1.name === "m:rPr"));
277209
277209
  const tag = classifyMathText(text5);
277210
- const el = doc$12.createElementNS(MATHML_NS$11, tag);
277210
+ const el = doc$12.createElementNS(MATHML_NS$12, tag);
277211
277211
  el.textContent = text5;
277212
277212
  if (variant)
277213
277213
  el.setAttribute("mathvariant", variant);
277214
277214
  return el;
277215
- }, MATHML_NS$10 = "http://www.w3.org/1998/Math/MathML", convertFraction = (node3, doc$12, convertChildren) => {
277215
+ }, MATHML_NS$11 = "http://www.w3.org/1998/Math/MathML", convertFraction = (node3, doc$12, convertChildren) => {
277216
277216
  const elements = node3.elements ?? [];
277217
277217
  const num = elements.find((e) => e.name === "m:num");
277218
277218
  const den = elements.find((e) => e.name === "m:den");
277219
- const frac = doc$12.createElementNS(MATHML_NS$10, "mfrac");
277220
- const numRow = doc$12.createElementNS(MATHML_NS$10, "mrow");
277219
+ const frac = doc$12.createElementNS(MATHML_NS$11, "mfrac");
277220
+ const numRow = doc$12.createElementNS(MATHML_NS$11, "mrow");
277221
277221
  numRow.appendChild(convertChildren(num?.elements ?? []));
277222
277222
  frac.appendChild(numRow);
277223
- const denRow = doc$12.createElementNS(MATHML_NS$10, "mrow");
277223
+ const denRow = doc$12.createElementNS(MATHML_NS$11, "mrow");
277224
277224
  denRow.appendChild(convertChildren(den?.elements ?? []));
277225
277225
  frac.appendChild(denRow);
277226
277226
  return frac;
277227
- }, MATHML_NS$9 = "http://www.w3.org/1998/Math/MathML", convertBar = (node3, doc$12, convertChildren) => {
277227
+ }, MATHML_NS$10 = "http://www.w3.org/1998/Math/MathML", convertBar = (node3, doc$12, convertChildren) => {
277228
277228
  const elements = node3.elements ?? [];
277229
277229
  const isUnder = elements.find((e) => e.name === "m:barPr")?.elements?.find((e) => e.name === "m:pos")?.attributes?.["m:val"] !== "top";
277230
277230
  const base5 = elements.find((e) => e.name === "m:e");
277231
- const wrapper = doc$12.createElementNS(MATHML_NS$9, isUnder ? "munder" : "mover");
277231
+ const wrapper = doc$12.createElementNS(MATHML_NS$10, isUnder ? "munder" : "mover");
277232
277232
  const baseContent = convertChildren(base5?.elements ?? []);
277233
- const mrow = doc$12.createElementNS(MATHML_NS$9, "mrow");
277233
+ const mrow = doc$12.createElementNS(MATHML_NS$10, "mrow");
277234
277234
  mrow.appendChild(baseContent);
277235
277235
  wrapper.appendChild(mrow);
277236
- const accent = doc$12.createElementNS(MATHML_NS$9, "mo");
277236
+ const accent = doc$12.createElementNS(MATHML_NS$10, "mo");
277237
277237
  accent.setAttribute("stretchy", "true");
277238
277238
  accent.textContent = "‾";
277239
277239
  wrapper.appendChild(accent);
277240
277240
  return wrapper;
277241
- }, MATHML_NS$8 = "http://www.w3.org/1998/Math/MathML", FUNCTION_APPLY_OPERATOR = "⁡", convertFunction = (node3, doc$12, convertChildren) => {
277241
+ }, MATHML_NS$9 = "http://www.w3.org/1998/Math/MathML", FUNCTION_APPLY_OPERATOR = "⁡", convertFunction = (node3, doc$12, convertChildren) => {
277242
277242
  const elements = node3.elements ?? [];
277243
277243
  const functionName = elements.find((element3) => element3.name === "m:fName");
277244
277244
  const argument = elements.find((element3) => element3.name === "m:e");
277245
- const wrapper = doc$12.createElementNS(MATHML_NS$8, "mrow");
277246
- const functionNameRow = doc$12.createElementNS(MATHML_NS$8, "mrow");
277245
+ const wrapper = doc$12.createElementNS(MATHML_NS$9, "mrow");
277246
+ const functionNameRow = doc$12.createElementNS(MATHML_NS$9, "mrow");
277247
277247
  functionNameRow.appendChild(convertChildren(functionName?.elements ?? []));
277248
277248
  forceNormalMathVariant(functionNameRow);
277249
277249
  if (functionNameRow.childNodes.length > 0)
277250
277250
  wrapper.appendChild(functionNameRow);
277251
- const argumentRow = doc$12.createElementNS(MATHML_NS$8, "mrow");
277251
+ const argumentRow = doc$12.createElementNS(MATHML_NS$9, "mrow");
277252
277252
  argumentRow.appendChild(convertChildren(argument?.elements ?? []));
277253
277253
  if (functionNameRow.childNodes.length > 0 && argumentRow.childNodes.length > 0) {
277254
- const applyOperator = doc$12.createElementNS(MATHML_NS$8, "mo");
277254
+ const applyOperator = doc$12.createElementNS(MATHML_NS$9, "mo");
277255
277255
  applyOperator.textContent = FUNCTION_APPLY_OPERATOR;
277256
277256
  wrapper.appendChild(applyOperator);
277257
277257
  }
277258
277258
  if (argumentRow.childNodes.length > 0)
277259
277259
  wrapper.appendChild(argumentRow);
277260
277260
  return wrapper.childNodes.length > 0 ? wrapper : null;
277261
- }, MATHML_NS$7 = "http://www.w3.org/1998/Math/MathML", DEFAULT_BEGIN_DELIMITER = "(", DEFAULT_END_DELIMITER = ")", DEFAULT_SEPARATOR_DELIMITER = "│", convertDelimiter = (node3, doc$12, convertChildren) => {
277261
+ }, MATHML_NS$8 = "http://www.w3.org/1998/Math/MathML", DEFAULT_BEGIN_DELIMITER = "(", DEFAULT_END_DELIMITER = ")", DEFAULT_SEPARATOR_DELIMITER = "│", convertDelimiter = (node3, doc$12, convertChildren) => {
277262
277262
  const elements = node3.elements ?? [];
277263
277263
  const delimiterProps = elements.find((element3) => element3.name === "m:dPr");
277264
277264
  const expressions = elements.filter((element3) => element3.name === "m:e");
277265
277265
  const beginDelimiter = getDelimiterValue(delimiterProps, "m:begChr", DEFAULT_BEGIN_DELIMITER);
277266
277266
  const endDelimiter = getDelimiterValue(delimiterProps, "m:endChr", DEFAULT_END_DELIMITER);
277267
277267
  const separatorDelimiter = getDelimiterValue(delimiterProps, "m:sepChr", DEFAULT_SEPARATOR_DELIMITER);
277268
- const wrapper = doc$12.createElementNS(MATHML_NS$7, "mrow");
277269
- const begin = doc$12.createElementNS(MATHML_NS$7, "mo");
277268
+ const wrapper = doc$12.createElementNS(MATHML_NS$8, "mrow");
277269
+ const begin = doc$12.createElementNS(MATHML_NS$8, "mo");
277270
277270
  begin.textContent = beginDelimiter;
277271
277271
  wrapper.appendChild(begin);
277272
277272
  let renderedCount = 0;
@@ -277275,59 +277275,76 @@ var Node$13 = class Node$14 {
277275
277275
  if (fragment2.childNodes.length === 0)
277276
277276
  continue;
277277
277277
  if (renderedCount > 0) {
277278
- const separator = doc$12.createElementNS(MATHML_NS$7, "mo");
277278
+ const separator = doc$12.createElementNS(MATHML_NS$8, "mo");
277279
277279
  separator.textContent = separatorDelimiter;
277280
277280
  wrapper.appendChild(separator);
277281
277281
  }
277282
- const group = doc$12.createElementNS(MATHML_NS$7, "mrow");
277282
+ const group = doc$12.createElementNS(MATHML_NS$8, "mrow");
277283
277283
  group.appendChild(fragment2);
277284
277284
  wrapper.appendChild(group);
277285
277285
  renderedCount++;
277286
277286
  }
277287
- const end$1 = doc$12.createElementNS(MATHML_NS$7, "mo");
277287
+ const end$1 = doc$12.createElementNS(MATHML_NS$8, "mo");
277288
277288
  end$1.textContent = endDelimiter;
277289
277289
  wrapper.appendChild(end$1);
277290
277290
  return wrapper;
277291
- }, MATHML_NS$6 = "http://www.w3.org/1998/Math/MathML", convertSubscript = (node3, doc$12, convertChildren) => {
277291
+ }, MATHML_NS$7 = "http://www.w3.org/1998/Math/MathML", convertSubscript = (node3, doc$12, convertChildren) => {
277292
277292
  const elements = node3.elements ?? [];
277293
277293
  const base5 = elements.find((e) => e.name === "m:e");
277294
277294
  const sub = elements.find((e) => e.name === "m:sub");
277295
- const msub = doc$12.createElementNS(MATHML_NS$6, "msub");
277296
- const baseRow = doc$12.createElementNS(MATHML_NS$6, "mrow");
277295
+ const msub = doc$12.createElementNS(MATHML_NS$7, "msub");
277296
+ const baseRow = doc$12.createElementNS(MATHML_NS$7, "mrow");
277297
277297
  baseRow.appendChild(convertChildren(base5?.elements ?? []));
277298
277298
  msub.appendChild(baseRow);
277299
- const subRow = doc$12.createElementNS(MATHML_NS$6, "mrow");
277299
+ const subRow = doc$12.createElementNS(MATHML_NS$7, "mrow");
277300
277300
  subRow.appendChild(convertChildren(sub?.elements ?? []));
277301
277301
  msub.appendChild(subRow);
277302
277302
  return msub;
277303
- }, MATHML_NS$5 = "http://www.w3.org/1998/Math/MathML", convertSuperscript = (node3, doc$12, convertChildren) => {
277303
+ }, MATHML_NS$6 = "http://www.w3.org/1998/Math/MathML", convertSuperscript = (node3, doc$12, convertChildren) => {
277304
277304
  const elements = node3.elements ?? [];
277305
277305
  const base5 = elements.find((e) => e.name === "m:e");
277306
277306
  const sup = elements.find((e) => e.name === "m:sup");
277307
- const msup = doc$12.createElementNS(MATHML_NS$5, "msup");
277308
- const baseRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
277307
+ const msup = doc$12.createElementNS(MATHML_NS$6, "msup");
277308
+ const baseRow = doc$12.createElementNS(MATHML_NS$6, "mrow");
277309
277309
  baseRow.appendChild(convertChildren(base5?.elements ?? []));
277310
277310
  msup.appendChild(baseRow);
277311
- const supRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
277311
+ const supRow = doc$12.createElementNS(MATHML_NS$6, "mrow");
277312
277312
  supRow.appendChild(convertChildren(sup?.elements ?? []));
277313
277313
  msup.appendChild(supRow);
277314
277314
  return msup;
277315
- }, MATHML_NS$4 = "http://www.w3.org/1998/Math/MathML", convertSubSuperscript = (node3, doc$12, convertChildren) => {
277315
+ }, MATHML_NS$5 = "http://www.w3.org/1998/Math/MathML", convertSubSuperscript = (node3, doc$12, convertChildren) => {
277316
277316
  const elements = node3.elements ?? [];
277317
277317
  const base5 = elements.find((e) => e.name === "m:e");
277318
277318
  const sub = elements.find((e) => e.name === "m:sub");
277319
277319
  const sup = elements.find((e) => e.name === "m:sup");
277320
- const msubsup = doc$12.createElementNS(MATHML_NS$4, "msubsup");
277321
- const baseRow = doc$12.createElementNS(MATHML_NS$4, "mrow");
277320
+ const msubsup = doc$12.createElementNS(MATHML_NS$5, "msubsup");
277321
+ const baseRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
277322
277322
  baseRow.appendChild(convertChildren(base5?.elements ?? []));
277323
277323
  msubsup.appendChild(baseRow);
277324
- const subRow = doc$12.createElementNS(MATHML_NS$4, "mrow");
277324
+ const subRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
277325
277325
  subRow.appendChild(convertChildren(sub?.elements ?? []));
277326
277326
  msubsup.appendChild(subRow);
277327
- const supRow = doc$12.createElementNS(MATHML_NS$4, "mrow");
277327
+ const supRow = doc$12.createElementNS(MATHML_NS$5, "mrow");
277328
277328
  supRow.appendChild(convertChildren(sup?.elements ?? []));
277329
277329
  msubsup.appendChild(supRow);
277330
277330
  return msubsup;
277331
+ }, MATHML_NS$4 = "http://www.w3.org/1998/Math/MathML", convertPreSubSuperscript = (node3, doc$12, convertChildren) => {
277332
+ const elements = node3.elements ?? [];
277333
+ const base5 = elements.find((e) => e.name === "m:e");
277334
+ const sub = elements.find((e) => e.name === "m:sub");
277335
+ const sup = elements.find((e) => e.name === "m:sup");
277336
+ const mmultiscripts = doc$12.createElementNS(MATHML_NS$4, "mmultiscripts");
277337
+ const baseRow = doc$12.createElementNS(MATHML_NS$4, "mrow");
277338
+ baseRow.appendChild(convertChildren(base5?.elements ?? []));
277339
+ mmultiscripts.appendChild(baseRow);
277340
+ mmultiscripts.appendChild(doc$12.createElementNS(MATHML_NS$4, "mprescripts"));
277341
+ const subRow = doc$12.createElementNS(MATHML_NS$4, "mrow");
277342
+ subRow.appendChild(convertChildren(sub?.elements ?? []));
277343
+ mmultiscripts.appendChild(subRow);
277344
+ const supRow = doc$12.createElementNS(MATHML_NS$4, "mrow");
277345
+ supRow.appendChild(convertChildren(sup?.elements ?? []));
277346
+ mmultiscripts.appendChild(supRow);
277347
+ return mmultiscripts;
277331
277348
  }, MATHML_NS$3 = "http://www.w3.org/1998/Math/MathML", convertRadical = (node3, doc$12, convertChildren) => {
277332
277349
  const elements = node3.elements ?? [];
277333
277350
  const radPr = elements.find((e) => e.name === "m:radPr");
@@ -287489,7 +287506,7 @@ var Node$13 = class Node$14 {
287489
287506
  return;
287490
287507
  console.log(...args$1);
287491
287508
  }, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
287492
- var init_src_Bf2Vgwaf_es = __esm(() => {
287509
+ var init_src_yvw_tH1l_es = __esm(() => {
287493
287510
  init_rolldown_runtime_Bg48TavK_es();
287494
287511
  init_SuperConverter_H0ERuAZY_es();
287495
287512
  init_jszip_C49i9kUs_es();
@@ -313253,6 +313270,7 @@ function print() { __p += __j.call(arguments, '') }
313253
313270
  "m:sSub": convertSubscript,
313254
313271
  "m:sSup": convertSuperscript,
313255
313272
  "m:sSubSup": convertSubSuperscript,
313273
+ "m:sPre": convertPreSubSuperscript,
313256
313274
  "m:acc": null,
313257
313275
  "m:borderBox": null,
313258
313276
  "m:box": null,
@@ -313260,8 +313278,7 @@ function print() { __p += __j.call(arguments, '') }
313260
313278
  "m:groupChr": null,
313261
313279
  "m:m": null,
313262
313280
  "m:nary": null,
313263
- "m:phant": null,
313264
- "m:sPre": null
313281
+ "m:phant": null
313265
313282
  };
313266
313283
  ARGUMENT_ELEMENTS = new Set([
313267
313284
  "m:e",
@@ -322232,7 +322249,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
322232
322249
 
322233
322250
  // ../../packages/superdoc/dist/super-editor.es.js
322234
322251
  var init_super_editor_es = __esm(() => {
322235
- init_src_Bf2Vgwaf_es();
322252
+ init_src_yvw_tH1l_es();
322236
322253
  init_SuperConverter_H0ERuAZY_es();
322237
322254
  init_jszip_C49i9kUs_es();
322238
322255
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.7.0-next.5",
3
+ "version": "0.7.0-next.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -26,19 +26,19 @@
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
28
  "@superdoc/pm-adapter": "0.0.0",
29
- "superdoc": "1.25.0",
30
- "@superdoc/super-editor": "0.0.1"
29
+ "@superdoc/super-editor": "0.0.1",
30
+ "superdoc": "1.25.0"
31
31
  },
32
32
  "module": "src/index.ts",
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.7.0-next.5",
38
- "@superdoc-dev/cli-linux-x64": "0.7.0-next.5",
39
- "@superdoc-dev/cli-darwin-x64": "0.7.0-next.5",
40
- "@superdoc-dev/cli-linux-arm64": "0.7.0-next.5",
41
- "@superdoc-dev/cli-windows-x64": "0.7.0-next.5"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.7.0-next.6",
38
+ "@superdoc-dev/cli-darwin-x64": "0.7.0-next.6",
39
+ "@superdoc-dev/cli-linux-x64": "0.7.0-next.6",
40
+ "@superdoc-dev/cli-linux-arm64": "0.7.0-next.6",
41
+ "@superdoc-dev/cli-windows-x64": "0.7.0-next.6"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",