@superdoc-dev/cli 0.7.0-next.29 → 0.7.0-next.30

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 -7
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -205815,7 +205815,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
205815
205815
  init_remark_gfm_BhnWr3yf_es();
205816
205816
  });
205817
205817
 
205818
- // ../../packages/superdoc/dist/chunks/src-Be5L2kLe.es.js
205818
+ // ../../packages/superdoc/dist/chunks/src-Ces3ijYl.es.js
205819
205819
  function deleteProps(obj, propOrProps) {
205820
205820
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
205821
205821
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -247363,9 +247363,13 @@ function resolveMathVariant(rPr) {
247363
247363
  return null;
247364
247364
  }
247365
247365
  function forceNormalMathVariant(root3) {
247366
- root3.querySelectorAll("mi").forEach((identifier) => {
247367
- identifier.setAttribute("mathvariant", "normal");
247368
- });
247366
+ for (const child of Array.from(root3.children)) {
247367
+ if (MATH_VARIANT_BOUNDARY_ELEMENTS.has(child.localName))
247368
+ continue;
247369
+ if (child.localName === "mi" && !child.hasAttribute("mathvariant"))
247370
+ child.setAttribute("mathvariant", "normal");
247371
+ forceNormalMathVariant(child);
247372
+ }
247369
247373
  }
247370
247374
  function getDelimiterValue(properties, name, fallback) {
247371
247375
  const property = properties?.elements?.find((element3) => element3.name === name);
@@ -279330,7 +279334,7 @@ menclose::after {
279330
279334
  accent.textContent = "‾";
279331
279335
  wrapper.appendChild(accent);
279332
279336
  return wrapper;
279333
- }, MATHML_NS$16 = "http://www.w3.org/1998/Math/MathML", FUNCTION_APPLY_OPERATOR = "⁡", convertFunction = (node3, doc$12, convertChildren) => {
279337
+ }, MATHML_NS$16 = "http://www.w3.org/1998/Math/MathML", FUNCTION_APPLY_OPERATOR = "⁡", MATH_VARIANT_BOUNDARY_ELEMENTS, convertFunction = (node3, doc$12, convertChildren) => {
279334
279338
  const elements = node3.elements ?? [];
279335
279339
  const functionName = elements.find((element3) => element3.name === "m:fName");
279336
279340
  const argument = elements.find((element3) => element3.name === "m:e");
@@ -289977,7 +289981,7 @@ menclose::after {
289977
289981
  return;
289978
289982
  console.log(...args$1);
289979
289983
  }, 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;
289980
- var init_src_Be5L2kLe_es = __esm(() => {
289984
+ var init_src_Ces3ijYl_es = __esm(() => {
289981
289985
  init_rolldown_runtime_Bg48TavK_es();
289982
289986
  init_SuperConverter_CpoUNyba_es();
289983
289987
  init_jszip_C49i9kUs_es();
@@ -315619,6 +315623,21 @@ function print() { __p += __j.call(arguments, '') }
315619
315623
  "sans-serif": "sans-serif",
315620
315624
  monospace: "monospace"
315621
315625
  };
315626
+ MATH_VARIANT_BOUNDARY_ELEMENTS = new Set([
315627
+ "munder",
315628
+ "mover",
315629
+ "munderover",
315630
+ "msub",
315631
+ "msup",
315632
+ "msubsup",
315633
+ "mmultiscripts",
315634
+ "mfrac",
315635
+ "msqrt",
315636
+ "mroot",
315637
+ "mtable",
315638
+ "mtr",
315639
+ "mtd"
315640
+ ]);
315622
315641
  COMBINING_TO_SPACING = {
315623
315642
  "̀": "`",
315624
315643
  "́": "´",
@@ -324805,7 +324824,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
324805
324824
 
324806
324825
  // ../../packages/superdoc/dist/super-editor.es.js
324807
324826
  var init_super_editor_es = __esm(() => {
324808
- init_src_Be5L2kLe_es();
324827
+ init_src_Ces3ijYl_es();
324809
324828
  init_SuperConverter_CpoUNyba_es();
324810
324829
  init_jszip_C49i9kUs_es();
324811
324830
  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.29",
3
+ "version": "0.7.0-next.30",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -25,20 +25,20 @@
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
- "@superdoc/super-editor": "0.0.1",
28
+ "@superdoc/pm-adapter": "0.0.0",
29
29
  "superdoc": "1.26.0",
30
- "@superdoc/pm-adapter": "0.0.0"
30
+ "@superdoc/super-editor": "0.0.1"
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.29",
38
- "@superdoc-dev/cli-darwin-x64": "0.7.0-next.29",
39
- "@superdoc-dev/cli-linux-x64": "0.7.0-next.29",
40
- "@superdoc-dev/cli-windows-x64": "0.7.0-next.29",
41
- "@superdoc-dev/cli-linux-arm64": "0.7.0-next.29"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.7.0-next.30",
38
+ "@superdoc-dev/cli-linux-x64": "0.7.0-next.30",
39
+ "@superdoc-dev/cli-darwin-x64": "0.7.0-next.30",
40
+ "@superdoc-dev/cli-windows-x64": "0.7.0-next.30",
41
+ "@superdoc-dev/cli-linux-arm64": "0.7.0-next.30"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",