@superdoc-dev/cli 0.5.0-next.71 → 0.5.0-next.72

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 +16 -16
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -204645,7 +204645,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
204645
204645
  init_remark_gfm_BhnWr3yf_es();
204646
204646
  });
204647
204647
 
204648
- // ../../packages/superdoc/dist/chunks/src-BwkoX8vg.es.js
204648
+ // ../../packages/superdoc/dist/chunks/src-CDzC82e6.es.js
204649
204649
  function deleteProps(obj, propOrProps) {
204650
204650
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
204651
204651
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -268943,9 +268943,9 @@ var Node$13 = class Node$14 {
268943
268943
  id2 = v4_default();
268944
268944
  const insertionMark = tr.doc.type.schema.marks[TrackInsertMarkName].create({
268945
268945
  id: id2,
268946
- author: user.name,
268947
- authorEmail: user.email,
268948
- authorImage: user.image,
268946
+ author: user.name || "",
268947
+ authorEmail: user.email || "",
268948
+ authorImage: user.image || "",
268949
268949
  date
268950
268950
  });
268951
268951
  tr.addMark(from$1, to, insertionMark);
@@ -268984,9 +268984,9 @@ var Node$13 = class Node$14 {
268984
268984
  id2 = v4_default();
268985
268985
  const deletionMark = tr.doc.type.schema.marks[TrackDeleteMarkName].create({
268986
268986
  id: id2,
268987
- author: user.name,
268988
- authorEmail: user.email,
268989
- authorImage: user.image,
268987
+ author: user.name || "",
268988
+ authorEmail: user.email || "",
268989
+ authorImage: user.image || "",
268990
268990
  date
268991
268991
  });
268992
268992
  const deletionMap = new Mapping;
@@ -269403,9 +269403,9 @@ var Node$13 = class Node$14 {
269403
269403
  const newFormatMark = state.schema.marks[TrackFormatMarkName].create({
269404
269404
  id: wid,
269405
269405
  sourceId: formatChangeMark?.attrs?.sourceId || "",
269406
- author: user.name,
269407
- authorEmail: user.email,
269408
- authorImage: user.image,
269406
+ author: user.name || "",
269407
+ authorEmail: user.email || "",
269408
+ authorImage: user.image || "",
269409
269409
  date,
269410
269410
  before: before2,
269411
269411
  after: after2
@@ -269472,9 +269472,9 @@ var Node$13 = class Node$14 {
269472
269472
  const newFormatMark = state.schema.marks[TrackFormatMarkName].create({
269473
269473
  id: formatChangeMark ? formatChangeMark.attrs.id : sharedWid ?? (sharedWid = v4_default()),
269474
269474
  sourceId: formatChangeMark?.attrs?.sourceId || "",
269475
- author: user.name,
269476
- authorEmail: user.email,
269477
- authorImage: user.image,
269475
+ author: user.name || "",
269476
+ authorEmail: user.email || "",
269477
+ authorImage: user.image || "",
269478
269478
  date,
269479
269479
  before: before2,
269480
269480
  after: after2
@@ -287353,7 +287353,7 @@ var Node$13 = class Node$14 {
287353
287353
  return;
287354
287354
  console.log(...args$1);
287355
287355
  }, 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;
287356
- var init_src_BwkoX8vg_es = __esm(() => {
287356
+ var init_src_CDzC82e6_es = __esm(() => {
287357
287357
  init_rolldown_runtime_Bg48TavK_es();
287358
287358
  init_SuperConverter_DKPcCGTm_es();
287359
287359
  init_jszip_C49i9kUs_es();
@@ -312605,7 +312605,7 @@ function print() { __p += __j.call(arguments, '') }
312605
312605
  this.setOptions({ annotations: true });
312606
312606
  const [docx, media2, mediaFiles, fonts, decryptedData] = await Editor2.loadXmlData(newFile, false, options);
312607
312607
  this.setOptions({
312608
- fileSource: decryptedData ?? newFile,
312608
+ fileSource: decryptedData ?? (newFile instanceof ArrayBuffer ? new Blob([newFile]) : newFile),
312609
312609
  content: docx,
312610
312610
  media: media2,
312611
312611
  mediaFiles,
@@ -321927,7 +321927,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
321927
321927
 
321928
321928
  // ../../packages/superdoc/dist/super-editor.es.js
321929
321929
  var init_super_editor_es = __esm(() => {
321930
- init_src_BwkoX8vg_es();
321930
+ init_src_CDzC82e6_es();
321931
321931
  init_SuperConverter_DKPcCGTm_es();
321932
321932
  init_jszip_C49i9kUs_es();
321933
321933
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.5.0-next.71",
3
+ "version": "0.5.0-next.72",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -25,20 +25,20 @@
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
- "@superdoc/super-editor": "0.0.1",
28
+ "@superdoc/pm-adapter": "0.0.0",
29
29
  "superdoc": "1.25.0",
30
- "@superdoc/pm-adapter": "0.0.0"
30
+ "@superdoc/super-editor": "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.5.0-next.71",
38
- "@superdoc-dev/cli-darwin-x64": "0.5.0-next.71",
39
- "@superdoc-dev/cli-linux-x64": "0.5.0-next.71",
40
- "@superdoc-dev/cli-windows-x64": "0.5.0-next.71",
41
- "@superdoc-dev/cli-linux-arm64": "0.5.0-next.71"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.72",
38
+ "@superdoc-dev/cli-darwin-x64": "0.5.0-next.72",
39
+ "@superdoc-dev/cli-linux-x64": "0.5.0-next.72",
40
+ "@superdoc-dev/cli-windows-x64": "0.5.0-next.72",
41
+ "@superdoc-dev/cli-linux-arm64": "0.5.0-next.72"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",