Skip to content

Commit 572f02b

Browse files
committed
refactor: adopt @omicronenergy/oscd-api
1 parent c6e8356 commit 572f02b

16 files changed

+33
-480
lines changed

Transactor.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

XMLEditor.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ import {
1010
undoRedoTestCases,
1111
} from "./testHelpers.js";
1212

13-
import { EditV2, isSetAttributes, isSetTextContent } from "./editv2.js";
13+
import {
14+
Commit,
15+
EditV2,
16+
isSetAttributes,
17+
isSetTextContent,
18+
Transactor,
19+
} from "@omicronenergy/oscd-api";
1420

1521
import { XMLEditor } from "./XMLEditor.js";
16-
import { Commit, Transactor } from "./Transactor.js";
1722

1823
describe("XMLEditor", () => {
1924
let editor: Transactor<EditV2>;

XMLEditor.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { EditV2 } from "./editv2.js";
2-
31
import { handleEdit } from "./handleEdit.js";
42
import {
53
Commit,
6-
TransactedCallback,
74
CommitOptions,
5+
EditV2,
6+
TransactedCallback,
87
Transactor,
9-
} from "./Transactor.js";
8+
} from "@omicronenergy/oscd-api";
109

1110
export class XMLEditor implements Transactor<EditV2> {
1211
past: Commit<EditV2>[] = [];

convertEdit.spec.ts

Lines changed: 0 additions & 100 deletions
This file was deleted.

convertEdit.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

edit-event.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

editv1.spec.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

editv1.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)