oasis-editor 0.0.378 → 0.0.380
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-DPVuZiUV.js +1 -0
- package/dist/assets/{importDocxWorker-B13OESgI.js → importDocxWorker-pLxNACCd.js} +1239 -1182
- package/dist/core/document/fieldMutation.d.ts +18 -0
- package/dist/core/document/paragraphRunEdit.d.ts +9 -0
- package/dist/{defaultToolbar-CgJlrQ3u.js → defaultToolbar-NLzzqKtC.js} +1 -1
- package/dist/import/docx/runs/fieldPreservation.d.ts +7 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/OasisEditorApp-DvBGpr7z.js +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EditorParagraphNode, EditorState, EditorTextRun } from '../model.js';
|
|
2
|
+
export declare const hasFieldMarkers: (p: EditorParagraphNode) => boolean;
|
|
3
|
+
/** A temporary conservative guard, NOT a semantic story graph.
|
|
4
|
+
* Open or malformed streams protect the entire active zone until the
|
|
5
|
+
* story-aware field engine can distinguish independent stories/ranges.
|
|
6
|
+
* Balanced paragraph-local spans allow ordinary neighboring text edits.
|
|
7
|
+
*/
|
|
8
|
+
export declare function protectedFieldRanges(p: EditorParagraphNode): Array<{
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
export declare function fieldRangeProtected(p: EditorParagraphNode, start: number, end: number): boolean;
|
|
13
|
+
export declare function hasUnresolvedFieldStory(state: EditorState): boolean;
|
|
14
|
+
export declare function fieldSelectionProtected(state: EditorState): boolean;
|
|
15
|
+
/** Rebuild a range without ever sending invisible controls to a text mapper.
|
|
16
|
+
* Unlike sliceRuns (clipboard/visible selection), every zero-width run is
|
|
17
|
+
* visited exactly once. The mapper is called only for visible intersections. */
|
|
18
|
+
export declare function mapFieldAdjacentRuns(p: EditorParagraphNode, start: number, end: number, mapper: (r: EditorTextRun) => EditorTextRun | null): EditorTextRun[];
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import { EditorParagraphNode, EditorTextRun } from '../model.js';
|
|
2
2
|
export declare function insertRunsAtOffset(paragraph: EditorParagraphNode, offset: number, textRuns: EditorTextRun[]): EditorParagraphNode;
|
|
3
|
+
/** Preserve the zero-width field stream during a single-paragraph insertion.
|
|
4
|
+
* At ambiguous exact boundaries preserve marker order and insert after the
|
|
5
|
+
* encountered markers (before subsequent visible text). General selection
|
|
6
|
+
* deletion, multi-paragraph splits and field-range semantics require a
|
|
7
|
+
* story-aware field span model; this is not that model. */
|
|
8
|
+
export declare function splitForFieldAdjacentInsertion(paragraph: EditorParagraphNode, offset: number): {
|
|
9
|
+
beforeRuns: EditorTextRun[];
|
|
10
|
+
afterRuns: EditorTextRun[];
|
|
11
|
+
};
|