@superdoc-dev/sdk 1.8.0-next.6 → 1.8.0-next.8
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/generated/client.d.ts +13 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/contract.cjs +73 -4
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +73 -4
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
- package/tools/tools-policy.json +1 -1
|
@@ -2062,9 +2062,52 @@ const CONTRACT = {
|
|
|
2062
2062
|
"type": "string",
|
|
2063
2063
|
"description": "Full plain text content of the block."
|
|
2064
2064
|
},
|
|
2065
|
+
"textSpans": {
|
|
2066
|
+
"type": "array",
|
|
2067
|
+
"description": "Block text broken into runs with tracked-change marks preserved per run. Present only when the block contains at least one tracked change. Concatenating span text yields `text`.",
|
|
2068
|
+
"items": {
|
|
2069
|
+
"type": "object",
|
|
2070
|
+
"properties": {
|
|
2071
|
+
"text": {
|
|
2072
|
+
"type": "string",
|
|
2073
|
+
"description": "Raw text of the run."
|
|
2074
|
+
},
|
|
2075
|
+
"trackedChanges": {
|
|
2076
|
+
"type": "array",
|
|
2077
|
+
"description": "Tracked-change marks applied to this run.",
|
|
2078
|
+
"items": {
|
|
2079
|
+
"type": "object",
|
|
2080
|
+
"properties": {
|
|
2081
|
+
"entityId": {
|
|
2082
|
+
"type": "string",
|
|
2083
|
+
"description": "Tracked change entity ID matching an entry in trackedChanges[]."
|
|
2084
|
+
},
|
|
2085
|
+
"type": {
|
|
2086
|
+
"type": "string",
|
|
2087
|
+
"enum": [
|
|
2088
|
+
"insert",
|
|
2089
|
+
"delete",
|
|
2090
|
+
"format"
|
|
2091
|
+
]
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
"additionalProperties": false,
|
|
2095
|
+
"required": [
|
|
2096
|
+
"entityId",
|
|
2097
|
+
"type"
|
|
2098
|
+
]
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
"additionalProperties": false,
|
|
2103
|
+
"required": [
|
|
2104
|
+
"text"
|
|
2105
|
+
]
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2065
2108
|
"headingLevel": {
|
|
2066
2109
|
"type": "integer",
|
|
2067
|
-
"description": "Heading level (1
|
|
2110
|
+
"description": "Heading level (1-6). Only present for headings."
|
|
2068
2111
|
},
|
|
2069
2112
|
"tableContext": {
|
|
2070
2113
|
"type": "object",
|
|
@@ -2167,7 +2210,7 @@ const CONTRACT = {
|
|
|
2167
2210
|
"properties": {
|
|
2168
2211
|
"entityId": {
|
|
2169
2212
|
"type": "string",
|
|
2170
|
-
"description": "Tracked change entity ID
|
|
2213
|
+
"description": "Tracked change entity ID. Pass to scrollToElement() for navigation."
|
|
2171
2214
|
},
|
|
2172
2215
|
"type": {
|
|
2173
2216
|
"type": "string",
|
|
@@ -2175,11 +2218,37 @@ const CONTRACT = {
|
|
|
2175
2218
|
"insert",
|
|
2176
2219
|
"delete",
|
|
2177
2220
|
"format"
|
|
2178
|
-
]
|
|
2221
|
+
],
|
|
2222
|
+
"description": "Aggregate type at the entity level. In paired replacement mode, a delete+insert pair shares one entity and this collapses to 'insert'; per-half type lives on block.textSpans[].trackedChanges[]."
|
|
2223
|
+
},
|
|
2224
|
+
"blockIds": {
|
|
2225
|
+
"type": "array",
|
|
2226
|
+
"description": "Block IDs whose textSpans carry this change.",
|
|
2227
|
+
"items": {
|
|
2228
|
+
"type": "string"
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
"wordRevisionIds": {
|
|
2232
|
+
"type": "object",
|
|
2233
|
+
"properties": {
|
|
2234
|
+
"insert": {
|
|
2235
|
+
"type": "string",
|
|
2236
|
+
"description": "Original OOXML w:id from a w:ins mark."
|
|
2237
|
+
},
|
|
2238
|
+
"delete": {
|
|
2239
|
+
"type": "string",
|
|
2240
|
+
"description": "Original OOXML w:id from a w:del mark."
|
|
2241
|
+
},
|
|
2242
|
+
"format": {
|
|
2243
|
+
"type": "string",
|
|
2244
|
+
"description": "Original OOXML w:id from a w:rPrChange mark."
|
|
2245
|
+
}
|
|
2246
|
+
},
|
|
2247
|
+
"additionalProperties": false
|
|
2179
2248
|
},
|
|
2180
2249
|
"excerpt": {
|
|
2181
2250
|
"type": "string",
|
|
2182
|
-
"description": "Short text excerpt of the changed content."
|
|
2251
|
+
"description": "Short text excerpt of the changed content. Omitted for paired replacements; read block.textSpans for the per-half text."
|
|
2183
2252
|
},
|
|
2184
2253
|
"author": {
|
|
2185
2254
|
"type": "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC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EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,QAAQ,EAAE,QAk7nJtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -3180,9 +3180,52 @@ export const CONTRACT = {
|
|
|
3180
3180
|
"type": "string",
|
|
3181
3181
|
"description": "Full plain text content of the block."
|
|
3182
3182
|
},
|
|
3183
|
+
"textSpans": {
|
|
3184
|
+
"type": "array",
|
|
3185
|
+
"description": "Block text broken into runs with tracked-change marks preserved per run. Present only when the block contains at least one tracked change. Concatenating span text yields `text`.",
|
|
3186
|
+
"items": {
|
|
3187
|
+
"type": "object",
|
|
3188
|
+
"properties": {
|
|
3189
|
+
"text": {
|
|
3190
|
+
"type": "string",
|
|
3191
|
+
"description": "Raw text of the run."
|
|
3192
|
+
},
|
|
3193
|
+
"trackedChanges": {
|
|
3194
|
+
"type": "array",
|
|
3195
|
+
"description": "Tracked-change marks applied to this run.",
|
|
3196
|
+
"items": {
|
|
3197
|
+
"type": "object",
|
|
3198
|
+
"properties": {
|
|
3199
|
+
"entityId": {
|
|
3200
|
+
"type": "string",
|
|
3201
|
+
"description": "Tracked change entity ID matching an entry in trackedChanges[]."
|
|
3202
|
+
},
|
|
3203
|
+
"type": {
|
|
3204
|
+
"type": "string",
|
|
3205
|
+
"enum": [
|
|
3206
|
+
"insert",
|
|
3207
|
+
"delete",
|
|
3208
|
+
"format"
|
|
3209
|
+
]
|
|
3210
|
+
}
|
|
3211
|
+
},
|
|
3212
|
+
"additionalProperties": false,
|
|
3213
|
+
"required": [
|
|
3214
|
+
"entityId",
|
|
3215
|
+
"type"
|
|
3216
|
+
]
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
},
|
|
3220
|
+
"additionalProperties": false,
|
|
3221
|
+
"required": [
|
|
3222
|
+
"text"
|
|
3223
|
+
]
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3183
3226
|
"headingLevel": {
|
|
3184
3227
|
"type": "integer",
|
|
3185
|
-
"description": "Heading level (1
|
|
3228
|
+
"description": "Heading level (1-6). Only present for headings."
|
|
3186
3229
|
},
|
|
3187
3230
|
"tableContext": {
|
|
3188
3231
|
"type": "object",
|
|
@@ -3285,7 +3328,7 @@ export const CONTRACT = {
|
|
|
3285
3328
|
"properties": {
|
|
3286
3329
|
"entityId": {
|
|
3287
3330
|
"type": "string",
|
|
3288
|
-
"description": "Tracked change entity ID
|
|
3331
|
+
"description": "Tracked change entity ID. Pass to scrollToElement() for navigation."
|
|
3289
3332
|
},
|
|
3290
3333
|
"type": {
|
|
3291
3334
|
"type": "string",
|
|
@@ -3293,11 +3336,37 @@ export const CONTRACT = {
|
|
|
3293
3336
|
"insert",
|
|
3294
3337
|
"delete",
|
|
3295
3338
|
"format"
|
|
3296
|
-
]
|
|
3339
|
+
],
|
|
3340
|
+
"description": "Aggregate type at the entity level. In paired replacement mode, a delete+insert pair shares one entity and this collapses to 'insert'; per-half type lives on block.textSpans[].trackedChanges[]."
|
|
3341
|
+
},
|
|
3342
|
+
"blockIds": {
|
|
3343
|
+
"type": "array",
|
|
3344
|
+
"description": "Block IDs whose textSpans carry this change.",
|
|
3345
|
+
"items": {
|
|
3346
|
+
"type": "string"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"wordRevisionIds": {
|
|
3350
|
+
"type": "object",
|
|
3351
|
+
"properties": {
|
|
3352
|
+
"insert": {
|
|
3353
|
+
"type": "string",
|
|
3354
|
+
"description": "Original OOXML w:id from a w:ins mark."
|
|
3355
|
+
},
|
|
3356
|
+
"delete": {
|
|
3357
|
+
"type": "string",
|
|
3358
|
+
"description": "Original OOXML w:id from a w:del mark."
|
|
3359
|
+
},
|
|
3360
|
+
"format": {
|
|
3361
|
+
"type": "string",
|
|
3362
|
+
"description": "Original OOXML w:id from a w:rPrChange mark."
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
"additionalProperties": false
|
|
3297
3366
|
},
|
|
3298
3367
|
"excerpt": {
|
|
3299
3368
|
"type": "string",
|
|
3300
|
-
"description": "Short text excerpt of the changed content."
|
|
3369
|
+
"description": "Short text excerpt of the changed content. Omitted for paired replacements; read block.textSpans for the per-half text."
|
|
3301
3370
|
},
|
|
3302
3371
|
"author": {
|
|
3303
3372
|
"type": "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/sdk",
|
|
3
|
-
"version": "1.8.0-next.
|
|
3
|
+
"version": "1.8.0-next.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"typescript": "^5.9.2"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@superdoc-dev/sdk-darwin-x64": "1.8.0-next.
|
|
30
|
-
"@superdoc-dev/sdk-
|
|
31
|
-
"@superdoc-dev/sdk-
|
|
32
|
-
"@superdoc-dev/sdk-linux-arm64": "1.8.0-next.
|
|
33
|
-
"@superdoc-dev/sdk-windows-x64": "1.8.0-next.
|
|
29
|
+
"@superdoc-dev/sdk-darwin-x64": "1.8.0-next.8",
|
|
30
|
+
"@superdoc-dev/sdk-darwin-arm64": "1.8.0-next.8",
|
|
31
|
+
"@superdoc-dev/sdk-linux-x64": "1.8.0-next.8",
|
|
32
|
+
"@superdoc-dev/sdk-linux-arm64": "1.8.0-next.8",
|
|
33
|
+
"@superdoc-dev/sdk-windows-x64": "1.8.0-next.8"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
Binary file
|
|
Binary file
|
package/tools/tools-policy.json
CHANGED