core: make imports compatible with esm

This commit is contained in:
Abdullah Atta
2024-09-23 15:08:57 +05:00
parent f100e157d3
commit 59739067b6
116 changed files with 559 additions and 486 deletions

View File

@@ -17,19 +17,29 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
export * from "./types";
export { VirtualizedGrouping } from "./utils/virtualized-grouping";
export { DefaultColors } from "./collections/colors";
export { type BackupFile, type LegacyBackupFile } from "./database/backup";
export * from "./types.js";
export * from "./interfaces.js";
export * from "./utils/index.js";
export * from "./content-types/index.js";
export * from "./common.js";
export { default as Database } from "./api/index.js";
export { DefaultColors } from "./collections/colors.js";
export { EMPTY_CONTENT } from "./collections/content.js";
export { type BackupFile, type LegacyBackupFile } from "./database/backup.js";
export { type DatabaseUpdatedEvent } from "./database/index.js";
export { FilteredSelector } from "./database/sql-collection.js";
export {
createInternalLink,
parseInternalLink,
type InternalLink
} from "./utils/internal-link";
export {
extractInternalLinks,
highlightInternalLinks,
type TextSlice
} from "./utils/content-block";
export { type DatabaseUpdatedEvent } from "./database";
export { isServerCompatible } from "./utils/constants";
getUpcomingReminder,
formatReminderTime,
isReminderToday,
isReminderActive
} from "./collections/reminders.js";
export * from "./logger.js";
export * from "./api/debug.js";
export * from "./api/monographs.js";
export * from "./api/subscriptions.js";
export * from "./api/pricing.js";
export { VAULT_ERRORS } from "./api/vault.js";
export type { SyncOptions } from "./api/sync/index.js";
export { sanitizeTag } from "./collections/tags.js";
export { default as DataURL } from "./utils/dataurl.js";