superdoc 2.22.0-next.11 → 2.22.0-next.13

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.22.0-next.11",
22
+ superdocVersion: "2.22.0-next.13",
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.22.0-next.11",
21
+ superdocVersion: "2.22.0-next.13",
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
@@ -2258,6 +2258,8 @@ export type Line = {
2258
2258
  justificationPlan?: LineJustificationPlan;
2259
2259
  /** True when this line used author-defined OOXML tab stops, not synthesized default stops. */
2260
2260
  hasExplicitTabStops?: boolean;
2261
+ /** A single first-line start tab ends at the hanging indent, leaving body text justifiable. */
2262
+ justifyAfterHangingTab?: boolean;
2261
2263
  segments?: LineSegment[];
2262
2264
  leaders?: LeaderDecoration[];
2263
2265
  bars?: BarDecoration[];
@@ -20,6 +20,8 @@ export type ShouldApplyJustifyParams = {
20
20
  hasExplicitPositioning?: boolean;
21
21
  /** Whether the line used author-defined OOXML tab stops. */
22
22
  hasExplicitTabStops?: boolean;
23
+ /** Whether a single start tab only separates a hanging prefix from the body. */
24
+ justifyAfterHangingTab?: boolean;
23
25
  /** Whether this is the last line of the paragraph. */
24
26
  isLastLineOfParagraph: boolean;
25
27
  /** Whether the paragraph ends with a soft break (Shift+Enter / LineBreak run). */
@@ -33,13 +35,14 @@ export type ShouldApplyJustifyParams = {
33
35
  * Justify is applied when ALL of the following are true:
34
36
  * - Alignment is 'justify'
35
37
  * - No explicit skip override
36
- * - Line doesn't have author-defined tab stops
38
+ * - Line has no column-aligned tab stops
37
39
  * - Line is NOT the last line, OR paragraph ends with a soft break
38
40
  *
39
41
  * This matches Microsoft Word's behavior:
40
42
  * - All lines are justified except the true last line
41
43
  * - Soft breaks (Shift+Enter) do NOT count as "last line"
42
- * - Explicit tab-aligned text is never justified
44
+ * - Explicit column-aligned text is never justified
45
+ * - A single start tab at the hanging indent leaves body text justifiable
43
46
  * - Default/manual tab-aligned text can still be justified
44
47
  *
45
48
  * @param params - Parameters for justify decision
package/dist/superdoc.cjs CHANGED
@@ -316,7 +316,7 @@ var shuffleArray = (array) => {
316
316
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
317
317
  function getSuperdocVersion() {
318
318
  try {
319
- return "2.22.0-next.11";
319
+ return "2.22.0-next.13";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -46382,7 +46382,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
46382
46382
  this.config.colors = shuffleArray(this.config.colors);
46383
46383
  this.userColorMap = /* @__PURE__ */ new Map();
46384
46384
  this.colorIndex = 0;
46385
- this.version = "2.22.0-next.11";
46385
+ this.version = "2.22.0-next.13";
46386
46386
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46387
46387
  this.superdocId = config.superdocId || require_uuid.v4();
46388
46388
  this.colors = this.config.colors ?? [];
@@ -314,7 +314,7 @@ var shuffleArray = (array) => {
314
314
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
315
315
  function getSuperdocVersion() {
316
316
  try {
317
- return "2.22.0-next.11";
317
+ return "2.22.0-next.13";
318
318
  } catch {
319
319
  return "unknown";
320
320
  }
@@ -46311,7 +46311,7 @@ var SuperDoc = class extends import_eventemitter3.default {
46311
46311
  this.config.colors = shuffleArray(this.config.colors);
46312
46312
  this.userColorMap = /* @__PURE__ */ new Map();
46313
46313
  this.colorIndex = 0;
46314
- this.version = "2.22.0-next.11";
46314
+ this.version = "2.22.0-next.13";
46315
46315
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46316
46316
  this.superdocId = config.superdocId || v4();
46317
46317
  this.colors = this.config.colors ?? [];