@superdoc-dev/cli 0.3.0-next.28 → 0.3.0-next.29

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.
Files changed (2) hide show
  1. package/dist/index.js +351 -352
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -7327,6 +7327,23 @@ function createSectionBreakResultSchemaFor(operationId) {
7327
7327
  oneOf: [createSectionBreakSuccessSchema, createSectionBreakFailureSchemaFor(operationId)]
7328
7328
  };
7329
7329
  }
7330
+ function rowOperationInputSchema(extraProperties, required = []) {
7331
+ return {
7332
+ oneOf: [
7333
+ objectSchema({ target: tableRowAddressSchema, ...extraProperties }, ["target", ...required]),
7334
+ objectSchema({
7335
+ target: tableAddressSchema,
7336
+ rowIndex: { type: "integer", minimum: 0 },
7337
+ ...extraProperties
7338
+ }, ["target", "rowIndex", ...required]),
7339
+ objectSchema({
7340
+ nodeId: { type: "string" },
7341
+ rowIndex: { type: "integer", minimum: 0 },
7342
+ ...extraProperties
7343
+ }, ["nodeId", "rowIndex", ...required])
7344
+ ]
7345
+ };
7346
+ }
7330
7347
  function supportsImplicitTrueValue(operationId) {
7331
7348
  const key = operationId.slice("format.".length);
7332
7349
  const entry = INLINE_PROPERTY_REGISTRY.find((candidate) => candidate.key === key);
@@ -7713,7 +7730,7 @@ function buildInternalContractSchemas() {
7713
7730
  operations
7714
7731
  };
7715
7732
  }
