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
2 changes: 1 addition & 1 deletion apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@hookform/resolvers": "^3.3.4",
"@monaco-editor/react": "4.7.0-rc.0",
"@monaco-editor/react": "4.7.0",
"@next/bundle-analyzer": "15.2.3",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-tooltip": "^1.1.3",
Expand Down
14 changes: 4 additions & 10 deletions apps/dashboard/src/components/vibe-coding/code-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { runAsynchronously } from '@stackframe/stack-shared/dist/utils/promises'
import { deindent } from '@stackframe/stack-shared/dist/utils/strings';
import { Typography } from "@stackframe/stack-ui";
import { useTheme } from 'next-themes';

import { dtsBundles } from './dts';

type CodeEditorProps = {
code: string,
Expand Down Expand Up @@ -93,15 +93,9 @@ export default function CodeEditor({
}
`,
);
// There is some issue with arktype type definitions and monaco editor that isn't letting them work properly.
// TODO: add actual type definitions for arktype.
monaco.languages.typescript.typescriptDefaults.addExtraLib(
deindent`
declare module "arktype" {
const type: any;
}
`,
);
monaco.languages.typescript.typescriptDefaults.addExtraLib(dtsBundles.arkType);
monaco.languages.typescript.typescriptDefaults.addExtraLib(dtsBundles.arkUtil);
monaco.languages.typescript.typescriptDefaults.addExtraLib(dtsBundles.arkSchema);

const reactEmailPackages = [
'components', 'body', 'button', 'code-block', 'code-inline', 'column',
Expand Down
9 changes: 9 additions & 0 deletions apps/dashboard/src/components/vibe-coding/dts/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { typeDts } from "./type-dts";
import { schemaDts } from "./schema-dts";
import { utilDts } from "./util-dts";

export const dtsBundles = {
arkSchema: schemaDts,
arkType: typeDts,
arkUtil: utilDts,
};
4 changes: 4 additions & 0 deletions apps/dashboard/src/components/vibe-coding/dts/schema-dts.ts

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions apps/dashboard/src/components/vibe-coding/dts/type-dts.ts

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions apps/dashboard/src/components/vibe-coding/dts/util-dts.ts

Large diffs are not rendered by default.

21 changes: 9 additions & 12 deletions pnpm-lock.yaml

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