superdoc 2.22.0-next.5 → 2.22.0-next.6
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.
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/layout-engine/contracts/src/index.d.ts +3 -1
- package/dist/layout-engine/painters/dom/src/table/border-utils.d.ts +8 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist-cdn/superdoc.min.js +3 -3
- package/package.json +2 -2
|
@@ -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.
|
|
22
|
+
superdocVersion: "2.22.0-next.6",
|
|
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.
|
|
21
|
+
superdocVersion: "2.22.0-next.6",
|
|
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
|
|
@@ -788,7 +788,7 @@ export type ParagraphBlock = {
|
|
|
788
788
|
inlineBoxes?: InlineBoxSpan[];
|
|
789
789
|
};
|
|
790
790
|
/** Border style (subset of OOXML ST_Border). */
|
|
791
|
-
export type BorderStyle = 'none' | 'single' | 'double' | 'dashed' | 'dotted' | 'thick' | 'triple' | 'dotDash' | 'dotDotDash' | 'wave' | 'doubleWave';
|
|
791
|
+
export type BorderStyle = 'none' | 'single' | 'double' | 'dashed' | 'dashSmallGap' | 'dotted' | 'thick' | 'triple' | 'dotDash' | 'dotDotDash' | 'wave' | 'doubleWave' | 'dashDotStroked';
|
|
792
792
|
/** Border specification for table and cell borders. */
|
|
793
793
|
export type BorderSpec = {
|
|
794
794
|
style?: BorderStyle;
|
|
@@ -826,6 +826,8 @@ export type CellBorders = {
|
|
|
826
826
|
right?: BorderSpec;
|
|
827
827
|
bottom?: BorderSpec;
|
|
828
828
|
left?: BorderSpec;
|
|
829
|
+
tl2br?: BorderSpec;
|
|
830
|
+
tr2bl?: BorderSpec;
|
|
829
831
|
};
|
|
830
832
|
/** True when a normalized border contributes a visible edge. */
|
|
831
833
|
export declare const isPresentBorder: (border?: BorderSpec) => border is BorderSpec;
|
|
@@ -53,7 +53,14 @@ export declare const applyBorder: (element: HTMLElement, side: BorderSide, borde
|
|
|
53
53
|
* });
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
export declare const applyCellBorders: (element: HTMLElement, borders?: CellBorders) => void;
|
|
56
|
+
export declare const applyCellBorders: (element: HTMLElement, borders?: CellBorders, useSvgOverlay?: boolean) => void;
|
|
57
|
+
/** Paints cell-only border patterns that CSS borders cannot represent. */
|
|
58
|
+
export declare const createCellBorderOverlay: (doc: Document, borders: CellBorders | undefined, geometry: {
|
|
59
|
+
left: string;
|
|
60
|
+
top: string;
|
|
61
|
+
width: number;
|
|
62
|
+
height: number;
|
|
63
|
+
}) => SVGSVGElement | null;
|
|
57
64
|
/**
|
|
58
65
|
* Converts a TableBorderValue to a BorderSpec for rendering.
|
|
59
66
|
*
|
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.
|
|
319
|
+
return "2.22.0-next.6";
|
|
320
320
|
} catch {
|
|
321
321
|
return "unknown";
|
|
322
322
|
}
|
|
@@ -46370,7 +46370,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46370
46370
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46371
46371
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46372
46372
|
this.colorIndex = 0;
|
|
46373
|
-
this.version = "2.22.0-next.
|
|
46373
|
+
this.version = "2.22.0-next.6";
|
|
46374
46374
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46375
46375
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46376
46376
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -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.
|
|
317
|
+
return "2.22.0-next.6";
|
|
318
318
|
} catch {
|
|
319
319
|
return "unknown";
|
|
320
320
|
}
|
|
@@ -46299,7 +46299,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46299
46299
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46300
46300
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46301
46301
|
this.colorIndex = 0;
|
|
46302
|
-
this.version = "2.22.0-next.
|
|
46302
|
+
this.version = "2.22.0-next.6";
|
|
46303
46303
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46304
46304
|
this.superdocId = config.superdocId || v4();
|
|
46305
46305
|
this.colors = this.config.colors ?? [];
|