Skip to content

Commit 689f20c

Browse files
committed
feat: Update helper class names function object
1 parent fc63bf6 commit 689f20c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

packages/test-case-component/src/helpers.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,20 @@ function isPositionRange(
259259
const DEFAULT_HAT_CLASS = "hat default";
260260
const classesMap = {
261261
default: DEFAULT_HAT_CLASS,
262-
pendingDelete: "decoration pendingDeleteBackground",
263-
referenced: "decoration referencedBackground",
264-
selection: "selection"
262+
pendingDelete: "decoration pendingDelete",
263+
referenced: "decoration referenced",
264+
selection: "selection",
265+
pendingModification0: "decoration pendingModification0",
266+
pendingModification1: "decoration pendingModification1",
267+
justAdded: "decoration justAdded",
268+
highlight0: "decoration highlight0",
269+
highlight1: "decoration highlight1",
270+
sourceMark: "sourceMark",
271+
thatMark: "thatMark"
265272
};
266273

267274
function getDecorationClass(key: keyof typeof classesMap): string {
268-
return classesMap[key] || DEFAULT_HAT_CLASS;
275+
return classesMap[key];
269276
}
270277

271278

0 commit comments

Comments
 (0)