superdoc 2.28.0-next.14 → 2.28.0-next.15

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.28.0-next.14",
22
+ superdocVersion: "2.28.0-next.15",
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.28.0-next.14",
21
+ superdocVersion: "2.28.0-next.15",
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
@@ -138,7 +138,11 @@ export interface SDPasteBlockSdt {
138
138
  lockMode?: 'unlocked' | 'sdtLocked' | 'contentLocked' | 'sdtContentLocked';
139
139
  multiline?: boolean;
140
140
  }
141
- export type SDPasteInline = SDPasteLeafInline | SDPasteSdtInline | {
141
+ export type SDPasteInline = {
142
+ kind: 'math';
143
+ omml: string;
144
+ sourcePath?: readonly (string | number)[];
145
+ } | SDPasteLeafInline | SDPasteSdtInline | {
142
146
  kind: 'hyperlink';
143
147
  target: {
144
148
  kind: 'external';
@@ -1525,6 +1525,7 @@ export type SectionPageBorderSide = {
1525
1525
  };
1526
1526
  export type SectionPageBorders = {
1527
1527
  offsetFrom: 'page';
1528
+ display?: 'allPages' | 'firstPage';
1528
1529
  top?: SectionPageBorderSide;
1529
1530
  right?: SectionPageBorderSide;
1530
1531
  bottom?: SectionPageBorderSide;
@@ -2971,7 +2972,7 @@ export declare const extractHeaderFooterSpace: (margins?: PageMargins | null) =>
2971
2972
  };
2972
2973
  export type { ResolvedLayout, ResolvedPage, ResolvedPaintItem, ResolvedGroupItem, ResolvedFragmentItem, ResolvedParagraphContent, ResolvedTextLineItem, ResolvedDropCapItem, ResolvedListMarkerItem, ResolvedTableItem, ResolvedImageItem, ResolvedDrawingItem, ResolvedHeaderFooterPage, ResolvedHeaderFooterLayout, } from './resolved-layout.js';
2973
2974
  export { isResolvedTableItem, isResolvedImageItem, isResolvedDrawingItem } from './resolved-layout.js';
2974
- export { PAGE_BREAK_DELETION_ANCHOR_ATTR, DELETED_PAGE_BREAK_LABEL, isPageBreakDeletionAnchorRun, expandRunsForInlineNewlines, isBodyNoteReferenceRun, isZeroWidthMarkerRun, hasZeroWidthMarkerSpan, isNoteLabelRun, isNumberedNoteMarkerRun, isEmptyInlineSdtPlaceholderRun, isEmptySdtPlaceholderRun, NOTE_LABEL_MARKER_ATTR, NOTE_REFERENCE_MARKER_ATTR, sliceRunsForLine, usesPositionedTextGeometry, } from './run-helpers.js';
2975
+ export { PAGE_BREAK_DELETION_ANCHOR_ATTR, DELETED_PAGE_BREAK_LABEL, isPageBreakDeletionAnchorRun, expandRunsForInlineNewlines, isBodyNoteReferenceRun, isZeroWidthMarkerRun, isGeneratedFieldResultRun, hasZeroWidthMarkerSpan, isNoteLabelRun, isNumberedNoteMarkerRun, isEmptyInlineSdtPlaceholderRun, isEmptySdtPlaceholderRun, NOTE_LABEL_MARKER_ATTR, NOTE_REFERENCE_MARKER_ATTR, sliceRunsForLine, usesPositionedTextGeometry, } from './run-helpers.js';
2975
2976
  export { INLINE_OBJECT_REPLACEMENT_CHARACTER, flattenParagraphVisibleText, mapVisibleRangeToRunSlices, type ParagraphVisibleRunSlice, } from './paragraph-visible-text.js';
2976
2977
  export { inlineBoxStyleSignature, isFiniteNonNegativeInteger, normalizeInlineBoxLogicalSides, type InlineBoxLogicalSides, type ResolvedInlineBoxLogicalSides, } from './inline-box.js';
2977
2978
  export { INCREMENTAL_DEPENDENCY_CERTIFICATE_CLASSES, PAGE_CHECKPOINT_DEPENDENCY_CLASSES, areValidPageCheckpointDependencyClasses, isValidIncrementalDependencyOwnerVersion, isValidNonFlowingPageRelativeAnchorDependencyProof, isValidPageCheckpointDependencyCertificate, type IncrementalDependencyCertificateClass, type IncrementalDependencyOwnerVersion, type NonFlowingPageRelativeAnchorDependencyProof, type PageCheckpointDependencyCertificate, type PageCheckpointDependencyClass, } from './incremental-dependency.js';
@@ -12,6 +12,7 @@ export declare const NOTE_LABEL_MARKER_ATTR = "data-v2-note-label";
12
12
  export declare function isBodyNoteReferenceRun(run: Run): boolean;
13
13
  export declare function isZeroWidthMarkerRun(run: Run): boolean;
14
14
  export declare function hasZeroWidthMarkerSpan(run: Run): boolean;
15
+ export declare function isGeneratedFieldResultRun(run: Run): boolean;
15
16
  /** Synthetic note-band or appended-endnote label keyed to its source note. */
16
17
  export declare function isNoteLabelRun(run: Run): boolean;
17
18
  /** Numbered marker text whose measurement identity can use digit capabilities. */
@@ -0,0 +1,2 @@
1
+ import { WordLayoutMarker } from '../../contracts/src/index.js';
2
+ export declare const markerRunMeasureKey: (run: WordLayoutMarker["run"] | undefined) => string;
@@ -99,6 +99,7 @@ export type PaginatorOptions = {
99
99
  }): Page;
100
100
  onNewPage?: (state: PageState | undefined, options?: {
101
101
  applyPendingSection: boolean;
102
+ replaceCurrentPage: boolean;
102
103
  }) => void;
103
104
  shouldStopBeforeNewPage?: (input: {
104
105
  completedPageIndex: number;
@@ -46,7 +46,7 @@ export interface TableInfo {
46
46
  * Word applies these flags when a table has no explicit w:tblLook element.
47
47
  */
48
48
  export declare const DEFAULT_TBL_LOOK: TableLookProperties;
49
- export declare function resolveRunProperties(params: OoxmlResolverParams, inlineRpr: RunProperties | null | undefined, resolvedPpr: ParagraphProperties | null | undefined, tableInfo?: TableInfo | null | undefined, isListNumber?: boolean, numberingDefinedInline?: boolean): RunProperties;
49
+ export declare function resolveRunProperties(params: OoxmlResolverParams, inlineRpr: RunProperties | null | undefined, resolvedPpr: ParagraphProperties | null | undefined, tableInfo?: TableInfo | null | undefined, isListNumber?: boolean): RunProperties;
50
50
  export declare function resolveParagraphProperties(params: OoxmlResolverParams, inlineProps: ParagraphProperties | null | undefined, tableInfo: TableInfo | null | undefined): ParagraphProperties;
51
51
  export declare function resolveStyleChain<T extends PropertyObject>(propertyType: 'paragraphProperties' | 'runProperties' | 'tableProperties', params: OoxmlResolverParams, styleId: string | undefined, followBasedOnChain?: boolean): T;
52
52
  export declare function getNumberingProperties<T extends ParagraphProperties | RunProperties>(propertyType: 'paragraphProperties' | 'runProperties', params: OoxmlResolverParams, ilvl: number, numId: number, tries?: number): T;
package/dist/superdoc.cjs CHANGED
@@ -260,7 +260,7 @@ var v_click_outside_default = {
260
260
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
261
261
  function getSuperdocVersion() {
262
262
  try {
263
- return "2.28.0-next.14";
263
+ return "2.28.0-next.15";
264
264
  } catch {
265
265
  return "unknown";
266
266
  }
@@ -45358,7 +45358,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
45358
45358
  }
45359
45359
  this.userColorMap = /* @__PURE__ */ new Map();
45360
45360
  this.colorIndex = 0;
45361
- this.version = "2.28.0-next.14";
45361
+ this.version = "2.28.0-next.15";
45362
45362
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45363
45363
  this.superdocId = config.superdocId || require_uuid.v4();
45364
45364
  this.colors = this.config.colors ?? [];
@@ -258,7 +258,7 @@ var v_click_outside_default = {
258
258
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
259
259
  function getSuperdocVersion() {
260
260
  try {
261
- return "2.28.0-next.14";
261
+ return "2.28.0-next.15";
262
262
  } catch {
263
263
  return "unknown";
264
264
  }
@@ -45286,7 +45286,7 @@ var SuperDoc = class extends import_eventemitter3.default {
45286
45286
  }
45287
45287
  this.userColorMap = /* @__PURE__ */ new Map();
45288
45288
  this.colorIndex = 0;
45289
- this.version = "2.28.0-next.14";
45289
+ this.version = "2.28.0-next.15";
45290
45290
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45291
45291
  this.superdocId = config.superdocId || v4();
45292
45292
  this.colors = this.config.colors ?? [];