oasis-editor 0.0.414 → 0.0.415

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 (32) hide show
  1. package/dist/OasisEditorApp-Blf411AF.js +1 -0
  2. package/dist/assets/{importDocxWorker-C4M8keWl.js → importDocxWorker-7COTnEu5.js} +5587 -5170
  3. package/dist/core/commands/builtinCommands.d.ts +1 -1
  4. package/dist/core/commands/list.d.ts +4 -0
  5. package/dist/core/commands/publicCommandTypes.d.ts +2 -0
  6. package/dist/core/document/listRestart.d.ts +7 -0
  7. package/dist/core/format/numberFormat.d.ts +15 -0
  8. package/dist/core/format/resolveNumberingLocale.d.ts +8 -0
  9. package/dist/core/model/index.d.ts +2 -2
  10. package/dist/core/model/listNumbering.d.ts +5 -1
  11. package/dist/core/model/types/primitives.d.ts +14 -8
  12. package/dist/core/model/types/styles.d.ts +3 -1
  13. package/dist/defaultToolbar-B8aZzV4B.js +1 -0
  14. package/dist/export/docx/docxTypes.d.ts +5 -0
  15. package/dist/export/docx/stylesXml.d.ts +4 -1
  16. package/dist/export/docx/text/paragraphPropertiesXml.d.ts +1 -1
  17. package/dist/export/pdf/draw/lists.d.ts +1 -1
  18. package/dist/i18n/locales/en.d.ts +16 -0
  19. package/dist/i18n/locales/pt-BR.d.ts +16 -0
  20. package/dist/import/docx/numbering.d.ts +14 -2
  21. package/dist/import/docx/stylesXml.d.ts +2 -1
  22. package/dist/oasis-editor.js +1 -1
  23. package/dist/oasis-editor.umd.cjs +1 -1
  24. package/dist/ooxml/word/numberFormat.d.ts +26 -0
  25. package/dist/ooxml/word/numberingMetadata.d.ts +5 -1
  26. package/dist/ooxml/word/pictureBullets.d.ts +13 -0
  27. package/dist/plugins/internal/essentialsCapabilities.d.ts +4 -0
  28. package/dist/sourcePackage-ByCOFs8g.js +1 -0
  29. package/package.json +1 -1
  30. package/dist/OasisEditorApp-BeGnnOPx.js +0 -1
  31. package/dist/defaultToolbar-BFmfRwzv.js +0 -1
  32. package/dist/sourcePackage-DWdP3w1_.js +0 -1
