@superdoc-dev/cli 0.5.0-next.34 → 0.5.0-next.36

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 +26 -10
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -172583,7 +172583,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
172583
172583
  init_remark_gfm_z_sDF4ss_es();
172584
172584
  });
172585
172585
 
172586
- // ../../packages/superdoc/dist/chunks/src-CGUGTAQU.es.js
172586
+ // ../../packages/superdoc/dist/chunks/src-DZybrtzR.es.js
172587
172587
  function deleteProps(obj, propOrProps) {
172588
172588
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
172589
172589
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -241891,7 +241891,7 @@ var Node$13 = class Node$14 {
241891
241891
  }
241892
241892
  element3.style.textAlign = resolveTextAlign(attrs?.alignment, rtl);
241893
241893
  return rtl;
241894
- }, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$2 = "http://www.w3.org/1998/Math/MathML", OPERATOR_CHARS, convertMathRun = (node3, doc$12) => {
241894
+ }, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$3 = "http://www.w3.org/1998/Math/MathML", OPERATOR_CHARS, convertMathRun = (node3, doc$12) => {
241895
241895
  const elements = node3.elements ?? [];
241896
241896
  let text5 = "";
241897
241897
  for (const child of elements)
@@ -241905,19 +241905,33 @@ var Node$13 = class Node$14 {
241905
241905
  return null;
241906
241906
  const isNormalText = elements.find((el$1) => el$1.name === "m:rPr")?.elements?.some((el$1) => el$1.name === "m:nor") ?? false;
241907
241907
  const tag = classifyMathText(text5);
241908
- const el = doc$12.createElementNS(MATHML_NS$2, tag);
241908
+ const el = doc$12.createElementNS(MATHML_NS$3, tag);
241909
241909
  el.textContent = text5;
241910
241910
  if (tag === "mi" && isNormalText)
241911
241911
  el.setAttribute("mathvariant", "normal");
241912
241912
  return el;
241913
- }, MATHML_NS$1 = "http://www.w3.org/1998/Math/MathML", convertFraction = (node3, doc$12, convertChildren) => {
241913
+ }, MATHML_NS$2 = "http://www.w3.org/1998/Math/MathML", convertFraction = (node3, doc$12, convertChildren) => {
241914
241914
  const elements = node3.elements ?? [];
241915
241915
  const num = elements.find((e) => e.name === "m:num");
241916
241916
  const den = elements.find((e) => e.name === "m:den");
241917
- const frac = doc$12.createElementNS(MATHML_NS$1, "mfrac");
241917
+ const frac = doc$12.createElementNS(MATHML_NS$2, "mfrac");
241918
241918
  frac.appendChild(convertChildren(num?.elements ?? []));
241919
241919
  frac.appendChild(convertChildren(den?.elements ?? []));
241920
241920
  return frac;
241921
+ }, MATHML_NS$1 = "http://www.w3.org/1998/Math/MathML", convertBar = (node3, doc$12, convertChildren) => {
241922
+ const elements = node3.elements ?? [];
241923
+ const isUnder = elements.find((e) => e.name === "m:barPr")?.elements?.find((e) => e.name === "m:pos")?.attributes?.["m:val"] !== "top";
241924
+ const base5 = elements.find((e) => e.name === "m:e");
241925
+ const wrapper = doc$12.createElementNS(MATHML_NS$1, isUnder ? "munder" : "mover");
241926
+ const baseContent = convertChildren(base5?.elements ?? []);
241927
+ const mrow = doc$12.createElementNS(MATHML_NS$1, "mrow");
241928
+ mrow.appendChild(baseContent);
241929
+ wrapper.appendChild(mrow);
241930
+ const accent = doc$12.createElementNS(MATHML_NS$1, "mo");
241931
+ accent.setAttribute("stretchy", "true");
241932
+ accent.textContent = isUnder ? "̲" : "‾";
241933
+ wrapper.appendChild(accent);
241934
+ return wrapper;
241921
241935
  }, MATHML_NS = "http://www.w3.org/1998/Math/MathML", MATH_OBJECT_REGISTRY, ARGUMENT_ELEMENTS, cssToken = (varName, fallback) => ({
241922
241936
  css: `var(${varName}, ${fallback})`,
241923
241937
  fallback
@@ -255312,7 +255326,7 @@ var Node$13 = class Node$14 {
255312
255326
  return;
255313
255327
  console.log(...args$1);
255314
255328
  }, 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;
255315
- var init_src_CGUGTAQU_es = __esm(() => {
255329
+ var init_src_DZybrtzR_es = __esm(() => {
255316
255330
  init_rolldown_runtime_B2q5OVn9_es();
255317
255331
  init_SuperConverter_B9oNf3OB_es();
255318
255332
  init_jszip_ChlR43oI_es();
@@ -273680,8 +273694,8 @@ function print() { __p += __j.call(arguments, '') }
273680
273694
  ]);
273681
273695
  MATH_OBJECT_REGISTRY = {
273682
273696
  "m:r": convertMathRun,
273697
+ "m:bar": convertBar,
273683
273698
  "m:acc": null,
273684
- "m:bar": null,
273685
273699
  "m:borderBox": null,
273686
273700
  "m:box": null,
273687
273701
  "m:d": null,
@@ -288125,11 +288139,13 @@ function print() { __p += __j.call(arguments, '') }
288125
288139
  extraMeasures = Array.isArray(result.extraMeasures) ? result.extraMeasures : undefined;
288126
288140
  layout.pageGap = this.#getEffectivePageGap();
288127
288141
  layout.layoutEpoch = layoutEpoch;
288142
+ const resolveBlocks = extraBlocks ? [...blocksForLayout, ...extraBlocks] : blocksForLayout;
288143
+ const resolveMeasures = extraMeasures ? [...measures, ...extraMeasures] : measures;
288128
288144
  resolvedLayout = resolveLayout({
288129
288145
  layout,
288130
288146
  flowMode: this.#layoutOptions.flowMode ?? "paginated",
288131
- blocks: blocksForLayout,
288132
- measures
288147
+ blocks: resolveBlocks,
288148
+ measures: resolveMeasures
288133
288149
  });
288134
288150
  headerLayouts = result.headers;
288135
288151
  footerLayouts = result.footers;
@@ -289800,7 +289816,7 @@ var init_zipper_YmNpPIyc_es = __esm(() => {
289800
289816
 
289801
289817
  // ../../packages/superdoc/dist/super-editor.es.js
289802
289818
  var init_super_editor_es = __esm(() => {
289803
- init_src_CGUGTAQU_es();
289819
+ init_src_DZybrtzR_es();
289804
289820
  init_SuperConverter_B9oNf3OB_es();
289805
289821
  init_jszip_ChlR43oI_es();
289806
289822
  init_xml_js_40FWvL78_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.5.0-next.34",
3
+ "version": "0.5.0-next.36",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -34,11 +34,11 @@
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.34",
38
- "@superdoc-dev/cli-linux-x64": "0.5.0-next.34",
39
- "@superdoc-dev/cli-darwin-x64": "0.5.0-next.34",
40
- "@superdoc-dev/cli-linux-arm64": "0.5.0-next.34",
41
- "@superdoc-dev/cli-windows-x64": "0.5.0-next.34"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.36",
38
+ "@superdoc-dev/cli-linux-x64": "0.5.0-next.36",
39
+ "@superdoc-dev/cli-linux-arm64": "0.5.0-next.36",
40
+ "@superdoc-dev/cli-darwin-x64": "0.5.0-next.36",
41
+ "@superdoc-dev/cli-windows-x64": "0.5.0-next.36"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",