@superdoc-dev/sdk 1.6.0-next.11 → 1.6.0-next.13

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.
@@ -472,6 +472,7 @@ export interface DocBlocksListParams {
472
472
  offset?: number;
473
473
  limit?: number;
474
474
  nodeTypes?: Array<"paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt">;
475
+ includeText?: boolean;
475
476
  }
476
477
  export interface DocBlocksDeleteParams {
477
478
  doc?: string;
@@ -4724,6 +4725,10 @@ export interface DocMutationsPreviewParams {
4724
4725
  edge: "before" | "after";
4725
4726
  });
4726
4727
  };
4728
+ }) | ({
4729
+ by: "block";
4730
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
4731
+ nodeId: string;
4727
4732
  });
4728
4733
  args: {
4729
4734
  replacement: ({
@@ -4753,7 +4758,7 @@ export interface DocMutationsPreviewParams {
4753
4758
  }) | ({
4754
4759
  id: string;
4755
4760
  op: "text.insert";
4756
- where: {
4761
+ where: ({
4757
4762
  by: "select";
4758
4763
  select: ({
4759
4764
  type: "text";
@@ -4771,7 +4776,50 @@ export interface DocMutationsPreviewParams {
4771
4776
  nodeId: string;
4772
4777
  };
4773
4778
  require: "first" | "exactlyOne";
4774
- };
4779
+ }) | ({
4780
+ by: "ref";
4781
+ ref: string;
4782
+ within?: {
4783
+ kind: "block";
4784
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
4785
+ nodeId: string;
4786
+ };
4787
+ }) | ({
4788
+ by: "target";
4789
+ target: {
4790
+ kind: "selection";
4791
+ start: ({
4792
+ kind: "text";
4793
+ blockId: string;
4794
+ offset: number;
4795
+ }) | ({
4796
+ kind: "nodeEdge";
4797
+ node: {
4798
+ kind: "block";
4799
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4800
+ nodeId: string;
4801
+ };
4802
+ edge: "before" | "after";
4803
+ });
4804
+ end: ({
4805
+ kind: "text";
4806
+ blockId: string;
4807
+ offset: number;
4808
+ }) | ({
4809
+ kind: "nodeEdge";
4810
+ node: {
4811
+ kind: "block";
4812
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4813
+ nodeId: string;
4814
+ };
4815
+ edge: "before" | "after";
4816
+ });
4817
+ };
4818
+ }) | ({
4819
+ by: "block";
4820
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
4821
+ nodeId: string;
4822
+ });
4775
4823
  args: {
4776
4824
  position: "before" | "after";
4777
4825
  content: {
@@ -4849,6 +4897,10 @@ export interface DocMutationsPreviewParams {
4849
4897
  edge: "before" | "after";
4850
4898
  });
4851
4899
  };
4900
+ }) | ({
4901
+ by: "block";
4902
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
4903
+ nodeId: string;
4852
4904
  });
4853
4905
  args: {
4854
4906
  behavior?: "selection" | "exact";
@@ -4913,9 +4965,13 @@ export interface DocMutationsPreviewParams {
4913
4965
  edge: "before" | "after";
4914
4966
  });
4915
4967
  };
4968
+ }) | ({
4969
+ by: "block";
4970
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
4971
+ nodeId: string;
4916
4972
  });
4917
4973
  args: {
4918
- inline: {
4974
+ inline?: {
4919
4975
  bold?: boolean | unknown;
4920
4976
  italic?: boolean | unknown;
4921
4977
  strike?: boolean | unknown;
@@ -4999,6 +5055,8 @@ export interface DocMutationsPreviewParams {
4999
5055
  }>) | unknown;
5000
5056
  contextualAlternates?: boolean | unknown;
5001
5057
  };
5058
+ alignment?: "left" | "center" | "right" | "justify";
5059
+ scope?: "match" | "block";
5002
5060
  };
5003
5061
  }) | ({
5004
5062
  id: string;
@@ -5121,6 +5179,10 @@ export interface DocMutationsApplyParams {
5121
5179
  edge: "before" | "after";
5122
5180
  });
5123
5181
  };
5182
+ }) | ({
5183
+ by: "block";
5184
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5185
+ nodeId: string;
5124
5186
  });
