@superdoc-dev/cli 0.3.1-next.1 → 0.4.0-next.1

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 +17 -4
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -154303,7 +154303,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
154303
154303
  init_remark_gfm_z_sDF4ss_es();
154304
154304
  });
154305
154305
 
154306
- // ../../packages/superdoc/dist/chunks/src-H6TB6E1W.es.js
154306
+ // ../../packages/superdoc/dist/chunks/src-1kVu_IvJ.es.js
154307
154307
  function deleteProps(obj, propOrProps) {
154308
154308
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
154309
154309
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -156061,6 +156061,8 @@ function createStructuredContentLockPlugin() {
156061
156061
  filterTransaction(tr, state) {
156062
156062
  if (!tr.docChanged)
156063
156063
  return true;
156064
+ if (tr.getMeta?.(ySyncPluginKey))
156065
+ return true;
156064
156066
  const sdtNodes = STRUCTURED_CONTENT_LOCK_KEY.getState(state);
156065
156067
  if (sdtNodes.length === 0)
156066
156068
  return true;
@@ -160067,13 +160069,20 @@ function createChartImmutabilityPlugin() {
160067
160069
  init(_$1, state) {
160068
160070
  return countChartNodes(state.doc);
160069
160071
  },
160070
- apply(_tr, oldCount) {
160072
+ apply(tr, oldCount, _oldState, newState) {
160073
+ if (tr.docChanged && tr.getMeta?.(ySyncPluginKey)) {
160074
+ if (oldCount === 0 && !transactionInsertsChart(tr))
160075
+ return 0;
160076
+ return countChartNodes(newState.doc);
160077
+ }
160071
160078
  return oldCount;
160072
160079
  }
160073
160080
  },
160074
160081
  filterTransaction(tr, state) {
160075
160082
  if (!tr.docChanged)
160076
160083
  return true;
160084
+ if (tr.getMeta?.(ySyncPluginKey))
160085
+ return true;
160077
160086
  if ((CHART_IMMUTABILITY_KEY.getState(state) ?? 0) === 0)
160078
160087
  return !transactionInsertsChart(tr);
160079
160088
  return !isChartMutation(tr, state.doc);
@@ -233856,7 +233865,7 @@ var Node$13 = class Node$14 {
233856
233865
  return;
233857
233866
  console.log(...args$1);
233858
233867
  }, 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;
233859
- var init_src_H6TB6E1W_es = __esm(() => {
233868
+ var init_src_1kVu_IvJ_es = __esm(() => {
233860
233869
  init_rolldown_runtime_B2q5OVn9_es();
233861
233870
  init_SuperConverter_V_8WDjnK_es();
233862
233871
  init_jszip_ChlR43oI_es();
@@ -251379,6 +251388,8 @@ function print() { __p += __j.call(arguments, '') }
251379
251388
  appendTransaction(transactions, oldState, newState) {
251380
251389
  if (!transactions.some((tr$1) => tr$1.docChanged))
251381
251390
  return null;
251391
+ if (transactions.some((tr$1) => tr$1.getMeta?.(ySyncPluginKey)))
251392
+ return null;
251382
251393
  const permTypes = getPermissionTypeInfo(newState.schema);
251383
251394
  if (!permTypes.startTypes.length || !permTypes.endTypes.length)
251384
251395
  return null;
@@ -251434,6 +251445,8 @@ function print() { __p += __j.call(arguments, '') }
251434
251445
  filterTransaction(tr, state) {
251435
251446
  if (!tr.docChanged)
251436
251447
  return true;
251448
+ if (tr.getMeta?.(ySyncPluginKey))
251449
+ return true;
251437
251450
  if (!editor || editor.options.documentMode !== "viewing")
251438
251451
  return true;
251439
251452
  const pluginState = PERMISSION_PLUGIN_KEY.getState(state);
@@ -267174,7 +267187,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
267174
267187
 
267175
267188
  // ../../packages/superdoc/dist/super-editor.es.js
267176
267189
  var init_super_editor_es = __esm(() => {
267177
- init_src_H6TB6E1W_es();
267190
+ init_src_1kVu_IvJ_es();
267178
267191
  init_SuperConverter_V_8WDjnK_es();
267179
267192
  init_jszip_ChlR43oI_es();
267180
267193
  init_xml_js_DLE8mr0n_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.3.1-next.1",
3
+ "version": "0.4.0-next.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -21,20 +21,20 @@
21
21
  "@types/node": "22.19.2",
22
22
  "typescript": "^5.9.2",
23
23
  "@superdoc/document-api": "0.0.1",
24
+ "superdoc": "1.21.0",
24
25
  "@superdoc/super-editor": "0.0.1",
25
- "@superdoc/pm-adapter": "0.0.0",
26
- "superdoc": "1.21.0"
26
+ "@superdoc/pm-adapter": "0.0.0"
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.1-next.1",
34
- "@superdoc-dev/cli-darwin-x64": "0.3.1-next.1",
35
- "@superdoc-dev/cli-linux-x64": "0.3.1-next.1",
36
- "@superdoc-dev/cli-linux-arm64": "0.3.1-next.1",
37
- "@superdoc-dev/cli-windows-x64": "0.3.1-next.1"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.4.0-next.1",
34
+ "@superdoc-dev/cli-darwin-x64": "0.4.0-next.1",
35
+ "@superdoc-dev/cli-linux-x64": "0.4.0-next.1",
36
+ "@superdoc-dev/cli-linux-arm64": "0.4.0-next.1",
37
+ "@superdoc-dev/cli-windows-x64": "0.4.0-next.1"
38
38
  },
39
39
  "scripts": {
40
40
  "predev": "node scripts/ensure-superdoc-build.js",