@pronto-tools-and-more/diff-process 11.1.0 → 11.3.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import * as GetChangeAncestor from "../GetChangeAncestor/GetChangeAncestor.js";
|
2
|
+
import * as PidKey from "../PidKey/PidKey.js";
|
2
3
|
|
3
4
|
export const getChanges = (changed) => {
|
4
5
|
const changes = [];
|
@@ -17,7 +18,7 @@ export const getChanges = (changed) => {
|
|
17
18
|
) {
|
18
19
|
changes.push({
|
19
20
|
type: "text-change",
|
20
|
-
ref: ancestor.newView.attributes[
|
21
|
+
ref: ancestor.newView.attributes[PidKey.pidKey],
|
21
22
|
newText: ancestor.newView.content,
|
22
23
|
});
|
23
24
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export const pidKey = "data-prid";
|