@superdoc-dev/sdk 1.3.0-next.46 → 1.3.0-next.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/sdk",
3
- "version": "1.3.0-next.46",
3
+ "version": "1.3.0-next.48",
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-linux-x64": "1.3.0-next.46",
30
- "@superdoc-dev/sdk-windows-x64": "1.3.0-next.46",
31
- "@superdoc-dev/sdk-darwin-arm64": "1.3.0-next.46",
32
- "@superdoc-dev/sdk-darwin-x64": "1.3.0-next.46",
33
- "@superdoc-dev/sdk-linux-arm64": "1.3.0-next.46"
29
+ "@superdoc-dev/sdk-darwin-x64": "1.3.0-next.48",
30
+ "@superdoc-dev/sdk-darwin-arm64": "1.3.0-next.48",
31
+ "@superdoc-dev/sdk-linux-arm64": "1.3.0-next.48",
32
+ "@superdoc-dev/sdk-windows-x64": "1.3.0-next.48",
33
+ "@superdoc-dev/sdk-linux-x64": "1.3.0-next.48"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
@@ -52,27 +52,7 @@
52
52
  "action"
53
53
  ],
54
54
  "additionalProperties": false
55
- },
56
- "input_examples": [
57
- {
58
- "action": "blocks"
59
- },
60
- {
61
- "action": "blocks",
62
- "offset": 0,
63
- "limit": 20,
64
- "nodeTypes": [
65
- "heading",
66
- "paragraph"
67
- ]
68
- },
69
- {
70
- "action": "text"
71
- },
72
- {
73
- "action": "info"
74
- }
75
- ]
55
+ }
76
56
  },
77
57
  {
78
58
  "name": "superdoc_edit",
@@ -372,32 +352,7 @@
372
352
  "action"
373
353
  ],
374
354
  "additionalProperties": false
375
- },
376
- "input_examples": [
377
- {
378
- "action": "replace",
379
- "ref": "<handle.ref>",
380
- "text": "new text here"
381
- },
382
- {
383
- "action": "insert",
384
- "value": "Appended paragraph.",
385
- "placement": "insideEnd"
386
- },
387
- {
388
- "action": "insert",
389
- "ref": "<block.ref>",
390
- "value": "Inserted before.",
391
- "placement": "before"
392
- },
393
- {
394
- "action": "delete",
395
- "ref": "<handle.ref>"
396
- },
397
- {
398
- "action": "undo"
399
- }
400
- ]
355
+ }
401
356
  },
402
357
  {
403
358
  "name": "superdoc_format",
@@ -942,56 +897,7 @@
942
897
  "action"
943
898
  ],
944
899
  "additionalProperties": false
945
- },
946
- "input_examples": [
947
- {
948
- "action": "inline",
949
- "ref": "<handle.ref>",
950
- "inline": {
951
- "bold": true
952
- }
953
- },
954
- {
955
- "action": "inline",
956
- "ref": "<create.ref>",
957
- "inline": {
958
- "fontFamily": "Calibri",
959
- "fontSize": 11,
960
- "color": "#000000",
961
- "bold": false
962
- }
963
- },
964
- {
965
- "action": "set_alignment",
966
- "target": {
967
- "kind": "block",
968
- "nodeType": "paragraph",
969
- "nodeId": "<nodeId>"
970
- },
971
- "alignment": "center"
972
- },
973
- {
974
- "action": "set_flow_options",
975
- "target": {
976
- "kind": "block",
977
- "nodeType": "paragraph",
978
- "nodeId": "<nodeId>"
979
- },
980
- "pageBreakBefore": true
981
- },
982
- {
983
- "action": "set_spacing",
984
- "target": {
985
- "kind": "block",
986
- "nodeType": "paragraph",
987
- "nodeId": "<nodeId>"
988
- },
989
- "lineSpacing": {
990
- "rule": "auto",
991
- "value": 1.5
992
- }
993
- }
994
- ]
900
+ }
995
901
  },
996
902
  {
997
903
  "name": "superdoc_create",
@@ -1164,49 +1070,7 @@
1164
1070
  "action"
1165
1071
  ],
1166
1072
  "additionalProperties": false
1167
- },
1168
- "input_examples": [
1169
- {
1170
- "action": "paragraph",
1171
- "text": "New paragraph content.",
1172
- "at": {
1173
- "kind": "documentEnd"
1174
- }
1175
- },
1176
- {
1177
- "action": "heading",
1178
- "text": "Section Title",
1179
- "level": 2,
1180
- "at": {
1181
- "kind": "after",
1182
- "target": {
1183
- "kind": "block",
1184
- "nodeType": "paragraph",
1185
- "nodeId": "<nodeId>"
1186
- }
1187
- }
1188
- },
1189
- {
1190
- "action": "paragraph",
1191
- "text": "Chained item.",
1192
- "at": {
1193
- "kind": "after",
1194
- "target": {
1195
- "kind": "block",
1196
- "nodeType": "paragraph",
1197
- "nodeId": "<previousNodeId>"
1198
- }
1199
- }
1200
- },
1201
- {
1202
- "action": "table",
1203
- "rows": 3,
1204
- "columns": 4,
1205
- "at": {
1206
- "kind": "documentEnd"
1207
- }
1208
- }
1209
- ]
1073
+ }
1210
1074
  },
1211
1075
  {
1212
1076
  "name": "superdoc_list",
@@ -1460,53 +1324,7 @@
1460
1324
  "action"
1461
1325
  ],
