oasis-editor 0.0.16 → 0.0.18
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.
- package/dist/{OasisEditorApp-CVvcxpbi.js → OasisEditorApp-Cwoo0WV0.js} +1 -1
- package/dist/app/bootstrap/createOasisEditorApp.d.ts +2 -2
- package/dist/app/bootstrap/createOasisEditorContainer.d.ts +2 -2
- package/dist/app/client/OasisEditorClient.d.ts +4 -4
- package/dist/app/clipboard/htmlClipboardParser.d.ts +1 -1
- package/dist/app/controllers/EditorCommandRegistry.d.ts +1 -1
- package/dist/app/controllers/EditorCommandsController.d.ts +6 -6
- package/dist/app/controllers/createResizeSession.d.ts +4 -4
- package/dist/app/controllers/createRotateSession.d.ts +3 -3
- package/dist/app/controllers/documentIO/DocumentExporter.d.ts +1 -1
- package/dist/app/controllers/documentIO/DocumentImporter.d.ts +3 -3
- package/dist/app/controllers/documentIO/ImageInsertionService.d.ts +2 -2
- package/dist/app/controllers/tableOpsCellSpanCommands.d.ts +2 -2
- package/dist/app/controllers/tableOpsGuards.d.ts +2 -2
- package/dist/app/controllers/tableOpsMutationCommands.d.ts +1 -1
- package/dist/app/controllers/tableOpsRowColumnCommands.d.ts +1 -1
- package/dist/app/controllers/tableOpsSelectionAwareCommands.d.ts +3 -3
- package/dist/app/controllers/tableOpsSelectionNavigation.d.ts +1 -1
- package/dist/app/controllers/tableOpsSelectionRanges.d.ts +3 -3
- package/dist/app/controllers/tableResize/tableResizeApply.d.ts +2 -2
- package/dist/app/controllers/tableResize/tableResizeConstraints.d.ts +3 -3
- package/dist/app/controllers/tableResize/tableResizeGeometry.d.ts +2 -2
- package/dist/app/controllers/tableResize/tableResizeHitTest.d.ts +2 -2
- package/dist/app/controllers/tableResize/tableResizeTypes.d.ts +2 -2
- package/dist/app/controllers/useEditorClipboard.d.ts +2 -2
- package/dist/app/controllers/useEditorDocumentIO.d.ts +4 -4
- package/dist/app/controllers/useEditorFindReplace.d.ts +2 -2
- package/dist/app/controllers/useEditorHistoryActions.d.ts +3 -3
- package/dist/app/controllers/useEditorImageOperations.d.ts +10 -10
- package/dist/app/controllers/useEditorKeyboard.d.ts +4 -4
- package/dist/app/controllers/useEditorLayout.d.ts +15 -15
- package/dist/app/controllers/useEditorNavigation.d.ts +2 -2
- package/dist/app/controllers/useEditorPersistence.d.ts +2 -2
- package/dist/app/controllers/useEditorRevision.d.ts +3 -3
- package/dist/app/controllers/useEditorStyle.d.ts +4 -4
- package/dist/app/controllers/useEditorSurfaceEvents.d.ts +2 -2
- package/dist/app/controllers/useEditorTableDrag.d.ts +5 -5
- package/dist/app/controllers/useEditorTableOperations.d.ts +9 -9
- package/dist/app/controllers/useEditorTableResize.d.ts +3 -3
- package/dist/app/controllers/useEditorTextBoxOperations.d.ts +4 -4
- package/dist/app/controllers/useEditorTextDrag.d.ts +7 -7
- package/dist/app/controllers/useEditorTextInput.d.ts +2 -2
- package/dist/app/services/FindReplaceService.d.ts +1 -1
- package/dist/app/services/PersistenceService.d.ts +1 -1
- package/dist/core/Editor.d.ts +4 -4
- package/dist/core/cloneState.d.ts +1 -1
- package/dist/core/commands/CommandBus.d.ts +2 -2
- package/dist/core/commands/CommandRegistry.d.ts +1 -1
- package/dist/core/commands/block.d.ts +2 -2
- package/dist/core/commands/clipboard.d.ts +1 -1
- package/dist/core/commands/floatingLayout.d.ts +1 -1
- package/dist/core/commands/footnotes.d.ts +1 -1
- package/dist/core/commands/history.d.ts +1 -1
- package/dist/core/commands/image.d.ts +3 -3
- package/dist/core/commands/link.d.ts +1 -1
- package/dist/core/commands/list.d.ts +2 -2
- package/dist/core/commands/misc.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +3 -3
- package/dist/core/commands/selectedObjectRun.d.ts +1 -1
- package/dist/core/commands/selection.d.ts +1 -1
- package/dist/core/commands/shape.d.ts +1 -1
- package/dist/core/commands/table/insertTableCommand.d.ts +1 -1
- package/dist/core/commands/table/tableCellStyleCommands.d.ts +1 -1
- package/dist/core/commands/table/tableColumnCommands.d.ts +1 -1
- package/dist/core/commands/table/tableCommandUtils.d.ts +1 -1
- package/dist/core/commands/table/tableRowCommands.d.ts +1 -1
- package/dist/core/commands/table/tableStyleCommands.d.ts +1 -1
- package/dist/core/commands/table.d.ts +5 -5
- package/dist/core/commands/text.d.ts +2 -2
- package/dist/core/commands/textBox.d.ts +3 -3
- package/dist/core/document/blockReplacement.d.ts +1 -1
- package/dist/core/document/bookmarkAnchors.d.ts +1 -1
- package/dist/core/document/clone.d.ts +1 -1
- package/dist/core/document/imageCaptions.d.ts +1 -1
- package/dist/core/document/paragraphRunBuild.d.ts +1 -1
- package/dist/core/document/paragraphRunEdit.d.ts +1 -1
- package/dist/core/document/paragraphRunQuery.d.ts +1 -1
- package/dist/core/document/paragraphRuns.d.ts +3 -3
- package/dist/core/editorCommands.d.ts +14 -14
- package/dist/core/editorState.d.ts +1 -1
- package/dist/core/endnotes.d.ts +1 -1
- package/dist/core/engine.d.ts +1 -1
- package/dist/core/footnotes.d.ts +1 -1
- package/dist/core/headings.d.ts +1 -1
- package/dist/core/html/htmlBlockWalker.d.ts +1 -1
- package/dist/core/html/htmlStyleParser.d.ts +3 -3
- package/dist/core/html/htmlTextSerializer.d.ts +1 -1
- package/dist/core/html/inlineImageParser.d.ts +1 -1
- package/dist/core/html/inlineStyleParser.d.ts +1 -1
- package/dist/core/html/paragraphStyleParser.d.ts +1 -1
- package/dist/core/html/styleCss.d.ts +1 -1
- package/dist/core/model/assets.d.ts +1 -1
- package/dist/core/model/documentIndex.d.ts +3 -3
- package/dist/core/model/documentSections.d.ts +1 -1
- package/dist/core/model/editingZones.d.ts +3 -3
- package/dist/core/model/editorState.d.ts +2 -2
- package/dist/core/model/index.d.ts +24 -24
- package/dist/core/model/pageGeometry.d.ts +1 -1
- package/dist/core/model/paragraphWalker.d.ts +2 -2
- package/dist/core/model/queries.d.ts +2 -2
- package/dist/core/model/styleDefaults.d.ts +1 -1
- package/dist/core/model/styleResolution.d.ts +1 -1
- package/dist/core/model/types/document.d.ts +7 -7
- package/dist/core/model/types/documentEndnotes.d.ts +1 -1
- package/dist/core/model/types/documentFootnotes.d.ts +1 -1
- package/dist/core/model/types/layout.d.ts +4 -4
- package/dist/core/model/types/nodes.d.ts +2 -2
- package/dist/core/model/types/styles.d.ts +1 -1
- package/dist/core/model.d.ts +2 -2
- package/dist/core/plugin.d.ts +5 -5
- package/dist/core/plugins/PluginCollection.d.ts +1 -1
- package/dist/core/plugins/PluginUiRegistry.d.ts +1 -1
- package/dist/core/selection/navigation.d.ts +1 -1
- package/dist/core/selection/rangeEditing.d.ts +2 -2
- package/dist/core/selection.d.ts +1 -1
- package/dist/core/tableLayout.d.ts +1 -1
- package/dist/core/textStyle/textStyleKeys.d.ts +1 -1
- package/dist/core/textStyle/textStyleMutations.d.ts +2 -2
- package/dist/core/textStyleMappings.d.ts +1 -1
- package/dist/export/docx/bookmarksXml.d.ts +1 -1
- package/dist/export/docx/borders.d.ts +1 -1
- package/dist/export/docx/commentsXml.d.ts +1 -1
- package/dist/export/docx/docxTypes.d.ts +3 -3
- package/dist/export/docx/endnotesXml.d.ts +2 -2
- package/dist/export/docx/exportEditorDocumentToDocx.d.ts +1 -1
- package/dist/export/docx/footnotesXml.d.ts +2 -2
- package/dist/export/docx/stylesXml.d.ts +1 -1
- package/dist/export/docx/tableXml.d.ts +1 -1
- package/dist/export/docx/text/blocksXml.d.ts +2 -2
- package/dist/export/docx/text/drawingContainerXml.d.ts +2 -2
- package/dist/export/docx/text/dropCapXml.d.ts +1 -1
- package/dist/export/docx/text/endnoteRunXml.d.ts +2 -2
- package/dist/export/docx/text/fieldRunXml.d.ts +1 -1
- package/dist/export/docx/text/footnoteRunXml.d.ts +2 -2
- package/dist/export/docx/text/hyperlinkXml.d.ts +1 -1
- package/dist/export/docx/text/imageRunXml.d.ts +1 -1
- package/dist/export/docx/text/paragraphPropertiesXml.d.ts +1 -1
- package/dist/export/docx/text/runPropertiesXml.d.ts +1 -1
- package/dist/export/docx/text/runXml.d.ts +2 -2
- package/dist/export/docx/text/styleMaterialization.d.ts +1 -1
- package/dist/export/docx/text/textBoxRunXml.d.ts +2 -2
- package/dist/export/docx/textXml.d.ts +1 -1
- package/dist/export/pdf/draw/drawBlockList.d.ts +3 -3
- package/dist/export/pdf/draw/drawFragment.d.ts +3 -3
- package/dist/export/pdf/draw/drawPageBackground.d.ts +1 -1
- package/dist/export/pdf/draw/drawParagraph.d.ts +3 -3
- package/dist/export/pdf/draw/drawTable.d.ts +3 -3
- package/dist/export/pdf/draw/drawTextBoxShape.d.ts +3 -3
- package/dist/export/pdf/draw/fragmentGeometry.d.ts +1 -1
- package/dist/export/pdf/draw/lists.d.ts +3 -3
- package/dist/export/pdf/exportEditorDocumentToPdf.d.ts +1 -1
- package/dist/export/pdf/fonts/PdfFontRegistry.d.ts +1 -1
- package/dist/export/pdf/fonts/TrueTypePdfFontSubsetter.d.ts +1 -1
- package/dist/export/pdf/fonts/collectPdfFontFamilies.d.ts +1 -1
- package/dist/export/pdf/images.d.ts +2 -2
- package/dist/export/pdf/layout/layoutParagraph.d.ts +2 -2
- package/dist/export/pdf/units.d.ts +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/en.d.ts +26 -0
- package/dist/i18n/locales/pt-BR.d.ts +26 -0
- package/dist/import/DocumentFormatImporter.d.ts +1 -1
- package/dist/import/documentImporterRegistry.d.ts +1 -1
- package/dist/import/docx/assetRegistry.d.ts +1 -1
- package/dist/import/docx/bookmarks.d.ts +1 -1
- package/dist/import/docx/borders.d.ts +2 -2
- package/dist/import/docx/comments.d.ts +1 -1
- package/dist/import/docx/docxImporter.d.ts +1 -1
- package/dist/import/docx/dropCap.d.ts +3 -3
- package/dist/import/docx/endnotes.d.ts +5 -5
- package/dist/import/docx/footnotes.d.ts +5 -5
- package/dist/import/docx/headerFooter.d.ts +5 -5
- package/dist/import/docx/importDocxInWorker.d.ts +2 -2
- package/dist/import/docx/importDocxToEditorDocument.d.ts +1 -1
- package/dist/import/docx/nestedBlocks.d.ts +6 -6
- package/dist/import/docx/numbering.d.ts +2 -2
- package/dist/import/docx/paragraphStyle.d.ts +2 -2
- package/dist/import/docx/paragraphs.d.ts +6 -6
- package/dist/import/docx/relationships.d.ts +1 -1
- package/dist/import/docx/runStyle.d.ts +3 -3
- package/dist/import/docx/runs/drawingImage.d.ts +4 -4
- package/dist/import/docx/runs/fields.d.ts +1 -1
- package/dist/import/docx/runs/relationships.d.ts +3 -3
- package/dist/import/docx/runs/textBox.d.ts +3 -3
- package/dist/import/docx/runs/types.d.ts +2 -2
- package/dist/import/docx/runs/vmlImage.d.ts +4 -4
- package/dist/import/docx/runs.d.ts +10 -10
- package/dist/import/docx/sectionProperties.d.ts +3 -3
- package/dist/import/docx/settings.d.ts +1 -1
- package/dist/import/docx/styleUtils.d.ts +1 -1
- package/dist/import/docx/stylesXml.d.ts +2 -2
- package/dist/import/docx/tables.d.ts +6 -6
- package/dist/import/docx/theme.d.ts +2 -2
- package/dist/import/docx/themeColors.d.ts +1 -1
- package/dist/import/docx/themeFonts.d.ts +1 -1
- package/dist/import/docx/xmlHelpers.d.ts +1 -1
- package/dist/import/html/htmlImporter.d.ts +1 -1
- package/dist/import/html/importHtmlToEditorDocument.d.ts +1 -1
- package/dist/{index-u3nvOtUO.js → index-CBbhzffQ.js} +92 -19
- package/dist/layoutProjection/blockHeights.d.ts +1 -1
- package/dist/layoutProjection/blocksPagination.d.ts +2 -2
- package/dist/layoutProjection/constants.d.ts +1 -1
- package/dist/layoutProjection/documentLayout.d.ts +2 -2
- package/dist/layoutProjection/dropCapExclusion.d.ts +2 -2
- package/dist/layoutProjection/endnotePagination.d.ts +1 -1
- package/dist/layoutProjection/floatingObjects.d.ts +1 -1
- package/dist/layoutProjection/footnotePagination.d.ts +2 -2
- package/dist/layoutProjection/headerFooterFootnotes.d.ts +2 -2
- package/dist/layoutProjection/headerFooterProjection.d.ts +2 -2
- package/dist/layoutProjection/index.d.ts +9 -9
- package/dist/layoutProjection/paragraphBorders.d.ts +1 -1
- package/dist/layoutProjection/paragraphPagination.d.ts +4 -4
- package/dist/layoutProjection/paragraphProjection.d.ts +1 -1
- package/dist/layoutProjection/sectionPagination.d.ts +2 -2
- package/dist/layoutProjection/tablePagination.d.ts +2 -2
- package/dist/layoutProjection/tableProjection.d.ts +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/createEssentialsPlugin.d.ts +3 -3
- package/dist/plugins/internal/essentialsCommandBuilders.d.ts +1 -1
- package/dist/plugins/internal/essentialsCommandGroups.d.ts +3 -3
- package/dist/testing/wordLayoutParity.d.ts +1 -1
- package/dist/text/fonts/FontProgramFactory.d.ts +2 -2
- package/dist/text/fonts/core/types.d.ts +1 -1
- package/dist/text/fonts/decoders/FontDecoderRegistry.d.ts +1 -1
- package/dist/text/fonts/decoders/TtfDecoder.d.ts +1 -1
- package/dist/text/fonts/decoders/Woff2Decoder.d.ts +3 -3
- package/dist/text/fonts/layout/SimpleTextLayouter.d.ts +1 -1
- package/dist/text/fonts/preciseFontMetrics.d.ts +1 -1
- package/dist/text/fonts/preciseFontMode.d.ts +1 -1
- package/dist/text/fonts/sfnt/SfntFontProgram.d.ts +3 -3
- package/dist/text/fonts/vendor/woff2/glyf-reconstructor.d.ts +1 -1
- package/dist/text/truetype/CmapParser.d.ts +1 -1
- package/dist/text/truetype/SfntTableDirectory.d.ts +1 -1
- package/dist/text/truetype/TrueTypeFont.d.ts +2 -2
- package/dist/text/truetype/tableParsers.d.ts +1 -1
- package/dist/ui/OasisEditorApp.d.ts +2 -2
- package/dist/ui/OasisEditorAppLazy.d.ts +1 -1
- package/dist/ui/OasisEditorAppProps.d.ts +7 -7
- package/dist/ui/OasisEditorContainer.d.ts +1 -1
- package/dist/ui/OasisEditorEditor.d.ts +6 -6
- package/dist/ui/OasisEditorLoading.d.ts +1 -1
- package/dist/ui/app/EditorDialogsLayer.d.ts +7 -7
- package/dist/ui/app/EditorDragLayers.d.ts +5 -5
- package/dist/ui/app/EditorWorkspace.d.ts +9 -9
- package/dist/ui/app/buildEditorViewProps.d.ts +9 -9
- package/dist/ui/app/createEditorEssentialsPlugin.d.ts +7 -7
- package/dist/ui/app/createRuntimeCommandHost.d.ts +7 -7
- package/dist/ui/app/fontOptions.d.ts +2 -2
- package/dist/ui/app/shouldShowCaret.d.ts +2 -2
- package/dist/ui/app/useCanvasSurfaceHitResolver.d.ts +3 -3
- package/dist/ui/app/useEditorAppState.d.ts +2 -2
- package/dist/ui/app/useEditorContextMenuClipboard.d.ts +3 -3
- package/dist/ui/app/useEditorDialogs.d.ts +17 -17
- package/dist/ui/app/useEditorFocus.d.ts +2 -2
- package/dist/ui/app/useEditorFontOptions.d.ts +2 -2
- package/dist/ui/app/useEditorInteractionWiring.d.ts +13 -13
- package/dist/ui/app/useEditorRuntimeBootstrap.d.ts +3 -3
- package/dist/ui/app/useEditorRuntimePlugins.d.ts +3 -3
- package/dist/ui/app/useEditorTransactions.d.ts +5 -5
- package/dist/ui/app/useEditorUiOptions.d.ts +4 -4
- package/dist/ui/app/useFontDialogBridge.d.ts +3 -3
- package/dist/ui/app/useParagraphDialogBridge.d.ts +3 -3
- package/dist/ui/app/useTablePropertiesDialogBridge.d.ts +2 -2
- package/dist/ui/canvas/CanvasCommentGeometry.d.ts +3 -3
- package/dist/ui/canvas/CanvasDebug.d.ts +3 -3
- package/dist/ui/canvas/CanvasGeometry.d.ts +2 -2
- package/dist/ui/canvas/CanvasHitTestService.d.ts +2 -2
- package/dist/ui/canvas/CanvasLayoutSnapshot.d.ts +3 -3
- package/dist/ui/canvas/CanvasSelectionGeometry.d.ts +3 -3
- package/dist/ui/canvas/CanvasTableLayout.d.ts +3 -3
- package/dist/ui/canvas/canvasBlockPainter.d.ts +1 -1
- package/dist/ui/canvas/canvasDropCapPainter.d.ts +1 -1
- package/dist/ui/canvas/canvasPageRenderer.d.ts +1 -1
- package/dist/ui/canvas/canvasParagraphPainter.d.ts +1 -1
- package/dist/ui/canvas/canvasTablePainter.d.ts +1 -1
- package/dist/ui/canvas/canvasTextBoxPainter.d.ts +1 -1
- package/dist/ui/canvas/imageContour.d.ts +1 -1
- package/dist/ui/canvas/listNumbering.d.ts +1 -1
- package/dist/ui/canvas/textBoxRenderHeight.d.ts +1 -1
- package/dist/ui/canvas/verticalText.d.ts +1 -1
- package/dist/ui/components/CanvasEditorSurface.d.ts +3 -3
- package/dist/ui/components/CommentHighlightOverlay.d.ts +3 -3
- package/dist/ui/components/Dialogs/Dialog.d.ts +1 -1
- package/dist/ui/components/Dialogs/FontDialog.d.ts +2 -2
- package/dist/ui/components/Dialogs/FontDialogModel.d.ts +2 -2
- package/dist/ui/components/Dialogs/ParagraphDialog.d.ts +1 -1
- package/dist/ui/components/Dialogs/TablePropertiesDialog.d.ts +1 -1
- package/dist/ui/components/Dialogs/font-dialog/AdvancedFontTab.d.ts +1 -1
- package/dist/ui/components/Dialogs/font-dialog/FontDialogController.d.ts +2 -2
- package/dist/ui/components/Dialogs/font-dialog/FontDialogTypes.d.ts +2 -2
- package/dist/ui/components/Dialogs/font-dialog/FontTab.d.ts +1 -1
- package/dist/ui/components/Dialogs/font-dialog/useFontDialogController.d.ts +2 -2
- package/dist/ui/components/DropCaret.d.ts +1 -1
- package/dist/ui/components/FindReplace/FindReplaceDialog.d.ts +2 -2
- package/dist/ui/components/FloatingToolbar/FloatingLayoutOptions.d.ts +2 -2
- package/dist/ui/components/FloatingToolbar/FloatingTableToolbar.d.ts +3 -3
- package/dist/ui/components/Menubar/Menubar.d.ts +2 -2
- package/dist/ui/components/Menubar/defaultMenuItems.d.ts +1 -1
- package/dist/ui/components/Menubar/menuRegistry.d.ts +4 -4
- package/dist/ui/components/OasisBrandMark.d.ts +1 -1
- package/dist/ui/components/Outline/OutlinePanel.d.ts +1 -1
- package/dist/ui/components/PluginUi/PluginUiHost.d.ts +2 -2
- package/dist/ui/components/RevisionOverlay.d.ts +1 -1
- package/dist/ui/components/Ruler/HorizontalRuler.d.ts +3 -3
- package/dist/ui/components/Ruler/rulerGeometry.d.ts +1 -1
- package/dist/ui/components/Tabs/Tabs.d.ts +1 -1
- package/dist/ui/components/TitleBar/TitleBar.d.ts +1 -1
- package/dist/ui/components/Toolbar/LineSpacingButton.d.ts +1 -1
- package/dist/ui/components/Toolbar/Toolbar.d.ts +4 -4
- package/dist/ui/components/Toolbar/ToolbarOverflowManager.d.ts +1 -1
- package/dist/ui/components/Toolbar/controls/ListOptionsControl.d.ts +2 -2
- package/dist/ui/components/Toolbar/controls/UnderlineControl.d.ts +2 -2
- package/dist/ui/components/Toolbar/groups/MetricGroup.d.ts +1 -1
- package/dist/ui/components/Toolbar/groups/SectionGroup.d.ts +1 -1
- package/dist/ui/components/Toolbar/groups/TableGroup.d.ts +1 -1
- package/dist/ui/components/Toolbar/presets/defaultPalette.d.ts +1 -1
- package/dist/ui/components/Toolbar/presets/defaultToolbar.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/Button.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/ColorPicker.d.ts +2 -2
- package/dist/ui/components/Toolbar/primitives/GridPicker.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/Menu.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/Popover.d.ts +2 -2
- package/dist/ui/components/Toolbar/primitives/Select.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/Separator.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/SplitButton.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/useDismiss.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/usePopoverPosition.d.ts +1 -1
- package/dist/ui/components/Toolbar/registry/ToolbarRegistry.d.ts +1 -1
- package/dist/ui/components/Toolbar/renderers/ToolbarItemRenderer.d.ts +2 -2
- package/dist/ui/components/Toolbar/renderers/renderers.d.ts +2 -2
- package/dist/ui/components/Toolbar/ribbon/RibbonGroup.d.ts +2 -2
- package/dist/ui/components/Toolbar/ribbon/RibbonPanel.d.ts +2 -2
- package/dist/ui/components/Toolbar/ribbon/RibbonRow.d.ts +1 -1
- package/dist/ui/components/Toolbar/ribbon/RibbonTabs.d.ts +2 -2
- package/dist/ui/components/Toolbar/ribbon/ribbonModel.d.ts +1 -1
- package/dist/ui/components/Toolbar/schema/items.d.ts +5 -5
- package/dist/ui/components/Toolbar/state/bindItem.d.ts +2 -2
- package/dist/ui/components/Toolbar/state/createToolbarApi.d.ts +2 -2
- package/dist/ui/components/Toolbar/underlineStyles.d.ts +2 -2
- package/dist/ui/editorHistory.d.ts +1 -1
- package/dist/ui/editorUiTypes.d.ts +4 -4
- package/dist/ui/imageGeometry.d.ts +1 -1
- package/dist/ui/layoutIdentity.d.ts +1 -1
- package/dist/ui/layoutInvalidation.d.ts +2 -2
- package/dist/ui/mount.d.ts +2 -2
- package/dist/ui/overlays/ResizeHandlesOverlay.d.ts +1 -1
- package/dist/ui/public/Button.d.ts +1 -1
- package/dist/ui/public/Checkbox.d.ts +1 -1
- package/dist/ui/public/DialogFooter.d.ts +1 -1
- package/dist/ui/public/FloatingActionButton.d.ts +1 -1
- package/dist/ui/public/IconButton.d.ts +1 -1
- package/dist/ui/public/SelectField.d.ts +1 -1
- package/dist/ui/public/SidePanel.d.ts +1 -1
- package/dist/ui/public/TextField.d.ts +1 -1
- package/dist/ui/public/index.d.ts +36 -36
- package/dist/ui/shells/BalloonShell.d.ts +1 -1
- package/dist/ui/shells/DocumentShell.d.ts +8 -8
- package/dist/ui/shells/InlineShell.d.ts +1 -1
- package/dist/ui/tableGeometry.d.ts +1 -1
- package/dist/ui/tableUiUtils.d.ts +1 -1
- package/dist/ui/textMeasurement/alignment.d.ts +1 -1
- package/dist/ui/textMeasurement/characterWidth.d.ts +1 -1
- package/dist/ui/textMeasurement/composer.d.ts +2 -2
- package/dist/ui/textMeasurement/fontMetrics.d.ts +1 -1
- package/dist/ui/textMeasurement/indentation.d.ts +1 -1
- package/dist/ui/textMeasurement/layoutLine.d.ts +1 -1
- package/dist/ui/textMeasurement/paragraphLineHeight.d.ts +1 -1
- package/dist/ui/textMeasurement/tabStops.d.ts +2 -2
- package/dist/ui/textMeasurement/tokenizer.d.ts +2 -2
- package/dist/ui/textMeasurement/types.d.ts +2 -2
- package/dist/ui/textMeasurement.d.ts +6 -6
- package/dist/ui/toolbarStyleState.d.ts +1 -1
- package/dist/ui/utils/customIcons.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorState, EditorTextStyle } from '
|
|
1
|
+
import { EditorState, EditorTextStyle } from '../../core/model.js';
|
|
2
2
|
|
|
3
3
|
export interface UseEditorTextInputProps {
|
|
4
4
|
state: () => EditorState;
|
|
@@ -23,5 +23,5 @@ export declare function createEditorTextInput(deps: UseEditorTextInputProps): {
|
|
|
23
23
|
handleCompositionEnd: (event: CompositionEvent & {
|
|
24
24
|
currentTarget: HTMLTextAreaElement;
|
|
25
25
|
}) => void;
|
|
26
|
-
composing: import('
|
|
26
|
+
composing: import('solid-js').Accessor<boolean>;
|
|
27
27
|
};
|
package/dist/core/Editor.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EditorState, EditorDocument } from '
|
|
2
|
-
import { CommandRegistry } from '
|
|
3
|
-
import { PluginUiRegistry } from '
|
|
4
|
-
import { OasisEditor, OasisPlugin } from '
|
|
1
|
+
import { EditorState, EditorDocument } from './model.js';
|
|
2
|
+
import { CommandRegistry } from './commands/CommandRegistry.js';
|
|
3
|
+
import { PluginUiRegistry } from './plugins/PluginUiRegistry.js';
|
|
4
|
+
import { OasisEditor, OasisPlugin } from './plugin.js';
|
|
5
5
|
|
|
6
6
|
export interface EditorOptions {
|
|
7
7
|
doc?: EditorDocument;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorEndnote, EditorEndnotes, EditorFootnote, EditorFootnotes, EditorSection, EditorState } from '
|
|
1
|
+
import { EditorBlockNode, EditorEndnote, EditorEndnotes, EditorFootnote, EditorFootnotes, EditorSection, EditorState } from './model.js';
|
|
2
2
|
|
|
3
3
|
export declare function cloneBlock(block: EditorBlockNode): EditorBlockNode;
|
|
4
4
|
export declare const cloneDocumentBlock: typeof cloneBlock;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommandState, OasisEditor } from '
|
|
2
|
-
import { CommandRef } from '
|
|
1
|
+
import { CommandState, OasisEditor } from '../plugin.js';
|
|
2
|
+
import { CommandRef } from './CommandRef.js';
|
|
3
3
|
|
|
4
4
|
export interface CommandBus<TState = CommandState> {
|
|
5
5
|
execute(command: CommandRef, payloadOverride?: unknown): unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandState, OasisCommand, OasisCommandContext, OasisCommandRegistry } from '
|
|
1
|
+
import { CommandState, OasisCommand, OasisCommandContext, OasisCommandRegistry } from '../plugin.js';
|
|
2
2
|
|
|
3
3
|
export declare class CommandRegistry implements OasisCommandRegistry {
|
|
4
4
|
private commands;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorParagraphStyle, EditorPosition, EditorState, EditorSection, EditorTabStop } from '
|
|
2
|
-
import { ValueParagraphStyleKey } from '
|
|
1
|
+
import { EditorParagraphStyle, EditorPosition, EditorState, EditorSection, EditorTabStop } from '../model.js';
|
|
2
|
+
import { ValueParagraphStyleKey } from '../textStyle/textStyleKeys.js';
|
|
3
3
|
|
|
4
4
|
export declare function moveBlockToPosition(state: EditorState, blockId: string, targetPosition: EditorPosition): EditorState;
|
|
5
5
|
export declare function splitBlockAtSelection(state: EditorState): EditorState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorParagraphListStyle, EditorParagraphStyle, EditorState, EditorTextStyle, EditorImageRunData } from '
|
|
1
|
+
import { EditorParagraphListStyle, EditorParagraphStyle, EditorState, EditorTextStyle, EditorImageRunData } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export interface EditorClipboardParagraphSpec {
|
|
4
4
|
runs: Array<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorPosition, EditorState, EditorImageRunData } from '
|
|
2
|
-
import { SelectedObjectRun } from '
|
|
3
|
-
import { WrapPreset } from '
|
|
1
|
+
import { EditorPosition, EditorState, EditorImageRunData } from '../model.js';
|
|
2
|
+
import { SelectedObjectRun } from './selectedObjectRun.js';
|
|
3
|
+
import { WrapPreset } from './floatingLayout.js';
|
|
4
4
|
|
|
5
5
|
export type SelectedImageRun = SelectedObjectRun;
|
|
6
6
|
export declare function getSelectedImageRun(state: EditorState): SelectedImageRun | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorState } from '
|
|
1
|
+
import { EditorState } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function getLinkAtSelection(state: EditorState): string | null;
|
|
4
4
|
export declare function setLinkAtSelection(state: EditorState, href: string | null): EditorState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorParagraphListStyle, EditorState } from '
|
|
2
|
-
import { ParagraphListKind } from '
|
|
1
|
+
import { EditorParagraphListStyle, EditorState } from '../model.js';
|
|
2
|
+
import { ParagraphListKind } from '../textStyle/textStyleKeys.js';
|
|
3
3
|
|
|
4
4
|
export declare function splitListItemAtSelection(state: EditorState): EditorState;
|
|
5
5
|
export declare function clearParagraphListAtSelection(state: EditorState): EditorState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CommandRef } from '
|
|
2
|
-
import { EditorPageMargins } from '
|
|
3
|
-
import { TextCaseMode } from '
|
|
1
|
+
import { CommandRef } from './CommandRef.js';
|
|
2
|
+
import { EditorPageMargins } from '../model.js';
|
|
3
|
+
import { TextCaseMode } from './text.js';
|
|
4
4
|
|
|
5
5
|
export interface InsertTablePayload {
|
|
6
6
|
rows: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorSelection, EditorState } from '
|
|
1
|
+
import { EditorSelection, EditorState } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function getSelectedText(state: EditorState): string;
|
|
4
4
|
export declare function setSelection(state: EditorState, selection: EditorSelection): EditorState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorBorderStyle, EditorState, EditorTableCellStyle } from '
|
|
1
|
+
import { EditorBorderStyle, EditorState, EditorTableCellStyle } from '../../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function setTableCellStyleValue<K extends keyof EditorTableCellStyle>(state: EditorState, key: K, value: EditorTableCellStyle[K] | null): EditorState;
|
|
4
4
|
export declare function setTableCellWidth(state: EditorState, width: number | string | null): EditorState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EditorState } from '
|
|
1
|
+
import { EditorState } from '../../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function setTableColumnWidths(state: EditorState, tableId: string, columnWidths: Record<number, number | string>, tableWidth?: number | string, tableIndentLeft?: number | string): EditorState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorDocument, EditorEditingZone, EditorState, EditorTableNode, TableLocation } from '
|
|
1
|
+
import { EditorBlockNode, EditorDocument, EditorEditingZone, EditorState, EditorTableNode, TableLocation } from '../../model.js';
|
|
2
2
|
|
|
3
3
|
export type StylePatchValue<T, K extends keyof T> = T[K] | null;
|
|
4
4
|
export interface ActiveTableLocation {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorState, EditorTableRowStyle } from '
|
|
1
|
+
import { EditorState, EditorTableRowStyle } from '../../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function setSelectedTableRowStyleValue<K extends keyof EditorTableRowStyle>(state: EditorState, key: K, value: EditorTableRowStyle[K] | null): EditorState;
|
|
4
4
|
export declare function setSelectedTableRowHeader(state: EditorState, value: boolean | null): EditorState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorState, EditorTableStyle } from '
|
|
1
|
+
import { EditorState, EditorTableStyle } from '../../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function setTableStyleValue<K extends keyof EditorTableStyle>(state: EditorState, key: K, value: EditorTableStyle[K] | null): EditorState;
|
|
4
4
|
export declare function setActiveTableStyleValue<K extends keyof EditorTableStyle>(state: EditorState, tableId: string, key: K, value: EditorTableStyle[K] | null): EditorState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
1
|
+
export * from './table/tableCellStyleCommands.js';
|
|
2
|
+
export * from './table/tableStyleCommands.js';
|
|
3
|
+
export * from './table/tableRowCommands.js';
|
|
4
|
+
export * from './table/tableColumnCommands.js';
|
|
5
|
+
export * from './table/insertTableCommand.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorPosition, EditorState, EditorTextStyle } from '
|
|
2
|
-
import { ToggleableTextStyleKey, ValueTextStyleKey } from '
|
|
1
|
+
import { EditorPosition, EditorState, EditorTextStyle } from '../model.js';
|
|
2
|
+
import { ToggleableTextStyleKey, ValueTextStyleKey } from '../textStyle/textStyleKeys.js';
|
|
3
3
|
|
|
4
4
|
export declare function moveOrCopySelectionToPosition(state: EditorState, targetPosition: EditorPosition, options?: {
|
|
5
5
|
copy?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorState } from '
|
|
2
|
-
import { SelectedObjectRun } from '
|
|
3
|
-
import { WrapPreset } from '
|
|
1
|
+
import { EditorState } from '../model.js';
|
|
2
|
+
import { SelectedObjectRun } from './selectedObjectRun.js';
|
|
3
|
+
import { WrapPreset } from './floatingLayout.js';
|
|
4
4
|
|
|
5
5
|
export type SelectedTextBoxRun = SelectedObjectRun;
|
|
6
6
|
export declare function getSelectedTextBoxRun(state: EditorState): SelectedTextBoxRun | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorParagraphNode, EditorSection, EditorSelection, EditorState, EditorTableCellNode } from '
|
|
1
|
+
import { EditorBlockNode, EditorParagraphNode, EditorSection, EditorSelection, EditorState, EditorTableCellNode } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function blocksContainTables(nodes: EditorBlockNode[]): boolean;
|
|
4
4
|
export declare function replaceParagraphsInBlocks(blocks: EditorBlockNode[], newParagraphs: EditorParagraphNode[]): EditorBlockNode[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorParagraphListStyle, EditorParagraphNode, EditorTextBoxData, EditorTextRun } from '
|
|
1
|
+
import { EditorBlockNode, EditorParagraphListStyle, EditorParagraphNode, EditorTextBoxData, EditorTextRun } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function cloneTextBox(textBox: EditorTextBoxData): EditorTextBoxData;
|
|
4
4
|
export declare function cloneRun(run: EditorTextRun): EditorTextRun;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorParagraphNode, EditorTextRun, EditorTextStyle } from '
|
|
1
|
+
import { EditorParagraphNode, EditorTextRun, EditorTextStyle } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function normalizeRuns(runs: EditorTextRun[], fallbackStyles?: EditorTextStyle): EditorTextRun[];
|
|
4
4
|
export declare function buildParagraphFromRuns(paragraph: EditorParagraphNode, runs: EditorTextRun[], fallbackStyles?: EditorTextStyle): EditorParagraphNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EditorParagraphNode, EditorTextRun } from '
|
|
1
|
+
import { EditorParagraphNode, EditorTextRun } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function insertRunsAtOffset(paragraph: EditorParagraphNode, offset: number, textRuns: EditorTextRun[]): EditorParagraphNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorParagraphNode, EditorTextRun, EditorTextStyle } from '
|
|
1
|
+
import { EditorParagraphNode, EditorTextRun, EditorTextStyle } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function getStyleAtOffset(paragraph: EditorParagraphNode, offset: number): EditorTextStyle | undefined;
|
|
4
4
|
export declare function getRunAtOffset(paragraph: EditorParagraphNode, offset: number): {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { buildParagraphFromRuns, clearParagraphList, cloneParagraphWithListLevel, createParagraphFromRuns, createParagraphFromRunsLike, normalizeRuns, } from '
|
|
2
|
-
export { expandLinkRangeInParagraph, getRunAtOffset, getStyleAtOffset, sliceRuns, } from '
|
|
3
|
-
export { insertRunsAtOffset } from '
|
|
1
|
+
export { buildParagraphFromRuns, clearParagraphList, cloneParagraphWithListLevel, createParagraphFromRuns, createParagraphFromRunsLike, normalizeRuns, } from './paragraphRunBuild.js';
|
|
2
|
+
export { expandLinkRangeInParagraph, getRunAtOffset, getStyleAtOffset, sliceRuns, } from './paragraphRunQuery.js';
|
|
3
|
+
export { insertRunsAtOffset } from './paragraphRunEdit.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @deprecated Use imports from `src/core/commands/*` instead.
|
|
3
3
|
*/
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
12
|
-
export * from '
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
15
|
-
export * from '
|
|
16
|
-
export * from '
|
|
17
|
-
export * from '
|
|
4
|
+
export * from './commands/image.js';
|
|
5
|
+
export * from './commands/textBox.js';
|
|
6
|
+
export * from './commands/shape.js';
|
|
7
|
+
export * from './commands/floatingLayout.js';
|
|
8
|
+
export * from './commands/text.js';
|
|
9
|
+
export * from './commands/block.js';
|
|
10
|
+
export * from './commands/list.js';
|
|
11
|
+
export * from './commands/table.js';
|
|
12
|
+
export * from './commands/link.js';
|
|
13
|
+
export * from './commands/history.js';
|
|
14
|
+
export * from './commands/clipboard.js';
|
|
15
|
+
export * from './commands/selection.js';
|
|
16
|
+
export * from './commands/misc.js';
|
|
17
|
+
export * from './commands/footnotes.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorAsset, EditorBlockNode, EditorDocument, EditorFootnote, EditorPageSettings, EditorParagraphNode, EditorSection, EditorState, EditorTableCellNode, EditorTableNode, EditorTableRowNode, EditorTextRun, EditorTextStyle, EditorTextBoxData, EditorImageRunData, EditorNamedStyle } from '
|
|
1
|
+
import { EditorAsset, EditorBlockNode, EditorDocument, EditorFootnote, EditorPageSettings, EditorParagraphNode, EditorSection, EditorState, EditorTableCellNode, EditorTableNode, EditorTableRowNode, EditorTextRun, EditorTextStyle, EditorTextBoxData, EditorImageRunData, EditorNamedStyle } from './model.js';
|
|
2
2
|
|
|
3
3
|
export declare function resetEditorIds(): void;
|
|
4
4
|
export declare function createEditorBookmarkId(): string;
|
package/dist/core/endnotes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorDocument, EditorEndnote, EditorEndnotes, EditorParagraphNode, EditorTextRun } from '
|
|
1
|
+
import { EditorBlockNode, EditorDocument, EditorEndnote, EditorEndnotes, EditorParagraphNode, EditorTextRun } from './model.js';
|
|
2
2
|
|
|
3
3
|
export declare function resetEndnoteIds(): void;
|
|
4
4
|
export declare function createEndnoteId(): string;
|
package/dist/core/engine.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorLayoutLine, EditorLayoutFragment, EditorNamedStyle, EditorParagraphNode, EditorTextStyle } from '
|
|
1
|
+
import { EditorLayoutLine, EditorLayoutFragment, EditorNamedStyle, EditorParagraphNode, EditorTextStyle } from './model.js';
|
|
2
2
|
|
|
3
3
|
export interface FloatingExclusionRect {
|
|
4
4
|
x: number;
|
package/dist/core/footnotes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorDocument, EditorFootnote, EditorFootnoteNumberFormat, EditorFootnotes, EditorParagraphNode, EditorTextRun } from '
|
|
1
|
+
import { EditorBlockNode, EditorDocument, EditorFootnote, EditorFootnoteNumberFormat, EditorFootnotes, EditorParagraphNode, EditorTextRun } from './model.js';
|
|
2
2
|
|
|
3
3
|
export declare function resetFootnoteIds(): void;
|
|
4
4
|
export declare function createFootnoteId(): string;
|
package/dist/core/headings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorParagraphListStyle, EditorTextRun, EditorTextStyle } from '
|
|
1
|
+
import { EditorParagraphListStyle, EditorTextRun, EditorTextStyle } from '../model.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Recursively collects inline runs from a DOM node, propagating inherited text
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { parseInlineImage } from '
|
|
2
|
-
export { parseInlineStyles } from '
|
|
3
|
-
export { parseParagraphStyle } from '
|
|
1
|
+
export { parseInlineImage } from './inlineImageParser.js';
|
|
2
|
+
export { parseInlineStyles } from './inlineStyleParser.js';
|
|
3
|
+
export { parseParagraphStyle } from './paragraphStyleParser.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorDocument, EditorTextRun } from '
|
|
1
|
+
import { EditorDocument, EditorTextRun } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function serializeImageRunToHtml(run: EditorTextRun, document?: Pick<EditorDocument, "assets">): string;
|
|
4
4
|
export declare function serializeTextRunToHtml(run: EditorTextRun, document?: Pick<EditorDocument, "assets">): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorParagraphStyle, EditorTextStyle } from '
|
|
1
|
+
import { EditorParagraphStyle, EditorTextStyle } from '../model.js';
|
|
2
2
|
|
|
3
3
|
export declare function textRunStylesToCss(style?: EditorTextStyle): string;
|
|
4
4
|
export declare function getPrimaryTextLanguage(language: EditorTextStyle["language"]): string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorParagraphNode } from '
|
|
2
|
-
import { EditorDocument } from '
|
|
3
|
-
import { EditorEditingZone } from '
|
|
1
|
+
import { EditorParagraphNode } from './types/nodes.js';
|
|
2
|
+
import { EditorDocument } from './types/document.js';
|
|
3
|
+
import { EditorEditingZone } from './types/selection.js';
|
|
4
4
|
|
|
5
5
|
export interface EditorParagraphLocation {
|
|
6
6
|
sectionIndex: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorDocument, EditorSection } from '
|
|
1
|
+
import { EditorDocument, EditorSection } from './types/document.js';
|
|
2
2
|
|
|
3
3
|
export declare function getDocumentSectionsCanonical(document: EditorDocument): EditorSection[];
|
|
4
4
|
export declare function getDocumentSections(document: EditorDocument): EditorSection[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorParagraphNode } from '
|
|
2
|
-
import { EditorState } from '
|
|
3
|
-
import { EditorEditingZone } from '
|
|
1
|
+
import { EditorBlockNode, EditorParagraphNode } from './types/nodes.js';
|
|
2
|
+
import { EditorState } from './editorState.js';
|
|
3
|
+
import { EditorEditingZone } from './types/selection.js';
|
|
4
4
|
|
|
5
5
|
export declare function getActiveSectionIndex(state: EditorState): number;
|
|
6
6
|
export declare function getActiveZone(state: EditorState): EditorEditingZone;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorDocument } from '
|
|
2
|
-
import { EditorPosition, EditorSelection, EditorEditingZone } from '
|
|
1
|
+
import { EditorDocument } from './types/document.js';
|
|
2
|
+
import { EditorPosition, EditorSelection, EditorEditingZone } from './types/selection.js';
|
|
3
3
|
|
|
4
4
|
export interface EditorState {
|
|
5
5
|
document: EditorDocument;
|
|
@@ -6,27 +6,27 @@
|
|
|
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, EditorTabStop, EditorParagraphListStyle, EditorImageCrop, EditorImageFillMode, EditorImageFloatingPosition, EditorImageFloatingLayout, EditorImageRunData, EditorWrapPolygonPoint, EditorFieldData, EditorFieldChar, EditorFootnoteReferenceData, EditorEndnoteReferenceData, EditorRevision, EditorAsset, EditorFootnoteNumberFormat, EditorFootnoteRestart, EditorDocxWidthValue, EditorTableLayout, EditorTableRowHeightRule, } from '
|
|
10
|
-
export type { EditorTextStyle, EditorParagraphStyle, EditorTableStyle, EditorTableConditionalFormat, EditorConditionalRowStyle, EditorNamedStyle, } from '
|
|
11
|
-
export type { EditorTextRun, EditorTextBoxShape, EditorTextBoxBody, EditorTextBoxData, EditorDropCap, EditorParagraphNode, EditorTableCellStyle, EditorTableCellNode, EditorTableRowStyle, EditorTableRowNode, EditorTableNode, EditorBlockNode, } from '
|
|
12
|
-
export type { EditorFootnote } from '
|
|
13
|
-
export type { EditorEndnote } from '
|
|
14
|
-
export type { EditorBookmark, EditorBookmarkAnchor, EditorBookmarks, } from '
|
|
15
|
-
export type { EditorComment, EditorCommentAnchor, EditorComments, } from '
|
|
16
|
-
export type { EditorPageMargins, EditorPageSettings, EditorSection, EditorFootnoteSettings, EditorFootnotes, EditorEndnoteSettings, EditorEndnotes, EditorDocument, } from '
|
|
17
|
-
export type { EditorPosition, EditorSelection, EditorEditingZone, } from '
|
|
18
|
-
export type { EditorCaretSlot, EditorLayoutFragmentChar, EditorLayoutFragment, EditorLayoutLine, EditorLayoutParagraph, EditorLayoutBlock, TableCellBlockPosition, EditorLayoutPage, EditorLayoutDocument, } from '
|
|
19
|
-
export type { EditorState } from '
|
|
20
|
-
export { EDITOR_ASSET_REF_PREFIX } from '
|
|
21
|
-
export { DEFAULT_TEXT_STYLE, DEFAULT_PARAGRAPH_STYLE, EFFECTIVE_TEXT_STYLE_DEFAULTS, EFFECTIVE_PARAGRAPH_STYLE_DEFAULTS, } from '
|
|
22
|
-
export { DEFAULT_EDITOR_PAGE_SETTINGS } from '
|
|
23
|
-
export { getParagraphText, getParagraphLength, getRunIndex, getRunStartOffset, paragraphOffsetToPosition, positionToParagraphOffset, } from '
|
|
24
|
-
export { textStyleMerger, paragraphStyleMerger, mergeTextStyles, mergeParagraphStyles, resolveDefaultParagraphStyleId, resolveNamedTextStyle, resolveNamedParagraphStyle, resolveEffectiveTextStyle, resolveEffectiveTextStyleForParagraph, resolveEffectiveParagraphStyle, } from '
|
|
25
|
-
export type { StyleMerger, Mergeable } from '
|
|
26
|
-
export { resolveImageSrc } from '
|
|
27
|
-
export { normalizePageSettings, getDocumentPageSettings, getPageContentWidth, getPageHeaderZoneTop, getPageBodyTop, getPageFooterReferenceTop, getPageBodyBottom, getPageHeaderZoneHeight, getPageFooterZoneTop, getPageFooterZoneHeight, getPageContentHeight, } from '
|
|
28
|
-
export { getDocumentSections, getDocumentSectionsCanonical, } from '
|
|
29
|
-
export { DocumentIndexBuilder, getDocumentParagraphIndex, getDocumentParagraphs, getDocumentParagraphsCanonical, getParagraphById, findParagraphLocation, findParagraphTableLocation, WeakMapDocumentIndexCache, } from '
|
|
30
|
-
export type { EditorParagraphLocation, TableLocation, DocumentParagraphIndexEntry, DocumentIndexCache, } from '
|
|
31
|
-
export { getBlockParagraphs, collectSectionParagraphs, } from '
|
|
32
|
-
export { getActiveSectionIndex, getActiveZone, getEditableBlocksForZone, tryGetEditableBlocksForZone, getActiveSectionBlocks, getParagraphs, } from '
|
|
9
|
+
export type { EditorUnderlineStyle, EditorLigatures, EditorNumberSpacing, EditorNumberForm, EditorTextLanguage, EditorBorderStyle, EditorTabStop, EditorParagraphListStyle, EditorImageCrop, EditorImageFillMode, EditorImageFloatingPosition, EditorImageFloatingLayout, EditorImageRunData, EditorWrapPolygonPoint, EditorFieldData, EditorFieldChar, EditorFootnoteReferenceData, EditorEndnoteReferenceData, EditorRevision, EditorAsset, EditorFootnoteNumberFormat, EditorFootnoteRestart, EditorDocxWidthValue, EditorTableLayout, EditorTableRowHeightRule, } from './types/primitives.js';
|
|
10
|
+
export type { EditorTextStyle, EditorParagraphStyle, EditorTableStyle, EditorTableConditionalFormat, EditorConditionalRowStyle, EditorNamedStyle, } from './types/styles.js';
|
|
11
|
+
export type { EditorTextRun, EditorTextBoxShape, EditorTextBoxBody, EditorTextBoxData, EditorDropCap, EditorParagraphNode, EditorTableCellStyle, EditorTableCellNode, EditorTableRowStyle, EditorTableRowNode, EditorTableNode, EditorBlockNode, } from './types/nodes.js';
|
|
12
|
+
export type { EditorFootnote } from './types/documentFootnotes.js';
|
|
13
|
+
export type { EditorEndnote } from './types/documentEndnotes.js';
|
|
14
|
+
export type { EditorBookmark, EditorBookmarkAnchor, EditorBookmarks, } from './types/documentBookmarks.js';
|
|
15
|
+
export type { EditorComment, EditorCommentAnchor, EditorComments, } from './types/documentComments.js';
|
|
16
|
+
export type { EditorPageMargins, EditorPageSettings, EditorSection, EditorFootnoteSettings, EditorFootnotes, EditorEndnoteSettings, EditorEndnotes, EditorDocument, } from './types/document.js';
|
|
17
|
+
export type { EditorPosition, EditorSelection, EditorEditingZone, } from './types/selection.js';
|
|
18
|
+
export type { EditorCaretSlot, EditorLayoutFragmentChar, EditorLayoutFragment, EditorLayoutLine, EditorLayoutParagraph, EditorLayoutBlock, TableCellBlockPosition, EditorLayoutPage, EditorLayoutDocument, } from './types/layout.js';
|
|
19
|
+
export type { EditorState } from './editorState.js';
|
|
20
|
+
export { EDITOR_ASSET_REF_PREFIX } from './types/primitives.js';
|
|
21
|
+
export { DEFAULT_TEXT_STYLE, DEFAULT_PARAGRAPH_STYLE, EFFECTIVE_TEXT_STYLE_DEFAULTS, EFFECTIVE_PARAGRAPH_STYLE_DEFAULTS, } from './styleDefaults.js';
|
|
22
|
+
export { DEFAULT_EDITOR_PAGE_SETTINGS } from './pageGeometry.js';
|
|
23
|
+
export { getParagraphText, getParagraphLength, getRunIndex, getRunStartOffset, paragraphOffsetToPosition, positionToParagraphOffset, } from './queries.js';
|
|
24
|
+
export { textStyleMerger, paragraphStyleMerger, mergeTextStyles, mergeParagraphStyles, resolveDefaultParagraphStyleId, resolveNamedTextStyle, resolveNamedParagraphStyle, resolveEffectiveTextStyle, resolveEffectiveTextStyleForParagraph, resolveEffectiveParagraphStyle, } from './styleResolution.js';
|
|
25
|
+
export type { StyleMerger, Mergeable } from './styleResolution.js';
|
|
26
|
+
export { resolveImageSrc } from './assets.js';
|
|
27
|
+
export { normalizePageSettings, getDocumentPageSettings, getPageContentWidth, getPageHeaderZoneTop, getPageBodyTop, getPageFooterReferenceTop, getPageBodyBottom, getPageHeaderZoneHeight, getPageFooterZoneTop, getPageFooterZoneHeight, getPageContentHeight, } from './pageGeometry.js';
|
|
28
|
+
export { getDocumentSections, getDocumentSectionsCanonical, } from './documentSections.js';
|
|
29
|
+
export { DocumentIndexBuilder, getDocumentParagraphIndex, getDocumentParagraphs, getDocumentParagraphsCanonical, getParagraphById, findParagraphLocation, findParagraphTableLocation, WeakMapDocumentIndexCache, } from './documentIndex.js';
|
|
30
|
+
export type { EditorParagraphLocation, TableLocation, DocumentParagraphIndexEntry, DocumentIndexCache, } from './documentIndex.js';
|
|
31
|
+
export { getBlockParagraphs, collectSectionParagraphs, } from './paragraphWalker.js';
|
|
32
|
+
export { getActiveSectionIndex, getActiveZone, getEditableBlocksForZone, tryGetEditableBlocksForZone, getActiveSectionBlocks, getParagraphs, } from './editingZones.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorDocument, EditorPageSettings } from '
|
|
1
|
+
import { EditorDocument, EditorPageSettings } from './types/document.js';
|
|
2
2
|
|
|
3
3
|
export declare const DEFAULT_EDITOR_PAGE_SETTINGS: EditorPageSettings;
|
|
4
4
|
export declare function normalizePageSettings(pageSettings: EditorPageSettings): EditorPageSettings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorParagraphNode } from '
|
|
2
|
-
import { EditorSection } from '
|
|
1
|
+
import { EditorBlockNode, EditorParagraphNode } from './types/nodes.js';
|
|
2
|
+
import { EditorSection } from './types/document.js';
|
|
3
3
|
|
|
4
4
|
export declare function getBlockParagraphs(block: EditorBlockNode): EditorParagraphNode[];
|
|
5
5
|
export declare function collectSectionParagraphs(section: EditorSection): EditorParagraphNode[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorParagraphNode } from '
|
|
2
|
-
import { EditorPosition } from '
|
|
1
|
+
import { EditorParagraphNode } from './types/nodes.js';
|
|
2
|
+
import { EditorPosition } from './types/selection.js';
|
|
3
3
|
|
|
4
4
|
export declare function getParagraphText(paragraph: EditorParagraphNode): string;
|
|
5
5
|
export declare function getParagraphLength(paragraph: EditorParagraphNode): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorTextStyle, EditorParagraphStyle } from '
|
|
1
|
+
import { EditorTextStyle, EditorParagraphStyle } from './types/styles.js';
|
|
2
2
|
|
|
3
3
|
export declare const DEFAULT_TEXT_STYLE: Required<EditorTextStyle>;
|
|
4
4
|
export declare const EFFECTIVE_TEXT_STYLE_DEFAULTS: Required<EditorTextStyle>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorNamedStyle, EditorParagraphStyle, EditorTextStyle } from '
|
|
1
|
+
import { EditorNamedStyle, EditorParagraphStyle, EditorTextStyle } from './types/styles.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A "mergeable" style is any object whose own enumerable string keys can
|