@superdoc-dev/cli 0.2.0-next.143 → 0.2.0-next.146
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/index.js +352 -125
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1352,8 +1352,7 @@ var init_operation_definitions = __esm(() => {
|
|
|
1352
1352
|
throws: T_NOT_FOUND
|
|
1353
1353
|
}),
|
|
1354
1354
|
referenceDocPath: "get-node-by-id.mdx",
|
|
1355
|
-
referenceGroup: "core"
|
|
1356
|
-
essential: true
|
|
1355
|
+
referenceGroup: "core"
|
|
1357
1356
|
},
|
|
1358
1357
|
getText: {
|
|
1359
1358
|
memberPath: "getText",
|
|
@@ -1363,7 +1362,8 @@ var init_operation_definitions = __esm(() => {
|
|
|
1363
1362
|
metadata: readOperation(),
|
|
1364
1363
|
referenceDocPath: "get-text.mdx",
|
|
1365
1364
|
referenceGroup: "core",
|
|
1366
|
-
|
|
1365
|
+
intentGroup: "get_content",
|
|
1366
|
+
intentAction: "text"
|
|
1367
1367
|
},
|
|
1368
1368
|
getMarkdown: {
|
|
1369
1369
|
memberPath: "getMarkdown",
|
|
@@ -1372,7 +1372,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1372
1372
|
requiresDocumentContext: true,
|
|
1373
1373
|
metadata: readOperation(),
|
|
1374
1374
|
referenceDocPath: "get-markdown.mdx",
|
|
1375
|
-
referenceGroup: "core"
|
|
1375
|
+
referenceGroup: "core",
|
|
1376
|
+
intentGroup: "get_content",
|
|
1377
|
+
intentAction: "markdown"
|
|
1376
1378
|
},
|
|
1377
1379
|
getHtml: {
|
|
1378
1380
|
memberPath: "getHtml",
|
|
@@ -1381,7 +1383,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1381
1383
|
requiresDocumentContext: true,
|
|
1382
1384
|
metadata: readOperation(),
|
|
1383
1385
|
referenceDocPath: "get-html.mdx",
|
|
1384
|
-
referenceGroup: "core"
|
|
1386
|
+
referenceGroup: "core",
|
|
1387
|
+
intentGroup: "get_content",
|
|
1388
|
+
intentAction: "html"
|
|
1385
1389
|
},
|
|
1386
1390
|
markdownToFragment: {
|
|
1387
1391
|
memberPath: "markdownToFragment",
|
|
@@ -1399,7 +1403,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1399
1403
|
requiresDocumentContext: true,
|
|
1400
1404
|
metadata: readOperation(),
|
|
1401
1405
|
referenceDocPath: "info.mdx",
|
|
1402
|
-
referenceGroup: "core"
|
|
1406
|
+
referenceGroup: "core",
|
|
1407
|
+
intentGroup: "get_content",
|
|
1408
|
+
intentAction: "info"
|
|
1403
1409
|
},
|
|
1404
1410
|
clearContent: {
|
|
1405
1411
|
memberPath: "clearContent",
|
|
@@ -1453,7 +1459,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1453
1459
|
]
|
|
1454
1460
|
}),
|
|
1455
1461
|
referenceDocPath: "insert.mdx",
|
|
1456
|
-
referenceGroup: "core"
|
|
1462
|
+
referenceGroup: "core",
|
|
1463
|
+
intentGroup: "edit",
|
|
1464
|
+
intentAction: "insert"
|
|
1457
1465
|
},
|
|
1458
1466
|
replace: {
|
|
1459
1467
|
memberPath: "replace",
|
|
@@ -1490,7 +1498,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1490
1498
|
]
|
|
1491
1499
|
}),
|
|
1492
1500
|
referenceDocPath: "replace.mdx",
|
|
1493
|
-
referenceGroup: "core"
|
|
1501
|
+
referenceGroup: "core",
|
|
1502
|
+
intentGroup: "edit",
|
|
1503
|
+
intentAction: "replace"
|
|
1494
1504
|
},
|
|
1495
1505
|
delete: {
|
|
1496
1506
|
memberPath: "delete",
|
|
@@ -1505,7 +1515,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1505
1515
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET", "INVALID_INPUT"]
|
|
1506
1516
|
}),
|
|
1507
1517
|
referenceDocPath: "delete.mdx",
|
|
1508
|
-
referenceGroup: "core"
|
|
1518
|
+
referenceGroup: "core",
|
|
1519
|
+
intentGroup: "edit",
|
|
1520
|
+
intentAction: "delete"
|
|
1509
1521
|
},
|
|
1510
1522
|
"blocks.list": {
|
|
1511
1523
|
memberPath: "blocks.list",
|
|
@@ -1516,8 +1528,7 @@ var init_operation_definitions = __esm(() => {
|
|
|
1516
1528
|
throws: ["INVALID_INPUT"]
|
|
1517
1529
|
}),
|
|
1518
1530
|
referenceDocPath: "blocks/list.mdx",
|
|
1519
|
-
referenceGroup: "blocks"
|
|
1520
|
-
essential: true
|
|
1531
|
+
referenceGroup: "blocks"
|
|
1521
1532
|
},
|
|
1522
1533
|
"blocks.delete": {
|
|
1523
1534
|
memberPath: "blocks.delete",
|
|
@@ -1576,7 +1587,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1576
1587
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET", "INVALID_INPUT"]
|
|
1577
1588
|
}),
|
|
1578
1589
|
referenceDocPath: "format/apply.mdx",
|
|
1579
|
-
referenceGroup: "format"
|
|
1590
|
+
referenceGroup: "format",
|
|
1591
|
+
intentGroup: "format",
|
|
1592
|
+
intentAction: "inline"
|
|
1580
1593
|
},
|
|
1581
1594
|
...FORMAT_INLINE_ALIAS_OPERATION_DEFINITIONS,
|
|
1582
1595
|
"styles.apply": {
|
|
@@ -1608,7 +1621,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1608
1621
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET", "AMBIGUOUS_TARGET"]
|
|
1609
1622
|
}),
|
|
1610
1623
|
referenceDocPath: "create/paragraph.mdx",
|
|
1611
|
-
referenceGroup: "create"
|
|
1624
|
+
referenceGroup: "create",
|
|
1625
|
+
intentGroup: "create",
|
|
1626
|
+
intentAction: "paragraph"
|
|
1612
1627
|
},
|
|
1613
1628
|
"create.heading": {
|
|
1614
1629
|
memberPath: "create.heading",
|
|
@@ -1623,7 +1638,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1623
1638
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET", "AMBIGUOUS_TARGET"]
|
|
1624
1639
|
}),
|
|
1625
1640
|
referenceDocPath: "create/heading.mdx",
|
|
1626
|
-
referenceGroup: "create"
|
|
1641
|
+
referenceGroup: "create",
|
|
1642
|
+
intentGroup: "create",
|
|
1643
|
+
intentAction: "heading"
|
|
1627
1644
|
},
|
|
1628
1645
|
"create.sectionBreak": {
|
|
1629
1646
|
memberPath: "create.sectionBreak",
|
|
@@ -1933,7 +1950,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1933
1950
|
throws: T_PARAGRAPH_MUTATION
|
|
1934
1951
|
}),
|
|
1935
1952
|
referenceDocPath: "styles/paragraph/set-style.mdx",
|
|
1936
|
-
referenceGroup: "styles.paragraph"
|
|
1953
|
+
referenceGroup: "styles.paragraph",
|
|
1954
|
+
intentGroup: "format",
|
|
1955
|
+
intentAction: "set_style"
|
|
1937
1956
|
},
|
|
1938
1957
|
"styles.paragraph.clearStyle": {
|
|
1939
1958
|
memberPath: "styles.paragraph.clearStyle",
|
|
@@ -1978,7 +1997,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
1978
1997
|
throws: T_PARAGRAPH_MUTATION
|
|
1979
1998
|
}),
|
|
1980
1999
|
referenceDocPath: "format/paragraph/set-alignment.mdx",
|
|
1981
|
-
referenceGroup: "format.paragraph"
|
|
2000
|
+
referenceGroup: "format.paragraph",
|
|
2001
|
+
intentGroup: "format",
|
|
2002
|
+
intentAction: "set_alignment"
|
|
1982
2003
|
},
|
|
1983
2004
|
"format.paragraph.clearAlignment": {
|
|
1984
2005
|
memberPath: "format.paragraph.clearAlignment",
|
|
@@ -2008,7 +2029,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2008
2029
|
throws: T_PARAGRAPH_MUTATION
|
|
2009
2030
|
}),
|
|
2010
2031
|
referenceDocPath: "format/paragraph/set-indentation.mdx",
|
|
2011
|
-
referenceGroup: "format.paragraph"
|
|
2032
|
+
referenceGroup: "format.paragraph",
|
|
2033
|
+
intentGroup: "format",
|
|
2034
|
+
intentAction: "set_indentation"
|
|
2012
2035
|
},
|
|
2013
2036
|
"format.paragraph.clearIndentation": {
|
|
2014
2037
|
memberPath: "format.paragraph.clearIndentation",
|
|
@@ -2038,7 +2061,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2038
2061
|
throws: T_PARAGRAPH_MUTATION
|
|
2039
2062
|
}),
|
|
2040
2063
|
referenceDocPath: "format/paragraph/set-spacing.mdx",
|
|
2041
|
-
referenceGroup: "format.paragraph"
|
|
2064
|
+
referenceGroup: "format.paragraph",
|
|
2065
|
+
intentGroup: "format",
|
|
2066
|
+
intentAction: "set_spacing"
|
|
2042
2067
|
},
|
|
2043
2068
|
"format.paragraph.clearSpacing": {
|
|
2044
2069
|
memberPath: "format.paragraph.clearSpacing",
|
|
@@ -2242,7 +2267,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2242
2267
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET"]
|
|
2243
2268
|
}),
|
|
2244
2269
|
referenceDocPath: "lists/insert.mdx",
|
|
2245
|
-
referenceGroup: "lists"
|
|
2270
|
+
referenceGroup: "lists",
|
|
2271
|
+
intentGroup: "list",
|
|
2272
|
+
intentAction: "insert"
|
|
2246
2273
|
},
|
|
2247
2274
|
"lists.create": {
|
|
2248
2275
|
memberPath: "lists.create",
|
|
@@ -2257,7 +2284,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2257
2284
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET"]
|
|
2258
2285
|
}),
|
|
2259
2286
|
referenceDocPath: "lists/create.mdx",
|
|
2260
|
-
referenceGroup: "lists"
|
|
2287
|
+
referenceGroup: "lists",
|
|
2288
|
+
intentGroup: "list",
|
|
2289
|
+
intentAction: "create"
|
|
2261
2290
|
},
|
|
2262
2291
|
"lists.attach": {
|
|
2263
2292
|
memberPath: "lists.attach",
|
|
@@ -2287,7 +2316,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2287
2316
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET"]
|
|
2288
2317
|
}),
|
|
2289
2318
|
referenceDocPath: "lists/detach.mdx",
|
|
2290
|
-
referenceGroup: "lists"
|
|
2319
|
+
referenceGroup: "lists",
|
|
2320
|
+
intentGroup: "list",
|
|
2321
|
+
intentAction: "detach"
|
|
2291
2322
|
},
|
|
2292
2323
|
"lists.indent": {
|
|
2293
2324
|
memberPath: "lists.indent",
|
|
@@ -2302,7 +2333,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2302
2333
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET"]
|
|
2303
2334
|
}),
|
|
2304
2335
|
referenceDocPath: "lists/indent.mdx",
|
|
2305
|
-
referenceGroup: "lists"
|
|
2336
|
+
referenceGroup: "lists",
|
|
2337
|
+
intentGroup: "list",
|
|
2338
|
+
intentAction: "indent"
|
|
2306
2339
|
},
|
|
2307
2340
|
"lists.outdent": {
|
|
2308
2341
|
memberPath: "lists.outdent",
|
|
@@ -2317,7 +2350,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2317
2350
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET"]
|
|
2318
2351
|
}),
|
|
2319
2352
|
referenceDocPath: "lists/outdent.mdx",
|
|
2320
|
-
referenceGroup: "lists"
|
|
2353
|
+
referenceGroup: "lists",
|
|
2354
|
+
intentGroup: "list",
|
|
2355
|
+
intentAction: "outdent"
|
|
2321
2356
|
},
|
|
2322
2357
|
"lists.join": {
|
|
2323
2358
|
memberPath: "lists.join",
|
|
@@ -2379,7 +2414,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2379
2414
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET"]
|
|
2380
2415
|
}),
|
|
2381
2416
|
referenceDocPath: "lists/set-level.mdx",
|
|
2382
|
-
referenceGroup: "lists"
|
|
2417
|
+
referenceGroup: "lists",
|
|
2418
|
+
intentGroup: "list",
|
|
2419
|
+
intentAction: "set_level"
|
|
2383
2420
|
},
|
|
2384
2421
|
"lists.setValue": {
|
|
2385
2422
|
memberPath: "lists.setValue",
|
|
@@ -2496,7 +2533,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2496
2533
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET", "INVALID_INPUT"]
|
|
2497
2534
|
}),
|
|
2498
2535
|
referenceDocPath: "lists/set-type.mdx",
|
|
2499
|
-
referenceGroup: "lists"
|
|
2536
|
+
referenceGroup: "lists",
|
|
2537
|
+
intentGroup: "list",
|
|
2538
|
+
intentAction: "set_type"
|
|
2500
2539
|
},
|
|
2501
2540
|
"lists.captureTemplate": {
|
|
2502
2541
|
memberPath: "lists.captureTemplate",
|
|
@@ -2651,7 +2690,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2651
2690
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET"]
|
|
2652
2691
|
}),
|
|
2653
2692
|
referenceDocPath: "comments/create.mdx",
|
|
2654
|
-
referenceGroup: "comments"
|
|
2693
|
+
referenceGroup: "comments",
|
|
2694
|
+
intentGroup: "comment",
|
|
2695
|
+
intentAction: "create"
|
|
2655
2696
|
},
|
|
2656
2697
|
"comments.patch": {
|
|
2657
2698
|
memberPath: "comments.patch",
|
|
@@ -2666,7 +2707,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2666
2707
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET", "INVALID_INPUT"]
|
|
2667
2708
|
}),
|
|
2668
2709
|
referenceDocPath: "comments/patch.mdx",
|
|
2669
|
-
referenceGroup: "comments"
|
|
2710
|
+
referenceGroup: "comments",
|
|
2711
|
+
intentGroup: "comment",
|
|
2712
|
+
intentAction: "update"
|
|
2670
2713
|
},
|
|
2671
2714
|
"comments.delete": {
|
|
2672
2715
|
memberPath: "comments.delete",
|
|
@@ -2681,7 +2724,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2681
2724
|
throws: T_NOT_FOUND_CAPABLE
|
|
2682
2725
|
}),
|
|
2683
2726
|
referenceDocPath: "comments/delete.mdx",
|
|
2684
|
-
referenceGroup: "comments"
|
|
2727
|
+
referenceGroup: "comments",
|
|
2728
|
+
intentGroup: "comment",
|
|
2729
|
+
intentAction: "delete"
|
|
2685
2730
|
},
|
|
2686
2731
|
"comments.get": {
|
|
2687
2732
|
memberPath: "comments.get",
|
|
@@ -2693,7 +2738,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2693
2738
|
throws: T_NOT_FOUND
|
|
2694
2739
|
}),
|
|
2695
2740
|
referenceDocPath: "comments/get.mdx",
|
|
2696
|
-
referenceGroup: "comments"
|
|
2741
|
+
referenceGroup: "comments",
|
|
2742
|
+
intentGroup: "comment",
|
|
2743
|
+
intentAction: "get"
|
|
2697
2744
|
},
|
|
2698
2745
|
"comments.list": {
|
|
2699
2746
|
memberPath: "comments.list",
|
|
@@ -2705,7 +2752,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2705
2752
|
throws: ["INVALID_INPUT"]
|
|
2706
2753
|
}),
|
|
2707
2754
|
referenceDocPath: "comments/list.mdx",
|
|
2708
|
-
referenceGroup: "comments"
|
|
2755
|
+
referenceGroup: "comments",
|
|
2756
|
+
intentGroup: "comment",
|
|
2757
|
+
intentAction: "list"
|
|
2709
2758
|
},
|
|
2710
2759
|
"trackChanges.list": {
|
|
2711
2760
|
memberPath: "trackChanges.list",
|
|
@@ -2717,7 +2766,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2717
2766
|
throws: ["INVALID_INPUT"]
|
|
2718
2767
|
}),
|
|
2719
2768
|
referenceDocPath: "track-changes/list.mdx",
|
|
2720
|
-
referenceGroup: "trackChanges"
|
|
2769
|
+
referenceGroup: "trackChanges",
|
|
2770
|
+
intentGroup: "track_changes",
|
|
2771
|
+
intentAction: "list"
|
|
2721
2772
|
},
|
|
2722
2773
|
"trackChanges.get": {
|
|
2723
2774
|
memberPath: "trackChanges.get",
|
|
@@ -2744,7 +2795,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2744
2795
|
throws: [...T_NOT_FOUND_CAPABLE, "INVALID_INPUT", "INVALID_TARGET"]
|
|
2745
2796
|
}),
|
|
2746
2797
|
referenceDocPath: "track-changes/decide.mdx",
|
|
2747
|
-
referenceGroup: "trackChanges"
|
|
2798
|
+
referenceGroup: "trackChanges",
|
|
2799
|
+
intentGroup: "track_changes",
|
|
2800
|
+
intentAction: "decide"
|
|
2748
2801
|
},
|
|
2749
2802
|
"query.match": {
|
|
2750
2803
|
memberPath: "query.match",
|
|
@@ -2758,7 +2811,8 @@ var init_operation_definitions = __esm(() => {
|
|
|
2758
2811
|
}),
|
|
2759
2812
|
referenceDocPath: "query/match.mdx",
|
|
2760
2813
|
referenceGroup: "query",
|
|
2761
|
-
|
|
2814
|
+
intentGroup: "search",
|
|
2815
|
+
intentAction: "match"
|
|
2762
2816
|
},
|
|
2763
2817
|
"ranges.resolve": {
|
|
2764
2818
|
memberPath: "ranges.resolve",
|
|
@@ -2771,8 +2825,7 @@ var init_operation_definitions = __esm(() => {
|
|
|
2771
2825
|
deterministicTargetResolution: true
|
|
2772
2826
|
}),
|
|
2773
2827
|
referenceDocPath: "ranges/resolve.mdx",
|
|
2774
|
-
referenceGroup: "ranges"
|
|
2775
|
-
essential: true
|
|
2828
|
+
referenceGroup: "ranges"
|
|
2776
2829
|
},
|
|
2777
2830
|
"mutations.preview": {
|
|
2778
2831
|
memberPath: "mutations.preview",
|
|
@@ -2785,7 +2838,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
2785
2838
|
deterministicTargetResolution: true
|
|
2786
2839
|
}),
|
|
2787
2840
|
referenceDocPath: "mutations/preview.mdx",
|
|
2788
|
-
referenceGroup: "mutations"
|
|
2841
|
+
referenceGroup: "mutations",
|
|
2842
|
+
intentGroup: "mutations",
|
|
2843
|
+
intentAction: "preview"
|
|
2789
2844
|
},
|
|
2790
2845
|
"mutations.apply": {
|
|
2791
2846
|
memberPath: "mutations.apply",
|
|
@@ -2808,7 +2863,8 @@ var init_operation_definitions = __esm(() => {
|
|
|
2808
2863
|
}),
|
|
2809
2864
|
referenceDocPath: "mutations/apply.mdx",
|
|
2810
2865
|
referenceGroup: "mutations",
|
|
2811
|
-
|
|
2866
|
+
intentGroup: "mutations",
|
|
2867
|
+
intentAction: "apply"
|
|
2812
2868
|
},
|
|
2813
2869
|
"capabilities.get": {
|
|
2814
2870
|
memberPath: "capabilities",
|
|
@@ -3630,7 +3686,8 @@ var init_operation_definitions = __esm(() => {
|
|
|
3630
3686
|
}),
|
|
3631
3687
|
referenceDocPath: "history/undo.mdx",
|
|
3632
3688
|
referenceGroup: "history",
|
|
3633
|
-
|
|
3689
|
+
intentGroup: "edit",
|
|
3690
|
+
intentAction: "undo"
|
|
3634
3691
|
},
|
|
3635
3692
|
"history.redo": {
|
|
3636
3693
|
memberPath: "history.redo",
|
|
@@ -3645,7 +3702,9 @@ var init_operation_definitions = __esm(() => {
|
|
|
3645
3702
|
throws: ["CAPABILITY_UNAVAILABLE"]
|
|
3646
3703
|
}),
|
|
3647
3704
|
referenceDocPath: "history/redo.mdx",
|
|
3648
|
-
referenceGroup: "history"
|
|
3705
|
+
referenceGroup: "history",
|
|
3706
|
+
intentGroup: "edit",
|
|
3707
|
+
intentAction: "redo"
|
|
3649
3708
|
},
|
|
3650
3709
|
"create.image": {
|
|
3651
3710
|
memberPath: "create.image",
|
|
@@ -11873,6 +11932,7 @@ var init_step_op_catalog = __esm(() => {
|
|
|
11873
11932
|
|
|
11874
11933
|
// ../../packages/document-api/src/contract/index.ts
|
|
11875
11934
|
var init_contract = __esm(() => {
|
|
11935
|
+
init_operation_definitions();
|
|
11876
11936
|
init_types2();
|
|
11877
11937
|
init_command_catalog();
|
|
11878
11938
|
init_schemas();
|
|
@@ -17771,7 +17831,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
17771
17831
|
category: "session",
|
|
17772
17832
|
description: "Open a document and create a persistent editing session. Optionally override the document body with contentOverride + overrideType (markdown, html, or text).",
|
|
17773
17833
|
requiresDocumentContext: false,
|
|
17774
|
-
intentName: "open_document",
|
|
17775
17834
|
sdkMetadata: { mutates: true, idempotency: "non-idempotent", supportsTrackedMode: false, supportsDryRun: false },
|
|
17776
17835
|
outputSchema: {
|
|
17777
17836
|
type: "object",
|
|
@@ -17814,7 +17873,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
17814
17873
|
category: "session",
|
|
17815
17874
|
description: "Save the current session to the original file or a new path.",
|
|
17816
17875
|
requiresDocumentContext: false,
|
|
17817
|
-
intentName: "save_document",
|
|
17818
17876
|
sdkMetadata: { mutates: true, idempotency: "conditional", supportsTrackedMode: false, supportsDryRun: false },
|
|
17819
17877
|
outputSchema: {
|
|
17820
17878
|
type: "object",
|
|
@@ -17853,7 +17911,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
17853
17911
|
category: "session",
|
|
17854
17912
|
description: "Close the active editing session and clean up resources.",
|
|
17855
17913
|
requiresDocumentContext: false,
|
|
17856
|
-
intentName: "close_document",
|
|
17857
17914
|
sdkMetadata: { mutates: true, idempotency: "conditional", supportsTrackedMode: false, supportsDryRun: false },
|
|
17858
17915
|
outputSchema: {
|
|
17859
17916
|
type: "object",
|
|
@@ -17880,7 +17937,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
17880
17937
|
category: "session",
|
|
17881
17938
|
description: "Show the current session status and document metadata.",
|
|
17882
17939
|
requiresDocumentContext: false,
|
|
17883
|
-
intentName: "get_status",
|
|
17884
17940
|
sdkMetadata: { mutates: false, idempotency: "idempotent", supportsTrackedMode: false, supportsDryRun: false },
|
|
17885
17941
|
outputSchema: {
|
|
17886
17942
|
type: "object",
|
|
@@ -17920,7 +17976,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
17920
17976
|
category: "session",
|
|
17921
17977
|
description: "List all available CLI operations and contract metadata.",
|
|
17922
17978
|
requiresDocumentContext: false,
|
|
17923
|
-
intentName: "describe_commands",
|
|
17924
17979
|
skipAsATool: true,
|
|
17925
17980
|
sdkMetadata: { mutates: false, idempotency: "idempotent", supportsTrackedMode: false, supportsDryRun: false },
|
|
17926
17981
|
outputSchema: {
|
|
@@ -17948,7 +18003,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
17948
18003
|
description: "Show detailed metadata for a single CLI operation.",
|
|
17949
18004
|
requiresDocumentContext: false,
|
|
17950
18005
|
tokenOverride: ["describe", "command"],
|
|
17951
|
-
intentName: "describe_command",
|
|
17952
18006
|
skipAsATool: true,
|
|
17953
18007
|
sdkMetadata: { mutates: false, idempotency: "idempotent", supportsTrackedMode: false, supportsDryRun: false },
|
|
17954
18008
|
outputSchema: {
|
|
@@ -17968,7 +18022,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
17968
18022
|
category: "session",
|
|
17969
18023
|
description: "List all active editing sessions.",
|
|
17970
18024
|
requiresDocumentContext: false,
|
|
17971
|
-
intentName: "list_sessions",
|
|
17972
18025
|
sdkMetadata: { mutates: false, idempotency: "idempotent", supportsTrackedMode: false, supportsDryRun: false },
|
|
17973
18026
|
outputSchema: {
|
|
17974
18027
|
type: "object",
|
|
@@ -17994,7 +18047,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
17994
18047
|
category: "session",
|
|
17995
18048
|
description: "Persist the current session state.",
|
|
17996
18049
|
requiresDocumentContext: false,
|
|
17997
|
-
intentName: "save_session",
|
|
17998
18050
|
sdkMetadata: { mutates: true, idempotency: "conditional", supportsTrackedMode: false, supportsDryRun: false },
|
|
17999
18051
|
outputSchema: {
|
|
18000
18052
|
type: "object",
|
|
@@ -18026,7 +18078,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
18026
18078
|
category: "session",
|
|
18027
18079
|
description: "Close a specific editing session by ID.",
|
|
18028
18080
|
requiresDocumentContext: false,
|
|
18029
|
-
intentName: "close_session",
|
|
18030
18081
|
sdkMetadata: { mutates: true, idempotency: "conditional", supportsTrackedMode: false, supportsDryRun: false },
|
|
18031
18082
|
outputSchema: {
|
|
18032
18083
|
type: "object",
|
|
@@ -18054,7 +18105,6 @@ var init_cli_only_operation_definitions = __esm(() => {
|
|
|
18054
18105
|
category: "session",
|
|
18055
18106
|
description: "Set the default session for subsequent commands.",
|
|
18056
18107
|
requiresDocumentContext: false,
|
|
18057
|
-
intentName: "set_default_session",
|
|
18058
18108
|
sdkMetadata: { mutates: true, idempotency: "conditional", supportsTrackedMode: false, supportsDryRun: false },
|
|
18059
18109
|
outputSchema: {
|
|
18060
18110
|
type: "object",
|
|
@@ -23454,9 +23504,9 @@ var init_jszip_ChlR43oI_es = __esm(() => {
|
|
|
23454
23504
|
});
|
|
23455
23505
|
});
|
|
23456
23506
|
|
|
23457
|
-
// ../../packages/superdoc/dist/chunks/xml-js-
|
|
23507
|
+
// ../../packages/superdoc/dist/chunks/xml-js-BtmJ6bNs.es.js
|
|
23458
23508
|
var require_events, require_inherits_browser, require_stream_browser, require_dist, require_shams$1, require_shams, require_es_object_atoms, require_es_errors, require_eval, require_range, require_ref, require_syntax, require_type, require_uri, require_abs, require_floor, require_max, require_min, require_pow, require_round, require_isNaN, require_sign, require_gOPD, require_gopd, require_es_define_property, require_has_symbols, require_Reflect_getPrototypeOf, require_Object_getPrototypeOf, require_implementation, require_function_bind, require_functionCall, require_functionApply, require_reflectApply, require_actualApply, require_call_bind_apply_helpers, require_get, require_get_proto, require_hasown, require_get_intrinsic, require_call_bound, require_is_arguments, require_is_regex, require_safe_regex_test, require_generator_function, require_is_generator_function, require_is_callable, require_for_each, require_possible_typed_array_names, require_available_typed_arrays, require_define_data_property, require_has_property_descriptors, require_set_function_length, require_applyBind, require_call_bind, require_which_typed_array, require_is_typed_array, require_types, require_isBufferBrowser, require_util, require_buffer_list, require_destroy, require_errors_browser, require_state, require_browser, require__stream_writable, require__stream_duplex, require_safe_buffer, require_string_decoder, require_end_of_stream, require_async_iterator, require_from_browser, require__stream_readable, require__stream_transform, require__stream_passthrough, require_pipeline, require_stream_browserify, require_sax, require_array_helper, require_options_helper, require_xml2js, require_xml2json, require_js2xml, require_json2xml, require_lib;
|
|
23459
|
-
var
|
|
23509
|
+
var init_xml_js_BtmJ6bNs_es = __esm(() => {
|
|
23460
23510
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
23461
23511
|
init_jszip_ChlR43oI_es();
|
|
23462
23512
|
require_events = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
@@ -30007,6 +30057,9 @@ var init_xml_js_DLE8mr0n_es = __esm(() => {
|
|
|
30007
30057
|
parser.opt = opt || {};
|
|
30008
30058
|
parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags;
|
|
30009
30059
|
parser.looseCase = parser.opt.lowercase ? "toLowerCase" : "toUpperCase";
|
|
30060
|
+
parser.opt.maxEntityCount = parser.opt.maxEntityCount || 512;
|
|
30061
|
+
parser.opt.maxEntityDepth = parser.opt.maxEntityDepth || 4;
|
|
30062
|
+
parser.entityCount = parser.entityDepth = 0;
|
|
30010
30063
|
parser.tags = [];
|
|
30011
30064
|
parser.closed = parser.closedRoot = parser.sawRoot = false;
|
|
30012
30065
|
parser.tag = parser.error = null;
|
|
@@ -31255,9 +31308,14 @@ Actual: ` + parser.attribValue);
|
|
|
31255
31308
|
if (c === ";") {
|
|
31256
31309
|
var parsedEntity = parseEntity(parser);
|
|
31257
31310
|
if (parser.opt.unparsedEntities && !Object.values(sax$1.XML_ENTITIES).includes(parsedEntity)) {
|
|
31311
|
+
if ((parser.entityCount += 1) > parser.opt.maxEntityCount)
|
|
31312
|
+
error(parser, "Parsed entity count exceeds max entity count");
|
|
31313
|
+
if ((parser.entityDepth += 1) > parser.opt.maxEntityDepth)
|
|
31314
|
+
error(parser, "Parsed entity depth exceeds max entity depth");
|
|
31258
31315
|
parser.entity = "";
|
|
31259
31316
|
parser.state = returnState;
|
|
31260
31317
|
parser.write(parsedEntity);
|
|
31318
|
+
parser.entityDepth -= 1;
|
|
31261
31319
|
} else {
|
|
31262
31320
|
parser[buffer$2] += parsedEntity;
|
|
31263
31321
|
parser.entity = "";
|
|
@@ -32200,7 +32258,7 @@ var init_uuid_qzgm05fK_es = __esm(() => {
|
|
|
32200
32258
|
v5_default = v35("v5", 80, sha1);
|
|
32201
32259
|
});
|
|
32202
32260
|
|
|
32203
|
-
// ../../packages/superdoc/dist/chunks/constants-
|
|
32261
|
+
// ../../packages/superdoc/dist/chunks/constants-ep1_Gwqi.es.js
|
|
32204
32262
|
function computeCrc32Hex(data) {
|
|
32205
32263
|
let crc = 4294967295;
|
|
32206
32264
|
for (let i2 = 0;i2 < data.length; i2++)
|
|
@@ -32592,8 +32650,8 @@ var import_lib, CRC32_TABLE, REMOTE_RESOURCE_PATTERN, DATA_URI_PATTERN, getArray
|
|
|
32592
32650
|
return "webp";
|
|
32593
32651
|
return null;
|
|
32594
32652
|
}, COMMENT_FILE_BASENAMES, COMMENT_RELATIONSHIP_TYPES;
|
|
32595
|
-
var
|
|
32596
|
-
|
|
32653
|
+
var init_constants_ep1_Gwqi_es = __esm(() => {
|
|
32654
|
+
init_xml_js_BtmJ6bNs_es();
|
|
32597
32655
|
import_lib = require_lib();
|
|
32598
32656
|
CRC32_TABLE = new Uint32Array(256);
|
|
32599
32657
|
for (let i2 = 0;i2 < 256; i2++) {
|
|
@@ -38800,7 +38858,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
|
|
|
38800
38858
|
emptyOptions2 = {};
|
|
38801
38859
|
});
|
|
38802
38860
|
|
|
38803
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
38861
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-DBTvnSJQ.es.js
|
|
38804
38862
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
38805
38863
|
const fieldValue = extension$1.config[field];
|
|
38806
38864
|
if (typeof fieldValue === "function")
|
|
@@ -75628,12 +75686,12 @@ var isRegExp = (value) => {
|
|
|
75628
75686
|
state.kern = kernNode.attributes["w:val"];
|
|
75629
75687
|
}
|
|
75630
75688
|
}, SuperConverter;
|
|
75631
|
-
var
|
|
75689
|
+
var init_SuperConverter_DBTvnSJQ_es = __esm(() => {
|
|
75632
75690
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
75633
75691
|
init_jszip_ChlR43oI_es();
|
|
75634
|
-
|
|
75692
|
+
init_xml_js_BtmJ6bNs_es();
|
|
75635
75693
|
init_uuid_qzgm05fK_es();
|
|
75636
|
-
|
|
75694
|
+
init_constants_ep1_Gwqi_es();
|
|
75637
75695
|
init_unified_BRHLwnjP_es();
|
|
75638
75696
|
init_lib_HnbxUP96_es();
|
|
75639
75697
|
init_lib_DAB30bX1_es();
|
|
@@ -78600,8 +78658,7 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78600
78658
|
throws: T_NOT_FOUND2
|
|
78601
78659
|
}),
|
|
78602
78660
|
referenceDocPath: "get-node-by-id.mdx",
|
|
78603
|
-
referenceGroup: "core"
|
|
78604
|
-
essential: true
|
|
78661
|
+
referenceGroup: "core"
|
|
78605
78662
|
},
|
|
78606
78663
|
getText: {
|
|
78607
78664
|
memberPath: "getText",
|
|
@@ -78611,7 +78668,8 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78611
78668
|
metadata: readOperation2(),
|
|
78612
78669
|
referenceDocPath: "get-text.mdx",
|
|
78613
78670
|
referenceGroup: "core",
|
|
78614
|
-
|
|
78671
|
+
intentGroup: "get_content",
|
|
78672
|
+
intentAction: "text"
|
|
78615
78673
|
},
|
|
78616
78674
|
getMarkdown: {
|
|
78617
78675
|
memberPath: "getMarkdown",
|
|
@@ -78620,7 +78678,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78620
78678
|
requiresDocumentContext: true,
|
|
78621
78679
|
metadata: readOperation2(),
|
|
78622
78680
|
referenceDocPath: "get-markdown.mdx",
|
|
78623
|
-
referenceGroup: "core"
|
|
78681
|
+
referenceGroup: "core",
|
|
78682
|
+
intentGroup: "get_content",
|
|
78683
|
+
intentAction: "markdown"
|
|
78624
78684
|
},
|
|
78625
78685
|
getHtml: {
|
|
78626
78686
|
memberPath: "getHtml",
|
|
@@ -78629,7 +78689,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78629
78689
|
requiresDocumentContext: true,
|
|
78630
78690
|
metadata: readOperation2(),
|
|
78631
78691
|
referenceDocPath: "get-html.mdx",
|
|
78632
|
-
referenceGroup: "core"
|
|
78692
|
+
referenceGroup: "core",
|
|
78693
|
+
intentGroup: "get_content",
|
|
78694
|
+
intentAction: "html"
|
|
78633
78695
|
},
|
|
78634
78696
|
markdownToFragment: {
|
|
78635
78697
|
memberPath: "markdownToFragment",
|
|
@@ -78647,7 +78709,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78647
78709
|
requiresDocumentContext: true,
|
|
78648
78710
|
metadata: readOperation2(),
|
|
78649
78711
|
referenceDocPath: "info.mdx",
|
|
78650
|
-
referenceGroup: "core"
|
|
78712
|
+
referenceGroup: "core",
|
|
78713
|
+
intentGroup: "get_content",
|
|
78714
|
+
intentAction: "info"
|
|
78651
78715
|
},
|
|
78652
78716
|
clearContent: {
|
|
78653
78717
|
memberPath: "clearContent",
|
|
@@ -78701,7 +78765,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78701
78765
|
]
|
|
78702
78766
|
}),
|
|
78703
78767
|
referenceDocPath: "insert.mdx",
|
|
78704
|
-
referenceGroup: "core"
|
|
78768
|
+
referenceGroup: "core",
|
|
78769
|
+
intentGroup: "edit",
|
|
78770
|
+
intentAction: "insert"
|
|
78705
78771
|
},
|
|
78706
78772
|
replace: {
|
|
78707
78773
|
memberPath: "replace",
|
|
@@ -78738,7 +78804,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78738
78804
|
]
|
|
78739
78805
|
}),
|
|
78740
78806
|
referenceDocPath: "replace.mdx",
|
|
78741
|
-
referenceGroup: "core"
|
|
78807
|
+
referenceGroup: "core",
|
|
78808
|
+
intentGroup: "edit",
|
|
78809
|
+
intentAction: "replace"
|
|
78742
78810
|
},
|
|
78743
78811
|
delete: {
|
|
78744
78812
|
memberPath: "delete",
|
|
@@ -78757,7 +78825,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78757
78825
|
]
|
|
78758
78826
|
}),
|
|
78759
78827
|
referenceDocPath: "delete.mdx",
|
|
78760
|
-
referenceGroup: "core"
|
|
78828
|
+
referenceGroup: "core",
|
|
78829
|
+
intentGroup: "edit",
|
|
78830
|
+
intentAction: "delete"
|
|
78761
78831
|
},
|
|
78762
78832
|
"blocks.list": {
|
|
78763
78833
|
memberPath: "blocks.list",
|
|
@@ -78766,8 +78836,7 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78766
78836
|
requiresDocumentContext: true,
|
|
78767
78837
|
metadata: readOperation2({ throws: ["INVALID_INPUT"] }),
|
|
78768
78838
|
referenceDocPath: "blocks/list.mdx",
|
|
78769
|
-
referenceGroup: "blocks"
|
|
78770
|
-
essential: true
|
|
78839
|
+
referenceGroup: "blocks"
|
|
78771
78840
|
},
|
|
78772
78841
|
"blocks.delete": {
|
|
78773
78842
|
memberPath: "blocks.delete",
|
|
@@ -78830,7 +78899,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78830
78899
|
]
|
|
78831
78900
|
}),
|
|
78832
78901
|
referenceDocPath: "format/apply.mdx",
|
|
78833
|
-
referenceGroup: "format"
|
|
78902
|
+
referenceGroup: "format",
|
|
78903
|
+
intentGroup: "format",
|
|
78904
|
+
intentAction: "inline"
|
|
78834
78905
|
},
|
|
78835
78906
|
...FORMAT_INLINE_ALIAS_OPERATION_DEFINITIONS2,
|
|
78836
78907
|
"styles.apply": {
|
|
@@ -78871,7 +78942,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78871
78942
|
]
|
|
78872
78943
|
}),
|
|
78873
78944
|
referenceDocPath: "create/paragraph.mdx",
|
|
78874
|
-
referenceGroup: "create"
|
|
78945
|
+
referenceGroup: "create",
|
|
78946
|
+
intentGroup: "create",
|
|
78947
|
+
intentAction: "paragraph"
|
|
78875
78948
|
},
|
|
78876
78949
|
"create.heading": {
|
|
78877
78950
|
memberPath: "create.heading",
|
|
@@ -78890,7 +78963,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
78890
78963
|
]
|
|
78891
78964
|
}),
|
|
78892
78965
|
referenceDocPath: "create/heading.mdx",
|
|
78893
|
-
referenceGroup: "create"
|
|
78966
|
+
referenceGroup: "create",
|
|
78967
|
+
intentGroup: "create",
|
|
78968
|
+
intentAction: "heading"
|
|
78894
78969
|
},
|
|
78895
78970
|
"create.sectionBreak": {
|
|
78896
78971
|
memberPath: "create.sectionBreak",
|
|
@@ -79260,7 +79335,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79260
79335
|
throws: T_PARAGRAPH_MUTATION2
|
|
79261
79336
|
}),
|
|
79262
79337
|
referenceDocPath: "styles/paragraph/set-style.mdx",
|
|
79263
|
-
referenceGroup: "styles.paragraph"
|
|
79338
|
+
referenceGroup: "styles.paragraph",
|
|
79339
|
+
intentGroup: "format",
|
|
79340
|
+
intentAction: "set_style"
|
|
79264
79341
|
},
|
|
79265
79342
|
"styles.paragraph.clearStyle": {
|
|
79266
79343
|
memberPath: "styles.paragraph.clearStyle",
|
|
@@ -79305,7 +79382,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79305
79382
|
throws: T_PARAGRAPH_MUTATION2
|
|
79306
79383
|
}),
|
|
79307
79384
|
referenceDocPath: "format/paragraph/set-alignment.mdx",
|
|
79308
|
-
referenceGroup: "format.paragraph"
|
|
79385
|
+
referenceGroup: "format.paragraph",
|
|
79386
|
+
intentGroup: "format",
|
|
79387
|
+
intentAction: "set_alignment"
|
|
79309
79388
|
},
|
|
79310
79389
|
"format.paragraph.clearAlignment": {
|
|
79311
79390
|
memberPath: "format.paragraph.clearAlignment",
|
|
@@ -79335,7 +79414,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79335
79414
|
throws: T_PARAGRAPH_MUTATION2
|
|
79336
79415
|
}),
|
|
79337
79416
|
referenceDocPath: "format/paragraph/set-indentation.mdx",
|
|
79338
|
-
referenceGroup: "format.paragraph"
|
|
79417
|
+
referenceGroup: "format.paragraph",
|
|
79418
|
+
intentGroup: "format",
|
|
79419
|
+
intentAction: "set_indentation"
|
|
79339
79420
|
},
|
|
79340
79421
|
"format.paragraph.clearIndentation": {
|
|
79341
79422
|
memberPath: "format.paragraph.clearIndentation",
|
|
@@ -79365,7 +79446,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79365
79446
|
throws: T_PARAGRAPH_MUTATION2
|
|
79366
79447
|
}),
|
|
79367
79448
|
referenceDocPath: "format/paragraph/set-spacing.mdx",
|
|
79368
|
-
referenceGroup: "format.paragraph"
|
|
79449
|
+
referenceGroup: "format.paragraph",
|
|
79450
|
+
intentGroup: "format",
|
|
79451
|
+
intentAction: "set_spacing"
|
|
79369
79452
|
},
|
|
79370
79453
|
"format.paragraph.clearSpacing": {
|
|
79371
79454
|
memberPath: "format.paragraph.clearSpacing",
|
|
@@ -79573,7 +79656,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79573
79656
|
throws: [...T_NOT_FOUND_CAPABLE2, "INVALID_TARGET"]
|
|
79574
79657
|
}),
|
|
79575
79658
|
referenceDocPath: "lists/insert.mdx",
|
|
79576
|
-
referenceGroup: "lists"
|
|
79659
|
+
referenceGroup: "lists",
|
|
79660
|
+
intentGroup: "list",
|
|
79661
|
+
intentAction: "insert"
|
|
79577
79662
|
},
|
|
79578
79663
|
"lists.create": {
|
|
79579
79664
|
memberPath: "lists.create",
|
|
@@ -79588,7 +79673,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79588
79673
|
throws: [...T_NOT_FOUND_CAPABLE2, "INVALID_TARGET"]
|
|
79589
79674
|
}),
|
|
79590
79675
|
referenceDocPath: "lists/create.mdx",
|
|
79591
|
-
referenceGroup: "lists"
|
|
79676
|
+
referenceGroup: "lists",
|
|
79677
|
+
intentGroup: "list",
|
|
79678
|
+
intentAction: "create"
|
|
79592
79679
|
},
|
|
79593
79680
|
"lists.attach": {
|
|
79594
79681
|
memberPath: "lists.attach",
|
|
@@ -79618,7 +79705,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79618
79705
|
throws: [...T_NOT_FOUND_CAPABLE2, "INVALID_TARGET"]
|
|
79619
79706
|
}),
|
|
79620
79707
|
referenceDocPath: "lists/detach.mdx",
|
|
79621
|
-
referenceGroup: "lists"
|
|
79708
|
+
referenceGroup: "lists",
|
|
79709
|
+
intentGroup: "list",
|
|
79710
|
+
intentAction: "detach"
|
|
79622
79711
|
},
|
|
79623
79712
|
"lists.indent": {
|
|
79624
79713
|
memberPath: "lists.indent",
|
|
@@ -79637,7 +79726,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79637
79726
|
throws: [...T_NOT_FOUND_CAPABLE2, "INVALID_TARGET"]
|
|
79638
79727
|
}),
|
|
79639
79728
|
referenceDocPath: "lists/indent.mdx",
|
|
79640
|
-
referenceGroup: "lists"
|
|
79729
|
+
referenceGroup: "lists",
|
|
79730
|
+
intentGroup: "list",
|
|
79731
|
+
intentAction: "indent"
|
|
79641
79732
|
},
|
|
79642
79733
|
"lists.outdent": {
|
|
79643
79734
|
memberPath: "lists.outdent",
|
|
@@ -79656,7 +79747,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79656
79747
|
throws: [...T_NOT_FOUND_CAPABLE2, "INVALID_TARGET"]
|
|
79657
79748
|
}),
|
|
79658
79749
|
referenceDocPath: "lists/outdent.mdx",
|
|
79659
|
-
referenceGroup: "lists"
|
|
79750
|
+
referenceGroup: "lists",
|
|
79751
|
+
intentGroup: "list",
|
|
79752
|
+
intentAction: "outdent"
|
|
79660
79753
|
},
|
|
79661
79754
|
"lists.join": {
|
|
79662
79755
|
memberPath: "lists.join",
|
|
@@ -79726,7 +79819,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79726
79819
|
throws: [...T_NOT_FOUND_CAPABLE2, "INVALID_TARGET"]
|
|
79727
79820
|
}),
|
|
79728
79821
|
referenceDocPath: "lists/set-level.mdx",
|
|
79729
|
-
referenceGroup: "lists"
|
|
79822
|
+
referenceGroup: "lists",
|
|
79823
|
+
intentGroup: "list",
|
|
79824
|
+
intentAction: "set_level"
|
|
79730
79825
|
},
|
|
79731
79826
|
"lists.setValue": {
|
|
79732
79827
|
memberPath: "lists.setValue",
|
|
@@ -79877,7 +79972,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
79877
79972
|
]
|
|
79878
79973
|
}),
|
|
79879
79974
|
referenceDocPath: "lists/set-type.mdx",
|
|
79880
|
-
referenceGroup: "lists"
|
|
79975
|
+
referenceGroup: "lists",
|
|
79976
|
+
intentGroup: "list",
|
|
79977
|
+
intentAction: "set_type"
|
|
79881
79978
|
},
|
|
79882
79979
|
"lists.captureTemplate": {
|
|
79883
79980
|
memberPath: "lists.captureTemplate",
|
|
@@ -80083,7 +80180,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80083
80180
|
throws: [...T_NOT_FOUND_CAPABLE2, "INVALID_TARGET"]
|
|
80084
80181
|
}),
|
|
80085
80182
|
referenceDocPath: "comments/create.mdx",
|
|
80086
|
-
referenceGroup: "comments"
|
|
80183
|
+
referenceGroup: "comments",
|
|
80184
|
+
intentGroup: "comment",
|
|
80185
|
+
intentAction: "create"
|
|
80087
80186
|
},
|
|
80088
80187
|
"comments.patch": {
|
|
80089
80188
|
memberPath: "comments.patch",
|
|
@@ -80102,7 +80201,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80102
80201
|
]
|
|
80103
80202
|
}),
|
|
80104
80203
|
referenceDocPath: "comments/patch.mdx",
|
|
80105
|
-
referenceGroup: "comments"
|
|
80204
|
+
referenceGroup: "comments",
|
|
80205
|
+
intentGroup: "comment",
|
|
80206
|
+
intentAction: "update"
|
|
80106
80207
|
},
|
|
80107
80208
|
"comments.delete": {
|
|
80108
80209
|
memberPath: "comments.delete",
|
|
@@ -80117,7 +80218,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80117
80218
|
throws: T_NOT_FOUND_CAPABLE2
|
|
80118
80219
|
}),
|
|
80119
80220
|
referenceDocPath: "comments/delete.mdx",
|
|
80120
|
-
referenceGroup: "comments"
|
|
80221
|
+
referenceGroup: "comments",
|
|
80222
|
+
intentGroup: "comment",
|
|
80223
|
+
intentAction: "delete"
|
|
80121
80224
|
},
|
|
80122
80225
|
"comments.get": {
|
|
80123
80226
|
memberPath: "comments.get",
|
|
@@ -80129,7 +80232,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80129
80232
|
throws: T_NOT_FOUND2
|
|
80130
80233
|
}),
|
|
80131
80234
|
referenceDocPath: "comments/get.mdx",
|
|
80132
|
-
referenceGroup: "comments"
|
|
80235
|
+
referenceGroup: "comments",
|
|
80236
|
+
intentGroup: "comment",
|
|
80237
|
+
intentAction: "get"
|
|
80133
80238
|
},
|
|
80134
80239
|
"comments.list": {
|
|
80135
80240
|
memberPath: "comments.list",
|
|
@@ -80141,7 +80246,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80141
80246
|
throws: ["INVALID_INPUT"]
|
|
80142
80247
|
}),
|
|
80143
80248
|
referenceDocPath: "comments/list.mdx",
|
|
80144
|
-
referenceGroup: "comments"
|
|
80249
|
+
referenceGroup: "comments",
|
|
80250
|
+
intentGroup: "comment",
|
|
80251
|
+
intentAction: "list"
|
|
80145
80252
|
},
|
|
80146
80253
|
"trackChanges.list": {
|
|
80147
80254
|
memberPath: "trackChanges.list",
|
|
@@ -80153,7 +80260,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80153
80260
|
throws: ["INVALID_INPUT"]
|
|
80154
80261
|
}),
|
|
80155
80262
|
referenceDocPath: "track-changes/list.mdx",
|
|
80156
|
-
referenceGroup: "trackChanges"
|
|
80263
|
+
referenceGroup: "trackChanges",
|
|
80264
|
+
intentGroup: "track_changes",
|
|
80265
|
+
intentAction: "list"
|
|
80157
80266
|
},
|
|
80158
80267
|
"trackChanges.get": {
|
|
80159
80268
|
memberPath: "trackChanges.get",
|
|
@@ -80184,7 +80293,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80184
80293
|
]
|
|
80185
80294
|
}),
|
|
80186
80295
|
referenceDocPath: "track-changes/decide.mdx",
|
|
80187
|
-
referenceGroup: "trackChanges"
|
|
80296
|
+
referenceGroup: "trackChanges",
|
|
80297
|
+
intentGroup: "track_changes",
|
|
80298
|
+
intentAction: "decide"
|
|
80188
80299
|
},
|
|
80189
80300
|
"query.match": {
|
|
80190
80301
|
memberPath: "query.match",
|
|
@@ -80198,7 +80309,8 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80198
80309
|
}),
|
|
80199
80310
|
referenceDocPath: "query/match.mdx",
|
|
80200
80311
|
referenceGroup: "query",
|
|
80201
|
-
|
|
80312
|
+
intentGroup: "search",
|
|
80313
|
+
intentAction: "match"
|
|
80202
80314
|
},
|
|
80203
80315
|
"ranges.resolve": {
|
|
80204
80316
|
memberPath: "ranges.resolve",
|
|
@@ -80217,8 +80329,7 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80217
80329
|
deterministicTargetResolution: true
|
|
80218
80330
|
}),
|
|
80219
80331
|
referenceDocPath: "ranges/resolve.mdx",
|
|
80220
|
-
referenceGroup: "ranges"
|
|
80221
|
-
essential: true
|
|
80332
|
+
referenceGroup: "ranges"
|
|
80222
80333
|
},
|
|
80223
80334
|
"mutations.preview": {
|
|
80224
80335
|
memberPath: "mutations.preview",
|
|
@@ -80231,7 +80342,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80231
80342
|
deterministicTargetResolution: true
|
|
80232
80343
|
}),
|
|
80233
80344
|
referenceDocPath: "mutations/preview.mdx",
|
|
80234
|
-
referenceGroup: "mutations"
|
|
80345
|
+
referenceGroup: "mutations",
|
|
80346
|
+
intentGroup: "mutations",
|
|
80347
|
+
intentAction: "preview"
|
|
80235
80348
|
},
|
|
80236
80349
|
"mutations.apply": {
|
|
80237
80350
|
memberPath: "mutations.apply",
|
|
@@ -80254,7 +80367,8 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
80254
80367
|
}),
|
|
80255
80368
|
referenceDocPath: "mutations/apply.mdx",
|
|
80256
80369
|
referenceGroup: "mutations",
|
|
80257
|
-
|
|
80370
|
+
intentGroup: "mutations",
|
|
80371
|
+
intentAction: "apply"
|
|
80258
80372
|
},
|
|
80259
80373
|
"capabilities.get": {
|
|
80260
80374
|
memberPath: "capabilities",
|
|
@@ -81110,7 +81224,8 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
81110
81224
|
}),
|
|
81111
81225
|
referenceDocPath: "history/undo.mdx",
|
|
81112
81226
|
referenceGroup: "history",
|
|
81113
|
-
|
|
81227
|
+
intentGroup: "edit",
|
|
81228
|
+
intentAction: "undo"
|
|
81114
81229
|
},
|
|
81115
81230
|
"history.redo": {
|
|
81116
81231
|
memberPath: "history.redo",
|
|
@@ -81125,7 +81240,9 @@ var init_SuperConverter_voJQZ_PC_es = __esm(() => {
|
|
|
81125
81240
|
throws: ["CAPABILITY_UNAVAILABLE"]
|
|
81126
81241
|
}),
|
|
81127
81242
|
referenceDocPath: "history/redo.mdx",
|
|
81128
|
-
referenceGroup: "history"
|
|
81243
|
+
referenceGroup: "history",
|
|
81244
|
+
intentGroup: "edit",
|
|
81245
|
+
intentAction: "redo"
|
|
81129
81246
|
},
|
|
81130
81247
|
"create.image": {
|
|
81131
81248
|
memberPath: "create.image",
|
|
@@ -110314,7 +110431,7 @@ var init_remark_stringify_D8vxv_XI_es = __esm(() => {
|
|
|
110314
110431
|
eol = /\r?\n|\r/g;
|
|
110315
110432
|
});
|
|
110316
110433
|
|
|
110317
|
-
// ../../packages/superdoc/dist/chunks/DocxZipper-
|
|
110434
|
+
// ../../packages/superdoc/dist/chunks/DocxZipper-DTP6a0rR.es.js
|
|
110318
110435
|
function getLens2(b64) {
|
|
110319
110436
|
var len$1 = b64.length;
|
|
110320
110437
|
if (len$1 % 4 > 0)
|
|
@@ -110950,11 +111067,11 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
110950
111067
|
return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
|
|
110951
111068
|
}
|
|
110952
111069
|
}, DocxZipper_default;
|
|
110953
|
-
var
|
|
111070
|
+
var init_DocxZipper_DTP6a0rR_es = __esm(() => {
|
|
110954
111071
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
110955
111072
|
init_jszip_ChlR43oI_es();
|
|
110956
|
-
|
|
110957
|
-
|
|
111073
|
+
init_xml_js_BtmJ6bNs_es();
|
|
111074
|
+
init_constants_ep1_Gwqi_es();
|
|
110958
111075
|
buffer2 = {};
|
|
110959
111076
|
base64Js2 = {};
|
|
110960
111077
|
base64Js2.byteLength = byteLength2;
|
|
@@ -136053,7 +136170,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
136053
136170
|
init_remark_gfm_z_sDF4ss_es();
|
|
136054
136171
|
});
|
|
136055
136172
|
|
|
136056
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
136173
|
+
// ../../packages/superdoc/dist/chunks/src-DNF-tG2w.es.js
|
|
136057
136174
|
function deleteProps(obj, propOrProps) {
|
|
136058
136175
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
136059
136176
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -185980,6 +186097,28 @@ function isSemanticFootnoteBlockId(blockId) {
|
|
|
185980
186097
|
function isFootnoteBlockId(blockId) {
|
|
185981
186098
|
return typeof blockId === "string" && (blockId.startsWith("footnote-") || isSemanticFootnoteBlockId(blockId));
|
|
185982
186099
|
}
|
|
186100
|
+
function getCommentHighlightThreadIds(target) {
|
|
186101
|
+
if (!(target instanceof Element))
|
|
186102
|
+
return [];
|
|
186103
|
+
const threadIds = target.closest(COMMENT_HIGHLIGHT_SELECTOR)?.getAttribute("data-comment-ids");
|
|
186104
|
+
if (!threadIds)
|
|
186105
|
+
return [];
|
|
186106
|
+
return threadIds.split(",").map((threadId) => threadId.trim()).filter(Boolean);
|
|
186107
|
+
}
|
|
186108
|
+
function getActiveCommentThreadId(editor) {
|
|
186109
|
+
const activeThreadId = CommentsPluginKey.getState(editor.state)?.activeThreadId;
|
|
186110
|
+
if (typeof activeThreadId !== "string" || activeThreadId.length === 0)
|
|
186111
|
+
return null;
|
|
186112
|
+
return activeThreadId;
|
|
186113
|
+
}
|
|
186114
|
+
function shouldIgnoreRepeatClickOnActiveComment(target, activeThreadId) {
|
|
186115
|
+
if (!activeThreadId)
|
|
186116
|
+
return false;
|
|
186117
|
+
const clickedThreadIds = getCommentHighlightThreadIds(target);
|
|
186118
|
+
if (clickedThreadIds.length !== 1)
|
|
186119
|
+
return false;
|
|
186120
|
+
return clickedThreadIds[0] === activeThreadId;
|
|
186121
|
+
}
|
|
185983
186122
|
function isInRegisteredSurface(event) {
|
|
185984
186123
|
const path2 = typeof event.composedPath === "function" ? event.composedPath() : [];
|
|
185985
186124
|
if (path2.length > 0) {
|
|
@@ -200938,6 +201077,16 @@ var Node$13 = class Node$14 {
|
|
|
200938
201077
|
}
|
|
200939
201078
|
containingComments.sort((a2, b$1) => a2.size - b$1.size);
|
|
200940
201079
|
return containingComments[0].commentId;
|
|
201080
|
+
}, selectionContainsThread = (doc$2, selection, threadId) => {
|
|
201081
|
+
if (!selection || !threadId)
|
|
201082
|
+
return false;
|
|
201083
|
+
const { $from, $to } = selection;
|
|
201084
|
+
if ($from.pos !== $to.pos)
|
|
201085
|
+
return false;
|
|
201086
|
+
const range = findRangeById(doc$2, threadId);
|
|
201087
|
+
if (!range)
|
|
201088
|
+
return false;
|
|
201089
|
+
return $from.pos >= range.from && $from.pos < range.to;
|
|
200941
201090
|
}, findTrackedMark = ({ doc: doc$2, from: from$1, to, offset: offset$1 = 1 }) => {
|
|
200942
201091
|
const startPos = Math.max(from$1 - offset$1, 0);
|
|
200943
201092
|
const endPos = Math.min(to + offset$1, doc$2.content.size);
|
|
@@ -213417,7 +213566,7 @@ var Node$13 = class Node$14 {
|
|
|
213417
213566
|
this.#onCursorsUpdate = null;
|
|
213418
213567
|
this.#isSetup = false;
|
|
213419
213568
|
}
|
|
213420
|
-
}, WORD_CHARACTER_REGEX, SEMANTIC_FOOTNOTES_HEADING_BLOCK_ID = "__sd_semantic_footnotes_heading", SEMANTIC_FOOTNOTE_BLOCK_ID_PREFIX = "__sd_semantic_footnote", MULTI_CLICK_TIME_THRESHOLD_MS = 400, MULTI_CLICK_DISTANCE_THRESHOLD_PX = 5, AUTO_SCROLL_EDGE_PX = 32, AUTO_SCROLL_MAX_SPEED_PX = 24, SCROLL_DETECTION_TOLERANCE_PX = 1, clamp = (value, min$2, max$2) => Math.max(min$2, Math.min(max$2, value)), EditorInputManager = class {
|
|
213569
|
+
}, WORD_CHARACTER_REGEX, SEMANTIC_FOOTNOTES_HEADING_BLOCK_ID = "__sd_semantic_footnotes_heading", SEMANTIC_FOOTNOTE_BLOCK_ID_PREFIX = "__sd_semantic_footnote", MULTI_CLICK_TIME_THRESHOLD_MS = 400, MULTI_CLICK_DISTANCE_THRESHOLD_PX = 5, AUTO_SCROLL_EDGE_PX = 32, AUTO_SCROLL_MAX_SPEED_PX = 24, SCROLL_DETECTION_TOLERANCE_PX = 1, COMMENT_HIGHLIGHT_SELECTOR = ".superdoc-comment-highlight", clamp = (value, min$2, max$2) => Math.max(min$2, Math.min(max$2, value)), EditorInputManager = class {
|
|
213421
213570
|
#deps = null;
|
|
213422
213571
|
#callbacks = {};
|
|
213423
213572
|
#isDragging = false;
|
|
@@ -213893,6 +214042,9 @@ var Node$13 = class Node$14 {
|
|
|
213893
214042
|
this.#handleAnnotationClick(event, annotationEl);
|
|
213894
214043
|
return;
|
|
213895
214044
|
}
|
|
214045
|
+
const editor = this.#deps.getEditor();
|
|
214046
|
+
if (this.#handleRepeatClickOnActiveComment(event, target, editor))
|
|
214047
|
+
return;
|
|
213896
214048
|
const layoutState = this.#deps.getLayoutState();
|
|
213897
214049
|
if (!layoutState.layout) {
|
|
213898
214050
|
this.#handleClickWithoutLayout(event, isDraggableAnnotation);
|
|
@@ -213928,7 +214080,6 @@ var Node$13 = class Node$14 {
|
|
|
213928
214080
|
x,
|
|
213929
214081
|
y: y$1
|
|
213930
214082
|
}, viewportHost, event.clientX, event.clientY, pageGeometryHelper ?? undefined);
|
|
213931
|
-
const editor = this.#deps.getEditor();
|
|
213932
214083
|
const doc$2 = editor.state?.doc;
|
|
213933
214084
|
const epochMapper = this.#deps.getEpochMapper();
|
|
213934
214085
|
const mapped = rawHit && doc$2 ? epochMapper.mapPosFromLayoutToCurrentDetailed(rawHit.pos, rawHit.layoutEpoch, 1) : null;
|
|
@@ -214759,6 +214910,18 @@ var Node$13 = class Node$14 {
|
|
|
214759
214910
|
editorDom.focus();
|
|
214760
214911
|
view?.focus();
|
|
214761
214912
|
}
|
|
214913
|
+
#handleRepeatClickOnActiveComment(event, target, editor) {
|
|
214914
|
+
const activeThreadId = getActiveCommentThreadId(editor);
|
|
214915
|
+
if (!shouldIgnoreRepeatClickOnActiveComment(target, activeThreadId))
|
|
214916
|
+
return false;
|
|
214917
|
+
event.preventDefault();
|
|
214918
|
+
this.#focusEditor();
|
|
214919
|
+
editor.emit?.("commentsUpdate", {
|
|
214920
|
+
type: comments_module_events.SELECTED,
|
|
214921
|
+
activeCommentId: activeThreadId
|
|
214922
|
+
});
|
|
214923
|
+
return true;
|
|
214924
|
+
}
|
|
214762
214925
|
}, createDefaultScheduler = () => {
|
|
214763
214926
|
if (typeof window !== "undefined" && typeof window.requestAnimationFrame === "function")
|
|
214764
214927
|
return {
|
|
@@ -221920,16 +222083,16 @@ var Node$13 = class Node$14 {
|
|
|
221920
222083
|
return false;
|
|
221921
222084
|
return Boolean(checker(attrs));
|
|
221922
222085
|
}, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
|
|
221923
|
-
var
|
|
222086
|
+
var init_src_DNF_tG2w_es = __esm(() => {
|
|
221924
222087
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
221925
|
-
|
|
222088
|
+
init_SuperConverter_DBTvnSJQ_es();
|
|
221926
222089
|
init_jszip_ChlR43oI_es();
|
|
221927
222090
|
init_uuid_qzgm05fK_es();
|
|
221928
|
-
|
|
222091
|
+
init_constants_ep1_Gwqi_es();
|
|
221929
222092
|
init_unified_BRHLwnjP_es();
|
|
221930
222093
|
init_remark_gfm_z_sDF4ss_es();
|
|
221931
222094
|
init_remark_stringify_D8vxv_XI_es();
|
|
221932
|
-
|
|
222095
|
+
init_DocxZipper_DTP6a0rR_es();
|
|
221933
222096
|
init_vue_DQHWm9lq_es();
|
|
221934
222097
|
init__plugin_vue_export_helper_HmhZBO0u_es();
|
|
221935
222098
|
init_eventemitter3_DGBTyUUP_es();
|
|
@@ -224491,10 +224654,15 @@ ${err.toString()}`);
|
|
|
224491
224654
|
dispatch(tr);
|
|
224492
224655
|
return true;
|
|
224493
224656
|
},
|
|
224494
|
-
setCursorById: (id2) => ({ state, editor }) => {
|
|
224657
|
+
setCursorById: (id2, options = {}) => ({ state, editor }) => {
|
|
224495
224658
|
const { from: from$1 } = findRangeById(state.doc, id2) || {};
|
|
224496
224659
|
if (from$1 != null) {
|
|
224497
224660
|
state.tr.setSelection(TextSelection2.create(state.doc, from$1));
|
|
224661
|
+
if (options.preferredActiveThreadId)
|
|
224662
|
+
state.tr.setMeta(CommentsPluginKey, {
|
|
224663
|
+
type: "setCursorById",
|
|
224664
|
+
preferredActiveThreadId: options.preferredActiveThreadId
|
|
224665
|
+
});
|
|
224498
224666
|
if (editor.view && typeof editor.view.focus === "function")
|
|
224499
224667
|
editor.view.focus();
|
|
224500
224668
|
return true;
|
|
@@ -224562,6 +224730,8 @@ ${err.toString()}`);
|
|
|
224562
224730
|
let currentActiveThread = getActiveCommentId(newEditorState.doc, selection);
|
|
224563
224731
|
if (trChangedActiveComment)
|
|
224564
224732
|
currentActiveThread = meta2.activeThreadId;
|
|
224733
|
+
if (meta2?.type === "setCursorById" && meta2.preferredActiveThreadId && selectionContainsThread(newEditorState.doc, selection, meta2.preferredActiveThreadId))
|
|
224734
|
+
currentActiveThread = meta2.preferredActiveThreadId;
|
|
224565
224735
|
if (pluginState.activeThreadId !== currentActiveThread) {
|
|
224566
224736
|
pluginState.activeThreadId = currentActiveThread;
|
|
224567
224737
|
const update = {
|
|
@@ -241865,6 +242035,39 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
241865
242035
|
} else
|
|
241866
242036
|
return false;
|
|
241867
242037
|
}
|
|
242038
|
+
scrollThreadAnchorToClientY(threadId, targetClientY, options = {}) {
|
|
242039
|
+
if (!threadId || !Number.isFinite(targetClientY))
|
|
242040
|
+
return false;
|
|
242041
|
+
const threadPosition = this.#collectCommentPositions()[threadId];
|
|
242042
|
+
if (!threadPosition)
|
|
242043
|
+
return false;
|
|
242044
|
+
const currentTop = this.getSelectionBounds(threadPosition.start, threadPosition.end)?.bounds?.top;
|
|
242045
|
+
if (!Number.isFinite(currentTop))
|
|
242046
|
+
return false;
|
|
242047
|
+
const deltaY = currentTop - targetClientY;
|
|
242048
|
+
if (Math.abs(deltaY) < 1)
|
|
242049
|
+
return true;
|
|
242050
|
+
const behavior = options.behavior ?? "auto";
|
|
242051
|
+
const scrollTarget = this.#scrollContainer ?? this.#visibleHost;
|
|
242052
|
+
if (scrollTarget instanceof Window) {
|
|
242053
|
+
const currentScrollY = scrollTarget.scrollY ?? scrollTarget.pageYOffset ?? 0;
|
|
242054
|
+
scrollTarget.scrollTo({
|
|
242055
|
+
top: currentScrollY + deltaY,
|
|
242056
|
+
behavior
|
|
242057
|
+
});
|
|
242058
|
+
return true;
|
|
242059
|
+
}
|
|
242060
|
+
if (scrollTarget instanceof HTMLElement) {
|
|
242061
|
+
const maxScrollTop = Math.max(0, scrollTarget.scrollHeight - scrollTarget.clientHeight);
|
|
242062
|
+
const nextScrollTop = Math.max(0, Math.min(maxScrollTop, scrollTarget.scrollTop + deltaY));
|
|
242063
|
+
scrollTarget.scrollTo({
|
|
242064
|
+
top: nextScrollTop,
|
|
242065
|
+
behavior
|
|
242066
|
+
});
|
|
242067
|
+
return true;
|
|
242068
|
+
}
|
|
242069
|
+
return false;
|
|
242070
|
+
}
|
|
241868
242071
|
#findElementAtPosition(pageEl, pos) {
|
|
241869
242072
|
const elements = Array.from(pageEl.querySelectorAll("[data-pm-start][data-pm-end]"));
|
|
241870
242073
|
let bestMatch = null;
|
|
@@ -243890,18 +244093,32 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
243890
244093
|
}
|
|
243891
244094
|
#applyZoom() {
|
|
243892
244095
|
if (this.#isSemanticFlowMode()) {
|
|
243893
|
-
this.#
|
|
244096
|
+
const zoom$1 = this.#layoutOptions.zoom ?? 1;
|
|
243894
244097
|
this.#viewportHost.style.minWidth = "";
|
|
243895
244098
|
this.#viewportHost.style.minHeight = "";
|
|
243896
|
-
|
|
243897
|
-
|
|
243898
|
-
|
|
243899
|
-
|
|
243900
|
-
|
|
243901
|
-
|
|
243902
|
-
|
|
243903
|
-
|
|
243904
|
-
|
|
244099
|
+
if (zoom$1 === 1) {
|
|
244100
|
+
this.#viewportHost.style.width = "100%";
|
|
244101
|
+
this.#viewportHost.style.transform = "";
|
|
244102
|
+
this.#painterHost.style.width = "100%";
|
|
244103
|
+
this.#painterHost.style.minHeight = "";
|
|
244104
|
+
this.#painterHost.style.transformOrigin = "";
|
|
244105
|
+
this.#painterHost.style.transform = "";
|
|
244106
|
+
this.#selectionOverlay.style.width = "100%";
|
|
244107
|
+
this.#selectionOverlay.style.height = "100%";
|
|
244108
|
+
this.#selectionOverlay.style.transformOrigin = "";
|
|
244109
|
+
this.#selectionOverlay.style.transform = "";
|
|
244110
|
+
} else {
|
|
244111
|
+
this.#viewportHost.style.width = `${100 / zoom$1}%`;
|
|
244112
|
+
this.#viewportHost.style.transform = "";
|
|
244113
|
+
this.#painterHost.style.width = "100%";
|
|
244114
|
+
this.#painterHost.style.minHeight = "";
|
|
244115
|
+
this.#painterHost.style.transformOrigin = "top left";
|
|
244116
|
+
this.#painterHost.style.transform = `scale(${zoom$1})`;
|
|
244117
|
+
this.#selectionOverlay.style.width = "100%";
|
|
244118
|
+
this.#selectionOverlay.style.height = "100%";
|
|
244119
|
+
this.#selectionOverlay.style.transformOrigin = "top left";
|
|
244120
|
+
this.#selectionOverlay.style.transform = `scale(${zoom$1})`;
|
|
244121
|
+
}
|
|
243905
244122
|
return;
|
|
243906
244123
|
}
|
|
243907
244124
|
const zoom = this.#layoutOptions.zoom ?? 1;
|
|
@@ -255770,13 +255987,13 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
255770
255987
|
|
|
255771
255988
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
255772
255989
|
var init_super_editor_es = __esm(() => {
|
|
255773
|
-
|
|
255774
|
-
|
|
255990
|
+
init_src_DNF_tG2w_es();
|
|
255991
|
+
init_SuperConverter_DBTvnSJQ_es();
|
|
255775
255992
|
init_jszip_ChlR43oI_es();
|
|
255776
|
-
|
|
255777
|
-
|
|
255993
|
+
init_xml_js_BtmJ6bNs_es();
|
|
255994
|
+
init_constants_ep1_Gwqi_es();
|
|
255778
255995
|
init_unified_BRHLwnjP_es();
|
|
255779
|
-
|
|
255996
|
+
init_DocxZipper_DTP6a0rR_es();
|
|
255780
255997
|
init_vue_DQHWm9lq_es();
|
|
255781
255998
|
init_eventemitter3_DGBTyUUP_es();
|
|
255782
255999
|
init_zipper_DqXT7uTa_es();
|
|
@@ -259525,7 +259742,7 @@ var init_utilities = __esm(() => {
|
|
|
259525
259742
|
init_clipboardUtils();
|
|
259526
259743
|
});
|
|
259527
259744
|
|
|
259528
|
-
// ../../node_modules/.pnpm/sax@1.
|
|
259745
|
+
// ../../node_modules/.pnpm/sax@1.5.0/node_modules/sax/lib/sax.js
|
|
259529
259746
|
var require_sax2 = __commonJS((exports) => {
|
|
259530
259747
|
(function(sax) {
|
|
259531
259748
|
sax.parser = function(strict, opt) {
|
|
@@ -259580,6 +259797,9 @@ var require_sax2 = __commonJS((exports) => {
|
|
|
259580
259797
|
parser.opt = opt || {};
|
|
259581
259798
|
parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags;
|
|
259582
259799
|
parser.looseCase = parser.opt.lowercase ? "toLowerCase" : "toUpperCase";
|
|
259800
|
+
parser.opt.maxEntityCount = parser.opt.maxEntityCount || 512;
|
|
259801
|
+
parser.opt.maxEntityDepth = parser.opt.maxEntityDepth || 4;
|
|
259802
|
+
parser.entityCount = parser.entityDepth = 0;
|
|
259583
259803
|
parser.tags = [];
|
|
259584
259804
|
parser.closed = parser.closedRoot = parser.sawRoot = false;
|
|
259585
259805
|
parser.tag = parser.error = null;
|
|
@@ -260890,9 +261110,16 @@ Char: ` + parser.c;
|
|
|
260890
261110
|
if (c === ";") {
|
|
260891
261111
|
var parsedEntity = parseEntity(parser);
|
|
260892
261112
|
if (parser.opt.unparsedEntities && !Object.values(sax.XML_ENTITIES).includes(parsedEntity)) {
|
|
261113
|
+
if ((parser.entityCount += 1) > parser.opt.maxEntityCount) {
|
|
261114
|
+
error(parser, "Parsed entity count exceeds max entity count");
|
|
261115
|
+
}
|
|
261116
|
+
if ((parser.entityDepth += 1) > parser.opt.maxEntityDepth) {
|
|
261117
|
+
error(parser, "Parsed entity depth exceeds max entity depth");
|
|
261118
|
+
}
|
|
260893
261119
|
parser.entity = "";
|
|
260894
261120
|
parser.state = returnState;
|
|
260895
261121
|
parser.write(parsedEntity);
|
|
261122
|
+
parser.entityDepth -= 1;
|
|
260896
261123
|
} else {
|
|
260897
261124
|
parser[buffer4] += parsedEntity;
|
|
260898
261125
|
parser.entity = "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.146",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@types/node": "22.19.2",
|
|
22
22
|
"typescript": "^5.9.2",
|
|
23
23
|
"@superdoc/document-api": "0.0.1",
|
|
24
|
-
"@superdoc/pm-adapter": "0.0.0",
|
|
25
24
|
"@superdoc/super-editor": "0.0.1",
|
|
25
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
26
26
|
"superdoc": "1.18.0"
|
|
27
27
|
},
|
|
28
28
|
"module": "src/index.ts",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.
|
|
34
|
-
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.
|
|
35
|
-
"@superdoc-dev/cli-linux-x64": "0.2.0-next.
|
|
36
|
-
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.
|
|
37
|
-
"@superdoc-dev/cli-windows-x64": "0.2.0-next.
|
|
33
|
+
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.146",
|
|
34
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.146",
|
|
35
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.146",
|
|
36
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.146",
|
|
37
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.146"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"dev": "bun run src/index.ts",
|