1462
1326
  "additionalProperties": false
1463
- },
1464
- "input_examples": [
1465
- {
1466
- "action": "create",
1467
- "mode": "fromParagraphs",
1468
- "preset": "disc",
1469
- "target": {
1470
- "from": {
1471
- "kind": "block",
1472
- "nodeType": "paragraph",
1473
- "nodeId": "<firstId>"
1474
- },
1475
- "to": {
1476
- "kind": "block",
1477
- "nodeType": "paragraph",
1478
- "nodeId": "<lastId>"
1479
- }
1480
- }
1481
- },
1482
- {
1483
- "action": "set_type",
1484
- "target": {
1485
- "kind": "block",
1486
- "nodeType": "listItem",
1487
- "nodeId": "<itemId>"
1488
- },
1489
- "kind": "ordered"
1490
- },
1491
- {
1492
- "action": "insert",
1493
- "target": {
1494
- "kind": "block",
1495
- "nodeType": "listItem",
1496
- "nodeId": "<itemId>"
1497
- },
1498
- "position": "after",
1499
- "text": "New list item"
1500
- },
1501
- {
1502
- "action": "indent",
1503
- "target": {
1504
- "kind": "block",
1505
- "nodeType": "listItem",
1506
- "nodeId": "<itemId>"
1507
- }
1508
- }
1509
- ]
1327
+ }
1510
1328
  },
1511
1329
  {
1512
1330
  "name": "superdoc_comment",
@@ -1610,35 +1428,7 @@
1610
1428
  "action"
1611
1429
  ],
1612
1430
  "additionalProperties": false
1613
- },
1614
- "input_examples": [
1615
- {
1616
- "action": "create",
1617
- "text": "Please review this section.",
1618
- "target": {
1619
- "kind": "text",
1620
- "blockId": "<blockId>",
1621
- "range": {
1622
- "start": 5,
1623
- "end": 25
1624
- }
1625
- }
1626
- },
1627
- {
1628
- "action": "list",
1629
- "limit": 20,
1630
- "offset": 0
1631
- },
1632
- {
1633
- "action": "update",
1634
- "id": "<commentId>",
1635
- "status": "resolved"
1636
- },
1637
- {
1638
- "action": "delete",
1639
- "id": "<commentId>"
1640
- }
1641
- ]
1431
+ }
1642
1432
  },
1643
1433
  {
1644
1434
  "name": "superdoc_track_changes",
@@ -1725,31 +1515,7 @@
1725
1515
  "action"
1726
1516
  ],
1727
1517
  "additionalProperties": false
1728
- },
1729
- "input_examples": [
1730
- {
1731
- "action": "list"
1732
- },
1733
- {
1734
- "action": "list",
1735
- "type": "insert",
1736
- "limit": 10
1737
- },
1738
- {
1739
- "action": "decide",
1740
- "decision": "accept",
1741
- "target": {
1742
- "id": "<changeId>"
1743
- }
1744
- },
1745
- {
1746
- "action": "decide",
1747
- "decision": "reject",
1748
- "target": {
1749
- "scope": "all"
1750
- }
1751
- }
1752
- ]
1518
+ }
1753
1519
  },
1754
1520
  {
1755
1521
  "name": "superdoc_search",
@@ -1904,42 +1670,7 @@
1904
1670
  "select"
1905
1671
  ],
1906
1672
  "additionalProperties": false
1907
- },
1908
- "input_examples": [
1909
- {
1910
- "select": {
1911
- "type": "text",
1912
- "pattern": "Introduction"
1913
- },
1914
- "require": "first"
1915
- },
1916
- {
1917
- "select": {
1918
- "type": "text",
1919
- "pattern": "total amount"
1920
- },
1921
- "require": "all"
1922
- },
1923
- {
1924
- "select": {
1925
- "type": "node",
1926
- "nodeType": "heading"
1927
- },
1928
- "require": "all"
1929
- },
1930
- {
1931
- "select": {
1932
- "type": "text",
1933
- "pattern": "contract"
1934
- },
1935
- "within": {
1936
- "kind": "block",
1937
- "nodeType": "paragraph",
1938
- "nodeId": "abc123"
1939
- },
1940
- "require": "first"
1941
- }
1942
- ]
1673
+ }
1943
1674
  },
1944
1675
  {
1945
1676
  "name": "superdoc_mutations",
@@ -3890,46 +3621,7 @@
3890
3621
  "steps"
3891
3622
  ],
3892
3623
  "additionalProperties": false
3893
- },
3894
- "input_examples": [
3895
- {
3896
- "action": "apply",
3897
- "atomic": true,
3898
- "changeMode": "direct",
3899
- "steps": [
3900
- {
3901
- "id": "s1",
3902
- "op": "text.rewrite",
3903
- "where": {
3904
- "by": "select",
3905
- "select": {
3906
- "type": "text",
3907
- "pattern": "old term"
3908
- },
3909
- "require": "all"
3910
- },
3911
- "args": {
3912
- "replacement": {
3913
- "text": "new term"
3914
- }
3915
- }
3916
- },
3917
- {
3918
- "id": "s2",
3919
- "op": "text.delete",
3920
- "where": {
3921
- "by": "select",
3922
- "select": {
3923
- "type": "text",
3924
- "pattern": " (deprecated)"
3925
- },
3926
- "require": "all"
3927
- },
3928
- "args": {}
3929
- }
3930
- ]
3931
- }
3932
- ]
3624
+ }
3933
3625
  }
3934
3626
  ]
3935
3627
  }