@superdoc-dev/cli 0.15.0-next.7 → 0.15.0-next.9

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 +43 -6
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -221759,7 +221759,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
221759
221759
  init_remark_gfm_BhnWr3yf_es();
221760
221760
  });
221761
221761
 
221762
- // ../../packages/superdoc/dist/chunks/src-CYzfdR4C.es.js
221762
+ // ../../packages/superdoc/dist/chunks/src-DQ_lu_9z.es.js
221763
221763
  function deleteProps(obj, propOrProps) {
221764
221764
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
221765
221765
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -318943,7 +318943,7 @@ menclose::after {
318943
318943
  return;
318944
318944
  console.log(...args$1);
318945
318945
  }, 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, TRACKED_MARK_NAMES;
318946
- var init_src_CYzfdR4C_es = __esm(() => {
318946
+ var init_src_DQ_lu_9z_es = __esm(() => {
318947
318947
  init_rolldown_runtime_Bg48TavK_es();
318948
318948
  init_SuperConverter_C6hKp29w_es();
318949
318949
  init_jszip_C49i9kUs_es();
@@ -348931,6 +348931,43 @@ function print() { __p += __j.call(arguments, '') }
348931
348931
  }
348932
348932
  return this.scrollToPosition(pos, options);
348933
348933
  }
348934
+ async scrollContentControlIntoView(entityId, options = {}) {
348935
+ const editor = this.#editor;
348936
+ if (!editor || typeof entityId !== "string" || entityId.length === 0)
348937
+ return false;
348938
+ let found2 = null;
348939
+ editor.state.doc.descendants((node3, pos) => {
348940
+ if (found2)
348941
+ return false;
348942
+ const name = node3.type?.name;
348943
+ if ((name === "structuredContent" || name === "structuredContentBlock") && String(node3.attrs?.id) === entityId) {
348944
+ found2 = {
348945
+ pos,
348946
+ node: node3
348947
+ };
348948
+ return false;
348949
+ }
348950
+ return true;
348951
+ });
348952
+ if (!found2)
348953
+ return false;
348954
+ let contentPos = found2.pos + 1;
348955
+ let textFound = false;
348956
+ found2.node?.descendants((child, rel) => {
348957
+ if (textFound)
348958
+ return false;
348959
+ if (child.isText) {
348960
+ contentPos = found2.pos + 1 + rel;
348961
+ textFound = true;
348962
+ return false;
348963
+ }
348964
+ return true;
348965
+ });
348966
+ return this.scrollToPositionAsync(contentPos, {
348967
+ behavior: options.behavior ?? "smooth",
348968
+ block: options.block ?? "center"
348969
+ });
348970
+ }
348934
348971
  async scrollToPage(pageNumber, scrollBehavior = "smooth") {
348935
348972
  const layout = this.#layoutState.layout;
348936
348973
  if (!layout)
@@ -353245,9 +353282,9 @@ function print() { __p += __j.call(arguments, '') }
353245
353282
  ]);
353246
353283
  });
353247
353284
 
353248
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-Cg4-XoJL.es.js
353285
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-VNl09TSQ.es.js
353249
353286
  var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
353250
- var init_create_super_doc_ui_Cg4_XoJL_es = __esm(() => {
353287
+ var init_create_super_doc_ui_VNl09TSQ_es = __esm(() => {
353251
353288
  init_SuperConverter_C6hKp29w_es();
353252
353289
  init_create_headless_toolbar_ISx0N5AS_es();
353253
353290
  MOD_ALIASES = new Set([
@@ -353291,7 +353328,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
353291
353328
 
353292
353329
  // ../../packages/superdoc/dist/super-editor.es.js
353293
353330
  var init_super_editor_es = __esm(() => {
353294
- init_src_CYzfdR4C_es();
353331
+ init_src_DQ_lu_9z_es();
353295
353332
  init_SuperConverter_C6hKp29w_es();
353296
353333
  init_jszip_C49i9kUs_es();
353297
353334
  init_xml_js_CqGKpaft_es();
@@ -353300,7 +353337,7 @@ var init_super_editor_es = __esm(() => {
353300
353337
  init_dist_B8HfvhaK_es();
353301
353338
  init_unified_Dsuw2be5_es();
353302
353339
  init_DocxZipper_nv_KfOqb_es();
353303
- init_create_super_doc_ui_Cg4_XoJL_es();
353340
+ init_create_super_doc_ui_VNl09TSQ_es();
353304
353341
  init_ui_C5PAS9hY_es();
353305
353342
  init_eventemitter3_BnGqBE_Q_es();
353306
353343
  init_errors_CNaD6vcg_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.15.0-next.7",
3
+ "version": "0.15.0-next.9",
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/pm-adapter": "0.0.0",
29
28
  "@superdoc/super-editor": "0.0.1",
30
- "superdoc": "1.37.0"
29
+ "superdoc": "1.37.0",
30
+ "@superdoc/pm-adapter": "0.0.0"
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.15.0-next.7",
38
- "@superdoc-dev/cli-linux-x64": "0.15.0-next.7",
39
- "@superdoc-dev/cli-linux-arm64": "0.15.0-next.7",
40
- "@superdoc-dev/cli-darwin-x64": "0.15.0-next.7",
41
- "@superdoc-dev/cli-windows-x64": "0.15.0-next.7"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.15.0-next.9",
38
+ "@superdoc-dev/cli-darwin-x64": "0.15.0-next.9",
39
+ "@superdoc-dev/cli-linux-x64": "0.15.0-next.9",
40
+ "@superdoc-dev/cli-linux-arm64": "0.15.0-next.9",
41
+ "@superdoc-dev/cli-windows-x64": "0.15.0-next.9"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",