From 43c8f13d5722a201c564307bc2d2375e3401124c Mon Sep 17 00:00:00 2001 From: Aferdita Muriqi Date: Tue, 17 Jan 2023 14:18:56 -0500 Subject: [PATCH 1/2] version bump --- .gitignore | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5cd8e477..79a957a0 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,7 @@ settings.json yarn.lock .parcel-cache parcel-dist +examples/epubs_ +examples/epubs__ +examples/epubs___ +examples/epubs____ diff --git a/package-lock.json b/package-lock.json index 6c1be36e..0c6ba5b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@d-i-t-a/reader", - "version": "2.1.8", + "version": "2.1.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@d-i-t-a/reader", - "version": "2.1.8", + "version": "2.1.9", "license": "Apache-2.0", "dependencies": { "@types/sass": "^1.43.1", diff --git a/package.json b/package.json index d228816c..de6f2b72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@d-i-t-a/reader", - "version": "2.1.8", + "version": "2.1.9", "description": "A viewer application for EPUB files.", "repository": "https://github.com/d-i-t-a/R2D2BC", "license": "Apache-2.0", From b30ceca1534d806a08d7a927728923c973d506af Mon Sep 17 00:00:00 2001 From: Aferdita Muriqi Date: Tue, 17 Jan 2023 14:19:35 -0500 Subject: [PATCH 2/2] remove comment icon from sidebar icon toolboxes --- src/modules/highlight/TextHighlighter.ts | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/modules/highlight/TextHighlighter.ts b/src/modules/highlight/TextHighlighter.ts index a422b413..299000a5 100644 --- a/src/modules/highlight/TextHighlighter.ts +++ b/src/modules/highlight/TextHighlighter.ts @@ -3248,22 +3248,6 @@ export class TextHighlighter { if (highlightIcon) { highlightIcon.style.display = "none"; } - function noteH() { - // notes adding by clicking on gutter icon - self.delegate.annotationModule?.api - ?.addCommentToAnnotation(anno) - .then((result) => { - self.delegate.annotationModule - ?.updateAnnotation(result) - .then(async () => { - log.log("update highlight " + result.id); - toolbox!!.style.display = "none"; - self.selectionMenuClosed(); - }); - toolbox!!.style.display = "none"; - self.selectionMenuClosed(); - }); - } let commentIcon = document.getElementById("commentIcon"); let cloneCommentIcon = document.getElementById("cloneCommentIcon"); @@ -3275,14 +3259,6 @@ export class TextHighlighter { } if (commentIcon) { commentIcon.style.display = "none"; - let clone = commentIcon.cloneNode(true) as HTMLButtonElement; - let parent = commentIcon.parentElement; - clone.style.display = "unset"; - clone.id = "cloneCommentIcon"; - clone.addEventListener("click", noteH, false); - if (parent) { - parent.append(clone); - } } function deleteH() {