@lark-apaas/coding-template-nestjs-react-fullstack 0.1.36-alpha.20260901072249 → 0.1.36-alpha.20260902024923

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/template/client/src/components/ui/markdown.tsx +43 -0
  3. package/template/client/src/index.css +0 -1
  4. package/template/nest-cli.json +10 -9
  5. package/template/package-lock.json +9641 -18288
  6. package/template/package.json +4 -67
  7. package/template/client/src/components/business-ui/tiptap-editor/README.md +0 -324
  8. package/template/client/src/components/business-ui/tiptap-editor/components/attachment-toolbar-button.tsx +0 -74
  9. package/template/client/src/components/business-ui/tiptap-editor/components/blockquote-toolbar-button.tsx +0 -41
  10. package/template/client/src/components/business-ui/tiptap-editor/components/code-block-toolbar-button.tsx +0 -41
  11. package/template/client/src/components/business-ui/tiptap-editor/components/color-highlight-toolbar-button.tsx +0 -141
  12. package/template/client/src/components/business-ui/tiptap-editor/components/heading-toolbar-button.tsx +0 -99
  13. package/template/client/src/components/business-ui/tiptap-editor/components/horizontal-rule-toolbar-button.tsx +0 -39
  14. package/template/client/src/components/business-ui/tiptap-editor/components/image-upload-toolbar-button.tsx +0 -65
  15. package/template/client/src/components/business-ui/tiptap-editor/components/link-edit-form.tsx +0 -127
  16. package/template/client/src/components/business-ui/tiptap-editor/components/link-hover-toolbar.tsx +0 -380
  17. package/template/client/src/components/business-ui/tiptap-editor/components/link-toolbar-button.tsx +0 -96
  18. package/template/client/src/components/business-ui/tiptap-editor/components/list-toolbar-button.tsx +0 -75
  19. package/template/client/src/components/business-ui/tiptap-editor/components/mark-toolbar-button.tsx +0 -118
  20. package/template/client/src/components/business-ui/tiptap-editor/components/text-align-toolbar-button.tsx +0 -84
  21. package/template/client/src/components/business-ui/tiptap-editor/components/undo-redo-toolbar-button.tsx +0 -54
  22. package/template/client/src/components/business-ui/tiptap-editor/extensions/attachment.tsx +0 -539
  23. package/template/client/src/components/business-ui/tiptap-editor/extensions/code-block-shiki.tsx +0 -236
  24. package/template/client/src/components/business-ui/tiptap-editor/extensions/complete-kit.ts +0 -260
  25. package/template/client/src/components/business-ui/tiptap-editor/extensions/image.tsx +0 -456
  26. package/template/client/src/components/business-ui/tiptap-editor/hooks/use-tiptap-editor.ts +0 -47
  27. package/template/client/src/components/business-ui/tiptap-editor/index.ts +0 -38
  28. package/template/client/src/components/business-ui/tiptap-editor/tiptap-editor-complete.tsx +0 -112
  29. package/template/client/src/components/business-ui/tiptap-editor/tiptap-editor.tsx +0 -169
  30. package/template/client/src/components/ui/streamdown.tsx +0 -186
  31. package/template/client/src/lib/shiki.ts +0 -92
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-template-nestjs-react-fullstack",
3
- "version": "0.1.36-alpha.20260901072249",
3
+ "version": "0.1.36-alpha.20260902024923",
4
4
  "description": "NestJS + React fullstack template for miaoda coding",
5
5
  "type": "module",
6
6
  "files": [
@@ -0,0 +1,43 @@
1
+ 'use client';
2
+
3
+ import * as React from 'react';
4
+ import ReactMarkdown, { type Options } from 'react-markdown';
5
+ import remarkGfm from 'remark-gfm';
6
+
7
+ import { cn } from '@/lib/utils';
8
+
9
+ export interface MarkdownProps extends Options {
10
+ className?: string;
11
+ }
12
+
13
+ const defaultComponents: NonNullable<Options['components']> = {
14
+ a: ({ className, href, ...props }) => (
15
+ <a
16
+ className={cn(className)}
17
+ href={href}
18
+ rel={props.rel ?? 'noreferrer'}
19
+ target={props.target ?? '_blank'}
20
+ {...props}
21
+ />
22
+ ),
23
+ img: ({ className, alt, ...props }) => (
24
+ <img className={cn(className)} alt={alt ?? ''} {...props} />
25
+ ),
26
+ };
27
+
28
+ export function Markdown({
29
+ className,
30
+ remarkPlugins,
31
+ components,
32
+ ...props
33
+ }: MarkdownProps) {
34
+ return (
35
+ <div className={cn('prose max-w-none dark:prose-invert', className)}>
36
+ <ReactMarkdown
37
+ remarkPlugins={[remarkGfm, ...(remarkPlugins ?? [])]}
38
+ components={{ ...defaultComponents, ...components }}
39
+ {...props}
40
+ />
41
+ </div>
42
+ );
43
+ }
@@ -3,5 +3,4 @@
3
3
  @import "./tailwind-theme.css";
4
4
  @import "./typography.css";
5
5
 
6
- @source "../../node_modules/streamdown/dist/*.js";
7
6
  @config "../../tailwind.config.ts";
@@ -5,20 +5,21 @@
5
5
  "compilerOptions": {
6
6
  "deleteOutDir": false,
7
7
  "tsConfigPath": "tsconfig.node.json",
8
- "typeCheck": true,
9
- "builder": {
10
- "type": "swc",
11
- "options": {
12
- "filenames": ["server", "shared"],
13
- "stripLeadingPaths": false
14
- }
15
- },
16
8
  "assets": [
17
9
  {
18
10
  "include": "capabilities/**/*.json",
19
11
  "outDir": "dist/server",
20
12
  "watchAssets": true
21
13
  }
14
+ ],
15
+ "plugins": [
16
+ {
17
+ "name": "@nestjs/swagger",
18
+ "options": {
19
+ "introspectComments": true,
20
+ "classValidatorShim": true
21
+ }
22
+ }
22
23
  ]
23
24
  }
24
- }
25
+ }