@superdoc-dev/cli 0.3.0-next.45 → 0.3.0-next.47

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 -6
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -148837,7 +148837,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
148837
148837
  init_remark_gfm_z_sDF4ss_es();
148838
148838
  });
148839
148839
 
148840
- // ../../packages/superdoc/dist/chunks/src-DBcgnrdo.es.js
148840
+ // ../../packages/superdoc/dist/chunks/src-DFYcQ0qe.es.js
148841
148841
  function deleteProps(obj, propOrProps) {
148842
148842
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
148843
148843
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -208728,6 +208728,11 @@ var Node$13 = class Node$14 {
208728
208728
  map$12.appendMap(step3.getMap());
208729
208729
  return;
208730
208730
  }
208731
+ if (step3.structure && step3.insert === 1 && step3.gapFrom === step3.from + 1 && step3.gapTo === step3.to - 1) {
208732
+ newTr.step(step3);
208733
+ map$12.appendMap(step3.getMap());
208734
+ return;
208735
+ }
208731
208736
  if (!(tr.getMeta("inputType") === "deleteContentBackward"))
208732
208737
  return;
208733
208738
  const trackDeleteMarkType = state.schema.marks[TrackDeleteMarkName];
@@ -229093,7 +229098,7 @@ var Node$13 = class Node$14 {
229093
229098
  return false;
229094
229099
  return Boolean(checker(attrs));
229095
229100
  }, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
229096
- var init_src_DBcgnrdo_es = __esm(() => {
229101
+ var init_src_DFYcQ0qe_es = __esm(() => {
229097
229102
  init_rolldown_runtime_B2q5OVn9_es();
229098
229103
  init_SuperConverter_IVMRugL_es();
229099
229104
  init_jszip_ChlR43oI_es();
@@ -239855,10 +239860,8 @@ function print() { __p += __j.call(arguments, '') }
239855
239860
  },
239856
239861
  toggleLinkedStyle: (style2) => (params$1) => {
239857
239862
  const { tr } = params$1;
239858
- if (tr.selection.empty)
239859
- return false;
239860
239863
  let node3 = tr.doc.nodeAt(tr.selection.$from.pos);
239861
- if (node3 && node3.type.name !== "paragraph")
239864
+ if (!node3 || node3.type.name !== "paragraph")
239862
239865
  node3 = findParentNodeClosestToPos(tr.selection.$from, (n) => {
239863
239866
  return n.type.name === "paragraph";
239864
239867
  })?.node;
@@ -262429,7 +262432,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
262429
262432
 
262430
262433
  // ../../packages/superdoc/dist/super-editor.es.js
262431
262434
  var init_super_editor_es = __esm(() => {
262432
- init_src_DBcgnrdo_es();
262435
+ init_src_DFYcQ0qe_es();
262433
262436
  init_SuperConverter_IVMRugL_es();
262434
262437
  init_jszip_ChlR43oI_es();
262435
262438
  init_xml_js_BtmJ6bNs_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.3.0-next.45",
3
+ "version": "0.3.0-next.47",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -20,21 +20,21 @@
20
20
  "@types/bun": "^1.3.8",
21
21
  "@types/node": "22.19.2",
22
22
  "typescript": "^5.9.2",
23
- "@superdoc/document-api": "0.0.1",
24
- "@superdoc/super-editor": "0.0.1",
25
23
  "@superdoc/pm-adapter": "0.0.0",
26
- "superdoc": "1.20.0"
24
+ "@superdoc/super-editor": "0.0.1",
25
+ "superdoc": "1.20.0",
26
+ "@superdoc/document-api": "0.0.1"
27
27
  },
28
28
  "module": "src/index.ts",
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.45",
34
- "@superdoc-dev/cli-darwin-x64": "0.3.0-next.45",
35
- "@superdoc-dev/cli-linux-x64": "0.3.0-next.45",
36
- "@superdoc-dev/cli-windows-x64": "0.3.0-next.45",
37
- "@superdoc-dev/cli-linux-arm64": "0.3.0-next.45"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.47",
34
+ "@superdoc-dev/cli-linux-x64": "0.3.0-next.47",
35
+ "@superdoc-dev/cli-darwin-x64": "0.3.0-next.47",
36
+ "@superdoc-dev/cli-linux-arm64": "0.3.0-next.47",
37
+ "@superdoc-dev/cli-windows-x64": "0.3.0-next.47"
38
38
  },
39
39
  "scripts": {
40
40
  "predev": "node scripts/ensure-superdoc-build.js",