@superdoc-dev/cli 0.7.0-next.2 → 0.7.0-next.3

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 +24 -18
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -65352,7 +65352,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
65352
65352
  emptyOptions2 = {};
65353
65353
  });
65354
65354
 
65355
- // ../../packages/superdoc/dist/chunks/SuperConverter-DdDUYAlC.es.js
65355
+ // ../../packages/superdoc/dist/chunks/SuperConverter-H0ERuAZY.es.js
65356
65356
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
65357
65357
  const fieldValue = extension$1.config[field];
65358
65358
  if (typeof fieldValue === "function")
@@ -110976,13 +110976,19 @@ var isRegExp = (value) => {
110976
110976
  const runType = newState.schema.nodes.run;
110977
110977
  if (!runType)
110978
110978
  return null;
110979
- const isAcceptReject = transactions.some((t) => t.getMeta("inputType") === "acceptReject");
110980
- const removedMarkTypes = /* @__PURE__ */ new Set;
110979
+ const removedKeys = /* @__PURE__ */ new Set;
110981
110980
  transactions.forEach((t) => {
110982
110981
  t.steps.forEach((step$1) => {
110983
110982
  const jsonStep = step$1.toJSON?.();
110984
- if (jsonStep?.stepType === "removeMark" && jsonStep.mark?.type)
110985
- removedMarkTypes.add(jsonStep.mark.type);
110983
+ if (jsonStep?.stepType !== "removeMark" || !jsonStep.mark?.type)
110984
+ return;
110985
+ if (jsonStep.mark.type === "textStyle")
110986
+ Object.entries(jsonStep.mark.attrs || {}).forEach(([key, value]) => {
110987
+ if (value != null)
110988
+ removedKeys.add(key);
110989
+ });
110990
+ else
110991
+ removedKeys.add(jsonStep.mark.type);
110986
110992
  });
110987
110993
  });
110988
110994
  const preservedDerivedKeys = /* @__PURE__ */ new Set;
@@ -111046,14 +111052,14 @@ var isRegExp = (value) => {
111046
111052
  const hadInlineKeys = Array.isArray(runNode.attrs?.runPropertiesInlineKeys) && runNode.attrs.runPropertiesInlineKeys.length > 0;
111047
111053
  if (JSON.stringify(runProperties) === JSON.stringify(runNode.attrs.runProperties) && hadInlineKeys)
111048
111054
  return;
111049
- if (hadInlineKeys && !isAcceptReject) {
111055
+ if (hadInlineKeys) {
111050
111056
  const computedKeys = new Set(runProperties ? Object.keys(runProperties) : []);
111051
111057
  const lostKeys = existingInlineKeys.filter((k) => !computedKeys.has(k));
111052
111058
  if (lostKeys.length > 0) {
111053
111059
  if (!runProperties)
111054
111060
  runProperties = {};
111055
111061
  lostKeys.forEach((k) => {
111056
- if (removedMarkTypes.has(k))
111062
+ if (removedKeys.has(k))
111057
111063
  return;
111058
111064
  if (runNode.attrs?.runProperties?.[k] !== undefined)
111059
111065
  runProperties[k] = runNode.attrs.runProperties[k];
@@ -117037,7 +117043,7 @@ var isRegExp = (value) => {
117037
117043
  state.kern = kernNode.attributes["w:val"];
117038
117044
  }
117039
117045
  }, SuperConverter;
117040
- var init_SuperConverter_DdDUYAlC_es = __esm(() => {
117046
+ var init_SuperConverter_H0ERuAZY_es = __esm(() => {
117041
117047
  init_rolldown_runtime_Bg48TavK_es();
117042
117048
  init_jszip_C49i9kUs_es();
117043
117049
  init_xml_js_CqGKpaft_es();
@@ -154233,7 +154239,7 @@ var init_SuperConverter_DdDUYAlC_es = __esm(() => {
154233
154239
  };
154234
154240
  });
154235
154241
 
154236
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-BX6lNsQC.es.js
154242
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-DqiJg0qo.es.js
154237
154243
  function parseSizeUnit(val = "0") {
154238
154244
  const length3 = val.toString() || "0";
154239
154245
  const value = Number.parseFloat(length3);
@@ -155844,8 +155850,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
155844
155850
  return false;
155845
155851
  return Boolean(checker(attrs));
155846
155852
  };
155847
- var init_create_headless_toolbar_BX6lNsQC_es = __esm(() => {
155848
- init_SuperConverter_DdDUYAlC_es();
155853
+ var init_create_headless_toolbar_DqiJg0qo_es = __esm(() => {
155854
+ init_SuperConverter_H0ERuAZY_es();
155849
155855
  init_constants_CGhJRd87_es();
155850
155856
  init_dist_B8HfvhaK_es();
155851
155857
  CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
@@ -204283,7 +204289,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
204283
204289
  init_remark_gfm_BhnWr3yf_es();
204284
204290
  });
204285
204291
 
204286
- // ../../packages/superdoc/dist/chunks/src-DrQirVNk.es.js
204292
+ // ../../packages/superdoc/dist/chunks/src-D6bw0Eho.es.js
204287
204293
  function deleteProps(obj, propOrProps) {
204288
204294
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
204289
204295
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -287407,12 +287413,12 @@ var Node$13 = class Node$14 {
287407
287413
  return;
287408
287414
  console.log(...args$1);
287409
287415
  }, 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;
287410
- var init_src_DrQirVNk_es = __esm(() => {
287416
+ var init_src_D6bw0Eho_es = __esm(() => {
287411
287417
  init_rolldown_runtime_Bg48TavK_es();
287412
- init_SuperConverter_DdDUYAlC_es();
287418
+ init_SuperConverter_H0ERuAZY_es();
287413
287419
  init_jszip_C49i9kUs_es();
287414
287420
  init_uuid_qzgm05fK_es();
287415
- init_create_headless_toolbar_BX6lNsQC_es();
287421
+ init_create_headless_toolbar_DqiJg0qo_es();
287416
287422
  init_constants_CGhJRd87_es();
287417
287423
  init_dist_B8HfvhaK_es();
287418
287424
  init_unified_Dsuw2be5_es();
@@ -322134,11 +322140,11 @@ var init_zipper_DbkgrypV_es = __esm(() => {
322134
322140
 
322135
322141
  // ../../packages/superdoc/dist/super-editor.es.js
322136
322142
  var init_super_editor_es = __esm(() => {
322137
- init_src_DrQirVNk_es();
322138
- init_SuperConverter_DdDUYAlC_es();
322143
+ init_src_D6bw0Eho_es();
322144
+ init_SuperConverter_H0ERuAZY_es();
322139
322145
  init_jszip_C49i9kUs_es();
322140
322146
  init_xml_js_CqGKpaft_es();
322141
- init_create_headless_toolbar_BX6lNsQC_es();
322147
+ init_create_headless_toolbar_DqiJg0qo_es();
322142
322148
  init_constants_CGhJRd87_es();
322143
322149
  init_dist_B8HfvhaK_es();
322144
322150
  init_unified_Dsuw2be5_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.7.0-next.2",
3
+ "version": "0.7.0-next.3",
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/super-editor": "0.0.1",
29
27
  "@superdoc/pm-adapter": "0.0.0",
30
- "superdoc": "1.25.0"
28
+ "@superdoc/super-editor": "0.0.1",
29
+ "superdoc": "1.25.0",
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.7.0-next.2",
38
- "@superdoc-dev/cli-darwin-x64": "0.7.0-next.2",
39
- "@superdoc-dev/cli-linux-x64": "0.7.0-next.2",
40
- "@superdoc-dev/cli-linux-arm64": "0.7.0-next.2",
41
- "@superdoc-dev/cli-windows-x64": "0.7.0-next.2"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.7.0-next.3",
38
+ "@superdoc-dev/cli-darwin-x64": "0.7.0-next.3",
39
+ "@superdoc-dev/cli-linux-x64": "0.7.0-next.3",
40
+ "@superdoc-dev/cli-linux-arm64": "0.7.0-next.3",
41
+ "@superdoc-dev/cli-windows-x64": "0.7.0-next.3"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",