@superdoc-dev/cli 0.5.0-next.58 → 0.5.0-next.59

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 +24 -17
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -203905,7 +203905,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
203905
203905
  init_remark_gfm_BhnWr3yf_es();
203906
203906
  });
203907
203907
 
203908
- // ../../packages/superdoc/dist/chunks/src-iEokMYE4.es.js
203908
+ // ../../packages/superdoc/dist/chunks/src-DksgGhe1.es.js
203909
203909
  function deleteProps(obj, propOrProps) {
203910
203910
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
203911
203911
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -286191,7 +286191,7 @@ var Node$13 = class Node$14 {
286191
286191
  return;
286192
286192
  console.log(...args$1);
286193
286193
  }, 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;
286194
- var init_src_iEokMYE4_es = __esm(() => {
286194
+ var init_src_DksgGhe1_es = __esm(() => {
286195
286195
  init_rolldown_runtime_Bg48TavK_es();
286196
286196
  init_SuperConverter_CE_qGNRx_es();
286197
286197
  init_jszip_C49i9kUs_es();
@@ -310760,8 +310760,23 @@ function print() { __p += __j.call(arguments, '') }
310760
310760
  getMaxContentSize() {
310761
310761
  if (!this.converter)
310762
310762
  return {};
310763
- if (this.isWebLayout())
310763
+ let cellConstraintWidth = 0;
310764
+ const { $head } = this.state.selection;
310765
+ for (let d = $head.depth;d > 0; d--) {
310766
+ const node3 = $head.node(d);
310767
+ if (node3.type.name === "tableCell" || node3.type.name === "tableHeader") {
310768
+ cellConstraintWidth = getCellContentWidthPx(node3);
310769
+ break;
310770
+ }
310771
+ }
310772
+ if (this.isWebLayout()) {
310773
+ if (cellConstraintWidth > 0)
310774
+ return {
310775
+ width: cellConstraintWidth,
310776
+ height: Infinity
310777
+ };
310764
310778
  return {};
310779
+ }
310765
310780
  const { pageSize = {}, pageMargins = {} } = this.converter.pageStyles ?? {};
310766
310781
  const { width, height } = pageSize;
310767
310782
  if (!width || !height)
@@ -310775,19 +310790,11 @@ function print() { __p += __j.call(arguments, '') }
310775
310790
  const rightPx = getMarginPx("right");
310776
310791
  const maxHeight = height * PIXELS_PER_INCH2 - topPx - bottomPx - MAX_HEIGHT_BUFFER_PX;
310777
310792
  const maxWidth = width * PIXELS_PER_INCH2 - leftPx - rightPx - MAX_WIDTH_BUFFER_PX;
310778
- const { $head } = this.state.selection;
310779
- for (let d = $head.depth;d > 0; d--) {
310780
- const node3 = $head.node(d);
310781
- if (node3.type.name === "tableCell" || node3.type.name === "tableHeader") {
310782
- const cellWidth = getCellContentWidthPx(node3);
310783
- if (cellWidth > 0)
310784
- return {
310785
- width: cellWidth,
310786
- height: maxHeight
310787
- };
310788
- break;
310789
- }
310790
- }
310793
+ if (cellConstraintWidth > 0)
310794
+ return {
310795
+ width: cellConstraintWidth,
310796
+ height: maxHeight
310797
+ };
310791
310798
  return {
310792
310799
  width: maxWidth,
310793
310800
  height: maxHeight
@@ -320655,7 +320662,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
320655
320662
 
320656
320663
  // ../../packages/superdoc/dist/super-editor.es.js
320657
320664
  var init_super_editor_es = __esm(() => {
320658
- init_src_iEokMYE4_es();
320665
+ init_src_DksgGhe1_es();
320659
320666
  init_SuperConverter_CE_qGNRx_es();
320660
320667
  init_jszip_C49i9kUs_es();
320661
320668
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.5.0-next.58",
3
+ "version": "0.5.0-next.59",
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.58",
38
- "@superdoc-dev/cli-linux-x64": "0.5.0-next.58",
39
- "@superdoc-dev/cli-darwin-x64": "0.5.0-next.58",
40
- "@superdoc-dev/cli-windows-x64": "0.5.0-next.58",
41
- "@superdoc-dev/cli-linux-arm64": "0.5.0-next.58"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.59",
38
+ "@superdoc-dev/cli-darwin-x64": "0.5.0-next.59",
39
+ "@superdoc-dev/cli-linux-x64": "0.5.0-next.59",
40
+ "@superdoc-dev/cli-linux-arm64": "0.5.0-next.59",
41
+ "@superdoc-dev/cli-windows-x64": "0.5.0-next.59"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",