@docx-editor.dev/editor-api 2.36.0 → 2.37.0-canary.20261111032756.sha-9eef508

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.
@@ -2083,12 +2083,16 @@ declare abstract class CommentBase extends ModelObject implements PromisedItem {
2083
2083
  /** The document's own id for it (`w:id` in the comments part). */
2084
2084
  get id(): string;
2085
2085
  /**
2086
- * What it says, as plain text.
2086
+ * The comment or reply body as plain text. Load `content`, then sync before reading.
2087
2087
  *
2088
- * DocxEditor's own member rather than upstream's `content`: upstream declares that one writable,
2089
- * and rewriting a comment body is not an operation this engine offers, so publishing a read-only
2090
- * `content` under the same name would be a quieter divergence than a differently named read.
2088
+ * Assignment queues a replacement for the next `context.sync()`. The runtime author must
2089
+ * match the stored author. Content edits can share one sync with other content edits. It preserves
2090
+ * the thread, anchors, author, and date. Unsupported body structures refuse without changes.
2091
+ * Reload after a write to read the committed value. A stale read refuses with `StaleDocument`.
2091
2092
  */
2093
+ get content(): string;
2094
+ set content(value: string);
2095
+ /** Legacy read-only alias. Prefer the standard `content` property for new code. */
2092
2096
  get text(): string;
2093
2097
  /**
2094
2098
  * Delete this comment object.
@@ -2145,10 +2149,8 @@ declare class CommentReplyCollection extends HandleCollection<CommentReply> {
2145
2149
  * assigning `resolved` marks this comment and everything answering it, which is what Word's own
2146
2150
  * pane does.
2147
2151
  *
2148
- * `authorEmail` and a writable `content` are absent: `CT_Comment` records only an author and
2149
- * initials (Word's addresses live in `people.xml`, which this API does not read), and a body
2150
- * rewrite is not an operation the canonical write path offers. The comment's text is published
2151
- * as `text`.
2152
+ * `authorEmail` is absent because this API does not read `people.xml`.
2153
+ * Use `content` to read or replace the body. `text` remains a legacy read-only alias.
2152
2154
  *
2153
2155
  * @public
2154
2156
  */
@@ -2083,12 +2083,16 @@ declare abstract class CommentBase extends ModelObject implements PromisedItem {
2083
2083
  /** The document's own id for it (`w:id` in the comments part). */
2084
2084
  get id(): string;
2085
2085
  /**
2086
- * What it says, as plain text.
2086
+ * The comment or reply body as plain text. Load `content`, then sync before reading.
2087
2087
  *
2088
- * DocxEditor's own member rather than upstream's `content`: upstream declares that one writable,
2089
- * and rewriting a comment body is not an operation this engine offers, so publishing a read-only
2090
- * `content` under the same name would be a quieter divergence than a differently named read.
2088
+ * Assignment queues a replacement for the next `context.sync()`. The runtime author must
2089
+ * match the stored author. Content edits can share one sync with other content edits. It preserves
2090
+ * the thread, anchors, author, and date. Unsupported body structures refuse without changes.
2091
+ * Reload after a write to read the committed value. A stale read refuses with `StaleDocument`.
2091
2092
  */
2093
+ get content(): string;
2094
+ set content(value: string);
2095
+ /** Legacy read-only alias. Prefer the standard `content` property for new code. */
2092
2096
  get text(): string;
2093
2097
  /**
2094
2098
  * Delete this comment object.
@@ -2145,10 +2149,8 @@ declare class CommentReplyCollection extends HandleCollection<CommentReply> {
2145
2149
  * assigning `resolved` marks this comment and everything answering it, which is what Word's own
2146
2150
  * pane does.
2147
2151
  *
2148
- * `authorEmail` and a writable `content` are absent: `CT_Comment` records only an author and
2149
- * initials (Word's addresses live in `people.xml`, which this API does not read), and a body
2150
- * rewrite is not an operation the canonical write path offers. The comment's text is published
2151
- * as `text`.
2152
+ * `authorEmail` is absent because this API does not read `people.xml`.
2153
+ * Use `content` to read or replace the body. `text` remains a legacy read-only alias.
2152
2154
  *
2153
2155
  * @public
2154
2156
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docx-editor.dev/editor-api",
3
- "version": "2.36.0",
3
+ "version": "2.37.0-canary.20261111032756.sha-9eef508",
4
4
  "description": "Document automation for DOCX: a batching object model that drives a document from a server or from an editor already open in a page",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -92,6 +92,6 @@
92
92
  "access": "public"
93
93
  },
94
94
  "peerDependencies": {
95
- "@docx-editor.dev/core": "~2.36.0"
95
+ "@docx-editor.dev/core": "2.37.0-canary.20261111032756.sha-9eef508"
96
96
  }
97
97
  }