Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createOpenEditorEmojiDataResponse } from "@openeditor/emoji/data";
import { createOpenEditorEmojiDataResponse } from "@openeditor/document/emoji";

export const dynamic = "force-static";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test";
import {
createOpenEditorImageAssetResolver,
exportOpenEditorDocument,
} from "@openeditor/exporters/export";
} from "@openeditor/export/export";
import { projectBaseBlocksDocumentForPortableExport } from "@baseblocks/openeditor-contracts";
import {
assertStoredChecksum,
Expand Down
6 changes: 3 additions & 3 deletions apps/web/app/api/pages/[pageId]/export/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {
import { api } from "@baseblocks/backend";
import { projectBaseBlocksDocumentForPortableExport } from "@baseblocks/openeditor-contracts";
import { baseBlocksBlockRegistry } from "@baseblocks/openeditor-contracts/block-registry";
import { isOpenEditorDocument } from "@openeditor/core";
import { isOpenEditorDocument } from "@openeditor/document";
import {
createOpenEditorImageAssetResolver,
exportOpenEditorDocument,
openEditorExportFormats,
} from "@openeditor/exporters/export";
import type { ProseMirrorNode } from "@openeditor/core";
} from "@openeditor/export/export";
import type { ProseMirrorNode } from "@openeditor/document";
import { type NextRequest, NextResponse } from "next/server";

export const runtime = "nodejs";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/marketing/openeditor-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
createDocument,
textBlock,
type OpenEditorBlock,
} from "@openeditor/core";
} from "@openeditor/document";
import { OpenEditorContent, useOpenEditorController } from "@openeditor/react";
import {
OpenEditorBlockMenu,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/attachment-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
OpenEditorAttachmentRuntime,
OpenEditorAttachmentSnapshot,
OpenEditorAttachmentUploadInput,
} from "@openeditor/core";
} from "@openeditor/document";
import { useConvex, useMutation } from "convex/react";

const MAX_ATTACHMENT_SIZE = 50 * 1024 * 1024;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/custom-block-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
OpenEditorDocument,
OpenEditorImageRuntime,
OpenEditorPageRuntime,
} from "@openeditor/core";
} from "@openeditor/document";
import { OpenEditorViewer } from "@openeditor/react/viewer";
import { libraryViewer } from "./extensions/library";
import { searchViewer } from "./extensions/search";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/custom-blocks.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test";
import type { OpenEditorDocument } from "@openeditor/core";
import type { OpenEditorDocument } from "@openeditor/document";
import {
BaseBlocksCustomBlockAssetAuthorization,
extractBaseBlocksCustomBlockAssetIds,
Expand Down
4 changes: 2 additions & 2 deletions apps/web/features/openeditor/custom-blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import {
} from "@hugeicons/core-free-icons";
import { OpenEditorContent, useOpenEditorController } from "@openeditor/react";
import { baseBlocksCustomBlockEditors } from "@baseblocks/custom-blocks/editor";
import { extractOpenEditorCustomBlockAssetReferences } from "@openeditor/core";
import { extractOpenEditorCustomBlockAssetReferences } from "@openeditor/document";
import type {
OpenEditorAttachmentRuntime,
OpenEditorDocument,
OpenEditorImageRuntime,
OpenEditorPageRuntime,
} from "@openeditor/core";
} from "@openeditor/document";
import { useRef, type ComponentProps } from "react";
import { libraryEditor } from "./extensions/library";
import { searchEditor } from "./extensions/search";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/image-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
OpenEditorImageRuntime,
OpenEditorImageSnapshot,
OpenEditorImageUploadInput,
} from "@openeditor/core";
} from "@openeditor/document";
import { useConvex, useMutation } from "convex/react";
import { useMemo } from "react";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
createDocument,
textBlock,
type OpenEditorDocument,
} from "@openeditor/core";
} from "@openeditor/document";
import {
areOpenEditorDocumentsEqual,
shouldSyncOpenEditorDocument,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OpenEditorDocument } from "@openeditor/core";
import type { OpenEditorDocument } from "@openeditor/document";

