oasis-editor 0.0.145 → 0.0.147
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-CskQWKEC.js → OasisEditorApp-DM9mi2EU.js} +4258 -4167
- package/dist/__tests__/ooxml/markupCompatibilityEngine.test.d.ts +1 -0
- package/dist/__tests__/ooxml/milestone2Integration.test.d.ts +1 -0
- package/dist/__tests__/ooxml/namespaceRegistry.test.d.ts +1 -0
- package/dist/__tests__/ooxml/preservationBag.test.d.ts +1 -0
- package/dist/__tests__/ooxml/universalContainerPatcher.test.d.ts +1 -0
- package/dist/app/controllers/tableOpsMutationCommands.d.ts +14 -3
- package/dist/app/controllers/tableOpsSelectionRanges.d.ts +4 -1
- package/dist/app/controllers/useEditorTableOperations.d.ts +2 -2
- package/dist/assets/importDocxWorker-BLm3QMHu.js +12 -0
- package/dist/core/commands/table/tableCommandUtils.d.ts +7 -1
- package/dist/core/editorState/nodeFactories.d.ts +1 -1
- package/dist/core/model/documentIndex.d.ts +35 -2
- package/dist/core/model/index.d.ts +2 -2
- package/dist/core/model/types/docxSourcePackage.d.ts +7 -0
- package/dist/core/model/types/nodes.d.ts +2 -1
- package/dist/export/docx/docxNumbering.d.ts +4 -1
- package/dist/export/docx/endnotesXml.d.ts +2 -5
- package/dist/export/docx/footnotesXml.d.ts +3 -21
- package/dist/export/docx/noteDocxIds.d.ts +9 -0
- package/dist/export/docx/opc/commentEntrySourcePatcher.d.ts +5 -0
- package/dist/export/docx/opc/commentsExtendedSourcePatcher.d.ts +5 -0
- package/dist/export/docx/opc/documentRootSourcePatcher.d.ts +5 -0
- package/dist/export/docx/opc/extensionMarkupMerge.d.ts +9 -0
- package/dist/export/docx/opc/headerFooterRootSourcePatcher.d.ts +11 -0
- package/dist/export/docx/opc/headerFooterSourcePatcher.d.ts +9 -0
- package/dist/export/docx/opc/headerFooterStoryReferences.d.ts +14 -0
- package/dist/export/docx/opc/noteEntrySourcePatcher.d.ts +4 -0
- package/dist/export/docx/opc/numberingSourcePatcher.d.ts +5 -0
- package/dist/export/docx/opc/rebuiltPartHashes.d.ts +5 -0
- package/dist/export/docx/opc/relatedStoryRootSourcePatcher.d.ts +11 -0
- package/dist/export/docx/opc/sectionPropertiesSourcePatcher.d.ts +10 -0
- package/dist/export/docx/opc/sourceBackedDocxPatcher.d.ts +4 -0
- package/dist/export/docx/opc/sourceOnlySingletonFilter.d.ts +19 -0
- package/dist/export/docx/opc/sourcePackagePatcher.d.ts +7 -3
- package/dist/export/docx/opc/styleParagraphPropertiesSourcePatcher.d.ts +5 -0
- package/dist/export/docx/opc/styleRunPropertiesSourcePatcher.d.ts +5 -0
- package/dist/export/docx/opc/styleTablePropertiesSourcePatcher.d.ts +5 -0
- package/dist/export/docx/opc/universalContainerPatcher.d.ts +1 -0
- package/dist/export/docx/opc/wordPartRootSourcePatcher.d.ts +21 -0
- package/dist/export/docx/opc/wordSingletonSourcePatcher.d.ts +14 -0
- package/dist/export/docx/tableSourcePropertiesXml.d.ts +13 -0
- package/dist/export/docx/tableSourceXml.d.ts +10 -0
- package/dist/export/docx/tableXml.d.ts +5 -3
- package/dist/export/docx/text/sourceParagraphPropertiesXml.d.ts +8 -0
- package/dist/export/docx/text/sourceRunPropertiesXml.d.ts +7 -0
- package/dist/import/docx/opc/sourcePackage.d.ts +1 -0
- package/dist/{index-DOtfE4EA.js → index-CXKg4TC3.js} +5960 -875
- package/dist/oasis-editor.js +79 -79
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ooxml/markupCompatibilityEngine.d.ts +16 -0
- package/dist/ooxml/namespaceRegistry.d.ts +17 -0
- package/dist/ooxml/preservationBag.d.ts +21 -0
- package/dist/ooxml/schemaOrder.d.ts +7 -0
- package/dist/ooxml/word/numberingMetadata.d.ts +4 -0
- package/dist/ooxml/word/sourceFragments.d.ts +39 -3
- package/dist/ui/tableGeometry.d.ts +2 -3
- package/package.json +1 -1
- package/dist/assets/importDocxWorker-5S8lX4CZ.js +0 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { findParagraphTablePathLocation, EditorBlockNode, EditorEditingZone, EditorParagraphNode, EditorState, EditorTableCellNode, EditorTableNode } from '../../core/model.js';
|
|
2
2
|
|
|
3
|
+
export declare function getTableOperationTargetBlocks(current: EditorState, zone: EditorEditingZone): EditorBlockNode[];
|
|
3
4
|
export declare const updateBlocksInCurrentSection: (current: EditorState, blocks: EditorBlockNode[], zone?: EditorEditingZone) => EditorState;
|
|
4
|
-
|
|
5
|
+
type TablePathLocation = NonNullable<ReturnType<typeof findParagraphTablePathLocation>>;
|
|
5
6
|
export interface TableLocationMutation {
|
|
6
7
|
tableBlock: EditorTableNode;
|
|
7
|
-
|
|
8
|
+
targetCell: EditorTableCellNode;
|
|
9
|
+
location: TablePathLocation;
|
|
8
10
|
targetBlocks: EditorBlockNode[];
|
|
9
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Clones only the top-level table that owns `location.tablePath`, then resolves
|
|
14
|
+
* the cloned path to the innermost table and active cell. All mutation callers
|
|
15
|
+
* therefore operate on the intended nested table while unrelated document
|
|
16
|
+
* blocks retain structural sharing.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveTablePathMutation(current: EditorState, getTargetBlocks: (state: EditorState, zone: EditorEditingZone) => EditorBlockNode[], location: TablePathLocation): TableLocationMutation | null;
|
|
19
|
+
export declare const applyTableAwareParagraphEdit: (current: EditorState, getTargetBlocks: (state: EditorState, zone: EditorEditingZone) => EditorBlockNode[], edit: (tempState: EditorState) => EditorState) => EditorState;
|
|
10
20
|
export declare function resolveLocationTableMutation(current: EditorState, getTargetBlocks: (state: EditorState, zone: EditorEditingZone) => EditorBlockNode[]): TableLocationMutation | null;
|
|
11
21
|
export declare function commitTableMutation(current: EditorState, targetBlocks: EditorBlockNode[], zone: EditorEditingZone, nextParagraph: EditorParagraphNode | null | undefined): EditorState;
|
|
22
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { EditorBlockNode, EditorEditingZone, EditorState } from '../../core/model.js';
|
|
1
|
+
import { EditorBlockNode, EditorEditingZone, EditorState, TablePathSegment } from '../../core/model.js';
|
|
2
2
|
import { TableCellLayoutEntry } from '../../core/tableLayout.js';
|
|
3
3
|
import { EditorLogger } from '../../utils/logger.js';
|
|
4
4
|
|
|
5
5
|
export interface HorizontalTableCellRange {
|
|
6
6
|
blockIndex: number;
|
|
7
|
+
tablePath: TablePathSegment[];
|
|
7
8
|
rowIndex: number;
|
|
8
9
|
startCellIndex: number;
|
|
9
10
|
endCellIndex: number;
|
|
@@ -11,6 +12,7 @@ export interface HorizontalTableCellRange {
|
|
|
11
12
|
}
|
|
12
13
|
export interface VerticalTableCellRange {
|
|
13
14
|
blockIndex: number;
|
|
15
|
+
tablePath: TablePathSegment[];
|
|
14
16
|
startRowIndex: number;
|
|
15
17
|
endRowIndex: number;
|
|
16
18
|
cellIndex: number;
|
|
@@ -18,6 +20,7 @@ export interface VerticalTableCellRange {
|
|
|
18
20
|
}
|
|
19
21
|
export interface SelectedTableCells {
|
|
20
22
|
blockIndex: number;
|
|
23
|
+
tablePath: TablePathSegment[];
|
|
21
24
|
cells: TableCellLayoutEntry[];
|
|
22
25
|
zone: EditorEditingZone;
|
|
23
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MergeKey } from '../../core/transactionMergeKeys.js';
|
|
2
|
-
import {
|
|
2
|
+
import { EditorState } from '../../core/model.js';
|
|
3
3
|
import { EditorLogger } from '../../utils/logger.js';
|
|
4
4
|
|
|
5
5
|
export interface EditorTableOperationsDeps {
|
|
@@ -37,7 +37,7 @@ declare function createEditorTableOperationsImpl(deps: EditorTableOperationsDeps
|
|
|
37
37
|
getTableVisualWidth: (table: import('../../core/model.js').EditorTableNode) => number;
|
|
38
38
|
findCellAtVisualColumn: (row: import('../../core/model.js').EditorTableRowNode, visualColumn: number) => import('../../core/model.js').EditorTableCellNode | null;
|
|
39
39
|
findFirstNavigableParagraphInTable: (table: import('../../core/model.js').EditorTableNode) => import('../../core/model.js').EditorParagraphNode | null;
|
|
40
|
-
updateBlocksInCurrentSection: (current: EditorState, blocks: EditorBlockNode[], zone?: EditorEditingZone) => EditorState;
|
|
40
|
+
updateBlocksInCurrentSection: (current: EditorState, blocks: import('../../core/model.js').EditorBlockNode[], zone?: import('../../core/model.js').EditorEditingZone) => EditorState;
|
|
41
41
|
resolveAdjacentTableCellPosition: (document: import('../../core/model.js').EditorDocument, paragraphId: string, delta: -1 | 1) => import('../../core/model.js').EditorPosition | null;
|
|
42
42
|
applyTableAwareParagraphEdit: (current: EditorState, edit: (tempState: EditorState) => EditorState) => EditorState;
|
|
43
43
|
withExpandedTableCellSelection: (current: EditorState) => EditorState;
|