superdoc 2.4.0-next.25 → 2.4.0-next.26

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.4.0-next.25",
22
+ superdocVersion: "2.4.0-next.26",
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.4.0-next.25",
21
+ superdocVersion: "2.4.0-next.26",
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
@@ -1691,6 +1691,8 @@ export type ParagraphAttrs = {
1691
1691
  tabIntervalTwips?: number;
1692
1692
  keepNext?: boolean;
1693
1693
  keepLines?: boolean;
1694
+ /** Prevent a single first or last paragraph line from appearing alone on a page. Defaults to true. */
1695
+ widowControl?: boolean;
1694
1696
  pageBreakBefore?: boolean;
1695
1697
  trackedChangesMode?: TrackedChangesMode;
1696
1698
  trackedChangesEnabled?: boolean;
@@ -11,11 +11,17 @@ export interface WordThemeFontFamily {
11
11
  readonly ea?: string;
12
12
  readonly cs?: string;
13
13
  }
14
+ /** Authored DrawingML fill definitions, indexed by `a:fillRef/@idx`. */
15
+ export interface WordThemeFormatScheme {
16
+ readonly fillStyles: readonly string[];
17
+ readonly backgroundFillStyles: readonly string[];
18
+ }
14
19
  export declare const DEFAULT_WORD_THEME_PALETTE: WordThemeColorPalette;
15
20
  export declare const DEFAULT_WORD_THEME_FONT_SCHEME: WordThemeFontScheme;
16
21
  export interface ThemeParseResult {
17
22
  palette?: WordThemeColorPalette;
18
23
  fontScheme?: WordThemeFontScheme;
24
+ formatScheme?: WordThemeFormatScheme;
19
25
  }
20
26
  /**
21
27
  * Parse the theme root (`a:theme`) into colors + font scheme. Returns an
package/dist/superdoc.cjs CHANGED
@@ -43268,7 +43268,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
43268
43268
  this.config.colors = shuffleArray(this.config.colors);
43269
43269
  this.userColorMap = /* @__PURE__ */ new Map();
43270
43270
  this.colorIndex = 0;
43271
- this.version = "2.4.0-next.25";
43271
+ this.version = "2.4.0-next.26";
43272
43272
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43273
43273
  this.superdocId = config.superdocId || require_uuid.v4();
43274
43274
  this.colors = this.config.colors ?? [];
@@ -43201,7 +43201,7 @@ var SuperDoc = class extends import_eventemitter3.default {
43201
43201
  this.config.colors = shuffleArray(this.config.colors);
43202
43202
  this.userColorMap = /* @__PURE__ */ new Map();
43203
43203
  this.colorIndex = 0;
43204
- this.version = "2.4.0-next.25";
43204
+ this.version = "2.4.0-next.26";
43205
43205
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43206
43206
  this.superdocId = config.superdocId || v4();
43207
43207
  this.colors = this.config.colors ?? [];