@superdoc-dev/cli 0.8.0-next.36 → 0.8.0-next.37

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 -6
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -207186,7 +207186,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
207186
207186
  init_remark_gfm_BhnWr3yf_es();
207187
207187
  });
207188
207188
 
207189
- // ../../packages/superdoc/dist/chunks/src-Dinif16O.es.js
207189
+ // ../../packages/superdoc/dist/chunks/src-DAF1K-X-.es.js
207190
207190
  function deleteProps(obj, propOrProps) {
207191
207191
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
207192
207192
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -209025,6 +209025,7 @@ function createStructuredContentSelectPlugin(editor) {
209025
209025
  return false;
209026
209026
  const { state } = view;
209027
209027
  const { selection } = state;
209028
+ const isEditableSlotText = (text5) => text5.replace(/\u200B/g, "").length === 0;
209028
209029
  const resolveBoundaryExit = ($pos) => {
209029
209030
  for (let depth = $pos.depth;depth > 0; depth -= 1) {
209030
209031
  const node3 = $pos.node(depth);
@@ -209036,9 +209037,13 @@ function createStructuredContentSelectPlugin(editor) {
209036
209037
  const beforePos = nodePos;
209037
209038
  const afterPos = nodePos + node3.nodeSize;
209038
209039
  if (selection.empty) {
209039
- if (event.key === "ArrowRight" && selection.from >= contentTo - 1)
209040
+ const trailingSlice = state.doc.textBetween(selection.from, contentTo, "", INLINE_LEAF_TEXT);
209041
+ const leadingSlice = state.doc.textBetween(contentFrom, selection.from, "", INLINE_LEAF_TEXT);
209042
+ const onlyTrailingEditableSlots = trailingSlice.length > 0 && isEditableSlotText(trailingSlice);
209043
+ const onlyLeadingEditableSlots = leadingSlice.length > 0 && isEditableSlotText(leadingSlice);
209044
+ if (event.key === "ArrowRight" && (selection.from >= contentTo - 1 || onlyTrailingEditableSlots))
209040
209045
  return afterPos;
209041
- if (event.key === "ArrowLeft" && selection.from <= contentFrom + 1)
209046
+ if (event.key === "ArrowLeft" && (selection.from <= contentFrom + 1 || onlyLeadingEditableSlots))
209042
209047
  return beforePos;
209043
209048
  return null;
209044
209049
  }
@@ -271171,7 +271176,7 @@ var Node$13 = class Node$14 {
271171
271176
  const transaction = view.state.tr.setSelection(selection);
271172
271177
  view.dispatch(transaction);
271173
271178
  }
271174
- }, StructuredContentInlineView, STRUCTURED_CONTENT_LOCK_KEY, structuredContentClass = "sd-structured-content", structuredContentInnerClass = "sd-structured-content__content", StructuredContent, StructuredContentBlockView, structuredContentBlockClass = "sd-structured-content-block", structuredContentBlockInnerClass = "sd-structured-content-block__content", StructuredContentBlock, structuredContentHelpers_exports, STRUCTURED_CONTENT_NAMES, findFirstTextNode$1 = (node3) => {
271179
+ }, StructuredContentInlineView, STRUCTURED_CONTENT_LOCK_KEY, INLINE_LEAF_TEXT = "", structuredContentClass = "sd-structured-content", structuredContentInnerClass = "sd-structured-content__content", StructuredContent, StructuredContentBlockView, structuredContentBlockClass = "sd-structured-content-block", structuredContentBlockInnerClass = "sd-structured-content-block__content", StructuredContentBlock, structuredContentHelpers_exports, STRUCTURED_CONTENT_NAMES, findFirstTextNode$1 = (node3) => {
271175
271180
  let firstTextNode = null;
271176
271181
  node3.descendants((child) => {
271177
271182
  if (child.isText) {
@@ -284555,6 +284560,8 @@ var Node$13 = class Node$14 {
284555
284560
  border: 1px solid transparent;
284556
284561
  position: relative;
284557
284562
  display: inline;
284563
+ font-size: initial;
284564
+ line-height: normal;
284558
284565
  z-index: 10;
284559
284566
  }
284560
284567
 
@@ -298061,7 +298068,7 @@ menclose::after {
298061
298068
  return;
298062
298069
  console.log(...args$1);
298063
298070
  }, 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;
298064
- var init_src_Dinif16O_es = __esm(() => {
298071
+ var init_src_DAF1K_X_es = __esm(() => {
298065
298072
  init_rolldown_runtime_Bg48TavK_es();
298066
298073
  init_SuperConverter_Dchjy0My_es();
298067
298074
  init_jszip_C49i9kUs_es();
@@ -335309,7 +335316,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
335309
335316
 
335310
335317
  // ../../packages/superdoc/dist/super-editor.es.js
335311
335318
  var init_super_editor_es = __esm(() => {
335312
- init_src_Dinif16O_es();
335319
+ init_src_DAF1K_X_es();
335313
335320
  init_SuperConverter_Dchjy0My_es();
335314
335321
  init_jszip_C49i9kUs_es();
335315
335322
  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.36",
3
+ "version": "0.8.0-next.37",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -24,21 +24,21 @@
24
24
  "@types/node": "22.19.2",
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
- "@superdoc/document-api": "0.0.1",
28
- "superdoc": "1.29.1",
29
27
  "@superdoc/pm-adapter": "0.0.0",
30
- "@superdoc/super-editor": "0.0.1"
28
+ "superdoc": "1.29.1",
29
+ "@superdoc/super-editor": "0.0.1",
30
+ "@superdoc/document-api": "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.36",
38
- "@superdoc-dev/cli-darwin-x64": "0.8.0-next.36",
39
- "@superdoc-dev/cli-linux-x64": "0.8.0-next.36",
40
- "@superdoc-dev/cli-windows-x64": "0.8.0-next.36",
41
- "@superdoc-dev/cli-linux-arm64": "0.8.0-next.36"
37
+ "@superdoc-dev/cli-darwin-x64": "0.8.0-next.37",
38
+ "@superdoc-dev/cli-linux-x64": "0.8.0-next.37",
39
+ "@superdoc-dev/cli-darwin-arm64": "0.8.0-next.37",
40
+ "@superdoc-dev/cli-linux-arm64": "0.8.0-next.37",
41
+ "@superdoc-dev/cli-windows-x64": "0.8.0-next.37"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",