5125
5187
  args: {
5126
5188
  replacement: ({
@@ -5150,7 +5212,7 @@ export interface DocMutationsApplyParams {
5150
5212
  }) | ({
5151
5213
  id: string;
5152
5214
  op: "text.insert";
5153
- where: {
5215
+ where: ({
5154
5216
  by: "select";
5155
5217
  select: ({
5156
5218
  type: "text";
@@ -5168,7 +5230,50 @@ export interface DocMutationsApplyParams {
5168
5230
  nodeId: string;
5169
5231
  };
5170
5232
  require: "first" | "exactlyOne";
5171
- };
5233
+ }) | ({
5234
+ by: "ref";
5235
+ ref: string;
5236
+ within?: {
5237
+ kind: "block";
5238
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5239
+ nodeId: string;
5240
+ };
5241
+ }) | ({
5242
+ by: "target";
5243
+ target: {
5244
+ kind: "selection";
5245
+ start: ({
5246
+ kind: "text";
5247
+ blockId: string;
5248
+ offset: number;
5249
+ }) | ({
5250
+ kind: "nodeEdge";
5251
+ node: {
5252
+ kind: "block";
5253
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
5254
+ nodeId: string;
5255
+ };
5256
+ edge: "before" | "after";
5257
+ });
5258
+ end: ({
5259
+ kind: "text";
5260
+ blockId: string;
5261
+ offset: number;
5262
+ }) | ({
5263
+ kind: "nodeEdge";
5264
+ node: {
5265
+ kind: "block";
5266
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
5267
+ nodeId: string;
5268
+ };
5269
+ edge: "before" | "after";
5270
+ });
5271
+ };
5272
+ }) | ({
5273
+ by: "block";
5274
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5275
+ nodeId: string;
5276
+ });
5172
5277
  args: {
5173
5278
  position: "before" | "after";
5174
5279
  content: {
@@ -5246,6 +5351,10 @@ export interface DocMutationsApplyParams {
5246
5351
  edge: "before" | "after";
5247
5352
  });
5248
5353
  };
5354
+ }) | ({
5355
+ by: "block";
5356
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5357
+ nodeId: string;
5249
5358
  });
5250
5359
  args: {
5251
5360
  behavior?: "selection" | "exact";
@@ -5310,9 +5419,13 @@ export interface DocMutationsApplyParams {
5310
5419
  edge: "before" | "after";
5311
5420
  });
5312
5421
  };
5422
+ }) | ({
5423
+ by: "block";
5424
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5425
+ nodeId: string;
5313
5426
  });
5314
5427
  args: {
5315
- inline: {
5428
+ inline?: {
5316
5429
  bold?: boolean | unknown;
5317
5430
  italic?: boolean | unknown;
5318
5431
  strike?: boolean | unknown;
@@ -5396,6 +5509,8 @@ export interface DocMutationsApplyParams {
5396
5509
  }>) | unknown;
5397
5510
  contextualAlternates?: boolean | unknown;
5398
5511
  };
5512
+ alignment?: "left" | "center" | "right" | "justify";
5513
+ scope?: "match" | "block";
5399
5514
  };
5400
5515
  }) | ({
5401
5516
  id: string;
@@ -9714,6 +9829,7 @@ export type DocBlocksListResult = {
9714
9829
  nodeId: string;
9715
9830
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
9716
9831
  textPreview?: string | null;
9832
+ text?: string | null;
9717
9833
  isEmpty?: boolean;
9718
9834
  styleId?: string | null;
9719
9835
  fontFamily?: string;
@@ -20906,6 +21022,7 @@ export interface DocBlocksListBoundParams {
20906
21022
  offset?: number;
20907
21023
  limit?: number;
20908
21024
  nodeTypes?: Array<"paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt">;
21025
+ includeText?: boolean;
20909
21026
  }
20910
21027
  export interface DocBlocksDeleteBoundParams {
20911
21028
  out?: string;
@@ -24886,6 +25003,10 @@ export interface DocMutationsPreviewBoundParams {
24886
25003
  edge: "before" | "after";
24887
25004
  });
24888
25005
  };
25006
+ }) | ({
25007
+ by: "block";
25008
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25009
+ nodeId: string;
24889
25010
  });