7716
- var nodeTypeValues, blockNodeTypeValues, deletableBlockNodeTypeValues, inlineNodeTypeValues, knownTargetKindValues, SHARED_DEFS, rangeSchema, positionSchema, inlineAnchorSchema, targetKindSchema, textAddressSchema, textTargetSchema, blockNodeAddressSchema, deletableBlockNodeAddressSchema, paragraphAddressSchema, headingAddressSchema, listItemAddressSchema, paragraphTargetSchema, sectionAddressSchema, inlineNodeAddressSchema, nodeAddressSchema, commentAddressSchema, trackedChangeAddressSchema, entityAddressSchema, selectionTargetSchema, targetLocatorSchema, deleteBehaviorSchema, resolvedHandleSchema, pageInfoSchema, receiptSuccessSchema, textMutationRangeSchema, textMutationResolutionSchema, textMutationSuccessSchema, matchRunSchema, matchBlockSchema, trackChangeRefSchema, createParagraphSuccessSchema, createHeadingSuccessSchema, headingLevelSchema, listsInsertSuccessSchema, listsMutateItemSuccessSchema, listsExitSuccessSchema, nodeSummarySchema, nodeInfoSchema, matchContextSchema, unknownNodeDiagnosticSchema, textSelectorSchema, nodeSelectorSchema, selectorShorthandSchema, sdTextSelectorSchema, sdNodeSelectorSchema, sdSelectorSchema, sdReadOptionsSchema, sdFindInputSchema, sdNodeResultSchema, sdFindResultSchema, sdMutationResolutionSchema, sdMutationSuccessSchema, documentInfoCountsSchema, documentInfoOutlineItemSchema, documentInfoCapabilitiesSchema, documentInfoSchema, listKindSchema, listInsertPositionSchema, listItemInfoSchema, listItemDomainItemSchema, listsListResultSchema, sectionBreakTypeSchema, sectionOrientationSchema, sectionVerticalAlignSchema, sectionDirectionSchema, sectionHeaderFooterKindSchema, sectionHeaderFooterVariantSchema, sectionLineNumberRestartSchema, sectionPageNumberFormatSchema, sectionRangeDomainSchema, sectionPageMarginsSchema, sectionHeaderFooterMarginsSchema, sectionPageSetupSchema, sectionColumnsSchema, sectionLineNumberingSchema, sectionPageNumberingSchema, sectionHeaderFooterRefsSchema, sectionBorderSpecSchema, sectionPageBordersSchema, sectionInfoSchema, sectionResolvedHandleSchema, sectionDomainItemSchema, sectionsListResultSchema, sectionMutationSuccessSchema, documentMutationSuccessSchema, paragraphMutationTargetSchema, paragraphMutationSuccessSchema, createSectionBreakSuccessSchema, commentInfoSchema, commentDomainItemSchema, commentsListResultSchema, trackChangeInfoSchema, trackChangeDomainItemSchema, trackChangesListResultSchema, capabilityReasonCodeSchema, capabilityReasonsSchema, capabilityFlagSchema, operationRuntimeCapabilitySchema, operationCapabilitiesSchema, inlinePropertyCapabilitySchema, inlinePropertyCapabilitiesByKeySchema, formatCapabilitiesSchema, planEngineCapabilitiesSchema, capabilitiesOutputSchema, strictEmptyObjectSchema, sdFragmentSchema, placementSchema, nestingPolicySchema, insertInputSchema, tableLocatorSchema, _tableScopedRowLocatorSchema, _tableScopedColumnLocatorSchema, mergeRangeLocatorSchema, mixedRowLocatorOneOf, tableCreateLocationSchema, tableMutationSuccessSchema, createTableSuccessSchema, tableMutationFailureCodes, tableMutationFailureSchema, tableMutationResultSchema, createTableResultSchema, historyActionSuccessSchema, historyActionFailureSchema, formatInlineAliasOperationSchemas, tocMutationFailureCodes, tocMutationFailureSchema, tocMutationSuccessSchema, tocEntryMutationFailureCodes, tocEntryMutationFailureSchema, tocEntryMutationSuccessSchema, hyperlinkTargetSchema, hyperlinkReadPropertiesSchema, hyperlinkDestinationSchema, hyperlinkSpecSchema, hyperlinkPatchSchema, hyperlinkDomainSchema, hyperlinkMutationSuccessSchema, hyperlinkMutationFailureCodes, hyperlinkMutationFailureSchema, hyperlinkInfoSchema, contentControlTargetSchema, contentControlMutationSuccessSchema, contentControlMutationFailureSchema, ccListResultSchema, ccInfoSchema, refListQuerySchema, discoveryOutputSchema, receiptFailureSchema, refFailureSchema, bookmarkAddressSchema, bookmarkMutation, footnoteAddressSchema, footnoteConfigScopeSchema, footnoteNumberingSchema, footnoteMutation, footnoteConfig, crossRefAddressSchema, crossRefTargetSchema, crossRefDisplaySchema, crossRefMutation, indexAddressSchema, indexEntryAddressSchema, indexConfigSchema, indexEntryDataSchema, indexEntryPatchSchema, indexMutation, indexEntryMutation, captionAddressSchema, captionMutation, captionConfig, fieldAddressSchema, fieldMutation, citationAddressSchema, citationSourceAddressSchema, bibliographyAddressSchema, citationMutation, citationSourceMutation, bibliographyMutation, citationPersonSchema, citationSourceFieldsSchema, tocCreateLocationSchema, authoritiesAddressSchema, authorityEntryAddressSchema, authoritiesConfigSchema, authorityEntryDataSchema, authorityEntryPatchSchema, authoritiesMutation, authorityEntryMutation, diffCoverageSchema, diffSummarySchema, diffSnapshotSchema, diffPayloadSchema, diffApplyResultSchema, operationSchemas;
7733
+ var nodeTypeValues, blockNodeTypeValues, deletableBlockNodeTypeValues, inlineNodeTypeValues, knownTargetKindValues, SHARED_DEFS, rangeSchema, positionSchema, inlineAnchorSchema, targetKindSchema, textAddressSchema, textTargetSchema, blockNodeAddressSchema, deletableBlockNodeAddressSchema, tableAddressSchema, tableRowAddressSchema, tableCellAddressSchema, tableOrCellAddressSchema, paragraphAddressSchema, headingAddressSchema, listItemAddressSchema, paragraphTargetSchema, sectionAddressSchema, inlineNodeAddressSchema, nodeAddressSchema, commentAddressSchema, trackedChangeAddressSchema, entityAddressSchema, selectionTargetSchema, targetLocatorSchema, deleteBehaviorSchema, resolvedHandleSchema, pageInfoSchema, receiptSuccessSchema, textMutationRangeSchema, textMutationResolutionSchema, textMutationSuccessSchema, matchRunSchema, matchBlockSchema, trackChangeRefSchema, createParagraphSuccessSchema, createHeadingSuccessSchema, headingLevelSchema, listsInsertSuccessSchema, listsMutateItemSuccessSchema, listsExitSuccessSchema, nodeSummarySchema, nodeInfoSchema, matchContextSchema, unknownNodeDiagnosticSchema, textSelectorSchema, nodeSelectorSchema, selectorShorthandSchema, sdTextSelectorSchema, sdNodeSelectorSchema, sdSelectorSchema, sdReadOptionsSchema, sdFindInputSchema, sdNodeResultSchema, sdFindResultSchema, sdMutationResolutionSchema, sdMutationSuccessSchema, documentInfoCountsSchema, documentInfoOutlineItemSchema, documentInfoCapabilitiesSchema, documentInfoSchema, listKindSchema, listInsertPositionSchema, listItemInfoSchema, listItemDomainItemSchema, listsListResultSchema, sectionBreakTypeSchema, sectionOrientationSchema, sectionVerticalAlignSchema, sectionDirectionSchema, sectionHeaderFooterKindSchema, sectionHeaderFooterVariantSchema, sectionLineNumberRestartSchema, sectionPageNumberFormatSchema, sectionRangeDomainSchema, sectionPageMarginsSchema, sectionHeaderFooterMarginsSchema, sectionPageSetupSchema, sectionColumnsSchema, sectionLineNumberingSchema, sectionPageNumberingSchema, sectionHeaderFooterRefsSchema, sectionBorderSpecSchema, sectionPageBordersSchema, sectionInfoSchema, sectionResolvedHandleSchema, sectionDomainItemSchema, sectionsListResultSchema, sectionMutationSuccessSchema, documentMutationSuccessSchema, paragraphMutationTargetSchema, paragraphMutationSuccessSchema, createSectionBreakSuccessSchema, commentInfoSchema, commentDomainItemSchema, commentsListResultSchema, trackChangeInfoSchema, trackChangeDomainItemSchema, trackChangesListResultSchema, capabilityReasonCodeSchema, capabilityReasonsSchema, capabilityFlagSchema, operationRuntimeCapabilitySchema, operationCapabilitiesSchema, inlinePropertyCapabilitySchema, inlinePropertyCapabilitiesByKeySchema, formatCapabilitiesSchema, planEngineCapabilitiesSchema, capabilitiesOutputSchema, strictEmptyObjectSchema, sdFragmentSchema, placementSchema, nestingPolicySchema, insertInputSchema, tableLocatorSchema, cellLocatorSchema, tableOrCellLocatorSchema, mergeRangeLocatorSchema, tableCreateLocationSchema, tableMutationSuccessSchema, createTableSuccessSchema, tableMutationFailureCodes, tableMutationFailureSchema, tableMutationResultSchema, createTableResultSchema, historyActionSuccessSchema, historyActionFailureSchema, formatInlineAliasOperationSchemas, tocMutationFailureCodes, tocMutationFailureSchema, tocMutationSuccessSchema, tocEntryMutationFailureCodes, tocEntryMutationFailureSchema, tocEntryMutationSuccessSchema, hyperlinkTargetSchema, hyperlinkReadPropertiesSchema, hyperlinkDestinationSchema, hyperlinkSpecSchema, hyperlinkPatchSchema, hyperlinkDomainSchema, hyperlinkMutationSuccessSchema, hyperlinkMutationFailureCodes, hyperlinkMutationFailureSchema, hyperlinkInfoSchema, contentControlTargetSchema, contentControlMutationSuccessSchema, contentControlMutationFailureSchema, ccListResultSchema, ccInfoSchema, refListQuerySchema, discoveryOutputSchema, receiptFailureSchema, refFailureSchema, bookmarkAddressSchema, bookmarkMutation, footnoteAddressSchema, footnoteConfigScopeSchema, footnoteNumberingSchema, footnoteMutation, footnoteConfig, crossRefAddressSchema, crossRefTargetSchema, crossRefDisplaySchema, crossRefMutation, indexAddressSchema, indexEntryAddressSchema, indexConfigSchema, indexEntryDataSchema, indexEntryPatchSchema, indexMutation, indexEntryMutation, captionAddressSchema, captionMutation, captionConfig, fieldAddressSchema, fieldMutation, citationAddressSchema, citationSourceAddressSchema, bibliographyAddressSchema, citationMutation, citationSourceMutation, bibliographyMutation, citationPersonSchema, citationSourceFieldsSchema, tocCreateLocationSchema, authoritiesAddressSchema, authorityEntryAddressSchema, authoritiesConfigSchema, authorityEntryDataSchema, authorityEntryPatchSchema, authoritiesMutation, authorityEntryMutation, diffCoverageSchema, diffSummarySchema, diffSnapshotSchema, diffPayloadSchema, diffApplyResultSchema, operationSchemas;
7717
7734
  var init_schemas = __esm(() => {
7718
7735
  init_command_catalog();
7719
7736
  init_types2();
@@ -7810,6 +7827,31 @@ var init_schemas = __esm(() => {
7810
7827
  nodeType: { enum: [...deletableBlockNodeTypeValues] },
7811
7828
  nodeId: { type: "string" }
7812
7829
  }, ["kind", "nodeType", "nodeId"]),
7830
+ TableAddress: objectSchema({
7831
+ kind: { const: "block" },
7832
+ nodeType: { const: "table" },
7833
+ nodeId: { type: "string" }
7834
+ }, ["kind", "nodeType", "nodeId"]),
7835
+ TableRowAddress: objectSchema({
7836
+ kind: { const: "block" },
7837
+ nodeType: { const: "tableRow" },
7838
+ nodeId: { type: "string" }
7839
+ }, ["kind", "nodeType", "nodeId"]),
7840
+ TableCellAddress: objectSchema({
7841
+ kind: { const: "block" },
7842
+ nodeType: { const: "tableCell" },
7843
+ nodeId: { type: "string" }
7844
+ }, ["kind", "nodeType", "nodeId"]),
7845
+ TableOrRowAddress: objectSchema({
7846
+ kind: { const: "block" },
7847
+ nodeType: { enum: ["table", "tableRow"] },
7848
+ nodeId: { type: "string" }
7849
+ }, ["kind", "nodeType", "nodeId"]),
7850
+ TableOrCellAddress: objectSchema({
7851
+ kind: { const: "block" },
7852
+ nodeType: { enum: ["table", "tableCell"] },
7853
+ nodeId: { type: "string" }
7854
+ }, ["kind", "nodeType", "nodeId"]),
7813
7855
  ParagraphAddress: objectSchema({
7814
7856
  kind: { const: "block" },
7815
7857
  nodeType: { const: "paragraph" },
@@ -7947,6 +7989,10 @@ var init_schemas = __esm(() => {
7947
7989
  textTargetSchema = ref("TextTarget");
7948
7990
  blockNodeAddressSchema = ref("BlockNodeAddress");
7949
7991
  deletableBlockNodeAddressSchema = ref("DeletableBlockNodeAddress");
7992
+ tableAddressSchema = ref("TableAddress");
7993
+ tableRowAddressSchema = ref("TableRowAddress");
7994
+ tableCellAddressSchema = ref("TableCellAddress");
7995
+ tableOrCellAddressSchema = ref("TableOrCellAddress");
7950
7996
  paragraphAddressSchema = ref("ParagraphAddress");
7951
7997
  headingAddressSchema = ref("HeadingAddress");
7952
7998
  listItemAddressSchema = ref("ListItemAddress");
@@ -8431,31 +8477,29 @@ var init_schemas = __esm(() => {
8431
8477
  };
8432
8478
  tableLocatorSchema = {
8433
8479
  ...objectSchema({
8434
- target: blockNodeAddressSchema,
8480
+ target: tableAddressSchema,
8435
8481
  nodeId: { type: "string" }
8436
8482
  }),
8437
8483
  oneOf: [{ required: ["target"] }, { required: ["nodeId"] }]
8438
8484
  };
8439
- _tableScopedRowLocatorSchema = {
8485
+ cellLocatorSchema = {
8440
8486
  ...objectSchema({
8441
- tableTarget: blockNodeAddressSchema,
8442
- tableNodeId: { type: "string" },
8443
- rowIndex: { type: "integer", minimum: 0 }
8487
+ target: tableCellAddressSchema,
8488
+ nodeId: { type: "string" }
8444
8489
  }),
8445
- oneOf: [{ required: ["tableTarget"] }, { required: ["tableNodeId"] }]
8490
+ oneOf: [{ required: ["target"] }, { required: ["nodeId"] }]
8446
8491
  };
8447
- _tableScopedColumnLocatorSchema = {
8492
+ tableOrCellLocatorSchema = {
8448
8493
  ...objectSchema({
8449
- tableTarget: blockNodeAddressSchema,
8450
- tableNodeId: { type: "string" },
8451
- columnIndex: { type: "integer", minimum: 0 }
8452
- }, ["columnIndex"]),
8453
- oneOf: [{ required: ["tableTarget"] }, { required: ["tableNodeId"] }]
8494
+ target: tableOrCellAddressSchema,
8495
+ nodeId: { type: "string" }
8496
+ }),
8497
+ oneOf: [{ required: ["target"] }, { required: ["nodeId"] }]
8454
8498
  };
8455
8499
  mergeRangeLocatorSchema = {
8456
8500
  ...objectSchema({
8457
- tableTarget: blockNodeAddressSchema,
8458
- tableNodeId: { type: "string" },
8501
+ target: tableAddressSchema,
8502
+ nodeId: { type: "string" },
8459
8503
  start: objectSchema({ rowIndex: { type: "integer", minimum: 0 }, columnIndex: { type: "integer", minimum: 0 } }, [
8460
8504
  "rowIndex",
8461
8505
  "columnIndex"
@@ -8465,14 +8509,8 @@ var init_schemas = __esm(() => {
8465
8509
  "columnIndex"
8466
8510
  ])
8467
8511
  }, ["start", "end"]),
8468
- oneOf: [{ required: ["tableTarget"] }, { required: ["tableNodeId"] }]
8512
+ oneOf: [{ required: ["target"] }, { required: ["nodeId"] }]
8469
8513
  };
8470
- mixedRowLocatorOneOf = [
8471
- { required: ["target"] },
8472
- { required: ["nodeId"] },
8473
- { required: ["tableTarget", "rowIndex"] },
8474
- { required: ["tableNodeId", "rowIndex"] }
8475
- ];
8476
8514
  tableCreateLocationSchema = {
8477
8515
  oneOf: [
8478
8516
  objectSchema({ kind: { const: "documentStart" } }, ["kind"]),
@@ -8485,12 +8523,12 @@ var init_schemas = __esm(() => {
8485
8523
  };
8486
8524
  tableMutationSuccessSchema = objectSchema({
8487
8525
  success: { const: true },
8488
- table: blockNodeAddressSchema,
8526
+ table: tableAddressSchema,
8489
8527
  trackedChangeRefs: arraySchema(entityAddressSchema)
8490
8528
  }, ["success"]);
8491
8529
  createTableSuccessSchema = objectSchema({
8492
8530
  success: { const: true },
8493
- table: blockNodeAddressSchema,
8531
+ table: tableAddressSchema,
8494
8532
  trackedChangeRefs: arraySchema(entityAddressSchema)
8495
8533
  }, ["success", "table"]);
8496
8534
  tableMutationFailureCodes = ["NO_OP", "INVALID_TARGET", "TARGET_NOT_FOUND", "CAPABILITY_UNAVAILABLE"];
@@ -10442,7 +10480,7 @@ var init_schemas = __esm(() => {
10442
10480
  "tables.move": {
10443
10481
  input: {
10444
10482
  ...objectSchema({
10445
- target: blockNodeAddressSchema,
10483
+ target: tableAddressSchema,
10446
10484
  nodeId: { type: "string" },
10447
10485
  destination: tableCreateLocationSchema
10448
10486
  }, ["destination"]),
@@ -10455,7 +10493,7 @@ var init_schemas = __esm(() => {
10455
10493
  "tables.split": {
10456
10494
  input: {
10457
10495
  ...objectSchema({
10458
- target: blockNodeAddressSchema,
10496
+ target: tableAddressSchema,
10459
10497
  nodeId: { type: "string" },
10460
10498
  atRowIndex: { type: "integer", minimum: 1 }
10461
10499
  }, ["atRowIndex"]),
@@ -10468,7 +10506,7 @@ var init_schemas = __esm(() => {
10468
10506
  "tables.convertToText": {
10469
10507
  input: {
10470
10508
  ...objectSchema({
10471
- target: blockNodeAddressSchema,
10509
+ target: tableAddressSchema,
10472
10510
  nodeId: { type: "string" },
10473
10511
  delimiter: { enum: ["tab", "comma", "paragraph"] }
10474
10512
  }),
@@ -10481,7 +10519,7 @@ var init_schemas = __esm(() => {
10481
10519
  "tables.setLayout": {
10482
10520
  input: {
10483
10521
  ...objectSchema({
10484
- target: blockNodeAddressSchema,
10522
+ target: tableAddressSchema,
10485
10523
  nodeId: { type: "string" },
10486
10524
  preferredWidth: { type: "number" },
10487
10525
  alignment: { enum: ["left", "center", "right"] },
@@ -10496,50 +10534,25 @@ var init_schemas = __esm(() => {
10496
10534
  failure: tableMutationFailureSchema
10497
10535
  },
10498
10536
  "tables.insertRow": {
10499
- input: {
10500
- ...objectSchema({
10501
- target: blockNodeAddressSchema,
10502
- nodeId: { type: "string" },
10503
- tableTarget: blockNodeAddressSchema,
10504
- tableNodeId: { type: "string" },
10505
- rowIndex: { type: "integer", minimum: 0 },
10506
- position: { enum: ["above", "below"] },
10507
- count: { type: "integer", minimum: 1 }
10508
- }, ["position"]),
10509
- oneOf: mixedRowLocatorOneOf
10510
- },
10537
+ input: rowOperationInputSchema({
10538
+ position: { enum: ["above", "below"] },
10539
+ count: { type: "integer", minimum: 1 }
10540
+ }, ["position"]),
10511
10541
  output: tableMutationResultSchema,
10512
10542
  success: tableMutationSuccessSchema,
10513
10543
  failure: tableMutationFailureSchema
10514
10544
  },
10515
10545
  "tables.deleteRow": {
10516
- input: {
10517
- ...objectSchema({
10518
- target: blockNodeAddressSchema,
10519
- nodeId: { type: "string" },
10520
- tableTarget: blockNodeAddressSchema,
10521
- tableNodeId: { type: "string" },
10522
- rowIndex: { type: "integer", minimum: 0 }
10523
- }),
10524
- oneOf: mixedRowLocatorOneOf
10525
- },
10546
+ input: rowOperationInputSchema({}),
10526
10547
  output: tableMutationResultSchema,
10527
10548
  success: tableMutationSuccessSchema,
10528
10549
  failure: tableMutationFailureSchema
10529
10550
  },
10530
10551
  "tables.setRowHeight": {
10531
- input: {
10532
- ...objectSchema({
10533
- target: blockNodeAddressSchema,
10534
- nodeId: { type: "string" },
10535
- tableTarget: blockNodeAddressSchema,
10536
- tableNodeId: { type: "string" },
10537
- rowIndex: { type: "integer", minimum: 0 },
10538
- heightPt: { type: "number", exclusiveMinimum: 0 },
10539
- rule: { enum: ["atLeast", "exact", "auto"] }
10540
- }, ["heightPt", "rule"]),
10541
- oneOf: mixedRowLocatorOneOf
10542
- },
10552
+ input: rowOperationInputSchema({
10553
+ heightPt: { type: "number", exclusiveMinimum: 0 },
10554
+ rule: { enum: ["atLeast", "exact", "auto"] }
10555
+ }, ["heightPt", "rule"]),
10543
10556
  output: tableMutationResultSchema,
10544
10557
  success: tableMutationSuccessSchema,
10545
10558
  failure: tableMutationFailureSchema
@@ -10551,18 +10564,10 @@ var init_schemas = __esm(() => {
10551
10564
  failure: tableMutationFailureSchema
10552
10565
  },
10553
10566
  "tables.setRowOptions": {
10554
- input: {
10555
- ...objectSchema({
10556
- target: blockNodeAddressSchema,
10557
- nodeId: { type: "string" },
10558
- tableTarget: blockNodeAddressSchema,
10559
- tableNodeId: { type: "string" },
10560
- rowIndex: { type: "integer", minimum: 0 },
10561
- allowBreakAcrossPages: { type: "boolean" },
10562
- repeatHeader: { type: "boolean" }
10563
- }),
10564
- oneOf: mixedRowLocatorOneOf
10565
- },
10567
+ input: rowOperationInputSchema({
10568
+ allowBreakAcrossPages: { type: "boolean" },
10569
+ repeatHeader: { type: "boolean" }
10570
+ }),
10566
10571
  output: tableMutationResultSchema,
10567
10572
  success: tableMutationSuccessSchema,
10568
10573
  failure: tableMutationFailureSchema
@@ -10570,13 +10575,13 @@ var init_schemas = __esm(() => {
10570
10575
  "tables.insertColumn": {
10571
10576
  input: {
10572
10577
  ...objectSchema({
10573
- tableTarget: blockNodeAddressSchema,
10574
- tableNodeId: { type: "string" },
10578
+ target: tableAddressSchema,
10579
+ nodeId: { type: "string" },
10575
10580
  columnIndex: { type: "integer", minimum: 0 },
10576
10581
  position: { enum: ["left", "right"] },
10577
10582
  count: { type: "integer", minimum: 1 }
10578
10583
  }, ["columnIndex", "position"]),
10579
- oneOf: [{ required: ["tableTarget"] }, { required: ["tableNodeId"] }]
10584
+ oneOf: [{ required: ["target"] }, { required: ["nodeId"] }]
10580
10585
  },
10581
10586
  output: tableMutationResultSchema,
10582
10587
  success: tableMutationSuccessSchema,
@@ -10585,11 +10590,11 @@ var init_schemas = __esm(() => {
10585
10590
  "tables.deleteColumn": {
10586
10591
  input: {
10587
10592
  ...objectSchema({
10588
- tableTarget: blockNodeAddressSchema,
10589
- tableNodeId: { type: "string" },
10593
+ target: tableAddressSchema,
10594
+ nodeId: { type: "string" },
10590
10595
  columnIndex: { type: "integer", minimum: 0 }
10591
10596
  }, ["columnIndex"]),
10592
- oneOf: [{ required: ["tableTarget"] }, { required: ["tableNodeId"] }]
10597
+ oneOf: [{ required: ["target"] }, { required: ["nodeId"] }]
10593
10598
  },
10594
10599
  output: tableMutationResultSchema,
10595
10600
  success: tableMutationSuccessSchema,
@@ -10598,12 +10603,12 @@ var init_schemas = __esm(() => {
10598
10603
  "tables.setColumnWidth": {
10599
10604
  input: {
10600
10605
  ...objectSchema({
10601
- tableTarget: blockNodeAddressSchema,
10602
- tableNodeId: { type: "string" },
10606
+ target: tableAddressSchema,
10607
+ nodeId: { type: "string" },
10603
10608
  columnIndex: { type: "integer", minimum: 0 },
10604
10609
  widthPt: { type: "number", exclusiveMinimum: 0 }
10605
10610
  }, ["columnIndex", "widthPt"]),
10606
- oneOf: [{ required: ["tableTarget"] }, { required: ["tableNodeId"] }]
10611
+ oneOf: [{ required: ["target"] }, { required: ["nodeId"] }]
10607
10612
  },
10608
10613
  output: tableMutationResultSchema,
10609
10614
  success: tableMutationSuccessSchema,
@@ -10612,7 +10617,7 @@ var init_schemas = __esm(() => {
10612
10617
  "tables.distributeColumns": {
10613
10618
  input: {
10614
10619
  ...objectSchema({
10615
- target: blockNodeAddressSchema,
10620
+ target: tableAddressSchema,
10616
10621
  nodeId: { type: "string" },
10617
10622
  columnRange: objectSchema({ start: { type: "integer", minimum: 0 }, end: { type: "integer", minimum: 0 } }, [
10618
10623
  "start",
@@ -10628,7 +10633,7 @@ var init_schemas = __esm(() => {
10628
10633
  "tables.insertCell": {
10629
10634
  input: {
10630
10635
  ...objectSchema({
10631
- target: blockNodeAddressSchema,
10636
+ target: tableCellAddressSchema,
10632
10637
  nodeId: { type: "string" },
10633
10638
  mode: { enum: ["shiftRight", "shiftDown"] }
10634
10639
  }, ["mode"]),
@@ -10641,7 +10646,7 @@ var init_schemas = __esm(() => {
10641
10646
  "tables.deleteCell": {
10642
10647
  input: {
10643
10648
  ...objectSchema({
10644
- target: blockNodeAddressSchema,
10649
+ target: tableCellAddressSchema,
10645
10650
  nodeId: { type: "string" },
10646
10651
  mode: { enum: ["shiftLeft", "shiftUp"] }
10647
10652
  }, ["mode"]),
@@ -10658,7 +10663,7 @@ var init_schemas = __esm(() => {
10658
10663
  failure: tableMutationFailureSchema
10659
10664
  },
10660
10665
  "tables.unmergeCells": {
10661
- input: tableLocatorSchema,
10666
+ input: cellLocatorSchema,
10662
10667
  output: tableMutationResultSchema,
10663
10668
  success: tableMutationSuccessSchema,
10664
10669
  failure: tableMutationFailureSchema
@@ -10666,7 +10671,7 @@ var init_schemas = __esm(() => {
10666
10671
  "tables.splitCell": {
10667
10672
  input: {
10668
10673
  ...objectSchema({
10669
- target: blockNodeAddressSchema,
10674
+ target: tableCellAddressSchema,
10670
10675
  nodeId: { type: "string" },
10671
10676
  rows: { type: "integer", minimum: 1 },
10672
10677
  columns: { type: "integer", minimum: 1 }
@@ -10680,7 +10685,7 @@ var init_schemas = __esm(() => {
10680
10685
  "tables.setCellProperties": {
10681
10686
  input: {
10682
10687
  ...objectSchema({
10683
- target: blockNodeAddressSchema,
10688
+ target: tableCellAddressSchema,
10684
10689
  nodeId: { type: "string" },
10685
10690
  preferredWidthPt: { type: "number" },
10686
10691
  verticalAlign: { enum: ["top", "center", "bottom"] },
@@ -10696,7 +10701,7 @@ var init_schemas = __esm(() => {
10696
10701
  "tables.sort": {
10697
10702
  input: {
10698
10703
  ...objectSchema({
10699
- target: blockNodeAddressSchema,
10704
+ target: tableAddressSchema,
10700
10705
  nodeId: { type: "string" },
10701
10706
  keys: arraySchema(objectSchema({
10702
10707
  columnIndex: { type: "integer", minimum: 0 },
@@ -10713,7 +10718,7 @@ var init_schemas = __esm(() => {
10713
10718
  "tables.setAltText": {
10714
10719
  input: {
10715
10720
  ...objectSchema({
10716
- target: blockNodeAddressSchema,
10721
+ target: tableAddressSchema,
10717
10722
  nodeId: { type: "string" },
10718
10723
  title: { type: "string" },
10719
10724
  description: { type: "string" }
@@ -10727,7 +10732,7 @@ var init_schemas = __esm(() => {
10727
10732
  "tables.setStyle": {
10728
10733
  input: {
10729
10734
  ...objectSchema({
10730
- target: blockNodeAddressSchema,
10735
+ target: tableAddressSchema,
10731
10736
  nodeId: { type: "string" },
10732
10737
  styleId: { type: "string" }
10733
10738
  }, ["styleId"]),
@@ -10746,7 +10751,7 @@ var init_schemas = __esm(() => {
10746
10751
  "tables.setStyleOption": {
10747
10752
  input: {
10748
10753
  ...objectSchema({
10749
- target: blockNodeAddressSchema,
10754
+ target: tableAddressSchema,
10750
10755
  nodeId: { type: "string" },
10751
10756
  flag: { enum: ["headerRow", "totalRow", "firstColumn", "lastColumn", "bandedRows", "bandedColumns"] },
10752
10757
  enabled: { type: "boolean" }
@@ -10760,7 +10765,7 @@ var init_schemas = __esm(() => {
10760
10765
  "tables.setBorder": {
10761
10766
  input: {
10762
10767
  ...objectSchema({
10763
- target: blockNodeAddressSchema,
10768
+ target: tableOrCellAddressSchema,
10764
10769
  nodeId: { type: "string" },
10765
10770
  edge: { enum: ["top", "bottom", "left", "right", "insideH", "insideV", "diagonalDown", "diagonalUp"] },
10766
10771
  lineStyle: { type: "string" },
@@ -10776,7 +10781,7 @@ var init_schemas = __esm(() => {
10776
10781
  "tables.clearBorder": {
10777
10782
  input: {
10778
10783
  ...objectSchema({
10779
- target: blockNodeAddressSchema,
10784
+ target: tableOrCellAddressSchema,
10780
10785
  nodeId: { type: "string" },
10781
10786
  edge: { enum: ["top", "bottom", "left", "right", "insideH", "insideV", "diagonalDown", "diagonalUp"] }
10782
10787
  }, ["edge"]),
@@ -10789,7 +10794,7 @@ var init_schemas = __esm(() => {
10789
10794
  "tables.applyBorderPreset": {
10790
10795
  input: {
10791
10796
  ...objectSchema({
10792
- target: blockNodeAddressSchema,
10797
+ target: tableAddressSchema,
10793
10798
  nodeId: { type: "string" },
10794
10799
  preset: { enum: ["box", "all", "none", "grid", "custom"] }
10795
10800
  }, ["preset"]),
@@ -10802,7 +10807,7 @@ var init_schemas = __esm(() => {
10802
10807
  "tables.setShading": {
10803
10808
  input: {
10804
10809
  ...objectSchema({
10805
- target: blockNodeAddressSchema,
10810
+ target: tableOrCellAddressSchema,
10806
10811
  nodeId: { type: "string" },
10807
10812
  color: { type: "string", pattern: "^([0-9A-Fa-f]{6}|auto)$" }
10808
10813
  }, ["color"]),
@@ -10813,7 +10818,7 @@ var init_schemas = __esm(() => {
10813
10818
  failure: tableMutationFailureSchema
10814
10819
  },
10815
10820
  "tables.clearShading": {
10816
- input: tableLocatorSchema,
10821
+ input: tableOrCellLocatorSchema,
10817
10822
  output: tableMutationResultSchema,
10818
10823
  success: tableMutationSuccessSchema,
10819
10824
  failure: tableMutationFailureSchema
@@ -10821,7 +10826,7 @@ var init_schemas = __esm(() => {
10821
10826
  "tables.setTablePadding": {
10822
10827
  input: {
10823
10828
  ...objectSchema({
10824
- target: blockNodeAddressSchema,
10829
+ target: tableAddressSchema,
10825
10830
  nodeId: { type: "string" },
10826
10831
  topPt: { type: "number", minimum: 0 },
10827
10832
  rightPt: { type: "number", minimum: 0 },
@@ -10837,7 +10842,7 @@ var init_schemas = __esm(() => {
10837
10842
  "tables.setCellPadding": {
10838
10843
  input: {
10839
10844
  ...objectSchema({
10840
- target: blockNodeAddressSchema,
10845
+ target: tableCellAddressSchema,
10841
10846
  nodeId: { type: "string" },
10842
10847
  topPt: { type: "number", minimum: 0 },
10843
10848
  rightPt: { type: "number", minimum: 0 },
@@ -10853,7 +10858,7 @@ var init_schemas = __esm(() => {
10853
10858
  "tables.setCellSpacing": {
10854
10859
  input: {
10855
10860
  ...objectSchema({
10856
- target: blockNodeAddressSchema,
10861
+ target: tableAddressSchema,
10857
10862
  nodeId: { type: "string" },
10858
10863
  spacingPt: { type: "number", minimum: 0 }
10859
10864
  }, ["spacingPt"]),
@@ -10873,7 +10878,7 @@ var init_schemas = __esm(() => {
10873
10878
  input: tableLocatorSchema,
10874
10879
  output: objectSchema({
10875
10880
  nodeId: { type: "string" },
10876
- address: blockNodeAddressSchema,
10881
+ address: tableAddressSchema,
10877
10882
  rows: { type: "integer", minimum: 0 },
10878
10883
  columns: { type: "integer", minimum: 0 }
10879
10884
  }, ["nodeId", "address", "rows", "columns"])
@@ -10881,7 +10886,7 @@ var init_schemas = __esm(() => {
10881
10886
  "tables.getCells": {
10882
10887
  input: {
10883
10888
  ...objectSchema({
10884
- target: blockNodeAddressSchema,
10889
+ target: tableAddressSchema,
10885
10890
  nodeId: { type: "string" },
10886
10891
  rowIndex: { type: "integer", minimum: 0 },
10887
10892
  columnIndex: { type: "integer", minimum: 0 }
@@ -10889,7 +10894,8 @@ var init_schemas = __esm(() => {
10889
10894
  oneOf: [{ required: ["target"] }, { required: ["nodeId"] }]
10890
10895
  },
10891
10896
  output: objectSchema({
10892
- tableNodeId: { type: "string" },
10897
+ nodeId: { type: "string" },
10898
+ address: tableAddressSchema,
10893
10899
  cells: {
10894
10900
  type: "array",
10895
10901
  items: objectSchema({
@@ -10900,12 +10906,13 @@ var init_schemas = __esm(() => {
10900
10906
  rowspan: { type: "integer", minimum: 1 }
10901
10907
  }, ["nodeId", "rowIndex", "columnIndex", "colspan", "rowspan"])
10902
10908
  }
10903
- }, ["tableNodeId", "cells"])
10909
+ }, ["nodeId", "address", "cells"])
10904
10910
  },
10905
10911
  "tables.getProperties": {
10906
10912
  input: tableLocatorSchema,
10907
10913
  output: objectSchema({
10908
10914
  nodeId: { type: "string" },
10915
+ address: tableAddressSchema,
10909
10916
  styleId: { type: "string" },
10910
10917
  alignment: { enum: ["left", "center", "right"] },
10911
10918
  direction: { enum: ["ltr", "rtl"] },
@@ -10919,7 +10926,7 @@ var init_schemas = __esm(() => {
10919
10926
  bandedRows: { type: "boolean" },
10920
10927
  bandedColumns: { type: "boolean" }
10921
10928
  })
10922
- }, ["nodeId"])
10929
+ }, ["nodeId", "address"])
10923
10930
  },
10924
10931
  "tables.getStyles": {
10925
10932
  input: strictEmptyObjectSchema,
@@ -14318,6 +14325,9 @@ var init_diff = __esm(() => {
14318
14325
  });
14319
14326
 
14320
14327
  // ../../packages/document-api/src/tables/tables.ts
14328
+ function isObjectRecord(value) {
14329
+ return typeof value === "object" && value !== null && !Array.isArray(value);
14330
+ }
14321
14331
  function validateTableLocator(input, operationName) {
14322
14332
  const hasTarget = input.target !== undefined;
14323
14333
  const hasNodeId = input.nodeId !== undefined;
@@ -14334,31 +14344,21 @@ function validateTableLocator(input, operationName) {
14334
14344
  });
14335
14345
  }
14336
14346
  }
14337
- function validateTableScopedLocator(input, operationName) {
14338
- const hasTarget = input.tableTarget !== undefined;
14339
- const hasNodeId = input.tableNodeId !== undefined;
14340
- if (hasTarget && hasNodeId) {
14341
- throw new DocumentApiValidationError("INVALID_TARGET", `Cannot combine tableTarget with tableNodeId on ${operationName} request. Use exactly one locator mode.`, { fields: ["tableTarget", "tableNodeId"] });
14342
- }
14343
- if (!hasTarget && !hasNodeId) {
14344
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} requires a table target. Provide either tableTarget or tableNodeId.`);
14347
+ function validateRowLocator(input, operationName) {
14348
+ validateTableLocator(input, operationName);
14349
+ if (input.nodeId != null) {
14350
+ if (input.rowIndex == null) {
14351
+ throw new DocumentApiValidationError("INVALID_TARGET", `${operationName}: rowIndex is required when using nodeId for row operations. ` + `Use target to address a row directly, or pass nodeId + rowIndex to address a row within a table.`);
14352
+ }
14353
+ return;
14345
14354
  }
14346
- if (hasNodeId && typeof input.tableNodeId !== "string") {
14347
- throw new DocumentApiValidationError("INVALID_TARGET", `tableNodeId must be a string, got ${typeof input.tableNodeId}.`, { field: "tableNodeId", value: input.tableNodeId });
14355
+ if (!isObjectRecord(input.target) || input.target.kind !== "block")
14356
+ return;
14357
+ if (input.target.nodeType === "table" && input.rowIndex == null) {
14358
+ throw new DocumentApiValidationError("INVALID_TARGET", `${operationName}: rowIndex is required when target is a table.`);
14348
14359
  }
14349
- }
14350
- function validateRowLocator(input, operationName) {
14351
- const hasDirect = input.target !== undefined || input.nodeId !== undefined;
14352
- const hasTableScoped = input.tableTarget !== undefined || input.tableNodeId !== undefined;
14353
- if (hasDirect && hasTableScoped) {
14354
- throw new DocumentApiValidationError("INVALID_TARGET", `Cannot combine direct row locator (target/nodeId) with table-scoped locator (tableTarget/tableNodeId) on ${operationName} request.`);
14355
- }
14356
- if (hasDirect) {
14357
- validateTableLocator(input, operationName);
14358
- } else if (hasTableScoped) {
14359
- validateTableScopedLocator(input, operationName);
14360
- } else {
14361
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} requires a row target. Provide target, nodeId, or tableTarget/tableNodeId + rowIndex.`);
14360
+ if (input.target.nodeType === "tableRow" && input.rowIndex != null) {
14361
+ throw new DocumentApiValidationError("INVALID_TARGET", `${operationName}: rowIndex must not be provided when target is a row node. ` + `Either pass a table target with rowIndex, or pass a row target without rowIndex.`);
14362
14362
  }
14363
14363
  }
14364
14364
  function executeTableLocatorOp(operationName, adapter, input, options) {
@@ -14369,14 +14369,6 @@ function executeRowLocatorOp(operationName, adapter, input, options) {
14369
14369
  validateRowLocator(input, operationName);
14370
14370
  return adapter(input, normalizeMutationOptions(options));
14371
14371
  }
14372
- function executeColumnLocatorOp(operationName, adapter, input, options) {
14373
- validateTableScopedLocator(input, operationName);
14374
- return adapter(input, normalizeMutationOptions(options));
14375
- }
14376
- function executeMergeRangeLocatorOp(operationName, adapter, input, options) {
14377
- validateTableScopedLocator(input, operationName);
14378
- return adapter(input, normalizeMutationOptions(options));
14379
- }
14380
14372
  function executeDocumentLevelTableOp(adapter, input, options) {
14381
14373
  return adapter(input, normalizeMutationOptions(options));
14382
14374
  }
@@ -16369,13 +16361,13 @@ function createDocumentApi(adapters) {
16369
16361
  return executeRowLocatorOp("tables.setRowOptions", adapters.tables.setRowOptions.bind(adapters.tables), input, options);
16370
16362
  },
16371
16363
  insertColumn(input, options) {
16372
- return executeColumnLocatorOp("tables.insertColumn", adapters.tables.insertColumn.bind(adapters.tables), input, options);
16364
+ return executeTableLocatorOp("tables.insertColumn", adapters.tables.insertColumn.bind(adapters.tables), input, options);
16373
16365
  },
16374
16366
  deleteColumn(input, options) {
16375
- return executeColumnLocatorOp("tables.deleteColumn", adapters.tables.deleteColumn.bind(adapters.tables), input, options);
16367
+ return executeTableLocatorOp("tables.deleteColumn", adapters.tables.deleteColumn.bind(adapters.tables), input, options);
16376
16368
  },
16377
16369
  setColumnWidth(input, options) {
16378
- return executeColumnLocatorOp("tables.setColumnWidth", adapters.tables.setColumnWidth.bind(adapters.tables), input, options);
16370
+ return executeTableLocatorOp("tables.setColumnWidth", adapters.tables.setColumnWidth.bind(adapters.tables), input, options);
16379
16371
  },
16380
16372
  distributeColumns(input, options) {
16381
16373
  return executeTableLocatorOp("tables.distributeColumns", adapters.tables.distributeColumns.bind(adapters.tables), input, options);
@@ -16387,7 +16379,7 @@ function createDocumentApi(adapters) {
16387
16379
  return executeTableLocatorOp("tables.deleteCell", adapters.tables.deleteCell.bind(adapters.tables), input, options);
16388
16380
  },
16389
16381
  mergeCells(input, options) {
16390
- return executeMergeRangeLocatorOp("tables.mergeCells", adapters.tables.mergeCells.bind(adapters.tables), input, options);
16382
+ return executeTableLocatorOp("tables.mergeCells", adapters.tables.mergeCells.bind(adapters.tables), input, options);
16391
16383
  },
16392
16384
  unmergeCells(input, options) {
16393
16385
  return executeTableLocatorOp("tables.unmergeCells", adapters.tables.unmergeCells.bind(adapters.tables), input, options);
@@ -39333,7 +39325,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
39333
39325
  emptyOptions2 = {};
39334
39326
  });
39335
39327
 
39336
- // ../../packages/superdoc/dist/chunks/SuperConverter-hOU3ez7P.es.js
39328
+ // ../../packages/superdoc/dist/chunks/SuperConverter-DAceeh2o.es.js
39337
39329
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
39338
39330
  const fieldValue = extension$1.config[field];
39339
39331
  if (typeof fieldValue === "function")
@@ -41223,6 +41215,38 @@ function createSectionBreakFailureSchemaFor2(operationId) {
41223
41215
  function createSectionBreakResultSchemaFor2(operationId) {
41224
41216
  return { oneOf: [createSectionBreakSuccessSchema2, createSectionBreakFailureSchemaFor2(operationId)] };
41225
41217
  }
41218
+ function rowOperationInputSchema2(extraProperties, required = []) {
41219
+ return { oneOf: [
41220
+ objectSchema2({
41221
+ target: tableRowAddressSchema2,
41222
+ ...extraProperties
41223
+ }, ["target", ...required]),
41224
+ objectSchema2({
41225
+ target: tableAddressSchema2,
41226
+ rowIndex: {
41227
+ type: "integer",
41228
+ minimum: 0
41229
+ },
41230
+ ...extraProperties
41231
+ }, [
41232
+ "target",
41233
+ "rowIndex",
41234
+ ...required
41235
+ ]),
41236
+ objectSchema2({
41237
+ nodeId: { type: "string" },
41238
+ rowIndex: {
41239
+ type: "integer",
41240
+ minimum: 0
41241
+ },
41242
+ ...extraProperties
41243
+ }, [
41244
+ "nodeId",
41245
+ "rowIndex",
41246
+ ...required
41247
+ ])
41248
+ ] };
41249
+ }
41226
41250
  function supportsImplicitTrueValue2(operationId) {
41227
41251
  const key = operationId.slice(7);
41228
41252
  const entry = INLINE_PROPERTY_REGISTRY2.find((candidate) => candidate.key === key);
@@ -43434,6 +43458,9 @@ function executeDiffApply2(adapter, input, options) {
43434
43458
  validateDiffPayloadWrapper2(input?.diff);
43435
43459
  return adapter.apply(input, options);
43436
43460
  }
43461
+ function isObjectRecord2(value) {
43462
+ return typeof value === "object" && value !== null && !Array.isArray(value);
43463
+ }
43437
43464
  function validateTableLocator2(input, operationName) {
43438
43465
  const hasTarget = input.target !== undefined;
43439
43466
  const hasNodeId = input.nodeId !== undefined;
@@ -43447,30 +43474,19 @@ function validateTableLocator2(input, operationName) {
43447
43474
  value: input.nodeId
43448
43475
  });
43449
43476
  }
43450
- function validateTableScopedLocator2(input, operationName) {
43451
- const hasTarget = input.tableTarget !== undefined;
43452
- const hasNodeId = input.tableNodeId !== undefined;
43453
- if (hasTarget && hasNodeId)
43454
- throw new DocumentApiValidationError2("INVALID_TARGET", `Cannot combine tableTarget with tableNodeId on ${operationName} request. Use exactly one locator mode.`, { fields: ["tableTarget", "tableNodeId"] });
43455
- if (!hasTarget && !hasNodeId)
43456
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} requires a table target. Provide either tableTarget or tableNodeId.`);
43457
- if (hasNodeId && typeof input.tableNodeId !== "string")
43458
- throw new DocumentApiValidationError2("INVALID_TARGET", `tableNodeId must be a string, got ${typeof input.tableNodeId}.`, {
43459
- field: "tableNodeId",
43460
- value: input.tableNodeId
43461
- });
43462
- }
43463
43477
  function validateRowLocator2(input, operationName) {
43464
- const hasDirect = input.target !== undefined || input.nodeId !== undefined;
43465
- const hasTableScoped = input.tableTarget !== undefined || input.tableNodeId !== undefined;
43466
- if (hasDirect && hasTableScoped)
43467
- throw new DocumentApiValidationError2("INVALID_TARGET", `Cannot combine direct row locator (target/nodeId) with table-scoped locator (tableTarget/tableNodeId) on ${operationName} request.`);
43468
- if (hasDirect)
43469
- validateTableLocator2(input, operationName);
43470
- else if (hasTableScoped)
43471
- validateTableScopedLocator2(input, operationName);
43472
- else
43473
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} requires a row target. Provide target, nodeId, or tableTarget/tableNodeId + rowIndex.`);
43478
+ validateTableLocator2(input, operationName);
43479
+ if (input.nodeId != null) {
43480
+ if (input.rowIndex == null)
43481
+ throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName}: rowIndex is required when using nodeId for row operations. Use target to address a row directly, or pass nodeId + rowIndex to address a row within a table.`);
43482
+ return;
43483
+ }
43484
+ if (!isObjectRecord2(input.target) || input.target.kind !== "block")
43485
+ return;
43486
+ if (input.target.nodeType === "table" && input.rowIndex == null)
43487
+ throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName}: rowIndex is required when target is a table.`);
43488
+ if (input.target.nodeType === "tableRow" && input.rowIndex != null)
43489
+ throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName}: rowIndex must not be provided when target is a row node. Either pass a table target with rowIndex, or pass a row target without rowIndex.`);
43474
43490
  }
43475
43491
  function executeTableLocatorOp2(operationName, adapter, input, options) {
43476
43492
  validateTableLocator2(input, operationName);
@@ -43480,14 +43496,6 @@ function executeRowLocatorOp2(operationName, adapter, input, options) {
43480
43496
  validateRowLocator2(input, operationName);
43481
43497
  return adapter(input, normalizeMutationOptions2(options));
43482
43498
  }
43483
- function executeColumnLocatorOp2(operationName, adapter, input, options) {
43484
- validateTableScopedLocator2(input, operationName);
43485
- return adapter(input, normalizeMutationOptions2(options));
43486
- }
43487
- function executeMergeRangeLocatorOp2(operationName, adapter, input, options) {
43488
- validateTableScopedLocator2(input, operationName);
43489
- return adapter(input, normalizeMutationOptions2(options));
43490
- }
43491
43499
  function executeDocumentLevelTableOp2(adapter, input, options) {
43492
43500
  return adapter(input, normalizeMutationOptions2(options));
43493
43501
  }
@@ -45256,13 +45264,13 @@ function createDocumentApi2(adapters) {
45256
45264
  return executeRowLocatorOp2("tables.setRowOptions", adapters.tables.setRowOptions.bind(adapters.tables), input, options);
45257
45265
  },
45258
45266
  insertColumn(input, options) {
45259
- return executeColumnLocatorOp2("tables.insertColumn", adapters.tables.insertColumn.bind(adapters.tables), input, options);
45267
+ return executeTableLocatorOp2("tables.insertColumn", adapters.tables.insertColumn.bind(adapters.tables), input, options);
45260
45268
  },
45261
45269
  deleteColumn(input, options) {
45262
- return executeColumnLocatorOp2("tables.deleteColumn", adapters.tables.deleteColumn.bind(adapters.tables), input, options);
45270
+ return executeTableLocatorOp2("tables.deleteColumn", adapters.tables.deleteColumn.bind(adapters.tables), input, options);
45263
45271
  },
45264
45272
  setColumnWidth(input, options) {
45265
- return executeColumnLocatorOp2("tables.setColumnWidth", adapters.tables.setColumnWidth.bind(adapters.tables), input, options);
45273
+ return executeTableLocatorOp2("tables.setColumnWidth", adapters.tables.setColumnWidth.bind(adapters.tables), input, options);
45266
45274
  },
45267
45275
  distributeColumns(input, options) {
45268
45276
  return executeTableLocatorOp2("tables.distributeColumns", adapters.tables.distributeColumns.bind(adapters.tables), input, options);
@@ -45274,7 +45282,7 @@ function createDocumentApi2(adapters) {
45274
45282
  return executeTableLocatorOp2("tables.deleteCell", adapters.tables.deleteCell.bind(adapters.tables), input, options);
45275
45283
  },
45276
45284
  mergeCells(input, options) {
45277
- return executeMergeRangeLocatorOp2("tables.mergeCells", adapters.tables.mergeCells.bind(adapters.tables), input, options);
45285
+ return executeTableLocatorOp2("tables.mergeCells", adapters.tables.mergeCells.bind(adapters.tables), input, options);
45278
45286
  },
45279
45287
  unmergeCells(input, options) {
45280
45288
  return executeTableLocatorOp2("tables.unmergeCells", adapters.tables.unmergeCells.bind(adapters.tables), input, options);
@@ -55962,6 +55970,16 @@ function getParagraphRunContext($pos, editor) {
55962
55970
  break;
55963
55971
  }
55964
55972
  }
55973
+ if (runProperties == null) {
55974
+ const nodeBefore = $pos.nodeBefore;
55975
+ if (nodeBefore?.type.name === "run")
55976
+ runProperties = normalizeRunProperties(nodeBefore.attrs?.runProperties);
55977
+ else {
55978
+ const nodeAfter = $pos.nodeAfter;
55979
+ if (nodeAfter?.type.name === "run")
55980
+ runProperties = normalizeRunProperties(nodeAfter.attrs?.runProperties);
55981
+ }
55982
+ }
55965
55983
  if (!paragraphNode)
55966
55984
  return null;
55967
55985
  const paragraphAttrs = paragraphNode.attrs || {};
@@ -68946,7 +68964,7 @@ var isRegExp = (value) => {
68946
68964
  tracked: false,
68947
68965
  carrier: runAttributeCarrier2(runPropertyKey ?? key),
68948
68966
  schema
68949
- }), INLINE_PROPERTY_REGISTRY2, INLINE_PROPERTY_KEY_SET2, INLINE_PROPERTY_BY_KEY2, UNDERLINE_OBJECT_ALLOWED_KEYS2, SHADING_ALLOWED_KEYS2, BORDER_ALLOWED_KEYS2, FIT_TEXT_ALLOWED_KEYS2, LANG_ALLOWED_KEYS2, RFONTS_ALLOWED_KEYS2, EAST_ASIAN_LAYOUT_ALLOWED_KEYS2, STYLISTIC_SET_ALLOWED_KEYS2, VERT_ALIGN_VALUES2, PROPERTY_VALIDATOR_MAP2, NONE_FAILURES2, NONE_THROWS2, T_NOT_FOUND2, T_NOT_FOUND_CAPABLE2, T_PLAN_ENGINE2, T_NOT_FOUND_COMMAND2, T_IMAGE_COMMAND2, T_CC_READ2, T_CC_MUTATION2, T_CC_TYPED2, T_CC_TYPED_READ2, T_CC_RAW2, T_QUERY_MATCH2, T_SECTION_CREATE2, T_SECTION_READ2, T_PARAGRAPH_MUTATION2, T_SECTION_MUTATION2, T_SECTION_SETTINGS_MUTATION2, T_HEADER_FOOTER_MUTATION2, T_REF_READ_LIST2, T_REF_MUTATION2, T_REF_MUTATION_REMOVE2, T_REF_INSERT2, FORMAT_INLINE_ALIAS_OPERATION_DEFINITIONS2, OPERATION_DEFINITIONS2, OPERATION_IDS2, COMMAND_CATALOG3, PARAGRAPH_ALIGNMENTS2, TAB_STOP_ALIGNMENTS2, TAB_STOP_LEADERS2, BORDER_SIDES2, CLEAR_BORDER_SIDES2, LINE_RULES2, PARAGRAPH_BLOCK_TYPES2, SET_STYLE_KEYS2, CLEAR_STYLE_KEYS2, RESET_DIRECT_FORMATTING_KEYS2, SET_ALIGNMENT_KEYS2, CLEAR_ALIGNMENT_KEYS2, SET_INDENTATION_KEYS2, CLEAR_INDENTATION_KEYS2, SET_SPACING_KEYS2, CLEAR_SPACING_KEYS2, SET_KEEP_OPTIONS_KEYS2, SET_OUTLINE_LEVEL_KEYS2, SET_FLOW_OPTIONS_KEYS2, SET_TAB_STOP_KEYS2, CLEAR_TAB_STOP_KEYS2, CLEAR_ALL_TAB_STOPS_KEYS2, SET_BORDER_KEYS2, CLEAR_BORDER_KEYS2, SET_SHADING_KEYS2, CLEAR_SHADING_KEYS2, ST_ON_OFF_ON_VALUES2, ST_ON_OFF_OFF_VALUES2, ST_UNDERLINE_VALUES2, ST_UNDERLINE_VALUE_SET2, ST_VERTICAL_ALIGN_RUN2, ST_EM2, ST_TEXT_ALIGNMENT2, ST_TEXT_DIRECTION2, ST_TEXTBOX_TIGHT_WRAP2, ST_TEXT_TRANSFORM2, ST_JUSTIFICATION2, FONT_FAMILY_SCHEMA2, COLOR_SCHEMA2, SPACING_SCHEMA2, INDENT_SCHEMA2, UNDERLINE_SCHEMA2, BORDER_PROPERTIES_SCHEMA2, SHADING_SCHEMA2, LANG_SCHEMA2, EAST_ASIAN_LAYOUT_SCHEMA2, FIT_TEXT_SCHEMA2, NUMBERING_PROPERTIES_SCHEMA2, FRAME_PR_SCHEMA2, PARAGRAPH_BORDERS_SCHEMA2, TAB_STOP_SCHEMA2, PROPERTY_REGISTRY2, ALLOWED_KEYS_BY_CHANNEL2, PROPERTY_INDEX2, EXCLUDED_KEYS2, INPUT_ALLOWED_KEYS2, TARGET_ALLOWED_KEYS2, OPTIONS_ALLOWED_KEYS2, VALID_CHANNELS2, Z_ORDER_RELATIVE_HEIGHT_MAX2 = 4294967295, nodeTypeValues2, blockNodeTypeValues2, deletableBlockNodeTypeValues2, inlineNodeTypeValues2, rangeSchema2, textAddressSchema2, textTargetSchema2, blockNodeAddressSchema2, deletableBlockNodeAddressSchema2, paragraphAddressSchema2, headingAddressSchema2, listItemAddressSchema2, paragraphTargetSchema2, sectionAddressSchema2, nodeAddressSchema2, commentAddressSchema2, trackedChangeAddressSchema2, entityAddressSchema2, selectionTargetSchema2, deleteBehaviorSchema2, resolvedHandleSchema2, pageInfoSchema2, receiptSuccessSchema2, textMutationRangeSchema2, textMutationResolutionSchema2, textMutationSuccessSchema2, matchBlockSchema2, trackChangeRefSchema2, createParagraphSuccessSchema2, createHeadingSuccessSchema2, headingLevelSchema2, listsInsertSuccessSchema2, listsMutateItemSuccessSchema2, textSelectorSchema2, nodeSelectorSchema2, sdMutationResolutionSchema2, sdMutationSuccessSchema2, documentInfoCountsSchema2, documentInfoOutlineItemSchema2, documentInfoCapabilitiesSchema2, listKindSchema2, listInsertPositionSchema2, sectionBreakTypeSchema2, sectionOrientationSchema2, sectionVerticalAlignSchema2, sectionDirectionSchema2, sectionHeaderFooterKindSchema2, sectionHeaderFooterVariantSchema2, sectionLineNumberRestartSchema2, sectionPageNumberFormatSchema2, sectionRangeDomainSchema2, sectionPageMarginsSchema2, sectionHeaderFooterMarginsSchema2, sectionPageSetupSchema2, sectionColumnsSchema2, sectionLineNumberingSchema2, sectionPageNumberingSchema2, sectionHeaderFooterRefsSchema2, sectionBorderSpecSchema2, sectionPageBordersSchema2, sectionMutationSuccessSchema2, documentMutationSuccessSchema2, paragraphMutationTargetSchema2, paragraphMutationSuccessSchema2, createSectionBreakSuccessSchema2, capabilityReasonsSchema2, capabilityFlagSchema2, operationRuntimeCapabilitySchema2, operationCapabilitiesSchema2, inlinePropertyCapabilitySchema2, formatCapabilitiesSchema2, planEngineCapabilitiesSchema2, sdFragmentSchema2, placementSchema2, nestingPolicySchema2, tableCreateLocationSchema2, formatInlineAliasOperationSchemas2, tocMutationFailureSchema2, tocMutationSuccessSchema2, tocEntryMutationFailureSchema2, tocEntryMutationSuccessSchema2, hyperlinkTargetSchema2, hyperlinkReadPropertiesSchema2, hyperlinkSpecSchema2, hyperlinkPatchSchema2, hyperlinkDomainSchema2, hyperlinkMutationSuccessSchema2, hyperlinkMutationFailureSchema2, contentControlTargetSchema2, contentControlMutationSuccessSchema2, contentControlMutationFailureSchema2, ccListResultSchema2, ccInfoSchema2, refFailureSchema2, bookmarkAddressSchema2, bookmarkMutation2, footnoteAddressSchema2, footnoteConfigScopeSchema2, footnoteNumberingSchema2, footnoteMutation2, footnoteConfig2, crossRefAddressSchema2, crossRefTargetSchema2, crossRefDisplaySchema2, crossRefMutation2, indexAddressSchema2, indexEntryAddressSchema2, indexConfigSchema2, indexEntryDataSchema2, indexEntryPatchSchema2, indexMutation2, indexEntryMutation2, captionAddressSchema2, captionMutation2, captionConfig2, fieldAddressSchema2, fieldMutation2, citationAddressSchema2, citationSourceAddressSchema2, bibliographyAddressSchema2, citationMutation2, citationSourceMutation2, bibliographyMutation2, citationPersonSchema2, citationSourceFieldsSchema2, tocCreateLocationSchema2, authoritiesAddressSchema2, authorityEntryAddressSchema2, authoritiesConfigSchema2, authorityEntryDataSchema2, authorityEntryPatchSchema2, authoritiesMutation2, authorityEntryMutation2, diffCoverageSchema2, diffSummarySchema2, diffSnapshotSchema2, diffPayloadSchema2, GROUP_METADATA2, STEP_OP_CATALOG_UNFROZEN2, PUBLIC_STEP_OP_CATALOG_UNFROZEN2, PUBLIC_MUTATION_STEP_OP_IDS2, PUBLIC_MUTATION_STEP_OP_SET2, CAPABILITY_REASON_CODES, VALID_EDGE_VALUES2, VALID_EDGE_NODE_TYPES2, VALID_DOCUMENT_EDGES2, VALID_REF_BOUNDARIES2, VALID_ANCHOR_KINDS2, RESOLVE_RANGE_ALLOWED_KEYS2, CREATE_COMMENT_ALLOWED_KEYS2, PATCH_COMMENT_ALLOWED_KEYS2, STYLE_APPLY_INPUT_ALLOWED_KEYS2, INLINE_ALIAS_INPUT_ALLOWED_KEYS2, DELETE_INPUT_ALLOWED_KEYS2, VALID_BEHAVIORS2, CONTENT_KIND_SET2, INLINE_KIND_SET2, LEGACY_TOP_LEVEL_TYPES2, LEGACY_INSERT_ALLOWED_KEYS2, STRUCTURAL_INSERT_ALLOWED_KEYS2, VALID_INSERT_TYPES2, TEXT_REPLACE_ALLOWED_KEYS2, STRUCTURAL_REPLACE_ALLOWED_KEYS2, SECTION_BREAK_TYPES$1, SUPPORTED_DELETE_NODE_TYPES2, REJECTED_DELETE_NODE_TYPES2, VALID_BLOCK_NODE_TYPES2, SNAPSHOT_VERSION2 = "sd-diff-snapshot/v1", PAYLOAD_VERSION2 = "sd-diff-payload/v1", HEADER_FOOTER_KINDS$1, HEADER_FOOTER_VARIANTS$1, DEFAULT_SECTIONS_LIST_LIMIT2 = 250, SECTION_BREAK_TYPES3, SECTION_ORIENTATIONS2, SECTION_VERTICAL_ALIGNS2, SECTION_DIRECTIONS2, HEADER_FOOTER_KINDS3, HEADER_FOOTER_VARIANTS3, LINE_NUMBER_RESTARTS2, PAGE_NUMBER_FORMATS2, PAGE_BORDER_DISPLAYS2, PAGE_BORDER_OFFSET_FROM_VALUES2, PAGE_BORDER_Z_ORDER_VALUES2, VALID_WRAP_TYPES2, VALID_WRAP_SIDES2, VALID_IMAGE_SIZE_UNITS2, PATCH_FIELDS2, ADAPTER_GATED_PREFIXES2, _buffers, _defaultCollectionId = null, _nextCollectionId = 1, generateV2HandlerEntity = (handlerName, translator$215) => ({
68967
+ }), INLINE_PROPERTY_REGISTRY2, INLINE_PROPERTY_KEY_SET2, INLINE_PROPERTY_BY_KEY2, UNDERLINE_OBJECT_ALLOWED_KEYS2, SHADING_ALLOWED_KEYS2, BORDER_ALLOWED_KEYS2, FIT_TEXT_ALLOWED_KEYS2, LANG_ALLOWED_KEYS2, RFONTS_ALLOWED_KEYS2, EAST_ASIAN_LAYOUT_ALLOWED_KEYS2, STYLISTIC_SET_ALLOWED_KEYS2, VERT_ALIGN_VALUES2, PROPERTY_VALIDATOR_MAP2, NONE_FAILURES2, NONE_THROWS2, T_NOT_FOUND2, T_NOT_FOUND_CAPABLE2, T_PLAN_ENGINE2, T_NOT_FOUND_COMMAND2, T_IMAGE_COMMAND2, T_CC_READ2, T_CC_MUTATION2, T_CC_TYPED2, T_CC_TYPED_READ2, T_CC_RAW2, T_QUERY_MATCH2, T_SECTION_CREATE2, T_SECTION_READ2, T_PARAGRAPH_MUTATION2, T_SECTION_MUTATION2, T_SECTION_SETTINGS_MUTATION2, T_HEADER_FOOTER_MUTATION2, T_REF_READ_LIST2, T_REF_MUTATION2, T_REF_MUTATION_REMOVE2, T_REF_INSERT2, FORMAT_INLINE_ALIAS_OPERATION_DEFINITIONS2, OPERATION_DEFINITIONS2, OPERATION_IDS2, COMMAND_CATALOG3, PARAGRAPH_ALIGNMENTS2, TAB_STOP_ALIGNMENTS2, TAB_STOP_LEADERS2, BORDER_SIDES2, CLEAR_BORDER_SIDES2, LINE_RULES2, PARAGRAPH_BLOCK_TYPES2, SET_STYLE_KEYS2, CLEAR_STYLE_KEYS2, RESET_DIRECT_FORMATTING_KEYS2, SET_ALIGNMENT_KEYS2, CLEAR_ALIGNMENT_KEYS2, SET_INDENTATION_KEYS2, CLEAR_INDENTATION_KEYS2, SET_SPACING_KEYS2, CLEAR_SPACING_KEYS2, SET_KEEP_OPTIONS_KEYS2, SET_OUTLINE_LEVEL_KEYS2, SET_FLOW_OPTIONS_KEYS2, SET_TAB_STOP_KEYS2, CLEAR_TAB_STOP_KEYS2, CLEAR_ALL_TAB_STOPS_KEYS2, SET_BORDER_KEYS2, CLEAR_BORDER_KEYS2, SET_SHADING_KEYS2, CLEAR_SHADING_KEYS2, ST_ON_OFF_ON_VALUES2, ST_ON_OFF_OFF_VALUES2, ST_UNDERLINE_VALUES2, ST_UNDERLINE_VALUE_SET2, ST_VERTICAL_ALIGN_RUN2, ST_EM2, ST_TEXT_ALIGNMENT2, ST_TEXT_DIRECTION2, ST_TEXTBOX_TIGHT_WRAP2, ST_TEXT_TRANSFORM2, ST_JUSTIFICATION2, FONT_FAMILY_SCHEMA2, COLOR_SCHEMA2, SPACING_SCHEMA2, INDENT_SCHEMA2, UNDERLINE_SCHEMA2, BORDER_PROPERTIES_SCHEMA2, SHADING_SCHEMA2, LANG_SCHEMA2, EAST_ASIAN_LAYOUT_SCHEMA2, FIT_TEXT_SCHEMA2, NUMBERING_PROPERTIES_SCHEMA2, FRAME_PR_SCHEMA2, PARAGRAPH_BORDERS_SCHEMA2, TAB_STOP_SCHEMA2, PROPERTY_REGISTRY2, ALLOWED_KEYS_BY_CHANNEL2, PROPERTY_INDEX2, EXCLUDED_KEYS2, INPUT_ALLOWED_KEYS2, TARGET_ALLOWED_KEYS2, OPTIONS_ALLOWED_KEYS2, VALID_CHANNELS2, Z_ORDER_RELATIVE_HEIGHT_MAX2 = 4294967295, nodeTypeValues2, blockNodeTypeValues2, deletableBlockNodeTypeValues2, inlineNodeTypeValues2, rangeSchema2, textAddressSchema2, textTargetSchema2, blockNodeAddressSchema2, deletableBlockNodeAddressSchema2, tableAddressSchema2, tableRowAddressSchema2, tableCellAddressSchema2, tableOrCellAddressSchema2, paragraphAddressSchema2, headingAddressSchema2, listItemAddressSchema2, paragraphTargetSchema2, sectionAddressSchema2, nodeAddressSchema2, commentAddressSchema2, trackedChangeAddressSchema2, entityAddressSchema2, selectionTargetSchema2, deleteBehaviorSchema2, resolvedHandleSchema2, pageInfoSchema2, receiptSuccessSchema2, textMutationRangeSchema2, textMutationResolutionSchema2, textMutationSuccessSchema2, matchBlockSchema2, trackChangeRefSchema2, createParagraphSuccessSchema2, createHeadingSuccessSchema2, headingLevelSchema2, listsInsertSuccessSchema2, listsMutateItemSuccessSchema2, textSelectorSchema2, nodeSelectorSchema2, sdMutationResolutionSchema2, sdMutationSuccessSchema2, documentInfoCountsSchema2, documentInfoOutlineItemSchema2, documentInfoCapabilitiesSchema2, listKindSchema2, listInsertPositionSchema2, sectionBreakTypeSchema2, sectionOrientationSchema2, sectionVerticalAlignSchema2, sectionDirectionSchema2, sectionHeaderFooterKindSchema2, sectionHeaderFooterVariantSchema2, sectionLineNumberRestartSchema2, sectionPageNumberFormatSchema2, sectionRangeDomainSchema2, sectionPageMarginsSchema2, sectionHeaderFooterMarginsSchema2, sectionPageSetupSchema2, sectionColumnsSchema2, sectionLineNumberingSchema2, sectionPageNumberingSchema2, sectionHeaderFooterRefsSchema2, sectionBorderSpecSchema2, sectionPageBordersSchema2, sectionMutationSuccessSchema2, documentMutationSuccessSchema2, paragraphMutationTargetSchema2, paragraphMutationSuccessSchema2, createSectionBreakSuccessSchema2, capabilityReasonsSchema2, capabilityFlagSchema2, operationRuntimeCapabilitySchema2, operationCapabilitiesSchema2, inlinePropertyCapabilitySchema2, formatCapabilitiesSchema2, planEngineCapabilitiesSchema2, sdFragmentSchema2, placementSchema2, nestingPolicySchema2, tableCreateLocationSchema2, formatInlineAliasOperationSchemas2, tocMutationFailureSchema2, tocMutationSuccessSchema2, tocEntryMutationFailureSchema2, tocEntryMutationSuccessSchema2, hyperlinkTargetSchema2, hyperlinkReadPropertiesSchema2, hyperlinkSpecSchema2, hyperlinkPatchSchema2, hyperlinkDomainSchema2, hyperlinkMutationSuccessSchema2, hyperlinkMutationFailureSchema2, contentControlTargetSchema2, contentControlMutationSuccessSchema2, contentControlMutationFailureSchema2, ccListResultSchema2, ccInfoSchema2, refFailureSchema2, bookmarkAddressSchema2, bookmarkMutation2, footnoteAddressSchema2, footnoteConfigScopeSchema2, footnoteNumberingSchema2, footnoteMutation2, footnoteConfig2, crossRefAddressSchema2, crossRefTargetSchema2, crossRefDisplaySchema2, crossRefMutation2, indexAddressSchema2, indexEntryAddressSchema2, indexConfigSchema2, indexEntryDataSchema2, indexEntryPatchSchema2, indexMutation2, indexEntryMutation2, captionAddressSchema2, captionMutation2, captionConfig2, fieldAddressSchema2, fieldMutation2, citationAddressSchema2, citationSourceAddressSchema2, bibliographyAddressSchema2, citationMutation2, citationSourceMutation2, bibliographyMutation2, citationPersonSchema2, citationSourceFieldsSchema2, tocCreateLocationSchema2, authoritiesAddressSchema2, authorityEntryAddressSchema2, authoritiesConfigSchema2, authorityEntryDataSchema2, authorityEntryPatchSchema2, authoritiesMutation2, authorityEntryMutation2, diffCoverageSchema2, diffSummarySchema2, diffSnapshotSchema2, diffPayloadSchema2, GROUP_METADATA2, STEP_OP_CATALOG_UNFROZEN2, PUBLIC_STEP_OP_CATALOG_UNFROZEN2, PUBLIC_MUTATION_STEP_OP_IDS2, PUBLIC_MUTATION_STEP_OP_SET2, CAPABILITY_REASON_CODES, VALID_EDGE_VALUES2, VALID_EDGE_NODE_TYPES2, VALID_DOCUMENT_EDGES2, VALID_REF_BOUNDARIES2, VALID_ANCHOR_KINDS2, RESOLVE_RANGE_ALLOWED_KEYS2, CREATE_COMMENT_ALLOWED_KEYS2, PATCH_COMMENT_ALLOWED_KEYS2, STYLE_APPLY_INPUT_ALLOWED_KEYS2, INLINE_ALIAS_INPUT_ALLOWED_KEYS2, DELETE_INPUT_ALLOWED_KEYS2, VALID_BEHAVIORS2, CONTENT_KIND_SET2, INLINE_KIND_SET2, LEGACY_TOP_LEVEL_TYPES2, LEGACY_INSERT_ALLOWED_KEYS2, STRUCTURAL_INSERT_ALLOWED_KEYS2, VALID_INSERT_TYPES2, TEXT_REPLACE_ALLOWED_KEYS2, STRUCTURAL_REPLACE_ALLOWED_KEYS2, SECTION_BREAK_TYPES$1, SUPPORTED_DELETE_NODE_TYPES2, REJECTED_DELETE_NODE_TYPES2, VALID_BLOCK_NODE_TYPES2, SNAPSHOT_VERSION2 = "sd-diff-snapshot/v1", PAYLOAD_VERSION2 = "sd-diff-payload/v1", HEADER_FOOTER_KINDS$1, HEADER_FOOTER_VARIANTS$1, DEFAULT_SECTIONS_LIST_LIMIT2 = 250, SECTION_BREAK_TYPES3, SECTION_ORIENTATIONS2, SECTION_VERTICAL_ALIGNS2, SECTION_DIRECTIONS2, HEADER_FOOTER_KINDS3, HEADER_FOOTER_VARIANTS3, LINE_NUMBER_RESTARTS2, PAGE_NUMBER_FORMATS2, PAGE_BORDER_DISPLAYS2, PAGE_BORDER_OFFSET_FROM_VALUES2, PAGE_BORDER_Z_ORDER_VALUES2, VALID_WRAP_TYPES2, VALID_WRAP_SIDES2, VALID_IMAGE_SIZE_UNITS2, PATCH_FIELDS2, ADAPTER_GATED_PREFIXES2, _buffers, _defaultCollectionId = null, _nextCollectionId = 1, generateV2HandlerEntity = (handlerName, translator$215) => ({
68950
68968
  handlerName,
68951
68969
  handler: (params) => {
68952
68970
  const { nodes } = params;
@@ -82873,7 +82891,7 @@ var isRegExp = (value) => {
82873
82891
  state.kern = kernNode.attributes["w:val"];
82874
82892
  }
82875
82893
  }, SuperConverter;
82876
- var init_SuperConverter_hOU3ez7P_es = __esm(() => {
82894
+ var init_SuperConverter_DAceeh2o_es = __esm(() => {
82877
82895
  init_rolldown_runtime_B2q5OVn9_es();
82878
82896
  init_jszip_ChlR43oI_es();
82879
82897
  init_xml_js_BtmJ6bNs_es();
@@ -91871,6 +91889,46 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
91871
91889
  "kind",
91872
91890
  "nodeType",
91873
91891
  "nodeId"
91892
+ ]), objectSchema2({
91893
+ kind: { const: "block" },
91894
+ nodeType: { const: "table" },
91895
+ nodeId: { type: "string" }
91896
+ }, [
91897
+ "kind",
91898
+ "nodeType",
91899
+ "nodeId"
91900
+ ]), objectSchema2({
91901
+ kind: { const: "block" },
91902
+ nodeType: { const: "tableRow" },
91903
+ nodeId: { type: "string" }
91904
+ }, [
91905
+ "kind",
91906
+ "nodeType",
91907
+ "nodeId"
91908
+ ]), objectSchema2({
91909
+ kind: { const: "block" },
91910
+ nodeType: { const: "tableCell" },
91911
+ nodeId: { type: "string" }
91912
+ }, [
91913
+ "kind",
91914
+ "nodeType",
91915
+ "nodeId"
91916
+ ]), objectSchema2({
91917
+ kind: { const: "block" },
91918
+ nodeType: { enum: ["table", "tableRow"] },
91919
+ nodeId: { type: "string" }
91920
+ }, [
91921
+ "kind",
91922
+ "nodeType",
91923
+ "nodeId"
91924
+ ]), objectSchema2({
91925
+ kind: { const: "block" },
91926
+ nodeType: { enum: ["table", "tableCell"] },
91927
+ nodeId: { type: "string" }
91928
+ }, [
91929
+ "kind",
91930
+ "nodeType",
91931
+ "nodeId"
91874
91932
  ]), objectSchema2({
91875
91933
  kind: { const: "block" },
91876
91934
  nodeType: { const: "paragraph" },
@@ -92055,6 +92113,10 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
92055
92113
  textTargetSchema2 = ref2("TextTarget");
92056
92114
  blockNodeAddressSchema2 = ref2("BlockNodeAddress");
92057
92115
  deletableBlockNodeAddressSchema2 = ref2("DeletableBlockNodeAddress");
92116
+ tableAddressSchema2 = ref2("TableAddress");
92117
+ tableRowAddressSchema2 = ref2("TableRowAddress");
92118
+ tableCellAddressSchema2 = ref2("TableCellAddress");
92119
+ tableOrCellAddressSchema2 = ref2("TableOrCellAddress");
92058
92120
  paragraphAddressSchema2 = ref2("ParagraphAddress");
92059
92121
  headingAddressSchema2 = ref2("HeadingAddress");
92060
92122
  listItemAddressSchema2 = ref2("ListItemAddress");
@@ -92714,28 +92776,20 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
92714
92776
  nestingPolicy: nestingPolicySchema2
92715
92777
  }, ["content"]);
92716
92778
  ({ ...objectSchema2({
92717
- target: blockNodeAddressSchema2,
92779
+ target: tableAddressSchema2,
92718
92780
  nodeId: { type: "string" }
92719
92781
  }) });
92720
92782
  ({ ...objectSchema2({
92721
- tableTarget: blockNodeAddressSchema2,
92722
- tableNodeId: { type: "string" },
92723
- rowIndex: {
92724
- type: "integer",
92725
- minimum: 0
92726
- }
92783
+ target: tableCellAddressSchema2,
92784
+ nodeId: { type: "string" }
92727
92785
  }) });
92728
92786
  ({ ...objectSchema2({
92729
- tableTarget: blockNodeAddressSchema2,
92730
- tableNodeId: { type: "string" },
92731
- columnIndex: {
92732
- type: "integer",
92733
- minimum: 0
92734
- }
92735
- }, ["columnIndex"]) });
92787
+ target: tableOrCellAddressSchema2,
92788
+ nodeId: { type: "string" }
92789
+ }) });
92736
92790
  ({ ...objectSchema2({
92737
- tableTarget: blockNodeAddressSchema2,
92738
- tableNodeId: { type: "string" },
92791
+ target: tableAddressSchema2,
92792
+ nodeId: { type: "string" },
92739
92793
  start: objectSchema2({
92740
92794
  rowIndex: {
92741
92795
  type: "integer",
@@ -92779,12 +92833,12 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
92779
92833
  ] };
92780
92834
  objectSchema2({
92781
92835
  success: { const: true },
92782
- table: blockNodeAddressSchema2,
92836
+ table: tableAddressSchema2,
92783
92837
  trackedChangeRefs: arraySchema2(entityAddressSchema2)
92784
92838
  }, ["success"]);
92785
92839
  objectSchema2({
92786
92840
  success: { const: true },
92787
- table: blockNodeAddressSchema2,
92841
+ table: tableAddressSchema2,
92788
92842
  trackedChangeRefs: arraySchema2(entityAddressSchema2)
92789
92843
  }, ["success", "table"]);
92790
92844
  objectSchema2({
@@ -94788,18 +94842,18 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94788
94842
  },
94789
94843
  inferColumns: { type: "boolean" }
94790
94844
  }) }, { ...objectSchema2({
94791
- target: blockNodeAddressSchema2,
94845
+ target: tableAddressSchema2,
94792
94846
  nodeId: { type: "string" },
94793
94847
  destination: tableCreateLocationSchema2
94794
94848
  }, ["destination"]) }, { ...objectSchema2({
94795
- target: blockNodeAddressSchema2,
94849
+ target: tableAddressSchema2,
94796
94850
  nodeId: { type: "string" },
94797
94851
  atRowIndex: {
94798
94852
  type: "integer",
94799
94853
  minimum: 1
94800
94854
  }
94801
94855
  }, ["atRowIndex"]) }, { ...objectSchema2({
94802
- target: blockNodeAddressSchema2,
94856
+ target: tableAddressSchema2,
94803
94857
  nodeId: { type: "string" },
94804
94858
  delimiter: { enum: [
94805
94859
  "tab",
@@ -94807,7 +94861,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94807
94861
  "paragraph"
94808
94862
  ] }
94809
94863
  }) }, { ...objectSchema2({
94810
- target: blockNodeAddressSchema2,
94864
+ target: tableAddressSchema2,
94811
94865
  nodeId: { type: "string" },
94812
94866
  preferredWidth: { type: "number" },
94813
94867
  alignment: { enum: [
@@ -94822,38 +94876,13 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94822
94876
  "fitWindow"
94823
94877
  ] },
94824
94878
  tableDirection: { enum: ["ltr", "rtl"] }
94825
- }) }, { ...objectSchema2({
94826
- target: blockNodeAddressSchema2,
94827
- nodeId: { type: "string" },
94828
- tableTarget: blockNodeAddressSchema2,
94829
- tableNodeId: { type: "string" },
94830
- rowIndex: {
94831
- type: "integer",
94832
- minimum: 0
94833
- },
94879
+ }) }, rowOperationInputSchema2({
94834
94880
  position: { enum: ["above", "below"] },
94835
94881
  count: {
94836
94882
  type: "integer",
94837
94883
  minimum: 1
94838
94884
  }
94839
- }, ["position"]) }, { ...objectSchema2({
94840
- target: blockNodeAddressSchema2,
94841
- nodeId: { type: "string" },
94842
- tableTarget: blockNodeAddressSchema2,
94843
- tableNodeId: { type: "string" },
94844
- rowIndex: {
94845
- type: "integer",
94846
- minimum: 0
94847
- }
94848
- }) }, { ...objectSchema2({
94849
- target: blockNodeAddressSchema2,
94850
- nodeId: { type: "string" },
94851
- tableTarget: blockNodeAddressSchema2,
94852
- tableNodeId: { type: "string" },
94853
- rowIndex: {
94854
- type: "integer",
94855
- minimum: 0
94856
- },
94885
+ }, ["position"]), rowOperationInputSchema2({}), rowOperationInputSchema2({
94857
94886
  heightPt: {
94858
94887
  type: "number",
94859
94888
  exclusiveMinimum: 0
@@ -94863,20 +94892,12 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94863
94892
  "exact",
94864
94893
  "auto"
94865
94894
  ] }
94866
- }, ["heightPt", "rule"]) }, { ...objectSchema2({
94867
- target: blockNodeAddressSchema2,
94868
- nodeId: { type: "string" },
94869
- tableTarget: blockNodeAddressSchema2,
94870
- tableNodeId: { type: "string" },
94871
- rowIndex: {
94872
- type: "integer",
94873
- minimum: 0
94874
- },
94895
+ }, ["heightPt", "rule"]), rowOperationInputSchema2({
94875
94896
  allowBreakAcrossPages: { type: "boolean" },
94876
94897
  repeatHeader: { type: "boolean" }
94877
- }) }, { ...objectSchema2({
94878
- tableTarget: blockNodeAddressSchema2,
94879
- tableNodeId: { type: "string" },
94898
+ }), { ...objectSchema2({
94899
+ target: tableAddressSchema2,
94900
+ nodeId: { type: "string" },
94880
94901
  columnIndex: {
94881
94902
  type: "integer",
94882
94903
  minimum: 0
@@ -94887,15 +94908,15 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94887
94908
  minimum: 1
94888
94909
  }
94889
94910
  }, ["columnIndex", "position"]) }, { ...objectSchema2({
94890
- tableTarget: blockNodeAddressSchema2,
94891
- tableNodeId: { type: "string" },
94911
+ target: tableAddressSchema2,
94912
+ nodeId: { type: "string" },
94892
94913
  columnIndex: {
94893
94914
  type: "integer",
94894
94915
  minimum: 0
94895
94916
  }
94896
94917
  }, ["columnIndex"]) }, { ...objectSchema2({
94897
- tableTarget: blockNodeAddressSchema2,
94898
- tableNodeId: { type: "string" },
94918
+ target: tableAddressSchema2,
94919
+ nodeId: { type: "string" },
94899
94920
  columnIndex: {
94900
94921
  type: "integer",
94901
94922
  minimum: 0
@@ -94905,7 +94926,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94905
94926
  exclusiveMinimum: 0
94906
94927
  }
94907
94928
  }, ["columnIndex", "widthPt"]) }, { ...objectSchema2({
94908
- target: blockNodeAddressSchema2,
94929
+ target: tableAddressSchema2,
94909
94930
  nodeId: { type: "string" },
94910
94931
  columnRange: objectSchema2({
94911
94932
  start: {
@@ -94918,15 +94939,15 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94918
94939
  }
94919
94940
  }, ["start", "end"])
94920
94941
  }) }, { ...objectSchema2({
94921
- target: blockNodeAddressSchema2,
94942
+ target: tableCellAddressSchema2,
94922
94943
  nodeId: { type: "string" },
94923
94944
  mode: { enum: ["shiftRight", "shiftDown"] }
94924
94945
  }, ["mode"]) }, { ...objectSchema2({
94925
- target: blockNodeAddressSchema2,
94946
+ target: tableCellAddressSchema2,
94926
94947
  nodeId: { type: "string" },
94927
94948
  mode: { enum: ["shiftLeft", "shiftUp"] }
94928
94949
  }, ["mode"]) }, { ...objectSchema2({
94929
- target: blockNodeAddressSchema2,
94950
+ target: tableCellAddressSchema2,
94930
94951
  nodeId: { type: "string" },
94931
94952
  rows: {
94932
94953
  type: "integer",
@@ -94937,7 +94958,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94937
94958
  minimum: 1
94938
94959
  }
94939
94960
  }, ["rows", "columns"]) }, { ...objectSchema2({
94940
- target: blockNodeAddressSchema2,
94961
+ target: tableCellAddressSchema2,
94941
94962
  nodeId: { type: "string" },
94942
94963
  preferredWidthPt: { type: "number" },
94943
94964
  verticalAlign: { enum: [
@@ -94948,7 +94969,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94948
94969
  wrapText: { type: "boolean" },
94949
94970
  fitText: { type: "boolean" }
94950
94971
  }) }, { ...objectSchema2({
94951
- target: blockNodeAddressSchema2,
94972
+ target: tableAddressSchema2,
94952
94973
  nodeId: { type: "string" },
94953
94974
  keys: arraySchema2(objectSchema2({
94954
94975
  columnIndex: {
@@ -94967,16 +94988,16 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94967
94988
  "type"
94968
94989
  ]))
94969
94990
  }, ["keys"]) }, { ...objectSchema2({
94970
- target: blockNodeAddressSchema2,
94991
+ target: tableAddressSchema2,
94971
94992
  nodeId: { type: "string" },
94972
94993
  title: { type: "string" },
94973
94994
  description: { type: "string" }
94974
94995
  }) }, { ...objectSchema2({
94975
- target: blockNodeAddressSchema2,
94996
+ target: tableAddressSchema2,
94976
94997
  nodeId: { type: "string" },
94977
94998
  styleId: { type: "string" }
94978
94999
  }, ["styleId"]) }, { ...objectSchema2({
94979
- target: blockNodeAddressSchema2,
95000
+ target: tableAddressSchema2,
94980
95001
  nodeId: { type: "string" },
94981
95002
  flag: { enum: [
94982
95003
  "headerRow",
@@ -94988,7 +95009,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
94988
95009
  ] },
94989
95010
  enabled: { type: "boolean" }
94990
95011
  }, ["flag", "enabled"]) }, { ...objectSchema2({
94991
- target: blockNodeAddressSchema2,
95012
+ target: tableOrCellAddressSchema2,
94992
95013
  nodeId: { type: "string" },
94993
95014
  edge: { enum: [
94994
95015
  "top",
@@ -95015,7 +95036,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95015
95036
  "lineWeightPt",
95016
95037
  "color"
95017
95038
  ]) }, { ...objectSchema2({
95018
- target: blockNodeAddressSchema2,
95039
+ target: tableOrCellAddressSchema2,
95019
95040
  nodeId: { type: "string" },
95020
95041
  edge: { enum: [
95021
95042
  "top",
@@ -95028,7 +95049,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95028
95049
  "diagonalUp"
95029
95050
  ] }
95030
95051
  }, ["edge"]) }, { ...objectSchema2({
95031
- target: blockNodeAddressSchema2,
95052
+ target: tableAddressSchema2,
95032
95053
  nodeId: { type: "string" },
95033
95054
  preset: { enum: [
95034
95055
  "box",
@@ -95038,14 +95059,14 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95038
95059
  "custom"
95039
95060
  ] }
95040
95061
  }, ["preset"]) }, { ...objectSchema2({
95041
- target: blockNodeAddressSchema2,
95062
+ target: tableOrCellAddressSchema2,
95042
95063
  nodeId: { type: "string" },
95043
95064
  color: {
95044
95065
  type: "string",
95045
95066
  pattern: "^([0-9A-Fa-f]{6}|auto)$"
95046
95067
  }
95047
95068
  }, ["color"]) }, { ...objectSchema2({
95048
- target: blockNodeAddressSchema2,
95069
+ target: tableAddressSchema2,
95049
95070
  nodeId: { type: "string" },
95050
95071
  topPt: {
95051
95072
  type: "number",
@@ -95069,7 +95090,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95069
95090
  "bottomPt",
95070
95091
  "leftPt"
95071
95092
  ]) }, { ...objectSchema2({
95072
- target: blockNodeAddressSchema2,
95093
+ target: tableCellAddressSchema2,
95073
95094
  nodeId: { type: "string" },
95074
95095
  topPt: {
95075
95096
  type: "number",
@@ -95093,7 +95114,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95093
95114
  "bottomPt",
95094
95115
  "leftPt"
95095
95116
  ]) }, { ...objectSchema2({
95096
- target: blockNodeAddressSchema2,
95117
+ target: tableAddressSchema2,
95097
95118
  nodeId: { type: "string" },
95098
95119
  spacingPt: {
95099
95120
  type: "number",
@@ -95101,7 +95122,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95101
95122
  }
95102
95123
  }, ["spacingPt"]) }, objectSchema2({
95103
95124
  nodeId: { type: "string" },
95104
- address: blockNodeAddressSchema2,
95125
+ address: tableAddressSchema2,
95105
95126
  rows: {
95106
95127
  type: "integer",
95107
95128
  minimum: 0
@@ -95116,7 +95137,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95116
95137
  "rows",
95117
95138
  "columns"
95118
95139
  ]), { ...objectSchema2({
95119
- target: blockNodeAddressSchema2,
95140
+ target: tableAddressSchema2,
95120
95141
  nodeId: { type: "string" },
95121
95142
  rowIndex: {
95122
95143
  type: "integer",
@@ -95127,7 +95148,8 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95127
95148
  minimum: 0
95128
95149
  }
95129
95150
  }) }, objectSchema2({
95130
- tableNodeId: { type: "string" },
95151
+ nodeId: { type: "string" },
95152
+ address: tableAddressSchema2,
95131
95153
  cells: {
95132
95154
  type: "array",
95133
95155
  items: objectSchema2({
@@ -95156,8 +95178,13 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95156
95178
  "rowspan"
95157
95179
  ])
95158
95180
  }
95159
- }, ["tableNodeId", "cells"]), objectSchema2({
95181
+ }, [
95182
+ "nodeId",
95183
+ "address",
95184
+ "cells"
95185
+ ]), objectSchema2({
95160
95186
  nodeId: { type: "string" },
95187
+ address: tableAddressSchema2,
95161
95188
  styleId: { type: "string" },
95162
95189
  alignment: { enum: [
95163
95190
  "left",
@@ -95179,7 +95206,7 @@ var init_SuperConverter_hOU3ez7P_es = __esm(() => {
95179
95206
  bandedRows: { type: "boolean" },
95180
95207
  bandedColumns: { type: "boolean" }
95181
95208
  })
95182
- }, ["nodeId"]), objectSchema2({
95209
+ }, ["nodeId", "address"]), objectSchema2({
95183
95210
  explicitDefaultStyleId: { type: ["string", "null"] },
95184
95211
  effectiveDefaultStyleId: { type: ["string", "null"] },
95185
95212
  effectiveDefaultSource: { type: "string" },
@@ -145103,7 +145130,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
145103
145130
  init_remark_gfm_z_sDF4ss_es();
145104
145131
  });
145105
145132
 
145106
- // ../../packages/superdoc/dist/chunks/src-D3r_lb_g.es.js
145133
+ // ../../packages/superdoc/dist/chunks/src-CZJm5ZTP.es.js
145107
145134
  function deleteProps(obj, propOrProps) {
145108
145135
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
145109
145136
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -163704,7 +163731,7 @@ function resolveRange(editor, input2) {
163704
163731
  absTo: resolveAnchor(editor, input2.end, revision, index2)
163705
163732
  });
163706
163733
  }
163707
- function resolveTableLocator(editor, locator, operationName) {
163734
+ function resolveLocatorToCandidate(editor, locator, operationName) {
163708
163735
  const hasTarget = locator.target != null;
163709
163736
  const hasNodeId = locator.nodeId != null;
163710
163737
  if (hasTarget && hasNodeId)
@@ -163712,13 +163739,13 @@ function resolveTableLocator(editor, locator, operationName) {
163712
163739
  if (!hasTarget && !hasNodeId)
163713
163740
  throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: requires either target or nodeId.`, { fields: ["target", "nodeId"] });
163714
163741
  const index2 = getBlockIndex(editor);
163715
- let candidate;
163716
- if (hasTarget)
163717
- candidate = findBlockById(index2, locator.target);
163718
- else
163719
- candidate = findBlockByNodeIdOnly(index2, locator.nodeId);
163742
+ const candidate = hasTarget ? findBlockById(index2, locator.target) : findBlockByNodeIdOnly(index2, locator.nodeId);
163720
163743
  if (!candidate)
163721
- throw new DocumentApiAdapterError("TARGET_NOT_FOUND", `${operationName}: table target was not found.`, { target: hasTarget ? locator.target : locator.nodeId });
163744
+ throw new DocumentApiAdapterError("TARGET_NOT_FOUND", `${operationName}: target was not found.`, { target: hasTarget ? locator.target : locator.nodeId });
163745
+ return candidate;
163746
+ }
163747
+ function resolveTableLocator(editor, locator, operationName) {
163748
+ const candidate = resolveLocatorToCandidate(editor, locator, operationName);
163722
163749
  if (candidate.nodeType !== "table")
163723
163750
  throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: target resolved to "${candidate.nodeType}", expected "table".`, {
163724
163751
  actualNodeType: candidate.nodeType,
@@ -163749,18 +163776,11 @@ function findLastCandidate(candidates, predicate) {
163749
163776
  }
163750
163777
  }
163751
163778
  function resolveRowLocator(editor, input2, operationName) {
163752
- const hasDirectTarget = input2.target != null || input2.nodeId != null;
163753
- const hasTableScope = input2.tableTarget != null || input2.tableNodeId != null;
163754
- if (hasDirectTarget && hasTableScope)
163755
- throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: cannot combine direct row locator (target/nodeId) with table-scoped locator (tableTarget/tableNodeId).`);
163756
- if (hasDirectTarget) {
163757
- const index2 = getBlockIndex(editor);
163758
- const candidate = input2.target != null ? findBlockById(index2, input2.target) : findBlockByNodeIdOnly(index2, input2.nodeId);
163759
- if (!candidate)
163760
- throw new DocumentApiAdapterError("TARGET_NOT_FOUND", `${operationName}: row target was not found.`);
163761
- if (candidate.nodeType !== "tableRow")
163762
- throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: target resolved to "${candidate.nodeType}", expected "tableRow".`);
163763
- const tableCandidate = findParentTable(index2, candidate);
163779
+ const candidate = resolveLocatorToCandidate(editor, input2, operationName);
163780
+ if (candidate.nodeType === "tableRow") {
163781
+ if (input2.rowIndex != null)
163782
+ throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: rowIndex must not be provided when target is a row node. Either pass a table nodeId with rowIndex, or pass a row nodeId without rowIndex.`);
163783
+ const tableCandidate = findParentTable(getBlockIndex(editor), candidate);
163764
163784
  if (!tableCandidate)
163765
163785
  throw new DocumentApiAdapterError("TARGET_NOT_FOUND", `${operationName}: parent table for row was not found.`);
163766
163786
  const rowIdx = getRowIndex(tableCandidate, candidate.pos);
@@ -163774,16 +163794,17 @@ function resolveRowLocator(editor, input2, operationName) {
163774
163794
  rowIndex: rowIdx
163775
163795
  };
163776
163796
  }
163777
- if (!hasTableScope)
163778
- throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: requires either a row target/nodeId or tableTarget/tableNodeId + rowIndex.`);
163779
- const tableLocator = {};
163780
- if (input2.tableTarget != null)
163781
- tableLocator.target = input2.tableTarget;
163782
- if (input2.tableNodeId != null)
163783
- tableLocator.nodeId = input2.tableNodeId;
163784
- const table2 = resolveTableLocator(editor, tableLocator, operationName);
163797
+ if (candidate.nodeType !== "table")
163798
+ throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: target resolved to "${candidate.nodeType}", expected "table" or "tableRow".`, {
163799
+ actualNodeType: candidate.nodeType,
163800
+ nodeId: candidate.nodeId
163801
+ });
163802
+ const table2 = {
163803
+ candidate,
163804
+ address: toBlockAddress(candidate)
163805
+ };
163785
163806
  if (input2.rowIndex == null)
163786
- throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: rowIndex is required when using table-scoped locator.`);
163807
+ throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: rowIndex is required when target is a table.`);
163787
163808
  const rowCount = table2.candidate.node.childCount;
163788
163809
  if (input2.rowIndex < 0 || input2.rowIndex >= rowCount)
163789
163810
  throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: rowIndex ${input2.rowIndex} is out of range (table has ${rowCount} rows).`);
@@ -163811,26 +163832,13 @@ function getRowIndex(tableCandidate, rowPos) {
163811
163832
  return 0;
163812
163833
  }
163813
163834
  function resolveCellLocator(editor, locator, operationName) {
163814
- const hasTarget = locator.target != null;
163815
- const hasNodeId = locator.nodeId != null;
163816
- if (hasTarget && hasNodeId)
163817
- throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: cannot combine target and nodeId. Use exactly one locator mode.`);
163818
- if (!hasTarget && !hasNodeId)
163819
- throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: requires either target or nodeId.`);
163820
- const index2 = getBlockIndex(editor);
163821
- let candidate;
163822
- if (hasTarget)
163823
- candidate = findBlockById(index2, locator.target);
163824
- else
163825
- candidate = findBlockByNodeIdOnly(index2, locator.nodeId);
163826
- if (!candidate)
163827
- throw new DocumentApiAdapterError("TARGET_NOT_FOUND", `${operationName}: cell target was not found.`, { target: hasTarget ? locator.target : locator.nodeId });
163835
+ const candidate = resolveLocatorToCandidate(editor, locator, operationName);
163828
163836
  if (candidate.nodeType !== "tableCell")
163829
163837
  throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: target resolved to "${candidate.nodeType}", expected "tableCell".`, {
163830
163838
  actualNodeType: candidate.nodeType,
163831
163839
  nodeId: candidate.nodeId
163832
163840
  });
163833
- const tableCandidate = findLastCandidate(index2.candidates, (c) => c.nodeType === "table" && c.pos < candidate.pos && c.end >= candidate.end);
163841
+ const tableCandidate = findLastCandidate(getBlockIndex(editor).candidates, (c) => c.nodeType === "table" && c.pos < candidate.pos && c.end >= candidate.end);
163834
163842
  if (!tableCandidate)
163835
163843
  throw new DocumentApiAdapterError("TARGET_NOT_FOUND", `${operationName}: parent table for cell was not found.`);
163836
163844
  const map$12 = TableMap.get(tableCandidate.node);
@@ -163850,12 +163858,7 @@ function resolveCellLocator(editor, locator, operationName) {
163850
163858
  };
163851
163859
  }
163852
163860
  function resolveMergeRangeLocator(editor, input2, operationName) {
163853
- const tableLocator = {};
163854
- if (input2.tableTarget != null)
163855
- tableLocator.target = input2.tableTarget;
163856
- if (input2.tableNodeId != null)
163857
- tableLocator.nodeId = input2.tableNodeId;
163858
- const table2 = resolveTableLocator(editor, tableLocator, operationName);
163861
+ const table2 = resolveTableLocator(editor, input2, operationName);
163859
163862
  const map$12 = TableMap.get(table2.candidate.node);
163860
163863
  const startRow = Math.min(input2.start.rowIndex, input2.end.rowIndex);
163861
163864
  const endRow = Math.max(input2.start.rowIndex, input2.end.rowIndex);
@@ -163872,12 +163875,7 @@ function resolveMergeRangeLocator(editor, input2, operationName) {
163872
163875
  };
163873
163876
  }
163874
163877
  function resolveColumnLocator(editor, input2, operationName) {
163875
- const tableLocator = {};
163876
- if (input2.tableTarget != null)
163877
- tableLocator.target = input2.tableTarget;
163878
- if (input2.tableNodeId != null)
163879
- tableLocator.nodeId = input2.tableNodeId;
163880
- const table2 = resolveTableLocator(editor, tableLocator, operationName);
163878
+ const table2 = resolveTableLocator(editor, input2, operationName);
163881
163879
  const columnCount = getTableColumnCount(table2.candidate.node);
163882
163880
  if (input2.columnIndex < 0 || input2.columnIndex >= columnCount)
163883
163881
  throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: columnIndex ${input2.columnIndex} is out of range (table has ${columnCount} columns).`);
@@ -164564,7 +164562,7 @@ function tablesDeleteAdapter(editor, input2, options) {
164564
164562
  ensureTrackedCapability(editor, { operation: "tables.delete" });
164565
164563
  const { candidate } = resolveTableLocator(editor, input2, "tables.delete");
164566
164564
  if (options?.dryRun)
164567
- return buildTableSuccess(toBlockAddress(candidate));
164565
+ return buildTableSuccess();
164568
164566
  try {
164569
164567
  const tr = editor.state.tr;
164570
164568
  tr.delete(candidate.pos, candidate.end);
@@ -164618,7 +164616,7 @@ function tablesMoveAdapter(editor, input2, options) {
164618
164616
  rejectTrackedMode("tables.move", options);
164619
164617
  const { candidate, address: address2 } = resolveTableLocator(editor, input2, "tables.move");
164620
164618
  if (options?.dryRun)
164621
- return buildTableSuccess(toBlockAddress(candidate));
164619
+ return buildTableSuccess(address2);
164622
164620
  try {
164623
164621
  const tr = editor.state.tr;
164624
164622
  const tableSlice = candidate.node;
@@ -165144,7 +165142,7 @@ function tablesConvertFromTextAdapter(editor, input2, options) {
165144
165142
  if (!candidate)
165145
165143
  throw new DocumentApiAdapterError("TARGET_NOT_FOUND", "tables.convertFromText: target was not found.");
165146
165144
  if (options?.dryRun)
165147
- return buildTableSuccess(toBlockAddress(candidate));
165145
+ return buildTableSuccess();
165148
165146
  try {
165149
165147
  const tr = editor.state.tr;
165150
165148
  const schema = editor.state.schema;
@@ -165850,7 +165848,16 @@ function resolveTableOrCellTarget(editor, locator, operationName) {
165850
165848
  throw new DocumentApiAdapterError("INVALID_TARGET", `${operationName}: requires either target or nodeId.`);
165851
165849
  if (!candidate)
165852
165850
  throw new DocumentApiAdapterError("TARGET_NOT_FOUND", `${operationName}: target was not found.`);
165853
- const scope = candidate.nodeType === "table" ? "table" : candidate.nodeType === "tableCell" ? "cell" : "invalid";
165851
+ if (candidate.nodeType === "tableCell") {
165852
+ const resolvedCell = resolveCellLocator(editor, locator, operationName);
165853
+ return {
165854
+ node: candidate.node,
165855
+ pos: candidate.pos,
165856
+ address: resolvedCell.table.address,
165857
+ scope: "cell"
165858
+ };
165859
+ }
165860
+ const scope = candidate.nodeType === "table" ? "table" : "invalid";
165854
165861
  return {
165855
165862
  node: candidate.node,
165856
165863
  pos: candidate.pos,
@@ -166453,14 +166460,18 @@ function tablesGetCellsAdapter(editor, input2) {
166453
166460
  }
166454
166461
  cells.sort((a2, b$1) => a2.rowIndex - b$1.rowIndex || a2.columnIndex - b$1.columnIndex);
166455
166462
  return {
166456
- tableNodeId: resolved.candidate.nodeId,
166463
+ nodeId: resolved.candidate.nodeId,
166464
+ address: resolved.address,
166457
166465
  cells
166458
166466
  };
166459
166467
  }
166460
166468
  function tablesGetPropertiesAdapter(editor, input2) {
166461
166469
  const resolved = resolveTableLocator(editor, input2, "tables.getProperties");
166462
166470
  const tp = asRecord2(resolved.candidate.node.attrs?.tableProperties) ?? {};
166463
- const result = { nodeId: resolved.candidate.nodeId };
166471
+ const result = {
166472
+ nodeId: resolved.candidate.nodeId,
166473
+ address: resolved.address
166474
+ };
166464
166475
  if (tp.tableStyleId != null)
166465
166476
  result.styleId = String(tp.tableStyleId);
166466
166477
  const alignment$1 = mapJustificationToTableAlignment(tp.justification);
@@ -166735,18 +166746,16 @@ function ensureFormatStepCapabilities(ctx$1, step3) {
166735
166746
  throw planError(trackedIssue.code, trackedIssue.message, step3.id, trackedIssue.details);
166736
166747
  }
166737
166748
  function buildTableInput(op, blockId, args$1) {
166738
- const { target: _target, nodeId: _n, tableTarget: _tableTarget, tableNodeId: _t$1, ...safeArgs } = args$1;
166739
- if (TABLE_SCOPED_OPS.has(op)) {
166740
- if (ROW_OPS.has(op) && safeArgs.rowIndex == null)
166741
- return {
166742
- ...safeArgs,
166743
- nodeId: blockId
166744
- };
166749
+ const { target: _target, nodeId: _n, ...safeArgs } = args$1;
166750
+ if (ROW_TARGETED_TABLE_OPS.has(op) && safeArgs.rowIndex == null)
166745
166751
  return {
166746
166752
  ...safeArgs,
166747
- tableNodeId: blockId
166753
+ target: {
166754
+ kind: "block",
166755
+ nodeType: "tableRow",
166756
+ nodeId: blockId
166757
+ }
166748
166758
  };
166749
- }
166750
166759
  return {
166751
166760
  ...safeArgs,
166752
166761
  nodeId: blockId
@@ -207736,7 +207745,7 @@ var Node$13 = class Node$14 {
207736
207745
  return;
207737
207746
  const candidate = run2.pmEnd;
207738
207747
  return typeof candidate === "number" ? candidate : undefined;
207739
- }, engines_exports, DEFAULT_HEADER_FOOTER_MARGIN_PX = 0, LINK_MARK_NAME = "link", COMMENT_MARK_NAME, SUPPORTED_INLINE_TYPES, cacheByEditor, OBJECT_REPLACEMENT_CHAR = "", LINE_NUMBER_RESTART_VALUES, PAGE_NUMBER_FORMAT_VALUES, SECTION_ORIENTATION_VALUES, SECTION_VERTICAL_ALIGN_VALUES, readSectPrHeaderFooterRefs, PIXELS_PER_INCH$2 = 96, BULLET_FORMATS$1, LOCK_MODE_TO_SDT_LOCK, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, SNIPPET_PADDING = 30, DUAL_KIND_TYPES, KNOWN_BLOCK_PM_NODE_TYPES, KNOWN_INLINE_PM_NODE_TYPES, MAX_PATTERN_LENGTH = 1024, TOGGLE_MARK_SPECS, CORE_MARK_NAMES, METADATA_MARK_NAMES, CSS_NAMED_COLORS, HEADING_STYLE_DEPTH, BULLET_FORMATS, MARK_PRIORITY, remarkProcessor, DEFAULT_UNFLATTEN_LISTS = true, DERIVED_ID_LENGTH = 24, groupedCache, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, REQUIRED_COMMANDS, VALID_CAPABILITY_REASON_CODES, REQUIRED_HELPERS, SCHEMA_NODE_GATES, schemaGatedIds, SUPPORTED_NON_UNIFORM_STRATEGIES, SUPPORTED_SET_MARKS, REGEX_MAX_PATTERN_LENGTH = 1024, registry, VALID_CREATE_POSITIONS, REF_HANDLERS, STEP_INTERACTION_MATRIX, MATRIX_EXEMPT_OPS, DEFAULT_INLINE_POLICY, CORE_SET_MARK_KEYS, BOOLEAN_INLINE_MARK_KEYS, TEXT_STYLE_KEYS, PRESERVE_RUN_PROPERTIES_META_KEY = "sdPreserveRunPropertiesKeys", CONTENT_CAPABILITIES, INLINE_CAPABILITIES, SDT_LOCK_TO_LOCK_MODE, STUB_WHERE, EMPTY_RESOLUTION, CONTAINER_NODE_TYPES, VALID_EDGE_NODE_TYPES3, FALLBACK_STORE_KEY = "__documentApiComments", STYLES_PART = "word/styles.xml", PROPERTIES_KEY_BY_CHANNEL, XML_PATH_BY_CHANNEL2, UNDERLINE_API_TO_STORAGE, UNDERLINE_STORAGE_TO_API, HEX_SUBKEYS_BY_PROPERTY, PARAGRAPH_NODE_TYPES, TEXT_STYLE_CHARACTER_STYLE_ATTR = "styleId", DIRECT_FORMATTING_MARK_NAMES, ALIGNMENT_TO_JUSTIFICATION, SUPPORTED_DELETE_NODE_TYPES3, REJECTED_DELETE_NODE_TYPES3, TEXT_PREVIEW_MAX_LENGTH = 80, RANGE_DELETE_SAFE_NODE_TYPES, INDENT_PER_LEVEL_TWIPS = 720, HANGING_INDENT_TWIPS = 360, ORDERED_PRESET_CONFIG, BULLET_PRESET_CONFIG, PRESET_TEMPLATES, LevelFormattingHelpers, PRESET_KIND_MAP, NUMBERING_PART = "word/numbering.xml", DEFAULT_PRESET_FOR_KIND, _setValueDelegate, PREVIEW_TEXT_MAX_LENGTH = 2000, BLOCK_PREVIEW_MAX_LENGTH = 200, EDGE_NODE_TYPES$1, DOCX_HEX_ID_LENGTH = 8, SETTINGS_PART_PATH = "word/settings.xml", POINTS_TO_PIXELS, POINTS_TO_TWIPS = 20, PIXELS_TO_TWIPS, DEFAULT_TABLE_GRID_WIDTH_TWIPS = 1500, SETTINGS_PART = "word/settings.xml", TABLE_ADAPTER_DISPATCH, ROW_OPS, TABLE_SCOPED_OPS, registered = false, STYLES_PART_ID = "word/styles.xml", stylesPartDescriptor, settingsPartDescriptor, RELS_PART_ID2 = "word/_rels/document.xml.rels", RELS_XMLNS$1 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", relsPartDescriptor, DOCUMENT_RELS_PATH$1 = "word/_rels/document.xml.rels", RELS_XMLNS2 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", WORDPROCESSINGML_XMLNS = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", OFFICE_DOCUMENT_RELS_XMLNS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", RELATIONSHIP_ID_PATTERN, HEADER_FILE_PATTERN$1, FOOTER_FILE_PATTERN$1, HISTORY_UNSAFE_OPS, IGNORED_ATTRIBUTE_KEYS, TRACK_CHANGE_MARK_NAMES, TRACK_CHANGE_IGNORED_ATTRIBUTE_KEYS, VOLATILE_PARAGRAPH_ATTRS, VOLATILE_IMAGE_ORIGINAL_ATTR_KEYS, SIMILARITY_THRESHOLD = 0.65, MIN_LENGTH_FOR_SIMILARITY = 4, COMMENT_ATTRS_DIFF_IGNORED_KEYS, setNestedValue = (target, path2, value) => {
207748
+ }, engines_exports, DEFAULT_HEADER_FOOTER_MARGIN_PX = 0, LINK_MARK_NAME = "link", COMMENT_MARK_NAME, SUPPORTED_INLINE_TYPES, cacheByEditor, OBJECT_REPLACEMENT_CHAR = "", LINE_NUMBER_RESTART_VALUES, PAGE_NUMBER_FORMAT_VALUES, SECTION_ORIENTATION_VALUES, SECTION_VERTICAL_ALIGN_VALUES, readSectPrHeaderFooterRefs, PIXELS_PER_INCH$2 = 96, BULLET_FORMATS$1, LOCK_MODE_TO_SDT_LOCK, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, SNIPPET_PADDING = 30, DUAL_KIND_TYPES, KNOWN_BLOCK_PM_NODE_TYPES, KNOWN_INLINE_PM_NODE_TYPES, MAX_PATTERN_LENGTH = 1024, TOGGLE_MARK_SPECS, CORE_MARK_NAMES, METADATA_MARK_NAMES, CSS_NAMED_COLORS, HEADING_STYLE_DEPTH, BULLET_FORMATS, MARK_PRIORITY, remarkProcessor, DEFAULT_UNFLATTEN_LISTS = true, DERIVED_ID_LENGTH = 24, groupedCache, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, REQUIRED_COMMANDS, VALID_CAPABILITY_REASON_CODES, REQUIRED_HELPERS, SCHEMA_NODE_GATES, schemaGatedIds, SUPPORTED_NON_UNIFORM_STRATEGIES, SUPPORTED_SET_MARKS, REGEX_MAX_PATTERN_LENGTH = 1024, registry, VALID_CREATE_POSITIONS, REF_HANDLERS, STEP_INTERACTION_MATRIX, MATRIX_EXEMPT_OPS, DEFAULT_INLINE_POLICY, CORE_SET_MARK_KEYS, BOOLEAN_INLINE_MARK_KEYS, TEXT_STYLE_KEYS, PRESERVE_RUN_PROPERTIES_META_KEY = "sdPreserveRunPropertiesKeys", CONTENT_CAPABILITIES, INLINE_CAPABILITIES, SDT_LOCK_TO_LOCK_MODE, STUB_WHERE, EMPTY_RESOLUTION, CONTAINER_NODE_TYPES, VALID_EDGE_NODE_TYPES3, FALLBACK_STORE_KEY = "__documentApiComments", STYLES_PART = "word/styles.xml", PROPERTIES_KEY_BY_CHANNEL, XML_PATH_BY_CHANNEL2, UNDERLINE_API_TO_STORAGE, UNDERLINE_STORAGE_TO_API, HEX_SUBKEYS_BY_PROPERTY, PARAGRAPH_NODE_TYPES, TEXT_STYLE_CHARACTER_STYLE_ATTR = "styleId", DIRECT_FORMATTING_MARK_NAMES, ALIGNMENT_TO_JUSTIFICATION, SUPPORTED_DELETE_NODE_TYPES3, REJECTED_DELETE_NODE_TYPES3, TEXT_PREVIEW_MAX_LENGTH = 80, RANGE_DELETE_SAFE_NODE_TYPES, INDENT_PER_LEVEL_TWIPS = 720, HANGING_INDENT_TWIPS = 360, ORDERED_PRESET_CONFIG, BULLET_PRESET_CONFIG, PRESET_TEMPLATES, LevelFormattingHelpers, PRESET_KIND_MAP, NUMBERING_PART = "word/numbering.xml", DEFAULT_PRESET_FOR_KIND, _setValueDelegate, PREVIEW_TEXT_MAX_LENGTH = 2000, BLOCK_PREVIEW_MAX_LENGTH = 200, EDGE_NODE_TYPES$1, DOCX_HEX_ID_LENGTH = 8, SETTINGS_PART_PATH = "word/settings.xml", POINTS_TO_PIXELS, POINTS_TO_TWIPS = 20, PIXELS_TO_TWIPS, DEFAULT_TABLE_GRID_WIDTH_TWIPS = 1500, SETTINGS_PART = "word/settings.xml", TABLE_ADAPTER_DISPATCH, ROW_TARGETED_TABLE_OPS, registered = false, STYLES_PART_ID = "word/styles.xml", stylesPartDescriptor, settingsPartDescriptor, RELS_PART_ID2 = "word/_rels/document.xml.rels", RELS_XMLNS$1 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", relsPartDescriptor, DOCUMENT_RELS_PATH$1 = "word/_rels/document.xml.rels", RELS_XMLNS2 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", WORDPROCESSINGML_XMLNS = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", OFFICE_DOCUMENT_RELS_XMLNS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", RELATIONSHIP_ID_PATTERN, HEADER_FILE_PATTERN$1, FOOTER_FILE_PATTERN$1, HISTORY_UNSAFE_OPS, IGNORED_ATTRIBUTE_KEYS, TRACK_CHANGE_MARK_NAMES, TRACK_CHANGE_IGNORED_ATTRIBUTE_KEYS, VOLATILE_PARAGRAPH_ATTRS, VOLATILE_IMAGE_ORIGINAL_ATTR_KEYS, SIMILARITY_THRESHOLD = 0.65, MIN_LENGTH_FOR_SIMILARITY = 4, COMMENT_ATTRS_DIFF_IGNORED_KEYS, setNestedValue = (target, path2, value) => {
207740
207749
  if (!path2.includes(".")) {
207741
207750
  target[path2] = value;
207742
207751
  return;
@@ -226762,9 +226771,9 @@ var Node$13 = class Node$14 {
226762
226771
  return false;
226763
226772
  return Boolean(checker(attrs));
226764
226773
  }, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
226765
- var init_src_D3r_lb_g_es = __esm(() => {
226774
+ var init_src_CZJm5ZTP_es = __esm(() => {
226766
226775
  init_rolldown_runtime_B2q5OVn9_es();
226767
- init_SuperConverter_hOU3ez7P_es();
226776
+ init_SuperConverter_DAceeh2o_es();
226768
226777
  init_jszip_ChlR43oI_es();
226769
226778
  init_uuid_qzgm05fK_es();
226770
226779
  init_constants_ep1_Gwqi_es();
@@ -234823,22 +234832,12 @@ function print() { __p += __j.call(arguments, '') }
234823
234832
  "tables.setCellSpacing": (e, i4, o) => tablesSetCellSpacingAdapter(e, i4, o),
234824
234833
  "tables.clearCellSpacing": (e, i4, o) => tablesClearCellSpacingAdapter(e, i4, o)
234825
234834
  };
234826
- ROW_OPS = new Set([
234835
+ ROW_TARGETED_TABLE_OPS = new Set([
234827
234836
  "tables.insertRow",
234828
234837
  "tables.deleteRow",
234829
234838
  "tables.setRowHeight",
234830
234839
  "tables.setRowOptions"
234831
234840
  ]);
234832
- TABLE_SCOPED_OPS = new Set([
234833
- "tables.insertRow",
234834
- "tables.deleteRow",
234835
- "tables.setRowHeight",
234836
- "tables.setRowOptions",
234837
- "tables.insertColumn",
234838
- "tables.deleteColumn",
234839
- "tables.setColumnWidth",
234840
- "tables.mergeCells"
234841
- ]);
234842
234841
  stylesPartDescriptor = {
234843
234842
  id: STYLES_PART_ID,
234844
234843
  ensurePart(editor) {
@@ -259981,8 +259980,8 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
259981
259980
 
259982
259981
  // ../../packages/superdoc/dist/super-editor.es.js
259983
259982
  var init_super_editor_es = __esm(() => {
259984
- init_src_D3r_lb_g_es();
259985
- init_SuperConverter_hOU3ez7P_es();
259983
+ init_src_CZJm5ZTP_es();
259984
+ init_SuperConverter_DAceeh2o_es();
259986
259985
  init_jszip_ChlR43oI_es();
259987
259986
  init_xml_js_BtmJ6bNs_es();
259988
259987
  init_constants_ep1_Gwqi_es();