@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.
- package/OFFICE_JS_GUIDE.md +19 -0
- package/dist/browser.d.mts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{server-DO3Pw05F.d.mts → server-C1OvVPMX.d.mts} +10 -8
- package/dist/{server-DO3Pw05F.d.ts → server-C1OvVPMX.d.ts} +10 -8
- package/package.json +2 -2
|
@@ -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
|
-
*
|
|
2086
|
+
* The comment or reply body as plain text. Load `content`, then sync before reading.
|
|
2087
2087
|
*
|
|
2088
|
-
*
|
|
2089
|
-
*
|
|
2090
|
-
*
|
|
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`
|
|
2149
|
-
*
|
|
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
|
-
*
|
|
2086
|
+
* The comment or reply body as plain text. Load `content`, then sync before reading.
|
|
2087
2087
|
*
|
|
2088
|
-
*
|
|
2089
|
-
*
|
|
2090
|
-
*
|
|
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`
|
|
2149
|
-
*
|
|
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.
|
|
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": "
|
|
95
|
+
"@docx-editor.dev/core": "2.37.0-canary.20261111032756.sha-9eef508"
|
|
96
96
|
}
|
|
97
97
|
}
|