oasis-editor 0.0.417 → 0.0.418

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 (30) hide show
  1. package/dist/OasisEditorApp-DAqRW7aB.js +1 -0
  2. package/dist/assets/{importDocxWorker-ChuR4jqX.js → importDocxWorker-FgGrfnHp.js} +3800 -2669
  3. package/dist/core/commands/builtinCommands.d.ts +1 -1
  4. package/dist/core/commands/publicCommandTypes.d.ts +13 -0
  5. package/dist/core/commands/text.d.ts +1 -1
  6. package/dist/core/document/contentControlTransactions.d.ts +20 -0
  7. package/dist/core/document/contentControlTraversal.d.ts +9 -0
  8. package/dist/core/document/contentControlValues.d.ts +8 -0
  9. package/dist/core/document/documentProtection.d.ts +3 -0
  10. package/dist/core/document/inlineContentControlEdit.d.ts +8 -0
  11. package/dist/core/document/repeatingSectionRows.d.ts +4 -0
  12. package/dist/core/model/types/document.d.ts +6 -0
  13. package/dist/core/model/types/docxSourcePackage.d.ts +4 -0
  14. package/dist/core/model/types/nodes.d.ts +4 -0
  15. package/dist/defaultToolbar-Ux_dvdoA.js +1 -0
  16. package/dist/export/docx/docxPackageXml.d.ts +1 -1
  17. package/dist/export/docx/synchronizeBoundContentControls.d.ts +7 -1
  18. package/dist/export/docx/text/sdtSubtypeSource.d.ts +2 -0
  19. package/dist/import/docx/opc/sourcePackage.d.ts +1 -0
  20. package/dist/import/docx/settings.d.ts +5 -0
  21. package/dist/oasis-editor.js +1 -1
  22. package/dist/oasis-editor.umd.cjs +1 -1
  23. package/dist/ooxml/word/customXmlBinding.d.ts +5 -0
  24. package/dist/plugins/internal/essentialsCapabilities.d.ts +3 -0
  25. package/dist/sourcePackage-GLrWYLnd.js +1 -0
  26. package/dist/ui/app/useEditorTransactions.d.ts +2 -0
  27. package/package.json +1 -1
  28. package/dist/OasisEditorApp-Dis4OFNS.js +0 -1
  29. package/dist/defaultToolbar-y3saZHkk.js +0 -1
  30. package/dist/sourcePackage-BhGtQ-1k.js +0 -1
@@ -5,6 +5,11 @@ export interface ResolvedCustomXmlBinding {
5
5
  itemPropsPartPath: string;
6
6
  value: string;
7
7
  kind: "element" | "attribute";
8
+ targetKey: string;
8
9
  }
10
+ /** Resolve a repeating section's simple sibling sequence within its package. */
11
+ export declare function countCustomXmlSequence(sourcePackage: EditorDocxSourcePackage | undefined, binding: EditorSdtDataBinding | undefined): number | null;
12
+ /** Copy and mutate a package-contained sequence selected by a simple child XPath. */
13
+ export declare function mutateCustomXmlSequence(sourcePackage: EditorDocxSourcePackage | undefined, binding: EditorSdtDataBinding | undefined, expectedCount: number, index: number, operation: "insertAfter" | "remove" | "moveUp" | "moveDown"): EditorDocxSourcePackage | null;
9
14
  export declare function resolveCustomXmlBinding(sourcePackage: EditorDocxSourcePackage | undefined, binding: EditorSdtDataBinding | undefined): ResolvedCustomXmlBinding | null;
10
15
  export declare function writeCustomXmlBinding(sourcePackage: EditorDocxSourcePackage | undefined, binding: EditorSdtDataBinding | undefined, value: string): boolean;
@@ -6,6 +6,7 @@ import { ImageBorderPatch } from '../../core/commands/image.js';
6
6
  import { TextCaseMode } from '../../core/commands/text.js';
7
7
  import { SpecialCharacterKind } from '../../core/commands/specialChar.js';
8
8
  import { ReplaceAllPayload } from '../../core/commands/publicCommandTypes.js';
9
+ import { RepeatingRowOperation } from '../../core/document/repeatingSectionRows.js';
9
10
  import { MarkupOptionsSnapshot, ShowMarkupPayload } from '../../core/commands/reviewMarkup.js';
10
11
  import { ToolbarStyleState } from '../../ui/toolbarStyleState.js';
11
12
  import { OasisBuiltinCommand } from '../../core/commands/builtinCommands.js';
@@ -573,6 +574,8 @@ export interface EssentialsFieldsCapability {
573
574
  updateVariableFields?: () => boolean;
574
575
  /** Legacy form fields. */
575
576
  setFormFieldValue?: (name: string, value: string) => boolean;
577
+ setContentControlValue?: (groupId: string, value: string) => boolean;
578
+ mutateRepeatingSectionRow?: (sectionId: string, itemId: string, operation: RepeatingRowOperation) => boolean;
576
579
  toggleFormCheckbox?: (name: string) => boolean;
577
580
  /** Insert a DATE field at the active caret with the current date. */
578
581
  insertDate: () => void;