oasis-editor 0.0.161 → 0.0.162
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-CZ4smGNO.js → OasisEditorApp-1SLQ3toO.js} +1 -1
- package/dist/assets/{importDocxWorker-CyAWuOO6.js → importDocxWorker-BnENWXFH.js} +1 -1
- package/dist/core/model/types/runSdtAugmentation.d.ts +6 -0
- package/dist/import/docx/runs/types.d.ts +4 -2
- package/dist/{index-BXPaFnv7.js → index-BY8DRmWC.js} +5 -2
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
declare module "./primitives.js" {
|
|
2
|
+
interface EditorRevision {
|
|
3
|
+
/** Word tracked-move semantics layered over delete/insert revisions. */
|
|
4
|
+
move?: "from" | "to";
|
|
5
|
+
}
|
|
6
|
+
}
|
|
1
7
|
declare module "./nodes.js" {
|
|
2
8
|
interface EditorRunBase {
|
|
3
9
|
/** Enclosing inline `w:sdt` content controls, outermost first. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Element as XmlElement } from '@xmldom/xmldom';
|
|
2
|
-
import { EditorBlockNode, EditorTextStyle, EditorImageRunData, EditorTextBoxData, EditorMathExpression, EditorSdtBlockWrapper } from '../../../core/model.js';
|
|
2
|
+
import { EditorBlockNode, EditorTextStyle, EditorImageRunData, EditorTextBoxData, EditorMathExpression, EditorRevision, EditorSdtBlockWrapper } from '../../../core/model.js';
|
|
3
3
|
|
|
4
4
|
export type ParseNestedBlocks = (container: XmlElement) => Promise<EditorBlockNode[]>;
|
|
5
5
|
/**
|
|
@@ -28,6 +28,8 @@ export interface ImportedRun {
|
|
|
28
28
|
image?: EditorImageRunData;
|
|
29
29
|
textBox?: EditorTextBoxData;
|
|
30
30
|
styles?: EditorTextStyle;
|
|
31
|
+
/** Tracked insertion/deletion, optionally paired as a Word move. */
|
|
32
|
+
revision?: EditorRevision;
|
|
31
33
|
/** Enclosing inline `w:sdt` wrappers, outermost first. */
|
|
32
34
|
sdtWrappers?: EditorSdtBlockWrapper[];
|
|
33
35
|
field?: {
|
|
@@ -39,7 +41,7 @@ export interface ImportedRun {
|
|
|
39
41
|
fieldLock?: boolean;
|
|
40
42
|
dirty?: boolean;
|
|
41
43
|
};
|
|
42
|
-
/** Preserved `w:instrText`. Zero-length marker. */
|
|
44
|
+
/** Preserved `w:instrText` / `w:delInstrText`. Zero-length marker. */
|
|
43
45
|
fieldInstruction?: string;
|
|
44
46
|
footnoteReference?: {
|
|
45
47
|
docxId: string;
|
|
@@ -2863,7 +2863,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2863
2863
|
onCleanup(() => {
|
|
2864
2864
|
cancelled = true;
|
|
2865
2865
|
});
|
|
2866
|
-
import("./OasisEditorApp-
|
|
2866
|
+
import("./OasisEditorApp-1SLQ3toO.js").then((m) => {
|
|
2867
2867
|
cancelled = true;
|
|
2868
2868
|
setProgress(1);
|
|
2869
2869
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -40537,6 +40537,9 @@ function importedRunToEditorRun(run) {
|
|
|
40537
40537
|
if (run.styles) {
|
|
40538
40538
|
base.styles = { ...run.styles };
|
|
40539
40539
|
}
|
|
40540
|
+
if (run.revision) {
|
|
40541
|
+
base.revision = { ...run.revision };
|
|
40542
|
+
}
|
|
40540
40543
|
if ((_a2 = run.sdtWrappers) == null ? void 0 : _a2.length) {
|
|
40541
40544
|
base.sdtWrappers = [...run.sdtWrappers];
|
|
40542
40545
|
}
|
|
@@ -47568,7 +47571,7 @@ async function importDocxInWorker(buffer, options = {}) {
|
|
|
47568
47571
|
const worker = new Worker(
|
|
47569
47572
|
new URL(
|
|
47570
47573
|
/* @vite-ignore */
|
|
47571
|
-
"" + new URL("assets/importDocxWorker-
|
|
47574
|
+
"" + new URL("assets/importDocxWorker-BnENWXFH.js", import.meta.url).href,
|
|
47572
47575
|
import.meta.url
|
|
47573
47576
|
),
|
|
47574
47577
|
{
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dK, ah, aw, aM, aG, dL, dM, dN, aA, dO, ai, dP, dt, aN, dQ, dR, aL, aD, dS, dT, dU, ag, dV, dr, aP, dW, dX, dY, dZ, d_, dF, d$, e0, e1, aU, aT, e2, aE, e3, e4, e5, e6, e7, e8, aI, aF, e9, b3, aO, b2, aV, az, aK, dE, ea, dL as dL2, dS as dS2, dV as dV2, e2 as e22, e3 as e32, e8 as e82, eb, ec, dv, dq, ed, ee, ef, eg, eh, ei, ej, ds, ek, el, em, du, en } from "./index-
|
|
1
|
+
import { dK, ah, aw, aM, aG, dL, dM, dN, aA, dO, ai, dP, dt, aN, dQ, dR, aL, aD, dS, dT, dU, ag, dV, dr, aP, dW, dX, dY, dZ, d_, dF, d$, e0, e1, aU, aT, e2, aE, e3, e4, e5, e6, e7, e8, aI, aF, e9, b3, aO, b2, aV, az, aK, dE, ea, dL as dL2, dS as dS2, dV as dV2, e2 as e22, e3 as e32, e8 as e82, eb, ec, dv, dq, ed, ee, ef, eg, eh, ei, ej, ds, ek, el, em, du, en } from "./index-BY8DRmWC.js";
|
|
2
2
|
export {
|
|
3
3
|
dK as ActionRow,
|
|
4
4
|
ah as BalloonShell,
|