Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

chore: update packages

thecodrr1b8246f897c5
diff --git a/apps/web/package.json b/apps/web/package.json
index f360d66d9..1745529c3 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -16,14 +16,13 @@
"@notesnook/crypto": "^1.0.0",
"@notesnook/desktop": "file:desktop",
"@rebass/forms": "^4.0.6",
- "@streetwriters/editor": "^1.2.0",
- "@streetwriters/notesnook-core": "^7.3.3",
+ "@streetwriters/editor": "^1.2.1",
+ "@streetwriters/notesnook-core": "^7.3.5",
"@streetwriters/theme": "^1.0.1",
"allotment": "^1.12.1",
"async-mutex": "^0.3.2",
"axios": "^0.21.4",
"clipboard-polyfill": "^3.0.3",
- "compressorjs": "^1.0.7",
"dayjs": "^1.10.4",
"emotion-theming": "^10.0.19",
"event-source-polyfill": "^1.0.25",
diff --git a/apps/web/src/components/editor/picker.ts b/apps/web/src/components/editor/picker.ts
index 3a2e23bfc..3e991cff0 100644
--- a/apps/web/src/components/editor/picker.ts
+++ b/apps/web/src/components/editor/picker.ts
@@ -1,5 +1,4 @@
import { SerializedKey } from "@notesnook/crypto/dist/src/types";
-import Compressor from "compressorjs";
import { AppEventManager, AppEvents } from "../../common/app-events";
import { db } from "../../common/db";
import { showBuyDialog } from "../../common/dialog-controller";
diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsx
index 397c5178d..890f88466 100644
--- a/apps/web/src/components/editor/tiptap.tsx
+++ b/apps/web/src/components/editor/tiptap.tsx
@@ -248,7 +248,10 @@ function toIEditor(editor: Editor): IEditor {
} else editor.current?.commands.insertAttachment(file);
},
loadImage: (hash, src) =>
- editor.current?.commands.updateImage({ hash, src }),
+ editor.current?.commands.updateImage(
+ { hash },
+ { hash, src, preventUpdate: true }
+ ),
sendAttachmentProgress: (hash, type, progress) =>
editor.current?.commands.setAttachmentProgress({
hash,