A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: export table to csv
Ammar Ahmedee139463d2c7
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsxindex 37f27a05a..a6406a4da 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx+++ b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx@@ -28,11 +28,13 @@ import { getDefaultPresets } from "@notesnook/editor/dist/cjs/toolbar/tool-definimport { strings } from "@notesnook/intl";import Clipboard from "@react-native-clipboard/clipboard";import React, { useCallback, useEffect, useRef } from "react";+import * as ScopedStorage from "react-native-scoped-storage";import {BackHandler,Keyboard,KeyboardEventListener,NativeEventSubscription,+ Platform,useWindowDimensions} from "react-native";import { WebViewMessageEvent } from "react-native-webview";@@ -82,6 +84,9 @@ import { useDragState } from "../../settings/editor/state";import { EditorMessage, EditorProps, useEditorType } from "./types";import { useTabStore } from "./use-tab-store";import { editorState, openInternalLink } from "./utils";+import filesystem from "../../../common/filesystem";+import ReactNativeBlobUtil from "react-native-blob-util";+import { ShareComponent } from "../../../components/sheets/export-notes/share";const publishNote = async () => {const user = useUserStore.getState().user;@@ -153,7 +158,9 @@ export const useEditorEvents = (const features = useAreFeaturesAvailable(["callout","outlineList",- "taskList"+ "taskList",+ "importCsvToTable",+ "exportTableAsCsv"]);const deviceMode = useSettingStore((state) => state.deviceMode);const fullscreen = useSettingStore((state) => state.fullscreen);@@ -740,6 +747,62 @@ export const useEditorEvents = (}break;}+ case EditorEvents.downloadCsv: {+ try {+ const csv = editorMessage.value;+ let filePath: string;+ let fileName: string;+ if (Platform.OS === "android") {+ let file = await ScopedStorage.createDocument(+ "table.csv",+ "text/csv",+ csv,+ "utf8"+ );+ if (!file) return;+ filePath = file.path || file.uri;+ fileName = file.name;+ } else {+ const path = await filesystem.checkAndCreateDir("/");+ let possibleFileName = "table.csv";+ let counter = 1;++ // Check if file exists and find available filename+ while (+ await ReactNativeBlobUtil.fs.exists(path + possibleFileName)+ ) {+ possibleFileName = `table (${counter}).csv`;+ counter++;+ }+ await ReactNativeBlobUtil.fs.writeFile(+ path + possibleFileName,+ csv,+ "utf8"+ );+ filePath = path + possibleFileName;+ fileName = possibleFileName;+ }++ await sleep(500);+ presentSheet({+ title: "Table saved to csv",+ paragraph: strings.fileSaved(fileName, Platform.OS),+ icon: "download",+ context: "global",+ component: (+ <ShareComponent uri={filePath} name={fileName} padding={12} />+ )+ });+ } catch (e) {+ ToastManager.show({+ type: "info",+ message: "Could not save table to csv"+ });+ DatabaseLogger.error(e as Error);+ }++ break;+ }default:break;diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.jsonindex b9328641c..3913aec3b 100644--- a/apps/mobile/package-lock.json+++ b/apps/mobile/package-lock.json@@ -331,9 +331,11 @@"colord": "^2.9.3","detect-indent": "^7.0.1","entities": "5.0.0",+ "file-saver": "^2.0.5","katex": "0.16.11","linkifyjs": "^4.1.3","nanoid": "5.0.7",+ "papaparse": "^5.5.3","prism-themes": "^1.9.0","prosemirror-codemark": "^0.4.2","prosemirror-view": "1.34.2",@@ -350,7 +352,9 @@"@mdi/js": "7.4.47","@theme-ui/components": "0.16.1","@theme-ui/core": "0.16.1",+ "@types/file-saver": "^2.0.7","@types/katex": "0.16.7",+ "@types/papaparse": "^5.5.2","@types/prismjs": "1.26.4","@types/react": "18.3.5","@types/react-color": "^3.0.12",diff --git a/packages/editor-mobile/package-lock.json b/packages/editor-mobile/package-lock.jsonindex 3678cbd2e..17b02a356 100644--- a/packages/editor-mobile/package-lock.json+++ b/packages/editor-mobile/package-lock.json@@ -99,9 +99,11 @@"colord": "^2.9.3","detect-indent": "^7.0.1","entities": "5.0.0",+ "file-saver": "^2.0.5","katex": "0.16.11","linkifyjs": "^4.1.3","nanoid": "5.0.7",+ "papaparse": "^5.5.3","prism-themes": "^1.9.0","prosemirror-codemark": "^0.4.2","prosemirror-view": "1.34.2",@@ -118,7 +120,9 @@"@mdi/js": "7.4.47","@theme-ui/components": "0.16.1","@theme-ui/core": "0.16.1",+ "@types/file-saver": "^2.0.7","@types/katex": "0.16.7",+ "@types/papaparse": "^5.5.2","@types/prismjs": "1.26.4","@types/react": "18.3.5","@types/react-color": "^3.0.12",diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsxindex 689bcd3eb..b8b096da5 100644--- a/packages/editor-mobile/src/components/editor.tsx+++ b/packages/editor-mobile/src/components/editor.tsx@@ -114,6 +114,8 @@ const Tiptap = ({callout: !!settings.features?.callout?.isAllowed,outlineList: !!settings.features?.outlineList?.isAllowed,taskList: !!settings.features?.taskList?.isAllowed,+ importCsvToTable: !!settings.features?.importCsvToTable?.isAllowed,+ exportTableAsCsv: !!settings.features?.exportTableAsCsv?.isAllowed,insertAttachment: settings.loggedIn},onPermissionDenied: (claim) => {@@ -165,6 +167,10 @@ const Tiptap = ({attributes});},+ downloadCsvTable: (csv) => {+ console.log("download csv");+ post("editor-events:download-csv", csv);+ },element: getContentDiv(),editable: !tab.session?.readonly,editorProps: {diff --git a/packages/editor-mobile/src/utils/editor-events.ts b/packages/editor-mobile/src/utils/editor-events.tsindex 2d036d2b4..83b8da698 100644--- a/packages/editor-mobile/src/utils/editor-events.ts+++ b/packages/editor-mobile/src/utils/editor-events.ts@@ -54,5 +54,6 @@ export const EditorEvents = {goBack: "editor-events:go-back",goForward: "editor-events:go-forward",saveScroll: "editor-events:save-scroll",- newNote: "editor-events:new-note"+ newNote: "editor-events:new-note",+ downloadCsv: "editor-events:download-csv"} as const;diff --git a/packages/editor/package-lock.json b/packages/editor/package-lock.jsonindex 7403040fd..96763fdb7 100644--- a/packages/editor/package-lock.json+++ b/packages/editor/package-lock.json@@ -1258,1588 +1258,21 @@"spark-md5": "^3.0.2"}},- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/android-arm": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz",- "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/android-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz",- "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/android-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz",- "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/darwin-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz",- "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/darwin-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz",- "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/freebsd-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz",- "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/freebsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz",- "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-arm": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz",- "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz",- "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-ia32": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz",- "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-loong64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz",- "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-mips64el": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz",- "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-ppc64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz",- "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-riscv64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz",- "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-s390x": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz",- "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/linux-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz",- "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/netbsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz",- "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/openbsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz",- "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/sunos-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz",- "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/win32-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz",- "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/win32-ia32": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz",- "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@esbuild/win32-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz",- "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@types/node": {- "version": "16.18.126",- "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.126.tgz",- "integrity": "sha512-OTcgaiwfGFBKacvfwuHzzn1KLxH/er8mluiy8/uM3sGXHaRe73RrSIj01jow9t4kJEW633Ov+cOexXeiApTyAw==",- "dev": true,- "license": "MIT"- },- "node_modules/@notesnook-importer/enex/node_modules/@vitest/expect": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-0.29.8.tgz",- "integrity": "sha512-xlcVXn5I5oTq6NiZSY3ykyWixBxr5mG8HYtjvpgg6KaqHm0mvhX18xuwl5YGxIRNt/A5jidd7CWcNHrSvgaQqQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/spy": "0.29.8",- "@vitest/utils": "0.29.8",- "chai": "^4.3.7"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@vitest/runner": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-0.29.8.tgz",- "integrity": "sha512-FzdhnRDwEr/A3Oo1jtIk/B952BBvP32n1ObMEb23oEJNO+qO5cBet6M2XWIDQmA7BDKGKvmhUf2naXyp/2JEwQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/utils": "0.29.8",- "p-limit": "^4.0.0",- "pathe": "^1.1.0"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@vitest/spy": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-0.29.8.tgz",- "integrity": "sha512-VdjBe9w34vOMl5I5mYEzNX8inTxrZ+tYUVk9jxaZJmHFwmDFC/GV3KBFTA/JKswr3XHvZL+FE/yq5EVhb6pSAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyspy": "^1.0.2"- }- },- "node_modules/@notesnook-importer/enex/node_modules/@vitest/utils": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-0.29.8.tgz",- "integrity": "sha512-qGzuf3vrTbnoY+RjjVVIBYfuWMjn3UMUqyQtdGNZ6ZIIyte7B37exj6LaVkrZiUTvzSadVvO/tJm8AEgbGCBPg==",- "dev": true,- "license": "MIT",- "dependencies": {- "cli-truncate": "^3.1.0",- "diff": "^5.1.0",- "loupe": "^2.3.6",- "pretty-format": "^27.5.1"- }- },- "node_modules/@notesnook-importer/enex/node_modules/assertion-error": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",- "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- }- },- "node_modules/@notesnook-importer/enex/node_modules/chai": {- "version": "4.5.0",- "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz",- "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==",- "dev": true,- "license": "MIT",- "dependencies": {- "assertion-error": "^1.1.0",- "check-error": "^1.0.3",- "deep-eql": "^4.1.3",- "get-func-name": "^2.0.2",- "loupe": "^2.3.6",- "pathval": "^1.1.1",- "type-detect": "^4.1.0"- },- "engines": {- "node": ">=4"- }- },- "node_modules/@notesnook-importer/enex/node_modules/check-error": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz",- "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==",- "dev": true,- "license": "MIT",- "dependencies": {- "get-func-name": "^2.0.2"- },- "engines": {- "node": "*"- }- },- "node_modules/@notesnook-importer/enex/node_modules/debug": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/@notesnook-importer/enex/node_modules/deep-eql": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz",- "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==",- "dev": true,- "license": "MIT",- "dependencies": {- "type-detect": "^4.0.0"- },- "engines": {- "node": ">=6"- }- },- "node_modules/@notesnook-importer/enex/node_modules/esbuild": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz",- "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=12"- },- "optionalDependencies": {- "@esbuild/android-arm": "0.18.20",- "@esbuild/android-arm64": "0.18.20",- "@esbuild/android-x64": "0.18.20",- "@esbuild/darwin-arm64": "0.18.20",- "@esbuild/darwin-x64": "0.18.20",- "@esbuild/freebsd-arm64": "0.18.20",- "@esbuild/freebsd-x64": "0.18.20",- "@esbuild/linux-arm": "0.18.20",- "@esbuild/linux-arm64": "0.18.20",- "@esbuild/linux-ia32": "0.18.20",- "@esbuild/linux-loong64": "0.18.20",- "@esbuild/linux-mips64el": "0.18.20",- "@esbuild/linux-ppc64": "0.18.20",- "@esbuild/linux-riscv64": "0.18.20",- "@esbuild/linux-s390x": "0.18.20",- "@esbuild/linux-x64": "0.18.20",- "@esbuild/netbsd-x64": "0.18.20",- "@esbuild/openbsd-x64": "0.18.20",- "@esbuild/sunos-x64": "0.18.20",- "@esbuild/win32-arm64": "0.18.20",- "@esbuild/win32-ia32": "0.18.20",- "@esbuild/win32-x64": "0.18.20"- }- },- "node_modules/@notesnook-importer/enex/node_modules/loupe": {- "version": "2.3.7",- "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz",- "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==",- "dev": true,- "license": "MIT",- "dependencies": {- "get-func-name": "^2.0.1"- }- },- "node_modules/@notesnook-importer/enex/node_modules/p-limit": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz",- "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "yocto-queue": "^1.0.0"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@notesnook-importer/enex/node_modules/pathval": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",- "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- }- },- "node_modules/@notesnook-importer/enex/node_modules/rollup": {- "version": "3.29.5",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.5.tgz",- "integrity": "sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==",- "dev": true,- "license": "MIT",- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=14.18.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "fsevents": "~2.3.2"- }- },- "node_modules/@notesnook-importer/enex/node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/@notesnook-importer/enex/node_modules/tinypool": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.4.0.tgz",- "integrity": "sha512-2ksntHOKf893wSAH4z/+JbPpi92esw8Gn9N2deXX+B0EO92hexAVI9GIZZPx7P5aYo5KULfeOSt3kMOmSOy6uA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@notesnook-importer/enex/node_modules/tinyspy": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-1.1.1.tgz",- "integrity": "sha512-UVq5AXt/gQlti7oxoIg5oi/9r0WpF7DGEVwXgqWSMmyN16+e3tl5lIvTaOpJ3TAtu5xFzWccFRM4R5NaWHF+4g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@notesnook-importer/enex/node_modules/vite": {- "version": "4.5.14",- "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.14.tgz",- "integrity": "sha512-+v57oAaoYNnO3hIu5Z/tJRZjq5aHM2zDve9YZ8HngVHbhk66RStobhb1sqPMIPEleV6cNKYK4eGrAbE9Ulbl2g==",- "dev": true,- "license": "MIT",- "dependencies": {- "esbuild": "^0.18.10",- "postcss": "^8.4.27",- "rollup": "^3.27.1"- },- "bin": {- "vite": "bin/vite.js"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "funding": {- "url": "https://github.com/vitejs/vite?sponsor=1"- },- "optionalDependencies": {- "fsevents": "~2.3.2"- },- "peerDependencies": {- "@types/node": ">= 14",- "less": "*",- "lightningcss": "^1.21.0",- "sass": "*",- "stylus": "*",- "sugarss": "*",- "terser": "^5.4.0"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "less": {- "optional": true- },- "lightningcss": {- "optional": true- },- "sass": {- "optional": true- },- "stylus": {- "optional": true- },- "sugarss": {- "optional": true- },- "terser": {- "optional": true- }- }- },- "node_modules/@notesnook-importer/enex/node_modules/vite-node": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.29.8.tgz",- "integrity": "sha512-b6OtCXfk65L6SElVM20q5G546yu10/kNrhg08afEoWlFRJXFq9/6glsvSVY+aI6YeC1tu2TtAqI2jHEQmOmsFw==",- "dev": true,- "license": "MIT",- "dependencies": {- "cac": "^6.7.14",- "debug": "^4.3.4",- "mlly": "^1.1.0",- "pathe": "^1.1.0",- "picocolors": "^1.0.0",- "vite": "^3.0.0 || ^4.0.0"- },- "bin": {- "vite-node": "vite-node.mjs"- },- "engines": {- "node": ">=v14.16.0"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- }- },- "node_modules/@notesnook-importer/enex/node_modules/vitest": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.29.8.tgz",- "integrity": "sha512-JIAVi2GK5cvA6awGpH0HvH/gEG9PZ0a/WoxdiV3PmqK+3CjQMf8c+J/Vhv4mdZ2nRyXFw66sAg6qz7VNkaHfDQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/chai": "^4.3.4",- "@types/chai-subset": "^1.3.3",- "@types/node": "*",- "@vitest/expect": "0.29.8",- "@vitest/runner": "0.29.8",- "@vitest/spy": "0.29.8",- "@vitest/utils": "0.29.8",- "acorn": "^8.8.1",- "acorn-walk": "^8.2.0",- "cac": "^6.7.14",- "chai": "^4.3.7",- "debug": "^4.3.4",- "local-pkg": "^0.4.2",- "pathe": "^1.1.0",- "picocolors": "^1.0.0",- "source-map": "^0.6.1",- "std-env": "^3.3.1",- "strip-literal": "^1.0.0",- "tinybench": "^2.3.1",- "tinypool": "^0.4.0",- "tinyspy": "^1.0.2",- "vite": "^3.0.0 || ^4.0.0",- "vite-node": "0.29.8",- "why-is-node-running": "^2.2.2"- },- "bin": {- "vitest": "vitest.mjs"- },- "engines": {- "node": ">=v14.16.0"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- },- "peerDependencies": {- "@edge-runtime/vm": "*",- "@vitest/browser": "*",- "@vitest/ui": "*",- "happy-dom": "*",- "jsdom": "*",- "playwright": "*",- "safaridriver": "*",- "webdriverio": "*"- },- "peerDependenciesMeta": {- "@edge-runtime/vm": {- "optional": true- },- "@vitest/browser": {- "optional": true- },- "@vitest/ui": {- "optional": true- },- "happy-dom": {- "optional": true- },- "jsdom": {- "optional": true- },- "playwright": {- "optional": true- },- "safaridriver": {- "optional": true- },- "webdriverio": {- "optional": true- }- }- },- "node_modules/@notesnook-importer/storage": {- "version": "2.2.3",- "license": "GPL-3.0-or-later"- },- "node_modules/@notesnook-importer/storage/node_modules/@types/node": {- "version": "16.18.126",- "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.126.tgz",- "integrity": "sha512-OTcgaiwfGFBKacvfwuHzzn1KLxH/er8mluiy8/uM3sGXHaRe73RrSIj01jow9t4kJEW633Ov+cOexXeiApTyAw==",- "dev": true,- "license": "MIT"- },- "node_modules/@notesnook-importer/znel": {- "version": "2.2.3",- "license": "GPL-3.0-or-later",- "dependencies": {- "base64-js": "^1.5.1",- "css-select": "^5.1.0",- "dom-serializer": "^2.0.0",- "domhandler": "^5.0.3",- "domutils": "^3.0.1",- "htmlparser2": "^8.0.1",- "spark-md5": "^3.0.2"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/android-arm": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz",- "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/android-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz",- "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/android-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz",- "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/darwin-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz",- "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/darwin-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz",- "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/freebsd-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz",- "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/freebsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz",- "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-arm": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz",- "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz",- "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-ia32": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz",- "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-loong64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz",- "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-mips64el": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz",- "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-ppc64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz",- "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-riscv64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz",- "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-s390x": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz",- "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/linux-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz",- "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/netbsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz",- "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/openbsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz",- "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/sunos-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz",- "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/win32-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz",- "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/win32-ia32": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz",- "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@esbuild/win32-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz",- "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@types/node": {- "version": "16.18.126",- "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.126.tgz",- "integrity": "sha512-OTcgaiwfGFBKacvfwuHzzn1KLxH/er8mluiy8/uM3sGXHaRe73RrSIj01jow9t4kJEW633Ov+cOexXeiApTyAw==",- "dev": true,- "license": "MIT"- },- "node_modules/@notesnook-importer/znel/node_modules/@vitest/expect": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-0.29.8.tgz",- "integrity": "sha512-xlcVXn5I5oTq6NiZSY3ykyWixBxr5mG8HYtjvpgg6KaqHm0mvhX18xuwl5YGxIRNt/A5jidd7CWcNHrSvgaQqQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/spy": "0.29.8",- "@vitest/utils": "0.29.8",- "chai": "^4.3.7"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@vitest/runner": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-0.29.8.tgz",- "integrity": "sha512-FzdhnRDwEr/A3Oo1jtIk/B952BBvP32n1ObMEb23oEJNO+qO5cBet6M2XWIDQmA7BDKGKvmhUf2naXyp/2JEwQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/utils": "0.29.8",- "p-limit": "^4.0.0",- "pathe": "^1.1.0"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@vitest/spy": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-0.29.8.tgz",- "integrity": "sha512-VdjBe9w34vOMl5I5mYEzNX8inTxrZ+tYUVk9jxaZJmHFwmDFC/GV3KBFTA/JKswr3XHvZL+FE/yq5EVhb6pSAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyspy": "^1.0.2"- }- },- "node_modules/@notesnook-importer/znel/node_modules/@vitest/utils": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-0.29.8.tgz",- "integrity": "sha512-qGzuf3vrTbnoY+RjjVVIBYfuWMjn3UMUqyQtdGNZ6ZIIyte7B37exj6LaVkrZiUTvzSadVvO/tJm8AEgbGCBPg==",- "dev": true,- "license": "MIT",- "dependencies": {- "cli-truncate": "^3.1.0",- "diff": "^5.1.0",- "loupe": "^2.3.6",- "pretty-format": "^27.5.1"- }- },- "node_modules/@notesnook-importer/znel/node_modules/assertion-error": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",- "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- }- },- "node_modules/@notesnook-importer/znel/node_modules/chai": {- "version": "4.5.0",- "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz",- "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==",- "dev": true,- "license": "MIT",- "dependencies": {- "assertion-error": "^1.1.0",- "check-error": "^1.0.3",- "deep-eql": "^4.1.3",- "get-func-name": "^2.0.2",- "loupe": "^2.3.6",- "pathval": "^1.1.1",- "type-detect": "^4.1.0"- },- "engines": {- "node": ">=4"- }- },- "node_modules/@notesnook-importer/znel/node_modules/check-error": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz",- "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==",- "dev": true,- "license": "MIT",- "dependencies": {- "get-func-name": "^2.0.2"- },- "engines": {- "node": "*"- }- },- "node_modules/@notesnook-importer/znel/node_modules/debug": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/@notesnook-importer/znel/node_modules/deep-eql": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz",- "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==",- "dev": true,- "license": "MIT",- "dependencies": {- "type-detect": "^4.0.0"- },- "engines": {- "node": ">=6"- }- },- "node_modules/@notesnook-importer/znel/node_modules/esbuild": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz",- "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=12"- },- "optionalDependencies": {- "@esbuild/android-arm": "0.18.20",- "@esbuild/android-arm64": "0.18.20",- "@esbuild/android-x64": "0.18.20",- "@esbuild/darwin-arm64": "0.18.20",- "@esbuild/darwin-x64": "0.18.20",- "@esbuild/freebsd-arm64": "0.18.20",- "@esbuild/freebsd-x64": "0.18.20",- "@esbuild/linux-arm": "0.18.20",- "@esbuild/linux-arm64": "0.18.20",- "@esbuild/linux-ia32": "0.18.20",- "@esbuild/linux-loong64": "0.18.20",- "@esbuild/linux-mips64el": "0.18.20",- "@esbuild/linux-ppc64": "0.18.20",- "@esbuild/linux-riscv64": "0.18.20",- "@esbuild/linux-s390x": "0.18.20",- "@esbuild/linux-x64": "0.18.20",- "@esbuild/netbsd-x64": "0.18.20",- "@esbuild/openbsd-x64": "0.18.20",- "@esbuild/sunos-x64": "0.18.20",- "@esbuild/win32-arm64": "0.18.20",- "@esbuild/win32-ia32": "0.18.20",- "@esbuild/win32-x64": "0.18.20"- }- },- "node_modules/@notesnook-importer/znel/node_modules/loupe": {- "version": "2.3.7",- "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz",- "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==",- "dev": true,- "license": "MIT",- "dependencies": {- "get-func-name": "^2.0.1"- }- },- "node_modules/@notesnook-importer/znel/node_modules/p-limit": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz",- "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "yocto-queue": "^1.0.0"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@notesnook-importer/znel/node_modules/pathval": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",- "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- }- },- "node_modules/@notesnook-importer/znel/node_modules/rollup": {- "version": "3.29.5",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.5.tgz",- "integrity": "sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==",- "dev": true,- "license": "MIT",- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=14.18.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "fsevents": "~2.3.2"- }- },- "node_modules/@notesnook-importer/znel/node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/@notesnook-importer/znel/node_modules/tinypool": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.4.0.tgz",- "integrity": "sha512-2ksntHOKf893wSAH4z/+JbPpi92esw8Gn9N2deXX+B0EO92hexAVI9GIZZPx7P5aYo5KULfeOSt3kMOmSOy6uA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@notesnook-importer/znel/node_modules/tinyspy": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-1.1.1.tgz",- "integrity": "sha512-UVq5AXt/gQlti7oxoIg5oi/9r0WpF7DGEVwXgqWSMmyN16+e3tl5lIvTaOpJ3TAtu5xFzWccFRM4R5NaWHF+4g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@notesnook-importer/znel/node_modules/vite": {- "version": "4.5.14",- "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.14.tgz",- "integrity": "sha512-+v57oAaoYNnO3hIu5Z/tJRZjq5aHM2zDve9YZ8HngVHbhk66RStobhb1sqPMIPEleV6cNKYK4eGrAbE9Ulbl2g==",- "dev": true,- "license": "MIT",- "dependencies": {- "esbuild": "^0.18.10",- "postcss": "^8.4.27",- "rollup": "^3.27.1"- },- "bin": {- "vite": "bin/vite.js"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "funding": {- "url": "https://github.com/vitejs/vite?sponsor=1"- },- "optionalDependencies": {- "fsevents": "~2.3.2"- },- "peerDependencies": {- "@types/node": ">= 14",- "less": "*",- "lightningcss": "^1.21.0",- "sass": "*",- "stylus": "*",- "sugarss": "*",- "terser": "^5.4.0"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "less": {- "optional": true- },- "lightningcss": {- "optional": true- },- "sass": {- "optional": true- },- "stylus": {- "optional": true- },- "sugarss": {- "optional": true- },- "terser": {- "optional": true- }- }- },- "node_modules/@notesnook-importer/znel/node_modules/vite-node": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.29.8.tgz",- "integrity": "sha512-b6OtCXfk65L6SElVM20q5G546yu10/kNrhg08afEoWlFRJXFq9/6glsvSVY+aI6YeC1tu2TtAqI2jHEQmOmsFw==",- "dev": true,- "license": "MIT",- "dependencies": {- "cac": "^6.7.14",- "debug": "^4.3.4",- "mlly": "^1.1.0",- "pathe": "^1.1.0",- "picocolors": "^1.0.0",- "vite": "^3.0.0 || ^4.0.0"- },- "bin": {- "vite-node": "vite-node.mjs"- },- "engines": {- "node": ">=v14.16.0"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- }+ "node_modules/@notesnook-importer/storage": {+ "version": "2.2.3",+ "license": "GPL-3.0-or-later"},- "node_modules/@notesnook-importer/znel/node_modules/vitest": {- "version": "0.29.8",- "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.29.8.tgz",- "integrity": "sha512-JIAVi2GK5cvA6awGpH0HvH/gEG9PZ0a/WoxdiV3PmqK+3CjQMf8c+J/Vhv4mdZ2nRyXFw66sAg6qz7VNkaHfDQ==",- "dev": true,- "license": "MIT",+ "node_modules/@notesnook-importer/znel": {+ "version": "2.2.3",+ "license": "GPL-3.0-or-later","dependencies": {- "@types/chai": "^4.3.4",- "@types/chai-subset": "^1.3.3",- "@types/node": "*",- "@vitest/expect": "0.29.8",- "@vitest/runner": "0.29.8",- "@vitest/spy": "0.29.8",- "@vitest/utils": "0.29.8",- "acorn": "^8.8.1",- "acorn-walk": "^8.2.0",- "cac": "^6.7.14",- "chai": "^4.3.7",- "debug": "^4.3.4",- "local-pkg": "^0.4.2",- "pathe": "^1.1.0",- "picocolors": "^1.0.0",- "source-map": "^0.6.1",- "std-env": "^3.3.1",- "strip-literal": "^1.0.0",- "tinybench": "^2.3.1",- "tinypool": "^0.4.0",- "tinyspy": "^1.0.2",- "vite": "^3.0.0 || ^4.0.0",- "vite-node": "0.29.8",- "why-is-node-running": "^2.2.2"- },- "bin": {- "vitest": "vitest.mjs"- },- "engines": {- "node": ">=v14.16.0"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- },- "peerDependencies": {- "@edge-runtime/vm": "*",- "@vitest/browser": "*",- "@vitest/ui": "*",- "happy-dom": "*",- "jsdom": "*",- "playwright": "*",- "safaridriver": "*",- "webdriverio": "*"- },- "peerDependenciesMeta": {- "@edge-runtime/vm": {- "optional": true- },- "@vitest/browser": {- "optional": true- },- "@vitest/ui": {- "optional": true- },- "happy-dom": {- "optional": true- },- "jsdom": {- "optional": true- },- "playwright": {- "optional": true- },- "safaridriver": {- "optional": true- },- "webdriverio": {- "optional": true- }+ "base64-js": "^1.5.1",+ "css-select": "^5.1.0",+ "dom-serializer": "^2.0.0",+ "domhandler": "^5.0.3",+ "domutils": "^3.0.1",+ "htmlparser2": "^8.0.1",+ "spark-md5": "^3.0.2"}},"node_modules/@notesnook/common": {@@ -3842,23 +2275,6 @@"dev": true,"license": "MIT"},- "node_modules/@types/chai": {- "version": "4.3.20",- "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.20.tgz",- "integrity": "sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/chai-subset": {- "version": "1.3.6",- "resolved": "https://registry.npmjs.org/@types/chai-subset/-/chai-subset-1.3.6.tgz",- "integrity": "sha512-m8lERkkQj+uek18hXOZuec3W/fCRTrU4hrnXjH3qhHy96ytuPaPiWGgu7sJb7tZxZonO75vYAjCvpe/e4VUwRw==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/chai": "<5.2.0"- }- },"node_modules/@types/debug": {"version": "4.1.12","resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",@@ -4707,77 +3123,6 @@"node": ">=6"}},- "node_modules/cli-truncate": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz",- "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==",- "dev": true,- "license": "MIT",- "dependencies": {- "slice-ansi": "^5.0.0",- "string-width": "^5.0.0"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/cli-truncate/node_modules/ansi-regex": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",- "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"- }- },- "node_modules/cli-truncate/node_modules/emoji-regex": {- "version": "9.2.2",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",- "dev": true,- "license": "MIT"- },- "node_modules/cli-truncate/node_modules/string-width": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",- "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "eastasianwidth": "^0.2.0",- "emoji-regex": "^9.2.2",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/cli-truncate/node_modules/strip-ansi": {- "version": "7.1.2",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",- "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^6.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"- }- },"node_modules/clipboard-polyfill": {"version": "4.1.0","resolved": "https://registry.npmjs.org/clipboard-polyfill/-/clipboard-polyfill-4.1.0.tgz",@@ -4875,13 +3220,6 @@"dev": true,"license": "MIT"},- "node_modules/confbox": {- "version": "0.1.8",- "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",- "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",- "dev": true,- "license": "MIT"- },"node_modules/convert-source-map": {"version": "1.9.0","resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",@@ -5167,13 +3505,6 @@"url": "https://github.com/fb55/domutils?sponsor=1"}},- "node_modules/eastasianwidth": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",- "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",- "dev": true,- "license": "MIT"- },"node_modules/ecc-jsbn": {"version": "0.1.2","resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",@@ -5585,16 +3916,6 @@"node": "6.* || 8.* || >= 10.*"}},- "node_modules/get-func-name": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",- "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- }- },"node_modules/get-package-type": {"version": "0.1.0","resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",@@ -6651,19 +4972,6 @@"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.1.3.tgz","integrity": "sha512-auMesunaJ8yfkHvK4gfg1K0SaKX/6Wn9g2Aac/NwX+l5VdmFZzo/hdPGxEOETj+ryRa4/fiOPjeeKURSAJx1sg=="},- "node_modules/local-pkg": {- "version": "0.4.3",- "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.3.tgz",- "integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- }- },"node_modules/locate-path": {"version": "5.0.0","resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",@@ -7808,26 +6116,6 @@"node": ">=10"}},- "node_modules/mlly": {- "version": "1.8.0",- "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz",- "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "acorn": "^8.15.0",- "pathe": "^2.0.3",- "pkg-types": "^1.3.1",- "ufo": "^1.6.1"- }- },- "node_modules/mlly/node_modules/pathe": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",- "dev": true,- "license": "MIT"- },"node_modules/mri": {"version": "1.2.0","resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",@@ -8308,25 +6596,6 @@"node": ">=8"}},- "node_modules/pkg-types": {- "version": "1.3.1",- "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",- "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "confbox": "^0.1.8",- "mlly": "^1.7.4",- "pathe": "^2.0.1"- }- },- "node_modules/pkg-types/node_modules/pathe": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",- "dev": true,- "license": "MIT"- },"node_modules/postcss": {"version": "8.5.1","resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.1.tgz",@@ -8373,41 +6642,6 @@"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"}},- "node_modules/pretty-format": {- "version": "27.5.1",- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",- "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1",- "ansi-styles": "^5.0.0",- "react-is": "^17.0.1"- },- "engines": {- "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"- }- },- "node_modules/pretty-format/node_modules/ansi-styles": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/pretty-format/node_modules/react-is": {- "version": "17.0.2",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",- "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",- "dev": true,- "license": "MIT"- },"node_modules/prism-themes": {"version": "1.9.0","resolved": "https://registry.npmjs.org/prism-themes/-/prism-themes-1.9.0.tgz",@@ -9272,49 +7506,6 @@"react": ">=16.8.0"}},- "node_modules/slice-ansi": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz",- "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^6.0.0",- "is-fullwidth-code-point": "^4.0.0"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/slice-ansi?sponsor=1"- }- },- "node_modules/slice-ansi/node_modules/ansi-styles": {- "version": "6.2.3",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",- "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",- "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/source-map": {"version": "0.5.7","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",@@ -9529,19 +7720,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/strip-literal": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-1.3.0.tgz",- "integrity": "sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==",- "dev": true,- "license": "MIT",- "dependencies": {- "acorn": "^8.10.0"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- }- },"node_modules/styled-system": {"version": "5.1.5","resolved": "https://registry.npmjs.org/styled-system/-/styled-system-5.1.5.tgz",@@ -11832,16 +10010,6 @@"dev": true,"license": "Unlicense"},- "node_modules/type-detect": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz",- "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },"node_modules/type-fest": {"version": "0.8.1","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz",@@ -11881,13 +10049,6 @@"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz","integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A=="},- "node_modules/ufo": {- "version": "1.6.2",- "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.2.tgz",- "integrity": "sha512-heMioaxBcG9+Znsda5Q8sQbWnLJSl98AFDXTO80wELWEzX3hordXsTdxrIfMQoO9IY1MEnoGoPjpoKpMj+Yx0Q==",- "dev": true,- "license": "MIT"- },"node_modules/undefsafe": {"version": "2.0.5","resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz",@@ -12639,19 +10800,6 @@"node": ">=6"}},- "node_modules/yocto-queue": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz",- "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12.20"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/zod": {"version": "3.24.1","resolved": "https://registry.npmjs.org/zod/-/zod-3.24.1.tgz",diff --git a/packages/editor/src/extensions/table/actions.ts b/packages/editor/src/extensions/table/actions.tsindex 07f07a066..97715eafe 100644--- a/packages/editor/src/extensions/table/actions.ts+++ b/packages/editor/src/extensions/table/actions.ts@@ -24,6 +24,7 @@ import { selectedRect, TableRect } from "./prosemirror-tables/commands.js";import { saveAs } from "file-saver";import { unparse, parse } from "papaparse";import { hasPermission } from "../../types.js";+import { useToolbarStore } from "../../toolbar/stores/toolbar-store.js";type TableCell = {cell: Node;@@ -244,8 +245,12 @@ function exportToCSV(editor?: Editor) {node.forEach((cell) => row.push(cell.textContent));rows.push(row);});-- saveAs(new Blob([new TextEncoder().encode(unparse(rows))]), "table.csv");+ const csv = unparse(rows);+ if (useToolbarStore.getState().isMobile) {+ editor.storage.downloadCsvTable?.(csv);+ } else {+ saveAs(new Blob([new TextEncoder().encode(csv)]), "table.csv");+ }}export {diff --git a/packages/editor/src/index.ts b/packages/editor/src/index.tsindex 8274b646d..1f6bde2ef 100644--- a/packages/editor/src/index.ts+++ b/packages/editor/src/index.ts@@ -98,6 +98,7 @@ interface TiptapStorage {openAttachmentPicker?: (type: AttachmentType) => void;previewAttachment?: (attachment: Attachment) => void;copyToClipboard?: (text: string, html?: string) => void;+ downloadCsvTable?: (csv: string) => void;createInternalLink?: (attributes?: LinkAttributes) => Promise<LinkAttributes | undefined>;@@ -152,7 +153,7 @@ const useTiptap = (dayFormat,copyToClipboard,createInternalLink,-+ downloadCsvTable,doubleSpacedLines = true,isMobile,downloadOptions,@@ -386,6 +387,7 @@ const useTiptap = (editor.storage.copyToClipboard = copyToClipboard;editor.storage.createInternalLink = createInternalLink;editor.storage.getAttachmentData = getAttachmentData;+ editor.storage.downloadCsvTable = downloadCsvTable;if (onBeforeCreate) onBeforeCreate({ editor });},diff --git a/packages/editor/src/toolbar/tools/table.tsx b/packages/editor/src/toolbar/tools/table.tsxindex c5a18ee21..e9088e35f 100644--- a/packages/editor/src/toolbar/tools/table.tsx+++ b/packages/editor/src/toolbar/tools/table.tsx@@ -62,7 +62,8 @@ export function TableSettings(props: ToolProps) {"rowProperties","deleteRow","deleteColumn",- "deleteTable"+ "deleteTable",+ "exportToCSV"]}/>);