oasis-editor 0.0.17 → 0.0.19
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-Cwoo0WV0.js → OasisEditorApp-xXfigQp4.js} +58 -14
- 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/assets/{importDocxWorker-cjz15bhS.js → importDocxWorker-D4P4_drI.js} +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 +14 -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 +27 -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 +9 -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/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-CBbhzffQ.js → index-C7Ftk4dm.js} +352 -143
- package/dist/layoutProjection/blockHeights.d.ts +1 -1
- package/dist/layoutProjection/blocksPagination.d.ts +12 -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 +54 -54
- 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
|
@@ -2416,7 +2416,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2416
2416
|
onCleanup(() => {
|
|
2417
2417
|
cancelled = true;
|
|
2418
2418
|
});
|
|
2419
|
-
import("./OasisEditorApp-
|
|
2419
|
+
import("./OasisEditorApp-xXfigQp4.js").then((m) => {
|
|
2420
2420
|
cancelled = true;
|
|
2421
2421
|
setProgress(1);
|
|
2422
2422
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -3032,7 +3032,8 @@ function normalizePageSettings(pageSettings) {
|
|
|
3032
3032
|
header: pageSettings.margins.header,
|
|
3033
3033
|
footer: pageSettings.margins.footer,
|
|
3034
3034
|
gutter: pageSettings.margins.gutter
|
|
3035
|
-
}
|
|
3035
|
+
},
|
|
3036
|
+
...pageSettings.columns ? { columns: pageSettings.columns } : {}
|
|
3036
3037
|
};
|
|
3037
3038
|
}
|
|
3038
3039
|
function getDocumentPageSettings(document2) {
|
|
@@ -3049,7 +3050,8 @@ function getDocumentPageSettings(document2) {
|
|
|
3049
3050
|
header: (pageSettings == null ? void 0 : pageSettings.margins.header) ?? DEFAULT_EDITOR_PAGE_SETTINGS.margins.header,
|
|
3050
3051
|
footer: (pageSettings == null ? void 0 : pageSettings.margins.footer) ?? DEFAULT_EDITOR_PAGE_SETTINGS.margins.footer,
|
|
3051
3052
|
gutter: (pageSettings == null ? void 0 : pageSettings.margins.gutter) ?? DEFAULT_EDITOR_PAGE_SETTINGS.margins.gutter
|
|
3052
|
-
}
|
|
3053
|
+
},
|
|
3054
|
+
...(pageSettings == null ? void 0 : pageSettings.columns) ? { columns: pageSettings.columns } : {}
|
|
3053
3055
|
});
|
|
3054
3056
|
}
|
|
3055
3057
|
function getPageContentWidth(pageSettings) {
|
|
@@ -3060,6 +3062,37 @@ function getPageContentWidth(pageSettings) {
|
|
|
3060
3062
|
)
|
|
3061
3063
|
);
|
|
3062
3064
|
}
|
|
3065
|
+
function getPageColumnRects(pageSettings) {
|
|
3066
|
+
var _a;
|
|
3067
|
+
const contentLeft = pageSettings.margins.left + pageSettings.margins.gutter;
|
|
3068
|
+
const contentWidth = getPageContentWidth(pageSettings);
|
|
3069
|
+
const columns = pageSettings.columns;
|
|
3070
|
+
const count = (columns == null ? void 0 : columns.count) ?? 1;
|
|
3071
|
+
if (!columns || count <= 1) {
|
|
3072
|
+
return [{ left: contentLeft, width: contentWidth }];
|
|
3073
|
+
}
|
|
3074
|
+
if (columns.equalWidth === false && ((_a = columns.columns) == null ? void 0 : _a.length)) {
|
|
3075
|
+
const rects2 = [];
|
|
3076
|
+
let cursor = contentLeft;
|
|
3077
|
+
for (let i = 0; i < count; i += 1) {
|
|
3078
|
+
const col = columns.columns[i];
|
|
3079
|
+
const width = Math.max(1, (col == null ? void 0 : col.width) ?? 0);
|
|
3080
|
+
rects2.push({ left: cursor, width });
|
|
3081
|
+
cursor += width + ((col == null ? void 0 : col.space) ?? columns.space);
|
|
3082
|
+
}
|
|
3083
|
+
return rects2;
|
|
3084
|
+
}
|
|
3085
|
+
const space = columns.space;
|
|
3086
|
+
const colWidth = Math.max(
|
|
3087
|
+
1,
|
|
3088
|
+
Math.floor((contentWidth - space * (count - 1)) / count)
|
|
3089
|
+
);
|
|
3090
|
+
const rects = [];
|
|
3091
|
+
for (let i = 0; i < count; i += 1) {
|
|
3092
|
+
rects.push({ left: contentLeft + i * (colWidth + space), width: colWidth });
|
|
3093
|
+
}
|
|
3094
|
+
return rects;
|
|
3095
|
+
}
|
|
3063
3096
|
function clampPageOffset(value, limit) {
|
|
3064
3097
|
if (!Number.isFinite(value)) {
|
|
3065
3098
|
return 0;
|
|
@@ -3779,7 +3812,8 @@ function createEditorDocument(blocks, pageSettings, sections, styles, metadata,
|
|
|
3779
3812
|
width: pageSettings.width,
|
|
3780
3813
|
height: pageSettings.height,
|
|
3781
3814
|
orientation: pageSettings.orientation,
|
|
3782
|
-
margins: { ...pageSettings.margins }
|
|
3815
|
+
margins: { ...pageSettings.margins },
|
|
3816
|
+
...pageSettings.columns ? { columns: pageSettings.columns } : {}
|
|
3783
3817
|
} : {
|
|
3784
3818
|
width: DEFAULT_EDITOR_PAGE_SETTINGS.width,
|
|
3785
3819
|
height: DEFAULT_EDITOR_PAGE_SETTINGS.height,
|
|
@@ -13102,6 +13136,13 @@ function estimateTextBoxAutoFitHeight(textBox, styles, measurer, pageIndex, tota
|
|
|
13102
13136
|
);
|
|
13103
13137
|
}
|
|
13104
13138
|
function projectBlocksLayout(context2) {
|
|
13139
|
+
const columns = context2.pageSettings.columns;
|
|
13140
|
+
if (columns && columns.count > 1) {
|
|
13141
|
+
return projectColumnedBlocksLayout(context2, columns.count);
|
|
13142
|
+
}
|
|
13143
|
+
return projectColumnTrackLayout(context2);
|
|
13144
|
+
}
|
|
13145
|
+
function projectColumnTrackLayout(context2) {
|
|
13105
13146
|
var _a, _b;
|
|
13106
13147
|
const {
|
|
13107
13148
|
blocks,
|
|
@@ -13115,9 +13156,10 @@ function projectBlocksLayout(context2) {
|
|
|
13115
13156
|
existingPages = [],
|
|
13116
13157
|
measurer = domTextMeasurer,
|
|
13117
13158
|
reservedHeightByPageIndex,
|
|
13118
|
-
defaultTabStop
|
|
13159
|
+
defaultTabStop,
|
|
13160
|
+
contentWidthOverride
|
|
13119
13161
|
} = context2;
|
|
13120
|
-
const contentWidth = getPageContentWidth(pageSettings);
|
|
13162
|
+
const contentWidth = contentWidthOverride ?? getPageContentWidth(pageSettings);
|
|
13121
13163
|
const pages = [...existingPages];
|
|
13122
13164
|
const currentPage = pages[pages.length - 1];
|
|
13123
13165
|
let currentBlocks = currentPage ? [...currentPage.blocks] : [];
|
|
@@ -13678,6 +13720,82 @@ function projectBlocksLayout(context2) {
|
|
|
13678
13720
|
}
|
|
13679
13721
|
return pages;
|
|
13680
13722
|
}
|
|
13723
|
+
const MAX_COLUMN_BALANCE_ITERATIONS = 100;
|
|
13724
|
+
function projectColumnedBlocksLayout(context2, count) {
|
|
13725
|
+
var _a, _b;
|
|
13726
|
+
const { pageSettings, maxPageHeight, pageOffset = 0, existingPages = [] } = context2;
|
|
13727
|
+
const colWidth = ((_a = getPageColumnRects(pageSettings)[0]) == null ? void 0 : _a.width) ?? getPageContentWidth(pageSettings);
|
|
13728
|
+
const runTracks = (blocks, trackHeight) => projectColumnTrackLayout({
|
|
13729
|
+
...context2,
|
|
13730
|
+
blocks,
|
|
13731
|
+
maxPageHeight: trackHeight,
|
|
13732
|
+
contentWidthOverride: colWidth,
|
|
13733
|
+
pageOffset: 0,
|
|
13734
|
+
existingPages: [],
|
|
13735
|
+
reservedHeightByPageIndex: void 0
|
|
13736
|
+
});
|
|
13737
|
+
let tracks = runTracks(context2.blocks, maxPageHeight);
|
|
13738
|
+
if (tracks.length > 1 || tracks.length === 1 && count > 1) {
|
|
13739
|
+
const trailingStart = Math.floor((tracks.length - 1) / count) * count;
|
|
13740
|
+
const trailingTracks = tracks.slice(trailingStart);
|
|
13741
|
+
const firstTrailingBlock = (_b = trailingTracks[0]) == null ? void 0 : _b.blocks[0];
|
|
13742
|
+
const prevTrack = trailingStart > 0 ? tracks[trailingStart - 1] : void 0;
|
|
13743
|
+
const prevLastBlock = prevTrack == null ? void 0 : prevTrack.blocks[prevTrack.blocks.length - 1];
|
|
13744
|
+
const cleanBoundary = firstTrailingBlock != null && (prevLastBlock == null || prevLastBlock.globalIndex !== firstTrailingBlock.globalIndex);
|
|
13745
|
+
if (cleanBoundary) {
|
|
13746
|
+
const startIndex = firstTrailingBlock.globalIndex;
|
|
13747
|
+
const sourceSubset = context2.blocks.slice(startIndex);
|
|
13748
|
+
const sumHeight = trailingTracks.reduce(
|
|
13749
|
+
(sum, track) => sum + track.height,
|
|
13750
|
+
0
|
|
13751
|
+
);
|
|
13752
|
+
let target = Math.max(24, Math.ceil(sumHeight / count));
|
|
13753
|
+
let balanced = runTracks(sourceSubset, target);
|
|
13754
|
+
for (let iteration = 0; balanced.length > count && target < maxPageHeight && iteration < MAX_COLUMN_BALANCE_ITERATIONS; iteration += 1) {
|
|
13755
|
+
target = Math.min(maxPageHeight, Math.ceil(target * 1.05) + 4);
|
|
13756
|
+
balanced = runTracks(sourceSubset, target);
|
|
13757
|
+
}
|
|
13758
|
+
if (balanced.length <= count) {
|
|
13759
|
+
tracks = [...tracks.slice(0, trailingStart), ...balanced];
|
|
13760
|
+
}
|
|
13761
|
+
}
|
|
13762
|
+
}
|
|
13763
|
+
const pages = [...existingPages];
|
|
13764
|
+
const startPageIndex = existingPages.length > 0 ? existingPages[existingPages.length - 1].index + 1 : pageOffset;
|
|
13765
|
+
const physicalPageCount = Math.ceil(tracks.length / count);
|
|
13766
|
+
for (let p = 0; p < physicalPageCount; p += 1) {
|
|
13767
|
+
const pageIndex = startPageIndex + p;
|
|
13768
|
+
const pageTracks = tracks.slice(p * count, p * count + count);
|
|
13769
|
+
const blocks = [];
|
|
13770
|
+
let height = 0;
|
|
13771
|
+
pageTracks.forEach((track, columnIndex) => {
|
|
13772
|
+
for (const block of track.blocks) {
|
|
13773
|
+
block.columnIndex = columnIndex;
|
|
13774
|
+
blocks.push(block);
|
|
13775
|
+
}
|
|
13776
|
+
height = Math.max(height, track.height);
|
|
13777
|
+
});
|
|
13778
|
+
pages.push({
|
|
13779
|
+
id: `page:${pageIndex + 1}`,
|
|
13780
|
+
index: pageIndex,
|
|
13781
|
+
height,
|
|
13782
|
+
maxHeight: maxPageHeight,
|
|
13783
|
+
blocks,
|
|
13784
|
+
pageSettings
|
|
13785
|
+
});
|
|
13786
|
+
}
|
|
13787
|
+
if (pages.length === 0) {
|
|
13788
|
+
pages.push({
|
|
13789
|
+
id: `page:${startPageIndex + 1}`,
|
|
13790
|
+
index: startPageIndex,
|
|
13791
|
+
height: 0,
|
|
13792
|
+
maxHeight: maxPageHeight,
|
|
13793
|
+
blocks: [],
|
|
13794
|
+
pageSettings
|
|
13795
|
+
});
|
|
13796
|
+
}
|
|
13797
|
+
return pages;
|
|
13798
|
+
}
|
|
13681
13799
|
function getProjectedBlocksHeight(blocks) {
|
|
13682
13800
|
if (!blocks || blocks.length === 0) {
|
|
13683
13801
|
return 0;
|
|
@@ -16644,9 +16762,18 @@ function buildCanvasLayoutSnapshot(options) {
|
|
|
16644
16762
|
const collectParagraphBlock = (zone, blocks, startTop, options2 = {}) => {
|
|
16645
16763
|
var _a;
|
|
16646
16764
|
let cursorY = startTop;
|
|
16647
|
-
|
|
16648
|
-
|
|
16765
|
+
let blockContentLeft = options2.contentLeft ?? contentLeft;
|
|
16766
|
+
let blockContentWidth = options2.contentWidth ?? contentWidth;
|
|
16767
|
+
const columnRects = getPageColumnRects(page.pageSettings);
|
|
16768
|
+
let lastColumnIndex;
|
|
16649
16769
|
for (const block of blocks) {
|
|
16770
|
+
if (block.columnIndex !== void 0 && block.columnIndex !== lastColumnIndex) {
|
|
16771
|
+
lastColumnIndex = block.columnIndex;
|
|
16772
|
+
const rect = columnRects[block.columnIndex] ?? columnRects[0];
|
|
16773
|
+
blockContentLeft = pageRect.left + rect.left;
|
|
16774
|
+
blockContentWidth = rect.width;
|
|
16775
|
+
cursorY = startTop;
|
|
16776
|
+
}
|
|
16650
16777
|
const blockFootnoteId = ((_a = options2.footnoteIdForBlock) == null ? void 0 : _a.call(options2, block)) ?? options2.footnoteId;
|
|
16651
16778
|
if (block.sourceBlock.type === "paragraph" && block.layout) {
|
|
16652
16779
|
const paragraphNode = block.sourceBlock;
|
|
@@ -19488,13 +19615,37 @@ function createCanvasPageRenderer(options) {
|
|
|
19488
19615
|
}
|
|
19489
19616
|
ctx.restore();
|
|
19490
19617
|
}
|
|
19618
|
+
const columns = page.pageSettings.columns;
|
|
19619
|
+
const columnRects = columns && columns.count > 1 ? getPageColumnRects(page.pageSettings) : null;
|
|
19491
19620
|
if (state.showMargins) {
|
|
19492
19621
|
const contentHeight = Math.max(24, Math.floor(zoneBodyBottom - bodyTop));
|
|
19493
19622
|
ctx.save();
|
|
19494
19623
|
ctx.strokeStyle = "#d1d5db";
|
|
19495
19624
|
ctx.lineWidth = 1;
|
|
19496
19625
|
ctx.setLineDash([5, 5]);
|
|
19497
|
-
|
|
19626
|
+
if (columnRects) {
|
|
19627
|
+
for (const rect of columnRects) {
|
|
19628
|
+
ctx.strokeRect(rect.left, bodyTop, rect.width, contentHeight);
|
|
19629
|
+
}
|
|
19630
|
+
} else {
|
|
19631
|
+
ctx.strokeRect(marginX, bodyTop, bodyWidth, contentHeight);
|
|
19632
|
+
}
|
|
19633
|
+
ctx.restore();
|
|
19634
|
+
}
|
|
19635
|
+
if (columnRects && (columns == null ? void 0 : columns.separator)) {
|
|
19636
|
+
const contentHeight = Math.max(24, Math.floor(zoneBodyBottom - bodyTop));
|
|
19637
|
+
ctx.save();
|
|
19638
|
+
ctx.strokeStyle = "#9ca3af";
|
|
19639
|
+
ctx.lineWidth = 1;
|
|
19640
|
+
for (let i = 0; i < columnRects.length - 1; i += 1) {
|
|
19641
|
+
const rect = columnRects[i];
|
|
19642
|
+
const next = columnRects[i + 1];
|
|
19643
|
+
const ruleX = Math.round((rect.left + rect.width + next.left) / 2) + 0.5;
|
|
19644
|
+
ctx.beginPath();
|
|
19645
|
+
ctx.moveTo(ruleX, bodyTop);
|
|
19646
|
+
ctx.lineTo(ruleX, bodyTop + contentHeight);
|
|
19647
|
+
ctx.stroke();
|
|
19648
|
+
}
|
|
19498
19649
|
ctx.restore();
|
|
19499
19650
|
}
|
|
19500
19651
|
const inHeaderFooterMode = activeZone === "header" || activeZone === "footer";
|
|
@@ -19518,17 +19669,41 @@ function createCanvasPageRenderer(options) {
|
|
|
19518
19669
|
ctx.restore();
|
|
19519
19670
|
ctx.save();
|
|
19520
19671
|
ctx.globalAlpha = bodyAlpha;
|
|
19521
|
-
|
|
19522
|
-
|
|
19523
|
-
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
19527
|
-
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
|
|
19672
|
+
if (columnRects && page.blocks.some((b) => b.columnIndex !== void 0)) {
|
|
19673
|
+
const byColumn = /* @__PURE__ */ new Map();
|
|
19674
|
+
for (const block of page.blocks) {
|
|
19675
|
+
const column = block.columnIndex ?? 0;
|
|
19676
|
+
const bucket = byColumn.get(column) ?? [];
|
|
19677
|
+
bucket.push(block);
|
|
19678
|
+
byColumn.set(column, bucket);
|
|
19679
|
+
}
|
|
19680
|
+
for (const [column, columnBlocks] of byColumn) {
|
|
19681
|
+
const rect = columnRects[column] ?? columnRects[0];
|
|
19682
|
+
renderBlockList(
|
|
19683
|
+
ctx,
|
|
19684
|
+
state,
|
|
19685
|
+
columnBlocks,
|
|
19686
|
+
rect.left,
|
|
19687
|
+
bodyTop,
|
|
19688
|
+
rect.width,
|
|
19689
|
+
page.index,
|
|
19690
|
+
onUpdate,
|
|
19691
|
+
page.pageSettings
|
|
19692
|
+
);
|
|
19693
|
+
}
|
|
19694
|
+
} else {
|
|
19695
|
+
renderBlockList(
|
|
19696
|
+
ctx,
|
|
19697
|
+
state,
|
|
19698
|
+
page.blocks,
|
|
19699
|
+
marginX,
|
|
19700
|
+
bodyTop,
|
|
19701
|
+
bodyWidth,
|
|
19702
|
+
page.index,
|
|
19703
|
+
onUpdate,
|
|
19704
|
+
page.pageSettings
|
|
19705
|
+
);
|
|
19706
|
+
}
|
|
19532
19707
|
ctx.restore();
|
|
19533
19708
|
if (page.footnoteBlocks && page.footnoteBlocks.length > 0 && page.footnoteTop !== void 0) {
|
|
19534
19709
|
ctx.save();
|
|
@@ -31045,11 +31220,41 @@ function parseImportedStyles(stylesXml, theme) {
|
|
|
31045
31220
|
}
|
|
31046
31221
|
return emptyOrUndefined(styles);
|
|
31047
31222
|
}
|
|
31223
|
+
function isXmlTrue(value) {
|
|
31224
|
+
return value === "1" || value === "true" || value === "on";
|
|
31225
|
+
}
|
|
31226
|
+
function parseColumns(sectPr) {
|
|
31227
|
+
const cols = getFirstChildByTagNameNS(sectPr, WORD_NS, "cols");
|
|
31228
|
+
if (!cols) {
|
|
31229
|
+
return void 0;
|
|
31230
|
+
}
|
|
31231
|
+
const count = Number.parseInt(getAttributeValue(cols, "num") ?? "1", 10);
|
|
31232
|
+
if (!Number.isFinite(count) || count <= 1) {
|
|
31233
|
+
return void 0;
|
|
31234
|
+
}
|
|
31235
|
+
const space = twipsToPx(getAttributeValue(cols, "space"), 0);
|
|
31236
|
+
const sepAttr = getAttributeValue(cols, "sep");
|
|
31237
|
+
const equalWidthAttr = getAttributeValue(cols, "equalWidth");
|
|
31238
|
+
const colChildren = getChildrenByTagNameNS(cols, WORD_NS, "col");
|
|
31239
|
+
const explicit = colChildren.map((col) => ({
|
|
31240
|
+
width: twipsToPx(getAttributeValue(col, "w"), 0),
|
|
31241
|
+
space: twipsToPx(getAttributeValue(col, "space"), space)
|
|
31242
|
+
}));
|
|
31243
|
+
const equalWidth = equalWidthAttr == null ? true : isXmlTrue(equalWidthAttr);
|
|
31244
|
+
return {
|
|
31245
|
+
count,
|
|
31246
|
+
space,
|
|
31247
|
+
...isXmlTrue(sepAttr) ? { separator: true } : {},
|
|
31248
|
+
...equalWidth ? {} : { equalWidth: false },
|
|
31249
|
+
...!equalWidth && explicit.length > 0 ? { columns: explicit } : {}
|
|
31250
|
+
};
|
|
31251
|
+
}
|
|
31048
31252
|
function parseSectionProperties(sectPr) {
|
|
31049
31253
|
const pageSize = getFirstChildByTagNameNS(sectPr, WORD_NS, "pgSz");
|
|
31050
31254
|
const pageMargins = getFirstChildByTagNameNS(sectPr, WORD_NS, "pgMar");
|
|
31255
|
+
const columns = parseColumns(sectPr);
|
|
31051
31256
|
let pageSettings;
|
|
31052
|
-
if (pageSize || pageMargins) {
|
|
31257
|
+
if (pageSize || pageMargins || columns) {
|
|
31053
31258
|
const width = twipsToPx(getAttributeValue(pageSize, "w"), 816);
|
|
31054
31259
|
const height = twipsToPx(getAttributeValue(pageSize, "h"), 1056);
|
|
31055
31260
|
const orientationValue = getAttributeValue(pageSize, "orient");
|
|
@@ -31065,7 +31270,8 @@ function parseSectionProperties(sectPr) {
|
|
|
31065
31270
|
header: twipsToPx(getAttributeValue(pageMargins, "header"), 48),
|
|
31066
31271
|
footer: twipsToPx(getAttributeValue(pageMargins, "footer"), 48),
|
|
31067
31272
|
gutter: twipsToPx(getAttributeValue(pageMargins, "gutter"), 0)
|
|
31068
|
-
}
|
|
31273
|
+
},
|
|
31274
|
+
...columns ? { columns } : {}
|
|
31069
31275
|
};
|
|
31070
31276
|
}
|
|
31071
31277
|
const parseSectionReferences = (localName) => {
|
|
@@ -31118,7 +31324,8 @@ function parsePageSettings(body) {
|
|
|
31118
31324
|
WORD_NS,
|
|
31119
31325
|
"pgMar"
|
|
31120
31326
|
);
|
|
31121
|
-
|
|
31327
|
+
const columns = parseColumns(sectionProperties);
|
|
31328
|
+
if (!pageSize && !pageMargins && !columns) {
|
|
31122
31329
|
return void 0;
|
|
31123
31330
|
}
|
|
31124
31331
|
const width = twipsToPx(getAttributeValue(pageSize, "w"), 816);
|
|
@@ -31136,7 +31343,8 @@ function parsePageSettings(body) {
|
|
|
31136
31343
|
header: twipsToPx(getAttributeValue(pageMargins, "header"), 48),
|
|
31137
31344
|
footer: twipsToPx(getAttributeValue(pageMargins, "footer"), 48),
|
|
31138
31345
|
gutter: twipsToPx(getAttributeValue(pageMargins, "gutter"), 0)
|
|
31139
|
-
}
|
|
31346
|
+
},
|
|
31347
|
+
...columns ? { columns } : {}
|
|
31140
31348
|
};
|
|
31141
31349
|
}
|
|
31142
31350
|
function applyDocGridLinePitch(blocks, linePitchPx, mode, docGridType, settings) {
|
|
@@ -34158,7 +34366,7 @@ function importDocxInWorker(buffer, options = {}) {
|
|
|
34158
34366
|
const worker = new Worker(
|
|
34159
34367
|
new URL(
|
|
34160
34368
|
/* @vite-ignore */
|
|
34161
|
-
"" + new URL("assets/importDocxWorker-
|
|
34369
|
+
"" + new URL("assets/importDocxWorker-D4P4_drI.js", import.meta.url).href,
|
|
34162
34370
|
import.meta.url
|
|
34163
34371
|
),
|
|
34164
34372
|
{
|
|
@@ -38171,7 +38379,7 @@ export {
|
|
|
38171
38379
|
imageExtensionFromMime as Z,
|
|
38172
38380
|
pxToPt as _,
|
|
38173
38381
|
getParagraphLength as a,
|
|
38174
|
-
|
|
38382
|
+
CaretOverlay as a$,
|
|
38175
38383
|
buildCanvasTableLayout as a0,
|
|
38176
38384
|
resolveFloatingObjectRect as a1,
|
|
38177
38385
|
getTextBoxFloatingGeometry as a2,
|
|
@@ -38182,33 +38390,33 @@ export {
|
|
|
38182
38390
|
DEFAULT_FONT_SIZE_PX as a7,
|
|
38183
38391
|
isDoubleUnderlineStyle as a8,
|
|
38184
38392
|
isWavyUnderlineStyle as a9,
|
|
38185
|
-
|
|
38186
|
-
|
|
38187
|
-
|
|
38188
|
-
|
|
38189
|
-
|
|
38190
|
-
|
|
38191
|
-
|
|
38192
|
-
|
|
38193
|
-
|
|
38194
|
-
|
|
38195
|
-
|
|
38196
|
-
|
|
38197
|
-
|
|
38198
|
-
|
|
38199
|
-
|
|
38200
|
-
|
|
38201
|
-
|
|
38202
|
-
|
|
38203
|
-
|
|
38204
|
-
|
|
38205
|
-
|
|
38206
|
-
|
|
38207
|
-
|
|
38208
|
-
|
|
38209
|
-
|
|
38210
|
-
|
|
38211
|
-
|
|
38393
|
+
parseFontSizePtToPx as aA,
|
|
38394
|
+
formatFontSizePt as aB,
|
|
38395
|
+
listKindForTag as aC,
|
|
38396
|
+
isParagraphTag as aD,
|
|
38397
|
+
collectInlineRuns as aE,
|
|
38398
|
+
parseParagraphStyle as aF,
|
|
38399
|
+
t as aG,
|
|
38400
|
+
preciseFontModeVersion as aH,
|
|
38401
|
+
isPreciseFontModeEnabled as aI,
|
|
38402
|
+
togglePreciseFontMode as aJ,
|
|
38403
|
+
nextFontSizePt as aK,
|
|
38404
|
+
previousFontSizePt as aL,
|
|
38405
|
+
fontSizePtToPx as aM,
|
|
38406
|
+
createDefaultToolbarPreset as aN,
|
|
38407
|
+
defaultMenuItems as aO,
|
|
38408
|
+
MenuRegistry as aP,
|
|
38409
|
+
createToolbarRegistry as aQ,
|
|
38410
|
+
Editor as aR,
|
|
38411
|
+
resolveCommandRef as aS,
|
|
38412
|
+
commandRefName as aT,
|
|
38413
|
+
InlineShell as aU,
|
|
38414
|
+
BalloonShell as aV,
|
|
38415
|
+
DocumentShell as aW,
|
|
38416
|
+
createMemo as aX,
|
|
38417
|
+
getCaretRectFromSnapshot as aY,
|
|
38418
|
+
getParagraphRectFromSnapshot as aZ,
|
|
38419
|
+
createComponent as a_,
|
|
38212
38420
|
underlineStyleLineWidthPx as aa,
|
|
38213
38421
|
underlineStyleDashArray as ab,
|
|
38214
38422
|
getListLabelInset as ac,
|
|
@@ -38224,98 +38432,99 @@ export {
|
|
|
38224
38432
|
projectDocumentLayout as am,
|
|
38225
38433
|
getPageHeaderZoneTop as an,
|
|
38226
38434
|
getPageBodyTop as ao,
|
|
38227
|
-
|
|
38228
|
-
|
|
38229
|
-
|
|
38230
|
-
|
|
38231
|
-
|
|
38232
|
-
|
|
38233
|
-
|
|
38234
|
-
|
|
38235
|
-
|
|
38236
|
-
|
|
38237
|
-
|
|
38435
|
+
getPageColumnRects as ap,
|
|
38436
|
+
findFootnoteReference as aq,
|
|
38437
|
+
FOOTNOTE_MARKER_GUTTER_PX as ar,
|
|
38438
|
+
resolveImporterForFile as as,
|
|
38439
|
+
createEditorStateFromDocument as at,
|
|
38440
|
+
getDocumentParagraphsCanonical as au,
|
|
38441
|
+
getToolbarStyleState as av,
|
|
38442
|
+
STANDARD_FONT_SIZES_PT as aw,
|
|
38443
|
+
fontSizePxToPt as ax,
|
|
38444
|
+
probeLocalFontFamilies as ay,
|
|
38445
|
+
createInitialEditorState as az,
|
|
38238
38446
|
createEditorRun as b,
|
|
38239
|
-
|
|
38240
|
-
|
|
38241
|
-
|
|
38242
|
-
|
|
38243
|
-
|
|
38244
|
-
|
|
38245
|
-
|
|
38246
|
-
|
|
38247
|
-
|
|
38248
|
-
|
|
38249
|
-
|
|
38250
|
-
|
|
38251
|
-
|
|
38252
|
-
|
|
38253
|
-
|
|
38254
|
-
|
|
38255
|
-
|
|
38256
|
-
|
|
38257
|
-
|
|
38258
|
-
|
|
38259
|
-
|
|
38260
|
-
|
|
38261
|
-
|
|
38262
|
-
|
|
38263
|
-
|
|
38264
|
-
|
|
38265
|
-
|
|
38266
|
-
|
|
38267
|
-
|
|
38268
|
-
|
|
38269
|
-
|
|
38270
|
-
|
|
38271
|
-
|
|
38272
|
-
|
|
38273
|
-
|
|
38274
|
-
|
|
38275
|
-
|
|
38276
|
-
|
|
38277
|
-
|
|
38278
|
-
|
|
38279
|
-
|
|
38280
|
-
|
|
38281
|
-
|
|
38282
|
-
|
|
38283
|
-
|
|
38284
|
-
|
|
38285
|
-
|
|
38286
|
-
|
|
38287
|
-
|
|
38288
|
-
|
|
38289
|
-
|
|
38290
|
-
|
|
38291
|
-
|
|
38292
|
-
|
|
38293
|
-
|
|
38294
|
-
|
|
38295
|
-
|
|
38296
|
-
|
|
38297
|
-
|
|
38298
|
-
|
|
38299
|
-
|
|
38300
|
-
|
|
38301
|
-
|
|
38302
|
-
|
|
38447
|
+
RIBBON_TABS as b$,
|
|
38448
|
+
Show as b0,
|
|
38449
|
+
createRenderEffect as b1,
|
|
38450
|
+
style as b2,
|
|
38451
|
+
setAttribute as b3,
|
|
38452
|
+
setStyleProperty as b4,
|
|
38453
|
+
memo as b5,
|
|
38454
|
+
template as b6,
|
|
38455
|
+
insert as b7,
|
|
38456
|
+
use as b8,
|
|
38457
|
+
addEventListener as b9,
|
|
38458
|
+
installGlobalReport as bA,
|
|
38459
|
+
applyStoredPreciseFontPreference as bB,
|
|
38460
|
+
getWelcomeSeen as bC,
|
|
38461
|
+
isLocalFontAccessSupported as bD,
|
|
38462
|
+
EDITOR_SCROLL_PADDING_PX as bE,
|
|
38463
|
+
Toolbar as bF,
|
|
38464
|
+
OasisEditorLoading as bG,
|
|
38465
|
+
createEditorLogger as bH,
|
|
38466
|
+
getCachedCanvasImage as bI,
|
|
38467
|
+
registerDomStatsSurface as bJ,
|
|
38468
|
+
Button as bK,
|
|
38469
|
+
Checkbox as bL,
|
|
38470
|
+
ColorPicker as bM,
|
|
38471
|
+
CommandRegistry as bN,
|
|
38472
|
+
DEFAULT_PALETTE as bO,
|
|
38473
|
+
DialogFooter as bP,
|
|
38474
|
+
FloatingActionButton as bQ,
|
|
38475
|
+
GridPicker as bR,
|
|
38476
|
+
IconButton as bS,
|
|
38477
|
+
Menu as bT,
|
|
38478
|
+
OASIS_BUILTIN_COMMANDS as bU,
|
|
38479
|
+
OASIS_MENU_ITEMS as bV,
|
|
38480
|
+
OASIS_TOOLBAR_ITEMS as bW,
|
|
38481
|
+
OasisEditorAppLazy as bX,
|
|
38482
|
+
OasisEditorContainer as bY,
|
|
38483
|
+
PluginCollection as bZ,
|
|
38484
|
+
Popover as b_,
|
|
38485
|
+
Dialog as ba,
|
|
38486
|
+
delegateEvents as bb,
|
|
38487
|
+
className as bc,
|
|
38488
|
+
For as bd,
|
|
38489
|
+
UNDERLINE_STYLE_OPTIONS as be,
|
|
38490
|
+
Tabs as bf,
|
|
38491
|
+
measureParagraphMinContentWidthPx as bg,
|
|
38492
|
+
getEditableBlocksForZone as bh,
|
|
38493
|
+
findParagraphLocation as bi,
|
|
38494
|
+
createSectionBoundaryParagraph as bj,
|
|
38495
|
+
normalizePageSettings as bk,
|
|
38496
|
+
DEFAULT_EDITOR_PAGE_SETTINGS as bl,
|
|
38497
|
+
markStart as bm,
|
|
38498
|
+
markEnd as bn,
|
|
38499
|
+
getParagraphEntries as bo,
|
|
38500
|
+
getParagraphById as bp,
|
|
38501
|
+
PluginUiHost as bq,
|
|
38502
|
+
OasisEditorEditor as br,
|
|
38503
|
+
perfTimer as bs,
|
|
38504
|
+
OasisBrandMark as bt,
|
|
38505
|
+
setPreciseFontPreference as bu,
|
|
38506
|
+
setWelcomeSeen as bv,
|
|
38507
|
+
enablePreciseFontMode as bw,
|
|
38508
|
+
createOasisEditorClient as bx,
|
|
38509
|
+
setLocale as by,
|
|
38510
|
+
startLongTaskObserver as bz,
|
|
38303
38511
|
createEditorParagraphFromRuns as c,
|
|
38304
|
-
|
|
38305
|
-
|
|
38306
|
-
|
|
38307
|
-
|
|
38308
|
-
|
|
38309
|
-
|
|
38310
|
-
|
|
38311
|
-
|
|
38312
|
-
|
|
38313
|
-
|
|
38314
|
-
|
|
38315
|
-
|
|
38316
|
-
|
|
38317
|
-
|
|
38318
|
-
|
|
38512
|
+
RIBBON_TAB_DEFINITIONS as c0,
|
|
38513
|
+
Select as c1,
|
|
38514
|
+
SelectField as c2,
|
|
38515
|
+
Separator as c3,
|
|
38516
|
+
SidePanel as c4,
|
|
38517
|
+
SidePanelBody as c5,
|
|
38518
|
+
SidePanelFooter as c6,
|
|
38519
|
+
SidePanelHeader as c7,
|
|
38520
|
+
SplitButton as c8,
|
|
38521
|
+
TextField as c9,
|
|
38522
|
+
Button$1 as ca,
|
|
38523
|
+
createEditorCommandBus as cb,
|
|
38524
|
+
createOasisEditor as cc,
|
|
38525
|
+
createOasisEditorContainer as cd,
|
|
38526
|
+
mount as ce,
|
|
38527
|
+
registerToolbarRenderer as cf,
|
|
38319
38528
|
getDocumentSections as d,
|
|
38320
38529
|
createEditorStyledRun as e,
|
|
38321
38530
|
getParagraphText as f,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { estimateParagraphBlockHeight } from '
|
|
1
|
+
export { estimateParagraphBlockHeight } from './paragraphPagination.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorLayoutPage, EditorLayoutParagraph, EditorNamedStyle, EditorPageSettings } from '
|
|
2
|
-
import { ITextMeasurer } from '
|
|
1
|
+
import { EditorBlockNode, EditorLayoutPage, EditorLayoutParagraph, EditorNamedStyle, EditorPageSettings } from '../core/model.js';
|
|
2
|
+
import { ITextMeasurer } from '../core/engine.js';
|
|
3
3
|
|
|
4
4
|
export interface ProjectBlocksLayoutContext {
|
|
5
5
|
blocks: EditorBlockNode[];
|
|
@@ -14,5 +14,15 @@ export interface ProjectBlocksLayoutContext {
|
|
|
14
14
|
measurer?: ITextMeasurer;
|
|
15
15
|
reservedHeightByPageIndex?: Map<number, number>;
|
|
16
16
|
defaultTabStop?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Overrides the line-wrapping width (default: full page content width). Used
|
|
19
|
+
* by the multi-column flow to wrap at a single column's width.
|
|
20
|
+
*/
|
|
21
|
+
contentWidthOverride?: number;
|
|
17
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Entry point used by section pagination. Dispatches to the multi-column flow
|
|
25
|
+
* when the page declares `columns.count > 1`, otherwise runs the standard
|
|
26
|
+
* single-column track layout.
|
|
27
|
+
*/
|
|
18
28
|
export declare function projectBlocksLayout(context: ProjectBlocksLayoutContext): EditorLayoutPage[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorDocument, EditorLayoutDocument, EditorLayoutParagraph } from '
|
|
2
|
-
import { ITextMeasurer } from '
|
|
1
|
+
import { EditorDocument, EditorLayoutDocument, EditorLayoutParagraph } from '../core/model.js';
|
|
2
|
+
import { ITextMeasurer } from '../core/engine.js';
|
|
3
3
|
|
|
4
4
|
export declare function projectDocumentLayout(document: EditorDocument, maxPageHeightOverride?: number, measuredHeights?: Record<string, number>, measuredParagraphLayouts?: Record<string, EditorLayoutParagraph>, options?: {
|
|
5
5
|
measurer?: ITextMeasurer;
|