oasis-editor 0.0.416 → 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 (35) hide show
  1. package/dist/OasisEditorApp-DAqRW7aB.js +1 -0
  2. package/dist/assets/{importDocxWorker-7COTnEu5.js → importDocxWorker-FgGrfnHp.js} +4329 -2666
  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/core/model/types/primitives.d.ts +2 -0
  16. package/dist/defaultToolbar-Ux_dvdoA.js +1 -0
  17. package/dist/export/docx/docxPackageXml.d.ts +1 -1
  18. package/dist/export/docx/docxTypes.d.ts +2 -0
  19. package/dist/export/docx/synchronizeBoundContentControls.d.ts +7 -1
  20. package/dist/export/docx/text/sdtSubtypeSource.d.ts +2 -0
  21. package/dist/import/docx/numbering.d.ts +29 -3
  22. package/dist/import/docx/opc/sourcePackage.d.ts +1 -0
  23. package/dist/import/docx/settings.d.ts +5 -0
  24. package/dist/oasis-editor.js +1 -1
  25. package/dist/oasis-editor.umd.cjs +1 -1
  26. package/dist/ooxml/word/customXmlBinding.d.ts +5 -0
  27. package/dist/ooxml/word/numberFormat.d.ts +2 -1
  28. package/dist/ooxml/word/numberingMetadata.d.ts +2 -0
  29. package/dist/plugins/internal/essentialsCapabilities.d.ts +3 -0
  30. package/dist/sourcePackage-GLrWYLnd.js +1 -0
  31. package/dist/ui/app/useEditorTransactions.d.ts +2 -0
  32. package/package.json +1 -1
  33. package/dist/OasisEditorApp-BN_8lhHA.js +0 -1
  34. package/dist/defaultToolbar-DzDVVDsk.js +0 -1
  35. package/dist/sourcePackage-ByCOFs8g.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;
@@ -21,6 +21,7 @@ export declare function needsLocaleNumberFormat(token: string | undefined): bool
21
21
  /**
22
22
  * Deterministic here means "same value and same token always render the same
23
23
  * label, without consulting a locale or an external oracle". Counting systems
24
- * are excluded until their rules are sourced from official documentation.
24
+ * qualify because their grammar is encoded in the formatter; textual formats
25
+ * (`ordinalText`, `cardinalText`, `chicago`) stay locale-dependent.
25
26
  */
26
27
  export declare function isDeterministicNumberFormat(token: string | undefined): boolean;
@@ -17,6 +17,8 @@ export interface EditorListOoxmlNumberingMetadata {
17
17
  numStyleLink?: string;
18
18
  /** `w:abstractNum/w:styleLink/@w:val`. */
19
19
  styleLink?: string;
20
+ /** `w:abstractNum/w:multiLevelType/@w:val`. */
21
+ multiLevelType?: "singleLevel" | "multilevel" | "hybridMultilevel";
20
22
  }
21
23
  export declare function setEditorListOoxmlNumberingMetadata(list: EditorParagraphListStyle, metadata: Omit<EditorListOoxmlNumberingMetadata, "importedFormat" | "importedKind">): void;
22
24
  export declare function getEditorListOoxmlNumberingMetadata(list: EditorParagraphListStyle): EditorListOoxmlNumberingMetadata | undefined;
@@ -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;