@superdoc-dev/cli 0.7.0-next.33 → 0.7.0-next.35

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 +28 -5
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -205830,7 +205830,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
205830
205830
  init_remark_gfm_BhnWr3yf_es();
205831
205831
  });
205832
205832
 
205833
- // ../../packages/superdoc/dist/chunks/src-Bn2I5jpR.es.js
205833
+ // ../../packages/superdoc/dist/chunks/src-CKSsojHL.es.js
205834
205834
  function deleteProps(obj, propOrProps) {
205835
205835
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
205836
205836
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -245468,7 +245468,7 @@ function toCssFontFamily(fontName, options = {}) {
245468
245468
  if (trimmed.includes(";"))
245469
245469
  trimmed = splitOutsideQuotes(trimmed, ";").join(", ");
245470
245470
  const { fallback, wordFamily } = options;
245471
- const fallbackParts = normalizeParts(fallback ?? (wordFamily ? mapWordFamilyFallback(wordFamily) : undefined) ?? "sans-serif");
245471
+ const fallbackParts = normalizeParts(fallback ?? (wordFamily ? mapWordFamilyFallback(wordFamily) : undefined) ?? inferGenericFallbackFromFontName(trimmed));
245472
245472
  if (fallbackParts.length === 0)
245473
245473
  return trimmed;
245474
245474
  const normalizedName = trimmed.toLowerCase();
@@ -277348,7 +277348,11 @@ var Node$13 = class Node$14 {
277348
277348
  this.#config.onStatusChange?.(status);
277349
277349
  }
277350
277350
  }
277351
- }, FONT_FAMILY_FALLBACKS2, DEFAULT_GENERIC_FALLBACK2 = "sans-serif", normalizeParts = (value) => (value || "").split(",").map((part) => part.trim()).filter(Boolean), splitOutsideQuotes = (str, delimiter) => {
277351
+ }, FONT_FAMILY_FALLBACKS2, DEFAULT_GENERIC_FALLBACK2 = "sans-serif", SERIF_LIKE_FONTS, normalizeFontNameForLookup = (fontName) => {
277352
+ if (!fontName || typeof fontName !== "string")
277353
+ return "";
277354
+ return fontName.trim().replace(/^["']|["']$/g, "").toLowerCase();
277355
+ }, inferGenericFallbackFromFontName = (fontName) => SERIF_LIKE_FONTS.has(normalizeFontNameForLookup(fontName)) ? "serif" : DEFAULT_GENERIC_FALLBACK2, normalizeParts = (value) => (value || "").split(",").map((part) => part.trim()).filter(Boolean), splitOutsideQuotes = (str, delimiter) => {
277352
277356
  if (!str.includes('"') && !str.includes("'"))
277353
277357
  return str.split(delimiter).map((p$12) => p$12.trim()).filter(Boolean);
277354
277358
  const parts = [];
@@ -290303,7 +290307,7 @@ menclose::after {
290303
290307
  return;
290304
290308
  console.log(...args$1);
290305
290309
  }, 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;
290306
- var init_src_Bn2I5jpR_es = __esm(() => {
290310
+ var init_src_CKSsojHL_es = __esm(() => {
290307
290311
  init_rolldown_runtime_Bg48TavK_es();
290308
290312
  init_SuperConverter_D8HLuwGQ_es();
290309
290313
  init_jszip_C49i9kUs_es();
@@ -315675,6 +315679,24 @@ function print() { __p += __j.call(arguments, '') }
315675
315679
  system: "system-ui",
315676
315680
  auto: "sans-serif"
315677
315681
  });
315682
+ SERIF_LIKE_FONTS = new Set([
315683
+ "cambria",
315684
+ "cambria math",
315685
+ "times",
315686
+ "times new roman",
315687
+ "georgia",
315688
+ "garamond",
315689
+ "palatino",
315690
+ "palatino linotype",
315691
+ "book antiqua",
315692
+ "baskerville",
315693
+ "cochin",
315694
+ "hoefler text",
315695
+ "minion pro",
315696
+ "didot",
315697
+ "bodoni mt",
315698
+ "constantia"
315699
+ ]);
315678
315700
  SERIES_COLORS = [
315679
315701
  "#4472C4",
315680
315702
  "#ED7D31",
@@ -318866,6 +318888,7 @@ function print() { __p += __j.call(arguments, '') }
318866
318888
  img2.style.marginRight = `${run2.distRight}px`;
318867
318889
  img2.style.position = "relative";
318868
318890
  img2.style.zIndex = "1";
318891
+ img2.style.maxWidth = "100%";
318869
318892
  }
318870
318893
  const transforms = [];
318871
318894
  if (run2.rotation != null && run2.rotation !== 0) {
@@ -325158,7 +325181,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
325158
325181
 
325159
325182
  // ../../packages/superdoc/dist/super-editor.es.js
325160
325183
  var init_super_editor_es = __esm(() => {
325161
- init_src_Bn2I5jpR_es();
325184
+ init_src_CKSsojHL_es();
325162
325185
  init_SuperConverter_D8HLuwGQ_es();
325163
325186
  init_jszip_C49i9kUs_es();
325164
325187
  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.33",
3
+ "version": "0.7.0-next.35",
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.7.0-next.33",
38
- "@superdoc-dev/cli-linux-x64": "0.7.0-next.33",
39
- "@superdoc-dev/cli-darwin-x64": "0.7.0-next.33",
40
- "@superdoc-dev/cli-linux-arm64": "0.7.0-next.33",
41
- "@superdoc-dev/cli-windows-x64": "0.7.0-next.33"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.7.0-next.35",
38
+ "@superdoc-dev/cli-darwin-x64": "0.7.0-next.35",
39
+ "@superdoc-dev/cli-linux-x64": "0.7.0-next.35",
40
+ "@superdoc-dev/cli-linux-arm64": "0.7.0-next.35",
41
+ "@superdoc-dev/cli-windows-x64": "0.7.0-next.35"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",