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: fix imports
Abdullah Attaffd022cfa6b4
diff --git a/apps/mobile/app/common/database/index.js b/apps/mobile/app/common/database/index.jsindex 9fc72ca01..c7b1407ca 100644--- a/apps/mobile/app/common/database/index.js+++ b/apps/mobile/app/common/database/index.js@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import "./logger";import { database } from "@notesnook/common";-import { logger as dbLogger } from "@notesnook/core/dist/logger";+import { logger as dbLogger } from "@notesnook/core";import { Platform } from "react-native";import * as Gzip from "react-native-gzip";import EventSource from "../../utils/sse/even-source-ios";diff --git a/apps/mobile/app/common/database/logger.js b/apps/mobile/app/common/database/logger.jsindex 9432fd965..bb44f2bd8 100644--- a/apps/mobile/app/common/database/logger.js+++ b/apps/mobile/app/common/database/logger.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 { initialize } from "@notesnook/core/dist/logger";+import { initialize } from "@notesnook/core";import {SqliteAdapter,SqliteIntrospector,diff --git a/apps/mobile/app/common/filesystem/download-attachment.js b/apps/mobile/app/common/filesystem/download-attachment.jsindex 444445523..899f33d99 100644--- a/apps/mobile/app/common/filesystem/download-attachment.js+++ b/apps/mobile/app/common/filesystem/download-attachment.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 { getFileNameWithExtension } from "@notesnook/core/dist/utils/filename";+import { getFileNameWithExtension } from "@notesnook/core";import React from "react";import { Platform } from "react-native";import RNFetchBlob from "react-native-blob-util";diff --git a/apps/mobile/app/common/filesystem/utils.js b/apps/mobile/app/common/filesystem/utils.jsindex 5c4fd2761..e76e45389 100644--- a/apps/mobile/app/common/filesystem/utils.js+++ b/apps/mobile/app/common/filesystem/utils.js@@ -21,7 +21,7 @@ import { Platform } from "react-native";import RNFetchBlob from "react-native-blob-util";import * as ScopedStorage from "react-native-scoped-storage";import { DatabaseLogger, db } from "../database";-import hosts from "@notesnook/core/dist/utils/constants";+import { hosts } from "@notesnook/core";export const ABYTES = 17;export const cacheDirOld = RNFetchBlob.fs.dirs.CacheDir;diff --git a/apps/mobile/app/components/attachments/index.tsx b/apps/mobile/app/components/attachments/index.tsxindex a5ebee361..1d98a36fd 100644--- a/apps/mobile/app/components/attachments/index.tsx+++ b/apps/mobile/app/components/attachments/index.tsx@@ -21,9 +21,9 @@ import {Attachment,Note,SortOptions,- VirtualizedGrouping+ VirtualizedGrouping,+ FilteredSelector} from "@notesnook/core";-import { FilteredSelector } from "@notesnook/core/dist/database/sql-collection";import { useThemeColors } from "@notesnook/theme";import React, { useEffect, useRef, useState } from "react";import { ActivityIndicator, View } from "react-native";diff --git a/apps/mobile/app/components/image-preview/index.tsx b/apps/mobile/app/components/image-preview/index.tsxindex 64b3aadc8..b04ac6b8f 100644--- a/apps/mobile/app/components/image-preview/index.tsx+++ b/apps/mobile/app/components/image-preview/index.tsx@@ -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/dist/utils/dataurl";+import dataurl from "@notesnook/core";import type { ImageAttributes } from "@notesnook/editor/dist/extensions/image/index";import { useThemeColors } from "@notesnook/theme";import React, { useEffect, useRef, useState } from "react";diff --git a/apps/mobile/app/components/list/list-item.wrapper.tsx b/apps/mobile/app/components/list/list-item.wrapper.tsxindex 46102db62..9c9e5552d 100644--- a/apps/mobile/app/components/list/list-item.wrapper.tsx+++ b/apps/mobile/app/components/list/list-item.wrapper.tsx@@ -36,7 +36,7 @@ import {TrashItem,VirtualizedGrouping} from "@notesnook/core";-import { getSortValue } from "@notesnook/core/dist/utils/grouping";+import { getSortValue } from "@notesnook/core";import React, { useCallback, useEffect, useRef, useState } from "react";import { View } from "react-native";import { db } from "../../common/database";diff --git a/apps/mobile/app/components/properties/color-tags.tsx b/apps/mobile/app/components/properties/color-tags.tsxindex ebc3b0592..bdf481eee 100644--- a/apps/mobile/app/components/properties/color-tags.tsx+++ b/apps/mobile/app/components/properties/color-tags.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 { Color, Note } from "@notesnook/core/dist/types";+import { Color, Note } from "@notesnook/core";import { useThemeColors } from "@notesnook/theme";import React, { useCallback, useEffect, useState } from "react";import { View } from "react-native";diff --git a/apps/mobile/app/components/sheets/editor-tabs/index.tsx b/apps/mobile/app/components/sheets/editor-tabs/index.tsxindex bc9692d4e..8833940e0 100644--- a/apps/mobile/app/components/sheets/editor-tabs/index.tsx+++ b/apps/mobile/app/components/sheets/editor-tabs/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 { Note } from "@notesnook/core";-import { EVENTS } from "@notesnook/core/dist/common";+import { EVENTS } from "@notesnook/core";import { useThemeColors } from "@notesnook/theme";import React, { useEffect } from "react";import { View } from "react-native";diff --git a/apps/mobile/app/components/sheets/github/issue.js b/apps/mobile/app/components/sheets/github/issue.jsindex 8a07b758d..bf74e0e32 100644--- a/apps/mobile/app/components/sheets/github/issue.js+++ b/apps/mobile/app/components/sheets/github/issue.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 { Debug } from "@notesnook/core/dist/api/debug";+import { Debug } from "@notesnook/core";import { getModel, getBrand, getSystemVersion } from "react-native-device-info";import { useThemeColors } from "@notesnook/theme";import React, { useRef, useState } from "react";diff --git a/apps/mobile/app/components/sheets/manage-tags/index.tsx b/apps/mobile/app/components/sheets/manage-tags/index.tsxindex ec47744b5..a847c7daa 100644--- a/apps/mobile/app/components/sheets/manage-tags/index.tsx+++ b/apps/mobile/app/components/sheets/manage-tags/index.tsx@@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { VirtualizedGrouping } from "@notesnook/core";-import { Tags } from "@notesnook/core/dist/collections/tags";-import { Tag } from "@notesnook/core/dist/types";+import { sanitizeTag } from "@notesnook/core";+import { Tag } from "@notesnook/core";import { useThemeColors } from "@notesnook/theme";import React, {RefObject,@@ -268,8 +268,8 @@ const ManageTagsSheet = (props: {fwdRef={inputRef}autoCapitalize="none"onChangeText={(v) => {- setQuery(Tags.sanitize(v));- checkQueryExists(Tags.sanitize(v));+ setQuery(sanitizeTag(v));+ checkQueryExists(sanitizeTag(v));}}onFocusInput={() => {setFocus(true);diff --git a/apps/mobile/app/components/sheets/migrate/index.tsx b/apps/mobile/app/components/sheets/migrate/index.tsxindex eb2bbeaf1..24fc13571 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/dist/common";+import { EVENTS } from "@notesnook/core";import { useThemeColors } from "@notesnook/theme";import React, { useCallback, useEffect, useState } from "react";import { Platform, View } from "react-native";diff --git a/apps/mobile/app/components/sheets/move-notes/movenote.tsx b/apps/mobile/app/components/sheets/move-notes/movenote.tsxindex 15ffec452..46df26355 100644--- a/apps/mobile/app/components/sheets/move-notes/movenote.tsx+++ b/apps/mobile/app/components/sheets/move-notes/movenote.tsx@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { VirtualizedGrouping } from "@notesnook/core";-import { Note, Notebook } from "@notesnook/core/dist/types";+import { Note, Notebook } from "@notesnook/core";import { useThemeColors } from "@notesnook/theme";import React, { RefObject, useEffect, useRef, useState } from "react";import { ActivityIndicator, TextInput, View } from "react-native";diff --git a/apps/mobile/app/components/sheets/references/index.tsx b/apps/mobile/app/components/sheets/references/index.tsxindex 27d66b8fc..5655e0917 100644--- a/apps/mobile/app/components/sheets/references/index.tsx+++ b/apps/mobile/app/components/sheets/references/index.tsx@@ -23,7 +23,7 @@ import {createInternalLink,highlightInternalLinks} from "@notesnook/core";-import { ContentBlock, ItemReference, Note } from "@notesnook/core/dist/types";+import { ContentBlock, ItemReference, Note } from "@notesnook/core";import { useThemeColors } from "@notesnook/theme";import React, { MutableRefObject, useEffect, useRef, useState } from "react";import { ActivityIndicator, View } from "react-native";diff --git a/apps/mobile/app/components/sheets/relations-list/index.tsx b/apps/mobile/app/components/sheets/relations-list/index.tsxindex 4ef85ce90..89e662453 100644--- a/apps/mobile/app/components/sheets/relations-list/index.tsx+++ b/apps/mobile/app/components/sheets/relations-list/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 { VirtualizedGrouping } from "@notesnook/core";-import { Item, ItemReference } from "@notesnook/core/dist/types";+import { Item, ItemReference } from "@notesnook/core";import { useThemeColors } from "@notesnook/theme";import React, { RefObject, useEffect, useState } from "react";import { View } from "react-native";diff --git a/apps/mobile/app/components/ui/reminder-time/index.tsx b/apps/mobile/app/components/ui/reminder-time/index.tsxindex 8f4568d5e..839a7c008 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/dist/collections/reminders";+import { isReminderActive } from "@notesnook/core";import React from "react";import { ViewStyle } from "react-native";@@ -24,7 +24,7 @@ import { useThemeColors } from "@notesnook/theme";import { SIZE } from "../../../utils/size";import { Button, ButtonProps } from "../button";import { getFormattedReminderTime } from "@notesnook/common";-import { Reminder } from "@notesnook/core/dist/types";+import { Reminder } from "@notesnook/core";export const ReminderTime = ({checkIsActive = true,diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsxindex b8067419e..b02ec059b 100644--- a/apps/mobile/app/hooks/use-actions.tsx+++ b/apps/mobile/app/hooks/use-actions.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/>.*//* eslint-disable no-inner-declarations */-import { VAULT_ERRORS } from "@notesnook/core/dist/api/vault";+import { VAULT_ERRORS } from "@notesnook/core";import {Color,ItemReference,@@ -26,7 +26,7 @@ import {Reminder,Tag,TrashItem-} from "@notesnook/core/dist/types";+} from "@notesnook/core";import { DisplayedNotification } from "@notifee/react-native";import Clipboard from "@react-native-clipboard/clipboard";import React, { useCallback, useEffect, useRef, useState } from "react";diff --git a/apps/mobile/app/hooks/use-app-events.tsx b/apps/mobile/app/hooks/use-app-events.tsxindex 5b3968ef1..913ecac80 100644--- a/apps/mobile/app/hooks/use-app-events.tsx+++ b/apps/mobile/app/hooks/use-app-events.tsx@@ -18,13 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { User } from "@notesnook/core";-import {- EV,- EVENTS,- SYNC_CHECK_IDS,- SyncStatusEvent-} from "@notesnook/core/dist/common";-import { EventManagerSubscription } from "@notesnook/core/dist/utils/event-manager";+import { EV, EVENTS, SYNC_CHECK_IDS, SyncStatusEvent } from "@notesnook/core";+import { EventManagerSubscription } from "@notesnook/core";import notifee from "@notifee/react-native";import NetInfo, { NetInfoSubscription } from "@react-native-community/netinfo";import React, { useCallback, useEffect, useRef } from "react";diff --git a/apps/mobile/app/hooks/use-pricing.ts b/apps/mobile/app/hooks/use-pricing.tsindex a4e41db93..de11c024d 100644--- a/apps/mobile/app/hooks/use-pricing.ts+++ b/apps/mobile/app/hooks/use-pricing.ts@@ -22,7 +22,7 @@ import { Platform } from "react-native";import { Subscription } from "react-native-iap";import PremiumService from "../services/premium";import { db } from "../common/database";-import { Product } from "@notesnook/core/dist/api/pricing";+import { Product } from "@notesnook/core";const skuInfos: { [name: string]: Product | undefined } = {};diff --git a/apps/mobile/app/hooks/use-sync-progress.ts b/apps/mobile/app/hooks/use-sync-progress.tsindex 912a5a4b2..79e22fdaf 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/dist/common";+import { EVENTS } from "@notesnook/core";import { useCallback, useEffect, useState } from "react";import { db } from "../common/database";diff --git a/apps/mobile/app/screens/editor/tiptap/commands.ts b/apps/mobile/app/screens/editor/tiptap/commands.tsindex cf0ca480a..2261fafdd 100644--- a/apps/mobile/app/screens/editor/tiptap/commands.ts+++ b/apps/mobile/app/screens/editor/tiptap/commands.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 { Note } from "@notesnook/core/dist/types";+import { Note } from "@notesnook/core";import type { Attachment } from "@notesnook/editor/dist/extensions/attachment/index";import type { ImageAttributes } from "@notesnook/editor/dist/extensions/image/index";import type { LinkAttributes } from "@notesnook/editor/dist/extensions/link";diff --git a/apps/mobile/app/screens/editor/tiptap/picker.ts b/apps/mobile/app/screens/editor/tiptap/picker.tsindex caa0f7f52..93defce49 100644--- a/apps/mobile/app/screens/editor/tiptap/picker.ts+++ b/apps/mobile/app/screens/editor/tiptap/picker.ts@@ -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/dist/utils/filename";+import { isImage } from "@notesnook/core";import { basename } from "pathe";import { Platform } from "react-native";import RNFetchBlob from "react-native-blob-util";diff --git a/apps/mobile/app/screens/editor/tiptap/types.ts b/apps/mobile/app/screens/editor/tiptap/types.tsindex 112147073..92ccd89e8 100644--- a/apps/mobile/app/screens/editor/tiptap/types.ts+++ b/apps/mobile/app/screens/editor/tiptap/types.ts@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import type { ToolbarGroupDefinition } from "@notesnook/editor/dist/toolbar/types";import { useEditor } from "./use-editor";-import { Note } from "@notesnook/core/dist/types";+import { Note } from "@notesnook/core";export type useEditorType = ReturnType<typeof useEditor>;export type EditorState = {diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsxindex b562e3aa4..1c7500931 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx+++ b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>./* eslint-disable no-case-declarations *//* eslint-disable @typescript-eslint/no-var-requires */-import { ItemReference } from "@notesnook/core/dist/types";+import { ItemReference } from "@notesnook/core";import type { Attachment } from "@notesnook/editor/dist/extensions/attachment/index";import { getDefaultPresets } from "@notesnook/editor/dist/toolbar/tool-definitions";import Clipboard from "@react-native-clipboard/clipboard";diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.tsindex a3ab53d16..fb3a9e678 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts@@ -18,10 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { getFormattedDate } from "@notesnook/common";-import { isEncryptedContent } from "@notesnook/core/dist/collections/content";-import { NoteContent } from "@notesnook/core/dist/collections/session-content";-import { EVENTS } from "@notesnook/core/dist/common";import {+ EVENTS,+ isEncryptedContent,+ NoteContent,ContentItem,ContentType,DeletedItem,@@ -31,7 +31,7 @@ import {UnencryptedContentItem,isDeleted,isTrashItem-} from "@notesnook/core/dist/types";+} from "@notesnook/core";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 ad17b961c..481ba84b2 100644--- a/apps/mobile/app/screens/notebook/index.tsx+++ b/apps/mobile/app/screens/notebook/index.tsx@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { resolveItems } from "@notesnook/common";import { VirtualizedGrouping } from "@notesnook/core";-import { Note, Notebook } from "@notesnook/core/dist/types";+import { Note, Notebook } from "@notesnook/core";import React, { useEffect, useRef, useState } from "react";import { View } from "react-native";import { db } from "../../common/database";diff --git a/apps/mobile/app/screens/notes/colored.tsx b/apps/mobile/app/screens/notes/colored.tsxindex b0e04506d..5157d9ae8 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 { Color } from "@notesnook/core/dist/types";+import { Color } from "@notesnook/core";import React from "react";import NotesPage from ".";import { db } from "../../common/database";diff --git a/apps/mobile/app/screens/notes/index.tsx b/apps/mobile/app/screens/notes/index.tsxindex f4054a8e7..a8593012d 100644--- a/apps/mobile/app/screens/notes/index.tsx+++ b/apps/mobile/app/screens/notes/index.tsx@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import { resolveItems } from "@notesnook/common";import { VirtualizedGrouping } from "@notesnook/core";-import { Color, Note } from "@notesnook/core/dist/types";+import { Color, Note } from "@notesnook/core";import React, { useEffect, useRef, useState } from "react";import { db } from "../../common/database";import { FloatingButton } from "../../components/container/floating-button";diff --git a/apps/mobile/app/screens/notes/tagged.tsx b/apps/mobile/app/screens/notes/tagged.tsxindex 1aca47663..c736e183c 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 { Tag } from "@notesnook/core/dist/types";+import { Tag } from "@notesnook/core";import React from "react";import NotesPage from ".";import { db } from "../../common/database";diff --git a/apps/mobile/app/screens/search/index.tsx b/apps/mobile/app/screens/search/index.tsxindex 86b0dd551..65205cca7 100644--- a/apps/mobile/app/screens/search/index.tsx+++ b/apps/mobile/app/screens/search/index.tsx@@ -32,7 +32,7 @@ import { NavigationProps } from "../../services/navigation";import useNavigationStore from "../../stores/use-navigation-store";import { eOnRefreshSearch } from "../../utils/events";import { SearchBar } from "./search-bar";-import { FilteredSelector } from "@notesnook/core/dist/database/sql-collection";+import { FilteredSelector } from "@notesnook/core";export const Search = ({ route, navigation }: NavigationProps<"Search">) => {const [results, setResults] = useState<VirtualizedGrouping<Item>>();const [loading, setLoading] = useState(false);diff --git a/apps/mobile/app/screens/settings/debug.tsx b/apps/mobile/app/screens/settings/debug.tsxindex 23a438d7e..427798d07 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/dist/logger";+import { format, LogLevel, logManager } from "@notesnook/core";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 9783b4431..cdec5a958 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/dist/common";+import { DATE_FORMATS, TIME_FORMATS } from "@notesnook/core";import dayjs from "dayjs";import { useUserStore } from "../../../stores/use-user-store";import { verifyUserWithApplock } from "../functions";diff --git a/apps/mobile/app/services/backup.ts b/apps/mobile/app/services/backup.tsindex 4130f9a5b..fd41be667 100644--- a/apps/mobile/app/services/backup.ts+++ b/apps/mobile/app/services/backup.ts@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { sanitizeFilename } from "@notesnook/common";-import { formatDate } from "@notesnook/core/dist/utils/date";+import { formatDate } from "@notesnook/core";import { Platform } from "react-native";import RNFetchBlob from "react-native-blob-util";import FileViewer from "react-native-file-viewer";diff --git a/apps/mobile/app/services/event-manager.ts b/apps/mobile/app/services/event-manager.tsindex 46cfced41..0f050a04f 100644--- a/apps/mobile/app/services/event-manager.ts+++ b/apps/mobile/app/services/event-manager.ts@@ -17,9 +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, {- EventHandler-} from "@notesnook/core/dist/utils/event-manager";+import EventManager, { EventHandler } from "@notesnook/core";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/exporter.ts b/apps/mobile/app/services/exporter.tsindex 6d909449a..cd2441619 100644--- a/apps/mobile/app/services/exporter.ts+++ b/apps/mobile/app/services/exporter.ts@@ -32,7 +32,7 @@ import {exportNotes} from "@notesnook/common";import { Note } from "@notesnook/core";-import { FilteredSelector } from "@notesnook/core/dist/database/sql-collection";+import { FilteredSelector } from "@notesnook/core";import { basename, dirname, join } from "pathe";import downloadAttachment from "../common/filesystem/download-attachment";import { cacheDir } from "../common/filesystem/utils";diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.tsindex 3f0109a1d..c77c1b04a 100644--- a/apps/mobile/app/services/notifications.ts+++ b/apps/mobile/app/services/notifications.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/dist/types";+import { Reminder } from "@notesnook/core";import notifee, {AndroidStyle,AuthorizationStatus,diff --git a/apps/mobile/app/services/premium.js b/apps/mobile/app/services/premium.jsindex 4e9c9156d..4f496b64b 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/dist/common";+import { CHECK_IDS } from "@notesnook/core";import React from "react";import { Platform } from "react-native";import Config from "react-native-config";diff --git a/apps/mobile/app/stores/use-menu-store.ts b/apps/mobile/app/stores/use-menu-store.tsindex 26b8dc54a..b025e74d2 100644--- a/apps/mobile/app/stores/use-menu-store.ts+++ b/apps/mobile/app/stores/use-menu-store.ts@@ -23,7 +23,7 @@ import {SideBarHideableSection,SideBarSection,Tag-} from "@notesnook/core/dist/types";+} from "@notesnook/core";import create, { State } from "zustand";import { db } from "../common/database";diff --git a/apps/mobile/app/stores/use-navigation-store.ts b/apps/mobile/app/stores/use-navigation-store.tsindex e5ff7b1f6..f20787c00 100644--- a/apps/mobile/app/stores/use-navigation-store.ts+++ b/apps/mobile/app/stores/use-navigation-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 { FilteredSelector } from "@notesnook/core/dist/database/sql-collection";+import { FilteredSelector } from "@notesnook/core";import {Color,Item,@@ -27,7 +27,7 @@ import {Reminder,Tag,TrashItem-} from "@notesnook/core/dist/types";+} from "@notesnook/core";import create, { State } from "zustand";export type GenericRouteParam = undefined;diff --git a/apps/mobile/app/stores/use-setting-store.ts b/apps/mobile/app/stores/use-setting-store.tsindex 320222a46..665f85560 100644--- a/apps/mobile/app/stores/use-setting-store.ts+++ b/apps/mobile/app/stores/use-setting-store.ts@@ -24,7 +24,7 @@ import { initialWindowMetrics } from "react-native-safe-area-context";import { FileType } from "react-native-scoped-storage";import create, { State } from "zustand";import { ThemeDark, ThemeLight, ThemeDefinition } from "@notesnook/theme";-import { Reminder } from "@notesnook/core/dist/types";+import { Reminder } from "@notesnook/core";export const HostIds = ["API_HOST", "AUTH_HOST", "SSE_HOST"] as const;export type HostId = (typeof HostIds)[number];diff --git a/apps/mobile/app/utils/note-bundle.js b/apps/mobile/app/utils/note-bundle.jsindex 93ce87c45..6b4650354 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/dist/utils/filename";+import { isImage } from "@notesnook/core";import { Platform } from "react-native";import RNFetchBlob from "react-native-blob-util";import { DatabaseLogger, db } from "../common/database";diff --git a/apps/mobile/app/utils/note-to-text.ts b/apps/mobile/app/utils/note-to-text.tsindex 43d718056..673357907 100644--- a/apps/mobile/app/utils/note-to-text.ts+++ b/apps/mobile/app/utils/note-to-text.ts@@ -16,8 +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 { NoteContent } from "@notesnook/core/dist/collections/session-content";-import { Note } from "@notesnook/core/dist/types";+import { NoteContent, Note } from "@notesnook/core";import { db } from "../common/database";export async function convertNoteToText(note: Note, disableTemplate?: boolean) {diff --git a/apps/mobile/share/share.js b/apps/mobile/share/share.jsindex a1a41d80b..59690b4cf 100644--- a/apps/mobile/share/share.js+++ b/apps/mobile/share/share.js@@ -20,7 +20,7 @@ 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/dist/utils/filename";+import { isImage } from "@notesnook/core";import { useThemeColors } from "@notesnook/theme";import React, { useCallback, useEffect, useRef, useState } from "react";import {