@superdoc-dev/cli 0.5.0-next.20 → 0.5.0-next.22

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 +15 -6
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -172511,7 +172511,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
172511
172511
  init_remark_gfm_z_sDF4ss_es();
172512
172512
  });
172513
172513
 
172514
- // ../../packages/superdoc/dist/chunks/src-CxFOmQ5k.es.js
172514
+ // ../../packages/superdoc/dist/chunks/src-C2jApr82.es.js
172515
172515
  function deleteProps(obj, propOrProps) {
172516
172516
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
172517
172517
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -211112,11 +211112,15 @@ function collectTocSources(doc$12, config2) {
211112
211112
  return true;
211113
211113
  }
211114
211114
  }
211115
- if (useApplied && outlineLevels) {
211115
+ if (useApplied) {
211116
+ const effectiveLevels = outlineLevels ?? {
211117
+ from: 1,
211118
+ to: 9
211119
+ };
211116
211120
  const rawOutlineLevel = paragraphProps?.outlineLevel;
211117
211121
  if (rawOutlineLevel != null) {
211118
211122
  const tocLevel = rawOutlineLevel + 1;
211119
- if (tocLevel >= outlineLevels.from && tocLevel <= outlineLevels.to) {
211123
+ if (tocLevel >= effectiveLevels.from && tocLevel <= effectiveLevels.to) {
211120
211124
  sources.push({
211121
211125
  text: flattenText(node3),
211122
211126
  level: tocLevel,
@@ -244104,6 +244108,7 @@ var Node$13 = class Node$14 {
244104
244108
  icon: toolbarIcons$1.lineHeight,
244105
244109
  hasCaret: false,
244106
244110
  hasInlineTextInput: false,
244111
+ hideLabel: true,
244107
244112
  inlineTextInputVisible: false,
244108
244113
  suppressActiveHighlight: true,
244109
244114
  isWide: false,
@@ -254874,7 +254879,7 @@ var Node$13 = class Node$14 {
254874
254879
  return;
254875
254880
  console.log(...args$1);
254876
254881
  }, 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;
254877
- var init_src_CxFOmQ5k_es = __esm(() => {
254882
+ var init_src_C2jApr82_es = __esm(() => {
254878
254883
  init_rolldown_runtime_B2q5OVn9_es();
254879
254884
  init_SuperConverter_CYbYOJeZ_es();
254880
254885
  init_jszip_ChlR43oI_es();
@@ -280209,7 +280214,11 @@ function print() { __p += __j.call(arguments, '') }
280209
280214
  argument,
280210
280215
  item
280211
280216
  });
280212
- item?.activate?.();
280217
+ const labelAttr = item?.labelAttr?.value;
280218
+ if (labelAttr && argument)
280219
+ item?.activate?.({ [labelAttr]: argument });
280220
+ else
280221
+ item?.activate?.();
280213
280222
  if (this.activeEditor && !this.activeEditor.options.isHeaderOrFooter)
280214
280223
  this.activeEditor.focus();
280215
280224
  return;
@@ -288870,7 +288879,7 @@ var init_zipper_YmNpPIyc_es = __esm(() => {
288870
288879
 
288871
288880
  // ../../packages/superdoc/dist/super-editor.es.js
288872
288881
  var init_super_editor_es = __esm(() => {
288873
- init_src_CxFOmQ5k_es();
288882
+ init_src_C2jApr82_es();
288874
288883
  init_SuperConverter_CYbYOJeZ_es();
288875
288884
  init_jszip_ChlR43oI_es();
288876
288885
  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.20",
3
+ "version": "0.5.0-next.22",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -25,8 +25,8 @@
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",
29
28
  "@superdoc/pm-adapter": "0.0.0",
29
+ "@superdoc/super-editor": "0.0.1",
30
30
  "superdoc": "1.23.0"
31
31
  },
32
32
  "module": "src/index.ts",
@@ -34,11 +34,11 @@
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.20",
38
- "@superdoc-dev/cli-linux-x64": "0.5.0-next.20",
39
- "@superdoc-dev/cli-linux-arm64": "0.5.0-next.20",
40
- "@superdoc-dev/cli-windows-x64": "0.5.0-next.20",
41
- "@superdoc-dev/cli-darwin-x64": "0.5.0-next.20"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.22",
38
+ "@superdoc-dev/cli-darwin-x64": "0.5.0-next.22",
39
+ "@superdoc-dev/cli-linux-x64": "0.5.0-next.22",
40
+ "@superdoc-dev/cli-linux-arm64": "0.5.0-next.22",
41
+ "@superdoc-dev/cli-windows-x64": "0.5.0-next.22"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",