@superdoc-dev/cli 0.3.0-next.44 → 0.3.0-next.46

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 +13 -10
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -125403,7 +125403,7 @@ var init_DocxZipper_GK7co0eu_es = __esm(() => {
125403
125403
  DocxZipper_default = DocxZipper;
125404
125404
  });
125405
125405
 
125406
- // ../../packages/superdoc/dist/chunks/vue-DQHWm9lq.es.js
125406
+ // ../../packages/superdoc/dist/chunks/vue-LcaAh-pz.es.js
125407
125407
  function makeMap(str) {
125408
125408
  const map$12 = /* @__PURE__ */ Object.create(null);
125409
125409
  for (const key of str.split(","))
@@ -131454,7 +131454,7 @@ var EMPTY_OBJ, EMPTY_ARR, NOOP = () => {}, NO = () => false, isOn = (key) => key
131454
131454
  };
131455
131455
  return app;
131456
131456
  };
131457
- var init_vue_DQHWm9lq_es = __esm(() => {
131457
+ var init_vue_LcaAh_pz_es = __esm(() => {
131458
131458
  init_jszip_ChlR43oI_es();
131459
131459
  init_dist$1();
131460
131460
  init_dist();
@@ -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-ofVoy7QC.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_ofVoy7QC_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();
@@ -229103,7 +229108,7 @@ var init_src_ofVoy7QC_es = __esm(() => {
229103
229108
  init_remark_gfm_z_sDF4ss_es();
229104
229109
  init_remark_stringify_D8vxv_XI_es();
229105
229110
  init_DocxZipper_GK7co0eu_es();
229106
- init_vue_DQHWm9lq_es();
229111
+ init_vue_LcaAh_pz_es();
229107
229112
  init__plugin_vue_export_helper_HmhZBO0u_es();
229108
229113
  init_eventemitter3_DGBTyUUP_es();
229109
229114
  init_blank_docx_DFCuImiw_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,14 +262432,14 @@ 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_ofVoy7QC_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();
262436
262439
  init_constants_ep1_Gwqi_es();
262437
262440
  init_unified_BRHLwnjP_es();
262438
262441
  init_DocxZipper_GK7co0eu_es();
262439
- init_vue_DQHWm9lq_es();
262442
+ init_vue_LcaAh_pz_es();
262440
262443
  init_eventemitter3_DGBTyUUP_es();
262441
262444
  init_zipper_DqXT7uTa_es();
262442
262445
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.3.0-next.44",
3
+ "version": "0.3.0-next.46",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -30,11 +30,11 @@
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.44",
34
- "@superdoc-dev/cli-darwin-x64": "0.3.0-next.44",
35
- "@superdoc-dev/cli-linux-x64": "0.3.0-next.44",
36
- "@superdoc-dev/cli-linux-arm64": "0.3.0-next.44",
37
- "@superdoc-dev/cli-windows-x64": "0.3.0-next.44"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.46",
34
+ "@superdoc-dev/cli-darwin-x64": "0.3.0-next.46",
35
+ "@superdoc-dev/cli-linux-arm64": "0.3.0-next.46",
36
+ "@superdoc-dev/cli-windows-x64": "0.3.0-next.46",
37
+ "@superdoc-dev/cli-linux-x64": "0.3.0-next.46"
38
38
  },
39
39
  "scripts": {
40
40
  "predev": "node scripts/ensure-superdoc-build.js",