@superdoc-dev/cli 0.8.0-next.91 → 0.8.0-next.92

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 +9 -7
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -208524,7 +208524,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
208524
208524
  init_remark_gfm_BhnWr3yf_es();
208525
208525
  });
208526
208526
 
208527
- // ../../packages/superdoc/dist/chunks/src-DFx5wrK0.es.js
208527
+ // ../../packages/superdoc/dist/chunks/src-CMq87UyB.es.js
208528
208528
  function deleteProps(obj, propOrProps) {
208529
208529
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
208530
208530
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -245740,11 +245740,12 @@ function resolveBookmarkTarget(doc$12, target) {
245740
245740
  function nodePositionToPosition(doc$12, pos) {
245741
245741
  const resolved = doc$12.resolve(pos);
245742
245742
  for (let depth = resolved.depth;depth >= 0; depth--) {
245743
- const blockId = resolved.node(depth).attrs?.sdBlockId;
245743
+ const node3 = resolved.node(depth);
245744
+ const blockId = node3.attrs?.sdBlockId;
245744
245745
  if (blockId)
245745
245746
  return {
245746
245747
  blockId,
245747
- offset: pos - resolved.start(depth)
245748
+ offset: pmPositionToTextOffset(node3, resolved.start(depth) - 1, pos)
245748
245749
  };
245749
245750
  }
245750
245751
  return {
@@ -246196,11 +246197,12 @@ function protectionClearEditingRestrictionAdapter(editor, _input, options) {
246196
246197
  function pmPosToPosition(doc$12, pos) {
246197
246198
  const resolved = doc$12.resolve(pos);
246198
246199
  for (let depth = resolved.depth;depth >= 0; depth--) {
246199
- const blockId = resolved.node(depth).attrs?.sdBlockId;
246200
+ const node3 = resolved.node(depth);
246201
+ const blockId = node3.attrs?.sdBlockId;
246200
246202
  if (blockId)
246201
246203
  return {
246202
246204
  blockId,
246203
- offset: pos - resolved.start(depth)
246205
+ offset: pmPositionToTextOffset(node3, resolved.start(depth) - 1, pos)
246204
246206
  };
246205
246207
  }
246206
246208
  return {
@@ -302077,7 +302079,7 @@ menclose::after {
302077
302079
  return;
302078
302080
  console.log(...args$1);
302079
302081
  }, 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;
302080
- var init_src_DFx5wrK0_es = __esm(() => {
302082
+ var init_src_CMq87UyB_es = __esm(() => {
302081
302083
  init_rolldown_runtime_Bg48TavK_es();
302082
302084
  init_SuperConverter_BInxZk0I_es();
302083
302085
  init_jszip_C49i9kUs_es();
@@ -340138,7 +340140,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
340138
340140
 
340139
340141
  // ../../packages/superdoc/dist/super-editor.es.js
340140
340142
  var init_super_editor_es = __esm(() => {
340141
- init_src_DFx5wrK0_es();
340143
+ init_src_CMq87UyB_es();
340142
340144
  init_SuperConverter_BInxZk0I_es();
340143
340145
  init_jszip_C49i9kUs_es();
340144
340146
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.8.0-next.91",
3
+ "version": "0.8.0-next.92",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -24,9 +24,9 @@
24
24
  "@types/node": "22.19.2",
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
+ "@superdoc/pm-adapter": "0.0.0",
27
28
  "@superdoc/document-api": "0.0.1",
28
29
  "@superdoc/super-editor": "0.0.1",
29
- "@superdoc/pm-adapter": "0.0.0",
30
30
  "superdoc": "1.32.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.8.0-next.91",
38
- "@superdoc-dev/cli-darwin-x64": "0.8.0-next.91",
39
- "@superdoc-dev/cli-linux-x64": "0.8.0-next.91",
40
- "@superdoc-dev/cli-linux-arm64": "0.8.0-next.91",
41
- "@superdoc-dev/cli-windows-x64": "0.8.0-next.91"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.8.0-next.92",
38
+ "@superdoc-dev/cli-darwin-x64": "0.8.0-next.92",
39
+ "@superdoc-dev/cli-linux-x64": "0.8.0-next.92",
40
+ "@superdoc-dev/cli-windows-x64": "0.8.0-next.92",
41
+ "@superdoc-dev/cli-linux-arm64": "0.8.0-next.92"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",