superdoc 2.20.1-next.8 → 2.20.1-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/content-controls/content-controls.types.d.ts +2 -0
- package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
- 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.20.1-next.
|
|
22
|
+
superdocVersion: "2.20.1-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.20.1-next.
|
|
21
|
+
superdocVersion: "2.20.1-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
|
|
@@ -262,7 +262,9 @@ export interface ContentControlsPatchInput {
|
|
|
262
262
|
tag?: string | null;
|
|
263
263
|
appearance?: ContentControlAppearance | null;
|
|
264
264
|
color?: string | null;
|
|
265
|
+
/** V2 rejects the entire patch with CAPABILITY_UNAVAILABLE when this field is defined, including null. */
|
|
265
266
|
placeholder?: string | null;
|
|
267
|
+
/** V2 rejects the entire patch with CAPABILITY_UNAVAILABLE when this field is defined, including false. */
|
|
266
268
|
showingPlaceholder?: boolean;
|
|
267
269
|
temporary?: boolean;
|
|
268
270
|
tabIndex?: number | null;
|
|
@@ -2310,8 +2310,8 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
2310
2310
|
};
|
|
2311
2311
|
readonly 'contentControls.patch': {
|
|
2312
2312
|
readonly memberPath: "contentControls.patch";
|
|
2313
|
-
readonly description: "Patch metadata properties on a content control (tag, alias, appearance, color, etc.).";
|
|
2314
|
-
readonly expectedResult: "Returns a ContentControlMutationResult; reports NO_OP if no fields changed.";
|
|
2313
|
+
readonly description: "Patch metadata properties on a content control (tag, alias, appearance, color, etc.). V2 does not support placeholder or showingPlaceholder; defining either field rejects the entire patch without changing properties or content.";
|
|
2314
|
+
readonly expectedResult: "Returns a ContentControlMutationResult; reports NO_OP if no fields changed, or CAPABILITY_UNAVAILABLE for unsupported V2 placeholder fields.";
|
|
2315
2315
|
readonly requiresDocumentContext: true;
|
|
2316
2316
|
readonly metadata: CommandStaticMetadata;
|
|
2317
2317
|
readonly referenceDocPath: "content-controls/patch.mdx";
|
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.20.1-next.
|
|
319
|
+
return "2.20.1-next.9";
|
|
320
320
|
} catch {
|
|
321
321
|
return "unknown";
|
|
322
322
|
}
|
|
@@ -46354,7 +46354,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46354
46354
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46355
46355
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46356
46356
|
this.colorIndex = 0;
|
|
46357
|
-
this.version = "2.20.1-next.
|
|
46357
|
+
this.version = "2.20.1-next.9";
|
|
46358
46358
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46359
46359
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46360
46360
|
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.20.1-next.
|
|
317
|
+
return "2.20.1-next.9";
|
|
318
318
|
} catch {
|
|
319
319
|
return "unknown";
|
|
320
320
|
}
|
|
@@ -46283,7 +46283,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46283
46283
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46284
46284
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46285
46285
|
this.colorIndex = 0;
|
|
46286
|
-
this.version = "2.20.1-next.
|
|
46286
|
+
this.version = "2.20.1-next.9";
|
|
46287
46287
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46288
46288
|
this.superdocId = config.superdocId || v4();
|
|
46289
46289
|
this.colors = this.config.colors ?? [];
|