Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 9 additions & 0 deletions apps/editor/app/api/plugins/mint/[...path]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { handleMintPascalRequest } from '@mint/pascal-plugin/server'
import { BASE_URL } from '@/lib/utils'

export const runtime = 'nodejs'
export const dynamic = 'force-dynamic'

const route = (request: Request) => handleMintPascalRequest(request, { origin: BASE_URL })
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated

export { route as GET, route as POST }
1 change: 1 addition & 0 deletions apps/editor/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@source "../../../packages/editor/src";
@source "../../../packages/nodes/src";
@source "../../../node_modules/@pascal-app/plugin-trees/src";
@source "../../../node_modules/@mint/pascal-plugin/src";

@custom-variant dark (&:is(.dark *));

Expand Down
3 changes: 3 additions & 0 deletions apps/editor/lib/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { mintHostPanel, mintPlugin } from '@mint/pascal-plugin'
import {
type AnyNodeDefinition,
discoverPlugins,
Expand Down Expand Up @@ -85,6 +86,8 @@ export async function loadExternalPlugins(): Promise<void> {
// so it is registered separately from the core plugin manifest.
extendPluginDiscovery(async () => [treesPlugin])
registerEditorHostPanel(treesHostPanel)
extendPluginDiscovery(async () => [mintPlugin])
registerEditorHostPanel(mintHostPanel)

loadBuiltinsSync()
void loadExternalPlugins()
1 change: 1 addition & 0 deletions apps/editor/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const nextConfig: NextConfig = {
'@pascal-app/editor',
'@pascal-app/mcp',
'@pascal-app/plugin-trees',
'@mint/pascal-plugin',
'@dgreenheck/ez-tree',
],
turbopack: {
Expand Down
1 change: 1 addition & 0 deletions apps/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"@iconify/react": "^6.0.2",
"@mint/pascal-plugin": "github:mintdotgg/mint-pascal-plugin#902c546dbaece6b31455c0dc394afe6b9cd136fe",
"@number-flow/react": "^0.6.0",
"@pascal-app/core": "*",
"@pascal-app/editor": "*",
Expand Down
3 changes: 3 additions & 0 deletions bun.lock

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