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
global: fix @notesnook/core direct paths
Abdullah Atta44e4722de226
diff --git a/apps/mobile/app/common/database/index.js b/apps/mobile/app/common/database/index.jsindex b64a6853a..6da3587e6 100644--- a/apps/mobile/app/common/database/index.js+++ b/apps/mobile/app/common/database/index.js@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/import { database } from "@notesnook/common";-import { initalize, logger as dbLogger } from "@notesnook/core/logger";+import { initalize, logger as dbLogger } from "@notesnook/core/dist/logger";import { Platform } from "react-native";import { MMKVLoader } from "react-native-mmkv-storage";import filesystem from "../filesystem";diff --git a/apps/mobile/app/common/filesystem/download-attachment.js b/apps/mobile/app/common/filesystem/download-attachment.jsindex c0ca928b8..bbafffb47 100644--- a/apps/mobile/app/common/filesystem/download-attachment.js+++ b/apps/mobile/app/common/filesystem/download-attachment.js@@ -22,7 +22,7 @@ import {getFileNameWithExtension,isImage,isDocument-} from "@notesnook/core/utils/filename";+} from "@notesnook/core/dist/utils/filename";import React from "react";import { Platform } from "react-native";import * as ScopedStorage from "react-native-scoped-storage";diff --git a/apps/mobile/app/common/filesystem/download.js b/apps/mobile/app/common/filesystem/download.jsindex 9a3710592..1f8323ca5 100644--- a/apps/mobile/app/common/filesystem/download.js+++ b/apps/mobile/app/common/filesystem/download.js@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import hosts from "@notesnook/core/utils/constants";+import hosts from "@notesnook/core/dist/utils/constants";import NetInfo from "@react-native-community/netinfo";import RNFetchBlob from "react-native-blob-util";import { ToastEvent } from "../../services/event-manager";diff --git a/apps/mobile/app/common/filesystem/upload.js b/apps/mobile/app/common/filesystem/upload.jsindex 129999367..9fa89f877 100644--- a/apps/mobile/app/common/filesystem/upload.js+++ b/apps/mobile/app/common/filesystem/upload.js@@ -21,7 +21,7 @@ import RNFetchBlob from "react-native-blob-util";import { useAttachmentStore } from "../../stores/use-attachment-store";import { DatabaseLogger, db } from "../database";import { cacheDir } from "./utils";-import { isImage, isDocument } from "@notesnook/core/utils/filename";+import { isImage, isDocument } from "@notesnook/core/dist/utils/filename";import { Platform } from "react-native";import { IOS_APPGROUPID } from "../../utils/constants";diff --git a/apps/mobile/app/components/attachments/index.js b/apps/mobile/app/components/attachments/index.jsindex d65b3bdc7..634d48dbe 100644--- a/apps/mobile/app/components/attachments/index.js+++ b/apps/mobile/app/components/attachments/index.js@@ -40,7 +40,7 @@ import {isDocument,isImage,isVideo-} from "@notesnook/core/utils/filename";+} from "@notesnook/core/dist/utils/filename";import { useSettingStore } from "../../stores/use-setting-store";import { FlashList } from "react-native-actions-sheet/dist/src/views/FlashList";diff --git a/apps/mobile/app/components/image-preview/index.js b/apps/mobile/app/components/image-preview/index.jsindex 7a65ef2a9..73bbe7c00 100644--- a/apps/mobile/app/components/image-preview/index.js+++ b/apps/mobile/app/components/image-preview/index.js@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import Sodium from "@ammarahmed/react-native-sodium";-import dataurl from "@notesnook/core/utils/dataurl";+import dataurl from "@notesnook/core/dist/utils/dataurl";import { useThemeColors } from "@notesnook/theme";import React, { useEffect, useState } from "react";import { Platform, View } from "react-native";diff --git a/apps/mobile/app/components/list-items/note/index.js b/apps/mobile/app/components/list-items/note/index.jsindex f8136d89a..1af0fbccf 100644--- a/apps/mobile/app/components/list-items/note/index.js+++ b/apps/mobile/app/components/list-items/note/index.js@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { getUpcomingReminder } from "@notesnook/core/collections/reminders";+import { getUpcomingReminder } from "@notesnook/core/dist/collections/reminders";import { decode, EntityLevel } from "entities";import React from "react";import { View } from "react-native";diff --git a/apps/mobile/app/components/sheets/migrate/index.tsx b/apps/mobile/app/components/sheets/migrate/index.tsxindex 8ebdfb21a..f24c8d724 100644--- a/apps/mobile/app/components/sheets/migrate/index.tsx+++ b/apps/mobile/app/components/sheets/migrate/index.tsx@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { EVENTS } from "@notesnook/core/common";+import { EVENTS } from "@notesnook/core/dist/common";import React, { useCallback, useEffect, useState } from "react";import { Platform, View } from "react-native";import { db } from "../../../common/database";diff --git a/apps/mobile/app/components/sheets/restore-data/index.js b/apps/mobile/app/components/sheets/restore-data/index.jsindex 99f50d8ce..86d3fb88c 100644--- a/apps/mobile/app/components/sheets/restore-data/index.js+++ b/apps/mobile/app/components/sheets/restore-data/index.js@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { EVENTS } from "@notesnook/core/common";+import { EVENTS } from "@notesnook/core/dist/common";import React, { useCallback, useEffect, useRef, useState } from "react";import { ActivityIndicator, Platform, View } from "react-native";import { FlatList } from "react-native-actions-sheet";@@ -377,7 +377,10 @@ const RestoreDataComponent = ({ close, setRestoring, restoring }) => {height: 100}}>- <ActivityIndicator color={colors.primary.accent} size={SIZE.lg} />+ <ActivityIndicator+ color={colors.primary.accent}+ size={SIZE.lg}+ /></View>) : (<View@@ -434,7 +437,9 @@ const RestoreDataComponent = ({ close, setRestoring, restoring }) => {</Paragraph></>) : (- <Paragraph color={colors.secondary.paragraph}>No backups found</Paragraph>+ <Paragraph color={colors.secondary.paragraph}>+ No backups found+ </Paragraph>)}</View>)diff --git a/apps/mobile/app/components/sheets/topic-sheet/index.tsx b/apps/mobile/app/components/sheets/topic-sheet/index.tsxindex b96f48735..1eec5f3cd 100644--- a/apps/mobile/app/components/sheets/topic-sheet/index.tsx+++ b/apps/mobile/app/components/sheets/topic-sheet/index.tsx@@ -54,7 +54,7 @@ import {import { normalize, SIZE } from "../../../utils/size";import { GroupHeader, NotebookType, TopicType } from "../../../utils/types";-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import Config from "react-native-config";import Icon from "react-native-vector-icons/MaterialCommunityIcons";import { notesnook } from "../../../../e2e/test.ids";diff --git a/apps/mobile/app/components/ui/reminder-time/index.tsx b/apps/mobile/app/components/ui/reminder-time/index.tsxindex 4e9d8d061..4c7506d31 100644--- a/apps/mobile/app/components/ui/reminder-time/index.tsx+++ b/apps/mobile/app/components/ui/reminder-time/index.tsx@@ -16,7 +16,7 @@ GNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { isReminderActive } from "@notesnook/core/collections/reminders";+import { isReminderActive } from "@notesnook/core/dist/collections/reminders";import React from "react";import { ViewStyle } from "react-native";diff --git a/apps/mobile/app/hooks/use-app-events.js b/apps/mobile/app/hooks/use-app-events.jsindex f7bdc441e..22ac94e8d 100644--- a/apps/mobile/app/hooks/use-app-events.js+++ b/apps/mobile/app/hooks/use-app-events.js@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { EV, EVENTS, SYNC_CHECK_IDS } from "@notesnook/core/common";+import { EV, EVENTS, SYNC_CHECK_IDS } from "@notesnook/core/dist/common";import notifee from "@notifee/react-native";import NetInfo from "@react-native-community/netinfo";import React, { useCallback, useEffect, useRef } from "react";diff --git a/apps/mobile/app/hooks/use-sync-progress.ts b/apps/mobile/app/hooks/use-sync-progress.tsindex 1fa078a93..912a5a4b2 100644--- a/apps/mobile/app/hooks/use-sync-progress.ts+++ b/apps/mobile/app/hooks/use-sync-progress.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { EVENTS } from "@notesnook/core/common";+import { EVENTS } from "@notesnook/core/dist/common";import { useCallback, useEffect, useState } from "react";import { db } from "../common/database";diff --git a/apps/mobile/app/screens/editor/index.tsx b/apps/mobile/app/screens/editor/index.tsxindex d45e1fb45..db32689f1 100755--- a/apps/mobile/app/screens/editor/index.tsx+++ b/apps/mobile/app/screens/editor/index.tsx@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*//* eslint-disable @typescript-eslint/no-var-requires */-import { EV, EVENTS } from "@notesnook/core/common";+import { EV, EVENTS } from "@notesnook/core/dist/common";import React, {forwardRef,useCallback,diff --git a/apps/mobile/app/screens/editor/tiptap/picker.js b/apps/mobile/app/screens/editor/tiptap/picker.jsindex 5f0289a55..0f74301b5 100644--- a/apps/mobile/app/screens/editor/tiptap/picker.js+++ b/apps/mobile/app/screens/editor/tiptap/picker.js@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import Sodium from "@ammarahmed/react-native-sodium";-import { isImage } from "@notesnook/core/utils/filename";+import { isImage } from "@notesnook/core/dist/utils/filename";import { Platform } from "react-native";import RNFetchBlob from "react-native-blob-util";import DocumentPicker from "react-native-document-picker";diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.tsindex 0c34c6cae..f4a584e8f 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { EVENTS } from "@notesnook/core/common";+import { EVENTS } from "@notesnook/core/dist/common";import { useThemeEngineStore } from "@notesnook/theme";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import WebView from "react-native-webview";diff --git a/apps/mobile/app/screens/notebook/index.tsx b/apps/mobile/app/screens/notebook/index.tsxindex 371318796..e861b02bf 100644--- a/apps/mobile/app/screens/notebook/index.tsx+++ b/apps/mobile/app/screens/notebook/index.tsx@@ -16,7 +16,7 @@ GNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import React, { useEffect, useRef, useState } from "react";import { db } from "../../common/database";import DelayLayout from "../../components/delay-layout";diff --git a/apps/mobile/app/screens/notes/colored.tsx b/apps/mobile/app/screens/notes/colored.tsxindex e74655cf0..1255725bb 100644--- a/apps/mobile/app/screens/notes/colored.tsx+++ b/apps/mobile/app/screens/notes/colored.tsx@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import React from "react";import NotesPage, { PLACEHOLDER_DATA } from ".";import { db } from "../../common/database";diff --git a/apps/mobile/app/screens/notes/monographs.tsx b/apps/mobile/app/screens/notes/monographs.tsxindex 823f6e519..601704fac 100644--- a/apps/mobile/app/screens/notes/monographs.tsx+++ b/apps/mobile/app/screens/notes/monographs.tsx@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import React from "react";import NotesPage, { PLACEHOLDER_DATA } from ".";import { db } from "../../common/database";diff --git a/apps/mobile/app/screens/notes/tagged.tsx b/apps/mobile/app/screens/notes/tagged.tsxindex a9b65ff8e..069c1aadd 100644--- a/apps/mobile/app/screens/notes/tagged.tsx+++ b/apps/mobile/app/screens/notes/tagged.tsx@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import React from "react";import NotesPage, { PLACEHOLDER_DATA } from ".";import { db } from "../../common/database";diff --git a/apps/mobile/app/screens/notes/topic-notes.tsx b/apps/mobile/app/screens/notes/topic-notes.tsxindex 433ada825..75f7d03c4 100644--- a/apps/mobile/app/screens/notes/topic-notes.tsx+++ b/apps/mobile/app/screens/notes/topic-notes.tsx@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import React from "react";import NotesPage, { PLACEHOLDER_DATA } from ".";import { db } from "../../common/database";diff --git a/apps/mobile/app/screens/settings/debug.tsx b/apps/mobile/app/screens/settings/debug.tsxindex b154c0692..d47ddba7c 100644--- a/apps/mobile/app/screens/settings/debug.tsx+++ b/apps/mobile/app/screens/settings/debug.tsx@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import Clipboard from "@react-native-clipboard/clipboard";import { LogMessage } from "@notesnook/logger";-import { format, LogLevel, logManager } from "@notesnook/core/logger";+import { format, LogLevel, logManager } from "@notesnook/core/dist/logger";import React, { useEffect, useRef, useState } from "react";import { FlatList, Platform, TouchableOpacity, View } from "react-native";import * as ScopedStorage from "react-native-scoped-storage";diff --git a/apps/mobile/app/screens/settings/picker/pickers.jsx b/apps/mobile/app/screens/settings/picker/pickers.jsxindex c2b03512f..29b7e7e73 100644--- a/apps/mobile/app/screens/settings/picker/pickers.jsx+++ b/apps/mobile/app/screens/settings/picker/pickers.jsx@@ -24,7 +24,7 @@ import { useSettingStore } from "../../../stores/use-setting-store";import { MenuItemsList } from "../../../utils/menu-items";import { createSettingsPicker } from ".";import { getFontById, getFonts } from "@notesnook/editor/dist/utils/font";-import { DATE_FORMATS, TIME_FORMATS } from "@notesnook/core/common";+import { DATE_FORMATS, TIME_FORMATS } from "@notesnook/core/dist/common";import dayjs from "dayjs";export const FontPicker = createSettingsPicker({diff --git a/apps/mobile/app/services/event-manager.ts b/apps/mobile/app/services/event-manager.tsindex 6d0bf721b..a6035e052 100644--- a/apps/mobile/app/services/event-manager.ts+++ b/apps/mobile/app/services/event-manager.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import EventManager from "@notesnook/core/utils/event-manager";+import EventManager from "@notesnook/core/dist/utils/event-manager";import Clipboard from "@react-native-clipboard/clipboard";import { RefObject } from "react";import { ActionSheetRef } from "react-native-actions-sheet";diff --git a/apps/mobile/app/services/premium.js b/apps/mobile/app/services/premium.jsindex 13a7a4e15..a6ea7176f 100644--- a/apps/mobile/app/services/premium.js+++ b/apps/mobile/app/services/premium.js@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { CHECK_IDS } from "@notesnook/core/common";+import { CHECK_IDS } from "@notesnook/core/dist/common";import React from "react";import { Platform } from "react-native";import Config from "react-native-config";diff --git a/apps/mobile/app/services/sync.js b/apps/mobile/app/services/sync.jsindex 21243a6a1..94884d771 100644--- a/apps/mobile/app/services/sync.js+++ b/apps/mobile/app/services/sync.js@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { EVENTS } from "@notesnook/core/common";+import { EVENTS } from "@notesnook/core/dist/common";import NetInfo from "@react-native-community/netinfo";import { db } from "../common/database";import { DatabaseLogger } from "../common/database/index";diff --git a/apps/mobile/app/stores/use-favorite-store.ts b/apps/mobile/app/stores/use-favorite-store.tsindex b0e3af75f..7836c955b 100644--- a/apps/mobile/app/stores/use-favorite-store.ts+++ b/apps/mobile/app/stores/use-favorite-store.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import create, { State } from "zustand";import { db } from "../common/database";import { NoteType } from "../utils/types";diff --git a/apps/mobile/app/stores/use-notebook-store.ts b/apps/mobile/app/stores/use-notebook-store.tsindex ba3df45f3..bf253a213 100644--- a/apps/mobile/app/stores/use-notebook-store.ts+++ b/apps/mobile/app/stores/use-notebook-store.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import create, { State } from "zustand";import { db } from "../common/database";import { NotebookType } from "../utils/types";diff --git a/apps/mobile/app/stores/use-notes-store.ts b/apps/mobile/app/stores/use-notes-store.tsindex db90acde0..b0e7b8eb9 100644--- a/apps/mobile/app/stores/use-notes-store.ts+++ b/apps/mobile/app/stores/use-notes-store.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import create, { State } from "zustand";import { db } from "../common/database";import { NoteType } from "../utils/types";diff --git a/apps/mobile/app/stores/use-reminder-store.ts b/apps/mobile/app/stores/use-reminder-store.tsindex 8830abfa0..45d77fd2c 100644--- a/apps/mobile/app/stores/use-reminder-store.ts+++ b/apps/mobile/app/stores/use-reminder-store.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupReminders } from "@notesnook/core/utils/grouping";+import { groupReminders } from "@notesnook/core/dist/utils/grouping";import create, { State } from "zustand";import { db } from "../common/database";import { Reminder } from "../services/notifications";diff --git a/apps/mobile/app/stores/use-tag-store.ts b/apps/mobile/app/stores/use-tag-store.tsindex 2e2f4bdf2..88cc38ab3 100644--- a/apps/mobile/app/stores/use-tag-store.ts+++ b/apps/mobile/app/stores/use-tag-store.ts@@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import "@notesnook/core/types";-import { groupArray } from "@notesnook/core/utils/grouping";+import "@notesnook/core/dist/types";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import create, { State } from "zustand";import { db } from "../common/database";import { TagType } from "../utils/types";diff --git a/apps/mobile/app/stores/use-trash-store.ts b/apps/mobile/app/stores/use-trash-store.tsindex 78b953666..8e5defd64 100644--- a/apps/mobile/app/stores/use-trash-store.ts+++ b/apps/mobile/app/stores/use-trash-store.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import create, { State } from "zustand";import { db } from "../common/database";import { TrashType } from "../utils/types";diff --git a/apps/mobile/app/utils/note-bundle.js b/apps/mobile/app/utils/note-bundle.jsindex 6cb52f355..3a41395c4 100644--- a/apps/mobile/app/utils/note-bundle.js+++ b/apps/mobile/app/utils/note-bundle.js@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import Sodium from "@ammarahmed/react-native-sodium";-import { isImage } from "@notesnook/core/utils/filename";+import { isImage } from "@notesnook/core/dist/utils/filename";import { Platform } from "react-native";import RNFetchBlob from "react-native-blob-util";import { db } from "../common/database";diff --git a/apps/mobile/share/share.js b/apps/mobile/share/share.jsindex 4a228c76c..9cf982d17 100644--- a/apps/mobile/share/share.js+++ b/apps/mobile/share/share.js@@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import ShareExtension from "@ammarahmed/react-native-share-extension";import { getPreviewData } from "@flyerhq/react-native-link-preview";import { formatBytes } from "@notesnook/common";-import { isImage } from "@notesnook/core/utils/filename";-import { parseHTML } from "@notesnook/core/utils/html-parser";+import { isImage } from "@notesnook/core/dist/utils/filename";+import { parseHTML } from "@notesnook/core/dist/utils/html-parser";import React, { useCallback, useEffect, useRef, useState } from "react";import {ActivityIndicator,diff --git a/apps/web/__e2e__/models/reminder-item.model.ts b/apps/web/__e2e__/models/reminder-item.model.tsindex f0ce606f3..1a327a253 100644--- a/apps/web/__e2e__/models/reminder-item.model.ts+++ b/apps/web/__e2e__/models/reminder-item.model.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { Reminder } from "@notesnook/core/collections/reminders";+import { Reminder } from "@notesnook/core/dist/collections/reminders";import { Locator } from "@playwright/test";import { getTestId } from "../utils";import { BaseItemModel } from "./base-item.model";diff --git a/apps/web/__e2e__/models/reminders-view.model.ts b/apps/web/__e2e__/models/reminders-view.model.tsindex 4585b7abf..baa0bba65 100644--- a/apps/web/__e2e__/models/reminders-view.model.ts+++ b/apps/web/__e2e__/models/reminders-view.model.ts@@ -21,7 +21,7 @@ import { Locator, Page } from "@playwright/test";import { getTestId } from "../utils";import { BaseViewModel } from "./base-view.model";import { ReminderItemModel } from "./reminder-item.model";-import { Reminder } from "@notesnook/core/collections/reminders";+import { Reminder } from "@notesnook/core/dist/collections/reminders";import { fillReminderDialog } from "./utils";export class RemindersViewModel extends BaseViewModel {diff --git a/apps/web/__e2e__/models/utils.ts b/apps/web/__e2e__/models/utils.tsindex f85f0e73c..204abf596 100644--- a/apps/web/__e2e__/models/utils.ts+++ b/apps/web/__e2e__/models/utils.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { Reminder } from "@notesnook/core/collections/reminders";+import { Reminder } from "@notesnook/core/dist/collections/reminders";import { Locator, Page } from "@playwright/test";import { getTestId } from "../utils";import { Item, Notebook } from "./types";diff --git a/apps/web/__e2e__/reminders.test.ts b/apps/web/__e2e__/reminders.test.tsindex f8d841e89..2d44a1cf7 100644--- a/apps/web/__e2e__/reminders.test.ts+++ b/apps/web/__e2e__/reminders.test.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { Reminder } from "@notesnook/core/collections/reminders";+import { Reminder } from "@notesnook/core/dist/collections/reminders";import { test, expect } from "@playwright/test";import { AppModel } from "./models/app.model";diff --git a/apps/web/src/app-effects.tsx b/apps/web/src/app-effects.tsxindex 230c3e657..6ed545297 100644--- a/apps/web/src/app-effects.tsx+++ b/apps/web/src/app-effects.tsx@@ -28,7 +28,7 @@ import { resetNotices, scheduleBackups } from "./common/notices";import { introduceFeatures, showUpgradeReminderDialogs } from "./common";import { AppEventManager, AppEvents } from "./common/app-events";import { db } from "./common/db";-import { EV, EVENTS } from "@notesnook/core/common";+import { EV, EVENTS } from "@notesnook/core/dist/common";import { registerKeyMap } from "./common/key-map";import { isUserPremium } from "./hooks/use-is-user-premium";import {diff --git a/apps/web/src/bootstrap.tsx b/apps/web/src/bootstrap.tsxindex aa9833904..be9cbab95 100644--- a/apps/web/src/bootstrap.tsx+++ b/apps/web/src/bootstrap.tsx@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import "./polyfills";-import "@notesnook/core/types";+import "@notesnook/core/dist/types";import { getCurrentHash, getCurrentPath, makeURL } from "./navigation";import Config from "./utils/config";diff --git a/apps/web/src/common/app-events.ts b/apps/web/src/common/app-events.tsindex 84d4d5804..87b482a92 100644--- a/apps/web/src/common/app-events.ts+++ b/apps/web/src/common/app-events.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import EventManager from "@notesnook/core/utils/event-manager";+import EventManager from "@notesnook/core/dist/utils/event-manager";export const AppEventManager = new EventManager();export const AppEvents = {diff --git a/apps/web/src/common/db.ts b/apps/web/src/common/db.tsindex 50026fa08..83555bd26 100644--- a/apps/web/src/common/db.ts+++ b/apps/web/src/common/db.ts@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import { EventSourcePolyfill as EventSource } from "event-source-polyfill";import { DatabasePersistence, NNStorage } from "../interfaces/storage";import { logger } from "../utils/logger";-import type Database from "@notesnook/core/api";+import type Database from "@notesnook/core/dist/api";// eslint-disable-next-line @typescript-eslint/ban-ts-comment// @ts-ignorediff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsxindex f9e9d50e0..c3a225851 100644--- a/apps/web/src/common/dialog-controller.tsx+++ b/apps/web/src/common/dialog-controller.tsx@@ -35,7 +35,7 @@ import { Period } from "../dialogs/buy-dialog/types";import { FeatureKeys } from "../dialogs/feature-dialog";import { AuthenticatorType } from "../dialogs/mfa/types";import { Suspense } from "react";-import { Reminder } from "@notesnook/core/collections/reminders";+import { Reminder } from "@notesnook/core/dist/collections/reminders";import { ConfirmDialogProps } from "../dialogs/confirm";import { getFormattedDate } from "@notesnook/common";import { downloadUpdate } from "../utils/updater";diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.jsindex 4399bef39..84c16337d 100644--- a/apps/web/src/common/index.js+++ b/apps/web/src/common/index.js@@ -35,7 +35,7 @@ import { showFilePicker } from "../utils/file-picker";import { logger } from "../utils/logger";import { PATHS } from "@notesnook/desktop";import { TaskManager } from "./task-manager";-import { EVENTS } from "@notesnook/core/common";+import { EVENTS } from "@notesnook/core/dist/common";import { getFormattedDate } from "@notesnook/common";import { desktop } from "./desktop-bridge";diff --git a/apps/web/src/components/attachment/index.tsx b/apps/web/src/components/attachment/index.tsxindex 1dacce310..37b6ec1e6 100644--- a/apps/web/src/components/attachment/index.tsx+++ b/apps/web/src/components/attachment/index.tsx@@ -54,7 +54,7 @@ import {DocumentMimeTypes,WebClipMimeType,PDFMimeType-} from "@notesnook/core/utils/filename";+} from "@notesnook/core/dist/utils/filename";import { useEffect, useState } from "react";import { AppEventManager, AppEvents } from "../../common/app-events";import { getFormattedDate } from "@notesnook/common";diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsxindex bd43dda05..b8a656582 100644--- a/apps/web/src/components/editor/index.tsx+++ b/apps/web/src/components/editor/index.tsx@@ -42,7 +42,7 @@ import { Attachment } from "../icons";import { useEditorInstance } from "./context";import { attachFile, AttachmentProgress, insertAttachment } from "./picker";import { saveAttachment, downloadAttachment } from "../../common/attachments";-import { EV, EVENTS } from "@notesnook/core/common";+import { EV, EVENTS } from "@notesnook/core/dist/common";import { db } from "../../common/db";import useMobile from "../../hooks/use-mobile";import Titlebox from "./title-box";diff --git a/apps/web/src/components/note/index.tsx b/apps/web/src/components/note/index.tsxindex a3a2ce085..58df57202 100644--- a/apps/web/src/components/note/index.tsx+++ b/apps/web/src/components/note/index.tsx@@ -76,7 +76,7 @@ import {Reminder as ReminderType,isReminderActive,isReminderToday-} from "@notesnook/core/collections/reminders";+} from "@notesnook/core/dist/collections/reminders";import { getFormattedReminderTime } from "@notesnook/common";import { MenuItem } from "@notesnook/ui";import {diff --git a/apps/web/src/components/publish-view/index.jsx b/apps/web/src/components/publish-view/index.jsxindex 9b804ed6f..bb0c18224 100644--- a/apps/web/src/components/publish-view/index.jsx+++ b/apps/web/src/components/publish-view/index.jsx@@ -27,7 +27,7 @@ import { db } from "../../common/db";import { writeText } from "clipboard-polyfill";import { ScopedThemeProvider } from "../theme-provider";import { showToast } from "../../utils/toast";-import { EV, EVENTS } from "@notesnook/core/common";+import { EV, EVENTS } from "@notesnook/core/dist/common";import { useStore } from "../../stores/monograph-store";import ReactModal from "react-modal";import { DialogButton } from "../dialog";diff --git a/apps/web/src/components/reminder/index.tsx b/apps/web/src/components/reminder/index.tsxindex eb20a5e55..975479fe5 100644--- a/apps/web/src/components/reminder/index.tsx+++ b/apps/web/src/components/reminder/index.tsx@@ -35,7 +35,7 @@ import IconTag from "../icon-tag";import {Reminder as ReminderType,isReminderToday-} from "@notesnook/core/collections/reminders";+} from "@notesnook/core/dist/collections/reminders";import { hashNavigate } from "../../navigation";import { Multiselect } from "../../common/multi-select";import { store } from "../../stores/reminder-store";diff --git a/apps/web/src/dialogs/attachments-dialog.tsx b/apps/web/src/dialogs/attachments-dialog.tsxindex 30ecb286d..f3155a3ef 100644--- a/apps/web/src/dialogs/attachments-dialog.tsx+++ b/apps/web/src/dialogs/attachments-dialog.tsx@@ -59,7 +59,7 @@ import { isDocument, isImage, isVideo } from "@notesnook/core/utils/filename";import { alpha } from "@theme-ui/color";import { ScopedThemeProvider } from "../components/theme-provider";-type ToolbarAction = {+type Too@notesnook/core/dist/title: string;icon: Icon;onClick: ({ selected }: { selected: any[] }) => void;diff --git a/apps/web/src/dialogs/migration-dialog.tsx b/apps/web/src/dialogs/migration-dialog.tsxindex 5fadd40aa..68e624e54 100644--- a/apps/web/src/dialogs/migration-dialog.tsx+++ b/apps/web/src/dialogs/migration-dialog.tsx@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { EVENTS } from "@notesnook/core/common";+import { EVENTS } from "@notesnook/core/dist/common";import { Text } from "@theme-ui/components";import { useCallback, useEffect, useState } from "react";import { createBackup } from "../common";diff --git a/apps/web/src/dialogs/reminder-preview-dialog.tsx b/apps/web/src/dialogs/reminder-preview-dialog.tsxindex 06775e404..90bc19a8f 100644--- a/apps/web/src/dialogs/reminder-preview-dialog.tsx+++ b/apps/web/src/dialogs/reminder-preview-dialog.tsx@@ -21,7 +21,7 @@ import { Perform } from "../common/dialog-controller";import Dialog from "../components/dialog";import { Button, Flex, Text } from "@theme-ui/components";import { db } from "../common/db";-import { Reminder } from "@notesnook/core/collections/reminders";+import { Reminder } from "@notesnook/core/dist/collections/reminders";import IconTag from "../components/icon-tag";import { Clock, Refresh } from "../components/icons";import Note from "../components/note";diff --git a/apps/web/src/dialogs/settings/behaviour-settings.ts b/apps/web/src/dialogs/settings/behaviour-settings.tsindex 1f1bebbd8..8d89cfab5 100644--- a/apps/web/src/dialogs/settings/behaviour-settings.ts+++ b/apps/web/src/dialogs/settings/behaviour-settings.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { DATE_FORMATS } from "@notesnook/core/common";+import { DATE_FORMATS } from "@notesnook/core/dist/common";import { SettingsGroup } from "./types";import { useStore as useSettingStore } from "../../stores/setting-store";import dayjs from "dayjs";diff --git a/apps/web/src/dialogs/settings/components/customize-toolbar.tsx b/apps/web/src/dialogs/settings/components/customize-toolbar.tsxindex f40b4481e..36319ca38 100644--- a/apps/web/src/dialogs/settings/components/customize-toolbar.tsx+++ b/apps/web/src/dialogs/settings/components/customize-toolbar.tsx@@ -46,7 +46,7 @@ import {import { useEffect, useState } from "react";import { CSS } from "@dnd-kit/utilities";import { createPortal } from "react-dom";-import { getId } from "@notesnook/core/utils/id";+import { getId } from "@notesnook/core/dist/utils/id";import { Label } from "@theme-ui/components";import { db } from "../../../common/db";import { useToolbarConfig } from "../../../components/editor/context";diff --git a/apps/web/src/dialogs/settings/components/spell-checker-languages.tsx b/apps/web/src/dialogs/settings/components/spell-checker-languages.tsxindex e60c6d0be..0597481bf 100644--- a/apps/web/src/dialogs/settings/components/spell-checker-languages.tsx+++ b/apps/web/src/dialogs/settings/components/spell-checker-languages.tsx@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import { Language, useSpellChecker } from "../../../hooks/use-spell-checker";import { Input, Label } from "@theme-ui/components";import { useCallback, useEffect, useState } from "react";-import { deleteItem } from "@notesnook/core/utils/array";+import { deleteItem } from "@notesnook/core/dist/utils/array";import { FlexScrollContainer } from "../../../components/scroll-container";export function SpellCheckerLanguages() {diff --git a/apps/web/src/dialogs/settings/components/user-profile.tsx b/apps/web/src/dialogs/settings/components/user-profile.tsxindex a7dad896a..8f5d212a9 100644--- a/apps/web/src/dialogs/settings/components/user-profile.tsx+++ b/apps/web/src/dialogs/settings/components/user-profile.tsx@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import { Flex, Text } from "@theme-ui/components";import { User } from "../../../components/icons";import { useStore as useUserStore } from "../../../stores/user-store";-import ObjectID from "@notesnook/core/utils/object-id";+import ObjectID from "@notesnook/core/dist/utils/object-id";import { getFormattedDate } from "@notesnook/common";import { SUBSCRIPTION_STATUS } from "../../../common/constants";import dayjs from "dayjs";diff --git a/apps/web/src/interfaces/fs.ts b/apps/web/src/interfaces/fs.tsindex 95fe7c09a..1f5b952e8 100644--- a/apps/web/src/interfaces/fs.ts+++ b/apps/web/src/interfaces/fs.ts@@ -23,12 +23,12 @@ import axios, { AxiosProgressEvent } from "axios";import { AppEventManager, AppEvents } from "../common/app-events";import { StreamableFS } from "@notesnook/streamable-fs";import { getNNCrypto } from "./nncrypto.stub";-import hosts from "@notesnook/core/utils/constants";-import { sendAttachmentsProgressEvent } from "@notesnook/core/common";+import hosts from "@notesnook/core/dist/utils/constants";+import { sendAttachmentsProgressEvent } from "@notesnook/core/dist/common";import { saveAs } from "file-saver";import { showToast } from "../utils/toast";import { db } from "../common/db";-import { getFileNameWithExtension } from "@notesnook/core/utils/filename";+import { getFileNameWithExtension } from "@notesnook/core/dist/utils/filename";import { ChunkedStream, IntoChunks } from "../utils/streams/chunked-stream";import { ProgressStream } from "../utils/streams/progress-stream";import { consumeReadableStream } from "../utils/stream";diff --git a/apps/web/src/navigation/index.ts b/apps/web/src/navigation/index.tsindex 818c8760c..1d3042657 100644--- a/apps/web/src/navigation/index.ts+++ b/apps/web/src/navigation/index.ts@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { useState } from "react";-import EventManager from "@notesnook/core/utils/event-manager";+import EventManager from "@notesnook/core/dist/utils/event-manager";import Config from "../utils/config";import { HashRoute } from "./hash-routes";import { ReplaceParametersInPath } from "./types";diff --git a/apps/web/src/stores/announcement-store.js b/apps/web/src/stores/announcement-store.jsindex 5dbff9970..d0aa8999b 100644--- a/apps/web/src/stores/announcement-store.js+++ b/apps/web/src/stores/announcement-store.js@@ -24,7 +24,7 @@ import Config from "../utils/config";import { isUserPremium } from "../hooks/use-is-user-premium";import { SUBSCRIPTION_STATUS } from "../common/constants";import { appVersion } from "../utils/version";-import { findItemAndDelete } from "@notesnook/core/utils/array";+import { findItemAndDelete } from "@notesnook/core/dist/utils/array";/*** @extends {BaseStore<AnnouncementStore>}diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.jsindex 63248aad0..17243e99e 100644--- a/apps/web/src/stores/app-store.js+++ b/apps/web/src/stores/app-store.js@@ -36,7 +36,7 @@ import { EV, EVENTS, SYNC_CHECK_IDS } from "@notesnook/core/common";import { logger } from "../utils/logger";import Config from "../utils/config";import { onPageVisibilityChanged } from "../utils/page-visibility";-import { NetworkCheck } from "../utils/network-check";+import {@notesnook/core/dist/from "../utils/network-check";const networkCheck = new NetworkCheck();var syncStatusTimeout = 0;diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.jsindex b78521994..f028c284e 100644--- a/apps/web/src/stores/editor-store.js+++ b/apps/web/src/stores/editor-store.js@@ -24,7 +24,7 @@ import { store as appStore } from "./app-store";import { store as tagStore } from "./tag-store";import { db } from "../common/db";import BaseStore from ".";-import { EV, EVENTS } from "@notesnook/core/common";+import { EV, EVENTS } from "@notesnook/core/dist/common";import { hashNavigate } from "../navigation";import { logger } from "../utils/logger";import Config from "../utils/config";diff --git a/apps/web/src/stores/note-store.js b/apps/web/src/stores/note-store.jsindex 763dad13c..bc923f6d7 100644--- a/apps/web/src/stores/note-store.js+++ b/apps/web/src/stores/note-store.js@@ -25,7 +25,7 @@ import { store as selectionStore } from "./selection-store";import Vault from "../common/vault";import BaseStore from ".";import Config from "../utils/config";-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";/*** @extends {BaseStore<NoteStore>}diff --git a/apps/web/src/stores/notebook-store.js b/apps/web/src/stores/notebook-store.jsindex ec840d51c..43f68b957 100644--- a/apps/web/src/stores/notebook-store.js+++ b/apps/web/src/stores/notebook-store.js@@ -22,7 +22,7 @@ import createStore from "../common/store";import { store as appStore } from "./app-store";import { store as noteStore } from "./note-store";import BaseStore from "./index";-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import Config from "../utils/config";/**diff --git a/apps/web/src/stores/reminder-store.js b/apps/web/src/stores/reminder-store.jsindex cbaf51387..1306c2261 100644--- a/apps/web/src/stores/reminder-store.js+++ b/apps/web/src/stores/reminder-store.js@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import createStore from "../common/store";import { db } from "../common/db";import BaseStore from "./index";-import { groupReminders } from "@notesnook/core/utils/grouping";+import { groupReminders } from "@notesnook/core/dist/utils/grouping";import { TaskScheduler } from "../utils/task-scheduler";import { showReminderPreviewDialog } from "../common/dialog-controller";import dayjs from "dayjs";@@ -85,7 +85,7 @@ async function resetReminders(reminders) {/**** @param {string} id- * @param {import("@notesnook/core/collections/reminders").Reminder} reminder+ * @param {import("@notesnook/core/dist/collections/reminders").Reminder} reminder* @param {string} cron* @returns*/diff --git a/apps/web/src/stores/tag-store.js b/apps/web/src/stores/tag-store.jsindex 8924012c0..6b7d755e4 100644--- a/apps/web/src/stores/tag-store.js+++ b/apps/web/src/stores/tag-store.js@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import createStore from "../common/store";import { db } from "../common/db";import BaseStore from "./index";-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";/*** @extends {BaseStore<TagStore>}diff --git a/apps/web/src/stores/trash-store.js b/apps/web/src/stores/trash-store.jsindex 0496ac06f..92cb3b2f9 100644--- a/apps/web/src/stores/trash-store.js+++ b/apps/web/src/stores/trash-store.js@@ -22,7 +22,7 @@ import createStore from "../common/store";import BaseStore from "./index";import { store as appStore } from "./app-store";import { store as notestore } from "./note-store";-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";/*** @extends {BaseStore<TrashStore>}diff --git a/apps/web/src/stores/user-store.js b/apps/web/src/stores/user-store.jsindex d5aa982b6..fd2112ca0 100644--- a/apps/web/src/stores/user-store.js+++ b/apps/web/src/stores/user-store.js@@ -21,7 +21,7 @@ import createStore from "../common/store";import { db } from "../common/db";import BaseStore from "./index";import config from "../utils/config";-import { EV, EVENTS } from "@notesnook/core/common";+import { EV, EVENTS } from "@notesnook/core/dist/common";import {showAccountLoggedOutNotice,showOnboardingDialogdiff --git a/apps/web/src/utils/keyboard.ts b/apps/web/src/utils/keyboard.tsindex 85a0d8c51..7c3605cd2 100644--- a/apps/web/src/utils/keyboard.ts+++ b/apps/web/src/utils/keyboard.ts@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import EventManager from "@notesnook/core/utils/event-manager";+import EventManager from "@notesnook/core/dist/utils/event-manager";const KeyboardEventManager = new EventManager();diff --git a/apps/web/src/utils/logger.ts b/apps/web/src/utils/logger.tsindex 084f57d55..7c4647c60 100644--- a/apps/web/src/utils/logger.ts+++ b/apps/web/src/utils/logger.ts@@ -21,7 +21,7 @@ import {initalize,logger as _logger,logManager-} from "@notesnook/core/logger";+} from "@notesnook/core/dist/logger";import { LogMessage } from "@notesnook/logger";import FileSaver from "file-saver";import { DatabasePersistence, NNStorage } from "../interfaces/storage";diff --git a/apps/web/src/views/notes.tsx b/apps/web/src/views/notes.tsxindex d35e3e3ba..59965b614 100644--- a/apps/web/src/views/notes.tsx+++ b/apps/web/src/views/notes.tsx@@ -21,7 +21,7 @@ import { useEffect } from "react";import ListContainer from "../components/list-container";import { useStore as useNotesStore } from "../stores/note-store";import { hashNavigate, navigate } from "../navigation";-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import { db } from "../common/db";import Placeholder from "../components/placeholders";diff --git a/apps/web/src/views/recovery.tsx b/apps/web/src/views/recovery.tsxindex 72c8fd81b..396a99eea 100644--- a/apps/web/src/views/recovery.tsx+++ b/apps/web/src/views/recovery.tsx@@ -29,7 +29,7 @@ import { AuthField, SubmitButton } from "./auth";import { createBackup, restoreBackupFile, selectBackupFile } from "../common";import { showRecoveryKeyDialog } from "../common/dialog-controller";import Config from "../utils/config";-import { EVENTS } from "@notesnook/core/common";+import { EVENTS } from "@notesnook/core/dist/common";import { ErrorText } from "../components/error-text";type RecoveryMethodType = "key" | "backup" | "reset";diff --git a/apps/web/src/views/topics.jsx b/apps/web/src/views/topics.jsxindex 3a3d6edab..61330a1b0 100644--- a/apps/web/src/views/topics.jsx+++ b/apps/web/src/views/topics.jsx@@ -39,7 +39,7 @@ import { useStore as useNotesStore } from "../stores/note-store";import Placeholder from "../components/placeholders";import { showSortMenu } from "../components/group-header";import { db } from "../common/db";-import { groupArray } from "@notesnook/core/utils/grouping";+import { groupArray } from "@notesnook/core/dist/utils/grouping";import { getFormattedDate } from "@notesnook/common";function Notebook() {diff --git a/packages/common/src/database.ts b/packages/common/src/database.tsindex 93a8b87d0..9fd2da3e4 100644--- a/packages/common/src/database.ts+++ b/packages/common/src/database.ts@@ -19,6 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.// eslint-disable-next-line @typescript-eslint/ban-ts-comment//@ts-ignore-import Database from "@notesnook/core/api/index";+import Database from "@notesnook/core/dist/api/index";export const database = new Database();diff --git a/packages/common/src/utils/time.ts b/packages/common/src/utils/time.tsindex 9030b7921..979e7c1c3 100644--- a/packages/common/src/utils/time.ts+++ b/packages/common/src/utils/time.ts@@ -17,9 +17,9 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import { formatDate } from "@notesnook/core/utils/date";+import { formatDate } from "@notesnook/core/dist/utils/date";import { database } from "../database";-import { formatReminderTime } from "@notesnook/core/collections/reminders";+import { formatReminderTime } from "@notesnook/core/dist/collections/reminders";export function getFormattedDate(date: string | number | Date,diff --git a/packages/core/.watchmanconfig b/packages/core/.watchmanconfigdeleted file mode 100644index 0967ef424..000000000--- a/packages/core/.watchmanconfig+++ /dev/null@@ -1 +0,0 @@-{}diff --git a/packages/core/analyze-modules.js b/packages/core/analyze-modules.jsdeleted file mode 100644index 43aa880da..000000000--- a/packages/core/analyze-modules.js+++ /dev/null@@ -1,197 +0,0 @@-/*-This file is part of the Notesnook project (https://notesnook.com/)--Copyright (C) 2023 Streetwriters (Private) Limited--This program is free software: you can redistribute it and/or modify-it under the terms of the GNU General Public License as published by-the Free Software Foundation, either version 3 of the License, or-(at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program. If not, see <http://www.gnu.org/licenses/>.-*/--/*-This is free and unencumbered software released into the public domain.-Anyone is free to copy, modify, publish, use, compile, sell, or-distribute this software, either in source code form or as a compiled-binary, for any purpose, commercial or non-commercial, and by any-means.-In jurisdictions that recognize copyright laws, the author or authors-of this software dedicate any and all copyright interest in the-software to the public domain. We make this dedication for the benefit-of the public at large and to the detriment of our heirs and-successors. We intend this dedication to be an overt act of-relinquishment in perpetuity of all present and future rights to this-software under copyright law.-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR-OTHER DEALINGS IN THE SOFTWARE.-For more information, please refer to <http://unlicense.org>-*/--/*-## Description-JS script to visualize ES6 circular dependencies by producing a directed graph using dot notation.-Full dependency graph is reduced to a subgraph containing only cycles.-## Prerequisites-- project using ES6 imports/exports-- node installed- - tested with node v8.2.1-- copy this file to main directory of a project-- install analyze-es6-modules- - with yarn : yarn add analyze-es6-modules -D-- set `configuration.cwd` to path to directory holding all JS assets- - example : app/assets/javascripts-- adjust list of `configuration.babel.plugins` below regarding what is needed- - for react with ES6 the list below might be excessive- - it seems that every package that starts with babel-plugin-syntax should be listed- - with yarn : egrep '^babel-plugin-syntax' yarn.lock-## Usage-- node analyze_modules.js-- render graph from the output- - ex : paste produced text to http://www.webgraphviz.com/-*/--const analyzeModules = require("analyze-es6-modules");--const configuration = {- cwd: process.cwd(),- sources: ["**/*.js"],- babel: {- plugins: [- //require("babel-plugin-syntax-jsx"),- //require("babel-plugin-syntax-flow"),- require("babel-plugin-syntax-async-functions"),- require("babel-plugin-syntax-exponentiation-operator"),- require("babel-plugin-syntax-trailing-function-commas"),- require("babel-plugin-syntax-object-rest-spread")- ]- }-};--/* helpers */--const without = (firstSet, secondSet) =>- new Set(Array.from(firstSet).filter((it) => !secondSet.has(it)));--const mergeSets = (sets) => {- const sumSet = new Set();- sets.forEach((set) => {- Array.from(set.values()).forEach((value) => {- sumSet.add(value);- });- });- return sumSet;-};--/* import analysis */--const collectDependencies = (modules) => {- const dependencySet = new Set();- const separator = ",";-- modules.forEach(({ path, imports }) => {- const importingPath = path;-- imports.forEach(({ exportingModule }) => {- const exportingPath = exportingModule.resolved;- const dependency = [importingPath, exportingPath].join(separator);-- dependencySet.add(dependency);- });- });-- return Array.from(dependencySet.values()).map((it) => it.split(separator));-};--/* graphs */--const buildDirectedGraphFromEdges = (edges) => {- return edges.reduce((graph, [sourceNode, targetNode]) => {- graph[sourceNode] = graph[sourceNode] || new Set();- graph[sourceNode].add(targetNode);-- return graph;- }, {});-};--const stripTerminalNodes = (graph) => {- const allSources = new Set(Object.keys(graph));- const allTargets = mergeSets(Object.values(graph));-- const terminalSources = without(allSources, allTargets);- const terminalTargets = without(allTargets, allSources);-- const newGraph = Object.entries(graph).reduce(- (smallerGraph, [source, targets]) => {- if (!terminalSources.has(source)) {- const nonTerminalTargets = without(targets, terminalTargets);-- if (nonTerminalTargets.size > 0) {- smallerGraph[source] = nonTerminalTargets;- }- }-- return smallerGraph;- },- {}- );-- return newGraph;-};--const calculateGraphSize = (graph) => mergeSets(Object.values(graph)).size;--const miminizeGraph = (graph) => {- const smallerGraph = stripTerminalNodes(graph);-- if (calculateGraphSize(smallerGraph) < calculateGraphSize(graph)) {- return miminizeGraph(smallerGraph);- } else {- return smallerGraph;- }-};--/* rendering */--const convertDirectedGraphToDot = (graph) => {- const stringBuilder = [];-- stringBuilder.push("digraph G {");-- Object.entries(graph).forEach(([source, targetSet]) => {- const targets = Array.from(targetSet);- stringBuilder.push('"' + source + '" -> { "' + targets.join('" "') + '" }');- });-- stringBuilder.push("}");-- return stringBuilder.join("\n");-};--/* main */--const resolvedHandler = ({ modules }) => {- const dependencies = collectDependencies(modules);- const graph = buildDirectedGraphFromEdges(dependencies);- const minimalGraph = miminizeGraph(graph);-- console.log(convertDirectedGraphToDot(minimalGraph));-};--const rejectedHandler = (e) => {- console.log("rejected!", e);-};--analyzeModules(configuration).then(resolvedHandler, rejectedHandler);diff --git a/packages/core/babel.config.js b/packages/core/babel.config.jsdeleted file mode 100644index f937aac7e..000000000--- a/packages/core/babel.config.js+++ /dev/null@@ -1,22 +0,0 @@-/*-This file is part of the Notesnook project (https://notesnook.com/)--Copyright (C) 2023 Streetwriters (Private) Limited--This program is free software: you can redistribute it and/or modify-it under the terms of the GNU General Public License as published by-the Free Software Foundation, either version 3 of the License, or-(at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program. If not, see <http://www.gnu.org/licenses/>.-*/-module.exports = {- presets: ["@babel/preset-env"],- plugins: [["@babel/transform-runtime"]]-};diff --git a/packages/core/package.json b/packages/core/package.jsonindex b34b58baa..db41a1c82 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -25,6 +25,7 @@"vitest-fetch-mock": "^0.2.2"},"scripts": {+ "build": "tsc","test:e2e": "cross-env IS_E2E=true vitest run","test": "vitest run"},diff --git a/packages/core/src/utils/date.js b/packages/core/src/utils/date.jsindex 3d52642fc..bb4568a08 100644--- a/packages/core/src/utils/date.js+++ b/packages/core/src/utils/date.js@@ -70,7 +70,7 @@ export function getTimeFormat(format) {/**** @param {string | number | Date | null | undefined} date- * @param {{dateFormat: string, timeFormat: string, type: "date-time" | "time" | "date"}} options+ * @param {{dateFormat: string, timeFormat?: string, type: "date-time" | "time" | "date"}} options* @returns*/export function formatDate(diff --git a/packages/editor/src/extensions/date-time/date-time.ts b/packages/editor/src/extensions/date-time/date-time.tsindex ed8981eb5..6691c9a3e 100644--- a/packages/editor/src/extensions/date-time/date-time.ts+++ b/packages/editor/src/extensions/date-time/date-time.ts@@ -25,7 +25,7 @@ import {} from "@tiptap/core";// eslint-disable-next-line @typescript-eslint/ban-ts-comment// @ts-ignore-import { formatDate } from "@notesnook/core/utils/date";+import { formatDate } from "@notesnook/core/dist/utils/date";declare module "@tiptap/core" {interface Commands<ReturnType> {