superdoc 2.23.0-next.7 → 2.23.0-next.9
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/document-api/src/types/clipboard.d.ts +25 -0
- package/dist/document-api/src/types/sd-contract.d.ts +1 -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.23.0-next.
|
|
22
|
+
superdocVersion: "2.23.0-next.9",
|
|
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.23.0-next.
|
|
21
|
+
superdocVersion: "2.23.0-next.9",
|
|
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
|
|
@@ -222,6 +222,31 @@ export interface SDPasteTableCell {
|
|
|
222
222
|
bottomPt?: number;
|
|
223
223
|
leftPt?: number;
|
|
224
224
|
};
|
|
225
|
+
/** Direct vertical cell alignment. */
|
|
226
|
+
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
227
|
+
/** Direct per-edge cell borders in OOXML-compatible form. */
|
|
228
|
+
borders?: {
|
|
229
|
+
top?: {
|
|
230
|
+
lineStyle: string;
|
|
231
|
+
lineWeightPt: number;
|
|
232
|
+
color: string;
|
|
233
|
+
};
|
|
234
|
+
right?: {
|
|
235
|
+
lineStyle: string;
|
|
236
|
+
lineWeightPt: number;
|
|
237
|
+
color: string;
|
|
238
|
+
};
|
|
239
|
+
bottom?: {
|
|
240
|
+
lineStyle: string;
|
|
241
|
+
lineWeightPt: number;
|
|
242
|
+
color: string;
|
|
243
|
+
};
|
|
244
|
+
left?: {
|
|
245
|
+
lineStyle: string;
|
|
246
|
+
lineWeightPt: number;
|
|
247
|
+
color: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
225
250
|
sourcePath?: readonly (string | number)[];
|
|
226
251
|
}
|
|
227
252
|
export interface SDPasteTableRow {
|
|
@@ -2,7 +2,7 @@ import { BlockNodeAddress } from './base.js';
|
|
|
2
2
|
import { SelectionTarget, TextAddress } from './address.js';
|
|
3
3
|
import { ReceiptEffects, ReceiptSuccess, TextMutationRange } from './receipt.js';
|
|
4
4
|
import { BodyStoryLocator } from './story.types.js';
|
|
5
|
-
export type SDErrorCode = 'INVALID_PAYLOAD' | 'INVALID_TARGET' | 'TARGET_NOT_FOUND' | 'ADDRESS_STALE' | 'PRECONDITION_FAILED' | 'REVISION_MISMATCH' | 'CHECK_MISMATCH' | 'INVALID_CONTEXT' | 'INVALID_NESTING' | 'INVALID_PLACEMENT' | 'DUPLICATE_ID' | 'CAPABILITY_UNSUPPORTED' | 'RAW_MODE_REQUIRED' | 'PRESERVE_ONLY_VIOLATION' | 'NO_OP' | 'UNSUPPORTED_ENVIRONMENT' | 'INTERNAL_ERROR';
|
|
5
|
+
export type SDErrorCode = 'INVALID_PAYLOAD' | 'INVALID_TARGET' | 'TARGET_NOT_FOUND' | 'ADDRESS_STALE' | 'PERMISSION_DENIED' | 'PRECONDITION_FAILED' | 'REVISION_MISMATCH' | 'CHECK_MISMATCH' | 'INVALID_CONTEXT' | 'INVALID_NESTING' | 'INVALID_PLACEMENT' | 'DUPLICATE_ID' | 'CAPABILITY_UNSUPPORTED' | 'RAW_MODE_REQUIRED' | 'PRESERVE_ONLY_VIOLATION' | 'NO_OP' | 'UNSUPPORTED_ENVIRONMENT' | 'INTERNAL_ERROR';
|
|
6
6
|
export declare const SD_HTML_MARKDOWN_OUTCOMES: readonly ["preserved", "preserved-with-warnings", "simplified", "rejected", "no-op", "invalid-target", "outdated"];
|
|
7
7
|
export type SDHtmlMarkdownOutcome = (typeof SD_HTML_MARKDOWN_OUTCOMES)[number];
|
|
8
8
|
export interface SDError {
|
package/dist/superdoc.cjs
CHANGED
|
@@ -304,7 +304,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
304
304
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
305
305
|
function getSuperdocVersion() {
|
|
306
306
|
try {
|
|
307
|
-
return "2.23.0-next.
|
|
307
|
+
return "2.23.0-next.9";
|
|
308
308
|
} catch {
|
|
309
309
|
return "unknown";
|
|
310
310
|
}
|
|
@@ -46433,7 +46433,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46433
46433
|
}
|
|
46434
46434
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46435
46435
|
this.colorIndex = 0;
|
|
46436
|
-
this.version = "2.23.0-next.
|
|
46436
|
+
this.version = "2.23.0-next.9";
|
|
46437
46437
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46438
46438
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46439
46439
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -302,7 +302,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
302
302
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
303
303
|
function getSuperdocVersion() {
|
|
304
304
|
try {
|
|
305
|
-
return "2.23.0-next.
|
|
305
|
+
return "2.23.0-next.9";
|
|
306
306
|
} catch {
|
|
307
307
|
return "unknown";
|
|
308
308
|
}
|
|
@@ -46362,7 +46362,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46362
46362
|
}
|
|
46363
46363
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46364
46364
|
this.colorIndex = 0;
|
|
46365
|
-
this.version = "2.23.0-next.
|
|
46365
|
+
this.version = "2.23.0-next.9";
|
|
46366
46366
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46367
46367
|
this.superdocId = config.superdocId || v4();
|
|
46368
46368
|
this.colors = this.config.colors ?? [];
|