superdoc 2.28.0-next.8 → 2.28.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.
|
@@ -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.28.0-next.
|
|
22
|
+
superdocVersion: "2.28.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.28.0-next.
|
|
21
|
+
superdocVersion: "2.28.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
|
|
@@ -819,6 +819,18 @@ export interface ProofingIssue {
|
|
|
819
819
|
export interface ProofingCheckResult {
|
|
820
820
|
issues: ProofingIssue[];
|
|
821
821
|
}
|
|
822
|
+
export interface ProofingSuggestRequest {
|
|
823
|
+
documentId?: string | null;
|
|
824
|
+
defaultLanguage?: string | null;
|
|
825
|
+
maxSuggestions?: number;
|
|
826
|
+
segment: ProofingSegment;
|
|
827
|
+
issue: Omit<ProofingIssue, 'replacements'>;
|
|
828
|
+
text: string;
|
|
829
|
+
signal: AbortSignal;
|
|
830
|
+
}
|
|
831
|
+
export interface ProofingSuggestResult {
|
|
832
|
+
replacements: string[];
|
|
833
|
+
}
|
|
822
834
|
/**
|
|
823
835
|
* Provider-agnostic proofing engine. SuperDoc owns segment extraction,
|
|
824
836
|
* scheduling, and rendering; providers only inspect text and return ranges.
|
|
@@ -827,6 +839,7 @@ export interface ProofingProvider {
|
|
|
827
839
|
id: string;
|
|
828
840
|
getCapabilities?: () => Promise<ProofingCapabilities> | ProofingCapabilities;
|
|
829
841
|
check: (request: ProofingCheckRequest) => Promise<ProofingCheckResult>;
|
|
842
|
+
suggest?: (request: ProofingSuggestRequest) => Promise<ProofingSuggestResult>;
|
|
830
843
|
dispose?: () => Promise<void> | void;
|
|
831
844
|
}
|
|
832
845
|
export interface SelectionInfo {
|
package/dist/superdoc.cjs
CHANGED
|
@@ -260,7 +260,7 @@ var v_click_outside_default = {
|
|
|
260
260
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
261
261
|
function getSuperdocVersion() {
|
|
262
262
|
try {
|
|
263
|
-
return "2.28.0-next.
|
|
263
|
+
return "2.28.0-next.9";
|
|
264
264
|
} catch {
|
|
265
265
|
return "unknown";
|
|
266
266
|
}
|
|
@@ -46466,7 +46466,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46466
46466
|
}
|
|
46467
46467
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46468
46468
|
this.colorIndex = 0;
|
|
46469
|
-
this.version = "2.28.0-next.
|
|
46469
|
+
this.version = "2.28.0-next.9";
|
|
46470
46470
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46471
46471
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46472
46472
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -258,7 +258,7 @@ var v_click_outside_default = {
|
|
|
258
258
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
259
259
|
function getSuperdocVersion() {
|
|
260
260
|
try {
|
|
261
|
-
return "2.28.0-next.
|
|
261
|
+
return "2.28.0-next.9";
|
|
262
262
|
} catch {
|
|
263
263
|
return "unknown";
|
|
264
264
|
}
|
|
@@ -46394,7 +46394,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46394
46394
|
}
|
|
46395
46395
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46396
46396
|
this.colorIndex = 0;
|
|
46397
|
-
this.version = "2.28.0-next.
|
|
46397
|
+
this.version = "2.28.0-next.9";
|
|
46398
46398
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46399
46399
|
this.superdocId = config.superdocId || v4();
|
|
46400
46400
|
this.colors = this.config.colors ?? [];
|