function areOpenEditorValuesEqual(left: unknown, right: unknown): boolean {
if (Object.is(left, right)) return true;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/openeditor-page-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type {
OpenEditorDocument,
OpenEditorImageRuntime,
OpenEditorPageRuntime,
} from "@openeditor/core";
} from "@openeditor/document";
import {
OpenEditorContent,
OpenEditorPageHeader,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/page-tabs-model.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test";
import { createDocument, textBlock } from "@openeditor/core";
import { createDocument, textBlock } from "@openeditor/document";
import { assertBaseBlocksDocument } from "@baseblocks/openeditor-contracts";
import {
createOpenEditorPageTabs,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/page-tabs-model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OpenEditorBlock, OpenEditorDocument } from "@openeditor/core";
import type { OpenEditorBlock, OpenEditorDocument } from "@openeditor/document";

type OpenEditorTextRange = {
from: number;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/page-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
type OpenEditorDocument,
type OpenEditorImageRuntime,
type OpenEditorPageRuntime,
} from "@openeditor/core";
} from "@openeditor/document";
import {
OpenEditorContent,
OpenEditorViewer,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import type { OpenEditorDocument } from "@openeditor/core";
import type { OpenEditorDocument } from "@openeditor/document";
import type { OpenEditorController } from "@openeditor/react";
import { useEffect, useRef } from "react";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test";
import type { Id } from "@baseblocks/backend";
import type { OpenEditorDocument } from "@openeditor/core";
import type { OpenEditorDocument } from "@openeditor/document";
import { renderToStaticMarkup } from "react-dom/server";
import { useVersionedPageDocument } from "./use-versioned-page-document";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
reconcileChildPageProjection,
} from "@baseblocks/openeditor-contracts";
import type { SaveStatus } from "@baseblocks/domain";
import type { OpenEditorDocument } from "@openeditor/core";
import type { OpenEditorDocument } from "@openeditor/document";
import { useCallback, useEffect, useRef, useState } from "react";
import { areOpenEditorDocumentsEqual } from "./open-editor-document-sync";
import type { VersionedDocument } from "./versioned-document";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/openeditor/versioned-document.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OpenEditorDocument } from "@openeditor/core";
import type { OpenEditorDocument } from "@openeditor/document";

export interface VersionedDocument {
document: OpenEditorDocument;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/published-sites/image-runtime.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OpenEditorImageRuntime } from "@openeditor/core";
import type { OpenEditorImageRuntime } from "@openeditor/document";

export function createPublishedImageRuntime(
imageIds: readonly string[],
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/published-sites/page-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Button } from "@baseblocks/ui/button";
import type {
OpenEditorDocument,
OpenEditorPageRuntime,
} from "@openeditor/core";
} from "@openeditor/document";
import { OpenEditorViewer } from "@openeditor/react";
import { OpenEditorThemeProvider } from "@openeditor/ui";
import "@openeditor/ui/styles.css";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/features/published-sites/site-options-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from "@baseblocks/ui/dropdown-menu";
import type { OpenEditorExportFormat } from "@openeditor/exporters/export";
import type { OpenEditorExportFormat } from "@openeditor/export/export";
import { useLocale, useTranslations } from "next-intl";
import { useTheme } from "next-themes";

Expand Down
13 changes: 6 additions & 7 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@
"@flags-sdk/vercel": "^1.4.6",
"@hugeicons/core-free-icons": "^4.2.3",
"@hugeicons/react": "^1.1.9",
"@openeditor/core": "0.0.52",
"@openeditor/custom-block": "0.0.52",
"@openeditor/emoji": "0.0.52",
"@openeditor/exporters": "0.0.52",
"@openeditor/react": "0.0.52",
"@openeditor/ui": "0.0.52",
"@openeditor/workspace": "0.0.52",
"@openeditor/custom-block": "0.0.53",
"@openeditor/document": "0.0.53",
"@openeditor/export": "0.0.53",
"@openeditor/mutations": "0.0.53",
"@openeditor/react": "0.0.53",
"@openeditor/ui": "0.0.53",
"@vercel/analytics": "^2.0.1",
"@vercel/sdk": "^1.28.8",
"ai": "7.0.49",
Expand Down
52 changes: 21 additions & 31 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions bunfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@ minimumReleaseAgeExcludes = [
"@firecrawl/anydoc-linux-x64-musl",
"@firecrawl/anydoc-wasm",
"@firecrawl/anydoc-win32-x64-msvc",
"@openeditor/core",
"@openeditor/custom-block",
"@openeditor/workspace",
"@openeditor/embedded-runtime",
"@openeditor/emoji",
"@openeditor/exporters",
"@openeditor/extensions",
"@openeditor/document",
"@openeditor/engine",
"@openeditor/export",
"@openeditor/icons",
"@openeditor/mutations",
"@openeditor/react",
"@openeditor/tiptap",
"@openeditor/ui",
"@ai-sdk/*",
"@ai-sdk/gateway",
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/convex/aiWorkspaces.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { v } from "convex/values";
import { fingerprintSnapshotPage, type Snapshot } from "@openeditor/workspace";
import type { JsonObject } from "@openeditor/core";
import { fingerprintSnapshotPage, type Snapshot } from "@openeditor/mutations";
import type { JsonObject } from "@openeditor/document";
import { query } from "./_generated/server";
import {
MAX_AI_SITE_PAGES,
Expand Down
Loading