sample-ui-component-library 0.0.62-dev → 0.0.63-dev
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Editor/MonacoInstance/OverlayRow/OverlayRow.jsx +8 -3
- package/src/components/Editor/MonacoInstance/OverlayRow/OverlayRow.scss +1 -1
- package/src/stories/data/FileBrowser/workspace_sample.json +2 -1
package/package.json
CHANGED
|
@@ -8,12 +8,17 @@ export const OverlayRow =({ entry, top, bottom, onSelectAbstraction }) => {
|
|
|
8
8
|
const style= {
|
|
9
9
|
"top": top + "px",
|
|
10
10
|
"height": (bottom - top) + "px",
|
|
11
|
-
"backgroundColor": entry?.backgroundColor || "none"
|
|
12
11
|
};
|
|
13
12
|
|
|
14
|
-
// If entry doesn't have background color, add hover effect.
|
|
15
13
|
let className = "line-block-overlay";
|
|
16
|
-
if (
|
|
14
|
+
if (entry.isMappedCurrent) {
|
|
15
|
+
style["backgroundColor"] = "rgba(123, 255, 0, 0.2)";
|
|
16
|
+
} else if (entry.isMappedOther) {
|
|
17
|
+
style["backgroundColor"] = "rgba(138, 138, 138, 0.2)";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// If entry is not mapped, add hover effect.
|
|
21
|
+
if (!entry.isMappedCurrent && !entry.isMappedOther) {
|
|
17
22
|
className += " line-block-overlay-hover";
|
|
18
23
|
}
|
|
19
24
|
|
|
@@ -260,6 +260,7 @@
|
|
|
260
260
|
"uid": "915ae10a-aab9-4003-9dbc-45772015b366",
|
|
261
261
|
"start_line": 71,
|
|
262
262
|
"end_line": 71,
|
|
263
|
+
"isMappedOther": true,
|
|
263
264
|
"source": "book_shelf = place_books_on_shelf_from_basket(book_shelf, basket)"
|
|
264
265
|
},
|
|
265
266
|
{
|
|
@@ -287,7 +288,7 @@
|
|
|
287
288
|
"uid": "f9fff770-f748-407e-99ac-e94246a9d4d3",
|
|
288
289
|
"start_line": 75,
|
|
289
290
|
"end_line": 75,
|
|
290
|
-
"
|
|
291
|
+
"isMappedCurrent": true,
|
|
291
292
|
"source": "print(\"\\nLibrary Audit:\", json.dumps(audit[\"value\"], indent=2))"
|
|
292
293
|
},
|
|
293
294
|
{
|