@superdoc-dev/cli 0.8.0-next.70 → 0.8.0-next.72

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 -6
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -207264,7 +207264,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
207264
207264
  init_remark_gfm_BhnWr3yf_es();
207265
207265
  });
207266
207266
 
207267
- // ../../packages/superdoc/dist/chunks/src-CazlxYMA.es.js
207267
+ // ../../packages/superdoc/dist/chunks/src-JQdl170N.es.js
207268
207268
  function deleteProps(obj, propOrProps) {
207269
207269
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
207270
207270
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -298527,7 +298527,7 @@ menclose::after {
298527
298527
  return;
298528
298528
  console.log(...args$1);
298529
298529
  }, 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;
298530
- var init_src_CazlxYMA_es = __esm(() => {
298530
+ var init_src_JQdl170N_es = __esm(() => {
298531
298531
  init_rolldown_runtime_Bg48TavK_es();
298532
298532
  init_SuperConverter_DFi0X147_es();
298533
298533
  init_jszip_C49i9kUs_es();
@@ -330478,6 +330478,19 @@ function print() { __p += __j.call(arguments, '') }
330478
330478
  getStorySessionManager() {
330479
330479
  return this.#storySessionManager;
330480
330480
  }
330481
+ getActiveStoryLocator() {
330482
+ const storySession = this.#storySessionManager?.getActiveSession();
330483
+ if (storySession)
330484
+ return storySession.locator;
330485
+ const session = this.#headerFooterSession?.session;
330486
+ if (!session || session.mode === "body" || !session.headerFooterRefId)
330487
+ return null;
330488
+ return {
330489
+ kind: "story",
330490
+ storyType: "headerFooterPart",
330491
+ refId: session.headerFooterRefId
330492
+ };
330493
+ }
330481
330494
  exitActiveStorySurface() {
330482
330495
  if ((this.#headerFooterSession?.session?.mode ?? "body") !== "body")
330483
330496
  this.#exitHeaderFooterMode();
@@ -335925,9 +335938,9 @@ function print() { __p += __j.call(arguments, '') }
335925
335938
  ];
335926
335939
  });
335927
335940
 
335928
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-IYY4udqU.es.js
335941
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-_B0b9R4K.es.js
335929
335942
  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;
335930
- var init_create_super_doc_ui_IYY4udqU_es = __esm(() => {
335943
+ var init_create_super_doc_ui__B0b9R4K_es = __esm(() => {
335931
335944
  init_SuperConverter_DFi0X147_es();
335932
335945
  init_create_headless_toolbar_C9nvGdZQ_es();
335933
335946
  MOD_ALIASES = new Set([
@@ -335971,7 +335984,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
335971
335984
 
335972
335985
  // ../../packages/superdoc/dist/super-editor.es.js
335973
335986
  var init_super_editor_es = __esm(() => {
335974
- init_src_CazlxYMA_es();
335987
+ init_src_JQdl170N_es();
335975
335988
  init_SuperConverter_DFi0X147_es();
335976
335989
  init_jszip_C49i9kUs_es();
335977
335990
  init_xml_js_CqGKpaft_es();
@@ -335980,7 +335993,7 @@ var init_super_editor_es = __esm(() => {
335980
335993
  init_dist_B8HfvhaK_es();
335981
335994
  init_unified_Dsuw2be5_es();
335982
335995
  init_DocxZipper_CUX64E5K_es();
335983
- init_create_super_doc_ui_IYY4udqU_es();
335996
+ init_create_super_doc_ui__B0b9R4K_es();
335984
335997
  init_ui_CGB3qmy3_es();
335985
335998
  init_eventemitter3_UwU_CLPU_es();
335986
335999
  init_errors_C_DoKMoN_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.8.0-next.70",
3
+ "version": "0.8.0-next.72",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -26,19 +26,19 @@
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
28
  "@superdoc/pm-adapter": "0.0.0",
29
- "@superdoc/super-editor": "0.0.1",
30
- "superdoc": "1.31.0"
29
+ "superdoc": "1.31.0",
30
+ "@superdoc/super-editor": "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.8.0-next.70",
38
- "@superdoc-dev/cli-darwin-x64": "0.8.0-next.70",
39
- "@superdoc-dev/cli-windows-x64": "0.8.0-next.70",
40
- "@superdoc-dev/cli-linux-arm64": "0.8.0-next.70",
41
- "@superdoc-dev/cli-linux-x64": "0.8.0-next.70"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.8.0-next.72",
38
+ "@superdoc-dev/cli-darwin-x64": "0.8.0-next.72",
39
+ "@superdoc-dev/cli-linux-x64": "0.8.0-next.72",
40
+ "@superdoc-dev/cli-linux-arm64": "0.8.0-next.72",
41
+ "@superdoc-dev/cli-windows-x64": "0.8.0-next.72"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",