@@ -1,2 +1,2 @@
1
- export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "selectWord", "selectSentence", "selectParagraph", "selectCollapse", "selectText", "selectRange", "insertFootnote", "insertText", "insertEquation", "updateEquation", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "paste", "pasteAsPlainText", "pasteMergeFormatting", "formatPainter", "formatPainterContinuous", "cancelFormatPainter", "bold", "italic", "underline", "doubleUnderline", "wordUnderline", "strike", "doubleStrike", "smallCaps", "allCaps", "hidden", "noProof", "webHidden", "specVanish", "contextualAlternates", "characterBorder", "shadow", "emboss", "engrave", "outline", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "replaceAll", "toggleTrackChanges", "toggleRevisionMarkup", "showMarkupOptions", "applyShowMarkup", "toggleOutlinePanel", "toggleRevisionsPanel", "openCommandSearch", "repeatLastAction", "acceptRevisions", "rejectRevisions", "setReviewDisplayMode", "acceptAllRevisions", "rejectAllRevisions", "requestAcceptAllRevisions", "requestRejectAllRevisions", "nextRevision", "previousRevision", "nextComment", "previousComment", "newComment", "replyComment", "editComment", "toggleCommentsPanel", "resolveComment", "reopenComment", "deleteComment", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "columnBreak", "splitBlock", "insertNonBreakingSpace", "insertNonBreakingHyphen", "insertOptionalHyphen", "insertEmDash", "insertEllipsis", "insertCopyright", "insertRegistered", "insertTrademark", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "growFont1", "shrinkFont1", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "applyUnderlineStyle", "setUnderlineColor", "setCharacterScale", "setCharacterSpacing", "setRunSnapToGrid", "setFitText", "setBaselineShift", "setEmphasisMark", "setTextEffect", "setKerning", "setLigatures", "setNumberSpacing", "setNumberForm", "setStylisticSet", "documentStyles", "print", "copy", "cut", "newDocument", "saveDocument", "exportDocx", "exportPdf", "importDocument", "insertHtml", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageCropShape", "imageCropFill", "imageCropFit", "imageCropReset", "imageFlip", "imageRotate", "imageBorder", "imageTransparency", "resetImage", "outdent", "indent", "moveParagraphsUp", "moveParagraphsDown", "togglePageBreakBefore", "toggleKeepWithNext", "toggleKeepLinesTogether", "toggleWidowControl", "toggleParagraphBidi", "setParagraphBidi", "setParagraphAlign", "sortParagraphs", "promote", "demote", "resetParagraphFormatting", "setParagraphTabStops", "setOutlineLevel", "setSpacingAfter", "setSpacingBefore", "setContextualSpacing", "setMirrorIndents", "setLineRule", "setTextDirection", "setSuppressAutoHyphens", "setSuppressLineNumbers", "setKinsoku", "setOverflowPunct", "setWordWrap", "setAutoSpaceDE", "setAutoSpaceDN", "setAdjustRightInd", "setTopLinePunct", "setPageBreakBefore", "setKeepWithNext", "setKeepLinesTogether", "setWidowControl", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "applyHorizontalLine", "setDropCap", "setLineHeight", "setListFormat", "setListStartAt", "setListLevel", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "sectionBreakEvenPage", "sectionBreakOddPage", "sectionBreakNextColumn", "setPageMargins", "setMarginsPreset", "setSectionPageNumbering", "setPaperSize", "setPaperSizePreset", "setColumns", "setColumnsPreset", "setSectionVerticalAlign", "setSectionStart", "setSectionBidi", "setHyphenation", "editHeader", "editFooter", "editFirstPageHeader", "editEvenPageHeader", "editFirstPageFooter", "editEvenPageFooter", "insertPageNumber", "insertPageNumberXOfY", "placePageNumberTop", "placePageNumberBottom", "insertBookmark", "removeBookmark", "insertDateField", "updateBodyFields", "updateSelectedFields", "insertFieldCode", "editFieldCode", "editFieldCodeAtSelection", "toggleFieldLock", "toggleFieldCodes", "nextField", "previousField", "markAuthorityEntry", "insertTableOfAuthorities", "updateTableOfAuthorities", "insertTableOfFigures", "updateTableOfFigures", "previewMergeRecord", "mergeToNewDocuments", "updateVariableFields", "setFormFieldValue", "toggleFormCheckbox", "insertDateTime", "insertCrossReference", "markIndexEntry", "insertIndex", "updateIndex", "setNoteOptions", "exitHeaderFooter", "setDifferentFirstPage", "setDifferentOddEven", "applyDocumentTheme", "setDocumentColorScheme", "setDocumentFontScheme", "setDocumentParagraphSpacing", "setDocumentEffects", "setDocumentPageColor", "setDocumentWatermark", "setDocumentPageBorder", "setDocumentDesignDefault", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableDeleteCells", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellAlignment", "tableSetCellVerticalAlign", "tableSetCellTextDirection", "tableToText", "textToTable", "tableSplitAtRow", "tableSortAscending", "tableSortDescending", "tableDelete", "tableRepeatHeaderRows", "tableSetCellMargins", "tableSetCellSpacing", "tableSetTableIndent", "tableSetAlignment", "tableFormula", "tableSelectCell", "tableSelectRow", "tableSelectColumn", "tableSelectTable", "tableSetRowHeight", "tableSetBreakAcrossPages", "tableSetHeaderRow", "tableSetColumnWidth", "tableSetTableWidth", "tableSetCellWidth", "tableSetCellNoWrap", "tableSetCellFitText", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "setShapeFill", "setShapeOutline", "setShapeOutlineWidth", "alignFloatingObject", "reorderFloatingObject", "nudgeFloatingObject", "setFloatingFixedPosition", "setFloatingRotation", "setFloatingWrapPreset", "setFloatingWrapText", "setFloatingPositionPreset", "setShapePreset", "setTextBoxTextDirection", "setTextBoxVerticalAlign", "editTextBoxAlt", "rotateTextBox", "textBoxWidthCm", "textBoxHeightCm", "openSymbolDialog", "openEquationDialog", "tableProperties", "openFontDialog", "openParagraphDialog"];
1
+ export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "selectWord", "selectSentence", "selectParagraph", "selectCollapse", "selectText", "selectRange", "insertFootnote", "insertText", "insertEquation", "updateEquation", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "paste", "pasteAsPlainText", "pasteMergeFormatting", "formatPainter", "formatPainterContinuous", "cancelFormatPainter", "bold", "italic", "underline", "doubleUnderline", "wordUnderline", "strike", "doubleStrike", "smallCaps", "allCaps", "hidden", "noProof", "webHidden", "specVanish", "contextualAlternates", "characterBorder", "shadow", "emboss", "engrave", "outline", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "replaceAll", "toggleTrackChanges", "toggleRevisionMarkup", "showMarkupOptions", "applyShowMarkup", "toggleOutlinePanel", "toggleRevisionsPanel", "openCommandSearch", "repeatLastAction", "acceptRevisions", "rejectRevisions", "setReviewDisplayMode", "acceptAllRevisions", "rejectAllRevisions", "requestAcceptAllRevisions", "requestRejectAllRevisions", "nextRevision", "previousRevision", "nextComment", "previousComment", "newComment", "replyComment", "editComment", "toggleCommentsPanel", "resolveComment", "reopenComment", "deleteComment", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "columnBreak", "splitBlock", "insertNonBreakingSpace", "insertNonBreakingHyphen", "insertOptionalHyphen", "insertEmDash", "insertEllipsis", "insertCopyright", "insertRegistered", "insertTrademark", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "growFont1", "shrinkFont1", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "applyUnderlineStyle", "setUnderlineColor", "setCharacterScale", "setCharacterSpacing", "setRunSnapToGrid", "setFitText", "setBaselineShift", "setEmphasisMark", "setTextEffect", "setKerning", "setLigatures", "setNumberSpacing", "setNumberForm", "setStylisticSet", "documentStyles", "print", "copy", "cut", "newDocument", "saveDocument", "exportDocx", "exportPdf", "importDocument", "insertHtml", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageCropShape", "imageCropFill", "imageCropFit", "imageCropReset", "imageFlip", "imageRotate", "imageBorder", "imageTransparency", "resetImage", "outdent", "indent", "moveParagraphsUp", "moveParagraphsDown", "togglePageBreakBefore", "toggleKeepWithNext", "toggleKeepLinesTogether", "toggleWidowControl", "toggleParagraphBidi", "setParagraphBidi", "setParagraphAlign", "sortParagraphs", "promote", "demote", "resetParagraphFormatting", "setParagraphTabStops", "setOutlineLevel", "setSpacingAfter", "setSpacingBefore", "setContextualSpacing", "setMirrorIndents", "setLineRule", "setTextDirection", "setSuppressAutoHyphens", "setSuppressLineNumbers", "setKinsoku", "setOverflowPunct", "setWordWrap", "setAutoSpaceDE", "setAutoSpaceDN", "setAdjustRightInd", "setTopLinePunct", "setPageBreakBefore", "setKeepWithNext", "setKeepLinesTogether", "setWidowControl", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "applyHorizontalLine", "setDropCap", "setLineHeight", "setListFormat", "setListStartAt", "restartList", "continueList", "setListLevel", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "sectionBreakEvenPage", "sectionBreakOddPage", "sectionBreakNextColumn", "setPageMargins", "setMarginsPreset", "setSectionPageNumbering", "setPaperSize", "setPaperSizePreset", "setColumns", "setColumnsPreset", "setSectionVerticalAlign", "setSectionStart", "setSectionBidi", "setHyphenation", "editHeader", "editFooter", "editFirstPageHeader", "editEvenPageHeader", "editFirstPageFooter", "editEvenPageFooter", "insertPageNumber", "insertPageNumberXOfY", "placePageNumberTop", "placePageNumberBottom", "insertBookmark", "removeBookmark", "insertDateField", "updateBodyFields", "updateSelectedFields", "insertFieldCode", "editFieldCode", "editFieldCodeAtSelection", "toggleFieldLock", "toggleFieldCodes", "nextField", "previousField", "markAuthorityEntry", "insertTableOfAuthorities", "updateTableOfAuthorities", "insertTableOfFigures", "updateTableOfFigures", "previewMergeRecord", "mergeToNewDocuments", "updateVariableFields", "setFormFieldValue", "toggleFormCheckbox", "insertDateTime", "insertCrossReference", "markIndexEntry", "insertIndex", "updateIndex", "setNoteOptions", "exitHeaderFooter", "setDifferentFirstPage", "setDifferentOddEven", "applyDocumentTheme", "setDocumentColorScheme", "setDocumentFontScheme", "setDocumentParagraphSpacing", "setDocumentEffects", "setDocumentPageColor", "setDocumentWatermark", "setDocumentPageBorder", "setDocumentDesignDefault", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableDeleteCells", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellAlignment", "tableSetCellVerticalAlign", "tableSetCellTextDirection", "tableToText", "textToTable", "tableSplitAtRow", "tableSortAscending", "tableSortDescending", "tableDelete", "tableRepeatHeaderRows", "tableSetCellMargins", "tableSetCellSpacing", "tableSetTableIndent", "tableSetAlignment", "tableFormula", "tableSelectCell", "tableSelectRow", "tableSelectColumn", "tableSelectTable", "tableSetRowHeight", "tableSetBreakAcrossPages", "tableSetHeaderRow", "tableSetColumnWidth", "tableSetTableWidth", "tableSetCellWidth", "tableSetCellNoWrap", "tableSetCellFitText", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "setShapeFill", "setShapeOutline", "setShapeOutlineWidth", "alignFloatingObject", "reorderFloatingObject", "nudgeFloatingObject", "setFloatingFixedPosition", "setFloatingRotation", "setFloatingWrapPreset", "setFloatingWrapText", "setFloatingPositionPreset", "setShapePreset", "setTextBoxTextDirection", "setTextBoxVerticalAlign", "editTextBoxAlt", "rotateTextBox", "textBoxWidthCm", "textBoxHeightCm", "openSymbolDialog", "openEquationDialog", "tableProperties", "openFontDialog", "openParagraphDialog"];
2
2
  export type OasisBuiltinCommand = (typeof OASIS_BUILTIN_COMMANDS)[number];
