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

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 +19 -4
  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-Ces3ijYl.es.js
205818
+ // ../../packages/superdoc/dist/chunks/src-CqF8CKiT.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) => {
@@ -273607,6 +273607,21 @@ var Node$13 = class Node$14 {
273607
273607
  timeout$1 = args$1 = null;
273608
273608
  };
273609
273609
  return throttled;
273610
+ }, normalizeFontOption = (option) => {
273611
+ if (!option)
273612
+ return option;
273613
+ const fontFamily = option.props?.style?.fontFamily ?? option.key ?? option.label;
273614
+ return {
273615
+ ...option,
273616
+ props: {
273617
+ ...option.props,
273618
+ style: {
273619
+ ...option.props?.style,
273620
+ fontFamily
273621
+ },
273622
+ "data-item": option.props?.["data-item"] ?? "btn-fontFamily-option"
273623
+ }
273624
+ };
273610
273625
  }, useToolbarItem = (options) => {
273611
273626
  if (![
273612
273627
  "button",
@@ -273806,7 +273821,7 @@ var Node$13 = class Node$14 {
273806
273821
  tooltip: toolbarTexts$1.bold,
273807
273822
  attributes: { ariaLabel: "Bold" }
273808
273823
  });
273809
- const fontOptions = [...toolbarFonts ? toolbarFonts : TOOLBAR_FONTS];
273824
+ const fontOptions = (toolbarFonts ?? TOOLBAR_FONTS).map(normalizeFontOption);
273810
273825
  const fontButton = useToolbarItem({
273811
273826
  type: "dropdown",
273812
273827
  name: "fontFamily",
@@ -289981,7 +289996,7 @@ menclose::after {
289981
289996
  return;
289982
289997
  console.log(...args$1);
289983
289998
  }, 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;
289984
- var init_src_Ces3ijYl_es = __esm(() => {
289999
+ var init_src_CqF8CKiT_es = __esm(() => {
289985
290000
  init_rolldown_runtime_Bg48TavK_es();
289986
290001
  init_SuperConverter_CpoUNyba_es();
289987
290002
  init_jszip_C49i9kUs_es();
@@ -324824,7 +324839,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
324824
324839
 
324825
324840
  // ../../packages/superdoc/dist/super-editor.es.js
324826
324841
  var init_super_editor_es = __esm(() => {
324827
- init_src_Ces3ijYl_es();
324842
+ init_src_CqF8CKiT_es();
324828
324843
  init_SuperConverter_CpoUNyba_es();
324829
324844
  init_jszip_C49i9kUs_es();
324830
324845
  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.30",
3
+ "version": "0.7.0-next.31",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -24,21 +24,21 @@
24
24
  "@types/node": "22.19.2",
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
- "@superdoc/document-api": "0.0.1",
28
27
  "@superdoc/pm-adapter": "0.0.0",
28
+ "@superdoc/super-editor": "0.0.1",
29
29
  "superdoc": "1.26.0",
30
- "@superdoc/super-editor": "0.0.1"
30
+ "@superdoc/document-api": "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.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"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.7.0-next.31",
38
+ "@superdoc-dev/cli-darwin-x64": "0.7.0-next.31",
39
+ "@superdoc-dev/cli-linux-x64": "0.7.0-next.31",
40
+ "@superdoc-dev/cli-windows-x64": "0.7.0-next.31",
41
+ "@superdoc-dev/cli-linux-arm64": "0.7.0-next.31"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",