superdoc 2.23.0 โ†’ 2.23.1-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.
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
19
19
  var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
20
20
  var ENGINE_INFO = Object.freeze({
21
21
  ...PRIVATE_ENGINE_INFO,
22
- superdocVersion: "2.23.0",
22
+ superdocVersion: "2.23.1-next.1",
23
23
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
24
24
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
25
25
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
18
18
  var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
19
19
  var ENGINE_INFO = Object.freeze({
20
20
  ...PRIVATE_ENGINE_INFO,
21
- superdocVersion: "2.23.0",
21
+ superdocVersion: "2.23.1-next.1",
22
22
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
23
23
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
24
24
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -59,7 +59,7 @@ export interface Query {
59
59
  offset?: number;
60
60
  /**
61
61
  * Cardinality requirement for the result set.
62
- * Used for future enforcement: currently passed through without behavioral change.
62
+ * `any` permits no matches; `all` and `exactlyOne` fail when there are no matches.
63
63
  */
64
64
  require?: 'any' | 'first' | 'exactlyOne' | 'all';
65
65
  /**
@@ -2746,6 +2746,15 @@ export type TableFragment = {
2746
2746
  continuesOnNext?: boolean;
2747
2747
  repeatHeaderCount?: number;
2748
2748
  partialRow?: PartialRowInfo;
2749
+ /** Content slices for vertically merged cells crossing this fragment's body rows. */
2750
+ mergedCellContent?: Array<{
2751
+ rowIndex: number;
2752
+ cellIndex: number;
2753
+ fromLine: number;
2754
+ toLine: number;
2755
+ }>;
2756
+ /** Sparse row heights extended to fit remaining merged-cell content. */
2757
+ rowHeightOverrides?: Record<number, number>;
2749
2758
  metadata?: TableFragmentMetadata;
2750
2759
  pmStart?: number;
2751
2760
  pmEnd?: number;
@@ -18,6 +18,8 @@ export type TableLayoutCursor = {
18
18
  pendingPartialRow: PartialRowInfo | null;
19
19
  samePagePartialContinuation: boolean;
20
20
  retryWithoutHeaders: boolean;
21
+ mergedCellProgress?: Record<string, number>;
22
+ rowHeightOverrides?: Record<number, number>;
21
23
  };
22
24
  export type TableLayoutStep = {
23
25
  index: number;
@@ -1,5 +1,5 @@
1
1
  import { RenderWork } from '../render-work.js';
2
- import { DrawingBlock, DrawingMeasure, Line, ParagraphBlock, PartialRowInfo, SdtMetadata, TableBlock, TableBorders, TableMeasure } from '../../../../contracts/src/index.js';
2
+ import { DrawingBlock, DrawingMeasure, Line, ParagraphBlock, PartialRowInfo, SdtMetadata, TableBlock, TableBorders, TableMeasure, TableFragment } from '../../../../contracts/src/index.js';
3
3
  import { ResolvePhysicalFamily } from '../../../../../shared/font-system/src/index.js';
4
4
  import { FragmentRenderContext } from '../renderer.js';
5
5
  import { SdtAncestorOptions } from '../sdt/container.js';
@@ -53,6 +53,9 @@ type TableRowRenderDependencies = {
53
53
  columnWidths: number[];
54
54
  /** All row heights for calculating rowspan cell heights */
55
55
  allRowHeights: number[];
56
+ /** Exclusive end of the body rows rendered in this page fragment. */
57
+ fragmentEndRow?: number;
58
+ mergedCellContent?: TableFragment['mergedCellContent'];
56
59
  /** Table indent in pixels (applied to table fragment positioning) */
57
60
  tableIndent?: number;
58
61
  /** Whether the table is visually right-to-left (w:bidiVisual, ECMA-376 ยง17.4.1) */
package/dist/superdoc.cjs CHANGED
@@ -304,7 +304,7 @@ var awarenessStatesToArray = (context, states) => {
304
304
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
305
305
  function getSuperdocVersion() {
306
306
  try {
307
- return "2.23.0";
307
+ return "2.23.1-next.1";
308
308
  } catch {
309
309
  return "unknown";
310
310
  }
@@ -46469,7 +46469,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
46469
46469
  }
46470
46470
  this.userColorMap = /* @__PURE__ */ new Map();
46471
46471
  this.colorIndex = 0;
46472
- this.version = "2.23.0";
46472
+ this.version = "2.23.1-next.1";
46473
46473
  this.#log("๐Ÿฆ‹ [superdoc] Using SuperDoc version:", this.version);
46474
46474
  this.superdocId = config.superdocId || require_uuid.v4();
46475
46475
  this.colors = this.config.colors ?? [];
@@ -302,7 +302,7 @@ var awarenessStatesToArray = (context, states) => {
302
302
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
303
303
  function getSuperdocVersion() {
304
304
  try {
305
- return "2.23.0";
305
+ return "2.23.1-next.1";
306
306
  } catch {
307
307
  return "unknown";
308
308
  }
@@ -46398,7 +46398,7 @@ var SuperDoc = class extends import_eventemitter3.default {
46398
46398
  }
46399
46399
  this.userColorMap = /* @__PURE__ */ new Map();
46400
46400
  this.colorIndex = 0;
46401
- this.version = "2.23.0";
46401
+ this.version = "2.23.1-next.1";
46402
46402
  this.#log("๐Ÿฆ‹ [superdoc] Using SuperDoc version:", this.version);
46403
46403
  this.superdocId = config.superdocId || v4();
46404
46404
  this.colors = this.config.colors ?? [];