@@ -6,4 +6,8 @@ export declare function indentParagraphList(state: EditorState): EditorState;
6
6
  export declare function outdentParagraphList(state: EditorState): EditorState;
7
7
  export declare function toggleParagraphList(state: EditorState, kind: ParagraphListKind): EditorState;
8
8
  export declare function setParagraphListFormat(state: EditorState, format: EditorParagraphListStyle["format"] | null): EditorState;
9
+ /** Restart the selected list items at the given value (1 by default). */
10
+ export declare function restartListAtSelection(state: EditorState, startAt?: number): EditorState;
11
+ /** Drop an explicit restart so the items continue the instance counter. */
12
+ export declare function continueListAtSelection(state: EditorState): EditorState;
9
13
  export declare function setParagraphListStartAt(state: EditorState, startAt: number | null): EditorState;
@@ -273,6 +273,8 @@ export interface OasisCommandPayloads {
273
273
  setLineHeight: number | null;
274
274
  setListFormat: string;
275
275
  setListStartAt: number | null;
276
+ restartList: number | undefined;
277
+ continueList: undefined;
276
278
  setListLevel: number;
277
279
  toggleOrientation: undefined;
278
280
  setOrientation: "portrait" | "landscape";
@@ -0,0 +1,7 @@
1
+ import { EditorState } from '../model.js';
2
+ export interface ListRestartInfo {
3
+ canRestart: boolean;
4
+ canContinue: boolean;
5
+ currentStartAt?: number;
6
+ }
7
+ export declare function getListRestartInfo(state: EditorState): ListRestartInfo;
@@ -0,0 +1,15 @@
1
+ import { NumberFormatToken } from '../../ooxml/word/numberFormat.js';
2
+ export interface LocaleNumberFormatters {
3
+ ordinal?(value: number): string | null;
4
+ cardinal?(value: number): string | null;
5
+ ordinalText?(value: number): string | null;
6
+ chicago?(value: number): string | null;
7
+ }
8
+ /** Register (or extend) the textual formatters for a locale. */
9
+ export declare function registerNumberFormatLocale(locale: string, formatters: LocaleNumberFormatters): void;
10
+ /** Render one value under one ST_NumberFormat token. Never returns null. */
11
+ export declare function formatNumberValue(value: number, token: string | undefined, locale?: string): string;
12
+ /** `\*` field switch for a format token (absent means decimal). */
13
+ export declare function numberFormatToFieldSwitch(token: NumberFormatToken | undefined): string | undefined;
14
+ /** Parse a `\*` switch, preserving the case-sensitive roman/alphabetic forms. */
15
+ export declare function fieldSwitchToNumberFormat(switchValue: string | undefined): NumberFormatToken | undefined;
@@ -0,0 +1,8 @@
1
+ import { EditorDocument } from '../model/types/document.js';
2
+ import { EditorParagraphNode } from '../model/types/nodes.js';
3
+ export declare const FALLBACK_NUMBERING_LOCALE = "pt-BR";
4
+ /**
5
+ * `w:lang` of the content → document default language → explicit editor
6
+ * setting → `pt-BR`.
7
+ */
8
+ export declare function resolveNumberingLocale(document: EditorDocument, paragraph?: EditorParagraphNode, editorLocale?: string): string;
@@ -6,7 +6,7 @@
6
6
  * statements that pointed there continue to work via the barrel
7
7
  * re-export in `src/core/model.ts`.
8
8
  */
9
- export type { EditorUnderlineStyle, EditorLigatures, EditorNumberSpacing, EditorNumberForm, EditorTextLanguage, EditorBorderStyle, EditorEmphasisMark, EditorTabStop, EditorParagraphListStyle, EditorImageCrop, EditorImageCropShape, EditorImageCropFit, EditorImageFillMode, EditorLineDash, EditorImageBorder, EditorImageFloatingPosition, EditorImageFloatingLayout, EditorImageRunData, EditorWrapPolygonPoint, EditorFieldData, EditorFieldChar, EditorLegacyFormFieldData, EditorFootnoteReferenceData, EditorEndnoteReferenceData, PageNumberFormat, EditorRevision, EditorRevisionMetadata, EditorMoveRangeMarker, EditorNumberingRevision, EditorStructuralRevision, EditorPropertyRevision, EditorAsset, EditorFootnoteNumberFormat, EditorFootnoteRestart, EditorDocxWidthValue, EditorTableLayout, EditorTableRowHeightRule, EditorGradientStop, EditorTextFill, EditorTextOutline, EditorTextShadow, EditorGlow, EditorReflection, } from './types/primitives.js';
9
+ export type { EditorUnderlineStyle, EditorLigatures, EditorNumberSpacing, EditorNumberForm, EditorTextLanguage, EditorBorderStyle, EditorEmphasisMark, EditorTabStop, EditorParagraphListStyle, EditorPictureBullet, EditorImageCrop, EditorImageCropShape, EditorImageCropFit, EditorImageFillMode, EditorLineDash, EditorImageBorder, EditorImageFloatingPosition, EditorImageFloatingLayout, EditorImageRunData, EditorWrapPolygonPoint, EditorFieldData, EditorFieldChar, EditorLegacyFormFieldData, EditorFootnoteReferenceData, EditorEndnoteReferenceData, PageNumberFormat, EditorRevision, EditorRevisionMetadata, EditorMoveRangeMarker, EditorNumberingRevision, EditorStructuralRevision, EditorPropertyRevision, EditorAsset, EditorFootnoteNumberFormat, EditorFootnoteRestart, EditorDocxWidthValue, EditorTableLayout, EditorTableRowHeightRule, EditorGradientStop, EditorTextFill, EditorTextOutline, EditorTextShadow, EditorGlow, EditorReflection, } from './types/primitives.js';
10
10
  export type { EditorTextStyle, EditorParagraphStyle, EditorTableStyle, EditorTableFloatingLayout, EditorTableConditionalFormat, EditorConditionalRowStyle, EditorTableConditionalType, EditorTableConditionalFlags, EditorTableCellStyle, EditorNamedStyle, } from './types/styles.js';
11
11
  export type { EditorRunBase, EditorOpaqueRunData, EditorTextRun, EditorTextBoxShape, EditorTextBoxBody, EditorTextBoxData, EditorDropCap, EditorSdtBlockWrapper, EditorSdtPr, EditorSdtSubtype, EditorSdtListItem, EditorSdtDataBinding, EditorParagraphNode, EditorTableCellNode, EditorTableRowStyle, EditorTableRowNode, EditorTableNode, EditorBlockNode, } from './types/nodes.js';
12
12
  export type { EditorMathNode, EditorMathText, EditorMathFraction, EditorMathRadical, EditorMathScript, EditorMathDelimiter, EditorMathAccent, EditorMathNary, EditorMathLimit, EditorMathMatrix, EditorMathBox, EditorMathGroup, EditorMathRaw, EditorMathStyle, EditorMathExpression, } from './types/math.js';
@@ -35,7 +35,7 @@ export { getDocumentSections, getDocumentSectionsCanonical, } from './documentSe
35
35
  export { DocumentIndexBuilder, getDocumentParagraphIndex, getDocumentParagraphs, getDocumentParagraphsCanonical, getParagraphById, findParagraphLocation, findParagraphTableLocation, findParagraphTablePathLocation, resolveTablePath, WeakMapDocumentIndexCache, } from './documentIndex.js';
36
36
  export type { EditorParagraphLocation, TableLocation, TablePathSegment, DocumentParagraphIndexEntry, DocumentIndexCache, } from './documentIndex.js';
37
37
  export { getBlockParagraphs, collectSectionParagraphs, } from './paragraphWalker.js';
38
- export { buildListLabels, resolveListLabel } from './listNumbering.js';
38
+ export { buildListLabels, resolveListLabel, resolveParagraphList, } from './listNumbering.js';
39
39
  export { getActiveSectionIndex, getActiveZone, getEditableBlocksForZone, tryGetEditableBlocksForZone, getActiveSectionBlocks, getParagraphs, syncActiveSectionToSelection, } from './editingZones.js';
40
40
  export { getHeaderFooterStoryKey, getSectionHeaderFooterBlocks, setSectionHeaderFooterBlocks, } from './headerFooterStories.js';
41
41
  export type { HeaderFooterSide, HeaderFooterStoryKind, HeaderFooterStoryKey, } from './headerFooterStories.js';
@@ -1,4 +1,8 @@
1
+ import { EditorNamedStyle } from './types/styles.js';
1
2
  import { EditorDocument } from './types/document.js';
2
3
  import { EditorParagraphNode } from './types/nodes.js';
3
- export declare function buildListLabels(document: EditorDocument): Map<string, string>;
4
+ import { EditorParagraphListStyle } from './types/primitives.js';
5
+ /** Direct `w:numPr` wins; a paragraph style may supply the list instead. */
6
+ export declare function resolveParagraphList(paragraph: EditorParagraphNode, styles?: Record<string, EditorNamedStyle>): EditorParagraphListStyle | undefined;
7
+ export declare function buildListLabels(document: EditorDocument, locale?: string): Map<string, string>;
4
8
  export declare function resolveListLabel(paragraph: EditorParagraphNode, labels: Map<string, string>): string;
@@ -1,9 +1,4 @@
1
- /**
2
- * Primitive building blocks shared across the editor model: borders, tabs,
3
- * image run data, footnote references, revisions, fields, list styles.
4
- * Kept dependency-free so it can be imported by every other model module
5
- * without risk of circular imports.
6
- */
1
+ import { NumberFormatToken } from '../../../ooxml/word/numberFormat.js';
7
2
  export type EditorUnderlineStyle = "single" | "double" | "thick" | "dotted" | "dottedHeavy" | "dash" | "dashedHeavy" | "dashLong" | "dashLongHeavy" | "dotDash" | "dashDotHeavy" | "dotDotDash" | "dashDotDotHeavy" | "wave" | "wavyHeavy" | "wavyDouble" | "words";
8
3
  export type EditorLigatures = "none" | "standard" | "contextual" | "historical" | "standardContextual";
9
4
  export type EditorNumberSpacing = "default" | "proportional" | "tabular";
@@ -77,12 +72,12 @@ export interface EditorParagraphListStyle {
77
72
  level?: number;
78
73
  /** Imported OOXML `w:numId`; paragraphs sharing it use the same counters. */
79
74
  instanceId?: string;
80
- format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "bullet";
75
+ format?: NumberFormatToken;
81
76
  startAt?: number;
82
77
  /** Effective `w:lvlText` pattern, for example `%1.%2.`. */
83
78
  levelText?: string;
84
79
  /** Effective formats for referenced levels in a multilevel label. */
85
- levelFormats?: Array<"decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "bullet">;
80
+ levelFormats?: NumberFormatToken[];
86
81
  /** `w:lvlJc`: alignment of the label inside its hanging-indent area. */
87
82
  alignment?: "left" | "center" | "right";
88
83
  /** `w:isLgl`: render referenced ordered levels with decimal digits. */
@@ -97,6 +92,17 @@ export interface EditorParagraphListStyle {
97
92
  bulletGlyph?: string;
98
93
  /** Font family used to render the bullet glyph (e.g. "Symbol", "Wingdings"). */
99
94
  bulletFont?: string;
95
+ /** `w:lvl/w:lvlPicBulletId` resolved through `w:numPicBullet` relationships. */
96
+ bulletPicture?: EditorPictureBullet;
97
+ }
98
+ /** An imported picture bullet: the image payload lives in `document.assets`. */
99
+ export interface EditorPictureBullet {
100
+ numPicBulletId: string;
101
+ /** `asset:<id>` reference, or the source relationship id when unresolved. */
102
+ src: string;
103
+ widthPx?: number;
104
+ heightPx?: number;
105
+ altText?: string;
100
106
  }
101
107
  /**
102
108
  * Image crop, mapped from DrawingML `a:srcRect`. Values are fractions of the
@@ -1,4 +1,4 @@
1
- import { EditorBorderStyle, EditorDocxWidthValue, EditorEmphasisMark, EditorGlow, EditorLigatures, EditorNumberForm, EditorNumberSpacing, EditorPropertyRevision, EditorReflection, EditorStructuralRevision, EditorTabStop, EditorTextFill, EditorTextLanguage, EditorTextOutline, EditorTextShadow, EditorUnderlineStyle } from './primitives.js';
1
+ import { EditorBorderStyle, EditorDocxWidthValue, EditorEmphasisMark, EditorGlow, EditorLigatures, EditorNumberForm, EditorNumberSpacing, EditorParagraphListStyle, EditorPropertyRevision, EditorReflection, EditorStructuralRevision, EditorTabStop, EditorTextFill, EditorTextLanguage, EditorTextOutline, EditorTextShadow, EditorUnderlineStyle } from './primitives.js';
2
2
  export interface EditorTextStyle {
3
3
  styleId?: string;
4
4
  bold?: boolean;
@@ -79,6 +79,8 @@ export interface EditorTextStyle {
79
79
  }
80
80
  export interface EditorParagraphStyle {
81
81
  styleId?: string;
82
+ /** `w:pPr/w:numPr`: a paragraph using this style becomes a list item. */
83
+ list?: EditorParagraphListStyle;
82
84
  align?: "left" | "center" | "right" | "justify";
83
85
  spacingBefore?: number | null;
84
86
  spacingAfter?: number | null;