24890
25011
  args: {
24891
25012
  replacement: ({
@@ -24915,7 +25036,7 @@ export interface DocMutationsPreviewBoundParams {
24915
25036
  }) | ({
24916
25037
  id: string;
24917
25038
  op: "text.insert";
24918
- where: {
25039
+ where: ({
24919
25040
  by: "select";
24920
25041
  select: ({
24921
25042
  type: "text";
@@ -24933,7 +25054,50 @@ export interface DocMutationsPreviewBoundParams {
24933
25054
  nodeId: string;
24934
25055
  };
24935
25056
  require: "first" | "exactlyOne";
24936
- };
25057
+ }) | ({
25058
+ by: "ref";
25059
+ ref: string;
25060
+ within?: {
25061
+ kind: "block";
25062
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25063
+ nodeId: string;
25064
+ };
25065
+ }) | ({
25066
+ by: "target";
25067
+ target: {
25068
+ kind: "selection";
25069
+ start: ({
25070
+ kind: "text";
25071
+ blockId: string;
25072
+ offset: number;
25073
+ }) | ({
25074
+ kind: "nodeEdge";
25075
+ node: {
25076
+ kind: "block";
25077
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
25078
+ nodeId: string;
25079
+ };
25080
+ edge: "before" | "after";
25081
+ });
25082
+ end: ({
25083
+ kind: "text";
25084
+ blockId: string;
25085
+ offset: number;
25086
+ }) | ({
25087
+ kind: "nodeEdge";
25088
+ node: {
25089
+ kind: "block";
25090
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
25091
+ nodeId: string;
25092
+ };
25093
+ edge: "before" | "after";
25094
+ });
25095
+ };
25096
+ }) | ({
25097
+ by: "block";
25098
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25099
+ nodeId: string;
25100
+ });
24937
25101
  args: {
24938
25102
  position: "before" | "after";
24939
25103
  content: {
@@ -25011,6 +25175,10 @@ export interface DocMutationsPreviewBoundParams {
25011
25175
  edge: "before" | "after";
25012
25176
  });
25013
25177
  };
25178
+ }) | ({
25179
+ by: "block";
25180
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25181
+ nodeId: string;
25014
25182
  });
25015
25183
  args: {
25016
25184
  behavior?: "selection" | "exact";
@@ -25075,9 +25243,13 @@ export interface DocMutationsPreviewBoundParams {
25075
25243
  edge: "before" | "after";
25076
25244
  });
25077
25245
  };
25246
+ }) | ({
25247
+ by: "block";
25248
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25249
+ nodeId: string;
25078
25250
  });
25079
25251
  args: {
25080
- inline: {
25252
+ inline?: {
25081
25253
  bold?: boolean | unknown;
25082
25254
  italic?: boolean | unknown;
25083
25255
  strike?: boolean | unknown;
@@ -25161,6 +25333,8 @@ export interface DocMutationsPreviewBoundParams {
25161
25333
  }>) | unknown;
25162
25334
  contextualAlternates?: boolean | unknown;
25163
25335
  };
25336
+ alignment?: "left" | "center" | "right" | "justify";
25337
+ scope?: "match" | "block";
25164
25338
  };
25165
25339
  }) | ({
25166
25340
  id: string;
@@ -25281,6 +25455,10 @@ export interface DocMutationsApplyBoundParams {
25281
25455
  edge: "before" | "after";
25282
25456
  });
25283
25457
  };
25458
+ }) | ({
25459
+ by: "block";
25460
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25461
+ nodeId: string;
25284
25462
  });
25285
25463
  args: {
25286
25464
  replacement: ({
@@ -25310,7 +25488,7 @@ export interface DocMutationsApplyBoundParams {
25310
25488
  }) | ({
25311
25489
  id: string;
25312
25490
  op: "text.insert";
25313
- where: {
25491
+ where: ({
25314
25492
  by: "select";
25315
25493
  select: ({
25316
25494
  type: "text";
@@ -25328,7 +25506,50 @@ export interface DocMutationsApplyBoundParams {
25328
25506
  nodeId: string;
25329
25507
  };
25330
25508
  require: "first" | "exactlyOne";
25331
- };
25509
+ }) | ({
25510
+ by: "ref";
25511
+ ref: string;
25512
+ within?: {
25513
+ kind: "block";
25514
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25515
+ nodeId: string;
25516
+ };
25517
+ }) | ({
25518
+ by: "target";
25519
+ target: {
25520
+ kind: "selection";
25521
+ start: ({
25522
+ kind: "text";
25523
+ blockId: string;
25524
+ offset: number;
25525
+ }) | ({
25526
+ kind: "nodeEdge";
25527
+ node: {
25528
+ kind: "block";
25529
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
25530
+ nodeId: string;
25531
+ };
25532
+ edge: "before" | "after";
25533
+ });
25534
+ end: ({
25535
+ kind: "text";
25536
+ blockId: string;
25537
+ offset: number;
25538
+ }) | ({
25539
+ kind: "nodeEdge";
25540
+ node: {
25541
+ kind: "block";
25542
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
25543
+ nodeId: string;
25544
+ };
25545
+ edge: "before" | "after";
25546
+ });
25547
+ };
25548
+ }) | ({
25549
+ by: "block";
25550
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25551
+ nodeId: string;
25552
+ });
25332
25553
  args: {
25333
25554
  position: "before" | "after";
25334
25555
  content: {
@@ -25406,6 +25627,10 @@ export interface DocMutationsApplyBoundParams {
25406
25627
  edge: "before" | "after";
25407
25628
  });
25408
25629
  };
25630
+ }) | ({
25631
+ by: "block";
25632
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25633
+ nodeId: string;
25409
25634
  });
25410
25635
  args: {
25411
25636
  behavior?: "selection" | "exact";
@@ -25470,9 +25695,13 @@ export interface DocMutationsApplyBoundParams {
25470
25695
  edge: "before" | "after";
25471
25696
  });
25472
25697
  };
25698
+ }) | ({
25699
+ by: "block";
25700
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
25701
+ nodeId: string;
25473
25702
  });
25474
25703
  args: {
25475
- inline: {
25704
+ inline?: {
25476
25705
  bold?: boolean | unknown;
25477
25706
  italic?: boolean | unknown;
25478
25707
  strike?: boolean | unknown;
@@ -25556,6 +25785,8 @@ export interface DocMutationsApplyBoundParams {
25556
25785
  }>) | unknown;
25557
25786
  contextualAlternates?: boolean | unknown;
25558
25787
  };
25788
+ alignment?: "left" | "center" | "right" | "justify";
25789
+ scope?: "match" | "block";
25559
25790
  };
25560
25791
  }) | ({
25561
25792
  id: string;