betterstart-cli 0.0.4 → 0.0.6

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.
@@ -66,7 +66,7 @@ export function CopyableCodeBlock({ label, code, language, tabs }: CopyableCodeB
66
66
 
67
67
  {codeTabs.map((tab) => (
68
68
  <TabsContent key={tab.id} value={tab.id} className="min-h-0 overflow-auto">
69
- <CardContent className="p-0 overflow-auto">
69
+ <CardContent className="p-0 overflow-auto select-text">
70
70
  <React.Suspense fallback={<PlainCodeFallback code={tab.code} />}>
71
71
  <LazyCodeMirror code={tab.code} language={tab.language} theme={codeTheme} />
72
72
  </React.Suspense>
@@ -92,7 +92,7 @@ export function CopyableCodeBlock({ label, code, language, tabs }: CopyableCodeB
92
92
  {isCopied ? <Check /> : <Copy />}
93
93
  </Button>
94
94
  </CardHeader>
95
- <CardContent className="p-0 overflow-auto">
95
+ <CardContent className="p-0 overflow-auto select-text">
96
96
  <React.Suspense fallback={<PlainCodeFallback code={code} />}>
97
97
  <LazyCodeMirror code={code} language={language} theme={codeTheme} />
98
98
  </React.Suspense>
@@ -19,10 +19,20 @@ const compactCodeTheme = EditorView.theme({
19
19
  '&': {
20
20
  fontSize: '12px'
21
21
  },
22
+ '.cm-editor': {
23
+ userSelect: 'text'
24
+ },
22
25
  '.cm-content': {
26
+ userSelect: 'text',
23
27
  padding: '10px 0 14px'
24
28
  },
29
+ '.cm-scroller': {
30
+ userSelect: 'text',
31
+ fontFamily:
32
+ 'ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace'
33
+ },
25
34
  '.cm-gutters': {
35
+ userSelect: 'none',
26
36
  padding: '0 0 14px'
27
37
  },
28
38
  '.cm-content, .cm-gutters': {
@@ -33,10 +43,6 @@ const compactCodeTheme = EditorView.theme({
33
43
  },
34
44
  '.cm-line': {
35
45
  padding: '0 16px'
36
- },
37
- '.cm-scroller': {
38
- fontFamily:
39
- 'ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace'
40
46
  }
41
47
  })
42
48
 
@@ -58,8 +64,8 @@ export default function DevModeCodeMirror({ code, language, theme }: DevModeCode
58
64
  return (
59
65
  <CodeMirror
60
66
  value={code}
61
- editable={false}
62
67
  readOnly
68
+ className="select-text"
63
69
  basicSetup={codeMirrorSetup}
64
70
  extensions={extensions}
65
71
  theme={theme === 'dark' ? githubDark : githubLight}
@@ -2,7 +2,15 @@ import type { AdminMedia } from '@admin/types'
2
2
 
3
3
  export type CreateMediaInput = Omit<
4
4
  AdminMedia,
5
- 'id' | 'createdAt' | 'updatedAt' | 'createdBy' | 'updatedBy' | 'createdByUser' | 'updatedByUser'
5
+ | 'id'
6
+ | 'createdAt'
7
+ | 'updatedAt'
8
+ | 'createdAtFormatted'
9
+ | 'updatedAtFormatted'
10
+ | 'createdBy'
11
+ | 'updatedBy'
12
+ | 'createdByUser'
13
+ | 'updatedByUser'
6
14
  >
7
15
 
8
16
  export interface CreateMediaResult {
@@ -20,6 +20,8 @@ export interface AdminMedia {
20
20
  tags: string[] | null
21
21
  createdAt: string
22
22
  updatedAt: string
23
+ createdAtFormatted?: string
24
+ updatedAtFormatted?: string
23
25
  createdBy: string | null
24
26
  updatedBy: string | null
25
27
  createdByUser?: AdminUserSummary | null