superdoc 2.4.0-next.45 → 2.4.0-next.46

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.45",
22
+ superdocVersion: "2.4.0-next.46",
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.45",
21
+ superdocVersion: "2.4.0-next.46",
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
@@ -717,6 +717,12 @@ export type BorderSpec = {
717
717
  color?: string;
718
718
  space?: number;
719
719
  };
720
+ /**
721
+ * Returns the complete painted width of an OOXML table border in CSS pixels.
722
+ * `w:sz` is the width of the complete border, including compound styles such
723
+ * as double. `thick` retains the existing table-painter minimum used in V2.
724
+ */
725
+ export declare const getRenderedTableBorderWidthPx: (border: Pick<BorderSpec, "style" | "width"> | undefined, defaultWidth?: number) => number;
720
726
  /**
721
727
  * Three-state border value for table borders.
722
728
  * - `null`: inherit from table style
@@ -1,5 +1,20 @@
1
1
  import { BorderSpec, CellBorders, TableBorderValue, TableBorders, TableFragment } from '../../../../contracts/src/index.js';
2
2
  import { TableCellGridPosition } from './grid-geometry.js';
3
+ type BorderSide = 'Top' | 'Right' | 'Bottom' | 'Left';
4
+ type ThinDoubleBorderOverlayGeometry = {
5
+ left: string;
6
+ top: string;
7
+ width: string;
8
+ height: string;
9
+ };
10
+ /**
11
+ * Paints thin double borders in an unclipped sibling SVG. CSS gradients are
12
+ * clipped at cell seams and cannot form Word's continuous rectangular rings.
13
+ * The SVG preserves authored geometry once it is large enough, while the V2
14
+ * wrapper's inverse-zoom variable keeps sub-pixel components at Word's
15
+ * one-screen-pixel minimum across editor zoom levels.
16
+ */
17
+ export declare const createThinDoubleBorderOverlay: (doc: Document, source: HTMLElement, geometry: ThinDoubleBorderOverlayGeometry) => SVGSVGElement | null;
3
18
  /**
4
19
  * Applies a border specification to one side of an HTML element.
5
20
  *
@@ -18,7 +33,7 @@ import { TableCellGridPosition } from './grid-geometry.js';
18
33
  * // Sets cell.style.borderTop = '2px solid #FF0000'
19
34
  * ```
20
35
  */
21
- export declare const applyBorder: (element: HTMLElement, side: "Top" | "Right" | "Bottom" | "Left", border?: BorderSpec) => void;
36
+ export declare const applyBorder: (element: HTMLElement, side: BorderSide, border?: BorderSpec) => void;
22
37
  /**
23
38
  * Applies border specifications to all four sides of a table cell element.
24
39
  *
@@ -160,3 +175,4 @@ export declare const swapTableBordersLR: (borders: TableBorders | undefined) =>
160
175
  * Swap left↔right on cell borders for RTL tables (ECMA-376 Part 4 §14.3.1, §14.3.5).
161
176
  */
162
177
  export declare const swapCellBordersLR: (borders: CellBorders | undefined) => CellBorders | undefined;
178
+ export {};
package/dist/superdoc.cjs CHANGED
@@ -43261,7 +43261,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
43261
43261
  this.config.colors = shuffleArray(this.config.colors);
43262
43262
  this.userColorMap = /* @__PURE__ */ new Map();
43263
43263
  this.colorIndex = 0;
43264
- this.version = "2.4.0-next.45";
43264
+ this.version = "2.4.0-next.46";
43265
43265
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43266
43266
  this.superdocId = config.superdocId || require_uuid.v4();
43267
43267
  this.colors = this.config.colors ?? [];
@@ -43194,7 +43194,7 @@ var SuperDoc = class extends import_eventemitter3.default {
43194
43194
  this.config.colors = shuffleArray(this.config.colors);
43195
43195
  this.userColorMap = /* @__PURE__ */ new Map();
43196
43196
  this.colorIndex = 0;
43197
- this.version = "2.4.0-next.45";
43197
+ this.version = "2.4.0-next.46";
43198
43198
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43199
43199
  this.superdocId = config.superdocId || v4();
43200
43200
  this.colors = this.config.colors ?? [];